@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,267 @@
|
|
|
1
|
+
import { globalConfig as e } from "./core.js";
|
|
2
|
+
//#region node_modules/zod/v4/core/util.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
let t = Object.values(e).filter((e) => typeof e == "number");
|
|
5
|
+
return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
|
|
6
|
+
}
|
|
7
|
+
function n(e, t) {
|
|
8
|
+
return typeof t == "bigint" ? t.toString() : t;
|
|
9
|
+
}
|
|
10
|
+
function r(e) {
|
|
11
|
+
return { get value() {
|
|
12
|
+
{
|
|
13
|
+
let t = e();
|
|
14
|
+
return Object.defineProperty(this, "value", { value: t }), t;
|
|
15
|
+
}
|
|
16
|
+
throw Error("cached value already set");
|
|
17
|
+
} };
|
|
18
|
+
}
|
|
19
|
+
function i(e) {
|
|
20
|
+
return e == null;
|
|
21
|
+
}
|
|
22
|
+
function a(e) {
|
|
23
|
+
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
24
|
+
return e.slice(t, n);
|
|
25
|
+
}
|
|
26
|
+
function o(e, t) {
|
|
27
|
+
let n = e / t, r = Math.round(n), i = 2 ** -52 * Math.max(Math.abs(n), 1);
|
|
28
|
+
return Math.abs(n - r) < i ? 0 : n - r;
|
|
29
|
+
}
|
|
30
|
+
var s = /* @__PURE__ */ Symbol("evaluating");
|
|
31
|
+
function c(e, t, n) {
|
|
32
|
+
let r;
|
|
33
|
+
Object.defineProperty(e, t, {
|
|
34
|
+
get() {
|
|
35
|
+
if (r !== s) return r === void 0 && (r = s, r = n()), r;
|
|
36
|
+
},
|
|
37
|
+
set(n) {
|
|
38
|
+
Object.defineProperty(e, t, { value: n });
|
|
39
|
+
},
|
|
40
|
+
configurable: !0
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function l(e, t, n) {
|
|
44
|
+
Object.defineProperty(e, t, {
|
|
45
|
+
value: n,
|
|
46
|
+
writable: !0,
|
|
47
|
+
enumerable: !0,
|
|
48
|
+
configurable: !0
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function u(...e) {
|
|
52
|
+
let t = {};
|
|
53
|
+
for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
|
|
54
|
+
return Object.defineProperties({}, t);
|
|
55
|
+
}
|
|
56
|
+
function d(e) {
|
|
57
|
+
return JSON.stringify(e);
|
|
58
|
+
}
|
|
59
|
+
function f(e) {
|
|
60
|
+
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
61
|
+
}
|
|
62
|
+
var p = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
63
|
+
function m(e) {
|
|
64
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
65
|
+
}
|
|
66
|
+
var h = /* @__PURE__ */ r(() => {
|
|
67
|
+
if (e.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
68
|
+
try {
|
|
69
|
+
return Function(""), !0;
|
|
70
|
+
} catch {
|
|
71
|
+
return !1;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
function g(e) {
|
|
75
|
+
if (m(e) === !1) return !1;
|
|
76
|
+
let t = e.constructor;
|
|
77
|
+
if (t === void 0 || typeof t != "function") return !0;
|
|
78
|
+
let n = t.prototype;
|
|
79
|
+
return !(m(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
80
|
+
}
|
|
81
|
+
function _(e) {
|
|
82
|
+
return g(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
|
|
83
|
+
}
|
|
84
|
+
var v = /* @__PURE__ */ new Set([
|
|
85
|
+
"string",
|
|
86
|
+
"number",
|
|
87
|
+
"symbol"
|
|
88
|
+
]);
|
|
89
|
+
function y(e) {
|
|
90
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
91
|
+
}
|
|
92
|
+
function b(e, t, n) {
|
|
93
|
+
let r = new e._zod.constr(t ?? e._zod.def);
|
|
94
|
+
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
95
|
+
}
|
|
96
|
+
function x(e) {
|
|
97
|
+
let t = e;
|
|
98
|
+
if (!t) return {};
|
|
99
|
+
if (typeof t == "string") return { error: () => t };
|
|
100
|
+
if (t?.message !== void 0) {
|
|
101
|
+
if (t?.error !== void 0) throw Error("Cannot specify both `message` and `error` params");
|
|
102
|
+
t.error = t.message;
|
|
103
|
+
}
|
|
104
|
+
return delete t.message, typeof t.error == "string" ? {
|
|
105
|
+
...t,
|
|
106
|
+
error: () => t.error
|
|
107
|
+
} : t;
|
|
108
|
+
}
|
|
109
|
+
function S(e) {
|
|
110
|
+
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
111
|
+
}
|
|
112
|
+
var C = {
|
|
113
|
+
safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
|
|
114
|
+
int32: [-2147483648, 2147483647],
|
|
115
|
+
uint32: [0, 4294967295],
|
|
116
|
+
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
117
|
+
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
118
|
+
};
|
|
119
|
+
function w(e, t) {
|
|
120
|
+
let n = e._zod.def, r = n.checks;
|
|
121
|
+
if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
|
|
122
|
+
return b(e, u(e._zod.def, {
|
|
123
|
+
get shape() {
|
|
124
|
+
let e = {};
|
|
125
|
+
for (let r in t) {
|
|
126
|
+
if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
|
|
127
|
+
t[r] && (e[r] = n.shape[r]);
|
|
128
|
+
}
|
|
129
|
+
return l(this, "shape", e), e;
|
|
130
|
+
},
|
|
131
|
+
checks: []
|
|
132
|
+
}));
|
|
133
|
+
}
|
|
134
|
+
function T(e, t) {
|
|
135
|
+
let n = e._zod.def, r = n.checks;
|
|
136
|
+
if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
|
|
137
|
+
return b(e, u(e._zod.def, {
|
|
138
|
+
get shape() {
|
|
139
|
+
let r = { ...e._zod.def.shape };
|
|
140
|
+
for (let e in t) {
|
|
141
|
+
if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
|
|
142
|
+
t[e] && delete r[e];
|
|
143
|
+
}
|
|
144
|
+
return l(this, "shape", r), r;
|
|
145
|
+
},
|
|
146
|
+
checks: []
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
function E(e, t) {
|
|
150
|
+
if (!g(t)) throw Error("Invalid input to extend: expected a plain object");
|
|
151
|
+
let n = e._zod.def.checks;
|
|
152
|
+
if (n && n.length > 0) {
|
|
153
|
+
let n = e._zod.def.shape;
|
|
154
|
+
for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
155
|
+
}
|
|
156
|
+
return b(e, u(e._zod.def, { get shape() {
|
|
157
|
+
let n = {
|
|
158
|
+
...e._zod.def.shape,
|
|
159
|
+
...t
|
|
160
|
+
};
|
|
161
|
+
return l(this, "shape", n), n;
|
|
162
|
+
} }));
|
|
163
|
+
}
|
|
164
|
+
function D(e, t) {
|
|
165
|
+
if (!g(t)) throw Error("Invalid input to safeExtend: expected a plain object");
|
|
166
|
+
return b(e, u(e._zod.def, { get shape() {
|
|
167
|
+
let n = {
|
|
168
|
+
...e._zod.def.shape,
|
|
169
|
+
...t
|
|
170
|
+
};
|
|
171
|
+
return l(this, "shape", n), n;
|
|
172
|
+
} }));
|
|
173
|
+
}
|
|
174
|
+
function O(e, t) {
|
|
175
|
+
if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
176
|
+
return b(e, u(e._zod.def, {
|
|
177
|
+
get shape() {
|
|
178
|
+
let n = {
|
|
179
|
+
...e._zod.def.shape,
|
|
180
|
+
...t._zod.def.shape
|
|
181
|
+
};
|
|
182
|
+
return l(this, "shape", n), n;
|
|
183
|
+
},
|
|
184
|
+
get catchall() {
|
|
185
|
+
return t._zod.def.catchall;
|
|
186
|
+
},
|
|
187
|
+
checks: t._zod.def.checks ?? []
|
|
188
|
+
}));
|
|
189
|
+
}
|
|
190
|
+
function k(e, t, n) {
|
|
191
|
+
let r = t._zod.def.checks;
|
|
192
|
+
if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
|
|
193
|
+
return b(t, u(t._zod.def, {
|
|
194
|
+
get shape() {
|
|
195
|
+
let r = t._zod.def.shape, i = { ...r };
|
|
196
|
+
if (n) for (let t in n) {
|
|
197
|
+
if (!(t in r)) throw Error(`Unrecognized key: "${t}"`);
|
|
198
|
+
n[t] && (i[t] = e ? new e({
|
|
199
|
+
type: "optional",
|
|
200
|
+
innerType: r[t]
|
|
201
|
+
}) : r[t]);
|
|
202
|
+
}
|
|
203
|
+
else for (let t in r) i[t] = e ? new e({
|
|
204
|
+
type: "optional",
|
|
205
|
+
innerType: r[t]
|
|
206
|
+
}) : r[t];
|
|
207
|
+
return l(this, "shape", i), i;
|
|
208
|
+
},
|
|
209
|
+
checks: []
|
|
210
|
+
}));
|
|
211
|
+
}
|
|
212
|
+
function A(e, t, n) {
|
|
213
|
+
return b(t, u(t._zod.def, { get shape() {
|
|
214
|
+
let r = t._zod.def.shape, i = { ...r };
|
|
215
|
+
if (n) for (let t in n) {
|
|
216
|
+
if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
|
|
217
|
+
n[t] && (i[t] = new e({
|
|
218
|
+
type: "nonoptional",
|
|
219
|
+
innerType: r[t]
|
|
220
|
+
}));
|
|
221
|
+
}
|
|
222
|
+
else for (let t in r) i[t] = new e({
|
|
223
|
+
type: "nonoptional",
|
|
224
|
+
innerType: r[t]
|
|
225
|
+
});
|
|
226
|
+
return l(this, "shape", i), i;
|
|
227
|
+
} }));
|
|
228
|
+
}
|
|
229
|
+
function j(e, t = 0) {
|
|
230
|
+
if (e.aborted === !0) return !0;
|
|
231
|
+
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
|
|
232
|
+
return !1;
|
|
233
|
+
}
|
|
234
|
+
function M(e, t = 0) {
|
|
235
|
+
if (e.aborted === !0) return !0;
|
|
236
|
+
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
|
|
237
|
+
return !1;
|
|
238
|
+
}
|
|
239
|
+
function N(e, t) {
|
|
240
|
+
return t.map((t) => {
|
|
241
|
+
var n;
|
|
242
|
+
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
function P(e) {
|
|
246
|
+
return typeof e == "string" ? e : e?.message;
|
|
247
|
+
}
|
|
248
|
+
function F(e, t, n) {
|
|
249
|
+
let r = e.message ? e.message : P(e.inst?._zod.def?.error?.(e)) ?? P(t?.error?.(e)) ?? P(n.customError?.(e)) ?? P(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
|
|
250
|
+
return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
|
|
251
|
+
}
|
|
252
|
+
function I(e) {
|
|
253
|
+
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
254
|
+
}
|
|
255
|
+
function L(...e) {
|
|
256
|
+
let [t, n, r] = e;
|
|
257
|
+
return typeof t == "string" ? {
|
|
258
|
+
message: t,
|
|
259
|
+
code: "custom",
|
|
260
|
+
input: n,
|
|
261
|
+
inst: r
|
|
262
|
+
} : { ...t };
|
|
263
|
+
}
|
|
264
|
+
//#endregion
|
|
265
|
+
export { C as NUMBER_FORMAT_RANGES, j as aborted, h as allowsEval, r as cached, p as captureStackTrace, a as cleanRegex, b as clone, c as defineLazy, d as esc, y as escapeRegex, M as explicitlyAborted, E as extend, F as finalizeIssue, o as floatSafeRemainder, t as getEnumValues, I as getLengthableOrigin, m as isObject, g as isPlainObject, L as issue, n as jsonStringifyReplacer, O as merge, u as mergeDefs, x as normalizeParams, i as nullish, T as omit, S as optionalKeys, k as partial, w as pick, N as prefixIssues, v as propertyKeyTypes, A as required, D as safeExtend, _ as shallowClone, f as slugify };
|
|
266
|
+
|
|
267
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","names":["F"],"sources":["../../../../../node_modules/zod/v4/core/util.js"],"sourcesContent":["import { globalConfig } from \"./core.js\";\n// functions\nexport function assertEqual(val) {\n return val;\n}\nexport function assertNotEqual(val) {\n return val;\n}\nexport function assertIs(_arg) { }\nexport function assertNever(_x) {\n throw new Error(\"Unexpected value in exhaustive check\");\n}\nexport function assert(_) { }\nexport function getEnumValues(entries) {\n const numericValues = Object.values(entries).filter((v) => typeof v === \"number\");\n const values = Object.entries(entries)\n .filter(([k, _]) => numericValues.indexOf(+k) === -1)\n .map(([_, v]) => v);\n return values;\n}\nexport function joinValues(array, separator = \"|\") {\n return array.map((val) => stringifyPrimitive(val)).join(separator);\n}\nexport function jsonStringifyReplacer(_, value) {\n if (typeof value === \"bigint\")\n return value.toString();\n return value;\n}\nexport function cached(getter) {\n const set = false;\n return {\n get value() {\n if (!set) {\n const value = getter();\n Object.defineProperty(this, \"value\", { value });\n return value;\n }\n throw new Error(\"cached value already set\");\n },\n };\n}\nexport function nullish(input) {\n return input === null || input === undefined;\n}\nexport function cleanRegex(source) {\n const start = source.startsWith(\"^\") ? 1 : 0;\n const end = source.endsWith(\"$\") ? source.length - 1 : source.length;\n return source.slice(start, end);\n}\nexport function floatSafeRemainder(val, step) {\n const ratio = val / step;\n const roundedRatio = Math.round(ratio);\n // Use a relative epsilon scaled to the magnitude of the result\n const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);\n if (Math.abs(ratio - roundedRatio) < tolerance)\n return 0;\n return ratio - roundedRatio;\n}\nconst EVALUATING = /* @__PURE__*/ Symbol(\"evaluating\");\nexport function defineLazy(object, key, getter) {\n let value = undefined;\n Object.defineProperty(object, key, {\n get() {\n if (value === EVALUATING) {\n // Circular reference detected, return undefined to break the cycle\n return undefined;\n }\n if (value === undefined) {\n value = EVALUATING;\n value = getter();\n }\n return value;\n },\n set(v) {\n Object.defineProperty(object, key, {\n value: v,\n // configurable: true,\n });\n // object[key] = v;\n },\n configurable: true,\n });\n}\nexport function objectClone(obj) {\n return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));\n}\nexport function assignProp(target, prop, value) {\n Object.defineProperty(target, prop, {\n value,\n writable: true,\n enumerable: true,\n configurable: true,\n });\n}\nexport function mergeDefs(...defs) {\n const mergedDescriptors = {};\n for (const def of defs) {\n const descriptors = Object.getOwnPropertyDescriptors(def);\n Object.assign(mergedDescriptors, descriptors);\n }\n return Object.defineProperties({}, mergedDescriptors);\n}\nexport function cloneDef(schema) {\n return mergeDefs(schema._zod.def);\n}\nexport function getElementAtPath(obj, path) {\n if (!path)\n return obj;\n return path.reduce((acc, key) => acc?.[key], obj);\n}\nexport function promiseAllObject(promisesObj) {\n const keys = Object.keys(promisesObj);\n const promises = keys.map((key) => promisesObj[key]);\n return Promise.all(promises).then((results) => {\n const resolvedObj = {};\n for (let i = 0; i < keys.length; i++) {\n resolvedObj[keys[i]] = results[i];\n }\n return resolvedObj;\n });\n}\nexport function randomString(length = 10) {\n const chars = \"abcdefghijklmnopqrstuvwxyz\";\n let str = \"\";\n for (let i = 0; i < length; i++) {\n str += chars[Math.floor(Math.random() * chars.length)];\n }\n return str;\n}\nexport function esc(str) {\n return JSON.stringify(str);\n}\nexport function slugify(input) {\n return input\n .toLowerCase()\n .trim()\n .replace(/[^\\w\\s-]/g, \"\")\n .replace(/[\\s_-]+/g, \"-\")\n .replace(/^-+|-+$/g, \"\");\n}\nexport const captureStackTrace = (\"captureStackTrace\" in Error ? Error.captureStackTrace : (..._args) => { });\nexport function isObject(data) {\n return typeof data === \"object\" && data !== null && !Array.isArray(data);\n}\nexport const allowsEval = /* @__PURE__*/ cached(() => {\n // Skip the probe under `jitless`: strict CSPs report the caught `new Function`\n // as a `securitypolicyviolation` even though the throw is swallowed.\n if (globalConfig.jitless) {\n return false;\n }\n // @ts-ignore\n if (typeof navigator !== \"undefined\" && navigator?.userAgent?.includes(\"Cloudflare\")) {\n return false;\n }\n try {\n const F = Function;\n new F(\"\");\n return true;\n }\n catch (_) {\n return false;\n }\n});\nexport function isPlainObject(o) {\n if (isObject(o) === false)\n return false;\n // modified constructor\n const ctor = o.constructor;\n if (ctor === undefined)\n return true;\n if (typeof ctor !== \"function\")\n return true;\n // modified prototype\n const prot = ctor.prototype;\n if (isObject(prot) === false)\n return false;\n // ctor doesn't have static `isPrototypeOf`\n if (Object.prototype.hasOwnProperty.call(prot, \"isPrototypeOf\") === false) {\n return false;\n }\n return true;\n}\nexport function shallowClone(o) {\n if (isPlainObject(o))\n return { ...o };\n if (Array.isArray(o))\n return [...o];\n if (o instanceof Map)\n return new Map(o);\n if (o instanceof Set)\n return new Set(o);\n return o;\n}\nexport function numKeys(data) {\n let keyCount = 0;\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n keyCount++;\n }\n }\n return keyCount;\n}\nexport const getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return \"undefined\";\n case \"string\":\n return \"string\";\n case \"number\":\n return Number.isNaN(data) ? \"nan\" : \"number\";\n case \"boolean\":\n return \"boolean\";\n case \"function\":\n return \"function\";\n case \"bigint\":\n return \"bigint\";\n case \"symbol\":\n return \"symbol\";\n case \"object\":\n if (Array.isArray(data)) {\n return \"array\";\n }\n if (data === null) {\n return \"null\";\n }\n if (data.then && typeof data.then === \"function\" && data.catch && typeof data.catch === \"function\") {\n return \"promise\";\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return \"map\";\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return \"set\";\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return \"date\";\n }\n // @ts-ignore\n if (typeof File !== \"undefined\" && data instanceof File) {\n return \"file\";\n }\n return \"object\";\n default:\n throw new Error(`Unknown data type: ${t}`);\n }\n};\nexport const propertyKeyTypes = /* @__PURE__*/ new Set([\"string\", \"number\", \"symbol\"]);\nexport const primitiveTypes = /* @__PURE__*/ new Set([\n \"string\",\n \"number\",\n \"bigint\",\n \"boolean\",\n \"symbol\",\n \"undefined\",\n]);\nexport function escapeRegex(str) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n// zod-specific utils\nexport function clone(inst, def, params) {\n const cl = new inst._zod.constr(def ?? inst._zod.def);\n if (!def || params?.parent)\n cl._zod.parent = inst;\n return cl;\n}\nexport function normalizeParams(_params) {\n const params = _params;\n if (!params)\n return {};\n if (typeof params === \"string\")\n return { error: () => params };\n if (params?.message !== undefined) {\n if (params?.error !== undefined)\n throw new Error(\"Cannot specify both `message` and `error` params\");\n params.error = params.message;\n }\n delete params.message;\n if (typeof params.error === \"string\")\n return { ...params, error: () => params.error };\n return params;\n}\nexport function createTransparentProxy(getter) {\n let target;\n return new Proxy({}, {\n get(_, prop, receiver) {\n target ?? (target = getter());\n return Reflect.get(target, prop, receiver);\n },\n set(_, prop, value, receiver) {\n target ?? (target = getter());\n return Reflect.set(target, prop, value, receiver);\n },\n has(_, prop) {\n target ?? (target = getter());\n return Reflect.has(target, prop);\n },\n deleteProperty(_, prop) {\n target ?? (target = getter());\n return Reflect.deleteProperty(target, prop);\n },\n ownKeys(_) {\n target ?? (target = getter());\n return Reflect.ownKeys(target);\n },\n getOwnPropertyDescriptor(_, prop) {\n target ?? (target = getter());\n return Reflect.getOwnPropertyDescriptor(target, prop);\n },\n defineProperty(_, prop, descriptor) {\n target ?? (target = getter());\n return Reflect.defineProperty(target, prop, descriptor);\n },\n });\n}\nexport function stringifyPrimitive(value) {\n if (typeof value === \"bigint\")\n return value.toString() + \"n\";\n if (typeof value === \"string\")\n return `\"${value}\"`;\n return `${value}`;\n}\nexport function optionalKeys(shape) {\n return Object.keys(shape).filter((k) => {\n return shape[k]._zod.optin === \"optional\" && shape[k]._zod.optout === \"optional\";\n });\n}\nexport const NUMBER_FORMAT_RANGES = {\n safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],\n int32: [-2147483648, 2147483647],\n uint32: [0, 4294967295],\n float32: [-3.4028234663852886e38, 3.4028234663852886e38],\n float64: [-Number.MAX_VALUE, Number.MAX_VALUE],\n};\nexport const BIGINT_FORMAT_RANGES = {\n int64: [/* @__PURE__*/ BigInt(\"-9223372036854775808\"), /* @__PURE__*/ BigInt(\"9223372036854775807\")],\n uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt(\"18446744073709551615\")],\n};\nexport function pick(schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".pick() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const newShape = {};\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n newShape[key] = currDef.shape[key];\n }\n assignProp(this, \"shape\", newShape); // self-caching\n return newShape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function omit(schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".omit() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const newShape = { ...schema._zod.def.shape };\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n delete newShape[key];\n }\n assignProp(this, \"shape\", newShape); // self-caching\n return newShape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function extend(schema, shape) {\n if (!isPlainObject(shape)) {\n throw new Error(\"Invalid input to extend: expected a plain object\");\n }\n const checks = schema._zod.def.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n // Only throw if new shape overlaps with existing shape\n // Use getOwnPropertyDescriptor to check key existence without accessing values\n const existingShape = schema._zod.def.shape;\n for (const key in shape) {\n if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {\n throw new Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\");\n }\n }\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const _shape = { ...schema._zod.def.shape, ...shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n });\n return clone(schema, def);\n}\nexport function safeExtend(schema, shape) {\n if (!isPlainObject(shape)) {\n throw new Error(\"Invalid input to safeExtend: expected a plain object\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const _shape = { ...schema._zod.def.shape, ...shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n });\n return clone(schema, def);\n}\nexport function merge(a, b) {\n if (a._zod.def.checks?.length) {\n throw new Error(\".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.\");\n }\n const def = mergeDefs(a._zod.def, {\n get shape() {\n const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n get catchall() {\n return b._zod.def.catchall;\n },\n checks: b._zod.def.checks ?? [],\n });\n return clone(a, def);\n}\nexport function partial(Class, schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".partial() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in oldShape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n // if (oldShape[key]!._zod.optin === \"optional\") continue;\n shape[key] = Class\n ? new Class({\n type: \"optional\",\n innerType: oldShape[key],\n })\n : oldShape[key];\n }\n }\n else {\n for (const key in oldShape) {\n // if (oldShape[key]!._zod.optin === \"optional\") continue;\n shape[key] = Class\n ? new Class({\n type: \"optional\",\n innerType: oldShape[key],\n })\n : oldShape[key];\n }\n }\n assignProp(this, \"shape\", shape); // self-caching\n return shape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function required(Class, schema, mask) {\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n // overwrite with non-optional\n shape[key] = new Class({\n type: \"nonoptional\",\n innerType: oldShape[key],\n });\n }\n }\n else {\n for (const key in oldShape) {\n // overwrite with non-optional\n shape[key] = new Class({\n type: \"nonoptional\",\n innerType: oldShape[key],\n });\n }\n }\n assignProp(this, \"shape\", shape); // self-caching\n return shape;\n },\n });\n return clone(schema, def);\n}\n// invalid_type | too_big | too_small | invalid_format | not_multiple_of | unrecognized_keys | invalid_union | invalid_key | invalid_element | invalid_value | custom\nexport function aborted(x, startIndex = 0) {\n if (x.aborted === true)\n return true;\n for (let i = startIndex; i < x.issues.length; i++) {\n if (x.issues[i]?.continue !== true) {\n return true;\n }\n }\n return false;\n}\n// Checks for explicit abort (continue === false), as opposed to implicit abort (continue === undefined).\n// Used to respect `abort: true` in .refine() even for checks that have a `when` function.\nexport function explicitlyAborted(x, startIndex = 0) {\n if (x.aborted === true)\n return true;\n for (let i = startIndex; i < x.issues.length; i++) {\n if (x.issues[i]?.continue === false) {\n return true;\n }\n }\n return false;\n}\nexport function prefixIssues(path, issues) {\n return issues.map((iss) => {\n var _a;\n (_a = iss).path ?? (_a.path = []);\n iss.path.unshift(path);\n return iss;\n });\n}\nexport function unwrapMessage(message) {\n return typeof message === \"string\" ? message : message?.message;\n}\nexport function finalizeIssue(iss, ctx, config) {\n const message = iss.message\n ? iss.message\n : (unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ??\n unwrapMessage(ctx?.error?.(iss)) ??\n unwrapMessage(config.customError?.(iss)) ??\n unwrapMessage(config.localeError?.(iss)) ??\n \"Invalid input\");\n const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;\n rest.path ?? (rest.path = []);\n rest.message = message;\n if (ctx?.reportInput) {\n rest.input = _input;\n }\n return rest;\n}\nexport function getSizableOrigin(input) {\n if (input instanceof Set)\n return \"set\";\n if (input instanceof Map)\n return \"map\";\n // @ts-ignore\n if (input instanceof File)\n return \"file\";\n return \"unknown\";\n}\nexport function getLengthableOrigin(input) {\n if (Array.isArray(input))\n return \"array\";\n if (typeof input === \"string\")\n return \"string\";\n return \"unknown\";\n}\nexport function parsedType(data) {\n const t = typeof data;\n switch (t) {\n case \"number\": {\n return Number.isNaN(data) ? \"nan\" : \"number\";\n }\n case \"object\": {\n if (data === null) {\n return \"null\";\n }\n if (Array.isArray(data)) {\n return \"array\";\n }\n const obj = data;\n if (obj && Object.getPrototypeOf(obj) !== Object.prototype && \"constructor\" in obj && obj.constructor) {\n return obj.constructor.name;\n }\n }\n }\n return t;\n}\nexport function issue(...args) {\n const [iss, input, inst] = args;\n if (typeof iss === \"string\") {\n return {\n message: iss,\n code: \"custom\",\n input,\n inst,\n };\n }\n return { ...iss };\n}\nexport function cleanEnum(obj) {\n return Object.entries(obj)\n .filter(([k, _]) => {\n // return true if NaN, meaning it's not a number, thus a string key\n return Number.isNaN(Number.parseInt(k, 10));\n })\n .map((el) => el[1]);\n}\n// Codec utility functions\nexport function base64ToUint8Array(base64) {\n const binaryString = atob(base64);\n const bytes = new Uint8Array(binaryString.length);\n for (let i = 0; i < binaryString.length; i++) {\n bytes[i] = binaryString.charCodeAt(i);\n }\n return bytes;\n}\nexport function uint8ArrayToBase64(bytes) {\n let binaryString = \"\";\n for (let i = 0; i < bytes.length; i++) {\n binaryString += String.fromCharCode(bytes[i]);\n }\n return btoa(binaryString);\n}\nexport function base64urlToUint8Array(base64url) {\n const base64 = base64url.replace(/-/g, \"+\").replace(/_/g, \"/\");\n const padding = \"=\".repeat((4 - (base64.length % 4)) % 4);\n return base64ToUint8Array(base64 + padding);\n}\nexport function uint8ArrayToBase64url(bytes) {\n return uint8ArrayToBase64(bytes).replace(/\\+/g, \"-\").replace(/\\//g, \"_\").replace(/=/g, \"\");\n}\nexport function hexToUint8Array(hex) {\n const cleanHex = hex.replace(/^0x/, \"\");\n if (cleanHex.length % 2 !== 0) {\n throw new Error(\"Invalid hex string length\");\n }\n const bytes = new Uint8Array(cleanHex.length / 2);\n for (let i = 0; i < cleanHex.length; i += 2) {\n bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);\n }\n return bytes;\n}\nexport function uint8ArrayToHex(bytes) {\n return Array.from(bytes)\n .map((b) => b.toString(16).padStart(2, \"0\"))\n .join(\"\");\n}\n// instanceof\nexport class Class {\n constructor(..._args) { }\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAaA,SAAgB,EAAc,GAAS;CACnC,IAAM,IAAgB,OAAO,OAAO,EAAQ,CAAC,QAAQ,MAAM,OAAO,KAAM,SAAS;AAIjF,QAHe,OAAO,QAAQ,EA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,EAAI,MAAM,KAAK,KAAK,QAAQ,EAAI,CAAC,IAC9C,EAAc,GAAK,QAAQ,EAAI,CAAC,IAChC,EAAc,EAAO,cAAc,EAAI,CAAC,IACxC,EAAc,EAAO,cAAc,EAAI,CAAC,IACxC,iBACF,EAAE,MAAM,GAAO,UAAU,GAAW,OAAO,GAAQ,GAAG,MAAS;AAMrE,QALA,AAAc,EAAK,SAAO,EAAE,EAC5B,EAAK,UAAU,GACX,GAAK,gBACL,EAAK,QAAQ,IAEV;;AAYX,SAAgB,EAAoB,GAAO;AAKvC,QAJI,MAAM,QAAQ,EAAM,GACb,UACP,OAAO,KAAU,WACV,WACJ;;AAuBX,SAAgB,EAAM,GAAG,GAAM;CAC3B,IAAM,CAAC,GAAK,GAAO,KAAQ;AAS3B,QARI,OAAO,KAAQ,WACR;EACH,SAAS;EACT,MAAM;EACN;EACA;EACH,GAEE,EAAE,GAAG,GAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.js","names":[],"sources":["../../../../../node_modules/zod/v4/core/versions.js"],"sourcesContent":["export const version = {\n major: 4,\n minor: 4,\n patch: 3,\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAa,IAAU;CACnB,OAAO;CACP,OAAO;CACP,OAAO;CACV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductUserRoot.d.ts","sourceRoot":"","sources":["../../src/product/ProductUserRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAW,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAS7D,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA6CpD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ProductUserProvider as e } from "./providers/ProductUserProvider.js";
|
|
2
|
+
import { ProductUserRoutes as t } from "./ProductUserRoutes.js";
|
|
3
|
+
import { useEffect as n } from "react";
|
|
4
|
+
import { Package as r } from "lucide-react";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
import { FeatureFlagProvider as a } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
7
|
+
//#region src/product/ProductUserRoot.tsx
|
|
8
|
+
var o = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), s = (s) => {
|
|
9
|
+
let { registerNavItems: c, registerFooterItems: l, basePath: u = "/products" } = s;
|
|
10
|
+
return n(() => {
|
|
11
|
+
if (c) return c([{
|
|
12
|
+
id: "products-catalog",
|
|
13
|
+
label: "Products",
|
|
14
|
+
path: o(u, "/"),
|
|
15
|
+
icon: /* @__PURE__ */ i(r, { size: 20 }),
|
|
16
|
+
order: 50,
|
|
17
|
+
group: "global"
|
|
18
|
+
}]);
|
|
19
|
+
}, [c, u]), n(() => {
|
|
20
|
+
if (l) return l([{
|
|
21
|
+
id: "product-user-version",
|
|
22
|
+
label: "Products v0.1.0",
|
|
23
|
+
type: "status",
|
|
24
|
+
order: 50,
|
|
25
|
+
section: "left"
|
|
26
|
+
}]);
|
|
27
|
+
}, [l]), /* @__PURE__ */ i(a, {
|
|
28
|
+
workspaceId: null,
|
|
29
|
+
gateway: "global",
|
|
30
|
+
defaultEnabled: !0,
|
|
31
|
+
children: /* @__PURE__ */ i(e, {
|
|
32
|
+
...s,
|
|
33
|
+
children: /* @__PURE__ */ i(t, {})
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { s as ProductUserRoot };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=ProductUserRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductUserRoot.js","names":[],"sources":["../../src/product/ProductUserRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { Package } from 'lucide-react';\nimport { ProductUserProvider } from './providers/ProductUserProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport type { NavItem, ProductUserRootProps } from './types';\nimport { ProductUserRoutes } from './ProductUserRoutes';\n\nconst joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n};\n\nexport const ProductUserRoot: FC<ProductUserRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/products' } = props;\n\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'products-catalog',\n label: 'Products',\n path: joinPath(basePath, '/'),\n icon: <Package size={20} />,\n order: 50,\n group: 'global',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'product-user-version',\n label: 'Products v0.1.0',\n type: 'status' as const,\n order: 50,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <ProductUserProvider {...props}>\n <ProductUserRoutes />\n </ProductUserProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;AAQA,IAAM,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI,MAIzC,KAA6C,MAAU;CAClE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,gBAAgB;AAqC1E,QAnCA,QAAgB;AACT,QAcL,QADgB,EAAiB,CAV/B;GACE,IAAI;GACJ,OAAO;GACP,MAAM,EAAS,GAAU,IAAI;GAC7B,MAAM,kBAAC,GAAD,EAAS,MAAM,IAAM,CAAA;GAC3B,OAAO;GACP,OAAO;GACR,CAG8B,CAC1B;IACN,CAAC,GAAkB,EAAS,CAAC,EAEhC,QAAgB;AACT,QAaL,QADgB,EAAoB,CATlC;GACE,IAAI;GACJ,OAAO;GACP,MAAM;GACN,OAAO;GACP,SAAS;GACV,CAGiC,CAC7B;IACN,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EAAqB,aAAa;EAAM,SAAQ;EAAS,gBAAgB;YACvE,kBAAC,GAAD;GAAqB,GAAI;aACvB,kBAAC,GAAD,EAAqB,CAAA;GACD,CAAA;EACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductUserRoutes.d.ts","sourceRoot":"","sources":["../../src/product/ProductUserRoutes.tsx"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,wBAAgB,iBAAiB,4CAsBhC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LoadingState as e } from "../product-management/shared/components/feedback/LoadingState.js";
|
|
2
|
+
import "../shared/components/index.js";
|
|
3
|
+
import { UserProductsLandingPage as t } from "./pages/UserProductsLandingPage.js";
|
|
4
|
+
import { Suspense as n, lazy as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Route as o, Routes as s } from "react-router-dom";
|
|
7
|
+
//#region src/product/ProductUserRoutes.tsx
|
|
8
|
+
var c = r(() => import("./pages/ProductViewPage.js").then((e) => ({ default: e.ProductViewPage }))), l = r(() => import("./pages/ContentPageViewPage.js").then((e) => ({ default: e.ContentPageViewPage })));
|
|
9
|
+
function u() {
|
|
10
|
+
return /* @__PURE__ */ a(s, { children: [
|
|
11
|
+
/* @__PURE__ */ i(o, {
|
|
12
|
+
index: !0,
|
|
13
|
+
element: /* @__PURE__ */ i(t, {})
|
|
14
|
+
}),
|
|
15
|
+
/* @__PURE__ */ i(o, {
|
|
16
|
+
path: "content-pages/:slug",
|
|
17
|
+
element: /* @__PURE__ */ i(n, {
|
|
18
|
+
fallback: /* @__PURE__ */ i(e, {}),
|
|
19
|
+
children: /* @__PURE__ */ i(l, {})
|
|
20
|
+
})
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ i(o, {
|
|
23
|
+
path: ":slug",
|
|
24
|
+
element: /* @__PURE__ */ i(n, {
|
|
25
|
+
fallback: /* @__PURE__ */ i(e, {}),
|
|
26
|
+
children: /* @__PURE__ */ i(c, {})
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
] });
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { u as ProductUserRoutes };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=ProductUserRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductUserRoutes.js","names":[],"sources":["../../src/product/ProductUserRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Route, Routes } from 'react-router-dom';\n\nimport { LoadingState } from '../shared/components';\n\n// Eager load - main entry point\nimport { UserProductsLandingPage } from './pages/UserProductsLandingPage';\n\n// Lazy load - secondary pages\nconst ProductViewPage = lazy(() =>\n import('./pages/ProductViewPage').then((m) => ({\n default: m.ProductViewPage,\n }))\n);\nconst ContentPageViewPage = lazy(() =>\n import('./pages/ContentPageViewPage').then((m) => ({\n default: m.ContentPageViewPage,\n }))\n);\n\n/**\n * ProductUserRoutes\n * User-facing routes (read-only). Routes start from root (/) since parent is /products/*\n */\nexport function ProductUserRoutes() {\n return (\n <Routes>\n <Route index element={<UserProductsLandingPage />} />\n <Route\n path=\"content-pages/:slug\"\n element={\n <Suspense fallback={<LoadingState />}>\n <ContentPageViewPage />\n </Suspense>\n }\n />\n <Route\n path=\":slug\"\n element={\n <Suspense fallback={<LoadingState />}>\n <ProductViewPage />\n </Suspense>\n }\n />\n </Routes>\n );\n}\n"],"mappings":";;;;;;;AASA,IAAM,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAC7C,SAAS,EAAE,iBACZ,EAAE,CACJ,EACK,IAAsB,QAC1B,OAAO,kCAA+B,MAAM,OAAO,EACjD,SAAS,EAAE,qBACZ,EAAE,CACJ;AAMD,SAAgB,IAAoB;AAClC,QACE,kBAAC,GAAD,EAAA,UAAA;EACE,kBAAC,GAAD;GAAO,OAAA;GAAM,SAAS,kBAAC,GAAD,EAA2B,CAAA;GAAI,CAAA;EACrD,kBAAC,GAAD;GACE,MAAK;GACL,SACE,kBAAC,GAAD;IAAU,UAAU,kBAAC,GAAD,EAAgB,CAAA;cAClC,kBAAC,GAAD,EAAuB,CAAA;IACd,CAAA;GAEb,CAAA;EACF,kBAAC,GAAD;GACE,MAAK;GACL,SACE,kBAAC,GAAD;IAAU,UAAU,kBAAC,GAAD,EAAgB,CAAA;cAClC,kBAAC,GAAD,EAAmB,CAAA;IACV,CAAA;GAEb,CAAA;EACK,EAAA,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GetPublicContentPageQuery } from '../../generated/global-operations';
|
|
2
|
+
export type PublicContentPage = NonNullable<GetPublicContentPageQuery['publicContentPage']>;
|
|
3
|
+
export declare function usePublicContentPage(slug: string, productId?: string): {
|
|
4
|
+
contentPage: any;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
7
|
+
refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetPublicContentPageQuery>>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=usePublicContentPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePublicContentPage.d.ts","sourceRoot":"","sources":["../../../src/product/hooks/usePublicContentPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAE5F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;EAapE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useGetPublicContentPageQuery as e } from "../../generated/global-operations.js";
|
|
2
|
+
//#region src/product/hooks/usePublicContentPage.ts
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let { data: r, loading: i, error: a, refetch: o } = e({
|
|
5
|
+
variables: {
|
|
6
|
+
slug: t,
|
|
7
|
+
productId: n ?? null
|
|
8
|
+
},
|
|
9
|
+
skip: !t,
|
|
10
|
+
fetchPolicy: "cache-and-network"
|
|
11
|
+
});
|
|
12
|
+
return {
|
|
13
|
+
contentPage: r?.publicContentPage ?? void 0,
|
|
14
|
+
loading: i,
|
|
15
|
+
error: a,
|
|
16
|
+
refetch: o
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { t as usePublicContentPage };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=usePublicContentPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePublicContentPage.js","names":[],"sources":["../../../src/product/hooks/usePublicContentPage.ts"],"sourcesContent":["import {\n useGetPublicContentPageQuery,\n type GetPublicContentPageQuery,\n} from '../../generated/global-operations';\n\nexport type PublicContentPage = NonNullable<GetPublicContentPageQuery['publicContentPage']>;\n\nexport function usePublicContentPage(slug: string, productId?: string) {\n const { data, loading, error, refetch } = useGetPublicContentPageQuery({\n variables: { slug, productId: productId ?? null },\n skip: !slug,\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n contentPage: data?.publicContentPage ?? undefined,\n loading,\n error,\n refetch,\n };\n}\n"],"mappings":";;AAOA,SAAgB,EAAqB,GAAc,GAAoB;CACrE,IAAM,EAAE,SAAM,YAAS,UAAO,eAAY,EAA6B;EACrE,WAAW;GAAE;GAAM,WAAW,KAAa;GAAM;EACjD,MAAM,CAAC;EACP,aAAa;EACd,CAAC;AAEF,QAAO;EACL,aAAa,GAAM,qBAAqB,KAAA;EACxC;EACA;EACA;EACD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GetPublicProductQuery } from '../../generated/global-operations';
|
|
2
|
+
export type PublicProduct = NonNullable<GetPublicProductQuery['publicProduct']>;
|
|
3
|
+
export declare function usePublicProduct(slug: string): {
|
|
4
|
+
product: any;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
7
|
+
refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetPublicProductQuery>>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=usePublicProduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePublicProduct.d.ts","sourceRoot":"","sources":["../../../src/product/hooks/usePublicProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC,CAAC;AAEhF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM;;;;;EAa5C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useGetPublicProductQuery as e } from "../../generated/global-operations.js";
|
|
2
|
+
//#region src/product/hooks/usePublicProduct.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
let { data: n, loading: r, error: i, refetch: a } = e({
|
|
5
|
+
variables: { slug: t },
|
|
6
|
+
skip: !t,
|
|
7
|
+
fetchPolicy: "cache-and-network"
|
|
8
|
+
});
|
|
9
|
+
return {
|
|
10
|
+
product: n?.publicProduct ?? void 0,
|
|
11
|
+
loading: r,
|
|
12
|
+
error: i,
|
|
13
|
+
refetch: a
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { t as usePublicProduct };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=usePublicProduct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePublicProduct.js","names":[],"sources":["../../../src/product/hooks/usePublicProduct.ts"],"sourcesContent":["import {\n useGetPublicProductQuery,\n type GetPublicProductQuery,\n} from '../../generated/global-operations';\n\nexport type PublicProduct = NonNullable<GetPublicProductQuery['publicProduct']>;\n\nexport function usePublicProduct(slug: string) {\n const { data, loading, error, refetch } = useGetPublicProductQuery({\n variables: { slug },\n skip: !slug,\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n product: data?.publicProduct ?? undefined,\n loading,\n error,\n refetch,\n };\n}\n"],"mappings":";;AAOA,SAAgB,EAAiB,GAAc;CAC7C,IAAM,EAAE,SAAM,YAAS,UAAO,eAAY,EAAyB;EACjE,WAAW,EAAE,SAAM;EACnB,MAAM,CAAC;EACP,aAAa;EACd,CAAC;AAEF,QAAO;EACL,SAAS,GAAM,iBAAiB,KAAA;EAChC;EACA;EACA;EACD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GetPublicProductsQuery } from '../../generated/global-operations';
|
|
2
|
+
import { PlatformProductFilterInput } from '../../generated/global-types';
|
|
3
|
+
export type PublicProduct = NonNullable<GetPublicProductsQuery['publicProducts']['items']>[number];
|
|
4
|
+
export declare function usePublicProducts(filter?: PlatformProductFilterInput, options?: {
|
|
5
|
+
limit?: number;
|
|
6
|
+
offset?: number;
|
|
7
|
+
}): {
|
|
8
|
+
products: PublicProduct[];
|
|
9
|
+
total: any;
|
|
10
|
+
hasMore: any;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
13
|
+
refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetPublicProductsQuery>>;
|
|
14
|
+
fetchMore: <TFetchData = Types.GetPublicProductsQuery, TFetchVars extends import('@apollo/client').OperationVariables = Types.GetPublicProductsQueryVariables>(fetchMoreOptions: import('@apollo/client').FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
15
|
+
updateQuery?: ((previousQueryResult: any, options: {
|
|
16
|
+
fetchMoreResult: import('@apollo/client').Unmasked<TFetchData>;
|
|
17
|
+
variables: TFetchVars;
|
|
18
|
+
}) => any) | undefined;
|
|
19
|
+
}) => Promise<import('@apollo/client').ApolloQueryResult<TFetchData>>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=usePublicProducts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePublicProducts.d.ts","sourceRoot":"","sources":["../../../src/product/hooks/usePublicProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnG,wBAAgB,iBAAiB,CAC/B,MAAM,CAAC,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;cAYM,aAAa,EAAE;;;;;;;;;;;;EAQnE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useGetPublicProductsQuery as e } from "../../generated/global-operations.js";
|
|
2
|
+
//#region src/product/hooks/usePublicProducts.ts
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let { data: r, loading: i, error: a, refetch: o, fetchMore: s } = e({
|
|
5
|
+
variables: {
|
|
6
|
+
filter: t,
|
|
7
|
+
limit: n?.limit ?? 50,
|
|
8
|
+
offset: n?.offset ?? 0
|
|
9
|
+
},
|
|
10
|
+
fetchPolicy: "cache-and-network"
|
|
11
|
+
});
|
|
12
|
+
return {
|
|
13
|
+
products: r?.publicProducts?.items ?? [],
|
|
14
|
+
total: r?.publicProducts?.total ?? 0,
|
|
15
|
+
hasMore: r?.publicProducts?.hasMore ?? !1,
|
|
16
|
+
loading: i,
|
|
17
|
+
error: a,
|
|
18
|
+
refetch: o,
|
|
19
|
+
fetchMore: s
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { t as usePublicProducts };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=usePublicProducts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePublicProducts.js","names":[],"sources":["../../../src/product/hooks/usePublicProducts.ts"],"sourcesContent":["import {\n useGetPublicProductsQuery,\n type GetPublicProductsQuery,\n} from '../../generated/global-operations';\nimport type { PlatformProductFilterInput } from '../../generated/global-types';\n\nexport type PublicProduct = NonNullable<GetPublicProductsQuery['publicProducts']['items']>[number];\n\nexport function usePublicProducts(\n filter?: PlatformProductFilterInput,\n options?: { limit?: number; offset?: number }\n) {\n const { data, loading, error, refetch, fetchMore } = useGetPublicProductsQuery({\n variables: {\n filter,\n limit: options?.limit ?? 50,\n offset: options?.offset ?? 0,\n },\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n products: (data?.publicProducts?.items ?? []) as PublicProduct[],\n total: data?.publicProducts?.total ?? 0,\n hasMore: data?.publicProducts?.hasMore ?? false,\n loading,\n error,\n refetch,\n fetchMore,\n };\n}\n"],"mappings":";;AAQA,SAAgB,EACd,GACA,GACA;CACA,IAAM,EAAE,SAAM,YAAS,UAAO,YAAS,iBAAc,EAA0B;EAC7E,WAAW;GACT;GACA,OAAO,GAAS,SAAS;GACzB,QAAQ,GAAS,UAAU;GAC5B;EACD,aAAa;EACd,CAAC;AAEF,QAAO;EACL,UAAW,GAAM,gBAAgB,SAAS,EAAE;EAC5C,OAAO,GAAM,gBAAgB,SAAS;EACtC,SAAS,GAAM,gBAAgB,WAAW;EAC1C;EACA;EACA;EACA;EACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentPageViewPage.d.ts","sourceRoot":"","sources":["../../../src/product/pages/ContentPageViewPage.tsx"],"names":[],"mappings":"AASA,wBAAgB,mBAAmB,4CAwFlC"}
|