@btst/stack 2.5.6 → 2.6.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/README.md +23 -0
- package/dist/client/components/index.d.cts +9 -9
- package/dist/client/components/index.d.mts +9 -9
- package/dist/client/components/index.d.ts +9 -9
- package/dist/components/auto-form/index.cjs +8 -0
- package/dist/components/auto-form/index.d.cts +26 -0
- package/dist/components/auto-form/index.d.mts +26 -0
- package/dist/components/auto-form/index.d.ts +26 -0
- package/dist/components/auto-form/index.mjs +1 -0
- package/dist/components/empty/index.cjs +12 -0
- package/dist/components/empty/index.d.cts +15 -0
- package/dist/components/empty/index.d.mts +15 -0
- package/dist/components/empty/index.d.ts +15 -0
- package/dist/components/empty/index.mjs +1 -0
- package/dist/components/form-builder/index.cjs +16 -0
- package/dist/components/form-builder/index.d.cts +385 -0
- package/dist/components/form-builder/index.d.mts +385 -0
- package/dist/components/form-builder/index.d.ts +385 -0
- package/dist/components/form-builder/index.mjs +4 -0
- package/dist/components/markdown/index.cjs +9 -0
- package/dist/components/markdown/index.d.cts +30 -0
- package/dist/components/markdown/index.d.mts +30 -0
- package/dist/components/markdown/index.d.ts +30 -0
- package/dist/components/markdown/index.mjs +2 -0
- package/dist/components/markdown/style.css +394 -0
- package/dist/components/minimal-tiptap/style.css +548 -0
- package/dist/components/multi-select/index.cjs +7 -0
- package/dist/components/multi-select/index.d.cts +78 -0
- package/dist/components/multi-select/index.d.mts +78 -0
- package/dist/components/multi-select/index.d.ts +78 -0
- package/dist/components/multi-select/index.mjs +1 -0
- package/dist/components/search-select/index.cjs +7 -0
- package/dist/components/search-select/index.d.cts +15 -0
- package/dist/components/search-select/index.d.mts +15 -0
- package/dist/components/search-select/index.d.ts +15 -0
- package/dist/components/search-select/index.mjs +1 -0
- package/dist/components/stepped-auto-form/index.cjs +7 -0
- package/dist/components/stepped-auto-form/index.d.cts +37 -0
- package/dist/components/stepped-auto-form/index.d.mts +37 -0
- package/dist/components/stepped-auto-form/index.d.ts +37 -0
- package/dist/components/stepped-auto-form/index.mjs +1 -0
- package/dist/components/ui-builder/style.css +552 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +1 -1
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +1 -1
- package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0__react@19.2.0/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +2 -2
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +3 -3
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -1
- package/dist/packages/stack/src/plugins/ai-chat/client/components/shared/default-error.cjs +1 -1
- package/dist/packages/stack/src/plugins/ai-chat/client/components/shared/default-error.mjs +1 -1
- package/dist/packages/stack/src/plugins/ai-chat/client/plugin.cjs +44 -35
- package/dist/packages/stack/src/plugins/ai-chat/client/plugin.mjs +44 -35
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.cjs +23 -0
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.mjs +21 -0
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor.cjs +11 -12
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor.mjs +11 -12
- package/dist/packages/stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
- package/dist/packages/stack/src/plugins/blog/client/components/forms/post-forms.mjs +2 -2
- package/dist/packages/stack/src/plugins/blog/client/components/shared/default-error.cjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/components/shared/default-error.mjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-input.cjs +0 -3
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-input.mjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-modal.cjs +0 -3
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-modal.mjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/hooks/use-debounce.cjs +22 -0
- package/dist/packages/stack/src/plugins/blog/client/hooks/use-debounce.mjs +23 -2
- package/dist/packages/stack/src/plugins/blog/client/plugin.cjs +12 -6
- package/dist/packages/stack/src/plugins/blog/client/plugin.mjs +12 -6
- package/dist/packages/stack/src/plugins/cms/client/components/shared/default-error.cjs +1 -1
- package/dist/packages/stack/src/plugins/cms/client/components/shared/default-error.mjs +1 -1
- package/dist/packages/stack/src/plugins/cms/client/plugin.cjs +38 -26
- package/dist/packages/stack/src/plugins/cms/client/plugin.mjs +38 -26
- package/dist/packages/stack/src/plugins/form-builder/client/components/shared/default-error.cjs +1 -1
- package/dist/packages/stack/src/plugins/form-builder/client/components/shared/default-error.mjs +1 -1
- package/dist/packages/stack/src/plugins/form-builder/client/plugin.cjs +32 -20
- package/dist/packages/stack/src/plugins/form-builder/client/plugin.mjs +32 -20
- package/dist/packages/stack/src/plugins/kanban/client/components/shared/default-error.cjs +1 -1
- package/dist/packages/stack/src/plugins/kanban/client/components/shared/default-error.mjs +1 -1
- package/dist/packages/stack/src/plugins/kanban/client/plugin.cjs +6 -3
- package/dist/packages/stack/src/plugins/kanban/client/plugin.mjs +6 -3
- package/dist/packages/stack/src/plugins/ui-builder/client/components/page-renderer.cjs +1 -1
- package/dist/packages/stack/src/plugins/ui-builder/client/components/page-renderer.mjs +1 -1
- package/dist/packages/stack/src/plugins/ui-builder/client/components/shared/default-error.cjs +1 -1
- package/dist/packages/stack/src/plugins/ui-builder/client/components/shared/default-error.mjs +1 -1
- package/dist/packages/stack/src/plugins/ui-builder/client/plugin.cjs +24 -15
- package/dist/packages/stack/src/plugins/ui-builder/client/plugin.mjs +24 -15
- package/dist/packages/ui/src/components/auto-form/index.cjs +12 -2
- package/dist/packages/ui/src/components/auto-form/index.mjs +9 -2
- package/dist/packages/ui/src/components/auto-form/stepped-auto-form.cjs +2 -2
- package/dist/packages/ui/src/components/empty.cjs +28 -0
- package/dist/packages/ui/src/components/empty.mjs +27 -1
- package/dist/packages/ui/src/components/form-builder/components/index.mjs +2 -2
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.cjs +1 -1
- package/dist/packages/ui/src/components/form-builder/index.mjs +2 -2
- package/dist/packages/ui/src/components/form.mjs +1 -1
- package/dist/packages/ui/src/components/kanban.mjs +1 -1
- package/dist/packages/ui/src/components/multi-select.mjs +2 -2
- package/dist/packages/ui/src/components/search-select.cjs +13 -3
- package/dist/packages/ui/src/components/search-select.mjs +14 -4
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +1 -1
- package/dist/plugins/ai-chat/client/index.d.cts +17 -4
- package/dist/plugins/ai-chat/client/index.d.mts +17 -4
- package/dist/plugins/ai-chat/client/index.d.ts +17 -4
- package/dist/plugins/blog/api/index.d.cts +2 -2
- package/dist/plugins/blog/api/index.d.mts +2 -2
- package/dist/plugins/blog/api/index.d.ts +2 -2
- package/dist/plugins/blog/client/hooks/index.cjs +3 -0
- package/dist/plugins/blog/client/hooks/index.d.cts +7 -226
- package/dist/plugins/blog/client/hooks/index.d.mts +7 -226
- package/dist/plugins/blog/client/hooks/index.d.ts +7 -226
- package/dist/plugins/blog/client/hooks/index.mjs +1 -0
- package/dist/plugins/blog/client/index.d.cts +46 -22
- package/dist/plugins/blog/client/index.d.mts +46 -22
- package/dist/plugins/blog/client/index.d.ts +46 -22
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/cms/client/index.d.cts +36 -15
- package/dist/plugins/cms/client/index.d.mts +36 -15
- package/dist/plugins/cms/client/index.d.ts +36 -15
- package/dist/plugins/form-builder/client/components/index.d.cts +2 -2
- package/dist/plugins/form-builder/client/components/index.d.mts +2 -2
- package/dist/plugins/form-builder/client/components/index.d.ts +2 -2
- package/dist/plugins/form-builder/client/index.d.cts +33 -15
- package/dist/plugins/form-builder/client/index.d.mts +33 -15
- package/dist/plugins/form-builder/client/index.d.ts +33 -15
- package/dist/plugins/kanban/api/index.d.cts +1 -1
- package/dist/plugins/kanban/api/index.d.mts +1 -1
- package/dist/plugins/kanban/api/index.d.ts +1 -1
- package/dist/plugins/kanban/client/components/index.d.cts +5 -5
- package/dist/plugins/kanban/client/components/index.d.mts +5 -5
- package/dist/plugins/kanban/client/components/index.d.ts +5 -5
- package/dist/plugins/kanban/client/index.d.cts +25 -10
- package/dist/plugins/kanban/client/index.d.mts +25 -10
- package/dist/plugins/kanban/client/index.d.ts +25 -10
- package/dist/plugins/kanban/query-keys.d.cts +1 -1
- package/dist/plugins/kanban/query-keys.d.mts +1 -1
- package/dist/plugins/kanban/query-keys.d.ts +1 -1
- package/dist/plugins/route-docs/client/index.d.cts +4 -4
- package/dist/plugins/route-docs/client/index.d.mts +4 -4
- package/dist/plugins/route-docs/client/index.d.ts +4 -4
- package/dist/plugins/ui-builder/client/components/index.d.cts +3 -3
- package/dist/plugins/ui-builder/client/components/index.d.mts +3 -3
- package/dist/plugins/ui-builder/client/components/index.d.ts +3 -3
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +3 -3
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +3 -3
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +3 -3
- package/dist/plugins/ui-builder/client/index.d.cts +32 -18
- package/dist/plugins/ui-builder/client/index.d.mts +32 -18
- package/dist/plugins/ui-builder/client/index.d.ts +32 -18
- package/dist/plugins/ui-builder/index.d.cts +3 -3
- package/dist/plugins/ui-builder/index.d.mts +3 -3
- package/dist/plugins/ui-builder/index.d.ts +3 -3
- package/dist/shared/{stack.B2DwzF3r.d.ts → stack.ASwEoINr.d.ts} +1 -1
- package/dist/shared/{stack.C5ZSOJGJ.d.cts → stack.B1srlBud.d.mts} +1 -1
- package/dist/shared/stack.B8vT-Yt4.d.mts +228 -0
- package/dist/shared/stack.BAT540yW.d.ts +228 -0
- package/dist/shared/{stack.D0QupDcQ.d.ts → stack.BK9Z2dcL.d.ts} +1 -1
- package/dist/shared/stack.BwA7trxA.d.cts +228 -0
- package/dist/shared/{stack.Cl7ok_cY.d.cts → stack.CFECM0ew.d.cts} +1 -1
- package/dist/shared/stack.CZMWR72v.d.cts +10 -0
- package/dist/shared/stack.CZMWR72v.d.mts +10 -0
- package/dist/shared/stack.CZMWR72v.d.ts +10 -0
- package/dist/shared/{stack.VMmQdbsJ.d.mts → stack.DVtk5CNw.d.mts} +1 -1
- package/dist/shared/{stack.B8_74ror.d.ts → stack.DXnclTG7.d.ts} +4 -4
- package/dist/shared/{stack.C21-LFX8.d.cts → stack.DaZM10cp.d.cts} +4 -4
- package/dist/shared/{stack.Dq4qVr1F.d.mts → stack.DmpPDPxA.d.cts} +1 -1
- package/dist/shared/{stack.CL4mKxe7.d.mts → stack.cfCkioTe.d.mts} +4 -4
- package/dist/shared/stack.fdi94T4S.d.cts +291 -0
- package/dist/shared/stack.fdi94T4S.d.mts +291 -0
- package/dist/shared/stack.fdi94T4S.d.ts +291 -0
- package/package.json +115 -4
- package/src/__tests__/page-component-overrides.test.tsx +147 -0
- package/src/components/auto-form/index.ts +12 -0
- package/src/components/empty/index.ts +8 -0
- package/src/components/form-builder/index.ts +23 -0
- package/src/components/kanban/index.ts +9 -0
- package/src/components/markdown/index.ts +5 -0
- package/src/components/markdown/style.css +3 -0
- package/src/components/minimal-tiptap/index.ts +5 -0
- package/src/components/minimal-tiptap/style.css +1 -0
- package/src/components/multi-select/index.ts +5 -0
- package/src/components/search-select/index.ts +1 -0
- package/src/components/stepped-auto-form/index.ts +5 -0
- package/src/components/ui-builder/index.ts +50 -0
- package/src/components/ui-builder/style.css +5 -0
- package/src/plugins/ai-chat/client/components/shared/default-error.tsx +1 -1
- package/src/plugins/ai-chat/client/plugin.tsx +60 -32
- package/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.tsx +29 -0
- package/src/plugins/blog/client/components/forms/markdown-editor.tsx +24 -21
- package/src/plugins/blog/client/components/forms/post-forms.tsx +2 -2
- package/src/plugins/blog/client/components/shared/default-error.tsx +2 -1
- package/src/plugins/blog/client/components/shared/posts-list.tsx +1 -1
- package/src/plugins/blog/client/components/shared/search-input.tsx +0 -2
- package/src/plugins/blog/client/components/shared/search-modal.tsx +0 -2
- package/src/plugins/blog/client/hooks/index.tsx +1 -0
- package/src/plugins/blog/client/plugin.tsx +41 -6
- package/src/plugins/cms/client/components/shared/default-error.tsx +3 -2
- package/src/plugins/cms/client/plugin.tsx +65 -32
- package/src/plugins/form-builder/client/components/shared/default-error.tsx +3 -2
- package/src/plugins/form-builder/client/plugin.tsx +56 -23
- package/src/plugins/kanban/client/components/shared/default-error.tsx +3 -2
- package/src/plugins/kanban/client/plugin.tsx +23 -3
- package/src/plugins/ui-builder/client/components/page-renderer.tsx +5 -3
- package/src/plugins/ui-builder/client/components/shared/default-error.tsx +3 -2
- package/src/plugins/ui-builder/client/plugin.tsx +41 -15
- package/dist/shared/stack.8nldKomx.d.cts +0 -114
- package/dist/shared/stack.8nldKomx.d.mts +0 -114
- package/dist/shared/stack.8nldKomx.d.ts +0 -114
- package/dist/shared/{stack.CxNeGV2z.d.mts → stack.B8D4r97Z.d.mts} +6 -6
- package/dist/shared/{stack.BWp0hcm9.d.cts → stack.BQmuNl5p.d.cts} +3 -3
- package/dist/shared/{stack.BWp0hcm9.d.mts → stack.BQmuNl5p.d.mts} +3 -3
- package/dist/shared/{stack.BWp0hcm9.d.ts → stack.BQmuNl5p.d.ts} +3 -3
- package/dist/shared/{stack.BFcg0tDz.d.ts → stack.DgKOwl20.d.ts} +6 -6
- package/dist/shared/{stack.DSxTDZBQ.d.cts → stack.uWSqCWAb.d.cts} +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { K as KanbanApiRouter, j as BoardsListDiscriminator } from '../../shared/stack.
|
|
2
|
+
import { K as KanbanApiRouter, j as BoardsListDiscriminator } from '../../shared/stack.DgKOwl20.js';
|
|
3
3
|
import { createApiClient } from '@btst/stack/plugins/client';
|
|
4
4
|
import { S as SerializedBoardWithColumns } from '../../shared/stack.DJaKVY7v.js';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import * as _btst_yar from '@btst/yar';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { a as SitemapEntry, b as ClientStackContext } from '../../../shared/stack.7n9Y_u7N.cjs';
|
|
@@ -101,9 +101,9 @@ interface RouteDocsClientConfig {
|
|
|
101
101
|
declare const routeDocsClientPlugin: (config: RouteDocsClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
102
102
|
docs: {
|
|
103
103
|
(inputCtx_0?: _btst_yar.InputContext<"/route-docs", _btst_yar.RouteOptions> | undefined): {
|
|
104
|
-
PageComponent?:
|
|
105
|
-
LoadingComponent?:
|
|
106
|
-
ErrorComponent?:
|
|
104
|
+
PageComponent?: React.ComponentType<unknown> | undefined;
|
|
105
|
+
LoadingComponent?: React.ComponentType<unknown> | undefined;
|
|
106
|
+
ErrorComponent?: React.ComponentType<unknown> | undefined;
|
|
107
107
|
loader?: (() => Promise<void>) | undefined;
|
|
108
108
|
meta?: (() => ({
|
|
109
109
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import * as _btst_yar from '@btst/yar';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { a as SitemapEntry, b as ClientStackContext } from '../../../shared/stack.7n9Y_u7N.mjs';
|
|
@@ -101,9 +101,9 @@ interface RouteDocsClientConfig {
|
|
|
101
101
|
declare const routeDocsClientPlugin: (config: RouteDocsClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
102
102
|
docs: {
|
|
103
103
|
(inputCtx_0?: _btst_yar.InputContext<"/route-docs", _btst_yar.RouteOptions> | undefined): {
|
|
104
|
-
PageComponent?:
|
|
105
|
-
LoadingComponent?:
|
|
106
|
-
ErrorComponent?:
|
|
104
|
+
PageComponent?: React.ComponentType<unknown> | undefined;
|
|
105
|
+
LoadingComponent?: React.ComponentType<unknown> | undefined;
|
|
106
|
+
ErrorComponent?: React.ComponentType<unknown> | undefined;
|
|
107
107
|
loader?: (() => Promise<void>) | undefined;
|
|
108
108
|
meta?: (() => ({
|
|
109
109
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import * as _btst_yar from '@btst/yar';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { a as SitemapEntry, b as ClientStackContext } from '../../../shared/stack.7n9Y_u7N.js';
|
|
@@ -101,9 +101,9 @@ interface RouteDocsClientConfig {
|
|
|
101
101
|
declare const routeDocsClientPlugin: (config: RouteDocsClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
102
102
|
docs: {
|
|
103
103
|
(inputCtx_0?: _btst_yar.InputContext<"/route-docs", _btst_yar.RouteOptions> | undefined): {
|
|
104
|
-
PageComponent?:
|
|
105
|
-
LoadingComponent?:
|
|
106
|
-
ErrorComponent?:
|
|
104
|
+
PageComponent?: React.ComponentType<unknown> | undefined;
|
|
105
|
+
LoadingComponent?: React.ComponentType<unknown> | undefined;
|
|
106
|
+
ErrorComponent?: React.ComponentType<unknown> | undefined;
|
|
107
107
|
loader?: (() => Promise<void>) | undefined;
|
|
108
108
|
meta?: (() => ({
|
|
109
109
|
title: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { a as ComponentRegistry, P as PropValue, F as FunctionRegistry } from '../../../../shared/stack.
|
|
2
|
+
import { a as ComponentRegistry, P as PropValue, F as FunctionRegistry } from '../../../../shared/stack.DmpPDPxA.cjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../../../shared/stack.
|
|
5
|
+
import '../../../../shared/stack.fdi94T4S.cjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
interface PageRendererProps {
|
|
@@ -18,7 +18,7 @@ interface PageRendererProps {
|
|
|
18
18
|
LoadingComponent?: ComponentType;
|
|
19
19
|
/** Custom error component */
|
|
20
20
|
ErrorComponent?: ComponentType<{
|
|
21
|
-
error:
|
|
21
|
+
error: unknown;
|
|
22
22
|
}>;
|
|
23
23
|
/** Custom not found component */
|
|
24
24
|
NotFoundComponent?: ComponentType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { a as ComponentRegistry, P as PropValue, F as FunctionRegistry } from '../../../../shared/stack.
|
|
2
|
+
import { a as ComponentRegistry, P as PropValue, F as FunctionRegistry } from '../../../../shared/stack.B1srlBud.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../../../shared/stack.
|
|
5
|
+
import '../../../../shared/stack.fdi94T4S.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
interface PageRendererProps {
|
|
@@ -18,7 +18,7 @@ interface PageRendererProps {
|
|
|
18
18
|
LoadingComponent?: ComponentType;
|
|
19
19
|
/** Custom error component */
|
|
20
20
|
ErrorComponent?: ComponentType<{
|
|
21
|
-
error:
|
|
21
|
+
error: unknown;
|
|
22
22
|
}>;
|
|
23
23
|
/** Custom not found component */
|
|
24
24
|
NotFoundComponent?: ComponentType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { a as ComponentRegistry, P as PropValue, F as FunctionRegistry } from '../../../../shared/stack.
|
|
2
|
+
import { a as ComponentRegistry, P as PropValue, F as FunctionRegistry } from '../../../../shared/stack.BK9Z2dcL.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../../../shared/stack.
|
|
5
|
+
import '../../../../shared/stack.fdi94T4S.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
interface PageRendererProps {
|
|
@@ -18,7 +18,7 @@ interface PageRendererProps {
|
|
|
18
18
|
LoadingComponent?: ComponentType;
|
|
19
19
|
/** Custom error component */
|
|
20
20
|
ErrorComponent?: ComponentType<{
|
|
21
|
-
error:
|
|
21
|
+
error: unknown;
|
|
22
22
|
}>;
|
|
23
23
|
/** Custom not found component */
|
|
24
24
|
NotFoundComponent?: ComponentType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.
|
|
3
|
-
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.
|
|
2
|
+
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.CFECM0ew.cjs';
|
|
3
|
+
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.DmpPDPxA.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../../../../shared/stack.
|
|
6
|
+
import '../../../../shared/stack.fdi94T4S.cjs';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.
|
|
3
|
-
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.
|
|
2
|
+
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.DVtk5CNw.mjs';
|
|
3
|
+
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.B1srlBud.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../../../../shared/stack.
|
|
6
|
+
import '../../../../shared/stack.fdi94T4S.mjs';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.
|
|
3
|
-
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.
|
|
2
|
+
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.ASwEoINr.js';
|
|
3
|
+
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.BK9Z2dcL.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../../../../shared/stack.
|
|
6
|
+
import '../../../../shared/stack.fdi94T4S.js';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import react__default, { ComponentType } from 'react';
|
|
4
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
|
+
import React__default, { ComponentType } from 'react';
|
|
5
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { c as UIBuilderClientHooks } from '../../../shared/stack.
|
|
7
|
-
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.
|
|
5
|
+
import { c as UIBuilderClientHooks } from '../../../shared/stack.CFECM0ew.cjs';
|
|
6
|
+
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.DmpPDPxA.cjs';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
-
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.
|
|
8
|
+
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.fdi94T4S.cjs';
|
|
10
9
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.cjs';
|
|
11
10
|
export { CreateUIBuilderPageInput, UpdateUIBuilderPageInput, UseUIBuilderPagesOptions, UseUIBuilderPagesResult, useCreateUIBuilderPage, useDeleteUIBuilderPage, useSuspenseUIBuilderPage, useSuspenseUIBuilderPageBySlug, useSuspenseUIBuilderPages, useUIBuilderPage, useUIBuilderPageBySlug, useUIBuilderPages, useUpdateUIBuilderPage } from './hooks/index.cjs';
|
|
12
11
|
import 'zod';
|
|
@@ -32,6 +31,21 @@ interface UIBuilderClientConfig {
|
|
|
32
31
|
hooks?: UIBuilderClientHooks;
|
|
33
32
|
/** Component registry to use for the UI Builder */
|
|
34
33
|
componentRegistry?: ComponentRegistry;
|
|
34
|
+
/**
|
|
35
|
+
* Optional page component overrides.
|
|
36
|
+
* Replace any plugin page with a custom React component.
|
|
37
|
+
* The built-in component is used as the fallback when not provided.
|
|
38
|
+
*/
|
|
39
|
+
pageComponents?: {
|
|
40
|
+
/** Replaces the page list page */
|
|
41
|
+
pageList?: ComponentType;
|
|
42
|
+
/** Replaces the new page builder page */
|
|
43
|
+
newPage?: ComponentType;
|
|
44
|
+
/** Replaces the edit page builder page */
|
|
45
|
+
editPage?: ComponentType<{
|
|
46
|
+
id: string;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
35
49
|
}
|
|
36
50
|
/**
|
|
37
51
|
* UI Builder client plugin
|
|
@@ -64,9 +78,9 @@ interface UIBuilderClientConfig {
|
|
|
64
78
|
declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
65
79
|
pageList: {
|
|
66
80
|
(inputCtx_0?: _btst_yar.InputContext<"/ui-builder", _btst_yar.RouteOptions> | undefined): {
|
|
67
|
-
PageComponent?:
|
|
68
|
-
LoadingComponent?:
|
|
69
|
-
ErrorComponent?:
|
|
81
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
82
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
83
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
70
84
|
loader?: (() => Promise<void>) | undefined;
|
|
71
85
|
meta?: (() => ({
|
|
72
86
|
title: string;
|
|
@@ -85,9 +99,9 @@ declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_st
|
|
|
85
99
|
};
|
|
86
100
|
newPage: {
|
|
87
101
|
(inputCtx_0?: _btst_yar.InputContext<"/ui-builder/new", _btst_yar.RouteOptions> | undefined): {
|
|
88
|
-
PageComponent?:
|
|
89
|
-
LoadingComponent?:
|
|
90
|
-
ErrorComponent?:
|
|
102
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
103
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
104
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
91
105
|
loader?: (() => Promise<void>) | undefined;
|
|
92
106
|
meta?: (() => ({
|
|
93
107
|
title: string;
|
|
@@ -106,9 +120,9 @@ declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_st
|
|
|
106
120
|
};
|
|
107
121
|
editPage: {
|
|
108
122
|
(inputCtx_0: _btst_yar.InputContext<"/ui-builder/:id/edit", _btst_yar.RouteOptions>): {
|
|
109
|
-
PageComponent?:
|
|
110
|
-
LoadingComponent?:
|
|
111
|
-
ErrorComponent?:
|
|
123
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
124
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
125
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
112
126
|
loader?: (() => Promise<void>) | undefined;
|
|
113
127
|
meta?: (() => ({
|
|
114
128
|
title: string;
|
|
@@ -202,20 +216,20 @@ declare function createComponentRegistry(components: ComponentRegistry): Compone
|
|
|
202
216
|
declare const classNameFieldOverrides: FieldConfigFunction;
|
|
203
217
|
declare const childrenFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
204
218
|
renderParent: (({ children }: {
|
|
205
|
-
children:
|
|
219
|
+
children: React__default.ReactNode;
|
|
206
220
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
207
221
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
208
222
|
};
|
|
209
223
|
declare const iconNameFieldOverrides: FieldConfigFunction;
|
|
210
224
|
declare const childrenAsTextareaFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
211
225
|
renderParent: (({ children }: {
|
|
212
|
-
children:
|
|
226
|
+
children: React__default.ReactNode;
|
|
213
227
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
214
228
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
215
229
|
};
|
|
216
230
|
declare const childrenAsTipTapFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
217
231
|
renderParent: (({ children }: {
|
|
218
|
-
children:
|
|
232
|
+
children: React__default.ReactNode;
|
|
219
233
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
220
234
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
221
235
|
};
|
|
@@ -223,7 +237,7 @@ declare const commonFieldOverrides: (allowBinding?: boolean) => Record<string, (
|
|
|
223
237
|
className: (layer: ComponentLayer) => FieldConfigItem;
|
|
224
238
|
children: (layer: ComponentLayer) => {
|
|
225
239
|
renderParent: (({ children }: {
|
|
226
|
-
children:
|
|
240
|
+
children: React__default.ReactNode;
|
|
227
241
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
228
242
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
229
243
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import react__default, { ComponentType } from 'react';
|
|
4
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
|
+
import React__default, { ComponentType } from 'react';
|
|
5
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { c as UIBuilderClientHooks } from '../../../shared/stack.
|
|
7
|
-
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.
|
|
5
|
+
import { c as UIBuilderClientHooks } from '../../../shared/stack.DVtk5CNw.mjs';
|
|
6
|
+
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.B1srlBud.mjs';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
-
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.
|
|
8
|
+
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.fdi94T4S.mjs';
|
|
10
9
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.mjs';
|
|
11
10
|
export { CreateUIBuilderPageInput, UpdateUIBuilderPageInput, UseUIBuilderPagesOptions, UseUIBuilderPagesResult, useCreateUIBuilderPage, useDeleteUIBuilderPage, useSuspenseUIBuilderPage, useSuspenseUIBuilderPageBySlug, useSuspenseUIBuilderPages, useUIBuilderPage, useUIBuilderPageBySlug, useUIBuilderPages, useUpdateUIBuilderPage } from './hooks/index.mjs';
|
|
12
11
|
import 'zod';
|
|
@@ -32,6 +31,21 @@ interface UIBuilderClientConfig {
|
|
|
32
31
|
hooks?: UIBuilderClientHooks;
|
|
33
32
|
/** Component registry to use for the UI Builder */
|
|
34
33
|
componentRegistry?: ComponentRegistry;
|
|
34
|
+
/**
|
|
35
|
+
* Optional page component overrides.
|
|
36
|
+
* Replace any plugin page with a custom React component.
|
|
37
|
+
* The built-in component is used as the fallback when not provided.
|
|
38
|
+
*/
|
|
39
|
+
pageComponents?: {
|
|
40
|
+
/** Replaces the page list page */
|
|
41
|
+
pageList?: ComponentType;
|
|
42
|
+
/** Replaces the new page builder page */
|
|
43
|
+
newPage?: ComponentType;
|
|
44
|
+
/** Replaces the edit page builder page */
|
|
45
|
+
editPage?: ComponentType<{
|
|
46
|
+
id: string;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
35
49
|
}
|
|
36
50
|
/**
|
|
37
51
|
* UI Builder client plugin
|
|
@@ -64,9 +78,9 @@ interface UIBuilderClientConfig {
|
|
|
64
78
|
declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
65
79
|
pageList: {
|
|
66
80
|
(inputCtx_0?: _btst_yar.InputContext<"/ui-builder", _btst_yar.RouteOptions> | undefined): {
|
|
67
|
-
PageComponent?:
|
|
68
|
-
LoadingComponent?:
|
|
69
|
-
ErrorComponent?:
|
|
81
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
82
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
83
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
70
84
|
loader?: (() => Promise<void>) | undefined;
|
|
71
85
|
meta?: (() => ({
|
|
72
86
|
title: string;
|
|
@@ -85,9 +99,9 @@ declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_st
|
|
|
85
99
|
};
|
|
86
100
|
newPage: {
|
|
87
101
|
(inputCtx_0?: _btst_yar.InputContext<"/ui-builder/new", _btst_yar.RouteOptions> | undefined): {
|
|
88
|
-
PageComponent?:
|
|
89
|
-
LoadingComponent?:
|
|
90
|
-
ErrorComponent?:
|
|
102
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
103
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
104
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
91
105
|
loader?: (() => Promise<void>) | undefined;
|
|
92
106
|
meta?: (() => ({
|
|
93
107
|
title: string;
|
|
@@ -106,9 +120,9 @@ declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_st
|
|
|
106
120
|
};
|
|
107
121
|
editPage: {
|
|
108
122
|
(inputCtx_0: _btst_yar.InputContext<"/ui-builder/:id/edit", _btst_yar.RouteOptions>): {
|
|
109
|
-
PageComponent?:
|
|
110
|
-
LoadingComponent?:
|
|
111
|
-
ErrorComponent?:
|
|
123
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
124
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
125
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
112
126
|
loader?: (() => Promise<void>) | undefined;
|
|
113
127
|
meta?: (() => ({
|
|
114
128
|
title: string;
|
|
@@ -202,20 +216,20 @@ declare function createComponentRegistry(components: ComponentRegistry): Compone
|
|
|
202
216
|
declare const classNameFieldOverrides: FieldConfigFunction;
|
|
203
217
|
declare const childrenFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
204
218
|
renderParent: (({ children }: {
|
|
205
|
-
children:
|
|
219
|
+
children: React__default.ReactNode;
|
|
206
220
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
207
221
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
208
222
|
};
|
|
209
223
|
declare const iconNameFieldOverrides: FieldConfigFunction;
|
|
210
224
|
declare const childrenAsTextareaFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
211
225
|
renderParent: (({ children }: {
|
|
212
|
-
children:
|
|
226
|
+
children: React__default.ReactNode;
|
|
213
227
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
214
228
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
215
229
|
};
|
|
216
230
|
declare const childrenAsTipTapFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
217
231
|
renderParent: (({ children }: {
|
|
218
|
-
children:
|
|
232
|
+
children: React__default.ReactNode;
|
|
219
233
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
220
234
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
221
235
|
};
|
|
@@ -223,7 +237,7 @@ declare const commonFieldOverrides: (allowBinding?: boolean) => Record<string, (
|
|
|
223
237
|
className: (layer: ComponentLayer) => FieldConfigItem;
|
|
224
238
|
children: (layer: ComponentLayer) => {
|
|
225
239
|
renderParent: (({ children }: {
|
|
226
|
-
children:
|
|
240
|
+
children: React__default.ReactNode;
|
|
227
241
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
228
242
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
229
243
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import react__default, { ComponentType } from 'react';
|
|
4
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
|
+
import React__default, { ComponentType } from 'react';
|
|
5
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { c as UIBuilderClientHooks } from '../../../shared/stack.
|
|
7
|
-
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.
|
|
5
|
+
import { c as UIBuilderClientHooks } from '../../../shared/stack.ASwEoINr.js';
|
|
6
|
+
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.BK9Z2dcL.js';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
-
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.
|
|
8
|
+
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.fdi94T4S.js';
|
|
10
9
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.js';
|
|
11
10
|
export { CreateUIBuilderPageInput, UpdateUIBuilderPageInput, UseUIBuilderPagesOptions, UseUIBuilderPagesResult, useCreateUIBuilderPage, useDeleteUIBuilderPage, useSuspenseUIBuilderPage, useSuspenseUIBuilderPageBySlug, useSuspenseUIBuilderPages, useUIBuilderPage, useUIBuilderPageBySlug, useUIBuilderPages, useUpdateUIBuilderPage } from './hooks/index.js';
|
|
12
11
|
import 'zod';
|
|
@@ -32,6 +31,21 @@ interface UIBuilderClientConfig {
|
|
|
32
31
|
hooks?: UIBuilderClientHooks;
|
|
33
32
|
/** Component registry to use for the UI Builder */
|
|
34
33
|
componentRegistry?: ComponentRegistry;
|
|
34
|
+
/**
|
|
35
|
+
* Optional page component overrides.
|
|
36
|
+
* Replace any plugin page with a custom React component.
|
|
37
|
+
* The built-in component is used as the fallback when not provided.
|
|
38
|
+
*/
|
|
39
|
+
pageComponents?: {
|
|
40
|
+
/** Replaces the page list page */
|
|
41
|
+
pageList?: ComponentType;
|
|
42
|
+
/** Replaces the new page builder page */
|
|
43
|
+
newPage?: ComponentType;
|
|
44
|
+
/** Replaces the edit page builder page */
|
|
45
|
+
editPage?: ComponentType<{
|
|
46
|
+
id: string;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
35
49
|
}
|
|
36
50
|
/**
|
|
37
51
|
* UI Builder client plugin
|
|
@@ -64,9 +78,9 @@ interface UIBuilderClientConfig {
|
|
|
64
78
|
declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
65
79
|
pageList: {
|
|
66
80
|
(inputCtx_0?: _btst_yar.InputContext<"/ui-builder", _btst_yar.RouteOptions> | undefined): {
|
|
67
|
-
PageComponent?:
|
|
68
|
-
LoadingComponent?:
|
|
69
|
-
ErrorComponent?:
|
|
81
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
82
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
83
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
70
84
|
loader?: (() => Promise<void>) | undefined;
|
|
71
85
|
meta?: (() => ({
|
|
72
86
|
title: string;
|
|
@@ -85,9 +99,9 @@ declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_st
|
|
|
85
99
|
};
|
|
86
100
|
newPage: {
|
|
87
101
|
(inputCtx_0?: _btst_yar.InputContext<"/ui-builder/new", _btst_yar.RouteOptions> | undefined): {
|
|
88
|
-
PageComponent?:
|
|
89
|
-
LoadingComponent?:
|
|
90
|
-
ErrorComponent?:
|
|
102
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
103
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
104
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
91
105
|
loader?: (() => Promise<void>) | undefined;
|
|
92
106
|
meta?: (() => ({
|
|
93
107
|
title: string;
|
|
@@ -106,9 +120,9 @@ declare const uiBuilderClientPlugin: (config: UIBuilderClientConfig) => _btst_st
|
|
|
106
120
|
};
|
|
107
121
|
editPage: {
|
|
108
122
|
(inputCtx_0: _btst_yar.InputContext<"/ui-builder/:id/edit", _btst_yar.RouteOptions>): {
|
|
109
|
-
PageComponent?:
|
|
110
|
-
LoadingComponent?:
|
|
111
|
-
ErrorComponent?:
|
|
123
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
124
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
125
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
112
126
|
loader?: (() => Promise<void>) | undefined;
|
|
113
127
|
meta?: (() => ({
|
|
114
128
|
title: string;
|
|
@@ -202,20 +216,20 @@ declare function createComponentRegistry(components: ComponentRegistry): Compone
|
|
|
202
216
|
declare const classNameFieldOverrides: FieldConfigFunction;
|
|
203
217
|
declare const childrenFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
204
218
|
renderParent: (({ children }: {
|
|
205
|
-
children:
|
|
219
|
+
children: React__default.ReactNode;
|
|
206
220
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
207
221
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
208
222
|
};
|
|
209
223
|
declare const iconNameFieldOverrides: FieldConfigFunction;
|
|
210
224
|
declare const childrenAsTextareaFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
211
225
|
renderParent: (({ children }: {
|
|
212
|
-
children:
|
|
226
|
+
children: React__default.ReactNode;
|
|
213
227
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
214
228
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
215
229
|
};
|
|
216
230
|
declare const childrenAsTipTapFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
217
231
|
renderParent: (({ children }: {
|
|
218
|
-
children:
|
|
232
|
+
children: React__default.ReactNode;
|
|
219
233
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
220
234
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
221
235
|
};
|
|
@@ -223,7 +237,7 @@ declare const commonFieldOverrides: (allowBinding?: boolean) => Record<string, (
|
|
|
223
237
|
className: (layer: ComponentLayer) => FieldConfigItem;
|
|
224
238
|
children: (layer: ComponentLayer) => {
|
|
225
239
|
renderParent: (({ children }: {
|
|
226
|
-
children:
|
|
240
|
+
children: React__default.ReactNode;
|
|
227
241
|
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
228
242
|
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
229
243
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { C as ContentTypeConfig } from '../../shared/stack.B8QD11QU.cjs';
|
|
3
|
-
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.
|
|
4
|
-
export { C as ComponentLayer, a as ComponentRegistry, F as FunctionRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.
|
|
3
|
+
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.CFECM0ew.cjs';
|
|
4
|
+
export { C as ComponentLayer, a as ComponentRegistry, F as FunctionRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.DmpPDPxA.cjs';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../../shared/stack.
|
|
6
|
+
import '../../shared/stack.fdi94T4S.cjs';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { C as ContentTypeConfig } from '../../shared/stack.B8QD11QU.mjs';
|
|
3
|
-
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.
|
|
4
|
-
export { C as ComponentLayer, a as ComponentRegistry, F as FunctionRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.
|
|
3
|
+
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.DVtk5CNw.mjs';
|
|
4
|
+
export { C as ComponentLayer, a as ComponentRegistry, F as FunctionRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.B1srlBud.mjs';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../../shared/stack.
|
|
6
|
+
import '../../shared/stack.fdi94T4S.mjs';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { C as ContentTypeConfig } from '../../shared/stack.B8QD11QU.js';
|
|
3
|
-
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.
|
|
4
|
-
export { C as ComponentLayer, a as ComponentRegistry, F as FunctionRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.
|
|
3
|
+
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.ASwEoINr.js';
|
|
4
|
+
export { C as ComponentLayer, a as ComponentRegistry, F as FunctionRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.BK9Z2dcL.js';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../../shared/stack.
|
|
6
|
+
import '../../shared/stack.fdi94T4S.js';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZodObject, ZodSchema, ZodTuple } from 'zod';
|
|
2
2
|
import { ReactNode, ComponentType } from 'react';
|
|
3
|
-
import { F as FieldConfigItem } from './stack.
|
|
3
|
+
import { F as FieldConfigItem } from './stack.fdi94T4S.mjs';
|
|
4
4
|
|
|
5
5
|
type PropValue = ReactNode | VariableReference | Record<string, any> | any[] | string | number | boolean | null | undefined;
|
|
6
6
|
type ComponentProps<TProps extends Record<string, PropValue> = Record<string, PropValue>> = TProps;
|