UNPKG

@moontra/moonui-pro

Version:

Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components

86 lines (77 loc) 1.9 kB
import type { NextConfig } from 'next'; import type { Plugin as VitePlugin } from 'vite'; import type { Plugin as ESBuildPlugin } from 'esbuild'; export interface MoonUIPluginOptions { /** * License key for MoonUI Pro * Can also be set via environment variables: * - MOONUI_LICENSE_KEY * - MOONUI_TEAM_TOKEN * - MOONUI_CI_TOKEN */ licenseKey?: string; /** * Skip license validation in development * @default true */ skipDevValidation?: boolean; /** * Custom API endpoint for license validation * @default "https://moonui.dev/api/validate" */ apiEndpoint?: string; /** * Enable verbose logging * @default false */ verbose?: boolean; } /** * Next.js plugin for MoonUI Pro * Adds build-time license validation and code transformation * * @example * ```js * // next.config.js * const { withMoonUI } = require('@moontra/moonui-pro/plugin'); * * module.exports = withMoonUI({ * // Your Next.js config * }); * ``` */ export function withMoonUI(nextConfig?: NextConfig & { moonui?: MoonUIPluginOptions }): NextConfig; /** * Vite plugin for MoonUI Pro * * @example * ```js * // vite.config.js * import { moonUIVitePlugin } from '@moontra/moonui-pro/plugin'; * * export default { * plugins: [moonUIVitePlugin()] * } * ``` */ export function moonUIVitePlugin(options?: MoonUIPluginOptions): VitePlugin; /** * ESBuild plugin for MoonUI Pro * * @example * ```js * // esbuild.config.js * import { moonUIESBuildPlugin } from '@moontra/moonui-pro/plugin'; * * esbuild.build({ * plugins: [moonUIESBuildPlugin()] * }); * ``` */ export function moonUIESBuildPlugin(options?: MoonUIPluginOptions): ESBuildPlugin; declare const _default: { withMoonUI: typeof withMoonUI; moonUIVitePlugin: typeof moonUIVitePlugin; moonUIESBuildPlugin: typeof moonUIESBuildPlugin; }; export default _default;