@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,85 @@
|
|
|
1
|
+
import { KeyboardShortcut, KeyboardShortcutFilterInput, CreateKeyboardShortcutInput, UpdateKeyboardShortcutInput } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to fetch keyboard shortcuts with filtering and pagination
|
|
4
|
+
*/
|
|
5
|
+
export declare function useShortcuts(filter?: KeyboardShortcutFilterInput, options?: {
|
|
6
|
+
limit?: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
}): {
|
|
9
|
+
shortcuts: KeyboardShortcut[];
|
|
10
|
+
total: any;
|
|
11
|
+
hasMore: any;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
14
|
+
refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetKeyboardShortcutsQuery>>;
|
|
15
|
+
fetchMore: <TFetchData = Types.GetKeyboardShortcutsQuery, TFetchVars extends import('@apollo/client').OperationVariables = Types.GetKeyboardShortcutsQueryVariables>(fetchMoreOptions: import('@apollo/client').FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
16
|
+
updateQuery?: ((previousQueryResult: any, options: {
|
|
17
|
+
fetchMoreResult: import('@apollo/client').Unmasked<TFetchData>;
|
|
18
|
+
variables: TFetchVars;
|
|
19
|
+
}) => any) | undefined;
|
|
20
|
+
}) => Promise<import('@apollo/client').ApolloQueryResult<TFetchData>>;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Hook to fetch a single keyboard shortcut by ID
|
|
24
|
+
*/
|
|
25
|
+
export declare function useShortcut(id: string): {
|
|
26
|
+
shortcut: KeyboardShortcut | undefined;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
29
|
+
refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetKeyboardShortcutQuery>>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Hook to fetch all shortcut categories
|
|
33
|
+
*/
|
|
34
|
+
export declare function useShortcutCategories(): {
|
|
35
|
+
categories: any;
|
|
36
|
+
loading: boolean;
|
|
37
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
38
|
+
refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetShortcutCategoriesQuery>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Hook to create a new keyboard shortcut
|
|
42
|
+
*/
|
|
43
|
+
export declare function useCreateShortcut(): {
|
|
44
|
+
createShortcut: (input: CreateKeyboardShortcutInput) => Promise<import('@apollo/client').FetchResult<Types.CreateKeyboardShortcutMutation>>;
|
|
45
|
+
data: KeyboardShortcut | undefined;
|
|
46
|
+
loading: boolean;
|
|
47
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Hook to update a keyboard shortcut
|
|
51
|
+
*/
|
|
52
|
+
export declare function useUpdateShortcut(): {
|
|
53
|
+
updateShortcut: (id: string, input: UpdateKeyboardShortcutInput) => Promise<import('@apollo/client').FetchResult<Types.UpdateKeyboardShortcutMutation>>;
|
|
54
|
+
data: KeyboardShortcut | undefined;
|
|
55
|
+
loading: boolean;
|
|
56
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Hook to delete a keyboard shortcut
|
|
60
|
+
*/
|
|
61
|
+
export declare function useDeleteShortcut(): {
|
|
62
|
+
deleteShortcut: (id: string) => Promise<import('@apollo/client').FetchResult<Types.DeleteKeyboardShortcutMutation>>;
|
|
63
|
+
data: any;
|
|
64
|
+
loading: boolean;
|
|
65
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Hook to toggle a keyboard shortcut enabled state
|
|
69
|
+
*/
|
|
70
|
+
export declare function useToggleShortcut(): {
|
|
71
|
+
toggleShortcut: (id: string, isEnabled: boolean) => Promise<import('@apollo/client').FetchResult<Types.ToggleKeyboardShortcutMutation>>;
|
|
72
|
+
data: KeyboardShortcut | undefined;
|
|
73
|
+
loading: boolean;
|
|
74
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Hook to seed default shortcuts
|
|
78
|
+
*/
|
|
79
|
+
export declare function useSeedDefaultShortcuts(): {
|
|
80
|
+
seedDefaultShortcuts: (productId?: string) => Promise<import('@apollo/client').FetchResult<Types.SeedDefaultShortcutsMutation>>;
|
|
81
|
+
count: any;
|
|
82
|
+
loading: boolean;
|
|
83
|
+
error: import('@apollo/client').ApolloError | undefined;
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=useShortcuts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShortcuts.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/shortcuts/hooks/useShortcuts.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,wBAAgB,YAAY,CAC1B,MAAM,CAAC,EAAE,2BAA2B,EACpC,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;eAYU,gBAAgB,EAAE;;;;;;;;;;;;EAQ1E;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM;cAQE,gBAAgB,GAAG,SAAS;;;;EAKnE;AAED;;GAEG;AACH,wBAAgB,qBAAqB;;;;;EAWpC;AAED;;GAEG;AACH,wBAAgB,iBAAiB;4BAOC,2BAA2B;UAYnB,gBAAgB,GAAG,SAAS;;;EAIrE;AAED;;GAEG;AACH,wBAAgB,iBAAiB;yBAKF,MAAM,SAAS,2BAA2B;UAY/B,gBAAgB,GAAG,SAAS;;;EAIrE;AAED;;GAEG;AACH,wBAAgB,iBAAiB;yBAOF,MAAM;;;;EAWpC;AAED;;GAEG;AACH,wBAAgB,iBAAiB;yBAKF,MAAM,aAAa,OAAO;UAYf,gBAAgB,GAAG,SAAS;;;EAIrE;AAED;;GAEG;AACH,wBAAgB,uBAAuB;uCAMA,MAAM;;;;EAM5C"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { GetKeyboardShortcutsDocument as e, useCreateKeyboardShortcutMutation as t, useDeleteKeyboardShortcutMutation as n, useGetKeyboardShortcutQuery as r, useGetKeyboardShortcutsQuery as i, useSeedDefaultShortcutsMutation as a, useToggleKeyboardShortcutMutation as o, useUpdateKeyboardShortcutMutation as s } from "../../../../generated/global-operations.js";
|
|
2
|
+
import { useEventEmitter as c } from "@burdenoff/fe-libs/shared/events";
|
|
3
|
+
//#region src/product-management/modules/shortcuts/hooks/useShortcuts.ts
|
|
4
|
+
function l(e, t) {
|
|
5
|
+
let { data: n, loading: r, error: a, refetch: o, fetchMore: s } = i({
|
|
6
|
+
variables: {
|
|
7
|
+
filter: e,
|
|
8
|
+
limit: t?.limit || 50,
|
|
9
|
+
offset: t?.offset || 0
|
|
10
|
+
},
|
|
11
|
+
fetchPolicy: "cache-and-network"
|
|
12
|
+
});
|
|
13
|
+
return {
|
|
14
|
+
shortcuts: n?.keyboardShortcuts?.items || [],
|
|
15
|
+
total: n?.keyboardShortcuts?.total || 0,
|
|
16
|
+
hasMore: n?.keyboardShortcuts?.hasMore || !1,
|
|
17
|
+
loading: r,
|
|
18
|
+
error: a,
|
|
19
|
+
refetch: o,
|
|
20
|
+
fetchMore: s
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function u(e) {
|
|
24
|
+
let { data: t, loading: n, error: i, refetch: a } = r({
|
|
25
|
+
variables: { id: e },
|
|
26
|
+
skip: !e,
|
|
27
|
+
fetchPolicy: "cache-and-network"
|
|
28
|
+
});
|
|
29
|
+
return {
|
|
30
|
+
shortcut: t?.keyboardShortcut,
|
|
31
|
+
loading: n,
|
|
32
|
+
error: i,
|
|
33
|
+
refetch: a
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function d() {
|
|
37
|
+
let [n, { data: r, loading: i, error: a }] = t({ refetchQueries: [e] }), o = c("tenant.shortcut.created", { component: "microfe-product" });
|
|
38
|
+
return {
|
|
39
|
+
createShortcut: async (e) => {
|
|
40
|
+
let t = await n({ variables: { input: e } }), r = t.data?.createKeyboardShortcut;
|
|
41
|
+
return r && o({
|
|
42
|
+
resourceId: r.id,
|
|
43
|
+
productId: r.productId ?? void 0,
|
|
44
|
+
metadata: {
|
|
45
|
+
shortcutKey: r.shortcutKey,
|
|
46
|
+
eventName: r.eventName
|
|
47
|
+
}
|
|
48
|
+
}), t;
|
|
49
|
+
},
|
|
50
|
+
data: r?.createKeyboardShortcut,
|
|
51
|
+
loading: i,
|
|
52
|
+
error: a
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function f() {
|
|
56
|
+
let [e, { data: t, loading: n, error: r }] = s(), i = c("tenant.shortcut.updated", { component: "microfe-product" });
|
|
57
|
+
return {
|
|
58
|
+
updateShortcut: async (t, n) => {
|
|
59
|
+
let r = await e({ variables: {
|
|
60
|
+
id: t,
|
|
61
|
+
input: n
|
|
62
|
+
} }), a = r.data?.updateKeyboardShortcut;
|
|
63
|
+
return a && i({
|
|
64
|
+
resourceId: a.id,
|
|
65
|
+
productId: a.productId ?? void 0,
|
|
66
|
+
metadata: {
|
|
67
|
+
shortcutKey: a.shortcutKey,
|
|
68
|
+
eventName: a.eventName
|
|
69
|
+
}
|
|
70
|
+
}), r;
|
|
71
|
+
},
|
|
72
|
+
data: t?.updateKeyboardShortcut,
|
|
73
|
+
loading: n,
|
|
74
|
+
error: r
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function p() {
|
|
78
|
+
let [t, { data: r, loading: i, error: a }] = n({ refetchQueries: [e] }), o = c("tenant.shortcut.deleted", { component: "microfe-product" });
|
|
79
|
+
return {
|
|
80
|
+
deleteShortcut: async (e) => {
|
|
81
|
+
let n = await t({ variables: { id: e } });
|
|
82
|
+
return n.data?.deleteKeyboardShortcut && o({ resourceId: e }), n;
|
|
83
|
+
},
|
|
84
|
+
data: r?.deleteKeyboardShortcut,
|
|
85
|
+
loading: i,
|
|
86
|
+
error: a
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function m() {
|
|
90
|
+
let [e, { data: t, loading: n, error: r }] = o(), i = c("tenant.shortcut.toggled", { component: "microfe-product" });
|
|
91
|
+
return {
|
|
92
|
+
toggleShortcut: async (t, n) => {
|
|
93
|
+
let r = await e({ variables: {
|
|
94
|
+
id: t,
|
|
95
|
+
isEnabled: n
|
|
96
|
+
} }), a = r.data?.toggleKeyboardShortcut;
|
|
97
|
+
return a && i({
|
|
98
|
+
resourceId: a.id,
|
|
99
|
+
productId: a.productId ?? void 0,
|
|
100
|
+
metadata: { isEnabled: a.isEnabled }
|
|
101
|
+
}), r;
|
|
102
|
+
},
|
|
103
|
+
data: t?.toggleKeyboardShortcut,
|
|
104
|
+
loading: n,
|
|
105
|
+
error: r
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function h() {
|
|
109
|
+
let [t, { data: n, loading: r, error: i }] = a({ refetchQueries: [e] });
|
|
110
|
+
return {
|
|
111
|
+
seedDefaultShortcuts: (e) => t({ variables: { productId: e } }),
|
|
112
|
+
count: n?.seedDefaultShortcuts,
|
|
113
|
+
loading: r,
|
|
114
|
+
error: i
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { d as useCreateShortcut, p as useDeleteShortcut, h as useSeedDefaultShortcuts, u as useShortcut, l as useShortcuts, m as useToggleShortcut, f as useUpdateShortcut };
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=useShortcuts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShortcuts.js","names":[],"sources":["../../../../../src/product-management/modules/shortcuts/hooks/useShortcuts.ts"],"sourcesContent":["import { useEventEmitter } from '@burdenoff/fe-libs/shared/events';\n\nimport {\n useGetKeyboardShortcutsQuery,\n useGetKeyboardShortcutQuery,\n useGetShortcutCategoriesQuery,\n useCreateKeyboardShortcutMutation,\n useUpdateKeyboardShortcutMutation,\n useDeleteKeyboardShortcutMutation,\n useToggleKeyboardShortcutMutation,\n useSeedDefaultShortcutsMutation,\n GetKeyboardShortcutsDocument,\n} from '../../../../generated/global-operations';\nimport type {\n KeyboardShortcut,\n KeyboardShortcutFilterInput,\n CreateKeyboardShortcutInput,\n UpdateKeyboardShortcutInput,\n} from '../types';\n\n/**\n * Hook to fetch keyboard shortcuts with filtering and pagination\n */\nexport function useShortcuts(\n filter?: KeyboardShortcutFilterInput,\n options?: { limit?: number; offset?: number }\n) {\n const { data, loading, error, refetch, fetchMore } = useGetKeyboardShortcutsQuery({\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 shortcuts: (data?.keyboardShortcuts?.items || []) as KeyboardShortcut[],\n total: data?.keyboardShortcuts?.total || 0,\n hasMore: data?.keyboardShortcuts?.hasMore || false,\n loading,\n error,\n refetch,\n fetchMore,\n };\n}\n\n/**\n * Hook to fetch a single keyboard shortcut by ID\n */\nexport function useShortcut(id: string) {\n const { data, loading, error, refetch } = useGetKeyboardShortcutQuery({\n variables: { id },\n skip: !id,\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n shortcut: data?.keyboardShortcut as KeyboardShortcut | undefined,\n loading,\n error,\n refetch,\n };\n}\n\n/**\n * Hook to fetch all shortcut categories\n */\nexport function useShortcutCategories() {\n const { data, loading, error, refetch } = useGetShortcutCategoriesQuery({\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n categories: data?.shortcutCategories || [],\n loading,\n error,\n refetch,\n };\n}\n\n/**\n * Hook to create a new keyboard shortcut\n */\nexport function useCreateShortcut() {\n const [createShortcutMutation, { data, loading, error }] = useCreateKeyboardShortcutMutation({\n refetchQueries: [GetKeyboardShortcutsDocument],\n });\n const emit = useEventEmitter('tenant.shortcut.created', { component: 'microfe-product' });\n\n return {\n createShortcut: async (input: CreateKeyboardShortcutInput) => {\n const result = await createShortcutMutation({ variables: { input } });\n const sc = result.data?.createKeyboardShortcut;\n if (sc) {\n emit({\n resourceId: sc.id,\n productId: sc.productId ?? undefined,\n metadata: { shortcutKey: sc.shortcutKey, eventName: sc.eventName },\n });\n }\n return result;\n },\n data: data?.createKeyboardShortcut as KeyboardShortcut | undefined,\n loading,\n error,\n };\n}\n\n/**\n * Hook to update a keyboard shortcut\n */\nexport function useUpdateShortcut() {\n const [updateShortcutMutation, { data, loading, error }] = useUpdateKeyboardShortcutMutation();\n const emit = useEventEmitter('tenant.shortcut.updated', { component: 'microfe-product' });\n\n return {\n updateShortcut: async (id: string, input: UpdateKeyboardShortcutInput) => {\n const result = await updateShortcutMutation({ variables: { id, input } });\n const sc = result.data?.updateKeyboardShortcut;\n if (sc) {\n emit({\n resourceId: sc.id,\n productId: sc.productId ?? undefined,\n metadata: { shortcutKey: sc.shortcutKey, eventName: sc.eventName },\n });\n }\n return result;\n },\n data: data?.updateKeyboardShortcut as KeyboardShortcut | undefined,\n loading,\n error,\n };\n}\n\n/**\n * Hook to delete a keyboard shortcut\n */\nexport function useDeleteShortcut() {\n const [deleteShortcutMutation, { data, loading, error }] = useDeleteKeyboardShortcutMutation({\n refetchQueries: [GetKeyboardShortcutsDocument],\n });\n const emit = useEventEmitter('tenant.shortcut.deleted', { component: 'microfe-product' });\n\n return {\n deleteShortcut: async (id: string) => {\n const result = await deleteShortcutMutation({ variables: { id } });\n if (result.data?.deleteKeyboardShortcut) {\n emit({ resourceId: id });\n }\n return result;\n },\n data: data?.deleteKeyboardShortcut,\n loading,\n error,\n };\n}\n\n/**\n * Hook to toggle a keyboard shortcut enabled state\n */\nexport function useToggleShortcut() {\n const [toggleShortcutMutation, { data, loading, error }] = useToggleKeyboardShortcutMutation();\n const emit = useEventEmitter('tenant.shortcut.toggled', { component: 'microfe-product' });\n\n return {\n toggleShortcut: async (id: string, isEnabled: boolean) => {\n const result = await toggleShortcutMutation({ variables: { id, isEnabled } });\n const sc = result.data?.toggleKeyboardShortcut;\n if (sc) {\n emit({\n resourceId: sc.id,\n productId: sc.productId ?? undefined,\n metadata: { isEnabled: sc.isEnabled },\n });\n }\n return result;\n },\n data: data?.toggleKeyboardShortcut as KeyboardShortcut | undefined,\n loading,\n error,\n };\n}\n\n/**\n * Hook to seed default shortcuts\n */\nexport function useSeedDefaultShortcuts() {\n const [seedShortcutsMutation, { data, loading, error }] = useSeedDefaultShortcutsMutation({\n refetchQueries: [GetKeyboardShortcutsDocument],\n });\n\n return {\n seedDefaultShortcuts: (productId?: string) =>\n seedShortcutsMutation({ variables: { productId } }),\n count: data?.seedDefaultShortcuts,\n loading,\n error,\n };\n}\n"],"mappings":";;;AAuBA,SAAgB,EACd,GACA,GACA;CACA,IAAM,EAAE,SAAM,YAAS,UAAO,YAAS,iBAAc,EAA6B;EAChF,WAAW;GACT;GACA,OAAO,GAAS,SAAS;GACzB,QAAQ,GAAS,UAAU;GAC5B;EACD,aAAa;EACd,CAAC;AAEF,QAAO;EACL,WAAY,GAAM,mBAAmB,SAAS,EAAE;EAChD,OAAO,GAAM,mBAAmB,SAAS;EACzC,SAAS,GAAM,mBAAmB,WAAW;EAC7C;EACA;EACA;EACA;EACD;;AAMH,SAAgB,EAAY,GAAY;CACtC,IAAM,EAAE,SAAM,YAAS,UAAO,eAAY,EAA4B;EACpE,WAAW,EAAE,OAAI;EACjB,MAAM,CAAC;EACP,aAAa;EACd,CAAC;AAEF,QAAO;EACL,UAAU,GAAM;EAChB;EACA;EACA;EACD;;AAsBH,SAAgB,IAAoB;CAClC,IAAM,CAAC,GAAwB,EAAE,SAAM,YAAS,cAAW,EAAkC,EAC3F,gBAAgB,CAAC,EAA6B,EAC/C,CAAC,EACI,IAAO,EAAgB,2BAA2B,EAAE,WAAW,mBAAmB,CAAC;AAEzF,QAAO;EACL,gBAAgB,OAAO,MAAuC;GAC5D,IAAM,IAAS,MAAM,EAAuB,EAAE,WAAW,EAAE,UAAO,EAAE,CAAC,EAC/D,IAAK,EAAO,MAAM;AAQxB,UAPI,KACF,EAAK;IACH,YAAY,EAAG;IACf,WAAW,EAAG,aAAa,KAAA;IAC3B,UAAU;KAAE,aAAa,EAAG;KAAa,WAAW,EAAG;KAAW;IACnE,CAAC,EAEG;;EAET,MAAM,GAAM;EACZ;EACA;EACD;;AAMH,SAAgB,IAAoB;CAClC,IAAM,CAAC,GAAwB,EAAE,SAAM,YAAS,cAAW,GAAmC,EACxF,IAAO,EAAgB,2BAA2B,EAAE,WAAW,mBAAmB,CAAC;AAEzF,QAAO;EACL,gBAAgB,OAAO,GAAY,MAAuC;GACxE,IAAM,IAAS,MAAM,EAAuB,EAAE,WAAW;IAAE;IAAI;IAAO,EAAE,CAAC,EACnE,IAAK,EAAO,MAAM;AAQxB,UAPI,KACF,EAAK;IACH,YAAY,EAAG;IACf,WAAW,EAAG,aAAa,KAAA;IAC3B,UAAU;KAAE,aAAa,EAAG;KAAa,WAAW,EAAG;KAAW;IACnE,CAAC,EAEG;;EAET,MAAM,GAAM;EACZ;EACA;EACD;;AAMH,SAAgB,IAAoB;CAClC,IAAM,CAAC,GAAwB,EAAE,SAAM,YAAS,cAAW,EAAkC,EAC3F,gBAAgB,CAAC,EAA6B,EAC/C,CAAC,EACI,IAAO,EAAgB,2BAA2B,EAAE,WAAW,mBAAmB,CAAC;AAEzF,QAAO;EACL,gBAAgB,OAAO,MAAe;GACpC,IAAM,IAAS,MAAM,EAAuB,EAAE,WAAW,EAAE,OAAI,EAAE,CAAC;AAIlE,UAHI,EAAO,MAAM,0BACf,EAAK,EAAE,YAAY,GAAI,CAAC,EAEnB;;EAET,MAAM,GAAM;EACZ;EACA;EACD;;AAMH,SAAgB,IAAoB;CAClC,IAAM,CAAC,GAAwB,EAAE,SAAM,YAAS,cAAW,GAAmC,EACxF,IAAO,EAAgB,2BAA2B,EAAE,WAAW,mBAAmB,CAAC;AAEzF,QAAO;EACL,gBAAgB,OAAO,GAAY,MAAuB;GACxD,IAAM,IAAS,MAAM,EAAuB,EAAE,WAAW;IAAE;IAAI;IAAW,EAAE,CAAC,EACvE,IAAK,EAAO,MAAM;AAQxB,UAPI,KACF,EAAK;IACH,YAAY,EAAG;IACf,WAAW,EAAG,aAAa,KAAA;IAC3B,UAAU,EAAE,WAAW,EAAG,WAAW;IACtC,CAAC,EAEG;;EAET,MAAM,GAAM;EACZ;EACA;EACD;;AAMH,SAAgB,IAA0B;CACxC,IAAM,CAAC,GAAuB,EAAE,SAAM,YAAS,cAAW,EAAgC,EACxF,gBAAgB,CAAC,EAA6B,EAC/C,CAAC;AAEF,QAAO;EACL,uBAAuB,MACrB,EAAsB,EAAE,WAAW,EAAE,cAAW,EAAE,CAAC;EACrD,OAAO,GAAM;EACb;EACA;EACD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shortcuts Module
|
|
3
|
+
* Exports all components, pages, hooks, and types for keyboard shortcuts management
|
|
4
|
+
*/
|
|
5
|
+
export { ShortcutsListPage } from './pages/ShortcutsListPage';
|
|
6
|
+
export { ShortcutCreatePage } from './pages/ShortcutCreatePage';
|
|
7
|
+
export { ShortcutDetailPage } from './pages/ShortcutDetailPage';
|
|
8
|
+
export { ShortcutEditPage } from './pages/ShortcutEditPage';
|
|
9
|
+
export { ShortcutForm } from './components/ShortcutForm';
|
|
10
|
+
export { ShortcutCategoryBadge } from './components/ShortcutCategoryBadge';
|
|
11
|
+
export { ShortcutKeyBadge } from './components/ShortcutKeyBadge';
|
|
12
|
+
export { useShortcuts, useShortcut, useShortcutCategories, useCreateShortcut, useUpdateShortcut, useDeleteShortcut, useToggleShortcut, useSeedDefaultShortcuts, } from './hooks/useShortcuts';
|
|
13
|
+
export type { KeyboardShortcut, KeyboardShortcutList, KeyboardShortcutFilterInput, CreateKeyboardShortcutInput, UpdateKeyboardShortcutInput, ShortcutFormData, ShortcutCategory, } from './types';
|
|
14
|
+
export { ShortcutCategories } from './types';
|
|
15
|
+
export { createShortcutSchema, updateShortcutSchema } from './schemas';
|
|
16
|
+
export type { CreateShortcutFormData, UpdateShortcutFormData } from './schemas';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/product-management/modules/shortcuts/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,OAAO,EACL,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACvE,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShortcutCreatePage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/shortcuts/pages/ShortcutCreatePage.tsx"],"names":[],"mappings":"AAOA,wBAAgB,kBAAkB,4CAwDjC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
+
import { useCreateShortcut as n } from "../hooks/useShortcuts.js";
|
|
4
|
+
import { ShortcutForm as r } from "../components/ShortcutForm.js";
|
|
5
|
+
import { ArrowLeft as i } from "lucide-react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
//#region src/product-management/modules/shortcuts/pages/ShortcutCreatePage.tsx
|
|
8
|
+
function s() {
|
|
9
|
+
let { navigate: s, basePath: c = "/products" } = t(), l = e(), { createShortcut: u, loading: d, error: f } = n(), p = async (e) => {
|
|
10
|
+
try {
|
|
11
|
+
await u(e), s(`${c}/shortcuts`);
|
|
12
|
+
} catch (e) {
|
|
13
|
+
console.error("Failed to create shortcut:", e);
|
|
14
|
+
}
|
|
15
|
+
}, m = () => {
|
|
16
|
+
s(`${c}/shortcuts`);
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ o("div", {
|
|
19
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ o("div", {
|
|
22
|
+
className: "mb-6",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o("button", {
|
|
25
|
+
onClick: m,
|
|
26
|
+
className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n ",
|
|
27
|
+
children: [/* @__PURE__ */ a(i, { size: 18 }), l("shortcuts.backToShortcuts", "Back to Shortcuts")]
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ a("h1", {
|
|
30
|
+
className: "text-3xl font-bold text-text-primary mb-2",
|
|
31
|
+
children: l("shortcuts.createKeyboardShortcut", "Create Keyboard Shortcut")
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ a("p", {
|
|
34
|
+
className: "text-text-secondary",
|
|
35
|
+
children: l("shortcuts.createShortcutSubtitle", "Add a new keyboard shortcut for the platform")
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
}),
|
|
39
|
+
f && /* @__PURE__ */ a("div", {
|
|
40
|
+
className: "mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error)] rounded-lg",
|
|
41
|
+
children: /* @__PURE__ */ a("p", {
|
|
42
|
+
className: "text-[var(--color-status-error)]",
|
|
43
|
+
children: f.message
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ a("div", {
|
|
47
|
+
className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6 max-w-2xl",
|
|
48
|
+
children: /* @__PURE__ */ a(r, {
|
|
49
|
+
onSubmit: p,
|
|
50
|
+
onCancel: m,
|
|
51
|
+
loading: d
|
|
52
|
+
})
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { s as ShortcutCreatePage };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=ShortcutCreatePage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShortcutCreatePage.js","names":[],"sources":["../../../../../src/product-management/modules/shortcuts/pages/ShortcutCreatePage.tsx"],"sourcesContent":["import { ArrowLeft } from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useCreateShortcut } from '../hooks/useShortcuts';\nimport { ShortcutForm } from '../components/ShortcutForm';\nimport type { CreateKeyboardShortcutInput, UpdateKeyboardShortcutInput } from '../types';\n\nexport function ShortcutCreatePage() {\n const { navigate, basePath = '/products' } = useProductConsole();\n const tr = useTr();\n const { createShortcut, loading, error } = useCreateShortcut();\n\n const handleSubmit = async (data: CreateKeyboardShortcutInput | UpdateKeyboardShortcutInput) => {\n try {\n await createShortcut(data as CreateKeyboardShortcutInput);\n navigate(`${basePath}/shortcuts`);\n } catch (error) {\n console.error('Failed to create shortcut:', error);\n }\n };\n\n const handleCancel = () => {\n navigate(`${basePath}/shortcuts`);\n };\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n onClick={handleCancel}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n \"\n >\n <ArrowLeft size={18} />\n {tr('shortcuts.backToShortcuts', 'Back to Shortcuts')}\n </button>\n\n <h1 className=\"text-3xl font-bold text-text-primary mb-2\">\n {tr('shortcuts.createKeyboardShortcut', 'Create Keyboard Shortcut')}\n </h1>\n <p className=\"text-text-secondary\">\n {tr('shortcuts.createShortcutSubtitle', 'Add a new keyboard shortcut for the platform')}\n </p>\n </div>\n\n {/* Error Message */}\n {error && (\n <div className=\"mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error)] rounded-lg\">\n <p className=\"text-[var(--color-status-error)]\">{error.message}</p>\n </div>\n )}\n\n {/* Form Card */}\n <div className=\"bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6 max-w-2xl\">\n <ShortcutForm onSubmit={handleSubmit} onCancel={handleCancel} loading={loading} />\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,IAAqB;CACnC,IAAM,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAK,GAAO,EACZ,EAAE,mBAAgB,YAAS,aAAU,GAAmB,EAExD,IAAe,OAAO,MAAoE;AAC9F,MAAI;AAEF,GADA,MAAM,EAAe,EAAoC,EACzD,EAAS,GAAG,EAAS,YAAY;WAC1B,GAAO;AACd,WAAQ,MAAM,8BAA8B,EAAM;;IAIhD,UAAqB;AACzB,IAAS,GAAG,EAAS,YAAY;;AAGnC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GAEE,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,UAAD;MACE,SAAS;MACT,WAAU;gBAFZ,CASE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACtB,EAAG,6BAA6B,oBAAoB,CAC9C;;KAET,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,oCAAoC,2BAA2B;MAChE,CAAA;KACL,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAG,oCAAoC,+CAA+C;MACrF,CAAA;KACA;;GAGL,KACC,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAAoC,EAAM;KAAY,CAAA;IAC/D,CAAA;GAIR,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,GAAD;KAAc,UAAU;KAAc,UAAU;KAAuB;KAAW,CAAA;IAC9E,CAAA;GACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShortcutDetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/shortcuts/pages/ShortcutDetailPage.tsx"],"names":[],"mappings":"AAWA,wBAAgB,kBAAkB,4CAwWjC"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
+
import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
|
|
4
|
+
import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
|
|
5
|
+
import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
|
|
6
|
+
import { useDeleteShortcut as s, useShortcut as c, useToggleShortcut as l } from "../hooks/useShortcuts.js";
|
|
7
|
+
import { ShortcutCategoryBadge as u } from "../components/ShortcutCategoryBadge.js";
|
|
8
|
+
import { ShortcutKeyBadge as d } from "../components/ShortcutKeyBadge.js";
|
|
9
|
+
import { ArrowLeft as f, SquarePen as p, ToggleLeft as m, ToggleRight as h, Trash2 as g } from "lucide-react";
|
|
10
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
11
|
+
import { useParams as b } from "react-router-dom";
|
|
12
|
+
//#region src/product-management/modules/shortcuts/pages/ShortcutDetailPage.tsx
|
|
13
|
+
function x() {
|
|
14
|
+
let { id: x } = b(), { navigate: S, basePath: C = "/products" } = t(), w = e(), T = x || "", { shortcut: E, loading: D, error: O, refetch: k } = c(T), { deleteShortcut: A, loading: j } = s(), { toggleShortcut: M, loading: N } = l();
|
|
15
|
+
return D ? /* @__PURE__ */ v("div", {
|
|
16
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
17
|
+
children: /* @__PURE__ */ v(n, { message: w("shortcuts.loadingShortcut", "Loading shortcut...") })
|
|
18
|
+
}) : O ? /* @__PURE__ */ v("div", {
|
|
19
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
20
|
+
children: /* @__PURE__ */ v(r, {
|
|
21
|
+
message: O.message,
|
|
22
|
+
action: {
|
|
23
|
+
label: w("productCommon.retry", "Retry"),
|
|
24
|
+
onClick: () => k()
|
|
25
|
+
}
|
|
26
|
+
})
|
|
27
|
+
}) : E ? /* @__PURE__ */ y("div", {
|
|
28
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
29
|
+
children: [/* @__PURE__ */ y("div", {
|
|
30
|
+
className: "mb-6",
|
|
31
|
+
children: [/* @__PURE__ */ y("button", {
|
|
32
|
+
onClick: () => S(`${C}/shortcuts`),
|
|
33
|
+
className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n ",
|
|
34
|
+
children: [/* @__PURE__ */ v(f, { size: 18 }), w("shortcuts.backToShortcuts", "Back to Shortcuts")]
|
|
35
|
+
}), /* @__PURE__ */ y("div", {
|
|
36
|
+
className: "flex items-start justify-between",
|
|
37
|
+
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
|
|
38
|
+
className: "flex items-center gap-3 mb-2",
|
|
39
|
+
children: [/* @__PURE__ */ v("h1", {
|
|
40
|
+
className: "text-3xl font-bold text-text-primary",
|
|
41
|
+
children: E.label
|
|
42
|
+
}), /* @__PURE__ */ v(u, { category: E.category })]
|
|
43
|
+
}), /* @__PURE__ */ y("div", {
|
|
44
|
+
className: "flex items-center gap-3",
|
|
45
|
+
children: [/* @__PURE__ */ v(d, {
|
|
46
|
+
shortcutKey: E.shortcutKey,
|
|
47
|
+
isSequence: E.isSequence
|
|
48
|
+
}), /* @__PURE__ */ v("span", {
|
|
49
|
+
className: `
|
|
50
|
+
inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium
|
|
51
|
+
${E.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-muted text-text-tertiary"}
|
|
52
|
+
`,
|
|
53
|
+
children: E.isEnabled ? w("shortcuts.enabled", "Enabled") : w("shortcuts.disabled", "Disabled")
|
|
54
|
+
})]
|
|
55
|
+
})] }), /* @__PURE__ */ y("div", {
|
|
56
|
+
className: "flex items-center gap-2",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ v("button", {
|
|
59
|
+
onClick: async () => {
|
|
60
|
+
if (E) {
|
|
61
|
+
a("medium");
|
|
62
|
+
try {
|
|
63
|
+
await M(T, !E.isEnabled), k();
|
|
64
|
+
} catch (e) {
|
|
65
|
+
o("error"), console.error("Failed to toggle shortcut:", e);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
disabled: N,
|
|
70
|
+
className: `
|
|
71
|
+
inline-flex items-center gap-2 px-4 py-2
|
|
72
|
+
rounded-lg
|
|
73
|
+
transition-all duration-200
|
|
74
|
+
font-medium
|
|
75
|
+
disabled:opacity-50
|
|
76
|
+
${E.isEnabled ? "bg-surface text-text-primary border border-default hover:bg-muted" : "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border border-[var(--color-status-success)] hover:bg-[var(--color-status-success)] hover:text-white"}
|
|
77
|
+
`,
|
|
78
|
+
children: E.isEnabled ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(m, { size: 18 }), w("shortcuts.disable", "Disable")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(h, { size: 18 }), w("shortcuts.enable", "Enable")] })
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ y("button", {
|
|
81
|
+
onClick: () => S(`${C}/shortcuts/${T}/edit`),
|
|
82
|
+
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n ",
|
|
83
|
+
children: [/* @__PURE__ */ v(p, { size: 18 }), w("shortcuts.edit", "Edit")]
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ y("button", {
|
|
86
|
+
onClick: async () => {
|
|
87
|
+
a("medium");
|
|
88
|
+
let e = w("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
|
|
89
|
+
title: "Delete shortcut",
|
|
90
|
+
message: e,
|
|
91
|
+
okButtonTitle: "Delete",
|
|
92
|
+
cancelButtonTitle: "Cancel"
|
|
93
|
+
});
|
|
94
|
+
if (t === null ? window.confirm(e) : t) try {
|
|
95
|
+
await A(T), o("success"), S(`${C}/shortcuts`);
|
|
96
|
+
} catch (e) {
|
|
97
|
+
o("error"), console.error("Failed to delete shortcut:", e);
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
disabled: j,
|
|
101
|
+
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error)]\n rounded-lg\n hover:bg-[var(--color-status-error)] hover:text-white\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
|
|
102
|
+
children: [/* @__PURE__ */ v(g, { size: 18 }), w("shortcuts.delete", "Delete")]
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
})]
|
|
106
|
+
})]
|
|
107
|
+
}), /* @__PURE__ */ y("div", {
|
|
108
|
+
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
109
|
+
children: [/* @__PURE__ */ y("div", {
|
|
110
|
+
className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
|
|
111
|
+
children: [/* @__PURE__ */ v("h2", {
|
|
112
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
113
|
+
children: w("shortcuts.shortcutDetails", "Shortcut Details")
|
|
114
|
+
}), /* @__PURE__ */ y("dl", {
|
|
115
|
+
className: "space-y-4",
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
118
|
+
className: "text-sm font-medium text-text-secondary",
|
|
119
|
+
children: w("shortcuts.label", "Label")
|
|
120
|
+
}), /* @__PURE__ */ v("dd", {
|
|
121
|
+
className: "text-text-primary mt-1",
|
|
122
|
+
children: E.label
|
|
123
|
+
})] }),
|
|
124
|
+
E.description && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
125
|
+
className: "text-sm font-medium text-text-secondary",
|
|
126
|
+
children: w("shortcuts.description", "Description")
|
|
127
|
+
}), /* @__PURE__ */ v("dd", {
|
|
128
|
+
className: "text-text-primary mt-1",
|
|
129
|
+
children: E.description
|
|
130
|
+
})] }),
|
|
131
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
132
|
+
className: "text-sm font-medium text-text-secondary",
|
|
133
|
+
children: w("shortcuts.shortcutKey", "Shortcut Key")
|
|
134
|
+
}), /* @__PURE__ */ v("dd", {
|
|
135
|
+
className: "mt-1",
|
|
136
|
+
children: /* @__PURE__ */ v(d, {
|
|
137
|
+
shortcutKey: E.shortcutKey,
|
|
138
|
+
isSequence: E.isSequence
|
|
139
|
+
})
|
|
140
|
+
})] }),
|
|
141
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
142
|
+
className: "text-sm font-medium text-text-secondary",
|
|
143
|
+
children: w("shortcuts.eventName", "Event Name")
|
|
144
|
+
}), /* @__PURE__ */ v("dd", {
|
|
145
|
+
className: "mt-1",
|
|
146
|
+
children: /* @__PURE__ */ v("code", {
|
|
147
|
+
className: "text-sm text-text-secondary bg-muted px-2 py-1 rounded font-mono",
|
|
148
|
+
children: E.eventName
|
|
149
|
+
})
|
|
150
|
+
})] }),
|
|
151
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
152
|
+
className: "text-sm font-medium text-text-secondary",
|
|
153
|
+
children: w("shortcuts.category", "Category")
|
|
154
|
+
}), /* @__PURE__ */ v("dd", {
|
|
155
|
+
className: "mt-1",
|
|
156
|
+
children: /* @__PURE__ */ v(u, { category: E.category })
|
|
157
|
+
})] }),
|
|
158
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
159
|
+
className: "text-sm font-medium text-text-secondary",
|
|
160
|
+
children: w("shortcuts.product", "Product")
|
|
161
|
+
}), /* @__PURE__ */ v("dd", {
|
|
162
|
+
className: "text-text-primary mt-1",
|
|
163
|
+
children: E.product?.name || /* @__PURE__ */ v("span", {
|
|
164
|
+
className: "text-text-tertiary italic",
|
|
165
|
+
children: w("shortcuts.globalAllProducts", "Global (All Products)")
|
|
166
|
+
})
|
|
167
|
+
})] }),
|
|
168
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
169
|
+
className: "text-sm font-medium text-text-secondary",
|
|
170
|
+
children: w("shortcuts.type", "Type")
|
|
171
|
+
}), /* @__PURE__ */ v("dd", {
|
|
172
|
+
className: "text-text-primary mt-1",
|
|
173
|
+
children: E.isSequence ? w("shortcuts.keySequence", "Key Sequence") : w("shortcuts.keyCombination", "Key Combination")
|
|
174
|
+
})] }),
|
|
175
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
176
|
+
className: "text-sm font-medium text-text-secondary",
|
|
177
|
+
children: w("shortcuts.sortOrder", "Sort Order")
|
|
178
|
+
}), /* @__PURE__ */ v("dd", {
|
|
179
|
+
className: "text-text-primary mt-1",
|
|
180
|
+
children: E.sortOrder
|
|
181
|
+
})] })
|
|
182
|
+
]
|
|
183
|
+
})]
|
|
184
|
+
}), /* @__PURE__ */ y("div", {
|
|
185
|
+
className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ v("h2", {
|
|
188
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
189
|
+
children: w("shortcuts.platformKeys", "Platform Keys")
|
|
190
|
+
}),
|
|
191
|
+
/* @__PURE__ */ y("dl", {
|
|
192
|
+
className: "space-y-4",
|
|
193
|
+
children: [
|
|
194
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
195
|
+
className: "text-sm font-medium text-text-secondary",
|
|
196
|
+
children: w("shortcuts.defaultKey", "Default Key")
|
|
197
|
+
}), /* @__PURE__ */ v("dd", {
|
|
198
|
+
className: "mt-1",
|
|
199
|
+
children: /* @__PURE__ */ v(d, {
|
|
200
|
+
shortcutKey: E.shortcutKey,
|
|
201
|
+
isSequence: E.isSequence
|
|
202
|
+
})
|
|
203
|
+
})] }),
|
|
204
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
205
|
+
className: "text-sm font-medium text-text-secondary",
|
|
206
|
+
children: w("shortcuts.macKey", "Mac Key")
|
|
207
|
+
}), /* @__PURE__ */ v("dd", {
|
|
208
|
+
className: "mt-1",
|
|
209
|
+
children: E.macKey ? /* @__PURE__ */ v(d, { shortcutKey: E.macKey }) : /* @__PURE__ */ v("span", {
|
|
210
|
+
className: "text-text-tertiary italic",
|
|
211
|
+
children: w("shortcuts.sameAsDefault", "Same as default")
|
|
212
|
+
})
|
|
213
|
+
})] }),
|
|
214
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
215
|
+
className: "text-sm font-medium text-text-secondary",
|
|
216
|
+
children: w("shortcuts.windowsLinuxKey", "Windows/Linux Key")
|
|
217
|
+
}), /* @__PURE__ */ v("dd", {
|
|
218
|
+
className: "mt-1",
|
|
219
|
+
children: E.windowsKey ? /* @__PURE__ */ v(d, { shortcutKey: E.windowsKey }) : /* @__PURE__ */ v("span", {
|
|
220
|
+
className: "text-text-tertiary italic",
|
|
221
|
+
children: w("shortcuts.sameAsDefault", "Same as default")
|
|
222
|
+
})
|
|
223
|
+
})] })
|
|
224
|
+
]
|
|
225
|
+
}),
|
|
226
|
+
/* @__PURE__ */ y("div", {
|
|
227
|
+
className: "mt-6 pt-4 border-t border-default",
|
|
228
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
229
|
+
className: "text-sm font-semibold text-text-secondary mb-3",
|
|
230
|
+
children: w("shortcuts.timestamps", "Timestamps")
|
|
231
|
+
}), /* @__PURE__ */ y("dl", {
|
|
232
|
+
className: "space-y-2 text-sm",
|
|
233
|
+
children: [/* @__PURE__ */ y("div", {
|
|
234
|
+
className: "flex justify-between",
|
|
235
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
236
|
+
className: "text-text-tertiary",
|
|
237
|
+
children: w("shortcuts.created", "Created")
|
|
238
|
+
}), /* @__PURE__ */ v("dd", {
|
|
239
|
+
className: "text-text-primary",
|
|
240
|
+
children: new Date(E.createdAt).toLocaleString()
|
|
241
|
+
})]
|
|
242
|
+
}), /* @__PURE__ */ y("div", {
|
|
243
|
+
className: "flex justify-between",
|
|
244
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
245
|
+
className: "text-text-tertiary",
|
|
246
|
+
children: w("shortcuts.updated", "Updated")
|
|
247
|
+
}), /* @__PURE__ */ v("dd", {
|
|
248
|
+
className: "text-text-primary",
|
|
249
|
+
children: new Date(E.updatedAt).toLocaleString()
|
|
250
|
+
})]
|
|
251
|
+
})]
|
|
252
|
+
})]
|
|
253
|
+
})
|
|
254
|
+
]
|
|
255
|
+
})]
|
|
256
|
+
})]
|
|
257
|
+
}) : /* @__PURE__ */ v("div", {
|
|
258
|
+
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
259
|
+
children: /* @__PURE__ */ v(r, {
|
|
260
|
+
message: w("shortcuts.shortcutNotFound", "Shortcut not found"),
|
|
261
|
+
action: {
|
|
262
|
+
label: w("shortcuts.goBack", "Go Back"),
|
|
263
|
+
onClick: () => S(`${C}/shortcuts`)
|
|
264
|
+
}
|
|
265
|
+
})
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
269
|
+
export { x as ShortcutDetailPage };
|
|
270
|
+
|
|
271
|
+
//# sourceMappingURL=ShortcutDetailPage.js.map
|