plugin-build-guide-block 1.0.11 → 1.1.2

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 (49) hide show
  1. package/dist/client/components/SpaceSelect.d.ts +2 -0
  2. package/dist/client/index.js +9 -1
  3. package/dist/client/locale.d.ts +3 -0
  4. package/dist/client/models/UserGuideBlockModel.d.ts +3 -3
  5. package/dist/client/schemaSettings.d.ts +2 -0
  6. package/dist/client/schemas/spacesSchema.d.ts +118 -0
  7. package/dist/externalVersion.js +8 -8
  8. package/dist/locale/en-US.json +12 -1
  9. package/dist/locale/namespace.d.ts +6 -0
  10. package/dist/locale/namespace.js +36 -0
  11. package/dist/locale/vi-VN.json +3 -0
  12. package/dist/locale/zh-CN.json +3 -0
  13. package/dist/node_modules/marked/bin/main.js +279 -0
  14. package/dist/node_modules/marked/bin/marked.js +15 -0
  15. package/dist/node_modules/marked/lib/marked.cjs +1 -0
  16. package/dist/node_modules/marked/lib/marked.d.cts +657 -0
  17. package/dist/node_modules/marked/lib/marked.d.ts +657 -0
  18. package/dist/node_modules/marked/lib/marked.esm.js +2432 -0
  19. package/dist/node_modules/marked/lib/marked.umd.js +2456 -0
  20. package/dist/node_modules/marked/man/marked.1 +111 -0
  21. package/dist/node_modules/marked/marked.min.js +6 -0
  22. package/dist/node_modules/marked/package.json +1 -0
  23. package/dist/server/actions/build.js +383 -101
  24. package/dist/server/actions/getMarkdown.d.ts +2 -0
  25. package/dist/server/actions/getMarkdown.js +53 -0
  26. package/dist/server/collections/ai-build-guide-pages.d.ts +2 -0
  27. package/dist/server/collections/ai-build-guide-pages.js +90 -0
  28. package/dist/server/collections/ai-build-guide-spaces.js +42 -0
  29. package/dist/server/plugin.d.ts +3 -0
  30. package/dist/server/plugin.js +58 -13
  31. package/package.json +51 -31
  32. package/src/client/UserGuideBlock.tsx +368 -53
  33. package/src/client/UserGuideBlockProvider.tsx +9 -8
  34. package/src/client/components/SpaceSelect.tsx +37 -0
  35. package/src/client/locale.ts +18 -0
  36. package/src/client/models/UserGuideBlockModel.ts +19 -29
  37. package/src/client/plugin.tsx +53 -30
  38. package/src/client/schemaSettings.ts +65 -0
  39. package/src/client/schemas/spacesSchema.ts +434 -316
  40. package/src/locale/en-US.json +12 -1
  41. package/src/locale/namespace.ts +6 -0
  42. package/src/locale/vi-VN.json +3 -0
  43. package/src/locale/zh-CN.json +3 -0
  44. package/src/server/actions/build.ts +497 -176
  45. package/src/server/actions/getMarkdown.ts +26 -0
  46. package/src/server/collections/ai-build-guide-pages.ts +60 -0
  47. package/src/server/collections/ai-build-guide-spaces.ts +57 -15
  48. package/src/server/plugin.ts +130 -76
  49. package/src/server/collections/.gitkeep +0 -0
@@ -1,316 +1,434 @@
1
- export const spacesSchema = {
2
- type: 'void',
3
- name: 'ai-build-guide-spaces',
4
- properties: {
5
- card: {
6
- type: 'void',
7
- 'x-component': 'CardItem',
8
- 'x-decorator': 'TableBlockProvider',
9
- 'x-decorator-props': {
10
- collection: 'aiBuildGuideSpaces',
11
- action: 'list',
12
- rowKey: 'id',
13
- params: {
14
- appends: ['documents'],
15
- sort: ['-createdAt'],
16
- },
17
- },
18
- properties: {
19
- actions: {
20
- type: 'void',
21
- 'x-component': 'ActionBar',
22
- 'x-component-props': {
23
- style: {
24
- marginBottom: 16,
25
- },
26
- },
27
- properties: {
28
- create: {
29
- type: 'void',
30
- 'x-component': 'Action',
31
- 'x-component-props': {
32
- type: 'primary',
33
- title: '{{t("Create space")}}',
34
- icon: 'PlusOutlined',
35
- },
36
- properties: {
37
- drawer: {
38
- type: 'void',
39
- 'x-component': 'Action.Drawer',
40
- 'x-component-props': {
41
- title: '{{t("Create space")}}',
42
- },
43
- properties: {
44
- form: {
45
- type: 'void',
46
- 'x-component': 'FormV2',
47
- 'x-use-component-props': 'useCreateFormProps',
48
- properties: {
49
- title: {
50
- type: 'string',
51
- title: '{{t("Title")}}',
52
- required: true,
53
- 'x-decorator': 'FormItem',
54
- 'x-component': 'Input',
55
- },
56
- llmService: {
57
- type: 'string',
58
- title: '{{t("LLM Service")}}',
59
- required: true,
60
- 'x-decorator': 'FormItem',
61
- 'x-component': 'LLMServiceSelect',
62
- },
63
- model: {
64
- type: 'string',
65
- title: '{{t("Model")}}',
66
- required: true,
67
- 'x-decorator': 'FormItem',
68
- 'x-component': 'ModelSelect',
69
- 'x-reactions': {
70
- dependencies: ['llmService'],
71
- fulfill: {
72
- state: {
73
- value: '{{$deps[0] ? $self.value : undefined}}',
74
- },
75
- },
76
- },
77
- },
78
- systemPrompt: {
79
- type: 'string',
80
- title: '{{t("System Prompt")}}',
81
- 'x-decorator': 'FormItem',
82
- 'x-component': 'Input.TextArea',
83
- 'x-component-props': {
84
- rows: 4,
85
- },
86
- default:
87
- 'You are an expert technical writer. Please generate a comprehensive HTML user guide based on the provided documents. Ensure the output is valid HTML and does not include Markdown syntax like ```html blocks.',
88
- },
89
- documents: {
90
- type: 'array',
91
- title: '{{t("Documents")}}',
92
- 'x-decorator': 'FormItem',
93
- 'x-component': 'Upload.Attachment',
94
- 'x-component-props': {
95
- multiple: true,
96
- action: 'attachments:create',
97
- maxCount: 10,
98
- },
99
- },
100
- footer: {
101
- type: 'void',
102
- 'x-component': 'Action.Drawer.Footer',
103
- properties: {
104
- cancel: {
105
- type: 'void',
106
- title: '{{t("Cancel")}}',
107
- 'x-component': 'Action',
108
- 'x-use-component-props': 'useCancelActionProps',
109
- },
110
- submit: {
111
- type: 'void',
112
- title: '{{t("Submit")}}',
113
- 'x-component': 'Action',
114
- 'x-use-component-props': 'useCreateActionProps',
115
- },
116
- },
117
- },
118
- },
119
- },
120
- },
121
- },
122
- },
123
- },
124
- },
125
- },
126
- table: {
127
- type: 'array',
128
- 'x-component': 'TableV2',
129
- 'x-use-component-props': 'useTableBlockProps',
130
- 'x-component-props': {
131
- rowKey: 'id',
132
- rowSelection: {
133
- type: 'checkbox',
134
- },
135
- },
136
- properties: {
137
- title: {
138
- type: 'void',
139
- title: '{{t("Title")}}',
140
- 'x-decorator': 'TableV2.Column.Decorator',
141
- 'x-component': 'TableV2.Column',
142
- properties: {
143
- title: {
144
- type: 'string',
145
- 'x-component': 'CollectionField',
146
- 'x-read-pretty': true,
147
- },
148
- },
149
- },
150
- status: {
151
- type: 'void',
152
- title: '{{t("Status")}}',
153
- 'x-decorator': 'TableV2.Column.Decorator',
154
- 'x-component': 'TableV2.Column',
155
- properties: {
156
- status: {
157
- type: 'string',
158
- 'x-component': 'StatusTag',
159
- 'x-read-pretty': true,
160
- },
161
- },
162
- },
163
- buildLog: {
164
- type: 'void',
165
- title: '{{t("Build Log")}}',
166
- 'x-decorator': 'TableV2.Column.Decorator',
167
- 'x-component': 'TableV2.Column',
168
- properties: {
169
- buildLog: {
170
- type: 'string',
171
- 'x-component': 'CollectionField',
172
- 'x-read-pretty': true,
173
- },
174
- },
175
- },
176
- actions: {
177
- type: 'void',
178
- title: '{{t("Actions")}}',
179
- 'x-decorator': 'TableV2.Column.Decorator',
180
- 'x-component': 'TableV2.Column',
181
- properties: {
182
- actions: {
183
- type: 'void',
184
- 'x-component': 'Space',
185
- 'x-component-props': {
186
- split: '|',
187
- },
188
- properties: {
189
- build: {
190
- type: 'void',
191
- 'x-component': 'BuildButton',
192
- },
193
- update: {
194
- type: 'void',
195
- title: '{{t("Edit")}}',
196
- 'x-component': 'Action.Link',
197
- 'x-component-props': {
198
- type: 'primary',
199
- },
200
- properties: {
201
- drawer: {
202
- type: 'void',
203
- 'x-component': 'Action.Drawer',
204
- 'x-component-props': {
205
- title: '{{t("Edit space")}}',
206
- },
207
- properties: {
208
- form: {
209
- type: 'void',
210
- 'x-component': 'FormV2',
211
- 'x-use-component-props': 'useEditFormProps',
212
- properties: {
213
- title: {
214
- type: 'string',
215
- title: '{{t("Title")}}',
216
- required: true,
217
- 'x-decorator': 'FormItem',
218
- 'x-component': 'Input',
219
- },
220
- llmService: {
221
- type: 'string',
222
- title: '{{t("LLM Service")}}',
223
- required: true,
224
- 'x-decorator': 'FormItem',
225
- 'x-component': 'LLMServiceSelect',
226
- },
227
- model: {
228
- type: 'string',
229
- title: '{{t("Model")}}',
230
- required: true,
231
- 'x-decorator': 'FormItem',
232
- 'x-component': 'ModelSelect',
233
- },
234
- systemPrompt: {
235
- type: 'string',
236
- title: '{{t("System Prompt")}}',
237
- 'x-decorator': 'FormItem',
238
- 'x-component': 'Input.TextArea',
239
- 'x-component-props': {
240
- rows: 4,
241
- },
242
- },
243
- documents: {
244
- type: 'array',
245
- title: '{{t("Documents")}}',
246
- 'x-decorator': 'FormItem',
247
- 'x-component': 'Upload.Attachment',
248
- 'x-component-props': {
249
- multiple: true,
250
- action: 'attachments:create',
251
- maxCount: 10,
252
- },
253
- },
254
- generatedHtml: {
255
- type: 'string',
256
- title: '{{t("Generated HTML")}}',
257
- 'x-decorator': 'FormItem',
258
- 'x-component': 'Input.TextArea',
259
- 'x-component-props': {
260
- rows: 6,
261
- },
262
- 'x-read-pretty': true,
263
- },
264
- buildLog: {
265
- type: 'string',
266
- title: '{{t("Build Log")}}',
267
- 'x-decorator': 'FormItem',
268
- 'x-component': 'Input.TextArea',
269
- 'x-read-pretty': true,
270
- },
271
- footer: {
272
- type: 'void',
273
- 'x-component': 'Action.Drawer.Footer',
274
- properties: {
275
- cancel: {
276
- type: 'void',
277
- title: '{{t("Cancel")}}',
278
- 'x-component': 'Action',
279
- 'x-use-component-props': 'useCancelActionProps',
280
- },
281
- submit: {
282
- type: 'void',
283
- title: '{{t("Submit")}}',
284
- 'x-component': 'Action',
285
- 'x-use-component-props': 'useUpdateActionProps',
286
- },
287
- },
288
- },
289
- },
290
- },
291
- },
292
- },
293
- },
294
- },
295
- delete: {
296
- type: 'void',
297
- title: '{{t("Delete")}}',
298
- 'x-component': 'Action.Link',
299
- 'x-use-component-props': 'useDestroyActionProps',
300
- 'x-component-props': {
301
- confirm: {
302
- title: '{{t("Delete")}}',
303
- content: '{{t("Are you sure you want to delete this space?")}}',
304
- },
305
- },
306
- },
307
- },
308
- },
309
- },
310
- },
311
- },
312
- },
313
- },
314
- },
315
- },
316
- };
1
+ export const spacesSchema = {
2
+ type: 'void',
3
+ name: 'ai-build-guide-spaces',
4
+ properties: {
5
+ card: {
6
+ type: 'void',
7
+ 'x-component': 'CardItem',
8
+ 'x-decorator': 'TableBlockProvider',
9
+ 'x-decorator-props': {
10
+ collection: 'aiBuildGuideSpaces',
11
+ action: 'list',
12
+ rowKey: 'id',
13
+ params: {
14
+ appends: ['documents'],
15
+ sort: ['-createdAt'],
16
+ },
17
+ },
18
+ properties: {
19
+ actions: {
20
+ type: 'void',
21
+ 'x-component': 'ActionBar',
22
+ 'x-component-props': {
23
+ style: {
24
+ marginBottom: 16,
25
+ },
26
+ },
27
+ properties: {
28
+ create: {
29
+ type: 'void',
30
+ 'x-component': 'Action',
31
+ 'x-component-props': {
32
+ type: 'primary',
33
+ title: '{{t("Create space")}}',
34
+ icon: 'PlusOutlined',
35
+ },
36
+ properties: {
37
+ drawer: {
38
+ type: 'void',
39
+ 'x-component': 'Action.Drawer',
40
+ 'x-component-props': {
41
+ title: '{{t("Create space")}}',
42
+ },
43
+ properties: {
44
+ form: {
45
+ type: 'void',
46
+ 'x-component': 'FormV2',
47
+ 'x-use-component-props': 'useCreateFormProps',
48
+ properties: {
49
+ title: {
50
+ type: 'string',
51
+ title: '{{t("Title")}}',
52
+ required: true,
53
+ 'x-decorator': 'FormItem',
54
+ 'x-component': 'Input',
55
+ },
56
+ llmService: {
57
+ type: 'string',
58
+ title: '{{t("LLM Service")}}',
59
+ required: true,
60
+ 'x-decorator': 'FormItem',
61
+ 'x-component': 'LLMServiceSelect',
62
+ },
63
+ model: {
64
+ type: 'string',
65
+ title: '{{t("Model")}}',
66
+ required: true,
67
+ 'x-decorator': 'FormItem',
68
+ 'x-component': 'ModelSelect',
69
+ 'x-reactions': {
70
+ dependencies: ['llmService'],
71
+ fulfill: {
72
+ state: {
73
+ value: '{{$deps[0] ? $self.value : undefined}}',
74
+ },
75
+ },
76
+ },
77
+ },
78
+ outputFormat: {
79
+ type: 'string',
80
+ title: '{{t("Output format")}}',
81
+ required: true,
82
+ default: 'html',
83
+ 'x-decorator': 'FormItem',
84
+ 'x-component': 'Select',
85
+ enum: [
86
+ { label: 'HTML', value: 'html' },
87
+ { label: 'Markdown', value: 'markdown' },
88
+ ],
89
+ },
90
+ targetChapterCount: {
91
+ type: 'number',
92
+ title: '{{t("Target chapters")}}',
93
+ required: true,
94
+ default: 5,
95
+ 'x-decorator': 'FormItem',
96
+ 'x-component': 'InputNumber',
97
+ 'x-component-props': {
98
+ min: 3,
99
+ max: 12,
100
+ precision: 0,
101
+ style: {
102
+ width: '100%',
103
+ },
104
+ },
105
+ },
106
+ chapterGuidance: {
107
+ type: 'string',
108
+ title: '{{t("Chapter guidance")}}',
109
+ 'x-decorator': 'FormItem',
110
+ 'x-component': 'Input.TextArea',
111
+ 'x-component-props': {
112
+ rows: 3,
113
+ placeholder: '{{t("Describe how the guide should be split into chapters")}}',
114
+ },
115
+ },
116
+ systemPrompt: {
117
+ type: 'string',
118
+ title: '{{t("System Prompt")}}',
119
+ 'x-decorator': 'FormItem',
120
+ 'x-component': 'Input.TextArea',
121
+ 'x-component-props': {
122
+ rows: 4,
123
+ },
124
+ default:
125
+ 'You are an expert technical writer. Generate a comprehensive user guide based on the provided documents.',
126
+ },
127
+ documents: {
128
+ type: 'array',
129
+ title: '{{t("Documents")}}',
130
+ 'x-decorator': 'FormItem',
131
+ 'x-component': 'Upload.Attachment',
132
+ 'x-component-props': {
133
+ multiple: true,
134
+ action: 'attachments:create',
135
+ maxCount: 10,
136
+ },
137
+ },
138
+ footer: {
139
+ type: 'void',
140
+ 'x-component': 'Action.Drawer.Footer',
141
+ properties: {
142
+ cancel: {
143
+ type: 'void',
144
+ title: '{{t("Cancel")}}',
145
+ 'x-component': 'Action',
146
+ 'x-use-component-props': 'useCancelActionProps',
147
+ },
148
+ submit: {
149
+ type: 'void',
150
+ title: '{{t("Submit")}}',
151
+ 'x-component': 'Action',
152
+ 'x-use-component-props': 'useCreateActionProps',
153
+ },
154
+ },
155
+ },
156
+ },
157
+ },
158
+ },
159
+ },
160
+ },
161
+ },
162
+ },
163
+ },
164
+ table: {
165
+ type: 'array',
166
+ 'x-component': 'TableV2',
167
+ 'x-use-component-props': 'useTableBlockProps',
168
+ 'x-component-props': {
169
+ rowKey: 'id',
170
+ rowSelection: {
171
+ type: 'checkbox',
172
+ },
173
+ },
174
+ properties: {
175
+ title: {
176
+ type: 'void',
177
+ title: '{{t("Title")}}',
178
+ 'x-decorator': 'TableV2.Column.Decorator',
179
+ 'x-component': 'TableV2.Column',
180
+ properties: {
181
+ title: {
182
+ type: 'string',
183
+ 'x-component': 'Input',
184
+ 'x-read-pretty': true,
185
+ },
186
+ },
187
+ },
188
+ status: {
189
+ type: 'void',
190
+ title: '{{t("Status")}}',
191
+ 'x-decorator': 'TableV2.Column.Decorator',
192
+ 'x-component': 'TableV2.Column',
193
+ properties: {
194
+ status: {
195
+ type: 'string',
196
+ 'x-component': 'StatusTag',
197
+ 'x-read-pretty': true,
198
+ },
199
+ },
200
+ },
201
+ buildPhase: {
202
+ type: 'void',
203
+ title: '{{t("Build Phase")}}',
204
+ 'x-decorator': 'TableV2.Column.Decorator',
205
+ 'x-component': 'TableV2.Column',
206
+ properties: {
207
+ buildPhase: {
208
+ type: 'string',
209
+ 'x-component': 'Input',
210
+ 'x-read-pretty': true,
211
+ },
212
+ },
213
+ },
214
+ pageCount: {
215
+ type: 'void',
216
+ title: '{{t("Chapters")}}',
217
+ 'x-decorator': 'TableV2.Column.Decorator',
218
+ 'x-component': 'TableV2.Column',
219
+ properties: {
220
+ pageCount: {
221
+ type: 'integer',
222
+ 'x-component': 'InputNumber',
223
+ 'x-read-pretty': true,
224
+ },
225
+ },
226
+ },
227
+ buildLog: {
228
+ type: 'void',
229
+ title: '{{t("Build Log")}}',
230
+ 'x-decorator': 'TableV2.Column.Decorator',
231
+ 'x-component': 'TableV2.Column',
232
+ properties: {
233
+ buildLog: {
234
+ type: 'string',
235
+ 'x-component': 'Input.TextArea',
236
+ 'x-read-pretty': true,
237
+ },
238
+ },
239
+ },
240
+ actions: {
241
+ type: 'void',
242
+ title: '{{t("Actions")}}',
243
+ 'x-decorator': 'TableV2.Column.Decorator',
244
+ 'x-component': 'TableV2.Column',
245
+ properties: {
246
+ actions: {
247
+ type: 'void',
248
+ 'x-component': 'Space',
249
+ 'x-component-props': {
250
+ split: '|',
251
+ },
252
+ properties: {
253
+ build: {
254
+ type: 'void',
255
+ 'x-component': 'BuildButton',
256
+ },
257
+ update: {
258
+ type: 'void',
259
+ title: '{{t("Edit")}}',
260
+ 'x-component': 'Action.Link',
261
+ 'x-component-props': {
262
+ type: 'primary',
263
+ },
264
+ properties: {
265
+ drawer: {
266
+ type: 'void',
267
+ 'x-component': 'Action.Drawer',
268
+ 'x-component-props': {
269
+ title: '{{t("Edit space")}}',
270
+ },
271
+ properties: {
272
+ form: {
273
+ type: 'void',
274
+ 'x-component': 'FormV2',
275
+ 'x-use-component-props': 'useEditFormProps',
276
+ properties: {
277
+ title: {
278
+ type: 'string',
279
+ title: '{{t("Title")}}',
280
+ required: true,
281
+ 'x-decorator': 'FormItem',
282
+ 'x-component': 'Input',
283
+ },
284
+ llmService: {
285
+ type: 'string',
286
+ title: '{{t("LLM Service")}}',
287
+ required: true,
288
+ 'x-decorator': 'FormItem',
289
+ 'x-component': 'LLMServiceSelect',
290
+ },
291
+ model: {
292
+ type: 'string',
293
+ title: '{{t("Model")}}',
294
+ required: true,
295
+ 'x-decorator': 'FormItem',
296
+ 'x-component': 'ModelSelect',
297
+ },
298
+ outputFormat: {
299
+ type: 'string',
300
+ title: '{{t("Output format")}}',
301
+ required: true,
302
+ 'x-decorator': 'FormItem',
303
+ 'x-component': 'Select',
304
+ enum: [
305
+ { label: 'HTML', value: 'html' },
306
+ { label: 'Markdown', value: 'markdown' },
307
+ ],
308
+ },
309
+ targetChapterCount: {
310
+ type: 'number',
311
+ title: '{{t("Target chapters")}}',
312
+ required: true,
313
+ 'x-decorator': 'FormItem',
314
+ 'x-component': 'InputNumber',
315
+ 'x-component-props': {
316
+ min: 3,
317
+ max: 12,
318
+ precision: 0,
319
+ style: {
320
+ width: '100%',
321
+ },
322
+ },
323
+ },
324
+ chapterGuidance: {
325
+ type: 'string',
326
+ title: '{{t("Chapter guidance")}}',
327
+ 'x-decorator': 'FormItem',
328
+ 'x-component': 'Input.TextArea',
329
+ 'x-component-props': {
330
+ rows: 3,
331
+ placeholder: '{{t("Describe how the guide should be split into chapters")}}',
332
+ },
333
+ },
334
+ systemPrompt: {
335
+ type: 'string',
336
+ title: '{{t("System Prompt")}}',
337
+ 'x-decorator': 'FormItem',
338
+ 'x-component': 'Input.TextArea',
339
+ 'x-component-props': {
340
+ rows: 4,
341
+ },
342
+ },
343
+ documents: {
344
+ type: 'array',
345
+ title: '{{t("Documents")}}',
346
+ 'x-decorator': 'FormItem',
347
+ 'x-component': 'Upload.Attachment',
348
+ 'x-component-props': {
349
+ multiple: true,
350
+ action: 'attachments:create',
351
+ maxCount: 10,
352
+ },
353
+ },
354
+ generatedHtml: {
355
+ type: 'string',
356
+ title: '{{t("Generated HTML")}}',
357
+ 'x-decorator': 'FormItem',
358
+ 'x-component': 'Input.TextArea',
359
+ 'x-component-props': {
360
+ rows: 6,
361
+ },
362
+ 'x-read-pretty': true,
363
+ },
364
+ generatedMarkdown: {
365
+ type: 'string',
366
+ title: '{{t("Generated Markdown")}}',
367
+ 'x-decorator': 'FormItem',
368
+ 'x-component': 'Input.TextArea',
369
+ 'x-component-props': {
370
+ rows: 6,
371
+ },
372
+ 'x-read-pretty': true,
373
+ 'x-reactions': {
374
+ dependencies: ['outputFormat'],
375
+ fulfill: {
376
+ state: {
377
+ visible: '{{$deps[0] === "markdown"}}',
378
+ },
379
+ },
380
+ },
381
+ },
382
+ buildLog: {
383
+ type: 'string',
384
+ title: '{{t("Build Log")}}',
385
+ 'x-decorator': 'FormItem',
386
+ 'x-component': 'Input.TextArea',
387
+ 'x-read-pretty': true,
388
+ },
389
+ footer: {
390
+ type: 'void',
391
+ 'x-component': 'Action.Drawer.Footer',
392
+ properties: {
393
+ cancel: {
394
+ type: 'void',
395
+ title: '{{t("Cancel")}}',
396
+ 'x-component': 'Action',
397
+ 'x-use-component-props': 'useCancelActionProps',
398
+ },
399
+ submit: {
400
+ type: 'void',
401
+ title: '{{t("Submit")}}',
402
+ 'x-component': 'Action',
403
+ 'x-use-component-props': 'useUpdateActionProps',
404
+ },
405
+ },
406
+ },
407
+ },
408
+ },
409
+ },
410
+ },
411
+ },
412
+ },
413
+ delete: {
414
+ type: 'void',
415
+ title: '{{t("Delete")}}',
416
+ 'x-component': 'Action.Link',
417
+ 'x-use-component-props': 'useDestroyActionProps',
418
+ 'x-component-props': {
419
+ confirm: {
420
+ title: '{{t("Delete")}}',
421
+ content: '{{t("Are you sure you want to delete this space?")}}',
422
+ },
423
+ },
424
+ },
425
+ },
426
+ },
427
+ },
428
+ },
429
+ },
430
+ },
431
+ },
432
+ },
433
+ },
434
+ };