@conform-ed/pci-math-entry 0.0.14 → 0.0.16
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/mathlive-input.d.ts +1 -0
- package/dist/module-mathlive.js +1 -0
- package/package.json +2 -2
- package/src/css.d.ts +3 -0
- package/src/mathlive-input.ts +5 -0
package/dist/mathlive-input.d.ts
CHANGED
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* bundle — browser-only and heavy by design; consumers reach it through the ./module
|
|
5
5
|
* subpath via lazy import() (ADR-0007: descriptors eager, implementations lazy).
|
|
6
6
|
*/
|
|
7
|
+
import "mathlive/fonts.css";
|
|
7
8
|
import type { MathInputFactory } from "./module";
|
|
8
9
|
export declare const mathLiveInput: MathInputFactory;
|
package/dist/module-mathlive.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conform-ed/pci-math-entry",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"files": [
|
|
5
5
|
"src",
|
|
6
6
|
"dist"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"mathlive": "^0.110.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@conform-ed/qti-react": "0.0.
|
|
40
|
+
"@conform-ed/qti-react": "0.0.16",
|
|
41
41
|
"happy-dom": "^20.10.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
package/src/css.d.ts
ADDED
package/src/mathlive-input.ts
CHANGED
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
import { MathfieldElement } from "mathlive";
|
|
9
9
|
|
|
10
|
+
// MathLive's documented bundler setup: the fonts ship through this stylesheet, and
|
|
11
|
+
// without it the runtime probes a fonts/ directory relative to the bundled module
|
|
12
|
+
// URL, which does not exist under bundlers (vite serves index.html fallbacks).
|
|
13
|
+
import "mathlive/fonts.css";
|
|
14
|
+
|
|
10
15
|
import type { MathInputFactory } from "./module";
|
|
11
16
|
|
|
12
17
|
export const mathLiveInput: MathInputFactory = (container, options) => {
|