@unchainedshop/admin-ui 4.8.26 → 4.8.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-45H2WVIC.js +51 -0
- package/dist/chunk-4VNS5WPM.js +37 -0
- package/dist/chunk-54DKBWXV.js +33 -0
- package/dist/chunk-6TXD4TA7.js +1196 -0
- package/dist/chunk-BGCKJQGS.js +58 -0
- package/dist/chunk-BYXBJQAS.js +1 -0
- package/dist/chunk-EJDZRZSZ.js +59 -0
- package/dist/chunk-ELPURWDC.js +75 -0
- package/dist/chunk-IAQPLRXZ.js +16 -0
- package/dist/chunk-ILYPJE4N.js +57 -0
- package/dist/chunk-IXBMHOB5.js +13 -0
- package/dist/chunk-KH5MK6ZW.js +18 -0
- package/dist/chunk-NT7RB7AK.js +70 -0
- package/dist/chunk-OKGJ6HDE.js +26 -0
- package/dist/chunk-Q6S3LBUF.js +180 -0
- package/dist/chunk-QNLGYFV7.js +22 -0
- package/dist/chunk-RAQV2GYF.js +70 -0
- package/dist/chunk-RHUFQVKL.js +514 -0
- package/dist/chunk-RVG6IOFC.js +11 -0
- package/dist/chunk-SRAAKMWY.js +39 -0
- package/dist/chunk-UFYR5WZT.js +165 -0
- package/dist/chunk-UXG7EYHC.js +614 -0
- package/dist/chunk-VDKQGOMV.js +840 -0
- package/dist/chunk-XHOCXPD5.js +9 -0
- package/dist/chunk-XJBPMIC4.js +284 -0
- package/dist/chunk-YO6PT7KD.js +13 -0
- package/dist/chunk-YSKZE2KN.js +652 -0
- package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
- package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/ui/ActiveInActive.d.ts +10 -0
- package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
- package/dist/components/ui/AnimatedCounter.d.ts +7 -0
- package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
- package/dist/components/ui/Badge.d.ts +10 -0
- package/dist/components/ui/Badge.d.ts.map +1 -0
- package/dist/components/ui/BreadCrumbs.d.ts +7 -0
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
- package/dist/components/ui/Button.d.ts +36 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/CopyableText.d.ts +5 -0
- package/dist/components/ui/CopyableText.d.ts.map +1 -0
- package/dist/components/ui/DateInput.d.ts +15 -0
- package/dist/components/ui/DateInput.d.ts.map +1 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
- package/dist/components/ui/DetailHeader.d.ts +6 -0
- package/dist/components/ui/DetailHeader.d.ts.map +1 -0
- package/dist/components/ui/DraggableIcon.d.ts +3 -0
- package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
- package/dist/components/ui/ErrorBoundary.d.ts +18 -0
- package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ui/ErrorFallback.d.ts +6 -0
- package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
- package/dist/components/ui/HelpText.d.ts +11 -0
- package/dist/components/ui/HelpText.d.ts.map +1 -0
- package/dist/components/ui/ImageWithFallback.d.ts +7 -0
- package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
- package/dist/components/ui/InfoTextBanner.d.ts +6 -0
- package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
- package/dist/components/ui/JSONView.d.ts +6 -0
- package/dist/components/ui/JSONView.d.ts.map +1 -0
- package/dist/components/ui/ListHeader.d.ts +6 -0
- package/dist/components/ui/ListHeader.d.ts.map +1 -0
- package/dist/components/ui/Loading.d.ts +3 -0
- package/dist/components/ui/Loading.d.ts.map +1 -0
- package/dist/components/ui/NoData.d.ts +7 -0
- package/dist/components/ui/NoData.d.ts.map +1 -0
- package/dist/components/ui/NoImage.d.ts +7 -0
- package/dist/components/ui/NoImage.d.ts.map +1 -0
- package/dist/components/ui/NoImageSvg.d.ts +8 -0
- package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
- package/dist/components/ui/PageHeader.d.ts +11 -0
- package/dist/components/ui/PageHeader.d.ts.map +1 -0
- package/dist/components/ui/Pagination.d.ts +8 -0
- package/dist/components/ui/Pagination.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
- package/dist/components/ui/SearchField.d.ts +7 -0
- package/dist/components/ui/SearchField.d.ts.map +1 -0
- package/dist/components/ui/Tab.d.ts +18 -0
- package/dist/components/ui/Tab.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagInput.d.ts +14 -0
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagList.d.ts +8 -0
- package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
- package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
- package/dist/components/ui/Toggle.d.ts +11 -0
- package/dist/components/ui/Toggle.d.ts.map +1 -0
- package/dist/components/ui/ToolTip.d.ts +7 -0
- package/dist/components/ui/ToolTip.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +42 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/form/CheckboxField.d.ts +4 -0
- package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
- package/dist/components/ui/form/ChoicesField.d.ts +12 -0
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
- package/dist/components/ui/form/Combobox.d.ts +20 -0
- package/dist/components/ui/form/Combobox.d.ts.map +1 -0
- package/dist/components/ui/form/DatePickerField.d.ts +4 -0
- package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
- package/dist/components/ui/form/EmailField.d.ts +7 -0
- package/dist/components/ui/form/EmailField.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
- package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
- package/dist/components/ui/form/FormErrors.d.ts +6 -0
- package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
- package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
- package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/PasswordField.d.ts +3 -0
- package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
- package/dist/components/ui/form/SelectField.d.ts +11 -0
- package/dist/components/ui/form/SelectField.d.ts.map +1 -0
- package/dist/components/ui/form/SubmitButton.d.ts +9 -0
- package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
- package/dist/components/ui/form/TagInputField.d.ts +6 -0
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
- package/dist/components/ui/form/TextAreaField.d.ts +8 -0
- package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/TextField.d.ts +10 -0
- package/dist/components/ui/form/TextField.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +17 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/icons.d.ts +4 -0
- package/dist/components/ui/icons.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +41 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/form.js +30108 -0
- package/dist/gql/types.d.ts +17209 -0
- package/dist/gql/types.d.ts.map +1 -0
- package/dist/hooks.js +41 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/modal.js +114 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
- package/dist/modules/accounts.js +1013 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
- package/dist/modules/assortment.js +1121 -0
- package/dist/modules/common/components/AppContext.d.ts +18 -0
- package/dist/modules/common/components/AppContext.d.ts.map +1 -0
- package/dist/modules/common/components/FormWrapper.d.ts +8 -0
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
- package/dist/modules/common/data/iso-codes.d.ts +4 -0
- package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts +51 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
- package/dist/modules/common/hooks/useApp.d.ts +11 -0
- package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/modules/common/hooks/usePortal.d.ts +20 -0
- package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
- package/dist/modules/common/hooks/useTheme.d.ts +7 -0
- package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
- package/dist/modules/common/utils/deBounce.d.ts +3 -0
- package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
- package/dist/modules/common/utils/formatUsername.d.ts +3 -0
- package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts +7 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
- package/dist/modules/common/utils/utils.d.ts +21 -0
- package/dist/modules/common/utils/utils.d.ts.map +1 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
- package/dist/modules/country/hooks/useCountries.d.ts +22 -0
- package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
- package/dist/modules/country.js +108 -0
- package/dist/modules/currency.js +119 -0
- package/dist/modules/delivery-provider.js +269 -0
- package/dist/modules/enrollment.js +353 -0
- package/dist/modules/event.js +123 -0
- package/dist/modules/filter.js +448 -0
- package/dist/modules/forms/components/Form.d.ts +8 -0
- package/dist/modules/forms/components/Form.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useField.d.ts +35 -0
- package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useForm.d.ts +44 -0
- package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/FormContext.d.ts +13 -0
- package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/clean.d.ts +3 -0
- package/dist/modules/forms/lib/clean.d.ts.map +1 -0
- package/dist/modules/forms/lib/validators.d.ts +20 -0
- package/dist/modules/forms/lib/validators.d.ts.map +1 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
- package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
- package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
- package/dist/modules/language.js +106 -0
- package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
- package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/DangerMessage.d.ts +12 -0
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/Modal.d.ts +10 -0
- package/dist/modules/modal/components/Modal.d.ts.map +1 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
- package/dist/modules/modal/hooks/useModal.d.ts +7 -0
- package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
- package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
- package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
- package/dist/modules/order/hooks/useOrders.d.ts +46 -0
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
- package/dist/modules/order.js +563 -0
- package/dist/modules/payment-providers.js +206 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
- package/dist/modules/product-review.js +251 -0
- package/dist/modules/product.js +1929 -0
- package/dist/modules/quotation.js +297 -0
- package/dist/modules/token.js +143 -0
- package/dist/modules/warehousing-providers.js +206 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
- package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
- package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
- package/dist/modules/work/hooks/useWork.d.ts +32 -0
- package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
- package/dist/modules/work.js +308 -0
- package/dist/plugins.js +8 -0
- package/dist/providers.js +6 -0
- package/dist/sdk/hooks.d.ts +9 -0
- package/dist/sdk/hooks.d.ts.map +1 -0
- package/dist/sdk/modal.d.ts +7 -0
- package/dist/sdk/modal.d.ts.map +1 -0
- package/dist/sdk/plugins.d.ts +67 -0
- package/dist/sdk/plugins.d.ts.map +1 -0
- package/dist/sdk/providers.d.ts +5 -0
- package/dist/sdk/providers.d.ts.map +1 -0
- package/dist/sdk/theme.d.ts +26 -0
- package/dist/sdk/theme.d.ts.map +1 -0
- package/dist/theme.js +34 -0
- package/dist/ui.js +21540 -0
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/chunks/{31_pg1fxqgdfx.js → 01crynfjy3xpb.js} +2 -2
- package/out/_next/static/chunks/{1hwup6qqzqzh8.js → 1-mz7zwy-mbvq.js} +2 -2
- package/out/_next/static/chunks/{2ecq8dhsm2eu1.js → 1szkbg0-e_tli.js} +1 -1
- package/out/_next/static/chunks/{0ac5zzn3zeki5.js → 2ncenexps2330.js} +2 -2
- package/out/_next/static/chunks/3-2opr3e2h-8o.js +105 -0
- package/out/_next/static/chunks/{turbopack-14zydki2yqyd3.js → turbopack-058ikg9c4qsyu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0la8grv9f6bxn.js → turbopack-22gnlzp5il9ai.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1w2r6t0rjz8pp.js → turbopack-2h_05wv-1o-qp.js} +1 -1
- package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_buildManifest.js +2 -2
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/manifest.json +48 -0
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +1 -1
- package/out/_next/static/chunks/1t20r1ofch5r3.js +0 -95
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import '../chunk-BYXBJQAS.js';
|
|
2
|
+
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
3
|
+
import '../chunk-4VNS5WPM.js';
|
|
4
|
+
import { gql } from '@apollo/client';
|
|
5
|
+
import { useMutation, useQuery } from '@apollo/client/react';
|
|
6
|
+
import { useMemo } from 'react';
|
|
7
|
+
|
|
8
|
+
var AddWorkMutation = gql`
|
|
9
|
+
mutation AddWork(
|
|
10
|
+
$type: WorkType!
|
|
11
|
+
$priority: Int! = 0
|
|
12
|
+
$input: JSON
|
|
13
|
+
$originalWorkId: ID
|
|
14
|
+
$scheduled: Timestamp
|
|
15
|
+
$retries: Int! = 20
|
|
16
|
+
) {
|
|
17
|
+
addWork(
|
|
18
|
+
type: $type
|
|
19
|
+
priority: $priority
|
|
20
|
+
input: $input
|
|
21
|
+
originalWorkId: $originalWorkId
|
|
22
|
+
scheduled: $scheduled
|
|
23
|
+
retries: $retries
|
|
24
|
+
) {
|
|
25
|
+
_id
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
var useAddWork = () => {
|
|
30
|
+
const [addWorkMutation] = useMutation(AddWorkMutation);
|
|
31
|
+
const addWork = async ({
|
|
32
|
+
type,
|
|
33
|
+
priority,
|
|
34
|
+
input,
|
|
35
|
+
originalWorkId,
|
|
36
|
+
scheduled = null,
|
|
37
|
+
retries
|
|
38
|
+
}) => {
|
|
39
|
+
return addWorkMutation({
|
|
40
|
+
variables: {
|
|
41
|
+
type,
|
|
42
|
+
priority,
|
|
43
|
+
input,
|
|
44
|
+
originalWorkId,
|
|
45
|
+
scheduled,
|
|
46
|
+
retries
|
|
47
|
+
},
|
|
48
|
+
refetchQueries: ["WorkQueue"]
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
addWork
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
var useAddWork_default = useAddWork;
|
|
56
|
+
var AllocateWorkMutation = gql`
|
|
57
|
+
mutation AllocateWork($types: [WorkType], $worker: String) {
|
|
58
|
+
allocateWork(types: $types, worker: $worker) {
|
|
59
|
+
_id
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
var useAllocateWork = () => {
|
|
64
|
+
const [allocateWorkMutation] = useMutation(AllocateWorkMutation);
|
|
65
|
+
const allocateWork = async ({
|
|
66
|
+
types,
|
|
67
|
+
worker
|
|
68
|
+
}) => {
|
|
69
|
+
return allocateWorkMutation({
|
|
70
|
+
variables: {
|
|
71
|
+
types,
|
|
72
|
+
worker
|
|
73
|
+
},
|
|
74
|
+
refetchQueries: ["WorkQueue"]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
return {
|
|
78
|
+
allocateWork
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
var useAllocateWork_default = useAllocateWork;
|
|
82
|
+
var WorkFragment = gql`
|
|
83
|
+
fragment WorkFragment on Work {
|
|
84
|
+
_id
|
|
85
|
+
type
|
|
86
|
+
scheduled
|
|
87
|
+
status
|
|
88
|
+
started
|
|
89
|
+
success
|
|
90
|
+
finished
|
|
91
|
+
created
|
|
92
|
+
deleted
|
|
93
|
+
retries
|
|
94
|
+
original {
|
|
95
|
+
_id
|
|
96
|
+
retries
|
|
97
|
+
}
|
|
98
|
+
input
|
|
99
|
+
result
|
|
100
|
+
}
|
|
101
|
+
`;
|
|
102
|
+
var WorkFragment_default = WorkFragment;
|
|
103
|
+
|
|
104
|
+
// src/modules/work/hooks/useWorkQueue.ts
|
|
105
|
+
var WorkQueueQuery = gql`
|
|
106
|
+
query WorkQueue(
|
|
107
|
+
$queryString: String
|
|
108
|
+
$offset: Int
|
|
109
|
+
$limit: Int
|
|
110
|
+
$status: [WorkStatus!]
|
|
111
|
+
$types: [WorkType!]
|
|
112
|
+
$created: DateFilterInput
|
|
113
|
+
$sort: [SortOptionInput!]
|
|
114
|
+
) {
|
|
115
|
+
workQueue(
|
|
116
|
+
queryString: $queryString
|
|
117
|
+
offset: $offset
|
|
118
|
+
limit: $limit
|
|
119
|
+
status: $status
|
|
120
|
+
types: $types
|
|
121
|
+
created: $created
|
|
122
|
+
sort: $sort
|
|
123
|
+
) {
|
|
124
|
+
...WorkFragment
|
|
125
|
+
}
|
|
126
|
+
activeWorkTypes
|
|
127
|
+
workQueueCount(
|
|
128
|
+
status: $status
|
|
129
|
+
types: $types
|
|
130
|
+
created: $created
|
|
131
|
+
queryString: $queryString
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
${WorkFragment_default}
|
|
135
|
+
`;
|
|
136
|
+
var useWorkQueue = ({
|
|
137
|
+
queryString = "",
|
|
138
|
+
limit = 50,
|
|
139
|
+
status = void 0,
|
|
140
|
+
types = void 0,
|
|
141
|
+
created = null,
|
|
142
|
+
sort: sortOptions = [],
|
|
143
|
+
offset = 0,
|
|
144
|
+
pollInterval = 1e3,
|
|
145
|
+
skip = false
|
|
146
|
+
}) => {
|
|
147
|
+
const { data, loading, error, fetchMore, previousData } = useQuery(WorkQueueQuery, {
|
|
148
|
+
fetchPolicy: "cache-and-network",
|
|
149
|
+
pollInterval: skip ? 0 : pollInterval,
|
|
150
|
+
skip,
|
|
151
|
+
variables: {
|
|
152
|
+
queryString,
|
|
153
|
+
offset,
|
|
154
|
+
limit,
|
|
155
|
+
status,
|
|
156
|
+
types,
|
|
157
|
+
created: Object.fromEntries(
|
|
158
|
+
Object.entries(created || {}).filter(([, value]) => value).map(([key, value]) => [key, value])
|
|
159
|
+
),
|
|
160
|
+
sort: (sortOptions || []).length ? sortOptions : [{ key: "scheduled", value: "DESC" /* Desc */ }]
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
const workQueue = data?.workQueue || previousData?.workQueue || [];
|
|
164
|
+
const activeWorkTypes = data?.activeWorkTypes || [];
|
|
165
|
+
const total = data?.workQueueCount || 0;
|
|
166
|
+
const hasMore = workQueue?.length < total;
|
|
167
|
+
const loadMore = () => {
|
|
168
|
+
fetchMore({
|
|
169
|
+
variables: { offset: workQueue.length }
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
return {
|
|
173
|
+
workQueue,
|
|
174
|
+
total,
|
|
175
|
+
activeWorkTypes,
|
|
176
|
+
hasMore,
|
|
177
|
+
loading,
|
|
178
|
+
error,
|
|
179
|
+
loadMore
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
var useWorkQueue_default = useWorkQueue;
|
|
183
|
+
|
|
184
|
+
// src/modules/work/hooks/useRecentExports.ts
|
|
185
|
+
var getActiveFilesAndCount = (workQueue) => {
|
|
186
|
+
if (!workQueue?.length) {
|
|
187
|
+
return { exports: [], count: 0 };
|
|
188
|
+
}
|
|
189
|
+
const now = Date.now();
|
|
190
|
+
const groupedData = workQueue.map((work) => {
|
|
191
|
+
const finishedTime = new Date(work.finished).getTime();
|
|
192
|
+
const activeFiles = Object.entries(work.result?.files || {}).filter(([, file]) => {
|
|
193
|
+
if (!file?.url) return false;
|
|
194
|
+
if (!file?.expires) return true;
|
|
195
|
+
return file.expires > now;
|
|
196
|
+
}).map(([key, file]) => ({
|
|
197
|
+
name: key.toUpperCase(),
|
|
198
|
+
url: file.url,
|
|
199
|
+
expiresAt: new Date(finishedTime + file.expires).toLocaleString()
|
|
200
|
+
}));
|
|
201
|
+
if (activeFiles.length === 0) return null;
|
|
202
|
+
return {
|
|
203
|
+
id: work._id,
|
|
204
|
+
type: work.input?.type,
|
|
205
|
+
finished: new Date(work.finished).toLocaleString(),
|
|
206
|
+
files: activeFiles
|
|
207
|
+
};
|
|
208
|
+
}).filter((item) => item !== null);
|
|
209
|
+
const totalFiles = groupedData.reduce(
|
|
210
|
+
(acc, work) => acc + work.files.length,
|
|
211
|
+
0
|
|
212
|
+
);
|
|
213
|
+
return { count: totalFiles, exports: groupedData };
|
|
214
|
+
};
|
|
215
|
+
var useRecentExports = ({
|
|
216
|
+
queryString = null,
|
|
217
|
+
sortOptions,
|
|
218
|
+
skip = false
|
|
219
|
+
} = {}) => {
|
|
220
|
+
const twentyFourHoursAgo = useMemo(
|
|
221
|
+
() => new Date(Date.now() - 24 * 60 * 60 * 1e3).toISOString(),
|
|
222
|
+
[]
|
|
223
|
+
);
|
|
224
|
+
const { workQueue } = useWorkQueue_default({
|
|
225
|
+
types: ["BULK_EXPORT" /* BulkExport */],
|
|
226
|
+
queryString,
|
|
227
|
+
created: { start: twentyFourHoursAgo },
|
|
228
|
+
status: ["SUCCESS" /* Success */],
|
|
229
|
+
pollInterval: 6e4,
|
|
230
|
+
skip
|
|
231
|
+
});
|
|
232
|
+
return getActiveFilesAndCount(workQueue);
|
|
233
|
+
};
|
|
234
|
+
var useRecentExports_default = useRecentExports;
|
|
235
|
+
var ActiveWorkTypesQuery = gql`
|
|
236
|
+
query ActiveWorkTypes {
|
|
237
|
+
activeWorkTypes
|
|
238
|
+
}
|
|
239
|
+
`;
|
|
240
|
+
var useRegisteredWorkTypes = () => {
|
|
241
|
+
const { data, loading, error } = useQuery(
|
|
242
|
+
ActiveWorkTypesQuery
|
|
243
|
+
);
|
|
244
|
+
const workTypes = (data?.activeWorkTypes || []).map((value) => ({
|
|
245
|
+
value,
|
|
246
|
+
label: value
|
|
247
|
+
}));
|
|
248
|
+
return {
|
|
249
|
+
workTypes,
|
|
250
|
+
loading,
|
|
251
|
+
error
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
var useRegisteredWorkTypes_default = useRegisteredWorkTypes;
|
|
255
|
+
var RemoveWorkMutation = gql`
|
|
256
|
+
mutation RemoveWork($workId: ID!) {
|
|
257
|
+
removeWork(workId: $workId) {
|
|
258
|
+
_id
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
`;
|
|
262
|
+
var useRemoveWork = () => {
|
|
263
|
+
const [removeWorkMutation] = useMutation(RemoveWorkMutation);
|
|
264
|
+
const removeWork = async ({ workId }) => {
|
|
265
|
+
return removeWorkMutation({
|
|
266
|
+
variables: {
|
|
267
|
+
workId
|
|
268
|
+
},
|
|
269
|
+
refetchQueries: ["WorkQueue"]
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
return {
|
|
273
|
+
removeWork
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
var useRemoveWork_default = useRemoveWork;
|
|
277
|
+
var GetWorkQuery = (inlineFragment = "") => gql`
|
|
278
|
+
query Work($workId: ID!) {
|
|
279
|
+
work(workId: $workId) {
|
|
280
|
+
...WorkFragment
|
|
281
|
+
${inlineFragment}
|
|
282
|
+
error
|
|
283
|
+
priority
|
|
284
|
+
worker
|
|
285
|
+
timeout
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
${WorkFragment_default}
|
|
289
|
+
`;
|
|
290
|
+
var useWork = ({
|
|
291
|
+
workId = null,
|
|
292
|
+
...options
|
|
293
|
+
}) => {
|
|
294
|
+
const { customProperties } = useUnchainedContext_default();
|
|
295
|
+
const { data, loading, error, previousData } = useQuery(GetWorkQuery(customProperties?.Work), {
|
|
296
|
+
skip: !workId,
|
|
297
|
+
variables: { workId },
|
|
298
|
+
...options
|
|
299
|
+
});
|
|
300
|
+
return {
|
|
301
|
+
work: data?.work || previousData?.work,
|
|
302
|
+
loading,
|
|
303
|
+
error
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
var useWork_default = useWork;
|
|
307
|
+
|
|
308
|
+
export { useAddWork_default as useAddWork, useAllocateWork_default as useAllocateWork, useRecentExports_default as useRecentExports, useRegisteredWorkTypes_default as useRegisteredWorkTypes, useRemoveWork_default as useRemoveWork, useWork_default as useWork, useWorkQueue_default as useWorkQueue };
|
package/dist/plugins.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ThemeContext, ThemeWrapper_default as ThemeWrapper } from './chunk-SRAAKMWY.js';
|
|
2
|
+
import './chunk-54DKBWXV.js';
|
|
3
|
+
export { ModalWrapper_default as ModalWrapper } from './chunk-RHUFQVKL.js';
|
|
4
|
+
import './chunk-6TXD4TA7.js';
|
|
5
|
+
import './chunk-RVG6IOFC.js';
|
|
6
|
+
import './chunk-4VNS5WPM.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as useTheme } from '../modules/common/hooks/useTheme';
|
|
2
|
+
export { default as useLocalStorage } from '../modules/common/hooks/useLocalStorage';
|
|
3
|
+
export { default as useOutsideClick } from '../modules/common/hooks/useOutsideClick';
|
|
4
|
+
export { default as useModal } from '../modules/modal/hooks/useModal';
|
|
5
|
+
export { default as useField } from '../modules/forms/hooks/useField';
|
|
6
|
+
export type { FieldHookProps, ComputedProps, } from '../modules/forms/hooks/useField';
|
|
7
|
+
export { default as useForm } from '../modules/forms/hooks/useForm';
|
|
8
|
+
export { default as useFormContext } from '../modules/forms/hooks/useFormContext';
|
|
9
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/sdk/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,YAAY,EACV,cAAc,EACd,aAAa,GACd,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Modal } from '../modules/modal/components/Modal';
|
|
2
|
+
export { default as ModalWrapper } from '../modules/modal/components/ModalWrapper';
|
|
3
|
+
export { default as AlertMessage } from '../modules/modal/components/AlertMessage';
|
|
4
|
+
export { default as DangerMessage } from '../modules/modal/components/DangerMessage';
|
|
5
|
+
export { default as useModal } from '../modules/modal/hooks/useModal';
|
|
6
|
+
export { default as ModalContext } from '../modules/modal/utils/ModalContext';
|
|
7
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/sdk/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export interface EntityTabProps {
|
|
2
|
+
entity: any;
|
|
3
|
+
entityId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface EntityDetailProps {
|
|
6
|
+
entityId: string;
|
|
7
|
+
}
|
|
8
|
+
export type EntityCreateProps = Record<string, never>;
|
|
9
|
+
export type EntityListProps = Record<string, never>;
|
|
10
|
+
export type PageProps = Record<string, never>;
|
|
11
|
+
export type DashboardWidgetProps = Record<string, never>;
|
|
12
|
+
export interface PluginEntityConfig {
|
|
13
|
+
path: string;
|
|
14
|
+
label: string;
|
|
15
|
+
icon?: string;
|
|
16
|
+
requiredRole?: string;
|
|
17
|
+
sortOrder?: number;
|
|
18
|
+
components: {
|
|
19
|
+
list: string;
|
|
20
|
+
detail: string;
|
|
21
|
+
create?: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface PluginPageConfig {
|
|
25
|
+
path: string;
|
|
26
|
+
label: string;
|
|
27
|
+
icon?: string;
|
|
28
|
+
requiredRole?: string;
|
|
29
|
+
sortOrder?: number;
|
|
30
|
+
component: string;
|
|
31
|
+
}
|
|
32
|
+
export interface PluginTabConfig {
|
|
33
|
+
label: string;
|
|
34
|
+
component: string;
|
|
35
|
+
requiredRole?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface PluginWidgetConfig {
|
|
38
|
+
component: string;
|
|
39
|
+
width?: 'full' | 'half' | 'third';
|
|
40
|
+
}
|
|
41
|
+
export interface PluginSlots {
|
|
42
|
+
entities?: PluginEntityConfig[];
|
|
43
|
+
pages?: PluginPageConfig[];
|
|
44
|
+
'dashboard:widgets'?: PluginWidgetConfig[];
|
|
45
|
+
'product:tabs'?: PluginTabConfig[];
|
|
46
|
+
'assortment:tabs'?: PluginTabConfig[];
|
|
47
|
+
'filter:tabs'?: PluginTabConfig[];
|
|
48
|
+
'user:tabs'?: PluginTabConfig[];
|
|
49
|
+
'order:tabs'?: PluginTabConfig[];
|
|
50
|
+
[key: string]: PluginEntityConfig[] | PluginPageConfig[] | PluginWidgetConfig[] | PluginTabConfig[] | undefined;
|
|
51
|
+
}
|
|
52
|
+
export interface PluginNavigationGroup {
|
|
53
|
+
label: string;
|
|
54
|
+
icon?: string;
|
|
55
|
+
requiredRole?: string;
|
|
56
|
+
sortOrder?: number;
|
|
57
|
+
}
|
|
58
|
+
export interface PluginConfig {
|
|
59
|
+
name: string;
|
|
60
|
+
version?: string;
|
|
61
|
+
bundlePath: string;
|
|
62
|
+
/** Optional: group all plugin nav items under a collapsible sidebar section */
|
|
63
|
+
navigation?: PluginNavigationGroup;
|
|
64
|
+
slots: PluginSlots;
|
|
65
|
+
}
|
|
66
|
+
export declare function definePlugin(config: PluginConfig): PluginConfig;
|
|
67
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/sdk/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAIzD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC3B,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC3C,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IACjC,CAAC,GAAG,EAAE,MAAM,GACR,kBAAkB,EAAE,GACpB,gBAAgB,EAAE,GAClB,kBAAkB,EAAE,GACpB,eAAe,EAAE,GACjB,SAAS,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAE/D"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as ThemeWrapper } from '../modules/common/components/ThemeWrapper';
|
|
2
|
+
export { ThemeContext } from '../modules/common/components/ThemeWrapper';
|
|
3
|
+
export type { Theme } from '../modules/common/components/ThemeWrapper';
|
|
4
|
+
export { default as ModalWrapper } from '../modules/modal/components/ModalWrapper';
|
|
5
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/sdk/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,YAAY,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface AdminUIThemeTokens {
|
|
2
|
+
surface?: string;
|
|
3
|
+
'surface-subtle'?: string;
|
|
4
|
+
'surface-raised'?: string;
|
|
5
|
+
'surface-input'?: string;
|
|
6
|
+
border?: string;
|
|
7
|
+
'border-subtle'?: string;
|
|
8
|
+
'text-primary'?: string;
|
|
9
|
+
'text-secondary'?: string;
|
|
10
|
+
'text-muted'?: string;
|
|
11
|
+
'text-on-dark'?: string;
|
|
12
|
+
accent?: string;
|
|
13
|
+
'accent-hover'?: string;
|
|
14
|
+
danger?: string;
|
|
15
|
+
'danger-surface'?: string;
|
|
16
|
+
success?: string;
|
|
17
|
+
warning?: string;
|
|
18
|
+
'focus-ring'?: string;
|
|
19
|
+
'text-on-accent'?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface AdminUIThemeConfig {
|
|
22
|
+
light?: AdminUIThemeTokens;
|
|
23
|
+
dark?: AdminUIThemeTokens;
|
|
24
|
+
}
|
|
25
|
+
export declare const generateThemeCSS: (theme?: AdminUIThemeConfig) => string;
|
|
26
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/sdk/theme.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAsBD,eAAO,MAAM,gBAAgB,GAAI,QAAQ,kBAAkB,KAAG,MAY7D,CAAC"}
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import './chunk-4VNS5WPM.js';
|
|
2
|
+
|
|
3
|
+
// src/sdk/theme.ts
|
|
4
|
+
var CSS_VALUE_RE = /^[a-zA-Z0-9#().,/%\s\-_]+$/;
|
|
5
|
+
var sanitizeCSSValue = (value) => {
|
|
6
|
+
const trimmed = value.trim();
|
|
7
|
+
if (!trimmed || !CSS_VALUE_RE.test(trimmed)) return null;
|
|
8
|
+
return trimmed;
|
|
9
|
+
};
|
|
10
|
+
var buildTokenBlock = (selector, tokens) => {
|
|
11
|
+
const vars = Object.entries(tokens).map(([key, value]) => {
|
|
12
|
+
const safe = sanitizeCSSValue(value);
|
|
13
|
+
return safe ? ` --token-${key}: ${safe};` : null;
|
|
14
|
+
}).filter(Boolean);
|
|
15
|
+
if (vars.length === 0) return null;
|
|
16
|
+
return `${selector} {
|
|
17
|
+
${vars.join("\n")}
|
|
18
|
+
}`;
|
|
19
|
+
};
|
|
20
|
+
var generateThemeCSS = (theme) => {
|
|
21
|
+
if (!theme) return "/* default theme */";
|
|
22
|
+
const blocks = [];
|
|
23
|
+
if (theme.light) {
|
|
24
|
+
const block = buildTokenBlock(":root:root", theme.light);
|
|
25
|
+
if (block) blocks.push(block);
|
|
26
|
+
}
|
|
27
|
+
if (theme.dark) {
|
|
28
|
+
const block = buildTokenBlock(".dark.dark", theme.dark);
|
|
29
|
+
if (block) blocks.push(block);
|
|
30
|
+
}
|
|
31
|
+
return blocks.length > 0 ? blocks.join("\n\n") : "/* default theme */";
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { generateThemeCSS };
|