@btst/stack 3.0.1 → 3.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- 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/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/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/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/package.json +41 -2
- package/src/__tests__/generated-static-identity.test.tsx +128 -0
- 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/src/plugins/kanban/__tests__/authorization.test.ts +54 -0
- package/dist/shared/{stack.CGmh-Lpe.d.ts → stack.BuxUQqL8.d.ts} +12 -12
- package/dist/shared/{stack.zch70Loj.d.cts → stack.CX83YNuS.d.cts} +12 -12
- package/dist/shared/{stack.Doy2_wgl.d.mts → stack.Egr3RWhA.d.mts} +12 -12
|
@@ -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 };
|
|
@@ -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
|
|
@@ -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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { k as FORM_QUERY_KEYS, a as FormBuilderApiRouter, c as FormBuilderOperationError, e as FormBuilderOperations, b as FormBuilderRouteKey, g as FormListOperationResult, h as SubmissionDetailOperationResult, i as SubmissionListOperationResult, j as SubmitOperationResult, d as createFormBuilderOperations, f as formBuilderBackendPlugin } from '../../../shared/stack.
|
|
1
|
+
export { k as FORM_QUERY_KEYS, a as FormBuilderApiRouter, c as FormBuilderOperationError, e as FormBuilderOperations, b as FormBuilderRouteKey, g as FormListOperationResult, h as SubmissionDetailOperationResult, i as SubmissionListOperationResult, j as SubmitOperationResult, d as createFormBuilderOperations, f as formBuilderBackendPlugin } from '../../../shared/stack.CX83YNuS.cjs';
|
|
2
2
|
export { formBuilderPermissions } from '../permissions.cjs';
|
|
3
3
|
import { S as SerializedForm, d as SerializedFormSubmissionWithData, F as Form, f as FormSubmission, a as SerializedFormSubmission, c as SerializedFormSubmissionSummary, g as FormSubmissionWithForm } from '../../../shared/stack.v2O65JqF.cjs';
|
|
4
4
|
export { h as FormBuilderBackendConfig, i as FormBuilderBackendHooks, j as FormBuilderHookContext, k as FormBuilderOperationHookContext, l as FormCreateOperationContext, m as FormDeleteOperationContext, o as FormGetForUpdateOperationContext, n as FormGetOperationContext, p as FormListOperationContext, q as FormUpdateOperationContext, r as SubmissionCreateOperationContext, s as SubmissionDeleteOperationContext, t as SubmissionGetOperationContext, v as SubmissionHookContext, b as SubmissionListFormContext, u as SubmissionListOperationContext } from '../../../shared/stack.v2O65JqF.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { k as FORM_QUERY_KEYS, a as FormBuilderApiRouter, c as FormBuilderOperationError, e as FormBuilderOperations, b as FormBuilderRouteKey, g as FormListOperationResult, h as SubmissionDetailOperationResult, i as SubmissionListOperationResult, j as SubmitOperationResult, d as createFormBuilderOperations, f as formBuilderBackendPlugin } from '../../../shared/stack.
|
|
1
|
+
export { k as FORM_QUERY_KEYS, a as FormBuilderApiRouter, c as FormBuilderOperationError, e as FormBuilderOperations, b as FormBuilderRouteKey, g as FormListOperationResult, h as SubmissionDetailOperationResult, i as SubmissionListOperationResult, j as SubmitOperationResult, d as createFormBuilderOperations, f as formBuilderBackendPlugin } from '../../../shared/stack.Egr3RWhA.mjs';
|
|
2
2
|
export { formBuilderPermissions } from '../permissions.mjs';
|
|
3
3
|
import { S as SerializedForm, d as SerializedFormSubmissionWithData, F as Form, f as FormSubmission, a as SerializedFormSubmission, c as SerializedFormSubmissionSummary, g as FormSubmissionWithForm } from '../../../shared/stack.OYT8WU4n.mjs';
|
|
4
4
|
export { h as FormBuilderBackendConfig, i as FormBuilderBackendHooks, j as FormBuilderHookContext, k as FormBuilderOperationHookContext, l as FormCreateOperationContext, m as FormDeleteOperationContext, o as FormGetForUpdateOperationContext, n as FormGetOperationContext, p as FormListOperationContext, q as FormUpdateOperationContext, r as SubmissionCreateOperationContext, s as SubmissionDeleteOperationContext, t as SubmissionGetOperationContext, v as SubmissionHookContext, b as SubmissionListFormContext, u as SubmissionListOperationContext } from '../../../shared/stack.OYT8WU4n.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { k as FORM_QUERY_KEYS, a as FormBuilderApiRouter, c as FormBuilderOperationError, e as FormBuilderOperations, b as FormBuilderRouteKey, g as FormListOperationResult, h as SubmissionDetailOperationResult, i as SubmissionListOperationResult, j as SubmitOperationResult, d as createFormBuilderOperations, f as formBuilderBackendPlugin } from '../../../shared/stack.
|
|
1
|
+
export { k as FORM_QUERY_KEYS, a as FormBuilderApiRouter, c as FormBuilderOperationError, e as FormBuilderOperations, b as FormBuilderRouteKey, g as FormListOperationResult, h as SubmissionDetailOperationResult, i as SubmissionListOperationResult, j as SubmitOperationResult, d as createFormBuilderOperations, f as formBuilderBackendPlugin } from '../../../shared/stack.BuxUQqL8.js';
|
|
2
2
|
export { formBuilderPermissions } from '../permissions.js';
|
|
3
3
|
import { S as SerializedForm, d as SerializedFormSubmissionWithData, F as Form, f as FormSubmission, a as SerializedFormSubmission, c as SerializedFormSubmissionSummary, g as FormSubmissionWithForm } from '../../../shared/stack.C3bU9w6L.js';
|
|
4
4
|
export { h as FormBuilderBackendConfig, i as FormBuilderBackendHooks, j as FormBuilderHookContext, k as FormBuilderOperationHookContext, l as FormCreateOperationContext, m as FormDeleteOperationContext, o as FormGetForUpdateOperationContext, n as FormGetOperationContext, p as FormListOperationContext, q as FormUpdateOperationContext, r as SubmissionCreateOperationContext, s as SubmissionDeleteOperationContext, t as SubmissionGetOperationContext, v as SubmissionHookContext, b as SubmissionListFormContext, u as SubmissionListOperationContext } from '../../../shared/stack.C3bU9w6L.js';
|
|
@@ -8,7 +8,7 @@ import '@btst/stack/context';
|
|
|
8
8
|
import '../../permissions.cjs';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@btst/stack/plugins/client';
|
|
11
|
-
import '../../../../shared/stack.
|
|
11
|
+
import '../../../../shared/stack.CX83YNuS.cjs';
|
|
12
12
|
import '@btst/db';
|
|
13
13
|
import 'zod/v4/core';
|
|
14
14
|
import 'better-call';
|
|
@@ -8,7 +8,7 @@ import '@btst/stack/context';
|
|
|
8
8
|
import '../../permissions.mjs';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@btst/stack/plugins/client';
|
|
11
|
-
import '../../../../shared/stack.
|
|
11
|
+
import '../../../../shared/stack.Egr3RWhA.mjs';
|
|
12
12
|
import '@btst/db';
|
|
13
13
|
import 'zod/v4/core';
|
|
14
14
|
import 'better-call';
|
|
@@ -8,7 +8,7 @@ import '@btst/stack/context';
|
|
|
8
8
|
import '../../permissions.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@btst/stack/plugins/client';
|
|
11
|
-
import '../../../../shared/stack.
|
|
11
|
+
import '../../../../shared/stack.BuxUQqL8.js';
|
|
12
12
|
import '@btst/db';
|
|
13
13
|
import 'zod/v4/core';
|
|
14
14
|
import 'better-call';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
2
|
import { createApiClient } from '@btst/stack/plugins/client';
|
|
3
|
-
import { F as FormsListDiscriminator, S as SubmissionsListDiscriminator, a as FormBuilderApiRouter } from '../../shared/stack.
|
|
3
|
+
import { F as FormsListDiscriminator, S as SubmissionsListDiscriminator, a as FormBuilderApiRouter } from '../../shared/stack.CX83YNuS.cjs';
|
|
4
4
|
import { P as PaginatedForms, S as SerializedForm, a as SerializedFormSubmission, e as PaginatedFormSubmissions, d as SerializedFormSubmissionWithData } from '../../shared/stack.v2O65JqF.cjs';
|
|
5
5
|
import { StackIdentity } from '@btst/stack/context';
|
|
6
6
|
import '@btst/stack/plugins/api';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
2
|
import { createApiClient } from '@btst/stack/plugins/client';
|
|
3
|
-
import { F as FormsListDiscriminator, S as SubmissionsListDiscriminator, a as FormBuilderApiRouter } from '../../shared/stack.
|
|
3
|
+
import { F as FormsListDiscriminator, S as SubmissionsListDiscriminator, a as FormBuilderApiRouter } from '../../shared/stack.Egr3RWhA.mjs';
|
|
4
4
|
import { P as PaginatedForms, S as SerializedForm, a as SerializedFormSubmission, e as PaginatedFormSubmissions, d as SerializedFormSubmissionWithData } from '../../shared/stack.OYT8WU4n.mjs';
|
|
5
5
|
import { StackIdentity } from '@btst/stack/context';
|
|
6
6
|
import '@btst/stack/plugins/api';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
2
|
import { createApiClient } from '@btst/stack/plugins/client';
|
|
3
|
-
import { F as FormsListDiscriminator, S as SubmissionsListDiscriminator, a as FormBuilderApiRouter } from '../../shared/stack.
|
|
3
|
+
import { F as FormsListDiscriminator, S as SubmissionsListDiscriminator, a as FormBuilderApiRouter } from '../../shared/stack.BuxUQqL8.js';
|
|
4
4
|
import { P as PaginatedForms, S as SerializedForm, a as SerializedFormSubmission, e as PaginatedFormSubmissions, d as SerializedFormSubmissionWithData } from '../../shared/stack.C3bU9w6L.js';
|
|
5
5
|
import { StackIdentity } from '@btst/stack/context';
|
|
6
6
|
import '@btst/stack/plugins/api';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btst/stack",
|
|
3
|
-
"version": "3.0.1",
|
|
3
|
+
"version": "3.1.0-rc.1",
|
|
4
4
|
"description": "A composable, plugin-based library for building full-stack applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -799,7 +799,37 @@
|
|
|
799
799
|
},
|
|
800
800
|
"./dist/*": "./dist/*",
|
|
801
801
|
"./ui/css": "./dist/ui/components.css",
|
|
802
|
-
"./package.json": "./package.json"
|
|
802
|
+
"./package.json": "./package.json",
|
|
803
|
+
"./plugins/blog/client/pages/posts": {
|
|
804
|
+
"import": {
|
|
805
|
+
"types": "./dist/plugins/blog/client/pages/posts.d.ts",
|
|
806
|
+
"default": "./dist/plugins/blog/client/pages/posts.mjs"
|
|
807
|
+
},
|
|
808
|
+
"require": {
|
|
809
|
+
"types": "./dist/plugins/blog/client/pages/posts.d.cts",
|
|
810
|
+
"default": "./dist/plugins/blog/client/pages/posts.cjs"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"./plugins/blog/client/pages/post": {
|
|
814
|
+
"import": {
|
|
815
|
+
"types": "./dist/plugins/blog/client/pages/post.d.ts",
|
|
816
|
+
"default": "./dist/plugins/blog/client/pages/post.mjs"
|
|
817
|
+
},
|
|
818
|
+
"require": {
|
|
819
|
+
"types": "./dist/plugins/blog/client/pages/post.d.cts",
|
|
820
|
+
"default": "./dist/plugins/blog/client/pages/post.cjs"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
"./plugins/blog/client/pages/tag": {
|
|
824
|
+
"import": {
|
|
825
|
+
"types": "./dist/plugins/blog/client/pages/tag.d.ts",
|
|
826
|
+
"default": "./dist/plugins/blog/client/pages/tag.mjs"
|
|
827
|
+
},
|
|
828
|
+
"require": {
|
|
829
|
+
"types": "./dist/plugins/blog/client/pages/tag.d.cts",
|
|
830
|
+
"default": "./dist/plugins/blog/client/pages/tag.cjs"
|
|
831
|
+
}
|
|
832
|
+
}
|
|
803
833
|
},
|
|
804
834
|
"typesVersions": {
|
|
805
835
|
"*": {
|
|
@@ -1024,6 +1054,15 @@
|
|
|
1024
1054
|
],
|
|
1025
1055
|
"components/empty": [
|
|
1026
1056
|
"./dist/components/empty/index.d.ts"
|
|
1057
|
+
],
|
|
1058
|
+
"plugins/blog/client/pages/posts": [
|
|
1059
|
+
"./dist/plugins/blog/client/pages/posts.d.ts"
|
|
1060
|
+
],
|
|
1061
|
+
"plugins/blog/client/pages/post": [
|
|
1062
|
+
"./dist/plugins/blog/client/pages/post.d.ts"
|
|
1063
|
+
],
|
|
1064
|
+
"plugins/blog/client/pages/tag": [
|
|
1065
|
+
"./dist/plugins/blog/client/pages/tag.d.ts"
|
|
1027
1066
|
]
|
|
1028
1067
|
}
|
|
1029
1068
|
},
|