@sqlrooms/discuss 0.26.0-rc.2 → 0.26.0-rc.3
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/DiscussSlice.d.ts +15 -196
- package/dist/DiscussSlice.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/DiscussSlice.d.ts
CHANGED
|
@@ -4,39 +4,16 @@ export declare const CommentBase: z.ZodObject<{
|
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
userId: z.ZodString;
|
|
6
6
|
text: z.ZodString;
|
|
7
|
-
timestamp: z.
|
|
8
|
-
},
|
|
9
|
-
id: string;
|
|
10
|
-
userId: string;
|
|
11
|
-
text: string;
|
|
12
|
-
timestamp: Date;
|
|
13
|
-
}, {
|
|
14
|
-
id: string;
|
|
15
|
-
userId: string;
|
|
16
|
-
text: string;
|
|
17
|
-
timestamp: Date;
|
|
18
|
-
}>;
|
|
7
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
8
|
+
}, z.core.$strip>;
|
|
19
9
|
export type CommentBase = z.infer<typeof CommentBase>;
|
|
20
10
|
export declare const Comment: z.ZodObject<{
|
|
21
11
|
id: z.ZodString;
|
|
22
12
|
userId: z.ZodString;
|
|
23
13
|
text: z.ZodString;
|
|
24
|
-
timestamp: z.
|
|
25
|
-
} & {
|
|
14
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
26
15
|
parentId: z.ZodOptional<z.ZodString>;
|
|
27
|
-
},
|
|
28
|
-
id: string;
|
|
29
|
-
userId: string;
|
|
30
|
-
text: string;
|
|
31
|
-
timestamp: Date;
|
|
32
|
-
parentId?: string | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
id: string;
|
|
35
|
-
userId: string;
|
|
36
|
-
text: string;
|
|
37
|
-
timestamp: Date;
|
|
38
|
-
parentId?: string | undefined;
|
|
39
|
-
}>;
|
|
16
|
+
}, z.core.$strip>;
|
|
40
17
|
export type Comment = z.infer<typeof Comment>;
|
|
41
18
|
export declare const Discussion: z.ZodObject<{
|
|
42
19
|
id: z.ZodString;
|
|
@@ -45,77 +22,17 @@ export declare const Discussion: z.ZodObject<{
|
|
|
45
22
|
id: z.ZodString;
|
|
46
23
|
userId: z.ZodString;
|
|
47
24
|
text: z.ZodString;
|
|
48
|
-
timestamp: z.
|
|
49
|
-
} & {
|
|
25
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
50
26
|
parentId: z.ZodOptional<z.ZodString>;
|
|
51
|
-
},
|
|
52
|
-
id: string;
|
|
53
|
-
userId: string;
|
|
54
|
-
text: string;
|
|
55
|
-
timestamp: Date;
|
|
56
|
-
parentId?: string | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
id: string;
|
|
59
|
-
userId: string;
|
|
60
|
-
text: string;
|
|
61
|
-
timestamp: Date;
|
|
62
|
-
parentId?: string | undefined;
|
|
63
|
-
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
64
28
|
comments: z.ZodArray<z.ZodObject<{
|
|
65
29
|
id: z.ZodString;
|
|
66
30
|
userId: z.ZodString;
|
|
67
31
|
text: z.ZodString;
|
|
68
|
-
timestamp: z.
|
|
69
|
-
} & {
|
|
32
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
70
33
|
parentId: z.ZodOptional<z.ZodString>;
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
userId: string;
|
|
74
|
-
text: string;
|
|
75
|
-
timestamp: Date;
|
|
76
|
-
parentId?: string | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
id: string;
|
|
79
|
-
userId: string;
|
|
80
|
-
text: string;
|
|
81
|
-
timestamp: Date;
|
|
82
|
-
parentId?: string | undefined;
|
|
83
|
-
}>, "many">;
|
|
84
|
-
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
id: string;
|
|
86
|
-
rootComment: {
|
|
87
|
-
id: string;
|
|
88
|
-
userId: string;
|
|
89
|
-
text: string;
|
|
90
|
-
timestamp: Date;
|
|
91
|
-
parentId?: string | undefined;
|
|
92
|
-
};
|
|
93
|
-
comments: {
|
|
94
|
-
id: string;
|
|
95
|
-
userId: string;
|
|
96
|
-
text: string;
|
|
97
|
-
timestamp: Date;
|
|
98
|
-
parentId?: string | undefined;
|
|
99
|
-
}[];
|
|
100
|
-
anchorId?: string | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
id: string;
|
|
103
|
-
rootComment: {
|
|
104
|
-
id: string;
|
|
105
|
-
userId: string;
|
|
106
|
-
text: string;
|
|
107
|
-
timestamp: Date;
|
|
108
|
-
parentId?: string | undefined;
|
|
109
|
-
};
|
|
110
|
-
comments: {
|
|
111
|
-
id: string;
|
|
112
|
-
userId: string;
|
|
113
|
-
text: string;
|
|
114
|
-
timestamp: Date;
|
|
115
|
-
parentId?: string | undefined;
|
|
116
|
-
}[];
|
|
117
|
-
anchorId?: string | undefined;
|
|
118
|
-
}>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
119
36
|
export type Discussion = z.infer<typeof Discussion>;
|
|
120
37
|
export declare const DiscussSliceConfig: z.ZodObject<{
|
|
121
38
|
discussions: z.ZodArray<z.ZodObject<{
|
|
@@ -125,116 +42,18 @@ export declare const DiscussSliceConfig: z.ZodObject<{
|
|
|
125
42
|
id: z.ZodString;
|
|
126
43
|
userId: z.ZodString;
|
|
127
44
|
text: z.ZodString;
|
|
128
|
-
timestamp: z.
|
|
129
|
-
} & {
|
|
45
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
130
46
|
parentId: z.ZodOptional<z.ZodString>;
|
|
131
|
-
},
|
|
132
|
-
id: string;
|
|
133
|
-
userId: string;
|
|
134
|
-
text: string;
|
|
135
|
-
timestamp: Date;
|
|
136
|
-
parentId?: string | undefined;
|
|
137
|
-
}, {
|
|
138
|
-
id: string;
|
|
139
|
-
userId: string;
|
|
140
|
-
text: string;
|
|
141
|
-
timestamp: Date;
|
|
142
|
-
parentId?: string | undefined;
|
|
143
|
-
}>;
|
|
47
|
+
}, z.core.$strip>;
|
|
144
48
|
comments: z.ZodArray<z.ZodObject<{
|
|
145
49
|
id: z.ZodString;
|
|
146
50
|
userId: z.ZodString;
|
|
147
51
|
text: z.ZodString;
|
|
148
|
-
timestamp: z.
|
|
149
|
-
} & {
|
|
52
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
150
53
|
parentId: z.ZodOptional<z.ZodString>;
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
text: string;
|
|
155
|
-
timestamp: Date;
|
|
156
|
-
parentId?: string | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
id: string;
|
|
159
|
-
userId: string;
|
|
160
|
-
text: string;
|
|
161
|
-
timestamp: Date;
|
|
162
|
-
parentId?: string | undefined;
|
|
163
|
-
}>, "many">;
|
|
164
|
-
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
id: string;
|
|
166
|
-
rootComment: {
|
|
167
|
-
id: string;
|
|
168
|
-
userId: string;
|
|
169
|
-
text: string;
|
|
170
|
-
timestamp: Date;
|
|
171
|
-
parentId?: string | undefined;
|
|
172
|
-
};
|
|
173
|
-
comments: {
|
|
174
|
-
id: string;
|
|
175
|
-
userId: string;
|
|
176
|
-
text: string;
|
|
177
|
-
timestamp: Date;
|
|
178
|
-
parentId?: string | undefined;
|
|
179
|
-
}[];
|
|
180
|
-
anchorId?: string | undefined;
|
|
181
|
-
}, {
|
|
182
|
-
id: string;
|
|
183
|
-
rootComment: {
|
|
184
|
-
id: string;
|
|
185
|
-
userId: string;
|
|
186
|
-
text: string;
|
|
187
|
-
timestamp: Date;
|
|
188
|
-
parentId?: string | undefined;
|
|
189
|
-
};
|
|
190
|
-
comments: {
|
|
191
|
-
id: string;
|
|
192
|
-
userId: string;
|
|
193
|
-
text: string;
|
|
194
|
-
timestamp: Date;
|
|
195
|
-
parentId?: string | undefined;
|
|
196
|
-
}[];
|
|
197
|
-
anchorId?: string | undefined;
|
|
198
|
-
}>, "many">;
|
|
199
|
-
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
discussions: {
|
|
201
|
-
id: string;
|
|
202
|
-
rootComment: {
|
|
203
|
-
id: string;
|
|
204
|
-
userId: string;
|
|
205
|
-
text: string;
|
|
206
|
-
timestamp: Date;
|
|
207
|
-
parentId?: string | undefined;
|
|
208
|
-
};
|
|
209
|
-
comments: {
|
|
210
|
-
id: string;
|
|
211
|
-
userId: string;
|
|
212
|
-
text: string;
|
|
213
|
-
timestamp: Date;
|
|
214
|
-
parentId?: string | undefined;
|
|
215
|
-
}[];
|
|
216
|
-
anchorId?: string | undefined;
|
|
217
|
-
}[];
|
|
218
|
-
}, {
|
|
219
|
-
discussions: {
|
|
220
|
-
id: string;
|
|
221
|
-
rootComment: {
|
|
222
|
-
id: string;
|
|
223
|
-
userId: string;
|
|
224
|
-
text: string;
|
|
225
|
-
timestamp: Date;
|
|
226
|
-
parentId?: string | undefined;
|
|
227
|
-
};
|
|
228
|
-
comments: {
|
|
229
|
-
id: string;
|
|
230
|
-
userId: string;
|
|
231
|
-
text: string;
|
|
232
|
-
timestamp: Date;
|
|
233
|
-
parentId?: string | undefined;
|
|
234
|
-
}[];
|
|
235
|
-
anchorId?: string | undefined;
|
|
236
|
-
}[];
|
|
237
|
-
}>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
238
57
|
export type DiscussSliceConfig = z.infer<typeof DiscussSliceConfig>;
|
|
239
58
|
export declare function createDefaultDiscussConfig(): DiscussSliceConfig;
|
|
240
59
|
export type ReplyToItem = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscussSlice.d.ts","sourceRoot":"","sources":["../src/DiscussSlice.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,cAAc,EACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;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E,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;QAC5E,WAAW,EAAE,CACX,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,KACT,IAAI,CAAC;QACV,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;KAClE,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,cAAc,CAAC,GACvE,iBAAiB,CAAC;AAEpB,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,cAAc,EAAE,EAC5D,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,YAAY,CAAC,iBAAiB,CAAC,CA+VlC;AAED,KAAK,qBAAqB,GAAG,cAAc,GAAG,kBAAkB,CAAC;AACjE,KAAK,oBAAoB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,GACpE,iBAAiB,CAAC;AAEpB,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,CAAC,GAC3C,CAAC,CAMH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/discuss",
|
|
3
|
-
"version": "0.26.0-rc.
|
|
3
|
+
"version": "0.26.0-rc.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
19
|
-
"@sqlrooms/room-shell": "0.26.0-rc.
|
|
20
|
-
"@sqlrooms/ui": "0.26.0-rc.
|
|
21
|
-
"@sqlrooms/utils": "0.26.0-rc.
|
|
19
|
+
"@sqlrooms/room-shell": "0.26.0-rc.3",
|
|
20
|
+
"@sqlrooms/ui": "0.26.0-rc.3",
|
|
21
|
+
"@sqlrooms/utils": "0.26.0-rc.3",
|
|
22
22
|
"immer": "^10.1.3",
|
|
23
23
|
"lucide-react": "^0.544.0",
|
|
24
|
-
"zod": "^
|
|
24
|
+
"zod": "^4.1.8"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=18",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"lint": "eslint .",
|
|
34
34
|
"typedoc": "typedoc"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "536764b2aa924e5bb6650fe0bc674113179ff444"
|
|
37
37
|
}
|