@endora-commerce/admin-shell 0.0.0-stage → 0.100.0
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/LICENSE +21 -0
- package/README.md +49 -2
- package/dist/AdminRoot.d.ts +45 -0
- package/dist/AdminRoot.d.ts.map +1 -0
- package/dist/AdminRoot.js +39 -0
- package/dist/AdminRoot.js.map +1 -0
- package/dist/App.d.ts +42 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/App.js +94 -0
- package/dist/App.js.map +1 -0
- package/dist/components/AppShell.d.ts +5 -0
- package/dist/components/AppShell.d.ts.map +1 -0
- package/dist/components/AppShell.js +1259 -0
- package/dist/components/AppShell.js.map +1 -0
- package/dist/components/BrandLogo.d.ts +21 -0
- package/dist/components/BrandLogo.d.ts.map +1 -0
- package/dist/components/BrandLogo.js +21 -0
- package/dist/components/BrandLogo.js.map +1 -0
- package/dist/components/FederatedSignIn.d.ts +42 -0
- package/dist/components/FederatedSignIn.d.ts.map +1 -0
- package/dist/components/FederatedSignIn.js +56 -0
- package/dist/components/FederatedSignIn.js.map +1 -0
- package/dist/components/FileDropzone.d.ts +17 -0
- package/dist/components/FileDropzone.d.ts.map +1 -0
- package/dist/components/FileDropzone.js +17 -0
- package/dist/components/FileDropzone.js.map +1 -0
- package/dist/components/IdleLogout.d.ts +2 -0
- package/dist/components/IdleLogout.d.ts.map +1 -0
- package/dist/components/IdleLogout.js +90 -0
- package/dist/components/IdleLogout.js.map +1 -0
- package/dist/components/ImpersonationBanner.d.ts +13 -0
- package/dist/components/ImpersonationBanner.d.ts.map +1 -0
- package/dist/components/ImpersonationBanner.js +10 -0
- package/dist/components/ImpersonationBanner.js.map +1 -0
- package/dist/components/LanguagePicker.d.ts +3 -0
- package/dist/components/LanguagePicker.d.ts.map +1 -0
- package/dist/components/LanguagePicker.js +127 -0
- package/dist/components/LanguagePicker.js.map +1 -0
- package/dist/components/LoginPage.d.ts +11 -0
- package/dist/components/LoginPage.d.ts.map +1 -0
- package/dist/components/LoginPage.js +44 -0
- package/dist/components/LoginPage.js.map +1 -0
- package/dist/components/PaginationFooter.d.ts +18 -0
- package/dist/components/PaginationFooter.d.ts.map +1 -0
- package/dist/components/PaginationFooter.js +17 -0
- package/dist/components/PaginationFooter.js.map +1 -0
- package/dist/components/ResponsiveTable.d.ts +18 -0
- package/dist/components/ResponsiveTable.d.ts.map +1 -0
- package/dist/components/ResponsiveTable.js +17 -0
- package/dist/components/ResponsiveTable.js.map +1 -0
- package/dist/components/RowActionMenu.d.ts +18 -0
- package/dist/components/RowActionMenu.d.ts.map +1 -0
- package/dist/components/RowActionMenu.js +17 -0
- package/dist/components/RowActionMenu.js.map +1 -0
- package/dist/components/SpeechToTextButton.d.ts +14 -0
- package/dist/components/SpeechToTextButton.d.ts.map +1 -0
- package/dist/components/SpeechToTextButton.js +19 -0
- package/dist/components/SpeechToTextButton.js.map +1 -0
- package/dist/components/StickyFormActions.d.ts +18 -0
- package/dist/components/StickyFormActions.d.ts.map +1 -0
- package/dist/components/StickyFormActions.js +17 -0
- package/dist/components/StickyFormActions.js.map +1 -0
- package/dist/components/TouchReorderButtons.d.ts +18 -0
- package/dist/components/TouchReorderButtons.d.ts.map +1 -0
- package/dist/components/TouchReorderButtons.js +17 -0
- package/dist/components/TouchReorderButtons.js.map +1 -0
- package/dist/components/admin-user-picker/AdminUserPicker.d.ts +18 -0
- package/dist/components/admin-user-picker/AdminUserPicker.d.ts.map +1 -0
- package/dist/components/admin-user-picker/AdminUserPicker.js +17 -0
- package/dist/components/admin-user-picker/AdminUserPicker.js.map +1 -0
- package/dist/components/asset-picker/AssetFieldPicker.d.ts +21 -0
- package/dist/components/asset-picker/AssetFieldPicker.d.ts.map +1 -0
- package/dist/components/asset-picker/AssetFieldPicker.js +20 -0
- package/dist/components/asset-picker/AssetFieldPicker.js.map +1 -0
- package/dist/components/category-picker/CategorySelect.d.ts +18 -0
- package/dist/components/category-picker/CategorySelect.d.ts.map +1 -0
- package/dist/components/category-picker/CategorySelect.js +17 -0
- package/dist/components/category-picker/CategorySelect.js.map +1 -0
- package/dist/components/category-tree-picker/CategoryTreePicker.d.ts +18 -0
- package/dist/components/category-tree-picker/CategoryTreePicker.d.ts.map +1 -0
- package/dist/components/category-tree-picker/CategoryTreePicker.js +17 -0
- package/dist/components/category-tree-picker/CategoryTreePicker.js.map +1 -0
- package/dist/components/category-tree-picker/category-tree-utils.d.ts +18 -0
- package/dist/components/category-tree-picker/category-tree-utils.d.ts.map +1 -0
- package/dist/components/category-tree-picker/category-tree-utils.js +17 -0
- package/dist/components/category-tree-picker/category-tree-utils.js.map +1 -0
- package/dist/components/category-tree-picker/index.d.ts +18 -0
- package/dist/components/category-tree-picker/index.d.ts.map +1 -0
- package/dist/components/category-tree-picker/index.js +17 -0
- package/dist/components/category-tree-picker/index.js.map +1 -0
- package/dist/components/charts/echart.d.ts +18 -0
- package/dist/components/charts/echart.d.ts.map +1 -0
- package/dist/components/charts/echart.js +17 -0
- package/dist/components/charts/echart.js.map +1 -0
- package/dist/components/cms-picker/CmsBlockPicker.d.ts +19 -0
- package/dist/components/cms-picker/CmsBlockPicker.d.ts.map +1 -0
- package/dist/components/cms-picker/CmsBlockPicker.js +18 -0
- package/dist/components/cms-picker/CmsBlockPicker.js.map +1 -0
- package/dist/components/cms-picker/CmsPagePicker.d.ts +19 -0
- package/dist/components/cms-picker/CmsPagePicker.d.ts.map +1 -0
- package/dist/components/cms-picker/CmsPagePicker.js +18 -0
- package/dist/components/cms-picker/CmsPagePicker.js.map +1 -0
- package/dist/components/country-select/index.d.ts +18 -0
- package/dist/components/country-select/index.d.ts.map +1 -0
- package/dist/components/country-select/index.js +17 -0
- package/dist/components/country-select/index.js.map +1 -0
- package/dist/components/customer-group-picker/CustomerGroupPicker.d.ts +18 -0
- package/dist/components/customer-group-picker/CustomerGroupPicker.d.ts.map +1 -0
- package/dist/components/customer-group-picker/CustomerGroupPicker.js +17 -0
- package/dist/components/customer-group-picker/CustomerGroupPicker.js.map +1 -0
- package/dist/components/customer-picker/CustomerPicker.d.ts +18 -0
- package/dist/components/customer-picker/CustomerPicker.d.ts.map +1 -0
- package/dist/components/customer-picker/CustomerPicker.js +17 -0
- package/dist/components/customer-picker/CustomerPicker.js.map +1 -0
- package/dist/components/hooks/useFocusTrap.d.ts +17 -0
- package/dist/components/hooks/useFocusTrap.d.ts.map +1 -0
- package/dist/components/hooks/useFocusTrap.js +17 -0
- package/dist/components/hooks/useFocusTrap.js.map +1 -0
- package/dist/components/hooks/useSpeechToText.d.ts +15 -0
- package/dist/components/hooks/useSpeechToText.d.ts.map +1 -0
- package/dist/components/hooks/useSpeechToText.js +63 -0
- package/dist/components/hooks/useSpeechToText.js.map +1 -0
- package/dist/components/hooks/useViewportTier.d.ts +18 -0
- package/dist/components/hooks/useViewportTier.d.ts.map +1 -0
- package/dist/components/hooks/useViewportTier.js +17 -0
- package/dist/components/hooks/useViewportTier.js.map +1 -0
- package/dist/components/notifications/NotificationBell.d.ts +13 -0
- package/dist/components/notifications/NotificationBell.d.ts.map +1 -0
- package/dist/components/notifications/NotificationBell.js +154 -0
- package/dist/components/notifications/NotificationBell.js.map +1 -0
- package/dist/components/notifications/index.d.ts +3 -0
- package/dist/components/notifications/index.d.ts.map +1 -0
- package/dist/components/notifications/index.js +3 -0
- package/dist/components/notifications/index.js.map +1 -0
- package/dist/components/notifications/useAdminNotifications.d.ts +41 -0
- package/dist/components/notifications/useAdminNotifications.d.ts.map +1 -0
- package/dist/components/notifications/useAdminNotifications.js +86 -0
- package/dist/components/notifications/useAdminNotifications.js.map +1 -0
- package/dist/components/organization-picker/OrganizationPicker.d.ts +19 -0
- package/dist/components/organization-picker/OrganizationPicker.d.ts.map +1 -0
- package/dist/components/organization-picker/OrganizationPicker.js +18 -0
- package/dist/components/organization-picker/OrganizationPicker.js.map +1 -0
- package/dist/components/organization-picker/OrganizationPickerMulti.d.ts +19 -0
- package/dist/components/organization-picker/OrganizationPickerMulti.d.ts.map +1 -0
- package/dist/components/organization-picker/OrganizationPickerMulti.js +18 -0
- package/dist/components/organization-picker/OrganizationPickerMulti.js.map +1 -0
- package/dist/components/organization-picker/OrganizationStatusBadge.d.ts +19 -0
- package/dist/components/organization-picker/OrganizationStatusBadge.d.ts.map +1 -0
- package/dist/components/organization-picker/OrganizationStatusBadge.js +18 -0
- package/dist/components/organization-picker/OrganizationStatusBadge.js.map +1 -0
- package/dist/components/organization-picker/index.d.ts +19 -0
- package/dist/components/organization-picker/index.d.ts.map +1 -0
- package/dist/components/organization-picker/index.js +18 -0
- package/dist/components/organization-picker/index.js.map +1 -0
- package/dist/components/organization-picker/useOrganizationsQuery.d.ts +19 -0
- package/dist/components/organization-picker/useOrganizationsQuery.d.ts.map +1 -0
- package/dist/components/organization-picker/useOrganizationsQuery.js +18 -0
- package/dist/components/organization-picker/useOrganizationsQuery.js.map +1 -0
- package/dist/components/payment-method-availability/MethodAvailabilityCell.d.ts +17 -0
- package/dist/components/payment-method-availability/MethodAvailabilityCell.d.ts.map +1 -0
- package/dist/components/payment-method-availability/MethodAvailabilityCell.js +17 -0
- package/dist/components/payment-method-availability/MethodAvailabilityCell.js.map +1 -0
- package/dist/components/prompt-actions/PromptModePanel.d.ts +24 -0
- package/dist/components/prompt-actions/PromptModePanel.d.ts.map +1 -0
- package/dist/components/prompt-actions/PromptModePanel.js +115 -0
- package/dist/components/prompt-actions/PromptModePanel.js.map +1 -0
- package/dist/components/prompt-actions/PromptPlanPreview.d.ts +20 -0
- package/dist/components/prompt-actions/PromptPlanPreview.d.ts.map +1 -0
- package/dist/components/prompt-actions/PromptPlanPreview.js +12 -0
- package/dist/components/prompt-actions/PromptPlanPreview.js.map +1 -0
- package/dist/components/reorder/ReorderAnnouncer.d.ts +18 -0
- package/dist/components/reorder/ReorderAnnouncer.d.ts.map +1 -0
- package/dist/components/reorder/ReorderAnnouncer.js +17 -0
- package/dist/components/reorder/ReorderAnnouncer.js.map +1 -0
- package/dist/components/reorder/useReorderList.d.ts +18 -0
- package/dist/components/reorder/useReorderList.d.ts.map +1 -0
- package/dist/components/reorder/useReorderList.js +17 -0
- package/dist/components/reorder/useReorderList.js.map +1 -0
- package/dist/components/rule-builder/RuleBuilder.d.ts +18 -0
- package/dist/components/rule-builder/RuleBuilder.d.ts.map +1 -0
- package/dist/components/rule-builder/RuleBuilder.js +17 -0
- package/dist/components/rule-builder/RuleBuilder.js.map +1 -0
- package/dist/components/sales-channel-picker/SalesChannelPicker.d.ts +19 -0
- package/dist/components/sales-channel-picker/SalesChannelPicker.d.ts.map +1 -0
- package/dist/components/sales-channel-picker/SalesChannelPicker.js +18 -0
- package/dist/components/sales-channel-picker/SalesChannelPicker.js.map +1 -0
- package/dist/components/scope-notice/ScopeNotice.d.ts +18 -0
- package/dist/components/scope-notice/ScopeNotice.d.ts.map +1 -0
- package/dist/components/scope-notice/ScopeNotice.js +17 -0
- package/dist/components/scope-notice/ScopeNotice.js.map +1 -0
- package/dist/components/ui/alert.d.ts +18 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +17 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/badge.d.ts +18 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +17 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/button.d.ts +18 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +17 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/card.d.ts +17 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +17 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +17 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +17 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +5 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/color-picker.d.ts +17 -0
- package/dist/components/ui/color-picker.d.ts.map +1 -0
- package/dist/components/ui/color-picker.js +17 -0
- package/dist/components/ui/color-picker.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +18 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +17 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/input.d.ts +17 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +17 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +17 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +17 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/multi-select.d.ts +18 -0
- package/dist/components/ui/multi-select.d.ts.map +1 -0
- package/dist/components/ui/multi-select.js +17 -0
- package/dist/components/ui/multi-select.js.map +1 -0
- package/dist/components/ui/page-header.d.ts +18 -0
- package/dist/components/ui/page-header.d.ts.map +1 -0
- package/dist/components/ui/page-header.js +17 -0
- package/dist/components/ui/page-header.js.map +1 -0
- package/dist/components/ui/route-tabs.d.ts +18 -0
- package/dist/components/ui/route-tabs.d.ts.map +1 -0
- package/dist/components/ui/route-tabs.js +17 -0
- package/dist/components/ui/route-tabs.js.map +1 -0
- package/dist/components/ui/save-button-group.d.ts +18 -0
- package/dist/components/ui/save-button-group.d.ts.map +1 -0
- package/dist/components/ui/save-button-group.js +17 -0
- package/dist/components/ui/save-button-group.js.map +1 -0
- package/dist/components/ui/select.d.ts +17 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +17 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +17 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +17 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/table.d.ts +17 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +17 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +17 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +17 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/i18n/TranslationProvider.d.ts +18 -0
- package/dist/i18n/TranslationProvider.d.ts.map +1 -0
- package/dist/i18n/TranslationProvider.js +17 -0
- package/dist/i18n/TranslationProvider.js.map +1 -0
- package/dist/i18n/app-language-context.d.ts +18 -0
- package/dist/i18n/app-language-context.d.ts.map +1 -0
- package/dist/i18n/app-language-context.js +17 -0
- package/dist/i18n/app-language-context.js.map +1 -0
- package/dist/i18n/interpolate.d.ts +17 -0
- package/dist/i18n/interpolate.d.ts.map +1 -0
- package/dist/i18n/interpolate.js +17 -0
- package/dist/i18n/interpolate.js.map +1 -0
- package/dist/i18n/language-storage.d.ts +17 -0
- package/dist/i18n/language-storage.d.ts.map +1 -0
- package/dist/i18n/language-storage.js +17 -0
- package/dist/i18n/language-storage.js.map +1 -0
- package/dist/i18n/preauth-login-copy.d.ts +36 -0
- package/dist/i18n/preauth-login-copy.d.ts.map +1 -0
- package/dist/i18n/preauth-login-copy.js +36 -0
- package/dist/i18n/preauth-login-copy.js.map +1 -0
- package/dist/i18n/resolver.d.ts +18 -0
- package/dist/i18n/resolver.d.ts.map +1 -0
- package/dist/i18n/resolver.js +17 -0
- package/dist/i18n/resolver.js.map +1 -0
- package/dist/i18n/types.d.ts +17 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/i18n/types.js +2 -0
- package/dist/i18n/types.js.map +1 -0
- package/dist/i18n/useTranslation.d.ts +17 -0
- package/dist/i18n/useTranslation.d.ts.map +1 -0
- package/dist/i18n/useTranslation.js +17 -0
- package/dist/i18n/useTranslation.js.map +1 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/admin-actions/AdminActionsProvider.d.ts +29 -0
- package/dist/lib/admin-actions/AdminActionsProvider.d.ts.map +1 -0
- package/dist/lib/admin-actions/AdminActionsProvider.js +51 -0
- package/dist/lib/admin-actions/AdminActionsProvider.js.map +1 -0
- package/dist/lib/admin-actions/api.d.ts +10 -0
- package/dist/lib/admin-actions/api.d.ts.map +1 -0
- package/dist/lib/admin-actions/api.js +13 -0
- package/dist/lib/admin-actions/api.js.map +1 -0
- package/dist/lib/admin-actions/icon-map.d.ts +17 -0
- package/dist/lib/admin-actions/icon-map.d.ts.map +1 -0
- package/dist/lib/admin-actions/icon-map.js +17 -0
- package/dist/lib/admin-actions/icon-map.js.map +1 -0
- package/dist/lib/admin-actions/useAdminActions.d.ts +17 -0
- package/dist/lib/admin-actions/useAdminActions.d.ts.map +1 -0
- package/dist/lib/admin-actions/useAdminActions.js +34 -0
- package/dist/lib/admin-actions/useAdminActions.js.map +1 -0
- package/dist/lib/api-client.d.ts +17 -0
- package/dist/lib/api-client.d.ts.map +1 -0
- package/dist/lib/api-client.js +17 -0
- package/dist/lib/api-client.js.map +1 -0
- package/dist/lib/auth.d.ts +18 -0
- package/dist/lib/auth.d.ts.map +1 -0
- package/dist/lib/auth.js +17 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/federated-sign-in/api.d.ts +4 -0
- package/dist/lib/federated-sign-in/api.d.ts.map +1 -0
- package/dist/lib/federated-sign-in/api.js +38 -0
- package/dist/lib/federated-sign-in/api.js.map +1 -0
- package/dist/lib/federated-sign-in/index.d.ts +4 -0
- package/dist/lib/federated-sign-in/index.d.ts.map +1 -0
- package/dist/lib/federated-sign-in/index.js +4 -0
- package/dist/lib/federated-sign-in/index.js.map +1 -0
- package/dist/lib/federated-sign-in/resolve.d.ts +47 -0
- package/dist/lib/federated-sign-in/resolve.d.ts.map +1 -0
- package/dist/lib/federated-sign-in/resolve.js +24 -0
- package/dist/lib/federated-sign-in/resolve.js.map +1 -0
- package/dist/lib/federated-sign-in/useFederatedSignIn.d.ts +15 -0
- package/dist/lib/federated-sign-in/useFederatedSignIn.d.ts.map +1 -0
- package/dist/lib/federated-sign-in/useFederatedSignIn.js +37 -0
- package/dist/lib/federated-sign-in/useFederatedSignIn.js.map +1 -0
- package/dist/lib/format.d.ts +17 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/format.js +17 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/module-presence/index.d.ts +19 -0
- package/dist/lib/module-presence/index.d.ts.map +1 -0
- package/dist/lib/module-presence/index.js +18 -0
- package/dist/lib/module-presence/index.js.map +1 -0
- package/dist/lib/module-registry/index.d.ts +84 -0
- package/dist/lib/module-registry/index.d.ts.map +1 -0
- package/dist/lib/module-registry/index.js +104 -0
- package/dist/lib/module-registry/index.js.map +1 -0
- package/dist/lib/money.d.ts +17 -0
- package/dist/lib/money.d.ts.map +1 -0
- package/dist/lib/money.js +17 -0
- package/dist/lib/money.js.map +1 -0
- package/dist/lib/prompt-actions/api.d.ts +10 -0
- package/dist/lib/prompt-actions/api.d.ts.map +1 -0
- package/dist/lib/prompt-actions/api.js +41 -0
- package/dist/lib/prompt-actions/api.js.map +1 -0
- package/dist/lib/prompt-actions/usePromptRequest.d.ts +26 -0
- package/dist/lib/prompt-actions/usePromptRequest.d.ts.map +1 -0
- package/dist/lib/prompt-actions/usePromptRequest.js +113 -0
- package/dist/lib/prompt-actions/usePromptRequest.js.map +1 -0
- package/dist/lib/surface-visibility.d.ts +15 -0
- package/dist/lib/surface-visibility.d.ts.map +1 -0
- package/dist/lib/surface-visibility.js +14 -0
- package/dist/lib/surface-visibility.js.map +1 -0
- package/dist/lib/text-normalization.d.ts +17 -0
- package/dist/lib/text-normalization.d.ts.map +1 -0
- package/dist/lib/text-normalization.js +17 -0
- package/dist/lib/text-normalization.js.map +1 -0
- package/dist/lib/use-page-size-preference.d.ts +16 -0
- package/dist/lib/use-page-size-preference.d.ts.map +1 -0
- package/dist/lib/use-page-size-preference.js +15 -0
- package/dist/lib/use-page-size-preference.js.map +1 -0
- package/dist/lib/use-unsaved-changes-prompt.d.ts +17 -0
- package/dist/lib/use-unsaved-changes-prompt.d.ts.map +1 -0
- package/dist/lib/use-unsaved-changes-prompt.js +17 -0
- package/dist/lib/use-unsaved-changes-prompt.js.map +1 -0
- package/dist/lib/utils.d.ts +17 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +17 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/uuid.d.ts +17 -0
- package/dist/lib/uuid.d.ts.map +1 -0
- package/dist/lib/uuid.js +17 -0
- package/dist/lib/uuid.js.map +1 -0
- package/dist/modules/home/HomePage.d.ts +3 -0
- package/dist/modules/home/HomePage.d.ts.map +1 -0
- package/dist/modules/home/HomePage.js +137 -0
- package/dist/modules/home/HomePage.js.map +1 -0
- package/dist/modules/home/RecentActivityCard.d.ts +3 -0
- package/dist/modules/home/RecentActivityCard.d.ts.map +1 -0
- package/dist/modules/home/RecentActivityCard.js +94 -0
- package/dist/modules/home/RecentActivityCard.js.map +1 -0
- package/dist/modules/home/activity-render.d.ts +69 -0
- package/dist/modules/home/activity-render.d.ts.map +1 -0
- package/dist/modules/home/activity-render.js +53 -0
- package/dist/modules/home/activity-render.js.map +1 -0
- package/dist/modules/home/useRecentActivity.d.ts +41 -0
- package/dist/modules/home/useRecentActivity.d.ts.map +1 -0
- package/dist/modules/home/useRecentActivity.js +57 -0
- package/dist/modules/home/useRecentActivity.js.map +1 -0
- package/dist/modules/platform/ModuleActivationControl.d.ts +28 -0
- package/dist/modules/platform/ModuleActivationControl.d.ts.map +1 -0
- package/dist/modules/platform/ModuleActivationControl.js +88 -0
- package/dist/modules/platform/ModuleActivationControl.js.map +1 -0
- package/dist/modules/platform/ModulesPage.d.ts +76 -0
- package/dist/modules/platform/ModulesPage.d.ts.map +1 -0
- package/dist/modules/platform/ModulesPage.js +175 -0
- package/dist/modules/platform/ModulesPage.js.map +1 -0
- package/dist/modules/platform/RecentActivityVisibilityControl.d.ts +38 -0
- package/dist/modules/platform/RecentActivityVisibilityControl.d.ts.map +1 -0
- package/dist/modules/platform/RecentActivityVisibilityControl.js +26 -0
- package/dist/modules/platform/RecentActivityVisibilityControl.js.map +1 -0
- package/dist/modules/platform/api.d.ts +27 -0
- package/dist/modules/platform/api.d.ts.map +1 -0
- package/dist/modules/platform/api.js +33 -0
- package/dist/modules/platform/api.js.map +1 -0
- package/dist/modules/profile/ProfilePage.d.ts +11 -0
- package/dist/modules/profile/ProfilePage.d.ts.map +1 -0
- package/dist/modules/profile/ProfilePage.js +140 -0
- package/dist/modules/profile/ProfilePage.js.map +1 -0
- package/dist/registerSw.d.ts +7 -0
- package/dist/registerSw.d.ts.map +1 -0
- package/dist/registerSw.js +20 -0
- package/dist/registerSw.js.map +1 -0
- package/package.json +74 -3
- package/tailwind.css +14 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/ui` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { Textarea } from '@endora-commerce/admin-kit/ui';
|
|
17
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { TranslationProvider, useTranslationContext } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
export type { TranslationProviderProps } from '@endora-commerce/admin-kit/i18n';
|
|
18
|
+
//# sourceMappingURL=TranslationProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranslationProvider.d.ts","sourceRoot":"","sources":["../../src/i18n/TranslationProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7F,YAAY,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { TranslationProvider, useTranslationContext } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=TranslationProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranslationProvider.js","sourceRoot":"","sources":["../../src/i18n/TranslationProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { AppLanguageContext, useAppLanguage } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
export type { AppLanguageContextValue } from '@endora-commerce/admin-kit/i18n';
|
|
18
|
+
//# sourceMappingURL=app-language-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-language-context.d.ts","sourceRoot":"","sources":["../../src/i18n/app-language-context.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACrF,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { AppLanguageContext, useAppLanguage } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=app-language-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-language-context.js","sourceRoot":"","sources":["../../src/i18n/app-language-context.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { interpolate } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=interpolate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interpolate.d.ts","sourceRoot":"","sources":["../../src/i18n/interpolate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { interpolate } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=interpolate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interpolate.js","sourceRoot":"","sources":["../../src/i18n/interpolate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { getBundles, reloadBundles, setPreferredLanguage } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=language-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-storage.d.ts","sourceRoot":"","sources":["../../src/i18n/language-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { getBundles, reloadBundles, setPreferredLanguage } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=language-storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-storage.js","sourceRoot":"","sources":["../../src/i18n/language-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy for the screens that render **before** a session exists.
|
|
3
|
+
*
|
|
4
|
+
* English-only by construction, not by omission: `TranslationProvider` fetches
|
|
5
|
+
* its bundles from an endpoint that needs an admin session, so the login screen
|
|
6
|
+
* has no bundle to read (see the provider's `initialBundle` note). Every string
|
|
7
|
+
* an authenticated admin sees goes through the module i18n bundles in `en`+`pl`
|
|
8
|
+
* instead. Adding a language to this file means giving the pre-auth screen a
|
|
9
|
+
* language source first — that is a feature, not a copy change.
|
|
10
|
+
*/
|
|
11
|
+
export declare const loginCopy: {
|
|
12
|
+
readonly title: "B2B Admin · sign in";
|
|
13
|
+
readonly subheading: "Use the email and password issued by your platform administrator.";
|
|
14
|
+
readonly sessionExpired: "Session expired";
|
|
15
|
+
readonly failed: "Sign-in failed";
|
|
16
|
+
readonly email: "Email";
|
|
17
|
+
readonly password: "Password";
|
|
18
|
+
readonly submitting: "Signing in…";
|
|
19
|
+
readonly submit: "Sign in";
|
|
20
|
+
readonly footerPrefix: "No account yet? Run";
|
|
21
|
+
readonly footerSuffix: "from the repository root.";
|
|
22
|
+
/**
|
|
23
|
+
* Issue #193 — federated sign-in. `divider` is deliberately just "or": the
|
|
24
|
+
* button carries the whole intent ("Continue with Google"), so a longer rule
|
|
25
|
+
* label would repeat it, and "or" is what every sign-in screen a user has
|
|
26
|
+
* already met puts there (Jakob's Law).
|
|
27
|
+
*/
|
|
28
|
+
readonly federatedGroupLabel: "Other sign-in options";
|
|
29
|
+
readonly federatedDivider: "or";
|
|
30
|
+
readonly federatedGoogle: "Continue with Google";
|
|
31
|
+
readonly federatedMicrosoft: "Continue with Microsoft";
|
|
32
|
+
};
|
|
33
|
+
export declare const appBootstrapCopy: {
|
|
34
|
+
readonly loading: "Loading...";
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=preauth-login-copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preauth-login-copy.d.ts","sourceRoot":"","sources":["../../src/i18n/preauth-login-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;IAWpB;;;;;OAKG;;;;;CAKK,CAAC;AAEX,eAAO,MAAM,gBAAgB;;CAEnB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy for the screens that render **before** a session exists.
|
|
3
|
+
*
|
|
4
|
+
* English-only by construction, not by omission: `TranslationProvider` fetches
|
|
5
|
+
* its bundles from an endpoint that needs an admin session, so the login screen
|
|
6
|
+
* has no bundle to read (see the provider's `initialBundle` note). Every string
|
|
7
|
+
* an authenticated admin sees goes through the module i18n bundles in `en`+`pl`
|
|
8
|
+
* instead. Adding a language to this file means giving the pre-auth screen a
|
|
9
|
+
* language source first — that is a feature, not a copy change.
|
|
10
|
+
*/
|
|
11
|
+
export const loginCopy = {
|
|
12
|
+
title: 'B2B Admin · sign in',
|
|
13
|
+
subheading: 'Use the email and password issued by your platform administrator.',
|
|
14
|
+
sessionExpired: 'Session expired',
|
|
15
|
+
failed: 'Sign-in failed',
|
|
16
|
+
email: 'Email',
|
|
17
|
+
password: 'Password',
|
|
18
|
+
submitting: 'Signing in…',
|
|
19
|
+
submit: 'Sign in',
|
|
20
|
+
footerPrefix: 'No account yet? Run',
|
|
21
|
+
footerSuffix: 'from the repository root.',
|
|
22
|
+
/**
|
|
23
|
+
* Issue #193 — federated sign-in. `divider` is deliberately just "or": the
|
|
24
|
+
* button carries the whole intent ("Continue with Google"), so a longer rule
|
|
25
|
+
* label would repeat it, and "or" is what every sign-in screen a user has
|
|
26
|
+
* already met puts there (Jakob's Law).
|
|
27
|
+
*/
|
|
28
|
+
federatedGroupLabel: 'Other sign-in options',
|
|
29
|
+
federatedDivider: 'or',
|
|
30
|
+
federatedGoogle: 'Continue with Google',
|
|
31
|
+
federatedMicrosoft: 'Continue with Microsoft',
|
|
32
|
+
};
|
|
33
|
+
export const appBootstrapCopy = {
|
|
34
|
+
loading: 'Loading...',
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=preauth-login-copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preauth-login-copy.js","sourceRoot":"","sources":["../../src/i18n/preauth-login-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,qBAAqB;IAC5B,UAAU,EAAE,mEAAmE;IAC/E,cAAc,EAAE,iBAAiB;IACjC,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,SAAS;IACjB,YAAY,EAAE,qBAAqB;IACnC,YAAY,EAAE,2BAA2B;IACzC;;;;;OAKG;IACH,mBAAmB,EAAE,uBAAuB;IAC5C,gBAAgB,EAAE,IAAI;IACtB,eAAe,EAAE,sBAAsB;IACvC,kBAAkB,EAAE,yBAAyB;CACrC,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,YAAY;CACb,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { resolve } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
export type { ResolveArgs, ResolveResult } from '@endora-commerce/admin-kit/i18n';
|
|
18
|
+
//# sourceMappingURL=resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/i18n/resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { resolve } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../src/i18n/resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export type { Bundle, GetBundlesResponse, ResolveOutcome, ScopedBundle, SupportedAdminLanguage, TranslationBundleEntries } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/i18n/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/i18n/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { useTranslation } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=useTranslation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../src/i18n/useTranslation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export shim — this file's implementation now lives in
|
|
3
|
+
* `@endora-commerce/admin-kit/i18n` (feature 091, Phase 1b).
|
|
4
|
+
*
|
|
5
|
+
* The design system moved into the package so that a module package's `./admin` layer
|
|
6
|
+
* can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
|
|
7
|
+
* `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
|
|
8
|
+
* this application arrives here and is forwarded, so nothing outside had to be rewritten
|
|
9
|
+
* — the shape feature 080 used for the platform relocation.
|
|
10
|
+
*
|
|
11
|
+
* **The forwarding is the identity, not a copy.** These names are the package's own
|
|
12
|
+
* bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
|
|
13
|
+
* the seam, because a second React context or a second `z.enum` passes every structural
|
|
14
|
+
* comparison and still breaks at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export { useTranslation } from '@endora-commerce/admin-kit/i18n';
|
|
17
|
+
//# sourceMappingURL=useTranslation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranslation.js","sourceRoot":"","sources":["../../src/i18n/useTranslation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@endora-commerce/admin-shell` — the admin application itself (feature 110,
|
|
3
|
+
* FR-016, R7.6).
|
|
4
|
+
*
|
|
5
|
+
* ## What this package is
|
|
6
|
+
*
|
|
7
|
+
* Everything an operator sees that is not a module's own screen: the router and
|
|
8
|
+
* its host routes, the sidebar, the command palette, the breadcrumb trail, the
|
|
9
|
+
* sign-in screen, and the four surfaces the platform owns rather than a module
|
|
10
|
+
* (the dashboard, the profile, `/platform/modules`, and the not-found
|
|
11
|
+
* treatment). It mounts what the modules contribute; it does not know which
|
|
12
|
+
* modules there are.
|
|
13
|
+
*
|
|
14
|
+
* ## Why it is a package and not a copy
|
|
15
|
+
*
|
|
16
|
+
* D-207 rules that a client's instance depends on this platform rather than
|
|
17
|
+
* forking it, and `spec.md` §6.1 extends that to the admin on a measured
|
|
18
|
+
* difference from the storefront: a storefront names zero module packages and
|
|
19
|
+
* reaches the backend over HTTP, so it is presentation a client owns outright
|
|
20
|
+
* (D-195). An admin is the mounting point of every module's screens — a client
|
|
21
|
+
* who forked this shell would take the merge for every module upgrade with it,
|
|
22
|
+
* which is the cost feature 091 removed by deleting the two files a module
|
|
23
|
+
* author had to hand-edit. Copying them into N client trees would restore it
|
|
24
|
+
* and multiply it by N.
|
|
25
|
+
*
|
|
26
|
+
* ## The barrel is what a `main.tsx` needs and nothing else
|
|
27
|
+
*
|
|
28
|
+
* `admin-kit-surface.md` §1's rule, applied one package up: an explicit barrel,
|
|
29
|
+
* no `export *`, and a member is here because a project that mounts this shell
|
|
30
|
+
* has to name it. Everything else in this package is reached by the shell
|
|
31
|
+
* itself.
|
|
32
|
+
*
|
|
33
|
+
* {@link AdminRoot} is the default door and the only one an instance needs: it
|
|
34
|
+
* is the four wrappers `App` has to be mounted inside, three of which are the
|
|
35
|
+
* shell's own requirements rather than the project's — the router flag most of
|
|
36
|
+
* all, whose absence is an admin that navigates nowhere with no error anywhere
|
|
37
|
+
* (`specs/110-instance-repository/contracts/instance-tree.md` §2.4). `App` and
|
|
38
|
+
* `AuthProvider` stay exported for a project that composes its own tree, and
|
|
39
|
+
* `registerAdminServiceWorker` is a side effect a project opts into by calling
|
|
40
|
+
* it: it registers `/admin-service-worker.js`, which is an asset the project
|
|
41
|
+
* serves and this package does not ship.
|
|
42
|
+
*
|
|
43
|
+
* `AuthProvider` is re-exported rather than re-implemented: it is the kit's
|
|
44
|
+
* binding, forwarded, so an instance's `main.tsx` names **one** package and the
|
|
45
|
+
* provider `useAuth` reads is the same one in every process.
|
|
46
|
+
*/
|
|
47
|
+
export { AdminRoot } from './AdminRoot.js';
|
|
48
|
+
export type { AdminRootProps } from './AdminRoot.js';
|
|
49
|
+
export { App } from './App.js';
|
|
50
|
+
export type { AppProps } from './App.js';
|
|
51
|
+
export { registerAdminServiceWorker } from './registerSw.js';
|
|
52
|
+
export { AuthProvider } from './lib/auth.js';
|
|
53
|
+
export type { AdminMe, AuthProviderProps } from './lib/auth.js';
|
|
54
|
+
export type { AdminRegistryEntry } from './lib/module-registry/index.js';
|
|
55
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAChE,YAAY,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@endora-commerce/admin-shell` — the admin application itself (feature 110,
|
|
3
|
+
* FR-016, R7.6).
|
|
4
|
+
*
|
|
5
|
+
* ## What this package is
|
|
6
|
+
*
|
|
7
|
+
* Everything an operator sees that is not a module's own screen: the router and
|
|
8
|
+
* its host routes, the sidebar, the command palette, the breadcrumb trail, the
|
|
9
|
+
* sign-in screen, and the four surfaces the platform owns rather than a module
|
|
10
|
+
* (the dashboard, the profile, `/platform/modules`, and the not-found
|
|
11
|
+
* treatment). It mounts what the modules contribute; it does not know which
|
|
12
|
+
* modules there are.
|
|
13
|
+
*
|
|
14
|
+
* ## Why it is a package and not a copy
|
|
15
|
+
*
|
|
16
|
+
* D-207 rules that a client's instance depends on this platform rather than
|
|
17
|
+
* forking it, and `spec.md` §6.1 extends that to the admin on a measured
|
|
18
|
+
* difference from the storefront: a storefront names zero module packages and
|
|
19
|
+
* reaches the backend over HTTP, so it is presentation a client owns outright
|
|
20
|
+
* (D-195). An admin is the mounting point of every module's screens — a client
|
|
21
|
+
* who forked this shell would take the merge for every module upgrade with it,
|
|
22
|
+
* which is the cost feature 091 removed by deleting the two files a module
|
|
23
|
+
* author had to hand-edit. Copying them into N client trees would restore it
|
|
24
|
+
* and multiply it by N.
|
|
25
|
+
*
|
|
26
|
+
* ## The barrel is what a `main.tsx` needs and nothing else
|
|
27
|
+
*
|
|
28
|
+
* `admin-kit-surface.md` §1's rule, applied one package up: an explicit barrel,
|
|
29
|
+
* no `export *`, and a member is here because a project that mounts this shell
|
|
30
|
+
* has to name it. Everything else in this package is reached by the shell
|
|
31
|
+
* itself.
|
|
32
|
+
*
|
|
33
|
+
* {@link AdminRoot} is the default door and the only one an instance needs: it
|
|
34
|
+
* is the four wrappers `App` has to be mounted inside, three of which are the
|
|
35
|
+
* shell's own requirements rather than the project's — the router flag most of
|
|
36
|
+
* all, whose absence is an admin that navigates nowhere with no error anywhere
|
|
37
|
+
* (`specs/110-instance-repository/contracts/instance-tree.md` §2.4). `App` and
|
|
38
|
+
* `AuthProvider` stay exported for a project that composes its own tree, and
|
|
39
|
+
* `registerAdminServiceWorker` is a side effect a project opts into by calling
|
|
40
|
+
* it: it registers `/admin-service-worker.js`, which is an asset the project
|
|
41
|
+
* serves and this package does not ship.
|
|
42
|
+
*
|
|
43
|
+
* `AuthProvider` is re-exported rather than re-implemented: it is the kit's
|
|
44
|
+
* binding, forwarded, so an instance's `main.tsx` names **one** package and the
|
|
45
|
+
* provider `useAuth` reads is the same one in every process.
|
|
46
|
+
*/
|
|
47
|
+
export { AdminRoot } from './AdminRoot.js';
|
|
48
|
+
export { App } from './App.js';
|
|
49
|
+
export { registerAdminServiceWorker } from './registerSw.js';
|
|
50
|
+
export { AuthProvider } from './lib/auth.js';
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { AdminActionView, GetAdminActionsResponse, SupportedAdminLanguage } from '@endora-commerce/contracts';
|
|
3
|
+
/**
|
|
4
|
+
* React Context provider for the Admin Command Palette action registry —
|
|
5
|
+
* feature 020.
|
|
6
|
+
*
|
|
7
|
+
* Fetches the action list once on mount and again whenever the language
|
|
8
|
+
* prop flips (so labels render in the operator's language). The
|
|
9
|
+
* provider does not subscribe to lifecycle pub/sub on its own — there
|
|
10
|
+
* is no admin-side bridge for that today (research §R4 lists this as a
|
|
11
|
+
* known limitation; the mitigation is "refresh the page after enabling
|
|
12
|
+
* a new module mid-session"). Refetch can be triggered explicitly via
|
|
13
|
+
* the `refresh()` method exposed on the context.
|
|
14
|
+
*/
|
|
15
|
+
export interface AdminActionsContextValue {
|
|
16
|
+
actions: AdminActionView[];
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
error: Error | null;
|
|
19
|
+
refresh: () => Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export interface AdminActionsProviderProps {
|
|
22
|
+
language: SupportedAdminLanguage;
|
|
23
|
+
/** Optional pre-supplied response; tests use this to skip the boot fetch. */
|
|
24
|
+
initial?: GetAdminActionsResponse;
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export declare function AdminActionsProvider(props: AdminActionsProviderProps): ReactNode;
|
|
28
|
+
export declare function useAdminActionsContext(): AdminActionsContextValue;
|
|
29
|
+
//# sourceMappingURL=AdminActionsProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminActionsProvider.d.ts","sourceRoot":"","sources":["../../../src/lib/admin-actions/AdminActionsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAID,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,6EAA6E;IAC7E,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,SAAS,CA4ChF;AAED,wBAAgB,sBAAsB,IAAI,wBAAwB,CAQjE"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useState, } from 'react';
|
|
3
|
+
import { getAdminActions } from './api.js';
|
|
4
|
+
const AdminActionsContext = createContext(null);
|
|
5
|
+
export function AdminActionsProvider(props) {
|
|
6
|
+
const { language, initial, children } = props;
|
|
7
|
+
const [actions, setActions] = useState(initial?.data ?? []);
|
|
8
|
+
const [isLoading, setIsLoading] = useState(initial == null);
|
|
9
|
+
const [error, setError] = useState(null);
|
|
10
|
+
const [tick, setTick] = useState(0);
|
|
11
|
+
const refresh = useCallback(async () => {
|
|
12
|
+
setTick((n) => n + 1);
|
|
13
|
+
}, []);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
let cancelled = false;
|
|
16
|
+
setIsLoading(true);
|
|
17
|
+
void (async () => {
|
|
18
|
+
try {
|
|
19
|
+
const res = await getAdminActions(language);
|
|
20
|
+
if (cancelled)
|
|
21
|
+
return;
|
|
22
|
+
setActions(res.data);
|
|
23
|
+
setError(null);
|
|
24
|
+
}
|
|
25
|
+
catch (err) {
|
|
26
|
+
if (!cancelled)
|
|
27
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
28
|
+
if (import.meta.env.DEV) {
|
|
29
|
+
console.warn('[admin-actions] fetch failed', err);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
finally {
|
|
33
|
+
if (!cancelled)
|
|
34
|
+
setIsLoading(false);
|
|
35
|
+
}
|
|
36
|
+
})();
|
|
37
|
+
return () => {
|
|
38
|
+
cancelled = true;
|
|
39
|
+
};
|
|
40
|
+
}, [language, tick]);
|
|
41
|
+
const value = useMemo(() => ({ actions, isLoading, error, refresh }), [actions, isLoading, error, refresh]);
|
|
42
|
+
return (_jsx(AdminActionsContext.Provider, { value: value, children: children }));
|
|
43
|
+
}
|
|
44
|
+
export function useAdminActionsContext() {
|
|
45
|
+
const ctx = useContext(AdminActionsContext);
|
|
46
|
+
if (!ctx) {
|
|
47
|
+
throw new Error('[admin-actions] useAdminActions called outside <AdminActionsProvider>; wrap your app tree first.');
|
|
48
|
+
}
|
|
49
|
+
return ctx;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=AdminActionsProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminActionsProvider.js","sourceRoot":"","sources":["../../../src/lib/admin-actions/AdminActionsProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,QAAQ,GAET,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAsB3C,MAAM,mBAAmB,GAAG,aAAa,CAAkC,IAAI,CAAC,CAAC;AASjF,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAoB,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IAC/E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;IAC5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpC,MAAM,OAAO,GAAG,WAAW,CAAC,KAAK,IAAmB,EAAE;QACpD,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,KAAK,CAAC,KAAK,IAAI,EAAE;YACf,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;gBAC5C,IAAI,SAAS;oBAAE,OAAO;gBACtB,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACrB,QAAQ,CAAC,IAAI,CAAC,CAAC;YACjB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,CAAC,SAAS;oBAAE,QAAQ,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAC9E,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;oBACxB,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAC;gBACpD,CAAC;YACH,CAAC;oBAAS,CAAC;gBACT,IAAI,CAAC,SAAS;oBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;YACtC,CAAC;QACH,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;IAErB,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAC9C,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CACrC,CAAC;IAEF,OAAO,CACL,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACvC,QAAQ,GACoB,CAChC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,MAAM,GAAG,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAC5C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,kGAAkG,CACnG,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|