@yimingliao/cms 0.0.178 → 0.0.180
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/src/client/interfaces/components/resources/admin/admin-relations-section.js +4 -3
- package/dist/src/client/interfaces/components/resources/category/category-relations-section.js +6 -3
- package/dist/src/client/interfaces/components/resources/file/file-relations-section.js +4 -2
- package/dist/src/client/interfaces/components/resources/post/post-relations-section.js +4 -3
- package/dist/src/client/interfaces/components/resources/tag/tag-relations-section.js +4 -3
- package/dist/src/client/interfaces/components/resources/topic/topic-relations-section.js +7 -5
- package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts +3 -1
- package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/category/category-relations-section.d.ts +3 -1
- package/dist/types/src/client/interfaces/components/resources/category/category-relations-section.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts +3 -1
- package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts +3 -1
- package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/tag/tag-relations-section.d.ts +3 -1
- package/dist/types/src/client/interfaces/components/resources/tag/tag-relations-section.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/topic/topic-relations-section.d.ts +4 -1
- package/dist/types/src/client/interfaces/components/resources/topic/topic-relations-section.d.ts.map +1 -1
- package/package.json +9 -5
|
@@ -47,7 +47,8 @@ function createAdminRelationsSection({
|
|
|
47
47
|
"isSlugActive",
|
|
48
48
|
"isFeatured",
|
|
49
49
|
"isShownOnHome"
|
|
50
|
-
]
|
|
50
|
+
],
|
|
51
|
+
headerProps
|
|
51
52
|
}) {
|
|
52
53
|
const { t } = useTranslator();
|
|
53
54
|
const post = ensureArray(admin?.posts).filter(
|
|
@@ -59,8 +60,8 @@ function createAdminRelationsSection({
|
|
|
59
60
|
hasBorder: true,
|
|
60
61
|
accordionHeaderProps: {
|
|
61
62
|
count: post.length,
|
|
62
|
-
isRelated: true,
|
|
63
|
-
children: t("resources.post.text")
|
|
63
|
+
isRelated: headerProps?.isRelated ?? true,
|
|
64
|
+
children: headerProps?.children ?? t("resources.post.text")
|
|
64
65
|
},
|
|
65
66
|
children: /* @__PURE__ */ jsx(
|
|
66
67
|
PostList,
|
package/dist/src/client/interfaces/components/resources/category/category-relations-section.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useTranslator } from 'intor/react';
|
|
3
4
|
import 'mime-types';
|
|
4
5
|
import { ensureArray } from '../../../../../shared/utils/ensure-array.js';
|
|
5
|
-
import 'intor/react';
|
|
6
6
|
import 'lucide-react';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'ua-parser-js';
|
|
@@ -40,8 +40,10 @@ function createCategoryRelationsSection({
|
|
|
40
40
|
}) {
|
|
41
41
|
return function CategoryRelationsSection({
|
|
42
42
|
category,
|
|
43
|
-
usableFields = ["isActive", "isIndexActive", "isSlugActive"]
|
|
43
|
+
usableFields = ["isActive", "isIndexActive", "isSlugActive"],
|
|
44
|
+
headerProps
|
|
44
45
|
}) {
|
|
46
|
+
const { t } = useTranslator();
|
|
45
47
|
const posts = ensureArray(category?.children);
|
|
46
48
|
return /* @__PURE__ */ jsx(AccordionContainer, { children: /* @__PURE__ */ jsx(
|
|
47
49
|
Accordion,
|
|
@@ -49,7 +51,8 @@ function createCategoryRelationsSection({
|
|
|
49
51
|
hasBorder: true,
|
|
50
52
|
accordionHeaderProps: {
|
|
51
53
|
count: posts.length,
|
|
52
|
-
isRelated: true
|
|
54
|
+
isRelated: headerProps?.isRelated ?? true,
|
|
55
|
+
children: headerProps?.children ?? t("resources.post.text")
|
|
53
56
|
},
|
|
54
57
|
children: /* @__PURE__ */ jsx(
|
|
55
58
|
PostList,
|
|
@@ -57,7 +57,8 @@ function createFileRelationsSection({
|
|
|
57
57
|
"isSlugActive",
|
|
58
58
|
"isFeatured",
|
|
59
59
|
"isShownOnHome"
|
|
60
|
-
]
|
|
60
|
+
],
|
|
61
|
+
headerProps
|
|
61
62
|
}) {
|
|
62
63
|
const { t } = useTranslator();
|
|
63
64
|
const postIds = useMemo(() => {
|
|
@@ -92,7 +93,8 @@ function createFileRelationsSection({
|
|
|
92
93
|
hasBorder: true,
|
|
93
94
|
accordionHeaderProps: {
|
|
94
95
|
count: postIds.length,
|
|
95
|
-
isRelated: true
|
|
96
|
+
isRelated: headerProps?.isRelated ?? true,
|
|
97
|
+
children: headerProps?.children ?? t("resources.post.text")
|
|
96
98
|
},
|
|
97
99
|
children: /* @__PURE__ */ jsx(
|
|
98
100
|
PostList,
|
|
@@ -46,7 +46,8 @@ function createPostRelationsSection({
|
|
|
46
46
|
"isSlugActive",
|
|
47
47
|
"isFeatured",
|
|
48
48
|
"isShownOnHome"
|
|
49
|
-
]
|
|
49
|
+
],
|
|
50
|
+
headerProps
|
|
50
51
|
}) {
|
|
51
52
|
const { t } = useTranslator();
|
|
52
53
|
const posts = ensureArray(post?.referencingPosts);
|
|
@@ -56,8 +57,8 @@ function createPostRelationsSection({
|
|
|
56
57
|
hasBorder: true,
|
|
57
58
|
accordionHeaderProps: {
|
|
58
59
|
count: posts.length,
|
|
59
|
-
isRelated: true,
|
|
60
|
-
children: `${t("resources.post.text")} ( ${t("resources.post.referenced-by.text")} )`
|
|
60
|
+
isRelated: headerProps?.isRelated ?? true,
|
|
61
|
+
children: headerProps?.children ?? `${t("resources.post.text")} ( ${t("resources.post.referenced-by.text")} )`
|
|
61
62
|
},
|
|
62
63
|
children: /* @__PURE__ */ jsx(
|
|
63
64
|
PostList,
|
|
@@ -40,7 +40,8 @@ function createTagRelationsSection({
|
|
|
40
40
|
}) {
|
|
41
41
|
return function TagRelationsSection({
|
|
42
42
|
tag,
|
|
43
|
-
usableFields = ["isActive", "isIndexActive", "isSlugActive"]
|
|
43
|
+
usableFields = ["isActive", "isIndexActive", "isSlugActive"],
|
|
44
|
+
headerProps
|
|
44
45
|
}) {
|
|
45
46
|
const { t } = useTranslator();
|
|
46
47
|
const posts = ensureArray(tag?.taggedPosts);
|
|
@@ -50,8 +51,8 @@ function createTagRelationsSection({
|
|
|
50
51
|
hasBorder: true,
|
|
51
52
|
accordionHeaderProps: {
|
|
52
53
|
count: posts.length,
|
|
53
|
-
isRelated: true,
|
|
54
|
-
children: t("resources.post.text")
|
|
54
|
+
isRelated: headerProps?.isRelated ?? true,
|
|
55
|
+
children: headerProps?.children ?? t("resources.post.text")
|
|
55
56
|
},
|
|
56
57
|
children: /* @__PURE__ */ jsx(
|
|
57
58
|
PostList,
|
|
@@ -49,7 +49,9 @@ function createTopicRelationsSection({
|
|
|
49
49
|
"isSlugActive",
|
|
50
50
|
"isFeatured",
|
|
51
51
|
"isShownOnHome"
|
|
52
|
-
]
|
|
52
|
+
],
|
|
53
|
+
categoryHeaderProps,
|
|
54
|
+
postHeaderProps
|
|
53
55
|
}) {
|
|
54
56
|
const { t } = useTranslator();
|
|
55
57
|
const postsInTopic = ensureArray(topic?.postsInTopic);
|
|
@@ -64,8 +66,8 @@ function createTopicRelationsSection({
|
|
|
64
66
|
hasBorder: true,
|
|
65
67
|
accordionHeaderProps: {
|
|
66
68
|
count: categories.length,
|
|
67
|
-
isRelated: true,
|
|
68
|
-
children: t("resources.category.text")
|
|
69
|
+
isRelated: categoryHeaderProps?.isRelated ?? true,
|
|
70
|
+
children: categoryHeaderProps?.children ?? t("resources.category.text")
|
|
69
71
|
},
|
|
70
72
|
children: /* @__PURE__ */ jsx(
|
|
71
73
|
CategoryList,
|
|
@@ -83,8 +85,8 @@ function createTopicRelationsSection({
|
|
|
83
85
|
hasBorder: true,
|
|
84
86
|
accordionHeaderProps: {
|
|
85
87
|
count: posts.length,
|
|
86
|
-
isRelated: true,
|
|
87
|
-
children: t("resources.post.text")
|
|
88
|
+
isRelated: postHeaderProps?.isRelated ?? true,
|
|
89
|
+
children: postHeaderProps?.children ?? t("resources.post.text")
|
|
88
90
|
},
|
|
89
91
|
children: /* @__PURE__ */ jsx(
|
|
90
92
|
PostList,
|
package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { AdminFull } from "../../../../../domain/resources/admin/full";
|
|
2
|
+
import type { AccordionHeaderProps } from "../../ui/features/accordion/accordion-header";
|
|
2
3
|
import type { createPostList } from "../post/post-list";
|
|
3
4
|
export declare function createAdminRelationsSection({ PostList, }: {
|
|
4
5
|
PostList: ReturnType<typeof createPostList>;
|
|
5
|
-
}): ({ admin, usableFields, }: {
|
|
6
|
+
}): ({ admin, usableFields, headerProps, }: {
|
|
6
7
|
admin?: AdminFull;
|
|
7
8
|
usableFields?: string[];
|
|
9
|
+
headerProps?: Pick<AccordionHeaderProps, "isRelated" | "children">;
|
|
8
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=admin-relations-section.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/admin/admin-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMxD,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACuC,
|
|
1
|
+
{"version":3,"file":"admin-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/admin/admin-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMxD,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACuC,uCAUnC;IACD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;CACpE,6CA6BF"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { PostFull } from "../../../../../domain/resources/post/full";
|
|
2
|
+
import type { AccordionHeaderProps } from "../../ui/features/accordion/accordion-header";
|
|
2
3
|
import type { createPostList } from "../post";
|
|
3
4
|
export declare function createCategoryRelationsSection({ PostList, }: {
|
|
4
5
|
PostList: ReturnType<typeof createPostList>;
|
|
5
|
-
}): ({ category, usableFields, }: {
|
|
6
|
+
}): ({ category, usableFields, headerProps, }: {
|
|
6
7
|
category?: PostFull;
|
|
7
8
|
usableFields?: string[];
|
|
9
|
+
headerProps?: Pick<AccordionHeaderProps, "isRelated" | "children">;
|
|
8
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=category-relations-section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"category-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0C,0CAItC;IACD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;CACpE,6CA0BF"}
|
package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { FileFull } from "../../../../../domain/resources/file/full";
|
|
2
|
+
import type { AccordionHeaderProps } from "../../ui/features/accordion/accordion-header";
|
|
2
3
|
import type { createAdminList } from "../admin/admin-list";
|
|
3
4
|
import type { createPostList } from "../post/post-list";
|
|
4
5
|
export declare function createFileRelationsSection({ adminEnabled, AdminList, PostList, }: {
|
|
5
6
|
adminEnabled: boolean;
|
|
6
7
|
AdminList: ReturnType<typeof createAdminList>;
|
|
7
8
|
PostList: ReturnType<typeof createPostList>;
|
|
8
|
-
}): ({ file, usableFields, }: {
|
|
9
|
+
}): ({ file, usableFields, headerProps, }: {
|
|
9
10
|
file: FileFull | null;
|
|
10
11
|
usableFields?: string[];
|
|
12
|
+
headerProps?: Pick<AccordionHeaderProps, "isRelated" | "children">;
|
|
11
13
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
//# sourceMappingURL=file-relations-section.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAgBxD,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC9C,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACsC,
|
|
1
|
+
{"version":3,"file":"file-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAgBxD,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC9C,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACsC,sCAUlC;IACD,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;CACpE,6CAiDF"}
|
package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { createPostList } from "./post-list";
|
|
2
2
|
import type { PostFull } from "../../../../../domain/resources/post/full";
|
|
3
|
+
import type { AccordionHeaderProps } from "../../ui/features/accordion/accordion-header";
|
|
3
4
|
export declare function createPostRelationsSection({ PostList, }: {
|
|
4
5
|
PostList: ReturnType<typeof createPostList>;
|
|
5
|
-
}): ({ post, usableFields, }: {
|
|
6
|
+
}): ({ post, usableFields, headerProps, }: {
|
|
6
7
|
post?: PostFull;
|
|
7
8
|
usableFields?: string[];
|
|
9
|
+
headerProps?: Pick<AccordionHeaderProps, "isRelated" | "children">;
|
|
8
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=post-relations-section.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/post-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"post-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/post-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAKzF,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACsC,sCAUlC;IACD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;CACpE,6CA4BF"}
|
package/dist/types/src/client/interfaces/components/resources/tag/tag-relations-section.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { PostFull } from "../../../../../domain/resources/post/full";
|
|
2
|
+
import type { AccordionHeaderProps } from "../../ui/features/accordion/accordion-header";
|
|
2
3
|
import type { createPostList } from "../post";
|
|
3
4
|
export declare function createTagRelationsSection({ PostList, }: {
|
|
4
5
|
PostList: ReturnType<typeof createPostList>;
|
|
5
|
-
}): ({ tag, usableFields, }: {
|
|
6
|
+
}): ({ tag, usableFields, headerProps, }: {
|
|
6
7
|
tag?: PostFull;
|
|
7
8
|
usableFields?: string[];
|
|
9
|
+
headerProps?: Pick<AccordionHeaderProps, "isRelated" | "children">;
|
|
8
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=tag-relations-section.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/tag/tag-relations-section.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/tag/tag-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACqC,
|
|
1
|
+
{"version":3,"file":"tag-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/tag/tag-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACqC,qCAIjC;IACD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;CACpE,6CA0BF"}
|
package/dist/types/src/client/interfaces/components/resources/topic/topic-relations-section.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { PostFull } from "../../../../../domain/resources/post/full";
|
|
2
|
+
import type { AccordionHeaderProps } from "../../ui/features/accordion/accordion-header";
|
|
2
3
|
import type { createCategoryList } from "../category";
|
|
3
4
|
import type { createPostList } from "../post";
|
|
4
5
|
export declare function createTopicRelationsSection({ CategoryList, PostList, }: {
|
|
5
6
|
CategoryList: ReturnType<typeof createCategoryList>;
|
|
6
7
|
PostList: ReturnType<typeof createPostList>;
|
|
7
|
-
}): ({ topic, categoryUsableFields, postUsableFields, }: {
|
|
8
|
+
}): ({ topic, categoryUsableFields, postUsableFields, categoryHeaderProps, postHeaderProps, }: {
|
|
8
9
|
topic?: PostFull;
|
|
9
10
|
categoryUsableFields?: string[];
|
|
10
11
|
postUsableFields?: string[];
|
|
12
|
+
categoryHeaderProps?: Pick<AccordionHeaderProps, "isRelated" | "children">;
|
|
13
|
+
postHeaderProps?: Pick<AccordionHeaderProps, "isRelated" | "children">;
|
|
11
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
15
|
//# sourceMappingURL=topic-relations-section.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/topic/topic-relations-section.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/topic/topic-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAM9C,wBAAgB,2BAA2B,CAAC,EAC1C,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACpD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACuC,
|
|
1
|
+
{"version":3,"file":"topic-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/topic/topic-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAM9C,wBAAgB,2BAA2B,CAAC,EAC1C,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACpD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACuC,0FAYnC;IACD,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,mBAAmB,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;IAC3E,eAAe,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;CACxE,6CA+CF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yimingliao/cms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.180",
|
|
4
4
|
"author": "Yiming Liao",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/types/export/index.d.ts",
|
|
13
|
-
"import": "./dist/export/index.js"
|
|
13
|
+
"import": "./dist/export/index.js",
|
|
14
|
+
"require": "./dist/export/index.js"
|
|
14
15
|
},
|
|
15
16
|
"./client": {
|
|
16
17
|
"types": "./dist/types/export/client/index.d.ts",
|
|
@@ -38,15 +39,18 @@
|
|
|
38
39
|
},
|
|
39
40
|
"./server": {
|
|
40
41
|
"types": "./dist/types/export/server/index.d.ts",
|
|
41
|
-
"import": "./dist/export/server/index.js"
|
|
42
|
+
"import": "./dist/export/server/index.js",
|
|
43
|
+
"require": "./dist/export/server/index.js"
|
|
42
44
|
},
|
|
43
45
|
"./server/object-storage": {
|
|
44
46
|
"types": "./dist/types/export/server/object-storage/index.d.ts",
|
|
45
|
-
"import": "./dist/export/server/object-storage/index.js"
|
|
47
|
+
"import": "./dist/export/server/object-storage/index.js",
|
|
48
|
+
"require": "./dist/export/server/object-storage/index.js"
|
|
46
49
|
},
|
|
47
50
|
"./server/sftp": {
|
|
48
51
|
"types": "./dist/types/export/server/sftp/index.d.ts",
|
|
49
|
-
"import": "./dist/export/server/sftp/index.js"
|
|
52
|
+
"import": "./dist/export/server/sftp/index.js",
|
|
53
|
+
"require": "./dist/export/server/sftp/index.js"
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
"files": [
|