@burdenoff/microfe-product 2026.510.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -0
- package/dist/generated/global-operations.d.ts +1833 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +846 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.d.ts +20976 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/global-types.js +8 -0
- package/dist/generated/global-types.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +54985 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +555 -0
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/errors.js +23 -0
- package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/iso.js +33 -0
- package/dist/node_modules/zod/v4/classic/iso.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/parse.js +8 -0
- package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +617 -0
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
- package/dist/node_modules/zod/v4/core/api.js +503 -0
- package/dist/node_modules/zod/v4/core/api.js.map +1 -0
- package/dist/node_modules/zod/v4/core/checks.js +285 -0
- package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
- package/dist/node_modules/zod/v4/core/core.js +49 -0
- package/dist/node_modules/zod/v4/core/core.js.map +1 -0
- package/dist/node_modules/zod/v4/core/doc.js +25 -0
- package/dist/node_modules/zod/v4/core/doc.js.map +1 -0
- package/dist/node_modules/zod/v4/core/errors.js +46 -0
- package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +180 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
- package/dist/node_modules/zod/v4/core/parse.js +91 -0
- package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
- package/dist/node_modules/zod/v4/core/regexes.js +27 -0
- package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
- package/dist/node_modules/zod/v4/core/registries.js +42 -0
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
- package/dist/node_modules/zod/v4/core/schemas.js +883 -0
- package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +226 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
- package/dist/node_modules/zod/v4/core/util.js +267 -0
- package/dist/node_modules/zod/v4/core/util.js.map +1 -0
- package/dist/node_modules/zod/v4/core/versions.js +10 -0
- package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
- package/dist/product/ProductUserRoot.d.ts +4 -0
- package/dist/product/ProductUserRoot.d.ts.map +1 -0
- package/dist/product/ProductUserRoot.js +40 -0
- package/dist/product/ProductUserRoot.js.map +1 -0
- package/dist/product/ProductUserRoutes.d.ts +6 -0
- package/dist/product/ProductUserRoutes.d.ts.map +1 -0
- package/dist/product/ProductUserRoutes.js +34 -0
- package/dist/product/ProductUserRoutes.js.map +1 -0
- package/dist/product/hooks/usePublicContentPage.d.ts +9 -0
- package/dist/product/hooks/usePublicContentPage.d.ts.map +1 -0
- package/dist/product/hooks/usePublicContentPage.js +22 -0
- package/dist/product/hooks/usePublicContentPage.js.map +1 -0
- package/dist/product/hooks/usePublicProduct.d.ts +9 -0
- package/dist/product/hooks/usePublicProduct.d.ts.map +1 -0
- package/dist/product/hooks/usePublicProduct.js +19 -0
- package/dist/product/hooks/usePublicProduct.js.map +1 -0
- package/dist/product/hooks/usePublicProducts.d.ts +21 -0
- package/dist/product/hooks/usePublicProducts.d.ts.map +1 -0
- package/dist/product/hooks/usePublicProducts.js +25 -0
- package/dist/product/hooks/usePublicProducts.js.map +1 -0
- package/dist/product/pages/ContentPageViewPage.d.ts +2 -0
- package/dist/product/pages/ContentPageViewPage.d.ts.map +1 -0
- package/dist/product/pages/ContentPageViewPage.js +81 -0
- package/dist/product/pages/ContentPageViewPage.js.map +1 -0
- package/dist/product/pages/ProductCatalogPage.d.ts +2 -0
- package/dist/product/pages/ProductCatalogPage.d.ts.map +1 -0
- package/dist/product/pages/ProductCatalogPage.js +182 -0
- package/dist/product/pages/ProductCatalogPage.js.map +1 -0
- package/dist/product/pages/ProductViewPage.d.ts +2 -0
- package/dist/product/pages/ProductViewPage.d.ts.map +1 -0
- package/dist/product/pages/ProductViewPage.js +229 -0
- package/dist/product/pages/ProductViewPage.js.map +1 -0
- package/dist/product/pages/ProductsLandingPage.d.ts +10 -0
- package/dist/product/pages/ProductsLandingPage.d.ts.map +1 -0
- package/dist/product/pages/ProductsLandingPage.js +66 -0
- package/dist/product/pages/ProductsLandingPage.js.map +1 -0
- package/dist/product/pages/UserProductsLandingPage.d.ts +9 -0
- package/dist/product/pages/UserProductsLandingPage.d.ts.map +1 -0
- package/dist/product/pages/UserProductsLandingPage.js +10 -0
- package/dist/product/pages/UserProductsLandingPage.js.map +1 -0
- package/dist/product/providers/ProductUserProvider.d.ts +10 -0
- package/dist/product/providers/ProductUserProvider.d.ts.map +1 -0
- package/dist/product/providers/ProductUserProvider.js +19 -0
- package/dist/product/providers/ProductUserProvider.js.map +1 -0
- package/dist/product/types/index.d.ts +34 -0
- package/dist/product/types/index.d.ts.map +1 -0
- package/dist/product-management/ProductManagementRoot.d.ts +4 -0
- package/dist/product-management/ProductManagementRoot.d.ts.map +1 -0
- package/dist/product-management/ProductManagementRoot.js +59 -0
- package/dist/product-management/ProductManagementRoot.js.map +1 -0
- package/dist/product-management/ProductManagementRoutes.d.ts +6 -0
- package/dist/product-management/ProductManagementRoutes.d.ts.map +1 -0
- package/dist/product-management/ProductManagementRoutes.js +144 -0
- package/dist/product-management/ProductManagementRoutes.js.map +1 -0
- package/dist/product-management/index.d.ts +5 -0
- package/dist/product-management/index.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts +10 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +530 -0
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -0
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts +11 -0
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js +29 -0
- package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js.map +1 -0
- package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts +76 -0
- package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/hooks/useContentPages.js +96 -0
- package/dist/product-management/modules/content-pages/hooks/useContentPages.js.map +1 -0
- package/dist/product-management/modules/content-pages/index.d.ts +15 -0
- package/dist/product-management/modules/content-pages/index.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts +2 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +69 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts +6 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +273 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts +2 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +87 -0
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts +2 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +243 -0
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -0
- package/dist/product-management/modules/content-pages/schemas/index.d.ts +33 -0
- package/dist/product-management/modules/content-pages/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/content-pages/schemas/index.js +29 -0
- package/dist/product-management/modules/content-pages/schemas/index.js.map +1 -0
- package/dist/product-management/modules/content-pages/types/index.d.ts +65 -0
- package/dist/product-management/modules/content-pages/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts +11 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +347 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts +8 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js +23 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts +8 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js +31 -0
- package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js.map +1 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts +58 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js +91 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js.map +1 -0
- package/dist/product-management/modules/feature-flags/index.d.ts +13 -0
- package/dist/product-management/modules/feature-flags/index.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts +3 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +61 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts +3 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +292 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts +3 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +88 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts +3 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +467 -0
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -0
- package/dist/product-management/modules/feature-flags/schemas/index.d.ts +35 -0
- package/dist/product-management/modules/feature-flags/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/feature-flags/schemas/index.js +35 -0
- package/dist/product-management/modules/feature-flags/schemas/index.js.map +1 -0
- package/dist/product-management/modules/feature-flags/types/index.d.ts +86 -0
- package/dist/product-management/modules/feature-flags/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductCard.d.ts +15 -0
- package/dist/product-management/modules/products/components/ProductCard.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductForm.d.ts +10 -0
- package/dist/product-management/modules/products/components/ProductForm.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductForm.js +882 -0
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -0
- package/dist/product-management/modules/products/components/ProductPlans.d.ts +8 -0
- package/dist/product-management/modules/products/components/ProductPlans.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductPlans.js +469 -0
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -0
- package/dist/product-management/modules/products/components/ProductStats.d.ts +23 -0
- package/dist/product-management/modules/products/components/ProductStats.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts +12 -0
- package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts.map +1 -0
- package/dist/product-management/modules/products/components/ProductStatusBadge.js +50 -0
- package/dist/product-management/modules/products/components/ProductStatusBadge.js.map +1 -0
- package/dist/product-management/modules/products/hooks/useProducts.d.ts +85 -0
- package/dist/product-management/modules/products/hooks/useProducts.d.ts.map +1 -0
- package/dist/product-management/modules/products/hooks/useProducts.js +93 -0
- package/dist/product-management/modules/products/hooks/useProducts.js.map +1 -0
- package/dist/product-management/modules/products/index.d.ts +16 -0
- package/dist/product-management/modules/products/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts +2 -0
- package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +57 -0
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -0
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts +6 -0
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +422 -0
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -0
- package/dist/product-management/modules/products/pages/ProductEditPage.d.ts +2 -0
- package/dist/product-management/modules/products/pages/ProductEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductEditPage.js +80 -0
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -0
- package/dist/product-management/modules/products/pages/ProductsListPage.d.ts +2 -0
- package/dist/product-management/modules/products/pages/ProductsListPage.d.ts.map +1 -0
- package/dist/product-management/modules/products/pages/ProductsListPage.js +252 -0
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -0
- package/dist/product-management/modules/products/schemas/index.d.ts +59 -0
- package/dist/product-management/modules/products/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/schemas/index.js +73 -0
- package/dist/product-management/modules/products/schemas/index.js.map +1 -0
- package/dist/product-management/modules/products/types/index.d.ts +112 -0
- package/dist/product-management/modules/products/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/products/types/index.js +11 -0
- package/dist/product-management/modules/products/types/index.js.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts +6 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js +46 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts +10 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +389 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts +11 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js +45 -0
- package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js.map +1 -0
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts +85 -0
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js +120 -0
- package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js.map +1 -0
- package/dist/product-management/modules/shortcuts/index.d.ts +17 -0
- package/dist/product-management/modules/shortcuts/index.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts +2 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +60 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts +2 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +271 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts +2 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +85 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts +2 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +295 -0
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -0
- package/dist/product-management/modules/shortcuts/schemas/index.d.ts +35 -0
- package/dist/product-management/modules/shortcuts/schemas/index.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/schemas/index.js +30 -0
- package/dist/product-management/modules/shortcuts/schemas/index.js.map +1 -0
- package/dist/product-management/modules/shortcuts/types/index.d.ts +28 -0
- package/dist/product-management/modules/shortcuts/types/index.d.ts.map +1 -0
- package/dist/product-management/modules/shortcuts/types/index.js +13 -0
- package/dist/product-management/modules/shortcuts/types/index.js.map +1 -0
- package/dist/product-management/providers/ProductConsoleProvider.d.ts +18 -0
- package/dist/product-management/providers/ProductConsoleProvider.d.ts.map +1 -0
- package/dist/product-management/providers/ProductConsoleProvider.js +19 -0
- package/dist/product-management/providers/ProductConsoleProvider.js.map +1 -0
- package/dist/product-management/shared/components/AuditHistoryTab.d.ts +7 -0
- package/dist/product-management/shared/components/AuditHistoryTab.d.ts.map +1 -0
- package/dist/product-management/shared/components/AuditHistoryTab.js +80 -0
- package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -0
- package/dist/product-management/shared/components/TagList.d.ts +7 -0
- package/dist/product-management/shared/components/TagList.d.ts.map +1 -0
- package/dist/product-management/shared/components/TagList.js +15 -0
- package/dist/product-management/shared/components/TagList.js.map +1 -0
- package/dist/product-management/shared/components/feedback/EmptyState.d.ts +13 -0
- package/dist/product-management/shared/components/feedback/EmptyState.d.ts.map +1 -0
- package/dist/product-management/shared/components/feedback/EmptyState.js +30 -0
- package/dist/product-management/shared/components/feedback/EmptyState.js.map +1 -0
- package/dist/product-management/shared/components/feedback/ErrorState.d.ts +18 -0
- package/dist/product-management/shared/components/feedback/ErrorState.d.ts.map +1 -0
- package/dist/product-management/shared/components/feedback/ErrorState.js +34 -0
- package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -0
- package/dist/product-management/shared/components/feedback/LoadingState.d.ts +13 -0
- package/dist/product-management/shared/components/feedback/LoadingState.d.ts.map +1 -0
- package/dist/product-management/shared/components/feedback/LoadingState.js +19 -0
- package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -0
- package/dist/product-management/shared/components/input/SearchInput.d.ts +22 -0
- package/dist/product-management/shared/components/input/SearchInput.d.ts.map +1 -0
- package/dist/product-management/shared/components/input/SearchInput.js +31 -0
- package/dist/product-management/shared/components/input/SearchInput.js.map +1 -0
- package/dist/product-management/shared/components/input/TagInput.d.ts +10 -0
- package/dist/product-management/shared/components/input/TagInput.d.ts.map +1 -0
- package/dist/product-management/shared/components/input/TagInput.js +54 -0
- package/dist/product-management/shared/components/input/TagInput.js.map +1 -0
- package/dist/product-management/shared/hooks/useTr.d.ts +17 -0
- package/dist/product-management/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/product-management/shared/hooks/useTr.js +14 -0
- package/dist/product-management/shared/hooks/useTr.js.map +1 -0
- package/dist/product-management/shared/index.d.ts +11 -0
- package/dist/product-management/shared/index.d.ts.map +1 -0
- package/dist/product-management/shared/index.js +4 -0
- package/dist/product-management/shared/types/graphql.d.ts +119 -0
- package/dist/product-management/shared/types/graphql.d.ts.map +1 -0
- package/dist/product-management/shared/utils/cn.d.ts +7 -0
- package/dist/product-management/shared/utils/cn.d.ts.map +1 -0
- package/dist/product-management/shared/utils/exportUtils.d.ts +5 -0
- package/dist/product-management/shared/utils/exportUtils.d.ts.map +1 -0
- package/dist/product-management/shared/utils/exportUtils.js +17 -0
- package/dist/product-management/shared/utils/exportUtils.js.map +1 -0
- package/dist/product-management/types/index.d.ts +40 -0
- package/dist/product-management/types/index.d.ts.map +1 -0
- package/dist/shared/components/index.d.ts +10 -0
- package/dist/shared/components/index.d.ts.map +1 -0
- package/dist/shared/components/index.js +5 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/utils/formatDate.d.ts +5 -0
- package/dist/shared/utils/formatDate.d.ts.map +1 -0
- package/dist/shared/utils/formatDate.js +12 -0
- package/dist/shared/utils/formatDate.js.map +1 -0
- package/dist/shared/utils/index.d.ts +4 -0
- package/dist/shared/utils/index.d.ts.map +1 -0
- package/dist/shared/utils/isSafeUrl.d.ts +6 -0
- package/dist/shared/utils/isSafeUrl.d.ts.map +1 -0
- package/dist/shared/utils/isSafeUrl.js +8 -0
- package/dist/shared/utils/isSafeUrl.js.map +1 -0
- package/dist/shared/utils/renderMarkdown.d.ts +10 -0
- package/dist/shared/utils/renderMarkdown.d.ts.map +1 -0
- package/dist/shared/utils/renderMarkdown.js +8 -0
- package/dist/shared/utils/renderMarkdown.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +118 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { LoadingState as e } from "../../product-management/shared/components/feedback/LoadingState.js";
|
|
2
|
+
import { ErrorState as t } from "../../product-management/shared/components/feedback/ErrorState.js";
|
|
3
|
+
import { useProductUser as n } from "../providers/ProductUserProvider.js";
|
|
4
|
+
import "../../shared/components/index.js";
|
|
5
|
+
import { formatDate as r } from "../../shared/utils/formatDate.js";
|
|
6
|
+
import { renderMarkdown as i } from "../../shared/utils/renderMarkdown.js";
|
|
7
|
+
import { purify as a } from "../../node_modules/dompurify/dist/purify.es.js";
|
|
8
|
+
import { usePublicContentPage as o } from "../hooks/usePublicContentPage.js";
|
|
9
|
+
import { ArrowLeft as s, FileText as c } from "lucide-react";
|
|
10
|
+
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import { useParams as f } from "react-router-dom";
|
|
13
|
+
//#region src/product/pages/ContentPageViewPage.tsx
|
|
14
|
+
function p() {
|
|
15
|
+
let { slug: p } = f(), { navigate: m, basePath: h = "/products" } = n(), { contentPage: g, loading: _, error: v } = o(p ?? ""), { t: y } = l(), b = (e, t) => {
|
|
16
|
+
let n = y(e);
|
|
17
|
+
return n === e ? t : n;
|
|
18
|
+
};
|
|
19
|
+
return _ && !g ? /* @__PURE__ */ u("div", {
|
|
20
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
21
|
+
children: /* @__PURE__ */ u(e, { message: b("contentPageView.loading", "Loading content...") })
|
|
22
|
+
}) : v || !g ? /* @__PURE__ */ u("div", {
|
|
23
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
24
|
+
children: /* @__PURE__ */ u(t, {
|
|
25
|
+
message: v?.message || b("contentPageView.notFound", "Content page not found"),
|
|
26
|
+
action: {
|
|
27
|
+
label: b("contentPageView.backToProducts", "Back to Products"),
|
|
28
|
+
onClick: () => m(h)
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
}) : /* @__PURE__ */ d("div", {
|
|
32
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
33
|
+
children: [/* @__PURE__ */ d("button", {
|
|
34
|
+
onClick: () => m(h),
|
|
35
|
+
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 ",
|
|
36
|
+
children: [/* @__PURE__ */ u(s, { size: 20 }), /* @__PURE__ */ u("span", {
|
|
37
|
+
className: "text-sm font-medium",
|
|
38
|
+
children: b("contentPageView.backToProducts", "Back to Products")
|
|
39
|
+
})]
|
|
40
|
+
}), /* @__PURE__ */ d("div", {
|
|
41
|
+
className: "max-w-4xl",
|
|
42
|
+
children: [/* @__PURE__ */ d("div", {
|
|
43
|
+
className: "flex items-center gap-3 mb-6",
|
|
44
|
+
children: [/* @__PURE__ */ u(c, {
|
|
45
|
+
size: 24,
|
|
46
|
+
className: "text-text-secondary"
|
|
47
|
+
}), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("h1", {
|
|
48
|
+
className: "text-3xl font-bold text-text-primary",
|
|
49
|
+
children: g.title
|
|
50
|
+
}), g.product && /* @__PURE__ */ u("p", {
|
|
51
|
+
className: "text-sm text-text-tertiary mt-1",
|
|
52
|
+
children: g.product.name
|
|
53
|
+
})] })]
|
|
54
|
+
}), /* @__PURE__ */ d("div", {
|
|
55
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
56
|
+
children: [/* @__PURE__ */ u("div", {
|
|
57
|
+
className: "prose prose-sm max-w-none text-text-primary",
|
|
58
|
+
children: g.contentFormat === "html" ? /* @__PURE__ */ u("div", { dangerouslySetInnerHTML: { __html: a.sanitize(g.content) } }) : g.contentFormat === "markdown" ? /* @__PURE__ */ u("div", { dangerouslySetInnerHTML: { __html: a.sanitize(i(g.content)) } }) : /* @__PURE__ */ u("div", {
|
|
59
|
+
className: "whitespace-pre-wrap",
|
|
60
|
+
children: g.content
|
|
61
|
+
})
|
|
62
|
+
}), /* @__PURE__ */ d("div", {
|
|
63
|
+
className: "mt-6 pt-4 border-t border-default flex items-center justify-between text-xs text-text-tertiary",
|
|
64
|
+
children: [/* @__PURE__ */ d("span", { children: [
|
|
65
|
+
b("contentPageView.version", "Version"),
|
|
66
|
+
" ",
|
|
67
|
+
g.version
|
|
68
|
+
] }), /* @__PURE__ */ d("span", { children: [
|
|
69
|
+
b("contentPageView.lastUpdated", "Last updated:"),
|
|
70
|
+
" ",
|
|
71
|
+
r(g.lastUpdated || g.updatedAt)
|
|
72
|
+
] })]
|
|
73
|
+
})]
|
|
74
|
+
})]
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { p as ContentPageViewPage };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=ContentPageViewPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPageViewPage.js","names":[],"sources":["../../../src/product/pages/ContentPageViewPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport { ArrowLeft, FileText } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport DOMPurify from 'dompurify';\nimport { useProductUser } from '../providers/ProductUserProvider';\nimport { usePublicContentPage } from '../hooks/usePublicContentPage';\nimport { LoadingState, ErrorState } from '../../shared/components';\nimport { formatDate, renderMarkdown } from '../../shared/utils';\n\nexport function ContentPageViewPage() {\n const { slug } = useParams<{ slug: string }>();\n const { navigate, basePath = '/products' } = useProductUser();\n const { contentPage, loading, error } = usePublicContentPage(slug ?? '');\n const { t } = useI18n();\n const tr = (key: string, fallback: string) => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n if (loading && !contentPage) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('contentPageView.loading', 'Loading content...')} />\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={error?.message || tr('contentPageView.notFound', 'Content page not found')}\n action={{\n label: tr('contentPageView.backToProducts', 'Back to Products'),\n onClick: () => navigate(basePath),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n <button\n onClick={() => navigate(basePath)}\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('contentPageView.backToProducts', 'Back to Products')}\n </span>\n </button>\n\n <div className=\"max-w-4xl\">\n <div className=\"flex items-center gap-3 mb-6\">\n <FileText size={24} className=\"text-text-secondary\" />\n <div>\n <h1 className=\"text-3xl font-bold text-text-primary\">{contentPage.title}</h1>\n {contentPage.product && (\n <p className=\"text-sm text-text-tertiary mt-1\">{contentPage.product.name}</p>\n )}\n </div>\n </div>\n\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <div className=\"prose prose-sm max-w-none text-text-primary\">\n {contentPage.contentFormat === 'html' ? (\n <div dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(contentPage.content) }} />\n ) : contentPage.contentFormat === 'markdown' ? (\n <div\n dangerouslySetInnerHTML={{\n __html: DOMPurify.sanitize(renderMarkdown(contentPage.content)),\n }}\n />\n ) : (\n <div className=\"whitespace-pre-wrap\">{contentPage.content}</div>\n )}\n </div>\n\n <div className=\"mt-6 pt-4 border-t border-default flex items-center justify-between text-xs text-text-tertiary\">\n <span>\n {tr('contentPageView.version', 'Version')} {contentPage.version}\n </span>\n <span>\n {tr('contentPageView.lastUpdated', 'Last updated:')}{' '}\n {formatDate(contentPage.lastUpdated || contentPage.updatedAt)}\n </span>\n </div>\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AASA,SAAgB,IAAsB;CACpC,IAAM,EAAE,YAAS,GAA6B,EACxC,EAAE,aAAU,cAAW,gBAAgB,GAAgB,EACvD,EAAE,gBAAa,YAAS,aAAU,EAAqB,KAAQ,GAAG,EAClE,EAAE,SAAM,GAAS,EACjB,KAAM,GAAa,MAAqB;EAC5C,IAAM,IAAa,EAAE,EAAI;AACzB,SAAO,MAAe,IAAM,IAAW;;AAyBzC,QAtBI,KAAW,CAAC,IAEZ,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAc,SAAS,EAAG,2BAA2B,qBAAqB,EAAI,CAAA;EAC1E,CAAA,GAIN,KAAS,CAAC,IAEV,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GACE,SAAS,GAAO,WAAW,EAAG,4BAA4B,yBAAyB;GACnF,QAAQ;IACN,OAAO,EAAG,kCAAkC,mBAAmB;IAC/D,eAAe,EAAS,EAAS;IAClC;GACD,CAAA;EACE,CAAA,GAKR,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,UAAD;GACE,eAAe,EAAS,EAAS;GACjC,WAAU;aAFZ,CASE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACvB,kBAAC,QAAD;IAAM,WAAU;cACb,EAAG,kCAAkC,mBAAmB;IACpD,CAAA,CACA;MAET,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,GAAD;KAAU,MAAM;KAAI,WAAU;KAAwB,CAAA,EACtD,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;KAAI,WAAU;eAAwC,EAAY;KAAW,CAAA,EAC5E,EAAY,WACX,kBAAC,KAAD;KAAG,WAAU;eAAmC,EAAY,QAAQ;KAAS,CAAA,CAE3E,EAAA,CAAA,CACF;OAEN,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,OAAD;KAAK,WAAU;eACZ,EAAY,kBAAkB,SAC7B,kBAAC,OAAD,EAAK,yBAAyB,EAAE,QAAQ,EAAU,SAAS,EAAY,QAAQ,EAAE,EAAI,CAAA,GACnF,EAAY,kBAAkB,aAChC,kBAAC,OAAD,EACE,yBAAyB,EACvB,QAAQ,EAAU,SAAS,EAAe,EAAY,QAAQ,CAAC,EAChE,EACD,CAAA,GAEF,kBAAC,OAAD;MAAK,WAAU;gBAAuB,EAAY;MAAc,CAAA;KAE9D,CAAA,EAEN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,QAAD,EAAA,UAAA;MACG,EAAG,2BAA2B,UAAU;MAAC;MAAE,EAAY;MACnD,EAAA,CAAA,EACP,kBAAC,QAAD,EAAA,UAAA;MACG,EAAG,+BAA+B,gBAAgB;MAAE;MACpD,EAAW,EAAY,eAAe,EAAY,UAAU;MACxD,EAAA,CAAA,CACH;OACF;MACF;KACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCatalogPage.d.ts","sourceRoot":"","sources":["../../../src/product/pages/ProductCatalogPage.tsx"],"names":[],"mappings":"AAWA,wBAAgB,kBAAkB,4CA+KjC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { LoadingState as e } from "../../product-management/shared/components/feedback/LoadingState.js";
|
|
2
|
+
import { ErrorState as t } from "../../product-management/shared/components/feedback/ErrorState.js";
|
|
3
|
+
import { ProductStatusBadge as n } from "../../product-management/modules/products/components/ProductStatusBadge.js";
|
|
4
|
+
import { SearchInput as r } from "../../product-management/shared/components/input/SearchInput.js";
|
|
5
|
+
import { useProductUser as i } from "../providers/ProductUserProvider.js";
|
|
6
|
+
import "../../shared/components/index.js";
|
|
7
|
+
import { usePublicProducts as a } from "../hooks/usePublicProducts.js";
|
|
8
|
+
import { isSafeUrl as o } from "../../shared/utils/isSafeUrl.js";
|
|
9
|
+
import { PlatformProductStatus as s } from "../../generated/global-types.js";
|
|
10
|
+
import { useState as c } from "react";
|
|
11
|
+
import { Eye as l, RefreshCw as u } from "lucide-react";
|
|
12
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
13
|
+
//#region src/product/pages/ProductCatalogPage.tsx
|
|
14
|
+
function p() {
|
|
15
|
+
let { navigate: p, basePath: m = "/products" } = i(), [h, g] = c(""), [_, v] = c({}), { products: y, loading: b, error: x, refetch: S } = a({
|
|
16
|
+
..._,
|
|
17
|
+
search: h || void 0
|
|
18
|
+
}, { limit: 20 });
|
|
19
|
+
return b && !y.length ? /* @__PURE__ */ d("div", {
|
|
20
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
21
|
+
children: /* @__PURE__ */ d(e, { message: "Loading products..." })
|
|
22
|
+
}) : x ? /* @__PURE__ */ d("div", {
|
|
23
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
24
|
+
children: /* @__PURE__ */ d(t, {
|
|
25
|
+
message: x.message,
|
|
26
|
+
action: {
|
|
27
|
+
label: "Retry",
|
|
28
|
+
onClick: () => S()
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
}) : /* @__PURE__ */ f("div", {
|
|
32
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
33
|
+
children: [/* @__PURE__ */ f("div", {
|
|
34
|
+
className: "mb-6",
|
|
35
|
+
children: [/* @__PURE__ */ d("div", {
|
|
36
|
+
className: "flex items-center justify-between mb-4",
|
|
37
|
+
children: /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h1", {
|
|
38
|
+
className: "text-3xl font-bold text-text-primary mb-2",
|
|
39
|
+
children: "Products"
|
|
40
|
+
}), /* @__PURE__ */ d("p", {
|
|
41
|
+
className: "text-text-secondary",
|
|
42
|
+
children: "Browse available platform products"
|
|
43
|
+
})] })
|
|
44
|
+
}), /* @__PURE__ */ f("div", {
|
|
45
|
+
className: "flex gap-4",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ d(r, {
|
|
48
|
+
value: h,
|
|
49
|
+
onChange: g,
|
|
50
|
+
placeholder: "Search products...",
|
|
51
|
+
className: "flex-1"
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ f("select", {
|
|
54
|
+
value: _.status || "",
|
|
55
|
+
onChange: (e) => v({
|
|
56
|
+
..._,
|
|
57
|
+
status: e.target.value ? e.target.value : void 0
|
|
58
|
+
}),
|
|
59
|
+
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 ",
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ d("option", {
|
|
62
|
+
value: "",
|
|
63
|
+
children: "All Statuses"
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ d("option", {
|
|
66
|
+
value: s.Active,
|
|
67
|
+
children: "Active"
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ d("option", {
|
|
70
|
+
value: s.ComingSoon,
|
|
71
|
+
children: "Coming Soon"
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ d("button", {
|
|
76
|
+
onClick: () => S(),
|
|
77
|
+
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n ",
|
|
78
|
+
children: /* @__PURE__ */ d(u, { size: 18 })
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
})]
|
|
82
|
+
}), y.length === 0 ? /* @__PURE__ */ d("div", {
|
|
83
|
+
className: "bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-300",
|
|
84
|
+
children: /* @__PURE__ */ d("p", {
|
|
85
|
+
className: "text-text-secondary",
|
|
86
|
+
children: "No products found"
|
|
87
|
+
})
|
|
88
|
+
}) : /* @__PURE__ */ d("div", {
|
|
89
|
+
className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden",
|
|
90
|
+
children: /* @__PURE__ */ f("table", {
|
|
91
|
+
className: "w-full",
|
|
92
|
+
children: [/* @__PURE__ */ d("thead", {
|
|
93
|
+
className: "bg-muted border-b border-default",
|
|
94
|
+
children: /* @__PURE__ */ f("tr", { children: [
|
|
95
|
+
/* @__PURE__ */ d("th", {
|
|
96
|
+
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
97
|
+
children: "Product"
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ d("th", {
|
|
100
|
+
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
101
|
+
children: "Status"
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ d("th", {
|
|
104
|
+
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
105
|
+
children: "Website"
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ d("th", {
|
|
108
|
+
className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
109
|
+
children: "Actions"
|
|
110
|
+
})
|
|
111
|
+
] })
|
|
112
|
+
}), /* @__PURE__ */ d("tbody", {
|
|
113
|
+
className: "divide-y divide-[var(--color-border-default)]",
|
|
114
|
+
children: y.map((e) => /* @__PURE__ */ f("tr", {
|
|
115
|
+
className: "hover:bg-muted transition-all duration-200",
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ d("td", {
|
|
118
|
+
className: "px-6 py-4",
|
|
119
|
+
children: /* @__PURE__ */ f("div", {
|
|
120
|
+
className: "flex items-center gap-3",
|
|
121
|
+
children: [e.logoUrl ? /* @__PURE__ */ d("img", {
|
|
122
|
+
src: e.logoUrl,
|
|
123
|
+
alt: e.name,
|
|
124
|
+
className: "w-10 h-10 rounded-lg object-cover"
|
|
125
|
+
}) : /* @__PURE__ */ d("div", {
|
|
126
|
+
className: "w-10 h-10 rounded-lg bg-[var(--color-status-warning-subtle)] flex items-center justify-center",
|
|
127
|
+
children: /* @__PURE__ */ d("span", {
|
|
128
|
+
className: "text-[var(--color-status-warning)] font-semibold",
|
|
129
|
+
children: e.name[0]
|
|
130
|
+
})
|
|
131
|
+
}), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
132
|
+
className: "font-medium text-text-primary",
|
|
133
|
+
children: e.name
|
|
134
|
+
}), e.description && /* @__PURE__ */ d("p", {
|
|
135
|
+
className: "text-sm text-text-tertiary line-clamp-1",
|
|
136
|
+
children: e.description
|
|
137
|
+
})] })]
|
|
138
|
+
})
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ d("td", {
|
|
141
|
+
className: "px-6 py-4",
|
|
142
|
+
children: /* @__PURE__ */ d(n, { status: e.status })
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ d("td", {
|
|
145
|
+
className: "px-6 py-4",
|
|
146
|
+
children: e.website ? o(e.website) ? /* @__PURE__ */ d("a", {
|
|
147
|
+
href: e.website,
|
|
148
|
+
target: "_blank",
|
|
149
|
+
rel: "noopener noreferrer",
|
|
150
|
+
className: "text-sm text-[var(--color-text-link)] hover:underline",
|
|
151
|
+
children: e.website
|
|
152
|
+
}) : /* @__PURE__ */ d("span", {
|
|
153
|
+
className: "text-sm text-text-primary",
|
|
154
|
+
children: e.website
|
|
155
|
+
}) : /* @__PURE__ */ d("span", {
|
|
156
|
+
className: "text-sm text-text-tertiary",
|
|
157
|
+
children: "-"
|
|
158
|
+
})
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ d("td", {
|
|
161
|
+
className: "px-6 py-4",
|
|
162
|
+
children: /* @__PURE__ */ d("div", {
|
|
163
|
+
className: "flex items-center justify-end",
|
|
164
|
+
children: /* @__PURE__ */ d("button", {
|
|
165
|
+
onClick: () => p(`${m}/${e.slug}`),
|
|
166
|
+
className: "p-2 rounded-lg text-text-secondary hover:bg-muted transition-all duration-200",
|
|
167
|
+
title: "View details",
|
|
168
|
+
children: /* @__PURE__ */ d(l, { size: 18 })
|
|
169
|
+
})
|
|
170
|
+
})
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
}, e.id))
|
|
174
|
+
})]
|
|
175
|
+
})
|
|
176
|
+
})]
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
export { p as ProductCatalogPage };
|
|
181
|
+
|
|
182
|
+
//# sourceMappingURL=ProductCatalogPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCatalogPage.js","names":[],"sources":["../../../src/product/pages/ProductCatalogPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { RefreshCw, Eye } from 'lucide-react';\nimport { useProductUser } from '../providers/ProductUserProvider';\nimport { usePublicProducts } from '../hooks/usePublicProducts';\nimport { ProductStatusBadge, SearchInput, LoadingState, ErrorState } from '../../shared/components';\nimport { isSafeUrl } from '../../shared/utils';\nimport {\n PlatformProductStatus,\n type PlatformProductFilterInput,\n} from '../../generated/global-types';\n\nexport function ProductCatalogPage() {\n const { navigate, basePath = '/products' } = useProductUser();\n const [searchQuery, setSearchQuery] = useState('');\n const [filter, setFilter] = useState<PlatformProductFilterInput>({});\n\n const { products, loading, error, refetch } = usePublicProducts(\n { ...filter, search: searchQuery || undefined },\n { limit: 20 }\n );\n\n if (loading && !products.length) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message=\"Loading products...\" />\n </div>\n );\n }\n\n if (error) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState message={error.message} action={{ label: 'Retry', onClick: () => refetch() }} />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n <div className=\"mb-6\">\n <div className=\"flex items-center justify-between mb-4\">\n <div>\n <h1 className=\"text-3xl font-bold text-text-primary mb-2\">Products</h1>\n <p className=\"text-text-secondary\">Browse available platform products</p>\n </div>\n </div>\n\n <div className=\"flex gap-4\">\n <SearchInput\n value={searchQuery}\n onChange={setSearchQuery}\n placeholder=\"Search products...\"\n className=\"flex-1\"\n />\n\n <select\n value={filter.status || ''}\n onChange={(e) =>\n setFilter({\n ...filter,\n status: e.target.value ? (e.target.value as PlatformProductStatus) : undefined,\n })\n }\n className=\"\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n \"\n >\n <option value=\"\">All Statuses</option>\n <option value={PlatformProductStatus.Active}>Active</option>\n <option value={PlatformProductStatus.ComingSoon}>Coming Soon</option>\n </select>\n\n <button\n onClick={() => refetch()}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n \"\n >\n <RefreshCw size={18} />\n </button>\n </div>\n </div>\n\n {products.length === 0 ? (\n <div className=\"bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-300\">\n <p className=\"text-text-secondary\">No products found</p>\n </div>\n ) : (\n <div className=\"bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden\">\n <table className=\"w-full\">\n <thead className=\"bg-muted border-b border-default\">\n <tr>\n <th className=\"text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n Product\n </th>\n <th className=\"text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n Status\n </th>\n <th className=\"text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n Website\n </th>\n <th className=\"text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase\">\n Actions\n </th>\n </tr>\n </thead>\n <tbody className=\"divide-y divide-[var(--color-border-default)]\">\n {products.map((product) => (\n <tr key={product.id} className=\"hover:bg-muted transition-all duration-200\">\n <td className=\"px-6 py-4\">\n <div className=\"flex items-center gap-3\">\n {product.logoUrl ? (\n <img\n src={product.logoUrl}\n alt={product.name}\n className=\"w-10 h-10 rounded-lg object-cover\"\n />\n ) : (\n <div className=\"w-10 h-10 rounded-lg bg-[var(--color-status-warning-subtle)] flex items-center justify-center\">\n <span className=\"text-[var(--color-status-warning)] font-semibold\">\n {product.name[0]}\n </span>\n </div>\n )}\n <div>\n <p className=\"font-medium text-text-primary\">{product.name}</p>\n {product.description && (\n <p className=\"text-sm text-text-tertiary line-clamp-1\">\n {product.description}\n </p>\n )}\n </div>\n </div>\n </td>\n <td className=\"px-6 py-4\">\n <ProductStatusBadge status={product.status} />\n </td>\n <td className=\"px-6 py-4\">\n {product.website ? (\n isSafeUrl(product.website) ? (\n <a\n href={product.website}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"text-sm text-[var(--color-text-link)] hover:underline\"\n >\n {product.website}\n </a>\n ) : (\n <span className=\"text-sm text-text-primary\">{product.website}</span>\n )\n ) : (\n <span className=\"text-sm text-text-tertiary\">-</span>\n )}\n </td>\n <td className=\"px-6 py-4\">\n <div className=\"flex items-center justify-end\">\n <button\n onClick={() => navigate(`${basePath}/${product.slug}`)}\n className=\"p-2 rounded-lg text-text-secondary hover:bg-muted transition-all duration-200\"\n title=\"View details\"\n >\n <Eye size={18} />\n </button>\n </div>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA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AAA;QAC3C,CAAA;OACL,kBAAC,MAAD;QAAI,WAAU;kBACX,EAAQ,UACP,EAAU,EAAQ,QAAQ,GACxB,kBAAC,KAAD;SACE,MAAM,EAAQ;SACd,QAAO;SACP,KAAI;SACJ,WAAU;mBAET,EAAQ;SACP,CAAA,GAEJ,kBAAC,QAAD;SAAM,WAAU;mBAA6B,EAAQ;SAAe,CAAA,GAGtE,kBAAC,QAAD;SAAM,WAAU;mBAA6B;SAAQ,CAAA;QAEpD,CAAA;OACL,kBAAC,MAAD;QAAI,WAAU;kBACZ,kBAAC,OAAD;SAAK,WAAU;mBACb,kBAAC,UAAD;UACE,eAAe,EAAS,GAAG,EAAS,GAAG,EAAQ,OAAO;UACtD,WAAU;UACV,OAAM;oBAEN,kBAAC,GAAD,EAAK,MAAM,IAAM,CAAA;UACV,CAAA;SACL,CAAA;QACH,CAAA;OACF;QA1DI,EAAQ,GA0DZ,CACL;KACI,CAAA,CACF;;GACJ,CAAA,CAEJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductViewPage.d.ts","sourceRoot":"","sources":["../../../src/product/pages/ProductViewPage.tsx"],"names":[],"mappings":"AA+BA,wBAAgB,eAAe,4CAgR9B"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { LoadingState as e } from "../../product-management/shared/components/feedback/LoadingState.js";
|
|
2
|
+
import { ErrorState as t } from "../../product-management/shared/components/feedback/ErrorState.js";
|
|
3
|
+
import { ProductStatusBadge as n } from "../../product-management/modules/products/components/ProductStatusBadge.js";
|
|
4
|
+
import { useProductUser as r } from "../providers/ProductUserProvider.js";
|
|
5
|
+
import "../../shared/components/index.js";
|
|
6
|
+
import { isSafeUrl as i } from "../../shared/utils/isSafeUrl.js";
|
|
7
|
+
import { formatDate as a } from "../../shared/utils/formatDate.js";
|
|
8
|
+
import { usePublicProduct as o } from "../hooks/usePublicProduct.js";
|
|
9
|
+
import { ArrowLeft as s, ExternalLink as c, Mail as l, Package as u, Share2 as d } from "lucide-react";
|
|
10
|
+
import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
12
|
+
import { useParams as h } from "react-router-dom";
|
|
13
|
+
//#region src/product/pages/ProductViewPage.tsx
|
|
14
|
+
function g({ url: e, className: t }) {
|
|
15
|
+
return i(e) ? /* @__PURE__ */ m("a", {
|
|
16
|
+
href: e,
|
|
17
|
+
target: "_blank",
|
|
18
|
+
rel: "noopener noreferrer",
|
|
19
|
+
className: t ?? "inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline",
|
|
20
|
+
children: [e, /* @__PURE__ */ p(c, { size: 12 })]
|
|
21
|
+
}) : /* @__PURE__ */ p("span", {
|
|
22
|
+
className: "text-text-primary",
|
|
23
|
+
children: e
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function _() {
|
|
27
|
+
let { slug: i } = h(), { navigate: _, basePath: v = "/products" } = r(), { product: y, loading: b, error: x } = o(i ?? ""), { t: S } = f(), C = (e, t) => {
|
|
28
|
+
let n = S(e);
|
|
29
|
+
return n === e ? t : n;
|
|
30
|
+
};
|
|
31
|
+
if (b && !y) return /* @__PURE__ */ p("div", {
|
|
32
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
33
|
+
children: /* @__PURE__ */ p(e, { message: C("productView.loading", "Loading product details...") })
|
|
34
|
+
});
|
|
35
|
+
if (x || !y) return /* @__PURE__ */ p("div", {
|
|
36
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
37
|
+
children: /* @__PURE__ */ p(t, {
|
|
38
|
+
message: x?.message || C("productView.notFound", "Product not found"),
|
|
39
|
+
action: {
|
|
40
|
+
label: C("productView.backToProducts", "Back to Products"),
|
|
41
|
+
onClick: () => _(v)
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
let w = y.contactEmail || y.supportEmail, T = y.appStoreUrl || y.playStoreUrl, E = y.socialLinks && Object.keys(y.socialLinks).length > 0;
|
|
46
|
+
return /* @__PURE__ */ m("div", {
|
|
47
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
48
|
+
children: [/* @__PURE__ */ m("div", {
|
|
49
|
+
className: "mb-6",
|
|
50
|
+
children: [/* @__PURE__ */ m("button", {
|
|
51
|
+
onClick: () => _(v),
|
|
52
|
+
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 ",
|
|
53
|
+
children: [/* @__PURE__ */ p(s, { size: 20 }), /* @__PURE__ */ p("span", {
|
|
54
|
+
className: "text-sm font-medium",
|
|
55
|
+
children: C("productView.backToProducts", "Back to Products")
|
|
56
|
+
})]
|
|
57
|
+
}), /* @__PURE__ */ m("div", {
|
|
58
|
+
className: "flex items-center gap-4",
|
|
59
|
+
children: [y.logoUrl ? /* @__PURE__ */ p("img", {
|
|
60
|
+
src: y.logoUrl,
|
|
61
|
+
alt: y.name,
|
|
62
|
+
className: "w-16 h-16 rounded-lg object-cover"
|
|
63
|
+
}) : /* @__PURE__ */ p("div", {
|
|
64
|
+
className: "w-16 h-16 rounded-lg bg-[var(--color-status-warning-subtle)] flex items-center justify-center",
|
|
65
|
+
children: /* @__PURE__ */ p(u, {
|
|
66
|
+
size: 32,
|
|
67
|
+
className: "text-[var(--color-status-warning)]"
|
|
68
|
+
})
|
|
69
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("div", {
|
|
70
|
+
className: "flex items-center gap-3 mb-2",
|
|
71
|
+
children: [/* @__PURE__ */ p("h1", {
|
|
72
|
+
className: "text-3xl font-bold text-text-primary",
|
|
73
|
+
children: y.name
|
|
74
|
+
}), /* @__PURE__ */ p(n, { status: y.status })]
|
|
75
|
+
}), y.website && /* @__PURE__ */ p(g, {
|
|
76
|
+
url: y.website,
|
|
77
|
+
className: "inline-flex items-center gap-1.5 text-sm text-[var(--color-text-link)] hover:underline"
|
|
78
|
+
})] })]
|
|
79
|
+
})]
|
|
80
|
+
}), /* @__PURE__ */ m("div", {
|
|
81
|
+
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
82
|
+
children: [
|
|
83
|
+
y.description && /* @__PURE__ */ m("div", {
|
|
84
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
85
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
86
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
87
|
+
children: C("productView.about", "About")
|
|
88
|
+
}), /* @__PURE__ */ p("p", {
|
|
89
|
+
className: "text-sm text-text-secondary leading-relaxed",
|
|
90
|
+
children: y.description
|
|
91
|
+
})]
|
|
92
|
+
}),
|
|
93
|
+
(y.appUrl || y.docsUrl || y.githubUrl || y.statusPageUrl) && /* @__PURE__ */ m("div", {
|
|
94
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
95
|
+
children: [/* @__PURE__ */ m("h2", {
|
|
96
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
97
|
+
children: [/* @__PURE__ */ p(c, { size: 18 }), C("productView.links", "Links")]
|
|
98
|
+
}), /* @__PURE__ */ m("dl", {
|
|
99
|
+
className: "space-y-3",
|
|
100
|
+
children: [
|
|
101
|
+
y.appUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
102
|
+
className: "text-sm font-medium text-text-secondary",
|
|
103
|
+
children: C("productView.app", "App")
|
|
104
|
+
}), /* @__PURE__ */ p("dd", {
|
|
105
|
+
className: "text-sm mt-1",
|
|
106
|
+
children: /* @__PURE__ */ p(g, { url: y.appUrl })
|
|
107
|
+
})] }),
|
|
108
|
+
y.docsUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
109
|
+
className: "text-sm font-medium text-text-secondary",
|
|
110
|
+
children: C("productView.documentation", "Documentation")
|
|
111
|
+
}), /* @__PURE__ */ p("dd", {
|
|
112
|
+
className: "text-sm mt-1",
|
|
113
|
+
children: /* @__PURE__ */ p(g, { url: y.docsUrl })
|
|
114
|
+
})] }),
|
|
115
|
+
y.githubUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
116
|
+
className: "text-sm font-medium text-text-secondary",
|
|
117
|
+
children: C("productView.github", "GitHub")
|
|
118
|
+
}), /* @__PURE__ */ p("dd", {
|
|
119
|
+
className: "text-sm mt-1",
|
|
120
|
+
children: /* @__PURE__ */ p(g, { url: y.githubUrl })
|
|
121
|
+
})] }),
|
|
122
|
+
y.statusPageUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
123
|
+
className: "text-sm font-medium text-text-secondary",
|
|
124
|
+
children: C("productView.statusPage", "Status Page")
|
|
125
|
+
}), /* @__PURE__ */ p("dd", {
|
|
126
|
+
className: "text-sm mt-1",
|
|
127
|
+
children: /* @__PURE__ */ p(g, { url: y.statusPageUrl })
|
|
128
|
+
})] })
|
|
129
|
+
]
|
|
130
|
+
})]
|
|
131
|
+
}),
|
|
132
|
+
w && /* @__PURE__ */ m("div", {
|
|
133
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
134
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
135
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
136
|
+
children: C("productView.contact", "Contact")
|
|
137
|
+
}), /* @__PURE__ */ m("dl", {
|
|
138
|
+
className: "space-y-3",
|
|
139
|
+
children: [y.contactEmail && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("dt", {
|
|
140
|
+
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
141
|
+
children: [/* @__PURE__ */ p(l, { size: 14 }), C("productView.contactEmail", "Contact Email")]
|
|
142
|
+
}), /* @__PURE__ */ p("dd", {
|
|
143
|
+
className: "text-sm mt-1",
|
|
144
|
+
children: /* @__PURE__ */ p("a", {
|
|
145
|
+
href: `mailto:${y.contactEmail}`,
|
|
146
|
+
className: "text-[var(--color-text-link)] hover:underline",
|
|
147
|
+
children: y.contactEmail
|
|
148
|
+
})
|
|
149
|
+
})] }), y.supportEmail && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("dt", {
|
|
150
|
+
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
151
|
+
children: [/* @__PURE__ */ p(l, { size: 14 }), C("productView.supportEmail", "Support Email")]
|
|
152
|
+
}), /* @__PURE__ */ p("dd", {
|
|
153
|
+
className: "text-sm mt-1",
|
|
154
|
+
children: /* @__PURE__ */ p("a", {
|
|
155
|
+
href: `mailto:${y.supportEmail}`,
|
|
156
|
+
className: "text-[var(--color-text-link)] hover:underline",
|
|
157
|
+
children: y.supportEmail
|
|
158
|
+
})
|
|
159
|
+
})] })]
|
|
160
|
+
})]
|
|
161
|
+
}),
|
|
162
|
+
T && /* @__PURE__ */ m("div", {
|
|
163
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
164
|
+
children: [/* @__PURE__ */ m("h2", {
|
|
165
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
166
|
+
children: [/* @__PURE__ */ p(c, { size: 18 }), C("productView.download", "Download")]
|
|
167
|
+
}), /* @__PURE__ */ m("dl", {
|
|
168
|
+
className: "space-y-3",
|
|
169
|
+
children: [y.appStoreUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
170
|
+
className: "text-sm font-medium text-text-secondary",
|
|
171
|
+
children: C("productView.appleAppStore", "Apple App Store")
|
|
172
|
+
}), /* @__PURE__ */ p("dd", {
|
|
173
|
+
className: "text-sm mt-1",
|
|
174
|
+
children: /* @__PURE__ */ p(g, { url: y.appStoreUrl })
|
|
175
|
+
})] }), y.playStoreUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
176
|
+
className: "text-sm font-medium text-text-secondary",
|
|
177
|
+
children: C("productView.googlePlayStore", "Google Play Store")
|
|
178
|
+
}), /* @__PURE__ */ p("dd", {
|
|
179
|
+
className: "text-sm mt-1",
|
|
180
|
+
children: /* @__PURE__ */ p(g, { url: y.playStoreUrl })
|
|
181
|
+
})] })]
|
|
182
|
+
})]
|
|
183
|
+
}),
|
|
184
|
+
E && /* @__PURE__ */ m("div", {
|
|
185
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
186
|
+
children: [/* @__PURE__ */ m("h2", {
|
|
187
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
188
|
+
children: [/* @__PURE__ */ p(d, { size: 18 }), C("productView.socialMedia", "Social Media")]
|
|
189
|
+
}), /* @__PURE__ */ p("dl", {
|
|
190
|
+
className: "space-y-3",
|
|
191
|
+
children: Object.entries(y.socialLinks).map(([e, t]) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
192
|
+
className: "text-sm font-medium text-text-secondary capitalize",
|
|
193
|
+
children: e
|
|
194
|
+
}), /* @__PURE__ */ p("dd", {
|
|
195
|
+
className: "text-sm mt-1",
|
|
196
|
+
children: /* @__PURE__ */ p(g, { url: typeof t == "string" ? t : String(t) })
|
|
197
|
+
})] }, e))
|
|
198
|
+
})]
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ m("div", {
|
|
201
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
202
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
203
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
204
|
+
children: C("productView.details", "Details")
|
|
205
|
+
}), /* @__PURE__ */ m("dl", {
|
|
206
|
+
className: "space-y-3",
|
|
207
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
208
|
+
className: "text-sm font-medium text-text-secondary",
|
|
209
|
+
children: C("productView.added", "Added")
|
|
210
|
+
}), /* @__PURE__ */ p("dd", {
|
|
211
|
+
className: "text-sm text-text-primary mt-1",
|
|
212
|
+
children: a(y.createdAt)
|
|
213
|
+
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
214
|
+
className: "text-sm font-medium text-text-secondary",
|
|
215
|
+
children: C("productView.lastUpdated", "Last Updated")
|
|
216
|
+
}), /* @__PURE__ */ p("dd", {
|
|
217
|
+
className: "text-sm text-text-primary mt-1",
|
|
218
|
+
children: a(y.updatedAt)
|
|
219
|
+
})] })]
|
|
220
|
+
})]
|
|
221
|
+
})
|
|
222
|
+
]
|
|
223
|
+
})]
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
227
|
+
export { _ as ProductViewPage };
|
|
228
|
+
|
|
229
|
+
//# sourceMappingURL=ProductViewPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductViewPage.js","names":[],"sources":["../../../src/product/pages/ProductViewPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport { ArrowLeft, ExternalLink, Mail, Package, Share2 } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { useProductUser } from '../providers/ProductUserProvider';\nimport { usePublicProduct } from '../hooks/usePublicProduct';\nimport { ProductStatusBadge, LoadingState, ErrorState } from '../../shared/components';\nimport { isSafeUrl, formatDate } from '../../shared/utils';\n\n/**\n * Renders a URL as a link if it passes safety validation, otherwise as plain text.\n */\nfunction SafeLink({ url, className }: { url: string; className?: string }) {\n if (isSafeUrl(url)) {\n return (\n <a\n href={url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={\n className ??\n 'inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline'\n }\n >\n {url}\n <ExternalLink size={12} />\n </a>\n );\n }\n return <span className=\"text-text-primary\">{url}</span>;\n}\n\nexport function ProductViewPage() {\n const { slug } = useParams<{ slug: string }>();\n const { navigate, basePath = '/products' } = useProductUser();\n const { product, loading, error } = usePublicProduct(slug ?? '');\n const { t } = useI18n();\n const tr = (key: string, fallback: string) => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n if (loading && !product) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('productView.loading', 'Loading product details...')} />\n </div>\n );\n }\n\n if (error || !product) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error?.message || tr('productView.notFound', 'Product not found')}\n action={{\n label: tr('productView.backToProducts', 'Back to Products'),\n onClick: () => navigate(basePath),\n }}\n />\n </div>\n );\n }\n\n const hasContactInfo = product.contactEmail || product.supportEmail;\n\n const hasAppStoreLinks = product.appStoreUrl || product.playStoreUrl;\n\n const hasSocialLinks = product.socialLinks && Object.keys(product.socialLinks).length > 0;\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n {/* Header */}\n <div className=\"mb-6\">\n <button\n onClick={() => navigate(basePath)}\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('productView.backToProducts', 'Back to Products')}\n </span>\n </button>\n\n <div className=\"flex items-center gap-4\">\n {product.logoUrl ? (\n <img\n src={product.logoUrl}\n alt={product.name}\n className=\"w-16 h-16 rounded-lg object-cover\"\n />\n ) : (\n <div className=\"w-16 h-16 rounded-lg bg-[var(--color-status-warning-subtle)] flex items-center justify-center\">\n <Package size={32} className=\"text-[var(--color-status-warning)]\" />\n </div>\n )}\n\n <div>\n <div className=\"flex items-center gap-3 mb-2\">\n <h1 className=\"text-3xl font-bold text-text-primary\">{product.name}</h1>\n <ProductStatusBadge status={product.status} />\n </div>\n {product.website && (\n <SafeLink\n url={product.website}\n className=\"inline-flex items-center gap-1.5 text-sm text-[var(--color-text-link)] hover:underline\"\n />\n )}\n </div>\n </div>\n </div>\n\n {/* Content */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Description */}\n {product.description && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('productView.about', 'About')}\n </h2>\n <p className=\"text-sm text-text-secondary leading-relaxed\">{product.description}</p>\n </div>\n )}\n\n {/* Links */}\n {(product.appUrl || product.docsUrl || product.githubUrl || product.statusPageUrl) && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <ExternalLink size={18} />\n {tr('productView.links', 'Links')}\n </h2>\n <dl className=\"space-y-3\">\n {product.appUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('productView.app', 'App')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <SafeLink url={product.appUrl} />\n </dd>\n </div>\n )}\n {product.docsUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('productView.documentation', 'Documentation')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <SafeLink url={product.docsUrl} />\n </dd>\n </div>\n )}\n {product.githubUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('productView.github', 'GitHub')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <SafeLink url={product.githubUrl} />\n </dd>\n </div>\n )}\n {product.statusPageUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('productView.statusPage', 'Status Page')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <SafeLink url={product.statusPageUrl} />\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* Contact Information */}\n {hasContactInfo && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('productView.contact', 'Contact')}\n </h2>\n <dl className=\"space-y-3\">\n {product.contactEmail && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <Mail size={14} />\n {tr('productView.contactEmail', 'Contact Email')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={`mailto:${product.contactEmail}`}\n className=\"text-[var(--color-text-link)] hover:underline\"\n >\n {product.contactEmail}\n </a>\n </dd>\n </div>\n )}\n {product.supportEmail && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary flex items-center gap-1.5\">\n <Mail size={14} />\n {tr('productView.supportEmail', 'Support Email')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <a\n href={`mailto:${product.supportEmail}`}\n className=\"text-[var(--color-text-link)] hover:underline\"\n >\n {product.supportEmail}\n </a>\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* App Store Links */}\n {hasAppStoreLinks && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <ExternalLink size={18} />\n {tr('productView.download', 'Download')}\n </h2>\n <dl className=\"space-y-3\">\n {product.appStoreUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('productView.appleAppStore', 'Apple App Store')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <SafeLink url={product.appStoreUrl} />\n </dd>\n </div>\n )}\n {product.playStoreUrl && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('productView.googlePlayStore', 'Google Play Store')}\n </dt>\n <dd className=\"text-sm mt-1\">\n <SafeLink url={product.playStoreUrl} />\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* Social Media Links */}\n {hasSocialLinks && (\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4 flex items-center gap-2\">\n <Share2 size={18} />\n {tr('productView.socialMedia', 'Social Media')}\n </h2>\n <dl className=\"space-y-3\">\n {Object.entries(product.socialLinks!).map(([platform, value]) => {\n const url = typeof value === 'string' ? value : String(value);\n return (\n <div key={platform}>\n <dt className=\"text-sm font-medium text-text-secondary capitalize\">\n {platform}\n </dt>\n <dd className=\"text-sm mt-1\">\n <SafeLink url={url} />\n </dd>\n </div>\n );\n })}\n </dl>\n </div>\n )}\n\n {/* Timestamps */}\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('productView.details', 'Details')}\n </h2>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('productView.added', 'Added')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{formatDate(product.createdAt)}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('productView.lastUpdated', 'Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{formatDate(product.updatedAt)}</dd>\n </div>\n </dl>\n </div>\n </div>\n </div>\n );\n}\n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AU;iBACZ,kBAAC,GAAD,EAAe,KAPT,OAAO,KAAU,WAAW,IAAQ,OAAO,EAAM,EAOjC,CAAA;OACnB,CAAA,CACD,EAAA,EAPI,EAOJ,CAER;MACC,CAAA,CACD;;IAIR,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,uBAAuB,UAAU;MAClC,CAAA,EACL,kBAAC,MAAD;MAAI,WAAU;gBAAd,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAG,qBAAqB,QAAQ;OAC9B,CAAA,EACL,kBAAC,MAAD;OAAI,WAAU;iBAAkC,EAAW,EAAQ,UAAU;OAAM,CAAA,CAC/E,EAAA,CAAA,EACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAG,2BAA2B,eAAe;OAC3C,CAAA,EACL,kBAAC,MAAD;OAAI,WAAU;iBAAkC,EAAW,EAAQ,UAAU;OAAM,CAAA,CAC/E,EAAA,CAAA,CACH;QACD;;IACF;KACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProductsLandingPage
|
|
3
|
+
*
|
|
4
|
+
* Tabbed landing page for the Product microfrontend. Renders the existing
|
|
5
|
+
* sub-pages (products, create, shortcuts, content pages, feature flags)
|
|
6
|
+
* inside a Tabs container. The active tab is reflected in the `?tab=` URL
|
|
7
|
+
* search param.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ProductsLandingPage(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=ProductsLandingPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductsLandingPage.d.ts","sourceRoot":"","sources":["../../../src/product/pages/ProductsLandingPage.tsx"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,4CAwDlC"}
|