@pie-element/math-inline 12.1.1-next.21 → 12.1.1-next.22

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.
@@ -2,8 +2,8 @@ import { Main as e } from "../delivery/main.js";
2
2
  import t from "react";
3
3
  import { createRoot as n } from "react-dom/client";
4
4
  import r from "debug";
5
- import { debounce as i } from "@pie-element/shared-lodash";
6
- import { renderMath as a } from "@pie-element/shared-math-rendering-mathjax";
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
8
  var o = r("pie-element:math-inline:print"), s = (e, t) => {
9
9
  let n = t.role === "instructor";
@@ -20,14 +20,14 @@ var o = r("pie-element:math-inline:print"), s = (e, t) => {
20
20
  };
21
21
  }, c = class extends HTMLElement {
22
22
  constructor() {
23
- super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = i(() => {
23
+ super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = a(() => {
24
24
  if (this._model && this._session) {
25
- let r = s(this._model, this._options), i = this._options && t.createElement(e, {
25
+ let r = s(this._model, this._options), a = this._options && t.createElement(e, {
26
26
  model: r,
27
27
  session: {}
28
28
  });
29
- this._root ||= n(this), this._root.render(i), queueMicrotask(() => {
30
- o("render complete - render math"), a(this);
29
+ this._root ||= n(this), this._root.render(a), queueMicrotask(() => {
30
+ o("render complete - render math"), i(this);
31
31
  });
32
32
  } else o("skip");
33
33
  }, 50, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/math-inline",
3
- "version": "12.1.1-next.21",
3
+ "version": "12.1.1-next.22",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@pie-element/shared-configure-events": "0.1.0",
27
27
  "@pie-element/shared-feedback": "0.1.0",
28
28
  "@pie-framework/math-validation": "^1.0.0",
29
- "@pie-element/shared-player-events": "0.1.0",
29
+ "@pie-element/shared-player-events": "0.1.1-next.0",
30
30
  "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.0",
31
31
  "react": "^18.2.0",
32
32
  "react-dom": "^18.2.0"