@btst/stack 2.11.4 → 2.11.5

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 (49) hide show
  1. package/dist/packages/stack/src/plugins/cms/client/components/forms/content-form.cjs +58 -34
  2. package/dist/packages/stack/src/plugins/cms/client/components/forms/content-form.mjs +58 -34
  3. package/dist/packages/stack/src/plugins/cms/client/components/inverse-relations-panel.cjs +29 -7
  4. package/dist/packages/stack/src/plugins/cms/client/components/inverse-relations-panel.mjs +29 -7
  5. package/dist/packages/ui/src/components/auto-form/helpers.cjs +24 -1
  6. package/dist/packages/ui/src/components/auto-form/helpers.mjs +24 -1
  7. package/dist/plugins/blog/api/index.d.cts +3 -2
  8. package/dist/plugins/blog/api/index.d.mts +3 -2
  9. package/dist/plugins/blog/api/index.d.ts +3 -2
  10. package/dist/plugins/blog/client/components/index.cjs +21 -0
  11. package/dist/plugins/blog/client/components/index.d.cts +71 -1
  12. package/dist/plugins/blog/client/components/index.d.mts +71 -1
  13. package/dist/plugins/blog/client/components/index.d.ts +71 -1
  14. package/dist/plugins/blog/client/components/index.mjs +15 -1
  15. package/dist/plugins/blog/client/hooks/index.d.cts +3 -2
  16. package/dist/plugins/blog/client/hooks/index.d.mts +3 -2
  17. package/dist/plugins/blog/client/hooks/index.d.ts +3 -2
  18. package/dist/plugins/blog/client/index.d.cts +3 -2
  19. package/dist/plugins/blog/client/index.d.mts +3 -2
  20. package/dist/plugins/blog/client/index.d.ts +3 -2
  21. package/dist/plugins/blog/query-keys.d.cts +3 -2
  22. package/dist/plugins/blog/query-keys.d.mts +3 -2
  23. package/dist/plugins/blog/query-keys.d.ts +3 -2
  24. package/dist/plugins/kanban/api/index.d.cts +1 -1
  25. package/dist/plugins/kanban/api/index.d.mts +1 -1
  26. package/dist/plugins/kanban/api/index.d.ts +1 -1
  27. package/dist/plugins/kanban/query-keys.d.cts +1 -1
  28. package/dist/plugins/kanban/query-keys.d.mts +1 -1
  29. package/dist/plugins/kanban/query-keys.d.ts +1 -1
  30. package/dist/shared/{stack.6mEHS2WH.d.mts → stack.BnSAhKJi.d.ts} +4 -3
  31. package/dist/shared/{stack.C1jLzFZ6.d.mts → stack.CLWhMntf.d.cts} +6 -5
  32. package/dist/shared/{stack.BQmuNl5p.d.mts → stack.CuhcFsAx.d.cts} +3 -38
  33. package/dist/shared/{stack.BQmuNl5p.d.ts → stack.CuhcFsAx.d.mts} +3 -38
  34. package/dist/shared/{stack.BQmuNl5p.d.cts → stack.CuhcFsAx.d.ts} +3 -38
  35. package/dist/shared/{stack.AJTXI7kw.d.cts → stack.DNLuzDb3.d.cts} +4 -3
  36. package/dist/shared/{stack.QYn-Px94.d.ts → stack.Dfc44JiE.d.mts} +4 -3
  37. package/dist/shared/{stack.DF1ewpVE.d.ts → stack.DiodAFAa.d.mts} +6 -5
  38. package/dist/shared/stack.Dsatjh0B.d.cts +35 -0
  39. package/dist/shared/stack.Dsatjh0B.d.mts +35 -0
  40. package/dist/shared/stack.Dsatjh0B.d.ts +35 -0
  41. package/dist/shared/{stack.XulPeAD3.d.cts → stack.ufcExQIR.d.ts} +6 -5
  42. package/package.json +14 -1
  43. package/src/plugins/blog/client/components/index.tsx +52 -0
  44. package/src/plugins/cms/__tests__/auto-form-nested-config.test.ts +177 -0
  45. package/src/plugins/cms/client/components/forms/content-form.tsx +93 -47
  46. package/src/plugins/cms/client/components/inverse-relations-panel.tsx +49 -1
  47. package/dist/shared/{stack.j5SFLC1d.d.ts → stack.D4Cea8II.d.ts} +13 -13
  48. package/dist/shared/{stack.Bzfx-_lq.d.mts → stack.HE_IvqV5.d.mts} +13 -13
  49. package/dist/shared/{stack.B6S3cgwN.d.cts → stack.Rtcvl8sS.d.cts} +13 -13
@@ -1,4 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { S as SerializedPost } from '../../../../shared/stack.Dsatjh0B.mjs';
2
3
 
3
4
  declare function HomePageComponent({ published, }: {
4
5
  published?: boolean;
@@ -14,9 +15,78 @@ declare function EditPostPageComponent({ slug }: {
14
15
  slug: string;
15
16
  }): react_jsx_runtime.JSX.Element;
16
17
 
18
+ declare function PostCard$1({ post }: {
19
+ post: SerializedPost;
20
+ }): react_jsx_runtime.JSX.Element;
21
+
22
+ interface PostsListProps {
23
+ posts: SerializedPost[];
24
+ onLoadMore?: () => void;
25
+ hasMore?: boolean;
26
+ isLoadingMore?: boolean;
27
+ }
28
+ declare function PostsList$1({ posts, onLoadMore, hasMore, isLoadingMore, }: PostsListProps): react_jsx_runtime.JSX.Element;
29
+
30
+ declare function EmptyList$1({ message }: {
31
+ message: string;
32
+ }): react_jsx_runtime.JSX.Element;
33
+
34
+ interface RecentPostsCarouselProps {
35
+ posts: SerializedPost[];
36
+ }
37
+ declare function RecentPostsCarousel$1({ posts }: RecentPostsCarouselProps): react_jsx_runtime.JSX.Element;
38
+
39
+ interface PostNavigationProps {
40
+ previousPost: SerializedPost | null;
41
+ nextPost: SerializedPost | null;
42
+ }
43
+ declare function PostNavigation$1({ previousPost, nextPost, }: PostNavigationProps): react_jsx_runtime.JSX.Element;
44
+
45
+ declare function TagsList$1(): react_jsx_runtime.JSX.Element | null;
46
+
47
+ declare function PostCardSkeleton$1(): react_jsx_runtime.JSX.Element;
48
+
17
49
  declare const PostListPage: typeof HomePageComponent;
18
50
  declare const NewPostPage: typeof NewPostPageComponent;
19
51
  declare const PostPage: typeof PostPageComponent;
20
52
  declare const EditPostPage: typeof EditPostPageComponent;
53
+ /**
54
+ * Card component that renders a single blog post summary
55
+ * (cover image, title, date, tags). Used by the built-in posts list and
56
+ * available for composing custom blog landing pages.
57
+ *
58
+ * Requires a `StackProvider` with the blog plugin registered so that
59
+ * `Link` and `Image` overrides are resolved correctly.
60
+ */
61
+ declare const PostCard: typeof PostCard$1;
62
+ /**
63
+ * Skeleton placeholder that mirrors the layout of {@link PostCard}.
64
+ * Use inside a `<Suspense>` fallback or while data is loading.
65
+ */
66
+ declare const PostCardSkeleton: typeof PostCardSkeleton$1;
67
+ /**
68
+ * Grid of {@link PostCard}s with optional load-more pagination and a
69
+ * built-in search input. Pass an array of `SerializedPost`s.
70
+ */
71
+ declare const PostsList: typeof PostsList$1;
72
+ /**
73
+ * Empty-state placeholder used by the built-in blog list pages.
74
+ * Renders a centered icon and a customisable message.
75
+ */
76
+ declare const EmptyList: typeof EmptyList$1;
77
+ /**
78
+ * Horizontal carousel of recent posts. Drop-in component for "you might
79
+ * also like" sections on a blog post page.
80
+ */
81
+ declare const RecentPostsCarousel: typeof RecentPostsCarousel$1;
82
+ /**
83
+ * Previous/next post navigation strip, typically rendered at the bottom
84
+ * of a post page.
85
+ */
86
+ declare const PostNavigation: typeof PostNavigation$1;
87
+ /**
88
+ * Renders a list of tags for a post or for the whole blog.
89
+ */
90
+ declare const TagsList: typeof TagsList$1;
21
91
 
22
- export { EditPostPage, NewPostPage, PostListPage, PostPage };
92
+ export { EditPostPage, EmptyList, NewPostPage, PostCard, PostCardSkeleton, PostListPage, PostNavigation, PostPage, PostsList, RecentPostsCarousel, TagsList };
@@ -1,4 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { S as SerializedPost } from '../../../../shared/stack.Dsatjh0B.js';
2
3
 
3
4
  declare function HomePageComponent({ published, }: {
4
5
  published?: boolean;
@@ -14,9 +15,78 @@ declare function EditPostPageComponent({ slug }: {
14
15
  slug: string;
15
16
  }): react_jsx_runtime.JSX.Element;
16
17
 
18
+ declare function PostCard$1({ post }: {
19
+ post: SerializedPost;
20
+ }): react_jsx_runtime.JSX.Element;
21
+
22
+ interface PostsListProps {
23
+ posts: SerializedPost[];
24
+ onLoadMore?: () => void;
25
+ hasMore?: boolean;
26
+ isLoadingMore?: boolean;
27
+ }
28
+ declare function PostsList$1({ posts, onLoadMore, hasMore, isLoadingMore, }: PostsListProps): react_jsx_runtime.JSX.Element;
29
+
30
+ declare function EmptyList$1({ message }: {
31
+ message: string;
32
+ }): react_jsx_runtime.JSX.Element;
33
+
34
+ interface RecentPostsCarouselProps {
35
+ posts: SerializedPost[];
36
+ }
37
+ declare function RecentPostsCarousel$1({ posts }: RecentPostsCarouselProps): react_jsx_runtime.JSX.Element;
38
+
39
+ interface PostNavigationProps {
40
+ previousPost: SerializedPost | null;
41
+ nextPost: SerializedPost | null;
42
+ }
43
+ declare function PostNavigation$1({ previousPost, nextPost, }: PostNavigationProps): react_jsx_runtime.JSX.Element;
44
+
45
+ declare function TagsList$1(): react_jsx_runtime.JSX.Element | null;
46
+
47
+ declare function PostCardSkeleton$1(): react_jsx_runtime.JSX.Element;
48
+
17
49
  declare const PostListPage: typeof HomePageComponent;
18
50
  declare const NewPostPage: typeof NewPostPageComponent;
19
51
  declare const PostPage: typeof PostPageComponent;
20
52
  declare const EditPostPage: typeof EditPostPageComponent;
53
+ /**
54
+ * Card component that renders a single blog post summary
55
+ * (cover image, title, date, tags). Used by the built-in posts list and
56
+ * available for composing custom blog landing pages.
57
+ *
58
+ * Requires a `StackProvider` with the blog plugin registered so that
59
+ * `Link` and `Image` overrides are resolved correctly.
60
+ */
61
+ declare const PostCard: typeof PostCard$1;
62
+ /**
63
+ * Skeleton placeholder that mirrors the layout of {@link PostCard}.
64
+ * Use inside a `<Suspense>` fallback or while data is loading.
65
+ */
66
+ declare const PostCardSkeleton: typeof PostCardSkeleton$1;
67
+ /**
68
+ * Grid of {@link PostCard}s with optional load-more pagination and a
69
+ * built-in search input. Pass an array of `SerializedPost`s.
70
+ */
71
+ declare const PostsList: typeof PostsList$1;
72
+ /**
73
+ * Empty-state placeholder used by the built-in blog list pages.
74
+ * Renders a centered icon and a customisable message.
75
+ */
76
+ declare const EmptyList: typeof EmptyList$1;
77
+ /**
78
+ * Horizontal carousel of recent posts. Drop-in component for "you might
79
+ * also like" sections on a blog post page.
80
+ */
81
+ declare const RecentPostsCarousel: typeof RecentPostsCarousel$1;
82
+ /**
83
+ * Previous/next post navigation strip, typically rendered at the bottom
84
+ * of a post page.
85
+ */
86
+ declare const PostNavigation: typeof PostNavigation$1;
87
+ /**
88
+ * Renders a list of tags for a post or for the whole blog.
89
+ */
90
+ declare const TagsList: typeof TagsList$1;
21
91
 
22
- export { EditPostPage, NewPostPage, PostListPage, PostPage };
92
+ export { EditPostPage, EmptyList, NewPostPage, PostCard, PostCardSkeleton, PostListPage, PostNavigation, PostPage, PostsList, RecentPostsCarousel, TagsList };
@@ -3,10 +3,24 @@ import { HomePageComponent } from '../../../../packages/stack/src/plugins/blog/c
3
3
  import { NewPostPageComponent } from '../../../../packages/stack/src/plugins/blog/client/components/pages/new-post-page.mjs';
4
4
  import { PostPageComponent } from '../../../../packages/stack/src/plugins/blog/client/components/pages/post-page.mjs';
5
5
  import { EditPostPageComponent } from '../../../../packages/stack/src/plugins/blog/client/components/pages/edit-post-page.mjs';
6
+ import { PostCard as PostCard$1 } from '../../../../packages/stack/src/plugins/blog/client/components/shared/post-card.mjs';
7
+ import { PostsList as PostsList$1 } from '../../../../packages/stack/src/plugins/blog/client/components/shared/posts-list.mjs';
8
+ import { EmptyList as EmptyList$1 } from '../../../../packages/stack/src/plugins/blog/client/components/shared/empty-list.mjs';
9
+ import { RecentPostsCarousel as RecentPostsCarousel$1 } from '../../../../packages/stack/src/plugins/blog/client/components/shared/recent-posts-carousel.mjs';
10
+ import { PostNavigation as PostNavigation$1 } from '../../../../packages/stack/src/plugins/blog/client/components/shared/post-navigation.mjs';
11
+ import { TagsList as TagsList$1 } from '../../../../packages/stack/src/plugins/blog/client/components/shared/tags-list.mjs';
12
+ import { PostCardSkeleton as PostCardSkeleton$1 } from '../../../../packages/stack/src/plugins/blog/client/components/loading/post-card-skeleton.mjs';
6
13
 
7
14
  const PostListPage = HomePageComponent;
8
15
  const NewPostPage = NewPostPageComponent;
9
16
  const PostPage = PostPageComponent;
10
17
  const EditPostPage = EditPostPageComponent;
18
+ const PostCard = PostCard$1;
19
+ const PostCardSkeleton = PostCardSkeleton$1;
20
+ const PostsList = PostsList$1;
21
+ const EmptyList = EmptyList$1;
22
+ const RecentPostsCarousel = RecentPostsCarousel$1;
23
+ const PostNavigation = PostNavigation$1;
24
+ const TagsList = TagsList$1;
11
25
 
12
- export { EditPostPage, NewPostPage, PostListPage, PostPage };
26
+ export { EditPostPage, EmptyList, NewPostPage, PostCard, PostCardSkeleton, PostListPage, PostNavigation, PostPage, PostsList, RecentPostsCarousel, TagsList };
@@ -1,7 +1,8 @@
1
- export { P as PostCreateInput, e as PostUpdateInput, o as UseNextPreviousPostsOptions, p as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, r as UseRecentPostsOptions, s as UseRecentPostsResult, k as useCreatePost, m as useDeletePost, q as useNextPreviousPosts, g as usePost, n as usePostSearch, u as usePosts, t as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, l as useUpdatePost } from '../../../../shared/stack.AJTXI7kw.cjs';
1
+ export { P as PostCreateInput, e as PostUpdateInput, o as UseNextPreviousPostsOptions, p as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, r as UseRecentPostsOptions, s as UseRecentPostsResult, k as useCreatePost, m as useDeletePost, q as useNextPreviousPosts, g as usePost, n as usePostSearch, u as usePosts, t as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, l as useUpdatePost } from '../../../../shared/stack.DNLuzDb3.cjs';
2
2
  import '@tanstack/react-query';
3
- import '../../../../shared/stack.BQmuNl5p.cjs';
3
+ import '../../../../shared/stack.Dsatjh0B.cjs';
4
4
  import 'zod';
5
+ import '../../../../shared/stack.CuhcFsAx.cjs';
5
6
 
6
7
  declare function useDebounce<T>(value: T, delay?: number): T;
7
8
  declare function useThrottle<T>(value: T, wait?: number): T;
@@ -1,7 +1,8 @@
1
- export { P as PostCreateInput, e as PostUpdateInput, o as UseNextPreviousPostsOptions, p as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, r as UseRecentPostsOptions, s as UseRecentPostsResult, k as useCreatePost, m as useDeletePost, q as useNextPreviousPosts, g as usePost, n as usePostSearch, u as usePosts, t as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, l as useUpdatePost } from '../../../../shared/stack.6mEHS2WH.mjs';
1
+ export { P as PostCreateInput, e as PostUpdateInput, o as UseNextPreviousPostsOptions, p as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, r as UseRecentPostsOptions, s as UseRecentPostsResult, k as useCreatePost, m as useDeletePost, q as useNextPreviousPosts, g as usePost, n as usePostSearch, u as usePosts, t as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, l as useUpdatePost } from '../../../../shared/stack.Dfc44JiE.mjs';
2
2
  import '@tanstack/react-query';
3
- import '../../../../shared/stack.BQmuNl5p.mjs';
3
+ import '../../../../shared/stack.Dsatjh0B.mjs';
4
4
  import 'zod';
5
+ import '../../../../shared/stack.CuhcFsAx.mjs';
5
6
 
6
7
  declare function useDebounce<T>(value: T, delay?: number): T;
7
8
  declare function useThrottle<T>(value: T, wait?: number): T;
@@ -1,7 +1,8 @@
1
- export { P as PostCreateInput, e as PostUpdateInput, o as UseNextPreviousPostsOptions, p as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, r as UseRecentPostsOptions, s as UseRecentPostsResult, k as useCreatePost, m as useDeletePost, q as useNextPreviousPosts, g as usePost, n as usePostSearch, u as usePosts, t as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, l as useUpdatePost } from '../../../../shared/stack.QYn-Px94.js';
1
+ export { P as PostCreateInput, e as PostUpdateInput, o as UseNextPreviousPostsOptions, p as UseNextPreviousPostsResult, d as UsePostResult, b as UsePostSearchOptions, c as UsePostSearchResult, U as UsePostsOptions, a as UsePostsResult, r as UseRecentPostsOptions, s as UseRecentPostsResult, k as useCreatePost, m as useDeletePost, q as useNextPreviousPosts, g as usePost, n as usePostSearch, u as usePosts, t as useRecentPosts, h as useSuspensePost, f as useSuspensePosts, j as useSuspenseTags, i as useTags, l as useUpdatePost } from '../../../../shared/stack.BnSAhKJi.js';
2
2
  import '@tanstack/react-query';
3
- import '../../../../shared/stack.BQmuNl5p.js';
3
+ import '../../../../shared/stack.Dsatjh0B.js';
4
4
  import 'zod';
5
+ import '../../../../shared/stack.CuhcFsAx.js';
5
6
 
6
7
  declare function useDebounce<T>(value: T, delay?: number): T;
7
8
  declare function useThrottle<T>(value: T, wait?: number): T;
@@ -2,9 +2,10 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
2
2
  import * as _btst_yar from '@btst/yar';
3
3
  import { ComponentType, ReactNode } from 'react';
4
4
  import { QueryClient } from '@tanstack/react-query';
5
- import { P as Post, S as SerializedPost } from '../../../shared/stack.BQmuNl5p.cjs';
6
- export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.AJTXI7kw.cjs';
5
+ import { P as Post, S as SerializedPost } from '../../../shared/stack.Dsatjh0B.cjs';
6
+ export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.DNLuzDb3.cjs';
7
7
  import 'zod';
8
+ import '../../../shared/stack.CuhcFsAx.cjs';
8
9
 
9
10
  /**
10
11
  * Context passed to route hooks
@@ -2,9 +2,10 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
2
2
  import * as _btst_yar from '@btst/yar';
3
3
  import { ComponentType, ReactNode } from 'react';
4
4
  import { QueryClient } from '@tanstack/react-query';
5
- import { P as Post, S as SerializedPost } from '../../../shared/stack.BQmuNl5p.mjs';
6
- export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.6mEHS2WH.mjs';
5
+ import { P as Post, S as SerializedPost } from '../../../shared/stack.Dsatjh0B.mjs';
6
+ export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.Dfc44JiE.mjs';
7
7
  import 'zod';
8
+ import '../../../shared/stack.CuhcFsAx.mjs';
8
9
 
9
10
  /**
10
11
  * Context passed to route hooks
@@ -2,9 +2,10 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
2
2
  import * as _btst_yar from '@btst/yar';
3
3
  import { ComponentType, ReactNode } from 'react';
4
4
  import { QueryClient } from '@tanstack/react-query';
5
- import { P as Post, S as SerializedPost } from '../../../shared/stack.BQmuNl5p.js';
6
- export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.QYn-Px94.js';
5
+ import { P as Post, S as SerializedPost } from '../../../shared/stack.Dsatjh0B.js';
6
+ export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.BnSAhKJi.js';
7
7
  import 'zod';
8
+ import '../../../shared/stack.CuhcFsAx.js';
8
9
 
9
10
  /**
10
11
  * Context passed to route hooks
@@ -1,8 +1,9 @@
1
1
  import '@tanstack/react-query';
2
- export { f as createBlogQueryKeys } from '../../shared/stack.XulPeAD3.cjs';
2
+ export { f as createBlogQueryKeys } from '../../shared/stack.CLWhMntf.cjs';
3
3
  import '@btst/stack/plugins/client';
4
- import '../../shared/stack.BQmuNl5p.cjs';
4
+ import '../../shared/stack.Dsatjh0B.cjs';
5
5
  import '@btst/stack/plugins/api';
6
6
  import '@btst/db';
7
7
  import 'better-call';
8
8
  import 'zod';
9
+ import '../../shared/stack.CuhcFsAx.cjs';
@@ -1,8 +1,9 @@
1
1
  import '@tanstack/react-query';
2
- export { f as createBlogQueryKeys } from '../../shared/stack.C1jLzFZ6.mjs';
2
+ export { f as createBlogQueryKeys } from '../../shared/stack.DiodAFAa.mjs';
3
3
  import '@btst/stack/plugins/client';
4
- import '../../shared/stack.BQmuNl5p.mjs';
4
+ import '../../shared/stack.Dsatjh0B.mjs';
5
5
  import '@btst/stack/plugins/api';
6
6
  import '@btst/db';
7
7
  import 'better-call';
8
8
  import 'zod';
9
+ import '../../shared/stack.CuhcFsAx.mjs';
@@ -1,8 +1,9 @@
1
1
  import '@tanstack/react-query';
2
- export { f as createBlogQueryKeys } from '../../shared/stack.DF1ewpVE.js';
2
+ export { f as createBlogQueryKeys } from '../../shared/stack.ufcExQIR.js';
3
3
  import '@btst/stack/plugins/client';
4
- import '../../shared/stack.BQmuNl5p.js';
4
+ import '../../shared/stack.Dsatjh0B.js';
5
5
  import '@btst/stack/plugins/api';
6
6
  import '@btst/db';
7
7
  import 'better-call';
8
8
  import 'zod';
9
+ import '../../shared/stack.CuhcFsAx.js';
@@ -1,4 +1,4 @@
1
- export { B as BoardListResult, C as CreateKanbanTaskInput, i as KANBAN_QUERY_KEYS, b as KanbanApiContext, K as KanbanApiRouter, c as KanbanBackendHooks, a as KanbanRouteKey, e as createKanbanTask, f as findOrCreateKanbanBoard, g as getAllBoards, d as getBoardById, h as getKanbanColumnsByBoardId, k as kanbanBackendPlugin } from '../../../shared/stack.B6S3cgwN.cjs';
1
+ export { B as BoardListResult, C as CreateKanbanTaskInput, i as KANBAN_QUERY_KEYS, b as KanbanApiContext, K as KanbanApiRouter, c as KanbanBackendHooks, a as KanbanRouteKey, e as createKanbanTask, f as findOrCreateKanbanBoard, g as getAllBoards, d as getBoardById, h as getKanbanColumnsByBoardId, k as kanbanBackendPlugin } from '../../../shared/stack.Rtcvl8sS.cjs';
2
2
  import { B as BoardWithColumns, S as SerializedBoardWithColumns, C as ColumnWithTasks, a as SerializedColumn, T as Task, b as SerializedTask } from '../../../shared/stack.DJaKVY7v.cjs';
3
3
  import '@btst/stack/plugins/api';
4
4
  import '@btst/db';
@@ -1,4 +1,4 @@
1
- export { B as BoardListResult, C as CreateKanbanTaskInput, i as KANBAN_QUERY_KEYS, b as KanbanApiContext, K as KanbanApiRouter, c as KanbanBackendHooks, a as KanbanRouteKey, e as createKanbanTask, f as findOrCreateKanbanBoard, g as getAllBoards, d as getBoardById, h as getKanbanColumnsByBoardId, k as kanbanBackendPlugin } from '../../../shared/stack.Bzfx-_lq.mjs';
1
+ export { B as BoardListResult, C as CreateKanbanTaskInput, i as KANBAN_QUERY_KEYS, b as KanbanApiContext, K as KanbanApiRouter, c as KanbanBackendHooks, a as KanbanRouteKey, e as createKanbanTask, f as findOrCreateKanbanBoard, g as getAllBoards, d as getBoardById, h as getKanbanColumnsByBoardId, k as kanbanBackendPlugin } from '../../../shared/stack.HE_IvqV5.mjs';
2
2
  import { B as BoardWithColumns, S as SerializedBoardWithColumns, C as ColumnWithTasks, a as SerializedColumn, T as Task, b as SerializedTask } from '../../../shared/stack.DJaKVY7v.mjs';
3
3
  import '@btst/stack/plugins/api';
4
4
  import '@btst/db';
@@ -1,4 +1,4 @@
1
- export { B as BoardListResult, C as CreateKanbanTaskInput, i as KANBAN_QUERY_KEYS, b as KanbanApiContext, K as KanbanApiRouter, c as KanbanBackendHooks, a as KanbanRouteKey, e as createKanbanTask, f as findOrCreateKanbanBoard, g as getAllBoards, d as getBoardById, h as getKanbanColumnsByBoardId, k as kanbanBackendPlugin } from '../../../shared/stack.j5SFLC1d.js';
1
+ export { B as BoardListResult, C as CreateKanbanTaskInput, i as KANBAN_QUERY_KEYS, b as KanbanApiContext, K as KanbanApiRouter, c as KanbanBackendHooks, a as KanbanRouteKey, e as createKanbanTask, f as findOrCreateKanbanBoard, g as getAllBoards, d as getBoardById, h as getKanbanColumnsByBoardId, k as kanbanBackendPlugin } from '../../../shared/stack.D4Cea8II.js';
2
2
  import { B as BoardWithColumns, S as SerializedBoardWithColumns, C as ColumnWithTasks, a as SerializedColumn, T as Task, b as SerializedTask } from '../../../shared/stack.DJaKVY7v.js';
3
3
  import '@btst/stack/plugins/api';
4
4
  import '@btst/db';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { K as KanbanApiRouter, j as BoardsListDiscriminator } from '../../shared/stack.B6S3cgwN.cjs';
2
+ import { K as KanbanApiRouter, j as BoardsListDiscriminator } from '../../shared/stack.Rtcvl8sS.cjs';
3
3
  import { createApiClient } from '@btst/stack/plugins/client';
4
4
  import { S as SerializedBoardWithColumns } from '../../shared/stack.DJaKVY7v.cjs';
5
5
  import '@btst/stack/plugins/api';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { K as KanbanApiRouter, j as BoardsListDiscriminator } from '../../shared/stack.Bzfx-_lq.mjs';
2
+ import { K as KanbanApiRouter, j as BoardsListDiscriminator } from '../../shared/stack.HE_IvqV5.mjs';
3
3
  import { createApiClient } from '@btst/stack/plugins/client';
4
4
  import { S as SerializedBoardWithColumns } from '../../shared/stack.DJaKVY7v.mjs';
5
5
  import '@btst/stack/plugins/api';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { K as KanbanApiRouter, j as BoardsListDiscriminator } from '../../shared/stack.j5SFLC1d.js';
2
+ import { K as KanbanApiRouter, j as BoardsListDiscriminator } from '../../shared/stack.D4Cea8II.js';
3
3
  import { createApiClient } from '@btst/stack/plugins/client';
4
4
  import { S as SerializedBoardWithColumns } from '../../shared/stack.DJaKVY7v.js';
5
5
  import '@btst/stack/plugins/api';
@@ -1,6 +1,7 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { S as SerializedPost, c as createPostSchema, u as updatePostSchema, a as SerializedTag } from './stack.BQmuNl5p.mjs';
2
+ import { S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.js';
3
3
  import { z } from 'zod';
4
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CuhcFsAx.js';
4
5
 
5
6
  /**
6
7
  * Options for the usePosts hook
@@ -135,14 +136,14 @@ declare function useCreatePost(): _tanstack_react_query.UseMutationResult<Serial
135
136
  name: string;
136
137
  slug: string;
137
138
  })[];
139
+ published: boolean;
138
140
  title: string;
139
141
  content: string;
140
142
  excerpt: string;
141
- published: boolean;
142
143
  slug?: string | undefined;
144
+ publishedAt?: Date | undefined;
143
145
  createdAt?: Date | undefined;
144
146
  updatedAt?: Date | undefined;
145
- publishedAt?: Date | undefined;
146
147
  image?: string | undefined;
147
148
  }, unknown>;
148
149
  /** Update an existing post by id */
@@ -1,11 +1,12 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  import { createApiClient } from '@btst/stack/plugins/client';
4
- import { P as Post, T as Tag, c as createPostSchema, u as updatePostSchema, S as SerializedPost, a as SerializedTag } from './stack.BQmuNl5p.mjs';
4
+ import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.cjs';
5
5
  import * as _btst_stack_plugins_api from '@btst/stack/plugins/api';
6
6
  import { DBAdapter } from '@btst/db';
7
7
  import * as better_call from 'better-call';
8
8
  import { z } from 'zod';
9
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CuhcFsAx.cjs';
9
10
 
10
11
  /**
11
12
  * Parameters for filtering/paginating posts.
@@ -324,11 +325,11 @@ declare const blogBackendPlugin: (hooks?: BlogBackendHooks) => _btst_stack_plugi
324
325
  slug: string;
325
326
  })[] | undefined;
326
327
  slug?: string | undefined;
328
+ published?: boolean | undefined;
329
+ publishedAt?: unknown;
327
330
  createdAt?: unknown;
328
331
  updatedAt?: unknown;
329
- publishedAt?: unknown;
330
332
  image?: string | undefined;
331
- published?: boolean | undefined;
332
333
  }, {
333
334
  title: string;
334
335
  content: string;
@@ -341,11 +342,11 @@ declare const blogBackendPlugin: (hooks?: BlogBackendHooks) => _btst_stack_plugi
341
342
  slug: string;
342
343
  })[] | undefined;
343
344
  slug?: string | undefined;
345
+ published?: boolean | undefined;
346
+ publishedAt?: unknown;
344
347
  createdAt?: unknown;
345
348
  updatedAt?: unknown;
346
- publishedAt?: unknown;
347
349
  image?: string | undefined;
348
- published?: boolean | undefined;
349
350
  }>;
350
351
  }, Post>;
351
352
  readonly updatePost: better_call.StrictEndpoint<"/posts/:id", {} & {
@@ -1,39 +1,5 @@
1
1
  import { z } from 'zod';
2
2
 
3
- type Post = {
4
- id: string;
5
- authorId?: string;
6
- defaultLocale?: string;
7
- slug: string;
8
- title: string;
9
- content: string;
10
- excerpt: string;
11
- image?: string;
12
- published: boolean;
13
- status?: "DRAFT" | "PUBLISHED";
14
- tags: Tag[];
15
- publishedAt?: Date;
16
- createdAt: Date;
17
- updatedAt: Date;
18
- };
19
- type Tag = {
20
- id: string;
21
- slug: string;
22
- name: string;
23
- createdAt: Date;
24
- updatedAt: Date;
25
- };
26
- interface SerializedPost extends Omit<Post, "createdAt" | "updatedAt" | "publishedAt" | "tags"> {
27
- tags: SerializedTag[];
28
- publishedAt?: string;
29
- createdAt: string;
30
- updatedAt: string;
31
- }
32
- interface SerializedTag extends Omit<Tag, "createdAt" | "updatedAt"> {
33
- createdAt: string;
34
- updatedAt: string;
35
- }
36
-
37
3
  declare const createPostSchema: z.ZodObject<{
38
4
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
39
5
  name: z.ZodString;
@@ -42,15 +8,15 @@ declare const createPostSchema: z.ZodObject<{
42
8
  name: z.ZodString;
43
9
  slug: z.ZodString;
44
10
  }, z.core.$strip>]>>>>;
45
- title: z.ZodString;
46
11
  slug: z.ZodOptional<z.ZodString>;
12
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
+ publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
47
14
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
48
15
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
49
- publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
16
+ title: z.ZodString;
50
17
  content: z.ZodString;
51
18
  excerpt: z.ZodString;
52
19
  image: z.ZodOptional<z.ZodString>;
53
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
54
20
  }, z.core.$strip>;
55
21
  declare const updatePostSchema: z.ZodObject<{
56
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -73,4 +39,3 @@ declare const updatePostSchema: z.ZodObject<{
73
39
  }, z.core.$strip>;
74
40
 
75
41
  export { createPostSchema as c, updatePostSchema as u };
76
- export type { Post as P, SerializedPost as S, Tag as T, SerializedTag as a };
@@ -1,39 +1,5 @@
1
1
  import { z } from 'zod';
2
2
 
3
- type Post = {
4
- id: string;
5
- authorId?: string;
6
- defaultLocale?: string;
7
- slug: string;
8
- title: string;
9
- content: string;
10
- excerpt: string;
11
- image?: string;
12
- published: boolean;
13
- status?: "DRAFT" | "PUBLISHED";
14
- tags: Tag[];
15
- publishedAt?: Date;
16
- createdAt: Date;
17
- updatedAt: Date;
18
- };
19
- type Tag = {
20
- id: string;
21
- slug: string;
22
- name: string;
23
- createdAt: Date;
24
- updatedAt: Date;
25
- };
26
- interface SerializedPost extends Omit<Post, "createdAt" | "updatedAt" | "publishedAt" | "tags"> {
27
- tags: SerializedTag[];
28
- publishedAt?: string;
29
- createdAt: string;
30
- updatedAt: string;
31
- }
32
- interface SerializedTag extends Omit<Tag, "createdAt" | "updatedAt"> {
33
- createdAt: string;
34
- updatedAt: string;
35
- }
36
-
37
3
  declare const createPostSchema: z.ZodObject<{
38
4
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
39
5
  name: z.ZodString;
@@ -42,15 +8,15 @@ declare const createPostSchema: z.ZodObject<{
42
8
  name: z.ZodString;
43
9
  slug: z.ZodString;
44
10
  }, z.core.$strip>]>>>>;
45
- title: z.ZodString;
46
11
  slug: z.ZodOptional<z.ZodString>;
12
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
+ publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
47
14
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
48
15
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
49
- publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
16
+ title: z.ZodString;
50
17
  content: z.ZodString;
51
18
  excerpt: z.ZodString;
52
19
  image: z.ZodOptional<z.ZodString>;
53
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
54
20
  }, z.core.$strip>;
55
21
  declare const updatePostSchema: z.ZodObject<{
56
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -73,4 +39,3 @@ declare const updatePostSchema: z.ZodObject<{
73
39
  }, z.core.$strip>;
74
40
 
75
41
  export { createPostSchema as c, updatePostSchema as u };
76
- export type { Post as P, SerializedPost as S, Tag as T, SerializedTag as a };
@@ -1,39 +1,5 @@
1
1
  import { z } from 'zod';
2
2
 
3
- type Post = {
4
- id: string;
5
- authorId?: string;
6
- defaultLocale?: string;
7
- slug: string;
8
- title: string;
9
- content: string;
10
- excerpt: string;
11
- image?: string;
12
- published: boolean;
13
- status?: "DRAFT" | "PUBLISHED";
14
- tags: Tag[];
15
- publishedAt?: Date;
16
- createdAt: Date;
17
- updatedAt: Date;
18
- };
19
- type Tag = {
20
- id: string;
21
- slug: string;
22
- name: string;
23
- createdAt: Date;
24
- updatedAt: Date;
25
- };
26
- interface SerializedPost extends Omit<Post, "createdAt" | "updatedAt" | "publishedAt" | "tags"> {
27
- tags: SerializedTag[];
28
- publishedAt?: string;
29
- createdAt: string;
30
- updatedAt: string;
31
- }
32
- interface SerializedTag extends Omit<Tag, "createdAt" | "updatedAt"> {
33
- createdAt: string;
34
- updatedAt: string;
35
- }
36
-
37
3
  declare const createPostSchema: z.ZodObject<{
38
4
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
39
5
  name: z.ZodString;
@@ -42,15 +8,15 @@ declare const createPostSchema: z.ZodObject<{
42
8
  name: z.ZodString;
43
9
  slug: z.ZodString;
44
10
  }, z.core.$strip>]>>>>;
45
- title: z.ZodString;
46
11
  slug: z.ZodOptional<z.ZodString>;
12
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
+ publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
47
14
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
48
15
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
49
- publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
16
+ title: z.ZodString;
50
17
  content: z.ZodString;
51
18
  excerpt: z.ZodString;
52
19
  image: z.ZodOptional<z.ZodString>;
53
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
54
20
  }, z.core.$strip>;
55
21
  declare const updatePostSchema: z.ZodObject<{
56
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -73,4 +39,3 @@ declare const updatePostSchema: z.ZodObject<{
73
39
  }, z.core.$strip>;
74
40
 
75
41
  export { createPostSchema as c, updatePostSchema as u };
76
- export type { Post as P, SerializedPost as S, Tag as T, SerializedTag as a };