@env-hopper/frontend-core 2.0.1-alpha → 2.0.1-alpha.4
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,1225 @@
|
|
|
1
|
+
import { $ZodCheck, $ZodCheckStringFormat } from "./checks.js";
|
|
2
|
+
import { $constructor, $ZodAsyncError, $ZodEncodeError, config, globalConfig } from "./core.js";
|
|
3
|
+
import { Doc } from "./doc.js";
|
|
4
|
+
import { safeParse, safeParseAsync } from "./parse.js";
|
|
5
|
+
import { string, datetime, date, time, duration, email, guid, uuid, emoji, nanoid, cuid, cuid2, ulid, xid, ksuid, ipv4, ipv6, cidrv4, cidrv6, base64, base64url, e164 } from "./regexes.js";
|
|
6
|
+
import { getEnumValues, propertyKeyTypes, escapeRegex, defineLazy, aborted, cleanRegex, finalizeIssue, isPlainObject, allowsEval, cached, isObject, esc, prefixIssues, optionalKeys, issue } from "./util.js";
|
|
7
|
+
import { clone } from "./util.js";
|
|
8
|
+
import { version } from "./versions.js";
|
|
9
|
+
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
10
|
+
var _a2;
|
|
11
|
+
var _a;
|
|
12
|
+
inst ?? (inst = {});
|
|
13
|
+
inst._zod.def = def;
|
|
14
|
+
inst._zod.bag = inst._zod.bag || {};
|
|
15
|
+
inst._zod.version = version;
|
|
16
|
+
const checks = [...inst._zod.def.checks ?? []];
|
|
17
|
+
if (inst._zod.traits.has("$ZodCheck")) {
|
|
18
|
+
checks.unshift(inst);
|
|
19
|
+
}
|
|
20
|
+
for (const ch of checks) {
|
|
21
|
+
for (const fn of ch._zod.onattach) {
|
|
22
|
+
fn(inst);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (checks.length === 0) {
|
|
26
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
27
|
+
(_a2 = inst._zod.deferred) == null ? void 0 : _a2.push(() => {
|
|
28
|
+
inst._zod.run = inst._zod.parse;
|
|
29
|
+
});
|
|
30
|
+
} else {
|
|
31
|
+
const runChecks = (payload, checks2, ctx) => {
|
|
32
|
+
let isAborted = aborted(payload);
|
|
33
|
+
let asyncResult;
|
|
34
|
+
for (const ch of checks2) {
|
|
35
|
+
if (ch._zod.def.when) {
|
|
36
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
37
|
+
if (!shouldRun)
|
|
38
|
+
continue;
|
|
39
|
+
} else if (isAborted) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const currLen = payload.issues.length;
|
|
43
|
+
const _ = ch._zod.check(payload);
|
|
44
|
+
if (_ instanceof Promise && (ctx == null ? void 0 : ctx.async) === false) {
|
|
45
|
+
throw new $ZodAsyncError();
|
|
46
|
+
}
|
|
47
|
+
if (asyncResult || _ instanceof Promise) {
|
|
48
|
+
asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
|
|
49
|
+
await _;
|
|
50
|
+
const nextLen = payload.issues.length;
|
|
51
|
+
if (nextLen === currLen)
|
|
52
|
+
return;
|
|
53
|
+
if (!isAborted)
|
|
54
|
+
isAborted = aborted(payload, currLen);
|
|
55
|
+
});
|
|
56
|
+
} else {
|
|
57
|
+
const nextLen = payload.issues.length;
|
|
58
|
+
if (nextLen === currLen)
|
|
59
|
+
continue;
|
|
60
|
+
if (!isAborted)
|
|
61
|
+
isAborted = aborted(payload, currLen);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (asyncResult) {
|
|
65
|
+
return asyncResult.then(() => {
|
|
66
|
+
return payload;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return payload;
|
|
70
|
+
};
|
|
71
|
+
const handleCanaryResult = (canary, payload, ctx) => {
|
|
72
|
+
if (aborted(canary)) {
|
|
73
|
+
canary.aborted = true;
|
|
74
|
+
return canary;
|
|
75
|
+
}
|
|
76
|
+
const checkResult = runChecks(payload, checks, ctx);
|
|
77
|
+
if (checkResult instanceof Promise) {
|
|
78
|
+
if (ctx.async === false)
|
|
79
|
+
throw new $ZodAsyncError();
|
|
80
|
+
return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx));
|
|
81
|
+
}
|
|
82
|
+
return inst._zod.parse(checkResult, ctx);
|
|
83
|
+
};
|
|
84
|
+
inst._zod.run = (payload, ctx) => {
|
|
85
|
+
if (ctx.skipChecks) {
|
|
86
|
+
return inst._zod.parse(payload, ctx);
|
|
87
|
+
}
|
|
88
|
+
if (ctx.direction === "backward") {
|
|
89
|
+
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
|
90
|
+
if (canary instanceof Promise) {
|
|
91
|
+
return canary.then((canary2) => {
|
|
92
|
+
return handleCanaryResult(canary2, payload, ctx);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
96
|
+
}
|
|
97
|
+
const result = inst._zod.parse(payload, ctx);
|
|
98
|
+
if (result instanceof Promise) {
|
|
99
|
+
if (ctx.async === false)
|
|
100
|
+
throw new $ZodAsyncError();
|
|
101
|
+
return result.then((result2) => runChecks(result2, checks, ctx));
|
|
102
|
+
}
|
|
103
|
+
return runChecks(result, checks, ctx);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
defineLazy(inst, "~standard", () => ({
|
|
107
|
+
validate: (value) => {
|
|
108
|
+
var _a3;
|
|
109
|
+
try {
|
|
110
|
+
const r = safeParse(inst, value);
|
|
111
|
+
return r.success ? { value: r.data } : { issues: (_a3 = r.error) == null ? void 0 : _a3.issues };
|
|
112
|
+
} catch (_) {
|
|
113
|
+
return safeParseAsync(inst, value).then((r) => {
|
|
114
|
+
var _a4;
|
|
115
|
+
return r.success ? { value: r.data } : { issues: (_a4 = r.error) == null ? void 0 : _a4.issues };
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
vendor: "zod",
|
|
120
|
+
version: 1
|
|
121
|
+
}));
|
|
122
|
+
});
|
|
123
|
+
const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
124
|
+
var _a;
|
|
125
|
+
$ZodType.init(inst, def);
|
|
126
|
+
inst._zod.pattern = [...((_a = inst == null ? void 0 : inst._zod.bag) == null ? void 0 : _a.patterns) ?? []].pop() ?? string(inst._zod.bag);
|
|
127
|
+
inst._zod.parse = (payload, _) => {
|
|
128
|
+
if (def.coerce)
|
|
129
|
+
try {
|
|
130
|
+
payload.value = String(payload.value);
|
|
131
|
+
} catch (_2) {
|
|
132
|
+
}
|
|
133
|
+
if (typeof payload.value === "string")
|
|
134
|
+
return payload;
|
|
135
|
+
payload.issues.push({
|
|
136
|
+
expected: "string",
|
|
137
|
+
code: "invalid_type",
|
|
138
|
+
input: payload.value,
|
|
139
|
+
inst
|
|
140
|
+
});
|
|
141
|
+
return payload;
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
const $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, def) => {
|
|
145
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
146
|
+
$ZodString.init(inst, def);
|
|
147
|
+
});
|
|
148
|
+
const $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
|
|
149
|
+
def.pattern ?? (def.pattern = guid);
|
|
150
|
+
$ZodStringFormat.init(inst, def);
|
|
151
|
+
});
|
|
152
|
+
const $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
|
|
153
|
+
if (def.version) {
|
|
154
|
+
const versionMap = {
|
|
155
|
+
v1: 1,
|
|
156
|
+
v2: 2,
|
|
157
|
+
v3: 3,
|
|
158
|
+
v4: 4,
|
|
159
|
+
v5: 5,
|
|
160
|
+
v6: 6,
|
|
161
|
+
v7: 7,
|
|
162
|
+
v8: 8
|
|
163
|
+
};
|
|
164
|
+
const v = versionMap[def.version];
|
|
165
|
+
if (v === void 0)
|
|
166
|
+
throw new Error(`Invalid UUID version: "${def.version}"`);
|
|
167
|
+
def.pattern ?? (def.pattern = uuid(v));
|
|
168
|
+
} else
|
|
169
|
+
def.pattern ?? (def.pattern = uuid());
|
|
170
|
+
$ZodStringFormat.init(inst, def);
|
|
171
|
+
});
|
|
172
|
+
const $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
|
|
173
|
+
def.pattern ?? (def.pattern = email);
|
|
174
|
+
$ZodStringFormat.init(inst, def);
|
|
175
|
+
});
|
|
176
|
+
const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
177
|
+
$ZodStringFormat.init(inst, def);
|
|
178
|
+
inst._zod.check = (payload) => {
|
|
179
|
+
try {
|
|
180
|
+
const trimmed = payload.value.trim();
|
|
181
|
+
const url = new URL(trimmed);
|
|
182
|
+
if (def.hostname) {
|
|
183
|
+
def.hostname.lastIndex = 0;
|
|
184
|
+
if (!def.hostname.test(url.hostname)) {
|
|
185
|
+
payload.issues.push({
|
|
186
|
+
code: "invalid_format",
|
|
187
|
+
format: "url",
|
|
188
|
+
note: "Invalid hostname",
|
|
189
|
+
pattern: def.hostname.source,
|
|
190
|
+
input: payload.value,
|
|
191
|
+
inst,
|
|
192
|
+
continue: !def.abort
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (def.protocol) {
|
|
197
|
+
def.protocol.lastIndex = 0;
|
|
198
|
+
if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) {
|
|
199
|
+
payload.issues.push({
|
|
200
|
+
code: "invalid_format",
|
|
201
|
+
format: "url",
|
|
202
|
+
note: "Invalid protocol",
|
|
203
|
+
pattern: def.protocol.source,
|
|
204
|
+
input: payload.value,
|
|
205
|
+
inst,
|
|
206
|
+
continue: !def.abort
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if (def.normalize) {
|
|
211
|
+
payload.value = url.href;
|
|
212
|
+
} else {
|
|
213
|
+
payload.value = trimmed;
|
|
214
|
+
}
|
|
215
|
+
return;
|
|
216
|
+
} catch (_) {
|
|
217
|
+
payload.issues.push({
|
|
218
|
+
code: "invalid_format",
|
|
219
|
+
format: "url",
|
|
220
|
+
input: payload.value,
|
|
221
|
+
inst,
|
|
222
|
+
continue: !def.abort
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
});
|
|
227
|
+
const $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
|
|
228
|
+
def.pattern ?? (def.pattern = emoji());
|
|
229
|
+
$ZodStringFormat.init(inst, def);
|
|
230
|
+
});
|
|
231
|
+
const $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
|
|
232
|
+
def.pattern ?? (def.pattern = nanoid);
|
|
233
|
+
$ZodStringFormat.init(inst, def);
|
|
234
|
+
});
|
|
235
|
+
const $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
|
|
236
|
+
def.pattern ?? (def.pattern = cuid);
|
|
237
|
+
$ZodStringFormat.init(inst, def);
|
|
238
|
+
});
|
|
239
|
+
const $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
|
|
240
|
+
def.pattern ?? (def.pattern = cuid2);
|
|
241
|
+
$ZodStringFormat.init(inst, def);
|
|
242
|
+
});
|
|
243
|
+
const $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
|
|
244
|
+
def.pattern ?? (def.pattern = ulid);
|
|
245
|
+
$ZodStringFormat.init(inst, def);
|
|
246
|
+
});
|
|
247
|
+
const $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
|
|
248
|
+
def.pattern ?? (def.pattern = xid);
|
|
249
|
+
$ZodStringFormat.init(inst, def);
|
|
250
|
+
});
|
|
251
|
+
const $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
|
|
252
|
+
def.pattern ?? (def.pattern = ksuid);
|
|
253
|
+
$ZodStringFormat.init(inst, def);
|
|
254
|
+
});
|
|
255
|
+
const $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
|
|
256
|
+
def.pattern ?? (def.pattern = datetime(def));
|
|
257
|
+
$ZodStringFormat.init(inst, def);
|
|
258
|
+
});
|
|
259
|
+
const $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
|
|
260
|
+
def.pattern ?? (def.pattern = date);
|
|
261
|
+
$ZodStringFormat.init(inst, def);
|
|
262
|
+
});
|
|
263
|
+
const $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
|
|
264
|
+
def.pattern ?? (def.pattern = time(def));
|
|
265
|
+
$ZodStringFormat.init(inst, def);
|
|
266
|
+
});
|
|
267
|
+
const $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
|
|
268
|
+
def.pattern ?? (def.pattern = duration);
|
|
269
|
+
$ZodStringFormat.init(inst, def);
|
|
270
|
+
});
|
|
271
|
+
const $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
272
|
+
def.pattern ?? (def.pattern = ipv4);
|
|
273
|
+
$ZodStringFormat.init(inst, def);
|
|
274
|
+
inst._zod.bag.format = `ipv4`;
|
|
275
|
+
});
|
|
276
|
+
const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
277
|
+
def.pattern ?? (def.pattern = ipv6);
|
|
278
|
+
$ZodStringFormat.init(inst, def);
|
|
279
|
+
inst._zod.bag.format = `ipv6`;
|
|
280
|
+
inst._zod.check = (payload) => {
|
|
281
|
+
try {
|
|
282
|
+
new URL(`http://[${payload.value}]`);
|
|
283
|
+
} catch {
|
|
284
|
+
payload.issues.push({
|
|
285
|
+
code: "invalid_format",
|
|
286
|
+
format: "ipv6",
|
|
287
|
+
input: payload.value,
|
|
288
|
+
inst,
|
|
289
|
+
continue: !def.abort
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
});
|
|
294
|
+
const $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
295
|
+
def.pattern ?? (def.pattern = cidrv4);
|
|
296
|
+
$ZodStringFormat.init(inst, def);
|
|
297
|
+
});
|
|
298
|
+
const $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
299
|
+
def.pattern ?? (def.pattern = cidrv6);
|
|
300
|
+
$ZodStringFormat.init(inst, def);
|
|
301
|
+
inst._zod.check = (payload) => {
|
|
302
|
+
const parts = payload.value.split("/");
|
|
303
|
+
try {
|
|
304
|
+
if (parts.length !== 2)
|
|
305
|
+
throw new Error();
|
|
306
|
+
const [address, prefix] = parts;
|
|
307
|
+
if (!prefix)
|
|
308
|
+
throw new Error();
|
|
309
|
+
const prefixNum = Number(prefix);
|
|
310
|
+
if (`${prefixNum}` !== prefix)
|
|
311
|
+
throw new Error();
|
|
312
|
+
if (prefixNum < 0 || prefixNum > 128)
|
|
313
|
+
throw new Error();
|
|
314
|
+
new URL(`http://[${address}]`);
|
|
315
|
+
} catch {
|
|
316
|
+
payload.issues.push({
|
|
317
|
+
code: "invalid_format",
|
|
318
|
+
format: "cidrv6",
|
|
319
|
+
input: payload.value,
|
|
320
|
+
inst,
|
|
321
|
+
continue: !def.abort
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
});
|
|
326
|
+
function isValidBase64(data) {
|
|
327
|
+
if (data === "")
|
|
328
|
+
return true;
|
|
329
|
+
if (data.length % 4 !== 0)
|
|
330
|
+
return false;
|
|
331
|
+
try {
|
|
332
|
+
atob(data);
|
|
333
|
+
return true;
|
|
334
|
+
} catch {
|
|
335
|
+
return false;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
const $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
339
|
+
def.pattern ?? (def.pattern = base64);
|
|
340
|
+
$ZodStringFormat.init(inst, def);
|
|
341
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
342
|
+
inst._zod.check = (payload) => {
|
|
343
|
+
if (isValidBase64(payload.value))
|
|
344
|
+
return;
|
|
345
|
+
payload.issues.push({
|
|
346
|
+
code: "invalid_format",
|
|
347
|
+
format: "base64",
|
|
348
|
+
input: payload.value,
|
|
349
|
+
inst,
|
|
350
|
+
continue: !def.abort
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
});
|
|
354
|
+
function isValidBase64URL(data) {
|
|
355
|
+
if (!base64url.test(data))
|
|
356
|
+
return false;
|
|
357
|
+
const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
358
|
+
const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
|
|
359
|
+
return isValidBase64(padded);
|
|
360
|
+
}
|
|
361
|
+
const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
362
|
+
def.pattern ?? (def.pattern = base64url);
|
|
363
|
+
$ZodStringFormat.init(inst, def);
|
|
364
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
365
|
+
inst._zod.check = (payload) => {
|
|
366
|
+
if (isValidBase64URL(payload.value))
|
|
367
|
+
return;
|
|
368
|
+
payload.issues.push({
|
|
369
|
+
code: "invalid_format",
|
|
370
|
+
format: "base64url",
|
|
371
|
+
input: payload.value,
|
|
372
|
+
inst,
|
|
373
|
+
continue: !def.abort
|
|
374
|
+
});
|
|
375
|
+
};
|
|
376
|
+
});
|
|
377
|
+
const $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
|
|
378
|
+
def.pattern ?? (def.pattern = e164);
|
|
379
|
+
$ZodStringFormat.init(inst, def);
|
|
380
|
+
});
|
|
381
|
+
function isValidJWT(token, algorithm = null) {
|
|
382
|
+
try {
|
|
383
|
+
const tokensParts = token.split(".");
|
|
384
|
+
if (tokensParts.length !== 3)
|
|
385
|
+
return false;
|
|
386
|
+
const [header] = tokensParts;
|
|
387
|
+
if (!header)
|
|
388
|
+
return false;
|
|
389
|
+
const parsedHeader = JSON.parse(atob(header));
|
|
390
|
+
if ("typ" in parsedHeader && (parsedHeader == null ? void 0 : parsedHeader.typ) !== "JWT")
|
|
391
|
+
return false;
|
|
392
|
+
if (!parsedHeader.alg)
|
|
393
|
+
return false;
|
|
394
|
+
if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
|
|
395
|
+
return false;
|
|
396
|
+
return true;
|
|
397
|
+
} catch {
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
402
|
+
$ZodStringFormat.init(inst, def);
|
|
403
|
+
inst._zod.check = (payload) => {
|
|
404
|
+
if (isValidJWT(payload.value, def.alg))
|
|
405
|
+
return;
|
|
406
|
+
payload.issues.push({
|
|
407
|
+
code: "invalid_format",
|
|
408
|
+
format: "jwt",
|
|
409
|
+
input: payload.value,
|
|
410
|
+
inst,
|
|
411
|
+
continue: !def.abort
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
});
|
|
415
|
+
const $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
|
|
416
|
+
$ZodType.init(inst, def);
|
|
417
|
+
inst._zod.parse = (payload) => payload;
|
|
418
|
+
});
|
|
419
|
+
const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
420
|
+
$ZodType.init(inst, def);
|
|
421
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
422
|
+
payload.issues.push({
|
|
423
|
+
expected: "never",
|
|
424
|
+
code: "invalid_type",
|
|
425
|
+
input: payload.value,
|
|
426
|
+
inst
|
|
427
|
+
});
|
|
428
|
+
return payload;
|
|
429
|
+
};
|
|
430
|
+
});
|
|
431
|
+
function handleArrayResult(result, final, index) {
|
|
432
|
+
if (result.issues.length) {
|
|
433
|
+
final.issues.push(...prefixIssues(index, result.issues));
|
|
434
|
+
}
|
|
435
|
+
final.value[index] = result.value;
|
|
436
|
+
}
|
|
437
|
+
const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
438
|
+
$ZodType.init(inst, def);
|
|
439
|
+
inst._zod.parse = (payload, ctx) => {
|
|
440
|
+
const input = payload.value;
|
|
441
|
+
if (!Array.isArray(input)) {
|
|
442
|
+
payload.issues.push({
|
|
443
|
+
expected: "array",
|
|
444
|
+
code: "invalid_type",
|
|
445
|
+
input,
|
|
446
|
+
inst
|
|
447
|
+
});
|
|
448
|
+
return payload;
|
|
449
|
+
}
|
|
450
|
+
payload.value = Array(input.length);
|
|
451
|
+
const proms = [];
|
|
452
|
+
for (let i = 0; i < input.length; i++) {
|
|
453
|
+
const item = input[i];
|
|
454
|
+
const result = def.element._zod.run({
|
|
455
|
+
value: item,
|
|
456
|
+
issues: []
|
|
457
|
+
}, ctx);
|
|
458
|
+
if (result instanceof Promise) {
|
|
459
|
+
proms.push(result.then((result2) => handleArrayResult(result2, payload, i)));
|
|
460
|
+
} else {
|
|
461
|
+
handleArrayResult(result, payload, i);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
if (proms.length) {
|
|
465
|
+
return Promise.all(proms).then(() => payload);
|
|
466
|
+
}
|
|
467
|
+
return payload;
|
|
468
|
+
};
|
|
469
|
+
});
|
|
470
|
+
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
471
|
+
if (result.issues.length) {
|
|
472
|
+
if (isOptionalOut && !(key in input)) {
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
final.issues.push(...prefixIssues(key, result.issues));
|
|
476
|
+
}
|
|
477
|
+
if (result.value === void 0) {
|
|
478
|
+
if (key in input) {
|
|
479
|
+
final.value[key] = void 0;
|
|
480
|
+
}
|
|
481
|
+
} else {
|
|
482
|
+
final.value[key] = result.value;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function normalizeDef(def) {
|
|
486
|
+
var _a, _b, _c, _d;
|
|
487
|
+
const keys = Object.keys(def.shape);
|
|
488
|
+
for (const k of keys) {
|
|
489
|
+
if (!((_d = (_c = (_b = (_a = def.shape) == null ? void 0 : _a[k]) == null ? void 0 : _b._zod) == null ? void 0 : _c.traits) == null ? void 0 : _d.has("$ZodType"))) {
|
|
490
|
+
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
const okeys = optionalKeys(def.shape);
|
|
494
|
+
return {
|
|
495
|
+
...def,
|
|
496
|
+
keys,
|
|
497
|
+
keySet: new Set(keys),
|
|
498
|
+
numKeys: keys.length,
|
|
499
|
+
optionalKeys: new Set(okeys)
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
503
|
+
const unrecognized = [];
|
|
504
|
+
const keySet = def.keySet;
|
|
505
|
+
const _catchall = def.catchall._zod;
|
|
506
|
+
const t = _catchall.def.type;
|
|
507
|
+
const isOptionalOut = _catchall.optout === "optional";
|
|
508
|
+
for (const key in input) {
|
|
509
|
+
if (keySet.has(key))
|
|
510
|
+
continue;
|
|
511
|
+
if (t === "never") {
|
|
512
|
+
unrecognized.push(key);
|
|
513
|
+
continue;
|
|
514
|
+
}
|
|
515
|
+
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
516
|
+
if (r instanceof Promise) {
|
|
517
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
518
|
+
} else {
|
|
519
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
if (unrecognized.length) {
|
|
523
|
+
payload.issues.push({
|
|
524
|
+
code: "unrecognized_keys",
|
|
525
|
+
keys: unrecognized,
|
|
526
|
+
input,
|
|
527
|
+
inst
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
if (!proms.length)
|
|
531
|
+
return payload;
|
|
532
|
+
return Promise.all(proms).then(() => {
|
|
533
|
+
return payload;
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
537
|
+
$ZodType.init(inst, def);
|
|
538
|
+
const desc = Object.getOwnPropertyDescriptor(def, "shape");
|
|
539
|
+
if (!(desc == null ? void 0 : desc.get)) {
|
|
540
|
+
const sh = def.shape;
|
|
541
|
+
Object.defineProperty(def, "shape", {
|
|
542
|
+
get: () => {
|
|
543
|
+
const newSh = { ...sh };
|
|
544
|
+
Object.defineProperty(def, "shape", {
|
|
545
|
+
value: newSh
|
|
546
|
+
});
|
|
547
|
+
return newSh;
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
const _normalized = cached(() => normalizeDef(def));
|
|
552
|
+
defineLazy(inst._zod, "propValues", () => {
|
|
553
|
+
const shape = def.shape;
|
|
554
|
+
const propValues = {};
|
|
555
|
+
for (const key in shape) {
|
|
556
|
+
const field = shape[key]._zod;
|
|
557
|
+
if (field.values) {
|
|
558
|
+
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
559
|
+
for (const v of field.values)
|
|
560
|
+
propValues[key].add(v);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
return propValues;
|
|
564
|
+
});
|
|
565
|
+
const isObject$1 = isObject;
|
|
566
|
+
const catchall = def.catchall;
|
|
567
|
+
let value;
|
|
568
|
+
inst._zod.parse = (payload, ctx) => {
|
|
569
|
+
value ?? (value = _normalized.value);
|
|
570
|
+
const input = payload.value;
|
|
571
|
+
if (!isObject$1(input)) {
|
|
572
|
+
payload.issues.push({
|
|
573
|
+
expected: "object",
|
|
574
|
+
code: "invalid_type",
|
|
575
|
+
input,
|
|
576
|
+
inst
|
|
577
|
+
});
|
|
578
|
+
return payload;
|
|
579
|
+
}
|
|
580
|
+
payload.value = {};
|
|
581
|
+
const proms = [];
|
|
582
|
+
const shape = value.shape;
|
|
583
|
+
for (const key of value.keys) {
|
|
584
|
+
const el = shape[key];
|
|
585
|
+
const isOptionalOut = el._zod.optout === "optional";
|
|
586
|
+
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
587
|
+
if (r instanceof Promise) {
|
|
588
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
589
|
+
} else {
|
|
590
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
if (!catchall) {
|
|
594
|
+
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
595
|
+
}
|
|
596
|
+
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
597
|
+
};
|
|
598
|
+
});
|
|
599
|
+
const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
600
|
+
$ZodObject.init(inst, def);
|
|
601
|
+
const superParse = inst._zod.parse;
|
|
602
|
+
const _normalized = cached(() => normalizeDef(def));
|
|
603
|
+
const generateFastpass = (shape) => {
|
|
604
|
+
var _a;
|
|
605
|
+
const doc = new Doc(["shape", "payload", "ctx"]);
|
|
606
|
+
const normalized = _normalized.value;
|
|
607
|
+
const parseStr = (key) => {
|
|
608
|
+
const k = esc(key);
|
|
609
|
+
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
610
|
+
};
|
|
611
|
+
doc.write(`const input = payload.value;`);
|
|
612
|
+
const ids = /* @__PURE__ */ Object.create(null);
|
|
613
|
+
let counter = 0;
|
|
614
|
+
for (const key of normalized.keys) {
|
|
615
|
+
ids[key] = `key_${counter++}`;
|
|
616
|
+
}
|
|
617
|
+
doc.write(`const newResult = {};`);
|
|
618
|
+
for (const key of normalized.keys) {
|
|
619
|
+
const id = ids[key];
|
|
620
|
+
const k = esc(key);
|
|
621
|
+
const schema = shape[key];
|
|
622
|
+
const isOptionalOut = ((_a = schema == null ? void 0 : schema._zod) == null ? void 0 : _a.optout) === "optional";
|
|
623
|
+
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
624
|
+
if (isOptionalOut) {
|
|
625
|
+
doc.write(`
|
|
626
|
+
if (${id}.issues.length) {
|
|
627
|
+
if (${k} in input) {
|
|
628
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
629
|
+
...iss,
|
|
630
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
631
|
+
})));
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
if (${id}.value === undefined) {
|
|
636
|
+
if (${k} in input) {
|
|
637
|
+
newResult[${k}] = undefined;
|
|
638
|
+
}
|
|
639
|
+
} else {
|
|
640
|
+
newResult[${k}] = ${id}.value;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
`);
|
|
644
|
+
} else {
|
|
645
|
+
doc.write(`
|
|
646
|
+
if (${id}.issues.length) {
|
|
647
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
648
|
+
...iss,
|
|
649
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
650
|
+
})));
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
if (${id}.value === undefined) {
|
|
654
|
+
if (${k} in input) {
|
|
655
|
+
newResult[${k}] = undefined;
|
|
656
|
+
}
|
|
657
|
+
} else {
|
|
658
|
+
newResult[${k}] = ${id}.value;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
`);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
doc.write(`payload.value = newResult;`);
|
|
665
|
+
doc.write(`return payload;`);
|
|
666
|
+
const fn = doc.compile();
|
|
667
|
+
return (payload, ctx) => fn(shape, payload, ctx);
|
|
668
|
+
};
|
|
669
|
+
let fastpass;
|
|
670
|
+
const isObject$1 = isObject;
|
|
671
|
+
const jit = !globalConfig.jitless;
|
|
672
|
+
const allowsEval$1 = allowsEval;
|
|
673
|
+
const fastEnabled = jit && allowsEval$1.value;
|
|
674
|
+
const catchall = def.catchall;
|
|
675
|
+
let value;
|
|
676
|
+
inst._zod.parse = (payload, ctx) => {
|
|
677
|
+
value ?? (value = _normalized.value);
|
|
678
|
+
const input = payload.value;
|
|
679
|
+
if (!isObject$1(input)) {
|
|
680
|
+
payload.issues.push({
|
|
681
|
+
expected: "object",
|
|
682
|
+
code: "invalid_type",
|
|
683
|
+
input,
|
|
684
|
+
inst
|
|
685
|
+
});
|
|
686
|
+
return payload;
|
|
687
|
+
}
|
|
688
|
+
if (jit && fastEnabled && (ctx == null ? void 0 : ctx.async) === false && ctx.jitless !== true) {
|
|
689
|
+
if (!fastpass)
|
|
690
|
+
fastpass = generateFastpass(def.shape);
|
|
691
|
+
payload = fastpass(payload, ctx);
|
|
692
|
+
if (!catchall)
|
|
693
|
+
return payload;
|
|
694
|
+
return handleCatchall([], input, payload, ctx, value, inst);
|
|
695
|
+
}
|
|
696
|
+
return superParse(payload, ctx);
|
|
697
|
+
};
|
|
698
|
+
});
|
|
699
|
+
function handleUnionResults(results, final, inst, ctx) {
|
|
700
|
+
for (const result of results) {
|
|
701
|
+
if (result.issues.length === 0) {
|
|
702
|
+
final.value = result.value;
|
|
703
|
+
return final;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
const nonaborted = results.filter((r) => !aborted(r));
|
|
707
|
+
if (nonaborted.length === 1) {
|
|
708
|
+
final.value = nonaborted[0].value;
|
|
709
|
+
return nonaborted[0];
|
|
710
|
+
}
|
|
711
|
+
final.issues.push({
|
|
712
|
+
code: "invalid_union",
|
|
713
|
+
input: final.value,
|
|
714
|
+
inst,
|
|
715
|
+
errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
716
|
+
});
|
|
717
|
+
return final;
|
|
718
|
+
}
|
|
719
|
+
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
720
|
+
$ZodType.init(inst, def);
|
|
721
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
722
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
723
|
+
defineLazy(inst._zod, "values", () => {
|
|
724
|
+
if (def.options.every((o) => o._zod.values)) {
|
|
725
|
+
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
726
|
+
}
|
|
727
|
+
return void 0;
|
|
728
|
+
});
|
|
729
|
+
defineLazy(inst._zod, "pattern", () => {
|
|
730
|
+
if (def.options.every((o) => o._zod.pattern)) {
|
|
731
|
+
const patterns = def.options.map((o) => o._zod.pattern);
|
|
732
|
+
return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
|
|
733
|
+
}
|
|
734
|
+
return void 0;
|
|
735
|
+
});
|
|
736
|
+
const single = def.options.length === 1;
|
|
737
|
+
const first = def.options[0]._zod.run;
|
|
738
|
+
inst._zod.parse = (payload, ctx) => {
|
|
739
|
+
if (single) {
|
|
740
|
+
return first(payload, ctx);
|
|
741
|
+
}
|
|
742
|
+
let async = false;
|
|
743
|
+
const results = [];
|
|
744
|
+
for (const option of def.options) {
|
|
745
|
+
const result = option._zod.run({
|
|
746
|
+
value: payload.value,
|
|
747
|
+
issues: []
|
|
748
|
+
}, ctx);
|
|
749
|
+
if (result instanceof Promise) {
|
|
750
|
+
results.push(result);
|
|
751
|
+
async = true;
|
|
752
|
+
} else {
|
|
753
|
+
if (result.issues.length === 0)
|
|
754
|
+
return result;
|
|
755
|
+
results.push(result);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
if (!async)
|
|
759
|
+
return handleUnionResults(results, payload, inst, ctx);
|
|
760
|
+
return Promise.all(results).then((results2) => {
|
|
761
|
+
return handleUnionResults(results2, payload, inst, ctx);
|
|
762
|
+
});
|
|
763
|
+
};
|
|
764
|
+
});
|
|
765
|
+
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
766
|
+
$ZodType.init(inst, def);
|
|
767
|
+
inst._zod.parse = (payload, ctx) => {
|
|
768
|
+
const input = payload.value;
|
|
769
|
+
const left = def.left._zod.run({ value: input, issues: [] }, ctx);
|
|
770
|
+
const right = def.right._zod.run({ value: input, issues: [] }, ctx);
|
|
771
|
+
const async = left instanceof Promise || right instanceof Promise;
|
|
772
|
+
if (async) {
|
|
773
|
+
return Promise.all([left, right]).then(([left2, right2]) => {
|
|
774
|
+
return handleIntersectionResults(payload, left2, right2);
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
return handleIntersectionResults(payload, left, right);
|
|
778
|
+
};
|
|
779
|
+
});
|
|
780
|
+
function mergeValues(a, b) {
|
|
781
|
+
if (a === b) {
|
|
782
|
+
return { valid: true, data: a };
|
|
783
|
+
}
|
|
784
|
+
if (a instanceof Date && b instanceof Date && +a === +b) {
|
|
785
|
+
return { valid: true, data: a };
|
|
786
|
+
}
|
|
787
|
+
if (isPlainObject(a) && isPlainObject(b)) {
|
|
788
|
+
const bKeys = Object.keys(b);
|
|
789
|
+
const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
790
|
+
const newObj = { ...a, ...b };
|
|
791
|
+
for (const key of sharedKeys) {
|
|
792
|
+
const sharedValue = mergeValues(a[key], b[key]);
|
|
793
|
+
if (!sharedValue.valid) {
|
|
794
|
+
return {
|
|
795
|
+
valid: false,
|
|
796
|
+
mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
newObj[key] = sharedValue.data;
|
|
800
|
+
}
|
|
801
|
+
return { valid: true, data: newObj };
|
|
802
|
+
}
|
|
803
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
804
|
+
if (a.length !== b.length) {
|
|
805
|
+
return { valid: false, mergeErrorPath: [] };
|
|
806
|
+
}
|
|
807
|
+
const newArray = [];
|
|
808
|
+
for (let index = 0; index < a.length; index++) {
|
|
809
|
+
const itemA = a[index];
|
|
810
|
+
const itemB = b[index];
|
|
811
|
+
const sharedValue = mergeValues(itemA, itemB);
|
|
812
|
+
if (!sharedValue.valid) {
|
|
813
|
+
return {
|
|
814
|
+
valid: false,
|
|
815
|
+
mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
newArray.push(sharedValue.data);
|
|
819
|
+
}
|
|
820
|
+
return { valid: true, data: newArray };
|
|
821
|
+
}
|
|
822
|
+
return { valid: false, mergeErrorPath: [] };
|
|
823
|
+
}
|
|
824
|
+
function handleIntersectionResults(result, left, right) {
|
|
825
|
+
const unrecKeys = /* @__PURE__ */ new Map();
|
|
826
|
+
let unrecIssue;
|
|
827
|
+
for (const iss of left.issues) {
|
|
828
|
+
if (iss.code === "unrecognized_keys") {
|
|
829
|
+
unrecIssue ?? (unrecIssue = iss);
|
|
830
|
+
for (const k of iss.keys) {
|
|
831
|
+
if (!unrecKeys.has(k))
|
|
832
|
+
unrecKeys.set(k, {});
|
|
833
|
+
unrecKeys.get(k).l = true;
|
|
834
|
+
}
|
|
835
|
+
} else {
|
|
836
|
+
result.issues.push(iss);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
for (const iss of right.issues) {
|
|
840
|
+
if (iss.code === "unrecognized_keys") {
|
|
841
|
+
for (const k of iss.keys) {
|
|
842
|
+
if (!unrecKeys.has(k))
|
|
843
|
+
unrecKeys.set(k, {});
|
|
844
|
+
unrecKeys.get(k).r = true;
|
|
845
|
+
}
|
|
846
|
+
} else {
|
|
847
|
+
result.issues.push(iss);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
851
|
+
if (bothKeys.length && unrecIssue) {
|
|
852
|
+
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
853
|
+
}
|
|
854
|
+
if (aborted(result))
|
|
855
|
+
return result;
|
|
856
|
+
const merged = mergeValues(left.value, right.value);
|
|
857
|
+
if (!merged.valid) {
|
|
858
|
+
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
|
|
859
|
+
}
|
|
860
|
+
result.value = merged.data;
|
|
861
|
+
return result;
|
|
862
|
+
}
|
|
863
|
+
const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
864
|
+
$ZodType.init(inst, def);
|
|
865
|
+
const values = getEnumValues(def.entries);
|
|
866
|
+
const valuesSet = new Set(values);
|
|
867
|
+
inst._zod.values = valuesSet;
|
|
868
|
+
inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
|
|
869
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
870
|
+
const input = payload.value;
|
|
871
|
+
if (valuesSet.has(input)) {
|
|
872
|
+
return payload;
|
|
873
|
+
}
|
|
874
|
+
payload.issues.push({
|
|
875
|
+
code: "invalid_value",
|
|
876
|
+
values,
|
|
877
|
+
input,
|
|
878
|
+
inst
|
|
879
|
+
});
|
|
880
|
+
return payload;
|
|
881
|
+
};
|
|
882
|
+
});
|
|
883
|
+
const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
884
|
+
$ZodType.init(inst, def);
|
|
885
|
+
if (def.values.length === 0) {
|
|
886
|
+
throw new Error("Cannot create literal schema with no valid values");
|
|
887
|
+
}
|
|
888
|
+
const values = new Set(def.values);
|
|
889
|
+
inst._zod.values = values;
|
|
890
|
+
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
|
|
891
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
892
|
+
const input = payload.value;
|
|
893
|
+
if (values.has(input)) {
|
|
894
|
+
return payload;
|
|
895
|
+
}
|
|
896
|
+
payload.issues.push({
|
|
897
|
+
code: "invalid_value",
|
|
898
|
+
values: def.values,
|
|
899
|
+
input,
|
|
900
|
+
inst
|
|
901
|
+
});
|
|
902
|
+
return payload;
|
|
903
|
+
};
|
|
904
|
+
});
|
|
905
|
+
const $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
906
|
+
$ZodType.init(inst, def);
|
|
907
|
+
inst._zod.parse = (payload, ctx) => {
|
|
908
|
+
if (ctx.direction === "backward") {
|
|
909
|
+
throw new $ZodEncodeError(inst.constructor.name);
|
|
910
|
+
}
|
|
911
|
+
const _out = def.transform(payload.value, payload);
|
|
912
|
+
if (ctx.async) {
|
|
913
|
+
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
914
|
+
return output.then((output2) => {
|
|
915
|
+
payload.value = output2;
|
|
916
|
+
return payload;
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
if (_out instanceof Promise) {
|
|
920
|
+
throw new $ZodAsyncError();
|
|
921
|
+
}
|
|
922
|
+
payload.value = _out;
|
|
923
|
+
return payload;
|
|
924
|
+
};
|
|
925
|
+
});
|
|
926
|
+
function handleOptionalResult(result, input) {
|
|
927
|
+
if (result.issues.length && input === void 0) {
|
|
928
|
+
return { issues: [], value: void 0 };
|
|
929
|
+
}
|
|
930
|
+
return result;
|
|
931
|
+
}
|
|
932
|
+
const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
933
|
+
$ZodType.init(inst, def);
|
|
934
|
+
inst._zod.optin = "optional";
|
|
935
|
+
inst._zod.optout = "optional";
|
|
936
|
+
defineLazy(inst._zod, "values", () => {
|
|
937
|
+
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
938
|
+
});
|
|
939
|
+
defineLazy(inst._zod, "pattern", () => {
|
|
940
|
+
const pattern = def.innerType._zod.pattern;
|
|
941
|
+
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
|
|
942
|
+
});
|
|
943
|
+
inst._zod.parse = (payload, ctx) => {
|
|
944
|
+
if (def.innerType._zod.optin === "optional") {
|
|
945
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
946
|
+
if (result instanceof Promise)
|
|
947
|
+
return result.then((r) => handleOptionalResult(r, payload.value));
|
|
948
|
+
return handleOptionalResult(result, payload.value);
|
|
949
|
+
}
|
|
950
|
+
if (payload.value === void 0) {
|
|
951
|
+
return payload;
|
|
952
|
+
}
|
|
953
|
+
return def.innerType._zod.run(payload, ctx);
|
|
954
|
+
};
|
|
955
|
+
});
|
|
956
|
+
const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst, def) => {
|
|
957
|
+
$ZodOptional.init(inst, def);
|
|
958
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
959
|
+
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
960
|
+
inst._zod.parse = (payload, ctx) => {
|
|
961
|
+
return def.innerType._zod.run(payload, ctx);
|
|
962
|
+
};
|
|
963
|
+
});
|
|
964
|
+
const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
|
|
965
|
+
$ZodType.init(inst, def);
|
|
966
|
+
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
967
|
+
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
968
|
+
defineLazy(inst._zod, "pattern", () => {
|
|
969
|
+
const pattern = def.innerType._zod.pattern;
|
|
970
|
+
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
|
|
971
|
+
});
|
|
972
|
+
defineLazy(inst._zod, "values", () => {
|
|
973
|
+
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
|
|
974
|
+
});
|
|
975
|
+
inst._zod.parse = (payload, ctx) => {
|
|
976
|
+
if (payload.value === null)
|
|
977
|
+
return payload;
|
|
978
|
+
return def.innerType._zod.run(payload, ctx);
|
|
979
|
+
};
|
|
980
|
+
});
|
|
981
|
+
const $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
|
|
982
|
+
$ZodType.init(inst, def);
|
|
983
|
+
inst._zod.optin = "optional";
|
|
984
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
985
|
+
inst._zod.parse = (payload, ctx) => {
|
|
986
|
+
if (ctx.direction === "backward") {
|
|
987
|
+
return def.innerType._zod.run(payload, ctx);
|
|
988
|
+
}
|
|
989
|
+
if (payload.value === void 0) {
|
|
990
|
+
payload.value = def.defaultValue;
|
|
991
|
+
return payload;
|
|
992
|
+
}
|
|
993
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
994
|
+
if (result instanceof Promise) {
|
|
995
|
+
return result.then((result2) => handleDefaultResult(result2, def));
|
|
996
|
+
}
|
|
997
|
+
return handleDefaultResult(result, def);
|
|
998
|
+
};
|
|
999
|
+
});
|
|
1000
|
+
function handleDefaultResult(payload, def) {
|
|
1001
|
+
if (payload.value === void 0) {
|
|
1002
|
+
payload.value = def.defaultValue;
|
|
1003
|
+
}
|
|
1004
|
+
return payload;
|
|
1005
|
+
}
|
|
1006
|
+
const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
|
|
1007
|
+
$ZodType.init(inst, def);
|
|
1008
|
+
inst._zod.optin = "optional";
|
|
1009
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1010
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1011
|
+
if (ctx.direction === "backward") {
|
|
1012
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1013
|
+
}
|
|
1014
|
+
if (payload.value === void 0) {
|
|
1015
|
+
payload.value = def.defaultValue;
|
|
1016
|
+
}
|
|
1017
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1018
|
+
};
|
|
1019
|
+
});
|
|
1020
|
+
const $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
|
|
1021
|
+
$ZodType.init(inst, def);
|
|
1022
|
+
defineLazy(inst._zod, "values", () => {
|
|
1023
|
+
const v = def.innerType._zod.values;
|
|
1024
|
+
return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
|
|
1025
|
+
});
|
|
1026
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1027
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
1028
|
+
if (result instanceof Promise) {
|
|
1029
|
+
return result.then((result2) => handleNonOptionalResult(result2, inst));
|
|
1030
|
+
}
|
|
1031
|
+
return handleNonOptionalResult(result, inst);
|
|
1032
|
+
};
|
|
1033
|
+
});
|
|
1034
|
+
function handleNonOptionalResult(payload, inst) {
|
|
1035
|
+
if (!payload.issues.length && payload.value === void 0) {
|
|
1036
|
+
payload.issues.push({
|
|
1037
|
+
code: "invalid_type",
|
|
1038
|
+
expected: "nonoptional",
|
|
1039
|
+
input: payload.value,
|
|
1040
|
+
inst
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
return payload;
|
|
1044
|
+
}
|
|
1045
|
+
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
1046
|
+
$ZodType.init(inst, def);
|
|
1047
|
+
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
1048
|
+
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1049
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1050
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1051
|
+
if (ctx.direction === "backward") {
|
|
1052
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1053
|
+
}
|
|
1054
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
1055
|
+
if (result instanceof Promise) {
|
|
1056
|
+
return result.then((result2) => {
|
|
1057
|
+
payload.value = result2.value;
|
|
1058
|
+
if (result2.issues.length) {
|
|
1059
|
+
payload.value = def.catchValue({
|
|
1060
|
+
...payload,
|
|
1061
|
+
error: {
|
|
1062
|
+
issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
1063
|
+
},
|
|
1064
|
+
input: payload.value
|
|
1065
|
+
});
|
|
1066
|
+
payload.issues = [];
|
|
1067
|
+
}
|
|
1068
|
+
return payload;
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
payload.value = result.value;
|
|
1072
|
+
if (result.issues.length) {
|
|
1073
|
+
payload.value = def.catchValue({
|
|
1074
|
+
...payload,
|
|
1075
|
+
error: {
|
|
1076
|
+
issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
1077
|
+
},
|
|
1078
|
+
input: payload.value
|
|
1079
|
+
});
|
|
1080
|
+
payload.issues = [];
|
|
1081
|
+
}
|
|
1082
|
+
return payload;
|
|
1083
|
+
};
|
|
1084
|
+
});
|
|
1085
|
+
const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
1086
|
+
$ZodType.init(inst, def);
|
|
1087
|
+
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
1088
|
+
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
1089
|
+
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
1090
|
+
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
1091
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1092
|
+
if (ctx.direction === "backward") {
|
|
1093
|
+
const right = def.out._zod.run(payload, ctx);
|
|
1094
|
+
if (right instanceof Promise) {
|
|
1095
|
+
return right.then((right2) => handlePipeResult(right2, def.in, ctx));
|
|
1096
|
+
}
|
|
1097
|
+
return handlePipeResult(right, def.in, ctx);
|
|
1098
|
+
}
|
|
1099
|
+
const left = def.in._zod.run(payload, ctx);
|
|
1100
|
+
if (left instanceof Promise) {
|
|
1101
|
+
return left.then((left2) => handlePipeResult(left2, def.out, ctx));
|
|
1102
|
+
}
|
|
1103
|
+
return handlePipeResult(left, def.out, ctx);
|
|
1104
|
+
};
|
|
1105
|
+
});
|
|
1106
|
+
function handlePipeResult(left, next, ctx) {
|
|
1107
|
+
if (left.issues.length) {
|
|
1108
|
+
left.aborted = true;
|
|
1109
|
+
return left;
|
|
1110
|
+
}
|
|
1111
|
+
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
1112
|
+
}
|
|
1113
|
+
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
1114
|
+
$ZodType.init(inst, def);
|
|
1115
|
+
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
1116
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1117
|
+
defineLazy(inst._zod, "optin", () => {
|
|
1118
|
+
var _a, _b;
|
|
1119
|
+
return (_b = (_a = def.innerType) == null ? void 0 : _a._zod) == null ? void 0 : _b.optin;
|
|
1120
|
+
});
|
|
1121
|
+
defineLazy(inst._zod, "optout", () => {
|
|
1122
|
+
var _a, _b;
|
|
1123
|
+
return (_b = (_a = def.innerType) == null ? void 0 : _a._zod) == null ? void 0 : _b.optout;
|
|
1124
|
+
});
|
|
1125
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1126
|
+
if (ctx.direction === "backward") {
|
|
1127
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1128
|
+
}
|
|
1129
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
1130
|
+
if (result instanceof Promise) {
|
|
1131
|
+
return result.then(handleReadonlyResult);
|
|
1132
|
+
}
|
|
1133
|
+
return handleReadonlyResult(result);
|
|
1134
|
+
};
|
|
1135
|
+
});
|
|
1136
|
+
function handleReadonlyResult(payload) {
|
|
1137
|
+
payload.value = Object.freeze(payload.value);
|
|
1138
|
+
return payload;
|
|
1139
|
+
}
|
|
1140
|
+
const $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
1141
|
+
$ZodCheck.init(inst, def);
|
|
1142
|
+
$ZodType.init(inst, def);
|
|
1143
|
+
inst._zod.parse = (payload, _) => {
|
|
1144
|
+
return payload;
|
|
1145
|
+
};
|
|
1146
|
+
inst._zod.check = (payload) => {
|
|
1147
|
+
const input = payload.value;
|
|
1148
|
+
const r = def.fn(input);
|
|
1149
|
+
if (r instanceof Promise) {
|
|
1150
|
+
return r.then((r2) => handleRefineResult(r2, payload, input, inst));
|
|
1151
|
+
}
|
|
1152
|
+
handleRefineResult(r, payload, input, inst);
|
|
1153
|
+
return;
|
|
1154
|
+
};
|
|
1155
|
+
});
|
|
1156
|
+
function handleRefineResult(result, payload, input, inst) {
|
|
1157
|
+
if (!result) {
|
|
1158
|
+
const _iss = {
|
|
1159
|
+
code: "custom",
|
|
1160
|
+
input,
|
|
1161
|
+
inst,
|
|
1162
|
+
// incorporates params.error into issue reporting
|
|
1163
|
+
path: [...inst._zod.def.path ?? []],
|
|
1164
|
+
// incorporates params.error into issue reporting
|
|
1165
|
+
continue: !inst._zod.def.abort
|
|
1166
|
+
// params: inst._zod.def.params,
|
|
1167
|
+
};
|
|
1168
|
+
if (inst._zod.def.params)
|
|
1169
|
+
_iss.params = inst._zod.def.params;
|
|
1170
|
+
payload.issues.push(issue(_iss));
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
export {
|
|
1174
|
+
$ZodArray,
|
|
1175
|
+
$ZodBase64,
|
|
1176
|
+
$ZodBase64URL,
|
|
1177
|
+
$ZodCIDRv4,
|
|
1178
|
+
$ZodCIDRv6,
|
|
1179
|
+
$ZodCUID,
|
|
1180
|
+
$ZodCUID2,
|
|
1181
|
+
$ZodCatch,
|
|
1182
|
+
$ZodCustom,
|
|
1183
|
+
$ZodDefault,
|
|
1184
|
+
$ZodE164,
|
|
1185
|
+
$ZodEmail,
|
|
1186
|
+
$ZodEmoji,
|
|
1187
|
+
$ZodEnum,
|
|
1188
|
+
$ZodExactOptional,
|
|
1189
|
+
$ZodGUID,
|
|
1190
|
+
$ZodIPv4,
|
|
1191
|
+
$ZodIPv6,
|
|
1192
|
+
$ZodISODate,
|
|
1193
|
+
$ZodISODateTime,
|
|
1194
|
+
$ZodISODuration,
|
|
1195
|
+
$ZodISOTime,
|
|
1196
|
+
$ZodIntersection,
|
|
1197
|
+
$ZodJWT,
|
|
1198
|
+
$ZodKSUID,
|
|
1199
|
+
$ZodLiteral,
|
|
1200
|
+
$ZodNanoID,
|
|
1201
|
+
$ZodNever,
|
|
1202
|
+
$ZodNonOptional,
|
|
1203
|
+
$ZodNullable,
|
|
1204
|
+
$ZodObject,
|
|
1205
|
+
$ZodObjectJIT,
|
|
1206
|
+
$ZodOptional,
|
|
1207
|
+
$ZodPipe,
|
|
1208
|
+
$ZodPrefault,
|
|
1209
|
+
$ZodReadonly,
|
|
1210
|
+
$ZodString,
|
|
1211
|
+
$ZodStringFormat,
|
|
1212
|
+
$ZodTransform,
|
|
1213
|
+
$ZodType,
|
|
1214
|
+
$ZodULID,
|
|
1215
|
+
$ZodURL,
|
|
1216
|
+
$ZodUUID,
|
|
1217
|
+
$ZodUnion,
|
|
1218
|
+
$ZodUnknown,
|
|
1219
|
+
$ZodXID,
|
|
1220
|
+
clone,
|
|
1221
|
+
isValidBase64,
|
|
1222
|
+
isValidBase64URL,
|
|
1223
|
+
isValidJWT
|
|
1224
|
+
};
|
|
1225
|
+
//# sourceMappingURL=schemas.js.map
|