@btst/stack 3.1.0 → 3.1.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.
Files changed (27) hide show
  1. package/dist/components/markdown/style.css +13 -0
  2. package/dist/packages/ui/src/components/markdown-content.cjs +8 -0
  3. package/dist/packages/ui/src/components/markdown-content.mjs +8 -0
  4. package/dist/plugins/blog/api/index.d.cts +2 -2
  5. package/dist/plugins/blog/api/index.d.mts +2 -2
  6. package/dist/plugins/blog/api/index.d.ts +2 -2
  7. package/dist/plugins/blog/client/components/shared/markdown-content-styles.css +13 -0
  8. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  9. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  10. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  11. package/dist/plugins/blog/client/index.d.cts +2 -2
  12. package/dist/plugins/blog/client/index.d.mts +2 -2
  13. package/dist/plugins/blog/client/index.d.ts +2 -2
  14. package/dist/plugins/blog/query-keys.d.cts +2 -2
  15. package/dist/plugins/blog/query-keys.d.mts +2 -2
  16. package/dist/plugins/blog/query-keys.d.ts +2 -2
  17. package/dist/shared/{stack.CjCSDfWy.d.mts → stack.94kN3pEK.d.mts} +5 -5
  18. package/dist/shared/{stack.BGzgFx3R.d.cts → stack.BTStHVTy.d.cts} +5 -5
  19. package/dist/shared/{stack.DhZtP2JZ.d.mts → stack.CTneIW0u.d.mts} +35 -35
  20. package/dist/shared/{stack.DNw6Hv5o.d.cts → stack.Ce6V7eDj.d.cts} +35 -35
  21. package/dist/shared/{stack.Clil75lW.d.ts → stack.D5b9l24t.d.ts} +35 -35
  22. package/dist/shared/{stack.Dpg_JjIo.d.ts → stack.DfrRYOIl.d.ts} +5 -5
  23. package/package.json +1 -1
  24. package/src/plugins/blog/client/components/shared/markdown-content-styles.css +13 -0
  25. package/dist/shared/{stack.Csi-4Mgz.d.mts → stack.CKc_Bais.d.cts} +7 -7
  26. package/dist/shared/{stack.Csi-4Mgz.d.ts → stack.CKc_Bais.d.mts} +7 -7
  27. package/dist/shared/{stack.Csi-4Mgz.d.cts → stack.CKc_Bais.d.ts} +7 -7
@@ -351,6 +351,19 @@
351
351
  overflow-wrap: anywhere;
352
352
  }
353
353
 
354
+ .markdown-content .markdown-inner .markdown-body .katex {
355
+ display: inline-block;
356
+ max-width: 100%;
357
+ overflow-x: auto;
358
+ text-align: start;
359
+ vertical-align: middle;
360
+ }
361
+
362
+ .markdown-content .markdown-inner .markdown-body .katex:focus-visible {
363
+ outline: 2px solid currentColor;
364
+ outline-offset: 2px;
365
+ }
366
+
354
367
  /* Simplified chat variant - more compact for chat messages */
355
368
  .markdown-content-chat .markdown-inner .markdown-body {
356
369
  padding: 0;
@@ -266,6 +266,14 @@ function MarkdownContent({
266
266
  return {
267
267
  a: AnchorRenderer,
268
268
  img: ImgRenderer,
269
+ span: ({ node: _node, className: className2, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
270
+ "span",
271
+ {
272
+ ...props,
273
+ className: className2,
274
+ tabIndex: className2?.split(/\s+/).includes("katex") ? 0 : props.tabIndex
275
+ }
276
+ ),
269
277
  code: CodeRenderer,
270
278
  pre: PreRenderer,
271
279
  h1: createHeadingRenderer("h1"),
@@ -257,6 +257,14 @@ function MarkdownContent({
257
257
  return {
258
258
  a: AnchorRenderer,
259
259
  img: ImgRenderer,
260
+ span: ({ node: _node, className: className2, ...props }) => /* @__PURE__ */ jsx(
261
+ "span",
262
+ {
263
+ ...props,
264
+ className: className2,
265
+ tabIndex: className2?.split(/\s+/).includes("katex") ? 0 : props.tabIndex
266
+ }
267
+ ),
260
268
  code: CodeRenderer,
261
269
  pre: PreRenderer,
262
270
  h1: createHeadingRenderer("h1"),
@@ -1,10 +1,10 @@
1
- export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.DNw6Hv5o.cjs';
1
+ export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.Ce6V7eDj.cjs';
2
2
  import { DBAdapter } from '@btst/db';
3
3
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from '../../../shared/stack.Dsatjh0B.cjs';
4
4
  export { blogPermissions } from '../permissions.cjs';
5
5
  import '@btst/stack/plugins/client';
6
6
  import 'zod';
7
- import '../../../shared/stack.Csi-4Mgz.cjs';
7
+ import '../../../shared/stack.CKc_Bais.cjs';
8
8
  import '@btst/stack/plugins/api';
9
9
  import '../../../authorization/index.cjs';
10
10
  import 'zod/v4/core';
@@ -1,10 +1,10 @@
1
- export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.DhZtP2JZ.mjs';
1
+ export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.CTneIW0u.mjs';
2
2
  import { DBAdapter } from '@btst/db';
3
3
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from '../../../shared/stack.Dsatjh0B.mjs';
4
4
  export { blogPermissions } from '../permissions.mjs';
5
5
  import '@btst/stack/plugins/client';
6
6
  import 'zod';
7
- import '../../../shared/stack.Csi-4Mgz.mjs';
7
+ import '../../../shared/stack.CKc_Bais.mjs';
8
8
  import '@btst/stack/plugins/api';
9
9
  import '../../../authorization/index.mjs';
10
10
  import 'zod/v4/core';
@@ -1,10 +1,10 @@
1
- export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.Clil75lW.js';
1
+ export { B as BLOG_QUERY_KEYS, i as BlogApiRouter, k as BlogBackendHooks, f as BlogBackendOptions, l as BlogCreateErrorContext, m as BlogCreateOperationContext, n as BlogCreateResultContext, o as BlogDeleteErrorContext, p as BlogDeleteOperationContext, q as BlogDeleteResultContext, r as BlogListErrorContext, s as BlogListOperationContext, t as BlogListResultContext, u as BlogNextPreviousErrorContext, v as BlogNextPreviousOperationContext, w as BlogNextPreviousResultContext, e as BlogRouteKey, x as BlogUpdateErrorContext, y as BlogUpdateOperationContext, z as BlogUpdateResultContext, C as CreatePostOperationInputSchema, N as NextPreviousPostsQuerySchema, P as PostListParams, j as PostListQuerySchema, c as PostListResult, S as SerializedNextPreviousPostsResult, A as SerializedPostListResult, U as UpdatePostOperationInputSchema, h as blogBackendPlugin, d as createBlogQueryKeys, g as getAllPosts, b as getAllTags, a as getPostBySlug } from '../../../shared/stack.D5b9l24t.js';
2
2
  import { DBAdapter } from '@btst/db';
3
3
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from '../../../shared/stack.Dsatjh0B.js';
4
4
  export { blogPermissions } from '../permissions.js';
5
5
  import '@btst/stack/plugins/client';
6
6
  import 'zod';
7
- import '../../../shared/stack.Csi-4Mgz.js';
7
+ import '../../../shared/stack.CKc_Bais.js';
8
8
  import '@btst/stack/plugins/api';
9
9
  import '../../../authorization/index.js';
10
10
  import 'zod/v4/core';
@@ -13,6 +13,19 @@
13
13
  max-width: 100%;
14
14
  }
15
15
 
16
+ .markdown-content .markdown-inner .markdown-body .katex {
17
+ display: inline-block;
18
+ max-width: 100%;
19
+ overflow-x: auto;
20
+ text-align: start;
21
+ vertical-align: middle;
22
+ }
23
+
24
+ .markdown-content .markdown-inner .markdown-body .katex:focus-visible {
25
+ outline: 2px solid currentColor;
26
+ outline-offset: 2px;
27
+ }
28
+
16
29
  .markdown-content .markdown-inner .markdown-body .markdown-image-wrapper {
17
30
  display: block;
18
31
  position: relative;
@@ -1,9 +1,9 @@
1
- export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.BGzgFx3R.cjs';
1
+ export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.BTStHVTy.cjs';
2
2
  export { useDebounce } from '@btst/stack/plugins/client/hooks';
3
3
  import '@tanstack/react-query';
4
4
  import 'zod';
5
5
  import '../../../../shared/stack.Dsatjh0B.cjs';
6
- import '../../../../shared/stack.Csi-4Mgz.cjs';
6
+ import '../../../../shared/stack.CKc_Bais.cjs';
7
7
 
8
8
  declare function useThrottle<T>(value: T, wait?: number): T;
9
9
 
@@ -1,9 +1,9 @@
1
- export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.CjCSDfWy.mjs';
1
+ export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.94kN3pEK.mjs';
2
2
  export { useDebounce } from '@btst/stack/plugins/client/hooks';
3
3
  import '@tanstack/react-query';
4
4
  import 'zod';
5
5
  import '../../../../shared/stack.Dsatjh0B.mjs';
6
- import '../../../../shared/stack.Csi-4Mgz.mjs';
6
+ import '../../../../shared/stack.CKc_Bais.mjs';
7
7
 
8
8
  declare function useThrottle<T>(value: T, wait?: number): T;
9
9
 
@@ -1,9 +1,9 @@
1
- export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.Dpg_JjIo.js';
1
+ export { P as PostCreateInput, e as PostUpdateInput, p as UseNextPreviousPostsOptions, q as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, s as UseRecentPostsOptions, t as UseRecentPostsResult, l as useCreatePost, n as useDeletePost, r as useNextPreviousPosts, g as usePost, k as usePostForm, o as usePostSearch, u as usePosts, v as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, m as useUpdatePost } from '../../../../shared/stack.DfrRYOIl.js';
2
2
  export { useDebounce } from '@btst/stack/plugins/client/hooks';
3
3
  import '@tanstack/react-query';
4
4
  import 'zod';
5
5
  import '../../../../shared/stack.Dsatjh0B.js';
6
- import '../../../../shared/stack.Csi-4Mgz.js';
6
+ import '../../../../shared/stack.CKc_Bais.js';
7
7
 
8
8
  declare function useThrottle<T>(value: T, wait?: number): T;
9
9
 
@@ -4,11 +4,11 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ComponentType, ReactNode } from 'react';
5
5
  import { S as SerializedPost, P as Post } from '../../../shared/stack.Dsatjh0B.cjs';
6
6
  import { N as NewPostPageComponent } from '../../../shared/stack.Bz-YPsuX.cjs';
7
- export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.BGzgFx3R.cjs';
7
+ export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.BTStHVTy.cjs';
8
8
  import '@tanstack/react-query';
9
9
  import 'zod';
10
10
  import '@btst/stack/plugins/client/hooks';
11
- import '../../../shared/stack.Csi-4Mgz.cjs';
11
+ import '../../../shared/stack.CKc_Bais.cjs';
12
12
 
13
13
  declare const BLOG_LOCALIZATION: {
14
14
  BLOG_FORMS_TITLE_LABEL: string;
@@ -4,11 +4,11 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ComponentType, ReactNode } from 'react';
5
5
  import { S as SerializedPost, P as Post } from '../../../shared/stack.Dsatjh0B.mjs';
6
6
  import { N as NewPostPageComponent } from '../../../shared/stack.Bz-YPsuX.mjs';
7
- export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.CjCSDfWy.mjs';
7
+ export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.94kN3pEK.mjs';
8
8
  import '@tanstack/react-query';
9
9
  import 'zod';
10
10
  import '@btst/stack/plugins/client/hooks';
11
- import '../../../shared/stack.Csi-4Mgz.mjs';
11
+ import '../../../shared/stack.CKc_Bais.mjs';
12
12
 
13
13
  declare const BLOG_LOCALIZATION: {
14
14
  BLOG_FORMS_TITLE_LABEL: string;
@@ -4,11 +4,11 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ComponentType, ReactNode } from 'react';
5
5
  import { S as SerializedPost, P as Post } from '../../../shared/stack.Dsatjh0B.js';
6
6
  import { N as NewPostPageComponent } from '../../../shared/stack.Bz-YPsuX.js';
7
- export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.Dpg_JjIo.js';
7
+ export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.DfrRYOIl.js';
8
8
  import '@tanstack/react-query';
9
9
  import 'zod';
10
10
  import '@btst/stack/plugins/client/hooks';
11
- import '../../../shared/stack.Csi-4Mgz.js';
11
+ import '../../../shared/stack.CKc_Bais.js';
12
12
 
13
13
  declare const BLOG_LOCALIZATION: {
14
14
  BLOG_FORMS_TITLE_LABEL: string;
@@ -1,7 +1,7 @@
1
1
  import '@btst/stack/plugins/client';
2
- export { D as blogResources, d as createBlogQueryKeys } from '../../shared/stack.DNw6Hv5o.cjs';
2
+ export { D as blogResources, d as createBlogQueryKeys } from '../../shared/stack.Ce6V7eDj.cjs';
3
3
  import 'zod';
4
- import '../../shared/stack.Csi-4Mgz.cjs';
4
+ import '../../shared/stack.CKc_Bais.cjs';
5
5
  import '../../shared/stack.Dsatjh0B.cjs';
6
6
  import '@btst/stack/plugins/api';
7
7
  import '../../authorization/index.cjs';
@@ -1,7 +1,7 @@
1
1
  import '@btst/stack/plugins/client';
2
- export { D as blogResources, d as createBlogQueryKeys } from '../../shared/stack.DhZtP2JZ.mjs';
2
+ export { D as blogResources, d as createBlogQueryKeys } from '../../shared/stack.CTneIW0u.mjs';
3
3
  import 'zod';
4
- import '../../shared/stack.Csi-4Mgz.mjs';
4
+ import '../../shared/stack.CKc_Bais.mjs';
5
5
  import '../../shared/stack.Dsatjh0B.mjs';
6
6
  import '@btst/stack/plugins/api';
7
7
  import '../../authorization/index.mjs';
@@ -1,7 +1,7 @@
1
1
  import '@btst/stack/plugins/client';
2
- export { D as blogResources, d as createBlogQueryKeys } from '../../shared/stack.Clil75lW.js';
2
+ export { D as blogResources, d as createBlogQueryKeys } from '../../shared/stack.D5b9l24t.js';
3
3
  import 'zod';
4
- import '../../shared/stack.Csi-4Mgz.js';
4
+ import '../../shared/stack.CKc_Bais.js';
5
5
  import '../../shared/stack.Dsatjh0B.js';
6
6
  import '@btst/stack/plugins/api';
7
7
  import '../../authorization/index.js';
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { z } from 'zod';
3
3
  import { ResourceFormConfig, ResourceFormResult } from '@btst/stack/plugins/client/hooks';
4
4
  import { S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.mjs';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.Csi-4Mgz.mjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.mjs';
6
6
 
7
7
  /**
8
8
  * Options for the usePosts hook
@@ -136,6 +136,10 @@ declare function useSuspenseTags(): {
136
136
  declare function usePostForm<TValues>(config: ResourceFormConfig<TValues, SerializedPost | null, SerializedPost | null>): ResourceFormResult<TValues, SerializedPost | null, SerializedPost | null>;
137
137
  /** Create a new post */
138
138
  declare function useCreatePost(): _tanstack_react_query.UseMutationResult<SerializedPost | null, Error, {
139
+ title: string;
140
+ content: string;
141
+ excerpt: string;
142
+ published: boolean;
139
143
  tags: ({
140
144
  name: string;
141
145
  } | {
@@ -143,10 +147,6 @@ declare function useCreatePost(): _tanstack_react_query.UseMutationResult<Serial
143
147
  name: string;
144
148
  slug: string;
145
149
  })[];
146
- title: string;
147
- content: string;
148
- excerpt: string;
149
- published: boolean;
150
150
  slug?: string | undefined;
151
151
  publishedAt?: Date | undefined;
152
152
  createdAt?: Date | undefined;
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { z } from 'zod';
3
3
  import { ResourceFormConfig, ResourceFormResult } from '@btst/stack/plugins/client/hooks';
4
4
  import { S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.cjs';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.Csi-4Mgz.cjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.cjs';
6
6
 
7
7
  /**
8
8
  * Options for the usePosts hook
@@ -136,6 +136,10 @@ declare function useSuspenseTags(): {
136
136
  declare function usePostForm<TValues>(config: ResourceFormConfig<TValues, SerializedPost | null, SerializedPost | null>): ResourceFormResult<TValues, SerializedPost | null, SerializedPost | null>;
137
137
  /** Create a new post */
138
138
  declare function useCreatePost(): _tanstack_react_query.UseMutationResult<SerializedPost | null, Error, {
139
+ title: string;
140
+ content: string;
141
+ excerpt: string;
142
+ published: boolean;
139
143
  tags: ({
140
144
  name: string;
141
145
  } | {
@@ -143,10 +147,6 @@ declare function useCreatePost(): _tanstack_react_query.UseMutationResult<Serial
143
147
  name: string;
144
148
  slug: string;
145
149
  })[];
146
- title: string;
147
- content: string;
148
- excerpt: string;
149
- published: boolean;
150
150
  slug?: string | undefined;
151
151
  publishedAt?: Date | undefined;
152
152
  createdAt?: Date | undefined;
@@ -2,7 +2,7 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
2
2
  import { createApiClient } from '@btst/stack/plugins/client';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.Csi-4Mgz.mjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.mjs';
6
6
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.mjs';
7
7
  import * as _btst_stack_plugins_api from '@btst/stack/plugins/api';
8
8
  import { DeepReadonly, OperationContext, OperationErrorContext } from '@btst/stack/plugins/api';
@@ -89,6 +89,12 @@ declare const NextPreviousPostsQuerySchema: z.ZodObject<{
89
89
  date: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
90
90
  }, z.core.$strip>;
91
91
  declare const CreatePostOperationInputSchema: z.ZodObject<{
92
+ slug: z.ZodOptional<z.ZodString>;
93
+ title: z.ZodString;
94
+ content: z.ZodString;
95
+ excerpt: z.ZodString;
96
+ image: z.ZodOptional<z.ZodString>;
97
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
92
98
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
93
99
  name: z.ZodString;
94
100
  }, z.core.$strip>, z.ZodObject<{
@@ -96,12 +102,6 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
96
102
  name: z.ZodString;
97
103
  slug: z.ZodString;
98
104
  }, z.core.$strip>]>>>>;
99
- slug: z.ZodOptional<z.ZodString>;
100
- title: z.ZodString;
101
- content: z.ZodString;
102
- excerpt: z.ZodString;
103
- image: z.ZodOptional<z.ZodString>;
104
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
105
105
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
106
106
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
107
107
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -109,6 +109,12 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
109
109
  declare const UpdatePostOperationInputSchema: z.ZodObject<{
110
110
  id: z.ZodString;
111
111
  data: z.ZodObject<{
112
+ slug: z.ZodString;
113
+ title: z.ZodString;
114
+ content: z.ZodString;
115
+ excerpt: z.ZodString;
116
+ image: z.ZodOptional<z.ZodString>;
117
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
112
118
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
113
119
  name: z.ZodString;
114
120
  }, z.core.$strip>, z.ZodObject<{
@@ -116,12 +122,6 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
116
122
  name: z.ZodString;
117
123
  slug: z.ZodString;
118
124
  }, z.core.$strip>]>>>>;
119
- slug: z.ZodString;
120
- title: z.ZodString;
121
- content: z.ZodString;
122
- excerpt: z.ZodString;
123
- image: z.ZodOptional<z.ZodString>;
124
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
125
125
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
126
126
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
127
127
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -386,6 +386,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
386
386
  title: string;
387
387
  content: string;
388
388
  excerpt: string;
389
+ slug?: string | undefined;
390
+ image?: string | undefined;
391
+ published?: boolean | undefined;
389
392
  tags?: ({
390
393
  name: string;
391
394
  } | {
@@ -393,9 +396,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
393
396
  name: string;
394
397
  slug: string;
395
398
  })[] | undefined;
396
- slug?: string | undefined;
397
- image?: string | undefined;
398
- published?: boolean | undefined;
399
399
  publishedAt?: unknown;
400
400
  createdAt?: unknown;
401
401
  updatedAt?: unknown;
@@ -403,6 +403,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
403
403
  title: string;
404
404
  content: string;
405
405
  excerpt: string;
406
+ slug?: string | undefined;
407
+ image?: string | undefined;
408
+ published?: boolean | undefined;
406
409
  tags?: ({
407
410
  name: string;
408
411
  } | {
@@ -410,9 +413,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
410
413
  name: string;
411
414
  slug: string;
412
415
  })[] | undefined;
413
- slug?: string | undefined;
414
- image?: string | undefined;
415
- published?: boolean | undefined;
416
416
  publishedAt?: unknown;
417
417
  createdAt?: unknown;
418
418
  updatedAt?: unknown;
@@ -448,6 +448,8 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
448
448
  title: string;
449
449
  content: string;
450
450
  excerpt: string;
451
+ image?: string | undefined;
452
+ published?: boolean | undefined;
451
453
  tags?: ({
452
454
  name: string;
453
455
  } | {
@@ -455,8 +457,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
455
457
  name: string;
456
458
  slug: string;
457
459
  })[] | undefined;
458
- image?: string | undefined;
459
- published?: boolean | undefined;
460
460
  publishedAt?: unknown;
461
461
  createdAt?: unknown;
462
462
  updatedAt?: unknown;
@@ -465,6 +465,8 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
465
465
  title: string;
466
466
  content: string;
467
467
  excerpt: string;
468
+ image?: string | undefined;
469
+ published?: boolean | undefined;
468
470
  tags?: ({
469
471
  name: string;
470
472
  } | {
@@ -472,8 +474,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
472
474
  name: string;
473
475
  slug: string;
474
476
  })[] | undefined;
475
- image?: string | undefined;
476
- published?: boolean | undefined;
477
477
  publishedAt?: unknown;
478
478
  createdAt?: unknown;
479
479
  updatedAt?: unknown;
@@ -627,6 +627,12 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
627
627
  total: number;
628
628
  }, false>;
629
629
  readonly createPost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
630
+ slug: zod.ZodOptional<zod.ZodString>;
631
+ title: zod.ZodString;
632
+ content: zod.ZodString;
633
+ excerpt: zod.ZodString;
634
+ image: zod.ZodOptional<zod.ZodString>;
635
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
630
636
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
631
637
  name: zod.ZodString;
632
638
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -634,12 +640,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
634
640
  name: zod.ZodString;
635
641
  slug: zod.ZodString;
636
642
  }, zod_v4_core.$strip>]>>>>;
637
- slug: zod.ZodOptional<zod.ZodString>;
638
- title: zod.ZodString;
639
- content: zod.ZodString;
640
- excerpt: zod.ZodString;
641
- image: zod.ZodOptional<zod.ZodString>;
642
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
643
643
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
644
644
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
645
645
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -673,6 +673,12 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
673
673
  readonly updatePost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
674
674
  id: zod.ZodString;
675
675
  data: zod.ZodObject<{
676
+ slug: zod.ZodString;
677
+ title: zod.ZodString;
678
+ content: zod.ZodString;
679
+ excerpt: zod.ZodString;
680
+ image: zod.ZodOptional<zod.ZodString>;
681
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
676
682
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
677
683
  name: zod.ZodString;
678
684
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -680,12 +686,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
680
686
  name: zod.ZodString;
681
687
  slug: zod.ZodString;
682
688
  }, zod_v4_core.$strip>]>>>>;
683
- slug: zod.ZodString;
684
- title: zod.ZodString;
685
- content: zod.ZodString;
686
- excerpt: zod.ZodString;
687
- image: zod.ZodOptional<zod.ZodString>;
688
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
689
689
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
690
690
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
691
691
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -2,7 +2,7 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
2
2
  import { createApiClient } from '@btst/stack/plugins/client';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.Csi-4Mgz.cjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.cjs';
6
6
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.cjs';
7
7
  import * as _btst_stack_plugins_api from '@btst/stack/plugins/api';
8
8
  import { DeepReadonly, OperationContext, OperationErrorContext } from '@btst/stack/plugins/api';
@@ -89,6 +89,12 @@ declare const NextPreviousPostsQuerySchema: z.ZodObject<{
89
89
  date: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
90
90
  }, z.core.$strip>;
91
91
  declare const CreatePostOperationInputSchema: z.ZodObject<{
92
+ slug: z.ZodOptional<z.ZodString>;
93
+ title: z.ZodString;
94
+ content: z.ZodString;
95
+ excerpt: z.ZodString;
96
+ image: z.ZodOptional<z.ZodString>;
97
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
92
98
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
93
99
  name: z.ZodString;
94
100
  }, z.core.$strip>, z.ZodObject<{
@@ -96,12 +102,6 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
96
102
  name: z.ZodString;
97
103
  slug: z.ZodString;
98
104
  }, z.core.$strip>]>>>>;
99
- slug: z.ZodOptional<z.ZodString>;
100
- title: z.ZodString;
101
- content: z.ZodString;
102
- excerpt: z.ZodString;
103
- image: z.ZodOptional<z.ZodString>;
104
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
105
105
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
106
106
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
107
107
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -109,6 +109,12 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
109
109
  declare const UpdatePostOperationInputSchema: z.ZodObject<{
110
110
  id: z.ZodString;
111
111
  data: z.ZodObject<{
112
+ slug: z.ZodString;
113
+ title: z.ZodString;
114
+ content: z.ZodString;
115
+ excerpt: z.ZodString;
116
+ image: z.ZodOptional<z.ZodString>;
117
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
112
118
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
113
119
  name: z.ZodString;
114
120
  }, z.core.$strip>, z.ZodObject<{
@@ -116,12 +122,6 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
116
122
  name: z.ZodString;
117
123
  slug: z.ZodString;
118
124
  }, z.core.$strip>]>>>>;
119
- slug: z.ZodString;
120
- title: z.ZodString;
121
- content: z.ZodString;
122
- excerpt: z.ZodString;
123
- image: z.ZodOptional<z.ZodString>;
124
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
125
125
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
126
126
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
127
127
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -386,6 +386,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
386
386
  title: string;
387
387
  content: string;
388
388
  excerpt: string;
389
+ slug?: string | undefined;
390
+ image?: string | undefined;
391
+ published?: boolean | undefined;
389
392
  tags?: ({
390
393
  name: string;
391
394
  } | {
@@ -393,9 +396,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
393
396
  name: string;
394
397
  slug: string;
395
398
  })[] | undefined;
396
- slug?: string | undefined;
397
- image?: string | undefined;
398
- published?: boolean | undefined;
399
399
  publishedAt?: unknown;
400
400
  createdAt?: unknown;
401
401
  updatedAt?: unknown;
@@ -403,6 +403,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
403
403
  title: string;
404
404
  content: string;
405
405
  excerpt: string;
406
+ slug?: string | undefined;
407
+ image?: string | undefined;
408
+ published?: boolean | undefined;
406
409
  tags?: ({
407
410
  name: string;
408
411
  } | {
@@ -410,9 +413,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
410
413
  name: string;
411
414
  slug: string;
412
415
  })[] | undefined;
413
- slug?: string | undefined;
414
- image?: string | undefined;
415
- published?: boolean | undefined;
416
416
  publishedAt?: unknown;
417
417
  createdAt?: unknown;
418
418
  updatedAt?: unknown;
@@ -448,6 +448,8 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
448
448
  title: string;
449
449
  content: string;
450
450
  excerpt: string;
451
+ image?: string | undefined;
452
+ published?: boolean | undefined;
451
453
  tags?: ({
452
454
  name: string;
453
455
  } | {
@@ -455,8 +457,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
455
457
  name: string;
456
458
  slug: string;
457
459
  })[] | undefined;
458
- image?: string | undefined;
459
- published?: boolean | undefined;
460
460
  publishedAt?: unknown;
461
461
  createdAt?: unknown;
462
462
  updatedAt?: unknown;
@@ -465,6 +465,8 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
465
465
  title: string;
466
466
  content: string;
467
467
  excerpt: string;
468
+ image?: string | undefined;
469
+ published?: boolean | undefined;
468
470
  tags?: ({
469
471
  name: string;
470
472
  } | {
@@ -472,8 +474,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
472
474
  name: string;
473
475
  slug: string;
474
476
  })[] | undefined;
475
- image?: string | undefined;
476
- published?: boolean | undefined;
477
477
  publishedAt?: unknown;
478
478
  createdAt?: unknown;
479
479
  updatedAt?: unknown;
@@ -627,6 +627,12 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
627
627
  total: number;
628
628
  }, false>;
629
629
  readonly createPost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
630
+ slug: zod.ZodOptional<zod.ZodString>;
631
+ title: zod.ZodString;
632
+ content: zod.ZodString;
633
+ excerpt: zod.ZodString;
634
+ image: zod.ZodOptional<zod.ZodString>;
635
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
630
636
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
631
637
  name: zod.ZodString;
632
638
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -634,12 +640,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
634
640
  name: zod.ZodString;
635
641
  slug: zod.ZodString;
636
642
  }, zod_v4_core.$strip>]>>>>;
637
- slug: zod.ZodOptional<zod.ZodString>;
638
- title: zod.ZodString;
639
- content: zod.ZodString;
640
- excerpt: zod.ZodString;
641
- image: zod.ZodOptional<zod.ZodString>;
642
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
643
643
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
644
644
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
645
645
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -673,6 +673,12 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
673
673
  readonly updatePost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
674
674
  id: zod.ZodString;
675
675
  data: zod.ZodObject<{
676
+ slug: zod.ZodString;
677
+ title: zod.ZodString;
678
+ content: zod.ZodString;
679
+ excerpt: zod.ZodString;
680
+ image: zod.ZodOptional<zod.ZodString>;
681
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
676
682
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
677
683
  name: zod.ZodString;
678
684
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -680,12 +686,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
680
686
  name: zod.ZodString;
681
687
  slug: zod.ZodString;
682
688
  }, zod_v4_core.$strip>]>>>>;
683
- slug: zod.ZodString;
684
- title: zod.ZodString;
685
- content: zod.ZodString;
686
- excerpt: zod.ZodString;
687
- image: zod.ZodOptional<zod.ZodString>;
688
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
689
689
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
690
690
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
691
691
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -2,7 +2,7 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
2
2
  import { createApiClient } from '@btst/stack/plugins/client';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.Csi-4Mgz.js';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.js';
6
6
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.js';
7
7
  import * as _btst_stack_plugins_api from '@btst/stack/plugins/api';
8
8
  import { DeepReadonly, OperationContext, OperationErrorContext } from '@btst/stack/plugins/api';
@@ -89,6 +89,12 @@ declare const NextPreviousPostsQuerySchema: z.ZodObject<{
89
89
  date: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
90
90
  }, z.core.$strip>;
91
91
  declare const CreatePostOperationInputSchema: z.ZodObject<{
92
+ slug: z.ZodOptional<z.ZodString>;
93
+ title: z.ZodString;
94
+ content: z.ZodString;
95
+ excerpt: z.ZodString;
96
+ image: z.ZodOptional<z.ZodString>;
97
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
92
98
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
93
99
  name: z.ZodString;
94
100
  }, z.core.$strip>, z.ZodObject<{
@@ -96,12 +102,6 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
96
102
  name: z.ZodString;
97
103
  slug: z.ZodString;
98
104
  }, z.core.$strip>]>>>>;
99
- slug: z.ZodOptional<z.ZodString>;
100
- title: z.ZodString;
101
- content: z.ZodString;
102
- excerpt: z.ZodString;
103
- image: z.ZodOptional<z.ZodString>;
104
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
105
105
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
106
106
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
107
107
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -109,6 +109,12 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
109
109
  declare const UpdatePostOperationInputSchema: z.ZodObject<{
110
110
  id: z.ZodString;
111
111
  data: z.ZodObject<{
112
+ slug: z.ZodString;
113
+ title: z.ZodString;
114
+ content: z.ZodString;
115
+ excerpt: z.ZodString;
116
+ image: z.ZodOptional<z.ZodString>;
117
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
112
118
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
113
119
  name: z.ZodString;
114
120
  }, z.core.$strip>, z.ZodObject<{
@@ -116,12 +122,6 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
116
122
  name: z.ZodString;
117
123
  slug: z.ZodString;
118
124
  }, z.core.$strip>]>>>>;
119
- slug: z.ZodString;
120
- title: z.ZodString;
121
- content: z.ZodString;
122
- excerpt: z.ZodString;
123
- image: z.ZodOptional<z.ZodString>;
124
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
125
125
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
126
126
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
127
127
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -386,6 +386,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
386
386
  title: string;
387
387
  content: string;
388
388
  excerpt: string;
389
+ slug?: string | undefined;
390
+ image?: string | undefined;
391
+ published?: boolean | undefined;
389
392
  tags?: ({
390
393
  name: string;
391
394
  } | {
@@ -393,9 +396,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
393
396
  name: string;
394
397
  slug: string;
395
398
  })[] | undefined;
396
- slug?: string | undefined;
397
- image?: string | undefined;
398
- published?: boolean | undefined;
399
399
  publishedAt?: unknown;
400
400
  createdAt?: unknown;
401
401
  updatedAt?: unknown;
@@ -403,6 +403,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
403
403
  title: string;
404
404
  content: string;
405
405
  excerpt: string;
406
+ slug?: string | undefined;
407
+ image?: string | undefined;
408
+ published?: boolean | undefined;
406
409
  tags?: ({
407
410
  name: string;
408
411
  } | {
@@ -410,9 +413,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
410
413
  name: string;
411
414
  slug: string;
412
415
  })[] | undefined;
413
- slug?: string | undefined;
414
- image?: string | undefined;
415
- published?: boolean | undefined;
416
416
  publishedAt?: unknown;
417
417
  createdAt?: unknown;
418
418
  updatedAt?: unknown;
@@ -448,6 +448,8 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
448
448
  title: string;
449
449
  content: string;
450
450
  excerpt: string;
451
+ image?: string | undefined;
452
+ published?: boolean | undefined;
451
453
  tags?: ({
452
454
  name: string;
453
455
  } | {
@@ -455,8 +457,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
455
457
  name: string;
456
458
  slug: string;
457
459
  })[] | undefined;
458
- image?: string | undefined;
459
- published?: boolean | undefined;
460
460
  publishedAt?: unknown;
461
461
  createdAt?: unknown;
462
462
  updatedAt?: unknown;
@@ -465,6 +465,8 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
465
465
  title: string;
466
466
  content: string;
467
467
  excerpt: string;
468
+ image?: string | undefined;
469
+ published?: boolean | undefined;
468
470
  tags?: ({
469
471
  name: string;
470
472
  } | {
@@ -472,8 +474,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
472
474
  name: string;
473
475
  slug: string;
474
476
  })[] | undefined;
475
- image?: string | undefined;
476
- published?: boolean | undefined;
477
477
  publishedAt?: unknown;
478
478
  createdAt?: unknown;
479
479
  updatedAt?: unknown;
@@ -627,6 +627,12 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
627
627
  total: number;
628
628
  }, false>;
629
629
  readonly createPost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
630
+ slug: zod.ZodOptional<zod.ZodString>;
631
+ title: zod.ZodString;
632
+ content: zod.ZodString;
633
+ excerpt: zod.ZodString;
634
+ image: zod.ZodOptional<zod.ZodString>;
635
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
630
636
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
631
637
  name: zod.ZodString;
632
638
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -634,12 +640,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
634
640
  name: zod.ZodString;
635
641
  slug: zod.ZodString;
636
642
  }, zod_v4_core.$strip>]>>>>;
637
- slug: zod.ZodOptional<zod.ZodString>;
638
- title: zod.ZodString;
639
- content: zod.ZodString;
640
- excerpt: zod.ZodString;
641
- image: zod.ZodOptional<zod.ZodString>;
642
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
643
643
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
644
644
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
645
645
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -673,6 +673,12 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
673
673
  readonly updatePost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
674
674
  id: zod.ZodString;
675
675
  data: zod.ZodObject<{
676
+ slug: zod.ZodString;
677
+ title: zod.ZodString;
678
+ content: zod.ZodString;
679
+ excerpt: zod.ZodString;
680
+ image: zod.ZodOptional<zod.ZodString>;
681
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
676
682
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
677
683
  name: zod.ZodString;
678
684
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -680,12 +686,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
680
686
  name: zod.ZodString;
681
687
  slug: zod.ZodString;
682
688
  }, zod_v4_core.$strip>]>>>>;
683
- slug: zod.ZodString;
684
- title: zod.ZodString;
685
- content: zod.ZodString;
686
- excerpt: zod.ZodString;
687
- image: zod.ZodOptional<zod.ZodString>;
688
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
689
689
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
690
690
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
691
691
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { z } from 'zod';
3
3
  import { ResourceFormConfig, ResourceFormResult } from '@btst/stack/plugins/client/hooks';
4
4
  import { S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.js';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.Csi-4Mgz.js';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.js';
6
6
 
7
7
  /**
8
8
  * Options for the usePosts hook
@@ -136,6 +136,10 @@ declare function useSuspenseTags(): {
136
136
  declare function usePostForm<TValues>(config: ResourceFormConfig<TValues, SerializedPost | null, SerializedPost | null>): ResourceFormResult<TValues, SerializedPost | null, SerializedPost | null>;
137
137
  /** Create a new post */
138
138
  declare function useCreatePost(): _tanstack_react_query.UseMutationResult<SerializedPost | null, Error, {
139
+ title: string;
140
+ content: string;
141
+ excerpt: string;
142
+ published: boolean;
139
143
  tags: ({
140
144
  name: string;
141
145
  } | {
@@ -143,10 +147,6 @@ declare function useCreatePost(): _tanstack_react_query.UseMutationResult<Serial
143
147
  name: string;
144
148
  slug: string;
145
149
  })[];
146
- title: string;
147
- content: string;
148
- excerpt: string;
149
- published: boolean;
150
150
  slug?: string | undefined;
151
151
  publishedAt?: Date | undefined;
152
152
  createdAt?: Date | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btst/stack",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A composable, plugin-based library for building full-stack applications.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,6 +13,19 @@
13
13
  max-width: 100%;
14
14
  }
15
15
 
16
+ .markdown-content .markdown-inner .markdown-body .katex {
17
+ display: inline-block;
18
+ max-width: 100%;
19
+ overflow-x: auto;
20
+ text-align: start;
21
+ vertical-align: middle;
22
+ }
23
+
24
+ .markdown-content .markdown-inner .markdown-body .katex:focus-visible {
25
+ outline: 2px solid currentColor;
26
+ outline-offset: 2px;
27
+ }
28
+
16
29
  .markdown-content .markdown-inner .markdown-body .markdown-image-wrapper {
17
30
  display: block;
18
31
  position: relative;
@@ -1,13 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const createPostSchema: z.ZodObject<{
4
- tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5
- name: z.ZodString;
6
- }, z.core.$strip>, z.ZodObject<{
7
- id: z.ZodString;
8
- name: z.ZodString;
9
- slug: z.ZodString;
10
- }, z.core.$strip>]>>>>;
11
4
  slug: z.ZodOptional<z.ZodString>;
12
5
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
13
6
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -17,6 +10,13 @@ declare const createPostSchema: z.ZodObject<{
17
10
  excerpt: z.ZodString;
18
11
  image: z.ZodOptional<z.ZodString>;
19
12
  published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
14
+ name: z.ZodString;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ id: z.ZodString;
17
+ name: z.ZodString;
18
+ slug: z.ZodString;
19
+ }, z.core.$strip>]>>>>;
20
20
  }, z.core.$strip>;
21
21
  declare const updatePostSchema: z.ZodObject<{
22
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1,13 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const createPostSchema: z.ZodObject<{
4
- tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5
- name: z.ZodString;
6
- }, z.core.$strip>, z.ZodObject<{
7
- id: z.ZodString;
8
- name: z.ZodString;
9
- slug: z.ZodString;
10
- }, z.core.$strip>]>>>>;
11
4
  slug: z.ZodOptional<z.ZodString>;
12
5
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
13
6
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -17,6 +10,13 @@ declare const createPostSchema: z.ZodObject<{
17
10
  excerpt: z.ZodString;
18
11
  image: z.ZodOptional<z.ZodString>;
19
12
  published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
14
+ name: z.ZodString;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ id: z.ZodString;
17
+ name: z.ZodString;
18
+ slug: z.ZodString;
19
+ }, z.core.$strip>]>>>>;
20
20
  }, z.core.$strip>;
21
21
  declare const updatePostSchema: z.ZodObject<{
22
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1,13 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const createPostSchema: z.ZodObject<{
4
- tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5
- name: z.ZodString;
6
- }, z.core.$strip>, z.ZodObject<{
7
- id: z.ZodString;
8
- name: z.ZodString;
9
- slug: z.ZodString;
10
- }, z.core.$strip>]>>>>;
11
4
  slug: z.ZodOptional<z.ZodString>;
12
5
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
13
6
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -17,6 +10,13 @@ declare const createPostSchema: z.ZodObject<{
17
10
  excerpt: z.ZodString;
18
11
  image: z.ZodOptional<z.ZodString>;
19
12
  published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
14
+ name: z.ZodString;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ id: z.ZodString;
17
+ name: z.ZodString;
18
+ slug: z.ZodString;
19
+ }, z.core.$strip>]>>>>;
20
20
  }, z.core.$strip>;
21
21
  declare const updatePostSchema: z.ZodObject<{
22
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;