@pie-element/select-text 13.1.2-next.5 → 13.1.2-next.7

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.
@@ -1,24 +1,24 @@
1
1
  import e from "../delivery/main.js";
2
2
  import t from "react";
3
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";
4
+ import { renderMath as r } from "@pie-element/shared-math-rendering-mathjax";
5
+ import i from "debug";
6
6
  import { debounce as a } from "@pie-element/shared-lodash";
7
7
  //#region src/print/index.tsx
8
- var o = r("pie-element:select-text:print"), s = (e, t) => {
8
+ var o = i("pie-element:select-text:print"), s = (e, t) => {
9
9
  let n = t.role === "instructor";
10
10
  return e.prompt = e.promptEnabled === !1 ? void 0 : e.prompt, e.teacherInstructions = n && e.teacherInstructionsEnabled !== !1 ? e.teacherInstructions : void 0, e.rationale = n && e.rationaleEnabled !== !1 ? e.rationale : void 0, e.showTeacherInstructions = n, e.alwaysShowCorrect = n, e.mode = n ? "evaluate" : e.mode, e.disabled = !0, e.animationsDisabled = !0, e.highlightChoices = !0, e.feedback = void 0, e;
11
11
  }, c = class extends HTMLElement {
12
12
  constructor() {
13
13
  super(), this._options = null, this._model = null, this._session = {}, this._session.selectedTokens = [], this._root = null, this._rerender = a(() => {
14
14
  if (this._model && this._session) {
15
- let r = s(this._model, this._options), a = this._options && t.createElement(e, {
16
- model: r,
15
+ let i = s(this._model, this._options), a = this._options && t.createElement(e, {
16
+ model: i,
17
17
  session: { selectedTokens: [] },
18
18
  onSelectionChange: () => {}
19
19
  });
20
20
  this._root ||= n(this), this._root.render(a), queueMicrotask(() => {
21
- o("render complete - render math"), i(this);
21
+ o("render complete - render math"), r(this);
22
22
  });
23
23
  } else o("skip");
24
24
  }, 50, {
package/package.json CHANGED
@@ -1,25 +1,32 @@
1
1
  {
2
2
  "name": "@pie-element/select-text",
3
- "version": "13.1.2-next.5",
3
+ "version": "13.1.2-next.7",
4
4
  "description": "",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/pie-framework/pie-elements-ng.git",
8
+ "directory": "packages/elements-react/select-text"
9
+ },
5
10
  "dependencies": {
6
11
  "@emotion/react": "^11.14.0",
7
12
  "@emotion/style": "^0.8.0",
8
13
  "@mui/icons-material": "^7.3.4",
9
14
  "@mui/material": "^7.3.4",
10
- "@pie-lib/correct-answer-toggle": "4.0.3-next.38",
11
- "@pie-lib/render-ui": "6.1.1-next.38",
12
- "@pie-lib/text-select": "3.0.3-next.38",
15
+ "@pie-lib/correct-answer-toggle": "4.0.3-next.39",
16
+ "@pie-lib/render-ui": "6.1.1-next.39",
17
+ "@pie-lib/text-select": "3.0.3-next.39",
13
18
  "prop-types": "^15.8.1",
14
19
  "@pie-element/shared-lodash": "0.1.1-next.1",
15
- "@pie-lib/config-ui": "13.0.4-next.31",
20
+ "@pie-lib/config-ui": "13.0.4-next.32",
16
21
  "debug": "^4.4.3",
17
- "@pie-lib/editable-html-tip-tap": "2.1.2-next.31",
22
+ "@pie-lib/editable-html-tip-tap": "2.1.2-next.32",
18
23
  "@pie-element/shared-configure-events": "0.1.0",
19
24
  "@pie-element/shared-feedback": "0.1.0",
20
- "@pie-element/shared-controller-utils": "0.1.1-next.1",
25
+ "@pie-element/shared-controller-utils": "0.1.1-next.2",
21
26
  "@pie-element/shared-player-events": "0.1.0",
22
- "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.0"
27
+ "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.0",
28
+ "react": "^18.2.0",
29
+ "react-dom": "^18.2.0"
23
30
  },
24
31
  "peerDependencies": {
25
32
  "react": "^18.0.0",
@@ -77,7 +84,8 @@
77
84
  "files": [
78
85
  "configure.js",
79
86
  "controller.js",
80
- "dist"
87
+ "dist",
88
+ "module"
81
89
  ],
82
90
  "sideEffects": false,
83
91
  "devDependencies": {