@burdenoff/microfe-product 2026.1013.2 → 2026.1109.1
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/dist/generated/global-operations.d.ts +2418 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +109 -110
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +22700 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +5 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +49087 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/errors.js +41 -20
- package/dist/node_modules/zod/v4/classic/errors.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/parse.js +4 -5
- package/dist/node_modules/zod/v4/classic/parse.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +519 -393
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -1
- package/dist/node_modules/zod/v4/core/api.js +199 -197
- package/dist/node_modules/zod/v4/core/api.js.map +1 -1
- package/dist/node_modules/zod/v4/core/checks.js +83 -123
- package/dist/node_modules/zod/v4/core/checks.js.map +1 -1
- package/dist/node_modules/zod/v4/core/core.js +70 -35
- package/dist/node_modules/zod/v4/core/core.js.map +1 -1
- package/dist/node_modules/zod/v4/core/doc.js +11 -7
- package/dist/node_modules/zod/v4/core/doc.js.map +1 -1
- package/dist/node_modules/zod/v4/core/errors.js +64 -20
- package/dist/node_modules/zod/v4/core/errors.js.map +1 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +258 -139
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -1
- package/dist/node_modules/zod/v4/core/memoizer.js +188 -0
- package/dist/node_modules/zod/v4/core/memoizer.js.map +1 -0
- package/dist/node_modules/zod/v4/core/parse.js +136 -68
- package/dist/node_modules/zod/v4/core/parse.js.map +1 -1
- package/dist/node_modules/zod/v4/core/regexes.js +26 -19
- package/dist/node_modules/zod/v4/core/regexes.js.map +1 -1
- package/dist/node_modules/zod/v4/core/registries.js +2 -3
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -1
- package/dist/node_modules/zod/v4/core/schemas.js +594 -457
- package/dist/node_modules/zod/v4/core/schemas.js.map +1 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js +204 -100
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -1
- package/dist/node_modules/zod/v4/core/util.js +296 -142
- package/dist/node_modules/zod/v4/core/util.js.map +1 -1
- package/dist/node_modules/zod/v4/core/versions.js +3 -4
- package/dist/node_modules/zod/v4/core/versions.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/en.js +96 -0
- package/dist/node_modules/zod/v4/locales/en.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 +10 -7
- package/dist/product/ProductUserRoot.js.map +1 -1
- package/dist/product/ProductUserRoutes.d.ts +6 -0
- package/dist/product/ProductUserRoutes.d.ts.map +1 -0
- package/dist/product/ProductUserRoutes.js +1 -2
- package/dist/product/ProductUserRoutes.js.map +1 -1
- 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 +1 -2
- package/dist/product/hooks/usePublicContentPage.js.map +1 -1
- 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 +1 -2
- package/dist/product/hooks/usePublicProduct.js.map +1 -1
- 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 +1 -2
- package/dist/product/hooks/usePublicProducts.js.map +1 -1
- 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 +5 -6
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- 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 +3 -4
- package/dist/product/pages/ProductCatalogPage.js.map +1 -1
- 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 +10 -11
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- 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 +1 -2
- package/dist/product/pages/UserProductsLandingPage.js.map +1 -1
- 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 +1 -2
- package/dist/product/providers/ProductUserProvider.js.map +1 -1
- 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 +9 -6
- package/dist/product-management/ProductManagementRoot.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/ProductManagementRoutes.js.map +1 -1
- 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 +59 -60
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/content-pages/hooks/useContentPages.js.map +1 -1
- 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 +3 -3
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
- 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 +19 -20
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- 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 +11 -11
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
- 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 +37 -35
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/schemas/index.d.ts +57 -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 +8 -9
- package/dist/product-management/modules/content-pages/schemas/index.js.map +1 -1
- package/dist/product-management/modules/content-pages/types/index.d.ts +91 -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 +17 -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 +10 -11
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js.map +1 -1
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts +59 -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 +1 -2
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js.map +1 -1
- 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 +8 -8
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- 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 +18 -19
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
- 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 +8 -8
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- 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 +27 -30
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- 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 +5 -6
- package/dist/product-management/modules/feature-flags/schemas/index.js.map +1 -1
- package/dist/product-management/modules/feature-flags/types/index.d.ts +101 -0
- package/dist/product-management/modules/feature-flags/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts +10 -0
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +23 -24
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts +73 -0
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.js +1 -2
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.js.map +1 -1
- package/dist/product-management/modules/press-kit/index.d.ts +14 -0
- package/dist/product-management/modules/press-kit/index.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.d.ts +2 -0
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +3 -3
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.d.ts +2 -0
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +15 -16
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.d.ts +2 -0
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +11 -11
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.d.ts +2 -0
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +34 -32
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/schemas/index.d.ts +60 -0
- package/dist/product-management/modules/press-kit/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/schemas/index.js +7 -8
- package/dist/product-management/modules/press-kit/schemas/index.js.map +1 -1
- package/dist/product-management/modules/press-kit/types/index.d.ts +73 -0
- package/dist/product-management/modules/press-kit/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/press-kit/types/index.js +1 -2
- package/dist/product-management/modules/press-kit/types/index.js.map +1 -1
- 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 +23 -24
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- 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 +26 -24
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/products/components/ProductStatusBadge.js.map +1 -1
- package/dist/product-management/modules/products/hooks/useProducts.d.ts +103 -0
- package/dist/product-management/modules/products/hooks/useProducts.d.ts.map +1 -0
- package/dist/product-management/modules/products/hooks/useProducts.js +1 -2
- package/dist/product-management/modules/products/hooks/useProducts.js.map +1 -1
- 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 +3 -3
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
- 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 +21 -22
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- 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 +11 -12
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
- 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 +19 -20
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/products/schemas/index.d.ts +61 -0
- package/dist/product-management/modules/products/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/schemas/index.js +16 -17
- package/dist/product-management/modules/products/schemas/index.js.map +1 -1
- package/dist/product-management/modules/products/types/index.d.ts +115 -0
- package/dist/product-management/modules/products/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/types/index.js +1 -2
- package/dist/product-management/modules/products/types/index.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js.map +1 -1
- 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 +19 -20
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js.map +1 -1
- 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 +3 -3
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
- 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 +25 -26
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- 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 +10 -11
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
- 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 +36 -37
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/shortcuts/schemas/index.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/modules/shortcuts/types/index.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/providers/ProductConsoleProvider.js.map +1 -1
- 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 +4 -5
- package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/shared/components/TagList.js.map +1 -1
- package/dist/product-management/shared/components/feedback/EmptyState.d.ts +20 -0
- package/dist/product-management/shared/components/feedback/EmptyState.d.ts.map +1 -0
- package/dist/product-management/shared/components/feedback/ErrorState.d.ts +33 -0
- package/dist/product-management/shared/components/feedback/ErrorState.d.ts.map +1 -0
- package/dist/product-management/shared/components/feedback/ErrorState.js +4 -5
- package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -1
- package/dist/product-management/shared/components/input/ProductCombobox.d.ts +29 -0
- package/dist/product-management/shared/components/input/ProductCombobox.d.ts.map +1 -0
- package/dist/product-management/shared/components/input/ProductCombobox.js +12 -13
- package/dist/product-management/shared/components/input/ProductCombobox.js.map +1 -1
- package/dist/product-management/shared/components/input/SearchInput.d.ts +17 -0
- package/dist/product-management/shared/components/input/SearchInput.d.ts.map +1 -0
- package/dist/product-management/shared/components/input/SearchInput.js +1 -2
- package/dist/product-management/shared/components/input/SearchInput.js.map +1 -1
- 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 +2 -3
- package/dist/product-management/shared/components/input/TagInput.js.map +1 -1
- package/dist/product-management/shared/hooks/useConfirmDialog.d.ts +22 -0
- package/dist/product-management/shared/hooks/useConfirmDialog.d.ts.map +1 -0
- package/dist/product-management/shared/hooks/useConfirmDialog.js +1 -2
- package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -1
- package/dist/product-management/shared/hooks/useDebounced.d.ts +6 -0
- package/dist/product-management/shared/hooks/useDebounced.d.ts.map +1 -0
- package/dist/product-management/shared/hooks/useDebounced.js +1 -2
- package/dist/product-management/shared/hooks/useDebounced.js.map +1 -1
- 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 +1 -2
- package/dist/product-management/shared/hooks/useTr.js.map +1 -1
- package/dist/product-management/shared/index.d.ts +13 -0
- package/dist/product-management/shared/index.d.ts.map +1 -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/cn.js +2 -3
- package/dist/product-management/shared/utils/cn.js.map +1 -1
- package/dist/product-management/shared/utils/exportUtils.d.ts +4 -0
- package/dist/product-management/shared/utils/exportUtils.d.ts.map +1 -0
- package/dist/product-management/shared/utils/exportUtils.js +1 -2
- package/dist/product-management/shared/utils/exportUtils.js.map +1 -1
- package/dist/product-management/shared/utils/permission-error.d.ts +13 -0
- package/dist/product-management/shared/utils/permission-error.d.ts.map +1 -0
- package/dist/product-management/shared/utils/permission-error.js +3 -4
- package/dist/product-management/shared/utils/permission-error.js.map +1 -1
- 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/MarkdownEditor.d.ts +16 -0
- package/dist/shared/components/MarkdownEditor.d.ts.map +1 -0
- package/dist/shared/components/MarkdownEditor.js +3 -4
- package/dist/shared/components/MarkdownEditor.js.map +1 -1
- package/dist/shared/components/index.d.ts +11 -0
- package/dist/shared/components/index.d.ts.map +1 -0
- package/dist/shared/components/index.js +5 -4
- package/dist/shared/hooks/useTr.d.ts +2 -0
- package/dist/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/shared/hooks/useTr.js +1 -1
- 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 +1 -2
- package/dist/shared/utils/formatDate.js.map +1 -1
- 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 +1 -2
- package/dist/shared/utils/isSafeUrl.js.map +1 -1
- package/dist/shared/utils/renderMarkdown.d.ts +10 -0
- package/dist/shared/utils/renderMarkdown.d.ts.map +1 -0
- package/dist/translations/en.d.ts +651 -0
- package/dist/translations/en.d.ts.map +1 -0
- package/dist/translations/en.js +1 -2
- package/dist/translations/en.js.map +1 -1
- package/dist/translations/index.d.ts +2 -0
- package/dist/translations/index.d.ts.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 +1 -2
- package/package.json +35 -23
- package/dist/node_modules/zod/v4/classic/iso.js +0 -33
- package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
2
|
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
3
|
+
import { useContentPage as n, useDeleteContentPage as r } from "../hooks/useContentPages.js";
|
|
4
|
+
import { ContentPageStatusBadge as i } from "../components/ContentPageStatusBadge.js";
|
|
5
|
+
import { LoadingState as a } from "../../../shared/components/feedback/LoadingState.js";
|
|
6
|
+
import { ErrorState as o } from "../../../shared/components/feedback/ErrorState.js";
|
|
7
|
+
import { TagList as s } from "../../../shared/components/TagList.js";
|
|
8
|
+
import { AuditHistoryTab as c } from "../../../shared/components/AuditHistoryTab.js";
|
|
9
|
+
import { nativeConfirm as l, nativeImpact as u, nativeNotify as d } from "../../../../utils/nativeBridge.js";
|
|
10
|
+
import { useConfirmDialog as f } from "../../../shared/hooks/useConfirmDialog.js";
|
|
11
11
|
import { ArrowLeft as p, Edit as m, FileText as h, Globe as g, Package as _, Trash2 as v } from "lucide-react";
|
|
12
12
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
13
13
|
import { useParams as S } from "react-router";
|
|
14
14
|
import { Markdown as C } from "@burdenoff/fe-libs/shared/components";
|
|
15
15
|
import { CTAOverflowMenu as w, EmphasisPanel as T, GradientText as E, NextSteps as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
|
|
16
|
-
|
|
16
|
+
// src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx
|
|
17
17
|
function k() {
|
|
18
|
-
let { id: k } = S(), { navigate: A, basePath: j = "/products" } = t(), M = `${j}/content-pages`, { contentPage: N, loading: P, error: F } =
|
|
19
|
-
|
|
20
|
-
let e = R("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), t = await
|
|
18
|
+
let { id: k } = S(), { navigate: A, basePath: j = "/products" } = t(), M = `${j}/content-pages`, { contentPage: N, loading: P, error: F } = n(k), { deleteContentPage: I, loading: L } = r(), R = e(), { confirm: z, ConfirmDialog: B } = f(), V = async () => {
|
|
19
|
+
u("medium");
|
|
20
|
+
let e = R("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), t = await l({
|
|
21
21
|
title: "Delete content page",
|
|
22
22
|
message: e,
|
|
23
23
|
okButtonTitle: "Delete",
|
|
@@ -30,18 +30,18 @@ function k() {
|
|
|
30
30
|
cancelButtonTitle: "Cancel",
|
|
31
31
|
destructive: !0
|
|
32
32
|
}) : t) try {
|
|
33
|
-
await I(k),
|
|
33
|
+
await I(k), d("success"), A(M);
|
|
34
34
|
} catch (e) {
|
|
35
|
-
|
|
35
|
+
d("error"), console.error("Failed to delete content page:", e);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
if (P) return /* @__PURE__ */ b("div", {
|
|
39
39
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
40
|
-
children: /* @__PURE__ */ b(
|
|
40
|
+
children: /* @__PURE__ */ b(a, { message: R("contentPages.loadingContentPage", "Loading content page...") })
|
|
41
41
|
});
|
|
42
42
|
if (F || !N) return /* @__PURE__ */ b("div", {
|
|
43
43
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
44
|
-
children: /* @__PURE__ */ b(
|
|
44
|
+
children: /* @__PURE__ */ b(o, {
|
|
45
45
|
message: F?.message || R("contentPages.contentPageNotFound", "Content page not found"),
|
|
46
46
|
action: {
|
|
47
47
|
label: R("contentPages.backToContentPages", "Back to Content Pages"),
|
|
@@ -84,7 +84,7 @@ function k() {
|
|
|
84
84
|
children: [/* @__PURE__ */ b("h1", {
|
|
85
85
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
86
86
|
children: /* @__PURE__ */ b(E, { children: N.title })
|
|
87
|
-
}), /* @__PURE__ */ b(
|
|
87
|
+
}), /* @__PURE__ */ b(i, { isPublished: N.isPublished })]
|
|
88
88
|
}), /* @__PURE__ */ x("p", {
|
|
89
89
|
className: "text-text-secondary font-mono",
|
|
90
90
|
children: ["/", N.slug]
|
|
@@ -290,14 +290,14 @@ function k() {
|
|
|
290
290
|
children: [/* @__PURE__ */ b("h2", {
|
|
291
291
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
292
292
|
children: R("contentPages.tags", "Tags")
|
|
293
|
-
}), /* @__PURE__ */ b(
|
|
293
|
+
}), /* @__PURE__ */ b(s, { tags: N.tags })]
|
|
294
294
|
}),
|
|
295
295
|
/* @__PURE__ */ x("div", {
|
|
296
296
|
className: "lg:col-span-2 bg-bg-surface border border-border-seam rounded-card shadow-elevation-1",
|
|
297
297
|
children: [/* @__PURE__ */ b("h2", {
|
|
298
298
|
className: "text-lg font-semibold text-text-primary p-6 pb-0",
|
|
299
299
|
children: R("contentPages.activityHistory", "Activity History")
|
|
300
|
-
}), /* @__PURE__ */ b(
|
|
300
|
+
}), /* @__PURE__ */ b(c, {
|
|
301
301
|
resourceId: N.id,
|
|
302
302
|
resourceType: "ProductContentPage"
|
|
303
303
|
})]
|
|
@@ -308,7 +308,6 @@ function k() {
|
|
|
308
308
|
]
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
|
-
//#endregion
|
|
312
311
|
export { k as ContentPageDetailPage };
|
|
313
312
|
|
|
314
313
|
//# sourceMappingURL=ContentPageDetailPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageDetailPage.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router';\nimport { ArrowLeft, Edit, Trash2, FileText, Globe, Package } from 'lucide-react';\nimport { Markdown } from '@burdenoff/fe-libs/shared/components';\nimport {\n CTAOverflowMenu,\n EmphasisPanel,\n GradientText,\n NextSteps,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\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';\nimport { useConfirmDialog } from '../../../shared/hooks/useConfirmDialog';\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 const { confirm, ConfirmDialog } = useConfirmDialog();\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 =\n native === null\n ? await confirm({\n title: 'Delete content page',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n destructive: true,\n })\n : 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-200\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n type=\"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 flex-col sm:flex-row sm:items-start sm:justify-between gap-4\">\n <div className=\"flex items-center gap-4\">\n <div className=\"size-16 rounded-card 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 flex-wrap items-center gap-3 mb-2\">\n <h1 className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n <GradientText>{contentPage.title}</GradientText>\n </h1>\n <ContentPageStatusBadge isPublished={contentPage.isPublished} />\n </div>\n <p className=\"text-text-secondary font-mono\">/{contentPage.slug}</p>\n </div>\n </div>\n\n <CTAOverflowMenu\n primary={{\n label: tr('contentPages.editPage', 'Edit Page'),\n onSelect: () => navigate(`${contentPagesBasePath}/${id}/edit`),\n icon: <Edit className=\"size-4\" />,\n }}\n actions={[\n {\n label: tr('contentPages.delete', 'Delete'),\n onSelect: () => {\n void handleDelete();\n },\n intent: 'destructive',\n disabled: deleteLoading,\n icon: <Trash2 className=\"size-4\" />,\n },\n ]}\n />\n </div>\n </div>\n\n <PagePurpose className=\"mb-6\">\n {tr(\n 'contentPages.detailPurpose',\n `Preview exactly how \"${contentPage.title}\" renders for users, check its metadata, SEO, and product association, and review the audit history. Edit it to change the content or its published state — only published pages are visible to end users.`\n )}\n </PagePurpose>\n\n <NextSteps\n storageKey=\"product-content-page-detail\"\n className=\"mb-6\"\n steps={[\n {\n id: 'edit',\n label: tr('contentPages.steps.edit', 'Edit this page'),\n description: tr(\n 'contentPages.steps.editDesc',\n 'Update the content, SEO, or publish status. A new version is recorded on each save.'\n ),\n onClick: () => navigate(`${contentPagesBasePath}/${id}/edit`),\n },\n {\n id: 'review-seo',\n label: tr('contentPages.steps.seo', 'Check SEO & metadata'),\n description: tr(\n 'contentPages.steps.seoDesc',\n 'Make sure the slug, title, and SEO fields are right before this page goes public.'\n ),\n },\n {\n id: 'back',\n label: tr('contentPages.steps.back', 'Back to all content pages'),\n description: tr(\n 'contentPages.steps.backDesc',\n 'Return to the list to manage the rest of your content.'\n ),\n onClick: () => navigate(contentPagesBasePath),\n },\n ]}\n />\n\n {/* Content */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Content Preview — the page's emphasis zone */}\n <EmphasisPanel className=\"lg:col-span-2\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.contentPreview', 'Content Preview')}\n </h2>\n <div className=\"prose prose-sm max-w-none text-text-secondary leading-relaxed\">\n {contentPage.contentFormat === 'markdown' ? (\n <Markdown>{contentPage.content}</Markdown>\n ) : (\n <div dangerouslySetInnerHTML={{ __html: contentPage.content }} />\n )}\n </div>\n </EmphasisPanel>\n\n {/* Metadata */}\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\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-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\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) => (\n <span\n key={keyword.trim()}\n className=\"\n inline-flex px-2 py-0.5\n bg-bg-sunken\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-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\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-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 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-bg-surface border border-border-seam rounded-card 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 {ConfirmDialog}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;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AAA,CAC1E,EAAA,CAAA,EACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;QAAI,WAAU;kBACX,EAAG,4BAA4B,eAAe;QAC5C,CAAA,EACL,kBAAC,MAAD;QAAI,WAAU;kBAAd,CAAyD,KACrD,EAAY,QAAQ,KACnB;UACD,EAAA,CAAA,CACL,EAAA,CAAA,CAEF;SACD;;KAIP,EAAY,QAAQ,EAAY,KAAK,SAAS,KAC7C,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAG,qBAAqB,OAAO;OAC7B,CAAA,EACL,kBAAC,GAAD,EAAS,MAAM,EAAY,MAAQ,CAAA,CAC/B;;KAIR,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAG,gCAAgC,mBAAmB;OACpD,CAAA,EACL,kBAAC,GAAD;OAAiB,YAAY,EAAY;OAAI,cAAa;OAAuB,CAAA,CAC7E;;KACF;;GACL;GACG"}
|
|
1
|
+
{"version":3,"file":"ContentPageDetailPage.js","names":["_Fragment","ContentPageDetailPage","useParams","useProductConsole","contentPagesBasePath","basePath","useContentPage","id","deleteLoading","useDeleteContentPage","tr","useTr","useConfirmDialog","handleDelete","message","native","nativeConfirm","confirm","deleteContentPage","nativeNotify","navigate","error","loading","LoadingState","contentPage","ErrorState","formatDate","dateString","hasSeo","ArrowLeft","FileText","GradientText","ContentPageStatusBadge","CTAOverflowMenu","Edit","Trash2","PagePurpose","NextSteps","EmphasisPanel","Markdown","Globe","keyword","Package","Fragment","TagList","AuditHistoryTab","ConfirmDialog"],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router';\nimport { ArrowLeft, Edit, Trash2, FileText, Globe, Package } from 'lucide-react';\nimport { Markdown } from '@burdenoff/fe-libs/shared/components';\nimport {\n CTAOverflowMenu,\n EmphasisPanel,\n GradientText,\n NextSteps,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\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';\nimport { useConfirmDialog } from '../../../shared/hooks/useConfirmDialog';\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 const { confirm, ConfirmDialog } = useConfirmDialog();\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 =\n native === null\n ? await confirm({\n title: 'Delete content page',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n destructive: true,\n })\n : 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-200\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n type=\"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 flex-col sm:flex-row sm:items-start sm:justify-between gap-4\">\n <div className=\"flex items-center gap-4\">\n <div className=\"size-16 rounded-card 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 flex-wrap items-center gap-3 mb-2\">\n <h1 className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n <GradientText>{contentPage.title}</GradientText>\n </h1>\n <ContentPageStatusBadge isPublished={contentPage.isPublished} />\n </div>\n <p className=\"text-text-secondary font-mono\">/{contentPage.slug}</p>\n </div>\n </div>\n\n <CTAOverflowMenu\n primary={{\n label: tr('contentPages.editPage', 'Edit Page'),\n onSelect: () => navigate(`${contentPagesBasePath}/${id}/edit`),\n icon: <Edit className=\"size-4\" />,\n }}\n actions={[\n {\n label: tr('contentPages.delete', 'Delete'),\n onSelect: () => {\n void handleDelete();\n },\n intent: 'destructive',\n disabled: deleteLoading,\n icon: <Trash2 className=\"size-4\" />,\n },\n ]}\n />\n </div>\n </div>\n\n <PagePurpose className=\"mb-6\">\n {tr(\n 'contentPages.detailPurpose',\n `Preview exactly how \"${contentPage.title}\" renders for users, check its metadata, SEO, and product association, and review the audit history. Edit it to change the content or its published state — only published pages are visible to end users.`\n )}\n </PagePurpose>\n\n <NextSteps\n storageKey=\"product-content-page-detail\"\n className=\"mb-6\"\n steps={[\n {\n id: 'edit',\n label: tr('contentPages.steps.edit', 'Edit this page'),\n description: tr(\n 'contentPages.steps.editDesc',\n 'Update the content, SEO, or publish status. A new version is recorded on each save.'\n ),\n onClick: () => navigate(`${contentPagesBasePath}/${id}/edit`),\n },\n {\n id: 'review-seo',\n label: tr('contentPages.steps.seo', 'Check SEO & metadata'),\n description: tr(\n 'contentPages.steps.seoDesc',\n 'Make sure the slug, title, and SEO fields are right before this page goes public.'\n ),\n },\n {\n id: 'back',\n label: tr('contentPages.steps.back', 'Back to all content pages'),\n description: tr(\n 'contentPages.steps.backDesc',\n 'Return to the list to manage the rest of your content.'\n ),\n onClick: () => navigate(contentPagesBasePath),\n },\n ]}\n />\n\n {/* Content */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Content Preview — the page's emphasis zone */}\n <EmphasisPanel className=\"lg:col-span-2\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.contentPreview', 'Content Preview')}\n </h2>\n <div className=\"prose prose-sm max-w-none text-text-secondary leading-relaxed\">\n {contentPage.contentFormat === 'markdown' ? (\n <Markdown>{contentPage.content}</Markdown>\n ) : (\n <div dangerouslySetInnerHTML={{ __html: contentPage.content }} />\n )}\n </div>\n </EmphasisPanel>\n\n {/* Metadata */}\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\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-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\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) => (\n <span\n key={keyword.trim()}\n className=\"\n inline-flex px-2 py-0.5\n bg-bg-sunken\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-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\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-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 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-bg-surface border border-border-seam rounded-card 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 {ConfirmDialog}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAyBA,SAAgBC,IAAwB;CACtC,IAAM,EAAE,UAAOC,EAA0B,GACnC,EAAE,aAAU,cAAW,gBAAgBC,EAAkB,GACzDC,IAAuB,GAAGC,EAAS,iBACnC,EAAE,gBAAa,YAAS,aAAUC,EAAeC,CAAG,GACpD,EAAE,sBAAmB,SAASC,MAAkBC,EAAqB,GACrEC,IAAKC,EAAM,GACX,EAAE,YAAS,qBAAkBC,EAAiB,GAE9CC,IAAe,YAAY;EAC/B,EAAkB,QAAQ;EAC1B,IAAMC,IAAUJ,EACd,8BACA,oDACF,GACMK,IAAS,MAAMC,EAAc;GACjC,OAAO;GACP;GACA,eA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WACX,kBAAAxB,GAAA,EAAA,UAAA,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;QAAI,WAAU;QACX,UAAAU,EAAG,4BAA4B,cAAc;OAC5C,CAAA,GACJ,kBAAC,MAAD;QAAI,WAAU;QAAkC,UAAAc,EAAY,QAAQ;OAAS,CAAA,CAC1E,EAAA,CAAA,GACL,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;QAAI,WAAU;QACX,UAAAd,EAAG,4BAA4B,cAAc;OAC5C,CAAA,GACJ,kBAAC,MAAD;QAAI,WAAU;QAAd,UAAA,CAAyD,KACrDc,EAAY,QAAQ,IACpB;OACD,CAAA,CAAA,EAAA,CAAA,CACL,EAAA,CAAA,CAEF;MACD,CAAA,CAAA;;KAINA,EAAY,QAAQA,EAAY,KAAK,SAAS,KAC7C,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;OACX,UAAAd,EAAG,qBAAqB,MAAM;MAC7B,CAAA,GACJ,kBAACkC,GAAD,EAAS,MAAMpB,EAAY,KAAO,CAAA,CAC/B;;KAIP,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;OACX,UAAAd,EAAG,gCAAgC,kBAAkB;MACpD,CAAA,GACJ,kBAACmC,GAAD;OAAiB,YAAYrB,EAAY;OAAI,cAAa;MAAsB,CAAA,CAC7E;;IACF;;GACJsB;EACE;;AAET"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPageEditPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx"],"names":[],"mappings":"AAYA,wBAAgB,mBAAmB,gCAuGlC"}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
2
|
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { useContentPage as n, useUpdateContentPage as r } from "../hooks/useContentPages.js";
|
|
4
|
+
import { ContentPageForm as i } from "../components/ContentPageForm.js";
|
|
5
|
+
import { LoadingState as a } from "../../../shared/components/feedback/LoadingState.js";
|
|
6
|
+
import { ErrorState as o } from "../../../shared/components/feedback/ErrorState.js";
|
|
7
7
|
import { useState as s } from "react";
|
|
8
8
|
import { ArrowLeft as c } from "lucide-react";
|
|
9
9
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import { useParams as d } from "react-router";
|
|
11
11
|
import { EmphasisPanel as f, PagePurpose as p } from "@burdenoff/fe-libs/ui";
|
|
12
|
-
|
|
12
|
+
// src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx
|
|
13
13
|
function m() {
|
|
14
|
-
let { id: m } = d(), { navigate: h, basePath: g = "/products" } = t(), _ = `${g}/content-pages`, { contentPage: v, loading: y, error: b } =
|
|
14
|
+
let { id: m } = d(), { navigate: h, basePath: g = "/products" } = t(), _ = `${g}/content-pages`, { contentPage: v, loading: y, error: b } = n(m), { updateContentPage: x, loading: S } = r(), [C, w] = s(null), T = e(), E = async (e) => {
|
|
15
15
|
if (m) try {
|
|
16
16
|
w(null), await x(m, e), h(`${_}/${m}`);
|
|
17
17
|
} catch (e) {
|
|
18
|
-
|
|
18
|
+
let t = e instanceof Error ? e.message : "Failed to update content page";
|
|
19
|
+
w(t), console.error("Failed to update content page:", e);
|
|
19
20
|
}
|
|
20
21
|
}, D = () => {
|
|
21
22
|
h(`${_}/${m}`);
|
|
22
23
|
};
|
|
23
24
|
return y ? /* @__PURE__ */ l("div", {
|
|
24
25
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
25
|
-
children: /* @__PURE__ */ l(
|
|
26
|
+
children: /* @__PURE__ */ l(a, { message: T("contentPages.loadingContentPage", "Loading content page...") })
|
|
26
27
|
}) : b || !v ? /* @__PURE__ */ l("div", {
|
|
27
28
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
28
|
-
children: /* @__PURE__ */ l(
|
|
29
|
+
children: /* @__PURE__ */ l(o, {
|
|
29
30
|
message: b?.message || T("contentPages.contentPageNotFound", "Content page not found"),
|
|
30
31
|
action: {
|
|
31
32
|
label: T("contentPages.backToContentPages", "Back to Content Pages"),
|
|
@@ -74,7 +75,7 @@ function m() {
|
|
|
74
75
|
}),
|
|
75
76
|
/* @__PURE__ */ l("div", {
|
|
76
77
|
className: "max-w-2xl",
|
|
77
|
-
children: /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
|
|
78
|
+
children: /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(i, {
|
|
78
79
|
contentPage: v,
|
|
79
80
|
onSubmit: E,
|
|
80
81
|
onCancel: D,
|
|
@@ -84,7 +85,6 @@ function m() {
|
|
|
84
85
|
]
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
|
-
//#endregion
|
|
88
88
|
export { m as ContentPageEditPage };
|
|
89
89
|
|
|
90
90
|
//# sourceMappingURL=ContentPageEditPage.js.map
|
|
@@ -1 +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';\nimport { ArrowLeft } from 'lucide-react';\nimport { EmphasisPanel, PagePurpose } from '@burdenoff/fe-libs/ui';\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-200\">\n <div className=\"mb-6\">\n <button\n type=\"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-2xl md:text-3xl font-semibold tracking-tight 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\n <PagePurpose className=\"mt-3 max-w-2xl\">\n {tr(\n 'contentPages.editPurpose',\n 'Update this page — rewrite the content, refine the SEO, or flip its published state. Each save records a new version, so you can change copy safely and only publish when it is ready for users.'\n )}\n </PagePurpose>\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 <EmphasisPanel>\n <ContentPageForm\n contentPage={contentPage}\n onSubmit={handleSubmit}\n onCancel={handleCancel}\n loading={updateLoading}\n />\n </EmphasisPanel>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAYA,
|
|
1
|
+
{"version":3,"file":"ContentPageEditPage.js","names":["ContentPageEditPage","useParams","useProductConsole","contentPagesBasePath","basePath","fetchLoading","fetchError","useContentPage","id","updateLoading","useUpdateContentPage","error","setError","useState","tr","useTr","handleSubmit","updateContentPage","data","navigate","err","message","handleCancel","LoadingState","contentPage","ErrorState","ArrowLeft","PagePurpose","EmphasisPanel","ContentPageForm"],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router';\nimport { ArrowLeft } from 'lucide-react';\nimport { EmphasisPanel, PagePurpose } from '@burdenoff/fe-libs/ui';\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-200\">\n <div className=\"mb-6\">\n <button\n type=\"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-2xl md:text-3xl font-semibold tracking-tight 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\n <PagePurpose className=\"mt-3 max-w-2xl\">\n {tr(\n 'contentPages.editPurpose',\n 'Update this page — rewrite the content, refine the SEO, or flip its published state. Each save records a new version, so you can change copy safely and only publish when it is ready for users.'\n )}\n </PagePurpose>\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 <EmphasisPanel>\n <ContentPageForm\n contentPage={contentPage}\n onSubmit={handleSubmit}\n onCancel={handleCancel}\n loading={updateLoading}\n />\n </EmphasisPanel>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAYA,SAAgBA,IAAsB;CACpC,IAAM,EAAE,UAAOC,EAA0B,GACnC,EAAE,aAAU,cAAW,gBAAgBC,EAAkB,GACzDC,IAAuB,GAAGC,EAAS,iBACnC,EAAE,gBAAa,SAASC,GAAc,OAAOC,MAAeC,EAAeC,CAAG,GAC9E,EAAE,sBAAmB,SAASC,MAAkBC,EAAqB,GACrE,CAACC,GAAOC,KAAYC,EAAwB,IAAI,GAChDC,IAAKC,EAAM,GAEXC,IAAe,OAAO,MAAiC;EAC3D,IAAKR,GAEL,IAAI;GAGF,AAFAI,EAAS,IAAI,GACb,MAAMK,EAAkBT,GAAIU,CAAI,GAChCC,EAAS,GAAGhB,EAAqB,GAAGK,GAAI;EAC1C,SAASY,GAAK;GACZ,IAAMC,IAAUD,aAAe,QAAQA,EAAI,UAAU;GAErD,AADAR,EAASS,CAAO,GAChB,QAAQ,MAAM,kCAAkCD,CAAG;EACrD;CACF,GAEME,UAAqB;EACzB,EAAS,GAAGnB,EAAqB,GAAGK,GAAI;CAC1C;CA0BA,OAxBIH,IAEA,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAACkB,GAAD,EAAc,SAAST,EAAG,mCAAmC,yBAAyB,EAAI,CAAA;CACvF,CAAA,IAILR,KAAc,CAACkB,IAEf,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAACC,GAAD;GACE,SACEnB,GAAY,WAAWQ,EAAG,oCAAoC,wBAAwB;GAExF,QAAQ;IACN,OAAOA,EAAG,mCAAmC,uBAAuB;IACpE,eAAeK,EAAShB,CAAoB;GAC9C;EACD,CAAA;CACE,CAAA,IAKP,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACE,kBAAC,UAAD;MACE,MAAK;MACL,SAASmB;MACT,WAAU;MAHZ,UAAA,CAUE,kBAACI,GAAD,EAAW,MAAM,GAAK,CAAA,GACtB,kBAAC,QAAD;OAAM,WAAU;OAAhB,UAAA;QACGZ,EAAG,uBAAuB,SAAS;QAAE;QAAEU,EAAY;OAChD;MACA,CAAA,CAAA;;KAER,kBAAC,MAAD;MAAI,WAAU;MACX,UAAAV,EAAG,gCAAgC,mBAAmB;KACrD,CAAA;KACJ,kBAAC,KAAD;MAAG,WAAU;MACV,UAAAA,EAAG,wCAAwC,iCAAiC;KAC5E,CAAA;KAEH,kBAACa,GAAD;MAAa,WAAU;MACpB,UAAAb,EACC,4BACA,kMACF;KACW,CAAA;IACV;;GAEJH,KACC,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,kBAAC,KAAD;KAAG,WAAU;KAA4C,UAAAA;IAAS,CAAA;GAC/D,CAAA;GAGP,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,kBAACiB,GAAD,EAAA,UACE,kBAACC,GAAD;KACe;KACb,UAAUb;KACV,UAAUM;KACV,SAASb;IACV,CAAA,EACY,CAAA;GACZ,CAAA;EACF;;AAET"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPagesListPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx"],"names":[],"mappings":"AA8CA,wBAAgB,oBAAoB,gCAmZnC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import { useDebounced as t } from "../../../shared/hooks/useDebounced.js";
|
|
3
|
+
import { useProductConsole as n } from "../../../providers/ProductConsoleProvider.js";
|
|
4
|
+
import { useContentPages as r, useDeleteContentPage as i } from "../hooks/useContentPages.js";
|
|
5
|
+
import { ContentPageStatusBadge as a } from "../components/ContentPageStatusBadge.js";
|
|
6
|
+
import { SearchInput as o } from "../../../shared/components/input/SearchInput.js";
|
|
7
|
+
import { exportToCsv as s } from "../../../shared/utils/exportUtils.js";
|
|
8
|
+
import { LoadingState as c } from "../../../shared/components/feedback/LoadingState.js";
|
|
9
|
+
import { ErrorState as l } from "../../../shared/components/feedback/ErrorState.js";
|
|
10
|
+
import { nativeConfirm as u, nativeImpact as d, nativeNotify as f } from "../../../../utils/nativeBridge.js";
|
|
11
|
+
import { useConfirmDialog as p } from "../../../shared/hooks/useConfirmDialog.js";
|
|
12
12
|
import { useEffect as ee, useState as m } from "react";
|
|
13
13
|
import { ChevronLeft as h, ChevronRight as g, Download as _, Eye as v, FileText as y, Plus as b, RefreshCw as x, SquarePen as S, Trash2 as C } from "lucide-react";
|
|
14
14
|
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
15
15
|
import { PermissionGate as E } from "@burdenoff/fe-libs/shared/components";
|
|
16
16
|
import { Button as D, CTAOverflowMenu as O, GlassCard as k, GradientText as A, IllustratedEmptyState as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
17
|
-
|
|
17
|
+
// src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx
|
|
18
18
|
var N = [
|
|
19
19
|
{
|
|
20
20
|
label: "All",
|
|
@@ -42,7 +42,7 @@ var N = [
|
|
|
42
42
|
}
|
|
43
43
|
], P = 20;
|
|
44
44
|
function F() {
|
|
45
|
-
let { navigate: F, basePath: I = "/products" } =
|
|
45
|
+
let { navigate: F, basePath: I = "/products" } = n(), L = `${I}/content-pages`, [R, z] = m(""), B = t(R, 300), V = e(), [H, U] = m({}), [W, G] = m(0), { contentPages: K, total: q, hasMore: J, loading: Y, error: X, refetch: Z } = r(void 0, {
|
|
46
46
|
...H,
|
|
47
47
|
search: B || void 0
|
|
48
48
|
}, {
|
|
@@ -57,9 +57,9 @@ function F() {
|
|
|
57
57
|
let e = Math.ceil(q / P) - 1;
|
|
58
58
|
G((t) => t > e ? e : t);
|
|
59
59
|
}, [q]);
|
|
60
|
-
let { deleteContentPage: ne, loading: re } =
|
|
61
|
-
|
|
62
|
-
let t = V("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), n = await
|
|
60
|
+
let { deleteContentPage: ne, loading: re } = i(), { confirm: ie, ConfirmDialog: ae } = p(), oe = async (e) => {
|
|
61
|
+
d("medium");
|
|
62
|
+
let t = V("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), n = await u({
|
|
63
63
|
title: "Delete content page",
|
|
64
64
|
message: t,
|
|
65
65
|
okButtonTitle: "Delete",
|
|
@@ -72,9 +72,9 @@ function F() {
|
|
|
72
72
|
cancelButtonTitle: "Cancel",
|
|
73
73
|
destructive: !0
|
|
74
74
|
}) : n) try {
|
|
75
|
-
await ne(e),
|
|
75
|
+
await ne(e), f("success"), Z();
|
|
76
76
|
} catch (e) {
|
|
77
|
-
|
|
77
|
+
f("error"), console.error("Failed to delete content page:", e);
|
|
78
78
|
}
|
|
79
79
|
}, se = (e) => e ? new Date(e).toLocaleDateString("en-US", {
|
|
80
80
|
year: "numeric",
|
|
@@ -113,22 +113,25 @@ function F() {
|
|
|
113
113
|
}),
|
|
114
114
|
/* @__PURE__ */ w("div", {
|
|
115
115
|
className: "flex flex-wrap gap-1 border-b border-border-seam pb-px",
|
|
116
|
-
children: N.map((e) =>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
116
|
+
children: N.map((e) => {
|
|
117
|
+
let t = (H.tag ?? "") === e.tag;
|
|
118
|
+
return /* @__PURE__ */ w("button", {
|
|
119
|
+
type: "button",
|
|
120
|
+
onClick: () => {
|
|
121
|
+
U({
|
|
122
|
+
...H,
|
|
123
|
+
tag: e.tag || void 0
|
|
124
|
+
}), G(0);
|
|
125
|
+
},
|
|
126
|
+
className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${t ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
|
|
127
|
+
children: V(`contentPages.tab.${e.label.toLowerCase()}`, e.label)
|
|
128
|
+
}, e.label);
|
|
129
|
+
})
|
|
127
130
|
}),
|
|
128
131
|
/* @__PURE__ */ T("div", {
|
|
129
132
|
className: "flex gap-4",
|
|
130
133
|
children: [
|
|
131
|
-
/* @__PURE__ */ w(
|
|
134
|
+
/* @__PURE__ */ w(o, {
|
|
132
135
|
value: R,
|
|
133
136
|
onChange: (e) => {
|
|
134
137
|
z(e), G(0);
|
|
@@ -141,7 +144,7 @@ function F() {
|
|
|
141
144
|
onChange: (e) => {
|
|
142
145
|
U({
|
|
143
146
|
...H,
|
|
144
|
-
isPublished: e.target.value === "published"
|
|
147
|
+
isPublished: e.target.value === "published" || void 0
|
|
145
148
|
}), G(0);
|
|
146
149
|
},
|
|
147
150
|
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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
@@ -161,7 +164,7 @@ function F() {
|
|
|
161
164
|
}),
|
|
162
165
|
K.length > 0 && /* @__PURE__ */ w("button", {
|
|
163
166
|
type: "button",
|
|
164
|
-
onClick: () =>
|
|
167
|
+
onClick: () => s("content-pages", K.map((e) => ({
|
|
165
168
|
id: e.id,
|
|
166
169
|
slug: e.slug,
|
|
167
170
|
title: e.title,
|
|
@@ -181,13 +184,13 @@ function F() {
|
|
|
181
184
|
})
|
|
182
185
|
]
|
|
183
186
|
}),
|
|
184
|
-
X ? /* @__PURE__ */ w(
|
|
187
|
+
X ? /* @__PURE__ */ w(l, {
|
|
185
188
|
message: X.message,
|
|
186
189
|
action: {
|
|
187
190
|
label: V("productCommon.retry", "Retry"),
|
|
188
191
|
onClick: () => Z()
|
|
189
192
|
}
|
|
190
|
-
}) : Y && K.length === 0 ? /* @__PURE__ */ w(
|
|
193
|
+
}) : Y && K.length === 0 ? /* @__PURE__ */ w(c, { message: V("contentPages.loadingContentPages", "Loading content pages...") }) : K.length === 0 ? /* @__PURE__ */ w(k, {
|
|
191
194
|
treatment: "insight",
|
|
192
195
|
className: "animate-in fade-in duration-200",
|
|
193
196
|
children: /* @__PURE__ */ w(j, {
|
|
@@ -264,7 +267,7 @@ function F() {
|
|
|
264
267
|
}),
|
|
265
268
|
/* @__PURE__ */ w("td", {
|
|
266
269
|
className: "px-6 py-4",
|
|
267
|
-
children: /* @__PURE__ */ w(
|
|
270
|
+
children: /* @__PURE__ */ w(a, { isPublished: e.isPublished })
|
|
268
271
|
}),
|
|
269
272
|
/* @__PURE__ */ w("td", {
|
|
270
273
|
className: "px-6 py-4",
|
|
@@ -365,7 +368,6 @@ function F() {
|
|
|
365
368
|
]
|
|
366
369
|
});
|
|
367
370
|
}
|
|
368
|
-
//#endregion
|
|
369
371
|
export { F as ContentPagesListPage };
|
|
370
372
|
|
|
371
373
|
//# sourceMappingURL=ContentPagesListPage.js.map
|