@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductManagementRoutes.d.ts","sourceRoot":"","sources":["../../src/product-management/ProductManagementRoutes.tsx"],"names":[],"mappings":"AA0HA;;;GAGG;AACH,wBAAgB,uBAAuB,gCAyMtC"}
|
|
@@ -6,7 +6,7 @@ import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
|
6
6
|
import { FeatureGate as s } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
7
7
|
import { Route as c, Routes as l } from "react-router";
|
|
8
8
|
import { ErrorBoundary as u } from "@burdenoff/fe-libs/shared/components";
|
|
9
|
-
|
|
9
|
+
// src/product-management/ProductManagementRoutes.tsx
|
|
10
10
|
var d = i(() => import("./modules/products/pages/ProductCreatePage.js").then((e) => ({ default: e.ProductCreatePage }))), f = i(() => import("./modules/products/pages/ProductDetailPage.js").then((e) => ({ default: e.ProductDetailPage }))), p = i(() => import("./modules/products/pages/ProductEditPage.js").then((e) => ({ default: e.ProductEditPage }))), m = i(() => import("./modules/shortcuts/pages/ShortcutsListPage.js").then((e) => ({ default: e.ShortcutsListPage }))), h = i(() => import("./modules/shortcuts/pages/ShortcutCreatePage.js").then((e) => ({ default: e.ShortcutCreatePage }))), g = i(() => import("./modules/shortcuts/pages/ShortcutDetailPage.js").then((e) => ({ default: e.ShortcutDetailPage }))), _ = i(() => import("./modules/shortcuts/pages/ShortcutEditPage.js").then((e) => ({ default: e.ShortcutEditPage }))), v = i(() => import("./modules/content-pages/pages/ContentPagesListPage.js").then((e) => ({ default: e.ContentPagesListPage }))), y = i(() => import("./modules/content-pages/pages/ContentPageCreatePage.js").then((e) => ({ default: e.ContentPageCreatePage }))), b = i(() => import("./modules/content-pages/pages/ContentPageDetailPage.js").then((e) => ({ default: e.ContentPageDetailPage }))), x = i(() => import("./modules/content-pages/pages/ContentPageEditPage.js").then((e) => ({ default: e.ContentPageEditPage }))), S = i(() => import("./modules/press-kit/pages/PressKitListPage.js").then((e) => ({ default: e.PressKitListPage }))), C = i(() => import("./modules/press-kit/pages/PressKitCreatePage.js").then((e) => ({ default: e.PressKitCreatePage }))), w = i(() => import("./modules/press-kit/pages/PressKitDetailPage.js").then((e) => ({ default: e.PressKitDetailPage }))), T = i(() => import("./modules/press-kit/pages/PressKitEditPage.js").then((e) => ({ default: e.PressKitEditPage }))), E = i(() => import("./modules/feature-flags/pages/FeatureFlagsListPage.js").then((e) => ({ default: e.FeatureFlagsListPage }))), D = i(() => import("./modules/feature-flags/pages/FeatureFlagCreatePage.js").then((e) => ({ default: e.FeatureFlagCreatePage }))), O = i(() => import("./modules/feature-flags/pages/FeatureFlagDetailPage.js").then((e) => ({ default: e.FeatureFlagDetailPage }))), k = i(() => import("./modules/feature-flags/pages/FeatureFlagEditPage.js").then((e) => ({ default: e.FeatureFlagEditPage }))), A = /* @__PURE__ */ a(t, { message: "Something went wrong loading this page." });
|
|
11
11
|
function j({ children: t }) {
|
|
12
12
|
return /* @__PURE__ */ a(u, {
|
|
@@ -169,7 +169,6 @@ function M() {
|
|
|
169
169
|
})
|
|
170
170
|
] });
|
|
171
171
|
}
|
|
172
|
-
//#endregion
|
|
173
172
|
export { M as ProductManagementRoutes };
|
|
174
173
|
|
|
175
174
|
//# sourceMappingURL=ProductManagementRoutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductManagementRoutes.js","names":[],"sources":["../../src/product-management/ProductManagementRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, type ReactNode } from 'react';\nimport { Route, Routes } from 'react-router';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureGate } from '@burdenoff/fe-libs/shared/feature-flags';\n\nimport { LoadingState } from './shared/components/feedback/LoadingState';\nimport { ErrorState } from './shared/components/feedback/ErrorState';\n\n// Eager load - main entry point\nimport { ProductsListPage } from './modules/products/pages/ProductsListPage';\n\n// Lazy load - secondary pages\nconst ProductCreatePage = lazy(() =>\n import('./modules/products/pages/ProductCreatePage').then((m) => ({\n default: m.ProductCreatePage,\n }))\n);\nconst ProductDetailPage = lazy(() =>\n import('./modules/products/pages/ProductDetailPage').then((m) => ({\n default: m.ProductDetailPage,\n }))\n);\nconst ProductEditPage = lazy(() =>\n import('./modules/products/pages/ProductEditPage').then((m) => ({ default: m.ProductEditPage }))\n);\n\n// Shortcuts pages - lazy loaded\nconst ShortcutsListPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutsListPage').then((m) => ({\n default: m.ShortcutsListPage,\n }))\n);\nconst ShortcutCreatePage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutCreatePage').then((m) => ({\n default: m.ShortcutCreatePage,\n }))\n);\nconst ShortcutDetailPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutDetailPage').then((m) => ({\n default: m.ShortcutDetailPage,\n }))\n);\nconst ShortcutEditPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutEditPage').then((m) => ({\n default: m.ShortcutEditPage,\n }))\n);\n\n// Content Pages - lazy loaded\nconst ContentPagesListPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPagesListPage').then((m) => ({\n default: m.ContentPagesListPage,\n }))\n);\nconst ContentPageCreatePage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageCreatePage').then((m) => ({\n default: m.ContentPageCreatePage,\n }))\n);\nconst ContentPageDetailPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageDetailPage').then((m) => ({\n default: m.ContentPageDetailPage,\n }))\n);\nconst ContentPageEditPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageEditPage').then((m) => ({\n default: m.ContentPageEditPage,\n }))\n);\nconst PressKitListPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitListPage').then((m) => ({\n default: m.PressKitListPage,\n }))\n);\nconst PressKitCreatePage = lazy(() =>\n import('./modules/press-kit/pages/PressKitCreatePage').then((m) => ({\n default: m.PressKitCreatePage,\n }))\n);\nconst PressKitDetailPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitDetailPage').then((m) => ({\n default: m.PressKitDetailPage,\n }))\n);\nconst PressKitEditPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitEditPage').then((m) => ({\n default: m.PressKitEditPage,\n }))\n);\n\n// Feature Flags - lazy loaded\nconst FeatureFlagsListPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagsListPage').then((m) => ({\n default: m.FeatureFlagsListPage,\n }))\n);\nconst FeatureFlagCreatePage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagCreatePage').then((m) => ({\n default: m.FeatureFlagCreatePage,\n }))\n);\nconst FeatureFlagDetailPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagDetailPage').then((m) => ({\n default: m.FeatureFlagDetailPage,\n }))\n);\nconst FeatureFlagEditPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagEditPage').then((m) => ({\n default: m.FeatureFlagEditPage,\n }))\n);\n\nconst pageFallback = <ErrorState message=\"Something went wrong loading this page.\" />;\n\nfunction SuspensePage({ children }: { children: ReactNode }) {\n return (\n <ErrorBoundary fallback={pageFallback}>\n <Suspense fallback={<LoadingState />}>{children}</Suspense>\n </ErrorBoundary>\n );\n}\n\n/**\n * ProductManagementRoutes\n * Routes start from root (/) since parent route is /products/*\n */\nexport function ProductManagementRoutes() {\n return (\n <Routes>\n {/* Host-shell sidebar is the canonical Products nav; no in-page tabs here. */}\n <Route index element={<ProductsListPage />} />\n {/* `/products/all` aliases the index for legacy bookmarks. */}\n <Route path=\"all\" element={<ProductsListPage />} />\n <Route\n path=\"new\"\n element={\n <SuspensePage>\n <ProductCreatePage />\n </SuspensePage>\n }\n />\n <Route\n path=\":id\"\n element={\n <SuspensePage>\n <ProductDetailPage />\n </SuspensePage>\n }\n />\n <Route\n path=\":id/edit\"\n element={\n <SuspensePage>\n <ProductEditPage />\n </SuspensePage>\n }\n />\n\n {/* Keyboard Shortcuts Routes */}\n <Route\n path=\"shortcuts\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutsListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/new\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Content Pages Routes */}\n <Route\n path=\"content-pages\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPagesListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/new\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Press Kit Routes */}\n <Route\n path=\"press-kit\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/new\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Feature Flags Routes */}\n <Route\n path=\"feature-flags\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagsListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/new\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n </Routes>\n );\n}\n"],"mappings":";;;;;;;;;AAYA,IAAM,IAAoB,QACxB,OAAO,iDAA8C,MAAM,OAAO,EAChE,SAAS,EAAE,mBACZ,EAAE,CACJ,EACK,IAAoB,QACxB,OAAO,iDAA8C,MAAM,OAAO,EAChE,SAAS,EAAE,mBACZ,EAAE,CACJ,EACK,IAAkB,QACtB,OAAO,+CAA4C,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CACjG,EAGK,IAAoB,QACxB,OAAO,kDAA+C,MAAM,OAAO,EACjE,SAAS,EAAE,mBACZ,EAAE,CACJ,EACK,IAAqB,QACzB,OAAO,mDAAgD,MAAM,OAAO,EAClE,SAAS,EAAE,oBACZ,EAAE,CACJ,EACK,IAAqB,QACzB,OAAO,mDAAgD,MAAM,OAAO,EAClE,SAAS,EAAE,oBACZ,EAAE,CACJ,EACK,IAAmB,QACvB,OAAO,iDAA8C,MAAM,OAAO,EAChE,SAAS,EAAE,kBACZ,EAAE,CACJ,EAGK,IAAuB,QAC3B,OAAO,yDAAsD,MAAM,OAAO,EACxE,SAAS,EAAE,sBACZ,EAAE,CACJ,EACK,IAAwB,QAC5B,OAAO,0DAAuD,MAAM,OAAO,EACzE,SAAS,EAAE,uBACZ,EAAE,CACJ,EACK,IAAwB,QAC5B,OAAO,0DAAuD,MAAM,OAAO,EACzE,SAAS,EAAE,uBACZ,EAAE,CACJ,EACK,IAAsB,QAC1B,OAAO,wDAAqD,MAAM,OAAO,EACvE,SAAS,EAAE,qBACZ,EAAE,CACJ,EACK,IAAmB,QACvB,OAAO,iDAA8C,MAAM,OAAO,EAChE,SAAS,EAAE,kBACZ,EAAE,CACJ,EACK,IAAqB,QACzB,OAAO,mDAAgD,MAAM,OAAO,EAClE,SAAS,EAAE,oBACZ,EAAE,CACJ,EACK,IA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,MAAK;IAA6B,cAAc;cAC3D,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAyB,CAAA,EACZ,CAAA;IACH,CAAA;GAEhB,CAAA;EACF,kBAAC,GAAD;GACE,MAAK;GACL,SACE,kBAAC,GAAD;IAAa,MAAK;IAA6B,cAAc;cAC3D,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAuB,CAAA,EACV,CAAA;IACH,CAAA;GAEhB,CAAA;EACK,EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"ProductManagementRoutes.js","names":["ProductCreatePage","lazy","m","ProductDetailPage","ProductEditPage","ShortcutsListPage","ShortcutCreatePage","ShortcutDetailPage","ShortcutEditPage","ContentPagesListPage","ContentPageCreatePage","ContentPageDetailPage","ContentPageEditPage","PressKitListPage","PressKitCreatePage","PressKitDetailPage","PressKitEditPage","FeatureFlagsListPage","FeatureFlagCreatePage","FeatureFlagDetailPage","FeatureFlagEditPage","pageFallback","ErrorState","SuspensePage","ErrorBoundary","Suspense","LoadingState","ProductManagementRoutes","Routes","Route","ProductsListPage","FeatureGate"],"sources":["../../src/product-management/ProductManagementRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, type ReactNode } from 'react';\nimport { Route, Routes } from 'react-router';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureGate } from '@burdenoff/fe-libs/shared/feature-flags';\n\nimport { LoadingState } from './shared/components/feedback/LoadingState';\nimport { ErrorState } from './shared/components/feedback/ErrorState';\n\n// Eager load - main entry point\nimport { ProductsListPage } from './modules/products/pages/ProductsListPage';\n\n// Lazy load - secondary pages\nconst ProductCreatePage = lazy(() =>\n import('./modules/products/pages/ProductCreatePage').then((m) => ({\n default: m.ProductCreatePage,\n }))\n);\nconst ProductDetailPage = lazy(() =>\n import('./modules/products/pages/ProductDetailPage').then((m) => ({\n default: m.ProductDetailPage,\n }))\n);\nconst ProductEditPage = lazy(() =>\n import('./modules/products/pages/ProductEditPage').then((m) => ({ default: m.ProductEditPage }))\n);\n\n// Shortcuts pages - lazy loaded\nconst ShortcutsListPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutsListPage').then((m) => ({\n default: m.ShortcutsListPage,\n }))\n);\nconst ShortcutCreatePage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutCreatePage').then((m) => ({\n default: m.ShortcutCreatePage,\n }))\n);\nconst ShortcutDetailPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutDetailPage').then((m) => ({\n default: m.ShortcutDetailPage,\n }))\n);\nconst ShortcutEditPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutEditPage').then((m) => ({\n default: m.ShortcutEditPage,\n }))\n);\n\n// Content Pages - lazy loaded\nconst ContentPagesListPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPagesListPage').then((m) => ({\n default: m.ContentPagesListPage,\n }))\n);\nconst ContentPageCreatePage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageCreatePage').then((m) => ({\n default: m.ContentPageCreatePage,\n }))\n);\nconst ContentPageDetailPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageDetailPage').then((m) => ({\n default: m.ContentPageDetailPage,\n }))\n);\nconst ContentPageEditPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageEditPage').then((m) => ({\n default: m.ContentPageEditPage,\n }))\n);\nconst PressKitListPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitListPage').then((m) => ({\n default: m.PressKitListPage,\n }))\n);\nconst PressKitCreatePage = lazy(() =>\n import('./modules/press-kit/pages/PressKitCreatePage').then((m) => ({\n default: m.PressKitCreatePage,\n }))\n);\nconst PressKitDetailPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitDetailPage').then((m) => ({\n default: m.PressKitDetailPage,\n }))\n);\nconst PressKitEditPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitEditPage').then((m) => ({\n default: m.PressKitEditPage,\n }))\n);\n\n// Feature Flags - lazy loaded\nconst FeatureFlagsListPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagsListPage').then((m) => ({\n default: m.FeatureFlagsListPage,\n }))\n);\nconst FeatureFlagCreatePage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagCreatePage').then((m) => ({\n default: m.FeatureFlagCreatePage,\n }))\n);\nconst FeatureFlagDetailPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagDetailPage').then((m) => ({\n default: m.FeatureFlagDetailPage,\n }))\n);\nconst FeatureFlagEditPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagEditPage').then((m) => ({\n default: m.FeatureFlagEditPage,\n }))\n);\n\nconst pageFallback = <ErrorState message=\"Something went wrong loading this page.\" />;\n\nfunction SuspensePage({ children }: { children: ReactNode }) {\n return (\n <ErrorBoundary fallback={pageFallback}>\n <Suspense fallback={<LoadingState />}>{children}</Suspense>\n </ErrorBoundary>\n );\n}\n\n/**\n * ProductManagementRoutes\n * Routes start from root (/) since parent route is /products/*\n */\nexport function ProductManagementRoutes() {\n return (\n <Routes>\n {/* Host-shell sidebar is the canonical Products nav; no in-page tabs here. */}\n <Route index element={<ProductsListPage />} />\n {/* `/products/all` aliases the index for legacy bookmarks. */}\n <Route path=\"all\" element={<ProductsListPage />} />\n <Route\n path=\"new\"\n element={\n <SuspensePage>\n <ProductCreatePage />\n </SuspensePage>\n }\n />\n <Route\n path=\":id\"\n element={\n <SuspensePage>\n <ProductDetailPage />\n </SuspensePage>\n }\n />\n <Route\n path=\":id/edit\"\n element={\n <SuspensePage>\n <ProductEditPage />\n </SuspensePage>\n }\n />\n\n {/* Keyboard Shortcuts Routes */}\n <Route\n path=\"shortcuts\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutsListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/new\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Content Pages Routes */}\n <Route\n path=\"content-pages\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPagesListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/new\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Press Kit Routes */}\n <Route\n path=\"press-kit\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/new\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Feature Flags Routes */}\n <Route\n path=\"feature-flags\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagsListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/new\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n </Routes>\n );\n}\n"],"mappings":";;;;;;;;;AAYA,IAAMA,IAAoBC,QACxB,OAAO,gDAA6C,CAAC,MAAM,OAAO,EAChE,SAASC,EAAE,kBACb,EAAE,CACJ,GACMC,IAAoBF,QACxB,OAAO,gDAA6C,CAAC,MAAM,OAAO,EAChE,SAASC,EAAE,kBACb,EAAE,CACJ,GACME,IAAkBH,QACtB,OAAO,8CAA2C,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,gBAAgB,EAAE,CACjG,GAGMG,IAAoBJ,QACxB,OAAO,iDAA8C,CAAC,MAAM,OAAO,EACjE,SAASC,EAAE,kBACb,EAAE,CACJ,GACMI,IAAqBL,QACzB,OAAO,kDAA+C,CAAC,MAAM,OAAO,EAClE,SAASC,EAAE,mBACb,EAAE,CACJ,GACMK,IAAqBN,QAC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@@
|
|
|
1
|
+
export { ProductManagementRoot } from './ProductManagementRoot';
|
|
2
|
+
export type { ProductManagementRootProps, NavItem, FooterItem, User } from './types';
|
|
3
|
+
export { ProductConsoleProvider, useProductConsole } from './providers/ProductConsoleProvider';
|
|
4
|
+
export * from './shared';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product-management/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,0BAA0B,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC/F,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProductContentPage, CreateContentPageInput, UpdateContentPageInput } from '../types';
|
|
2
|
+
interface ContentPageFormProps {
|
|
3
|
+
contentPage?: ProductContentPage | null;
|
|
4
|
+
onSubmit: (data: CreateContentPageInput | UpdateContentPageInput) => Promise<void>;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function ContentPageForm({ contentPage, onSubmit, onCancel, loading, }: ContentPageFormProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ContentPageForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPageForm.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/components/ContentPageForm.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGnG,UAAU,oBAAoB;IAC5B,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,sBAAsB,GAAG,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnF,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAOD,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,EAAE,oBAAoB,+BAqtBtB"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { TagInput as e } from "../../../shared/components/input/TagInput.js";
|
|
2
|
+
import { ProductCombobox as t } from "../../../shared/components/input/ProductCombobox.js";
|
|
3
|
+
import { MarkdownEditor as n } from "../../../../shared/components/MarkdownEditor.js";
|
|
4
|
+
import { ZodError as r } from "../../../../node_modules/zod/v4/classic/errors.js";
|
|
5
|
+
import { useTr as i } from "../../../shared/hooks/useTr.js";
|
|
6
6
|
import { createContentPageSchema as a, updateContentPageSchema as o } from "../schemas/index.js";
|
|
7
7
|
import { useState as s } from "react";
|
|
8
8
|
import { Loader2 as c } from "lucide-react";
|
|
9
9
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
var d = new Set(["blog", "press"]);
|
|
10
|
+
// src/product-management/modules/content-pages/components/ContentPageForm.tsx
|
|
11
|
+
var d = /* @__PURE__ */ new Set(["blog", "press"]);
|
|
12
12
|
function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
13
|
-
let g =
|
|
13
|
+
let g = i(), [_, v] = s({
|
|
14
14
|
slug: f?.slug || "",
|
|
15
15
|
title: f?.title || "",
|
|
16
16
|
content: f?.content || "",
|
|
@@ -35,25 +35,25 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
35
35
|
"docs",
|
|
36
36
|
"press",
|
|
37
37
|
"page"
|
|
38
|
-
],
|
|
39
|
-
|
|
40
|
-
}, [
|
|
38
|
+
], S = (f?.tags ?? []).find((e) => x.includes(e)) || "page", [C, w] = s(S), T = (e) => {
|
|
39
|
+
w(e), b((t) => [e, ...t.filter((e) => !x.includes(e))]);
|
|
40
|
+
}, [E, D] = s({}), O = () => {
|
|
41
41
|
try {
|
|
42
42
|
let e = f ? o : a, t = { ..._ };
|
|
43
|
-
return t.sortOrder = typeof _.sortOrder == "string" ? parseInt(_.sortOrder, 10) || 0 : _.sortOrder, t.seoTitle || delete t.seoTitle, t.seoDescription || delete t.seoDescription, t.seoKeywords || delete t.seoKeywords, t.productId || delete t.productId, t.contentFormat ||= "markdown", t.excerpt || delete t.excerpt, t.thumbnail || delete t.thumbnail, t.author || delete t.author, t.publishedAt || delete t.publishedAt, t.readingTime || delete t.readingTime, t.category || delete t.category, e.parse(t),
|
|
43
|
+
return t.sortOrder = typeof _.sortOrder == "string" ? parseInt(_.sortOrder, 10) || 0 : _.sortOrder, t.seoTitle || delete t.seoTitle, t.seoDescription || delete t.seoDescription, t.seoKeywords || delete t.seoKeywords, t.productId || delete t.productId, t.contentFormat ||= "markdown", t.excerpt || delete t.excerpt, t.thumbnail || delete t.thumbnail, t.author || delete t.author, t.publishedAt || delete t.publishedAt, t.readingTime || delete t.readingTime, t.category || delete t.category, e.parse(t), D({}), !0;
|
|
44
44
|
} catch (e) {
|
|
45
|
-
if (e instanceof
|
|
45
|
+
if (e instanceof r) {
|
|
46
46
|
let t = {};
|
|
47
47
|
e.issues.forEach((e) => {
|
|
48
48
|
let n = e.path.join(".");
|
|
49
49
|
t[n] = e.message;
|
|
50
|
-
}),
|
|
50
|
+
}), D(t);
|
|
51
51
|
}
|
|
52
52
|
return !1;
|
|
53
53
|
}
|
|
54
|
-
},
|
|
55
|
-
if (e.preventDefault(), !
|
|
56
|
-
let t = typeof _.sortOrder == "string" ? parseInt(_.sortOrder, 10) || 0 : _.sortOrder, n = [
|
|
54
|
+
}, k = async (e) => {
|
|
55
|
+
if (e.preventDefault(), !O()) return;
|
|
56
|
+
let t = typeof _.sortOrder == "string" ? parseInt(_.sortOrder, 10) || 0 : _.sortOrder, n = [C, ...y.filter((e) => !x.includes(e))];
|
|
57
57
|
await p(f ? {
|
|
58
58
|
title: _.title === f.title ? void 0 : _.title,
|
|
59
59
|
content: _.content === f.content ? void 0 : _.content,
|
|
@@ -94,9 +94,9 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
94
94
|
featured: _.featured,
|
|
95
95
|
category: _.category || void 0
|
|
96
96
|
});
|
|
97
|
-
},
|
|
97
|
+
}, A = "\n w-full px-3 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n disabled:bg-bg-sunken disabled:cursor-not-allowed\n transition-all duration-200\n ";
|
|
98
98
|
return /* @__PURE__ */ u("form", {
|
|
99
|
-
onSubmit:
|
|
99
|
+
onSubmit: k,
|
|
100
100
|
className: "space-y-6 animate-in fade-in duration-200",
|
|
101
101
|
children: [
|
|
102
102
|
/* @__PURE__ */ u("div", {
|
|
@@ -114,9 +114,9 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
114
114
|
}),
|
|
115
115
|
/* @__PURE__ */ u("select", {
|
|
116
116
|
id: "pageType",
|
|
117
|
-
value:
|
|
118
|
-
onChange: (e) =>
|
|
119
|
-
className:
|
|
117
|
+
value: C,
|
|
118
|
+
onChange: (e) => T(e.target.value),
|
|
119
|
+
className: A + " scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
120
120
|
disabled: h,
|
|
121
121
|
children: [
|
|
122
122
|
/* @__PURE__ */ l("option", {
|
|
@@ -167,7 +167,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
167
167
|
..._,
|
|
168
168
|
slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
|
|
169
169
|
}),
|
|
170
|
-
className:
|
|
170
|
+
className: A,
|
|
171
171
|
placeholder: "page-slug",
|
|
172
172
|
disabled: h || !!f,
|
|
173
173
|
required: !f
|
|
@@ -176,9 +176,9 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
176
176
|
className: "text-xs text-text-tertiary mt-1",
|
|
177
177
|
children: g("contentPages.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
|
|
178
178
|
}),
|
|
179
|
-
|
|
179
|
+
E.slug && /* @__PURE__ */ l("p", {
|
|
180
180
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
181
|
-
children:
|
|
181
|
+
children: E.slug
|
|
182
182
|
})
|
|
183
183
|
] }),
|
|
184
184
|
/* @__PURE__ */ u("div", { children: [
|
|
@@ -202,14 +202,14 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
202
202
|
..._,
|
|
203
203
|
title: e.target.value
|
|
204
204
|
}),
|
|
205
|
-
className:
|
|
205
|
+
className: A,
|
|
206
206
|
placeholder: g("contentPages.enterPageTitle", "Enter page title"),
|
|
207
207
|
disabled: h,
|
|
208
208
|
required: !0
|
|
209
209
|
}),
|
|
210
|
-
|
|
210
|
+
E.title && /* @__PURE__ */ l("p", {
|
|
211
211
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
212
|
-
children:
|
|
212
|
+
children: E.title
|
|
213
213
|
})
|
|
214
214
|
] })
|
|
215
215
|
]
|
|
@@ -219,7 +219,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
219
219
|
children: [/* @__PURE__ */ l("h3", {
|
|
220
220
|
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
221
221
|
children: g("contentPages.contentEditor", "Content Editor")
|
|
222
|
-
}), /* @__PURE__ */ l(
|
|
222
|
+
}), /* @__PURE__ */ l(n, {
|
|
223
223
|
id: "content",
|
|
224
224
|
value: _.content,
|
|
225
225
|
onChange: (e) => v({
|
|
@@ -228,7 +228,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
228
228
|
}),
|
|
229
229
|
placeholder: g("contentPages.writeContentPlaceholder", "Write your content in markdown..."),
|
|
230
230
|
disabled: h,
|
|
231
|
-
error:
|
|
231
|
+
error: E.content,
|
|
232
232
|
rows: 12,
|
|
233
233
|
minHeight: 320
|
|
234
234
|
})]
|
|
@@ -254,7 +254,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
254
254
|
..._,
|
|
255
255
|
seoTitle: e.target.value
|
|
256
256
|
}),
|
|
257
|
-
className:
|
|
257
|
+
className: A,
|
|
258
258
|
placeholder: g("contentPages.seoTitlePlaceholder", "Page title for search engines"),
|
|
259
259
|
disabled: h
|
|
260
260
|
}),
|
|
@@ -262,9 +262,9 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
262
262
|
className: "text-xs text-text-tertiary mt-1",
|
|
263
263
|
children: [_.seoTitle.length, "/100 characters"]
|
|
264
264
|
}),
|
|
265
|
-
|
|
265
|
+
E.seoTitle && /* @__PURE__ */ l("p", {
|
|
266
266
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
267
|
-
children:
|
|
267
|
+
children: E.seoTitle
|
|
268
268
|
})
|
|
269
269
|
] }),
|
|
270
270
|
/* @__PURE__ */ u("div", { children: [
|
|
@@ -281,7 +281,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
281
281
|
seoDescription: e.target.value
|
|
282
282
|
}),
|
|
283
283
|
rows: 3,
|
|
284
|
-
className:
|
|
284
|
+
className: A,
|
|
285
285
|
placeholder: g("contentPages.seoDescriptionPlaceholder", "Brief description for search engine results"),
|
|
286
286
|
disabled: h
|
|
287
287
|
}),
|
|
@@ -289,9 +289,9 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
289
289
|
className: "text-xs text-text-tertiary mt-1",
|
|
290
290
|
children: [_.seoDescription.length, "/300 characters"]
|
|
291
291
|
}),
|
|
292
|
-
|
|
292
|
+
E.seoDescription && /* @__PURE__ */ l("p", {
|
|
293
293
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
294
|
-
children:
|
|
294
|
+
children: E.seoDescription
|
|
295
295
|
})
|
|
296
296
|
] }),
|
|
297
297
|
/* @__PURE__ */ u("div", { children: [
|
|
@@ -308,7 +308,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
308
308
|
..._,
|
|
309
309
|
seoKeywords: e.target.value
|
|
310
310
|
}),
|
|
311
|
-
className:
|
|
311
|
+
className: A,
|
|
312
312
|
placeholder: "keyword1, keyword2, keyword3",
|
|
313
313
|
disabled: h
|
|
314
314
|
}),
|
|
@@ -320,14 +320,14 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
320
320
|
"/200 characters"
|
|
321
321
|
]
|
|
322
322
|
}),
|
|
323
|
-
|
|
323
|
+
E.seoKeywords && /* @__PURE__ */ l("p", {
|
|
324
324
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
325
|
-
children:
|
|
325
|
+
children: E.seoKeywords
|
|
326
326
|
})
|
|
327
327
|
] })
|
|
328
328
|
]
|
|
329
329
|
}),
|
|
330
|
-
d.has(
|
|
330
|
+
d.has(C) && /* @__PURE__ */ u("div", {
|
|
331
331
|
className: "space-y-4 pt-4 border-t border-border-seam",
|
|
332
332
|
children: [
|
|
333
333
|
/* @__PURE__ */ l("h3", {
|
|
@@ -352,7 +352,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
352
352
|
excerpt: e.target.value
|
|
353
353
|
}),
|
|
354
354
|
rows: 2,
|
|
355
|
-
className:
|
|
355
|
+
className: A,
|
|
356
356
|
placeholder: "Short summary shown on listing cards",
|
|
357
357
|
disabled: h
|
|
358
358
|
}),
|
|
@@ -375,7 +375,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
375
375
|
..._,
|
|
376
376
|
thumbnail: e.target.value
|
|
377
377
|
}),
|
|
378
|
-
className:
|
|
378
|
+
className: A,
|
|
379
379
|
placeholder: "https://images.unsplash.com/...",
|
|
380
380
|
disabled: h
|
|
381
381
|
}),
|
|
@@ -403,7 +403,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
403
403
|
..._,
|
|
404
404
|
author: e.target.value
|
|
405
405
|
}),
|
|
406
|
-
className:
|
|
406
|
+
className: A,
|
|
407
407
|
placeholder: "Author name",
|
|
408
408
|
disabled: h
|
|
409
409
|
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
@@ -418,7 +418,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
418
418
|
..._,
|
|
419
419
|
category: e.target.value
|
|
420
420
|
}),
|
|
421
|
-
className:
|
|
421
|
+
className: A,
|
|
422
422
|
placeholder: "Engineering, Product, Company",
|
|
423
423
|
disabled: h
|
|
424
424
|
})] })]
|
|
@@ -437,7 +437,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
437
437
|
..._,
|
|
438
438
|
publishedAt: e.target.value
|
|
439
439
|
}),
|
|
440
|
-
className:
|
|
440
|
+
className: A,
|
|
441
441
|
disabled: h
|
|
442
442
|
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
443
443
|
htmlFor: "readingTime",
|
|
@@ -453,7 +453,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
453
453
|
..._,
|
|
454
454
|
readingTime: parseInt(e.target.value, 10) || 0
|
|
455
455
|
}),
|
|
456
|
-
className:
|
|
456
|
+
className: A,
|
|
457
457
|
placeholder: "5",
|
|
458
458
|
disabled: h
|
|
459
459
|
})] })]
|
|
@@ -529,9 +529,9 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
529
529
|
children: _.isPublished ? g("contentPages.published", "Published") : g("contentPages.draft", "Draft")
|
|
530
530
|
})]
|
|
531
531
|
}),
|
|
532
|
-
|
|
532
|
+
E.isPublished && /* @__PURE__ */ l("p", {
|
|
533
533
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
534
|
-
children:
|
|
534
|
+
children: E.isPublished
|
|
535
535
|
}),
|
|
536
536
|
/* @__PURE__ */ u("div", { children: [
|
|
537
537
|
/* @__PURE__ */ l("label", {
|
|
@@ -546,7 +546,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
546
546
|
..._,
|
|
547
547
|
visibility: e.target.value
|
|
548
548
|
}),
|
|
549
|
-
className:
|
|
549
|
+
className: A + " scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
550
550
|
disabled: h,
|
|
551
551
|
children: [
|
|
552
552
|
/* @__PURE__ */ l("option", {
|
|
@@ -567,9 +567,9 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
567
567
|
className: "text-xs text-text-tertiary mt-1",
|
|
568
568
|
children: g("contentPages.visibilityHint", "Public is required for blog posts and legal pages to appear on the website.")
|
|
569
569
|
}),
|
|
570
|
-
|
|
570
|
+
E.visibility && /* @__PURE__ */ l("p", {
|
|
571
571
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
572
|
-
children:
|
|
572
|
+
children: E.visibility
|
|
573
573
|
})
|
|
574
574
|
] }),
|
|
575
575
|
/* @__PURE__ */ u("div", { children: [
|
|
@@ -587,7 +587,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
587
587
|
..._,
|
|
588
588
|
sortOrder: parseInt(e.target.value, 10) || 0
|
|
589
589
|
}),
|
|
590
|
-
className:
|
|
590
|
+
className: A,
|
|
591
591
|
placeholder: "0",
|
|
592
592
|
disabled: h
|
|
593
593
|
}),
|
|
@@ -595,9 +595,9 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
595
595
|
className: "text-xs text-text-tertiary mt-1",
|
|
596
596
|
children: g("contentPages.sortOrderHint", "Lower numbers appear first. Default is 0.")
|
|
597
597
|
}),
|
|
598
|
-
|
|
598
|
+
E.sortOrder && /* @__PURE__ */ l("p", {
|
|
599
599
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
600
|
-
children:
|
|
600
|
+
children: E.sortOrder
|
|
601
601
|
})
|
|
602
602
|
] }),
|
|
603
603
|
/* @__PURE__ */ u("div", { children: [
|
|
@@ -606,7 +606,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
606
606
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
607
607
|
children: g("contentPages.productId", "Product ID")
|
|
608
608
|
}),
|
|
609
|
-
/* @__PURE__ */ l(
|
|
609
|
+
/* @__PURE__ */ l(t, {
|
|
610
610
|
id: "productId",
|
|
611
611
|
value: _.productId,
|
|
612
612
|
onChange: (e) => v({
|
|
@@ -615,15 +615,15 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
615
615
|
}),
|
|
616
616
|
disabled: h,
|
|
617
617
|
placeholder: g("contentPages.productIdPlaceholder", "Optional product association"),
|
|
618
|
-
error:
|
|
618
|
+
error: E.productId
|
|
619
619
|
}),
|
|
620
620
|
/* @__PURE__ */ l("p", {
|
|
621
621
|
className: "text-xs text-text-tertiary mt-1",
|
|
622
622
|
children: g("contentPages.productIdHint", "Associate this content page with a specific product.")
|
|
623
623
|
}),
|
|
624
|
-
|
|
624
|
+
E.productId && /* @__PURE__ */ l("p", {
|
|
625
625
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
626
|
-
children:
|
|
626
|
+
children: E.productId
|
|
627
627
|
})
|
|
628
628
|
] })
|
|
629
629
|
]
|
|
@@ -635,7 +635,7 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
635
635
|
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
636
636
|
children: "Tags"
|
|
637
637
|
}),
|
|
638
|
-
/* @__PURE__ */ l(
|
|
638
|
+
/* @__PURE__ */ l(e, {
|
|
639
639
|
value: y,
|
|
640
640
|
onChange: b,
|
|
641
641
|
disabled: h
|
|
@@ -667,7 +667,6 @@ function f({ contentPage: f, onSubmit: p, onCancel: m, loading: h }) {
|
|
|
667
667
|
]
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
|
-
//#endregion
|
|
671
670
|
export { f as ContentPageForm };
|
|
672
671
|
|
|
673
672
|
//# sourceMappingURL=ContentPageForm.js.map
|