@env-hopper/frontend-core 2.0.1-alpha → 2.0.1-alpha.1
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/esm/App.d.ts +1 -1
- package/dist/esm/App.js.map +1 -1
- package/dist/esm/__tests__/integration/appQuickJumpBar.integration.test.d.ts +1 -0
- package/dist/esm/__tests__/integration/factories/BackendMagazine.d.ts +887 -0
- package/dist/esm/__tests__/integration/factories/DbMagazine.d.ts +7 -0
- package/dist/esm/__tests__/integration/factories/app.d.ts +2 -0
- package/dist/esm/__tests__/integration/factories/env.d.ts +2 -0
- package/dist/esm/__tests__/integration/factories/mapper.d.ts +39 -0
- package/dist/esm/__tests__/integration/factories/resourceJump.d.ts +2 -0
- package/dist/esm/__tests__/integration/factories/simpleDSL.d.ts +889 -0
- package/dist/esm/__tests__/integration/factories/types.d.ts +12 -0
- package/dist/esm/__tests__/integration/helpers/renderWithProviders.d.ts +35 -0
- package/dist/esm/__tests__/integration/helpers/testHelpers.d.ts +6 -0
- package/dist/esm/__tests__/integration/helpers/uiHelpers.d.ts +30 -0
- package/dist/esm/__tests__/integration/quickSlots.integration.test.d.ts +1 -0
- package/dist/esm/__tests__/integration/resourceJump.integration.test.d.ts +1 -0
- package/dist/esm/__tests__/integration/setup/svgMock.d.ts +3 -0
- package/dist/esm/__tests__/integration/setup/testSetup.d.ts +0 -0
- package/dist/esm/__tests__/modules/fuzzyMatchLogic/testUtils.d.ts +3 -1
- package/dist/esm/__tests__/modules/resouceJump/helpers.test.d.ts +1 -0
- package/dist/esm/__tests__/modules/resouceJump/utils/mapToFlagshipResourceJumps.test.d.ts +1 -0
- package/dist/esm/__tests__/util/TestMagazine.d.ts +3 -0
- package/dist/esm/api/ApiQueryMagazine.d.ts +4 -4
- package/dist/esm/api/data/useQueryBootstrapConfig.d.ts +1 -1
- package/dist/esm/api/infra/createQueryClient.d.ts +3 -1
- package/dist/esm/api/infra/createQueryClient.js +5 -3
- package/dist/esm/api/infra/createQueryClient.js.map +1 -1
- package/dist/esm/api/infra/trpc.d.ts +1236 -5
- package/dist/esm/api/unsorted/appCatalogFetcher.d.ts +10 -0
- package/dist/esm/api/unsorted/appCatalogFetcher.js +18 -0
- package/dist/esm/api/unsorted/appCatalogFetcher.js.map +1 -0
- package/dist/esm/api/unsorted/createCachingFetcher.d.ts +23 -0
- package/dist/esm/api/unsorted/createCachingFetcher.js +93 -0
- package/dist/esm/api/unsorted/createCachingFetcher.js.map +1 -0
- package/dist/esm/api/unsorted/indexDataFetcher.d.ts +3 -6
- package/dist/esm/api/unsorted/resourceJumpsExtendedFetcher.d.ts +9 -0
- package/dist/esm/api/unsorted/resourceJumpsExtendedFetcher.js +18 -0
- package/dist/esm/api/unsorted/resourceJumpsExtendedFetcher.js.map +1 -0
- package/dist/esm/api/unsorted/resourceJumpsFetcher.d.ts +10 -0
- package/dist/esm/api/unsorted/resourceJumpsFetcher.js +18 -0
- package/dist/esm/api/unsorted/resourceJumpsFetcher.js.map +1 -0
- package/dist/esm/appPropsFactory.js +8 -6
- package/dist/esm/appPropsFactory.js.map +1 -1
- package/dist/esm/assets/app-catalog.svg.js +6 -0
- package/dist/esm/assets/app-catalog.svg.js.map +1 -0
- package/dist/esm/components/IconPickerDialog.d.ts +8 -0
- package/dist/esm/components/IconPickerDialog.js +98 -0
- package/dist/esm/components/IconPickerDialog.js.map +1 -0
- package/dist/esm/components/IconPickerField.d.ts +9 -0
- package/dist/esm/components/IconPickerField.js +76 -0
- package/dist/esm/components/IconPickerField.js.map +1 -0
- package/dist/esm/components/ThemeSwitcher.js +1 -1
- package/dist/esm/components/ThemeSwitcher.js.map +1 -1
- package/dist/esm/lib/getAppMode.d.ts +2 -0
- package/dist/esm/modules/admin-base/components/AdminChat.d.ts +1 -0
- package/dist/esm/modules/admin-base/components/AdminChat.js +82 -0
- package/dist/esm/modules/admin-base/components/AdminChat.js.map +1 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.d.ts +5 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.js +78 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.js.map +1 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.d.ts +1 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.js +37 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.js.map +1 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.d.ts +8 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.js +27 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.js.map +1 -0
- package/dist/esm/modules/admin-base/index.d.ts +5 -0
- package/dist/esm/modules/admin-base/types/adminTypes.d.ts +10 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.d.ts +1 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js +204 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js.map +1 -0
- package/dist/esm/modules/appCatalog/AppCatalogEditDialog.d.ts +17 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.js +65 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.js.map +1 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.d.ts +15 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.js +155 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.js.map +1 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.d.ts +11 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.js +14 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.js.map +1 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.d.ts +5 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.js +20 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.js.map +1 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.d.ts +14 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.js +34 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.js.map +1 -0
- package/dist/esm/modules/appCatalog/index.d.ts +10 -0
- package/dist/esm/modules/appCatalog/routeLoader.d.ts +3 -0
- package/dist/esm/modules/appCatalog/routeLoader.js +7 -0
- package/dist/esm/modules/appCatalog/routeLoader.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.js +208 -0
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogFiltersCard.d.ts +9 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.d.ts +6 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js +111 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogTable.d.ts +5 -0
- package/dist/esm/modules/appCatalog/ui/grid/appCatalogUtils.d.ts +3 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.d.ts +9 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.js +28 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.d.ts +1 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js +68 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js.map +1 -0
- package/dist/esm/modules/auth/AuthContext.d.ts +38 -0
- package/dist/esm/modules/auth/AuthContext.js +80 -0
- package/dist/esm/modules/auth/AuthContext.js.map +1 -0
- package/dist/esm/modules/auth/AuthModalContext.d.ts +19 -0
- package/dist/esm/modules/auth/AuthModalContext.js +33 -0
- package/dist/esm/modules/auth/AuthModalContext.js.map +1 -0
- package/dist/esm/modules/auth/ProtectedContent.d.ts +19 -0
- package/dist/esm/modules/auth/authClient.d.ts +704 -0
- package/dist/esm/modules/auth/authClient.js +8 -0
- package/dist/esm/modules/auth/authClient.js.map +1 -0
- package/dist/esm/modules/auth/index.d.ts +5 -0
- package/dist/esm/modules/auth/ui/LoginModal.d.ts +6 -0
- package/dist/esm/modules/auth/ui/LoginModal.js +22 -0
- package/dist/esm/modules/auth/ui/LoginModal.js.map +1 -0
- package/dist/esm/modules/auth/ui/LoginPage.d.ts +5 -0
- package/dist/esm/modules/auth/ui/LoginPage.js +50 -0
- package/dist/esm/modules/auth/ui/LoginPage.js.map +1 -0
- package/dist/esm/modules/auth/useAuthActions.d.ts +17 -0
- package/dist/esm/modules/auth/useAuthActions.js +62 -0
- package/dist/esm/modules/auth/useAuthActions.js.map +1 -0
- package/dist/esm/modules/config/BootstrapConfigContext.d.ts +1 -1
- package/dist/esm/modules/config/BootstrapConfigContext.js +2 -12
- package/dist/esm/modules/config/BootstrapConfigContext.js.map +1 -1
- package/dist/esm/modules/config/HealthStateContext.d.ts +16 -0
- package/dist/esm/modules/crossCuttingParams/CrossCuttingParamsContext.d.ts +16 -0
- package/dist/esm/modules/crossCuttingParams/CrossCuttingParamsContext.js +44 -0
- package/dist/esm/modules/crossCuttingParams/CrossCuttingParamsContext.js.map +1 -0
- package/dist/esm/modules/crossCuttingParams/types.d.ts +13 -0
- package/dist/esm/modules/crossCuttingParams/utils/routeLoaderMapper.d.ts +2 -0
- package/dist/esm/modules/environment/{EnvironmentContext.d.ts → context/EnvironmentContext.d.ts} +7 -4
- package/dist/esm/modules/environment/context/EnvironmentContext.js +69 -0
- package/dist/esm/modules/environment/context/EnvironmentContext.js.map +1 -0
- package/dist/esm/modules/environment/context/useEnvironmentHistory.d.ts +5 -0
- package/dist/esm/modules/environment/context/useEnvironmentHistory.js +26 -0
- package/dist/esm/modules/environment/context/useEnvironmentHistory.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/autoCompleteFilter.js +48 -8
- package/dist/esm/modules/fuzzyMatchLogic/autoCompleteFilter.js.map +1 -1
- package/dist/esm/modules/fuzzyMatchLogic/features/positionBonus.d.ts +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/fixLayout.js +23 -0
- package/dist/esm/modules/fuzzyMatchLogic/fixLayout.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/postFiltration.d.ts +16 -0
- package/dist/esm/modules/fuzzyMatchLogic/tokenize.js +29 -0
- package/dist/esm/modules/fuzzyMatchLogic/tokenize.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/types.d.ts +1 -0
- package/dist/esm/modules/icons/IconManagementPage.d.ts +1 -0
- package/dist/esm/modules/icons/IconManagementPage.js +178 -0
- package/dist/esm/modules/icons/IconManagementPage.js.map +1 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.d.ts +1 -6
- package/dist/esm/modules/pluginCore/PluginManagerContext.js +13 -46
- package/dist/esm/modules/pluginCore/PluginManagerContext.js.map +1 -1
- package/dist/esm/modules/pluginCore/makePluginManagerContext.d.ts +1 -4
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js +2 -20
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js.map +1 -1
- package/dist/esm/modules/pluginCore/types.d.ts +0 -12
- package/dist/esm/modules/resourceJump/api/ApiQueryMagazineResourceJump.d.ts +45 -0
- package/dist/esm/modules/resourceJump/api/ApiQueryMagazineResourceJump.js +42 -0
- package/dist/esm/modules/resourceJump/api/ApiQueryMagazineResourceJump.js.map +1 -0
- package/dist/esm/modules/resourceJump/context/ResourceJumpContext.d.ts +34 -0
- package/dist/esm/modules/resourceJump/context/ResourceJumpContext.js +280 -0
- package/dist/esm/modules/resourceJump/context/ResourceJumpContext.js.map +1 -0
- package/dist/esm/modules/resourceJump/context/useResouceJumpHistory.d.ts +8 -0
- package/dist/esm/modules/resourceJump/context/useResouceJumpHistory.js +86 -0
- package/dist/esm/modules/resourceJump/context/useResouceJumpHistory.js.map +1 -0
- package/dist/esm/modules/resourceJump/routeLoader.js +19 -31
- package/dist/esm/modules/resourceJump/routeLoader.js.map +1 -1
- package/dist/esm/modules/resourceJump/types.d.ts +22 -6
- package/dist/esm/modules/resourceJump/ui/AppSwitcher.d.ts +4 -0
- package/dist/esm/modules/resourceJump/ui/CredentialsWidget.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/EnvSwitcher.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/JumpALink.d.ts +2 -5
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.d.ts +3 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableSingleParam.d.ts +3 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableSingleParam.js +42 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableSingleParam.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableTopParam.d.ts +8 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableTopParam.js +26 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableTopParam.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ResolvableParameterSelector.d.ts +7 -0
- package/dist/esm/modules/resourceJump/ui/ResolvableParameters.d.ts +5 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpBreadcrumbs.d.ts +4 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpBreadcrumbs.js +59 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpBreadcrumbs.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpButton.d.ts +13 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpButton.js +52 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpButton.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpMockTable.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpMockTable.js +180 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpMockTable.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ShareLinkButton.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/ShareLinkButton.js +84 -0
- package/dist/esm/modules/resourceJump/ui/ShareLinkButton.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/SmoothSwitcher.d.ts +10 -0
- package/dist/esm/modules/resourceJump/ui/TopQuickJump.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/appCatalog/AppCatalogFiltersCard.d.ts +9 -0
- package/dist/esm/modules/resourceJump/ui/appCatalog/AppCatalogGrid.d.ts +6 -0
- package/dist/esm/modules/resourceJump/ui/appCatalog/AppCatalogTable.d.ts +6 -0
- package/dist/esm/modules/resourceJump/ui/appCatalog/appCatalogUtils.d.ts +2 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/AppAutocomplete.d.ts +11 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/CmdKQuickSearchDialog.d.ts +5 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/CommandPalette.d.ts +18 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/CommandPalette.js +35 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/CommandPalette.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/EnvAutocomplete.d.ts +11 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/EnvAutocomplete.js +201 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/EnvAutocomplete.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearch.d.ts +3 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearch.js +101 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearch.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearchContext.d.ts +20 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearchContext.js +40 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearchContext.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/highlightText.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/highlightText.js +13 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/highlightText.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/types.d.ts +6 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/useCmdkDriver.d.ts +8 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/useQuickSearchLogic.d.ts +6 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/useQuickSearchLogic.js +69 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/useQuickSearchLogic.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/layout/CenterColumn.d.ts +3 -0
- package/dist/esm/modules/resourceJump/ui/layout/CenterColumn.js +8 -0
- package/dist/esm/modules/resourceJump/ui/layout/CenterColumn.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/layout/LeftColumn.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/layout/ResourceJumpLayout.d.ts +11 -0
- package/dist/esm/modules/resourceJump/ui/layout/ResourceJumpLayout.js +39 -0
- package/dist/esm/modules/resourceJump/ui/layout/ResourceJumpLayout.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/layout/RightColumn.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/miniEnvSelector/MiniEnvSelectorPopover.d.ts +7 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppCatalog.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppCatalog.js +64 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppCatalog.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPage.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPage.js +17 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPage.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageFlagship.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageFlagship.js +94 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageFlagship.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageRegular.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageRegular.js +16 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageRegular.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/DashboardPage.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/DashboardPage.js +15 -0
- package/dist/esm/modules/resourceJump/ui/pages/DashboardPage.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvCatalog.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvCatalog.js +48 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvCatalog.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvPage.d.ts +10 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvPage.js +83 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvPage.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/HomePage.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/HomePage.js +36 -0
- package/dist/esm/modules/resourceJump/ui/pages/HomePage.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/widgets/VersionWidget.d.ts +5 -0
- package/dist/esm/modules/resourceJump/utils/buildJumpUrl.d.ts +2 -0
- package/dist/esm/modules/resourceJump/utils/buildJumpUrl.js +28 -0
- package/dist/esm/modules/resourceJump/utils/buildJumpUrl.js.map +1 -0
- package/dist/esm/modules/resourceJump/{findBestMatchByUrl.d.ts → utils/findBestMatchByUrl.d.ts} +4 -4
- package/dist/esm/modules/resourceJump/{helpers.d.ts → utils/helpers.d.ts} +8 -4
- package/dist/esm/modules/resourceJump/utils/helpers.js +30 -0
- package/dist/esm/modules/resourceJump/utils/helpers.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/mapToFlagshipResourceJumps.d.ts +12 -0
- package/dist/esm/modules/resourceJump/utils/mapToFlagshipResourceJumps.js +38 -0
- package/dist/esm/modules/resourceJump/utils/mapToFlagshipResourceJumps.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/mapToResouceJumpUis.d.ts +4 -0
- package/dist/esm/modules/resourceJump/utils/mapToResouceJumpUis.js +17 -0
- package/dist/esm/modules/resourceJump/utils/mapToResouceJumpUis.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/statistics/statisticsHelpers.d.ts +8 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useEnvStatistics.d.ts +2 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useEnvStatistics.js +25 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useEnvStatistics.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantLateParamSlug.d.ts +1 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantLateParamSlug.js +12 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantLateParamSlug.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantQuickEnvs.d.ts +2 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantQuickFlagships.d.ts +2 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.1.2/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +60 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.1.2/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2/node_modules/@dnd-kit/core/dist/core.esm.js +3055 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2/node_modules/@dnd-kit/core/dist/core.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2__react@19.1.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +593 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2__react@19.1.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.1.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +302 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.1.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/dist/resolvers.js +34 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/dist/resolvers.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/zod/dist/zod.js +94 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/zod/dist/zod.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtools.js +72 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtools.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtoolsPanel.js +44 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtoolsPanel.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/new-process-route-tree.js +95 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/new-process-route-tree.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/path.js +107 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/path.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/root.js +5 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/root.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/BaseTanStackRouterDevtoolsPanel-DxaCaP75.js +1963 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/BaseTanStackRouterDevtoolsPanel-DxaCaP75.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/FloatingTanStackRouterDevtools-CaypUmOS.js +284 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/FloatingTanStackRouterDevtools-CaypUmOS.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/index-5jfj03XJ.js +1855 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/index-5jfj03XJ.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js +56 -0
- package/dist/esm/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-hook-form@7.71.1_react@19.1.2/node_modules/react-hook-form/dist/index.esm.js +1894 -0
- package/dist/esm/node_modules/.pnpm/react-hook-form@7.71.1_react@19.1.2/node_modules/react-hook-form/dist/index.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +17 -0
- package/dist/esm/node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/errors.js +45 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/errors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/iso.js +44 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/iso.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/parse.js +30 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/parse.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js +622 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js +492 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js +244 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js +75 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js +38 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js +73 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js +270 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js +100 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js +78 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.js +52 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js +1225 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js +363 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js +407 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js +9 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js.map +1 -0
- package/dist/esm/packages/shared-core/dist/esm/defaultWithOverridesAndTemplate.js +35 -0
- package/dist/esm/packages/shared-core/dist/esm/defaultWithOverridesAndTemplate.js.map +1 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.d.ts +3 -5
- package/dist/esm/routeTree.gen.d.ts +250 -91
- package/dist/esm/routeTree.gen.js +122 -50
- package/dist/esm/routeTree.gen.js.map +1 -1
- package/dist/esm/routes/__root.d.ts +1 -1
- package/dist/esm/routes/__root.js +6 -5
- package/dist/esm/routes/__root.js.map +1 -1
- package/dist/esm/routes/_layout/app.$appSlug.index.d.ts +1 -0
- package/dist/esm/routes/_layout/app._appSlug.index.js +13 -0
- package/dist/esm/routes/_layout/app._appSlug.index.js.map +1 -0
- package/dist/esm/routes/_layout/app._appSlug.index2.js +16 -0
- package/dist/esm/routes/_layout/app._appSlug.index2.js.map +1 -0
- package/dist/esm/routes/_layout/apps.index.d.ts +1 -0
- package/dist/esm/routes/_layout/apps.index.js +13 -0
- package/dist/esm/routes/_layout/apps.index.js.map +1 -0
- package/dist/esm/routes/_layout/apps.index2.js +16 -0
- package/dist/esm/routes/_layout/apps.index2.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.apps.index.d.ts +4 -0
- package/dist/esm/routes/_layout/catalog.apps.index.js +18 -0
- package/dist/esm/routes/_layout/catalog.apps.index.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.apps.index2.js +15 -0
- package/dist/esm/routes/_layout/catalog.apps.index2.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.index.d.ts +1 -0
- package/dist/esm/routes/_layout/catalog.index.js +15 -0
- package/dist/esm/routes/_layout/catalog.index.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.index2.js +16 -0
- package/dist/esm/routes/_layout/catalog.index2.js.map +1 -0
- package/dist/esm/routes/_layout/dashboard.index.d.ts +1 -0
- package/dist/esm/routes/_layout/dashboard.index.js +13 -0
- package/dist/esm/routes/_layout/dashboard.index.js.map +1 -0
- package/dist/esm/routes/_layout/dashboard.index2.js +16 -0
- package/dist/esm/routes/_layout/dashboard.index2.js.map +1 -0
- package/dist/esm/routes/_layout/env.$envSlug.app.$appSlug.index.d.ts +1 -0
- package/dist/esm/routes/_layout/env.$envSlug.index.d.ts +1 -0
- package/dist/esm/routes/_layout/env._envSlug.app._appSlug.index.js +13 -0
- package/dist/esm/routes/_layout/env._envSlug.app._appSlug.index.js.map +1 -0
- package/dist/esm/routes/_layout/env._envSlug.app._appSlug.index2.js +16 -0
- package/dist/esm/routes/_layout/env._envSlug.app._appSlug.index2.js.map +1 -0
- package/dist/esm/routes/_layout/env._envSlug.index.js +13 -0
- package/dist/esm/routes/_layout/env._envSlug.index.js.map +1 -0
- package/dist/esm/routes/_layout/env._envSlug.index2.js +16 -0
- package/dist/esm/routes/_layout/env._envSlug.index2.js.map +1 -0
- package/dist/esm/routes/_layout/envs.index.d.ts +1 -0
- package/dist/esm/routes/_layout/envs.index.js +13 -0
- package/dist/esm/routes/_layout/envs.index.js.map +1 -0
- package/dist/esm/routes/_layout/envs.index2.js +16 -0
- package/dist/esm/routes/_layout/envs.index2.js.map +1 -0
- package/dist/esm/routes/_layout/index.d.ts +27 -1
- package/dist/esm/routes/_layout/index.js +14 -10
- package/dist/esm/routes/_layout/index.js.map +1 -1
- package/dist/esm/routes/_layout/index2.js +24 -0
- package/dist/esm/routes/_layout/index2.js.map +1 -0
- package/dist/esm/routes/_layout/login.d.ts +1 -0
- package/dist/esm/routes/_layout/login.js +9 -0
- package/dist/esm/routes/_layout/login.js.map +1 -0
- package/dist/esm/routes/_layout/login2.js +16 -0
- package/dist/esm/routes/_layout/login2.js.map +1 -0
- package/dist/esm/routes/_layout.d.ts +1 -1
- package/dist/esm/routes/_layout.js +3 -6
- package/dist/esm/routes/_layout.js.map +1 -1
- package/dist/esm/routes/_layout2.js +9 -0
- package/dist/esm/routes/_layout2.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/$id.d.ts +5 -0
- package/dist/esm/routes/admin/app-for-catalog/_id.js +47 -0
- package/dist/esm/routes/admin/app-for-catalog/_id.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/_id2.js +269 -0
- package/dist/esm/routes/admin/app-for-catalog/_id2.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index.d.ts +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index.js +9 -0
- package/dist/esm/routes/admin/app-for-catalog/index.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index2.js +12 -0
- package/dist/esm/routes/admin/app-for-catalog/index2.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog.d.ts +1 -0
- package/dist/esm/routes/admin/app-for-catalog.js +14 -0
- package/dist/esm/routes/admin/app-for-catalog.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog2.js +9 -0
- package/dist/esm/routes/admin/app-for-catalog2.js.map +1 -0
- package/dist/esm/routes/admin/chat.d.ts +1 -0
- package/dist/esm/routes/admin/chat.js +14 -0
- package/dist/esm/routes/admin/chat.js.map +1 -0
- package/dist/esm/routes/admin/chat2.js +9 -0
- package/dist/esm/routes/admin/chat2.js.map +1 -0
- package/dist/esm/routes/admin/icons.d.ts +1 -0
- package/dist/esm/routes/admin/icons.js +14 -0
- package/dist/esm/routes/admin/icons.js.map +1 -0
- package/dist/esm/routes/admin/icons2.js +12 -0
- package/dist/esm/routes/admin/icons2.js.map +1 -0
- package/dist/esm/routes/admin/index.d.ts +1 -0
- package/dist/esm/routes/admin/index.js +9 -0
- package/dist/esm/routes/admin/index.js.map +1 -0
- package/dist/esm/routes/admin/index2.js +9 -0
- package/dist/esm/routes/admin/index2.js.map +1 -0
- package/dist/esm/routes/admin.d.ts +1 -0
- package/dist/esm/routes/admin.js +14 -0
- package/dist/esm/routes/admin.js.map +1 -0
- package/dist/esm/routes/admin2.js +18 -0
- package/dist/esm/routes/admin2.js.map +1 -0
- package/dist/esm/routes/auth.callback.d.ts +4 -0
- package/dist/esm/routes/auth.callback.js +13 -0
- package/dist/esm/routes/auth.callback.js.map +1 -0
- package/dist/esm/routes/auth.callback2.js +49 -0
- package/dist/esm/routes/auth.callback2.js.map +1 -0
- package/dist/esm/types/ehTypes.d.ts +2 -5
- package/dist/esm/types/tanstackQuery.d.ts +2 -0
- package/dist/esm/types/types.d.ts +12 -3
- package/dist/esm/types/userBehaviourTypes.d.ts +1 -1
- package/dist/esm/ui/autocomplete.d.ts +29 -0
- package/dist/esm/ui/autocomplete.js +164 -0
- package/dist/esm/ui/autocomplete.js.map +1 -0
- package/dist/esm/ui/badge.js +27 -0
- package/dist/esm/ui/badge.js.map +1 -0
- package/dist/esm/ui/breadcrumb.d.ts +11 -0
- package/dist/esm/ui/breadcrumb.js +84 -0
- package/dist/esm/ui/breadcrumb.js.map +1 -0
- package/dist/esm/ui/button-group.d.ts +11 -0
- package/dist/esm/ui/button-group.js +40 -0
- package/dist/esm/ui/button-group.js.map +1 -0
- package/dist/esm/ui/button.d.ts +13 -0
- package/dist/esm/ui/button.js +53 -0
- package/dist/esm/ui/button.js.map +1 -0
- package/dist/esm/ui/card.d.ts +9 -0
- package/dist/esm/ui/card.js +66 -0
- package/dist/esm/ui/card.js.map +1 -0
- package/dist/esm/ui/checkbox.d.ts +4 -0
- package/dist/esm/ui/checkbox.js +32 -0
- package/dist/esm/ui/checkbox.js.map +1 -0
- package/dist/esm/{components/ui → ui}/collapsible.d.ts +1 -1
- package/dist/esm/ui/collapsible.js +47 -0
- package/dist/esm/ui/collapsible.js.map +1 -0
- package/dist/esm/ui/command.d.ts +20 -0
- package/dist/esm/ui/command.js +168 -0
- package/dist/esm/ui/command.js.map +1 -0
- package/dist/esm/ui/components/Breadcrumbs.d.ts +19 -0
- package/dist/esm/ui/components/Breadcrumbs.js +36 -0
- package/dist/esm/ui/components/Breadcrumbs.js.map +1 -0
- package/dist/esm/ui/components/commandInput/EhBaseSelector.d.ts +0 -4
- package/dist/esm/ui/components/contextDebug.js +54 -6
- package/dist/esm/ui/components/contextDebug.js.map +1 -1
- package/dist/esm/ui/components/error/DefaultErrorComponent.d.ts +2 -1
- package/dist/esm/ui/components/error/DefaultErrorComponent.js +75 -8
- package/dist/esm/ui/components/error/DefaultErrorComponent.js.map +1 -1
- package/dist/esm/ui/components/error/RootErrorPage.d.ts +2 -0
- package/dist/esm/ui/components/error/RootErrorPage.js +9 -0
- package/dist/esm/ui/components/error/RootErrorPage.js.map +1 -0
- package/dist/esm/ui/components/footer/Footer.js +33 -30
- package/dist/esm/ui/components/footer/Footer.js.map +1 -1
- package/dist/esm/ui/components/header/Header.d.ts +5 -0
- package/dist/esm/ui/components/header/Header.js +111 -0
- package/dist/esm/ui/components/header/Header.js.map +1 -0
- package/dist/esm/ui/components/quickBar/AppQuickJumpBar.d.ts +5 -0
- package/dist/esm/ui/components/quickBar/QuickJumpButton.d.ts +7 -0
- package/dist/esm/ui/components/quickBar/ResourceJumpGroupViewer.d.ts +5 -0
- package/dist/esm/ui/components/quickBar/arrangeGridItems.d.ts +16 -0
- package/dist/esm/{components/ui → ui}/dialog.d.ts +3 -9
- package/dist/esm/ui/dialog.js +137 -0
- package/dist/esm/ui/dialog.js.map +1 -0
- package/dist/esm/{components/ui → ui}/dropdown-menu.d.ts +2 -2
- package/dist/esm/ui/dropdown-menu.js +79 -0
- package/dist/esm/ui/dropdown-menu.js.map +1 -0
- package/dist/esm/ui/empty.d.ts +11 -0
- package/dist/esm/ui/empty.js +103 -0
- package/dist/esm/ui/empty.js.map +1 -0
- package/dist/esm/ui/error/NotFoundError.js +4 -3
- package/dist/esm/ui/error/NotFoundError.js.map +1 -1
- package/dist/esm/ui/form.d.ts +56 -0
- package/dist/esm/ui/form.js +134 -0
- package/dist/esm/ui/form.js.map +1 -0
- package/dist/esm/ui/input-group.d.ts +16 -0
- package/dist/esm/ui/input-group.js +125 -0
- package/dist/esm/ui/input-group.js.map +1 -0
- package/dist/esm/ui/input.d.ts +3 -0
- package/dist/esm/ui/input.js +22 -0
- package/dist/esm/ui/input.js.map +1 -0
- package/dist/esm/ui/label.d.ts +4 -0
- package/dist/esm/ui/label.js +23 -0
- package/dist/esm/ui/label.js.map +1 -0
- package/dist/esm/ui/layout/LoadingScreen.d.ts +3 -1
- package/dist/esm/ui/layout/LoadingScreen.js +47 -7
- package/dist/esm/ui/layout/LoadingScreen.js.map +1 -1
- package/dist/esm/ui/layout/MainLayout.d.ts +3 -1
- package/dist/esm/ui/layout/MainLayout.js +5 -6
- package/dist/esm/ui/layout/MainLayout.js.map +1 -1
- package/dist/esm/ui/layout/TopLevelProviders.d.ts +5 -0
- package/dist/esm/ui/layout/TopLevelProviders.js +39 -18
- package/dist/esm/ui/layout/TopLevelProviders.js.map +1 -1
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.d.ts +10 -0
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.js +24 -0
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.js.map +1 -0
- package/dist/esm/ui/link.d.ts +10 -0
- package/dist/esm/ui/link.js +28 -0
- package/dist/esm/ui/link.js.map +1 -0
- package/dist/esm/ui/linkExternal.d.ts +8 -0
- package/dist/esm/ui/linkExternal.js +26 -0
- package/dist/esm/ui/linkExternal.js.map +1 -0
- package/dist/esm/ui/radio-group.d.ts +5 -0
- package/dist/esm/ui/scroll-area.js +62 -0
- package/dist/esm/ui/scroll-area.js.map +1 -0
- package/dist/esm/ui/search-input-with-shortcut.d.ts +25 -0
- package/dist/esm/ui/select.d.ts +15 -0
- package/dist/esm/ui/select.js +138 -0
- package/dist/esm/ui/select.js.map +1 -0
- package/dist/esm/{components/ui → ui}/separator.js +1 -1
- package/dist/esm/ui/separator.js.map +1 -0
- package/dist/esm/ui/shortcut-button.d.ts +24 -0
- package/dist/esm/ui/shortcut-button.js +57 -0
- package/dist/esm/ui/shortcut-button.js.map +1 -0
- package/dist/esm/ui/skeleton.d.ts +2 -0
- package/dist/esm/ui/skeleton.js +16 -0
- package/dist/esm/ui/skeleton.js.map +1 -0
- package/dist/esm/ui/spinner.d.ts +2 -0
- package/dist/esm/ui/spinner.js +18 -0
- package/dist/esm/ui/spinner.js.map +1 -0
- package/dist/esm/ui/table.d.ts +10 -0
- package/dist/esm/ui/table.js +87 -0
- package/dist/esm/ui/table.js.map +1 -0
- package/dist/esm/ui/textarea.d.ts +3 -0
- package/dist/esm/ui/textarea.js +19 -0
- package/dist/esm/ui/textarea.js.map +1 -0
- package/dist/esm/ui/tooltip.d.ts +7 -0
- package/dist/esm/userDb/EhDb.d.ts +16 -2
- package/dist/esm/userDb/EhDb.js +28 -2
- package/dist/esm/userDb/EhDb.js.map +1 -1
- package/dist/esm/util/availabilityMatrixUtils.d.ts +2 -2
- package/dist/esm/util/createEhRouter.d.ts +1 -1
- package/dist/esm/util/createEhRouter.js +4 -1
- package/dist/esm/util/createEhRouter.js.map +1 -1
- package/dist/esm/util/error-utils.d.ts +6 -0
- package/dist/esm/util/error-utils.js +28 -0
- package/dist/esm/util/error-utils.js.map +1 -0
- package/dist/esm/util/reactQueryUtils.d.ts +4 -0
- package/dist/esm/util/reactQueryUtils.js +7 -0
- package/dist/esm/util/reactQueryUtils.js.map +1 -1
- package/dist/esm/util/route-utils.d.ts +23 -2
- package/dist/esm/util/route-utils.js +11 -37
- package/dist/esm/util/route-utils.js.map +1 -1
- package/dist/esm/util/slug-utils.d.ts +12 -0
- package/dist/index.css +225 -0
- package/dist/public/app-catalog-16x16.png +0 -0
- package/dist/public/app-catalog-192x192.png +0 -0
- package/dist/public/app-catalog-32x32.png +0 -0
- package/dist/public/app-catalog-48x48.png +0 -0
- package/dist/public/app-catalog-512x512.png +0 -0
- package/dist/public/app-catalog-square.svg +160 -0
- package/dist/public/app-catalog.png +0 -0
- package/dist/public/app-catalog.svg +198 -0
- package/dist/public/favicon-app-catalog.ico +0 -0
- package/package.json +55 -16
- package/public/app-catalog-16x16.png +0 -0
- package/public/app-catalog-192x192.png +0 -0
- package/public/app-catalog-32x32.png +0 -0
- package/public/app-catalog-48x48.png +0 -0
- package/public/app-catalog-512x512.png +0 -0
- package/public/app-catalog-square.svg +160 -0
- package/public/app-catalog.png +0 -0
- package/public/app-catalog.svg +198 -0
- package/public/apple-touch-180x180.png +0 -0
- package/public/env-hopper-16x16.png +0 -0
- package/public/env-hopper-192x192.png +0 -0
- package/public/env-hopper-32x32.png +0 -0
- package/public/env-hopper-48x48.png +0 -0
- package/public/env-hopper-512x512.png +0 -0
- package/public/env-hopper-square.svg +114 -0
- package/public/favicon-app-catalog.ico +0 -0
- package/public/favicon.ico +0 -0
- package/public/robots.txt +2 -0
- package/src/App.tsx +1 -1
- package/src/__tests__/integration/appQuickJumpBar.integration.test.tsx +25 -0
- package/src/__tests__/integration/factories/BackendMagazine.ts +14 -0
- package/src/__tests__/integration/factories/DbMagazine.ts +13 -0
- package/src/__tests__/integration/factories/app.ts +14 -0
- package/src/__tests__/integration/factories/env.ts +14 -0
- package/src/__tests__/integration/factories/mapper.ts +253 -0
- package/src/__tests__/integration/factories/resourceJump.ts +15 -0
- package/src/__tests__/integration/factories/simpleDSL.ts +8 -0
- package/src/__tests__/integration/factories/types.ts +18 -0
- package/src/__tests__/integration/helpers/renderWithProviders.tsx +182 -0
- package/src/__tests__/integration/helpers/testHelpers.ts +24 -0
- package/src/__tests__/integration/helpers/uiHelpers.ts +166 -0
- package/src/__tests__/integration/quickSlots.integration.test.tsx +17 -0
- package/src/__tests__/integration/resourceJump.integration.test.tsx +184 -0
- package/src/__tests__/integration/setup/svgMock.tsx +10 -0
- package/src/__tests__/integration/setup/testSetup.ts +35 -0
- package/src/__tests__/modules/fuzzyMatchLogic/autoCompleteFilter.test.ts +64 -50
- package/src/__tests__/modules/fuzzyMatchLogic/testUtils.ts +10 -1
- package/src/__tests__/modules/resouceJump/findBestMatchByUrl.test.ts +15 -17
- package/src/__tests__/modules/resouceJump/helpers.test.ts +55 -0
- package/src/__tests__/modules/resouceJump/utils/mapToFlagshipResourceJumps.test.ts +58 -0
- package/src/__tests__/util/TestMagazine.ts +24 -0
- package/src/api/ApiQueryMagazine.ts +2 -2
- package/src/api/data/useQueryBootstrapConfig.ts +7 -6
- package/src/api/infra/createQueryClient.ts +5 -1
- package/src/api/unsorted/appCatalogFetcher.ts +32 -0
- package/src/api/unsorted/createCachingFetcher.ts +159 -0
- package/src/api/unsorted/indexDataFetcher.ts +13 -34
- package/src/api/unsorted/resourceJumpsExtendedFetcher.ts +33 -0
- package/src/api/unsorted/resourceJumpsFetcher.ts +32 -0
- package/src/appPropsFactory.ts +8 -6
- package/src/assets/app-catalog.svg +198 -0
- package/src/components/IconPickerDialog.tsx +136 -0
- package/src/components/IconPickerField.tsx +88 -0
- package/src/components/ThemeSwitcher.tsx +1 -1
- package/src/index.css +14 -0
- package/src/lib/getAppMode.ts +5 -0
- package/src/main.tsx +9 -5
- package/src/modules/admin-base/components/AdminChat.tsx +122 -0
- package/src/modules/admin-base/components/AdminLayout.tsx +105 -0
- package/src/modules/admin-base/components/AdminWelcome.tsx +52 -0
- package/src/modules/admin-base/context/AdminConfigContext.tsx +36 -0
- package/src/modules/admin-base/index.ts +16 -0
- package/src/modules/admin-base/types/adminTypes.ts +11 -0
- package/src/modules/appCatalog/AppCatalogAdminPage.tsx +281 -0
- package/src/modules/appCatalog/AppCatalogEditDialog.tsx +268 -0
- package/src/modules/appCatalog/ScreenshotItem.tsx +63 -0
- package/src/modules/appCatalog/ScreenshotManager.tsx +193 -0
- package/src/modules/appCatalog/api/ApiQueryMagazineAppCatalog.ts +12 -0
- package/src/modules/appCatalog/catalogRouteLoader.ts +28 -0
- package/src/modules/appCatalog/context/AppCatalogContext.tsx +46 -0
- package/src/modules/appCatalog/index.ts +16 -0
- package/src/modules/appCatalog/routeLoader.ts +9 -0
- package/src/modules/appCatalog/ui/components/AppDetailModal.tsx +283 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogFiltersCard.tsx +79 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogGrid.tsx +160 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogTable.tsx +89 -0
- package/src/modules/appCatalog/ui/grid/appCatalogUtils.ts +30 -0
- package/src/modules/appCatalog/ui/layout/AppCatalogLayout.tsx +55 -0
- package/src/modules/appCatalog/ui/pages/AppCatalogPage.tsx +86 -0
- package/src/modules/auth/AuthContext.tsx +117 -0
- package/src/modules/auth/AuthModalContext.tsx +49 -0
- package/src/modules/auth/ProtectedContent.tsx +55 -0
- package/src/modules/auth/authClient.ts +9 -0
- package/src/modules/auth/index.ts +6 -0
- package/src/modules/auth/ui/LoginModal.tsx +36 -0
- package/src/modules/auth/ui/LoginPage.tsx +62 -0
- package/src/modules/auth/useAuthActions.ts +85 -0
- package/src/modules/config/BootstrapConfigContext.tsx +1 -1
- package/src/modules/config/HealthStateContext.tsx +47 -0
- package/src/modules/crossCuttingParams/CrossCuttingParamsContext.tsx +75 -0
- package/src/modules/crossCuttingParams/types.ts +18 -0
- package/src/modules/crossCuttingParams/utils/routeLoaderMapper.ts +7 -0
- package/src/modules/environment/{EnvironmentContext.tsx → context/EnvironmentContext.tsx} +37 -30
- package/src/modules/environment/context/useEnvironmentHistory.ts +30 -0
- package/src/modules/fuzzyMatchLogic/autoCompleteFilter.ts +86 -11
- package/src/modules/fuzzyMatchLogic/features/positionBonus.ts +29 -0
- package/src/modules/fuzzyMatchLogic/features/prefixFracTokenMiddles.ts +1 -1
- package/src/modules/fuzzyMatchLogic/postFiltration.ts +133 -0
- package/src/modules/fuzzyMatchLogic/scoring.ts +7 -1
- package/src/modules/fuzzyMatchLogic/tokenize.ts +12 -1
- package/src/modules/fuzzyMatchLogic/types.ts +1 -0
- package/src/modules/icons/IconManagementPage.tsx +237 -0
- package/src/modules/pluginCore/PluginManagerContext.tsx +14 -43
- package/src/modules/pluginCore/makePluginManagerContext.ts +3 -25
- package/src/modules/pluginCore/types.ts +0 -27
- package/src/modules/resourceJump/api/ApiQueryMagazineResourceJump.ts +52 -0
- package/src/modules/resourceJump/context/ResourceJumpContext.tsx +395 -0
- package/src/modules/resourceJump/context/useResouceJumpHistory.ts +117 -0
- package/src/modules/resourceJump/routeLoader.ts +28 -36
- package/src/modules/resourceJump/types.ts +25 -6
- package/src/modules/resourceJump/ui/AppSwitcher.tsx +22 -0
- package/src/modules/resourceJump/ui/CredentialsWidget.tsx +15 -0
- package/src/modules/resourceJump/ui/EnvSwitcher.tsx +17 -0
- package/src/modules/resourceJump/ui/JumpALink.tsx +3 -11
- package/src/modules/resourceJump/ui/JumpMainButton.tsx +85 -44
- package/src/modules/resourceJump/ui/LateResolvableSingleParam.tsx +47 -0
- package/src/modules/resourceJump/ui/LateResolvableTopParam.tsx +46 -0
- package/src/modules/resourceJump/ui/ResolvableParameterSelector.tsx +109 -0
- package/src/modules/resourceJump/ui/ResolvableParameters.tsx +26 -0
- package/src/modules/resourceJump/ui/ResourceJumpBreadcrumbs.tsx +89 -0
- package/src/modules/resourceJump/ui/ResourceJumpButton.tsx +75 -0
- package/src/modules/resourceJump/ui/ResourceJumpMockTable.tsx +249 -0
- package/src/modules/resourceJump/ui/ShareLinkButton.tsx +127 -0
- package/src/modules/resourceJump/ui/SmoothSwitcher.tsx +119 -0
- package/src/modules/resourceJump/ui/TopQuickJump.tsx +23 -0
- package/src/modules/resourceJump/ui/appCatalog/AppCatalogFiltersCard.tsx +79 -0
- package/src/modules/resourceJump/ui/appCatalog/AppCatalogGrid.tsx +30 -0
- package/src/modules/resourceJump/ui/appCatalog/AppCatalogTable.tsx +86 -0
- package/src/modules/resourceJump/ui/appCatalog/appCatalogUtils.ts +12 -0
- package/src/modules/resourceJump/ui/cmdk/AppAutocomplete.tsx +231 -0
- package/src/modules/resourceJump/ui/cmdk/CmdKQuickSearchDialog.scss +197 -0
- package/src/modules/resourceJump/ui/cmdk/CmdKQuickSearchDialog.tsx +297 -0
- package/src/modules/resourceJump/ui/cmdk/CommandPalette.tsx +51 -0
- package/src/modules/resourceJump/ui/cmdk/EnvAutocomplete.tsx +237 -0
- package/src/modules/resourceJump/ui/cmdk/QuickSearch.tsx +107 -0
- package/src/modules/resourceJump/ui/cmdk/QuickSearchContext.tsx +58 -0
- package/src/modules/resourceJump/ui/cmdk/highlightText.tsx +27 -0
- package/src/modules/resourceJump/ui/cmdk/types.ts +7 -0
- package/src/modules/resourceJump/ui/cmdk/useCmdkDriver.ts +40 -0
- package/src/modules/resourceJump/ui/cmdk/useQuickSearchLogic.ts +74 -0
- package/src/modules/resourceJump/ui/layout/CenterColumn.tsx +3 -0
- package/src/modules/resourceJump/ui/layout/LeftColumn.tsx +96 -0
- package/src/modules/resourceJump/ui/layout/ResourceJumpLayout.tsx +101 -0
- package/src/modules/resourceJump/ui/layout/RightColumn.tsx +14 -0
- package/src/modules/resourceJump/ui/miniEnvSelector/MiniEnvSelectorPopover.tsx +61 -0
- package/src/modules/resourceJump/ui/pages/AppCatalog.tsx +105 -0
- package/src/modules/resourceJump/ui/pages/AppPage.tsx +14 -0
- package/src/modules/resourceJump/ui/pages/AppPageFlagship.tsx +121 -0
- package/src/modules/resourceJump/ui/pages/AppPageRegular.tsx +16 -0
- package/src/modules/resourceJump/ui/pages/DashboardPage.tsx +13 -0
- package/src/modules/resourceJump/ui/pages/EnvCatalog.tsx +89 -0
- package/src/modules/resourceJump/ui/pages/EnvPage.tsx +195 -0
- package/src/modules/resourceJump/ui/pages/HomePage.tsx +35 -0
- package/src/modules/resourceJump/ui/widgets/VersionWidget.tsx +15 -0
- package/src/modules/resourceJump/utils/buildJumpUrl.ts +46 -0
- package/src/modules/resourceJump/{findBestMatchByUrl.ts → utils/findBestMatchByUrl.ts} +4 -4
- package/src/modules/resourceJump/{helpers.ts → utils/helpers.ts} +42 -9
- package/src/modules/resourceJump/utils/mapToFlagshipResourceJumps.ts +88 -0
- package/src/modules/resourceJump/utils/mapToResouceJumpUis.ts +20 -0
- package/src/modules/resourceJump/utils/statistics/statisticsHelpers.ts +24 -0
- package/src/modules/resourceJump/utils/statistics/useEnvStatistics.ts +32 -0
- package/src/modules/resourceJump/utils/statistics/useMostRelevantLateParamSlug.ts +10 -0
- package/src/modules/resourceJump/utils/statistics/useMostRelevantQuickEnvs.ts +21 -0
- package/src/modules/resourceJump/utils/statistics/useMostRelevantQuickFlagships.ts +36 -0
- package/src/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.ts +5 -34
- package/src/plugins/builtin/pageUrl/pageUrlTypes.ts +1 -2
- package/src/routeTree.gen.ts +353 -143
- package/src/routes/__root.tsx +10 -7
- package/src/routes/_layout/app.$appSlug.index.tsx +25 -0
- package/src/routes/_layout/apps.index.tsx +26 -0
- package/src/routes/_layout/catalog.apps.index.tsx +27 -0
- package/src/routes/_layout/catalog.index.tsx +29 -0
- package/src/routes/_layout/dashboard.index.tsx +26 -0
- package/src/routes/_layout/env.$envSlug.app.$appSlug.index.tsx +25 -0
- package/src/routes/_layout/env.$envSlug.index.tsx +25 -0
- package/src/routes/_layout/envs.index.tsx +26 -0
- package/src/routes/_layout/index.tsx +72 -5
- package/src/routes/_layout/login.tsx +20 -0
- package/src/routes/admin/app-for-catalog/$id.tsx +468 -0
- package/src/routes/admin/app-for-catalog/index.tsx +19 -0
- package/src/routes/admin/app-for-catalog.tsx +12 -0
- package/src/routes/admin/chat.tsx +13 -0
- package/src/routes/admin/icons.tsx +22 -0
- package/src/routes/admin/index.tsx +9 -0
- package/src/routes/admin.tsx +32 -0
- package/src/routes/auth.callback.tsx +74 -0
- package/src/types/ehTypes.ts +3 -5
- package/src/types/tanstackQuery.ts +2 -0
- package/src/types/types.ts +13 -3
- package/src/types/userBehaviourTypes.ts +1 -1
- package/src/types/vite-env.d.ts +1 -0
- package/src/ui/autocomplete.tsx +272 -0
- package/src/{components/ui → ui}/badge.tsx +2 -1
- package/src/ui/breadcrumb.tsx +106 -0
- package/src/ui/button-group.tsx +85 -0
- package/src/ui/button.tsx +66 -0
- package/src/ui/card.tsx +92 -0
- package/src/ui/checkbox.tsx +30 -0
- package/src/{components/ui → ui}/collapsible.tsx +17 -3
- package/src/ui/command.tsx +196 -0
- package/src/ui/components/ActionCard.tsx +2 -2
- package/src/ui/components/AppIcon.tsx +5 -5
- package/src/ui/components/Breadcrumbs.tsx +97 -0
- package/src/ui/components/commandInput/EhBaseSelector.tsx +0 -34
- package/src/ui/components/contextDebug.tsx +54 -5
- package/src/ui/components/error/DefaultErrorComponent.tsx +107 -31
- package/src/ui/components/error/{RooutErrorPage.tsx → RootErrorPage.tsx} +2 -2
- package/src/ui/components/footer/Footer.tsx +19 -0
- package/src/ui/components/header/Header.tsx +172 -0
- package/src/ui/components/quickBar/AppQuickJumpBar.tsx +176 -0
- package/src/ui/components/quickBar/QuickJumpButton.tsx +21 -0
- package/src/ui/components/quickBar/ResourceJumpGroupViewer.tsx +80 -0
- package/src/ui/components/quickBar/arrangeGridItems.ts +61 -0
- package/src/ui/components/widgets/CredentialsWidget.tsx +3 -3
- package/src/ui/components/widgets/VersionWidget.tsx +1 -1
- package/src/{components/ui → ui}/dialog.tsx +10 -51
- package/src/{components/ui → ui}/dropdown-menu.tsx +13 -15
- package/src/ui/empty.tsx +105 -0
- package/src/ui/error/NotFoundError.tsx +10 -7
- package/src/ui/form.tsx +188 -0
- package/src/ui/input-group.tsx +167 -0
- package/src/ui/input.tsx +21 -0
- package/src/ui/label.tsx +22 -0
- package/src/ui/layout/LoadingScreen.tsx +58 -8
- package/src/ui/layout/MainLayout.tsx +7 -7
- package/src/ui/layout/TopLevelProviders.tsx +51 -25
- package/src/ui/layout/TopLevelProvidersForErrors.tsx +34 -0
- package/src/ui/link.tsx +31 -0
- package/src/ui/linkExternal.tsx +26 -0
- package/src/ui/main/JumpTabContent.tsx +1 -1
- package/src/ui/radio-group.tsx +43 -0
- package/src/ui/search-input-with-shortcut.tsx +54 -0
- package/src/ui/select.tsx +185 -0
- package/src/ui/shortcut-button.tsx +84 -0
- package/src/ui/skeleton.tsx +13 -0
- package/src/ui/spinner.tsx +16 -0
- package/src/ui/table.tsx +114 -0
- package/src/{components/ui → ui}/tabs.tsx +2 -3
- package/src/ui/textarea.tsx +18 -0
- package/src/ui/tooltip.tsx +60 -0
- package/src/userDb/EhDb.ts +48 -5
- package/src/util/availabilityMatrixUtils.ts +2 -2
- package/src/util/{createEhRouter.ts → createEhRouter.tsx} +2 -0
- package/src/util/error-utils.ts +31 -0
- package/src/util/reactQueryUtils.ts +8 -0
- package/src/util/route-utils.ts +11 -34
- package/src/util/slug-utils.ts +17 -0
- package/dist/disable.well-known/appspecific/com.chrome.devtools.json +0 -6
- package/dist/esm/api/ApiQueryMagazine.js +0 -16
- package/dist/esm/api/ApiQueryMagazine.js.map +0 -1
- package/dist/esm/api/data/useQueryBootstrapConfig.js +0 -14
- package/dist/esm/api/data/useQueryBootstrapConfig.js.map +0 -1
- package/dist/esm/api/unsorted/indexDataFetcher.js +0 -35
- package/dist/esm/api/unsorted/indexDataFetcher.js.map +0 -1
- package/dist/esm/assets/env-hopper-logo.svg.js +0 -16
- package/dist/esm/assets/env-hopper-logo.svg.js.map +0 -1
- package/dist/esm/components/ui/breadcrumb.d.ts +0 -46
- package/dist/esm/components/ui/button.d.ts +0 -16
- package/dist/esm/components/ui/button.js +0 -52
- package/dist/esm/components/ui/button.js.map +0 -1
- package/dist/esm/components/ui/card.d.ts +0 -38
- package/dist/esm/components/ui/input.d.ts +0 -10
- package/dist/esm/components/ui/popover.js +0 -14
- package/dist/esm/components/ui/popover.js.map +0 -1
- package/dist/esm/components/ui/separator.js.map +0 -1
- package/dist/esm/modules/environment/ApiQueryMagazineEnvironment.js +0 -13
- package/dist/esm/modules/environment/ApiQueryMagazineEnvironment.js.map +0 -1
- package/dist/esm/modules/environment/EnvironmentContext.js +0 -67
- package/dist/esm/modules/environment/EnvironmentContext.js.map +0 -1
- package/dist/esm/modules/environment/ui/EhEnvSelector.d.ts +0 -9
- package/dist/esm/modules/environment/ui/EhEnvSelector.js +0 -167
- package/dist/esm/modules/environment/ui/EhEnvSelector.js.map +0 -1
- package/dist/esm/modules/fuzzyMatchLogic/features/prefixFrac.js +0 -12
- package/dist/esm/modules/fuzzyMatchLogic/features/prefixFrac.js.map +0 -1
- package/dist/esm/modules/fuzzyMatchLogic/scoring.js +0 -23
- package/dist/esm/modules/fuzzyMatchLogic/scoring.js.map +0 -1
- package/dist/esm/modules/fuzzyMatchLogic/utils.js +0 -12
- package/dist/esm/modules/fuzzyMatchLogic/utils.js.map +0 -1
- package/dist/esm/modules/pluginCore/types.js +0 -7
- package/dist/esm/modules/pluginCore/types.js.map +0 -1
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.d.ts +0 -27
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.js +0 -26
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.js.map +0 -1
- package/dist/esm/modules/resourceJump/ResourceJumpContext.d.ts +0 -17
- package/dist/esm/modules/resourceJump/ResourceJumpContext.js +0 -88
- package/dist/esm/modules/resourceJump/ResourceJumpContext.js.map +0 -1
- package/dist/esm/modules/resourceJump/buildJumpUrl.d.ts +0 -2
- package/dist/esm/modules/resourceJump/buildJumpUrl.js +0 -32
- package/dist/esm/modules/resourceJump/buildJumpUrl.js.map +0 -1
- package/dist/esm/modules/resourceJump/findBestMatchByUrl.js +0 -85
- package/dist/esm/modules/resourceJump/findBestMatchByUrl.js.map +0 -1
- package/dist/esm/modules/resourceJump/helpers.js +0 -19
- package/dist/esm/modules/resourceJump/helpers.js.map +0 -1
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.d.ts +0 -20
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.js +0 -209
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.js.map +0 -1
- package/dist/esm/modules/resourceJump/ui/JumpALink.js +0 -38
- package/dist/esm/modules/resourceJump/ui/JumpALink.js.map +0 -1
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.js +0 -66
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.js.map +0 -1
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.d.ts +0 -5
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.js +0 -42
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.js.map +0 -1
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.d.ts +0 -9
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.js +0 -36
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.js.map +0 -1
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.js +0 -44
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.js.map +0 -1
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.d.ts +0 -7
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.js +0 -29
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.js.map +0 -1
- package/dist/esm/routes/_layout/app/$appSlug/sub/$subValue.d.ts +0 -1
- package/dist/esm/routes/_layout/app/$appSlug.d.ts +0 -1
- package/dist/esm/routes/_layout/app/_appSlug/sub/_subValue.js +0 -18
- package/dist/esm/routes/_layout/app/_appSlug/sub/_subValue.js.map +0 -1
- package/dist/esm/routes/_layout/app/_appSlug.js +0 -18
- package/dist/esm/routes/_layout/app/_appSlug.js.map +0 -1
- package/dist/esm/routes/_layout/env/$envSlug/app/$appSlug/sub/$subValue.d.ts +0 -1
- package/dist/esm/routes/_layout/env/$envSlug/app/$appSlug.d.ts +0 -1
- package/dist/esm/routes/_layout/env/$envSlug/sub/$subValue.d.ts +0 -1
- package/dist/esm/routes/_layout/env/$envSlug.d.ts +0 -1
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug/sub/_subValue.js +0 -20
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug/sub/_subValue.js.map +0 -1
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug.js +0 -18
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug.js.map +0 -1
- package/dist/esm/routes/_layout/env/_envSlug/sub/_subValue.js +0 -18
- package/dist/esm/routes/_layout/env/_envSlug/sub/_subValue.js.map +0 -1
- package/dist/esm/routes/_layout/env/_envSlug.js +0 -18
- package/dist/esm/routes/_layout/env/_envSlug.js.map +0 -1
- package/dist/esm/ui/components/commandInput/EhBaseSelector.js +0 -22
- package/dist/esm/ui/components/commandInput/EhBaseSelector.js.map +0 -1
- package/dist/esm/ui/components/controlPanel/BaseDropdownSelector.d.ts +0 -11
- package/dist/esm/ui/components/controlPanel/env/EnvDropdownContent.d.ts +0 -5
- package/dist/esm/ui/components/controlPanel/env/EnvDropdownSelector.d.ts +0 -1
- package/dist/esm/ui/components/error/RooutErrorPage.d.ts +0 -2
- package/dist/esm/ui/components/error/RooutErrorPage.js +0 -12
- package/dist/esm/ui/components/error/RooutErrorPage.js.map +0 -1
- package/dist/esm/ui/components/header/PlaygroundHeader.d.ts +0 -1
- package/dist/esm/ui/components/header/PlaygroundHeader.js +0 -23
- package/dist/esm/ui/components/header/PlaygroundHeader.js.map +0 -1
- package/dist/esm/ui/components/leftPanel/LeftPanel.d.ts +0 -5
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.d.ts +0 -5
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.js +0 -52
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.js.map +0 -1
- package/dist/esm/ui/layout/Header.d.ts +0 -1
- package/dist/esm/util/availabilityMatrixUtils.js +0 -57
- package/dist/esm/util/availabilityMatrixUtils.js.map +0 -1
- package/dist/esm/util/highlightMatches.js +0 -19
- package/dist/esm/util/highlightMatches.js.map +0 -1
- package/src/components/ui/breadcrumb.tsx +0 -128
- package/src/components/ui/button.tsx +0 -60
- package/src/components/ui/card.tsx +0 -95
- package/src/components/ui/input.tsx +0 -28
- package/src/modules/environment/ui/EhEnvSelector.tsx +0 -191
- package/src/modules/resourceJump/ApiQueryMagazineResourceJump.ts +0 -31
- package/src/modules/resourceJump/ResourceJumpContext.tsx +0 -142
- package/src/modules/resourceJump/buildJumpUrl.ts +0 -40
- package/src/modules/resourceJump/ui/EhJumpResourceSelector.tsx +0 -259
- package/src/modules/resourceJump/ui/ResouceJumpLayout.tsx +0 -73
- package/src/plugins/builtin/pageUrl/PageUrlPluginContext.tsx +0 -55
- package/src/plugins/builtin/pageUrl/pageUrlJumpPlugin.ts +0 -36
- package/src/routes/_layout/app/$appSlug/sub/$subValue.tsx +0 -15
- package/src/routes/_layout/app/$appSlug.tsx +0 -15
- package/src/routes/_layout/env/$envSlug/app/$appSlug/sub/$subValue.tsx +0 -17
- package/src/routes/_layout/env/$envSlug/app/$appSlug.tsx +0 -15
- package/src/routes/_layout/env/$envSlug/sub/$subValue.tsx +0 -15
- package/src/routes/_layout/env/$envSlug.tsx +0 -15
- package/src/ui/components/controlPanel/BaseDropdownSelector.tsx +0 -163
- package/src/ui/components/controlPanel/env/EnvDropdownContent.tsx +0 -114
- package/src/ui/components/controlPanel/env/EnvDropdownSelector.tsx +0 -21
- package/src/ui/components/header/PlaygroundHeader.tsx +0 -26
- package/src/ui/components/leftPanel/LeftPanel.tsx +0 -194
- package/src/ui/components/quickBar/EnvQuickJumpBar.tsx +0 -65
- package/src/ui/layout/Header.tsx +0 -14
- /package/dist/esm/{components/ui → ui}/badge.d.ts +0 -0
- /package/dist/esm/{components/ui → ui}/popover.d.ts +0 -0
- /package/dist/esm/{components/ui → ui}/scroll-area.d.ts +0 -0
- /package/dist/esm/{components/ui → ui}/separator.d.ts +0 -0
- /package/dist/esm/{components/ui → ui}/tabs.d.ts +0 -0
- /package/dist/{apple-touch-180x180.png → public/apple-touch-180x180.png} +0 -0
- /package/dist/{env-hopper-16x16.png → public/env-hopper-16x16.png} +0 -0
- /package/dist/{env-hopper-192x192.png → public/env-hopper-192x192.png} +0 -0
- /package/dist/{env-hopper-32x32.png → public/env-hopper-32x32.png} +0 -0
- /package/dist/{env-hopper-48x48.png → public/env-hopper-48x48.png} +0 -0
- /package/dist/{env-hopper-512x512.png → public/env-hopper-512x512.png} +0 -0
- /package/dist/{env-hopper-square.svg → public/env-hopper-square.svg} +0 -0
- /package/dist/{favicon.ico → public/favicon.ico} +0 -0
- /package/dist/{robots.txt → public/robots.txt} +0 -0
- /package/src/{components/ui → ui}/popover.tsx +0 -0
- /package/src/{components/ui → ui}/scroll-area.tsx +0 -0
- /package/src/{components/ui → ui}/separator.tsx +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sources":["../../../../../../../../../../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js"],"sourcesContent":["import * as checks from \"./checks.js\";\nimport * as registries from \"./registries.js\";\nimport * as schemas from \"./schemas.js\";\nimport * as util from \"./util.js\";\n// @__NO_SIDE_EFFECTS__\nexport function _string(Class, params) {\n return new Class({\n type: \"string\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedString(Class, params) {\n return new Class({\n type: \"string\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _email(Class, params) {\n return new Class({\n type: \"string\",\n format: \"email\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _guid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"guid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v4\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v6\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv7(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v7\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _url(Class, params) {\n return new Class({\n type: \"string\",\n format: \"url\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _emoji(Class, params) {\n return new Class({\n type: \"string\",\n format: \"emoji\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nanoid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"nanoid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cuid2(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cuid2\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ulid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ulid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _xid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"xid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ksuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ksuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ipv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ipv4\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ipv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ipv6\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _mac(Class, params) {\n return new Class({\n type: \"string\",\n format: \"mac\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cidrv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cidrv4\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cidrv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cidrv6\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _base64(Class, params) {\n return new Class({\n type: \"string\",\n format: \"base64\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _base64url(Class, params) {\n return new Class({\n type: \"string\",\n format: \"base64url\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _e164(Class, params) {\n return new Class({\n type: \"string\",\n format: \"e164\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _jwt(Class, params) {\n return new Class({\n type: \"string\",\n format: \"jwt\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\nexport const TimePrecision = {\n Any: null,\n Minute: -1,\n Second: 0,\n Millisecond: 3,\n Microsecond: 6,\n};\n// @__NO_SIDE_EFFECTS__\nexport function _isoDateTime(Class, params) {\n return new Class({\n type: \"string\",\n format: \"datetime\",\n check: \"string_format\",\n offset: false,\n local: false,\n precision: null,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoDate(Class, params) {\n return new Class({\n type: \"string\",\n format: \"date\",\n check: \"string_format\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoTime(Class, params) {\n return new Class({\n type: \"string\",\n format: \"time\",\n check: \"string_format\",\n precision: null,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoDuration(Class, params) {\n return new Class({\n type: \"string\",\n format: \"duration\",\n check: \"string_format\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _number(Class, params) {\n return new Class({\n type: \"number\",\n checks: [],\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedNumber(Class, params) {\n return new Class({\n type: \"number\",\n coerce: true,\n checks: [],\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"safeint\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _float32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"float32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _float64(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"float64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"int32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uint32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"uint32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _boolean(Class, params) {\n return new Class({\n type: \"boolean\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedBoolean(Class, params) {\n return new Class({\n type: \"boolean\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _bigint(Class, params) {\n return new Class({\n type: \"bigint\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedBigint(Class, params) {\n return new Class({\n type: \"bigint\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int64(Class, params) {\n return new Class({\n type: \"bigint\",\n check: \"bigint_format\",\n abort: false,\n format: \"int64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uint64(Class, params) {\n return new Class({\n type: \"bigint\",\n check: \"bigint_format\",\n abort: false,\n format: \"uint64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _symbol(Class, params) {\n return new Class({\n type: \"symbol\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _undefined(Class, params) {\n return new Class({\n type: \"undefined\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _null(Class, params) {\n return new Class({\n type: \"null\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _any(Class) {\n return new Class({\n type: \"any\",\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _unknown(Class) {\n return new Class({\n type: \"unknown\",\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _never(Class, params) {\n return new Class({\n type: \"never\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _void(Class, params) {\n return new Class({\n type: \"void\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _date(Class, params) {\n return new Class({\n type: \"date\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedDate(Class, params) {\n return new Class({\n type: \"date\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nan(Class, params) {\n return new Class({\n type: \"nan\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lt(value, params) {\n return new checks.$ZodCheckLessThan({\n check: \"less_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: false,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lte(value, params) {\n return new checks.$ZodCheckLessThan({\n check: \"less_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: true,\n });\n}\nexport { \n/** @deprecated Use `z.lte()` instead. */\n_lte as _max, };\n// @__NO_SIDE_EFFECTS__\nexport function _gt(value, params) {\n return new checks.$ZodCheckGreaterThan({\n check: \"greater_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: false,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _gte(value, params) {\n return new checks.$ZodCheckGreaterThan({\n check: \"greater_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: true,\n });\n}\nexport { \n/** @deprecated Use `z.gte()` instead. */\n_gte as _min, };\n// @__NO_SIDE_EFFECTS__\nexport function _positive(params) {\n return _gt(0, params);\n}\n// negative\n// @__NO_SIDE_EFFECTS__\nexport function _negative(params) {\n return _lt(0, params);\n}\n// nonpositive\n// @__NO_SIDE_EFFECTS__\nexport function _nonpositive(params) {\n return _lte(0, params);\n}\n// nonnegative\n// @__NO_SIDE_EFFECTS__\nexport function _nonnegative(params) {\n return _gte(0, params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function _multipleOf(value, params) {\n return new checks.$ZodCheckMultipleOf({\n check: \"multiple_of\",\n ...util.normalizeParams(params),\n value,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _maxSize(maximum, params) {\n return new checks.$ZodCheckMaxSize({\n check: \"max_size\",\n ...util.normalizeParams(params),\n maximum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _minSize(minimum, params) {\n return new checks.$ZodCheckMinSize({\n check: \"min_size\",\n ...util.normalizeParams(params),\n minimum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _size(size, params) {\n return new checks.$ZodCheckSizeEquals({\n check: \"size_equals\",\n ...util.normalizeParams(params),\n size,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _maxLength(maximum, params) {\n const ch = new checks.$ZodCheckMaxLength({\n check: \"max_length\",\n ...util.normalizeParams(params),\n maximum,\n });\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _minLength(minimum, params) {\n return new checks.$ZodCheckMinLength({\n check: \"min_length\",\n ...util.normalizeParams(params),\n minimum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _length(length, params) {\n return new checks.$ZodCheckLengthEquals({\n check: \"length_equals\",\n ...util.normalizeParams(params),\n length,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _regex(pattern, params) {\n return new checks.$ZodCheckRegex({\n check: \"string_format\",\n format: \"regex\",\n ...util.normalizeParams(params),\n pattern,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lowercase(params) {\n return new checks.$ZodCheckLowerCase({\n check: \"string_format\",\n format: \"lowercase\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uppercase(params) {\n return new checks.$ZodCheckUpperCase({\n check: \"string_format\",\n format: \"uppercase\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _includes(includes, params) {\n return new checks.$ZodCheckIncludes({\n check: \"string_format\",\n format: \"includes\",\n ...util.normalizeParams(params),\n includes,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _startsWith(prefix, params) {\n return new checks.$ZodCheckStartsWith({\n check: \"string_format\",\n format: \"starts_with\",\n ...util.normalizeParams(params),\n prefix,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _endsWith(suffix, params) {\n return new checks.$ZodCheckEndsWith({\n check: \"string_format\",\n format: \"ends_with\",\n ...util.normalizeParams(params),\n suffix,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _property(property, schema, params) {\n return new checks.$ZodCheckProperty({\n check: \"property\",\n property,\n schema,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _mime(types, params) {\n return new checks.$ZodCheckMimeType({\n check: \"mime_type\",\n mime: types,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _overwrite(tx) {\n return new checks.$ZodCheckOverwrite({\n check: \"overwrite\",\n tx,\n });\n}\n// normalize\n// @__NO_SIDE_EFFECTS__\nexport function _normalize(form) {\n return _overwrite((input) => input.normalize(form));\n}\n// trim\n// @__NO_SIDE_EFFECTS__\nexport function _trim() {\n return _overwrite((input) => input.trim());\n}\n// toLowerCase\n// @__NO_SIDE_EFFECTS__\nexport function _toLowerCase() {\n return _overwrite((input) => input.toLowerCase());\n}\n// toUpperCase\n// @__NO_SIDE_EFFECTS__\nexport function _toUpperCase() {\n return _overwrite((input) => input.toUpperCase());\n}\n// slugify\n// @__NO_SIDE_EFFECTS__\nexport function _slugify() {\n return _overwrite((input) => util.slugify(input));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _array(Class, element, params) {\n return new Class({\n type: \"array\",\n element,\n // get element() {\n // return element;\n // },\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _union(Class, options, params) {\n return new Class({\n type: \"union\",\n options,\n ...util.normalizeParams(params),\n });\n}\nexport function _xor(Class, options, params) {\n return new Class({\n type: \"union\",\n options,\n inclusive: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _discriminatedUnion(Class, discriminator, options, params) {\n return new Class({\n type: \"union\",\n options,\n discriminator,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _intersection(Class, left, right) {\n return new Class({\n type: \"intersection\",\n left,\n right,\n });\n}\n// export function _tuple(\n// Class: util.SchemaClass<schemas.$ZodTuple>,\n// items: [],\n// params?: string | $ZodTupleParams\n// ): schemas.$ZodTuple<[], null>;\n// @__NO_SIDE_EFFECTS__\nexport function _tuple(Class, items, _paramsOrRest, _params) {\n const hasRest = _paramsOrRest instanceof schemas.$ZodType;\n const params = hasRest ? _params : _paramsOrRest;\n const rest = hasRest ? _paramsOrRest : null;\n return new Class({\n type: \"tuple\",\n items,\n rest,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _record(Class, keyType, valueType, params) {\n return new Class({\n type: \"record\",\n keyType,\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _map(Class, keyType, valueType, params) {\n return new Class({\n type: \"map\",\n keyType,\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _set(Class, valueType, params) {\n return new Class({\n type: \"set\",\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _enum(Class, values, params) {\n const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;\n // if (Array.isArray(values)) {\n // for (const value of values) {\n // entries[value] = value;\n // }\n // } else {\n // Object.assign(entries, values);\n // }\n // const entries: util.EnumLike = {};\n // for (const val of values) {\n // entries[val] = val;\n // }\n return new Class({\n type: \"enum\",\n entries,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\n/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.\n *\n * ```ts\n * enum Colors { red, green, blue }\n * z.enum(Colors);\n * ```\n */\nexport function _nativeEnum(Class, entries, params) {\n return new Class({\n type: \"enum\",\n entries,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _literal(Class, value, params) {\n return new Class({\n type: \"literal\",\n values: Array.isArray(value) ? value : [value],\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _file(Class, params) {\n return new Class({\n type: \"file\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _transform(Class, fn) {\n return new Class({\n type: \"transform\",\n transform: fn,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _optional(Class, innerType) {\n return new Class({\n type: \"optional\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nullable(Class, innerType) {\n return new Class({\n type: \"nullable\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _default(Class, innerType, defaultValue) {\n return new Class({\n type: \"default\",\n innerType,\n get defaultValue() {\n return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n },\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nonoptional(Class, innerType, params) {\n return new Class({\n type: \"nonoptional\",\n innerType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _success(Class, innerType) {\n return new Class({\n type: \"success\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _catch(Class, innerType, catchValue) {\n return new Class({\n type: \"catch\",\n innerType,\n catchValue: (typeof catchValue === \"function\" ? catchValue : () => catchValue),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _pipe(Class, in_, out) {\n return new Class({\n type: \"pipe\",\n in: in_,\n out,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _readonly(Class, innerType) {\n return new Class({\n type: \"readonly\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _templateLiteral(Class, parts, params) {\n return new Class({\n type: \"template_literal\",\n parts,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lazy(Class, getter) {\n return new Class({\n type: \"lazy\",\n getter,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _promise(Class, innerType) {\n return new Class({\n type: \"promise\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _custom(Class, fn, _params) {\n const norm = util.normalizeParams(_params);\n norm.abort ?? (norm.abort = true); // default to abort:false\n const schema = new Class({\n type: \"custom\",\n check: \"custom\",\n fn: fn,\n ...norm,\n });\n return schema;\n}\n// same as _custom but defaults to abort:false\n// @__NO_SIDE_EFFECTS__\nexport function _refine(Class, fn, _params) {\n const schema = new Class({\n type: \"custom\",\n check: \"custom\",\n fn: fn,\n ...util.normalizeParams(_params),\n });\n return schema;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _superRefine(fn) {\n const ch = _check((payload) => {\n payload.addIssue = (issue) => {\n if (typeof issue === \"string\") {\n payload.issues.push(util.issue(issue, payload.value, ch._zod.def));\n }\n else {\n // for Zod 3 backwards compatibility\n const _issue = issue;\n if (_issue.fatal)\n _issue.continue = false;\n _issue.code ?? (_issue.code = \"custom\");\n _issue.input ?? (_issue.input = payload.value);\n _issue.inst ?? (_issue.inst = ch);\n _issue.continue ?? (_issue.continue = !ch._zod.def.abort); // abort is always undefined, so this is always true...\n payload.issues.push(util.issue(_issue));\n }\n };\n return fn(payload.value, payload);\n });\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _check(fn, params) {\n const ch = new checks.$ZodCheck({\n check: \"custom\",\n ...util.normalizeParams(params),\n });\n ch._zod.check = fn;\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function describe(description) {\n const ch = new checks.$ZodCheck({ check: \"describe\" });\n ch._zod.onattach = [\n (inst) => {\n const existing = registries.globalRegistry.get(inst) ?? {};\n registries.globalRegistry.add(inst, { ...existing, description });\n },\n ];\n ch._zod.check = () => { }; // no-op check\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function meta(metadata) {\n const ch = new checks.$ZodCheck({ check: \"meta\" });\n ch._zod.onattach = [\n (inst) => {\n const existing = registries.globalRegistry.get(inst) ?? {};\n registries.globalRegistry.add(inst, { ...existing, ...metadata });\n },\n ];\n ch._zod.check = () => { }; // no-op check\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _stringbool(Classes, _params) {\n const params = util.normalizeParams(_params);\n let truthyArray = params.truthy ?? [\"true\", \"1\", \"yes\", \"on\", \"y\", \"enabled\"];\n let falsyArray = params.falsy ?? [\"false\", \"0\", \"no\", \"off\", \"n\", \"disabled\"];\n if (params.case !== \"sensitive\") {\n truthyArray = truthyArray.map((v) => (typeof v === \"string\" ? v.toLowerCase() : v));\n falsyArray = falsyArray.map((v) => (typeof v === \"string\" ? v.toLowerCase() : v));\n }\n const truthySet = new Set(truthyArray);\n const falsySet = new Set(falsyArray);\n const _Codec = Classes.Codec ?? schemas.$ZodCodec;\n const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;\n const _String = Classes.String ?? schemas.$ZodString;\n const stringSchema = new _String({ type: \"string\", error: params.error });\n const booleanSchema = new _Boolean({ type: \"boolean\", error: params.error });\n const codec = new _Codec({\n type: \"pipe\",\n in: stringSchema,\n out: booleanSchema,\n transform: ((input, payload) => {\n let data = input;\n if (params.case !== \"sensitive\")\n data = data.toLowerCase();\n if (truthySet.has(data)) {\n return true;\n }\n else if (falsySet.has(data)) {\n return false;\n }\n else {\n payload.issues.push({\n code: \"invalid_value\",\n expected: \"stringbool\",\n values: [...truthySet, ...falsySet],\n input: payload.value,\n inst: codec,\n continue: false,\n });\n return {};\n }\n }),\n reverseTransform: ((input, _payload) => {\n if (input === true) {\n return truthyArray[0] || \"true\";\n }\n else {\n return falsyArray[0] || \"false\";\n }\n }),\n error: params.error,\n });\n return codec;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _stringFormat(Class, format, fnOrRegex, _params = {}) {\n const params = util.normalizeParams(_params);\n const def = {\n ...util.normalizeParams(_params),\n check: \"string_format\",\n type: \"string\",\n format,\n fn: typeof fnOrRegex === \"function\" ? fnOrRegex : (val) => fnOrRegex.test(val),\n ...params,\n };\n if (fnOrRegex instanceof RegExp) {\n def.pattern = fnOrRegex;\n }\n const inst = new Class(def);\n return inst;\n}\n"],"names":["util.normalizeParams","checks.$ZodCheckMaxLength","checks.$ZodCheckMinLength","checks.$ZodCheckLengthEquals","checks.$ZodCheckRegex","checks.$ZodCheckLowerCase","checks.$ZodCheckUpperCase","checks.$ZodCheckIncludes","checks.$ZodCheckStartsWith","checks.$ZodCheckEndsWith","checks.$ZodCheckOverwrite","util.slugify","issue","util.issue","checks.$ZodCheck"],"mappings":";;;;AAKO,SAAS,QAAQ,OAAO,QAAQ;AACnC,SAAO,IAAI,MAAM;AAAA,IACb,MAAM;AAAA,IACN,GAAGA,gBAAqB,MAAM;AAAA,EACtC,CAAK;AACL;AAAA;AAU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OAAO;AAAA,EACvC,CAAK;AACD,SAAO;AACX;AAAA;AAEO,SAAS,aAAa,IAAI;AAC7B,QAAM,KAAK,uBAAO,CAAC,YAAY;AAC3B,YAAQ,WAAW,CAACY,YAAU;AAC1B,UAAI,OAAOA,YAAU,UAAU;AAC3B,gBAAQ,OAAO,KAAKC,MAAWD,SAAO,QAAQ,OAAO,GAAG,KAAK,GAAG,CAAC;AAAA,MACrE,OACK;AAED,cAAM,SAASA;AACf,YAAI,OAAO;AACP,iBAAO,WAAW;AACtB,eAAO,SAAS,OAAO,OAAO;AAC9B,eAAO,UAAU,OAAO,QAAQ,QAAQ;AACxC,eAAO,SAAS,OAAO,OAAO;AAC9B,eAAO,aAAa,OAAO,WAAW,CAAC,GAAG,KAAK,IAAI;AACnD,gBAAQ,OAAO,KAAKC,MAAW,MAAM,CAAC;AAAA,MAC1C;AAAA,IACJ;AACA,WAAO,GAAG,QAAQ,OAAO,OAAO;AAAA,EACpC,CAAC;AACD,SAAO;AACX;AAAA;AAEO,SAAS,OAAO,IAAI,QAAQ;AAC/B,QAAM,KAAK,IAAIC,UAAiB;AAAA,IAC5B,OAAO;AAAA,IACP,GAAGd,gBAAqB,MAAM;AAAA,EACtC,CAAK;AACD,KAAG,KAAK,QAAQ;AAChB,SAAO;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { $constructor } from "./core.js";
|
|
2
|
+
import { lowercase, uppercase } from "./regexes.js";
|
|
3
|
+
import { nullish, getLengthableOrigin, escapeRegex } from "./util.js";
|
|
4
|
+
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
5
|
+
var _a;
|
|
6
|
+
inst._zod ?? (inst._zod = {});
|
|
7
|
+
inst._zod.def = def;
|
|
8
|
+
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
9
|
+
});
|
|
10
|
+
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
11
|
+
var _a;
|
|
12
|
+
$ZodCheck.init(inst, def);
|
|
13
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
14
|
+
const val = payload.value;
|
|
15
|
+
return !nullish(val) && val.length !== void 0;
|
|
16
|
+
});
|
|
17
|
+
inst._zod.onattach.push((inst2) => {
|
|
18
|
+
const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
19
|
+
if (def.maximum < curr)
|
|
20
|
+
inst2._zod.bag.maximum = def.maximum;
|
|
21
|
+
});
|
|
22
|
+
inst._zod.check = (payload) => {
|
|
23
|
+
const input = payload.value;
|
|
24
|
+
const length = input.length;
|
|
25
|
+
if (length <= def.maximum)
|
|
26
|
+
return;
|
|
27
|
+
const origin = getLengthableOrigin(input);
|
|
28
|
+
payload.issues.push({
|
|
29
|
+
origin,
|
|
30
|
+
code: "too_big",
|
|
31
|
+
maximum: def.maximum,
|
|
32
|
+
inclusive: true,
|
|
33
|
+
input,
|
|
34
|
+
inst,
|
|
35
|
+
continue: !def.abort
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
40
|
+
var _a;
|
|
41
|
+
$ZodCheck.init(inst, def);
|
|
42
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
43
|
+
const val = payload.value;
|
|
44
|
+
return !nullish(val) && val.length !== void 0;
|
|
45
|
+
});
|
|
46
|
+
inst._zod.onattach.push((inst2) => {
|
|
47
|
+
const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
48
|
+
if (def.minimum > curr)
|
|
49
|
+
inst2._zod.bag.minimum = def.minimum;
|
|
50
|
+
});
|
|
51
|
+
inst._zod.check = (payload) => {
|
|
52
|
+
const input = payload.value;
|
|
53
|
+
const length = input.length;
|
|
54
|
+
if (length >= def.minimum)
|
|
55
|
+
return;
|
|
56
|
+
const origin = getLengthableOrigin(input);
|
|
57
|
+
payload.issues.push({
|
|
58
|
+
origin,
|
|
59
|
+
code: "too_small",
|
|
60
|
+
minimum: def.minimum,
|
|
61
|
+
inclusive: true,
|
|
62
|
+
input,
|
|
63
|
+
inst,
|
|
64
|
+
continue: !def.abort
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
69
|
+
var _a;
|
|
70
|
+
$ZodCheck.init(inst, def);
|
|
71
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
72
|
+
const val = payload.value;
|
|
73
|
+
return !nullish(val) && val.length !== void 0;
|
|
74
|
+
});
|
|
75
|
+
inst._zod.onattach.push((inst2) => {
|
|
76
|
+
const bag = inst2._zod.bag;
|
|
77
|
+
bag.minimum = def.length;
|
|
78
|
+
bag.maximum = def.length;
|
|
79
|
+
bag.length = def.length;
|
|
80
|
+
});
|
|
81
|
+
inst._zod.check = (payload) => {
|
|
82
|
+
const input = payload.value;
|
|
83
|
+
const length = input.length;
|
|
84
|
+
if (length === def.length)
|
|
85
|
+
return;
|
|
86
|
+
const origin = getLengthableOrigin(input);
|
|
87
|
+
const tooBig = length > def.length;
|
|
88
|
+
payload.issues.push({
|
|
89
|
+
origin,
|
|
90
|
+
...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length },
|
|
91
|
+
inclusive: true,
|
|
92
|
+
exact: true,
|
|
93
|
+
input: payload.value,
|
|
94
|
+
inst,
|
|
95
|
+
continue: !def.abort
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
$ZodCheck.init(inst, def);
|
|
102
|
+
inst._zod.onattach.push((inst2) => {
|
|
103
|
+
const bag = inst2._zod.bag;
|
|
104
|
+
bag.format = def.format;
|
|
105
|
+
if (def.pattern) {
|
|
106
|
+
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
107
|
+
bag.patterns.add(def.pattern);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
if (def.pattern)
|
|
111
|
+
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
112
|
+
def.pattern.lastIndex = 0;
|
|
113
|
+
if (def.pattern.test(payload.value))
|
|
114
|
+
return;
|
|
115
|
+
payload.issues.push({
|
|
116
|
+
origin: "string",
|
|
117
|
+
code: "invalid_format",
|
|
118
|
+
format: def.format,
|
|
119
|
+
input: payload.value,
|
|
120
|
+
...def.pattern ? { pattern: def.pattern.toString() } : {},
|
|
121
|
+
inst,
|
|
122
|
+
continue: !def.abort
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
else
|
|
126
|
+
(_b = inst._zod).check ?? (_b.check = () => {
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
130
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
131
|
+
inst._zod.check = (payload) => {
|
|
132
|
+
def.pattern.lastIndex = 0;
|
|
133
|
+
if (def.pattern.test(payload.value))
|
|
134
|
+
return;
|
|
135
|
+
payload.issues.push({
|
|
136
|
+
origin: "string",
|
|
137
|
+
code: "invalid_format",
|
|
138
|
+
format: "regex",
|
|
139
|
+
input: payload.value,
|
|
140
|
+
pattern: def.pattern.toString(),
|
|
141
|
+
inst,
|
|
142
|
+
continue: !def.abort
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
const $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
147
|
+
def.pattern ?? (def.pattern = lowercase);
|
|
148
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
149
|
+
});
|
|
150
|
+
const $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
151
|
+
def.pattern ?? (def.pattern = uppercase);
|
|
152
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
153
|
+
});
|
|
154
|
+
const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
155
|
+
$ZodCheck.init(inst, def);
|
|
156
|
+
const escapedRegex = escapeRegex(def.includes);
|
|
157
|
+
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
158
|
+
def.pattern = pattern;
|
|
159
|
+
inst._zod.onattach.push((inst2) => {
|
|
160
|
+
const bag = inst2._zod.bag;
|
|
161
|
+
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
162
|
+
bag.patterns.add(pattern);
|
|
163
|
+
});
|
|
164
|
+
inst._zod.check = (payload) => {
|
|
165
|
+
if (payload.value.includes(def.includes, def.position))
|
|
166
|
+
return;
|
|
167
|
+
payload.issues.push({
|
|
168
|
+
origin: "string",
|
|
169
|
+
code: "invalid_format",
|
|
170
|
+
format: "includes",
|
|
171
|
+
includes: def.includes,
|
|
172
|
+
input: payload.value,
|
|
173
|
+
inst,
|
|
174
|
+
continue: !def.abort
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
179
|
+
$ZodCheck.init(inst, def);
|
|
180
|
+
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
181
|
+
def.pattern ?? (def.pattern = pattern);
|
|
182
|
+
inst._zod.onattach.push((inst2) => {
|
|
183
|
+
const bag = inst2._zod.bag;
|
|
184
|
+
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
185
|
+
bag.patterns.add(pattern);
|
|
186
|
+
});
|
|
187
|
+
inst._zod.check = (payload) => {
|
|
188
|
+
if (payload.value.startsWith(def.prefix))
|
|
189
|
+
return;
|
|
190
|
+
payload.issues.push({
|
|
191
|
+
origin: "string",
|
|
192
|
+
code: "invalid_format",
|
|
193
|
+
format: "starts_with",
|
|
194
|
+
prefix: def.prefix,
|
|
195
|
+
input: payload.value,
|
|
196
|
+
inst,
|
|
197
|
+
continue: !def.abort
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
});
|
|
201
|
+
const $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
202
|
+
$ZodCheck.init(inst, def);
|
|
203
|
+
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
204
|
+
def.pattern ?? (def.pattern = pattern);
|
|
205
|
+
inst._zod.onattach.push((inst2) => {
|
|
206
|
+
const bag = inst2._zod.bag;
|
|
207
|
+
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
208
|
+
bag.patterns.add(pattern);
|
|
209
|
+
});
|
|
210
|
+
inst._zod.check = (payload) => {
|
|
211
|
+
if (payload.value.endsWith(def.suffix))
|
|
212
|
+
return;
|
|
213
|
+
payload.issues.push({
|
|
214
|
+
origin: "string",
|
|
215
|
+
code: "invalid_format",
|
|
216
|
+
format: "ends_with",
|
|
217
|
+
suffix: def.suffix,
|
|
218
|
+
input: payload.value,
|
|
219
|
+
inst,
|
|
220
|
+
continue: !def.abort
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
});
|
|
224
|
+
const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
225
|
+
$ZodCheck.init(inst, def);
|
|
226
|
+
inst._zod.check = (payload) => {
|
|
227
|
+
payload.value = def.tx(payload.value);
|
|
228
|
+
};
|
|
229
|
+
});
|
|
230
|
+
export {
|
|
231
|
+
$ZodCheck,
|
|
232
|
+
$ZodCheckEndsWith,
|
|
233
|
+
$ZodCheckIncludes,
|
|
234
|
+
$ZodCheckLengthEquals,
|
|
235
|
+
$ZodCheckLowerCase,
|
|
236
|
+
$ZodCheckMaxLength,
|
|
237
|
+
$ZodCheckMinLength,
|
|
238
|
+
$ZodCheckOverwrite,
|
|
239
|
+
$ZodCheckRegex,
|
|
240
|
+
$ZodCheckStartsWith,
|
|
241
|
+
$ZodCheckStringFormat,
|
|
242
|
+
$ZodCheckUpperCase
|
|
243
|
+
};
|
|
244
|
+
//# sourceMappingURL=checks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checks.js","sources":["../../../../../../../../../../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js"],"sourcesContent":["// import { $ZodType } from \"./schemas.js\";\nimport * as core from \"./core.js\";\nimport * as regexes from \"./regexes.js\";\nimport * as util from \"./util.js\";\nexport const $ZodCheck = /*@__PURE__*/ core.$constructor(\"$ZodCheck\", (inst, def) => {\n var _a;\n inst._zod ?? (inst._zod = {});\n inst._zod.def = def;\n (_a = inst._zod).onattach ?? (_a.onattach = []);\n});\nconst numericOriginMap = {\n number: \"number\",\n bigint: \"bigint\",\n object: \"date\",\n};\nexport const $ZodCheckLessThan = /*@__PURE__*/ core.$constructor(\"$ZodCheckLessThan\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const origin = numericOriginMap[typeof def.value];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;\n if (def.value < curr) {\n if (def.inclusive)\n bag.maximum = def.value;\n else\n bag.exclusiveMaximum = def.value;\n }\n });\n inst._zod.check = (payload) => {\n if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {\n return;\n }\n payload.issues.push({\n origin,\n code: \"too_big\",\n maximum: typeof def.value === \"object\" ? def.value.getTime() : def.value,\n input: payload.value,\n inclusive: def.inclusive,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckGreaterThan = /*@__PURE__*/ core.$constructor(\"$ZodCheckGreaterThan\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const origin = numericOriginMap[typeof def.value];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;\n if (def.value > curr) {\n if (def.inclusive)\n bag.minimum = def.value;\n else\n bag.exclusiveMinimum = def.value;\n }\n });\n inst._zod.check = (payload) => {\n if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {\n return;\n }\n payload.issues.push({\n origin,\n code: \"too_small\",\n minimum: typeof def.value === \"object\" ? def.value.getTime() : def.value,\n input: payload.value,\n inclusive: def.inclusive,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMultipleOf = \n/*@__PURE__*/ core.$constructor(\"$ZodCheckMultipleOf\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.onattach.push((inst) => {\n var _a;\n (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);\n });\n inst._zod.check = (payload) => {\n if (typeof payload.value !== typeof def.value)\n throw new Error(\"Cannot mix number and bigint in multiple_of check.\");\n const isMultiple = typeof payload.value === \"bigint\"\n ? payload.value % def.value === BigInt(0)\n : util.floatSafeRemainder(payload.value, def.value) === 0;\n if (isMultiple)\n return;\n payload.issues.push({\n origin: typeof payload.value,\n code: \"not_multiple_of\",\n divisor: def.value,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckNumberFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckNumberFormat\", (inst, def) => {\n $ZodCheck.init(inst, def); // no format checks\n def.format = def.format || \"float64\";\n const isInt = def.format?.includes(\"int\");\n const origin = isInt ? \"int\" : \"number\";\n const [minimum, maximum] = util.NUMBER_FORMAT_RANGES[def.format];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n bag.minimum = minimum;\n bag.maximum = maximum;\n if (isInt)\n bag.pattern = regexes.integer;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n if (isInt) {\n if (!Number.isInteger(input)) {\n // invalid_format issue\n // payload.issues.push({\n // expected: def.format,\n // format: def.format,\n // code: \"invalid_format\",\n // input,\n // inst,\n // });\n // invalid_type issue\n payload.issues.push({\n expected: origin,\n format: def.format,\n code: \"invalid_type\",\n continue: false,\n input,\n inst,\n });\n return;\n // not_multiple_of issue\n // payload.issues.push({\n // code: \"not_multiple_of\",\n // origin: \"number\",\n // input,\n // inst,\n // divisor: 1,\n // });\n }\n if (!Number.isSafeInteger(input)) {\n if (input > 0) {\n // too_big\n payload.issues.push({\n input,\n code: \"too_big\",\n maximum: Number.MAX_SAFE_INTEGER,\n note: \"Integers must be within the safe integer range.\",\n inst,\n origin,\n inclusive: true,\n continue: !def.abort,\n });\n }\n else {\n // too_small\n payload.issues.push({\n input,\n code: \"too_small\",\n minimum: Number.MIN_SAFE_INTEGER,\n note: \"Integers must be within the safe integer range.\",\n inst,\n origin,\n inclusive: true,\n continue: !def.abort,\n });\n }\n return;\n }\n }\n if (input < minimum) {\n payload.issues.push({\n origin: \"number\",\n input,\n code: \"too_small\",\n minimum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n if (input > maximum) {\n payload.issues.push({\n origin: \"number\",\n input,\n code: \"too_big\",\n maximum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\nexport const $ZodCheckBigIntFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckBigIntFormat\", (inst, def) => {\n $ZodCheck.init(inst, def); // no format checks\n const [minimum, maximum] = util.BIGINT_FORMAT_RANGES[def.format];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n bag.minimum = minimum;\n bag.maximum = maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n if (input < minimum) {\n payload.issues.push({\n origin: \"bigint\",\n input,\n code: \"too_small\",\n minimum: minimum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n if (input > maximum) {\n payload.issues.push({\n origin: \"bigint\",\n input,\n code: \"too_big\",\n maximum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\nexport const $ZodCheckMaxSize = /*@__PURE__*/ core.$constructor(\"$ZodCheckMaxSize\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY);\n if (def.maximum < curr)\n inst._zod.bag.maximum = def.maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size <= def.maximum)\n return;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n code: \"too_big\",\n maximum: def.maximum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMinSize = /*@__PURE__*/ core.$constructor(\"$ZodCheckMinSize\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY);\n if (def.minimum > curr)\n inst._zod.bag.minimum = def.minimum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size >= def.minimum)\n return;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n code: \"too_small\",\n minimum: def.minimum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckSizeEquals = /*@__PURE__*/ core.$constructor(\"$ZodCheckSizeEquals\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.minimum = def.size;\n bag.maximum = def.size;\n bag.size = def.size;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size === def.size)\n return;\n const tooBig = size > def.size;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n ...(tooBig ? { code: \"too_big\", maximum: def.size } : { code: \"too_small\", minimum: def.size }),\n inclusive: true,\n exact: true,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMaxLength = /*@__PURE__*/ core.$constructor(\"$ZodCheckMaxLength\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY);\n if (def.maximum < curr)\n inst._zod.bag.maximum = def.maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length <= def.maximum)\n return;\n const origin = util.getLengthableOrigin(input);\n payload.issues.push({\n origin,\n code: \"too_big\",\n maximum: def.maximum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMinLength = /*@__PURE__*/ core.$constructor(\"$ZodCheckMinLength\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY);\n if (def.minimum > curr)\n inst._zod.bag.minimum = def.minimum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length >= def.minimum)\n return;\n const origin = util.getLengthableOrigin(input);\n payload.issues.push({\n origin,\n code: \"too_small\",\n minimum: def.minimum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckLengthEquals = /*@__PURE__*/ core.$constructor(\"$ZodCheckLengthEquals\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.minimum = def.length;\n bag.maximum = def.length;\n bag.length = def.length;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length === def.length)\n return;\n const origin = util.getLengthableOrigin(input);\n const tooBig = length > def.length;\n payload.issues.push({\n origin,\n ...(tooBig ? { code: \"too_big\", maximum: def.length } : { code: \"too_small\", minimum: def.length }),\n inclusive: true,\n exact: true,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckStringFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckStringFormat\", (inst, def) => {\n var _a, _b;\n $ZodCheck.init(inst, def);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n if (def.pattern) {\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(def.pattern);\n }\n });\n if (def.pattern)\n (_a = inst._zod).check ?? (_a.check = (payload) => {\n def.pattern.lastIndex = 0;\n if (def.pattern.test(payload.value))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: def.format,\n input: payload.value,\n ...(def.pattern ? { pattern: def.pattern.toString() } : {}),\n inst,\n continue: !def.abort,\n });\n });\n else\n (_b = inst._zod).check ?? (_b.check = () => { });\n});\nexport const $ZodCheckRegex = /*@__PURE__*/ core.$constructor(\"$ZodCheckRegex\", (inst, def) => {\n $ZodCheckStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n def.pattern.lastIndex = 0;\n if (def.pattern.test(payload.value))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"regex\",\n input: payload.value,\n pattern: def.pattern.toString(),\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckLowerCase = /*@__PURE__*/ core.$constructor(\"$ZodCheckLowerCase\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.lowercase);\n $ZodCheckStringFormat.init(inst, def);\n});\nexport const $ZodCheckUpperCase = /*@__PURE__*/ core.$constructor(\"$ZodCheckUpperCase\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.uppercase);\n $ZodCheckStringFormat.init(inst, def);\n});\nexport const $ZodCheckIncludes = /*@__PURE__*/ core.$constructor(\"$ZodCheckIncludes\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const escapedRegex = util.escapeRegex(def.includes);\n const pattern = new RegExp(typeof def.position === \"number\" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);\n def.pattern = pattern;\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.includes(def.includes, def.position))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"includes\",\n includes: def.includes,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckStartsWith = /*@__PURE__*/ core.$constructor(\"$ZodCheckStartsWith\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const pattern = new RegExp(`^${util.escapeRegex(def.prefix)}.*`);\n def.pattern ?? (def.pattern = pattern);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.startsWith(def.prefix))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"starts_with\",\n prefix: def.prefix,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckEndsWith = /*@__PURE__*/ core.$constructor(\"$ZodCheckEndsWith\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const pattern = new RegExp(`.*${util.escapeRegex(def.suffix)}$`);\n def.pattern ?? (def.pattern = pattern);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.endsWith(def.suffix))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"ends_with\",\n suffix: def.suffix,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\n///////////////////////////////////\n///// $ZodCheckProperty /////\n///////////////////////////////////\nfunction handleCheckPropertyResult(result, payload, property) {\n if (result.issues.length) {\n payload.issues.push(...util.prefixIssues(property, result.issues));\n }\n}\nexport const $ZodCheckProperty = /*@__PURE__*/ core.$constructor(\"$ZodCheckProperty\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.check = (payload) => {\n const result = def.schema._zod.run({\n value: payload.value[def.property],\n issues: [],\n }, {});\n if (result instanceof Promise) {\n return result.then((result) => handleCheckPropertyResult(result, payload, def.property));\n }\n handleCheckPropertyResult(result, payload, def.property);\n return;\n };\n});\nexport const $ZodCheckMimeType = /*@__PURE__*/ core.$constructor(\"$ZodCheckMimeType\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const mimeSet = new Set(def.mime);\n inst._zod.onattach.push((inst) => {\n inst._zod.bag.mime = def.mime;\n });\n inst._zod.check = (payload) => {\n if (mimeSet.has(payload.value.type))\n return;\n payload.issues.push({\n code: \"invalid_value\",\n values: def.mime,\n input: payload.value.type,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckOverwrite = /*@__PURE__*/ core.$constructor(\"$ZodCheckOverwrite\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.check = (payload) => {\n payload.value = def.tx(payload.value);\n };\n});\n"],"names":["core.$constructor","util.nullish","inst","util.getLengthableOrigin","regexes.lowercase","regexes.uppercase","util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,qBAAmCF,6BAAkB,sBAAsB,CAAC,MAAM,QAAQ;AACnG,YAAU,KAAK,MAAM,GAAG;AACxB,OAAK,KAAK,QAAQ,CAAC,YAAY;AAC3B,YAAQ,QAAQ,IAAI,GAAG,QAAQ,KAAK;AAAA,EACxC;AACJ,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
function $constructor(name, initializer, params) {
|
|
2
|
+
function init(inst, def) {
|
|
3
|
+
if (!inst._zod) {
|
|
4
|
+
Object.defineProperty(inst, "_zod", {
|
|
5
|
+
value: {
|
|
6
|
+
def,
|
|
7
|
+
constr: _,
|
|
8
|
+
traits: /* @__PURE__ */ new Set()
|
|
9
|
+
},
|
|
10
|
+
enumerable: false
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
if (inst._zod.traits.has(name)) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
inst._zod.traits.add(name);
|
|
17
|
+
initializer(inst, def);
|
|
18
|
+
const proto = _.prototype;
|
|
19
|
+
const keys = Object.keys(proto);
|
|
20
|
+
for (let i = 0; i < keys.length; i++) {
|
|
21
|
+
const k = keys[i];
|
|
22
|
+
if (!(k in inst)) {
|
|
23
|
+
inst[k] = proto[k].bind(inst);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const Parent = (params == null ? void 0 : params.Parent) ?? Object;
|
|
28
|
+
class Definition extends Parent {
|
|
29
|
+
}
|
|
30
|
+
Object.defineProperty(Definition, "name", { value: name });
|
|
31
|
+
function _(def) {
|
|
32
|
+
var _a;
|
|
33
|
+
const inst = (params == null ? void 0 : params.Parent) ? new Definition() : this;
|
|
34
|
+
init(inst, def);
|
|
35
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
36
|
+
for (const fn of inst._zod.deferred) {
|
|
37
|
+
fn();
|
|
38
|
+
}
|
|
39
|
+
return inst;
|
|
40
|
+
}
|
|
41
|
+
Object.defineProperty(_, "init", { value: init });
|
|
42
|
+
Object.defineProperty(_, Symbol.hasInstance, {
|
|
43
|
+
value: (inst) => {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
if ((params == null ? void 0 : params.Parent) && inst instanceof params.Parent)
|
|
46
|
+
return true;
|
|
47
|
+
return (_b = (_a = inst == null ? void 0 : inst._zod) == null ? void 0 : _a.traits) == null ? void 0 : _b.has(name);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(_, "name", { value: name });
|
|
51
|
+
return _;
|
|
52
|
+
}
|
|
53
|
+
class $ZodAsyncError extends Error {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
class $ZodEncodeError extends Error {
|
|
59
|
+
constructor(name) {
|
|
60
|
+
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
61
|
+
this.name = "ZodEncodeError";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const globalConfig = {};
|
|
65
|
+
function config(newConfig) {
|
|
66
|
+
return globalConfig;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
$ZodAsyncError,
|
|
70
|
+
$ZodEncodeError,
|
|
71
|
+
$constructor,
|
|
72
|
+
config,
|
|
73
|
+
globalConfig
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sources":["../../../../../../../../../../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js"],"sourcesContent":["/** A special constant with type `never` */\nexport const NEVER = Object.freeze({\n status: \"aborted\",\n});\nexport /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, params) {\n function init(inst, def) {\n if (!inst._zod) {\n Object.defineProperty(inst, \"_zod\", {\n value: {\n def,\n constr: _,\n traits: new Set(),\n },\n enumerable: false,\n });\n }\n if (inst._zod.traits.has(name)) {\n return;\n }\n inst._zod.traits.add(name);\n initializer(inst, def);\n // support prototype modifications\n const proto = _.prototype;\n const keys = Object.keys(proto);\n for (let i = 0; i < keys.length; i++) {\n const k = keys[i];\n if (!(k in inst)) {\n inst[k] = proto[k].bind(inst);\n }\n }\n }\n // doesn't work if Parent has a constructor with arguments\n const Parent = params?.Parent ?? Object;\n class Definition extends Parent {\n }\n Object.defineProperty(Definition, \"name\", { value: name });\n function _(def) {\n var _a;\n const inst = params?.Parent ? new Definition() : this;\n init(inst, def);\n (_a = inst._zod).deferred ?? (_a.deferred = []);\n for (const fn of inst._zod.deferred) {\n fn();\n }\n return inst;\n }\n Object.defineProperty(_, \"init\", { value: init });\n Object.defineProperty(_, Symbol.hasInstance, {\n value: (inst) => {\n if (params?.Parent && inst instanceof params.Parent)\n return true;\n return inst?._zod?.traits?.has(name);\n },\n });\n Object.defineProperty(_, \"name\", { value: name });\n return _;\n}\n////////////////////////////// UTILITIES ///////////////////////////////////////\nexport const $brand = Symbol(\"zod_brand\");\nexport class $ZodAsyncError extends Error {\n constructor() {\n super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);\n }\n}\nexport class $ZodEncodeError extends Error {\n constructor(name) {\n super(`Encountered unidirectional transform during encode: ${name}`);\n this.name = \"ZodEncodeError\";\n }\n}\nexport const globalConfig = {};\nexport function config(newConfig) {\n if (newConfig)\n Object.assign(globalConfig, newConfig);\n return globalConfig;\n}\n"],"names":[],"mappings":"AAIgC,SAAS,aAAa,MAAM,aAAa,QAAQ;AAC7E,WAAS,KAAK,MAAM,KAAK;AACrB,QAAI,CAAC,KAAK,MAAM;AACZ,aAAO,eAAe,MAAM,QAAQ;AAAA,QAChC,OAAO;AAAA,UACH;AAAA,UACA,QAAQ;AAAA,UACR,QAAQ,oBAAI,IAAG;AAAA,QACnC;AAAA,QACgB,YAAY;AAAA,MAC5B,CAAa;AAAA,IACL;AACA,QAAI,KAAK,KAAK,OAAO,IAAI,IAAI,GAAG;AAC5B;A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Ae,CAAA;AACrB,SAAS,OAAO,WAAW;AAG9B,SAAO;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
class Doc {
|
|
2
|
+
constructor(args = []) {
|
|
3
|
+
this.content = [];
|
|
4
|
+
this.indent = 0;
|
|
5
|
+
if (this)
|
|
6
|
+
this.args = args;
|
|
7
|
+
}
|
|
8
|
+
indented(fn) {
|
|
9
|
+
this.indent += 1;
|
|
10
|
+
fn(this);
|
|
11
|
+
this.indent -= 1;
|
|
12
|
+
}
|
|
13
|
+
write(arg) {
|
|
14
|
+
if (typeof arg === "function") {
|
|
15
|
+
arg(this, { execution: "sync" });
|
|
16
|
+
arg(this, { execution: "async" });
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const content = arg;
|
|
20
|
+
const lines = content.split("\n").filter((x) => x);
|
|
21
|
+
const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
|
|
22
|
+
const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
|
|
23
|
+
for (const line of dedented) {
|
|
24
|
+
this.content.push(line);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
compile() {
|
|
28
|
+
const F = Function;
|
|
29
|
+
const args = this == null ? void 0 : this.args;
|
|
30
|
+
const content = (this == null ? void 0 : this.content) ?? [``];
|
|
31
|
+
const lines = [...content.map((x) => ` ${x}`)];
|
|
32
|
+
return new F(...args, lines.join("\n"));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
Doc
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=doc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doc.js","sources":["../../../../../../../../../../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js"],"sourcesContent":["export class Doc {\n constructor(args = []) {\n this.content = [];\n this.indent = 0;\n if (this)\n this.args = args;\n }\n indented(fn) {\n this.indent += 1;\n fn(this);\n this.indent -= 1;\n }\n write(arg) {\n if (typeof arg === \"function\") {\n arg(this, { execution: \"sync\" });\n arg(this, { execution: \"async\" });\n return;\n }\n const content = arg;\n const lines = content.split(\"\\n\").filter((x) => x);\n const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));\n const dedented = lines.map((x) => x.slice(minIndent)).map((x) => \" \".repeat(this.indent * 2) + x);\n for (const line of dedented) {\n this.content.push(line);\n }\n }\n compile() {\n const F = Function;\n const args = this?.args;\n const content = this?.content ?? [``];\n const lines = [...content.map((x) => ` ${x}`)];\n // console.log(lines.join(\"\\n\"));\n return new F(...args, lines.join(\"\\n\"));\n }\n}\n"],"names":[],"mappings":"AAAO,MAAM,IAAI;AAAA,EACb,YAAY,OAAO,IAAI;AACnB,SAAK,UAAU,CAAA;AACf,SAAK,SAAS;AACd,QAAI;AACA,WAAK,OAAO;AAAA,EACpB;AAAA,EACA,SAAS,IAAI;AACT,SAAK,UAAU;AACf,OAAG,IAAI;AACP,SAAK,UAAU;AAAA,EACnB;AAAA,EACA,MAAM,KAAK;AACP,QAAI,OAAO,QAAQ,YAAY;AAC3B,UAAI,MAAM,EAAE,WAAW,OAAM,CAAE;AAC/B,UAAI,MAAM,EAAE,WAAW,QAAO,CAAE;AAChC;AAAA,IACJ;AACA,UAAM,UAAU;AAChB,UAAM,QAAQ,QAAQ,MAAM,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;AACjD,UAAM,YAAY,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,UAAS,EAAG,MAAM,CAAC;AAC/E,UAAM,WAAW,MAAM,IAAI,CAAC,MAAM,EAAE,MAAM,SAAS,CAAC,EAAE,IAAI,CAAC,MAAM,IAAI,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC;AAChG,eAAW,QAAQ,UAAU;AACzB,WAAK,QAAQ,KAAK,IAAI;AAAA,IAC1B;AAAA,EACJ;AAAA,EACA,UAAU;AACN,UAAM,IAAI;AACV,UAAM,OAAO,6BAAM;AACnB,UAAM,WAAU,6BAAM,YAAW,CAAC,EAAE;AACpC,UAAM,QAAQ,CAAC,GAAG,QAAQ,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;AAE9C,WAAO,IAAI,EAAE,GAAG,MAAM,MAAM,KAAK,IAAI,CAAC;AAAA,EAC1C;AACJ;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { $constructor } from "./core.js";
|
|
2
|
+
import { jsonStringifyReplacer } from "./util.js";
|
|
3
|
+
const initializer = (inst, def) => {
|
|
4
|
+
inst.name = "$ZodError";
|
|
5
|
+
Object.defineProperty(inst, "_zod", {
|
|
6
|
+
value: inst._zod,
|
|
7
|
+
enumerable: false
|
|
8
|
+
});
|
|
9
|
+
Object.defineProperty(inst, "issues", {
|
|
10
|
+
value: def,
|
|
11
|
+
enumerable: false
|
|
12
|
+
});
|
|
13
|
+
inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
|
|
14
|
+
Object.defineProperty(inst, "toString", {
|
|
15
|
+
value: () => inst.message,
|
|
16
|
+
enumerable: false
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const $ZodError = $constructor("$ZodError", initializer);
|
|
20
|
+
const $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
21
|
+
function flattenError(error, mapper = (issue) => issue.message) {
|
|
22
|
+
const fieldErrors = {};
|
|
23
|
+
const formErrors = [];
|
|
24
|
+
for (const sub of error.issues) {
|
|
25
|
+
if (sub.path.length > 0) {
|
|
26
|
+
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
27
|
+
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
28
|
+
} else {
|
|
29
|
+
formErrors.push(mapper(sub));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return { formErrors, fieldErrors };
|
|
33
|
+
}
|
|
34
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
35
|
+
const fieldErrors = { _errors: [] };
|
|
36
|
+
const processError = (error2) => {
|
|
37
|
+
for (const issue of error2.issues) {
|
|
38
|
+
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
39
|
+
issue.errors.map((issues) => processError({ issues }));
|
|
40
|
+
} else if (issue.code === "invalid_key") {
|
|
41
|
+
processError({ issues: issue.issues });
|
|
42
|
+
} else if (issue.code === "invalid_element") {
|
|
43
|
+
processError({ issues: issue.issues });
|
|
44
|
+
} else if (issue.path.length === 0) {
|
|
45
|
+
fieldErrors._errors.push(mapper(issue));
|
|
46
|
+
} else {
|
|
47
|
+
let curr = fieldErrors;
|
|
48
|
+
let i = 0;
|
|
49
|
+
while (i < issue.path.length) {
|
|
50
|
+
const el = issue.path[i];
|
|
51
|
+
const terminal = i === issue.path.length - 1;
|
|
52
|
+
if (!terminal) {
|
|
53
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
54
|
+
} else {
|
|
55
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
56
|
+
curr[el]._errors.push(mapper(issue));
|
|
57
|
+
}
|
|
58
|
+
curr = curr[el];
|
|
59
|
+
i++;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
processError(error);
|
|
65
|
+
return fieldErrors;
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
$ZodError,
|
|
69
|
+
$ZodRealError,
|
|
70
|
+
flattenError,
|
|
71
|
+
formatError
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sources":["../../../../../../../../../../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js"],"sourcesContent":["import { $constructor } from \"./core.js\";\nimport * as util from \"./util.js\";\nconst initializer = (inst, def) => {\n inst.name = \"$ZodError\";\n Object.defineProperty(inst, \"_zod\", {\n value: inst._zod,\n enumerable: false,\n });\n Object.defineProperty(inst, \"issues\", {\n value: def,\n enumerable: false,\n });\n inst.message = JSON.stringify(def, util.jsonStringifyReplacer, 2);\n Object.defineProperty(inst, \"toString\", {\n value: () => inst.message,\n enumerable: false,\n });\n};\nexport const $ZodError = $constructor(\"$ZodError\", initializer);\nexport const $ZodRealError = $constructor(\"$ZodError\", initializer, { Parent: Error });\nexport function flattenError(error, mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of error.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n}\nexport function formatError(error, mapper = (issue) => issue.message) {\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n issue.errors.map((issues) => processError({ issues }));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues });\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues });\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(error);\n return fieldErrors;\n}\nexport function treeifyError(error, mapper = (issue) => issue.message) {\n const result = { errors: [] };\n const processError = (error, path = []) => {\n var _a, _b;\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n // regular union error\n issue.errors.map((issues) => processError({ issues }, issue.path));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues }, issue.path);\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues }, issue.path);\n }\n else {\n const fullpath = [...path, ...issue.path];\n if (fullpath.length === 0) {\n result.errors.push(mapper(issue));\n continue;\n }\n let curr = result;\n let i = 0;\n while (i < fullpath.length) {\n const el = fullpath[i];\n const terminal = i === fullpath.length - 1;\n if (typeof el === \"string\") {\n curr.properties ?? (curr.properties = {});\n (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });\n curr = curr.properties[el];\n }\n else {\n curr.items ?? (curr.items = []);\n (_b = curr.items)[el] ?? (_b[el] = { errors: [] });\n curr = curr.items[el];\n }\n if (terminal) {\n curr.errors.push(mapper(issue));\n }\n i++;\n }\n }\n }\n };\n processError(error);\n return result;\n}\n/** Format a ZodError as a human-readable string in the following form.\n *\n * From\n *\n * ```ts\n * ZodError {\n * issues: [\n * {\n * expected: 'string',\n * code: 'invalid_type',\n * path: [ 'username' ],\n * message: 'Invalid input: expected string'\n * },\n * {\n * expected: 'number',\n * code: 'invalid_type',\n * path: [ 'favoriteNumbers', 1 ],\n * message: 'Invalid input: expected number'\n * }\n * ];\n * }\n * ```\n *\n * to\n *\n * ```\n * username\n * ✖ Expected number, received string at \"username\n * favoriteNumbers[0]\n * ✖ Invalid input: expected number\n * ```\n */\nexport function toDotPath(_path) {\n const segs = [];\n const path = _path.map((seg) => (typeof seg === \"object\" ? seg.key : seg));\n for (const seg of path) {\n if (typeof seg === \"number\")\n segs.push(`[${seg}]`);\n else if (typeof seg === \"symbol\")\n segs.push(`[${JSON.stringify(String(seg))}]`);\n else if (/[^\\w$]/.test(seg))\n segs.push(`[${JSON.stringify(seg)}]`);\n else {\n if (segs.length)\n segs.push(\".\");\n segs.push(seg);\n }\n }\n return segs.join(\"\");\n}\nexport function prettifyError(error) {\n const lines = [];\n // sort by path length\n const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);\n // Process each issue\n for (const issue of issues) {\n lines.push(`✖ ${issue.message}`);\n if (issue.path?.length)\n lines.push(` → at ${toDotPath(issue.path)}`);\n }\n // Convert Map to formatted string\n return lines.join(\"\\n\");\n}\n"],"names":["util.jsonStringifyReplacer","error"],"mappings":";;AAEA,MAAM,cAAc,CAAC,MAAM,QAAQ;AAC/B,OAAK,OAAO;AACZ,SAAO,eAAe,MAAM,QAAQ;AAAA,IAChC,OAAO,KAAK;AAAA,IACZ,YAAY;AAAA,EACpB,CAAK;AACD,SAAO,eAAe,MAAM,UAAU;AAAA,IAClC,OAAO;AAAA,IACP,YAAY;AAAA,EACpB,CAAK;AACD,OAAK,UAAU,KAAK,UAAU,KAAKA,uBAA4B,CAAC;AAChE,SAAO,eAAe,MAAM,YAAY;AAAA,IACpC,OAAO,MAAM,KAAK;AAAA,IAClB,YAAY;AAAA,EACpB,CAAK;AACL;AACY,MAAC,YAAY,aAAa,aAAa,WAAW;AAClD,MAAC,gBAAgB,aAAa,aAAa,aAAa,EAAE,QAAQ,MAAK,CAAE;AAC9E,SAAS,aAAa,OAAO,SAAS,CAAC,UAAU,MAAM,SAAS;AACnE,QAAM,cAAc,CAAA;AACpB,QAAM,aAAa,CAAA;AACnB,aAAW,OAAO,MAAM,QAAQ;AAC5B,QAAI,IAAI,KAAK,SAAS,GAAG;AACrB,kBAAY,IAAI,KAAK,CAAC,CAAC,IAAI,YAAY,IAAI,KAAK,CAAC,CAAC,KAAK,CAAA;AACvD,kBAAY,IAAI,KAAK,CAAC,CAAC,EAAE,KAAK,OAAO,GAAG,CAAC;AAAA,IAC7C,OACK;AACD,iBAAW,KAAK,OAAO,GAAG,CAAC;AAAA,IAC/B;AAAA,EACJ;AACA,SAAO,EAAE,YAAY,YAAW;AACpC;AACO,SAAS,YAAY,OAAO,SAAS,CAAC,UAAU,MAAM,SAAS;AAClE,QAAM,cAAc,EAAE,SAAS,GAAE;AACjC,QAAM,eAAe,CAACC,WAAU;AAC5B,eAAW,SAASA,OAAM,QAAQ;AAC9B,UAAI,MAAM,SAAS,mBAAmB,MAAM,OAAO,QAAQ;AACvD,cAAM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