@yimingliao/cms 0.0.249 → 0.0.251
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/infrastructure/contexts/theme.js +8 -3
- package/dist/src/server/infrastructure/database/post/include.js +1 -1
- package/dist/types/src/client/applications/web/structured-data/resolve-topic-item-list/resolve-topic-item-list.d.ts +1 -1
- package/dist/types/src/client/applications/web/structured-data/resolve-topic-item-list/resolve-topic-item-list.d.ts.map +1 -1
- package/dist/types/src/client/infrastructure/contexts/theme.d.ts +1 -1
- package/dist/types/src/client/infrastructure/contexts/theme.d.ts.map +1 -1
- package/dist/types/src/domain/resources/post/card.d.ts +3 -3
- package/dist/types/src/domain/resources/post/card.d.ts.map +1 -1
- package/dist/types/src/server/infrastructure/database/post/include.d.ts +45 -9
- package/dist/types/src/server/infrastructure/database/post/include.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,15 +4,20 @@ import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
|
4
4
|
|
|
5
5
|
function ThemeProvider({
|
|
6
6
|
children,
|
|
7
|
+
defaultTheme = "system",
|
|
8
|
+
enableSystem = true,
|
|
9
|
+
disableTransitionOnChange = true,
|
|
10
|
+
storageKey = "cms-theme",
|
|
7
11
|
...props
|
|
8
12
|
}) {
|
|
9
13
|
return /* @__PURE__ */ jsx(
|
|
10
14
|
ThemeProvider$1,
|
|
11
15
|
{
|
|
12
16
|
attribute: "class",
|
|
13
|
-
defaultTheme
|
|
14
|
-
enableSystem
|
|
15
|
-
disableTransitionOnChange
|
|
17
|
+
defaultTheme,
|
|
18
|
+
enableSystem,
|
|
19
|
+
disableTransitionOnChange,
|
|
20
|
+
storageKey,
|
|
16
21
|
...props,
|
|
17
22
|
children
|
|
18
23
|
}
|
|
@@ -16,7 +16,7 @@ const POST_LIST_CARD_INCLUDE = {
|
|
|
16
16
|
// ---------------------------
|
|
17
17
|
// relations: File
|
|
18
18
|
// ---------------------------
|
|
19
|
-
coverImage: true,
|
|
19
|
+
coverImage: { include: { translations: true } },
|
|
20
20
|
// ---------------------------
|
|
21
21
|
// translation
|
|
22
22
|
// ---------------------------
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { PostListCard } from "../../../../../domain";
|
|
1
2
|
import type { PageIdentity } from "../get-page-identity";
|
|
2
3
|
import type { createMapCategoryItem } from "./map-category-item";
|
|
3
4
|
import type { createMapPostItem } from "./map-post-item";
|
|
4
5
|
import type { CategoryItem, EntityType, ListMode, PostItem } from "./types";
|
|
5
|
-
import type { PostListCard } from "@yimingliao/cms";
|
|
6
6
|
export declare function createResolveTopicItemList({ mapCategoryItem, mapPostItem, }: {
|
|
7
7
|
mapCategoryItem: ReturnType<typeof createMapCategoryItem>;
|
|
8
8
|
mapPostItem: ReturnType<typeof createMapPostItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-topic-item-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/applications/web/structured-data/resolve-topic-item-list/resolve-topic-item-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"resolve-topic-item-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/applications/web/structured-data/resolve-topic-item-list/resolve-topic-item-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE5E,wBAAgB,0BAA0B,CAAC,EACzC,eAAe,EACf,WAAW,GACZ,EAAE;IACD,eAAe,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAC1D,WAAW,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACnD,IACsC,iEAMlC;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB;;;EAqBF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
export declare function ThemeProvider({ children, ...props }: React.ComponentProps<typeof NextThemesProvider>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function ThemeProvider({ children, defaultTheme, enableSystem, disableTransitionOnChange, storageKey, ...props }: React.ComponentProps<typeof NextThemesProvider>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../src/client/infrastructure/contexts/theme.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../src/client/infrastructure/contexts/theme.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,YAAuB,EACvB,YAAmB,EACnB,yBAAgC,EAChC,UAAwB,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,2CAajD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Post } from "./base";
|
|
2
2
|
import type { PostTranslation } from "./translation";
|
|
3
|
-
import type {
|
|
3
|
+
import type { FileCard } from "../file";
|
|
4
4
|
export type PostListCard = Post & {
|
|
5
5
|
topic: (Post & {
|
|
6
6
|
translations: PostTranslation[];
|
|
@@ -10,8 +10,8 @@ export type PostListCard = Post & {
|
|
|
10
10
|
taggedPosts: Post[];
|
|
11
11
|
tags: (Post & {
|
|
12
12
|
translations: PostTranslation[];
|
|
13
|
-
})
|
|
14
|
-
coverImage:
|
|
13
|
+
})[];
|
|
14
|
+
coverImage: FileCard | null;
|
|
15
15
|
translations: PostTranslation[];
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/post/card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/post/card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG;IAIhC,KAAK,EAAE,CAAC,IAAI,GAAG;QAAE,YAAY,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAC3D,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjB,WAAW,EAAE,IAAI,EAAE,CAAC;IACpB,IAAI,EAAE,CAAC,IAAI,GAAG;QAAE,YAAY,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC,EAAE,CAAC;IAKrD,UAAU,EAAE,QAAQ,GAAG,IAAI,CAAC;IAK5B,YAAY,EAAE,eAAe,EAAE,CAAC;CACjC,CAAC"}
|
|
@@ -12,7 +12,11 @@ export declare const POST_LIST_CARD_INCLUDE: {
|
|
|
12
12
|
translations: true;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
coverImage:
|
|
15
|
+
coverImage: {
|
|
16
|
+
include: {
|
|
17
|
+
translations: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
16
20
|
translations: true;
|
|
17
21
|
};
|
|
18
22
|
export declare const POST_FULL_INCLUDE: {
|
|
@@ -46,7 +50,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
46
50
|
translations: true;
|
|
47
51
|
};
|
|
48
52
|
};
|
|
49
|
-
coverImage:
|
|
53
|
+
coverImage: {
|
|
54
|
+
include: {
|
|
55
|
+
translations: true;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
50
58
|
translations: true;
|
|
51
59
|
};
|
|
52
60
|
};
|
|
@@ -65,7 +73,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
65
73
|
translations: true;
|
|
66
74
|
};
|
|
67
75
|
};
|
|
68
|
-
coverImage:
|
|
76
|
+
coverImage: {
|
|
77
|
+
include: {
|
|
78
|
+
translations: true;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
69
81
|
translations: true;
|
|
70
82
|
};
|
|
71
83
|
};
|
|
@@ -84,7 +96,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
84
96
|
translations: true;
|
|
85
97
|
};
|
|
86
98
|
};
|
|
87
|
-
coverImage:
|
|
99
|
+
coverImage: {
|
|
100
|
+
include: {
|
|
101
|
+
translations: true;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
88
104
|
translations: true;
|
|
89
105
|
};
|
|
90
106
|
};
|
|
@@ -103,7 +119,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
103
119
|
translations: true;
|
|
104
120
|
};
|
|
105
121
|
};
|
|
106
|
-
coverImage:
|
|
122
|
+
coverImage: {
|
|
123
|
+
include: {
|
|
124
|
+
translations: true;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
107
127
|
translations: true;
|
|
108
128
|
};
|
|
109
129
|
};
|
|
@@ -122,7 +142,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
122
142
|
translations: true;
|
|
123
143
|
};
|
|
124
144
|
};
|
|
125
|
-
coverImage:
|
|
145
|
+
coverImage: {
|
|
146
|
+
include: {
|
|
147
|
+
translations: true;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
126
150
|
translations: true;
|
|
127
151
|
};
|
|
128
152
|
};
|
|
@@ -141,7 +165,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
141
165
|
translations: true;
|
|
142
166
|
};
|
|
143
167
|
};
|
|
144
|
-
coverImage:
|
|
168
|
+
coverImage: {
|
|
169
|
+
include: {
|
|
170
|
+
translations: true;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
145
173
|
translations: true;
|
|
146
174
|
};
|
|
147
175
|
};
|
|
@@ -160,7 +188,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
160
188
|
translations: true;
|
|
161
189
|
};
|
|
162
190
|
};
|
|
163
|
-
coverImage:
|
|
191
|
+
coverImage: {
|
|
192
|
+
include: {
|
|
193
|
+
translations: true;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
164
196
|
translations: true;
|
|
165
197
|
};
|
|
166
198
|
};
|
|
@@ -179,7 +211,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
179
211
|
translations: true;
|
|
180
212
|
};
|
|
181
213
|
};
|
|
182
|
-
coverImage:
|
|
214
|
+
coverImage: {
|
|
215
|
+
include: {
|
|
216
|
+
translations: true;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
183
219
|
translations: true;
|
|
184
220
|
};
|
|
185
221
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/infrastructure/database/post/include.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/infrastructure/database/post/include.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;CAmBL,CAAC;AAE/B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDA,CAAC"}
|