ingeniuscliq-core 0.4.13 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +417 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +3 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +3 -0
- package/dist/assets/logo.svg.js +3 -0
- package/dist/classes/CoreBuilder.d.ts +1 -0
- package/dist/classes/CoreBuilder.d.ts.map +1 -0
- package/dist/classes/CoreBuilder.js +4 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/classes/index.d.ts.map +1 -0
- package/dist/components/common/carousel/CustomCarousel.d.ts +2 -1
- package/dist/components/common/carousel/CustomCarousel.d.ts.map +1 -0
- package/dist/components/common/carousel/CustomCarousel.tsx +26 -0
- package/dist/components/common/carousel/CustomCarouselSection.d.ts +2 -1
- package/dist/components/common/carousel/CustomCarouselSection.d.ts.map +1 -0
- package/dist/components/common/carousel/CustomCarouselSection.tsx +41 -0
- package/dist/components/common/carousel/index.d.ts +3 -2
- package/dist/components/common/carousel/index.d.ts.map +1 -0
- package/dist/components/common/form/CustomFormField.d.ts +4 -2
- package/dist/components/common/form/CustomFormField.d.ts.map +1 -0
- package/dist/components/common/form/CustomFormField.tsx +29 -0
- package/dist/components/common/form/FormCheckbox.d.ts +5 -1
- package/dist/components/common/form/FormCheckbox.d.ts.map +1 -0
- package/dist/components/common/form/FormCheckbox.tsx +57 -0
- package/dist/components/common/form/FormInput.d.ts +4 -1
- package/dist/components/common/form/FormInput.d.ts.map +1 -0
- package/dist/components/common/form/FormInput.tsx +60 -0
- package/dist/components/common/form/FormSelect.d.ts +8 -2
- package/dist/components/common/form/FormSelect.d.ts.map +1 -0
- package/dist/components/common/form/FormSelect.tsx +78 -0
- package/dist/components/common/form/FormTextArea.d.ts +6 -4
- package/dist/components/common/form/FormTextArea.d.ts.map +1 -0
- package/dist/components/common/form/FormTextArea.tsx +57 -0
- package/dist/components/common/form/FormWrapper.d.ts +2 -1
- package/dist/components/common/form/FormWrapper.d.ts.map +1 -0
- package/dist/components/common/form/FormWrapper.tsx +21 -0
- package/dist/components/common/form/index.d.ts +4 -3
- package/dist/components/common/form/index.d.ts.map +1 -0
- package/dist/components/common/index.d.ts +2 -0
- package/dist/components/common/index.d.ts.map +1 -0
- package/dist/components/common/logo/Logo.d.ts +2 -1
- package/dist/components/common/logo/Logo.d.ts.map +1 -0
- package/dist/components/common/logo/Logo.tsx +40 -0
- package/dist/components/common/logo/index.d.ts +1 -0
- package/dist/components/common/logo/index.d.ts.map +1 -0
- package/dist/components/common/pagination/CustomPagination.d.ts +2 -1
- package/dist/components/common/pagination/CustomPagination.d.ts.map +1 -0
- package/dist/components/common/pagination/CustomPagination.tsx +64 -0
- package/dist/components/common/pagination/index.d.ts +1 -0
- package/dist/components/common/pagination/index.d.ts.map +1 -0
- package/dist/components/common/select/CustomSelect.d.ts +2 -1
- package/dist/components/common/select/CustomSelect.d.ts.map +1 -0
- package/dist/components/common/select/CustomSelect.tsx +27 -0
- package/dist/components/common/select/index.d.ts +1 -0
- package/dist/components/common/select/index.d.ts.map +1 -0
- package/dist/components/common/spinner/Spinner.d.ts +1 -0
- package/dist/components/common/spinner/Spinner.d.ts.map +1 -0
- package/dist/components/common/spinner/Spinner.tsx +32 -0
- package/dist/components/common/spinner/index.d.ts +1 -0
- package/dist/components/common/spinner/index.d.ts.map +1 -0
- package/dist/components/common/stepper/Stepper.d.ts +18 -0
- package/dist/components/common/stepper/Stepper.d.ts.map +1 -0
- package/dist/components/common/stepper/Stepper.tsx +59 -0
- package/dist/components/common/stepper/index.d.ts +2 -0
- package/dist/components/common/stepper/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +5 -4
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layouts/CoreBaseLayout.d.ts +3 -1
- package/dist/components/layouts/CoreBaseLayout.d.ts.map +1 -0
- package/dist/components/layouts/CoreBaseLayout.tsx +19 -0
- package/dist/components/layouts/index.d.ts +1 -0
- package/dist/components/layouts/index.d.ts.map +1 -0
- package/dist/components/templates/CoreHomeLayout.d.ts +1 -0
- package/dist/components/templates/CoreHomeLayout.d.ts.map +1 -0
- package/dist/components/templates/CoreHomeLayout.tsx +8 -0
- package/dist/components/templates/CorePreviewLayout.d.ts +2 -1
- package/dist/components/templates/CorePreviewLayout.d.ts.map +1 -0
- package/dist/components/templates/CorePreviewLayout.tsx +27 -0
- package/dist/components/templates/index.d.ts +1 -0
- package/dist/components/templates/index.d.ts.map +1 -0
- package/dist/components/ui/accordion.d.ts +5 -4
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.tsx +44 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -11
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.tsx +106 -0
- package/dist/components/ui/alert.d.ts +5 -5
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.tsx +49 -0
- package/dist/components/ui/avatar.d.ts +4 -3
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.tsx +40 -0
- package/dist/components/ui/badge.d.ts +5 -3
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.tsx +26 -0
- package/dist/components/ui/breadcrumb.d.ts +17 -8
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.tsx +88 -0
- package/dist/components/ui/button.d.ts +5 -3
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.tsx +47 -0
- package/dist/components/ui/card.d.ts +9 -8
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.tsx +68 -0
- package/dist/components/ui/carousel.d.ts +6 -6
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.tsx +191 -0
- package/dist/components/ui/checkbox.d.ts +2 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.tsx +28 -0
- package/dist/components/ui/dialog.d.ts +19 -12
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.tsx +95 -0
- package/dist/components/ui/dropdown-menu.d.ts +24 -20
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.tsx +140 -0
- package/dist/components/ui/form.d.ts +6 -6
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.tsx +102 -0
- package/dist/components/ui/index.d.ts +2 -6
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +3 -3
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.tsx +25 -0
- package/dist/components/ui/label.d.ts +3 -1
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.tsx +20 -0
- package/dist/components/ui/pagination.d.ts +27 -12
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.tsx +122 -0
- package/dist/components/ui/popover.d.ts +5 -4
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.tsx +24 -0
- package/dist/components/ui/radio-group.d.ts +3 -2
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.tsx +34 -0
- package/dist/components/ui/select.d.ts +13 -12
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.tsx +128 -0
- package/dist/components/ui/separator.d.ts +2 -1
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.tsx +24 -0
- package/dist/components/ui/sheet.d.ts +26 -11
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.tsx +106 -0
- package/dist/components/ui/skeleton.d.ts +3 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.tsx +17 -0
- package/dist/components/ui/slider.d.ts +2 -1
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.tsx +31 -0
- package/dist/components/ui/stepper.d.ts +40 -32
- package/dist/components/ui/stepper.d.ts.map +1 -0
- package/dist/components/ui/stepper.tsx +452 -0
- package/dist/components/ui/switch.d.ts +2 -1
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.tsx +27 -0
- package/dist/components/ui/table.d.ts +9 -8
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.tsx +80 -0
- package/dist/components/ui/tabs.d.ts +5 -4
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.tsx +45 -0
- package/dist/components/ui/textarea.d.ts +2 -1
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.tsx +22 -0
- package/dist/components/ui/tooltip.d.ts +5 -4
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.tsx +23 -0
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/helpers/axiosGlobal.d.ts +7 -5
- package/dist/helpers/axiosGlobal.d.ts.map +1 -0
- package/dist/helpers/axiosGlobal.js +66 -0
- package/dist/helpers/image.d.ts +1 -0
- package/dist/helpers/image.d.ts.map +1 -0
- package/dist/helpers/image.js +11 -0
- package/dist/helpers/index.d.ts +1 -2
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/numbers.d.ts +1 -0
- package/dist/helpers/numbers.d.ts.map +1 -0
- package/dist/helpers/numbers.js +8 -0
- package/dist/helpers/strings.d.ts +1 -0
- package/dist/helpers/strings.d.ts.map +1 -0
- package/dist/helpers/strings.js +6 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/useLanguage.d.ts +5 -0
- package/dist/hooks/useLanguage.d.ts.map +1 -0
- package/dist/hooks/useLanguage.js +32 -0
- package/dist/hooks/useNotification.d.ts +1 -0
- package/dist/hooks/useNotification.d.ts.map +1 -0
- package/dist/hooks/useNotification.js +17 -0
- package/dist/i18n/config.d.ts +82 -68
- package/dist/i18n/config.d.ts.map +1 -0
- package/dist/i18n/config.js +58 -0
- package/dist/i18n/index.d.ts +3 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/locales/en.json.js +12 -0
- package/dist/i18n/locales/es.json.js +12 -0
- package/dist/i18n/locales/fields/en.json.js +52 -0
- package/dist/i18n/locales/fields/es.json.js +52 -0
- package/dist/i18n/locales/messages/en.json.js +14 -0
- package/dist/i18n/locales/messages/es.json.js +14 -0
- package/dist/i18n/utils/getModuleNamespace.d.ts +16 -0
- package/dist/i18n/utils/getModuleNamespace.d.ts.map +1 -0
- package/dist/i18n/utils/getModuleNamespace.js +10 -0
- package/dist/i18n/utils/loadModuleTranslations.d.ts +5 -0
- package/dist/i18n/utils/loadModuleTranslations.d.ts.map +1 -0
- package/dist/i18n/utils/loadModuleTranslations.js +21 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +87 -20192
- package/dist/ingeniuscliq-core.css +1240 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +8 -0
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.d.ts +5 -3
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.d.ts.map +1 -0
- package/dist/modules/CoreAuth/classes/CoreAuthBuilder.js +185 -0
- package/dist/modules/CoreAuth/classes/index.d.ts +1 -0
- package/dist/modules/CoreAuth/classes/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/constants/auth.d.ts +1 -0
- package/dist/modules/CoreAuth/constants/auth.d.ts.map +1 -0
- package/dist/modules/CoreAuth/constants/auth.js +6 -0
- package/dist/modules/CoreAuth/constants/index.d.ts +1 -0
- package/dist/modules/CoreAuth/constants/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/context/AuthContext.d.ts +12 -0
- package/dist/modules/CoreAuth/context/AuthContext.d.ts.map +1 -0
- package/dist/modules/CoreAuth/context/AuthContext.tsx +4 -0
- package/dist/modules/CoreAuth/context/index.d.ts +2 -0
- package/dist/modules/CoreAuth/context/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/hooks/index.d.ts +1 -0
- package/dist/modules/CoreAuth/hooks/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/hooks/useAuth.d.ts +10 -9
- package/dist/modules/CoreAuth/hooks/useAuth.d.ts.map +1 -0
- package/dist/modules/CoreAuth/hooks/useAuth.js +38 -0
- package/dist/modules/CoreAuth/index.d.ts +8 -1
- package/dist/modules/CoreAuth/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/index.js +11 -0
- package/dist/modules/CoreAuth/locale/en.json.js +4 -0
- package/dist/modules/CoreAuth/locale/es.json.js +4 -0
- package/dist/modules/CoreAuth/registry/hooks/index.d.ts +1 -0
- package/dist/modules/CoreAuth/registry/hooks/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/registry/index.d.ts +1 -0
- package/dist/modules/CoreAuth/registry/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/registry/types/index.d.ts +1 -0
- package/dist/modules/CoreAuth/registry/types/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/services/base.d.ts +24 -5
- package/dist/modules/CoreAuth/services/base.d.ts.map +1 -0
- package/dist/modules/CoreAuth/services/base.js +53 -0
- package/dist/modules/CoreAuth/services/index.d.ts +1 -0
- package/dist/modules/CoreAuth/services/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/stores/authStore.d.ts +15 -8
- package/dist/modules/CoreAuth/stores/authStore.d.ts.map +1 -0
- package/dist/modules/CoreAuth/stores/authStore.js +13 -0
- package/dist/modules/CoreAuth/stores/index.d.ts +1 -0
- package/dist/modules/CoreAuth/stores/index.d.ts.map +1 -0
- package/dist/modules/CoreAuth/types/CoreAuth.d.ts +10 -6
- package/dist/modules/CoreAuth/types/CoreAuth.d.ts.map +1 -0
- package/dist/modules/CoreAuth/types/index.d.ts +1 -0
- package/dist/modules/CoreAuth/types/index.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts +8 -8
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.js +82 -0
- package/dist/modules/CoreCustomization/classes/index.d.ts +1 -0
- package/dist/modules/CoreCustomization/classes/index.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/index.d.ts +4 -1
- package/dist/modules/CoreCustomization/index.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/index.js +9 -0
- package/dist/modules/CoreCustomization/locale/en.json.js +4 -0
- package/dist/modules/CoreCustomization/locale/es.json.js +4 -0
- package/dist/modules/CoreCustomization/registry/index.d.ts +1 -0
- package/dist/modules/CoreCustomization/registry/index.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/registry/types/index.d.ts +1 -0
- package/dist/modules/CoreCustomization/registry/types/index.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/services/base.d.ts +8 -1
- package/dist/modules/CoreCustomization/services/base.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/services/base.js +21 -0
- package/dist/modules/CoreCustomization/services/index.d.ts +1 -0
- package/dist/modules/CoreCustomization/services/index.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/types/CoreCustomization.d.ts +1 -0
- package/dist/modules/CoreCustomization/types/CoreCustomization.d.ts.map +1 -0
- package/dist/modules/CoreCustomization/types/index.d.ts +1 -0
- package/dist/modules/CoreCustomization/types/index.d.ts.map +1 -0
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.d.ts +4 -3
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.d.ts.map +1 -0
- package/dist/modules/CoreOrder/classes/CoreOrderBuilder.js +113 -0
- package/dist/modules/CoreOrder/classes/index.d.ts +1 -0
- package/dist/modules/CoreOrder/classes/index.d.ts.map +1 -0
- package/dist/modules/CoreOrder/index.d.ts +4 -1
- package/dist/modules/CoreOrder/index.d.ts.map +1 -0
- package/dist/modules/CoreOrder/index.js +9 -0
- package/dist/modules/CoreOrder/locale/en.json.js +4 -0
- package/dist/modules/CoreOrder/locale/es.json.js +4 -0
- package/dist/modules/CoreOrder/registry/hooks/index.d.ts +1 -0
- package/dist/modules/CoreOrder/registry/hooks/index.d.ts.map +1 -0
- package/dist/modules/CoreOrder/registry/index.d.ts +1 -0
- package/dist/modules/CoreOrder/registry/index.d.ts.map +1 -0
- package/dist/modules/CoreOrder/registry/types/index.d.ts +1 -0
- package/dist/modules/CoreOrder/registry/types/index.d.ts.map +1 -0
- package/dist/modules/CoreOrder/services/base.d.ts +17 -1
- package/dist/modules/CoreOrder/services/base.d.ts.map +1 -0
- package/dist/modules/CoreOrder/services/base.js +27 -0
- package/dist/modules/CoreOrder/services/index.d.ts +1 -0
- package/dist/modules/CoreOrder/services/index.d.ts.map +1 -0
- package/dist/modules/CoreOrder/types/CoreOrder.d.ts +1 -0
- package/dist/modules/CoreOrder/types/CoreOrder.d.ts.map +1 -0
- package/dist/modules/CoreOrder/types/index.d.ts +1 -0
- package/dist/modules/CoreOrder/types/index.d.ts.map +1 -0
- package/dist/modules/CoreOrder/types/interfaces/OrderActions.d.ts +1 -0
- package/dist/modules/CoreOrder/types/interfaces/OrderActions.d.ts.map +1 -0
- package/dist/modules/CoreOrder/types/interfaces/index.d.ts +1 -0
- package/dist/modules/CoreOrder/types/interfaces/index.d.ts.map +1 -0
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.d.ts +12 -11
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.d.ts.map +1 -0
- package/dist/modules/CorePayForm/classes/CorePayFormBuilder.js +67 -0
- package/dist/modules/CorePayForm/classes/index.d.ts +1 -0
- package/dist/modules/CorePayForm/classes/index.d.ts.map +1 -0
- package/dist/modules/CorePayForm/index.d.ts +4 -1
- package/dist/modules/CorePayForm/index.d.ts.map +1 -0
- package/dist/modules/CorePayForm/index.js +9 -0
- package/dist/modules/CorePayForm/locale/en.json.js +4 -0
- package/dist/modules/CorePayForm/locale/es.json.js +4 -0
- package/dist/modules/CorePayForm/registry/hooks/index.d.ts +1 -0
- package/dist/modules/CorePayForm/registry/hooks/index.d.ts.map +1 -0
- package/dist/modules/CorePayForm/registry/index.d.ts +1 -0
- package/dist/modules/CorePayForm/registry/index.d.ts.map +1 -0
- package/dist/modules/CorePayForm/registry/types/index.d.ts +1 -0
- package/dist/modules/CorePayForm/registry/types/index.d.ts.map +1 -0
- package/dist/modules/CorePayForm/services/base.d.ts +12 -1
- package/dist/modules/CorePayForm/services/base.d.ts.map +1 -0
- package/dist/modules/CorePayForm/services/base.js +21 -0
- package/dist/modules/CorePayForm/services/index.d.ts +1 -0
- package/dist/modules/CorePayForm/services/index.d.ts.map +1 -0
- package/dist/modules/CorePayForm/types/CorePayForm.d.ts +1 -0
- package/dist/modules/CorePayForm/types/CorePayForm.d.ts.map +1 -0
- package/dist/modules/CorePayForm/types/index.d.ts +1 -0
- package/dist/modules/CorePayForm/types/index.d.ts.map +1 -0
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.d.ts +5 -4
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.d.ts.map +1 -0
- package/dist/modules/CoreProduct/classes/CoreProductBuilder.js +120 -0
- package/dist/modules/CoreProduct/classes/index.d.ts +1 -0
- package/dist/modules/CoreProduct/classes/index.d.ts.map +1 -0
- package/dist/modules/CoreProduct/index.d.ts +4 -1
- package/dist/modules/CoreProduct/index.d.ts.map +1 -0
- package/dist/modules/CoreProduct/index.js +9 -0
- package/dist/modules/CoreProduct/locale/en.json.js +14 -0
- package/dist/modules/CoreProduct/locale/es.json.js +14 -0
- package/dist/modules/CoreProduct/registry/index.d.ts +1 -0
- package/dist/modules/CoreProduct/registry/index.d.ts.map +1 -0
- package/dist/modules/CoreProduct/registry/types/index.d.ts +1 -0
- package/dist/modules/CoreProduct/registry/types/index.d.ts.map +1 -0
- package/dist/modules/CoreProduct/services/base.d.ts +20 -7
- package/dist/modules/CoreProduct/services/base.d.ts.map +1 -0
- package/dist/modules/CoreProduct/services/base.js +35 -0
- package/dist/modules/CoreProduct/services/index.d.ts +1 -0
- package/dist/modules/CoreProduct/services/index.d.ts.map +1 -0
- package/dist/modules/CoreProduct/types/CoreProduct.d.ts +1 -0
- package/dist/modules/CoreProduct/types/CoreProduct.d.ts.map +1 -0
- package/dist/modules/CoreProduct/types/CoreProductCategory.d.ts +1 -0
- package/dist/modules/CoreProduct/types/CoreProductCategory.d.ts.map +1 -0
- package/dist/modules/CoreProduct/types/index.d.ts +1 -0
- package/dist/modules/CoreProduct/types/index.d.ts.map +1 -0
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.d.ts +6 -5
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.d.ts.map +1 -0
- package/dist/modules/CoreShipment/classes/CoreShipmentBuilder.js +172 -0
- package/dist/modules/CoreShipment/classes/index.d.ts +1 -0
- package/dist/modules/CoreShipment/classes/index.d.ts.map +1 -0
- package/dist/modules/CoreShipment/index.d.ts +4 -1
- package/dist/modules/CoreShipment/index.d.ts.map +1 -0
- package/dist/modules/CoreShipment/index.js +9 -0
- package/dist/modules/CoreShipment/locale/en.json.js +14 -0
- package/dist/modules/CoreShipment/locale/es.json.js +14 -0
- package/dist/modules/CoreShipment/registry/classes/index.d.ts +1 -0
- package/dist/modules/CoreShipment/registry/classes/index.d.ts.map +1 -0
- package/dist/modules/CoreShipment/registry/index.d.ts +1 -0
- package/dist/modules/CoreShipment/registry/index.d.ts.map +1 -0
- package/dist/modules/CoreShipment/registry/services/index.d.ts +1 -0
- package/dist/modules/CoreShipment/registry/services/index.d.ts.map +1 -0
- package/dist/modules/CoreShipment/registry/types/index.d.ts +1 -0
- package/dist/modules/CoreShipment/registry/types/index.d.ts.map +1 -0
- package/dist/modules/CoreShipment/services/base.d.ts +30 -2
- package/dist/modules/CoreShipment/services/base.d.ts.map +1 -0
- package/dist/modules/CoreShipment/services/base.js +63 -0
- package/dist/modules/CoreShipment/services/index.d.ts +1 -0
- package/dist/modules/CoreShipment/services/index.d.ts.map +1 -0
- package/dist/modules/CoreShipment/types/CoreShipment.d.ts +1 -0
- package/dist/modules/CoreShipment/types/CoreShipment.d.ts.map +1 -0
- package/dist/modules/CoreShipment/types/CoreShipment.js +7 -0
- package/dist/modules/CoreShipment/types/index.d.ts +1 -0
- package/dist/modules/CoreShipment/types/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts +16 -5
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.js +166 -0
- package/dist/modules/CoreShopCart/classes/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/classes/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/constants/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/constants/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/constants/shopCart.d.ts +1 -0
- package/dist/modules/CoreShopCart/constants/shopCart.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/constants/shopCart.js +8 -0
- package/dist/modules/CoreShopCart/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/index.js +8 -0
- package/dist/modules/CoreShopCart/locale/en.json.js +4 -0
- package/dist/modules/CoreShopCart/locale/es.json.js +4 -0
- package/dist/modules/CoreShopCart/registry/hooks/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/registry/hooks/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/registry/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/registry/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/registry/types/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/registry/types/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/services/base.d.ts +23 -4
- package/dist/modules/CoreShopCart/services/base.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/services/base.js +53 -0
- package/dist/modules/CoreShopCart/services/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/services/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/types/CoreShopCart.d.ts +1 -0
- package/dist/modules/CoreShopCart/types/CoreShopCart.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/types/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/types/index.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/types/interfaces/CartActions.d.ts +1 -0
- package/dist/modules/CoreShopCart/types/interfaces/CartActions.d.ts.map +1 -0
- package/dist/modules/CoreShopCart/types/interfaces/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/types/interfaces/index.d.ts.map +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/registry/hooks/index.d.ts +1 -0
- package/dist/modules/registry/hooks/index.d.ts.map +1 -0
- package/dist/modules/registry/index.d.ts +1 -0
- package/dist/modules/registry/index.d.ts.map +1 -0
- package/dist/modules/registry/types/index.d.ts +1 -0
- package/dist/modules/registry/types/index.d.ts.map +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +814 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +751 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +350 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +161 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +137 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +305 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-collapsible/dist/index.js +145 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-collection/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +147 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +118 -0
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +270 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +79 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +321 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js +43 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +267 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/dist/index.js +834 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-collection/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-popper/dist/index.js +283 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-roving-focus/dist/index.js +223 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +43 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +299 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.js +283 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.js +43 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +282 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-roving-focus/dist/index.js +223 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-collection/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +1156 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-collection/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-popper/dist/index.js +283 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.js +43 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-visually-hidden/dist/index.js +34 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +30 -0
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +554 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-collection/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +99 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +152 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +187 -0
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-primitive/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-roving-focus/dist/index.js +223 -0
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-collection/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +482 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.js +283 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.js +43 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@stepperize/core/dist/index.js +3 -0
- package/dist/node_modules/@stepperize/react/dist/index.js +6 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +137 -0
- package/dist/node_modules/axios/index.js +25 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +81 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +229 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +199 -0
- package/dist/node_modules/axios/lib/axios.js +86 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +133 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +23 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/dist/node_modules/axios/lib/core/Axios.js +238 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +101 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +312 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +69 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +22 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +81 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +106 -0
- package/dist/node_modules/axios/lib/core/settle.js +27 -0
- package/dist/node_modules/axios/lib/core/transformData.js +28 -0
- package/dist/node_modules/axios/lib/defaults/index.js +159 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/dist/node_modules/axios/lib/env/data.js +3 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +56 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +7 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +15 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +48 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +43 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +93 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +15 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/dist/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +46 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +58 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +53 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +28 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +44 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +219 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +88 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +99 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +45 -0
- package/dist/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/axios/lib/utils.js +780 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +44 -0
- package/dist/node_modules/clsx/dist/clsx.js +3 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1669 -0
- package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +37 -0
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +38 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +43 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +30 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +28 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +560 -0
- package/dist/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +210 -0
- package/dist/node_modules/react-i18next/dist/es/context.js +18 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.js +21 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +7 -0
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +12 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.js +27 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +157 -0
- package/dist/node_modules/react-i18next/dist/es/utils.js +63 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +167 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/node_modules/sonner/dist/index.js +299 -0
- package/dist/node_modules/tslib/tslib.es6.js +56 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +106 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +77 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +19 -0
- package/dist/node_modules/zustand/esm/middleware.js +188 -0
- package/dist/node_modules/zustand/esm/react.js +22 -0
- package/dist/node_modules/zustand/esm/vanilla.js +24 -0
- package/dist/services/base.d.ts +1 -0
- package/dist/services/base.d.ts.map +1 -0
- package/dist/services/base.js +67 -0
- package/dist/services/factory.d.ts +14 -0
- package/dist/services/factory.d.ts.map +1 -0
- package/dist/services/factory.js +39 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/stores/customizationStore.d.ts +5 -27
- package/dist/stores/customizationStore.d.ts.map +1 -0
- package/dist/stores/customizationStore.js +7 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/types/BaseResponseActions.d.ts +1 -0
- package/dist/types/BaseResponseActions.d.ts.map +1 -0
- package/dist/types/BaseStore.d.ts +1 -0
- package/dist/types/BaseStore.d.ts.map +1 -0
- package/dist/types/BaseType.d.ts +1 -0
- package/dist/types/BaseType.d.ts.map +1 -0
- package/dist/types/CoreImage.d.ts +1 -0
- package/dist/types/CoreImage.d.ts.map +1 -0
- package/dist/types/CoreMenu.d.ts +1 -0
- package/dist/types/CoreMenu.d.ts.map +1 -0
- package/dist/types/contracts/BaseApiResponse.d.ts +1 -0
- package/dist/types/contracts/BaseApiResponse.d.ts.map +1 -0
- package/dist/types/contracts/BasePagination.d.ts +1 -0
- package/dist/types/contracts/BasePagination.d.ts.map +1 -0
- package/dist/types/contracts/index.d.ts +1 -0
- package/dist/types/contracts/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/interfaces/BaseImageType.d.ts +1 -0
- package/dist/types/interfaces/BaseImageType.d.ts.map +1 -0
- package/dist/types/interfaces/BaseSlugType.d.ts +1 -0
- package/dist/types/interfaces/BaseSlugType.d.ts.map +1 -0
- package/dist/types/interfaces/BaseVisibleType.d.ts +1 -0
- package/dist/types/interfaces/BaseVisibleType.d.ts.map +1 -0
- package/dist/types/interfaces/index.d.ts +1 -0
- package/dist/types/interfaces/index.d.ts.map +1 -0
- package/dist/types/ui/carousel.d.ts +1 -0
- package/dist/types/ui/carousel.d.ts.map +1 -0
- package/dist/types/ui/index.d.ts +1 -0
- package/dist/types/ui/index.d.ts.map +1 -0
- package/dist/types/ui/main.d.ts +1 -0
- package/dist/types/ui/main.d.ts.map +1 -0
- package/dist/types/ui/template.d.ts +1 -0
- package/dist/types/ui/template.d.ts.map +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/vite-env.d.ts +11 -0
- package/package.json +18 -11
- package/core/commands/common/constants.js +0 -10
- package/core/commands/create-core-module.js +0 -288
- package/core/commands/create-module.js +0 -288
- package/core/commands/create-template.js +0 -169
- package/core/commands/helpers/index.js +0 -15
- package/core/commands/helpers/strings.js +0 -4
- package/core/commands/rollback-core-module.js +0 -195
- package/core/commands/rollback-module.js +0 -208
- package/core/commands/templates/locale.js +0 -14
- package/core/commands/templates/service.js +0 -12
- package/core/commands/templates/type.js +0 -10
- package/dist/assets/index.d.ts +0 -8
- package/dist/components/ui/calendar.d.ts +0 -4
- package/dist/components/ui/drawer.d.ts +0 -13
- package/dist/components/ui/navigation-menu.d.ts +0 -14
- package/dist/components/ui/sidebar.d.ts +0 -69
- package/dist/components/ui/sonner.d.ts +0 -3
- package/dist/constants/menu.d.ts +0 -2
- package/dist/helpers/template.d.ts +0 -2
- package/dist/helpers/tenant.d.ts +0 -2
- package/dist/index.css +0 -1
- package/dist/modules/CoreCustomization/registry/hooks/index.d.ts +0 -0
- package/dist/modules/CoreProduct/registry/hooks/index.d.ts +0 -0
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
import bind from './helpers/bind.js';
|
|
2
|
+
|
|
3
|
+
// utils is a library of generic helper functions non-specific to axios
|
|
4
|
+
|
|
5
|
+
const {toString} = Object.prototype;
|
|
6
|
+
const {getPrototypeOf} = Object;
|
|
7
|
+
const {iterator, toStringTag} = Symbol;
|
|
8
|
+
|
|
9
|
+
const kindOf = (cache => thing => {
|
|
10
|
+
const str = toString.call(thing);
|
|
11
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
12
|
+
})(Object.create(null));
|
|
13
|
+
|
|
14
|
+
const kindOfTest = (type) => {
|
|
15
|
+
type = type.toLowerCase();
|
|
16
|
+
return (thing) => kindOf(thing) === type
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const typeOfTest = type => thing => typeof thing === type;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Determine if a value is an Array
|
|
23
|
+
*
|
|
24
|
+
* @param {Object} val The value to test
|
|
25
|
+
*
|
|
26
|
+
* @returns {boolean} True if value is an Array, otherwise false
|
|
27
|
+
*/
|
|
28
|
+
const {isArray} = Array;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Determine if a value is undefined
|
|
32
|
+
*
|
|
33
|
+
* @param {*} val The value to test
|
|
34
|
+
*
|
|
35
|
+
* @returns {boolean} True if the value is undefined, otherwise false
|
|
36
|
+
*/
|
|
37
|
+
const isUndefined = typeOfTest('undefined');
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Determine if a value is a Buffer
|
|
41
|
+
*
|
|
42
|
+
* @param {*} val The value to test
|
|
43
|
+
*
|
|
44
|
+
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
45
|
+
*/
|
|
46
|
+
function isBuffer(val) {
|
|
47
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
|
|
48
|
+
&& isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Determine if a value is an ArrayBuffer
|
|
53
|
+
*
|
|
54
|
+
* @param {*} val The value to test
|
|
55
|
+
*
|
|
56
|
+
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
57
|
+
*/
|
|
58
|
+
const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Determine if a value is a view on an ArrayBuffer
|
|
63
|
+
*
|
|
64
|
+
* @param {*} val The value to test
|
|
65
|
+
*
|
|
66
|
+
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
|
67
|
+
*/
|
|
68
|
+
function isArrayBufferView(val) {
|
|
69
|
+
let result;
|
|
70
|
+
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
|
|
71
|
+
result = ArrayBuffer.isView(val);
|
|
72
|
+
} else {
|
|
73
|
+
result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
|
|
74
|
+
}
|
|
75
|
+
return result;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Determine if a value is a String
|
|
80
|
+
*
|
|
81
|
+
* @param {*} val The value to test
|
|
82
|
+
*
|
|
83
|
+
* @returns {boolean} True if value is a String, otherwise false
|
|
84
|
+
*/
|
|
85
|
+
const isString = typeOfTest('string');
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Determine if a value is a Function
|
|
89
|
+
*
|
|
90
|
+
* @param {*} val The value to test
|
|
91
|
+
* @returns {boolean} True if value is a Function, otherwise false
|
|
92
|
+
*/
|
|
93
|
+
const isFunction = typeOfTest('function');
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Determine if a value is a Number
|
|
97
|
+
*
|
|
98
|
+
* @param {*} val The value to test
|
|
99
|
+
*
|
|
100
|
+
* @returns {boolean} True if value is a Number, otherwise false
|
|
101
|
+
*/
|
|
102
|
+
const isNumber = typeOfTest('number');
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Determine if a value is an Object
|
|
106
|
+
*
|
|
107
|
+
* @param {*} thing The value to test
|
|
108
|
+
*
|
|
109
|
+
* @returns {boolean} True if value is an Object, otherwise false
|
|
110
|
+
*/
|
|
111
|
+
const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Determine if a value is a Boolean
|
|
115
|
+
*
|
|
116
|
+
* @param {*} thing The value to test
|
|
117
|
+
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
118
|
+
*/
|
|
119
|
+
const isBoolean = thing => thing === true || thing === false;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Determine if a value is a plain Object
|
|
123
|
+
*
|
|
124
|
+
* @param {*} val The value to test
|
|
125
|
+
*
|
|
126
|
+
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
127
|
+
*/
|
|
128
|
+
const isPlainObject = (val) => {
|
|
129
|
+
if (kindOf(val) !== 'object') {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const prototype = getPrototypeOf(val);
|
|
134
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
139
|
+
*
|
|
140
|
+
* @param {*} val The value to test
|
|
141
|
+
*
|
|
142
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
143
|
+
*/
|
|
144
|
+
const isEmptyObject = (val) => {
|
|
145
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
146
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
try {
|
|
151
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
152
|
+
} catch (e) {
|
|
153
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Determine if a value is a Date
|
|
160
|
+
*
|
|
161
|
+
* @param {*} val The value to test
|
|
162
|
+
*
|
|
163
|
+
* @returns {boolean} True if value is a Date, otherwise false
|
|
164
|
+
*/
|
|
165
|
+
const isDate = kindOfTest('Date');
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Determine if a value is a File
|
|
169
|
+
*
|
|
170
|
+
* @param {*} val The value to test
|
|
171
|
+
*
|
|
172
|
+
* @returns {boolean} True if value is a File, otherwise false
|
|
173
|
+
*/
|
|
174
|
+
const isFile = kindOfTest('File');
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Determine if a value is a Blob
|
|
178
|
+
*
|
|
179
|
+
* @param {*} val The value to test
|
|
180
|
+
*
|
|
181
|
+
* @returns {boolean} True if value is a Blob, otherwise false
|
|
182
|
+
*/
|
|
183
|
+
const isBlob = kindOfTest('Blob');
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Determine if a value is a FileList
|
|
187
|
+
*
|
|
188
|
+
* @param {*} val The value to test
|
|
189
|
+
*
|
|
190
|
+
* @returns {boolean} True if value is a File, otherwise false
|
|
191
|
+
*/
|
|
192
|
+
const isFileList = kindOfTest('FileList');
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Determine if a value is a Stream
|
|
196
|
+
*
|
|
197
|
+
* @param {*} val The value to test
|
|
198
|
+
*
|
|
199
|
+
* @returns {boolean} True if value is a Stream, otherwise false
|
|
200
|
+
*/
|
|
201
|
+
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Determine if a value is a FormData
|
|
205
|
+
*
|
|
206
|
+
* @param {*} thing The value to test
|
|
207
|
+
*
|
|
208
|
+
* @returns {boolean} True if value is an FormData, otherwise false
|
|
209
|
+
*/
|
|
210
|
+
const isFormData = (thing) => {
|
|
211
|
+
let kind;
|
|
212
|
+
return thing && (
|
|
213
|
+
(typeof FormData === 'function' && thing instanceof FormData) || (
|
|
214
|
+
isFunction(thing.append) && (
|
|
215
|
+
(kind = kindOf(thing)) === 'formdata' ||
|
|
216
|
+
// detect form-data instance
|
|
217
|
+
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
218
|
+
)
|
|
219
|
+
)
|
|
220
|
+
)
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Determine if a value is a URLSearchParams object
|
|
225
|
+
*
|
|
226
|
+
* @param {*} val The value to test
|
|
227
|
+
*
|
|
228
|
+
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
229
|
+
*/
|
|
230
|
+
const isURLSearchParams = kindOfTest('URLSearchParams');
|
|
231
|
+
|
|
232
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Trim excess whitespace off the beginning and end of a string
|
|
236
|
+
*
|
|
237
|
+
* @param {String} str The String to trim
|
|
238
|
+
*
|
|
239
|
+
* @returns {String} The String freed of excess whitespace
|
|
240
|
+
*/
|
|
241
|
+
const trim = (str) => str.trim ?
|
|
242
|
+
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Iterate over an Array or an Object invoking a function for each item.
|
|
246
|
+
*
|
|
247
|
+
* If `obj` is an Array callback will be called passing
|
|
248
|
+
* the value, index, and complete array for each item.
|
|
249
|
+
*
|
|
250
|
+
* If 'obj' is an Object callback will be called passing
|
|
251
|
+
* the value, key, and complete object for each property.
|
|
252
|
+
*
|
|
253
|
+
* @param {Object|Array} obj The object to iterate
|
|
254
|
+
* @param {Function} fn The callback to invoke for each item
|
|
255
|
+
*
|
|
256
|
+
* @param {Boolean} [allOwnKeys = false]
|
|
257
|
+
* @returns {any}
|
|
258
|
+
*/
|
|
259
|
+
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
260
|
+
// Don't bother if no value provided
|
|
261
|
+
if (obj === null || typeof obj === 'undefined') {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
let i;
|
|
266
|
+
let l;
|
|
267
|
+
|
|
268
|
+
// Force an array if not already something iterable
|
|
269
|
+
if (typeof obj !== 'object') {
|
|
270
|
+
/*eslint no-param-reassign:0*/
|
|
271
|
+
obj = [obj];
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (isArray(obj)) {
|
|
275
|
+
// Iterate over array values
|
|
276
|
+
for (i = 0, l = obj.length; i < l; i++) {
|
|
277
|
+
fn.call(null, obj[i], i, obj);
|
|
278
|
+
}
|
|
279
|
+
} else {
|
|
280
|
+
// Buffer check
|
|
281
|
+
if (isBuffer(obj)) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// Iterate over object keys
|
|
286
|
+
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
287
|
+
const len = keys.length;
|
|
288
|
+
let key;
|
|
289
|
+
|
|
290
|
+
for (i = 0; i < len; i++) {
|
|
291
|
+
key = keys[i];
|
|
292
|
+
fn.call(null, obj[key], key, obj);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
function findKey(obj, key) {
|
|
298
|
+
if (isBuffer(obj)){
|
|
299
|
+
return null;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
key = key.toLowerCase();
|
|
303
|
+
const keys = Object.keys(obj);
|
|
304
|
+
let i = keys.length;
|
|
305
|
+
let _key;
|
|
306
|
+
while (i-- > 0) {
|
|
307
|
+
_key = keys[i];
|
|
308
|
+
if (key === _key.toLowerCase()) {
|
|
309
|
+
return _key;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
const _global = (() => {
|
|
316
|
+
/*eslint no-undef:0*/
|
|
317
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
318
|
+
return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
|
|
319
|
+
})();
|
|
320
|
+
|
|
321
|
+
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Accepts varargs expecting each argument to be an object, then
|
|
325
|
+
* immutably merges the properties of each object and returns result.
|
|
326
|
+
*
|
|
327
|
+
* When multiple objects contain the same key the later object in
|
|
328
|
+
* the arguments list will take precedence.
|
|
329
|
+
*
|
|
330
|
+
* Example:
|
|
331
|
+
*
|
|
332
|
+
* ```js
|
|
333
|
+
* var result = merge({foo: 123}, {foo: 456});
|
|
334
|
+
* console.log(result.foo); // outputs 456
|
|
335
|
+
* ```
|
|
336
|
+
*
|
|
337
|
+
* @param {Object} obj1 Object to merge
|
|
338
|
+
*
|
|
339
|
+
* @returns {Object} Result of all merge properties
|
|
340
|
+
*/
|
|
341
|
+
function merge(/* obj1, obj2, obj3, ... */) {
|
|
342
|
+
const {caseless} = isContextDefined(this) && this || {};
|
|
343
|
+
const result = {};
|
|
344
|
+
const assignValue = (val, key) => {
|
|
345
|
+
const targetKey = caseless && findKey(result, key) || key;
|
|
346
|
+
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
347
|
+
result[targetKey] = merge(result[targetKey], val);
|
|
348
|
+
} else if (isPlainObject(val)) {
|
|
349
|
+
result[targetKey] = merge({}, val);
|
|
350
|
+
} else if (isArray(val)) {
|
|
351
|
+
result[targetKey] = val.slice();
|
|
352
|
+
} else {
|
|
353
|
+
result[targetKey] = val;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
358
|
+
arguments[i] && forEach(arguments[i], assignValue);
|
|
359
|
+
}
|
|
360
|
+
return result;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Extends object a by mutably adding to it the properties of object b.
|
|
365
|
+
*
|
|
366
|
+
* @param {Object} a The object to be extended
|
|
367
|
+
* @param {Object} b The object to copy properties from
|
|
368
|
+
* @param {Object} thisArg The object to bind function to
|
|
369
|
+
*
|
|
370
|
+
* @param {Boolean} [allOwnKeys]
|
|
371
|
+
* @returns {Object} The resulting value of object a
|
|
372
|
+
*/
|
|
373
|
+
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
374
|
+
forEach(b, (val, key) => {
|
|
375
|
+
if (thisArg && isFunction(val)) {
|
|
376
|
+
a[key] = bind(val, thisArg);
|
|
377
|
+
} else {
|
|
378
|
+
a[key] = val;
|
|
379
|
+
}
|
|
380
|
+
}, {allOwnKeys});
|
|
381
|
+
return a;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
386
|
+
*
|
|
387
|
+
* @param {string} content with BOM
|
|
388
|
+
*
|
|
389
|
+
* @returns {string} content value without BOM
|
|
390
|
+
*/
|
|
391
|
+
const stripBOM = (content) => {
|
|
392
|
+
if (content.charCodeAt(0) === 0xFEFF) {
|
|
393
|
+
content = content.slice(1);
|
|
394
|
+
}
|
|
395
|
+
return content;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Inherit the prototype methods from one constructor into another
|
|
400
|
+
* @param {function} constructor
|
|
401
|
+
* @param {function} superConstructor
|
|
402
|
+
* @param {object} [props]
|
|
403
|
+
* @param {object} [descriptors]
|
|
404
|
+
*
|
|
405
|
+
* @returns {void}
|
|
406
|
+
*/
|
|
407
|
+
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
408
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
409
|
+
constructor.prototype.constructor = constructor;
|
|
410
|
+
Object.defineProperty(constructor, 'super', {
|
|
411
|
+
value: superConstructor.prototype
|
|
412
|
+
});
|
|
413
|
+
props && Object.assign(constructor.prototype, props);
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Resolve object with deep prototype chain to a flat object
|
|
418
|
+
* @param {Object} sourceObj source object
|
|
419
|
+
* @param {Object} [destObj]
|
|
420
|
+
* @param {Function|Boolean} [filter]
|
|
421
|
+
* @param {Function} [propFilter]
|
|
422
|
+
*
|
|
423
|
+
* @returns {Object}
|
|
424
|
+
*/
|
|
425
|
+
const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
426
|
+
let props;
|
|
427
|
+
let i;
|
|
428
|
+
let prop;
|
|
429
|
+
const merged = {};
|
|
430
|
+
|
|
431
|
+
destObj = destObj || {};
|
|
432
|
+
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
433
|
+
if (sourceObj == null) return destObj;
|
|
434
|
+
|
|
435
|
+
do {
|
|
436
|
+
props = Object.getOwnPropertyNames(sourceObj);
|
|
437
|
+
i = props.length;
|
|
438
|
+
while (i-- > 0) {
|
|
439
|
+
prop = props[i];
|
|
440
|
+
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
|
441
|
+
destObj[prop] = sourceObj[prop];
|
|
442
|
+
merged[prop] = true;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
446
|
+
} while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
447
|
+
|
|
448
|
+
return destObj;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Determines whether a string ends with the characters of a specified string
|
|
453
|
+
*
|
|
454
|
+
* @param {String} str
|
|
455
|
+
* @param {String} searchString
|
|
456
|
+
* @param {Number} [position= 0]
|
|
457
|
+
*
|
|
458
|
+
* @returns {boolean}
|
|
459
|
+
*/
|
|
460
|
+
const endsWith = (str, searchString, position) => {
|
|
461
|
+
str = String(str);
|
|
462
|
+
if (position === undefined || position > str.length) {
|
|
463
|
+
position = str.length;
|
|
464
|
+
}
|
|
465
|
+
position -= searchString.length;
|
|
466
|
+
const lastIndex = str.indexOf(searchString, position);
|
|
467
|
+
return lastIndex !== -1 && lastIndex === position;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Returns new array from array like object or null if failed
|
|
473
|
+
*
|
|
474
|
+
* @param {*} [thing]
|
|
475
|
+
*
|
|
476
|
+
* @returns {?Array}
|
|
477
|
+
*/
|
|
478
|
+
const toArray = (thing) => {
|
|
479
|
+
if (!thing) return null;
|
|
480
|
+
if (isArray(thing)) return thing;
|
|
481
|
+
let i = thing.length;
|
|
482
|
+
if (!isNumber(i)) return null;
|
|
483
|
+
const arr = new Array(i);
|
|
484
|
+
while (i-- > 0) {
|
|
485
|
+
arr[i] = thing[i];
|
|
486
|
+
}
|
|
487
|
+
return arr;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Checking if the Uint8Array exists and if it does, it returns a function that checks if the
|
|
492
|
+
* thing passed in is an instance of Uint8Array
|
|
493
|
+
*
|
|
494
|
+
* @param {TypedArray}
|
|
495
|
+
*
|
|
496
|
+
* @returns {Array}
|
|
497
|
+
*/
|
|
498
|
+
// eslint-disable-next-line func-names
|
|
499
|
+
const isTypedArray = (TypedArray => {
|
|
500
|
+
// eslint-disable-next-line func-names
|
|
501
|
+
return thing => {
|
|
502
|
+
return TypedArray && thing instanceof TypedArray;
|
|
503
|
+
};
|
|
504
|
+
})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* For each entry in the object, call the function with the key and value.
|
|
508
|
+
*
|
|
509
|
+
* @param {Object<any, any>} obj - The object to iterate over.
|
|
510
|
+
* @param {Function} fn - The function to call for each entry.
|
|
511
|
+
*
|
|
512
|
+
* @returns {void}
|
|
513
|
+
*/
|
|
514
|
+
const forEachEntry = (obj, fn) => {
|
|
515
|
+
const generator = obj && obj[iterator];
|
|
516
|
+
|
|
517
|
+
const _iterator = generator.call(obj);
|
|
518
|
+
|
|
519
|
+
let result;
|
|
520
|
+
|
|
521
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
522
|
+
const pair = result.value;
|
|
523
|
+
fn.call(obj, pair[0], pair[1]);
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* It takes a regular expression and a string, and returns an array of all the matches
|
|
529
|
+
*
|
|
530
|
+
* @param {string} regExp - The regular expression to match against.
|
|
531
|
+
* @param {string} str - The string to search.
|
|
532
|
+
*
|
|
533
|
+
* @returns {Array<boolean>}
|
|
534
|
+
*/
|
|
535
|
+
const matchAll = (regExp, str) => {
|
|
536
|
+
let matches;
|
|
537
|
+
const arr = [];
|
|
538
|
+
|
|
539
|
+
while ((matches = regExp.exec(str)) !== null) {
|
|
540
|
+
arr.push(matches);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
return arr;
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
547
|
+
const isHTMLForm = kindOfTest('HTMLFormElement');
|
|
548
|
+
|
|
549
|
+
const toCamelCase = str => {
|
|
550
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
|
|
551
|
+
function replacer(m, p1, p2) {
|
|
552
|
+
return p1.toUpperCase() + p2;
|
|
553
|
+
}
|
|
554
|
+
);
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
/* Creating a function that will check if an object has a property. */
|
|
558
|
+
const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Determine if a value is a RegExp object
|
|
562
|
+
*
|
|
563
|
+
* @param {*} val The value to test
|
|
564
|
+
*
|
|
565
|
+
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
566
|
+
*/
|
|
567
|
+
const isRegExp = kindOfTest('RegExp');
|
|
568
|
+
|
|
569
|
+
const reduceDescriptors = (obj, reducer) => {
|
|
570
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
571
|
+
const reducedDescriptors = {};
|
|
572
|
+
|
|
573
|
+
forEach(descriptors, (descriptor, name) => {
|
|
574
|
+
let ret;
|
|
575
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
576
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
Object.defineProperties(obj, reducedDescriptors);
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Makes all methods read-only
|
|
585
|
+
* @param {Object} obj
|
|
586
|
+
*/
|
|
587
|
+
|
|
588
|
+
const freezeMethods = (obj) => {
|
|
589
|
+
reduceDescriptors(obj, (descriptor, name) => {
|
|
590
|
+
// skip restricted props in strict mode
|
|
591
|
+
if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
592
|
+
return false;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
const value = obj[name];
|
|
596
|
+
|
|
597
|
+
if (!isFunction(value)) return;
|
|
598
|
+
|
|
599
|
+
descriptor.enumerable = false;
|
|
600
|
+
|
|
601
|
+
if ('writable' in descriptor) {
|
|
602
|
+
descriptor.writable = false;
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
if (!descriptor.set) {
|
|
607
|
+
descriptor.set = () => {
|
|
608
|
+
throw Error('Can not rewrite read-only method \'' + name + '\'');
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
const toObjectSet = (arrayOrString, delimiter) => {
|
|
615
|
+
const obj = {};
|
|
616
|
+
|
|
617
|
+
const define = (arr) => {
|
|
618
|
+
arr.forEach(value => {
|
|
619
|
+
obj[value] = true;
|
|
620
|
+
});
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
624
|
+
|
|
625
|
+
return obj;
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
const noop = () => {};
|
|
629
|
+
|
|
630
|
+
const toFiniteNumber = (value, defaultValue) => {
|
|
631
|
+
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* If the thing is a FormData object, return true, otherwise return false.
|
|
636
|
+
*
|
|
637
|
+
* @param {unknown} thing - The thing to check.
|
|
638
|
+
*
|
|
639
|
+
* @returns {boolean}
|
|
640
|
+
*/
|
|
641
|
+
function isSpecCompliantForm(thing) {
|
|
642
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
const toJSONObject = (obj) => {
|
|
646
|
+
const stack = new Array(10);
|
|
647
|
+
|
|
648
|
+
const visit = (source, i) => {
|
|
649
|
+
|
|
650
|
+
if (isObject(source)) {
|
|
651
|
+
if (stack.indexOf(source) >= 0) {
|
|
652
|
+
return;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
//Buffer check
|
|
656
|
+
if (isBuffer(source)) {
|
|
657
|
+
return source;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
if(!('toJSON' in source)) {
|
|
661
|
+
stack[i] = source;
|
|
662
|
+
const target = isArray(source) ? [] : {};
|
|
663
|
+
|
|
664
|
+
forEach(source, (value, key) => {
|
|
665
|
+
const reducedValue = visit(value, i + 1);
|
|
666
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
667
|
+
});
|
|
668
|
+
|
|
669
|
+
stack[i] = undefined;
|
|
670
|
+
|
|
671
|
+
return target;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
return source;
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
return visit(obj, 0);
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
682
|
+
|
|
683
|
+
const isThenable = (thing) =>
|
|
684
|
+
thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
685
|
+
|
|
686
|
+
// original code
|
|
687
|
+
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
688
|
+
|
|
689
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
690
|
+
if (setImmediateSupported) {
|
|
691
|
+
return setImmediate;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
695
|
+
_global.addEventListener("message", ({source, data}) => {
|
|
696
|
+
if (source === _global && data === token) {
|
|
697
|
+
callbacks.length && callbacks.shift()();
|
|
698
|
+
}
|
|
699
|
+
}, false);
|
|
700
|
+
|
|
701
|
+
return (cb) => {
|
|
702
|
+
callbacks.push(cb);
|
|
703
|
+
_global.postMessage(token, "*");
|
|
704
|
+
}
|
|
705
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
706
|
+
})(
|
|
707
|
+
typeof setImmediate === 'function',
|
|
708
|
+
isFunction(_global.postMessage)
|
|
709
|
+
);
|
|
710
|
+
|
|
711
|
+
const asap = typeof queueMicrotask !== 'undefined' ?
|
|
712
|
+
queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
|
|
713
|
+
|
|
714
|
+
// *********************
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
const utils = {
|
|
721
|
+
isArray,
|
|
722
|
+
isArrayBuffer,
|
|
723
|
+
isBuffer,
|
|
724
|
+
isFormData,
|
|
725
|
+
isArrayBufferView,
|
|
726
|
+
isString,
|
|
727
|
+
isNumber,
|
|
728
|
+
isBoolean,
|
|
729
|
+
isObject,
|
|
730
|
+
isPlainObject,
|
|
731
|
+
isEmptyObject,
|
|
732
|
+
isReadableStream,
|
|
733
|
+
isRequest,
|
|
734
|
+
isResponse,
|
|
735
|
+
isHeaders,
|
|
736
|
+
isUndefined,
|
|
737
|
+
isDate,
|
|
738
|
+
isFile,
|
|
739
|
+
isBlob,
|
|
740
|
+
isRegExp,
|
|
741
|
+
isFunction,
|
|
742
|
+
isStream,
|
|
743
|
+
isURLSearchParams,
|
|
744
|
+
isTypedArray,
|
|
745
|
+
isFileList,
|
|
746
|
+
forEach,
|
|
747
|
+
merge,
|
|
748
|
+
extend,
|
|
749
|
+
trim,
|
|
750
|
+
stripBOM,
|
|
751
|
+
inherits,
|
|
752
|
+
toFlatObject,
|
|
753
|
+
kindOf,
|
|
754
|
+
kindOfTest,
|
|
755
|
+
endsWith,
|
|
756
|
+
toArray,
|
|
757
|
+
forEachEntry,
|
|
758
|
+
matchAll,
|
|
759
|
+
isHTMLForm,
|
|
760
|
+
hasOwnProperty,
|
|
761
|
+
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
|
|
762
|
+
reduceDescriptors,
|
|
763
|
+
freezeMethods,
|
|
764
|
+
toObjectSet,
|
|
765
|
+
toCamelCase,
|
|
766
|
+
noop,
|
|
767
|
+
toFiniteNumber,
|
|
768
|
+
findKey,
|
|
769
|
+
global: _global,
|
|
770
|
+
isContextDefined,
|
|
771
|
+
isSpecCompliantForm,
|
|
772
|
+
toJSONObject,
|
|
773
|
+
isAsyncFn,
|
|
774
|
+
isThenable,
|
|
775
|
+
setImmediate: _setImmediate,
|
|
776
|
+
asap,
|
|
777
|
+
isIterable
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
export { utils as default };
|