@burdenoff/microfe-product 2026.510.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -0
- package/dist/generated/global-operations.d.ts +1833 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +846 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.d.ts +20976 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/global-types.js +8 -0
- package/dist/generated/global-types.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +54985 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +555 -0
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/errors.js +23 -0
- package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/iso.js +33 -0
- package/dist/node_modules/zod/v4/classic/iso.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/parse.js +8 -0
- package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +617 -0
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
- package/dist/node_modules/zod/v4/core/api.js +503 -0
- package/dist/node_modules/zod/v4/core/api.js.map +1 -0
- package/dist/node_modules/zod/v4/core/checks.js +285 -0
- package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
- package/dist/node_modules/zod/v4/core/core.js +49 -0
- package/dist/node_modules/zod/v4/core/core.js.map +1 -0
- package/dist/node_modules/zod/v4/core/doc.js +25 -0
- package/dist/node_modules/zod/v4/core/doc.js.map +1 -0
- package/dist/node_modules/zod/v4/core/errors.js +46 -0
- package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +180 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
- package/dist/node_modules/zod/v4/core/parse.js +91 -0
- package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
- package/dist/node_modules/zod/v4/core/regexes.js +27 -0
- package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
- package/dist/node_modules/zod/v4/core/registries.js +42 -0
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
- package/dist/node_modules/zod/v4/core/schemas.js +883 -0
- package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +226 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
- package/dist/node_modules/zod/v4/core/util.js +267 -0
- package/dist/node_modules/zod/v4/core/util.js.map +1 -0
- package/dist/node_modules/zod/v4/core/versions.js +10 -0
- package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
- package/dist/product/ProductUserRoot.d.ts +4 -0
- package/dist/product/ProductUserRoot.d.ts.map +1 -0
- package/dist/product/ProductUserRoot.js +40 -0
- package/dist/product/ProductUserRoot.js.map +1 -0
- package/dist/product/ProductUserRoutes.d.ts +6 -0
- package/dist/product/ProductUserRoutes.d.ts.map +1 -0
- package/dist/product/ProductUserRoutes.js +34 -0
- package/dist/product/ProductUserRoutes.js.map +1 -0
- package/dist/product/hooks/usePublicContentPage.d.ts +9 -0
- package/dist/product/hooks/usePublicContentPage.d.ts.map +1 -0
- package/dist/product/hooks/usePublicContentPage.js +22 -0
- package/dist/product/hooks/usePublicContentPage.js.map +1 -0
- package/dist/product/hooks/usePublicProduct.d.ts +9 -0
- package/dist/product/hooks/usePublicProduct.d.ts.map +1 -0
- package/dist/product/hooks/usePublicProduct.js +19 -0
- package/dist/product/hooks/usePublicProduct.js.map +1 -0
- package/dist/product/hooks/usePublicProducts.d.ts +21 -0
- package/dist/product/hooks/usePublicProducts.d.ts.map +1 -0
- package/dist/product/hooks/usePublicProducts.js +25 -0
- package/dist/product/hooks/usePublicProducts.js.map +1 -0
- package/dist/product/pages/ContentPageViewPage.d.ts +2 -0
- package/dist/product/pages/ContentPageViewPage.d.ts.map +1 -0
- package/dist/product/pages/ContentPageViewPage.js +81 -0
- package/dist/product/pages/ContentPageViewPage.js.map +1 -0
- package/dist/product/pages/ProductCatalogPage.d.ts +2 -0
- package/dist/product/pages/ProductCatalogPage.d.ts.map +1 -0
- package/dist/product/pages/ProductCatalogPage.js +182 -0
- package/dist/product/pages/ProductCatalogPage.js.map +1 -0
- package/dist/product/pages/ProductViewPage.d.ts +2 -0
- package/dist/product/pages/ProductViewPage.d.ts.map +1 -0
- package/dist/product/pages/ProductViewPage.js +229 -0
- package/dist/product/pages/ProductViewPage.js.map +1 -0
- package/dist/product/pages/ProductsLandingPage.d.ts +10 -0
- package/dist/product/pages/ProductsLandingPage.d.ts.map +1 -0
- package/dist/product/pages/ProductsLandingPage.js +66 -0
- package/dist/product/pages/ProductsLandingPage.js.map +1 -0
- package/dist/product/pages/UserProductsLandingPage.d.ts +9 -0
- package/dist/product/pages/UserProductsLandingPage.d.ts.map +1 -0
- package/dist/product/pages/UserProductsLandingPage.js +10 -0
- package/dist/product/pages/UserProductsLandingPage.js.map +1 -0
- package/dist/product/providers/ProductUserProvider.d.ts +10 -0
- package/dist/product/providers/ProductUserProvider.d.ts.map +1 -0
- package/dist/product/providers/ProductUserProvider.js +19 -0
- package/dist/product/providers/ProductUserProvider.js.map +1 -0
- package/dist/product/types/index.d.ts +34 -0
- package/dist/product/types/index.d.ts.map +1 -0
- package/dist/product-management/ProductManagementRoot.d.ts +4 -0
- package/dist/product-management/ProductManagementRoot.d.ts.map +1 -0
- package/dist/product-management/ProductManagementRoot.js +59 -0
- package/dist/product-management/ProductManagementRoot.js.map +1 -0
- package/dist/product-management/ProductManagementRoutes.d.ts +6 -0
- package/dist/product-management/ProductManagementRoutes.d.ts.map +1 -0
- package/dist/product-management/ProductManagementRoutes.js +144 -0
- package/dist/product-management/ProductManagementRoutes.js.map +1 -0
- package/dist/product-management/index.d.ts +5 -0
- package/dist/product-management/index.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts +10 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +530 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -0
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts +11 -0
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js +29 -0
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js.map +1 -0
- package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts +76 -0
- package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/hooks/useContentPages.js +96 -0
- package/dist/product-management/modules/content-pages/hooks/useContentPages.js.map +1 -0
- package/dist/product-management/modules/content-pages/index.d.ts +15 -0
- package/dist/product-management/modules/content-pages/index.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts +2 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +69 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts +6 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +273 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts +2 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +87 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts +2 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +243 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -0
- package/dist/product-management/modules/content-pages/schemas/index.d.ts +33 -0
- package/dist/product-management/modules/content-pages/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/schemas/index.js +29 -0
- package/dist/product-management/modules/content-pages/schemas/index.js.map +1 -0
- package/dist/product-management/modules/content-pages/types/index.d.ts +65 -0
- package/dist/product-management/modules/content-pages/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts +11 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +347 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts +8 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js +23 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts +8 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js +31 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js.map +1 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts +58 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js +91 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js.map +1 -0
- package/dist/product-management/modules/feature-flags/index.d.ts +13 -0
- package/dist/product-management/modules/feature-flags/index.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts +3 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +61 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts +3 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +292 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts +3 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +88 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts +3 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +467 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -0
- package/dist/product-management/modules/feature-flags/schemas/index.d.ts +35 -0
- package/dist/product-management/modules/feature-flags/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/schemas/index.js +35 -0
- package/dist/product-management/modules/feature-flags/schemas/index.js.map +1 -0
- package/dist/product-management/modules/feature-flags/types/index.d.ts +86 -0
- package/dist/product-management/modules/feature-flags/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductCard.d.ts +15 -0
- package/dist/product-management/modules/products/components/ProductCard.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductForm.d.ts +10 -0
- package/dist/product-management/modules/products/components/ProductForm.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductForm.js +882 -0
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -0
- package/dist/product-management/modules/products/components/ProductPlans.d.ts +8 -0
- package/dist/product-management/modules/products/components/ProductPlans.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductPlans.js +469 -0
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -0
- package/dist/product-management/modules/products/components/ProductStats.d.ts +23 -0
- package/dist/product-management/modules/products/components/ProductStats.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts +12 -0
- package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductStatusBadge.js +50 -0
- package/dist/product-management/modules/products/components/ProductStatusBadge.js.map +1 -0
- package/dist/product-management/modules/products/hooks/useProducts.d.ts +85 -0
- package/dist/product-management/modules/products/hooks/useProducts.d.ts.map +1 -0
- package/dist/product-management/modules/products/hooks/useProducts.js +93 -0
- package/dist/product-management/modules/products/hooks/useProducts.js.map +1 -0
- package/dist/product-management/modules/products/index.d.ts +16 -0
- package/dist/product-management/modules/products/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts +2 -0
- package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +57 -0
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -0
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts +6 -0
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +422 -0
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -0
- package/dist/product-management/modules/products/pages/ProductEditPage.d.ts +2 -0
- package/dist/product-management/modules/products/pages/ProductEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductEditPage.js +80 -0
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -0
- package/dist/product-management/modules/products/pages/ProductsListPage.d.ts +2 -0
- package/dist/product-management/modules/products/pages/ProductsListPage.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductsListPage.js +252 -0
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -0
- package/dist/product-management/modules/products/schemas/index.d.ts +59 -0
- package/dist/product-management/modules/products/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/schemas/index.js +73 -0
- package/dist/product-management/modules/products/schemas/index.js.map +1 -0
- package/dist/product-management/modules/products/types/index.d.ts +112 -0
- package/dist/product-management/modules/products/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/types/index.js +11 -0
- package/dist/product-management/modules/products/types/index.js.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts +6 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js +46 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts +10 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +389 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts +11 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js +45 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js.map +1 -0
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts +85 -0
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js +120 -0
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js.map +1 -0
- package/dist/product-management/modules/shortcuts/index.d.ts +17 -0
- package/dist/product-management/modules/shortcuts/index.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts +2 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +60 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts +2 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +271 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts +2 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +85 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts +2 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +295 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -0
- package/dist/product-management/modules/shortcuts/schemas/index.d.ts +35 -0
- package/dist/product-management/modules/shortcuts/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/schemas/index.js +30 -0
- package/dist/product-management/modules/shortcuts/schemas/index.js.map +1 -0
- package/dist/product-management/modules/shortcuts/types/index.d.ts +28 -0
- package/dist/product-management/modules/shortcuts/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/types/index.js +13 -0
- package/dist/product-management/modules/shortcuts/types/index.js.map +1 -0
- package/dist/product-management/providers/ProductConsoleProvider.d.ts +18 -0
- package/dist/product-management/providers/ProductConsoleProvider.d.ts.map +1 -0
- package/dist/product-management/providers/ProductConsoleProvider.js +19 -0
- package/dist/product-management/providers/ProductConsoleProvider.js.map +1 -0
- package/dist/product-management/shared/components/AuditHistoryTab.d.ts +7 -0
- package/dist/product-management/shared/components/AuditHistoryTab.d.ts.map +1 -0
- package/dist/product-management/shared/components/AuditHistoryTab.js +80 -0
- package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -0
- package/dist/product-management/shared/components/TagList.d.ts +7 -0
- package/dist/product-management/shared/components/TagList.d.ts.map +1 -0
- package/dist/product-management/shared/components/TagList.js +15 -0
- package/dist/product-management/shared/components/TagList.js.map +1 -0
- package/dist/product-management/shared/components/feedback/EmptyState.d.ts +13 -0
- package/dist/product-management/shared/components/feedback/EmptyState.d.ts.map +1 -0
- package/dist/product-management/shared/components/feedback/EmptyState.js +30 -0
- package/dist/product-management/shared/components/feedback/EmptyState.js.map +1 -0
- package/dist/product-management/shared/components/feedback/ErrorState.d.ts +18 -0
- package/dist/product-management/shared/components/feedback/ErrorState.d.ts.map +1 -0
- package/dist/product-management/shared/components/feedback/ErrorState.js +34 -0
- package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -0
- package/dist/product-management/shared/components/feedback/LoadingState.d.ts +13 -0
- package/dist/product-management/shared/components/feedback/LoadingState.d.ts.map +1 -0
- package/dist/product-management/shared/components/feedback/LoadingState.js +19 -0
- package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -0
- package/dist/product-management/shared/components/input/SearchInput.d.ts +22 -0
- package/dist/product-management/shared/components/input/SearchInput.d.ts.map +1 -0
- package/dist/product-management/shared/components/input/SearchInput.js +31 -0
- package/dist/product-management/shared/components/input/SearchInput.js.map +1 -0
- package/dist/product-management/shared/components/input/TagInput.d.ts +10 -0
- package/dist/product-management/shared/components/input/TagInput.d.ts.map +1 -0
- package/dist/product-management/shared/components/input/TagInput.js +54 -0
- package/dist/product-management/shared/components/input/TagInput.js.map +1 -0
- package/dist/product-management/shared/hooks/useTr.d.ts +17 -0
- package/dist/product-management/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/product-management/shared/hooks/useTr.js +14 -0
- package/dist/product-management/shared/hooks/useTr.js.map +1 -0
- package/dist/product-management/shared/index.d.ts +11 -0
- package/dist/product-management/shared/index.d.ts.map +1 -0
- package/dist/product-management/shared/index.js +4 -0
- package/dist/product-management/shared/types/graphql.d.ts +119 -0
- package/dist/product-management/shared/types/graphql.d.ts.map +1 -0
- package/dist/product-management/shared/utils/cn.d.ts +7 -0
- package/dist/product-management/shared/utils/cn.d.ts.map +1 -0
- package/dist/product-management/shared/utils/exportUtils.d.ts +5 -0
- package/dist/product-management/shared/utils/exportUtils.d.ts.map +1 -0
- package/dist/product-management/shared/utils/exportUtils.js +17 -0
- package/dist/product-management/shared/utils/exportUtils.js.map +1 -0
- package/dist/product-management/types/index.d.ts +40 -0
- package/dist/product-management/types/index.d.ts.map +1 -0
- package/dist/shared/components/index.d.ts +10 -0
- package/dist/shared/components/index.d.ts.map +1 -0
- package/dist/shared/components/index.js +5 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/utils/formatDate.d.ts +5 -0
- package/dist/shared/utils/formatDate.d.ts.map +1 -0
- package/dist/shared/utils/formatDate.js +12 -0
- package/dist/shared/utils/formatDate.js.map +1 -0
- package/dist/shared/utils/index.d.ts +4 -0
- package/dist/shared/utils/index.d.ts.map +1 -0
- package/dist/shared/utils/isSafeUrl.d.ts +6 -0
- package/dist/shared/utils/isSafeUrl.d.ts.map +1 -0
- package/dist/shared/utils/isSafeUrl.js +8 -0
- package/dist/shared/utils/isSafeUrl.js.map +1 -0
- package/dist/shared/utils/renderMarkdown.d.ts +10 -0
- package/dist/shared/utils/renderMarkdown.d.ts.map +1 -0
- package/dist/shared/utils/renderMarkdown.js +8 -0
- package/dist/shared/utils/renderMarkdown.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +118 -0
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { ProductStatus as t } from "../types/index.js";
|
|
3
|
+
import { ZodError as n } from "../../../../node_modules/zod/v4/classic/errors.js";
|
|
4
|
+
import { createProductSchema as r, updateProductSchema as i } from "../schemas/index.js";
|
|
5
|
+
import { TagInput as a } from "../../../shared/components/input/TagInput.js";
|
|
6
|
+
import { useState as o } from "react";
|
|
7
|
+
import { ChevronDown as s, ChevronRight as c, Loader2 as l, Plus as u, Shield as d, X as f } from "lucide-react";
|
|
8
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
9
|
+
//#region src/product-management/modules/products/components/ProductForm.tsx
|
|
10
|
+
function h(e) {
|
|
11
|
+
if (e?.socialLinks && typeof e.socialLinks == "object") {
|
|
12
|
+
let t = Object.entries(e.socialLinks);
|
|
13
|
+
if (t.length > 0) return t.map(([e, t]) => ({
|
|
14
|
+
platform: e,
|
|
15
|
+
url: t
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
function g({ product: g, onSubmit: _, onCancel: v, loading: y }) {
|
|
21
|
+
let b = e(), [x, S] = o({
|
|
22
|
+
name: g?.name || "",
|
|
23
|
+
slug: g?.slug || "",
|
|
24
|
+
description: g?.description || "",
|
|
25
|
+
status: g?.status || t.ACTIVE,
|
|
26
|
+
logoUrl: g?.logoUrl || "",
|
|
27
|
+
website: g?.website || "",
|
|
28
|
+
appUrl: g?.appUrl || "",
|
|
29
|
+
docsUrl: g?.docsUrl || "",
|
|
30
|
+
githubUrl: g?.githubUrl || "",
|
|
31
|
+
statusPageUrl: g?.statusPageUrl || "",
|
|
32
|
+
contactEmail: g?.contactEmail || "",
|
|
33
|
+
supportEmail: g?.supportEmail || "",
|
|
34
|
+
contactPhone: g?.contactPhone || "",
|
|
35
|
+
contactAddress: g?.contactAddress || "",
|
|
36
|
+
seoTitle: g?.seoTitle || "",
|
|
37
|
+
seoDescription: g?.seoDescription || "",
|
|
38
|
+
seoKeywords: g?.seoKeywords || "",
|
|
39
|
+
ogImage: g?.ogImage || "",
|
|
40
|
+
appStoreUrl: g?.appStoreUrl || "",
|
|
41
|
+
playStoreUrl: g?.playStoreUrl || ""
|
|
42
|
+
}), [C, w] = o(h(g)), [T, E] = o(g?.tags ?? []), [D, O] = o({}), [k, A] = o({
|
|
43
|
+
contact: !1,
|
|
44
|
+
seo: !1,
|
|
45
|
+
appStore: !1,
|
|
46
|
+
social: !1,
|
|
47
|
+
integrations: !1
|
|
48
|
+
}), j = (e) => {
|
|
49
|
+
A((t) => ({
|
|
50
|
+
...t,
|
|
51
|
+
[e]: !t[e]
|
|
52
|
+
}));
|
|
53
|
+
}, M = () => {
|
|
54
|
+
w((e) => [...e, {
|
|
55
|
+
platform: "",
|
|
56
|
+
url: ""
|
|
57
|
+
}]);
|
|
58
|
+
}, N = (e) => {
|
|
59
|
+
w((t) => t.filter((t, n) => n !== e));
|
|
60
|
+
}, P = (e, t, n) => {
|
|
61
|
+
w((r) => r.map((r, i) => i === e ? {
|
|
62
|
+
...r,
|
|
63
|
+
[t]: n
|
|
64
|
+
} : r));
|
|
65
|
+
}, F = () => {
|
|
66
|
+
let e = C.filter((e) => e.platform.trim() !== "" && e.url.trim() !== "");
|
|
67
|
+
if (e.length === 0) return;
|
|
68
|
+
let t = {};
|
|
69
|
+
return e.forEach((e) => {
|
|
70
|
+
t[e.platform.trim()] = e.url.trim();
|
|
71
|
+
}), t;
|
|
72
|
+
}, I = () => {
|
|
73
|
+
try {
|
|
74
|
+
let e = g ? i : r, t = {
|
|
75
|
+
...x,
|
|
76
|
+
socialLinks: F()
|
|
77
|
+
};
|
|
78
|
+
return e.parse(t), O({}), !0;
|
|
79
|
+
} catch (e) {
|
|
80
|
+
if (e instanceof n) {
|
|
81
|
+
let t = {};
|
|
82
|
+
e.issues.forEach((e) => {
|
|
83
|
+
let n = e.path.join(".");
|
|
84
|
+
t[n] = e.message;
|
|
85
|
+
}), O(t);
|
|
86
|
+
}
|
|
87
|
+
return !1;
|
|
88
|
+
}
|
|
89
|
+
}, L = async (e) => {
|
|
90
|
+
if (e.preventDefault(), !I()) return;
|
|
91
|
+
let t = F();
|
|
92
|
+
await _(g ? {
|
|
93
|
+
name: x.name === g.name ? void 0 : x.name,
|
|
94
|
+
description: x.description === g.description ? void 0 : x.description,
|
|
95
|
+
status: x.status === g.status ? void 0 : x.status,
|
|
96
|
+
logoUrl: x.logoUrl === g.logoUrl ? void 0 : x.logoUrl,
|
|
97
|
+
website: x.website === g.website ? void 0 : x.website,
|
|
98
|
+
appUrl: x.appUrl === g.appUrl ? void 0 : x.appUrl,
|
|
99
|
+
docsUrl: x.docsUrl === g.docsUrl ? void 0 : x.docsUrl,
|
|
100
|
+
githubUrl: x.githubUrl === g.githubUrl ? void 0 : x.githubUrl,
|
|
101
|
+
statusPageUrl: x.statusPageUrl === g.statusPageUrl ? void 0 : x.statusPageUrl,
|
|
102
|
+
contactEmail: x.contactEmail === (g.contactEmail || "") ? void 0 : x.contactEmail,
|
|
103
|
+
supportEmail: x.supportEmail === (g.supportEmail || "") ? void 0 : x.supportEmail,
|
|
104
|
+
contactPhone: x.contactPhone === (g.contactPhone || "") ? void 0 : x.contactPhone,
|
|
105
|
+
contactAddress: x.contactAddress === (g.contactAddress || "") ? void 0 : x.contactAddress,
|
|
106
|
+
seoTitle: x.seoTitle === (g.seoTitle || "") ? void 0 : x.seoTitle,
|
|
107
|
+
seoDescription: x.seoDescription === (g.seoDescription || "") ? void 0 : x.seoDescription,
|
|
108
|
+
seoKeywords: x.seoKeywords === (g.seoKeywords || "") ? void 0 : x.seoKeywords,
|
|
109
|
+
ogImage: x.ogImage === (g.ogImage || "") ? void 0 : x.ogImage,
|
|
110
|
+
appStoreUrl: x.appStoreUrl === (g.appStoreUrl || "") ? void 0 : x.appStoreUrl,
|
|
111
|
+
playStoreUrl: x.playStoreUrl === (g.playStoreUrl || "") ? void 0 : x.playStoreUrl,
|
|
112
|
+
socialLinks: t,
|
|
113
|
+
tags: T,
|
|
114
|
+
...(() => {
|
|
115
|
+
let t = e.target, n = t.elements.namedItem("recaptchaSiteKey")?.value, r = t.elements.namedItem("recaptchaSecretKey")?.value, i = {};
|
|
116
|
+
return n && n !== (g.recaptchaSiteKey || "") && (i.recaptchaSiteKey = n), r && (i.recaptchaSecretKey = r), i;
|
|
117
|
+
})()
|
|
118
|
+
} : {
|
|
119
|
+
name: x.name,
|
|
120
|
+
slug: x.slug,
|
|
121
|
+
description: x.description || void 0,
|
|
122
|
+
status: x.status,
|
|
123
|
+
logoUrl: x.logoUrl || void 0,
|
|
124
|
+
website: x.website || void 0,
|
|
125
|
+
appUrl: x.appUrl || void 0,
|
|
126
|
+
docsUrl: x.docsUrl || void 0,
|
|
127
|
+
githubUrl: x.githubUrl || void 0,
|
|
128
|
+
statusPageUrl: x.statusPageUrl || void 0,
|
|
129
|
+
contactEmail: x.contactEmail || void 0,
|
|
130
|
+
supportEmail: x.supportEmail || void 0,
|
|
131
|
+
contactPhone: x.contactPhone || void 0,
|
|
132
|
+
contactAddress: x.contactAddress || void 0,
|
|
133
|
+
seoTitle: x.seoTitle || void 0,
|
|
134
|
+
seoDescription: x.seoDescription || void 0,
|
|
135
|
+
seoKeywords: x.seoKeywords || void 0,
|
|
136
|
+
ogImage: x.ogImage || void 0,
|
|
137
|
+
appStoreUrl: x.appStoreUrl || void 0,
|
|
138
|
+
playStoreUrl: x.playStoreUrl || void 0,
|
|
139
|
+
socialLinks: t,
|
|
140
|
+
tags: T
|
|
141
|
+
});
|
|
142
|
+
}, R = "\n w-full px-3 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n disabled:bg-muted disabled:cursor-not-allowed\n transition-all duration-200\n ", z = "\n flex items-center gap-2 w-full text-left\n text-sm font-semibold text-text-secondary uppercase tracking-wider\n cursor-pointer hover:text-text-primary transition-colors duration-200\n ";
|
|
143
|
+
return /* @__PURE__ */ m("form", {
|
|
144
|
+
onSubmit: L,
|
|
145
|
+
className: "space-y-6 animate-in fade-in duration-300",
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ m("div", {
|
|
148
|
+
className: "space-y-4",
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ p("h3", {
|
|
151
|
+
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
152
|
+
children: b("products.basicInformation", "Basic Information")
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ m("div", { children: [
|
|
155
|
+
/* @__PURE__ */ m("label", {
|
|
156
|
+
htmlFor: "name",
|
|
157
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
158
|
+
children: [
|
|
159
|
+
b("products.productName", "Product Name"),
|
|
160
|
+
" ",
|
|
161
|
+
/* @__PURE__ */ p("span", {
|
|
162
|
+
className: "text-[var(--color-status-error)]",
|
|
163
|
+
children: "*"
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ p("input", {
|
|
168
|
+
id: "name",
|
|
169
|
+
type: "text",
|
|
170
|
+
value: x.name,
|
|
171
|
+
onChange: (e) => S({
|
|
172
|
+
...x,
|
|
173
|
+
name: e.target.value
|
|
174
|
+
}),
|
|
175
|
+
className: R,
|
|
176
|
+
placeholder: b("products.enterProductName", "Enter product name"),
|
|
177
|
+
disabled: y,
|
|
178
|
+
required: !0
|
|
179
|
+
}),
|
|
180
|
+
D.name && /* @__PURE__ */ p("p", {
|
|
181
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
182
|
+
children: D.name
|
|
183
|
+
})
|
|
184
|
+
] }),
|
|
185
|
+
/* @__PURE__ */ m("div", { children: [
|
|
186
|
+
/* @__PURE__ */ m("label", {
|
|
187
|
+
htmlFor: "slug",
|
|
188
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
189
|
+
children: [
|
|
190
|
+
b("products.slug", "Slug"),
|
|
191
|
+
" ",
|
|
192
|
+
/* @__PURE__ */ p("span", {
|
|
193
|
+
className: "text-[var(--color-status-error)]",
|
|
194
|
+
children: "*"
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
}),
|
|
198
|
+
/* @__PURE__ */ p("input", {
|
|
199
|
+
id: "slug",
|
|
200
|
+
type: "text",
|
|
201
|
+
value: x.slug,
|
|
202
|
+
onChange: (e) => S({
|
|
203
|
+
...x,
|
|
204
|
+
slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
|
|
205
|
+
}),
|
|
206
|
+
className: R,
|
|
207
|
+
placeholder: "product-slug",
|
|
208
|
+
disabled: y || !!g,
|
|
209
|
+
required: !g
|
|
210
|
+
}),
|
|
211
|
+
/* @__PURE__ */ p("p", {
|
|
212
|
+
className: "text-xs text-text-tertiary mt-1",
|
|
213
|
+
children: b("products.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
|
|
214
|
+
}),
|
|
215
|
+
D.slug && /* @__PURE__ */ p("p", {
|
|
216
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
217
|
+
children: D.slug
|
|
218
|
+
})
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
221
|
+
htmlFor: "description",
|
|
222
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
223
|
+
children: b("products.description", "Description")
|
|
224
|
+
}), /* @__PURE__ */ p("textarea", {
|
|
225
|
+
id: "description",
|
|
226
|
+
value: x.description,
|
|
227
|
+
onChange: (e) => S({
|
|
228
|
+
...x,
|
|
229
|
+
description: e.target.value
|
|
230
|
+
}),
|
|
231
|
+
rows: 3,
|
|
232
|
+
className: R,
|
|
233
|
+
placeholder: b("products.enterProductDescription", "Enter product description"),
|
|
234
|
+
disabled: y
|
|
235
|
+
})] }),
|
|
236
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
237
|
+
htmlFor: "status",
|
|
238
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
239
|
+
children: b("products.status", "Status")
|
|
240
|
+
}), /* @__PURE__ */ m("select", {
|
|
241
|
+
id: "status",
|
|
242
|
+
value: x.status,
|
|
243
|
+
onChange: (e) => S({
|
|
244
|
+
...x,
|
|
245
|
+
status: e.target.value
|
|
246
|
+
}),
|
|
247
|
+
className: R,
|
|
248
|
+
disabled: y,
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ p("option", {
|
|
251
|
+
value: t.ACTIVE,
|
|
252
|
+
children: b("products.statusActive", "Active")
|
|
253
|
+
}),
|
|
254
|
+
/* @__PURE__ */ p("option", {
|
|
255
|
+
value: t.DRAFT,
|
|
256
|
+
children: b("products.statusDraft", "Draft")
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ p("option", {
|
|
259
|
+
value: t.WAITLIST,
|
|
260
|
+
children: b("products.statusWaitlist", "Waitlist")
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ p("option", {
|
|
263
|
+
value: t.COMING_SOON,
|
|
264
|
+
children: b("products.statusComingSoon", "Coming Soon")
|
|
265
|
+
})
|
|
266
|
+
]
|
|
267
|
+
})] }),
|
|
268
|
+
/* @__PURE__ */ m("div", { children: [
|
|
269
|
+
/* @__PURE__ */ p("label", {
|
|
270
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
271
|
+
children: b("products.tags", "Tags")
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ p(a, {
|
|
274
|
+
value: T,
|
|
275
|
+
onChange: E,
|
|
276
|
+
disabled: y
|
|
277
|
+
}),
|
|
278
|
+
/* @__PURE__ */ p("p", {
|
|
279
|
+
className: "text-xs text-text-tertiary mt-1",
|
|
280
|
+
children: b("products.tagsHint", "Press Enter or comma to add a tag.")
|
|
281
|
+
})
|
|
282
|
+
] })
|
|
283
|
+
]
|
|
284
|
+
}),
|
|
285
|
+
/* @__PURE__ */ m("div", {
|
|
286
|
+
className: "space-y-4 pt-4 border-t border-default",
|
|
287
|
+
children: [
|
|
288
|
+
/* @__PURE__ */ p("h3", {
|
|
289
|
+
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
290
|
+
children: b("products.urlsAndLinks", "URLs & Links")
|
|
291
|
+
}),
|
|
292
|
+
/* @__PURE__ */ m("div", { children: [
|
|
293
|
+
/* @__PURE__ */ p("label", {
|
|
294
|
+
htmlFor: "logoUrl",
|
|
295
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
296
|
+
children: b("products.logoUrl", "Logo URL")
|
|
297
|
+
}),
|
|
298
|
+
/* @__PURE__ */ p("input", {
|
|
299
|
+
id: "logoUrl",
|
|
300
|
+
type: "url",
|
|
301
|
+
value: x.logoUrl,
|
|
302
|
+
onChange: (e) => S({
|
|
303
|
+
...x,
|
|
304
|
+
logoUrl: e.target.value
|
|
305
|
+
}),
|
|
306
|
+
className: R,
|
|
307
|
+
placeholder: "https://example.com/logo.png",
|
|
308
|
+
disabled: y
|
|
309
|
+
}),
|
|
310
|
+
D.logoUrl && /* @__PURE__ */ p("p", {
|
|
311
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
312
|
+
children: D.logoUrl
|
|
313
|
+
})
|
|
314
|
+
] }),
|
|
315
|
+
/* @__PURE__ */ m("div", { children: [
|
|
316
|
+
/* @__PURE__ */ m("label", {
|
|
317
|
+
htmlFor: "appUrl",
|
|
318
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
319
|
+
children: [
|
|
320
|
+
b("products.appUrl", "App URL"),
|
|
321
|
+
" ",
|
|
322
|
+
/* @__PURE__ */ p("span", {
|
|
323
|
+
className: "text-[var(--color-status-warning)]",
|
|
324
|
+
children: b("products.requiredForProductSwitcher", "(Required for product switcher)")
|
|
325
|
+
})
|
|
326
|
+
]
|
|
327
|
+
}),
|
|
328
|
+
/* @__PURE__ */ p("input", {
|
|
329
|
+
id: "appUrl",
|
|
330
|
+
type: "url",
|
|
331
|
+
value: x.appUrl,
|
|
332
|
+
onChange: (e) => S({
|
|
333
|
+
...x,
|
|
334
|
+
appUrl: e.target.value
|
|
335
|
+
}),
|
|
336
|
+
className: R,
|
|
337
|
+
placeholder: "https://app.product.com/",
|
|
338
|
+
disabled: y
|
|
339
|
+
}),
|
|
340
|
+
/* @__PURE__ */ p("p", {
|
|
341
|
+
className: "text-xs text-text-tertiary mt-1",
|
|
342
|
+
children: b("products.appUrlHint", "The main application URL. Products without an App URL won't appear in the product switcher.")
|
|
343
|
+
}),
|
|
344
|
+
D.appUrl && /* @__PURE__ */ p("p", {
|
|
345
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
346
|
+
children: D.appUrl
|
|
347
|
+
})
|
|
348
|
+
] }),
|
|
349
|
+
/* @__PURE__ */ m("div", { children: [
|
|
350
|
+
/* @__PURE__ */ p("label", {
|
|
351
|
+
htmlFor: "website",
|
|
352
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
353
|
+
children: b("products.websiteUrl", "Website URL")
|
|
354
|
+
}),
|
|
355
|
+
/* @__PURE__ */ p("input", {
|
|
356
|
+
id: "website",
|
|
357
|
+
type: "url",
|
|
358
|
+
value: x.website,
|
|
359
|
+
onChange: (e) => S({
|
|
360
|
+
...x,
|
|
361
|
+
website: e.target.value
|
|
362
|
+
}),
|
|
363
|
+
className: R,
|
|
364
|
+
placeholder: "https://product.com/",
|
|
365
|
+
disabled: y
|
|
366
|
+
}),
|
|
367
|
+
D.website && /* @__PURE__ */ p("p", {
|
|
368
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
369
|
+
children: D.website
|
|
370
|
+
})
|
|
371
|
+
] }),
|
|
372
|
+
/* @__PURE__ */ m("div", { children: [
|
|
373
|
+
/* @__PURE__ */ p("label", {
|
|
374
|
+
htmlFor: "docsUrl",
|
|
375
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
376
|
+
children: b("products.documentationUrl", "Documentation URL")
|
|
377
|
+
}),
|
|
378
|
+
/* @__PURE__ */ p("input", {
|
|
379
|
+
id: "docsUrl",
|
|
380
|
+
type: "url",
|
|
381
|
+
value: x.docsUrl,
|
|
382
|
+
onChange: (e) => S({
|
|
383
|
+
...x,
|
|
384
|
+
docsUrl: e.target.value
|
|
385
|
+
}),
|
|
386
|
+
className: R,
|
|
387
|
+
placeholder: "https://docs.product.com/",
|
|
388
|
+
disabled: y
|
|
389
|
+
}),
|
|
390
|
+
D.docsUrl && /* @__PURE__ */ p("p", {
|
|
391
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
392
|
+
children: D.docsUrl
|
|
393
|
+
})
|
|
394
|
+
] }),
|
|
395
|
+
/* @__PURE__ */ m("div", { children: [
|
|
396
|
+
/* @__PURE__ */ p("label", {
|
|
397
|
+
htmlFor: "githubUrl",
|
|
398
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
399
|
+
children: b("products.githubUrl", "GitHub URL")
|
|
400
|
+
}),
|
|
401
|
+
/* @__PURE__ */ p("input", {
|
|
402
|
+
id: "githubUrl",
|
|
403
|
+
type: "url",
|
|
404
|
+
value: x.githubUrl,
|
|
405
|
+
onChange: (e) => S({
|
|
406
|
+
...x,
|
|
407
|
+
githubUrl: e.target.value
|
|
408
|
+
}),
|
|
409
|
+
className: R,
|
|
410
|
+
placeholder: "https://github.com/org/repo",
|
|
411
|
+
disabled: y
|
|
412
|
+
}),
|
|
413
|
+
D.githubUrl && /* @__PURE__ */ p("p", {
|
|
414
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
415
|
+
children: D.githubUrl
|
|
416
|
+
})
|
|
417
|
+
] }),
|
|
418
|
+
/* @__PURE__ */ m("div", { children: [
|
|
419
|
+
/* @__PURE__ */ p("label", {
|
|
420
|
+
htmlFor: "statusPageUrl",
|
|
421
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
422
|
+
children: b("products.statusPageUrl", "Status Page URL")
|
|
423
|
+
}),
|
|
424
|
+
/* @__PURE__ */ p("input", {
|
|
425
|
+
id: "statusPageUrl",
|
|
426
|
+
type: "url",
|
|
427
|
+
value: x.statusPageUrl,
|
|
428
|
+
onChange: (e) => S({
|
|
429
|
+
...x,
|
|
430
|
+
statusPageUrl: e.target.value
|
|
431
|
+
}),
|
|
432
|
+
className: R,
|
|
433
|
+
placeholder: "https://status.product.com/",
|
|
434
|
+
disabled: y
|
|
435
|
+
}),
|
|
436
|
+
D.statusPageUrl && /* @__PURE__ */ p("p", {
|
|
437
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
438
|
+
children: D.statusPageUrl
|
|
439
|
+
})
|
|
440
|
+
] })
|
|
441
|
+
]
|
|
442
|
+
}),
|
|
443
|
+
/* @__PURE__ */ m("div", {
|
|
444
|
+
className: "space-y-4 pt-4 border-t border-default",
|
|
445
|
+
children: [/* @__PURE__ */ m("button", {
|
|
446
|
+
type: "button",
|
|
447
|
+
onClick: () => j("contact"),
|
|
448
|
+
className: z,
|
|
449
|
+
children: [k.contact ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), b("products.contactInformation", "Contact Information")]
|
|
450
|
+
}), k.contact && /* @__PURE__ */ m("div", {
|
|
451
|
+
className: "space-y-4 animate-in fade-in duration-200",
|
|
452
|
+
children: [
|
|
453
|
+
/* @__PURE__ */ m("div", { children: [
|
|
454
|
+
/* @__PURE__ */ p("label", {
|
|
455
|
+
htmlFor: "contactEmail",
|
|
456
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
457
|
+
children: b("products.contactEmail", "Contact Email")
|
|
458
|
+
}),
|
|
459
|
+
/* @__PURE__ */ p("input", {
|
|
460
|
+
id: "contactEmail",
|
|
461
|
+
type: "email",
|
|
462
|
+
value: x.contactEmail,
|
|
463
|
+
onChange: (e) => S({
|
|
464
|
+
...x,
|
|
465
|
+
contactEmail: e.target.value
|
|
466
|
+
}),
|
|
467
|
+
className: R,
|
|
468
|
+
placeholder: "contact@product.com",
|
|
469
|
+
disabled: y
|
|
470
|
+
}),
|
|
471
|
+
D.contactEmail && /* @__PURE__ */ p("p", {
|
|
472
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
473
|
+
children: D.contactEmail
|
|
474
|
+
})
|
|
475
|
+
] }),
|
|
476
|
+
/* @__PURE__ */ m("div", { children: [
|
|
477
|
+
/* @__PURE__ */ p("label", {
|
|
478
|
+
htmlFor: "supportEmail",
|
|
479
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
480
|
+
children: b("products.supportEmail", "Support Email")
|
|
481
|
+
}),
|
|
482
|
+
/* @__PURE__ */ p("input", {
|
|
483
|
+
id: "supportEmail",
|
|
484
|
+
type: "email",
|
|
485
|
+
value: x.supportEmail,
|
|
486
|
+
onChange: (e) => S({
|
|
487
|
+
...x,
|
|
488
|
+
supportEmail: e.target.value
|
|
489
|
+
}),
|
|
490
|
+
className: R,
|
|
491
|
+
placeholder: "support@product.com",
|
|
492
|
+
disabled: y
|
|
493
|
+
}),
|
|
494
|
+
D.supportEmail && /* @__PURE__ */ p("p", {
|
|
495
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
496
|
+
children: D.supportEmail
|
|
497
|
+
})
|
|
498
|
+
] }),
|
|
499
|
+
/* @__PURE__ */ m("div", { children: [
|
|
500
|
+
/* @__PURE__ */ p("label", {
|
|
501
|
+
htmlFor: "contactPhone",
|
|
502
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
503
|
+
children: b("products.contactPhone", "Contact Phone")
|
|
504
|
+
}),
|
|
505
|
+
/* @__PURE__ */ p("input", {
|
|
506
|
+
id: "contactPhone",
|
|
507
|
+
type: "tel",
|
|
508
|
+
value: x.contactPhone,
|
|
509
|
+
onChange: (e) => S({
|
|
510
|
+
...x,
|
|
511
|
+
contactPhone: e.target.value
|
|
512
|
+
}),
|
|
513
|
+
className: R,
|
|
514
|
+
placeholder: "+1 (555) 123-4567",
|
|
515
|
+
disabled: y
|
|
516
|
+
}),
|
|
517
|
+
D.contactPhone && /* @__PURE__ */ p("p", {
|
|
518
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
519
|
+
children: D.contactPhone
|
|
520
|
+
})
|
|
521
|
+
] }),
|
|
522
|
+
/* @__PURE__ */ m("div", { children: [
|
|
523
|
+
/* @__PURE__ */ p("label", {
|
|
524
|
+
htmlFor: "contactAddress",
|
|
525
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
526
|
+
children: b("products.contactAddress", "Contact Address")
|
|
527
|
+
}),
|
|
528
|
+
/* @__PURE__ */ p("textarea", {
|
|
529
|
+
id: "contactAddress",
|
|
530
|
+
value: x.contactAddress,
|
|
531
|
+
onChange: (e) => S({
|
|
532
|
+
...x,
|
|
533
|
+
contactAddress: e.target.value
|
|
534
|
+
}),
|
|
535
|
+
rows: 3,
|
|
536
|
+
className: R,
|
|
537
|
+
placeholder: "123 Main St, City, State, ZIP",
|
|
538
|
+
disabled: y
|
|
539
|
+
}),
|
|
540
|
+
D.contactAddress && /* @__PURE__ */ p("p", {
|
|
541
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
542
|
+
children: D.contactAddress
|
|
543
|
+
})
|
|
544
|
+
] })
|
|
545
|
+
]
|
|
546
|
+
})]
|
|
547
|
+
}),
|
|
548
|
+
/* @__PURE__ */ m("div", {
|
|
549
|
+
className: "space-y-4 pt-4 border-t border-default",
|
|
550
|
+
children: [/* @__PURE__ */ m("button", {
|
|
551
|
+
type: "button",
|
|
552
|
+
onClick: () => j("seo"),
|
|
553
|
+
className: z,
|
|
554
|
+
children: [k.seo ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), b("products.seoMetadata", "SEO Metadata")]
|
|
555
|
+
}), k.seo && /* @__PURE__ */ m("div", {
|
|
556
|
+
className: "space-y-4 animate-in fade-in duration-200",
|
|
557
|
+
children: [
|
|
558
|
+
/* @__PURE__ */ m("div", { children: [
|
|
559
|
+
/* @__PURE__ */ p("label", {
|
|
560
|
+
htmlFor: "seoTitle",
|
|
561
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
562
|
+
children: b("products.seoTitle", "SEO Title")
|
|
563
|
+
}),
|
|
564
|
+
/* @__PURE__ */ p("input", {
|
|
565
|
+
id: "seoTitle",
|
|
566
|
+
type: "text",
|
|
567
|
+
value: x.seoTitle,
|
|
568
|
+
onChange: (e) => S({
|
|
569
|
+
...x,
|
|
570
|
+
seoTitle: e.target.value
|
|
571
|
+
}),
|
|
572
|
+
className: R,
|
|
573
|
+
placeholder: "Product SEO title",
|
|
574
|
+
disabled: y,
|
|
575
|
+
maxLength: 100
|
|
576
|
+
}),
|
|
577
|
+
/* @__PURE__ */ m("div", {
|
|
578
|
+
className: "flex justify-between mt-1",
|
|
579
|
+
children: [D.seoTitle ? /* @__PURE__ */ p("p", {
|
|
580
|
+
className: "text-sm text-[var(--color-status-error)]",
|
|
581
|
+
children: D.seoTitle
|
|
582
|
+
}) : /* @__PURE__ */ p("span", {}), /* @__PURE__ */ m("p", {
|
|
583
|
+
className: "text-xs text-text-tertiary",
|
|
584
|
+
children: [x.seoTitle.length, "/100"]
|
|
585
|
+
})]
|
|
586
|
+
})
|
|
587
|
+
] }),
|
|
588
|
+
/* @__PURE__ */ m("div", { children: [
|
|
589
|
+
/* @__PURE__ */ p("label", {
|
|
590
|
+
htmlFor: "seoDescription",
|
|
591
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
592
|
+
children: b("products.seoDescription", "SEO Description")
|
|
593
|
+
}),
|
|
594
|
+
/* @__PURE__ */ p("textarea", {
|
|
595
|
+
id: "seoDescription",
|
|
596
|
+
value: x.seoDescription,
|
|
597
|
+
onChange: (e) => S({
|
|
598
|
+
...x,
|
|
599
|
+
seoDescription: e.target.value
|
|
600
|
+
}),
|
|
601
|
+
rows: 3,
|
|
602
|
+
className: R,
|
|
603
|
+
placeholder: b("products.seoDescriptionPlaceholder", "Brief description for search engines"),
|
|
604
|
+
disabled: y,
|
|
605
|
+
maxLength: 300
|
|
606
|
+
}),
|
|
607
|
+
/* @__PURE__ */ m("div", {
|
|
608
|
+
className: "flex justify-between mt-1",
|
|
609
|
+
children: [D.seoDescription ? /* @__PURE__ */ p("p", {
|
|
610
|
+
className: "text-sm text-[var(--color-status-error)]",
|
|
611
|
+
children: D.seoDescription
|
|
612
|
+
}) : /* @__PURE__ */ p("span", {}), /* @__PURE__ */ m("p", {
|
|
613
|
+
className: "text-xs text-text-tertiary",
|
|
614
|
+
children: [x.seoDescription.length, "/300"]
|
|
615
|
+
})]
|
|
616
|
+
})
|
|
617
|
+
] }),
|
|
618
|
+
/* @__PURE__ */ m("div", { children: [
|
|
619
|
+
/* @__PURE__ */ p("label", {
|
|
620
|
+
htmlFor: "seoKeywords",
|
|
621
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
622
|
+
children: b("products.seoKeywords", "SEO Keywords")
|
|
623
|
+
}),
|
|
624
|
+
/* @__PURE__ */ p("input", {
|
|
625
|
+
id: "seoKeywords",
|
|
626
|
+
type: "text",
|
|
627
|
+
value: x.seoKeywords,
|
|
628
|
+
onChange: (e) => S({
|
|
629
|
+
...x,
|
|
630
|
+
seoKeywords: e.target.value
|
|
631
|
+
}),
|
|
632
|
+
className: R,
|
|
633
|
+
placeholder: "keyword1, keyword2, keyword3",
|
|
634
|
+
disabled: y,
|
|
635
|
+
maxLength: 200
|
|
636
|
+
}),
|
|
637
|
+
/* @__PURE__ */ p("p", {
|
|
638
|
+
className: "text-xs text-text-tertiary mt-1",
|
|
639
|
+
children: b("products.seoKeywordsHint", "Comma-separated keywords for search engine optimization.")
|
|
640
|
+
}),
|
|
641
|
+
D.seoKeywords && /* @__PURE__ */ p("p", {
|
|
642
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
643
|
+
children: D.seoKeywords
|
|
644
|
+
})
|
|
645
|
+
] }),
|
|
646
|
+
/* @__PURE__ */ m("div", { children: [
|
|
647
|
+
/* @__PURE__ */ p("label", {
|
|
648
|
+
htmlFor: "ogImage",
|
|
649
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
650
|
+
children: b("products.ogImageUrl", "OG Image URL")
|
|
651
|
+
}),
|
|
652
|
+
/* @__PURE__ */ p("input", {
|
|
653
|
+
id: "ogImage",
|
|
654
|
+
type: "url",
|
|
655
|
+
value: x.ogImage,
|
|
656
|
+
onChange: (e) => S({
|
|
657
|
+
...x,
|
|
658
|
+
ogImage: e.target.value
|
|
659
|
+
}),
|
|
660
|
+
className: R,
|
|
661
|
+
placeholder: "https://example.com/og-image.png",
|
|
662
|
+
disabled: y
|
|
663
|
+
}),
|
|
664
|
+
/* @__PURE__ */ p("p", {
|
|
665
|
+
className: "text-xs text-text-tertiary mt-1",
|
|
666
|
+
children: b("products.ogImageHint", "Open Graph image used when sharing on social media.")
|
|
667
|
+
}),
|
|
668
|
+
D.ogImage && /* @__PURE__ */ p("p", {
|
|
669
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
670
|
+
children: D.ogImage
|
|
671
|
+
})
|
|
672
|
+
] })
|
|
673
|
+
]
|
|
674
|
+
})]
|
|
675
|
+
}),
|
|
676
|
+
/* @__PURE__ */ m("div", {
|
|
677
|
+
className: "space-y-4 pt-4 border-t border-default",
|
|
678
|
+
children: [/* @__PURE__ */ m("button", {
|
|
679
|
+
type: "button",
|
|
680
|
+
onClick: () => j("appStore"),
|
|
681
|
+
className: z,
|
|
682
|
+
children: [k.appStore ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), b("products.appStoreLinks", "App Store Links")]
|
|
683
|
+
}), k.appStore && /* @__PURE__ */ m("div", {
|
|
684
|
+
className: "space-y-4 animate-in fade-in duration-200",
|
|
685
|
+
children: [/* @__PURE__ */ m("div", { children: [
|
|
686
|
+
/* @__PURE__ */ p("label", {
|
|
687
|
+
htmlFor: "appStoreUrl",
|
|
688
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
689
|
+
children: b("products.appleAppStoreUrl", "Apple App Store URL")
|
|
690
|
+
}),
|
|
691
|
+
/* @__PURE__ */ p("input", {
|
|
692
|
+
id: "appStoreUrl",
|
|
693
|
+
type: "url",
|
|
694
|
+
value: x.appStoreUrl,
|
|
695
|
+
onChange: (e) => S({
|
|
696
|
+
...x,
|
|
697
|
+
appStoreUrl: e.target.value
|
|
698
|
+
}),
|
|
699
|
+
className: R,
|
|
700
|
+
placeholder: "https://apps.apple.com/app/...",
|
|
701
|
+
disabled: y
|
|
702
|
+
}),
|
|
703
|
+
D.appStoreUrl && /* @__PURE__ */ p("p", {
|
|
704
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
705
|
+
children: D.appStoreUrl
|
|
706
|
+
})
|
|
707
|
+
] }), /* @__PURE__ */ m("div", { children: [
|
|
708
|
+
/* @__PURE__ */ p("label", {
|
|
709
|
+
htmlFor: "playStoreUrl",
|
|
710
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
711
|
+
children: b("products.googlePlayStoreUrl", "Google Play Store URL")
|
|
712
|
+
}),
|
|
713
|
+
/* @__PURE__ */ p("input", {
|
|
714
|
+
id: "playStoreUrl",
|
|
715
|
+
type: "url",
|
|
716
|
+
value: x.playStoreUrl,
|
|
717
|
+
onChange: (e) => S({
|
|
718
|
+
...x,
|
|
719
|
+
playStoreUrl: e.target.value
|
|
720
|
+
}),
|
|
721
|
+
className: R,
|
|
722
|
+
placeholder: "https://play.google.com/store/apps/details?id=...",
|
|
723
|
+
disabled: y
|
|
724
|
+
}),
|
|
725
|
+
D.playStoreUrl && /* @__PURE__ */ p("p", {
|
|
726
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
727
|
+
children: D.playStoreUrl
|
|
728
|
+
})
|
|
729
|
+
] })]
|
|
730
|
+
})]
|
|
731
|
+
}),
|
|
732
|
+
/* @__PURE__ */ m("div", {
|
|
733
|
+
className: "space-y-4 pt-4 border-t border-default",
|
|
734
|
+
children: [/* @__PURE__ */ m("button", {
|
|
735
|
+
type: "button",
|
|
736
|
+
onClick: () => j("social"),
|
|
737
|
+
className: z,
|
|
738
|
+
children: [k.social ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), b("products.socialMediaLinks", "Social Media Links")]
|
|
739
|
+
}), k.social && /* @__PURE__ */ m("div", {
|
|
740
|
+
className: "space-y-4 animate-in fade-in duration-200",
|
|
741
|
+
children: [C.map((e, t) => /* @__PURE__ */ m("div", {
|
|
742
|
+
className: "flex items-start gap-3",
|
|
743
|
+
children: [
|
|
744
|
+
/* @__PURE__ */ m("div", {
|
|
745
|
+
className: "flex-1",
|
|
746
|
+
children: [/* @__PURE__ */ p("label", {
|
|
747
|
+
htmlFor: `socialPlatform-${t}`,
|
|
748
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
749
|
+
children: b("products.platform", "Platform")
|
|
750
|
+
}), /* @__PURE__ */ p("input", {
|
|
751
|
+
id: `socialPlatform-${t}`,
|
|
752
|
+
type: "text",
|
|
753
|
+
value: e.platform,
|
|
754
|
+
onChange: (e) => P(t, "platform", e.target.value),
|
|
755
|
+
className: R,
|
|
756
|
+
placeholder: "e.g. twitter",
|
|
757
|
+
disabled: y
|
|
758
|
+
})]
|
|
759
|
+
}),
|
|
760
|
+
/* @__PURE__ */ m("div", {
|
|
761
|
+
className: "flex-[2]",
|
|
762
|
+
children: [/* @__PURE__ */ p("label", {
|
|
763
|
+
htmlFor: `socialUrl-${t}`,
|
|
764
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
765
|
+
children: b("products.url", "URL")
|
|
766
|
+
}), /* @__PURE__ */ p("input", {
|
|
767
|
+
id: `socialUrl-${t}`,
|
|
768
|
+
type: "url",
|
|
769
|
+
value: e.url,
|
|
770
|
+
onChange: (e) => P(t, "url", e.target.value),
|
|
771
|
+
className: R,
|
|
772
|
+
placeholder: "https://twitter.com/yourproduct",
|
|
773
|
+
disabled: y
|
|
774
|
+
})]
|
|
775
|
+
}),
|
|
776
|
+
/* @__PURE__ */ p("button", {
|
|
777
|
+
type: "button",
|
|
778
|
+
onClick: () => N(t),
|
|
779
|
+
disabled: y,
|
|
780
|
+
className: "\n mt-7 p-2\n text-text-tertiary\n hover:text-[var(--color-status-error)]\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
|
|
781
|
+
title: b("products.removeSocialLink", "Remove social link"),
|
|
782
|
+
children: /* @__PURE__ */ p(f, { size: 16 })
|
|
783
|
+
})
|
|
784
|
+
]
|
|
785
|
+
}, t)), /* @__PURE__ */ m("button", {
|
|
786
|
+
type: "button",
|
|
787
|
+
onClick: M,
|
|
788
|
+
disabled: y,
|
|
789
|
+
className: "\n inline-flex items-center gap-2 px-4 py-2\n text-sm font-medium\n text-text-secondary\n border border-dashed border-default\n rounded-lg\n hover:bg-muted hover:text-text-primary\n transition-all duration-200\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
|
|
790
|
+
children: [/* @__PURE__ */ p(u, { size: 16 }), b("products.addSocialLink", "Add Social Link")]
|
|
791
|
+
})]
|
|
792
|
+
})]
|
|
793
|
+
}),
|
|
794
|
+
/* @__PURE__ */ m("div", {
|
|
795
|
+
className: "border border-default rounded-lg overflow-hidden",
|
|
796
|
+
children: [/* @__PURE__ */ m("button", {
|
|
797
|
+
type: "button",
|
|
798
|
+
onClick: () => j("integrations"),
|
|
799
|
+
className: "\n w-full flex items-center gap-2 px-4 py-3\n text-sm font-semibold text-text-primary\n bg-surface hover:bg-muted\n transition-all duration-200\n ",
|
|
800
|
+
children: [
|
|
801
|
+
k.integrations ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }),
|
|
802
|
+
/* @__PURE__ */ p(d, {
|
|
803
|
+
size: 16,
|
|
804
|
+
className: "text-text-secondary"
|
|
805
|
+
}),
|
|
806
|
+
b("products.integrations", "Integrations"),
|
|
807
|
+
/* @__PURE__ */ p("span", {
|
|
808
|
+
className: "text-xs font-normal text-text-secondary ml-1",
|
|
809
|
+
children: b("products.recaptcha", "(reCAPTCHA)")
|
|
810
|
+
})
|
|
811
|
+
]
|
|
812
|
+
}), k.integrations && /* @__PURE__ */ m("div", {
|
|
813
|
+
className: "px-4 pb-4 pt-2 space-y-4 border-t border-default",
|
|
814
|
+
children: [
|
|
815
|
+
/* @__PURE__ */ p("p", {
|
|
816
|
+
className: "text-xs text-text-secondary",
|
|
817
|
+
children: b("products.recaptchaDescription", "reCAPTCHA v2 keys for bot protection on website forms (newsletter, contact). Site key is public, secret key is used for server-side verification only.")
|
|
818
|
+
}),
|
|
819
|
+
/* @__PURE__ */ m("div", { children: [
|
|
820
|
+
/* @__PURE__ */ p("label", {
|
|
821
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
822
|
+
children: b("products.recaptchaSiteKey", "reCAPTCHA Site Key")
|
|
823
|
+
}),
|
|
824
|
+
/* @__PURE__ */ p("input", {
|
|
825
|
+
type: "text",
|
|
826
|
+
name: "recaptchaSiteKey",
|
|
827
|
+
defaultValue: g?.recaptchaSiteKey || "",
|
|
828
|
+
disabled: y,
|
|
829
|
+
placeholder: "6Lxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
830
|
+
className: "\n w-full px-3 py-2\n bg-[var(--color-bg-input)] text-text-primary\n border border-default rounded-lg\n focus:outline-none focus:ring-2 focus:ring-[var(--color-action-primary-bg)] focus:border-transparent\n disabled:opacity-50\n text-sm font-mono\n transition-all duration-200\n "
|
|
831
|
+
}),
|
|
832
|
+
/* @__PURE__ */ p("p", {
|
|
833
|
+
className: "text-xs text-text-secondary mt-1",
|
|
834
|
+
children: b("products.recaptchaSiteKeyHint", "Public key — exposed in frontend. Register at google.com/recaptcha/admin")
|
|
835
|
+
})
|
|
836
|
+
] }),
|
|
837
|
+
/* @__PURE__ */ m("div", { children: [
|
|
838
|
+
/* @__PURE__ */ p("label", {
|
|
839
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
840
|
+
children: b("products.recaptchaSecretKey", "reCAPTCHA Secret Key")
|
|
841
|
+
}),
|
|
842
|
+
/* @__PURE__ */ p("input", {
|
|
843
|
+
type: "password",
|
|
844
|
+
name: "recaptchaSecretKey",
|
|
845
|
+
defaultValue: "",
|
|
846
|
+
disabled: y,
|
|
847
|
+
placeholder: b("products.enterSecretKeyPlaceholder", "Enter secret key (leave empty to keep existing)"),
|
|
848
|
+
className: "\n w-full px-3 py-2\n bg-[var(--color-bg-input)] text-text-primary\n border border-default rounded-lg\n focus:outline-none focus:ring-2 focus:ring-[var(--color-action-primary-bg)] focus:border-transparent\n disabled:opacity-50\n text-sm font-mono\n transition-all duration-200\n "
|
|
849
|
+
}),
|
|
850
|
+
/* @__PURE__ */ p("p", {
|
|
851
|
+
className: "text-xs text-text-secondary mt-1",
|
|
852
|
+
children: b("products.recaptchaSecretKeyHint", "Secret key — server-side only, never exposed via public API")
|
|
853
|
+
})
|
|
854
|
+
] })
|
|
855
|
+
]
|
|
856
|
+
})]
|
|
857
|
+
}),
|
|
858
|
+
/* @__PURE__ */ m("div", {
|
|
859
|
+
className: "flex gap-3 pt-4 border-t border-default",
|
|
860
|
+
children: [/* @__PURE__ */ m("button", {
|
|
861
|
+
type: "submit",
|
|
862
|
+
disabled: y,
|
|
863
|
+
className: "\n inline-flex items-center gap-2 px-6 py-2.5\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
|
|
864
|
+
children: [y && /* @__PURE__ */ p(l, {
|
|
865
|
+
size: 16,
|
|
866
|
+
className: "animate-spin"
|
|
867
|
+
}), g ? b("products.updateProduct", "Update Product") : b("products.createProduct", "Create Product")]
|
|
868
|
+
}), /* @__PURE__ */ p("button", {
|
|
869
|
+
type: "button",
|
|
870
|
+
onClick: v,
|
|
871
|
+
disabled: y,
|
|
872
|
+
className: "\n px-6 py-2.5\n bg-transparent\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
|
|
873
|
+
children: b("productCommon.cancel", "Cancel")
|
|
874
|
+
})]
|
|
875
|
+
})
|
|
876
|
+
]
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
//#endregion
|
|
880
|
+
export { g as ProductForm };
|
|
881
|
+
|
|
882
|
+
//# sourceMappingURL=ProductForm.js.map
|