@igstack/app-catalog-frontend-core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/esm/App.d.ts +12 -0
- package/dist/esm/App.js +12 -0
- package/dist/esm/App.js.map +1 -0
- package/dist/esm/__tests__/setupTests.d.ts +0 -0
- package/dist/esm/api/infra/createQueryClient.d.ts +9 -0
- package/dist/esm/api/infra/createQueryClient.js +25 -0
- package/dist/esm/api/infra/createQueryClient.js.map +1 -0
- package/dist/esm/api/infra/trpc.d.ts +1624 -0
- package/dist/esm/api/infra/trpc.js +8 -0
- package/dist/esm/api/infra/trpc.js.map +1 -0
- 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/appPropsFactory.d.ts +2 -0
- package/dist/esm/appPropsFactory.js +34 -0
- package/dist/esm/appPropsFactory.js.map +1 -0
- 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.d.ts +1 -0
- package/dist/esm/components/ThemeSwitcher.js +25 -0
- package/dist/esm/components/ThemeSwitcher.js.map +1 -0
- package/dist/esm/components/theme-provider.d.ts +2 -0
- package/dist/esm/components/theme-provider.js +10 -0
- package/dist/esm/components/theme-provider.js.map +1 -0
- package/dist/esm/errors/AuthorizationError.d.ts +19 -0
- package/dist/esm/errors/AuthorizationError.js +20 -0
- package/dist/esm/errors/AuthorizationError.js.map +1 -0
- package/dist/esm/errors/index.d.ts +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/utils.d.ts +2 -0
- package/dist/esm/lib/utils.js +9 -0
- package/dist/esm/lib/utils.js.map +1 -0
- package/dist/esm/main.d.ts +0 -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 +83 -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 +196 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js.map +1 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.js +57 -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 +15 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.js +47 -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/AccessRequestSection.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ui/components/AccessRequestSection.js +257 -0
- package/dist/esm/modules/appCatalog/ui/components/AccessRequestSection.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ui/components/ApproverDisplay.d.ts +30 -0
- package/dist/esm/modules/appCatalog/ui/components/GroupingColumn.d.ts +11 -0
- package/dist/esm/modules/appCatalog/ui/components/GroupingTabs.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ui/components/ScreenshotGallery.d.ts +10 -0
- package/dist/esm/modules/appCatalog/ui/components/ScreenshotGallery.js +35 -0
- package/dist/esm/modules/appCatalog/ui/components/ScreenshotGallery.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 +8 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js +325 -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 +2 -0
- package/dist/esm/modules/appCatalog/ui/hooks/useKeyboardNavigation.d.ts +10 -0
- package/dist/esm/modules/appCatalog/ui/hooks/useKeyboardNavigation.js +36 -0
- package/dist/esm/modules/appCatalog/ui/hooks/useKeyboardNavigation.js.map +1 -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 +112 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js.map +1 -0
- package/dist/esm/modules/approvalMethod/AccessRequestFormFields.d.ts +7 -0
- package/dist/esm/modules/approvalMethod/AccessRequestFormFields.js +323 -0
- package/dist/esm/modules/approvalMethod/AccessRequestFormFields.js.map +1 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.d.ts +14 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.js +227 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.js.map +1 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.d.ts +7 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.js +124 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.js.map +1 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.d.ts +381 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.js +26 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.js.map +1 -0
- package/dist/esm/modules/auth/AuthContext.d.ts +38 -0
- package/dist/esm/modules/auth/AuthContext.js +88 -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/authUtils.d.ts +6 -0
- package/dist/esm/modules/auth/authUtils.js +25 -0
- package/dist/esm/modules/auth/authUtils.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/GlobalConfigContext.d.ts +14 -0
- package/dist/esm/modules/config/GlobalConfigContext.js +21 -0
- package/dist/esm/modules/config/GlobalConfigContext.js.map +1 -0
- package/dist/esm/modules/config/HealthStateContext.d.ts +16 -0
- package/dist/esm/modules/gallery/Gallery.d.ts +12 -0
- package/dist/esm/modules/gallery/Gallery.js +246 -0
- package/dist/esm/modules/gallery/Gallery.js.map +1 -0
- package/dist/esm/modules/icons/IconManagementPage.d.ts +1 -0
- package/dist/esm/modules/icons/IconManagementPage.js +177 -0
- package/dist/esm/modules/icons/IconManagementPage.js.map +1 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.d.ts +19 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.js +29 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.js.map +1 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.d.ts +4 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js +9 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js.map +1 -0
- package/dist/esm/modules/pluginCore/types.d.ts +24 -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 +632 -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 +500 -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 +274 -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 +80 -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 +1247 -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/plugins/builtin/pageUrl/pageUrlTypes.d.ts +11 -0
- package/dist/esm/routeTree.gen.d.ts +263 -0
- package/dist/esm/routeTree.gen.js +117 -0
- package/dist/esm/routeTree.gen.js.map +1 -0
- package/dist/esm/routes/__root.d.ts +2 -0
- package/dist/esm/routes/__root.js +22 -0
- package/dist/esm/routes/__root.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.apps.index.d.ts +5 -0
- package/dist/esm/routes/_layout/catalog.apps.index.js +25 -0
- package/dist/esm/routes/_layout/catalog.apps.index.js.map +1 -0
- package/dist/esm/routes/_layout/index.d.ts +7 -0
- package/dist/esm/routes/_layout/index.js +28 -0
- package/dist/esm/routes/_layout/index.js.map +1 -0
- package/dist/esm/routes/_layout/login.d.ts +1 -0
- package/dist/esm/routes/_layout/login.js +16 -0
- package/dist/esm/routes/_layout/login.js.map +1 -0
- package/dist/esm/routes/_layout.d.ts +1 -0
- package/dist/esm/routes/_layout.js +12 -0
- package/dist/esm/routes/_layout.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 +67 -0
- package/dist/esm/routes/admin/app-for-catalog/_id.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/_id2.js +321 -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/approval-methods/index.d.ts +32 -0
- package/dist/esm/routes/admin/approval-methods/index.js +24 -0
- package/dist/esm/routes/admin/approval-methods/index.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods/index2.js +100 -0
- package/dist/esm/routes/admin/approval-methods/index2.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods.d.ts +1 -0
- package/dist/esm/routes/admin/approval-methods.js +14 -0
- package/dist/esm/routes/admin/approval-methods.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods2.js +7 -0
- package/dist/esm/routes/admin/approval-methods2.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 +37 -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 +56 -0
- package/dist/esm/routes/auth.callback.js.map +1 -0
- package/dist/esm/types/slateTypes.d.ts +28 -0
- package/dist/esm/types/table.d.ts +7 -0
- package/dist/esm/types/tanstackQuery.d.ts +13 -0
- package/dist/esm/types/types.d.ts +25 -0
- package/dist/esm/types/userBehaviourTypes.d.ts +76 -0
- package/dist/esm/types/utilityTypes.d.ts +1 -0
- package/dist/esm/ui/accordion.d.ts +7 -0
- package/dist/esm/ui/accordion.js +65 -0
- package/dist/esm/ui/accordion.js.map +1 -0
- package/dist/esm/ui/alert-dialog.d.ts +14 -0
- package/dist/esm/ui/alert-dialog.js +141 -0
- package/dist/esm/ui/alert-dialog.js.map +1 -0
- package/dist/esm/ui/autocomplete.d.ts +29 -0
- package/dist/esm/ui/badge.d.ts +9 -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.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/collapsible.d.ts +5 -0
- package/dist/esm/ui/command.d.ts +20 -0
- package/dist/esm/ui/command.js +131 -0
- package/dist/esm/ui/command.js.map +1 -0
- package/dist/esm/ui/components/ActionCard.d.ts +9 -0
- package/dist/esm/ui/components/AppIcon.d.ts +7 -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 +2 -0
- package/dist/esm/ui/components/commandInput/types.d.ts +13 -0
- package/dist/esm/ui/components/error/BaseErrorPage.d.ts +10 -0
- package/dist/esm/ui/components/error/BaseErrorPage.js +16 -0
- package/dist/esm/ui/components/error/BaseErrorPage.js.map +1 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.d.ts +3 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.js +73 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.js.map +1 -0
- package/dist/esm/ui/components/error/ForbiddenErrorPage.d.ts +5 -0
- package/dist/esm/ui/components/error/ForbiddenErrorPage.js +54 -0
- package/dist/esm/ui/components/error/ForbiddenErrorPage.js.map +1 -0
- package/dist/esm/ui/components/error/RootErrorPage.d.ts +5 -0
- package/dist/esm/ui/components/error/RootErrorPage.js +15 -0
- package/dist/esm/ui/components/error/RootErrorPage.js.map +1 -0
- package/dist/esm/ui/components/footer/Footer.d.ts +1 -0
- package/dist/esm/ui/components/header/Header.d.ts +5 -0
- package/dist/esm/ui/components/header/Header.js +103 -0
- package/dist/esm/ui/components/header/Header.js.map +1 -0
- package/dist/esm/ui/components/widgetPanel/AddWidgetCard.d.ts +5 -0
- package/dist/esm/ui/components/widgetPanel/WidgetGrid.d.ts +6 -0
- package/dist/esm/ui/components/widgets/CredentialsWidget.d.ts +11 -0
- package/dist/esm/ui/components/widgets/VersionWidget.d.ts +7 -0
- package/dist/esm/ui/crud-list/CrudList.d.ts +2 -0
- package/dist/esm/ui/crud-list/CrudList.js +189 -0
- package/dist/esm/ui/crud-list/CrudList.js.map +1 -0
- package/dist/esm/ui/crud-list/index.d.ts +2 -0
- package/dist/esm/ui/crud-list/types.d.ts +35 -0
- package/dist/esm/ui/dialog.d.ts +15 -0
- package/dist/esm/ui/dialog.js +111 -0
- package/dist/esm/ui/dialog.js.map +1 -0
- package/dist/esm/ui/dropdown-menu.d.ts +25 -0
- package/dist/esm/ui/dropdown-menu.js +79 -0
- package/dist/esm/ui/dropdown-menu.js.map +1 -0
- package/dist/esm/ui/editable-list/EditableListField.d.ts +2 -0
- package/dist/esm/ui/editable-list/EditableListField.js +130 -0
- package/dist/esm/ui/editable-list/EditableListField.js.map +1 -0
- package/dist/esm/ui/editable-list/index.d.ts +2 -0
- package/dist/esm/ui/editable-list/types.d.ts +17 -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.d.ts +1 -0
- package/dist/esm/ui/error/NotFoundError.js +17 -0
- package/dist/esm/ui/error/NotFoundError.js.map +1 -0
- 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.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/item.d.ts +23 -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/Footer.d.ts +1 -0
- package/dist/esm/ui/layout/LoadingScreen.d.ts +6 -0
- package/dist/esm/ui/layout/LoadingScreen.js +54 -0
- package/dist/esm/ui/layout/LoadingScreen.js.map +1 -0
- package/dist/esm/ui/layout/MainLayout.d.ts +7 -0
- package/dist/esm/ui/layout/MainLayout.js +17 -0
- package/dist/esm/ui/layout/MainLayout.js.map +1 -0
- package/dist/esm/ui/layout/SideColumn.d.ts +1 -0
- package/dist/esm/ui/layout/TopLevelProviders.d.ts +10 -0
- package/dist/esm/ui/layout/TopLevelProviders.js +46 -0
- package/dist/esm/ui/layout/TopLevelProviders.js.map +1 -0
- 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 +13 -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/main/JumpTabContent.d.ts +1 -0
- package/dist/esm/ui/main/Tabs.d.ts +4 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.d.ts +9 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.js +116 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.js.map +1 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.d.ts +6 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.js +99 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.js.map +1 -0
- package/dist/esm/ui/markdown-editor/index.d.ts +2 -0
- package/dist/esm/ui/popover.d.ts +7 -0
- package/dist/esm/ui/popover.js +40 -0
- package/dist/esm/ui/popover.js.map +1 -0
- package/dist/esm/ui/radio-group.d.ts +5 -0
- package/dist/esm/ui/resizable.d.ts +7 -0
- package/dist/esm/ui/resizable.js +47 -0
- package/dist/esm/ui/resizable.js.map +1 -0
- package/dist/esm/ui/scroll-area.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/ui/separator.d.ts +4 -0
- package/dist/esm/ui/shortcut-button.d.ts +24 -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/tabs.d.ts +7 -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/AcDb.d.ts +14 -0
- package/dist/esm/userDb/AcDb.js +28 -0
- package/dist/esm/userDb/AcDb.js.map +1 -0
- package/dist/esm/userDb/DbContext.d.ts +9 -0
- package/dist/esm/userDb/DbContext.js +18 -0
- package/dist/esm/userDb/DbContext.js.map +1 -0
- package/dist/esm/util/createEhRouter.d.ts +7 -0
- package/dist/esm/util/createEhRouter.js +19 -0
- package/dist/esm/util/createEhRouter.js.map +1 -0
- 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/highlightMatches.d.ts +2 -0
- package/dist/esm/util/reactQueryUtils.d.ts +10 -0
- package/dist/esm/util/reactQueryUtils.js +17 -0
- package/dist/esm/util/reactQueryUtils.js.map +1 -0
- 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/apple-touch-180x180.png +0 -0
- package/dist/public/favicon-app-catalog.ico +0 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/robots.txt +2 -0
- package/package.json +159 -0
- 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/favicon-app-catalog.ico +0 -0
- package/public/favicon.ico +0 -0
- package/public/robots.txt +2 -0
- package/src/App.tsx +28 -0
- package/src/__tests__/setupTests.tsx +0 -0
- package/src/api/infra/createQueryClient.ts +29 -0
- package/src/api/infra/trpc.ts +6 -0
- package/src/api/unsorted/appCatalogFetcher.ts +32 -0
- package/src/api/unsorted/createCachingFetcher.ts +159 -0
- package/src/appPropsFactory.ts +37 -0
- 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 +22 -0
- package/src/components/theme-provider.tsx +8 -0
- package/src/errors/AuthorizationError.ts +32 -0
- package/src/errors/index.ts +1 -0
- package/src/index.css +225 -0
- package/src/index.tsx +3 -0
- package/src/lib/utils.ts +7 -0
- package/src/main.tsx +57 -0
- package/src/modules/admin-base/components/AdminChat.tsx +122 -0
- package/src/modules/admin-base/components/AdminLayout.tsx +111 -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 +274 -0
- package/src/modules/appCatalog/ScreenshotItem.tsx +59 -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 +52 -0
- package/src/modules/appCatalog/index.ts +16 -0
- package/src/modules/appCatalog/routeLoader.ts +9 -0
- package/src/modules/appCatalog/ui/components/AccessRequestSection.tsx +370 -0
- package/src/modules/appCatalog/ui/components/AppDetailModal.tsx +355 -0
- package/src/modules/appCatalog/ui/components/ApproverDisplay.tsx +260 -0
- package/src/modules/appCatalog/ui/components/GroupingColumn.tsx +65 -0
- package/src/modules/appCatalog/ui/components/GroupingTabs.tsx +41 -0
- package/src/modules/appCatalog/ui/components/ScreenshotGallery.tsx +51 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogFiltersCard.tsx +79 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogGrid.tsx +487 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogTable.tsx +89 -0
- package/src/modules/appCatalog/ui/grid/appCatalogUtils.ts +5 -0
- package/src/modules/appCatalog/ui/hooks/useKeyboardNavigation.ts +54 -0
- package/src/modules/appCatalog/ui/layout/AppCatalogLayout.tsx +57 -0
- package/src/modules/appCatalog/ui/pages/AppCatalogPage.tsx +142 -0
- package/src/modules/approvalMethod/AccessRequestFormFields.tsx +393 -0
- package/src/modules/approvalMethod/ApprovalMethodForm.tsx +323 -0
- package/src/modules/approvalMethod/ApprovalMethodSelector.tsx +150 -0
- package/src/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.ts +34 -0
- package/src/modules/auth/AuthContext.tsx +130 -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/authUtils.ts +41 -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/GlobalConfigContext.tsx +42 -0
- package/src/modules/config/HealthStateContext.tsx +47 -0
- package/src/modules/gallery/Gallery.tsx +317 -0
- package/src/modules/icons/IconManagementPage.tsx +245 -0
- package/src/modules/pluginCore/PluginManagerContext.tsx +78 -0
- package/src/modules/pluginCore/makePluginManagerContext.ts +13 -0
- package/src/modules/pluginCore/types.ts +27 -0
- package/src/plugins/builtin/pageUrl/pageUrlTypes.ts +16 -0
- package/src/routeTree.gen.ts +361 -0
- package/src/routes/__root.tsx +23 -0
- package/src/routes/_layout/catalog.apps.index.tsx +28 -0
- package/src/routes/_layout/index.tsx +31 -0
- package/src/routes/_layout/login.tsx +20 -0
- package/src/routes/_layout.tsx +9 -0
- package/src/routes/admin/app-for-catalog/$id.tsx +571 -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/approval-methods/index.tsx +161 -0
- package/src/routes/admin/approval-methods.tsx +10 -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 +60 -0
- package/src/routes/auth.callback.tsx +74 -0
- package/src/types/slateTypes.ts +22 -0
- package/src/types/table.ts +9 -0
- package/src/types/tanstackQuery.ts +16 -0
- package/src/types/types.ts +30 -0
- package/src/types/userBehaviourTypes.ts +100 -0
- package/src/types/utilityTypes.ts +1 -0
- package/src/types/vite-env.d.ts +2 -0
- package/src/ui/accordion.tsx +64 -0
- package/src/ui/alert-dialog.tsx +155 -0
- package/src/ui/autocomplete.tsx +272 -0
- package/src/ui/badge.tsx +38 -0
- 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/ui/collapsible.tsx +45 -0
- package/src/ui/command.tsx +196 -0
- package/src/ui/components/ActionCard.tsx +30 -0
- package/src/ui/components/AppIcon.tsx +48 -0
- package/src/ui/components/Breadcrumbs.tsx +97 -0
- package/src/ui/components/commandInput/EhBaseSelector.tsx +17 -0
- package/src/ui/components/commandInput/types.ts +22 -0
- package/src/ui/components/error/BaseErrorPage.tsx +26 -0
- package/src/ui/components/error/DefaultErrorComponent.tsx +107 -0
- package/src/ui/components/error/ForbiddenErrorPage.tsx +89 -0
- package/src/ui/components/error/RootErrorPage.tsx +23 -0
- package/src/ui/components/footer/Footer.tsx +51 -0
- package/src/ui/components/header/Header.tsx +135 -0
- package/src/ui/components/widgetPanel/AddWidgetCard.tsx +17 -0
- package/src/ui/components/widgetPanel/WidgetGrid.tsx +18 -0
- package/src/ui/components/widgets/CredentialsWidget.tsx +55 -0
- package/src/ui/components/widgets/VersionWidget.tsx +29 -0
- package/src/ui/crud-list/CrudList.tsx +274 -0
- package/src/ui/crud-list/index.ts +2 -0
- package/src/ui/crud-list/types.ts +44 -0
- package/src/ui/dialog.tsx +141 -0
- package/src/ui/dropdown-menu.tsx +255 -0
- package/src/ui/editable-list/EditableListField.tsx +188 -0
- package/src/ui/editable-list/index.ts +2 -0
- package/src/ui/editable-list/types.ts +18 -0
- package/src/ui/empty.tsx +105 -0
- package/src/ui/error/NotFoundError.tsx +16 -0
- 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/item.tsx +194 -0
- package/src/ui/label.tsx +22 -0
- package/src/ui/layout/Footer.tsx +16 -0
- package/src/ui/layout/LoadingScreen.tsx +67 -0
- package/src/ui/layout/MainLayout.tsx +28 -0
- package/src/ui/layout/SideColumn.tsx +3 -0
- package/src/ui/layout/TopLevelProviders.tsx +63 -0
- package/src/ui/layout/TopLevelProvidersForErrors.tsx +34 -0
- package/src/ui/link.tsx +33 -0
- package/src/ui/linkExternal.tsx +26 -0
- package/src/ui/main/JumpTabContent.tsx +12 -0
- package/src/ui/main/Tabs.tsx +29 -0
- package/src/ui/markdown-editor/MarkdownEditor.tsx +132 -0
- package/src/ui/markdown-editor/MarkdownToolbar.tsx +90 -0
- package/src/ui/markdown-editor/index.ts +2 -0
- package/src/ui/popover.tsx +48 -0
- package/src/ui/radio-group.tsx +43 -0
- package/src/ui/resizable.tsx +51 -0
- package/src/ui/scroll-area.tsx +58 -0
- package/src/ui/search-input-with-shortcut.tsx +54 -0
- package/src/ui/select.tsx +185 -0
- package/src/ui/separator.tsx +26 -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/ui/tabs.tsx +64 -0
- package/src/ui/textarea.tsx +18 -0
- package/src/ui/tooltip.tsx +60 -0
- package/src/userDb/AcDb.ts +29 -0
- package/src/userDb/DbContext.tsx +22 -0
- package/src/util/createEhRouter.tsx +22 -0
- package/src/util/error-utils.ts +31 -0
- package/src/util/highlightMatches.tsx +29 -0
- package/src/util/reactQueryUtils.ts +20 -0
- package/src/util/slug-utils.ts +17 -0
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
import { $constructor, $ZodEncodeError } from "../core/core.js";
|
|
2
|
+
import { normalizeParams, mergeDefs, clone, shallowClone, issue, defineLazy, extend, safeExtend, merge, pick, omit, partial, required } from "../core/util.js";
|
|
3
|
+
import { $ZodEnum, $ZodLiteral, $ZodType, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodNonOptional, $ZodUnion, $ZodIntersection, $ZodPipe, $ZodTransform, $ZodDefault, $ZodPrefault, $ZodCatch, $ZodReadonly, $ZodObjectJIT, $ZodString, $ZodBoolean, $ZodArray, $ZodCustom, $ZodStringFormat, $ZodEmail, $ZodGUID, $ZodUUID, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodIPv4, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodUnknown, $ZodNever } from "../core/schemas.js";
|
|
4
|
+
import { globalRegistry } from "../core/registries.js";
|
|
5
|
+
import { _string, _boolean, _array, _overwrite, _refine, _superRefine, _email, _url, _jwt, _emoji, _guid, _uuid, _uuidv4, _uuidv6, _uuidv7, _nanoid, _cuid, _cuid2, _ulid, _base64, _base64url, _xid, _ksuid, _ipv4, _ipv6, _cidrv4, _cidrv6, _e164, _minLength, _maxLength, _length, _unknown, _never, _regex, _includes, _startsWith, _endsWith, _lowercase, _uppercase, _trim, _normalize, _toLowerCase, _toUpperCase, _slugify } from "../core/api.js";
|
|
6
|
+
import { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from "../core/to-json-schema.js";
|
|
7
|
+
import { enumProcessor, literalProcessor, optionalProcessor, nullableProcessor, nonoptionalProcessor, unionProcessor, intersectionProcessor, pipeProcessor, transformProcessor, defaultProcessor, prefaultProcessor, catchProcessor, readonlyProcessor, objectProcessor, booleanProcessor, arrayProcessor, customProcessor, stringProcessor, unknownProcessor, neverProcessor } from "../core/json-schema-processors.js";
|
|
8
|
+
import { datetime, date, time, duration } from "./iso.js";
|
|
9
|
+
import { parse, safeParse, parseAsync, safeParseAsync, encode, decode, encodeAsync, decodeAsync, safeEncode, safeDecode, safeEncodeAsync, safeDecodeAsync } from "./parse.js";
|
|
10
|
+
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
11
|
+
$ZodType.init(inst, def);
|
|
12
|
+
Object.assign(inst["~standard"], {
|
|
13
|
+
jsonSchema: {
|
|
14
|
+
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
15
|
+
output: createStandardJSONSchemaMethod(inst, "output")
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
|
|
19
|
+
inst.def = def;
|
|
20
|
+
inst.type = def.type;
|
|
21
|
+
Object.defineProperty(inst, "_def", { value: def });
|
|
22
|
+
inst.check = (...checks) => {
|
|
23
|
+
return inst.clone(mergeDefs(def, {
|
|
24
|
+
checks: [
|
|
25
|
+
...def.checks ?? [],
|
|
26
|
+
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
27
|
+
]
|
|
28
|
+
}), {
|
|
29
|
+
parent: true
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
inst.with = inst.check;
|
|
33
|
+
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
34
|
+
inst.brand = () => inst;
|
|
35
|
+
inst.register = ((reg, meta) => {
|
|
36
|
+
reg.add(inst, meta);
|
|
37
|
+
return inst;
|
|
38
|
+
});
|
|
39
|
+
inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
|
|
40
|
+
inst.safeParse = (data, params) => safeParse(inst, data, params);
|
|
41
|
+
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
42
|
+
inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
|
|
43
|
+
inst.spa = inst.safeParseAsync;
|
|
44
|
+
inst.encode = (data, params) => encode(inst, data, params);
|
|
45
|
+
inst.decode = (data, params) => decode(inst, data, params);
|
|
46
|
+
inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
|
|
47
|
+
inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
|
|
48
|
+
inst.safeEncode = (data, params) => safeEncode(inst, data, params);
|
|
49
|
+
inst.safeDecode = (data, params) => safeDecode(inst, data, params);
|
|
50
|
+
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
|
|
51
|
+
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
52
|
+
inst.refine = (check, params) => inst.check(refine(check, params));
|
|
53
|
+
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
54
|
+
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
55
|
+
inst.optional = () => optional(inst);
|
|
56
|
+
inst.exactOptional = () => exactOptional(inst);
|
|
57
|
+
inst.nullable = () => nullable(inst);
|
|
58
|
+
inst.nullish = () => optional(nullable(inst));
|
|
59
|
+
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
60
|
+
inst.array = () => array(inst);
|
|
61
|
+
inst.or = (arg) => union([inst, arg]);
|
|
62
|
+
inst.and = (arg) => intersection(inst, arg);
|
|
63
|
+
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
64
|
+
inst.default = (def2) => _default(inst, def2);
|
|
65
|
+
inst.prefault = (def2) => prefault(inst, def2);
|
|
66
|
+
inst.catch = (params) => _catch(inst, params);
|
|
67
|
+
inst.pipe = (target) => pipe(inst, target);
|
|
68
|
+
inst.readonly = () => readonly(inst);
|
|
69
|
+
inst.describe = (description) => {
|
|
70
|
+
const cl = inst.clone();
|
|
71
|
+
globalRegistry.add(cl, { description });
|
|
72
|
+
return cl;
|
|
73
|
+
};
|
|
74
|
+
Object.defineProperty(inst, "description", {
|
|
75
|
+
get() {
|
|
76
|
+
var _a;
|
|
77
|
+
return (_a = globalRegistry.get(inst)) == null ? void 0 : _a.description;
|
|
78
|
+
},
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
inst.meta = (...args) => {
|
|
82
|
+
if (args.length === 0) {
|
|
83
|
+
return globalRegistry.get(inst);
|
|
84
|
+
}
|
|
85
|
+
const cl = inst.clone();
|
|
86
|
+
globalRegistry.add(cl, args[0]);
|
|
87
|
+
return cl;
|
|
88
|
+
};
|
|
89
|
+
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
90
|
+
inst.isNullable = () => inst.safeParse(null).success;
|
|
91
|
+
inst.apply = (fn) => fn(inst);
|
|
92
|
+
return inst;
|
|
93
|
+
});
|
|
94
|
+
const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
95
|
+
$ZodString.init(inst, def);
|
|
96
|
+
ZodType.init(inst, def);
|
|
97
|
+
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json);
|
|
98
|
+
const bag = inst._zod.bag;
|
|
99
|
+
inst.format = bag.format ?? null;
|
|
100
|
+
inst.minLength = bag.minimum ?? null;
|
|
101
|
+
inst.maxLength = bag.maximum ?? null;
|
|
102
|
+
inst.regex = (...args) => inst.check(_regex(...args));
|
|
103
|
+
inst.includes = (...args) => inst.check(_includes(...args));
|
|
104
|
+
inst.startsWith = (...args) => inst.check(_startsWith(...args));
|
|
105
|
+
inst.endsWith = (...args) => inst.check(_endsWith(...args));
|
|
106
|
+
inst.min = (...args) => inst.check(_minLength(...args));
|
|
107
|
+
inst.max = (...args) => inst.check(_maxLength(...args));
|
|
108
|
+
inst.length = (...args) => inst.check(_length(...args));
|
|
109
|
+
inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
|
|
110
|
+
inst.lowercase = (params) => inst.check(_lowercase(params));
|
|
111
|
+
inst.uppercase = (params) => inst.check(_uppercase(params));
|
|
112
|
+
inst.trim = () => inst.check(_trim());
|
|
113
|
+
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
114
|
+
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
115
|
+
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
116
|
+
inst.slugify = () => inst.check(_slugify());
|
|
117
|
+
});
|
|
118
|
+
const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
119
|
+
$ZodString.init(inst, def);
|
|
120
|
+
_ZodString.init(inst, def);
|
|
121
|
+
inst.email = (params) => inst.check(_email(ZodEmail, params));
|
|
122
|
+
inst.url = (params) => inst.check(_url(ZodURL, params));
|
|
123
|
+
inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
|
|
124
|
+
inst.emoji = (params) => inst.check(_emoji(ZodEmoji, params));
|
|
125
|
+
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
126
|
+
inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
|
|
127
|
+
inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
|
|
128
|
+
inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
|
|
129
|
+
inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
|
|
130
|
+
inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
|
|
131
|
+
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
132
|
+
inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
|
|
133
|
+
inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
|
|
134
|
+
inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
|
|
135
|
+
inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
|
|
136
|
+
inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
|
|
137
|
+
inst.xid = (params) => inst.check(_xid(ZodXID, params));
|
|
138
|
+
inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
|
|
139
|
+
inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
|
|
140
|
+
inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
|
|
141
|
+
inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
|
|
142
|
+
inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
|
|
143
|
+
inst.e164 = (params) => inst.check(_e164(ZodE164, params));
|
|
144
|
+
inst.datetime = (params) => inst.check(datetime(params));
|
|
145
|
+
inst.date = (params) => inst.check(date(params));
|
|
146
|
+
inst.time = (params) => inst.check(time(params));
|
|
147
|
+
inst.duration = (params) => inst.check(duration(params));
|
|
148
|
+
});
|
|
149
|
+
function string(params) {
|
|
150
|
+
return _string(ZodString, params);
|
|
151
|
+
}
|
|
152
|
+
const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
|
|
153
|
+
$ZodStringFormat.init(inst, def);
|
|
154
|
+
_ZodString.init(inst, def);
|
|
155
|
+
});
|
|
156
|
+
const ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
|
|
157
|
+
$ZodEmail.init(inst, def);
|
|
158
|
+
ZodStringFormat.init(inst, def);
|
|
159
|
+
});
|
|
160
|
+
const ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
|
|
161
|
+
$ZodGUID.init(inst, def);
|
|
162
|
+
ZodStringFormat.init(inst, def);
|
|
163
|
+
});
|
|
164
|
+
const ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
|
|
165
|
+
$ZodUUID.init(inst, def);
|
|
166
|
+
ZodStringFormat.init(inst, def);
|
|
167
|
+
});
|
|
168
|
+
const ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
|
|
169
|
+
$ZodURL.init(inst, def);
|
|
170
|
+
ZodStringFormat.init(inst, def);
|
|
171
|
+
});
|
|
172
|
+
const ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
|
|
173
|
+
$ZodEmoji.init(inst, def);
|
|
174
|
+
ZodStringFormat.init(inst, def);
|
|
175
|
+
});
|
|
176
|
+
const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
|
|
177
|
+
$ZodNanoID.init(inst, def);
|
|
178
|
+
ZodStringFormat.init(inst, def);
|
|
179
|
+
});
|
|
180
|
+
const ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
|
|
181
|
+
$ZodCUID.init(inst, def);
|
|
182
|
+
ZodStringFormat.init(inst, def);
|
|
183
|
+
});
|
|
184
|
+
const ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
|
|
185
|
+
$ZodCUID2.init(inst, def);
|
|
186
|
+
ZodStringFormat.init(inst, def);
|
|
187
|
+
});
|
|
188
|
+
const ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
|
|
189
|
+
$ZodULID.init(inst, def);
|
|
190
|
+
ZodStringFormat.init(inst, def);
|
|
191
|
+
});
|
|
192
|
+
const ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
|
|
193
|
+
$ZodXID.init(inst, def);
|
|
194
|
+
ZodStringFormat.init(inst, def);
|
|
195
|
+
});
|
|
196
|
+
const ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
|
|
197
|
+
$ZodKSUID.init(inst, def);
|
|
198
|
+
ZodStringFormat.init(inst, def);
|
|
199
|
+
});
|
|
200
|
+
const ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
|
|
201
|
+
$ZodIPv4.init(inst, def);
|
|
202
|
+
ZodStringFormat.init(inst, def);
|
|
203
|
+
});
|
|
204
|
+
const ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
|
|
205
|
+
$ZodIPv6.init(inst, def);
|
|
206
|
+
ZodStringFormat.init(inst, def);
|
|
207
|
+
});
|
|
208
|
+
const ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
|
|
209
|
+
$ZodCIDRv4.init(inst, def);
|
|
210
|
+
ZodStringFormat.init(inst, def);
|
|
211
|
+
});
|
|
212
|
+
const ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
|
|
213
|
+
$ZodCIDRv6.init(inst, def);
|
|
214
|
+
ZodStringFormat.init(inst, def);
|
|
215
|
+
});
|
|
216
|
+
const ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
|
|
217
|
+
$ZodBase64.init(inst, def);
|
|
218
|
+
ZodStringFormat.init(inst, def);
|
|
219
|
+
});
|
|
220
|
+
const ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
|
|
221
|
+
$ZodBase64URL.init(inst, def);
|
|
222
|
+
ZodStringFormat.init(inst, def);
|
|
223
|
+
});
|
|
224
|
+
const ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
|
|
225
|
+
$ZodE164.init(inst, def);
|
|
226
|
+
ZodStringFormat.init(inst, def);
|
|
227
|
+
});
|
|
228
|
+
const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
229
|
+
$ZodJWT.init(inst, def);
|
|
230
|
+
ZodStringFormat.init(inst, def);
|
|
231
|
+
});
|
|
232
|
+
const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
233
|
+
$ZodBoolean.init(inst, def);
|
|
234
|
+
ZodType.init(inst, def);
|
|
235
|
+
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json);
|
|
236
|
+
});
|
|
237
|
+
function boolean(params) {
|
|
238
|
+
return _boolean(ZodBoolean, params);
|
|
239
|
+
}
|
|
240
|
+
const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
241
|
+
$ZodUnknown.init(inst, def);
|
|
242
|
+
ZodType.init(inst, def);
|
|
243
|
+
inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor();
|
|
244
|
+
});
|
|
245
|
+
function unknown() {
|
|
246
|
+
return _unknown(ZodUnknown);
|
|
247
|
+
}
|
|
248
|
+
const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
249
|
+
$ZodNever.init(inst, def);
|
|
250
|
+
ZodType.init(inst, def);
|
|
251
|
+
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json);
|
|
252
|
+
});
|
|
253
|
+
function never(params) {
|
|
254
|
+
return _never(ZodNever, params);
|
|
255
|
+
}
|
|
256
|
+
const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
257
|
+
$ZodArray.init(inst, def);
|
|
258
|
+
ZodType.init(inst, def);
|
|
259
|
+
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
260
|
+
inst.element = def.element;
|
|
261
|
+
inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
|
|
262
|
+
inst.nonempty = (params) => inst.check(_minLength(1, params));
|
|
263
|
+
inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
|
|
264
|
+
inst.length = (len, params) => inst.check(_length(len, params));
|
|
265
|
+
inst.unwrap = () => inst.element;
|
|
266
|
+
});
|
|
267
|
+
function array(element, params) {
|
|
268
|
+
return _array(ZodArray, element, params);
|
|
269
|
+
}
|
|
270
|
+
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
271
|
+
$ZodObjectJIT.init(inst, def);
|
|
272
|
+
ZodType.init(inst, def);
|
|
273
|
+
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
274
|
+
defineLazy(inst, "shape", () => {
|
|
275
|
+
return def.shape;
|
|
276
|
+
});
|
|
277
|
+
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
278
|
+
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
|
|
279
|
+
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
280
|
+
inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
281
|
+
inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
|
|
282
|
+
inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
|
|
283
|
+
inst.extend = (incoming) => {
|
|
284
|
+
return extend(inst, incoming);
|
|
285
|
+
};
|
|
286
|
+
inst.safeExtend = (incoming) => {
|
|
287
|
+
return safeExtend(inst, incoming);
|
|
288
|
+
};
|
|
289
|
+
inst.merge = (other) => merge(inst, other);
|
|
290
|
+
inst.pick = (mask) => pick(inst, mask);
|
|
291
|
+
inst.omit = (mask) => omit(inst, mask);
|
|
292
|
+
inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
|
|
293
|
+
inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
|
|
294
|
+
});
|
|
295
|
+
function object(shape, params) {
|
|
296
|
+
const def = {
|
|
297
|
+
type: "object",
|
|
298
|
+
shape: shape ?? {},
|
|
299
|
+
...normalizeParams(params)
|
|
300
|
+
};
|
|
301
|
+
return new ZodObject(def);
|
|
302
|
+
}
|
|
303
|
+
const ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
|
|
304
|
+
$ZodUnion.init(inst, def);
|
|
305
|
+
ZodType.init(inst, def);
|
|
306
|
+
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
307
|
+
inst.options = def.options;
|
|
308
|
+
});
|
|
309
|
+
function union(options, params) {
|
|
310
|
+
return new ZodUnion({
|
|
311
|
+
type: "union",
|
|
312
|
+
options,
|
|
313
|
+
...normalizeParams(params)
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
const ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
|
|
317
|
+
$ZodIntersection.init(inst, def);
|
|
318
|
+
ZodType.init(inst, def);
|
|
319
|
+
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
320
|
+
});
|
|
321
|
+
function intersection(left, right) {
|
|
322
|
+
return new ZodIntersection({
|
|
323
|
+
type: "intersection",
|
|
324
|
+
left,
|
|
325
|
+
right
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
const ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
329
|
+
$ZodEnum.init(inst, def);
|
|
330
|
+
ZodType.init(inst, def);
|
|
331
|
+
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json);
|
|
332
|
+
inst.enum = def.entries;
|
|
333
|
+
inst.options = Object.values(def.entries);
|
|
334
|
+
const keys = new Set(Object.keys(def.entries));
|
|
335
|
+
inst.extract = (values, params) => {
|
|
336
|
+
const newEntries = {};
|
|
337
|
+
for (const value of values) {
|
|
338
|
+
if (keys.has(value)) {
|
|
339
|
+
newEntries[value] = def.entries[value];
|
|
340
|
+
} else
|
|
341
|
+
throw new Error(`Key ${value} not found in enum`);
|
|
342
|
+
}
|
|
343
|
+
return new ZodEnum({
|
|
344
|
+
...def,
|
|
345
|
+
checks: [],
|
|
346
|
+
...normalizeParams(params),
|
|
347
|
+
entries: newEntries
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
inst.exclude = (values, params) => {
|
|
351
|
+
const newEntries = { ...def.entries };
|
|
352
|
+
for (const value of values) {
|
|
353
|
+
if (keys.has(value)) {
|
|
354
|
+
delete newEntries[value];
|
|
355
|
+
} else
|
|
356
|
+
throw new Error(`Key ${value} not found in enum`);
|
|
357
|
+
}
|
|
358
|
+
return new ZodEnum({
|
|
359
|
+
...def,
|
|
360
|
+
checks: [],
|
|
361
|
+
...normalizeParams(params),
|
|
362
|
+
entries: newEntries
|
|
363
|
+
});
|
|
364
|
+
};
|
|
365
|
+
});
|
|
366
|
+
function _enum(values, params) {
|
|
367
|
+
const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
368
|
+
return new ZodEnum({
|
|
369
|
+
type: "enum",
|
|
370
|
+
entries,
|
|
371
|
+
...normalizeParams(params)
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
const ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
|
|
375
|
+
$ZodLiteral.init(inst, def);
|
|
376
|
+
ZodType.init(inst, def);
|
|
377
|
+
inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json);
|
|
378
|
+
inst.values = new Set(def.values);
|
|
379
|
+
Object.defineProperty(inst, "value", {
|
|
380
|
+
get() {
|
|
381
|
+
if (def.values.length > 1) {
|
|
382
|
+
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
383
|
+
}
|
|
384
|
+
return def.values[0];
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
function literal(value, params) {
|
|
389
|
+
return new ZodLiteral({
|
|
390
|
+
type: "literal",
|
|
391
|
+
values: Array.isArray(value) ? value : [value],
|
|
392
|
+
...normalizeParams(params)
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
396
|
+
$ZodTransform.init(inst, def);
|
|
397
|
+
ZodType.init(inst, def);
|
|
398
|
+
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx);
|
|
399
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
400
|
+
if (_ctx.direction === "backward") {
|
|
401
|
+
throw new $ZodEncodeError(inst.constructor.name);
|
|
402
|
+
}
|
|
403
|
+
payload.addIssue = (issue$1) => {
|
|
404
|
+
if (typeof issue$1 === "string") {
|
|
405
|
+
payload.issues.push(issue(issue$1, payload.value, def));
|
|
406
|
+
} else {
|
|
407
|
+
const _issue = issue$1;
|
|
408
|
+
if (_issue.fatal)
|
|
409
|
+
_issue.continue = false;
|
|
410
|
+
_issue.code ?? (_issue.code = "custom");
|
|
411
|
+
_issue.input ?? (_issue.input = payload.value);
|
|
412
|
+
_issue.inst ?? (_issue.inst = inst);
|
|
413
|
+
payload.issues.push(issue(_issue));
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
const output = def.transform(payload.value, payload);
|
|
417
|
+
if (output instanceof Promise) {
|
|
418
|
+
return output.then((output2) => {
|
|
419
|
+
payload.value = output2;
|
|
420
|
+
return payload;
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
payload.value = output;
|
|
424
|
+
return payload;
|
|
425
|
+
};
|
|
426
|
+
});
|
|
427
|
+
function transform(fn) {
|
|
428
|
+
return new ZodTransform({
|
|
429
|
+
type: "transform",
|
|
430
|
+
transform: fn
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
const ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
|
|
434
|
+
$ZodOptional.init(inst, def);
|
|
435
|
+
ZodType.init(inst, def);
|
|
436
|
+
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
437
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
438
|
+
});
|
|
439
|
+
function optional(innerType) {
|
|
440
|
+
return new ZodOptional({
|
|
441
|
+
type: "optional",
|
|
442
|
+
innerType
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
const ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => {
|
|
446
|
+
$ZodExactOptional.init(inst, def);
|
|
447
|
+
ZodType.init(inst, def);
|
|
448
|
+
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
449
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
450
|
+
});
|
|
451
|
+
function exactOptional(innerType) {
|
|
452
|
+
return new ZodExactOptional({
|
|
453
|
+
type: "optional",
|
|
454
|
+
innerType
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
const ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
|
|
458
|
+
$ZodNullable.init(inst, def);
|
|
459
|
+
ZodType.init(inst, def);
|
|
460
|
+
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
461
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
462
|
+
});
|
|
463
|
+
function nullable(innerType) {
|
|
464
|
+
return new ZodNullable({
|
|
465
|
+
type: "nullable",
|
|
466
|
+
innerType
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
const ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
|
|
470
|
+
$ZodDefault.init(inst, def);
|
|
471
|
+
ZodType.init(inst, def);
|
|
472
|
+
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
473
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
474
|
+
inst.removeDefault = inst.unwrap;
|
|
475
|
+
});
|
|
476
|
+
function _default(innerType, defaultValue) {
|
|
477
|
+
return new ZodDefault({
|
|
478
|
+
type: "default",
|
|
479
|
+
innerType,
|
|
480
|
+
get defaultValue() {
|
|
481
|
+
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
const ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
|
|
486
|
+
$ZodPrefault.init(inst, def);
|
|
487
|
+
ZodType.init(inst, def);
|
|
488
|
+
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
489
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
490
|
+
});
|
|
491
|
+
function prefault(innerType, defaultValue) {
|
|
492
|
+
return new ZodPrefault({
|
|
493
|
+
type: "prefault",
|
|
494
|
+
innerType,
|
|
495
|
+
get defaultValue() {
|
|
496
|
+
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
const ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
|
|
501
|
+
$ZodNonOptional.init(inst, def);
|
|
502
|
+
ZodType.init(inst, def);
|
|
503
|
+
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
504
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
505
|
+
});
|
|
506
|
+
function nonoptional(innerType, params) {
|
|
507
|
+
return new ZodNonOptional({
|
|
508
|
+
type: "nonoptional",
|
|
509
|
+
innerType,
|
|
510
|
+
...normalizeParams(params)
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
const ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
|
|
514
|
+
$ZodCatch.init(inst, def);
|
|
515
|
+
ZodType.init(inst, def);
|
|
516
|
+
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
517
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
518
|
+
inst.removeCatch = inst.unwrap;
|
|
519
|
+
});
|
|
520
|
+
function _catch(innerType, catchValue) {
|
|
521
|
+
return new ZodCatch({
|
|
522
|
+
type: "catch",
|
|
523
|
+
innerType,
|
|
524
|
+
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
const ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
|
|
528
|
+
$ZodPipe.init(inst, def);
|
|
529
|
+
ZodType.init(inst, def);
|
|
530
|
+
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
531
|
+
inst.in = def.in;
|
|
532
|
+
inst.out = def.out;
|
|
533
|
+
});
|
|
534
|
+
function pipe(in_, out) {
|
|
535
|
+
return new ZodPipe({
|
|
536
|
+
type: "pipe",
|
|
537
|
+
in: in_,
|
|
538
|
+
out
|
|
539
|
+
// ...util.normalizeParams(params),
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
543
|
+
$ZodReadonly.init(inst, def);
|
|
544
|
+
ZodType.init(inst, def);
|
|
545
|
+
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
546
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
547
|
+
});
|
|
548
|
+
function readonly(innerType) {
|
|
549
|
+
return new ZodReadonly({
|
|
550
|
+
type: "readonly",
|
|
551
|
+
innerType
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
555
|
+
$ZodCustom.init(inst, def);
|
|
556
|
+
ZodType.init(inst, def);
|
|
557
|
+
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx);
|
|
558
|
+
});
|
|
559
|
+
function refine(fn, _params = {}) {
|
|
560
|
+
return _refine(ZodCustom, fn, _params);
|
|
561
|
+
}
|
|
562
|
+
function superRefine(fn) {
|
|
563
|
+
return _superRefine(fn);
|
|
564
|
+
}
|
|
565
|
+
export {
|
|
566
|
+
ZodArray,
|
|
567
|
+
ZodBase64,
|
|
568
|
+
ZodBase64URL,
|
|
569
|
+
ZodBoolean,
|
|
570
|
+
ZodCIDRv4,
|
|
571
|
+
ZodCIDRv6,
|
|
572
|
+
ZodCUID,
|
|
573
|
+
ZodCUID2,
|
|
574
|
+
ZodCatch,
|
|
575
|
+
ZodCustom,
|
|
576
|
+
ZodDefault,
|
|
577
|
+
ZodE164,
|
|
578
|
+
ZodEmail,
|
|
579
|
+
ZodEmoji,
|
|
580
|
+
ZodEnum,
|
|
581
|
+
ZodExactOptional,
|
|
582
|
+
ZodGUID,
|
|
583
|
+
ZodIPv4,
|
|
584
|
+
ZodIPv6,
|
|
585
|
+
ZodIntersection,
|
|
586
|
+
ZodJWT,
|
|
587
|
+
ZodKSUID,
|
|
588
|
+
ZodLiteral,
|
|
589
|
+
ZodNanoID,
|
|
590
|
+
ZodNever,
|
|
591
|
+
ZodNonOptional,
|
|
592
|
+
ZodNullable,
|
|
593
|
+
ZodObject,
|
|
594
|
+
ZodOptional,
|
|
595
|
+
ZodPipe,
|
|
596
|
+
ZodPrefault,
|
|
597
|
+
ZodReadonly,
|
|
598
|
+
ZodString,
|
|
599
|
+
ZodStringFormat,
|
|
600
|
+
ZodTransform,
|
|
601
|
+
ZodType,
|
|
602
|
+
ZodULID,
|
|
603
|
+
ZodURL,
|
|
604
|
+
ZodUUID,
|
|
605
|
+
ZodUnion,
|
|
606
|
+
ZodUnknown,
|
|
607
|
+
ZodXID,
|
|
608
|
+
_ZodString,
|
|
609
|
+
_default,
|
|
610
|
+
array,
|
|
611
|
+
boolean,
|
|
612
|
+
_catch as catch,
|
|
613
|
+
_enum as enum,
|
|
614
|
+
exactOptional,
|
|
615
|
+
intersection,
|
|
616
|
+
literal,
|
|
617
|
+
never,
|
|
618
|
+
nonoptional,
|
|
619
|
+
nullable,
|
|
620
|
+
object,
|
|
621
|
+
optional,
|
|
622
|
+
pipe,
|
|
623
|
+
prefault,
|
|
624
|
+
readonly,
|
|
625
|
+
refine,
|
|
626
|
+
string,
|
|
627
|
+
superRefine,
|
|
628
|
+
transform,
|
|
629
|
+
union,
|
|
630
|
+
unknown
|
|
631
|
+
};
|
|
632
|
+
//# sourceMappingURL=schemas.js.map
|