@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 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPageDetailPage.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport { ArrowLeft, Edit, Trash2, FileText, Globe, Package } from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useContentPage, useDeleteContentPage } from '../hooks/useContentPages';\nimport { ContentPageStatusBadge } from '../components/ContentPageStatusBadge';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { TagList } from '../../../shared/components/TagList';\nimport { AuditHistoryTab } from '../../../shared/components/AuditHistoryTab';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\n\n/**\n * Simple markdown renderer for content preview\n * Converts basic markdown syntax to HTML\n */\nfunction renderMarkdown(content: string): string {\n return (\n content\n // Headers\n .replace(/^### (.+)$/gm, '<h3 class=\"text-lg font-semibold mt-4 mb-2\">$1</h3>')\n .replace(/^## (.+)$/gm, '<h2 class=\"text-xl font-semibold mt-5 mb-2\">$1</h2>')\n .replace(/^# (.+)$/gm, '<h1 class=\"text-2xl font-bold mt-6 mb-3\">$1</h1>')\n // Bold and italic\n .replace(/\\*\\*(.+?)\\*\\*/g, '<strong>$1</strong>')\n .replace(/\\*(.+?)\\*/g, '<em>$1</em>')\n // Inline code\n .replace(\n /`(.+?)`/g,\n '<code class=\"px-1.5 py-0.5 bg-muted rounded text-sm font-mono\">$1</code>'\n )\n // Code blocks\n .replace(/```[\\s\\S]*?```/g, (match) => {\n const code = match.replace(/```\\w*\\n?/, '').replace(/\\n?```$/, '');\n return `<pre class=\"bg-muted rounded-lg p-4 overflow-x-auto my-3\"><code class=\"text-sm font-mono\">${code}</code></pre>`;\n })\n // Links\n .replace(\n /\\[(.+?)\\]\\((.+?)\\)/g,\n '<a href=\"$2\" class=\"text-[var(--color-status-info)] underline\">$1</a>'\n )\n // Unordered lists\n .replace(/^- (.+)$/gm, '<li class=\"ml-4 list-disc\">$1</li>')\n // Paragraphs (double newline)\n .replace(/\\n\\n/g, '</p><p class=\"mb-3\">')\n // Single newlines\n .replace(/\\n/g, '<br/>')\n );\n}\n\n/**\n * Content Page Detail Page\n * Shows comprehensive content page information\n */\nexport function ContentPageDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const contentPagesBasePath = `${basePath}/content-pages`;\n const { contentPage, loading, error } = useContentPage(id!);\n const { deleteContentPage, loading: deleteLoading } = useDeleteContentPage();\n const tr = useTr();\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const message = tr(\n 'contentPages.confirmDelete',\n 'Are you sure you want to delete this content page?'\n );\n const native = await nativeConfirm({\n title: 'Delete content page',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok = native === null ? window.confirm(message) : native;\n if (!ok) return;\n\n try {\n await deleteContentPage(id!);\n void nativeNotify('success');\n navigate(contentPagesBasePath);\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to delete content page:', error);\n }\n };\n\n if (loading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('contentPages.loadingContentPage', 'Loading content page...')} />\n </div>\n );\n }\n\n if (error || !contentPage) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={\n error?.message || tr('contentPages.contentPageNotFound', 'Content page not found')\n }\n action={{\n label: tr('contentPages.backToContentPages', 'Back to Content Pages'),\n onClick: () => navigate(contentPagesBasePath),\n }}\n />\n </div>\n );\n }\n\n const formatDate = (dateString: string | null) => {\n if (!dateString) return '—';\n return new Date(dateString).toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n });\n };\n\n const hasSeo = contentPage.seoTitle || contentPage.seoDescription || contentPage.seoKeywords;\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n onClick={() => navigate(contentPagesBasePath)}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n \"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('contentPages.backToContentPages', 'Back to Content Pages')}\n </span>\n </button>\n\n <div className=\"flex items-start justify-between\">\n <div className=\"flex items-center gap-4\">\n <div className=\"w-16 h-16 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center\">\n <FileText size={32} className=\"text-[var(--color-status-info)]\" />\n </div>\n\n <div>\n <div className=\"flex items-center gap-3 mb-2\">\n <h1 className=\"text-3xl font-bold text-text-primary\">{contentPage.title}</h1>\n <ContentPageStatusBadge isPublished={contentPage.isPublished} />\n </div>\n <p className=\"text-text-secondary\">/{contentPage.slug}</p>\n </div>\n </div>\n\n <div className=\"flex gap-2\">\n <button\n onClick={() => navigate(`${contentPagesBasePath}/${id}/edit`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n \"\n >\n <Edit size={16} />\n Edit Page\n </button>\n\n <button\n onClick={handleDelete}\n disabled={deleteLoading}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error-border)]\n rounded-lg\n hover:opacity-80\n transition-all duration-200\n font-medium\n disabled:opacity-50\n \"\n >\n <Trash2 size={16} />\n Delete\n </button>\n </div>\n </div>\n </div>\n\n {/* Content */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Content Preview */}\n <div className=\"lg:col-span-2 bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.contentPreview', 'Content Preview')}\n </h2>\n <div\n className=\"prose prose-sm max-w-none text-text-secondary leading-relaxed\"\n dangerouslySetInnerHTML={{\n __html:\n contentPage.contentFormat === 'markdown'\n ? renderMarkdown(contentPage.content)\n : contentPage.content,\n }}\n />\n </div>\n\n {/* Metadata */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.metadata', 'Metadata')}\n </h2>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.slug', 'Slug')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">{contentPage.slug}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.version', 'Version')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">v{contentPage.version}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.contentFormat', 'Content Format')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 capitalize\">\n {contentPage.contentFormat}\n </dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.sortOrder', 'Sort Order')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">{contentPage.sortOrder}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.created', 'Created')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.createdAt)}\n </dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.lastUpdated', 'Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.updatedAt)}\n </dd>\n </div>\n {contentPage.lastUpdated && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.contentLastUpdated', 'Content Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.lastUpdated)}\n </dd>\n </div>\n )}\n </dl>\n </div>\n\n {/* SEO Information */}\n {hasSeo && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <div className=\"flex items-center gap-2 mb-4\">\n <Globe size={20} className=\"text-text-secondary\" />\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr('contentPages.seoInformation', 'SEO Information')}\n </h2>\n </div>\n <dl className=\"space-y-3\">\n {contentPage.seoTitle && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoTitle', 'SEO Title')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.seoTitle}</dd>\n </div>\n )}\n {contentPage.seoDescription && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoDescription', 'SEO Description')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.seoDescription}</dd>\n </div>\n )}\n {contentPage.seoKeywords && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoKeywords', 'SEO Keywords')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n <div className=\"flex flex-wrap gap-1.5 mt-1\">\n {contentPage.seoKeywords.split(',').map((keyword, index) => (\n <span\n key={index}\n className=\"\n inline-flex px-2 py-0.5\n bg-muted\n text-text-secondary\n rounded-md text-xs font-medium\n \"\n >\n {keyword.trim()}\n </span>\n ))}\n </div>\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* Product Association */}\n {contentPage.productId && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <div className=\"flex items-center gap-2 mb-4\">\n <Package size={20} className=\"text-text-secondary\" />\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr('contentPages.productAssociation', 'Product Association')}\n </h2>\n </div>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productId', 'Product ID')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">\n {contentPage.productId}\n </dd>\n </div>\n {contentPage.product && (\n <>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productName', 'Product Name')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.product.name}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productSlug', 'Product Slug')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">\n /{contentPage.product.slug}\n </dd>\n </div>\n </>\n )}\n </dl>\n </div>\n )}\n\n {/* Tags */}\n {contentPage.tags && contentPage.tags.length > 0 && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.tags', 'Tags')}\n </h2>\n <TagList tags={contentPage.tags} />\n </div>\n )}\n\n {/* Activity History */}\n <div className=\"lg:col-span-2 bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]\">\n <h2 className=\"text-lg font-semibold text-text-primary p-6 pb-0\">\n {tr('contentPages.activityHistory', 'Activity History')}\n </h2>\n <AuditHistoryTab resourceId={contentPage.id} resourceType=\"ProductContentPage\" />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,SAAS,EAAe,GAAyB;AAC/C,QACE,EAEG,QAAQ,gBAAgB,wDAAsD,CAC9E,QAAQ,eAAe,wDAAsD,CAC7E,QAAQ,cAAc,qDAAmD,CAEzE,QAAQ,kBAAkB,sBAAsB,CAChD,QAAQ,cAAc,cAAc,CAEpC,QACC,YACA,6EACD,CAEA,QAAQ,oBAAoB,MAEpB,6FADM,EAAM,QAAQ,aAAa,GAAG,CAAC,QAAQ,WAAW,GACqC,CAAK,eACzG,CAED,QACC,uBACA,4EACD,CAEA,QAAQ,cAAc,uCAAqC,CAE3D,QAAQ,SAAS,yBAAuB,CAExC,QAAQ,OAAO,QAAQ;;AAQ9B,SAAgB,IAAwB;CACtC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAuB,GAAG,EAAS,iBACnC,EAAE,gBAAa,YAAS,aAAU,EAAe,EAAI,EACrD,EAAE,sBAAmB,SAAS,MAAkB,GAAsB,EACtE,IAAK,GAAO,EAEZ,IAAe,YAAY;AAC1B,IAAa,SAAS;EAC3B,IAAM,IAAU,EACd,8BACA,qDACD,EACK,IAAS,MAAM,EAAc;GACjC,OAAO;GACP;GACA,eAAe;GACf,mBAAmB;GACpB,CAAC;AACS,YAAW,OAAO,OAAO,QAAQ,EAAQ,GAAG,EAGvD,KAAI;AAGF,GAFA,MAAM,EAAkB,EAAI,EACvB,EAAa,UAAU,EAC5B,EAAS,EAAqB;WACvB,GAAO;AAEd,GADK,EAAa,QAAQ,EAC1B,QAAQ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AAD;OAAI,WAAU;iBACX,EAAG,4BAA4B,eAAe;OAC5C,CAAA,EACL,kBAAC,MAAD;OAAI,WAAU;iBAAd,CAAyD,KACrD,EAAY,QAAQ,KACnB;SACD,EAAA,CAAA,CACL,EAAA,CAAA,CAEF;QACD;;IAIP,EAAY,QAAQ,EAAY,KAAK,SAAS,KAC7C,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,qBAAqB,OAAO;MAC7B,CAAA,EACL,kBAAC,GAAD,EAAS,MAAM,EAAY,MAAQ,CAAA,CAC/B;;IAIR,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,gCAAgC,mBAAmB;MACpD,CAAA,EACL,kBAAC,GAAD;MAAiB,YAAY,EAAY;MAAI,cAAa;MAAuB,CAAA,CAC7E;;IACF;KACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPageEditPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx"],"names":[],"mappings":"AAWA,wBAAgB,mBAAmB,4CA+FlC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
+
import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
|
|
4
|
+
import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
|
|
5
|
+
import { useContentPage as i, useUpdateContentPage as a } from "../hooks/useContentPages.js";
|
|
6
|
+
import { ContentPageForm as o } from "../components/ContentPageForm.js";
|
|
7
|
+
import { useState as s } from "react";
|
|
8
|
+
import { ArrowLeft as c } from "lucide-react";
|
|
9
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { useParams as d } from "react-router-dom";
|
|
11
|
+
//#region src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx
|
|
12
|
+
function f() {
|
|
13
|
+
let { id: f } = d(), { navigate: p, basePath: m = "/products" } = t(), h = `${m}/content-pages`, { contentPage: g, loading: _, error: v } = i(f), { updateContentPage: y, loading: b } = a(), [x, S] = s(null), C = e(), w = async (e) => {
|
|
14
|
+
if (f) try {
|
|
15
|
+
S(null), await y(f, e), p(`${h}/${f}`);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
S(e instanceof Error ? e.message : "Failed to update content page"), console.error("Failed to update content page:", e);
|
|
18
|
+
}
|
|
19
|
+
}, T = () => {
|
|
20
|
+
p(`${h}/${f}`);
|
|
21
|
+
};
|
|
22
|
+
return _ ? /* @__PURE__ */ l("div", {
|
|
23
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
24
|
+
children: /* @__PURE__ */ l(n, { message: C("contentPages.loadingContentPage", "Loading content page...") })
|
|
25
|
+
}) : v || !g ? /* @__PURE__ */ l("div", {
|
|
26
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
27
|
+
children: /* @__PURE__ */ l(r, {
|
|
28
|
+
message: v?.message || C("contentPages.contentPageNotFound", "Content page not found"),
|
|
29
|
+
action: {
|
|
30
|
+
label: C("contentPages.backToContentPages", "Back to Content Pages"),
|
|
31
|
+
onClick: () => p(h)
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
}) : /* @__PURE__ */ u("div", {
|
|
35
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ u("div", {
|
|
38
|
+
className: "mb-6",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ u("button", {
|
|
41
|
+
onClick: T,
|
|
42
|
+
className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n ",
|
|
43
|
+
children: [/* @__PURE__ */ l(c, { size: 20 }), /* @__PURE__ */ u("span", {
|
|
44
|
+
className: "text-sm font-medium",
|
|
45
|
+
children: [
|
|
46
|
+
C("contentPages.backTo", "Back to"),
|
|
47
|
+
" ",
|
|
48
|
+
g.title
|
|
49
|
+
]
|
|
50
|
+
})]
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ l("h1", {
|
|
53
|
+
className: "text-3xl font-bold text-text-primary mb-2",
|
|
54
|
+
children: C("contentPages.editContentPage", "Edit Content Page")
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ l("p", {
|
|
57
|
+
className: "text-text-secondary",
|
|
58
|
+
children: C("contentPages.editContentPageSubtitle", "Update content page information")
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
}),
|
|
62
|
+
x && /* @__PURE__ */ l("div", {
|
|
63
|
+
className: "mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg",
|
|
64
|
+
children: /* @__PURE__ */ l("p", {
|
|
65
|
+
className: "text-sm text-[var(--color-status-error)]",
|
|
66
|
+
children: x
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ l("div", {
|
|
70
|
+
className: "max-w-2xl",
|
|
71
|
+
children: /* @__PURE__ */ l("div", {
|
|
72
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
73
|
+
children: /* @__PURE__ */ l(o, {
|
|
74
|
+
contentPage: g,
|
|
75
|
+
onSubmit: w,
|
|
76
|
+
onCancel: T,
|
|
77
|
+
loading: b
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { f as ContentPageEditPage };
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=ContentPageEditPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPageEditPage.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { ArrowLeft } from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useContentPage, useUpdateContentPage } from '../hooks/useContentPages';\nimport { ContentPageForm } from '../components/ContentPageForm';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport type { UpdateContentPageInput } from '../types';\n\nexport function ContentPageEditPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const contentPagesBasePath = `${basePath}/content-pages`;\n const { contentPage, loading: fetchLoading, error: fetchError } = useContentPage(id!);\n const { updateContentPage, loading: updateLoading } = useUpdateContentPage();\n const [error, setError] = useState<string | null>(null);\n const tr = useTr();\n\n const handleSubmit = async (data: UpdateContentPageInput) => {\n if (!id) return;\n\n try {\n setError(null);\n await updateContentPage(id, data);\n navigate(`${contentPagesBasePath}/${id}`);\n } catch (err) {\n const message = err instanceof Error ? err.message : 'Failed to update content page';\n setError(message);\n console.error('Failed to update content page:', err);\n }\n };\n\n const handleCancel = () => {\n navigate(`${contentPagesBasePath}/${id}`);\n };\n\n if (fetchLoading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('contentPages.loadingContentPage', 'Loading content page...')} />\n </div>\n );\n }\n\n if (fetchError || !contentPage) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={\n fetchError?.message || tr('contentPages.contentPageNotFound', 'Content page not found')\n }\n action={{\n label: tr('contentPages.backToContentPages', 'Back to Content Pages'),\n onClick: () => navigate(contentPagesBasePath),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n <div className=\"mb-6\">\n <button\n onClick={handleCancel}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n \"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('contentPages.backTo', 'Back to')} {contentPage.title}\n </span>\n </button>\n\n <h1 className=\"text-3xl font-bold text-text-primary mb-2\">\n {tr('contentPages.editContentPage', 'Edit Content Page')}\n </h1>\n <p className=\"text-text-secondary\">\n {tr('contentPages.editContentPageSubtitle', 'Update content page information')}\n </p>\n </div>\n\n {error && (\n <div className=\"mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg\">\n <p className=\"text-sm text-[var(--color-status-error)]\">{error}</p>\n </div>\n )}\n\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <ContentPageForm\n contentPage={contentPage}\n onSubmit={handleSubmit}\n onCancel={handleCancel}\n loading={updateLoading}\n />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,IAAsB;CACpC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAuB,GAAG,EAAS,iBACnC,EAAE,gBAAa,SAAS,GAAc,OAAO,MAAe,EAAe,EAAI,EAC/E,EAAE,sBAAmB,SAAS,MAAkB,GAAsB,EACtE,CAAC,GAAO,KAAY,EAAwB,KAAK,EACjD,IAAK,GAAO,EAEZ,IAAe,OAAO,MAAiC;AACtD,QAEL,KAAI;AAGF,GAFA,EAAS,KAAK,EACd,MAAM,EAAkB,GAAI,EAAK,EACjC,EAAS,GAAG,EAAqB,GAAG,IAAK;WAClC,GAAK;AAGZ,GADA,EADgB,aAAe,QAAQ,EAAI,UAAU,gCACpC,EACjB,QAAQ,MAAM,kCAAkC,EAAI;;IAIlD,UAAqB;AACzB,IAAS,GAAG,EAAqB,GAAG,IAAK;;AA2B3C,QAxBI,IAEA,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAc,SAAS,EAAG,mCAAmC,0BAA0B,EAAI,CAAA;EACvF,CAAA,GAIN,KAAc,CAAC,IAEf,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GACE,SACE,GAAY,WAAW,EAAG,oCAAoC,yBAAyB;GAEzF,QAAQ;IACN,OAAO,EAAG,mCAAmC,wBAAwB;IACrE,eAAe,EAAS,EAAqB;IAC9C;GACD,CAAA;EACE,CAAA,GAKR,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,UAAD;MACE,SAAS;MACT,WAAU;gBAFZ,CASE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACvB,kBAAC,QAAD;OAAM,WAAU;iBAAhB;QACG,EAAG,uBAAuB,UAAU;QAAC;QAAE,EAAY;QAC/C;SACA;;KAET,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,gCAAgC,oBAAoB;MACrD,CAAA;KACL,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAG,wCAAwC,kCAAkC;MAC5E,CAAA;KACA;;GAEL,KACC,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAA4C;KAAU,CAAA;IAC/D,CAAA;GAGR,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MACe;MACb,UAAU;MACV,UAAU;MACV,SAAS;MACT,CAAA;KACE,CAAA;IACF,CAAA;GACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPagesListPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx"],"names":[],"mappings":"AAcA,wBAAgB,oBAAoB,4CAqTnC"}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
+
import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
|
|
4
|
+
import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
|
|
5
|
+
import { SearchInput as i } from "../../../shared/components/input/SearchInput.js";
|
|
6
|
+
import { exportToCsv as a } from "../../../shared/utils/exportUtils.js";
|
|
7
|
+
import { nativeConfirm as o, nativeImpact as s, nativeNotify as c } from "../../../../utils/nativeBridge.js";
|
|
8
|
+
import { useContentPages as l, useDeleteContentPage as u } from "../hooks/useContentPages.js";
|
|
9
|
+
import { ContentPageStatusBadge as d } from "../components/ContentPageStatusBadge.js";
|
|
10
|
+
import { useState as f } from "react";
|
|
11
|
+
import { Download as p, Eye as m, FileText as h, Plus as g, RefreshCw as _, SquarePen as v, Trash2 as y } from "lucide-react";
|
|
12
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
13
|
+
import { PermissionGate as S } from "@burdenoff/fe-libs/shared/components";
|
|
14
|
+
//#region src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx
|
|
15
|
+
function C() {
|
|
16
|
+
let { navigate: C, basePath: w = "/products" } = t(), T = `${w}/content-pages`, [E, D] = f(""), O = e(), [k, A] = f({}), { contentPages: j, loading: M, error: N, refetch: P } = l(void 0, {
|
|
17
|
+
...k,
|
|
18
|
+
search: E || void 0
|
|
19
|
+
}, { limit: 20 }), { deleteContentPage: F, loading: I } = u(), L = async (e) => {
|
|
20
|
+
s("medium");
|
|
21
|
+
let t = O("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), n = await o({
|
|
22
|
+
title: "Delete content page",
|
|
23
|
+
message: t,
|
|
24
|
+
okButtonTitle: "Delete",
|
|
25
|
+
cancelButtonTitle: "Cancel"
|
|
26
|
+
});
|
|
27
|
+
if (n === null ? window.confirm(t) : n) try {
|
|
28
|
+
await F(e), c("success"), P();
|
|
29
|
+
} catch (e) {
|
|
30
|
+
c("error"), console.error("Failed to delete content page:", e);
|
|
31
|
+
}
|
|
32
|
+
}, R = (e) => e ? new Date(e).toLocaleDateString("en-US", {
|
|
33
|
+
year: "numeric",
|
|
34
|
+
month: "short",
|
|
35
|
+
day: "numeric"
|
|
36
|
+
}) : "—";
|
|
37
|
+
return M ? /* @__PURE__ */ b("div", {
|
|
38
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
39
|
+
children: /* @__PURE__ */ b(n, { message: O("contentPages.loadingContentPages", "Loading content pages...") })
|
|
40
|
+
}) : N ? /* @__PURE__ */ b("div", {
|
|
41
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
42
|
+
children: /* @__PURE__ */ b(r, {
|
|
43
|
+
message: N.message,
|
|
44
|
+
action: {
|
|
45
|
+
label: O("productCommon.retry", "Retry"),
|
|
46
|
+
onClick: () => P()
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
}) : /* @__PURE__ */ x("div", {
|
|
50
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
51
|
+
children: [/* @__PURE__ */ x("div", {
|
|
52
|
+
className: "mb-6",
|
|
53
|
+
children: [/* @__PURE__ */ x("div", {
|
|
54
|
+
className: "flex items-center justify-between mb-4",
|
|
55
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h1", {
|
|
56
|
+
className: "text-3xl font-bold text-text-primary mb-2",
|
|
57
|
+
children: O("contentPages.title", "Content Pages")
|
|
58
|
+
}), /* @__PURE__ */ b("p", {
|
|
59
|
+
className: "text-text-secondary",
|
|
60
|
+
children: O("contentPages.subtitle", "Manage content pages and documentation")
|
|
61
|
+
})] }), /* @__PURE__ */ b(S, {
|
|
62
|
+
role: "super_admin",
|
|
63
|
+
children: /* @__PURE__ */ x("button", {
|
|
64
|
+
onClick: () => C(`${T}/new`),
|
|
65
|
+
className: "\n inline-flex items-center gap-2 px-4 py-2\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 ",
|
|
66
|
+
children: [/* @__PURE__ */ b(g, { size: 20 }), O("contentPages.newPage", "New Page")]
|
|
67
|
+
})
|
|
68
|
+
})]
|
|
69
|
+
}), /* @__PURE__ */ x("div", {
|
|
70
|
+
className: "flex gap-4",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ b(i, {
|
|
73
|
+
value: E,
|
|
74
|
+
onChange: D,
|
|
75
|
+
placeholder: O("contentPages.searchPlaceholder", "Search content pages..."),
|
|
76
|
+
className: "flex-1"
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ x("select", {
|
|
79
|
+
value: k.isPublished === void 0 ? "" : k.isPublished ? "published" : "all",
|
|
80
|
+
onChange: (e) => A({
|
|
81
|
+
...k,
|
|
82
|
+
isPublished: e.target.value === "published" ? !0 : void 0
|
|
83
|
+
}),
|
|
84
|
+
className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
|
|
85
|
+
children: [/* @__PURE__ */ b("option", {
|
|
86
|
+
value: "",
|
|
87
|
+
children: O("contentPages.filterAll", "All")
|
|
88
|
+
}), /* @__PURE__ */ b("option", {
|
|
89
|
+
value: "published",
|
|
90
|
+
children: O("contentPages.publishedOnly", "Published Only")
|
|
91
|
+
})]
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ b("button", {
|
|
94
|
+
onClick: () => P(),
|
|
95
|
+
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n ",
|
|
96
|
+
children: /* @__PURE__ */ b(_, { size: 18 })
|
|
97
|
+
}),
|
|
98
|
+
j.length > 0 && /* @__PURE__ */ b("button", {
|
|
99
|
+
onClick: () => a("content-pages", j.map((e) => ({
|
|
100
|
+
id: e.id,
|
|
101
|
+
slug: e.slug,
|
|
102
|
+
title: e.title,
|
|
103
|
+
isPublished: e.isPublished,
|
|
104
|
+
contentFormat: e.contentFormat,
|
|
105
|
+
tags: (e.tags ?? []).join(", "),
|
|
106
|
+
sortOrder: e.sortOrder,
|
|
107
|
+
productId: e.productId ?? "",
|
|
108
|
+
createdAt: e.createdAt,
|
|
109
|
+
updatedAt: e.updatedAt
|
|
110
|
+
}))),
|
|
111
|
+
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n ",
|
|
112
|
+
title: O("contentPages.exportCsv", "Export as CSV"),
|
|
113
|
+
children: /* @__PURE__ */ b(p, { size: 18 })
|
|
114
|
+
})
|
|
115
|
+
]
|
|
116
|
+
})]
|
|
117
|
+
}), j.length === 0 ? /* @__PURE__ */ x("div", {
|
|
118
|
+
className: "bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-300",
|
|
119
|
+
children: [/* @__PURE__ */ b("p", {
|
|
120
|
+
className: "text-text-secondary mb-4",
|
|
121
|
+
children: O("contentPages.noContentPagesFound", "No content pages found")
|
|
122
|
+
}), /* @__PURE__ */ x("button", {
|
|
123
|
+
onClick: () => C(`${T}/new`),
|
|
124
|
+
className: "\n inline-flex items-center gap-2 px-4 py-2\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 ",
|
|
125
|
+
children: [/* @__PURE__ */ b(g, { size: 20 }), O("contentPages.newPage", "New Page")]
|
|
126
|
+
})]
|
|
127
|
+
}) : /* @__PURE__ */ b("div", {
|
|
128
|
+
className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden",
|
|
129
|
+
children: /* @__PURE__ */ x("table", {
|
|
130
|
+
className: "w-full",
|
|
131
|
+
children: [/* @__PURE__ */ b("thead", {
|
|
132
|
+
className: "bg-muted border-b border-default",
|
|
133
|
+
children: /* @__PURE__ */ x("tr", { children: [
|
|
134
|
+
/* @__PURE__ */ b("th", {
|
|
135
|
+
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
136
|
+
children: O("contentPages.columnPage", "Page")
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ b("th", {
|
|
139
|
+
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
140
|
+
children: O("contentPages.columnSlug", "Slug")
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ b("th", {
|
|
143
|
+
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
144
|
+
children: O("contentPages.columnStatus", "Status")
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ b("th", {
|
|
147
|
+
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
148
|
+
children: O("contentPages.columnVersion", "Version")
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ b("th", {
|
|
151
|
+
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
152
|
+
children: O("contentPages.columnLastUpdated", "Last Updated")
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ b("th", {
|
|
155
|
+
className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
156
|
+
children: O("contentPages.columnActions", "Actions")
|
|
157
|
+
})
|
|
158
|
+
] })
|
|
159
|
+
}), /* @__PURE__ */ b("tbody", {
|
|
160
|
+
className: "divide-y divide-[var(--color-border-default)]",
|
|
161
|
+
children: j.map((e) => /* @__PURE__ */ x("tr", {
|
|
162
|
+
className: "hover:bg-muted transition-all duration-200 cursor-pointer",
|
|
163
|
+
onClick: () => C(`${T}/${e.id}`),
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ b("td", {
|
|
166
|
+
className: "px-6 py-4",
|
|
167
|
+
children: /* @__PURE__ */ x("div", {
|
|
168
|
+
className: "flex items-center gap-3",
|
|
169
|
+
children: [/* @__PURE__ */ b("div", {
|
|
170
|
+
className: "w-10 h-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center",
|
|
171
|
+
children: /* @__PURE__ */ b(h, {
|
|
172
|
+
size: 20,
|
|
173
|
+
className: "text-[var(--color-status-info)]"
|
|
174
|
+
})
|
|
175
|
+
}), /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b("p", {
|
|
176
|
+
className: "font-medium text-text-primary",
|
|
177
|
+
children: e.title
|
|
178
|
+
}) })]
|
|
179
|
+
})
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ b("td", {
|
|
182
|
+
className: "px-6 py-4",
|
|
183
|
+
children: /* @__PURE__ */ x("span", {
|
|
184
|
+
className: "text-sm text-text-tertiary font-mono",
|
|
185
|
+
children: ["/", e.slug]
|
|
186
|
+
})
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ b("td", {
|
|
189
|
+
className: "px-6 py-4",
|
|
190
|
+
children: /* @__PURE__ */ b(d, { isPublished: e.isPublished })
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ b("td", {
|
|
193
|
+
className: "px-6 py-4",
|
|
194
|
+
children: /* @__PURE__ */ x("span", {
|
|
195
|
+
className: "text-sm text-text-primary font-mono",
|
|
196
|
+
children: ["v", e.version]
|
|
197
|
+
})
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ b("td", {
|
|
200
|
+
className: "px-6 py-4",
|
|
201
|
+
children: /* @__PURE__ */ b("span", {
|
|
202
|
+
className: "text-sm text-text-secondary",
|
|
203
|
+
children: R(e.lastUpdated || e.updatedAt)
|
|
204
|
+
})
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ b("td", {
|
|
207
|
+
className: "px-6 py-4",
|
|
208
|
+
children: /* @__PURE__ */ x("div", {
|
|
209
|
+
className: "flex items-center justify-end gap-2",
|
|
210
|
+
onClick: (e) => e.stopPropagation(),
|
|
211
|
+
children: [/* @__PURE__ */ b("button", {
|
|
212
|
+
onClick: () => C(`${T}/${e.id}`),
|
|
213
|
+
className: "p-2 rounded-lg text-text-secondary hover:bg-muted transition-all duration-200",
|
|
214
|
+
title: O("contentPages.viewDetails", "View details"),
|
|
215
|
+
children: /* @__PURE__ */ b(m, { size: 18 })
|
|
216
|
+
}), /* @__PURE__ */ x(S, {
|
|
217
|
+
role: "super_admin",
|
|
218
|
+
children: [/* @__PURE__ */ b("button", {
|
|
219
|
+
onClick: () => C(`${T}/${e.id}/edit`),
|
|
220
|
+
className: "p-2 rounded-lg text-text-secondary hover:bg-muted transition-all duration-200",
|
|
221
|
+
title: O("contentPages.edit", "Edit"),
|
|
222
|
+
children: /* @__PURE__ */ b(v, { size: 18 })
|
|
223
|
+
}), /* @__PURE__ */ b("button", {
|
|
224
|
+
onClick: () => L(e.id),
|
|
225
|
+
disabled: I,
|
|
226
|
+
className: "p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50",
|
|
227
|
+
title: O("contentPages.delete", "Delete"),
|
|
228
|
+
children: /* @__PURE__ */ b(y, { size: 18 })
|
|
229
|
+
})]
|
|
230
|
+
})]
|
|
231
|
+
})
|
|
232
|
+
})
|
|
233
|
+
]
|
|
234
|
+
}, e.id))
|
|
235
|
+
})]
|
|
236
|
+
})
|
|
237
|
+
})]
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
//#endregion
|
|
241
|
+
export { C as ContentPagesListPage };
|
|
242
|
+
|
|
243
|
+
//# sourceMappingURL=ContentPagesListPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPagesListPage.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { Download, FileText, Plus, Eye, SquarePen, Trash2, RefreshCw } from 'lucide-react';\nimport { PermissionGate } from '@burdenoff/fe-libs/shared/components';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useContentPages, useDeleteContentPage } from '../hooks/useContentPages';\nimport { ContentPageStatusBadge } from '../components/ContentPageStatusBadge';\nimport { SearchInput } from '../../../shared/components/input/SearchInput';\nimport { exportToCsv } from '../../../shared/utils/exportUtils';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport type { ContentPageFilterInput } from '../types';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\n\nexport function ContentPagesListPage() {\n const { navigate, basePath = '/products' } = useProductConsole();\n const contentPagesBasePath = `${basePath}/content-pages`;\n const [searchQuery, setSearchQuery] = useState('');\n const tr = useTr();\n const [filter, setFilter] = useState<ContentPageFilterInput>({});\n\n const { contentPages, loading, error, refetch } = useContentPages(\n undefined,\n { ...filter, search: searchQuery || undefined },\n { limit: 20 }\n );\n\n const { deleteContentPage, loading: deleteLoading } = useDeleteContentPage();\n\n const handleDelete = async (id: string) => {\n void nativeImpact('medium');\n const message = tr(\n 'contentPages.confirmDelete',\n 'Are you sure you want to delete this content page?'\n );\n const native = await nativeConfirm({\n title: 'Delete content page',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok = native === null ? window.confirm(message) : native;\n if (!ok) return;\n\n try {\n await deleteContentPage(id);\n void nativeNotify('success');\n refetch();\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to delete content page:', error);\n }\n };\n\n const formatDate = (dateString: string | null) => {\n if (!dateString) return '—';\n return new Date(dateString).toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n });\n };\n\n if (loading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState\n message={tr('contentPages.loadingContentPages', 'Loading content pages...')}\n />\n </div>\n );\n }\n\n if (error) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error.message}\n action={{\n label: tr('productCommon.retry', 'Retry'),\n onClick: () => refetch(),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <div className=\"flex items-center justify-between mb-4\">\n <div>\n <h1 className=\"text-3xl font-bold text-text-primary mb-2\">\n {tr('contentPages.title', 'Content Pages')}\n </h1>\n <p className=\"text-text-secondary\">\n {tr('contentPages.subtitle', 'Manage content pages and documentation')}\n </p>\n </div>\n\n <PermissionGate role=\"super_admin\">\n <button\n onClick={() => navigate(`${contentPagesBasePath}/new`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\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 \"\n >\n <Plus size={20} />\n {tr('contentPages.newPage', 'New Page')}\n </button>\n </PermissionGate>\n </div>\n\n {/* Search and Filters */}\n <div className=\"flex gap-4\">\n {/* Search */}\n <SearchInput\n value={searchQuery}\n onChange={setSearchQuery}\n placeholder={tr('contentPages.searchPlaceholder', 'Search content pages...')}\n className=\"flex-1\"\n />\n\n {/* Published Filter */}\n <select\n value={filter.isPublished === undefined ? '' : filter.isPublished ? 'published' : 'all'}\n onChange={(e) =>\n setFilter({\n ...filter,\n isPublished: e.target.value === 'published' ? true : undefined,\n })\n }\n className=\"\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n \"\n >\n <option value=\"\">{tr('contentPages.filterAll', 'All')}</option>\n <option value=\"published\">{tr('contentPages.publishedOnly', 'Published Only')}</option>\n </select>\n\n {/* Refresh */}\n <button\n onClick={() => refetch()}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n \"\n >\n <RefreshCw size={18} />\n </button>\n\n {/* Export */}\n {contentPages.length > 0 && (\n <button\n onClick={() =>\n exportToCsv(\n 'content-pages',\n contentPages.map((p) => ({\n id: p.id,\n slug: p.slug,\n title: p.title,\n isPublished: p.isPublished,\n contentFormat: p.contentFormat,\n tags: (p.tags ?? []).join(', '),\n sortOrder: p.sortOrder,\n productId: p.productId ?? '',\n createdAt: p.createdAt,\n updatedAt: p.updatedAt,\n }))\n )\n }\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n \"\n title={tr('contentPages.exportCsv', 'Export as CSV')}\n >\n <Download size={18} />\n </button>\n )}\n </div>\n </div>\n\n {/* Content Pages Table */}\n {contentPages.length === 0 ? (\n <div className=\"bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-300\">\n <p className=\"text-text-secondary mb-4\">\n {tr('contentPages.noContentPagesFound', 'No content pages found')}\n </p>\n <button\n onClick={() => navigate(`${contentPagesBasePath}/new`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\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 \"\n >\n <Plus size={20} />\n {tr('contentPages.newPage', 'New Page')}\n </button>\n </div>\n ) : (\n <div className=\"bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden\">\n <table className=\"w-full\">\n <thead className=\"bg-muted border-b border-default\">\n <tr>\n <th className=\"text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n {tr('contentPages.columnPage', 'Page')}\n </th>\n <th className=\"text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n {tr('contentPages.columnSlug', 'Slug')}\n </th>\n <th className=\"text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n {tr('contentPages.columnStatus', 'Status')}\n </th>\n <th className=\"text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n {tr('contentPages.columnVersion', 'Version')}\n </th>\n <th className=\"text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n {tr('contentPages.columnLastUpdated', 'Last Updated')}\n </th>\n <th className=\"text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n {tr('contentPages.columnActions', 'Actions')}\n </th>\n </tr>\n </thead>\n <tbody className=\"divide-y divide-[var(--color-border-default)]\">\n {contentPages.map((page) => (\n <tr\n key={page.id}\n className=\"hover:bg-muted transition-all duration-200 cursor-pointer\"\n onClick={() => navigate(`${contentPagesBasePath}/${page.id}`)}\n >\n <td className=\"px-6 py-4\">\n <div className=\"flex items-center gap-3\">\n <div className=\"w-10 h-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center\">\n <FileText size={20} className=\"text-[var(--color-status-info)]\" />\n </div>\n <div>\n <p className=\"font-medium text-text-primary\">{page.title}</p>\n </div>\n </div>\n </td>\n <td className=\"px-6 py-4\">\n <span className=\"text-sm text-text-tertiary font-mono\">/{page.slug}</span>\n </td>\n <td className=\"px-6 py-4\">\n <ContentPageStatusBadge isPublished={page.isPublished} />\n </td>\n <td className=\"px-6 py-4\">\n <span className=\"text-sm text-text-primary font-mono\">v{page.version}</span>\n </td>\n <td className=\"px-6 py-4\">\n <span className=\"text-sm text-text-secondary\">\n {formatDate(page.lastUpdated || page.updatedAt)}\n </span>\n </td>\n <td className=\"px-6 py-4\">\n <div\n className=\"flex items-center justify-end gap-2\"\n onClick={(e) => e.stopPropagation()}\n >\n <button\n onClick={() => navigate(`${contentPagesBasePath}/${page.id}`)}\n className=\"p-2 rounded-lg text-text-secondary hover:bg-muted transition-all duration-200\"\n title={tr('contentPages.viewDetails', 'View details')}\n >\n <Eye size={18} />\n </button>\n <PermissionGate role=\"super_admin\">\n <button\n onClick={() => navigate(`${contentPagesBasePath}/${page.id}/edit`)}\n className=\"p-2 rounded-lg text-text-secondary hover:bg-muted transition-all duration-200\"\n title={tr('contentPages.edit', 'Edit')}\n >\n <SquarePen size={18} />\n </button>\n <button\n onClick={() => handleDelete(page.id)}\n disabled={deleteLoading}\n className=\"p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50\"\n title={tr('contentPages.delete', 'Delete')}\n >\n <Trash2 size={18} />\n </button>\n </PermissionGate>\n </div>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,SAAgB,IAAuB;CACrC,IAAM,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAuB,GAAG,EAAS,iBACnC,CAAC,GAAa,KAAkB,EAAS,GAAG,EAC5C,IAAK,GAAO,EACZ,CAAC,GAAQ,KAAa,EAAiC,EAAE,CAAC,EAE1D,EAAE,iBAAc,YAAS,UAAO,eAAY,EAChD,KAAA,GACA;EAAE,GAAG;EAAQ,QAAQ,KAAe,KAAA;EAAW,EAC/C,EAAE,OAAO,IAAI,CACd,EAEK,EAAE,sBAAmB,SAAS,MAAkB,GAAsB,EAEtE,IAAe,OAAO,MAAe;AACpC,IAAa,SAAS;EAC3B,IAAM,IAAU,EACd,8BACA,qDACD,EACK,IAAS,MAAM,EAAc;GACjC,OAAO;GACP;GACA,eAAe;GACf,mBAAmB;GACpB,CAAC;AACS,YAAW,OAAO,OAAO,QAAQ,EAAQ,GAAG,EAGvD,KAAI;AAGF,GAFA,MAAM,EAAkB,EAAG,EACtB,EAAa,UAAU,EAC5B,GAAS;WACF,GAAO;AAEd,GADK,EAAa,QAAQ,EAC1B,QAAQ,MAAM,kCAAkC,EAAM;;IAIpD,KAAc,MACb,IACE,IAAI,KAAK,EAAW,CAAC,mBAAmB,SAAS;EACtD,MAAM;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AAK;UAC7D,WAAU;UACV,OAAO,EAAG,4BAA4B,eAAe;oBAErD,kBAAC,GAAD,EAAK,MAAM,IAAM,CAAA;UACV,CAAA,EACT,kBAAC,GAAD;UAAgB,MAAK;oBAArB,CACE,kBAAC,UAAD;WACE,eAAe,EAAS,GAAG,EAAqB,GAAG,EAAK,GAAG,OAAO;WAClE,WAAU;WACV,OAAO,EAAG,qBAAqB,OAAO;qBAEtC,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;WAChB,CAAA,EACT,kBAAC,UAAD;WACE,eAAe,EAAa,EAAK,GAAG;WACpC,UAAU;WACV,WAAU;WACV,OAAO,EAAG,uBAAuB,SAAS;qBAE1C,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA;WACb,CAAA,CACM;YACb;;QACH,CAAA;OACF;QA3DE,EAAK,GA2DP,CACL;KACI,CAAA,CACF;;GACJ,CAAA,CAEJ"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Content Page Validation Schemas
|
|
4
|
+
* Zod schemas for validating content page form inputs
|
|
5
|
+
* Aligned with backend ProductContentPage schema
|
|
6
|
+
*/
|
|
7
|
+
export declare const createContentPageSchema: z.ZodObject<{
|
|
8
|
+
slug: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
content: z.ZodString;
|
|
11
|
+
contentFormat: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
12
|
+
seoTitle: z.ZodOptional<z.ZodString>;
|
|
13
|
+
seoDescription: z.ZodOptional<z.ZodString>;
|
|
14
|
+
seoKeywords: z.ZodOptional<z.ZodString>;
|
|
15
|
+
isPublished: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const updateContentPageSchema: z.ZodObject<{
|
|
20
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
21
|
+
title: z.ZodOptional<z.ZodString>;
|
|
22
|
+
content: z.ZodOptional<z.ZodString>;
|
|
23
|
+
contentFormat: z.ZodOptional<z.ZodString>;
|
|
24
|
+
seoTitle: z.ZodOptional<z.ZodString>;
|
|
25
|
+
seoDescription: z.ZodOptional<z.ZodString>;
|
|
26
|
+
seoKeywords: z.ZodOptional<z.ZodString>;
|
|
27
|
+
isPublished: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type CreateContentPageFormData = z.infer<typeof createContentPageSchema>;
|
|
32
|
+
export type UpdateContentPageFormData = z.infer<typeof updateContentPageSchema>;
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAoBlC,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAsBlC,CAAC;AAGH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { boolean as e, number as t, object as n, string as r } from "../../../../node_modules/zod/v4/classic/schemas.js";
|
|
2
|
+
//#region src/product-management/modules/content-pages/schemas/index.ts
|
|
3
|
+
var i = n({
|
|
4
|
+
slug: r().min(2, "Slug must be at least 2 characters").max(100, "Slug must not exceed 100 characters").regex(/^[a-z0-9-]+$/, "Slug must contain only lowercase letters, numbers, and hyphens").trim(),
|
|
5
|
+
title: r().min(2, "Title must be at least 2 characters").max(200, "Title must not exceed 200 characters").trim(),
|
|
6
|
+
content: r().min(1, "Content is required"),
|
|
7
|
+
contentFormat: r().default("markdown").optional(),
|
|
8
|
+
seoTitle: r().max(100, "SEO title must not exceed 100 characters").optional(),
|
|
9
|
+
seoDescription: r().max(300, "SEO description must not exceed 300 characters").optional(),
|
|
10
|
+
seoKeywords: r().max(200, "SEO keywords must not exceed 200 characters").optional(),
|
|
11
|
+
isPublished: e().optional(),
|
|
12
|
+
sortOrder: t().int().min(0).optional(),
|
|
13
|
+
productId: r().optional()
|
|
14
|
+
}), a = n({
|
|
15
|
+
slug: r().min(2, "Slug must be at least 2 characters").max(100, "Slug must not exceed 100 characters").regex(/^[a-z0-9-]+$/, "Slug must contain only lowercase letters, numbers, and hyphens").trim().optional(),
|
|
16
|
+
title: r().min(2, "Title must be at least 2 characters").max(200, "Title must not exceed 200 characters").trim().optional(),
|
|
17
|
+
content: r().min(1, "Content is required").optional(),
|
|
18
|
+
contentFormat: r().optional(),
|
|
19
|
+
seoTitle: r().max(100, "SEO title must not exceed 100 characters").optional(),
|
|
20
|
+
seoDescription: r().max(300, "SEO description must not exceed 300 characters").optional(),
|
|
21
|
+
seoKeywords: r().max(200, "SEO keywords must not exceed 200 characters").optional(),
|
|
22
|
+
isPublished: e().optional(),
|
|
23
|
+
sortOrder: t().int().min(0).optional(),
|
|
24
|
+
productId: r().optional()
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { i as createContentPageSchema, a as updateContentPageSchema };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Content Page Validation Schemas\n * Zod schemas for validating content page form inputs\n * Aligned with backend ProductContentPage schema\n */\n\n// Create Content Page Schema\nexport const createContentPageSchema = z.object({\n slug: z\n .string()\n .min(2, 'Slug must be at least 2 characters')\n .max(100, 'Slug must not exceed 100 characters')\n .regex(/^[a-z0-9-]+$/, 'Slug must contain only lowercase letters, numbers, and hyphens')\n .trim(),\n title: z\n .string()\n .min(2, 'Title must be at least 2 characters')\n .max(200, 'Title must not exceed 200 characters')\n .trim(),\n content: z.string().min(1, 'Content is required'),\n contentFormat: z.string().default('markdown').optional(),\n seoTitle: z.string().max(100, 'SEO title must not exceed 100 characters').optional(),\n seoDescription: z.string().max(300, 'SEO description must not exceed 300 characters').optional(),\n seoKeywords: z.string().max(200, 'SEO keywords must not exceed 200 characters').optional(),\n isPublished: z.boolean().optional(),\n sortOrder: z.number().int().min(0).optional(),\n productId: z.string().optional(),\n});\n\n// Update Content Page Schema (all fields optional)\nexport const updateContentPageSchema = z.object({\n slug: z\n .string()\n .min(2, 'Slug must be at least 2 characters')\n .max(100, 'Slug must not exceed 100 characters')\n .regex(/^[a-z0-9-]+$/, 'Slug must contain only lowercase letters, numbers, and hyphens')\n .trim()\n .optional(),\n title: z\n .string()\n .min(2, 'Title must be at least 2 characters')\n .max(200, 'Title must not exceed 200 characters')\n .trim()\n .optional(),\n content: z.string().min(1, 'Content is required').optional(),\n contentFormat: z.string().optional(),\n seoTitle: z.string().max(100, 'SEO title must not exceed 100 characters').optional(),\n seoDescription: z.string().max(300, 'SEO description must not exceed 300 characters').optional(),\n seoKeywords: z.string().max(200, 'SEO keywords must not exceed 200 characters').optional(),\n isPublished: z.boolean().optional(),\n sortOrder: z.number().int().min(0).optional(),\n productId: z.string().optional(),\n});\n\n// Type exports\nexport type CreateContentPageFormData = z.infer<typeof createContentPageSchema>;\nexport type UpdateContentPageFormData = z.infer<typeof updateContentPageSchema>;\n"],"mappings":";;AASA,IAAa,IAA0B,EAAS;CAC9C,MAAM,GACK,CACR,IAAI,GAAG,qCAAqC,CAC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Content Pages Module Types
|
|
3
|
+
* Aligned with backend ProductContentPage schema
|
|
4
|
+
*/
|
|
5
|
+
export interface ProductContentPage {
|
|
6
|
+
id: string;
|
|
7
|
+
productId: string | null;
|
|
8
|
+
slug: string;
|
|
9
|
+
title: string;
|
|
10
|
+
content: string;
|
|
11
|
+
contentFormat: string;
|
|
12
|
+
seoTitle: string | null;
|
|
13
|
+
seoDescription: string | null;
|
|
14
|
+
seoKeywords: string | null;
|
|
15
|
+
lastUpdated: string | null;
|
|
16
|
+
version: number;
|
|
17
|
+
isPublished: boolean;
|
|
18
|
+
sortOrder: number;
|
|
19
|
+
tags: string[];
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
product?: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
slug: string;
|
|
26
|
+
} | null;
|
|
27
|
+
}
|
|
28
|
+
export type ContentPage = ProductContentPage;
|
|
29
|
+
export interface ContentPageFilterInput {
|
|
30
|
+
search?: string;
|
|
31
|
+
isPublished?: boolean;
|
|
32
|
+
slug?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface CreateContentPageInput {
|
|
35
|
+
productId?: string;
|
|
36
|
+
slug: string;
|
|
37
|
+
title: string;
|
|
38
|
+
content: string;
|
|
39
|
+
contentFormat?: string;
|
|
40
|
+
seoTitle?: string;
|
|
41
|
+
seoDescription?: string;
|
|
42
|
+
seoKeywords?: string;
|
|
43
|
+
isPublished?: boolean;
|
|
44
|
+
sortOrder?: number;
|
|
45
|
+
tags?: string[];
|
|
46
|
+
}
|
|
47
|
+
export interface UpdateContentPageInput {
|
|
48
|
+
productId?: string;
|
|
49
|
+
slug?: string;
|
|
50
|
+
title?: string;
|
|
51
|
+
content?: string;
|
|
52
|
+
contentFormat?: string;
|
|
53
|
+
seoTitle?: string;
|
|
54
|
+
seoDescription?: string;
|
|
55
|
+
seoKeywords?: string;
|
|
56
|
+
isPublished?: boolean;
|
|
57
|
+
sortOrder?: number;
|
|
58
|
+
tags?: string[];
|
|
59
|
+
}
|
|
60
|
+
export interface ContentPagesConnection {
|
|
61
|
+
items: ProductContentPage[];
|
|
62
|
+
total: number;
|
|
63
|
+
hasMore: boolean;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAC7D;AAGD,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAG7C,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAGD,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAGD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CreateFeatureFlagInput, FeatureFlag, UpdateFeatureFlagInput } from '../types';
|
|
3
|
+
interface FeatureFlagFormProps {
|
|
4
|
+
featureFlag?: FeatureFlag | null;
|
|
5
|
+
onSubmit: (data: CreateFeatureFlagInput | UpdateFeatureFlagInput) => Promise<void>;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const FeatureFlagForm: FC<FeatureFlagFormProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=FeatureFlagForm.d.ts.map
|