plugin-build-guide-block 1.0.1 → 1.0.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/client/UserGuideBlock.d.ts +2 -0
- package/dist/client/UserGuideBlockInitializer.d.ts +2 -0
- package/dist/client/UserGuideBlockProvider.d.ts +2 -0
- package/dist/client/UserGuideManager.d.ts +2 -0
- package/dist/client/components/BuildButton.d.ts +2 -0
- package/dist/client/components/LLMServiceSelect.d.ts +2 -0
- package/dist/client/components/ModelSelect.d.ts +2 -0
- package/dist/client/components/StatusTag.d.ts +2 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/client/models/UserGuideBlockModel.d.ts +3 -0
- package/dist/client/models/index.d.ts +11 -0
- package/dist/client/plugin.d.ts +5 -0
- package/dist/client/schemas/spacesSchema.d.ts +305 -0
- package/dist/index.d.ts +2 -0
- package/dist/node_modules/sanitize-html/LICENSE +7 -0
- package/dist/node_modules/sanitize-html/index.js +7 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/async/index.browser.cjs +34 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/async/index.browser.js +34 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/async/index.cjs +35 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/async/index.d.ts +56 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/async/index.js +35 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/async/index.native.js +26 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/async/package.json +12 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/index.browser.cjs +34 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/index.browser.js +34 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/index.cjs +45 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/index.d.cts +91 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/index.d.ts +91 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/index.js +45 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/nanoid.js +1 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/non-secure/index.cjs +21 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/non-secure/index.js +21 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/non-secure/package.json +6 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/package.json +88 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/url-alphabet/index.cjs +3 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/url-alphabet/index.js +3 -0
- package/dist/node_modules/sanitize-html/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/at-rule.d.ts +115 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/at-rule.js +25 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/comment.d.ts +67 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/comment.js +13 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/container.d.ts +452 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/container.js +439 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.d.ts +248 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +100 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/declaration.d.ts +148 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/declaration.js +24 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/document.d.ts +68 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/document.js +33 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/fromJSON.js +54 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/input.d.ts +194 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/input.js +248 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/lazy-result.d.ts +190 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/lazy-result.js +550 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/list.d.ts +57 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/list.js +58 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/map-generator.js +359 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/no-work-result.d.ts +46 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/no-work-result.js +135 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/node.d.ts +536 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/node.js +381 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/parse.d.ts +9 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/parse.js +42 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/parser.js +610 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/postcss.d.mts +72 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/postcss.d.ts +441 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/postcss.js +101 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/previous-map.d.ts +81 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/previous-map.js +142 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/processor.d.ts +115 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +67 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/result.d.ts +206 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/result.js +42 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/root.d.ts +86 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/root.js +61 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/rule.d.ts +113 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/rule.js +27 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/stringifier.d.ts +46 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/stringifier.js +353 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/stringify.js +11 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/symbols.js +5 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/tokenize.js +266 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/warn-once.js +13 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/warning.d.ts +147 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/lib/warning.js +37 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/node_modules/.bin/nanoid +15 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/node_modules/.bin/nanoid.cmd +7 -0
- package/dist/node_modules/sanitize-html/node_modules/postcss/package.json +88 -0
- package/dist/node_modules/sanitize-html/package.json +1 -0
- package/dist/server/actions/build.d.ts +2 -0
- package/dist/server/actions/getHtml.d.ts +2 -0
- package/dist/server/collections/ai-build-guide-spaces.d.ts +2 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/plugin.d.ts +11 -0
- package/package.json +9 -1
- package/src/client/UserGuideBlock.tsx +53 -0
- package/src/client/UserGuideBlockInitializer.tsx +26 -0
- package/src/client/UserGuideBlockProvider.tsx +12 -0
- package/src/client/UserGuideManager.tsx +133 -0
- package/src/client/client.d.ts +249 -0
- package/src/client/components/BuildButton.tsx +43 -0
- package/src/client/components/LLMServiceSelect.tsx +44 -0
- package/src/client/components/ModelSelect.tsx +41 -0
- package/src/client/components/StatusTag.tsx +17 -0
- package/src/client/index.tsx +1 -0
- package/src/client/models/UserGuideBlockModel.ts +47 -0
- package/src/client/models/index.ts +12 -0
- package/src/client/plugin.tsx +30 -0
- package/src/client/schemas/spacesSchema.ts +305 -0
- package/src/index.ts +2 -0
- package/src/locale/en-US.json +27 -0
- package/src/locale/vi-VN.json +27 -0
- package/src/locale/zh-CN.json +27 -0
- package/src/server/actions/build.ts +171 -0
- package/src/server/actions/getHtml.ts +26 -0
- package/src/server/collections/.gitkeep +0 -0
- package/src/server/collections/ai-build-guide-spaces.ts +49 -0
- package/src/server/index.ts +1 -0
- package/src/server/plugin.ts +42 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
export declare const spacesSchema: {
|
|
2
|
+
type: string;
|
|
3
|
+
properties: {
|
|
4
|
+
page: {
|
|
5
|
+
type: string;
|
|
6
|
+
'x-component': string;
|
|
7
|
+
'x-component-props': {
|
|
8
|
+
ghost: boolean;
|
|
9
|
+
};
|
|
10
|
+
properties: {
|
|
11
|
+
actions: {
|
|
12
|
+
type: string;
|
|
13
|
+
'x-component': string;
|
|
14
|
+
'x-component-props': {
|
|
15
|
+
style: {
|
|
16
|
+
marginBottom: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
properties: {
|
|
20
|
+
create: {
|
|
21
|
+
type: string;
|
|
22
|
+
'x-component': string;
|
|
23
|
+
'x-component-props': {
|
|
24
|
+
type: string;
|
|
25
|
+
title: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
};
|
|
28
|
+
properties: {
|
|
29
|
+
drawer: {
|
|
30
|
+
type: string;
|
|
31
|
+
'x-component': string;
|
|
32
|
+
'x-component-props': {
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
35
|
+
properties: {
|
|
36
|
+
form: {
|
|
37
|
+
type: string;
|
|
38
|
+
'x-component': string;
|
|
39
|
+
'x-use-component-props': string;
|
|
40
|
+
properties: {
|
|
41
|
+
title: {
|
|
42
|
+
type: string;
|
|
43
|
+
title: string;
|
|
44
|
+
required: boolean;
|
|
45
|
+
'x-decorator': string;
|
|
46
|
+
'x-component': string;
|
|
47
|
+
};
|
|
48
|
+
llmService: {
|
|
49
|
+
type: string;
|
|
50
|
+
title: string;
|
|
51
|
+
required: boolean;
|
|
52
|
+
'x-decorator': string;
|
|
53
|
+
'x-component': string;
|
|
54
|
+
};
|
|
55
|
+
model: {
|
|
56
|
+
type: string;
|
|
57
|
+
title: string;
|
|
58
|
+
required: boolean;
|
|
59
|
+
'x-decorator': string;
|
|
60
|
+
'x-component': string;
|
|
61
|
+
'x-reactions': {
|
|
62
|
+
dependencies: string[];
|
|
63
|
+
fulfill: {
|
|
64
|
+
state: {
|
|
65
|
+
value: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
systemPrompt: {
|
|
71
|
+
type: string;
|
|
72
|
+
title: string;
|
|
73
|
+
'x-decorator': string;
|
|
74
|
+
'x-component': string;
|
|
75
|
+
'x-component-props': {
|
|
76
|
+
rows: number;
|
|
77
|
+
};
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
documents: {
|
|
81
|
+
type: string;
|
|
82
|
+
title: string;
|
|
83
|
+
'x-decorator': string;
|
|
84
|
+
'x-component': string;
|
|
85
|
+
'x-component-props': {
|
|
86
|
+
multiple: boolean;
|
|
87
|
+
action: string;
|
|
88
|
+
maxCount: number;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
footer: {
|
|
92
|
+
type: string;
|
|
93
|
+
'x-component': string;
|
|
94
|
+
properties: {
|
|
95
|
+
cancel: {
|
|
96
|
+
type: string;
|
|
97
|
+
title: string;
|
|
98
|
+
'x-component': string;
|
|
99
|
+
'x-use-component-props': string;
|
|
100
|
+
};
|
|
101
|
+
submit: {
|
|
102
|
+
type: string;
|
|
103
|
+
title: string;
|
|
104
|
+
'x-component': string;
|
|
105
|
+
'x-use-component-props': string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
table: {
|
|
118
|
+
type: string;
|
|
119
|
+
'x-decorator': string;
|
|
120
|
+
'x-use-decorator-props': string;
|
|
121
|
+
'x-component': string;
|
|
122
|
+
'x-component-props': {
|
|
123
|
+
rowKey: string;
|
|
124
|
+
rowSelection: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
properties: {
|
|
129
|
+
title: {
|
|
130
|
+
type: string;
|
|
131
|
+
'x-decorator': string;
|
|
132
|
+
'x-component': string;
|
|
133
|
+
properties: {
|
|
134
|
+
title: {
|
|
135
|
+
type: string;
|
|
136
|
+
'x-component': string;
|
|
137
|
+
'x-read-pretty': boolean;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
status: {
|
|
142
|
+
type: string;
|
|
143
|
+
'x-decorator': string;
|
|
144
|
+
'x-component': string;
|
|
145
|
+
properties: {
|
|
146
|
+
status: {
|
|
147
|
+
type: string;
|
|
148
|
+
'x-component': string;
|
|
149
|
+
'x-read-pretty': boolean;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
buildLog: {
|
|
154
|
+
type: string;
|
|
155
|
+
'x-decorator': string;
|
|
156
|
+
'x-component': string;
|
|
157
|
+
properties: {
|
|
158
|
+
buildLog: {
|
|
159
|
+
type: string;
|
|
160
|
+
'x-component': string;
|
|
161
|
+
'x-read-pretty': boolean;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
actions: {
|
|
166
|
+
type: string;
|
|
167
|
+
title: string;
|
|
168
|
+
'x-decorator': string;
|
|
169
|
+
'x-component': string;
|
|
170
|
+
properties: {
|
|
171
|
+
actions: {
|
|
172
|
+
type: string;
|
|
173
|
+
'x-component': string;
|
|
174
|
+
'x-component-props': {
|
|
175
|
+
split: string;
|
|
176
|
+
};
|
|
177
|
+
properties: {
|
|
178
|
+
build: {
|
|
179
|
+
type: string;
|
|
180
|
+
'x-component': string;
|
|
181
|
+
};
|
|
182
|
+
update: {
|
|
183
|
+
type: string;
|
|
184
|
+
title: string;
|
|
185
|
+
'x-component': string;
|
|
186
|
+
'x-component-props': {
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
properties: {
|
|
190
|
+
drawer: {
|
|
191
|
+
type: string;
|
|
192
|
+
'x-component': string;
|
|
193
|
+
'x-component-props': {
|
|
194
|
+
title: string;
|
|
195
|
+
};
|
|
196
|
+
properties: {
|
|
197
|
+
form: {
|
|
198
|
+
type: string;
|
|
199
|
+
'x-component': string;
|
|
200
|
+
'x-use-component-props': string;
|
|
201
|
+
properties: {
|
|
202
|
+
title: {
|
|
203
|
+
type: string;
|
|
204
|
+
title: string;
|
|
205
|
+
required: boolean;
|
|
206
|
+
'x-decorator': string;
|
|
207
|
+
'x-component': string;
|
|
208
|
+
};
|
|
209
|
+
llmService: {
|
|
210
|
+
type: string;
|
|
211
|
+
title: string;
|
|
212
|
+
required: boolean;
|
|
213
|
+
'x-decorator': string;
|
|
214
|
+
'x-component': string;
|
|
215
|
+
};
|
|
216
|
+
model: {
|
|
217
|
+
type: string;
|
|
218
|
+
title: string;
|
|
219
|
+
required: boolean;
|
|
220
|
+
'x-decorator': string;
|
|
221
|
+
'x-component': string;
|
|
222
|
+
};
|
|
223
|
+
systemPrompt: {
|
|
224
|
+
type: string;
|
|
225
|
+
title: string;
|
|
226
|
+
'x-decorator': string;
|
|
227
|
+
'x-component': string;
|
|
228
|
+
'x-component-props': {
|
|
229
|
+
rows: number;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
documents: {
|
|
233
|
+
type: string;
|
|
234
|
+
title: string;
|
|
235
|
+
'x-decorator': string;
|
|
236
|
+
'x-component': string;
|
|
237
|
+
'x-component-props': {
|
|
238
|
+
multiple: boolean;
|
|
239
|
+
action: string;
|
|
240
|
+
maxCount: number;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
generatedHtml: {
|
|
244
|
+
type: string;
|
|
245
|
+
title: string;
|
|
246
|
+
'x-decorator': string;
|
|
247
|
+
'x-component': string;
|
|
248
|
+
'x-component-props': {
|
|
249
|
+
rows: number;
|
|
250
|
+
};
|
|
251
|
+
'x-read-pretty': boolean;
|
|
252
|
+
};
|
|
253
|
+
buildLog: {
|
|
254
|
+
type: string;
|
|
255
|
+
title: string;
|
|
256
|
+
'x-decorator': string;
|
|
257
|
+
'x-component': string;
|
|
258
|
+
'x-read-pretty': boolean;
|
|
259
|
+
};
|
|
260
|
+
footer: {
|
|
261
|
+
type: string;
|
|
262
|
+
'x-component': string;
|
|
263
|
+
properties: {
|
|
264
|
+
cancel: {
|
|
265
|
+
type: string;
|
|
266
|
+
title: string;
|
|
267
|
+
'x-component': string;
|
|
268
|
+
'x-use-component-props': string;
|
|
269
|
+
};
|
|
270
|
+
submit: {
|
|
271
|
+
type: string;
|
|
272
|
+
title: string;
|
|
273
|
+
'x-component': string;
|
|
274
|
+
'x-use-component-props': string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
delete: {
|
|
285
|
+
type: string;
|
|
286
|
+
title: string;
|
|
287
|
+
'x-component': string;
|
|
288
|
+
'x-use-component-props': string;
|
|
289
|
+
'x-component-props': {
|
|
290
|
+
confirm: {
|
|
291
|
+
title: string;
|
|
292
|
+
content: string;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2013, 2014, 2015 P'unk Avenue LLC
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|