@json-to-office/core-docx 4.5.0 → 5.4.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.
@@ -22,17 +22,38 @@
22
22
  "accent5": "#8A9299",
23
23
  "accent6": "#E8A18D"
24
24
  },
25
+ "palette": {
26
+ "rule": "#D8D5D1",
27
+ "textMuted": "#737373",
28
+ "onPrimary": "#FFFFFF",
29
+ "surfaceInverse": "#12191F",
30
+ "positive": "#2E7D4F",
31
+ "negative": "#B42318",
32
+ "chart": ["accent", "primary", "accent4", "accent5", "accent6", "rule"]
33
+ },
25
34
  "fonts": {
26
- "heading": { "family": "Helvetica", "size": 23 },
27
- "body": { "family": "Helvetica", "size": 9.5 },
28
- "mono": { "family": "Courier New", "size": 10 },
29
- "light": { "family": "Helvetica", "size": 23 }
35
+ "heading": {
36
+ "family": "Helvetica",
37
+ "size": 23
38
+ },
39
+ "body": {
40
+ "family": "Helvetica",
41
+ "size": 9.5
42
+ },
43
+ "mono": {
44
+ "family": "Courier New",
45
+ "size": 10
46
+ },
47
+ "light": {
48
+ "family": "Helvetica",
49
+ "size": 23
50
+ }
30
51
  },
31
52
  "page": {
32
53
  "size": "A4",
33
54
  "margins": {
34
- "top": 1440,
35
- "bottom": 1440,
55
+ "top": 1080,
56
+ "bottom": 1080,
36
57
  "left": 1080,
37
58
  "right": 1080,
38
59
  "header": 720,
@@ -40,13 +61,183 @@
40
61
  "gutter": 0
41
62
  }
42
63
  },
64
+ "typography": {
65
+ "roles": {
66
+ "eyebrow": {
67
+ "face": "heading",
68
+ "size": 8,
69
+ "weight": 700,
70
+ "case": "upper",
71
+ "tracking": 10,
72
+ "color": "accent",
73
+ "spaceAfter": 4
74
+ },
75
+ "display": {
76
+ "face": "heading",
77
+ "weight": 700,
78
+ "color": "primary",
79
+ "lineHeight": 1.05,
80
+ "spaceAfter": 8,
81
+ "tracking": -2
82
+ },
83
+ "stat": {
84
+ "face": "heading",
85
+ "weight": 700,
86
+ "color": "accent",
87
+ "lineHeight": 1
88
+ },
89
+ "quote": {
90
+ "face": "body",
91
+ "color": "textSecondary",
92
+ "lineHeight": 1.3
93
+ },
94
+ "label": {
95
+ "face": "body",
96
+ "size": 9,
97
+ "weight": 700,
98
+ "color": "textSecondary",
99
+ "case": "upper",
100
+ "tracking": 6
101
+ },
102
+ "footer": {
103
+ "face": "body",
104
+ "size": 8,
105
+ "color": "textMuted"
106
+ },
107
+ "tableHeader": {
108
+ "face": "body",
109
+ "size": 9,
110
+ "weight": 700,
111
+ "color": "secondary"
112
+ },
113
+ "tableCell": {
114
+ "face": "body",
115
+ "size": 9.5,
116
+ "color": "textPrimary"
117
+ },
118
+ "chartLabel": {
119
+ "face": "body",
120
+ "size": 9,
121
+ "weight": 400,
122
+ "color": "textSecondary"
123
+ },
124
+ "tracker": {
125
+ "face": "body",
126
+ "size": 8,
127
+ "case": "upper",
128
+ "tracking": 6,
129
+ "color": "textMuted"
130
+ },
131
+ "source": {
132
+ "face": "body",
133
+ "size": 8,
134
+ "color": "textMuted"
135
+ }
136
+ },
137
+ "scale": {
138
+ "a4": {
139
+ "base": 9.5,
140
+ "ratio": 1.2,
141
+ "baselinePt": 2
142
+ },
143
+ "letter": {
144
+ "base": 9.5,
145
+ "ratio": 1.2,
146
+ "baselinePt": 2
147
+ }
148
+ }
149
+ },
150
+ "spacing": {
151
+ "basePt": 7,
152
+ "blockGap": {
153
+ "tight": 3,
154
+ "normal": 7,
155
+ "loose": 14
156
+ },
157
+ "canvas": {
158
+ "a4": {
159
+ "safeAreaIn": 0.75,
160
+ "gutterIn": 0,
161
+ "columns": 12
162
+ },
163
+ "letter": {
164
+ "safeAreaIn": 0.75,
165
+ "gutterIn": 0,
166
+ "columns": 12
167
+ }
168
+ }
169
+ },
170
+ "chrome": {
171
+ "runningHead": {
172
+ "type": "tracker",
173
+ "color": "textMuted",
174
+ "rule": {
175
+ "weightPt": 0.5,
176
+ "color": "rule"
177
+ },
178
+ "alignment": "right"
179
+ },
180
+ "tracker": {
181
+ "type": "tracker",
182
+ "color": "textMuted",
183
+ "alignment": "right"
184
+ },
185
+ "actionTitle": {
186
+ "type": "display",
187
+ "color": "primary"
188
+ },
189
+ "keyTakeaways": {
190
+ "type": "label",
191
+ "color": "primary",
192
+ "rule": {
193
+ "weightPt": 1,
194
+ "color": "accent"
195
+ },
196
+ "padPt": 8
197
+ },
198
+ "sourceLine": {
199
+ "type": "source",
200
+ "color": "textMuted"
201
+ },
202
+ "confidentialFooter": {
203
+ "type": "footer",
204
+ "color": "textMuted",
205
+ "rule": {
206
+ "weightPt": 0.5,
207
+ "color": "rule"
208
+ },
209
+ "alignment": "left"
210
+ },
211
+ "logoSlot": {
212
+ "alignment": "right"
213
+ },
214
+ "cover": {
215
+ "type": "display",
216
+ "color": "primary",
217
+ "rule": {
218
+ "weightPt": 3,
219
+ "color": "accent"
220
+ }
221
+ }
222
+ },
223
+ "motif": {
224
+ "kind": "rule",
225
+ "color": "accent",
226
+ "weightPt": 2,
227
+ "placement": "top"
228
+ },
43
229
  "styles": {
44
230
  "normal": {
45
231
  "font": "body",
46
232
  "color": "textPrimary",
47
- "lineSpacing": { "type": "multiple", "value": 1.3 },
233
+ "lineSpacing": {
234
+ "type": "multiple",
235
+ "value": 1.3
236
+ },
48
237
  "alignment": "left",
49
- "spacing": { "after": 7 }
238
+ "spacing": {
239
+ "after": 7
240
+ }
50
241
  },
51
242
  "title": {
52
243
  "font": "heading",
@@ -54,9 +245,18 @@
54
245
  "bold": true,
55
246
  "color": "primary",
56
247
  "alignment": "left",
57
- "lineSpacing": { "type": "multiple", "value": 1.02 },
58
- "characterSpacing": { "type": "condensed", "value": 8 },
59
- "spacing": { "before": 0, "after": 10 }
248
+ "lineSpacing": {
249
+ "type": "multiple",
250
+ "value": 1.02
251
+ },
252
+ "characterSpacing": {
253
+ "type": "condensed",
254
+ "value": 8
255
+ },
256
+ "spacing": {
257
+ "before": 0,
258
+ "after": 10
259
+ }
60
260
  },
61
261
  "subtitle": {
62
262
  "font": "body",
@@ -64,16 +264,28 @@
64
264
  "italic": false,
65
265
  "color": "textSecondary",
66
266
  "alignment": "left",
67
- "lineSpacing": { "type": "multiple", "value": 1.25 },
68
- "spacing": { "before": 0, "after": 12 }
267
+ "lineSpacing": {
268
+ "type": "multiple",
269
+ "value": 1.25
270
+ },
271
+ "spacing": {
272
+ "before": 0,
273
+ "after": 12
274
+ }
69
275
  },
70
276
  "heading1": {
71
277
  "font": "heading",
72
278
  "size": 21,
73
279
  "bold": true,
74
280
  "color": "primary",
75
- "lineSpacing": { "type": "multiple", "value": 1.15 },
76
- "spacing": { "before": 26, "after": 12 },
281
+ "lineSpacing": {
282
+ "type": "multiple",
283
+ "value": 1.15
284
+ },
285
+ "spacing": {
286
+ "before": 26,
287
+ "after": 12
288
+ },
77
289
  "keepNext": true,
78
290
  "alignment": "left",
79
291
  "borders": {
@@ -90,8 +302,14 @@
90
302
  "size": 15.5,
91
303
  "bold": true,
92
304
  "color": "secondary",
93
- "lineSpacing": { "type": "multiple", "value": 1.15 },
94
- "spacing": { "before": 20, "after": 8 },
305
+ "lineSpacing": {
306
+ "type": "multiple",
307
+ "value": 1.15
308
+ },
309
+ "spacing": {
310
+ "before": 20,
311
+ "after": 8
312
+ },
95
313
  "keepNext": true,
96
314
  "alignment": "left"
97
315
  },
@@ -100,7 +318,10 @@
100
318
  "size": 12.5,
101
319
  "bold": true,
102
320
  "color": "secondary",
103
- "spacing": { "before": 14, "after": 6 },
321
+ "spacing": {
322
+ "before": 14,
323
+ "after": 6
324
+ },
104
325
  "keepNext": true,
105
326
  "alignment": "left"
106
327
  },
@@ -109,7 +330,10 @@
109
330
  "size": 11.5,
110
331
  "bold": true,
111
332
  "color": "textPrimary",
112
- "spacing": { "before": 12, "after": 4 },
333
+ "spacing": {
334
+ "before": 12,
335
+ "after": 4
336
+ },
113
337
  "keepNext": true,
114
338
  "alignment": "left"
115
339
  },
@@ -118,7 +342,10 @@
118
342
  "size": 10.5,
119
343
  "bold": true,
120
344
  "color": "secondary",
121
- "spacing": { "before": 10, "after": 4 },
345
+ "spacing": {
346
+ "before": 10,
347
+ "after": 4
348
+ },
122
349
  "keepNext": true,
123
350
  "alignment": "left"
124
351
  },
@@ -127,8 +354,14 @@
127
354
  "size": 10.5,
128
355
  "bold": false,
129
356
  "color": "textSecondary",
130
- "characterSpacing": { "type": "expanded", "value": 20 },
131
- "spacing": { "before": 10, "after": 4 },
357
+ "characterSpacing": {
358
+ "type": "expanded",
359
+ "value": 20
360
+ },
361
+ "spacing": {
362
+ "before": 10,
363
+ "after": 4
364
+ },
132
365
  "keepNext": true,
133
366
  "alignment": "left"
134
367
  },
@@ -137,24 +370,53 @@
137
370
  "size": 11,
138
371
  "bold": true,
139
372
  "color": "primary",
140
- "spacing": { "before": 5, "after": 3 },
141
- "tabStops": [{ "type": "right", "position": 9746, "leader": "dot" }]
373
+ "spacing": {
374
+ "before": 5,
375
+ "after": 3
376
+ },
377
+ "tabStops": [
378
+ {
379
+ "type": "right",
380
+ "position": 9746,
381
+ "leader": "dot"
382
+ }
383
+ ]
142
384
  },
143
385
  "TOC2": {
144
386
  "font": "body",
145
387
  "size": 10.5,
146
388
  "color": "textPrimary",
147
- "indent": { "left": 240 },
148
- "spacing": { "after": 2 },
149
- "tabStops": [{ "type": "right", "position": 9746, "leader": "dot" }]
389
+ "indent": {
390
+ "left": 240
391
+ },
392
+ "spacing": {
393
+ "after": 2
394
+ },
395
+ "tabStops": [
396
+ {
397
+ "type": "right",
398
+ "position": 9746,
399
+ "leader": "dot"
400
+ }
401
+ ]
150
402
  },
151
403
  "TOC3": {
152
404
  "font": "body",
153
405
  "size": 10,
154
406
  "color": "textSecondary",
155
- "indent": { "left": 480 },
156
- "spacing": { "after": 2 },
157
- "tabStops": [{ "type": "right", "position": 9746, "leader": "dot" }]
407
+ "indent": {
408
+ "left": 480
409
+ },
410
+ "spacing": {
411
+ "after": 2
412
+ },
413
+ "tabStops": [
414
+ {
415
+ "type": "right",
416
+ "position": 9746,
417
+ "leader": "dot"
418
+ }
419
+ ]
158
420
  }
159
421
  },
160
422
  "componentDefaults": {
@@ -162,22 +424,37 @@
162
424
  "width": 100,
163
425
  "borderColor": "#E2E0DD",
164
426
  "borderSize": 0.5,
165
- "hideBorders": { "left": true, "right": true, "insideVertical": true },
427
+ "hideBorders": {
428
+ "left": true,
429
+ "right": true,
430
+ "insideVertical": true
431
+ },
166
432
  "cellDefaults": {
167
- "padding": { "top": 3, "bottom": 3 }
433
+ "padding": {
434
+ "top": 3,
435
+ "bottom": 3
436
+ }
168
437
  },
169
438
  "headerCellDefaults": {
170
- "font": { "bold": true },
439
+ "font": {
440
+ "bold": true
441
+ },
171
442
  "color": "#172028",
172
443
  "backgroundColor": "#F7ECE7",
173
- "borderColor": { "bottom": "#D8D5D1" },
174
- "borderSize": { "bottom": 1 }
444
+ "borderColor": {
445
+ "bottom": "#D8D5D1"
446
+ },
447
+ "borderSize": {
448
+ "bottom": 1
449
+ }
175
450
  }
176
451
  },
177
452
  "list": {
178
453
  "format": "bullet",
179
454
  "bullet": "—",
180
- "spacing": { "item": 2 }
455
+ "spacing": {
456
+ "item": 2
457
+ }
181
458
  },
182
459
  "image": {
183
460
  "alignment": "center"
@@ -17,7 +17,19 @@
17
17
  "borderPrimary": "#C7C8CA",
18
18
  "borderSecondary": "#EFEAE4",
19
19
  "backgroundPrimary": "#FFFFFF",
20
- "backgroundSecondary": "#FAF7F5"
20
+ "backgroundSecondary": "#FAF7F5",
21
+ "accent4": "#F4857A",
22
+ "accent5": "#F9C4BE",
23
+ "accent6": "#939598"
24
+ },
25
+ "palette": {
26
+ "rule": "#C7C8CA",
27
+ "textMuted": "#939598",
28
+ "onPrimary": "#FFFFFF",
29
+ "surfaceInverse": "#282829",
30
+ "positive": "#2E7D4F",
31
+ "negative": "#B42318",
32
+ "chart": ["accent", "primary", "textMuted", "accent4", "rule", "accent5"]
21
33
  },
22
34
  "fonts": {
23
35
  "heading": {
@@ -40,15 +52,177 @@
40
52
  "page": {
41
53
  "size": "A4",
42
54
  "margins": {
43
- "top": 1360,
44
- "bottom": 1360,
45
- "left": 1180,
46
- "right": 1180,
55
+ "top": 1152,
56
+ "bottom": 1152,
57
+ "left": 1152,
58
+ "right": 1152,
47
59
  "header": 620,
48
60
  "footer": 620,
49
61
  "gutter": 0
50
62
  }
51
63
  },
64
+ "typography": {
65
+ "roles": {
66
+ "eyebrow": {
67
+ "face": "heading",
68
+ "size": 8,
69
+ "weight": 700,
70
+ "case": "upper",
71
+ "tracking": 8,
72
+ "color": "accent",
73
+ "spaceAfter": 4
74
+ },
75
+ "display": {
76
+ "face": "heading",
77
+ "weight": 700,
78
+ "color": "accent",
79
+ "lineHeight": 1.05,
80
+ "spaceAfter": 8
81
+ },
82
+ "stat": {
83
+ "face": "heading",
84
+ "weight": 700,
85
+ "color": "accent",
86
+ "lineHeight": 1
87
+ },
88
+ "quote": {
89
+ "face": "body",
90
+ "color": "textSecondary",
91
+ "lineHeight": 1.3
92
+ },
93
+ "label": {
94
+ "face": "body",
95
+ "size": 9,
96
+ "weight": 700,
97
+ "color": "textSecondary"
98
+ },
99
+ "footer": {
100
+ "face": "body",
101
+ "size": 8,
102
+ "color": "textMuted"
103
+ },
104
+ "tableHeader": {
105
+ "face": "body",
106
+ "size": 9.5,
107
+ "weight": 700,
108
+ "color": "accent"
109
+ },
110
+ "tableCell": {
111
+ "face": "body",
112
+ "size": 9.5,
113
+ "color": "textPrimary"
114
+ },
115
+ "chartLabel": {
116
+ "face": "body",
117
+ "size": 9,
118
+ "weight": 400,
119
+ "color": "textSecondary"
120
+ },
121
+ "tracker": {
122
+ "face": "body",
123
+ "size": 8,
124
+ "case": "upper",
125
+ "tracking": 6,
126
+ "color": "textMuted"
127
+ },
128
+ "source": {
129
+ "face": "body",
130
+ "size": 8,
131
+ "color": "textMuted"
132
+ }
133
+ },
134
+ "scale": {
135
+ "a4": {
136
+ "base": 10.5,
137
+ "ratio": 1.25,
138
+ "baselinePt": 2
139
+ },
140
+ "letter": {
141
+ "base": 10.5,
142
+ "ratio": 1.25,
143
+ "baselinePt": 2
144
+ }
145
+ }
146
+ },
147
+ "spacing": {
148
+ "basePt": 8,
149
+ "blockGap": {
150
+ "tight": 4,
151
+ "normal": 8,
152
+ "loose": 16
153
+ },
154
+ "canvas": {
155
+ "a4": {
156
+ "safeAreaIn": 0.8,
157
+ "gutterIn": 0,
158
+ "columns": 12
159
+ },
160
+ "letter": {
161
+ "safeAreaIn": 0.8,
162
+ "gutterIn": 0,
163
+ "columns": 12
164
+ }
165
+ }
166
+ },
167
+ "chrome": {
168
+ "runningHead": {
169
+ "type": "tracker",
170
+ "color": "textMuted",
171
+ "rule": {
172
+ "weightPt": 0.5,
173
+ "color": "rule"
174
+ },
175
+ "alignment": "right"
176
+ },
177
+ "tracker": {
178
+ "type": "tracker",
179
+ "color": "textMuted",
180
+ "alignment": "right"
181
+ },
182
+ "actionTitle": {
183
+ "type": "display",
184
+ "color": "primary"
185
+ },
186
+ "keyTakeaways": {
187
+ "type": "label",
188
+ "color": "primary",
189
+ "rule": {
190
+ "weightPt": 1.5,
191
+ "color": "accent"
192
+ },
193
+ "padPt": 8
194
+ },
195
+ "sourceLine": {
196
+ "type": "source",
197
+ "color": "textMuted"
198
+ },
199
+ "confidentialFooter": {
200
+ "type": "footer",
201
+ "color": "textMuted",
202
+ "rule": {
203
+ "weightPt": 0.5,
204
+ "color": "rule"
205
+ },
206
+ "alignment": "left"
207
+ },
208
+ "logoSlot": {
209
+ "alignment": "right"
210
+ },
211
+ "cover": {
212
+ "type": "display",
213
+ "color": "primary",
214
+ "rule": {
215
+ "weightPt": 4,
216
+ "color": "accent"
217
+ }
218
+ }
219
+ },
220
+ "motif": {
221
+ "kind": "rule",
222
+ "color": "accent",
223
+ "weightPt": 4,
224
+ "placement": "top"
225
+ },
52
226
  "styles": {
53
227
  "normal": {
54
228
  "font": "body",
@@ -181,23 +355,40 @@
181
355
  "insideVertical": true
182
356
  },
183
357
  "cellDefaults": {
184
- "font": { "size": 9.5 },
185
- "padding": { "top": 7, "bottom": 7 },
358
+ "font": {
359
+ "size": 9.5
360
+ },
361
+ "padding": {
362
+ "top": 7,
363
+ "bottom": 7
364
+ },
186
365
  "verticalAlignment": "middle"
187
366
  },
188
367
  "headerCellDefaults": {
189
368
  "color": "#EF4130",
190
- "font": { "size": 9.5, "bold": true },
191
- "padding": { "top": 0, "bottom": 8 },
369
+ "font": {
370
+ "size": 9.5,
371
+ "bold": true
372
+ },
373
+ "padding": {
374
+ "top": 0,
375
+ "bottom": 8
376
+ },
192
377
  "verticalAlignment": "bottom",
193
- "borderColor": { "bottom": "#EF4130" },
194
- "borderSize": { "bottom": 0.5 }
378
+ "borderColor": {
379
+ "bottom": "#EF4130"
380
+ },
381
+ "borderSize": {
382
+ "bottom": 0.5
383
+ }
195
384
  }
196
385
  },
197
386
  "list": {
198
387
  "format": "bullet",
199
388
  "bullet": "—",
200
- "spacing": { "item": 2 }
389
+ "spacing": {
390
+ "item": 2
391
+ }
201
392
  },
202
393
  "image": {
203
394
  "alignment": "center"