@btst/stack 4.5.1 → 4.6.0
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 +2 -2
- package/dist/components/markdown/index.d.cts +4 -2
- package/dist/components/markdown/index.d.mts +4 -2
- package/dist/components/markdown/index.d.ts +4 -2
- package/dist/packages/stack/src/plugins/blog/client/components/pages/post-page.internal.cjs +7 -1
- package/dist/packages/stack/src/plugins/blog/client/components/pages/post-page.internal.mjs +7 -1
- package/dist/packages/stack/src/plugins/blog/client/components/shared/markdown-content.cjs +6 -1
- package/dist/packages/stack/src/plugins/blog/client/components/shared/markdown-content.mjs +6 -1
- package/dist/packages/ui/src/components/markdown-content.cjs +23 -3
- package/dist/packages/ui/src/components/markdown-content.mjs +25 -5
- package/dist/plugins/blog/client/index.d.cts +2 -0
- package/dist/plugins/blog/client/index.d.mts +2 -0
- package/dist/plugins/blog/client/index.d.ts +2 -0
- package/dist/plugins/cms/api/index.d.cts +1 -1
- package/dist/plugins/cms/api/index.d.mts +1 -1
- package/dist/plugins/cms/api/index.d.ts +1 -1
- package/dist/plugins/cms/query-keys.d.cts +1 -1
- package/dist/plugins/cms/query-keys.d.mts +1 -1
- package/dist/plugins/cms/query-keys.d.ts +1 -1
- package/dist/plugins/form-builder/api/index.d.cts +1 -1
- package/dist/plugins/form-builder/api/index.d.mts +1 -1
- package/dist/plugins/form-builder/api/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/hooks/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/hooks/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/hooks/index.d.ts +1 -1
- package/dist/plugins/form-builder/query-keys.d.cts +1 -1
- package/dist/plugins/form-builder/query-keys.d.mts +1 -1
- package/dist/plugins/form-builder/query-keys.d.ts +1 -1
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +1 -1
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +1 -1
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +1 -1
- package/dist/plugins/ui-builder/client/index.d.cts +1 -1
- package/dist/plugins/ui-builder/client/index.d.mts +1 -1
- package/dist/plugins/ui-builder/client/index.d.ts +1 -1
- package/dist/plugins/ui-builder/query-keys.d.cts +1 -1
- package/dist/plugins/ui-builder/query-keys.d.mts +1 -1
- package/dist/plugins/ui-builder/query-keys.d.ts +1 -1
- package/package.json +1 -1
- package/src/plugins/blog/__tests__/introduction-slot.test.tsx +86 -0
- package/src/plugins/blog/client/components/pages/post-page.internal.tsx +4 -1
- package/src/plugins/blog/client/components/shared/markdown-content.tsx +8 -1
- package/src/plugins/blog/client/overrides.ts +3 -0
- package/dist/shared/{stack.CyltNNZZ.d.ts → stack.BMlTZnZp.d.ts} +72 -72
- package/dist/shared/{stack.Bf6BGZNk.d.cts → stack.BV0uNV4f.d.cts} +72 -72
- package/dist/shared/{stack.BuxUQqL8.d.ts → stack.CGmh-Lpe.d.ts} +12 -12
- package/dist/shared/{stack.Egr3RWhA.d.mts → stack.Doy2_wgl.d.mts} +12 -12
- package/dist/shared/{stack.BLYaUcQa.d.mts → stack.lsbdKRj7.d.mts} +72 -72
- package/dist/shared/{stack.CX83YNuS.d.cts → stack.zch70Loj.d.cts} +12 -12
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
import { act, useState } from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
import { renderToStaticMarkup } from "react-dom/server";
|
|
5
|
+
import { describe, expect, it } from "vitest";
|
|
6
|
+
import { MarkdownContent } from "@workspace/ui/components/markdown-content";
|
|
7
|
+
|
|
8
|
+
(globalThis as any).IS_REACT_ACT_ENVIRONMENT = true;
|
|
9
|
+
|
|
10
|
+
function StatefulSlot({ label }: { label: string }) {
|
|
11
|
+
const [count, setCount] = useState(0);
|
|
12
|
+
return (
|
|
13
|
+
<button onClick={() => setCount(count + 1)}>
|
|
14
|
+
{label}: {count}
|
|
15
|
+
</button>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
describe("Markdown introduction slot", () => {
|
|
20
|
+
it("updates the introduction when slot props change without remounting", async () => {
|
|
21
|
+
const container = document.createElement("div");
|
|
22
|
+
document.body.appendChild(container);
|
|
23
|
+
const root = createRoot(container);
|
|
24
|
+
try {
|
|
25
|
+
await act(async () => {
|
|
26
|
+
root.render(
|
|
27
|
+
<MarkdownContent
|
|
28
|
+
markdown="Introduction."
|
|
29
|
+
afterFirstParagraph={<StatefulSlot label="First selection" />}
|
|
30
|
+
/>,
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
expect(container.textContent).toContain("First selection: 0");
|
|
34
|
+
const button = container.querySelector("button")!;
|
|
35
|
+
await act(async () => button.click());
|
|
36
|
+
button.focus();
|
|
37
|
+
await act(async () => {
|
|
38
|
+
root.render(
|
|
39
|
+
<MarkdownContent
|
|
40
|
+
markdown="Introduction."
|
|
41
|
+
afterFirstParagraph={<StatefulSlot label="Updated selection" />}
|
|
42
|
+
/>,
|
|
43
|
+
);
|
|
44
|
+
});
|
|
45
|
+
expect(container.textContent).toContain("Updated selection: 1");
|
|
46
|
+
expect(container.querySelector("button")).toBe(button);
|
|
47
|
+
expect(document.activeElement).toBe(button);
|
|
48
|
+
expect(container.textContent).not.toContain("First selection");
|
|
49
|
+
} finally {
|
|
50
|
+
await act(async () => root.unmount());
|
|
51
|
+
container.remove();
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
it("follows the first top-level paragraph without splitting references or footnotes", () => {
|
|
55
|
+
const html = renderToStaticMarkup(
|
|
56
|
+
<MarkdownContent
|
|
57
|
+
markdown={
|
|
58
|
+
"# Title\n\n> Quoted paragraph\n\n- List paragraph\n\nIntroduction with [reference][profile] and a note[^1].\n\nSecond paragraph.\n\n[profile]: /compound\n[^1]: Footnote text."
|
|
59
|
+
}
|
|
60
|
+
afterFirstParagraph={<aside>Related profiles</aside>}
|
|
61
|
+
/>,
|
|
62
|
+
);
|
|
63
|
+
expect(html).toContain('href="/compound"');
|
|
64
|
+
expect(html).toContain("Footnote text.");
|
|
65
|
+
expect(html.match(/Related profiles/g)).toHaveLength(1);
|
|
66
|
+
expect(html).toMatch(
|
|
67
|
+
/Introduction[\s\S]*<\/p><aside>Related profiles<\/aside>[\s\S]*Second paragraph/,
|
|
68
|
+
);
|
|
69
|
+
expect(html.indexOf("</blockquote>")).toBeLessThan(
|
|
70
|
+
html.indexOf("Related profiles"),
|
|
71
|
+
);
|
|
72
|
+
expect(html.indexOf("</ul>")).toBeLessThan(
|
|
73
|
+
html.indexOf("Related profiles"),
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it("omits the slot when there is no top-level paragraph", () => {
|
|
78
|
+
const html = renderToStaticMarkup(
|
|
79
|
+
<MarkdownContent
|
|
80
|
+
markdown={"# Title\n\n- Item\n\n> Quote"}
|
|
81
|
+
afterFirstParagraph={<aside>Related profiles</aside>}
|
|
82
|
+
/>,
|
|
83
|
+
);
|
|
84
|
+
expect(html).not.toContain("Related profiles");
|
|
85
|
+
});
|
|
86
|
+
});
|
|
@@ -122,7 +122,10 @@ export function PostPage({ slug }: { slug: string }) {
|
|
|
122
122
|
)}
|
|
123
123
|
|
|
124
124
|
<div className="w-full px-3">
|
|
125
|
-
<MarkdownContent
|
|
125
|
+
<MarkdownContent
|
|
126
|
+
markdown={post.content}
|
|
127
|
+
afterFirstParagraph={overrides.postIntroductionSlot?.(post)}
|
|
128
|
+
/>
|
|
126
129
|
</div>
|
|
127
130
|
|
|
128
131
|
<div className="flex flex-col gap-4 w-full">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import type { ReactNode } from "react";
|
|
3
4
|
import { MarkdownContent as SharedMarkdownContent } from "@workspace/ui/components/markdown-content";
|
|
4
5
|
import { useStack } from "@btst/stack/context";
|
|
5
6
|
import { DefaultImage, DefaultLink } from "./defaults";
|
|
@@ -11,6 +12,7 @@ import "highlight.js/styles/panda-syntax-light.css";
|
|
|
11
12
|
export type MarkdownContentProps = {
|
|
12
13
|
markdown: string;
|
|
13
14
|
className?: string;
|
|
15
|
+
afterFirstParagraph?: ReactNode;
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
/**
|
|
@@ -18,7 +20,11 @@ export type MarkdownContentProps = {
|
|
|
18
20
|
* This is a thin wrapper around the shared MarkdownContent component
|
|
19
21
|
* that provides the framework-wide Link and Image components.
|
|
20
22
|
*/
|
|
21
|
-
export function MarkdownContent({
|
|
23
|
+
export function MarkdownContent({
|
|
24
|
+
markdown,
|
|
25
|
+
className,
|
|
26
|
+
afterFirstParagraph,
|
|
27
|
+
}: MarkdownContentProps) {
|
|
22
28
|
const { router } = useStack();
|
|
23
29
|
const Link = router?.Link ?? DefaultLink;
|
|
24
30
|
const Image = router?.Image ?? DefaultImage;
|
|
@@ -26,6 +32,7 @@ export function MarkdownContent({ markdown, className }: MarkdownContentProps) {
|
|
|
26
32
|
return (
|
|
27
33
|
<SharedMarkdownContent
|
|
28
34
|
markdown={markdown}
|
|
35
|
+
afterFirstParagraph={afterFirstParagraph}
|
|
29
36
|
className={className}
|
|
30
37
|
variant="default"
|
|
31
38
|
LinkComponent={Link}
|
|
@@ -159,4 +159,7 @@ export interface BlogPluginOverrides {
|
|
|
159
159
|
* ```
|
|
160
160
|
*/
|
|
161
161
|
postBottomSlot?: (post: SerializedPost) => ReactNode;
|
|
162
|
+
|
|
163
|
+
/** Render content after the first top-level body paragraph, preserving a single Markdown document. Omitted if no paragraph exists. */
|
|
164
|
+
postIntroductionSlot?: (post: SerializedPost) => ReactNode;
|
|
162
165
|
}
|
|
@@ -27,10 +27,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
27
27
|
readonly itemCount: number;
|
|
28
28
|
readonly createdAt: string;
|
|
29
29
|
readonly updatedAt: string;
|
|
30
|
-
readonly slug: string;
|
|
31
30
|
readonly id: string;
|
|
32
|
-
readonly description?: string | undefined;
|
|
33
31
|
readonly name: string;
|
|
32
|
+
readonly slug: string;
|
|
33
|
+
readonly description?: string | undefined;
|
|
34
34
|
readonly jsonSchema: string;
|
|
35
35
|
readonly fieldConfig?: string | undefined;
|
|
36
36
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -45,10 +45,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
45
45
|
}, {
|
|
46
46
|
readonly createdAt: string;
|
|
47
47
|
readonly updatedAt: string;
|
|
48
|
-
readonly slug: string;
|
|
49
48
|
readonly id: string;
|
|
50
|
-
readonly description?: string | undefined;
|
|
51
49
|
readonly name: string;
|
|
50
|
+
readonly slug: string;
|
|
51
|
+
readonly description?: string | undefined;
|
|
52
52
|
readonly jsonSchema: string;
|
|
53
53
|
readonly fieldConfig?: string | undefined;
|
|
54
54
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -79,10 +79,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
79
79
|
readonly contentType?: {
|
|
80
80
|
readonly createdAt: string;
|
|
81
81
|
readonly updatedAt: string;
|
|
82
|
-
readonly slug: string;
|
|
83
82
|
readonly id: string;
|
|
84
|
-
readonly description?: string | undefined;
|
|
85
83
|
readonly name: string;
|
|
84
|
+
readonly slug: string;
|
|
85
|
+
readonly description?: string | undefined;
|
|
86
86
|
readonly jsonSchema: string;
|
|
87
87
|
readonly fieldConfig?: string | undefined;
|
|
88
88
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -92,11 +92,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
92
92
|
};
|
|
93
93
|
readonly createdAt: string;
|
|
94
94
|
readonly updatedAt: string;
|
|
95
|
-
readonly slug: string;
|
|
96
95
|
readonly id: string;
|
|
96
|
+
readonly slug: string;
|
|
97
|
+
readonly contentTypeId: string;
|
|
97
98
|
readonly data: string;
|
|
98
99
|
readonly authorId?: string | undefined;
|
|
99
|
-
readonly contentTypeId: string;
|
|
100
100
|
}[];
|
|
101
101
|
readonly total: number;
|
|
102
102
|
}>;
|
|
@@ -112,10 +112,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
112
112
|
readonly contentType?: {
|
|
113
113
|
readonly createdAt: string;
|
|
114
114
|
readonly updatedAt: string;
|
|
115
|
-
readonly slug: string;
|
|
116
115
|
readonly id: string;
|
|
117
|
-
readonly description?: string | undefined;
|
|
118
116
|
readonly name: string;
|
|
117
|
+
readonly slug: string;
|
|
118
|
+
readonly description?: string | undefined;
|
|
119
119
|
readonly jsonSchema: string;
|
|
120
120
|
readonly fieldConfig?: string | undefined;
|
|
121
121
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -125,11 +125,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
125
125
|
};
|
|
126
126
|
readonly createdAt: string;
|
|
127
127
|
readonly updatedAt: string;
|
|
128
|
-
readonly slug: string;
|
|
129
128
|
readonly id: string;
|
|
129
|
+
readonly slug: string;
|
|
130
|
+
readonly contentTypeId: string;
|
|
130
131
|
readonly data: string;
|
|
131
132
|
readonly authorId?: string | undefined;
|
|
132
|
-
readonly contentTypeId: string;
|
|
133
133
|
}>;
|
|
134
134
|
readonly createContentItem: better_call.StrictEndpoint<"/content/:typeSlug", {
|
|
135
135
|
params: z.ZodObject<{
|
|
@@ -149,10 +149,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
149
149
|
readonly contentType?: {
|
|
150
150
|
readonly createdAt: string;
|
|
151
151
|
readonly updatedAt: string;
|
|
152
|
-
readonly slug: string;
|
|
153
152
|
readonly id: string;
|
|
154
|
-
readonly description?: string | undefined;
|
|
155
153
|
readonly name: string;
|
|
154
|
+
readonly slug: string;
|
|
155
|
+
readonly description?: string | undefined;
|
|
156
156
|
readonly jsonSchema: string;
|
|
157
157
|
readonly fieldConfig?: string | undefined;
|
|
158
158
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -162,11 +162,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
162
162
|
};
|
|
163
163
|
readonly createdAt: string;
|
|
164
164
|
readonly updatedAt: string;
|
|
165
|
-
readonly slug: string;
|
|
166
165
|
readonly id: string;
|
|
166
|
+
readonly slug: string;
|
|
167
|
+
readonly contentTypeId: string;
|
|
167
168
|
readonly data: string;
|
|
168
169
|
readonly authorId?: string | undefined;
|
|
169
|
-
readonly contentTypeId: string;
|
|
170
170
|
}>;
|
|
171
171
|
readonly updateContentItem: better_call.StrictEndpoint<"/content/:typeSlug/:id", {
|
|
172
172
|
params: z.ZodObject<{
|
|
@@ -187,10 +187,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
187
187
|
readonly contentType?: {
|
|
188
188
|
readonly createdAt: string;
|
|
189
189
|
readonly updatedAt: string;
|
|
190
|
-
readonly slug: string;
|
|
191
190
|
readonly id: string;
|
|
192
|
-
readonly description?: string | undefined;
|
|
193
191
|
readonly name: string;
|
|
192
|
+
readonly slug: string;
|
|
193
|
+
readonly description?: string | undefined;
|
|
194
194
|
readonly jsonSchema: string;
|
|
195
195
|
readonly fieldConfig?: string | undefined;
|
|
196
196
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -200,11 +200,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
200
200
|
};
|
|
201
201
|
readonly createdAt: string;
|
|
202
202
|
readonly updatedAt: string;
|
|
203
|
-
readonly slug: string;
|
|
204
203
|
readonly id: string;
|
|
204
|
+
readonly slug: string;
|
|
205
|
+
readonly contentTypeId: string;
|
|
205
206
|
readonly data: string;
|
|
206
207
|
readonly authorId?: string | undefined;
|
|
207
|
-
readonly contentTypeId: string;
|
|
208
208
|
}>;
|
|
209
209
|
readonly deleteContentItem: better_call.StrictEndpoint<"/content/:typeSlug/:id", {
|
|
210
210
|
params: z.ZodObject<{
|
|
@@ -232,10 +232,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
232
232
|
readonly contentType?: {
|
|
233
233
|
readonly createdAt: string;
|
|
234
234
|
readonly updatedAt: string;
|
|
235
|
-
readonly slug: string;
|
|
236
235
|
readonly id: string;
|
|
237
|
-
readonly description?: string | undefined;
|
|
238
236
|
readonly name: string;
|
|
237
|
+
readonly slug: string;
|
|
238
|
+
readonly description?: string | undefined;
|
|
239
239
|
readonly jsonSchema: string;
|
|
240
240
|
readonly fieldConfig?: string | undefined;
|
|
241
241
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -245,20 +245,20 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
245
245
|
};
|
|
246
246
|
readonly createdAt: string;
|
|
247
247
|
readonly updatedAt: string;
|
|
248
|
-
readonly slug: string;
|
|
249
248
|
readonly id: string;
|
|
249
|
+
readonly slug: string;
|
|
250
|
+
readonly contentTypeId: string;
|
|
250
251
|
readonly data: string;
|
|
251
252
|
readonly authorId?: string | undefined;
|
|
252
|
-
readonly contentTypeId: string;
|
|
253
253
|
}[];
|
|
254
254
|
};
|
|
255
255
|
readonly contentType?: {
|
|
256
256
|
readonly createdAt: string;
|
|
257
257
|
readonly updatedAt: string;
|
|
258
|
-
readonly slug: string;
|
|
259
258
|
readonly id: string;
|
|
260
|
-
readonly description?: string | undefined;
|
|
261
259
|
readonly name: string;
|
|
260
|
+
readonly slug: string;
|
|
261
|
+
readonly description?: string | undefined;
|
|
262
262
|
readonly jsonSchema: string;
|
|
263
263
|
readonly fieldConfig?: string | undefined;
|
|
264
264
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -268,11 +268,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
268
268
|
};
|
|
269
269
|
readonly createdAt: string;
|
|
270
270
|
readonly updatedAt: string;
|
|
271
|
-
readonly slug: string;
|
|
272
271
|
readonly id: string;
|
|
272
|
+
readonly slug: string;
|
|
273
|
+
readonly contentTypeId: string;
|
|
273
274
|
readonly data: string;
|
|
274
275
|
readonly authorId?: string | undefined;
|
|
275
|
-
readonly contentTypeId: string;
|
|
276
276
|
}>;
|
|
277
277
|
readonly listContentByRelation: better_call.StrictEndpoint<"/content/:typeSlug/by-relation", {
|
|
278
278
|
params: z.ZodObject<{
|
|
@@ -298,10 +298,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
298
298
|
readonly contentType?: {
|
|
299
299
|
readonly createdAt: string;
|
|
300
300
|
readonly updatedAt: string;
|
|
301
|
-
readonly slug: string;
|
|
302
301
|
readonly id: string;
|
|
303
|
-
readonly description?: string | undefined;
|
|
304
302
|
readonly name: string;
|
|
303
|
+
readonly slug: string;
|
|
304
|
+
readonly description?: string | undefined;
|
|
305
305
|
readonly jsonSchema: string;
|
|
306
306
|
readonly fieldConfig?: string | undefined;
|
|
307
307
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -311,11 +311,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
311
311
|
};
|
|
312
312
|
readonly createdAt: string;
|
|
313
313
|
readonly updatedAt: string;
|
|
314
|
-
readonly slug: string;
|
|
315
314
|
readonly id: string;
|
|
315
|
+
readonly slug: string;
|
|
316
|
+
readonly contentTypeId: string;
|
|
316
317
|
readonly data: string;
|
|
317
318
|
readonly authorId?: string | undefined;
|
|
318
|
-
readonly contentTypeId: string;
|
|
319
319
|
}[];
|
|
320
320
|
readonly total: number;
|
|
321
321
|
readonly limit: number;
|
|
@@ -367,10 +367,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
367
367
|
readonly contentType?: {
|
|
368
368
|
readonly createdAt: string;
|
|
369
369
|
readonly updatedAt: string;
|
|
370
|
-
readonly slug: string;
|
|
371
370
|
readonly id: string;
|
|
372
|
-
readonly description?: string | undefined;
|
|
373
371
|
readonly name: string;
|
|
372
|
+
readonly slug: string;
|
|
373
|
+
readonly description?: string | undefined;
|
|
374
374
|
readonly jsonSchema: string;
|
|
375
375
|
readonly fieldConfig?: string | undefined;
|
|
376
376
|
readonly autoFormVersion?: number | undefined;
|
|
@@ -380,11 +380,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
380
380
|
};
|
|
381
381
|
readonly createdAt: string;
|
|
382
382
|
readonly updatedAt: string;
|
|
383
|
-
readonly slug: string;
|
|
384
383
|
readonly id: string;
|
|
384
|
+
readonly slug: string;
|
|
385
|
+
readonly contentTypeId: string;
|
|
385
386
|
readonly data: string;
|
|
386
387
|
readonly authorId?: string | undefined;
|
|
387
|
-
readonly contentTypeId: string;
|
|
388
388
|
}[];
|
|
389
389
|
readonly total: number;
|
|
390
390
|
readonly limit: number;
|
|
@@ -399,10 +399,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
399
399
|
itemCount: number;
|
|
400
400
|
createdAt: string;
|
|
401
401
|
updatedAt: string;
|
|
402
|
-
slug: string;
|
|
403
402
|
id: string;
|
|
404
|
-
description?: string | undefined;
|
|
405
403
|
name: string;
|
|
404
|
+
slug: string;
|
|
405
|
+
description?: string | undefined;
|
|
406
406
|
jsonSchema: string;
|
|
407
407
|
fieldConfig?: string | undefined;
|
|
408
408
|
autoFormVersion?: number | undefined;
|
|
@@ -414,10 +414,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
414
414
|
}, z.core.$strip>>, {
|
|
415
415
|
createdAt: string;
|
|
416
416
|
updatedAt: string;
|
|
417
|
-
slug: string;
|
|
418
417
|
id: string;
|
|
419
|
-
description?: string | undefined;
|
|
420
418
|
name: string;
|
|
419
|
+
slug: string;
|
|
420
|
+
description?: string | undefined;
|
|
421
421
|
jsonSchema: string;
|
|
422
422
|
fieldConfig?: string | undefined;
|
|
423
423
|
autoFormVersion?: number | undefined;
|
|
@@ -445,10 +445,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
445
445
|
contentType?: {
|
|
446
446
|
createdAt: string;
|
|
447
447
|
updatedAt: string;
|
|
448
|
-
slug: string;
|
|
449
448
|
id: string;
|
|
450
|
-
description?: string | undefined;
|
|
451
449
|
name: string;
|
|
450
|
+
slug: string;
|
|
451
|
+
description?: string | undefined;
|
|
452
452
|
jsonSchema: string;
|
|
453
453
|
fieldConfig?: string | undefined;
|
|
454
454
|
autoFormVersion?: number | undefined;
|
|
@@ -456,11 +456,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
456
456
|
parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
|
|
457
457
|
createdAt: string;
|
|
458
458
|
updatedAt: string;
|
|
459
|
-
slug: string;
|
|
460
459
|
id: string;
|
|
460
|
+
slug: string;
|
|
461
|
+
contentTypeId: string;
|
|
461
462
|
data: string;
|
|
462
463
|
authorId?: string | undefined;
|
|
463
|
-
contentTypeId: string;
|
|
464
464
|
}[];
|
|
465
465
|
total: number;
|
|
466
466
|
}, false>;
|
|
@@ -479,10 +479,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
479
479
|
contentType?: {
|
|
480
480
|
createdAt: string;
|
|
481
481
|
updatedAt: string;
|
|
482
|
-
slug: string;
|
|
483
482
|
id: string;
|
|
484
|
-
description?: string | undefined;
|
|
485
483
|
name: string;
|
|
484
|
+
slug: string;
|
|
485
|
+
description?: string | undefined;
|
|
486
486
|
jsonSchema: string;
|
|
487
487
|
fieldConfig?: string | undefined;
|
|
488
488
|
autoFormVersion?: number | undefined;
|
|
@@ -490,11 +490,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
490
490
|
parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
|
|
491
491
|
createdAt: string;
|
|
492
492
|
updatedAt: string;
|
|
493
|
-
slug: string;
|
|
494
493
|
id: string;
|
|
494
|
+
slug: string;
|
|
495
|
+
contentTypeId: string;
|
|
495
496
|
data: string;
|
|
496
497
|
authorId?: string | undefined;
|
|
497
|
-
contentTypeId: string;
|
|
498
498
|
}, false>;
|
|
499
499
|
readonly createContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
|
|
500
500
|
typeSlug: z.ZodString;
|
|
@@ -508,10 +508,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
508
508
|
contentType?: {
|
|
509
509
|
createdAt: string;
|
|
510
510
|
updatedAt: string;
|
|
511
|
-
slug: string;
|
|
512
511
|
id: string;
|
|
513
|
-
description?: string | undefined;
|
|
514
512
|
name: string;
|
|
513
|
+
slug: string;
|
|
514
|
+
description?: string | undefined;
|
|
515
515
|
jsonSchema: string;
|
|
516
516
|
fieldConfig?: string | undefined;
|
|
517
517
|
autoFormVersion?: number | undefined;
|
|
@@ -519,11 +519,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
519
519
|
parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
|
|
520
520
|
createdAt: string;
|
|
521
521
|
updatedAt: string;
|
|
522
|
-
slug: string;
|
|
523
522
|
id: string;
|
|
523
|
+
slug: string;
|
|
524
|
+
contentTypeId: string;
|
|
524
525
|
data: string;
|
|
525
526
|
authorId?: string | undefined;
|
|
526
|
-
contentTypeId: string;
|
|
527
527
|
}, false>;
|
|
528
528
|
readonly updateContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
|
|
529
529
|
typeSlug: z.ZodString;
|
|
@@ -540,10 +540,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
540
540
|
contentType?: {
|
|
541
541
|
createdAt: string;
|
|
542
542
|
updatedAt: string;
|
|
543
|
-
slug: string;
|
|
544
543
|
id: string;
|
|
545
|
-
description?: string | undefined;
|
|
546
544
|
name: string;
|
|
545
|
+
slug: string;
|
|
546
|
+
description?: string | undefined;
|
|
547
547
|
jsonSchema: string;
|
|
548
548
|
fieldConfig?: string | undefined;
|
|
549
549
|
autoFormVersion?: number | undefined;
|
|
@@ -551,11 +551,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
551
551
|
parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
|
|
552
552
|
createdAt: string;
|
|
553
553
|
updatedAt: string;
|
|
554
|
-
slug: string;
|
|
555
554
|
id: string;
|
|
555
|
+
slug: string;
|
|
556
|
+
contentTypeId: string;
|
|
556
557
|
data: string;
|
|
557
558
|
authorId?: string | undefined;
|
|
558
|
-
contentTypeId: string;
|
|
559
559
|
}, false>;
|
|
560
560
|
readonly deleteContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
|
|
561
561
|
typeSlug: z.ZodString;
|
|
@@ -584,10 +584,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
584
584
|
contentType?: {
|
|
585
585
|
createdAt: string;
|
|
586
586
|
updatedAt: string;
|
|
587
|
-
slug: string;
|
|
588
587
|
id: string;
|
|
589
|
-
description?: string | undefined;
|
|
590
588
|
name: string;
|
|
589
|
+
slug: string;
|
|
590
|
+
description?: string | undefined;
|
|
591
591
|
jsonSchema: string;
|
|
592
592
|
fieldConfig?: string | undefined;
|
|
593
593
|
autoFormVersion?: number | undefined;
|
|
@@ -595,20 +595,20 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
595
595
|
parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
|
|
596
596
|
createdAt: string;
|
|
597
597
|
updatedAt: string;
|
|
598
|
-
slug: string;
|
|
599
598
|
id: string;
|
|
599
|
+
slug: string;
|
|
600
|
+
contentTypeId: string;
|
|
600
601
|
data: string;
|
|
601
602
|
authorId?: string | undefined;
|
|
602
|
-
contentTypeId: string;
|
|
603
603
|
}[];
|
|
604
604
|
};
|
|
605
605
|
contentType?: {
|
|
606
606
|
createdAt: string;
|
|
607
607
|
updatedAt: string;
|
|
608
|
-
slug: string;
|
|
609
608
|
id: string;
|
|
610
|
-
description?: string | undefined;
|
|
611
609
|
name: string;
|
|
610
|
+
slug: string;
|
|
611
|
+
description?: string | undefined;
|
|
612
612
|
jsonSchema: string;
|
|
613
613
|
fieldConfig?: string | undefined;
|
|
614
614
|
autoFormVersion?: number | undefined;
|
|
@@ -616,11 +616,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
616
616
|
parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
|
|
617
617
|
createdAt: string;
|
|
618
618
|
updatedAt: string;
|
|
619
|
-
slug: string;
|
|
620
619
|
id: string;
|
|
620
|
+
slug: string;
|
|
621
|
+
contentTypeId: string;
|
|
621
622
|
data: string;
|
|
622
623
|
authorId?: string | undefined;
|
|
623
|
-
contentTypeId: string;
|
|
624
624
|
}, false>;
|
|
625
625
|
readonly listContentByRelation: _btst_stack_plugins_api.Operation<z.ZodObject<{
|
|
626
626
|
typeSlug: z.ZodString;
|
|
@@ -643,10 +643,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
643
643
|
contentType?: {
|
|
644
644
|
createdAt: string;
|
|
645
645
|
updatedAt: string;
|
|
646
|
-
slug: string;
|
|
647
646
|
id: string;
|
|
648
|
-
description?: string | undefined;
|
|
649
647
|
name: string;
|
|
648
|
+
slug: string;
|
|
649
|
+
description?: string | undefined;
|
|
650
650
|
jsonSchema: string;
|
|
651
651
|
fieldConfig?: string | undefined;
|
|
652
652
|
autoFormVersion?: number | undefined;
|
|
@@ -654,11 +654,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
654
654
|
parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
|
|
655
655
|
createdAt: string;
|
|
656
656
|
updatedAt: string;
|
|
657
|
-
slug: string;
|
|
658
657
|
id: string;
|
|
658
|
+
slug: string;
|
|
659
|
+
contentTypeId: string;
|
|
659
660
|
data: string;
|
|
660
661
|
authorId?: string | undefined;
|
|
661
|
-
contentTypeId: string;
|
|
662
662
|
}[];
|
|
663
663
|
total: number;
|
|
664
664
|
limit: number;
|
|
@@ -701,10 +701,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
701
701
|
contentType?: {
|
|
702
702
|
createdAt: string;
|
|
703
703
|
updatedAt: string;
|
|
704
|
-
slug: string;
|
|
705
704
|
id: string;
|
|
706
|
-
description?: string | undefined;
|
|
707
705
|
name: string;
|
|
706
|
+
slug: string;
|
|
707
|
+
description?: string | undefined;
|
|
708
708
|
jsonSchema: string;
|
|
709
709
|
fieldConfig?: string | undefined;
|
|
710
710
|
autoFormVersion?: number | undefined;
|
|
@@ -712,11 +712,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
|
|
|
712
712
|
parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
|
|
713
713
|
createdAt: string;
|
|
714
714
|
updatedAt: string;
|
|
715
|
-
slug: string;
|
|
716
715
|
id: string;
|
|
716
|
+
slug: string;
|
|
717
|
+
contentTypeId: string;
|
|
717
718
|
data: string;
|
|
718
719
|
authorId?: string | undefined;
|
|
719
|
-
contentTypeId: string;
|
|
720
720
|
}[];
|
|
721
721
|
total: number;
|
|
722
722
|
limit: number;
|