@pie-element/rubric 8.1.2-next.0 → 8.1.2-next.10
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/author/index.js +1 -1
- package/dist/browser/author/index.js +28422 -26821
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +29 -10
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/dist-B8zq6W6A.js +102 -0
- package/dist/browser/dist-B8zq6W6A.js.map +1 -0
- package/dist/browser/{dist-DESt1KeY.js → dist-DxOJn-ON.js} +2525 -2577
- package/dist/browser/dist-DxOJn-ON.js.map +1 -0
- package/dist/browser/{main-wvVb2SYi.js → main-Cwy1SrBq.js} +25 -24
- package/dist/browser/{main-wvVb2SYi.js.map → main-Cwy1SrBq.js.map} +1 -1
- package/dist/browser/print/index.js +7 -6
- package/dist/browser/print/index.js.map +1 -1
- package/dist/browser/rolldown-runtime-CWhphoD1.js +32 -0
- package/dist/delivery/index.d.ts +3 -0
- package/dist/delivery/index.js +24 -6
- package/dist/delivery/main.js +2 -2
- package/dist/index.iife.js +31 -31
- package/dist/print/index.js +10 -10
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/module/print.js +15115 -0
- package/module/print.js.map +1 -0
- package/package.json +25 -9
- package/print.js +2 -0
- package/dist/browser/debounce-CwNJlAWB.js +0 -120
- package/dist/browser/debounce-CwNJlAWB.js.map +0 -1
- package/dist/browser/dist-DESt1KeY.js.map +0 -1
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +0 -50
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +0 -19
package/dist/print/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import e from "../delivery/main.js";
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "react";
|
|
4
|
-
import
|
|
5
|
-
import i from "
|
|
6
|
-
import {
|
|
2
|
+
import t from "react";
|
|
3
|
+
import { createRoot as n } from "react-dom/client";
|
|
4
|
+
import r from "debug";
|
|
5
|
+
import { renderMath as i } from "@pie-element/shared-math-rendering-mathjax";
|
|
6
|
+
import { debounce as a } from "@pie-element/shared-lodash";
|
|
7
7
|
//#region src/print/index.tsx
|
|
8
|
-
var o =
|
|
8
|
+
var o = r("pie-element:rubric:print"), s = (e, t) => t.role === "instructor" ? (e.value = { ...e }, e.mode = "evaluate", e.animationsDisabled = !0, e) : {}, c = class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender =
|
|
10
|
+
super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = a(() => {
|
|
11
11
|
if (this._model && this._session) {
|
|
12
|
-
let
|
|
13
|
-
this._root ||=
|
|
14
|
-
o("render complete - render math"),
|
|
12
|
+
let r = s(this._model, this._options), a = this._options && t.createElement(e, { ...r });
|
|
13
|
+
this._root ||= n(this), this._root.render(a), queueMicrotask(() => {
|
|
14
|
+
o("render complete - render math"), i(this);
|
|
15
15
|
});
|
|
16
16
|
} else o("skip");
|
|
17
17
|
}, 50, {
|