@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.
@@ -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;
@@ -6,6 +6,7 @@ import"./index-n2b9z4x4.js";
6
6
 
7
7
  // src/mathlive-input.ts
8
8
  import { MathfieldElement } from "mathlive";
9
+ import"mathlive/fonts.css";
9
10
  var mathLiveInput = (container, options) => {
10
11
  const field = new MathfieldElement;
11
12
  field.value = options.initialLatex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conform-ed/pci-math-entry",
3
- "version": "0.0.14",
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.14",
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
@@ -0,0 +1,3 @@
1
+ // Side-effect stylesheet imports: shipped as-is in the bundle for the consumer's
2
+ // bundler to resolve (vite/webpack handle css imports from dependencies).
3
+ declare module "mathlive/fonts.css";
@@ -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) => {