@openpresentation/opf 0.11.0 → 0.11.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/dist/{catalogs-atkOF4Vy.d.ts → catalogs-DJ-B5ZyD.d.ts} +78 -8
- package/dist/catalogs.d.ts +2 -2
- package/dist/catalogs.js +1 -1
- package/dist/{chunk-FTWNWFIV.js → chunk-6UPHKXI5.js} +310 -34
- package/dist/{chunk-6FU2KICU.js → chunk-7LF37SG3.js} +7084 -5106
- package/dist/{chunk-EQHZ3ZO4.js → chunk-BP6WMSSS.js} +3 -3
- package/dist/{chunk-FWA5XB45.js → chunk-KWIOQ3QR.js} +45 -25
- package/dist/{chunk-GN52EE3P.js → chunk-LTSDDBNW.js} +425 -40
- package/dist/{chunk-CHKJ4QHQ.js → chunk-M4GTWRK7.js} +113 -32
- package/dist/chunk-NPYN4TZ5.js +3516 -0
- package/dist/{chunk-RS5GZ5RW.js → chunk-SDETQV7Y.js} +161 -0
- package/dist/{composition-Tv9Wm3Oh.d.ts → composition-DzLwY-Mi.d.ts} +200 -4
- package/dist/composition.d.ts +1 -1
- package/dist/composition.js +1 -1
- package/dist/docs.js +50 -20
- package/dist/examples.d.ts +1 -1
- package/dist/examples.js +11 -11
- package/dist/font-policy.d.ts +123 -0
- package/dist/font-policy.js +1 -0
- package/dist/index.d.ts +129 -10
- package/dist/index.js +280 -12
- package/dist/lint.d.ts +3 -3
- package/dist/lint.js +5 -5
- package/dist/pagination.d.ts +5 -1
- package/dist/pagination.js +5 -5
- package/dist/{presentation-Ct42Mitb.d.ts → presentation-bceTClm8.d.ts} +246 -22
- package/dist/repo-readme.js +1 -1
- package/dist/{schemas-CiVmUT2p.d.ts → schemas-X_NniU4A.d.ts} +2 -0
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/catalogs/audiences/academic.json +24 -0
- package/dist/spec/catalogs/audiences/all-hands.json +3 -1
- package/dist/spec/catalogs/audiences/board.json +3 -1
- package/dist/spec/catalogs/audiences/customer.json +25 -0
- package/dist/spec/catalogs/audiences/executive.json +24 -0
- package/dist/spec/catalogs/audiences/general-public.json +25 -0
- package/dist/spec/catalogs/audiences/index.json +73 -1
- package/dist/spec/catalogs/audiences/internal-team.json +25 -0
- package/dist/spec/catalogs/audiences/investor.json +25 -0
- package/dist/spec/catalogs/audiences/marketing.json +25 -0
- package/dist/spec/catalogs/audiences/media.json +24 -0
- package/dist/spec/catalogs/audiences/partner.json +25 -0
- package/dist/spec/catalogs/audiences/regulatory.json +25 -0
- package/dist/spec/catalogs/audiences/sales.json +25 -0
- package/dist/spec/catalogs/audiences/technical.json +25 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar-2x.json +5 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar-3x.json +5 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar.json +5 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-column-2x.json +5 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-column-3x.json +5 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-column.json +5 -0
- package/dist/spec/catalogs/chart-types/100pct-progress-bar.json +10 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-area-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-area-3x.json +6 -1
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar-3x.json +6 -1
- package/dist/spec/catalogs/chart-types/100pct-stacked-column-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-column-3x.json +6 -1
- package/dist/spec/catalogs/chart-types/area.json +5 -0
- package/dist/spec/catalogs/chart-types/australia.json +10 -0
- package/dist/spec/catalogs/chart-types/bar.json +5 -0
- package/dist/spec/catalogs/chart-types/box-and-whisker-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/box-and-whisker-3x.json +10 -0
- package/dist/spec/catalogs/chart-types/box-and-whisker.json +5 -0
- package/dist/spec/catalogs/chart-types/bullet-bar-2x.json +5 -0
- package/dist/spec/catalogs/chart-types/bullet-bar-3x.json +5 -0
- package/dist/spec/catalogs/chart-types/bullet-bar.json +5 -0
- package/dist/spec/catalogs/chart-types/bullet-column-2x.json +5 -0
- package/dist/spec/catalogs/chart-types/bullet-column-3x.json +5 -0
- package/dist/spec/catalogs/chart-types/bullet-column.json +5 -0
- package/dist/spec/catalogs/chart-types/canada.json +10 -0
- package/dist/spec/catalogs/chart-types/clustered-bar-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/clustered-column.json +10 -0
- package/dist/spec/catalogs/chart-types/column.json +5 -0
- package/dist/spec/catalogs/chart-types/dot-plot-2x.json +5 -0
- package/dist/spec/catalogs/chart-types/dot-plot-3x.json +5 -0
- package/dist/spec/catalogs/chart-types/dot-plot-4x.json +5 -0
- package/dist/spec/catalogs/chart-types/dot-plot-5x.json +5 -0
- package/dist/spec/catalogs/chart-types/dot-plot-6x.json +5 -0
- package/dist/spec/catalogs/chart-types/dot-plot.json +5 -0
- package/dist/spec/catalogs/chart-types/doughnut.json +5 -0
- package/dist/spec/catalogs/chart-types/dumbbell.json +5 -0
- package/dist/spec/catalogs/chart-types/filled-radar.json +5 -0
- package/dist/spec/catalogs/chart-types/funnel.json +5 -0
- package/dist/spec/catalogs/chart-types/histogram.json +5 -0
- package/dist/spec/catalogs/chart-types/index.json +333 -233
- package/dist/spec/catalogs/chart-types/line-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/line-3x.json +10 -0
- package/dist/spec/catalogs/chart-types/line-with-high-low-and-markers.json +5 -0
- package/dist/spec/catalogs/chart-types/line-with-high-low.json +5 -0
- package/dist/spec/catalogs/chart-types/line-with-markers-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/line-with-markers-3x.json +10 -0
- package/dist/spec/catalogs/chart-types/line-with-markers.json +5 -0
- package/dist/spec/catalogs/chart-types/line.json +5 -0
- package/dist/spec/catalogs/chart-types/pareto.json +9 -14
- package/dist/spec/catalogs/chart-types/pie.json +5 -0
- package/dist/spec/catalogs/chart-types/radar-with-markers.json +5 -0
- package/dist/spec/catalogs/chart-types/radar.json +5 -0
- package/dist/spec/catalogs/chart-types/scatter.json +5 -0
- package/dist/spec/catalogs/chart-types/sparkline-2x.json +5 -0
- package/dist/spec/catalogs/chart-types/sparkline-3x.json +5 -0
- package/dist/spec/catalogs/chart-types/sparkline-4x.json +5 -0
- package/dist/spec/catalogs/chart-types/sparkline-5x.json +5 -0
- package/dist/spec/catalogs/chart-types/sparkline-6x.json +5 -0
- package/dist/spec/catalogs/chart-types/sparkline.json +5 -0
- package/dist/spec/catalogs/chart-types/stacked-area-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/stacked-area-3x.json +6 -1
- package/dist/spec/catalogs/chart-types/stacked-bar-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/stacked-bar-3x.json +6 -1
- package/dist/spec/catalogs/chart-types/stacked-column-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/stacked-column-3x.json +6 -1
- package/dist/spec/catalogs/chart-types/stacked-line-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/stacked-line-3x.json +6 -1
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers-3x.json +6 -1
- package/dist/spec/catalogs/chart-types/treemap-2x.json +10 -0
- package/dist/spec/catalogs/chart-types/treemap-3x.json +10 -0
- package/dist/spec/catalogs/chart-types/treemap.json +5 -0
- package/dist/spec/catalogs/chart-types/united-kingdom.json +10 -0
- package/dist/spec/catalogs/chart-types/united-states.json +10 -0
- package/dist/spec/catalogs/chart-types/waterfall.json +5 -0
- package/dist/spec/catalogs/chart-types/world.json +6 -1
- package/dist/spec/catalogs/font-schemes/consolas.json +3 -0
- package/dist/spec/catalogs/font-schemes/courier-new.json +3 -0
- package/dist/spec/catalogs/languages/afrikaans.json +3 -0
- package/dist/spec/catalogs/languages/albanian.json +3 -0
- package/dist/spec/catalogs/languages/amharic.json +3 -0
- package/dist/spec/catalogs/languages/arabic.json +3 -0
- package/dist/spec/catalogs/languages/armenian.json +3 -0
- package/dist/spec/catalogs/languages/aymara.json +3 -0
- package/dist/spec/catalogs/languages/azerbaijani.json +3 -0
- package/dist/spec/catalogs/languages/bengali.json +3 -0
- package/dist/spec/catalogs/languages/berber-latin.json +3 -0
- package/dist/spec/catalogs/languages/bosnian-latin.json +3 -0
- package/dist/spec/catalogs/languages/bulgarian.json +3 -0
- package/dist/spec/catalogs/languages/catalan.json +3 -0
- package/dist/spec/catalogs/languages/cebuano.json +3 -0
- package/dist/spec/catalogs/languages/chinese-simplified.json +3 -0
- package/dist/spec/catalogs/languages/chinese-traditional.json +3 -0
- package/dist/spec/catalogs/languages/chittagonian.json +3 -0
- package/dist/spec/catalogs/languages/croatian.json +3 -0
- package/dist/spec/catalogs/languages/czech.json +3 -0
- package/dist/spec/catalogs/languages/danish.json +3 -0
- package/dist/spec/catalogs/languages/dutch.json +3 -0
- package/dist/spec/catalogs/languages/english-au.json +3 -0
- package/dist/spec/catalogs/languages/english-ca.json +3 -0
- package/dist/spec/catalogs/languages/english-gb.json +3 -0
- package/dist/spec/catalogs/languages/english-in.json +3 -0
- package/dist/spec/catalogs/languages/english-us.json +3 -0
- package/dist/spec/catalogs/languages/english.json +3 -0
- package/dist/spec/catalogs/languages/estonian.json +3 -0
- package/dist/spec/catalogs/languages/filipino.json +3 -0
- package/dist/spec/catalogs/languages/finnish.json +3 -0
- package/dist/spec/catalogs/languages/french.json +3 -0
- package/dist/spec/catalogs/languages/fulfulde.json +3 -0
- package/dist/spec/catalogs/languages/galician.json +3 -0
- package/dist/spec/catalogs/languages/georgian.json +3 -0
- package/dist/spec/catalogs/languages/german.json +3 -0
- package/dist/spec/catalogs/languages/greek.json +3 -0
- package/dist/spec/catalogs/languages/gujarati.json +3 -0
- package/dist/spec/catalogs/languages/hausa.json +3 -0
- package/dist/spec/catalogs/languages/hebrew.json +3 -0
- package/dist/spec/catalogs/languages/hindi.json +3 -0
- package/dist/spec/catalogs/languages/hungarian.json +3 -0
- package/dist/spec/catalogs/languages/igbo.json +3 -0
- package/dist/spec/catalogs/languages/indonesian.json +3 -0
- package/dist/spec/catalogs/languages/italian.json +3 -0
- package/dist/spec/catalogs/languages/japanese.json +3 -0
- package/dist/spec/catalogs/languages/kannada.json +3 -0
- package/dist/spec/catalogs/languages/kazakh.json +3 -0
- package/dist/spec/catalogs/languages/khmer.json +3 -0
- package/dist/spec/catalogs/languages/kinyarwanda.json +3 -0
- package/dist/spec/catalogs/languages/korean.json +3 -0
- package/dist/spec/catalogs/languages/kurmanji.json +3 -0
- package/dist/spec/catalogs/languages/latvian.json +3 -0
- package/dist/spec/catalogs/languages/lithuanian.json +3 -0
- package/dist/spec/catalogs/languages/macedonian.json +3 -0
- package/dist/spec/catalogs/languages/malagasy.json +3 -0
- package/dist/spec/catalogs/languages/malay.json +3 -0
- package/dist/spec/catalogs/languages/malayalam.json +3 -0
- package/dist/spec/catalogs/languages/maori.json +3 -0
- package/dist/spec/catalogs/languages/marathi.json +3 -0
- package/dist/spec/catalogs/languages/mongolian.json +3 -0
- package/dist/spec/catalogs/languages/nepali.json +3 -0
- package/dist/spec/catalogs/languages/norwegian.json +3 -0
- package/dist/spec/catalogs/languages/odia.json +3 -0
- package/dist/spec/catalogs/languages/oromo.json +3 -0
- package/dist/spec/catalogs/languages/pashto.json +3 -0
- package/dist/spec/catalogs/languages/persian.json +3 -0
- package/dist/spec/catalogs/languages/polish.json +3 -0
- package/dist/spec/catalogs/languages/portuguese.json +3 -0
- package/dist/spec/catalogs/languages/punjabi-gurmukhi.json +3 -0
- package/dist/spec/catalogs/languages/punjabi-shahmukhi.json +3 -0
- package/dist/spec/catalogs/languages/romanian.json +3 -0
- package/dist/spec/catalogs/languages/russian.json +3 -0
- package/dist/spec/catalogs/languages/serbian-cyrillic.json +3 -0
- package/dist/spec/catalogs/languages/serbian-latin.json +3 -0
- package/dist/spec/catalogs/languages/shona.json +3 -0
- package/dist/spec/catalogs/languages/slovak.json +3 -0
- package/dist/spec/catalogs/languages/slovenian.json +3 -0
- package/dist/spec/catalogs/languages/somali.json +3 -0
- package/dist/spec/catalogs/languages/spanish.json +3 -0
- package/dist/spec/catalogs/languages/swahili.json +3 -0
- package/dist/spec/catalogs/languages/swedish.json +3 -0
- package/dist/spec/catalogs/languages/tagalog.json +3 -0
- package/dist/spec/catalogs/languages/tajik.json +3 -0
- package/dist/spec/catalogs/languages/tamil.json +3 -0
- package/dist/spec/catalogs/languages/telugu.json +3 -0
- package/dist/spec/catalogs/languages/thai.json +3 -0
- package/dist/spec/catalogs/languages/turkish.json +3 -0
- package/dist/spec/catalogs/languages/ukrainian.json +3 -0
- package/dist/spec/catalogs/languages/urdu.json +3 -0
- package/dist/spec/catalogs/languages/uzbek-latin.json +3 -0
- package/dist/spec/catalogs/languages/vietnamese-quoc-ngu.json +3 -0
- package/dist/spec/catalogs/languages/xhosa.json +3 -0
- package/dist/spec/catalogs/languages/yoruba.json +3 -0
- package/dist/spec/catalogs/languages/zulu.json +3 -0
- package/dist/spec/catalogs/narratives/change-story.json +64 -0
- package/dist/spec/catalogs/narratives/data-story.json +66 -0
- package/dist/spec/catalogs/narratives/heros-journey.json +64 -0
- package/dist/spec/catalogs/narratives/index.json +81 -0
- package/dist/spec/catalogs/narratives/pyramid-principle.json +48 -0
- package/dist/spec/catalogs/narratives/situation-complication-resolution.json +56 -0
- package/dist/spec/catalogs/narratives/sparkline.json +56 -0
- package/dist/spec/catalogs/narratives/star-method.json +56 -0
- package/dist/spec/catalogs/narratives/vision-roadmap.json +65 -0
- package/dist/spec/catalogs/narratives/what-so-what-now-what.json +48 -0
- package/dist/spec/reference/engine-defaults.json +2 -2
- package/dist/spec/reference/font-policy.json +3435 -0
- package/dist/spec/reference/font-policy.schema.json +328 -0
- package/dist/spec/schemas/chart-type.schema.json +51 -11
- package/dist/spec/schemas/font-scheme.schema.json +91 -1
- package/dist/spec/schemas/language.schema.json +10 -5
- package/dist/spec/schemas/opf.schema.json +158 -20
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/validator.d.ts +3 -3
- package/dist/validator.js +4 -4
- package/package.json +6 -2
|
@@ -6,6 +6,12 @@ var specFileEntries = [
|
|
|
6
6
|
"kind": "spec",
|
|
7
7
|
"mediaType": "text/markdown"
|
|
8
8
|
},
|
|
9
|
+
{
|
|
10
|
+
"path": "catalogs/audiences/academic.json",
|
|
11
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/academic.json",
|
|
12
|
+
"kind": "catalogRecord",
|
|
13
|
+
"mediaType": "application/json"
|
|
14
|
+
},
|
|
9
15
|
{
|
|
10
16
|
"path": "catalogs/audiences/all-hands.json",
|
|
11
17
|
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/all-hands.json",
|
|
@@ -24,6 +30,12 @@ var specFileEntries = [
|
|
|
24
30
|
"kind": "catalogRecord",
|
|
25
31
|
"mediaType": "application/json"
|
|
26
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"path": "catalogs/audiences/customer.json",
|
|
35
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/customer.json",
|
|
36
|
+
"kind": "catalogRecord",
|
|
37
|
+
"mediaType": "application/json"
|
|
38
|
+
},
|
|
27
39
|
{
|
|
28
40
|
"path": "catalogs/audiences/customers.json",
|
|
29
41
|
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/customers.json",
|
|
@@ -36,18 +48,42 @@ var specFileEntries = [
|
|
|
36
48
|
"kind": "catalogRecord",
|
|
37
49
|
"mediaType": "application/json"
|
|
38
50
|
},
|
|
51
|
+
{
|
|
52
|
+
"path": "catalogs/audiences/executive.json",
|
|
53
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/executive.json",
|
|
54
|
+
"kind": "catalogRecord",
|
|
55
|
+
"mediaType": "application/json"
|
|
56
|
+
},
|
|
39
57
|
{
|
|
40
58
|
"path": "catalogs/audiences/executives.json",
|
|
41
59
|
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/executives.json",
|
|
42
60
|
"kind": "catalogRecord",
|
|
43
61
|
"mediaType": "application/json"
|
|
44
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"path": "catalogs/audiences/general-public.json",
|
|
65
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/general-public.json",
|
|
66
|
+
"kind": "catalogRecord",
|
|
67
|
+
"mediaType": "application/json"
|
|
68
|
+
},
|
|
45
69
|
{
|
|
46
70
|
"path": "catalogs/audiences/index.json",
|
|
47
71
|
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/index.json",
|
|
48
72
|
"kind": "catalogIndex",
|
|
49
73
|
"mediaType": "application/json"
|
|
50
74
|
},
|
|
75
|
+
{
|
|
76
|
+
"path": "catalogs/audiences/internal-team.json",
|
|
77
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/internal-team.json",
|
|
78
|
+
"kind": "catalogRecord",
|
|
79
|
+
"mediaType": "application/json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"path": "catalogs/audiences/investor.json",
|
|
83
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/investor.json",
|
|
84
|
+
"kind": "catalogRecord",
|
|
85
|
+
"mediaType": "application/json"
|
|
86
|
+
},
|
|
51
87
|
{
|
|
52
88
|
"path": "catalogs/audiences/investors.json",
|
|
53
89
|
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/investors.json",
|
|
@@ -60,18 +96,54 @@ var specFileEntries = [
|
|
|
60
96
|
"kind": "catalogRecord",
|
|
61
97
|
"mediaType": "application/json"
|
|
62
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"path": "catalogs/audiences/marketing.json",
|
|
101
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/marketing.json",
|
|
102
|
+
"kind": "catalogRecord",
|
|
103
|
+
"mediaType": "application/json"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "catalogs/audiences/media.json",
|
|
107
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/media.json",
|
|
108
|
+
"kind": "catalogRecord",
|
|
109
|
+
"mediaType": "application/json"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"path": "catalogs/audiences/partner.json",
|
|
113
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/partner.json",
|
|
114
|
+
"kind": "catalogRecord",
|
|
115
|
+
"mediaType": "application/json"
|
|
116
|
+
},
|
|
63
117
|
{
|
|
64
118
|
"path": "catalogs/audiences/regulators.json",
|
|
65
119
|
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/regulators.json",
|
|
66
120
|
"kind": "catalogRecord",
|
|
67
121
|
"mediaType": "application/json"
|
|
68
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"path": "catalogs/audiences/regulatory.json",
|
|
125
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/regulatory.json",
|
|
126
|
+
"kind": "catalogRecord",
|
|
127
|
+
"mediaType": "application/json"
|
|
128
|
+
},
|
|
69
129
|
{
|
|
70
130
|
"path": "catalogs/audiences/sales-team.json",
|
|
71
131
|
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/sales-team.json",
|
|
72
132
|
"kind": "catalogRecord",
|
|
73
133
|
"mediaType": "application/json"
|
|
74
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"path": "catalogs/audiences/sales.json",
|
|
137
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/sales.json",
|
|
138
|
+
"kind": "catalogRecord",
|
|
139
|
+
"mediaType": "application/json"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"path": "catalogs/audiences/technical.json",
|
|
143
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/audiences/technical.json",
|
|
144
|
+
"kind": "catalogRecord",
|
|
145
|
+
"mediaType": "application/json"
|
|
146
|
+
},
|
|
75
147
|
{
|
|
76
148
|
"path": "catalogs/chart-types/100pct-bullet-bar-2x.json",
|
|
77
149
|
"packagePath": "@openpresentation/opf/spec/catalogs/chart-types/100pct-bullet-bar-2x.json",
|
|
@@ -1950,6 +2022,12 @@ var specFileEntries = [
|
|
|
1950
2022
|
"kind": "catalogRecord",
|
|
1951
2023
|
"mediaType": "application/json"
|
|
1952
2024
|
},
|
|
2025
|
+
{
|
|
2026
|
+
"path": "catalogs/narratives/change-story.json",
|
|
2027
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/change-story.json",
|
|
2028
|
+
"kind": "catalogRecord",
|
|
2029
|
+
"mediaType": "application/json"
|
|
2030
|
+
},
|
|
1953
2031
|
{
|
|
1954
2032
|
"path": "catalogs/narratives/classic-story.json",
|
|
1955
2033
|
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/classic-story.json",
|
|
@@ -1968,6 +2046,12 @@ var specFileEntries = [
|
|
|
1968
2046
|
"kind": "catalogRecord",
|
|
1969
2047
|
"mediaType": "application/json"
|
|
1970
2048
|
},
|
|
2049
|
+
{
|
|
2050
|
+
"path": "catalogs/narratives/data-story.json",
|
|
2051
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/data-story.json",
|
|
2052
|
+
"kind": "catalogRecord",
|
|
2053
|
+
"mediaType": "application/json"
|
|
2054
|
+
},
|
|
1971
2055
|
{
|
|
1972
2056
|
"path": "catalogs/narratives/early-startup-pitch.json",
|
|
1973
2057
|
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/early-startup-pitch.json",
|
|
@@ -2004,6 +2088,12 @@ var specFileEntries = [
|
|
|
2004
2088
|
"kind": "catalogRecord",
|
|
2005
2089
|
"mediaType": "application/json"
|
|
2006
2090
|
},
|
|
2091
|
+
{
|
|
2092
|
+
"path": "catalogs/narratives/heros-journey.json",
|
|
2093
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/heros-journey.json",
|
|
2094
|
+
"kind": "catalogRecord",
|
|
2095
|
+
"mediaType": "application/json"
|
|
2096
|
+
},
|
|
2007
2097
|
{
|
|
2008
2098
|
"path": "catalogs/narratives/index.json",
|
|
2009
2099
|
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/index.json",
|
|
@@ -2076,6 +2166,12 @@ var specFileEntries = [
|
|
|
2076
2166
|
"kind": "catalogRecord",
|
|
2077
2167
|
"mediaType": "application/json"
|
|
2078
2168
|
},
|
|
2169
|
+
{
|
|
2170
|
+
"path": "catalogs/narratives/pyramid-principle.json",
|
|
2171
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/pyramid-principle.json",
|
|
2172
|
+
"kind": "catalogRecord",
|
|
2173
|
+
"mediaType": "application/json"
|
|
2174
|
+
},
|
|
2079
2175
|
{
|
|
2080
2176
|
"path": "catalogs/narratives/qbr.json",
|
|
2081
2177
|
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/qbr.json",
|
|
@@ -2100,6 +2196,24 @@ var specFileEntries = [
|
|
|
2100
2196
|
"kind": "catalogRecord",
|
|
2101
2197
|
"mediaType": "application/json"
|
|
2102
2198
|
},
|
|
2199
|
+
{
|
|
2200
|
+
"path": "catalogs/narratives/situation-complication-resolution.json",
|
|
2201
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/situation-complication-resolution.json",
|
|
2202
|
+
"kind": "catalogRecord",
|
|
2203
|
+
"mediaType": "application/json"
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
"path": "catalogs/narratives/sparkline.json",
|
|
2207
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/sparkline.json",
|
|
2208
|
+
"kind": "catalogRecord",
|
|
2209
|
+
"mediaType": "application/json"
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
"path": "catalogs/narratives/star-method.json",
|
|
2213
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/star-method.json",
|
|
2214
|
+
"kind": "catalogRecord",
|
|
2215
|
+
"mediaType": "application/json"
|
|
2216
|
+
},
|
|
2103
2217
|
{
|
|
2104
2218
|
"path": "catalogs/narratives/status-update.json",
|
|
2105
2219
|
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/status-update.json",
|
|
@@ -2154,12 +2268,24 @@ var specFileEntries = [
|
|
|
2154
2268
|
"kind": "catalogRecord",
|
|
2155
2269
|
"mediaType": "application/json"
|
|
2156
2270
|
},
|
|
2271
|
+
{
|
|
2272
|
+
"path": "catalogs/narratives/vision-roadmap.json",
|
|
2273
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/vision-roadmap.json",
|
|
2274
|
+
"kind": "catalogRecord",
|
|
2275
|
+
"mediaType": "application/json"
|
|
2276
|
+
},
|
|
2157
2277
|
{
|
|
2158
2278
|
"path": "catalogs/narratives/weekly-progress.json",
|
|
2159
2279
|
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/weekly-progress.json",
|
|
2160
2280
|
"kind": "catalogRecord",
|
|
2161
2281
|
"mediaType": "application/json"
|
|
2162
2282
|
},
|
|
2283
|
+
{
|
|
2284
|
+
"path": "catalogs/narratives/what-so-what-now-what.json",
|
|
2285
|
+
"packagePath": "@openpresentation/opf/spec/catalogs/narratives/what-so-what-now-what.json",
|
|
2286
|
+
"kind": "catalogRecord",
|
|
2287
|
+
"mediaType": "application/json"
|
|
2288
|
+
},
|
|
2163
2289
|
{
|
|
2164
2290
|
"path": "catalogs/purposes/align.json",
|
|
2165
2291
|
"packagePath": "@openpresentation/opf/spec/catalogs/purposes/align.json",
|
|
@@ -2802,6 +2928,18 @@ var specFileEntries = [
|
|
|
2802
2928
|
"kind": "reference",
|
|
2803
2929
|
"mediaType": "application/json"
|
|
2804
2930
|
},
|
|
2931
|
+
{
|
|
2932
|
+
"path": "reference/font-policy.json",
|
|
2933
|
+
"packagePath": "@openpresentation/opf/spec/reference/font-policy.json",
|
|
2934
|
+
"kind": "reference",
|
|
2935
|
+
"mediaType": "application/json"
|
|
2936
|
+
},
|
|
2937
|
+
{
|
|
2938
|
+
"path": "reference/font-policy.schema.json",
|
|
2939
|
+
"packagePath": "@openpresentation/opf/spec/reference/font-policy.schema.json",
|
|
2940
|
+
"kind": "reference",
|
|
2941
|
+
"mediaType": "application/json"
|
|
2942
|
+
},
|
|
2805
2943
|
{
|
|
2806
2944
|
"path": "schemas/audience.schema.json",
|
|
2807
2945
|
"packagePath": "@openpresentation/opf/spec/schemas/audience.schema.json",
|
|
@@ -2889,17 +3027,29 @@ var specFileEntries = [
|
|
|
2889
3027
|
];
|
|
2890
3028
|
var specFilePaths = [
|
|
2891
3029
|
"README.md",
|
|
3030
|
+
"catalogs/audiences/academic.json",
|
|
2892
3031
|
"catalogs/audiences/all-hands.json",
|
|
2893
3032
|
"catalogs/audiences/board.json",
|
|
2894
3033
|
"catalogs/audiences/candidates.json",
|
|
3034
|
+
"catalogs/audiences/customer.json",
|
|
2895
3035
|
"catalogs/audiences/customers.json",
|
|
2896
3036
|
"catalogs/audiences/engineering-team.json",
|
|
3037
|
+
"catalogs/audiences/executive.json",
|
|
2897
3038
|
"catalogs/audiences/executives.json",
|
|
3039
|
+
"catalogs/audiences/general-public.json",
|
|
2898
3040
|
"catalogs/audiences/index.json",
|
|
3041
|
+
"catalogs/audiences/internal-team.json",
|
|
3042
|
+
"catalogs/audiences/investor.json",
|
|
2899
3043
|
"catalogs/audiences/investors.json",
|
|
2900
3044
|
"catalogs/audiences/marketing-team.json",
|
|
3045
|
+
"catalogs/audiences/marketing.json",
|
|
3046
|
+
"catalogs/audiences/media.json",
|
|
3047
|
+
"catalogs/audiences/partner.json",
|
|
2901
3048
|
"catalogs/audiences/regulators.json",
|
|
3049
|
+
"catalogs/audiences/regulatory.json",
|
|
2902
3050
|
"catalogs/audiences/sales-team.json",
|
|
3051
|
+
"catalogs/audiences/sales.json",
|
|
3052
|
+
"catalogs/audiences/technical.json",
|
|
2903
3053
|
"catalogs/chart-types/100pct-bullet-bar-2x.json",
|
|
2904
3054
|
"catalogs/chart-types/100pct-bullet-bar-3x.json",
|
|
2905
3055
|
"catalogs/chart-types/100pct-bullet-bar.json",
|
|
@@ -3213,15 +3363,18 @@ var specFilePaths = [
|
|
|
3213
3363
|
"catalogs/narratives/business-review.json",
|
|
3214
3364
|
"catalogs/narratives/capacity-planning.json",
|
|
3215
3365
|
"catalogs/narratives/challenge-resolution.json",
|
|
3366
|
+
"catalogs/narratives/change-story.json",
|
|
3216
3367
|
"catalogs/narratives/classic-story.json",
|
|
3217
3368
|
"catalogs/narratives/company-intro.json",
|
|
3218
3369
|
"catalogs/narratives/conference-talk.json",
|
|
3370
|
+
"catalogs/narratives/data-story.json",
|
|
3219
3371
|
"catalogs/narratives/early-startup-pitch.json",
|
|
3220
3372
|
"catalogs/narratives/educate.json",
|
|
3221
3373
|
"catalogs/narratives/employee-review.json",
|
|
3222
3374
|
"catalogs/narratives/failure-analysis.json",
|
|
3223
3375
|
"catalogs/narratives/focus.json",
|
|
3224
3376
|
"catalogs/narratives/golden-circle.json",
|
|
3377
|
+
"catalogs/narratives/heros-journey.json",
|
|
3225
3378
|
"catalogs/narratives/index.json",
|
|
3226
3379
|
"catalogs/narratives/innovation.json",
|
|
3227
3380
|
"catalogs/narratives/justice.json",
|
|
@@ -3234,10 +3387,14 @@ var specFilePaths = [
|
|
|
3234
3387
|
"catalogs/narratives/problem-solution.json",
|
|
3235
3388
|
"catalogs/narratives/product-launch.json",
|
|
3236
3389
|
"catalogs/narratives/project-proposal.json",
|
|
3390
|
+
"catalogs/narratives/pyramid-principle.json",
|
|
3237
3391
|
"catalogs/narratives/qbr.json",
|
|
3238
3392
|
"catalogs/narratives/rags-to-riches.json",
|
|
3239
3393
|
"catalogs/narratives/reveal.json",
|
|
3240
3394
|
"catalogs/narratives/scqa.json",
|
|
3395
|
+
"catalogs/narratives/situation-complication-resolution.json",
|
|
3396
|
+
"catalogs/narratives/sparkline.json",
|
|
3397
|
+
"catalogs/narratives/star-method.json",
|
|
3241
3398
|
"catalogs/narratives/status-update.json",
|
|
3242
3399
|
"catalogs/narratives/strategic-advisory.json",
|
|
3243
3400
|
"catalogs/narratives/strategic-narrative.json",
|
|
@@ -3247,7 +3404,9 @@ var specFilePaths = [
|
|
|
3247
3404
|
"catalogs/narratives/trend-analysis.json",
|
|
3248
3405
|
"catalogs/narratives/underdog-victory.json",
|
|
3249
3406
|
"catalogs/narratives/venture-pitch.json",
|
|
3407
|
+
"catalogs/narratives/vision-roadmap.json",
|
|
3250
3408
|
"catalogs/narratives/weekly-progress.json",
|
|
3409
|
+
"catalogs/narratives/what-so-what-now-what.json",
|
|
3251
3410
|
"catalogs/purposes/align.json",
|
|
3252
3411
|
"catalogs/purposes/decide.json",
|
|
3253
3412
|
"catalogs/purposes/educate.json",
|
|
@@ -3355,6 +3514,8 @@ var specFilePaths = [
|
|
|
3355
3514
|
"previews/layouts/waterfall-bridge.html",
|
|
3356
3515
|
"previews/layouts/wheel-radial.html",
|
|
3357
3516
|
"reference/engine-defaults.json",
|
|
3517
|
+
"reference/font-policy.json",
|
|
3518
|
+
"reference/font-policy.schema.json",
|
|
3358
3519
|
"schemas/audience.schema.json",
|
|
3359
3520
|
"schemas/catalog-index.schema.json",
|
|
3360
3521
|
"schemas/chart-type.schema.json",
|
|
@@ -41,6 +41,36 @@ declare function tableGrid(value: unknown, path?: string): TableGrid;
|
|
|
41
41
|
/** Row boundaries that preserve every vertical merge, used by pagination. */
|
|
42
42
|
declare function tableRowBoundaries(value: unknown): number[];
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Deterministic header/footer field formatting. Nothing here consults a clock,
|
|
46
|
+
* the host locale or the host time zone: dates are calendar dates supplied by the
|
|
47
|
+
* document or the host, and month/weekday names are fixed English names.
|
|
48
|
+
*/
|
|
49
|
+
/** A live field inside displayed furniture text, as half-open UTF-16 offsets into the part's `text`. */
|
|
50
|
+
interface FurnitureField {
|
|
51
|
+
type: 'slideNumber' | 'date';
|
|
52
|
+
start: number;
|
|
53
|
+
end: number;
|
|
54
|
+
/** Resolved date pattern for a current (`date: true`) date. */
|
|
55
|
+
format?: string;
|
|
56
|
+
}
|
|
57
|
+
/** PowerPoint's first Insert > Date and Time choice for en-US (`datetime1`). */
|
|
58
|
+
declare const DEFAULT_FURNITURE_DATE_FORMAT = "M/d/yyyy";
|
|
59
|
+
declare const DEFAULT_SLIDE_NUMBER_FORMAT = "{current}";
|
|
60
|
+
/** Format an ISO calendar date with an LDML-style pattern. Returns an error message when either input is unsupported. */
|
|
61
|
+
declare function formatFurnitureDate(iso: string, pattern: string): {
|
|
62
|
+
text: string;
|
|
63
|
+
} | {
|
|
64
|
+
error: string;
|
|
65
|
+
};
|
|
66
|
+
/** Resolve a slide-number template. `{current}` becomes a live field; `{total}` is fixed text. */
|
|
67
|
+
declare function formatSlideNumber(format: string, current: number, total: number | undefined): {
|
|
68
|
+
text: string;
|
|
69
|
+
fields: FurnitureField[];
|
|
70
|
+
} | {
|
|
71
|
+
error: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
44
74
|
/** Normalize a literal hex color to uppercase #RRGGBB. */
|
|
45
75
|
declare function normalizeHexColor(value: unknown): string | undefined;
|
|
46
76
|
type ResolveColorRefRoles = Partial<Record<'primary' | 'secondary' | 'accent' | 'background' | 'surface' | 'text' | 'textSecondary', string>>;
|
|
@@ -88,7 +118,7 @@ interface LayoutBox {
|
|
|
88
118
|
height: number;
|
|
89
119
|
}
|
|
90
120
|
interface LayoutDiagnostic {
|
|
91
|
-
code: "text-overflow" | "small-cell" | "unresolved-content";
|
|
121
|
+
code: "text-overflow" | "small-cell" | "unresolved-content" | "unsupported-image-treatment";
|
|
92
122
|
path: string;
|
|
93
123
|
message: string;
|
|
94
124
|
}
|
|
@@ -110,6 +140,36 @@ interface FontFamilies {
|
|
|
110
140
|
body: string;
|
|
111
141
|
code: string;
|
|
112
142
|
}
|
|
143
|
+
/** Shared last-resort font-scheme id when neither the slide, the deck nor the resolved theme names one.
|
|
144
|
+
* One default for every engine, so preview matches export (font-fidelity-everywhere owner decision). */
|
|
145
|
+
declare const DEFAULT_FONT_SCHEME = "aptos";
|
|
146
|
+
/** Reported when a font-scheme id matches no inline or bundled record. Every engine then uses the
|
|
147
|
+
* DEFAULT_FONT_SCHEME record as the base, with any sibling overrides on top. */
|
|
148
|
+
interface FontSchemeDiagnostic {
|
|
149
|
+
code: "unresolved-font-scheme";
|
|
150
|
+
/** Where the unresolved id is written: `slides.N.design.fontScheme`, `design.fontScheme`, or the
|
|
151
|
+
* `design.theme` reference whose record names it. */
|
|
152
|
+
path: string;
|
|
153
|
+
message: string;
|
|
154
|
+
/** The unresolved font-scheme id. */
|
|
155
|
+
id: string;
|
|
156
|
+
/** The font scheme used instead (DEFAULT_FONT_SCHEME). */
|
|
157
|
+
fallback: string;
|
|
158
|
+
}
|
|
159
|
+
interface ResolvedFontScheme {
|
|
160
|
+
scheme: Record<string, unknown>;
|
|
161
|
+
diagnostic?: FontSchemeDiagnostic;
|
|
162
|
+
}
|
|
163
|
+
/** Resolve a font-scheme reference the same way in every engine. A string id, or the `id` of an object
|
|
164
|
+
* reference, resolves through `lookup` (inline records, then bundled or host catalogs). An unresolved id
|
|
165
|
+
* returns a diagnostic, and the DEFAULT_FONT_SCHEME record becomes the base, so preview and export use
|
|
166
|
+
* the same families. An object without `id` is an inline scheme on the same base. Sibling fields on an
|
|
167
|
+
* object reference override the base per key. */
|
|
168
|
+
declare function resolveFontSchemeReference(reference: unknown, lookup: (id: string) => unknown, path?: string): ResolvedFontScheme;
|
|
169
|
+
/** Resolve role families from an already-merged font scheme (catalog record plus design overrides).
|
|
170
|
+
* A scheme that names no heading or body family gets the DEFAULT_FONT_SCHEME families (Aptos Display, Aptos).
|
|
171
|
+
* `code` comes from the scheme's `code` role, which catalog records such as consolas and courier-new
|
|
172
|
+
* carry; otherwise it is Roboto Mono. Heading and body families are never reused for code. */
|
|
113
173
|
declare function resolveFontFamilies(input: unknown): FontFamilies;
|
|
114
174
|
interface TextMeasurement {
|
|
115
175
|
measure: (text: string, fontSize: number, style: TextStyle) => number;
|
|
@@ -177,6 +237,69 @@ interface ComposedItem {
|
|
|
177
237
|
timelineLayout?: TimelineLayout;
|
|
178
238
|
/** Effective container settings, including inherited readability constraints. */
|
|
179
239
|
composition: Composition;
|
|
240
|
+
/**
|
|
241
|
+
* Resolved horizontal text alignment for this item: titleAlignment for the
|
|
242
|
+
* title, contentAlignment for every other item (slide design, then host
|
|
243
|
+
* option, then left). Engines anchor native and preview text to this value.
|
|
244
|
+
*/
|
|
245
|
+
alignment: 'left' | 'center' | 'right';
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Slide-level image resolved from design.slideImage. It is active when the slide sets its own
|
|
249
|
+
* design.slideImage, or when the deck sets one and either the slide's layout record declares
|
|
250
|
+
* slideImage: true or the slide's root image is the same source.
|
|
251
|
+
* Content composes in the part of the slide the image does not occupy; 'background' leaves the whole slide.
|
|
252
|
+
*/
|
|
253
|
+
interface ComposedSlideImage {
|
|
254
|
+
/** The design value that configured the image: 'design.slideImage' or 'slides.N.design.slideImage'. */
|
|
255
|
+
path: string;
|
|
256
|
+
/** Path of the drawn asset value: the design value, or the slide's root image payload it replaced. */
|
|
257
|
+
sourcePath: string;
|
|
258
|
+
/** Asset value (string or Asset object) that engines resolve like any other image. */
|
|
259
|
+
value: unknown;
|
|
260
|
+
position: 'background' | 'top' | 'bottom' | 'left' | 'right';
|
|
261
|
+
/** crop covers the frame (centered); fit shows the whole image centered inside it. */
|
|
262
|
+
fill: 'crop' | 'fit';
|
|
263
|
+
/** Band allocated to the image. */
|
|
264
|
+
region: LayoutBox;
|
|
265
|
+
/** Image frame inside the region. */
|
|
266
|
+
box: LayoutBox;
|
|
267
|
+
/** True when the slide's root image payload became this slide image instead of a content item. */
|
|
268
|
+
replacesContent: boolean;
|
|
269
|
+
/** Treatment alt text; engines fall back to the asset's own alt text. */
|
|
270
|
+
alt?: string;
|
|
271
|
+
/** Mask on the frame: a DrawingML preset with its guide values, and the same outline as an SVG path. */
|
|
272
|
+
shape: SlideImageShape;
|
|
273
|
+
/** Line centered on the shape outline; width in reference pixels (already scaled to the canvas). */
|
|
274
|
+
border?: {
|
|
275
|
+
color: unknown;
|
|
276
|
+
width: number;
|
|
277
|
+
};
|
|
278
|
+
/** Image opacity below 1; the border and overlay are not affected. */
|
|
279
|
+
opacity?: number;
|
|
280
|
+
/** Luminance-based recolor (Rec. 601 weights on sRGB values). */
|
|
281
|
+
recolor?: {
|
|
282
|
+
type: 'grayscale';
|
|
283
|
+
} | {
|
|
284
|
+
type: 'duotone';
|
|
285
|
+
dark: unknown;
|
|
286
|
+
light: unknown;
|
|
287
|
+
};
|
|
288
|
+
/** Scrim over the frame (same shape) or over an edge band of a rectangle frame. */
|
|
289
|
+
overlay?: {
|
|
290
|
+
color: unknown;
|
|
291
|
+
opacity: number;
|
|
292
|
+
box: LayoutBox;
|
|
293
|
+
shape: SlideImageShape;
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
/** A frame mask. path follows the ECMA-376 preset formula for preset/adjust exactly, in reference pixels. */
|
|
297
|
+
interface SlideImageShape {
|
|
298
|
+
kind: 'rectangle' | 'rounded' | 'circle' | 'hexagon';
|
|
299
|
+
preset: 'rect' | 'roundRect' | 'ellipse' | 'hexagon';
|
|
300
|
+
/** DrawingML avLst guide values (for example adj and vf), in 1/100000 units. */
|
|
301
|
+
adjust: Record<string, number>;
|
|
302
|
+
path: string;
|
|
180
303
|
}
|
|
181
304
|
interface ComposedGroup {
|
|
182
305
|
path: string;
|
|
@@ -245,19 +368,39 @@ interface SlideComposition {
|
|
|
245
368
|
composition: Composition;
|
|
246
369
|
/** Repeated furniture is measured separately from body pagination leaves. */
|
|
247
370
|
furniture?: FurnitureLayout;
|
|
371
|
+
/** Active slide-level image; absent when design.slideImage does not apply to this slide. */
|
|
372
|
+
slideImage?: ComposedSlideImage;
|
|
248
373
|
explanation?: CompositionExplanation;
|
|
249
374
|
}
|
|
250
375
|
interface ComposeSlideOptions {
|
|
251
|
-
/** Context for inherited furniture
|
|
376
|
+
/** Context for inherited furniture, generated organization names and social profiles. */
|
|
252
377
|
presentation?: {
|
|
253
378
|
design?: {
|
|
254
379
|
header?: unknown;
|
|
255
380
|
footer?: unknown;
|
|
381
|
+
slideImage?: unknown;
|
|
382
|
+
imageFill?: unknown;
|
|
256
383
|
};
|
|
257
384
|
organization?: unknown;
|
|
385
|
+
slides?: unknown;
|
|
386
|
+
catalogs?: unknown;
|
|
258
387
|
};
|
|
388
|
+
/**
|
|
389
|
+
* Host-resolved social-platform records for generated `socials` furniture.
|
|
390
|
+
* Inline `presentation.catalogs.socialPlatforms.records` take precedence. Hosts
|
|
391
|
+
* normally pass the bundled catalog; without a matching record a handle renders
|
|
392
|
+
* as its raw value, as the Socials contract specifies.
|
|
393
|
+
*/
|
|
394
|
+
socialPlatforms?: readonly SocialPlatformRecord[];
|
|
259
395
|
/** One-based displayed number; source paths still use slideIndex. */
|
|
260
396
|
slideNumber?: number;
|
|
397
|
+
/** Displayed slide count for `{total}` in slideNumberFormat. Defaults to `presentation.slides.length`. */
|
|
398
|
+
slideCount?: number;
|
|
399
|
+
/**
|
|
400
|
+
* Host-supplied current calendar date (ISO YYYY-MM-DD) for `date: true` furniture. Core never
|
|
401
|
+
* consults a clock; without this option a current date is reported as unresolved content.
|
|
402
|
+
*/
|
|
403
|
+
date?: string;
|
|
261
404
|
fonts?: Partial<FontFamilies>;
|
|
262
405
|
/** Host-resolved alignment for shared content; slide design can override it. */
|
|
263
406
|
contentAlignment?: 'left' | 'center' | 'right';
|
|
@@ -280,10 +423,15 @@ declare class OPFCompositionError extends Error {
|
|
|
280
423
|
readonly explanation?: CompositionExplanation;
|
|
281
424
|
constructor(diagnostics: LayoutDiagnostic[], explanation?: CompositionExplanation);
|
|
282
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* Outline of a DrawingML preset in a box, following the ECMA-376 presetShapeDefinitions formulas:
|
|
428
|
+
* roundRect (adj; ss = min(w,h), radius = ss*adj/100000), ellipse, and hexagon (adj, vf).
|
|
429
|
+
*/
|
|
430
|
+
declare function slideImageShape(kind: SlideImageShape['kind'], box: LayoutBox, cornerRadius?: number): SlideImageShape;
|
|
283
431
|
interface FurniturePartBase {
|
|
284
432
|
kind: 'header' | 'footer';
|
|
285
433
|
zone: 'left' | 'center' | 'right';
|
|
286
|
-
field: 'text' | 'image' | 'organization' | 'section' | 'slideNumber' | 'date';
|
|
434
|
+
field: 'text' | 'image' | 'organization' | 'socials' | 'section' | 'slideNumber' | 'date';
|
|
287
435
|
/** Literal field or controlling flag, with the actual inherited/local path. */
|
|
288
436
|
path: string;
|
|
289
437
|
/** String/asset source, when different from a generated field's flag. */
|
|
@@ -299,7 +447,53 @@ interface FurnitureTextPart extends FurniturePartBase {
|
|
|
299
447
|
requestedFontSize: number;
|
|
300
448
|
minFontSize: number;
|
|
301
449
|
fit: SourceTextFit;
|
|
450
|
+
/**
|
|
451
|
+
* Live values inside `text`: every `{current}` slide number, and a whole current
|
|
452
|
+
* (`date: true`) date. Hosts such as PPTX may emit them as native fields; all other
|
|
453
|
+
* text, including `{total}` and formatted fixed dates, is fixed.
|
|
454
|
+
*/
|
|
455
|
+
fields?: FurnitureField[];
|
|
456
|
+
/**
|
|
457
|
+
* Generated `socials` only: one entry per explicit source line of `text`, in
|
|
458
|
+
* order. A part may carry both `fields` and `links`; hosts apply each link to
|
|
459
|
+
* its whole source line and each field range within it.
|
|
460
|
+
*/
|
|
461
|
+
links?: FurnitureSocialLink[];
|
|
462
|
+
}
|
|
463
|
+
/** Optional generated metadata for one furniture text part (live fields and/or social links). */
|
|
464
|
+
interface FurnitureTextExtras {
|
|
465
|
+
fields?: FurnitureField[];
|
|
466
|
+
links?: FurnitureSocialLink[];
|
|
467
|
+
}
|
|
468
|
+
/** Social-platform catalog fields used to format a profile. */
|
|
469
|
+
interface SocialPlatformRecord {
|
|
470
|
+
id: string;
|
|
471
|
+
name?: string;
|
|
472
|
+
baseUrl?: string;
|
|
473
|
+
profileUrlPattern?: string;
|
|
474
|
+
companyUrlPattern?: string;
|
|
475
|
+
handlePrefix?: string;
|
|
476
|
+
}
|
|
477
|
+
interface SocialProfile {
|
|
478
|
+
/** Single-line display text: the profile URL without an `https://` scheme, or the raw value. */
|
|
479
|
+
text: string;
|
|
480
|
+
/** Full http(s) URL when the value is one or its platform record formats one. */
|
|
481
|
+
href?: string;
|
|
482
|
+
/** Whether a socialPlatforms record formatted a handle. */
|
|
483
|
+
resolved: boolean;
|
|
484
|
+
}
|
|
485
|
+
interface FurnitureSocialLink extends SocialProfile {
|
|
486
|
+
/** Socials key (platform id). */
|
|
487
|
+
platform: string;
|
|
488
|
+
/** Authored value path, such as `organization.socials.x`. */
|
|
489
|
+
sourcePath: string;
|
|
302
490
|
}
|
|
491
|
+
/**
|
|
492
|
+
* Format one Socials value through its platform record, deterministically and
|
|
493
|
+
* without network access. `owner` selects companyUrlPattern for organizations.
|
|
494
|
+
* URLs pass through; unknown platforms and unformattable values stay raw.
|
|
495
|
+
*/
|
|
496
|
+
declare function resolveSocialProfile(platform: string, value: string, records?: readonly SocialPlatformRecord[], owner?: 'organization' | 'speaker'): SocialProfile;
|
|
303
497
|
interface FurnitureImagePart extends FurniturePartBase {
|
|
304
498
|
type: 'image';
|
|
305
499
|
image: unknown;
|
|
@@ -578,6 +772,8 @@ interface RichTextRun {
|
|
|
578
772
|
subscript?: boolean;
|
|
579
773
|
}
|
|
580
774
|
interface RichTextFragment {
|
|
775
|
+
/** Tabs are source-preserving layout controls with a fixed advance, not glyph text. */
|
|
776
|
+
kind?: 'tab';
|
|
581
777
|
text: string;
|
|
582
778
|
runIndex: number;
|
|
583
779
|
start: number;
|
|
@@ -688,4 +884,4 @@ declare function resolveCanvasDimensions(input: unknown): {
|
|
|
688
884
|
height: number;
|
|
689
885
|
};
|
|
690
886
|
|
|
691
|
-
export { type
|
|
887
|
+
export { type QuoteTextSource as $, type FurnitureSocialLink as A, type FurnitureTextExtras as B, type ComposeSlideOptions as C, DEFAULT_FONT_SCHEME as D, type FurnitureTextPart as E, type FontSchemeDiagnostic as F, type LayoutBox as G, type ListEntryLayout as H, type ListFit as I, type ListText as J, type ListValue as K, type LayoutDiagnostic as L, MAX_COMPOSITION_DEPTH as M, type MeasureTextWidth as N, type MetricContent as O, type MetricLayout as P, type MetricLayoutDiagnostic as Q, type MetricLayoutOptions as R, type MetricTextPart as S, type TextMeasurement as T, type MetricTextSource as U, OPFCompositionError as V, type QuoteContent as W, type QuoteLayout as X, type QuoteLayoutDiagnostic as Y, type QuoteLayoutOptions as Z, type QuoteTextPart as _, type CodeContent as a, slideImageShape as a$, type ResolveColorRefOptions as a0, type ResolveColorRefRoles as a1, type ResolvedFontScheme as a2, type RichTextFit as a3, type RichTextFragment as a4, type RichTextLine as a5, type RichTextOptions as a6, type RichTextRun as a7, type SlideComposition as a8, type SlideImageShape as a9, measureText as aA, measureTextOutline as aB, normalizeHexColor as aC, placeTextLines as aD, resolveCanvasDimensions as aE, resolveColorRef as aF, resolveFontFamilies as aG, resolveFontSchemeReference as aH, resolveSocialProfile as aI, resolveTextStyle as aJ, textColorForFill as aK, textWidthMeasurer as aL, wrapText as aM, type FontFaceSelection as aN, type SourceTextFit as aO, type TableBorder as aP, type TableCellLayout as aQ, type TableCellStyle as aR, type TableGrid as aS, type TableGridCell as aT, type TableGridIssue as aU, type TableLayout as aV, type TableLayoutOptions as aW, type TableRowLayout as aX, type TextLineSegment as aY, type TextLineSource as aZ, layoutTable as a_, type SocialPlatformRecord as aa, type SocialProfile as ab, type TextFit as ac, type TextLineInk as ad, type TextPlacement as ae, type TextPlacementLine as af, type TextStyle as ag, type TimelineContent as ah, type TimelineEvent as ai, type TimelineLayout as aj, type TimelineLayoutDiagnostic as ak, type TimelineLayoutOptions as al, type TimelineTextPart as am, chartColorForFill as an, colorContrast as ao, composeSlide as ap, fitList as aq, fitRichText as ar, fitText as as, formatFurnitureDate as at, formatSlideNumber as au, layoutCode as av, layoutFurniture as aw, layoutMetric as ax, layoutQuote as ay, layoutTimeline as az, type CodeLayout as b, tableGrid as b0, tableRowBoundaries as b1, type CodeLayoutDiagnostic as c, type CodeLayoutOptions as d, type CodeLineSegment as e, type CodeLineSource as f, type CodeTextFit as g, type CodeTextPart as h, type ComposedFlow as i, type ComposedGroup as j, type ComposedItem as k, type ComposedSlideImage as l, type Composition as m, type CompositionCandidate as n, type CompositionDecision as o, type CompositionExplanation as p, type CompositionPenalties as q, type CompositionTrack as r, DEFAULT_FURNITURE_DATE_FORMAT as s, DEFAULT_SLIDE_NUMBER_FORMAT as t, type FontFamilies as u, type FurnitureField as v, type FurnitureImagePart as w, type FurnitureLayout as x, type FurniturePart as y, type FurniturePartBase as z };
|
package/dist/composition.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as CodeContent, b as CodeLayout, c as CodeLayoutDiagnostic, d as CodeLayoutOptions, e as CodeLineSegment, f as CodeLineSource, g as CodeTextFit, h as CodeTextPart, C as ComposeSlideOptions, i as ComposedFlow, j as ComposedGroup, k as ComposedItem, l as ComposedSlideImage, m as Composition, n as CompositionCandidate, o as CompositionDecision, p as CompositionExplanation, q as CompositionPenalties, r as CompositionTrack, D as DEFAULT_FONT_SCHEME, s as DEFAULT_FURNITURE_DATE_FORMAT, t as DEFAULT_SLIDE_NUMBER_FORMAT, aN as FontFaceSelection, u as FontFamilies, F as FontSchemeDiagnostic, v as FurnitureField, w as FurnitureImagePart, x as FurnitureLayout, y as FurniturePart, z as FurniturePartBase, A as FurnitureSocialLink, B as FurnitureTextExtras, E as FurnitureTextPart, G as LayoutBox, L as LayoutDiagnostic, H as ListEntryLayout, I as ListFit, J as ListText, K as ListValue, M as MAX_COMPOSITION_DEPTH, N as MeasureTextWidth, O as MetricContent, P as MetricLayout, Q as MetricLayoutDiagnostic, R as MetricLayoutOptions, S as MetricTextPart, U as MetricTextSource, V as OPFCompositionError, W as QuoteContent, X as QuoteLayout, Y as QuoteLayoutDiagnostic, Z as QuoteLayoutOptions, _ as QuoteTextPart, $ as QuoteTextSource, a2 as ResolvedFontScheme, a3 as RichTextFit, a4 as RichTextFragment, a5 as RichTextLine, a6 as RichTextOptions, a7 as RichTextRun, a8 as SlideComposition, a9 as SlideImageShape, aa as SocialPlatformRecord, ab as SocialProfile, aO as SourceTextFit, aP as TableBorder, aQ as TableCellLayout, aR as TableCellStyle, aS as TableGrid, aT as TableGridCell, aU as TableGridIssue, aV as TableLayout, aW as TableLayoutOptions, aX as TableRowLayout, ac as TextFit, ad as TextLineInk, aY as TextLineSegment, aZ as TextLineSource, T as TextMeasurement, ae as TextPlacement, af as TextPlacementLine, ag as TextStyle, ah as TimelineContent, ai as TimelineEvent, aj as TimelineLayout, ak as TimelineLayoutDiagnostic, al as TimelineLayoutOptions, am as TimelineTextPart, an as chartColorForFill, ao as colorContrast, ap as composeSlide, aq as fitList, ar as fitRichText, as as fitText, at as formatFurnitureDate, au as formatSlideNumber, av as layoutCode, aw as layoutFurniture, ax as layoutMetric, ay as layoutQuote, a_ as layoutTable, az as layoutTimeline, aA as measureText, aB as measureTextOutline, aD as placeTextLines, aE as resolveCanvasDimensions, aG as resolveFontFamilies, aH as resolveFontSchemeReference, aI as resolveSocialProfile, aJ as resolveTextStyle, a$ as slideImageShape, b0 as tableGrid, b1 as tableRowBoundaries, aK as textColorForFill, aL as textWidthMeasurer, aM as wrapText } from './composition-DzLwY-Mi.js';
|
package/dist/composition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MAX_COMPOSITION_DEPTH, OPFCompositionError, chartColorForFill, colorContrast, composeSlide, fitList, fitRichText, fitText, layoutCode, layoutFurniture, layoutMetric, layoutQuote, layoutTable, layoutTimeline, measureText, measureTextOutline, placeTextLines, resolveCanvasDimensions, resolveFontFamilies, resolveTextStyle, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, wrapText } from './chunk-
|
|
1
|
+
export { DEFAULT_FONT_SCHEME, DEFAULT_FURNITURE_DATE_FORMAT, DEFAULT_SLIDE_NUMBER_FORMAT, MAX_COMPOSITION_DEPTH, OPFCompositionError, chartColorForFill, colorContrast, composeSlide, fitList, fitRichText, fitText, formatFurnitureDate, formatSlideNumber, layoutCode, layoutFurniture, layoutMetric, layoutQuote, layoutTable, layoutTimeline, measureText, measureTextOutline, placeTextLines, resolveCanvasDimensions, resolveFontFamilies, resolveFontSchemeReference, resolveSocialProfile, resolveTextStyle, slideImageShape, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, wrapText } from './chunk-6UPHKXI5.js';
|