@openpresentation/opf-render 0.8.1 → 0.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpresentation/opf-render",
3
- "version": "0.8.1",
3
+ "version": "0.10.0",
4
4
  "description": "Deterministic local OPF renderer for SVG, PNG, and PDF output.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -55,12 +55,12 @@
55
55
  "sideEffects": false,
56
56
  "scripts": {
57
57
  "build": "node scripts/build.mjs",
58
- "typecheck": "node --check src/index.js && node --check scripts/build.mjs && node --check scripts/validate-package.mjs && node --check test/smoke.mjs && node --check test/golden.mjs && node --check src/fonts.js && node --check src/fonts-node.js && node --check src/font-compatibility.js && node --check test/office-fonts.mjs && node --check src/fonts-browser.js && node --check test/fonts-browser.mjs && node --check src/svg.js && node --check src/raster.js && node --check src/raster-images.js && node --check test/webp.mjs && node --check test/jpeg-orientation.mjs && node --check scripts/build-browser-check.mjs && node --check test/jpeg-browser.js && node --check test/rich-table.mjs && node --check test/styled-table.mjs && node --check test/chart-colors.mjs && node --check test/image-placeholders.mjs && node --check test/image-placeholders-browser.mjs && node --check test/accepted-text.mjs && node --check test/accepted-text-fixtures.mjs && node --check test/accepted-text-browser.mjs && node --check test/rich-spacing-browser.mjs && node --check test/rich-flow-browser.mjs && node --check test/rich-flow-review-sheets.mjs && node --check test/furniture.mjs",
58
+ "typecheck": "node --check src/index.js && node --check scripts/build.mjs && node --check scripts/validate-package.mjs && node --check test/smoke.mjs && node --check test/golden.mjs && node --check src/fonts.js && node --check src/script-fonts.js && node --check src/script-font-pack.js && node --check test/script-fonts.mjs && node --check test/script-fonts-browser.mjs && node --check src/fonts-node.js && node --check src/font-compatibility.js && node --check test/office-fonts.mjs && node --check test/font-policy.mjs && node --check src/font-policy.js && node --check scripts/update-font-policy.mjs && node --check src/fonts-browser.js && node --check test/fonts-browser.mjs && node --check src/svg.js && node --check src/raster.js && node --check src/raster-images.js && node --check test/webp.mjs && node --check test/jpeg-orientation.mjs && node --check scripts/build-browser-check.mjs && node --check test/jpeg-browser.js && node --check test/rich-table.mjs && node --check test/rich-tab.mjs && node --check test/rich-tab-browser.mjs && node --check test/rich-tab-estimated-browser.mjs && node --check test/styled-table.mjs && node --check test/color-references.mjs && node --check test/default-font-scheme.mjs && node --check test/chart-colors.mjs && node --check test/chart-axis.mjs && node --check test/image-placeholders.mjs && node --check test/image-placeholders-browser.mjs && node --check test/accepted-text.mjs && node --check test/accepted-text-fixtures.mjs && node --check test/accepted-text-browser.mjs && node --check test/rich-spacing-browser.mjs && node --check test/rich-flow-browser.mjs && node --check test/rich-flow-review-sheets.mjs && node --check test/furniture.mjs && node --check test/socials.mjs && node --check test/slide-image.mjs && node --check test/slide-image-treatments.mjs && node --check test/item-alignment.mjs",
59
59
  "validate": "node scripts/validate-package.mjs",
60
- "test": "npm run build && node test/furniture.mjs && node test/font-outlines.mjs && node test/accepted-text.mjs && node test/image-placeholders.mjs && node test/chart-colors.mjs && node test/smoke.mjs && node test/webp.mjs && node test/jpeg-orientation.mjs && node test/fonts.mjs && node test/office-fonts.mjs && node test/timeline.mjs && node test/quote-footer.mjs && node test/shared-quote.mjs && node test/rich-trace.mjs && node test/rich-table.mjs && node test/golden-gate.mjs && node test/golden.mjs && node test/fonts-browser.mjs && node test/design-preview.mjs && npm run build:browser-check && npm run test:styled-table",
60
+ "test": "npm run build && node test/furniture.mjs && node test/socials.mjs && node test/font-outlines.mjs && node test/accepted-text.mjs && node test/image-placeholders.mjs && node test/slide-image.mjs && node test/slide-image-treatments.mjs && node test/chart-colors.mjs && node test/chart-axis.mjs && node test/smoke.mjs && node test/webp.mjs && node test/jpeg-orientation.mjs && node test/fonts.mjs && node test/office-fonts.mjs && node test/font-policy.mjs && node test/timeline.mjs && node test/quote-footer.mjs && node test/shared-quote.mjs && node test/rich-trace.mjs && node test/rich-table.mjs && node test/rich-tab.mjs && node test/color-references.mjs && node test/default-font-scheme.mjs && node test/golden-gate.mjs && node test/golden.mjs && node test/fonts-browser.mjs && node test/script-fonts.mjs && node test/design-preview.mjs && node test/item-alignment.mjs && npm run build:browser-check && npm run test:styled-table",
61
61
  "test:golden": "npm run build && node test/golden.mjs",
62
62
  "test:packed": "node test/packed-install.mjs",
63
- "test:browser": "npm run build:browser-check && node test/browser-check.mjs",
63
+ "test:browser": "npm run build:browser-check && node test/browser-check.mjs && node test/rich-tab-browser.mjs && node test/rich-tab-estimated-browser.mjs",
64
64
  "golden:update": "npm run build && node test/golden.mjs --update",
65
65
  "prepack": "npm run build",
66
66
  "build:browser-check": "node scripts/build-browser-check.mjs",
@@ -73,6 +73,7 @@
73
73
  "test:font-preparation-browser": "node test/font-preparation-browser.mjs artifacts/font-preparation-browser.json",
74
74
  "test:font-variants": "node test/font-variants.mjs",
75
75
  "test:font-variants-browser": "node test/font-variants-browser.mjs",
76
+ "test:script-fonts-browser": "node test/script-fonts-browser.mjs artifacts/script-fonts-browser.json",
76
77
  "test:text": "node test/font-outlines.mjs && node test/accepted-text.mjs",
77
78
  "test:text-browser": "node test/accepted-text-browser.mjs",
78
79
  "test:rich-spacing-browser": "node test/rich-spacing-browser.mjs",
@@ -88,13 +89,172 @@
88
89
  "@expo-google-fonts/roboto": "0.4.3",
89
90
  "@expo-google-fonts/roboto-mono": "0.4.2",
90
91
  "@expo-google-fonts/tinos": "0.4.2",
91
- "@openpresentation/opf": "^0.10.1",
92
+ "@openpresentation/opf": "^0.11.1",
92
93
  "@resvg/resvg-js": "^2.6.2",
93
94
  "fontkit": "^2.0.4",
94
95
  "pdf-lib": "^1.17.1",
95
96
  "sharp": "0.35.4"
96
97
  },
98
+ "peerDependencies": {
99
+ "@expo-google-fonts/noto-naskh-arabic": "0.4.5",
100
+ "@expo-google-fonts/noto-nastaliq-urdu": "0.4.2",
101
+ "@expo-google-fonts/noto-sans": "0.4.2",
102
+ "@expo-google-fonts/noto-sans-arabic": "0.4.3",
103
+ "@expo-google-fonts/noto-sans-armenian": "0.4.2",
104
+ "@expo-google-fonts/noto-sans-bengali": "0.4.4",
105
+ "@expo-google-fonts/noto-sans-devanagari": "0.4.1",
106
+ "@expo-google-fonts/noto-sans-ethiopic": "0.4.2",
107
+ "@expo-google-fonts/noto-sans-georgian": "0.4.3",
108
+ "@expo-google-fonts/noto-sans-gujarati": "0.4.2",
109
+ "@expo-google-fonts/noto-sans-gurmukhi": "0.4.1",
110
+ "@expo-google-fonts/noto-sans-hebrew": "0.4.1",
111
+ "@expo-google-fonts/noto-sans-jp": "0.4.3",
112
+ "@expo-google-fonts/noto-sans-kannada": "0.4.3",
113
+ "@expo-google-fonts/noto-sans-khmer": "0.4.3",
114
+ "@expo-google-fonts/noto-sans-kr": "0.4.3",
115
+ "@expo-google-fonts/noto-sans-lao": "0.4.2",
116
+ "@expo-google-fonts/noto-sans-malayalam": "0.4.2",
117
+ "@expo-google-fonts/noto-sans-mongolian": "0.4.1",
118
+ "@expo-google-fonts/noto-sans-myanmar": "0.4.2",
119
+ "@expo-google-fonts/noto-sans-oriya": "0.4.2",
120
+ "@expo-google-fonts/noto-sans-sc": "0.4.3",
121
+ "@expo-google-fonts/noto-sans-sinhala": "0.4.2",
122
+ "@expo-google-fonts/noto-sans-syriac": "0.4.2",
123
+ "@expo-google-fonts/noto-sans-tamil": "0.4.3",
124
+ "@expo-google-fonts/noto-sans-tc": "0.4.3",
125
+ "@expo-google-fonts/noto-sans-telugu": "0.4.2",
126
+ "@expo-google-fonts/noto-sans-thaana": "0.4.2",
127
+ "@expo-google-fonts/noto-sans-thai": "0.4.2",
128
+ "@expo-google-fonts/noto-serif-hebrew": "0.4.2",
129
+ "@expo-google-fonts/noto-serif-tibetan": "0.4.2"
130
+ },
131
+ "peerDependenciesMeta": {
132
+ "@expo-google-fonts/noto-naskh-arabic": {
133
+ "optional": true
134
+ },
135
+ "@expo-google-fonts/noto-nastaliq-urdu": {
136
+ "optional": true
137
+ },
138
+ "@expo-google-fonts/noto-sans": {
139
+ "optional": true
140
+ },
141
+ "@expo-google-fonts/noto-sans-arabic": {
142
+ "optional": true
143
+ },
144
+ "@expo-google-fonts/noto-sans-armenian": {
145
+ "optional": true
146
+ },
147
+ "@expo-google-fonts/noto-sans-bengali": {
148
+ "optional": true
149
+ },
150
+ "@expo-google-fonts/noto-sans-devanagari": {
151
+ "optional": true
152
+ },
153
+ "@expo-google-fonts/noto-sans-ethiopic": {
154
+ "optional": true
155
+ },
156
+ "@expo-google-fonts/noto-sans-georgian": {
157
+ "optional": true
158
+ },
159
+ "@expo-google-fonts/noto-sans-gujarati": {
160
+ "optional": true
161
+ },
162
+ "@expo-google-fonts/noto-sans-gurmukhi": {
163
+ "optional": true
164
+ },
165
+ "@expo-google-fonts/noto-sans-hebrew": {
166
+ "optional": true
167
+ },
168
+ "@expo-google-fonts/noto-sans-jp": {
169
+ "optional": true
170
+ },
171
+ "@expo-google-fonts/noto-sans-kannada": {
172
+ "optional": true
173
+ },
174
+ "@expo-google-fonts/noto-sans-khmer": {
175
+ "optional": true
176
+ },
177
+ "@expo-google-fonts/noto-sans-kr": {
178
+ "optional": true
179
+ },
180
+ "@expo-google-fonts/noto-sans-lao": {
181
+ "optional": true
182
+ },
183
+ "@expo-google-fonts/noto-sans-malayalam": {
184
+ "optional": true
185
+ },
186
+ "@expo-google-fonts/noto-sans-mongolian": {
187
+ "optional": true
188
+ },
189
+ "@expo-google-fonts/noto-sans-myanmar": {
190
+ "optional": true
191
+ },
192
+ "@expo-google-fonts/noto-sans-oriya": {
193
+ "optional": true
194
+ },
195
+ "@expo-google-fonts/noto-sans-sc": {
196
+ "optional": true
197
+ },
198
+ "@expo-google-fonts/noto-sans-sinhala": {
199
+ "optional": true
200
+ },
201
+ "@expo-google-fonts/noto-sans-syriac": {
202
+ "optional": true
203
+ },
204
+ "@expo-google-fonts/noto-sans-tamil": {
205
+ "optional": true
206
+ },
207
+ "@expo-google-fonts/noto-sans-tc": {
208
+ "optional": true
209
+ },
210
+ "@expo-google-fonts/noto-sans-telugu": {
211
+ "optional": true
212
+ },
213
+ "@expo-google-fonts/noto-sans-thaana": {
214
+ "optional": true
215
+ },
216
+ "@expo-google-fonts/noto-sans-thai": {
217
+ "optional": true
218
+ },
219
+ "@expo-google-fonts/noto-serif-hebrew": {
220
+ "optional": true
221
+ },
222
+ "@expo-google-fonts/noto-serif-tibetan": {
223
+ "optional": true
224
+ }
225
+ },
97
226
  "devDependencies": {
227
+ "@expo-google-fonts/noto-naskh-arabic": "0.4.5",
228
+ "@expo-google-fonts/noto-nastaliq-urdu": "0.4.2",
229
+ "@expo-google-fonts/noto-sans": "0.4.2",
230
+ "@expo-google-fonts/noto-sans-arabic": "0.4.3",
231
+ "@expo-google-fonts/noto-sans-armenian": "0.4.2",
232
+ "@expo-google-fonts/noto-sans-bengali": "0.4.4",
233
+ "@expo-google-fonts/noto-sans-devanagari": "0.4.1",
234
+ "@expo-google-fonts/noto-sans-ethiopic": "0.4.2",
235
+ "@expo-google-fonts/noto-sans-georgian": "0.4.3",
236
+ "@expo-google-fonts/noto-sans-gujarati": "0.4.2",
237
+ "@expo-google-fonts/noto-sans-gurmukhi": "0.4.1",
238
+ "@expo-google-fonts/noto-sans-hebrew": "0.4.1",
239
+ "@expo-google-fonts/noto-sans-jp": "0.4.3",
240
+ "@expo-google-fonts/noto-sans-kannada": "0.4.3",
241
+ "@expo-google-fonts/noto-sans-khmer": "0.4.3",
242
+ "@expo-google-fonts/noto-sans-kr": "0.4.3",
243
+ "@expo-google-fonts/noto-sans-lao": "0.4.2",
244
+ "@expo-google-fonts/noto-sans-malayalam": "0.4.2",
245
+ "@expo-google-fonts/noto-sans-mongolian": "0.4.1",
246
+ "@expo-google-fonts/noto-sans-myanmar": "0.4.2",
247
+ "@expo-google-fonts/noto-sans-oriya": "0.4.2",
248
+ "@expo-google-fonts/noto-sans-sc": "0.4.3",
249
+ "@expo-google-fonts/noto-sans-sinhala": "0.4.2",
250
+ "@expo-google-fonts/noto-sans-syriac": "0.4.2",
251
+ "@expo-google-fonts/noto-sans-tamil": "0.4.3",
252
+ "@expo-google-fonts/noto-sans-tc": "0.4.3",
253
+ "@expo-google-fonts/noto-sans-telugu": "0.4.2",
254
+ "@expo-google-fonts/noto-sans-thaana": "0.4.2",
255
+ "@expo-google-fonts/noto-sans-thai": "0.4.2",
256
+ "@expo-google-fonts/noto-serif-hebrew": "0.4.2",
257
+ "@expo-google-fonts/noto-serif-tibetan": "0.4.2",
98
258
  "esbuild": "0.28.2",
99
259
  "playwright": "1.63.0"
100
260
  }