plugin-build-guide-block 1.0.10 → 1.0.12

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.
Files changed (62) hide show
  1. package/dist/client/UserGuideBlock.d.ts +2 -0
  2. package/dist/client/UserGuideBlockInitializer.d.ts +2 -0
  3. package/dist/client/UserGuideBlockProvider.d.ts +2 -0
  4. package/dist/client/UserGuideManager.d.ts +2 -0
  5. package/dist/client/components/BuildButton.d.ts +2 -0
  6. package/dist/client/components/LLMServiceSelect.d.ts +2 -0
  7. package/dist/client/components/ModelSelect.d.ts +2 -0
  8. package/dist/client/components/StatusTag.d.ts +2 -0
  9. package/dist/client/index.d.ts +1 -0
  10. package/dist/client/index.js +1 -1
  11. package/dist/client/locale.d.ts +3 -0
  12. package/dist/client/models/UserGuideBlockModel.d.ts +9 -0
  13. package/dist/client/models/index.d.ts +9 -0
  14. package/dist/client/plugin.d.ts +5 -0
  15. package/dist/client/schemaSettings.d.ts +2 -0
  16. package/dist/client/schemas/spacesSchema.d.ts +356 -0
  17. package/dist/externalVersion.js +8 -8
  18. package/dist/index.d.ts +2 -0
  19. package/dist/locale/en-US.json +3 -0
  20. package/dist/locale/namespace.d.ts +6 -0
  21. package/dist/locale/namespace.js +36 -0
  22. package/dist/locale/vi-VN.json +3 -0
  23. package/dist/locale/zh-CN.json +3 -0
  24. package/dist/node_modules/marked/bin/main.js +279 -0
  25. package/dist/node_modules/marked/bin/marked.js +15 -0
  26. package/dist/node_modules/marked/lib/marked.cjs +1 -0
  27. package/dist/node_modules/marked/lib/marked.d.cts +657 -0
  28. package/dist/node_modules/marked/lib/marked.d.ts +657 -0
  29. package/dist/node_modules/marked/lib/marked.esm.js +2432 -0
  30. package/dist/node_modules/marked/lib/marked.umd.js +2456 -0
  31. package/dist/node_modules/marked/man/marked.1 +111 -0
  32. package/dist/node_modules/marked/marked.min.js +6 -0
  33. package/dist/node_modules/marked/package.json +1 -0
  34. package/dist/node_modules/sanitize-html/index.js +2 -2
  35. package/dist/node_modules/sanitize-html/package.json +1 -1
  36. package/dist/server/actions/build.d.ts +2 -0
  37. package/dist/server/actions/build.js +66 -52
  38. package/dist/server/actions/getHtml.d.ts +2 -0
  39. package/dist/server/actions/getMarkdown.d.ts +2 -0
  40. package/dist/server/actions/getMarkdown.js +53 -0
  41. package/dist/server/collections/ai-build-guide-spaces.d.ts +2 -0
  42. package/dist/server/collections/ai-build-guide-spaces.js +9 -0
  43. package/dist/server/index.d.ts +2 -0
  44. package/dist/server/index.js +3 -4
  45. package/dist/server/plugin.d.ts +12 -0
  46. package/dist/server/plugin.js +8 -1
  47. package/package.json +51 -31
  48. package/src/client/UserGuideManager.tsx +3 -2
  49. package/src/client/locale.ts +18 -0
  50. package/src/client/plugin.tsx +52 -30
  51. package/src/client/schemaSettings.ts +75 -0
  52. package/src/client/schemas/spacesSchema.ts +42 -1
  53. package/src/locale/en-US.json +3 -0
  54. package/src/locale/namespace.ts +6 -0
  55. package/src/locale/vi-VN.json +3 -0
  56. package/src/locale/zh-CN.json +3 -0
  57. package/src/server/actions/build.ts +46 -33
  58. package/src/server/actions/getMarkdown.ts +26 -0
  59. package/src/server/collections/ai-build-guide-spaces.ts +9 -0
  60. package/src/server/index.ts +1 -2
  61. package/src/server/plugin.ts +83 -76
  62. package/src/server/collections/.gitkeep +0 -0
@@ -0,0 +1,356 @@
1
+ export declare const spacesSchema: {
2
+ type: string;
3
+ name: string;
4
+ properties: {
5
+ card: {
6
+ type: string;
7
+ 'x-component': string;
8
+ 'x-decorator': string;
9
+ 'x-decorator-props': {
10
+ collection: string;
11
+ action: string;
12
+ rowKey: string;
13
+ params: {
14
+ appends: string[];
15
+ sort: string[];
16
+ };
17
+ };
18
+ properties: {
19
+ actions: {
20
+ type: string;
21
+ 'x-component': string;
22
+ 'x-component-props': {
23
+ style: {
24
+ marginBottom: number;
25
+ };
26
+ };
27
+ properties: {
28
+ create: {
29
+ type: string;
30
+ 'x-component': string;
31
+ 'x-component-props': {
32
+ type: string;
33
+ title: string;
34
+ icon: string;
35
+ };
36
+ properties: {
37
+ drawer: {
38
+ type: string;
39
+ 'x-component': string;
40
+ 'x-component-props': {
41
+ title: string;
42
+ };
43
+ properties: {
44
+ form: {
45
+ type: string;
46
+ 'x-component': string;
47
+ 'x-use-component-props': string;
48
+ properties: {
49
+ title: {
50
+ type: string;
51
+ title: string;
52
+ required: boolean;
53
+ 'x-decorator': string;
54
+ 'x-component': string;
55
+ };
56
+ llmService: {
57
+ type: string;
58
+ title: string;
59
+ required: boolean;
60
+ 'x-decorator': string;
61
+ 'x-component': string;
62
+ };
63
+ model: {
64
+ type: string;
65
+ title: string;
66
+ required: boolean;
67
+ 'x-decorator': string;
68
+ 'x-component': string;
69
+ 'x-reactions': {
70
+ dependencies: string[];
71
+ fulfill: {
72
+ state: {
73
+ value: string;
74
+ };
75
+ };
76
+ };
77
+ };
78
+ outputFormat: {
79
+ type: string;
80
+ title: string;
81
+ required: boolean;
82
+ default: string;
83
+ 'x-decorator': string;
84
+ 'x-component': string;
85
+ enum: {
86
+ label: string;
87
+ value: string;
88
+ }[];
89
+ };
90
+ systemPrompt: {
91
+ type: string;
92
+ title: string;
93
+ 'x-decorator': string;
94
+ 'x-component': string;
95
+ 'x-component-props': {
96
+ rows: number;
97
+ };
98
+ default: string;
99
+ };
100
+ documents: {
101
+ type: string;
102
+ title: string;
103
+ 'x-decorator': string;
104
+ 'x-component': string;
105
+ 'x-component-props': {
106
+ multiple: boolean;
107
+ action: string;
108
+ maxCount: number;
109
+ };
110
+ };
111
+ footer: {
112
+ type: string;
113
+ 'x-component': string;
114
+ properties: {
115
+ cancel: {
116
+ type: string;
117
+ title: string;
118
+ 'x-component': string;
119
+ 'x-use-component-props': string;
120
+ };
121
+ submit: {
122
+ type: string;
123
+ title: string;
124
+ 'x-component': string;
125
+ 'x-use-component-props': string;
126
+ };
127
+ };
128
+ };
129
+ };
130
+ };
131
+ };
132
+ };
133
+ };
134
+ };
135
+ };
136
+ };
137
+ table: {
138
+ type: string;
139
+ 'x-component': string;
140
+ 'x-use-component-props': string;
141
+ 'x-component-props': {
142
+ rowKey: string;
143
+ rowSelection: {
144
+ type: string;
145
+ };
146
+ };
147
+ properties: {
148
+ title: {
149
+ type: string;
150
+ title: string;
151
+ 'x-decorator': string;
152
+ 'x-component': string;
153
+ properties: {
154
+ title: {
155
+ type: string;
156
+ 'x-component': string;
157
+ 'x-read-pretty': boolean;
158
+ };
159
+ };
160
+ };
161
+ status: {
162
+ type: string;
163
+ title: string;
164
+ 'x-decorator': string;
165
+ 'x-component': string;
166
+ properties: {
167
+ status: {
168
+ type: string;
169
+ 'x-component': string;
170
+ 'x-read-pretty': boolean;
171
+ };
172
+ };
173
+ };
174
+ buildLog: {
175
+ type: string;
176
+ title: string;
177
+ 'x-decorator': string;
178
+ 'x-component': string;
179
+ properties: {
180
+ buildLog: {
181
+ type: string;
182
+ 'x-component': string;
183
+ 'x-read-pretty': boolean;
184
+ };
185
+ };
186
+ };
187
+ actions: {
188
+ type: string;
189
+ title: string;
190
+ 'x-decorator': string;
191
+ 'x-component': string;
192
+ properties: {
193
+ actions: {
194
+ type: string;
195
+ 'x-component': string;
196
+ 'x-component-props': {
197
+ split: string;
198
+ };
199
+ properties: {
200
+ build: {
201
+ type: string;
202
+ 'x-component': string;
203
+ };
204
+ update: {
205
+ type: string;
206
+ title: string;
207
+ 'x-component': string;
208
+ 'x-component-props': {
209
+ type: string;
210
+ };
211
+ properties: {
212
+ drawer: {
213
+ type: string;
214
+ 'x-component': string;
215
+ 'x-component-props': {
216
+ title: string;
217
+ };
218
+ properties: {
219
+ form: {
220
+ type: string;
221
+ 'x-component': string;
222
+ 'x-use-component-props': string;
223
+ properties: {
224
+ title: {
225
+ type: string;
226
+ title: string;
227
+ required: boolean;
228
+ 'x-decorator': string;
229
+ 'x-component': string;
230
+ };
231
+ llmService: {
232
+ type: string;
233
+ title: string;
234
+ required: boolean;
235
+ 'x-decorator': string;
236
+ 'x-component': string;
237
+ };
238
+ model: {
239
+ type: string;
240
+ title: string;
241
+ required: boolean;
242
+ 'x-decorator': string;
243
+ 'x-component': string;
244
+ };
245
+ outputFormat: {
246
+ type: string;
247
+ title: string;
248
+ required: boolean;
249
+ 'x-decorator': string;
250
+ 'x-component': string;
251
+ enum: {
252
+ label: string;
253
+ value: string;
254
+ }[];
255
+ };
256
+ systemPrompt: {
257
+ type: string;
258
+ title: string;
259
+ 'x-decorator': string;
260
+ 'x-component': string;
261
+ 'x-component-props': {
262
+ rows: number;
263
+ };
264
+ };
265
+ documents: {
266
+ type: string;
267
+ title: string;
268
+ 'x-decorator': string;
269
+ 'x-component': string;
270
+ 'x-component-props': {
271
+ multiple: boolean;
272
+ action: string;
273
+ maxCount: number;
274
+ };
275
+ };
276
+ generatedHtml: {
277
+ type: string;
278
+ title: string;
279
+ 'x-decorator': string;
280
+ 'x-component': string;
281
+ 'x-component-props': {
282
+ rows: number;
283
+ };
284
+ 'x-read-pretty': boolean;
285
+ };
286
+ generatedMarkdown: {
287
+ type: string;
288
+ title: string;
289
+ 'x-decorator': string;
290
+ 'x-component': string;
291
+ 'x-component-props': {
292
+ rows: number;
293
+ };
294
+ 'x-read-pretty': boolean;
295
+ 'x-reactions': {
296
+ dependencies: string[];
297
+ fulfill: {
298
+ state: {
299
+ visible: string;
300
+ };
301
+ };
302
+ };
303
+ };
304
+ buildLog: {
305
+ type: string;
306
+ title: string;
307
+ 'x-decorator': string;
308
+ 'x-component': string;
309
+ 'x-read-pretty': boolean;
310
+ };
311
+ footer: {
312
+ type: string;
313
+ 'x-component': string;
314
+ properties: {
315
+ cancel: {
316
+ type: string;
317
+ title: string;
318
+ 'x-component': string;
319
+ 'x-use-component-props': string;
320
+ };
321
+ submit: {
322
+ type: string;
323
+ title: string;
324
+ 'x-component': string;
325
+ 'x-use-component-props': string;
326
+ };
327
+ };
328
+ };
329
+ };
330
+ };
331
+ };
332
+ };
333
+ };
334
+ };
335
+ delete: {
336
+ type: string;
337
+ title: string;
338
+ 'x-component': string;
339
+ 'x-use-component-props': string;
340
+ 'x-component-props': {
341
+ confirm: {
342
+ title: string;
343
+ content: string;
344
+ };
345
+ };
346
+ };
347
+ };
348
+ };
349
+ };
350
+ };
351
+ };
352
+ };
353
+ };
354
+ };
355
+ };
356
+ };
@@ -8,19 +8,19 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.0.38",
11
+ "@nocobase/client": "2.0.41",
12
12
  "react": "18.2.0",
13
- "antd": "5.24.2",
14
13
  "@formily/react": "2.3.7",
14
+ "antd": "5.24.2",
15
15
  "react-i18next": "11.18.6",
16
16
  "@ant-design/icons": "5.6.1",
17
17
  "@formily/core": "2.3.7",
18
- "@nocobase/server": "2.0.38",
19
- "@nocobase/flow-engine": "2.0.38",
20
- "@nocobase/actions": "2.0.38",
21
- "@nocobase/database": "2.0.38",
22
- "@nocobase/plugin-ai": "2.0.38",
23
- "@nocobase/plugin-file-manager": "2.0.38",
18
+ "@nocobase/server": "2.0.41",
19
+ "@nocobase/flow-engine": "2.0.41",
20
+ "@nocobase/actions": "2.0.41",
21
+ "@nocobase/database": "2.0.41",
22
+ "@nocobase/plugin-ai": "2.0.41",
23
+ "@nocobase/plugin-file-manager": "2.0.41",
24
24
  "@langchain/core": "1.1.24",
25
25
  "axios": "1.7.7"
26
26
  };
@@ -0,0 +1,2 @@
1
+ export * from './server';
2
+ export { default } from './server';
@@ -16,6 +16,9 @@
16
16
  "Edit": "Edit",
17
17
  "Edit space": "Edit space",
18
18
  "Generated HTML": "Generated HTML",
19
+ "Generated Markdown": "Generated Markdown",
20
+ "Output format": "Output format",
21
+ "Select Space": "Select Space",
19
22
  "Build Log": "Build Log",
20
23
  "Delete": "Delete",
21
24
  "Saved successfully": "Saved successfully",
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Shared namespace constant.
3
+ * Matches the namespace already used in inline schema strings
4
+ * such as {{t("...", { ns: "build-guide-block" })}}.
5
+ */
6
+ export declare const name = "build-guide-block";
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name2 in all)
16
+ __defProp(target, name2, { get: all[name2], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var namespace_exports = {};
28
+ __export(namespace_exports, {
29
+ name: () => name
30
+ });
31
+ module.exports = __toCommonJS(namespace_exports);
32
+ const name = "build-guide-block";
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ name
36
+ });
@@ -16,6 +16,9 @@
16
16
  "Edit": "Sửa",
17
17
  "Edit space": "Sửa Space",
18
18
  "Generated HTML": "HTML Đã tạo",
19
+ "Generated Markdown": "Markdown Đã tạo",
20
+ "Output format": "Định dạng đầu ra",
21
+ "Select Space": "Chọn Space",
19
22
  "Build Log": "Log quá trình Build",
20
23
  "Delete": "Xóa",
21
24
  "Saved successfully": "Lưu thành công",
@@ -16,6 +16,9 @@
16
16
  "Edit": "编辑",
17
17
  "Edit space": "编辑空间",
18
18
  "Generated HTML": "生成的 HTML",
19
+ "Generated Markdown": "生成的 Markdown",
20
+ "Output format": "输出格式",
21
+ "Select Space": "选择空间",
19
22
  "Build Log": "构建日志",
20
23
  "Delete": "删除",
21
24
  "Saved successfully": "保存成功",