@json-to-office/jto 2.4.0 → 3.0.0

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 (57) hide show
  1. package/dist/cli.js +123 -39
  2. package/dist/cli.js.map +1 -1
  3. package/dist/client/assets/HomePage-BlzZ7qG4.js +245 -0
  4. package/dist/client/assets/HomePage-BlzZ7qG4.js.map +1 -0
  5. package/dist/client/assets/{JsonEditorPage-DjLAUBv5.js → JsonEditorPage-kWuP_kL3.js} +3 -3
  6. package/dist/client/assets/{JsonEditorPage-DjLAUBv5.js.map → JsonEditorPage-kWuP_kL3.js.map} +1 -1
  7. package/dist/client/assets/{MonacoPluginProvider-D_GUFwWQ.js → MonacoPluginProvider-Dbv1PrO2.js} +6 -6
  8. package/dist/client/assets/{MonacoPluginProvider-D_GUFwWQ.js.map → MonacoPluginProvider-Dbv1PrO2.js.map} +1 -1
  9. package/dist/client/assets/{_virtual_jto-plugin-type-libs-9elxvZT2.js → _virtual_jto-plugin-type-libs-B6KyD9RL.js} +9182 -4529
  10. package/dist/client/assets/{_virtual_jto-plugin-type-libs-9elxvZT2.js.map → _virtual_jto-plugin-type-libs-B6KyD9RL.js.map} +1 -1
  11. package/dist/client/assets/_virtual_jto-sandbox-runtime-Bzo2M5U7.js +2 -0
  12. package/dist/client/assets/_virtual_jto-sandbox-runtime-Bzo2M5U7.js.map +1 -0
  13. package/dist/client/assets/editor-CwEocOY2.js +16 -0
  14. package/dist/client/assets/editor-CwEocOY2.js.map +1 -0
  15. package/dist/client/assets/editor-monaco-json-D_oiidNg.js +24 -0
  16. package/dist/client/assets/editor-monaco-json-D_oiidNg.js.map +1 -0
  17. package/dist/client/assets/index--kF4jVbp.css +1 -0
  18. package/dist/client/assets/index-DFJaEoi0.js +27 -0
  19. package/dist/client/assets/index-DFJaEoi0.js.map +1 -0
  20. package/dist/client/assets/index-UheDso2P.js +2 -0
  21. package/dist/client/assets/index-UheDso2P.js.map +1 -0
  22. package/dist/client/assets/preview-CWdUATNl.js +4 -0
  23. package/dist/client/assets/preview-CWdUATNl.js.map +1 -0
  24. package/dist/client/assets/useQualityAnalysis-Cl4QPeOT.js +6 -0
  25. package/dist/client/assets/useQualityAnalysis-Cl4QPeOT.js.map +1 -0
  26. package/dist/client/index.html +2 -2
  27. package/dist/client/templates/client-report-blocks.docx.json +791 -0
  28. package/dist/client/templates/consulting-deck-blocks.pptx.json +455 -0
  29. package/dist/client/templates/data-report-presentation.pptx.json +108 -36
  30. package/dist/client/templates/management-plan.pptx.json +100 -22
  31. package/dist/client/templates/minimalist-pitch-deck.pptx.json +172 -101
  32. package/dist/prompts/instructions-edit-document-pptx-blocks.md +77 -0
  33. package/dist/prompts/instructions-edit-document-pptx-slides.md +15 -21
  34. package/dist/prompts/instructions-edit-document-pptx.md +34 -53
  35. package/dist/prompts/instructions-edit-pptx.md +9 -8
  36. package/dist/prompts/instructions-generate-pptx.md +13 -17
  37. package/dist/prompts/pptx-core.md +104 -127
  38. package/dist/prompts/pptx-design.md +115 -109
  39. package/package.json +10 -9
  40. package/dist/client/assets/HomePage-mtUb6jxc.js +0 -251
  41. package/dist/client/assets/HomePage-mtUb6jxc.js.map +0 -1
  42. package/dist/client/assets/_virtual_jto-sandbox-runtime-Dqq17bow.js +0 -2
  43. package/dist/client/assets/_virtual_jto-sandbox-runtime-Dqq17bow.js.map +0 -1
  44. package/dist/client/assets/editor-ZbEHVEFs.js +0 -16
  45. package/dist/client/assets/editor-ZbEHVEFs.js.map +0 -1
  46. package/dist/client/assets/editor-monaco-json-FaaVfftD.js +0 -24
  47. package/dist/client/assets/editor-monaco-json-FaaVfftD.js.map +0 -1
  48. package/dist/client/assets/editor-refs-store-DAEAPqEk.js +0 -2
  49. package/dist/client/assets/editor-refs-store-DAEAPqEk.js.map +0 -1
  50. package/dist/client/assets/index-Bj6ZAKUc.css +0 -1
  51. package/dist/client/assets/index-DRbATnbJ.js +0 -5
  52. package/dist/client/assets/index-DRbATnbJ.js.map +0 -1
  53. package/dist/client/assets/preview-CM2ywF-8.js +0 -4
  54. package/dist/client/assets/preview-CM2ywF-8.js.map +0 -1
  55. package/dist/client/assets/useQualityAnalysis-ClgkaIc2.js +0 -6
  56. package/dist/client/assets/useQualityAnalysis-ClgkaIc2.js.map +0 -1
  57. package/dist/prompts/instructions-edit-document-pptx-templates.md +0 -63
@@ -0,0 +1,455 @@
1
+ {
2
+ "name": "pptx",
3
+ "props": {
4
+ "title": "Client performance review",
5
+ "author": "Consulting team",
6
+ "company": "Example client",
7
+ "theme": "consulting",
8
+ "slideWidth": 13.333,
9
+ "slideHeight": 7.5,
10
+ "blocks": {
11
+ "action-chart": {
12
+ "description": "The consulting workhorse: an action title over one chart, an optional takeaway beside it and an optional source beneath. Copy and adapt this document-local example; the consulting-deck quality profile requires the takeaway and the source, the theme only styles them. Geometry is a frame of the slide in percentages, so the same definition lays out on every canvas; sizes bind to the theme's type roles with safe defaults, so it renders on any bundled theme.",
13
+ "slots": {
14
+ "title": {
15
+ "type": "string",
16
+ "required": true,
17
+ "oneLine": true,
18
+ "maxWords": 24,
19
+ "role": "actionTitle",
20
+ "description": "The claim the chart proves: a sentence with a number or a verb, two lines at most. Longer titles step down to 24 then 22pt, then fail."
21
+ },
22
+ "tracker": {
23
+ "type": "string",
24
+ "oneLine": true,
25
+ "maxWords": 4,
26
+ "role": "tracker",
27
+ "description": "Section label, top right. Omit it and nothing is drawn."
28
+ },
29
+ "chart": {
30
+ "type": "component",
31
+ "required": true,
32
+ "description": "A chart or highcharts component with its data and units. The definition supplies its frame and the theme's series palette; both may be overridden except the frame."
33
+ },
34
+ "takeaway": {
35
+ "type": "string",
36
+ "maxWords": 40,
37
+ "role": "takeaway",
38
+ "description": "What the reader should conclude, set beside the chart under an accent rule."
39
+ },
40
+ "source": {
41
+ "type": "string",
42
+ "maxWords": 24,
43
+ "role": "source",
44
+ "description": "Where the numbers come from, e.g. 'Source: company filings, 2026'. Omit it and its rule collapses too."
45
+ }
46
+ },
47
+ "body": [
48
+ {
49
+ "name": "group",
50
+ "props": {
51
+ "x": "3.75%",
52
+ "y": "4.5%",
53
+ "w": "92.5%",
54
+ "h": "91%"
55
+ },
56
+ "children": [
57
+ {
58
+ "$if": "/tracker",
59
+ "then": {
60
+ "name": "text",
61
+ "props": {
62
+ "text": {
63
+ "$slot": "/tracker"
64
+ },
65
+ "style": "tracker",
66
+ "fontSize": {
67
+ "$theme": "/styles/tracker/fontSize",
68
+ "default": 10
69
+ },
70
+ "x": "70%",
71
+ "y": "0%",
72
+ "w": "30%",
73
+ "h": "4.5%",
74
+ "align": "right"
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "name": "text",
80
+ "props": {
81
+ "text": {
82
+ "$slot": "/title"
83
+ },
84
+ "style": "display",
85
+ "fontSize": {
86
+ "$theme": "/styles/display/fontSize",
87
+ "default": 28
88
+ },
89
+ "x": "0%",
90
+ "y": "5%",
91
+ "w": "100%",
92
+ "h": "19%",
93
+ "valign": "top",
94
+ "fit": {
95
+ "maxLines": 2,
96
+ "shrink": [24, 22]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "name": "shape",
102
+ "props": {
103
+ "type": "line",
104
+ "x": "0%",
105
+ "y": "26%",
106
+ "w": "100%",
107
+ "h": 0,
108
+ "line": {
109
+ "color": {
110
+ "$theme": "/palette/rule",
111
+ "default": "background2"
112
+ },
113
+ "width": 0.5
114
+ }
115
+ }
116
+ },
117
+ {
118
+ "$slot": "/chart",
119
+ "props": {
120
+ "x": "0%",
121
+ "y": "29%",
122
+ "w": "68%",
123
+ "h": "62%",
124
+ "chartColors": [
125
+ "accent",
126
+ "secondary",
127
+ "accent4",
128
+ "accent6",
129
+ "accent5"
130
+ ],
131
+ "showLegend": true,
132
+ "legendPos": "b"
133
+ }
134
+ },
135
+ {
136
+ "$if": "/takeaway",
137
+ "then": [
138
+ {
139
+ "name": "shape",
140
+ "props": {
141
+ "type": "line",
142
+ "x": "71%",
143
+ "y": "29%",
144
+ "w": "29%",
145
+ "h": 0,
146
+ "line": {
147
+ "color": {
148
+ "$theme": "/chrome/keyTakeaways/rule/color",
149
+ "default": "accent"
150
+ },
151
+ "width": {
152
+ "$theme": "/chrome/keyTakeaways/rule/weightPt",
153
+ "default": 2
154
+ }
155
+ }
156
+ }
157
+ },
158
+ {
159
+ "name": "text",
160
+ "props": {
161
+ "text": "Takeaway",
162
+ "style": "eyebrow",
163
+ "fontSize": {
164
+ "$theme": "/styles/eyebrow/fontSize",
165
+ "default": 10
166
+ },
167
+ "bold": true,
168
+ "x": "71%",
169
+ "y": "31%",
170
+ "w": "29%",
171
+ "h": "4.5%"
172
+ }
173
+ },
174
+ {
175
+ "name": "text",
176
+ "props": {
177
+ "text": {
178
+ "$slot": "/takeaway"
179
+ },
180
+ "style": "quote",
181
+ "fontSize": {
182
+ "$theme": "/styles/quote/fontSize",
183
+ "default": 18
184
+ },
185
+ "x": "71%",
186
+ "y": "37%",
187
+ "w": "29%",
188
+ "h": "54%",
189
+ "valign": "top",
190
+ "fit": {
191
+ "shrink": [16, 14, 12]
192
+ }
193
+ }
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "$if": "/source",
199
+ "then": [
200
+ {
201
+ "name": "shape",
202
+ "props": {
203
+ "type": "line",
204
+ "x": "0%",
205
+ "y": "93.5%",
206
+ "w": "100%",
207
+ "h": 0,
208
+ "line": {
209
+ "color": {
210
+ "$theme": "/palette/rule",
211
+ "default": "background2"
212
+ },
213
+ "width": 0.5
214
+ }
215
+ }
216
+ },
217
+ {
218
+ "name": "text",
219
+ "props": {
220
+ "text": {
221
+ "$slot": "/source"
222
+ },
223
+ "style": "source",
224
+ "fontSize": {
225
+ "$theme": "/styles/source/fontSize",
226
+ "default": 9
227
+ },
228
+ "x": "0%",
229
+ "y": "94.5%",
230
+ "w": "75%",
231
+ "h": "5%"
232
+ }
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ "name": "text",
238
+ "props": {
239
+ "text": "{PAGE_NUMBER} / {PAGE_COUNT}",
240
+ "style": "footer",
241
+ "fontSize": {
242
+ "$theme": "/styles/footer/fontSize",
243
+ "default": 9
244
+ },
245
+ "x": "88%",
246
+ "y": "96%",
247
+ "w": "12%",
248
+ "h": "4%",
249
+ "align": "right"
250
+ }
251
+ }
252
+ ]
253
+ }
254
+ ]
255
+ }
256
+ }
257
+ },
258
+ "children": [
259
+ {
260
+ "name": "slide",
261
+ "props": {
262
+ "meta": {
263
+ "title": "Cover"
264
+ },
265
+ "notes": "A coordinate-authored cover. The cover block itself is a later definition; direct authoring stays available beside blocks."
266
+ },
267
+ "children": [
268
+ {
269
+ "name": "shape",
270
+ "props": {
271
+ "type": "line",
272
+ "x": 0.5,
273
+ "y": 2.35,
274
+ "w": 2,
275
+ "h": 0,
276
+ "line": {
277
+ "color": "accent",
278
+ "width": 3
279
+ }
280
+ }
281
+ },
282
+ {
283
+ "name": "text",
284
+ "props": {
285
+ "text": "Example client · September 2026",
286
+ "style": "eyebrow",
287
+ "x": 0.5,
288
+ "y": 2.55,
289
+ "w": 12,
290
+ "h": 0.35
291
+ }
292
+ },
293
+ {
294
+ "name": "text",
295
+ "props": {
296
+ "text": "Growth improved as delivery became more reliable",
297
+ "style": "title",
298
+ "x": 0.5,
299
+ "y": 3.0,
300
+ "w": 11,
301
+ "h": 1.7,
302
+ "valign": "top"
303
+ }
304
+ },
305
+ {
306
+ "name": "text",
307
+ "props": {
308
+ "text": "Quarterly client performance review",
309
+ "style": "subtitle",
310
+ "x": 0.5,
311
+ "y": 4.8,
312
+ "w": 11,
313
+ "h": 0.5
314
+ }
315
+ },
316
+ {
317
+ "name": "text",
318
+ "props": {
319
+ "text": "Confidential",
320
+ "style": "footer",
321
+ "x": 0.5,
322
+ "y": 6.9,
323
+ "w": 4,
324
+ "h": 0.3
325
+ }
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "name": "slide",
331
+ "props": {
332
+ "meta": {
333
+ "title": "Revenue"
334
+ },
335
+ "notes": "One action-chart block. The title is the claim; the chart proves it; the takeaway says what to do about it."
336
+ },
337
+ "children": [
338
+ {
339
+ "name": "block",
340
+ "props": {
341
+ "ref": "action-chart",
342
+ "slots": {
343
+ "title": "Revenue grew 18% as on-time delivery reached 94% of contracted work",
344
+ "tracker": "Performance",
345
+ "chart": {
346
+ "name": "chart",
347
+ "props": {
348
+ "type": "bar",
349
+ "valAxisTitle": "Revenue (€m)",
350
+ "data": [
351
+ {
352
+ "name": "Revenue",
353
+ "labels": ["Q1", "Q2", "Q3", "Q4"],
354
+ "values": [4.2, 4.6, 5.1, 5.6]
355
+ },
356
+ {
357
+ "name": "Target",
358
+ "labels": ["Q1", "Q2", "Q3", "Q4"],
359
+ "values": [4.3, 4.5, 4.8, 5.0]
360
+ }
361
+ ]
362
+ }
363
+ },
364
+ "takeaway": "Reliability, not price, drove the gain: retained clients expanded scope in every quarter after delivery stabilised.",
365
+ "source": "Source: quarterly operating review, 2026."
366
+ }
367
+ }
368
+ }
369
+ ]
370
+ },
371
+ {
372
+ "name": "slide",
373
+ "props": {
374
+ "meta": {
375
+ "title": "Retention"
376
+ }
377
+ },
378
+ "children": [
379
+ {
380
+ "name": "block",
381
+ "props": {
382
+ "ref": "action-chart",
383
+ "slots": {
384
+ "title": "Churn fell to 6% once weekly ownership was assigned, and stayed there",
385
+ "tracker": "Retention",
386
+ "chart": {
387
+ "name": "chart",
388
+ "props": {
389
+ "type": "line",
390
+ "valAxisTitle": "Churn (%)",
391
+ "valAxisMinVal": 0,
392
+ "data": [
393
+ {
394
+ "name": "Churn",
395
+ "labels": ["Q1", "Q2", "Q3", "Q4"],
396
+ "values": [11, 8, 6, 6]
397
+ }
398
+ ]
399
+ }
400
+ },
401
+ "takeaway": "Named owners closed the gap between promise and delivery; the remaining churn is contract expiry, not dissatisfaction.",
402
+ "source": "Source: CRM export, September 2026."
403
+ }
404
+ }
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "name": "slide",
410
+ "props": {
411
+ "meta": {
412
+ "title": "Next quarter"
413
+ },
414
+ "notes": "A closing statement, coordinate-authored. Blocks and direct coordinates mix freely in one deck."
415
+ },
416
+ "children": [
417
+ {
418
+ "name": "text",
419
+ "props": {
420
+ "text": "Next quarter: protect retention first, then scale delivery capacity",
421
+ "style": "display",
422
+ "x": 0.5,
423
+ "y": 2.6,
424
+ "w": 12.333,
425
+ "h": 1.4,
426
+ "valign": "top"
427
+ }
428
+ },
429
+ {
430
+ "name": "text",
431
+ "props": {
432
+ "text": "Expansion now depends on delivery capacity, not on demand.",
433
+ "style": "quote",
434
+ "x": 0.5,
435
+ "y": 4.1,
436
+ "w": 9,
437
+ "h": 0.8
438
+ }
439
+ },
440
+ {
441
+ "name": "text",
442
+ "props": {
443
+ "text": "{PAGE_NUMBER} / {PAGE_COUNT}",
444
+ "style": "footer",
445
+ "x": 11.333,
446
+ "y": 6.9,
447
+ "w": 1.5,
448
+ "h": 0.3,
449
+ "align": "right"
450
+ }
451
+ }
452
+ ]
453
+ }
454
+ ]
455
+ }