@pie-element/explicit-constructed-response 7.3.2-next.54 → 7.3.2

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/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.9.0/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.0/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
5
5
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -7161,7 +7161,7 @@ function quoteString(value) {
7161
7161
  function has$1(collection, key) {
7162
7162
  return isImmutable(collection) ? collection.has(key) : isDataStructure(collection) && hasOwnProperty$2.call(collection, key);
7163
7163
  }
7164
- function get$2(collection, key, notSetValue) {
7164
+ function get$3(collection, key, notSetValue) {
7165
7165
  return isImmutable(collection) ? collection.get(key, notSetValue) : !has$1(collection, key) ? notSetValue : typeof collection.get === 'function' ? collection.get(key) : collection[key];
7166
7166
  }
7167
7167
  function shallowCopy(from) {
@@ -7233,7 +7233,7 @@ function updateInDeeply(inImmutable, existing, keyPath, i, notSetValue, updater)
7233
7233
  throw new TypeError('Cannot update within non-data-structure value in path [' + keyPath.slice(0, i).map(quoteString) + ']: ' + existing);
7234
7234
  }
7235
7235
  var key = keyPath[i];
7236
- var nextExisting = wasNotSet ? NOT_SET : get$2(existing, key, NOT_SET);
7236
+ var nextExisting = wasNotSet ? NOT_SET : get$3(existing, key, NOT_SET);
7237
7237
  var nextUpdated = updateInDeeply(nextExisting === NOT_SET ? inImmutable : isImmutable(nextExisting), nextExisting, keyPath, i + 1, notSetValue, updater);
7238
7238
  return nextUpdated === nextExisting ? existing : nextUpdated === NOT_SET ? remove(existing, key) : set$h(wasNotSet ? inImmutable ? emptyMap() : {} : existing, key, nextUpdated);
7239
7239
  }
@@ -9186,7 +9186,7 @@ function getIn$1(collection, searchKeyPath, notSetValue) {
9186
9186
  var keyPath = coerceKeyPath(searchKeyPath);
9187
9187
  var i = 0;
9188
9188
  while (i !== keyPath.length) {
9189
- collection = get$2(collection, keyPath[i++], NOT_SET);
9189
+ collection = get$3(collection, keyPath[i++], NOT_SET);
9190
9190
  if (collection === NOT_SET) {
9191
9191
  return notSetValue;
9192
9192
  }
@@ -10062,7 +10062,7 @@ var Immutable$1 = {
10062
10062
  isSet: isSet,
10063
10063
  isOrderedSet: isOrderedSet,
10064
10064
  isRecord: isRecord,
10065
- get: get$2,
10065
+ get: get$3,
10066
10066
  getIn: getIn$1,
10067
10067
  has: has$1,
10068
10068
  hasIn: hasIn$1,
@@ -10094,7 +10094,7 @@ var immutable_es = Object.freeze({
10094
10094
  Set: Set$1,
10095
10095
  Stack: Stack$2,
10096
10096
  fromJS: fromJS,
10097
- get: get$2,
10097
+ get: get$3,
10098
10098
  getIn: getIn$1,
10099
10099
  has: has$1,
10100
10100
  hasIn: hasIn$1,
@@ -19482,6 +19482,45 @@ getDefaultExportFromCjs(nonIterableSpread.exports);
19482
19482
  (module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports);
19483
19483
  })(toConsumableArray$1);
19484
19484
  getDefaultExportFromCjs(toConsumableArray$1.exports);
19485
+ var get$2 = {
19486
+ exports: {}
19487
+ };
19488
+ var superPropBase = {
19489
+ exports: {}
19490
+ };
19491
+ (function (module) {
19492
+ var getPrototypeOf = getPrototypeOf$2.exports;
19493
+ function _superPropBase(object, property) {
19494
+ while (!Object.prototype.hasOwnProperty.call(object, property)) {
19495
+ object = getPrototypeOf(object);
19496
+ if (object === null) break;
19497
+ }
19498
+ return object;
19499
+ }
19500
+ (module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports);
19501
+ })(superPropBase);
19502
+ getDefaultExportFromCjs(superPropBase.exports);
19503
+ (function (module) {
19504
+ var superPropBase$1 = superPropBase.exports;
19505
+ function _get() {
19506
+ if (typeof Reflect !== "undefined" && Reflect.get) {
19507
+ (module.exports = _get = Reflect.get, module.exports.__esModule = true, module.exports["default"] = module.exports);
19508
+ } else {
19509
+ (module.exports = _get = function _get(target, property, receiver) {
19510
+ var base = superPropBase$1(target, property);
19511
+ if (!base) return;
19512
+ var desc = Object.getOwnPropertyDescriptor(base, property);
19513
+ if (desc.get) {
19514
+ return desc.get.call(arguments.length < 3 ? target : receiver);
19515
+ }
19516
+ return desc.value;
19517
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports);
19518
+ }
19519
+ return _get.apply(this, arguments);
19520
+ }
19521
+ (module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports);
19522
+ })(get$2);
19523
+ getDefaultExportFromCjs(get$2.exports);
19485
19524
  var mathjax = {};
19486
19525
  var version = {};
19487
19526
  Object.defineProperty(version, "__esModule", {
@@ -49081,10 +49120,198 @@ function MenuHandler(handler) {
49081
49120
  return handler;
49082
49121
  }
49083
49122
  MenuHandler$1.MenuHandler = MenuHandler;
49123
+ var FindMathML$1 = {};
49124
+ var FindMath = {};
49125
+ Object.defineProperty(FindMath, "__esModule", {
49126
+ value: true
49127
+ });
49128
+ FindMath.AbstractFindMath = void 0;
49129
+ var Options_js_1$d = Options$2;
49130
+ var AbstractFindMath = (function () {
49131
+ function AbstractFindMath(options) {
49132
+ var CLASS = this.constructor;
49133
+ this.options = (0, Options_js_1$d.userOptions)((0, Options_js_1$d.defaultOptions)({}, CLASS.OPTIONS), options);
49134
+ }
49135
+ AbstractFindMath.OPTIONS = {};
49136
+ return AbstractFindMath;
49137
+ })();
49138
+ FindMath.AbstractFindMath = AbstractFindMath;
49139
+ var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
49140
+ var extendStatics = function (d, b) {
49141
+ extendStatics = Object.setPrototypeOf || ({
49142
+ __proto__: []
49143
+ }) instanceof Array && (function (d, b) {
49144
+ d.__proto__ = b;
49145
+ }) || (function (d, b) {
49146
+ for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
49147
+ });
49148
+ return extendStatics(d, b);
49149
+ };
49150
+ return function (d, b) {
49151
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
49152
+ extendStatics(d, b);
49153
+ function __() {
49154
+ this.constructor = d;
49155
+ }
49156
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49157
+ };
49158
+ })();
49159
+ var __values$G = commonjsGlobal && commonjsGlobal.__values || (function (o) {
49160
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
49161
+ if (m) return m.call(o);
49162
+ if (o && typeof o.length === "number") return {
49163
+ next: function () {
49164
+ if (o && i >= o.length) o = void 0;
49165
+ return {
49166
+ value: o && o[i++],
49167
+ done: !o
49168
+ };
49169
+ }
49170
+ };
49171
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
49172
+ });
49173
+ Object.defineProperty(FindMathML$1, "__esModule", {
49174
+ value: true
49175
+ });
49176
+ FindMathML$1.FindMathML = void 0;
49177
+ var FindMath_js_1$1 = FindMath;
49178
+ var NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
49179
+ var FindMathML = (function (_super) {
49180
+ __extends$1K(FindMathML, _super);
49181
+ function FindMathML() {
49182
+ return _super !== null && _super.apply(this, arguments) || this;
49183
+ }
49184
+ FindMathML.prototype.findMath = function (node) {
49185
+ var set = new Set();
49186
+ this.findMathNodes(node, set);
49187
+ this.findMathPrefixed(node, set);
49188
+ var html = this.adaptor.root(this.adaptor.document);
49189
+ if (this.adaptor.kind(html) === 'html' && set.size === 0) {
49190
+ this.findMathNS(node, set);
49191
+ }
49192
+ return this.processMath(set);
49193
+ };
49194
+ FindMathML.prototype.findMathNodes = function (node, set) {
49195
+ var e_1, _a;
49196
+ try {
49197
+ for (var _b = __values$G(this.adaptor.tags(node, 'math')), _c = _b.next(); !_c.done; _c = _b.next()) {
49198
+ var math = _c.value;
49199
+ set.add(math);
49200
+ }
49201
+ } catch (e_1_1) {
49202
+ e_1 = {
49203
+ error: e_1_1
49204
+ };
49205
+ } finally {
49206
+ try {
49207
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
49208
+ } finally {
49209
+ if (e_1) throw e_1.error;
49210
+ }
49211
+ }
49212
+ };
49213
+ FindMathML.prototype.findMathPrefixed = function (node, set) {
49214
+ var e_2, _a, e_3, _b;
49215
+ var html = this.adaptor.root(this.adaptor.document);
49216
+ try {
49217
+ for (var _c = __values$G(this.adaptor.allAttributes(html)), _d = _c.next(); !_d.done; _d = _c.next()) {
49218
+ var attr = _d.value;
49219
+ if (attr.name.substr(0, 6) === 'xmlns:' && attr.value === NAMESPACE) {
49220
+ var prefix = attr.name.substr(6);
49221
+ try {
49222
+ for (var _e = (e_3 = void 0, __values$G(this.adaptor.tags(node, prefix + ':math'))), _f = _e.next(); !_f.done; _f = _e.next()) {
49223
+ var math = _f.value;
49224
+ set.add(math);
49225
+ }
49226
+ } catch (e_3_1) {
49227
+ e_3 = {
49228
+ error: e_3_1
49229
+ };
49230
+ } finally {
49231
+ try {
49232
+ if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
49233
+ } finally {
49234
+ if (e_3) throw e_3.error;
49235
+ }
49236
+ }
49237
+ }
49238
+ }
49239
+ } catch (e_2_1) {
49240
+ e_2 = {
49241
+ error: e_2_1
49242
+ };
49243
+ } finally {
49244
+ try {
49245
+ if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
49246
+ } finally {
49247
+ if (e_2) throw e_2.error;
49248
+ }
49249
+ }
49250
+ };
49251
+ FindMathML.prototype.findMathNS = function (node, set) {
49252
+ var e_4, _a;
49253
+ try {
49254
+ for (var _b = __values$G(this.adaptor.tags(node, 'math', NAMESPACE)), _c = _b.next(); !_c.done; _c = _b.next()) {
49255
+ var math = _c.value;
49256
+ set.add(math);
49257
+ }
49258
+ } catch (e_4_1) {
49259
+ e_4 = {
49260
+ error: e_4_1
49261
+ };
49262
+ } finally {
49263
+ try {
49264
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
49265
+ } finally {
49266
+ if (e_4) throw e_4.error;
49267
+ }
49268
+ }
49269
+ };
49270
+ FindMathML.prototype.processMath = function (set) {
49271
+ var e_5, _a;
49272
+ var math = [];
49273
+ try {
49274
+ for (var _b = __values$G(Array.from(set)), _c = _b.next(); !_c.done; _c = _b.next()) {
49275
+ var mml = _c.value;
49276
+ var display = this.adaptor.getAttribute(mml, 'display') === 'block' || this.adaptor.getAttribute(mml, 'mode') === 'display';
49277
+ var start = {
49278
+ node: mml,
49279
+ n: 0,
49280
+ delim: ''
49281
+ };
49282
+ var end = {
49283
+ node: mml,
49284
+ n: 0,
49285
+ delim: ''
49286
+ };
49287
+ math.push({
49288
+ math: this.adaptor.outerHTML(mml),
49289
+ start: start,
49290
+ end: end,
49291
+ display: display
49292
+ });
49293
+ }
49294
+ } catch (e_5_1) {
49295
+ e_5 = {
49296
+ error: e_5_1
49297
+ };
49298
+ } finally {
49299
+ try {
49300
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
49301
+ } finally {
49302
+ if (e_5) throw e_5.error;
49303
+ }
49304
+ }
49305
+ return math;
49306
+ };
49307
+ FindMathML.OPTIONS = {};
49308
+ return FindMathML;
49309
+ })(FindMath_js_1$1.AbstractFindMath);
49310
+ FindMathML$1.FindMathML = FindMathML;
49084
49311
  var mathml = {};
49085
49312
  var InputJax = {};
49086
49313
  var FunctionList$1 = {};
49087
- var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
49314
+ var __extends$1J = commonjsGlobal && commonjsGlobal.__extends || (function () {
49088
49315
  var extendStatics = function (d, b) {
49089
49316
  extendStatics = Object.setPrototypeOf || ({
49090
49317
  __proto__: []
@@ -49104,7 +49331,7 @@ var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
49104
49331
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49105
49332
  };
49106
49333
  })();
49107
- var __values$G = commonjsGlobal && commonjsGlobal.__values || (function (o) {
49334
+ var __values$F = commonjsGlobal && commonjsGlobal.__values || (function (o) {
49108
49335
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
49109
49336
  if (m) return m.call(o);
49110
49337
  if (o && typeof o.length === "number") return {
@@ -49152,7 +49379,7 @@ Object.defineProperty(FunctionList$1, "__esModule", {
49152
49379
  FunctionList$1.FunctionList = void 0;
49153
49380
  var PrioritizedList_js_1 = PrioritizedList$1;
49154
49381
  var FunctionList = (function (_super) {
49155
- __extends$1K(FunctionList, _super);
49382
+ __extends$1J(FunctionList, _super);
49156
49383
  function FunctionList() {
49157
49384
  return _super !== null && _super.apply(this, arguments) || this;
49158
49385
  }
@@ -49163,7 +49390,7 @@ var FunctionList = (function (_super) {
49163
49390
  data[_i] = arguments[_i];
49164
49391
  }
49165
49392
  try {
49166
- for (var _b = __values$G(this), _c = _b.next(); !_c.done; _c = _b.next()) {
49393
+ for (var _b = __values$F(this), _c = _b.next(); !_c.done; _c = _b.next()) {
49167
49394
  var item = _c.value;
49168
49395
  var result = item.item.apply(item, __spreadArray$s([], __read$P(data), false));
49169
49396
  if (result === false) {
@@ -49217,7 +49444,7 @@ Object.defineProperty(InputJax, "__esModule", {
49217
49444
  value: true
49218
49445
  });
49219
49446
  InputJax.AbstractInputJax = void 0;
49220
- var Options_js_1$d = Options$2;
49447
+ var Options_js_1$c = Options$2;
49221
49448
  var FunctionList_js_1$2 = FunctionList$1;
49222
49449
  var AbstractInputJax = (function () {
49223
49450
  function AbstractInputJax(options) {
@@ -49227,7 +49454,7 @@ var AbstractInputJax = (function () {
49227
49454
  this.adaptor = null;
49228
49455
  this.mmlFactory = null;
49229
49456
  var CLASS = this.constructor;
49230
- this.options = (0, Options_js_1$d.userOptions)((0, Options_js_1$d.defaultOptions)({}, CLASS.OPTIONS), options);
49457
+ this.options = (0, Options_js_1$c.userOptions)((0, Options_js_1$c.defaultOptions)({}, CLASS.OPTIONS), options);
49231
49458
  this.preFilters = new FunctionList_js_1$2.FunctionList();
49232
49459
  this.postFilters = new FunctionList_js_1$2.FunctionList();
49233
49460
  }
@@ -49275,194 +49502,6 @@ var AbstractInputJax = (function () {
49275
49502
  return AbstractInputJax;
49276
49503
  })();
49277
49504
  InputJax.AbstractInputJax = AbstractInputJax;
49278
- var FindMathML$1 = {};
49279
- var FindMath = {};
49280
- Object.defineProperty(FindMath, "__esModule", {
49281
- value: true
49282
- });
49283
- FindMath.AbstractFindMath = void 0;
49284
- var Options_js_1$c = Options$2;
49285
- var AbstractFindMath = (function () {
49286
- function AbstractFindMath(options) {
49287
- var CLASS = this.constructor;
49288
- this.options = (0, Options_js_1$c.userOptions)((0, Options_js_1$c.defaultOptions)({}, CLASS.OPTIONS), options);
49289
- }
49290
- AbstractFindMath.OPTIONS = {};
49291
- return AbstractFindMath;
49292
- })();
49293
- FindMath.AbstractFindMath = AbstractFindMath;
49294
- var __extends$1J = commonjsGlobal && commonjsGlobal.__extends || (function () {
49295
- var extendStatics = function (d, b) {
49296
- extendStatics = Object.setPrototypeOf || ({
49297
- __proto__: []
49298
- }) instanceof Array && (function (d, b) {
49299
- d.__proto__ = b;
49300
- }) || (function (d, b) {
49301
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
49302
- });
49303
- return extendStatics(d, b);
49304
- };
49305
- return function (d, b) {
49306
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
49307
- extendStatics(d, b);
49308
- function __() {
49309
- this.constructor = d;
49310
- }
49311
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49312
- };
49313
- })();
49314
- var __values$F = commonjsGlobal && commonjsGlobal.__values || (function (o) {
49315
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
49316
- if (m) return m.call(o);
49317
- if (o && typeof o.length === "number") return {
49318
- next: function () {
49319
- if (o && i >= o.length) o = void 0;
49320
- return {
49321
- value: o && o[i++],
49322
- done: !o
49323
- };
49324
- }
49325
- };
49326
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
49327
- });
49328
- Object.defineProperty(FindMathML$1, "__esModule", {
49329
- value: true
49330
- });
49331
- FindMathML$1.FindMathML = void 0;
49332
- var FindMath_js_1$1 = FindMath;
49333
- var NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
49334
- var FindMathML = (function (_super) {
49335
- __extends$1J(FindMathML, _super);
49336
- function FindMathML() {
49337
- return _super !== null && _super.apply(this, arguments) || this;
49338
- }
49339
- FindMathML.prototype.findMath = function (node) {
49340
- var set = new Set();
49341
- this.findMathNodes(node, set);
49342
- this.findMathPrefixed(node, set);
49343
- var html = this.adaptor.root(this.adaptor.document);
49344
- if (this.adaptor.kind(html) === 'html' && set.size === 0) {
49345
- this.findMathNS(node, set);
49346
- }
49347
- return this.processMath(set);
49348
- };
49349
- FindMathML.prototype.findMathNodes = function (node, set) {
49350
- var e_1, _a;
49351
- try {
49352
- for (var _b = __values$F(this.adaptor.tags(node, 'math')), _c = _b.next(); !_c.done; _c = _b.next()) {
49353
- var math = _c.value;
49354
- set.add(math);
49355
- }
49356
- } catch (e_1_1) {
49357
- e_1 = {
49358
- error: e_1_1
49359
- };
49360
- } finally {
49361
- try {
49362
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
49363
- } finally {
49364
- if (e_1) throw e_1.error;
49365
- }
49366
- }
49367
- };
49368
- FindMathML.prototype.findMathPrefixed = function (node, set) {
49369
- var e_2, _a, e_3, _b;
49370
- var html = this.adaptor.root(this.adaptor.document);
49371
- try {
49372
- for (var _c = __values$F(this.adaptor.allAttributes(html)), _d = _c.next(); !_d.done; _d = _c.next()) {
49373
- var attr = _d.value;
49374
- if (attr.name.substr(0, 6) === 'xmlns:' && attr.value === NAMESPACE) {
49375
- var prefix = attr.name.substr(6);
49376
- try {
49377
- for (var _e = (e_3 = void 0, __values$F(this.adaptor.tags(node, prefix + ':math'))), _f = _e.next(); !_f.done; _f = _e.next()) {
49378
- var math = _f.value;
49379
- set.add(math);
49380
- }
49381
- } catch (e_3_1) {
49382
- e_3 = {
49383
- error: e_3_1
49384
- };
49385
- } finally {
49386
- try {
49387
- if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
49388
- } finally {
49389
- if (e_3) throw e_3.error;
49390
- }
49391
- }
49392
- }
49393
- }
49394
- } catch (e_2_1) {
49395
- e_2 = {
49396
- error: e_2_1
49397
- };
49398
- } finally {
49399
- try {
49400
- if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
49401
- } finally {
49402
- if (e_2) throw e_2.error;
49403
- }
49404
- }
49405
- };
49406
- FindMathML.prototype.findMathNS = function (node, set) {
49407
- var e_4, _a;
49408
- try {
49409
- for (var _b = __values$F(this.adaptor.tags(node, 'math', NAMESPACE)), _c = _b.next(); !_c.done; _c = _b.next()) {
49410
- var math = _c.value;
49411
- set.add(math);
49412
- }
49413
- } catch (e_4_1) {
49414
- e_4 = {
49415
- error: e_4_1
49416
- };
49417
- } finally {
49418
- try {
49419
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
49420
- } finally {
49421
- if (e_4) throw e_4.error;
49422
- }
49423
- }
49424
- };
49425
- FindMathML.prototype.processMath = function (set) {
49426
- var e_5, _a;
49427
- var math = [];
49428
- try {
49429
- for (var _b = __values$F(Array.from(set)), _c = _b.next(); !_c.done; _c = _b.next()) {
49430
- var mml = _c.value;
49431
- var display = this.adaptor.getAttribute(mml, 'display') === 'block' || this.adaptor.getAttribute(mml, 'mode') === 'display';
49432
- var start = {
49433
- node: mml,
49434
- n: 0,
49435
- delim: ''
49436
- };
49437
- var end = {
49438
- node: mml,
49439
- n: 0,
49440
- delim: ''
49441
- };
49442
- math.push({
49443
- math: this.adaptor.outerHTML(mml),
49444
- start: start,
49445
- end: end,
49446
- display: display
49447
- });
49448
- }
49449
- } catch (e_5_1) {
49450
- e_5 = {
49451
- error: e_5_1
49452
- };
49453
- } finally {
49454
- try {
49455
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
49456
- } finally {
49457
- if (e_5) throw e_5.error;
49458
- }
49459
- }
49460
- return math;
49461
- };
49462
- FindMathML.OPTIONS = {};
49463
- return FindMathML;
49464
- })(FindMath_js_1$1.AbstractFindMath);
49465
- FindMathML$1.FindMathML = FindMathML;
49466
49505
  var MathMLCompile$1 = {};
49467
49506
  var Entities$1 = {};
49468
49507
  var AsyncLoad = {};
@@ -92054,7 +92093,7 @@ var unWrapMath = function unWrapMath(content) {
92054
92093
  };
92055
92094
  };
92056
92095
  normalization.unWrapMath = unWrapMath;
92057
- const require$$15$4 = _dll_debug;
92096
+ const require$$22$2 = _dll_debug;
92058
92097
  (function (exports) {
92059
92098
  var _interopRequireDefault = interopRequireDefault.exports;
92060
92099
  Object.defineProperty(exports, "__esModule", {
@@ -92064,10 +92103,17 @@ const require$$15$4 = _dll_debug;
92064
92103
  var _toConsumableArray2 = _interopRequireDefault(toConsumableArray$1.exports);
92065
92104
  var _typeof2 = _interopRequireDefault(_typeof$g.exports);
92066
92105
  var _defineProperty2 = _interopRequireDefault(defineProperty$6.exports);
92106
+ var _classCallCheck2 = _interopRequireDefault(classCallCheck$5.exports);
92107
+ var _createClass2 = _interopRequireDefault(createClass$4.exports);
92108
+ var _get2 = _interopRequireDefault(get$2.exports);
92109
+ var _inherits2 = _interopRequireDefault(inherits$3.exports);
92110
+ var _possibleConstructorReturn2 = _interopRequireDefault(possibleConstructorReturn$3.exports);
92111
+ var _getPrototypeOf2 = _interopRequireDefault(getPrototypeOf$2.exports);
92067
92112
  var _mathjax = mathjax;
92068
92113
  var _assistiveMml = assistiveMml;
92069
92114
  var _semanticEnrich = semanticEnrich;
92070
92115
  var _MenuHandler = MenuHandler$1;
92116
+ var _FindMathML2 = FindMathML$1;
92071
92117
  var _mathml = mathml;
92072
92118
  var _tex = tex$2;
92073
92119
  var _chtml = chtml$1;
@@ -92075,12 +92121,13 @@ const require$$15$4 = _dll_debug;
92075
92121
  var _browserAdaptor = browserAdaptor$1;
92076
92122
  var _AllPackages = AllPackages;
92077
92123
  var _mstack = mstack;
92078
- var _debug = _interopRequireDefault(require$$15$4);
92124
+ var _debug = _interopRequireDefault(require$$22$2);
92079
92125
  var _normalization = normalization;
92080
92126
  var _MmlFactory = MmlFactory$1;
92081
92127
  var _SerializedMmlVisitor = SerializedMmlVisitor;
92082
92128
  var _WrapperFactory = WrapperFactory$2;
92083
92129
  var _mspace = mspace$1;
92130
+ var _HTMLDomStrings = HTMLDomStrings$1;
92084
92131
  function ownKeys(object, enumerableOnly) {
92085
92132
  var keys = Object.keys(object);
92086
92133
  if (Object.getOwnPropertySymbols) {
@@ -92102,6 +92149,30 @@ const require$$15$4 = _dll_debug;
92102
92149
  }
92103
92150
  return target;
92104
92151
  }
92152
+ function _createSuper(Derived) {
92153
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
92154
+ return function _createSuperInternal() {
92155
+ var Super = (0, _getPrototypeOf2["default"])(Derived), result;
92156
+ if (hasNativeReflectConstruct) {
92157
+ var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
92158
+ result = Reflect.construct(Super, arguments, NewTarget);
92159
+ } else {
92160
+ result = Super.apply(this, arguments);
92161
+ }
92162
+ return (0, _possibleConstructorReturn2["default"])(this, result);
92163
+ };
92164
+ }
92165
+ function _isNativeReflectConstruct() {
92166
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
92167
+ if (Reflect.construct.sham) return false;
92168
+ if (typeof Proxy === "function") return true;
92169
+ try {
92170
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
92171
+ return true;
92172
+ } catch (e) {
92173
+ return false;
92174
+ }
92175
+ }
92105
92176
  if (typeof window !== 'undefined') {
92106
92177
  (0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
92107
92178
  }
@@ -92156,6 +92227,28 @@ const require$$15$4 = _dll_debug;
92156
92227
  return node.setAttribute('displaystyle', 'true');
92157
92228
  });
92158
92229
  };
92230
+ var myFindMathML = (function (_FindMathML) {
92231
+ (0, _inherits2["default"])(myFindMathML, _FindMathML);
92232
+ var _super = _createSuper(myFindMathML);
92233
+ function myFindMathML() {
92234
+ (0, _classCallCheck2["default"])(this, myFindMathML);
92235
+ return _super.apply(this, arguments);
92236
+ }
92237
+ (0, _createClass2["default"])(myFindMathML, [{
92238
+ key: "processMath",
92239
+ value: function processMath(set) {
92240
+ var adaptor = this.adaptor;
92241
+ for (var _i = 0, _Array$from = Array.from(set); _i < _Array$from.length; _i++) {
92242
+ var mml = _Array$from[_i];
92243
+ if (adaptor.kind(adaptor.parent(mml)) === 'mjx-assistive-mml') {
92244
+ set["delete"](mml);
92245
+ }
92246
+ }
92247
+ return (0, _get2["default"])((0, _getPrototypeOf2["default"])(myFindMathML.prototype), "processMath", this).call(this, set);
92248
+ }
92249
+ }]);
92250
+ return myFindMathML;
92251
+ })(_FindMathML2.FindMathML);
92159
92252
  var createMathMLInstance = function createMathMLInstance(opts) {
92160
92253
  var docProvided = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
92161
92254
  opts = opts || defaultOpts();
@@ -92185,7 +92278,8 @@ const require$$15$4 = _dll_debug;
92185
92278
  parseError: function parseError(node) {
92186
92279
  console.log('error:', node);
92187
92280
  this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
92188
- }
92281
+ },
92282
+ FindMathML: new myFindMathML()
92189
92283
  };
92190
92284
  var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
92191
92285
  var htmlConfig = {
@@ -92210,7 +92304,10 @@ const require$$15$4 = _dll_debug;
92210
92304
  },
92211
92305
  enrichSpeech: 'deep',
92212
92306
  InputJax: [new _tex.TeX(texConfig), mml],
92213
- OutputJax: new _chtml.CHTML(htmlConfig)
92307
+ OutputJax: new _chtml.CHTML(htmlConfig),
92308
+ DomStrings: new _HTMLDomStrings.HTMLDomStrings({
92309
+ skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code', 'annotation', 'annotation-xml', 'mjx-assistive-mml', 'mjx-container']
92310
+ })
92214
92311
  });
92215
92312
  mml.setMmlFactory(customMmlFactory);
92216
92313
  return html;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "7.3.2-next.54+fc40873ed",
7
+ "version": "7.3.2",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "postpublish": "../../scripts/postpublish"
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@material-ui/core": "^3.9.2",
14
14
  "@pie-framework/pie-player-events": "^0.1.0",
15
- "@pie-lib/pie-toolbox": "2.9.0",
15
+ "@pie-lib/pie-toolbox": "2.9.1",
16
16
  "classnames": "^2.2.5",
17
17
  "lodash": "^4.17.10",
18
18
  "prop-types": "^15.6.1",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "author": "",
23
23
  "license": "ISC",
24
- "gitHead": "fc40873edb985e6509b57f2e733ea3582551b19e",
24
+ "gitHead": "6efba1362f19cfb3676f7999b50e04667cf09f97",
25
25
  "main": "lib/index.js",
26
26
  "module": "src/index.js",
27
27
  "exports": {