@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,10 +1,9 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
4
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
5
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { P as Post, S as SerializedPost } from '../../../shared/stack.
|
|
7
|
-
export { UsePostsOptions, UsePostsResult } from '
|
|
5
|
+
import { P as Post, S as SerializedPost } from '../../../shared/stack.BQmuNl5p.mjs';
|
|
6
|
+
export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.B8vT-Yt4.mjs';
|
|
8
7
|
import 'zod';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -71,6 +70,31 @@ interface BlogClientConfig {
|
|
|
71
70
|
hooks?: BlogClientHooks;
|
|
72
71
|
/** Optional headers for SSR (e.g., forwarding cookies) */
|
|
73
72
|
headers?: Headers;
|
|
73
|
+
/**
|
|
74
|
+
* Optional page component overrides.
|
|
75
|
+
* Replace any plugin page with a custom React component.
|
|
76
|
+
* The built-in component is used as the fallback when not provided.
|
|
77
|
+
*/
|
|
78
|
+
pageComponents?: {
|
|
79
|
+
/** Replaces the published posts list page */
|
|
80
|
+
posts?: ComponentType;
|
|
81
|
+
/** Replaces the drafts list page */
|
|
82
|
+
drafts?: ComponentType;
|
|
83
|
+
/** Replaces the new post page */
|
|
84
|
+
newPost?: ComponentType;
|
|
85
|
+
/** Replaces the single post page */
|
|
86
|
+
post?: ComponentType<{
|
|
87
|
+
slug: string;
|
|
88
|
+
}>;
|
|
89
|
+
/** Replaces the edit post page */
|
|
90
|
+
editPost?: ComponentType<{
|
|
91
|
+
slug: string;
|
|
92
|
+
}>;
|
|
93
|
+
/** Replaces the tag posts page */
|
|
94
|
+
tag?: ComponentType<{
|
|
95
|
+
tagSlug: string;
|
|
96
|
+
}>;
|
|
97
|
+
};
|
|
74
98
|
}
|
|
75
99
|
/**
|
|
76
100
|
* Hooks for blog client plugin
|
|
@@ -133,9 +157,9 @@ interface BlogClientHooks {
|
|
|
133
157
|
declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
134
158
|
posts: {
|
|
135
159
|
(inputCtx_0?: _btst_yar.InputContext<"/blog", _btst_yar.RouteOptions> | undefined): {
|
|
136
|
-
PageComponent?:
|
|
137
|
-
LoadingComponent?:
|
|
138
|
-
ErrorComponent?:
|
|
160
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
161
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
162
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
139
163
|
loader?: (() => Promise<void>) | undefined;
|
|
140
164
|
meta?: (() => ({
|
|
141
165
|
title: string;
|
|
@@ -161,9 +185,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
161
185
|
};
|
|
162
186
|
drafts: {
|
|
163
187
|
(inputCtx_0?: _btst_yar.InputContext<"/blog/drafts", _btst_yar.RouteOptions> | undefined): {
|
|
164
|
-
PageComponent?:
|
|
165
|
-
LoadingComponent?:
|
|
166
|
-
ErrorComponent?:
|
|
188
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
189
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
190
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
167
191
|
loader?: (() => Promise<void>) | undefined;
|
|
168
192
|
meta?: (() => ({
|
|
169
193
|
title: string;
|
|
@@ -189,9 +213,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
189
213
|
};
|
|
190
214
|
newPost: {
|
|
191
215
|
(inputCtx_0?: _btst_yar.InputContext<"/blog/new", _btst_yar.RouteOptions> | undefined): {
|
|
192
|
-
PageComponent?:
|
|
193
|
-
LoadingComponent?:
|
|
194
|
-
ErrorComponent?:
|
|
216
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
217
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
218
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
195
219
|
loader?: (() => Promise<void>) | undefined;
|
|
196
220
|
meta?: (() => ({
|
|
197
221
|
title: string;
|
|
@@ -217,9 +241,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
217
241
|
};
|
|
218
242
|
editPost: {
|
|
219
243
|
(inputCtx_0: _btst_yar.InputContext<"/blog/:slug/edit", _btst_yar.RouteOptions>): {
|
|
220
|
-
PageComponent?:
|
|
221
|
-
LoadingComponent?:
|
|
222
|
-
ErrorComponent?:
|
|
244
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
245
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
246
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
223
247
|
loader?: (() => Promise<void>) | undefined;
|
|
224
248
|
meta?: (() => ({
|
|
225
249
|
title: string;
|
|
@@ -245,9 +269,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
245
269
|
};
|
|
246
270
|
tag: {
|
|
247
271
|
(inputCtx_0: _btst_yar.InputContext<"/blog/tag/:tagSlug", _btst_yar.RouteOptions>): {
|
|
248
|
-
PageComponent?:
|
|
249
|
-
LoadingComponent?:
|
|
250
|
-
ErrorComponent?:
|
|
272
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
273
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
274
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
251
275
|
loader?: (() => Promise<void>) | undefined;
|
|
252
276
|
meta?: (() => ({
|
|
253
277
|
title: string;
|
|
@@ -273,9 +297,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
273
297
|
};
|
|
274
298
|
post: {
|
|
275
299
|
(inputCtx_0: _btst_yar.InputContext<"/blog/:slug", _btst_yar.RouteOptions>): {
|
|
276
|
-
PageComponent?:
|
|
277
|
-
LoadingComponent?:
|
|
278
|
-
ErrorComponent?:
|
|
300
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
301
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
302
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
279
303
|
loader?: (() => Promise<void>) | undefined;
|
|
280
304
|
meta?: (() => ({
|
|
281
305
|
title: string;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
4
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
5
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { P as Post, S as SerializedPost } from '../../../shared/stack.
|
|
7
|
-
export { UsePostsOptions, UsePostsResult } from '
|
|
5
|
+
import { P as Post, S as SerializedPost } from '../../../shared/stack.BQmuNl5p.js';
|
|
6
|
+
export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.BAT540yW.js';
|
|
8
7
|
import 'zod';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -71,6 +70,31 @@ interface BlogClientConfig {
|
|
|
71
70
|
hooks?: BlogClientHooks;
|
|
72
71
|
/** Optional headers for SSR (e.g., forwarding cookies) */
|
|
73
72
|
headers?: Headers;
|
|
73
|
+
/**
|
|
74
|
+
* Optional page component overrides.
|
|
75
|
+
* Replace any plugin page with a custom React component.
|
|
76
|
+
* The built-in component is used as the fallback when not provided.
|
|
77
|
+
*/
|
|
78
|
+
pageComponents?: {
|
|
79
|
+
/** Replaces the published posts list page */
|
|
80
|
+
posts?: ComponentType;
|
|
81
|
+
/** Replaces the drafts list page */
|
|
82
|
+
drafts?: ComponentType;
|
|
83
|
+
/** Replaces the new post page */
|
|
84
|
+
newPost?: ComponentType;
|
|
85
|
+
/** Replaces the single post page */
|
|
86
|
+
post?: ComponentType<{
|
|
87
|
+
slug: string;
|
|
88
|
+
}>;
|
|
89
|
+
/** Replaces the edit post page */
|
|
90
|
+
editPost?: ComponentType<{
|
|
91
|
+
slug: string;
|
|
92
|
+
}>;
|
|
93
|
+
/** Replaces the tag posts page */
|
|
94
|
+
tag?: ComponentType<{
|
|
95
|
+
tagSlug: string;
|
|
96
|
+
}>;
|
|
97
|
+
};
|
|
74
98
|
}
|
|
75
99
|
/**
|
|
76
100
|
* Hooks for blog client plugin
|
|
@@ -133,9 +157,9 @@ interface BlogClientHooks {
|
|
|
133
157
|
declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
134
158
|
posts: {
|
|
135
159
|
(inputCtx_0?: _btst_yar.InputContext<"/blog", _btst_yar.RouteOptions> | undefined): {
|
|
136
|
-
PageComponent?:
|
|
137
|
-
LoadingComponent?:
|
|
138
|
-
ErrorComponent?:
|
|
160
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
161
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
162
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
139
163
|
loader?: (() => Promise<void>) | undefined;
|
|
140
164
|
meta?: (() => ({
|
|
141
165
|
title: string;
|
|
@@ -161,9 +185,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
161
185
|
};
|
|
162
186
|
drafts: {
|
|
163
187
|
(inputCtx_0?: _btst_yar.InputContext<"/blog/drafts", _btst_yar.RouteOptions> | undefined): {
|
|
164
|
-
PageComponent?:
|
|
165
|
-
LoadingComponent?:
|
|
166
|
-
ErrorComponent?:
|
|
188
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
189
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
190
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
167
191
|
loader?: (() => Promise<void>) | undefined;
|
|
168
192
|
meta?: (() => ({
|
|
169
193
|
title: string;
|
|
@@ -189,9 +213,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
189
213
|
};
|
|
190
214
|
newPost: {
|
|
191
215
|
(inputCtx_0?: _btst_yar.InputContext<"/blog/new", _btst_yar.RouteOptions> | undefined): {
|
|
192
|
-
PageComponent?:
|
|
193
|
-
LoadingComponent?:
|
|
194
|
-
ErrorComponent?:
|
|
216
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
217
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
218
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
195
219
|
loader?: (() => Promise<void>) | undefined;
|
|
196
220
|
meta?: (() => ({
|
|
197
221
|
title: string;
|
|
@@ -217,9 +241,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
217
241
|
};
|
|
218
242
|
editPost: {
|
|
219
243
|
(inputCtx_0: _btst_yar.InputContext<"/blog/:slug/edit", _btst_yar.RouteOptions>): {
|
|
220
|
-
PageComponent?:
|
|
221
|
-
LoadingComponent?:
|
|
222
|
-
ErrorComponent?:
|
|
244
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
245
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
246
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
223
247
|
loader?: (() => Promise<void>) | undefined;
|
|
224
248
|
meta?: (() => ({
|
|
225
249
|
title: string;
|
|
@@ -245,9 +269,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
245
269
|
};
|
|
246
270
|
tag: {
|
|
247
271
|
(inputCtx_0: _btst_yar.InputContext<"/blog/tag/:tagSlug", _btst_yar.RouteOptions>): {
|
|
248
|
-
PageComponent?:
|
|
249
|
-
LoadingComponent?:
|
|
250
|
-
ErrorComponent?:
|
|
272
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
273
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
274
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
251
275
|
loader?: (() => Promise<void>) | undefined;
|
|
252
276
|
meta?: (() => ({
|
|
253
277
|
title: string;
|
|
@@ -273,9 +297,9 @@ declare const blogClientPlugin: (config: BlogClientConfig) => _btst_stack_plugin
|
|
|
273
297
|
};
|
|
274
298
|
post: {
|
|
275
299
|
(inputCtx_0: _btst_yar.InputContext<"/blog/:slug", _btst_yar.RouteOptions>): {
|
|
276
|
-
PageComponent?:
|
|
277
|
-
LoadingComponent?:
|
|
278
|
-
ErrorComponent?:
|
|
300
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
301
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
302
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
279
303
|
loader?: (() => Promise<void>) | undefined;
|
|
280
304
|
meta?: (() => ({
|
|
281
305
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@tanstack/react-query';
|
|
2
|
-
export { d as createBlogQueryKeys } from '../../shared/stack.
|
|
2
|
+
export { d as createBlogQueryKeys } from '../../shared/stack.DaZM10cp.cjs';
|
|
3
3
|
import '@btst/stack/plugins/client';
|
|
4
|
-
import '../../shared/stack.
|
|
4
|
+
import '../../shared/stack.BQmuNl5p.cjs';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import '@btst/db';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@tanstack/react-query';
|
|
2
|
-
export { d as createBlogQueryKeys } from '../../shared/stack.
|
|
2
|
+
export { d as createBlogQueryKeys } from '../../shared/stack.cfCkioTe.mjs';
|
|
3
3
|
import '@btst/stack/plugins/client';
|
|
4
|
-
import '../../shared/stack.
|
|
4
|
+
import '../../shared/stack.BQmuNl5p.mjs';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import '@btst/db';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@tanstack/react-query';
|
|
2
|
-
export { d as createBlogQueryKeys } from '../../shared/stack.
|
|
2
|
+
export { d as createBlogQueryKeys } from '../../shared/stack.DXnclTG7.js';
|
|
3
3
|
import '@btst/stack/plugins/client';
|
|
4
|
-
import '../../shared/stack.
|
|
4
|
+
import '../../shared/stack.BQmuNl5p.js';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import '@btst/db';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
4
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
5
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { A as AutoFormInputComponentProps } from '../../../shared/stack.
|
|
5
|
+
import { A as AutoFormInputComponentProps } from '../../../shared/stack.fdi94T4S.cjs';
|
|
7
6
|
export { b as FormSchemaMetadata, F as FormStep, f as formSchemaToZod, a as getStepGroupMap, g as getSteps, h as hasSteps, z as zodToFormSchema } from '../../../shared/stack.Co034Fpm.cjs';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
8
|
import 'react-hook-form';
|
|
@@ -95,6 +94,28 @@ interface CMSClientConfig {
|
|
|
95
94
|
headers?: Headers;
|
|
96
95
|
/** Optional hooks for customizing behavior (authorization, redirects, etc.) */
|
|
97
96
|
hooks?: CMSClientHooks;
|
|
97
|
+
/**
|
|
98
|
+
* Optional page component overrides.
|
|
99
|
+
* Replace any plugin page with a custom React component.
|
|
100
|
+
* The built-in component is used as the fallback when not provided.
|
|
101
|
+
*/
|
|
102
|
+
pageComponents?: {
|
|
103
|
+
/** Replaces the CMS dashboard page */
|
|
104
|
+
dashboard?: ComponentType;
|
|
105
|
+
/** Replaces the content list page */
|
|
106
|
+
contentList?: ComponentType<{
|
|
107
|
+
typeSlug: string;
|
|
108
|
+
}>;
|
|
109
|
+
/** Replaces the new content editor page */
|
|
110
|
+
newContent?: ComponentType<{
|
|
111
|
+
typeSlug: string;
|
|
112
|
+
}>;
|
|
113
|
+
/** Replaces the edit content editor page */
|
|
114
|
+
editContent?: ComponentType<{
|
|
115
|
+
typeSlug: string;
|
|
116
|
+
id: string;
|
|
117
|
+
}>;
|
|
118
|
+
};
|
|
98
119
|
}
|
|
99
120
|
/**
|
|
100
121
|
* CMS client plugin
|
|
@@ -103,9 +124,9 @@ interface CMSClientConfig {
|
|
|
103
124
|
declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
104
125
|
dashboard: {
|
|
105
126
|
(inputCtx_0?: _btst_yar.InputContext<"/cms", _btst_yar.RouteOptions> | undefined): {
|
|
106
|
-
PageComponent?:
|
|
107
|
-
LoadingComponent?:
|
|
108
|
-
ErrorComponent?:
|
|
127
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
128
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
129
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
109
130
|
loader?: (() => Promise<void>) | undefined;
|
|
110
131
|
meta?: (() => ({
|
|
111
132
|
title: string;
|
|
@@ -124,9 +145,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
124
145
|
};
|
|
125
146
|
contentList: {
|
|
126
147
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug", _btst_yar.RouteOptions>): {
|
|
127
|
-
PageComponent?:
|
|
128
|
-
LoadingComponent?:
|
|
129
|
-
ErrorComponent?:
|
|
148
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
149
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
150
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
130
151
|
loader?: (() => Promise<void>) | undefined;
|
|
131
152
|
meta?: (() => ({
|
|
132
153
|
title: string;
|
|
@@ -145,9 +166,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
145
166
|
};
|
|
146
167
|
newContent: {
|
|
147
168
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug/new", _btst_yar.RouteOptions>): {
|
|
148
|
-
PageComponent?:
|
|
149
|
-
LoadingComponent?:
|
|
150
|
-
ErrorComponent?:
|
|
169
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
170
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
171
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
151
172
|
loader?: (() => Promise<void>) | undefined;
|
|
152
173
|
meta?: (() => ({
|
|
153
174
|
title: string;
|
|
@@ -166,9 +187,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
166
187
|
};
|
|
167
188
|
editContent: {
|
|
168
189
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug/:id", _btst_yar.RouteOptions>): {
|
|
169
|
-
PageComponent?:
|
|
170
|
-
LoadingComponent?:
|
|
171
|
-
ErrorComponent?:
|
|
190
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
191
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
192
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
172
193
|
loader?: (() => Promise<void>) | undefined;
|
|
173
194
|
meta?: (() => ({
|
|
174
195
|
title: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
4
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
5
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { A as AutoFormInputComponentProps } from '../../../shared/stack.
|
|
5
|
+
import { A as AutoFormInputComponentProps } from '../../../shared/stack.fdi94T4S.mjs';
|
|
7
6
|
export { b as FormSchemaMetadata, F as FormStep, f as formSchemaToZod, a as getStepGroupMap, g as getSteps, h as hasSteps, z as zodToFormSchema } from '../../../shared/stack.Co034Fpm.mjs';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
8
|
import 'react-hook-form';
|
|
@@ -95,6 +94,28 @@ interface CMSClientConfig {
|
|
|
95
94
|
headers?: Headers;
|
|
96
95
|
/** Optional hooks for customizing behavior (authorization, redirects, etc.) */
|
|
97
96
|
hooks?: CMSClientHooks;
|
|
97
|
+
/**
|
|
98
|
+
* Optional page component overrides.
|
|
99
|
+
* Replace any plugin page with a custom React component.
|
|
100
|
+
* The built-in component is used as the fallback when not provided.
|
|
101
|
+
*/
|
|
102
|
+
pageComponents?: {
|
|
103
|
+
/** Replaces the CMS dashboard page */
|
|
104
|
+
dashboard?: ComponentType;
|
|
105
|
+
/** Replaces the content list page */
|
|
106
|
+
contentList?: ComponentType<{
|
|
107
|
+
typeSlug: string;
|
|
108
|
+
}>;
|
|
109
|
+
/** Replaces the new content editor page */
|
|
110
|
+
newContent?: ComponentType<{
|
|
111
|
+
typeSlug: string;
|
|
112
|
+
}>;
|
|
113
|
+
/** Replaces the edit content editor page */
|
|
114
|
+
editContent?: ComponentType<{
|
|
115
|
+
typeSlug: string;
|
|
116
|
+
id: string;
|
|
117
|
+
}>;
|
|
118
|
+
};
|
|
98
119
|
}
|
|
99
120
|
/**
|
|
100
121
|
* CMS client plugin
|
|
@@ -103,9 +124,9 @@ interface CMSClientConfig {
|
|
|
103
124
|
declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
104
125
|
dashboard: {
|
|
105
126
|
(inputCtx_0?: _btst_yar.InputContext<"/cms", _btst_yar.RouteOptions> | undefined): {
|
|
106
|
-
PageComponent?:
|
|
107
|
-
LoadingComponent?:
|
|
108
|
-
ErrorComponent?:
|
|
127
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
128
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
129
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
109
130
|
loader?: (() => Promise<void>) | undefined;
|
|
110
131
|
meta?: (() => ({
|
|
111
132
|
title: string;
|
|
@@ -124,9 +145,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
124
145
|
};
|
|
125
146
|
contentList: {
|
|
126
147
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug", _btst_yar.RouteOptions>): {
|
|
127
|
-
PageComponent?:
|
|
128
|
-
LoadingComponent?:
|
|
129
|
-
ErrorComponent?:
|
|
148
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
149
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
150
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
130
151
|
loader?: (() => Promise<void>) | undefined;
|
|
131
152
|
meta?: (() => ({
|
|
132
153
|
title: string;
|
|
@@ -145,9 +166,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
145
166
|
};
|
|
146
167
|
newContent: {
|
|
147
168
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug/new", _btst_yar.RouteOptions>): {
|
|
148
|
-
PageComponent?:
|
|
149
|
-
LoadingComponent?:
|
|
150
|
-
ErrorComponent?:
|
|
169
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
170
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
171
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
151
172
|
loader?: (() => Promise<void>) | undefined;
|
|
152
173
|
meta?: (() => ({
|
|
153
174
|
title: string;
|
|
@@ -166,9 +187,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
166
187
|
};
|
|
167
188
|
editContent: {
|
|
168
189
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug/:id", _btst_yar.RouteOptions>): {
|
|
169
|
-
PageComponent?:
|
|
170
|
-
LoadingComponent?:
|
|
171
|
-
ErrorComponent?:
|
|
190
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
191
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
192
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
172
193
|
loader?: (() => Promise<void>) | undefined;
|
|
173
194
|
meta?: (() => ({
|
|
174
195
|
title: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
4
2
|
import * as _btst_yar from '@btst/yar';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
5
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { A as AutoFormInputComponentProps } from '../../../shared/stack.
|
|
5
|
+
import { A as AutoFormInputComponentProps } from '../../../shared/stack.fdi94T4S.js';
|
|
7
6
|
export { b as FormSchemaMetadata, F as FormStep, f as formSchemaToZod, a as getStepGroupMap, g as getSteps, h as hasSteps, z as zodToFormSchema } from '../../../shared/stack.Co034Fpm.js';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
8
|
import 'react-hook-form';
|
|
@@ -95,6 +94,28 @@ interface CMSClientConfig {
|
|
|
95
94
|
headers?: Headers;
|
|
96
95
|
/** Optional hooks for customizing behavior (authorization, redirects, etc.) */
|
|
97
96
|
hooks?: CMSClientHooks;
|
|
97
|
+
/**
|
|
98
|
+
* Optional page component overrides.
|
|
99
|
+
* Replace any plugin page with a custom React component.
|
|
100
|
+
* The built-in component is used as the fallback when not provided.
|
|
101
|
+
*/
|
|
102
|
+
pageComponents?: {
|
|
103
|
+
/** Replaces the CMS dashboard page */
|
|
104
|
+
dashboard?: ComponentType;
|
|
105
|
+
/** Replaces the content list page */
|
|
106
|
+
contentList?: ComponentType<{
|
|
107
|
+
typeSlug: string;
|
|
108
|
+
}>;
|
|
109
|
+
/** Replaces the new content editor page */
|
|
110
|
+
newContent?: ComponentType<{
|
|
111
|
+
typeSlug: string;
|
|
112
|
+
}>;
|
|
113
|
+
/** Replaces the edit content editor page */
|
|
114
|
+
editContent?: ComponentType<{
|
|
115
|
+
typeSlug: string;
|
|
116
|
+
id: string;
|
|
117
|
+
}>;
|
|
118
|
+
};
|
|
98
119
|
}
|
|
99
120
|
/**
|
|
100
121
|
* CMS client plugin
|
|
@@ -103,9 +124,9 @@ interface CMSClientConfig {
|
|
|
103
124
|
declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
104
125
|
dashboard: {
|
|
105
126
|
(inputCtx_0?: _btst_yar.InputContext<"/cms", _btst_yar.RouteOptions> | undefined): {
|
|
106
|
-
PageComponent?:
|
|
107
|
-
LoadingComponent?:
|
|
108
|
-
ErrorComponent?:
|
|
127
|
+
PageComponent?: ComponentType<{}> | undefined;
|
|
128
|
+
LoadingComponent?: ComponentType<{}> | undefined;
|
|
129
|
+
ErrorComponent?: ComponentType<{}> | undefined;
|
|
109
130
|
loader?: (() => Promise<void>) | undefined;
|
|
110
131
|
meta?: (() => ({
|
|
111
132
|
title: string;
|
|
@@ -124,9 +145,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
124
145
|
};
|
|
125
146
|
contentList: {
|
|
126
147
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug", _btst_yar.RouteOptions>): {
|
|
127
|
-
PageComponent?:
|
|
128
|
-
LoadingComponent?:
|
|
129
|
-
ErrorComponent?:
|
|
148
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
149
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
150
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
130
151
|
loader?: (() => Promise<void>) | undefined;
|
|
131
152
|
meta?: (() => ({
|
|
132
153
|
title: string;
|
|
@@ -145,9 +166,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
145
166
|
};
|
|
146
167
|
newContent: {
|
|
147
168
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug/new", _btst_yar.RouteOptions>): {
|
|
148
|
-
PageComponent?:
|
|
149
|
-
LoadingComponent?:
|
|
150
|
-
ErrorComponent?:
|
|
169
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
170
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
171
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
151
172
|
loader?: (() => Promise<void>) | undefined;
|
|
152
173
|
meta?: (() => ({
|
|
153
174
|
title: string;
|
|
@@ -166,9 +187,9 @@ declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_
|
|
|
166
187
|
};
|
|
167
188
|
editContent: {
|
|
168
189
|
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug/:id", _btst_yar.RouteOptions>): {
|
|
169
|
-
PageComponent?:
|
|
170
|
-
LoadingComponent?:
|
|
171
|
-
ErrorComponent?:
|
|
190
|
+
PageComponent?: ComponentType<unknown> | undefined;
|
|
191
|
+
LoadingComponent?: ComponentType<unknown> | undefined;
|
|
192
|
+
ErrorComponent?: ComponentType<unknown> | undefined;
|
|
172
193
|
loader?: (() => Promise<void>) | undefined;
|
|
173
194
|
meta?: (() => ({
|
|
174
195
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
|
-
import { A as AutoFormInputComponentProps } from '../../../../shared/stack.
|
|
3
|
+
import { A as AutoFormInputComponentProps } from '../../../../shared/stack.fdi94T4S.cjs';
|
|
4
4
|
import { a as SerializedFormSubmission } from '../../../../shared/stack.BozPgbrZ.cjs';
|
|
5
5
|
import 'react-hook-form';
|
|
6
6
|
import 'zod';
|
|
@@ -71,7 +71,7 @@ declare function FormBuilderSkeleton(): react_jsx_runtime.JSX.Element;
|
|
|
71
71
|
declare function SubmissionsSkeleton(): react_jsx_runtime.JSX.Element;
|
|
72
72
|
|
|
73
73
|
interface DefaultErrorProps {
|
|
74
|
-
error:
|
|
74
|
+
error: unknown;
|
|
75
75
|
resetErrorBoundary?: () => void;
|
|
76
76
|
}
|
|
77
77
|
declare function DefaultError({ error, resetErrorBoundary }: DefaultErrorProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
|
-
import { A as AutoFormInputComponentProps } from '../../../../shared/stack.
|
|
3
|
+
import { A as AutoFormInputComponentProps } from '../../../../shared/stack.fdi94T4S.mjs';
|
|
4
4
|
import { a as SerializedFormSubmission } from '../../../../shared/stack.BozPgbrZ.mjs';
|
|
5
5
|
import 'react-hook-form';
|
|
6
6
|
import 'zod';
|
|
@@ -71,7 +71,7 @@ declare function FormBuilderSkeleton(): react_jsx_runtime.JSX.Element;
|
|
|
71
71
|
declare function SubmissionsSkeleton(): react_jsx_runtime.JSX.Element;
|
|
72
72
|
|
|
73
73
|
interface DefaultErrorProps {
|
|
74
|
-
error:
|
|
74
|
+
error: unknown;
|
|
75
75
|
resetErrorBoundary?: () => void;
|
|
76
76
|
}
|
|
77
77
|
declare function DefaultError({ error, resetErrorBoundary }: DefaultErrorProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
|
-
import { A as AutoFormInputComponentProps } from '../../../../shared/stack.
|
|
3
|
+
import { A as AutoFormInputComponentProps } from '../../../../shared/stack.fdi94T4S.js';
|
|
4
4
|
import { a as SerializedFormSubmission } from '../../../../shared/stack.BozPgbrZ.js';
|
|
5
5
|
import 'react-hook-form';
|
|
6
6
|
import 'zod';
|
|
@@ -71,7 +71,7 @@ declare function FormBuilderSkeleton(): react_jsx_runtime.JSX.Element;
|
|
|
71
71
|
declare function SubmissionsSkeleton(): react_jsx_runtime.JSX.Element;
|
|
72
72
|
|
|
73
73
|
interface DefaultErrorProps {
|
|
74
|
-
error:
|
|
74
|
+
error: unknown;
|
|
75
75
|
resetErrorBoundary?: () => void;
|
|
76
76
|
}
|
|
77
77
|
declare function DefaultError({ error, resetErrorBoundary }: DefaultErrorProps): react_jsx_runtime.JSX.Element;
|