@openpresentation/opf-editor 0.8.0 → 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/README.md +48 -13
- package/dist/blocks.d.ts +2 -0
- package/dist/blocks.js +33 -0
- package/dist/canvas.d.ts +9 -0
- package/dist/canvas.js +33 -4
- package/dist/exact-source.js +318 -0
- package/dist/font-defaults.js +25 -0
- package/dist/galleries.js +48 -8
- package/dist/index.d.ts +8 -2
- package/dist/index.js +15 -4
- package/dist/layout.d.ts +1 -1
- package/dist/layout.js +1 -1
- package/dist/switches.d.ts +77 -0
- package/dist/switches.js +344 -0
- package/dist/transfer.js +2 -1
- package/package.json +50 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpresentation/opf-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Embeddable local OPF editor primitives built on the deterministic renderer.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -77,20 +77,27 @@
|
|
|
77
77
|
"./json-options": {
|
|
78
78
|
"types": "./dist/json-options.d.ts",
|
|
79
79
|
"default": "./dist/json-options.js"
|
|
80
|
+
},
|
|
81
|
+
"./switches": {
|
|
82
|
+
"types": "./dist/switches.d.ts",
|
|
83
|
+
"default": "./dist/switches.js"
|
|
80
84
|
}
|
|
81
85
|
},
|
|
82
86
|
"types": "./dist/index.d.ts",
|
|
83
87
|
"sideEffects": false,
|
|
84
88
|
"scripts": {
|
|
85
89
|
"build": "node scripts/build.mjs",
|
|
86
|
-
"typecheck": "node --check src/index.js && node --check src/react.js && node --check src/svelte.js && node --check scripts/build.mjs && node --check scripts/validate-package.mjs && node --check test/smoke.mjs && node --check test/component-smoke.mjs && node --check src/canvas.js && node --check src/canvas-fields.js && node --check test/canvas-fields.mjs && node --check test/browser-canvas.mjs && node --check src/transfer.js && node --check src/presentation-ids.js && node --check src/color-authoring.js && node --check test/presentation-ids.mjs && node --check src/galleries.js && node --check examples/transfer-controls.js && node --check src/schema.js && node --check src/schema-inspector.js && node --check test/rich-table-browser.mjs && node --check test/styled-table.mjs && node --check test/styled-table-browser.mjs && node --check examples/pptx-controls.js && node --check scripts/build-playground.mjs && node --check test/playground-pptx.mjs && node --check src/text-input.js && node --check src/rich-text.js && node --check src/rich-text-input.js && node --check src/rich-text-toolbar.js && node --check test/rich-text.mjs && node --check test/rich-input-browser.mjs && node --check src/json-editor.js && node --check src/json-menu.js && node --check src/json-options.js && node --check src/json-source.js",
|
|
87
|
-
"test": "npm run build && node test/accepted-text.mjs && node test/smoke.mjs && node test/component-smoke.mjs && node test/canvas-fields.mjs && node test/transfer.mjs && node test/presentation-ids.mjs && node test/schema.mjs && node test/rich-text.mjs && node test/layout.mjs && node test/blocks.mjs && node test/styled-table.mjs && node test/json-source.mjs && node test/json-options.mjs",
|
|
90
|
+
"typecheck": "node --check src/index.js && node --check src/react.js && node --check src/svelte.js && node --check scripts/build.mjs && node --check scripts/validate-package.mjs && node --check test/smoke.mjs && node --check test/component-smoke.mjs && node --check src/canvas.js && node --check src/canvas-fields.js && node --check test/canvas-fields.mjs && node --check test/browser-canvas.mjs && node --check src/transfer.js && node --check src/presentation-ids.js && node --check src/font-defaults.js && node --check src/color-authoring.js && node --check test/presentation-ids.mjs && node --check src/galleries.js && node --check examples/transfer-controls.js && node --check src/schema.js && node --check src/schema-inspector.js && node --check test/rich-table-browser.mjs && node --check test/styled-table.mjs && node --check test/styled-table-browser.mjs && node --check examples/pptx-controls.js && node --check scripts/build-playground.mjs && node --check test/playground-pptx.mjs && node --check test/playground-script-fonts.mjs && node --check test/playground-lazy-fonts.mjs && node --check src/text-input.js && node --check src/rich-text.js && node --check src/rich-text-input.js && node --check src/rich-text-toolbar.js && node --check test/rich-text.mjs && node --check test/rich-input-browser.mjs && node --check src/json-editor.js && node --check src/json-menu.js && node --check src/json-options.js && node --check src/json-source.js && node --check src/switches.js && node --check test/switches.mjs && node --check test/switches-export.mjs && node --check test/placeholder-selection.mjs && node --check test/selection-browser.mjs && node --check scripts/check-font-hotlinks.mjs && node --check scripts/check-font-hotlinks.test.mjs && node --check src/exact-source.js && node --check test/exact-source.mjs && node --check test/playground-source.mjs",
|
|
91
|
+
"test": "npm run build && npm run check:font-hotlinks && node test/accepted-text.mjs && node test/smoke.mjs && node test/component-smoke.mjs && node test/canvas-fields.mjs && node test/transfer.mjs && node test/gallery-font-roles.mjs && node test/default-font-scheme.mjs && node test/presentation-ids.mjs && node test/schema.mjs && node test/rich-text.mjs && node test/layout.mjs && node test/blocks.mjs && node test/styled-table.mjs && node test/json-source.mjs && node test/json-options.mjs && node test/switches.mjs && node test/switches-export.mjs && node test/placeholder-selection.mjs && node test/exact-source.mjs",
|
|
88
92
|
"validate": "node scripts/validate-package.mjs",
|
|
89
93
|
"test:packed": "node test/packed-install.mjs",
|
|
90
94
|
"prepack": "npm run build",
|
|
95
|
+
"check:font-hotlinks": "node --test scripts/check-font-hotlinks.test.mjs && node scripts/check-font-hotlinks.mjs",
|
|
96
|
+
"check:font-hotlinks:built": "node scripts/check-font-hotlinks.mjs --built dist artifacts/playground",
|
|
91
97
|
"build:playground": "node scripts/build-playground.mjs",
|
|
92
|
-
"test:playground": "npm run build:playground && node test/playground-pptx.mjs",
|
|
98
|
+
"test:playground": "npm run build:playground && npm run check:font-hotlinks:built && node test/playground-pptx.mjs && node test/playground-script-fonts.mjs artifacts/playground-script-fonts && node test/playground-lazy-fonts.mjs artifacts/playground-lazy-fonts && node test/playground-source.mjs",
|
|
93
99
|
"test:code-browser": "node test/code-browser.mjs",
|
|
100
|
+
"test:selection-browser": "node test/selection-browser.mjs",
|
|
94
101
|
"test:metric-browser": "node test/metric-browser.mjs",
|
|
95
102
|
"test:rich-input-browser": "node test/rich-input-browser.mjs",
|
|
96
103
|
"test:json": "npm run build && node test/json-source.mjs && node test/json-options.mjs",
|
|
@@ -98,19 +105,19 @@
|
|
|
98
105
|
},
|
|
99
106
|
"dependencies": {
|
|
100
107
|
"@codemirror/autocomplete": "6.20.3",
|
|
101
|
-
"@codemirror/commands": "6.11.
|
|
108
|
+
"@codemirror/commands": "6.11.1",
|
|
102
109
|
"@codemirror/lang-json": "6.0.2",
|
|
103
110
|
"@codemirror/language": "6.12.4",
|
|
104
111
|
"@codemirror/lint": "6.9.7",
|
|
105
112
|
"@codemirror/search": "6.7.2",
|
|
106
|
-
"@codemirror/state": "6.7.
|
|
107
|
-
"@codemirror/view": "6.43.
|
|
108
|
-
"@lezer/highlight": "1.2.
|
|
109
|
-
"@openpresentation/opf": "^0.11.
|
|
113
|
+
"@codemirror/state": "6.7.6",
|
|
114
|
+
"@codemirror/view": "6.43.13",
|
|
115
|
+
"@lezer/highlight": "1.2.4",
|
|
116
|
+
"@openpresentation/opf": "^0.11.2",
|
|
110
117
|
"jsonc-parser": "3.3.1"
|
|
111
118
|
},
|
|
112
119
|
"peerDependencies": {
|
|
113
|
-
"@openpresentation/opf-render": "^0.
|
|
120
|
+
"@openpresentation/opf-render": "^0.11.0"
|
|
114
121
|
},
|
|
115
122
|
"peerDependenciesMeta": {
|
|
116
123
|
"@openpresentation/opf-render": {
|
|
@@ -118,8 +125,39 @@
|
|
|
118
125
|
}
|
|
119
126
|
},
|
|
120
127
|
"devDependencies": {
|
|
121
|
-
"@
|
|
122
|
-
"@
|
|
128
|
+
"@expo-google-fonts/noto-naskh-arabic": "0.4.5",
|
|
129
|
+
"@expo-google-fonts/noto-nastaliq-urdu": "0.4.2",
|
|
130
|
+
"@expo-google-fonts/noto-sans": "0.4.2",
|
|
131
|
+
"@expo-google-fonts/noto-sans-arabic": "0.4.3",
|
|
132
|
+
"@expo-google-fonts/noto-sans-armenian": "0.4.2",
|
|
133
|
+
"@expo-google-fonts/noto-sans-bengali": "0.4.4",
|
|
134
|
+
"@expo-google-fonts/noto-sans-devanagari": "0.4.1",
|
|
135
|
+
"@expo-google-fonts/noto-sans-ethiopic": "0.4.2",
|
|
136
|
+
"@expo-google-fonts/noto-sans-georgian": "0.4.3",
|
|
137
|
+
"@expo-google-fonts/noto-sans-gujarati": "0.4.2",
|
|
138
|
+
"@expo-google-fonts/noto-sans-gurmukhi": "0.4.1",
|
|
139
|
+
"@expo-google-fonts/noto-sans-hebrew": "0.4.1",
|
|
140
|
+
"@expo-google-fonts/noto-sans-jp": "0.4.3",
|
|
141
|
+
"@expo-google-fonts/noto-sans-kannada": "0.4.3",
|
|
142
|
+
"@expo-google-fonts/noto-sans-khmer": "0.4.3",
|
|
143
|
+
"@expo-google-fonts/noto-sans-kr": "0.4.3",
|
|
144
|
+
"@expo-google-fonts/noto-sans-lao": "0.4.2",
|
|
145
|
+
"@expo-google-fonts/noto-sans-malayalam": "0.4.2",
|
|
146
|
+
"@expo-google-fonts/noto-sans-mongolian": "0.4.1",
|
|
147
|
+
"@expo-google-fonts/noto-sans-myanmar": "0.4.2",
|
|
148
|
+
"@expo-google-fonts/noto-sans-oriya": "0.4.2",
|
|
149
|
+
"@expo-google-fonts/noto-sans-sc": "0.4.3",
|
|
150
|
+
"@expo-google-fonts/noto-sans-sinhala": "0.4.2",
|
|
151
|
+
"@expo-google-fonts/noto-sans-syriac": "0.4.2",
|
|
152
|
+
"@expo-google-fonts/noto-sans-tamil": "0.4.3",
|
|
153
|
+
"@expo-google-fonts/noto-sans-tc": "0.4.3",
|
|
154
|
+
"@expo-google-fonts/noto-sans-telugu": "0.4.2",
|
|
155
|
+
"@expo-google-fonts/noto-sans-thaana": "0.4.2",
|
|
156
|
+
"@expo-google-fonts/noto-sans-thai": "0.4.2",
|
|
157
|
+
"@expo-google-fonts/noto-serif-hebrew": "0.4.2",
|
|
158
|
+
"@expo-google-fonts/noto-serif-tibetan": "0.4.2",
|
|
159
|
+
"@openpresentation/opf-pptx": "^0.11.0",
|
|
160
|
+
"@openpresentation/opf-render": "^0.11.0",
|
|
123
161
|
"esbuild": "0.28.2",
|
|
124
162
|
"playwright": "1.63.0"
|
|
125
163
|
}
|