@openpresentation/opf-render 0.0.2 → 0.1.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.0.2",
3
+ "version": "0.1.0",
4
4
  "description": "Deterministic local OPF renderer for SVG, PNG, and PDF output.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,27 +26,54 @@
26
26
  ],
27
27
  "exports": {
28
28
  ".": {
29
+ "browser": {
30
+ "types": "./dist/svg.d.ts",
31
+ "default": "./dist/svg.js"
32
+ },
29
33
  "types": "./dist/index.d.ts",
30
34
  "default": "./dist/index.js"
31
35
  },
32
- "./package.json": "./package.json"
36
+ "./package.json": "./package.json",
37
+ "./fonts": {
38
+ "types": "./dist/fonts.d.ts",
39
+ "default": "./dist/fonts.js"
40
+ },
41
+ "./fonts-node": {
42
+ "types": "./dist/fonts-node.d.ts",
43
+ "default": "./dist/fonts-node.js"
44
+ },
45
+ "./fonts-browser": {
46
+ "types": "./dist/fonts-browser.d.ts",
47
+ "default": "./dist/fonts-browser.js"
48
+ },
49
+ "./svg": {
50
+ "types": "./dist/svg.d.ts",
51
+ "default": "./dist/svg.js"
52
+ }
33
53
  },
34
54
  "types": "./dist/index.d.ts",
35
55
  "sideEffects": false,
36
56
  "scripts": {
37
57
  "build": "node scripts/build.mjs",
38
- "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",
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",
39
59
  "validate": "node scripts/validate-package.mjs",
40
- "test": "npm run build && node test/smoke.mjs && node test/golden.mjs",
60
+ "test": "npm run build && node test/smoke.mjs && node test/fonts.mjs && node test/office-fonts.mjs && node test/timeline.mjs && node test/golden-gate.mjs && node test/golden.mjs && node test/fonts-browser.mjs && node test/design-preview.mjs",
41
61
  "test:golden": "npm run build && node test/golden.mjs",
42
62
  "golden:update": "npm run build && node test/golden.mjs --update",
43
63
  "prepack": "npm run build"
44
64
  },
45
65
  "dependencies": {
66
+ "@expo-google-fonts/arimo": "0.4.3",
67
+ "@expo-google-fonts/caladea": "0.4.2",
68
+ "@expo-google-fonts/carlito": "0.4.1",
69
+ "@expo-google-fonts/cousine": "0.4.3",
70
+ "@expo-google-fonts/gelasio": "0.4.1",
46
71
  "@expo-google-fonts/roboto": "^0.4.3",
47
72
  "@expo-google-fonts/roboto-mono": "^0.4.2",
48
- "@openpresentation/opf": "^0.2.2",
73
+ "@expo-google-fonts/tinos": "0.4.2",
74
+ "@openpresentation/opf": "^0.4.0",
49
75
  "@resvg/resvg-js": "^2.6.2",
76
+ "fontkit": "^2.0.4",
50
77
  "pdf-lib": "^1.17.1"
51
78
  }
52
79
  }