@web-ppt/edit-core 0.6.0 → 0.8.0-beta.1
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/CHANGELOG.md +16 -0
- package/README.md +8 -0
- package/dist/agent/base64.d.ts +2 -0
- package/dist/agent/errors.d.ts +9 -0
- package/dist/agent/generated-schema.d.ts +6038 -0
- package/dist/agent/generated-validator.d.ts +6 -0
- package/dist/agent/index.d.ts +6 -0
- package/dist/agent/query.d.ts +3 -0
- package/dist/agent/session.d.ts +33 -0
- package/dist/agent/targets.d.ts +5 -0
- package/dist/agent/tools.d.ts +2 -0
- package/dist/agent/types.d.ts +126 -0
- package/dist/agent/validation.d.ts +2 -0
- package/dist/agent.js +46364 -0
- package/dist/commands/types.d.ts +23 -23
- package/dist/fill/api.d.ts +29 -0
- package/dist/fill/chart-seed-chart.d.ts +7 -0
- package/dist/fill/chart-seed-workbook.d.ts +12 -0
- package/dist/fill/chart-seed-xml.d.ts +12 -0
- package/dist/fill/chart-seed.d.ts +17 -0
- package/dist/fill/content.d.ts +16 -0
- package/dist/fill/errors.d.ts +10 -0
- package/dist/fill/generated-schema.d.ts +291 -0
- package/dist/fill/generated-validator.d.ts +6 -0
- package/dist/fill/index.d.ts +10 -0
- package/dist/fill/layouts.d.ts +24 -0
- package/dist/fill/package.d.ts +2 -0
- package/dist/fill/repair.d.ts +32 -0
- package/dist/fill/text-validation.d.ts +3 -0
- package/dist/fill/types.d.ts +60 -0
- package/dist/fill/validation.d.ts +10 -0
- package/dist/fill.js +12 -0
- package/dist/generate.js +53 -53
- package/dist/index-2ti1e4_F.js +411 -0
- package/dist/index-BbsPmmoy.js +4046 -0
- package/dist/save/notes-master.d.ts +12 -0
- package/dist/save.js +650 -484
- package/dist/{slide-parts-D0o_DDhi.js → slide-parts-zyOP9lia.js} +5 -5
- package/dist/types.d.ts +4 -4
- package/package.json +13 -3
- package/schemas/agent-tools.schema.json +7999 -0
- package/schemas/template-fill.schema.json +371 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/TemplateFillOutline",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"TemplateFillOutline": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"version": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"const": 1
|
|
11
|
+
},
|
|
12
|
+
"slides": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"$ref": "#/definitions/TemplateFillSlide"
|
|
16
|
+
},
|
|
17
|
+
"minItems": 1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"version",
|
|
22
|
+
"slides"
|
|
23
|
+
],
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
26
|
+
"TemplateFillSlide": {
|
|
27
|
+
"anyOf": [
|
|
28
|
+
{
|
|
29
|
+
"$ref": "#/definitions/TemplateFillTitleSlide"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"$ref": "#/definitions/TemplateFillSectionSlide"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"$ref": "#/definitions/TemplateFillContentSlide"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"$ref": "#/definitions/TemplateFillTwoColumnSlide"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"$ref": "#/definitions/TemplateFillImageSlide"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"$ref": "#/definitions/TemplateFillChartSlide"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"TemplateFillTitleSlide": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"title": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"notes": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"layoutId": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"type": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "title"
|
|
63
|
+
},
|
|
64
|
+
"subtitle": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"title",
|
|
70
|
+
"type"
|
|
71
|
+
],
|
|
72
|
+
"additionalProperties": false
|
|
73
|
+
},
|
|
74
|
+
"TemplateFillSectionSlide": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"title": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"notes": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"layoutId": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"type": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"const": "section"
|
|
89
|
+
},
|
|
90
|
+
"body": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"$ref": "#/definitions/TemplateFillParagraph"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": [
|
|
98
|
+
"title",
|
|
99
|
+
"type"
|
|
100
|
+
],
|
|
101
|
+
"additionalProperties": false
|
|
102
|
+
},
|
|
103
|
+
"TemplateFillParagraph": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"text": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"level": {
|
|
110
|
+
"type": "number",
|
|
111
|
+
"enum": [
|
|
112
|
+
0,
|
|
113
|
+
1,
|
|
114
|
+
2,
|
|
115
|
+
3,
|
|
116
|
+
4,
|
|
117
|
+
5,
|
|
118
|
+
6,
|
|
119
|
+
7,
|
|
120
|
+
8
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"bullet": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"text"
|
|
129
|
+
],
|
|
130
|
+
"additionalProperties": false
|
|
131
|
+
},
|
|
132
|
+
"TemplateFillContentSlide": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"title": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"notes": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"layoutId": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"type": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"const": "content"
|
|
147
|
+
},
|
|
148
|
+
"body": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"items": {
|
|
151
|
+
"$ref": "#/definitions/TemplateFillParagraph"
|
|
152
|
+
},
|
|
153
|
+
"minItems": 1
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"required": [
|
|
157
|
+
"body",
|
|
158
|
+
"title",
|
|
159
|
+
"type"
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": false
|
|
162
|
+
},
|
|
163
|
+
"TemplateFillTwoColumnSlide": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"properties": {
|
|
166
|
+
"title": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"notes": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"layoutId": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"type": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"const": "two-column"
|
|
178
|
+
},
|
|
179
|
+
"columns": {
|
|
180
|
+
"type": "array",
|
|
181
|
+
"items": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": {
|
|
184
|
+
"$ref": "#/definitions/TemplateFillParagraph"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"minItems": 2,
|
|
188
|
+
"maxItems": 2
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": [
|
|
192
|
+
"columns",
|
|
193
|
+
"title",
|
|
194
|
+
"type"
|
|
195
|
+
],
|
|
196
|
+
"additionalProperties": false
|
|
197
|
+
},
|
|
198
|
+
"TemplateFillImageSlide": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {
|
|
201
|
+
"title": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"notes": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"layoutId": {
|
|
208
|
+
"type": "string"
|
|
209
|
+
},
|
|
210
|
+
"type": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"const": "image"
|
|
213
|
+
},
|
|
214
|
+
"image": {
|
|
215
|
+
"$ref": "#/definitions/TemplateFillImage"
|
|
216
|
+
},
|
|
217
|
+
"body": {
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": {
|
|
220
|
+
"$ref": "#/definitions/TemplateFillParagraph"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"image",
|
|
226
|
+
"title",
|
|
227
|
+
"type"
|
|
228
|
+
],
|
|
229
|
+
"additionalProperties": false
|
|
230
|
+
},
|
|
231
|
+
"TemplateFillImage": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"properties": {
|
|
234
|
+
"bytes": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"mime": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"enum": [
|
|
240
|
+
"image/png",
|
|
241
|
+
"image/jpeg",
|
|
242
|
+
"image/gif",
|
|
243
|
+
"image/webp"
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
"altText": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
"fit": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"enum": [
|
|
252
|
+
"contain",
|
|
253
|
+
"cover"
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": [
|
|
258
|
+
"bytes",
|
|
259
|
+
"mime"
|
|
260
|
+
],
|
|
261
|
+
"additionalProperties": false
|
|
262
|
+
},
|
|
263
|
+
"TemplateFillChartSlide": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"properties": {
|
|
266
|
+
"title": {
|
|
267
|
+
"type": "string"
|
|
268
|
+
},
|
|
269
|
+
"notes": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
"layoutId": {
|
|
273
|
+
"type": "string"
|
|
274
|
+
},
|
|
275
|
+
"type": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"const": "chart"
|
|
278
|
+
},
|
|
279
|
+
"chart": {
|
|
280
|
+
"$ref": "#/definitions/TemplateFillChart"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"required": [
|
|
284
|
+
"chart",
|
|
285
|
+
"title",
|
|
286
|
+
"type"
|
|
287
|
+
],
|
|
288
|
+
"additionalProperties": false
|
|
289
|
+
},
|
|
290
|
+
"TemplateFillChart": {
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"type": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"enum": [
|
|
296
|
+
"bar",
|
|
297
|
+
"line",
|
|
298
|
+
"pie",
|
|
299
|
+
"doughnut",
|
|
300
|
+
"area",
|
|
301
|
+
"scatter",
|
|
302
|
+
"radar",
|
|
303
|
+
"bubble"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
"categories": {
|
|
307
|
+
"type": "array",
|
|
308
|
+
"items": {
|
|
309
|
+
"type": "string"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"series": {
|
|
313
|
+
"type": "array",
|
|
314
|
+
"items": {
|
|
315
|
+
"$ref": "#/definitions/TemplateFillChartSeries"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"title": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"required": [
|
|
323
|
+
"type",
|
|
324
|
+
"categories",
|
|
325
|
+
"series"
|
|
326
|
+
],
|
|
327
|
+
"additionalProperties": false
|
|
328
|
+
},
|
|
329
|
+
"TemplateFillChartSeries": {
|
|
330
|
+
"type": "object",
|
|
331
|
+
"properties": {
|
|
332
|
+
"name": {
|
|
333
|
+
"type": "string"
|
|
334
|
+
},
|
|
335
|
+
"values": {
|
|
336
|
+
"type": "array",
|
|
337
|
+
"items": {
|
|
338
|
+
"type": [
|
|
339
|
+
"number",
|
|
340
|
+
"null"
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"x": {
|
|
345
|
+
"type": "array",
|
|
346
|
+
"items": {
|
|
347
|
+
"type": [
|
|
348
|
+
"number",
|
|
349
|
+
"null"
|
|
350
|
+
]
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"sizes": {
|
|
354
|
+
"type": "array",
|
|
355
|
+
"items": {
|
|
356
|
+
"type": [
|
|
357
|
+
"number",
|
|
358
|
+
"null"
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"required": [
|
|
364
|
+
"name",
|
|
365
|
+
"values"
|
|
366
|
+
],
|
|
367
|
+
"additionalProperties": false
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"$id": "https://web-ppt.dev/schemas/template-fill.schema.json"
|
|
371
|
+
}
|