@btst/stack 3.0.2 → 3.1.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/dist/context/index.d.cts +3 -1
- package/dist/context/index.d.mts +3 -1
- package/dist/context/index.d.ts +3 -1
- package/dist/packages/stack/src/context/auth.cjs +20 -14
- package/dist/packages/stack/src/context/auth.mjs +20 -14
- package/dist/packages/stack/src/context/provider.cjs +42 -22
- package/dist/packages/stack/src/context/provider.mjs +43 -23
- package/dist/packages/stack/src/plugins/blog/client/components/pages/home-page.cjs +32 -28
- package/dist/packages/stack/src/plugins/blog/client/components/pages/home-page.mjs +32 -29
- package/dist/packages/stack/src/plugins/blog/client/components/pages/post-page.cjs +53 -47
- package/dist/packages/stack/src/plugins/blog/client/components/pages/post-page.mjs +53 -48
- package/dist/packages/stack/src/plugins/blog/client/components/pages/tag-page.cjs +30 -24
- package/dist/packages/stack/src/plugins/blog/client/components/pages/tag-page.mjs +30 -25
- package/dist/plugins/blog/api/index.d.cts +2 -2
- package/dist/plugins/blog/api/index.d.mts +2 -2
- package/dist/plugins/blog/api/index.d.ts +2 -2
- package/dist/plugins/blog/client/components/index.d.cts +6 -10
- package/dist/plugins/blog/client/components/index.d.mts +6 -10
- package/dist/plugins/blog/client/components/index.d.ts +6 -10
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/index.d.cts +2 -2
- package/dist/plugins/blog/client/index.d.mts +2 -2
- package/dist/plugins/blog/client/index.d.ts +2 -2
- package/dist/plugins/blog/client/pages/post.cjs +9 -0
- package/dist/plugins/blog/client/pages/post.d.cts +8 -0
- package/dist/plugins/blog/client/pages/post.d.mts +8 -0
- package/dist/plugins/blog/client/pages/post.d.ts +8 -0
- package/dist/plugins/blog/client/pages/post.mjs +7 -0
- package/dist/plugins/blog/client/pages/posts.cjs +9 -0
- package/dist/plugins/blog/client/pages/posts.d.cts +8 -0
- package/dist/plugins/blog/client/pages/posts.d.mts +8 -0
- package/dist/plugins/blog/client/pages/posts.d.ts +8 -0
- package/dist/plugins/blog/client/pages/posts.mjs +7 -0
- package/dist/plugins/blog/client/pages/tag.cjs +9 -0
- package/dist/plugins/blog/client/pages/tag.d.cts +8 -0
- package/dist/plugins/blog/client/pages/tag.d.mts +8 -0
- package/dist/plugins/blog/client/pages/tag.d.ts +8 -0
- package/dist/plugins/blog/client/pages/tag.mjs +7 -0
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/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/shared/{stack.BTStHVTy.d.cts → stack.BGzgFx3R.d.cts} +5 -5
- package/dist/shared/{stack.94kN3pEK.d.mts → stack.CjCSDfWy.d.mts} +5 -5
- package/dist/shared/{stack.lPKwd_v0.d.ts → stack.Clil75lW.d.ts} +37 -37
- package/dist/shared/{stack.CtrnoQgH.d.cts → stack.DNw6Hv5o.d.cts} +37 -37
- package/dist/shared/{stack.BggTHKlo.d.mts → stack.DhZtP2JZ.d.mts} +37 -37
- package/dist/shared/{stack.DfrRYOIl.d.ts → stack.Dpg_JjIo.d.ts} +5 -5
- package/package.json +41 -2
- package/src/__tests__/provider-hydration.test.tsx +164 -0
- package/src/context/auth.tsx +21 -14
- package/src/context/provider.tsx +51 -28
- package/src/plugins/blog/__tests__/page-load-error.test.tsx +53 -0
- package/src/plugins/blog/__tests__/page-loading.test.tsx +106 -0
- package/src/plugins/blog/client/components/pages/home-page.tsx +39 -35
- package/src/plugins/blog/client/components/pages/post-page.tsx +62 -54
- package/src/plugins/blog/client/components/pages/tag-page.tsx +35 -29
- package/src/plugins/blog/client/pages/post.tsx +7 -0
- package/src/plugins/blog/client/pages/posts.tsx +7 -0
- package/src/plugins/blog/client/pages/tag.tsx +7 -0
- package/dist/shared/{stack.D20bOqfr.d.ts → stack.BuxUQqL8.d.ts} +20 -20
- package/dist/shared/{stack.AWSs6TXN.d.cts → stack.CX83YNuS.d.cts} +20 -20
- package/dist/shared/{stack.CKc_Bais.d.cts → stack.Csi-4Mgz.d.cts} +7 -7
- package/dist/shared/{stack.CKc_Bais.d.mts → stack.Csi-4Mgz.d.mts} +7 -7
- package/dist/shared/{stack.CKc_Bais.d.ts → stack.Csi-4Mgz.d.ts} +7 -7
- package/dist/shared/{stack.HB5uGLpE.d.mts → stack.Egr3RWhA.d.mts} +20 -20
|
@@ -10,55 +10,60 @@ import { NotFoundPage } from './404-page.mjs';
|
|
|
10
10
|
import { useSuspensePost } from '../../hooks/blog-hooks.mjs';
|
|
11
11
|
import { blogPermissions } from '../../../../../../../../plugins/blog/permissions.mjs';
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
13
|
+
function createPostPage(PostPageContent) {
|
|
14
|
+
function AuthorizedPostPage({ slug }) {
|
|
15
|
+
const { post } = useSuspensePost(slug);
|
|
16
|
+
const permission = post ? blogPermissions.post.read({
|
|
17
|
+
scope: "post",
|
|
18
|
+
slug: post.slug,
|
|
19
|
+
exists: true,
|
|
20
|
+
id: post.id,
|
|
21
|
+
...post.authorId ? { authorId: post.authorId } : {},
|
|
22
|
+
published: post.published
|
|
23
|
+
}) : blogPermissions.post.read({
|
|
24
|
+
scope: "post",
|
|
25
|
+
slug,
|
|
26
|
+
exists: false,
|
|
27
|
+
published: false
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
PermissionRouteAccess,
|
|
31
|
+
{
|
|
32
|
+
permission,
|
|
33
|
+
LoadingComponent: PostLoading,
|
|
34
|
+
children: /* @__PURE__ */ jsx(PostPageContent, { slug })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function PostPageComponent2({ slug }) {
|
|
39
|
+
const { onRouteError } = usePluginOverrides(BLOG_PLUGIN_ID);
|
|
40
|
+
return /* @__PURE__ */ jsx(
|
|
41
|
+
ComposedRoute,
|
|
42
|
+
{
|
|
43
|
+
path: `/blog/${slug}`,
|
|
44
|
+
PageComponent: AuthorizedPostPage,
|
|
45
|
+
ErrorComponent: DefaultError,
|
|
46
|
+
LoadingComponent: PostLoading,
|
|
47
|
+
NotFoundComponent: NotFoundPage,
|
|
48
|
+
props: { slug },
|
|
49
|
+
onError: (error) => {
|
|
50
|
+
if (onRouteError) {
|
|
51
|
+
onRouteError("post", error, {
|
|
52
|
+
path: `/blog/${slug}`,
|
|
53
|
+
isSSR: typeof window === "undefined",
|
|
54
|
+
slug
|
|
55
|
+
});
|
|
56
|
+
}
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
return PostPageComponent2;
|
|
62
62
|
}
|
|
63
|
+
const PostPageComponent = createPostPage(
|
|
64
|
+
lazy(
|
|
65
|
+
() => import('./post-page.internal.mjs').then((m) => ({ default: m.PostPage }))
|
|
66
|
+
)
|
|
67
|
+
);
|
|
63
68
|
|
|
64
|
-
export { PostPageComponent };
|
|
69
|
+
export { PostPageComponent, createPostPage };
|
|
@@ -11,32 +11,38 @@ const index = require('../loading/index.cjs');
|
|
|
11
11
|
const _404Page = require('./404-page.cjs');
|
|
12
12
|
const plugins_blog_permissions = require('../../../../../../../../plugins/blog/permissions.cjs');
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
});
|
|
14
|
+
function createTagPage(TagPage) {
|
|
15
|
+
function TagPageComponent2({ tagSlug }) {
|
|
16
|
+
const { onRouteError } = context.usePluginOverrides(constants.BLOG_PLUGIN_ID);
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
+
components.ComposedRoute,
|
|
19
|
+
{
|
|
20
|
+
path: `/blog/tag/${tagSlug}`,
|
|
21
|
+
PageComponent: TagPage,
|
|
22
|
+
ErrorComponent: defaultError.DefaultError,
|
|
23
|
+
LoadingComponent: index.PostsLoading,
|
|
24
|
+
NotFoundComponent: _404Page.NotFoundPage,
|
|
25
|
+
permission: plugins_blog_permissions.blogPermissions.tag.read(),
|
|
26
|
+
props: { tagSlug },
|
|
27
|
+
onError: (error) => {
|
|
28
|
+
if (onRouteError) {
|
|
29
|
+
onRouteError("tag", error, {
|
|
30
|
+
path: `/blog/tag/${tagSlug}`,
|
|
31
|
+
isSSR: typeof window === "undefined",
|
|
32
|
+
tagSlug
|
|
33
|
+
});
|
|
34
|
+
}
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
return TagPageComponent2;
|
|
40
40
|
}
|
|
41
|
+
const TagPageComponent = createTagPage(
|
|
42
|
+
React.lazy(
|
|
43
|
+
() => import('./tag-page.internal.cjs').then((m) => ({ default: m.TagPage }))
|
|
44
|
+
)
|
|
45
|
+
);
|
|
41
46
|
|
|
42
47
|
exports.TagPageComponent = TagPageComponent;
|
|
48
|
+
exports.createTagPage = createTagPage;
|
|
@@ -9,32 +9,37 @@ import { PostsLoading } from '../loading/index.mjs';
|
|
|
9
9
|
import { NotFoundPage } from './404-page.mjs';
|
|
10
10
|
import { blogPermissions } from '../../../../../../../../plugins/blog/permissions.mjs';
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
});
|
|
12
|
+
function createTagPage(TagPage) {
|
|
13
|
+
function TagPageComponent2({ tagSlug }) {
|
|
14
|
+
const { onRouteError } = usePluginOverrides(BLOG_PLUGIN_ID);
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
ComposedRoute,
|
|
17
|
+
{
|
|
18
|
+
path: `/blog/tag/${tagSlug}`,
|
|
19
|
+
PageComponent: TagPage,
|
|
20
|
+
ErrorComponent: DefaultError,
|
|
21
|
+
LoadingComponent: PostsLoading,
|
|
22
|
+
NotFoundComponent: NotFoundPage,
|
|
23
|
+
permission: blogPermissions.tag.read(),
|
|
24
|
+
props: { tagSlug },
|
|
25
|
+
onError: (error) => {
|
|
26
|
+
if (onRouteError) {
|
|
27
|
+
onRouteError("tag", error, {
|
|
28
|
+
path: `/blog/tag/${tagSlug}`,
|
|
29
|
+
isSSR: typeof window === "undefined",
|
|
30
|
+
tagSlug
|
|
31
|
+
});
|
|
32
|
+
}
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
return TagPageComponent2;
|
|
38
38
|
}
|
|
39
|
+
const TagPageComponent = createTagPage(
|
|
40
|
+
lazy(
|
|
41
|
+
() => import('./tag-page.internal.mjs').then((m) => ({ default: m.TagPage }))
|
|
42
|
+
)
|
|
43
|
+
);
|
|
39
44
|
|
|
40
|
-
export { TagPageComponent };
|
|
45
|
+
export { TagPageComponent, createTagPage };
|
|
@@ -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.
|
|
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';
|
|
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.
|
|
7
|
+
import '../../../shared/stack.Csi-4Mgz.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.
|
|
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';
|
|
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.
|
|
7
|
+
import '../../../shared/stack.Csi-4Mgz.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.
|
|
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';
|
|
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.
|
|
7
|
+
import '../../../shared/stack.Csi-4Mgz.js';
|
|
8
8
|
import '@btst/stack/plugins/api';
|
|
9
9
|
import '../../../authorization/index.js';
|
|
10
10
|
import 'zod/v4/core';
|
|
@@ -2,14 +2,6 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { N as NewPostPageComponent } from '../../../../shared/stack.Bz-YPsuX.cjs';
|
|
3
3
|
import { S as SerializedPost } from '../../../../shared/stack.Dsatjh0B.cjs';
|
|
4
4
|
|
|
5
|
-
declare function HomePageComponent({ published, }: {
|
|
6
|
-
published?: boolean;
|
|
7
|
-
}): react_jsx_runtime.JSX.Element;
|
|
8
|
-
|
|
9
|
-
declare function PostPageComponent({ slug }: {
|
|
10
|
-
slug: string;
|
|
11
|
-
}): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
5
|
declare function EditPostPageComponent({ slug }: {
|
|
14
6
|
slug: string;
|
|
15
7
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -45,9 +37,13 @@ declare function TagsList$1(): react_jsx_runtime.JSX.Element | null;
|
|
|
45
37
|
|
|
46
38
|
declare function PostCardSkeleton$1(): react_jsx_runtime.JSX.Element;
|
|
47
39
|
|
|
48
|
-
declare const PostListPage:
|
|
40
|
+
declare const PostListPage: ({ published }: {
|
|
41
|
+
published?: boolean;
|
|
42
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
49
43
|
declare const NewPostPage: typeof NewPostPageComponent;
|
|
50
|
-
declare const PostPage:
|
|
44
|
+
declare const PostPage: ({ slug }: {
|
|
45
|
+
slug: string;
|
|
46
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
51
47
|
declare const EditPostPage: typeof EditPostPageComponent;
|
|
52
48
|
/**
|
|
53
49
|
* Card component that renders a single blog post summary
|
|
@@ -2,14 +2,6 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { N as NewPostPageComponent } from '../../../../shared/stack.Bz-YPsuX.mjs';
|
|
3
3
|
import { S as SerializedPost } from '../../../../shared/stack.Dsatjh0B.mjs';
|
|
4
4
|
|
|
5
|
-
declare function HomePageComponent({ published, }: {
|
|
6
|
-
published?: boolean;
|
|
7
|
-
}): react_jsx_runtime.JSX.Element;
|
|
8
|
-
|
|
9
|
-
declare function PostPageComponent({ slug }: {
|
|
10
|
-
slug: string;
|
|
11
|
-
}): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
5
|
declare function EditPostPageComponent({ slug }: {
|
|
14
6
|
slug: string;
|
|
15
7
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -45,9 +37,13 @@ declare function TagsList$1(): react_jsx_runtime.JSX.Element | null;
|
|
|
45
37
|
|
|
46
38
|
declare function PostCardSkeleton$1(): react_jsx_runtime.JSX.Element;
|
|
47
39
|
|
|
48
|
-
declare const PostListPage:
|
|
40
|
+
declare const PostListPage: ({ published }: {
|
|
41
|
+
published?: boolean;
|
|
42
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
49
43
|
declare const NewPostPage: typeof NewPostPageComponent;
|
|
50
|
-
declare const PostPage:
|
|
44
|
+
declare const PostPage: ({ slug }: {
|
|
45
|
+
slug: string;
|
|
46
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
51
47
|
declare const EditPostPage: typeof EditPostPageComponent;
|
|
52
48
|
/**
|
|
53
49
|
* Card component that renders a single blog post summary
|
|
@@ -2,14 +2,6 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { N as NewPostPageComponent } from '../../../../shared/stack.Bz-YPsuX.js';
|
|
3
3
|
import { S as SerializedPost } from '../../../../shared/stack.Dsatjh0B.js';
|
|
4
4
|
|
|
5
|
-
declare function HomePageComponent({ published, }: {
|
|
6
|
-
published?: boolean;
|
|
7
|
-
}): react_jsx_runtime.JSX.Element;
|
|
8
|
-
|
|
9
|
-
declare function PostPageComponent({ slug }: {
|
|
10
|
-
slug: string;
|
|
11
|
-
}): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
5
|
declare function EditPostPageComponent({ slug }: {
|
|
14
6
|
slug: string;
|
|
15
7
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -45,9 +37,13 @@ declare function TagsList$1(): react_jsx_runtime.JSX.Element | null;
|
|
|
45
37
|
|
|
46
38
|
declare function PostCardSkeleton$1(): react_jsx_runtime.JSX.Element;
|
|
47
39
|
|
|
48
|
-
declare const PostListPage:
|
|
40
|
+
declare const PostListPage: ({ published }: {
|
|
41
|
+
published?: boolean;
|
|
42
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
49
43
|
declare const NewPostPage: typeof NewPostPageComponent;
|
|
50
|
-
declare const PostPage:
|
|
44
|
+
declare const PostPage: ({ slug }: {
|
|
45
|
+
slug: string;
|
|
46
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
51
47
|
declare const EditPostPage: typeof EditPostPageComponent;
|
|
52
48
|
/**
|
|
53
49
|
* Card component that renders a single blog post summary
|
|
@@ -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.
|
|
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';
|
|
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.
|
|
6
|
+
import '../../../../shared/stack.Csi-4Mgz.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.
|
|
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';
|
|
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.
|
|
6
|
+
import '../../../../shared/stack.Csi-4Mgz.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.
|
|
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';
|
|
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.
|
|
6
|
+
import '../../../../shared/stack.Csi-4Mgz.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.
|
|
7
|
+
export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.BGzgFx3R.cjs';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@btst/stack/plugins/client/hooks';
|
|
11
|
-
import '../../../shared/stack.
|
|
11
|
+
import '../../../shared/stack.Csi-4Mgz.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.
|
|
7
|
+
export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.CjCSDfWy.mjs';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@btst/stack/plugins/client/hooks';
|
|
11
|
-
import '../../../shared/stack.
|
|
11
|
+
import '../../../shared/stack.Csi-4Mgz.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.
|
|
7
|
+
export { U as UsePostsOptions, a as UsePostsResult } from '../../../shared/stack.Dpg_JjIo.js';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@btst/stack/plugins/client/hooks';
|
|
11
|
-
import '../../../shared/stack.
|
|
11
|
+
import '../../../shared/stack.Csi-4Mgz.js';
|
|
12
12
|
|
|
13
13
|
declare const BLOG_LOCALIZATION: {
|
|
14
14
|
BLOG_FORMS_TITLE_LABEL: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const postPage = require('../../../../packages/stack/src/plugins/blog/client/components/pages/post-page.cjs');
|
|
5
|
+
const postPage_internal = require('../../../../packages/stack/src/plugins/blog/client/components/pages/post-page.internal.cjs');
|
|
6
|
+
|
|
7
|
+
const PostPage = postPage.createPostPage(postPage_internal.PostPage);
|
|
8
|
+
|
|
9
|
+
exports.PostPage = PostPage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const PostPage: ({ slug }: {
|
|
5
|
+
slug: string;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { PostPage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const PostPage: ({ slug }: {
|
|
5
|
+
slug: string;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { PostPage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const PostPage: ({ slug }: {
|
|
5
|
+
slug: string;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { PostPage };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createPostPage } from '../../../../packages/stack/src/plugins/blog/client/components/pages/post-page.mjs';
|
|
3
|
+
import { PostPage as PostPage$1 } from '../../../../packages/stack/src/plugins/blog/client/components/pages/post-page.internal.mjs';
|
|
4
|
+
|
|
5
|
+
const PostPage = createPostPage(PostPage$1);
|
|
6
|
+
|
|
7
|
+
export { PostPage };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const homePage = require('../../../../packages/stack/src/plugins/blog/client/components/pages/home-page.cjs');
|
|
5
|
+
const homePage_internal = require('../../../../packages/stack/src/plugins/blog/client/components/pages/home-page.internal.cjs');
|
|
6
|
+
|
|
7
|
+
const PostListPage = homePage.createHomePage(homePage_internal.HomePage);
|
|
8
|
+
|
|
9
|
+
exports.PostListPage = PostListPage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const PostListPage: ({ published }: {
|
|
5
|
+
published?: boolean;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { PostListPage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const PostListPage: ({ published }: {
|
|
5
|
+
published?: boolean;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { PostListPage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const PostListPage: ({ published }: {
|
|
5
|
+
published?: boolean;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { PostListPage };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createHomePage } from '../../../../packages/stack/src/plugins/blog/client/components/pages/home-page.mjs';
|
|
3
|
+
import { HomePage } from '../../../../packages/stack/src/plugins/blog/client/components/pages/home-page.internal.mjs';
|
|
4
|
+
|
|
5
|
+
const PostListPage = createHomePage(HomePage);
|
|
6
|
+
|
|
7
|
+
export { PostListPage };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const tagPage = require('../../../../packages/stack/src/plugins/blog/client/components/pages/tag-page.cjs');
|
|
5
|
+
const tagPage_internal = require('../../../../packages/stack/src/plugins/blog/client/components/pages/tag-page.internal.cjs');
|
|
6
|
+
|
|
7
|
+
const TagPage = tagPage.createTagPage(tagPage_internal.TagPage);
|
|
8
|
+
|
|
9
|
+
exports.TagPage = TagPage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const TagPage: ({ tagSlug }: {
|
|
5
|
+
tagSlug: string;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { TagPage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const TagPage: ({ tagSlug }: {
|
|
5
|
+
tagSlug: string;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { TagPage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** Complete guarded page for a native framework route; contains no lazy page import. */
|
|
4
|
+
declare const TagPage: ({ tagSlug }: {
|
|
5
|
+
tagSlug: string;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { TagPage };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createTagPage } from '../../../../packages/stack/src/plugins/blog/client/components/pages/tag-page.mjs';
|
|
3
|
+
import { TagPage as TagPage$1 } from '../../../../packages/stack/src/plugins/blog/client/components/pages/tag-page.internal.mjs';
|
|
4
|
+
|
|
5
|
+
const TagPage = createTagPage(TagPage$1);
|
|
6
|
+
|
|
7
|
+
export { TagPage };
|