@pie-element/select-text 8.3.3-next.9 → 8.4.0

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.
@@ -155,6 +155,42 @@ The html Element tag name
155
155
 
156
156
  The schema defines the following additional types:
157
157
 
158
+ ## `EditableHtmlConfigureProp` (object)
159
+
160
+ Properties of the `EditableHtmlConfigureProp` object:
161
+
162
+ ### `audio` (object)
163
+
164
+ Properties of the `audio` object:
165
+
166
+ #### `disabled` (boolean)
167
+
168
+ Indicates if the plugin is disabled or not
169
+
170
+ ### `video` (object)
171
+
172
+ Properties of the `video` object:
173
+
174
+ #### `disabled` (boolean)
175
+
176
+ Indicates if the plugin is disabled or not
177
+
178
+ ### `image` (object)
179
+
180
+ Properties of the `image` object:
181
+
182
+ #### `disabled` (boolean)
183
+
184
+ Indicates if the plugin is disabled or not
185
+
186
+ ## `EditableHtmlButtonConfigure` (object)
187
+
188
+ Properties of the `EditableHtmlButtonConfigure` object:
189
+
190
+ ### `disabled` (boolean)
191
+
192
+ Indicates if the plugin is disabled or not
193
+
158
194
  ## `ConfigureProp` (object)
159
195
 
160
196
  Properties of the `ConfigureProp` object:
@@ -167,6 +203,46 @@ Indicates if the item has to be displayed in the Settings Panel
167
203
 
168
204
  Indicates the label for the item that has to be displayed in the Settings Panel
169
205
 
206
+ ## `EditableHtmlPluginConfigure` (object)
207
+
208
+ Properties of the `EditableHtmlPluginConfigure` object:
209
+
210
+ ### `inputConfiguration` (object)
211
+
212
+ Properties of the `inputConfiguration` object:
213
+
214
+ #### `audio` (object)
215
+
216
+ Properties of the `audio` object:
217
+
218
+ ##### `disabled` (boolean)
219
+
220
+ Indicates if the plugin is disabled or not
221
+
222
+ #### `video` (object)
223
+
224
+ Properties of the `video` object:
225
+
226
+ ##### `disabled` (boolean)
227
+
228
+ Indicates if the plugin is disabled or not
229
+
230
+ #### `image` (object)
231
+
232
+ Properties of the `image` object:
233
+
234
+ ##### `disabled` (boolean)
235
+
236
+ Indicates if the plugin is disabled or not
237
+
238
+ ### `settings` (boolean)
239
+
240
+ Indicates if the item has to be displayed in the Settings Panel
241
+
242
+ ### `label` (string)
243
+
244
+ Indicates the label for the item that has to be displayed in the Settings Panel
245
+
170
246
  ## `ConfigureMaxImageDimensionsProp` (object)
171
247
 
172
248
  Properties of the `ConfigureMaxImageDimensionsProp` object:
@@ -1,4 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@2.0.0/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_react_dom_server} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.0/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
2
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3
4
  function getDefaultExportFromCjs(x) {
4
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -94531,6 +94532,10 @@ const require$$12$4 = _dll_debug;
94531
94532
  };
94532
94533
  };
94533
94534
  var renderMath = function renderMath(el, renderOpts) {
94535
+ var _getGlobal$instance, _getGlobal$instance2;
94536
+ if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
94537
+ return;
94538
+ }
94534
94539
  var isString = typeof el === 'string';
94535
94540
  var executeOn = document.body;
94536
94541
  if (isString) {
@@ -94559,12 +94564,12 @@ const require$$12$4 = _dll_debug;
94559
94564
  log('el is undefined');
94560
94565
  return;
94561
94566
  }
94562
- if (el instanceof Element && getGlobal().instance) {
94567
+ if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
94563
94568
  getGlobal().instance.Typeset(el);
94564
- } else if (el.length && getGlobal().instance) {
94565
- var _getGlobal$instance;
94569
+ } else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
94570
+ var _getGlobal$instance3;
94566
94571
  var arr = Array.from(el);
94567
- (_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
94572
+ (_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
94568
94573
  }
94569
94574
  };
94570
94575
  _mspace.CHTMLmspace.styles = {
@@ -110960,12 +110965,12 @@ const React$1 = _dll_react;
110960
110965
  const PropTypes = _dll_prop_types;
110961
110966
  const {cloneDeep: cloneDeep} = _dll_lodash;
110962
110967
  const {debounce: debounce} = _dll_lodash;
110968
+ const debug = _dll_debug;
110963
110969
  const {InputContainer: InputContainer} = _dll_pie_lib__pie_toolbox_config_ui;
110964
110970
  const {NumberTextField: NumberTextField} = _dll_pie_lib__pie_toolbox_config_ui;
110965
110971
  const {FeedbackConfig: FeedbackConfig} = _dll_pie_lib__pie_toolbox_config_ui;
110966
110972
  const {settings: settings} = _dll_pie_lib__pie_toolbox_config_ui;
110967
110973
  const {layout: layout} = _dll_pie_lib__pie_toolbox_config_ui;
110968
- const debug = _dll_debug;
110969
110974
  const {EditableHtml: EditableHtml} = _dll_pie_lib__pie_toolbox_editable_html;
110970
110975
  const _jsxFileName = "/home/circleci/repo/packages/select-text/configure/src/design.jsx";
110971
110976
  function _optionalChain$1(ops) {
@@ -111110,7 +111115,7 @@ class Design extends React$1.Component {
111110
111115
  render() {
111111
111116
  const {text: textValue} = this.state;
111112
111117
  const {classes, configuration, imageSupport, model, onConfigurationChanged, onModelChanged, uploadSoundSupport} = this.props;
111113
- const {correctAnswer = {}, contentDimensions = {}, feedback = {}, highlightChoices = {}, mode = {}, partialScoring = {}, prompt = {}, rationale = {}, selectionCount = {}, selections = {}, settingsPanelDisabled, scoringType = {}, spellCheck = {}, studentInstructions = {}, teacherInstructions = {}, text = {}, tokens = {}, maxImageWidth = {}, maxImageHeight = {}, withRubric = {}, mathMlOptions = {}, language = {}, languageChoices = {}} = configuration || ({});
111118
+ const {baseInputConfiguration = {}, correctAnswer = {}, contentDimensions = {}, feedback = {}, highlightChoices = {}, mode = {}, partialScoring = {}, prompt = {}, rationale = {}, selectionCount = {}, selections = {}, settingsPanelDisabled, scoringType = {}, spellCheck = {}, studentInstructions = {}, teacherInstructions = {}, text = {}, tokens = {}, maxImageWidth = {}, maxImageHeight = {}, withRubric = {}, mathMlOptions = {}, language = {}, languageChoices = {}} = configuration || ({});
111114
111119
  const {errors, feedbackEnabled, promptEnabled, rationaleEnabled, spellCheckEnabled, teacherInstructionsEnabled, toolbarEditorPosition} = model || ({});
111115
111120
  const {tokensError, selectionsError} = errors || ({});
111116
111121
  const validationMessage = generateValidationMessage(configuration);
@@ -111138,6 +111143,11 @@ class Design extends React$1.Component {
111138
111143
  scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),
111139
111144
  rubricEnabled: _optionalChain$1([withRubric, 'optionalAccess', _ => _.settings]) && toggle(_optionalChain$1([withRubric, 'optionalAccess', _2 => _2.label]))
111140
111145
  };
111146
+ const getPluginProps = props => {
111147
+ return Object.assign({
111148
+ ...baseInputConfiguration
111149
+ }, props || ({}));
111150
+ };
111141
111151
  return React$1.createElement(layout.ConfigLayout, {
111142
111152
  dimensions: contentDimensions,
111143
111153
  hideSettings: settingsPanelDisabled,
@@ -111153,13 +111163,13 @@ class Design extends React$1.Component {
111153
111163
  __self: this,
111154
111164
  __source: {
111155
111165
  fileName: _jsxFileName,
111156
- lineNumber: 200
111166
+ lineNumber: 210
111157
111167
  }
111158
111168
  }),
111159
111169
  __self: this,
111160
111170
  __source: {
111161
111171
  fileName: _jsxFileName,
111162
- lineNumber: 196
111172
+ lineNumber: 206
111163
111173
  }
111164
111174
  }, teacherInstructionsEnabled && React$1.createElement(InputContainer, {
111165
111175
  label: teacherInstructions.label,
@@ -111167,7 +111177,7 @@ class Design extends React$1.Component {
111167
111177
  __self: this,
111168
111178
  __source: {
111169
111179
  fileName: _jsxFileName,
111170
- lineNumber: 213
111180
+ lineNumber: 223
111171
111181
  }
111172
111182
  }, React$1.createElement(EditableHtml, {
111173
111183
  className: classes.prompt,
@@ -111176,6 +111186,7 @@ class Design extends React$1.Component {
111176
111186
  imageSupport: imageSupport,
111177
111187
  nonEmpty: false,
111178
111188
  toolbarOpts: toolbarOpts,
111189
+ pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _3 => _3.teacherInstructions, 'optionalAccess', _4 => _4.inputConfiguration])),
111179
111190
  spellCheck: spellCheckEnabled,
111180
111191
  maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
111181
111192
  maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
@@ -111189,7 +111200,7 @@ class Design extends React$1.Component {
111189
111200
  __self: this,
111190
111201
  __source: {
111191
111202
  fileName: _jsxFileName,
111192
- lineNumber: 214
111203
+ lineNumber: 224
111193
111204
  }
111194
111205
  })), promptEnabled && React$1.createElement(InputContainer, {
111195
111206
  label: prompt.label || '',
@@ -111197,7 +111208,7 @@ class Design extends React$1.Component {
111197
111208
  __self: this,
111198
111209
  __source: {
111199
111210
  fileName: _jsxFileName,
111200
- lineNumber: 232
111211
+ lineNumber: 243
111201
111212
  }
111202
111213
  }, React$1.createElement(EditableHtml, {
111203
111214
  className: classes.prompt,
@@ -111205,6 +111216,7 @@ class Design extends React$1.Component {
111205
111216
  onChange: this.onPromptChanged,
111206
111217
  imageSupport: imageSupport,
111207
111218
  toolbarOpts: toolbarOpts,
111219
+ pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _5 => _5.prompt, 'optionalAccess', _6 => _6.inputConfiguration])),
111208
111220
  spellCheck: spellCheckEnabled,
111209
111221
  maxImageWidth: defaultImageMaxWidth,
111210
111222
  maxImageHeight: defaultImageMaxHeight,
@@ -111218,7 +111230,7 @@ class Design extends React$1.Component {
111218
111230
  __self: this,
111219
111231
  __source: {
111220
111232
  fileName: _jsxFileName,
111221
- lineNumber: 233
111233
+ lineNumber: 244
111222
111234
  }
111223
111235
  })), text.settings && React$1.createElement(InputContainer, {
111224
111236
  label: text.label || '',
@@ -111226,7 +111238,7 @@ class Design extends React$1.Component {
111226
111238
  __self: this,
111227
111239
  __source: {
111228
111240
  fileName: _jsxFileName,
111229
- lineNumber: 250
111241
+ lineNumber: 262
111230
111242
  }
111231
111243
  }, React$1.createElement(TextField, {
111232
111244
  className: classes.input,
@@ -111237,7 +111249,7 @@ class Design extends React$1.Component {
111237
111249
  __self: this,
111238
111250
  __source: {
111239
111251
  fileName: _jsxFileName,
111240
- lineNumber: 251
111252
+ lineNumber: 263
111241
111253
  }
111242
111254
  })), tokens.settings && React$1.createElement(InputContainer, {
111243
111255
  label: tokens.label || '',
@@ -111245,7 +111257,7 @@ class Design extends React$1.Component {
111245
111257
  __self: this,
111246
111258
  __source: {
111247
111259
  fileName: _jsxFileName,
111248
- lineNumber: 262
111260
+ lineNumber: 274
111249
111261
  }
111250
111262
  }, React$1.createElement(Tooltip, {
111251
111263
  classes: {
@@ -111258,7 +111270,7 @@ class Design extends React$1.Component {
111258
111270
  __self: this,
111259
111271
  __source: {
111260
111272
  fileName: _jsxFileName,
111261
- lineNumber: 263
111273
+ lineNumber: 275
111262
111274
  }
111263
111275
  }, React$1.createElement(default_1, {
111264
111276
  fontSize: 'small',
@@ -111271,7 +111283,7 @@ class Design extends React$1.Component {
111271
111283
  __self: this,
111272
111284
  __source: {
111273
111285
  fileName: _jsxFileName,
111274
- lineNumber: 270
111286
+ lineNumber: 282
111275
111287
  }
111276
111288
  })), React$1.createElement(textSelect$2.Tokenizer, {
111277
111289
  className: classes.tokenizer,
@@ -111281,28 +111293,28 @@ class Design extends React$1.Component {
111281
111293
  __self: this,
111282
111294
  __source: {
111283
111295
  fileName: _jsxFileName,
111284
- lineNumber: 273
111296
+ lineNumber: 285
111285
111297
  }
111286
111298
  })), tokensError && React$1.createElement('div', {
111287
111299
  className: classes.errorText,
111288
111300
  __self: this,
111289
111301
  __source: {
111290
111302
  fileName: _jsxFileName,
111291
- lineNumber: 281
111303
+ lineNumber: 293
111292
111304
  }
111293
111305
  }, tokensError), selectionsError && React$1.createElement('div', {
111294
111306
  className: classes.errorText,
111295
111307
  __self: this,
111296
111308
  __source: {
111297
111309
  fileName: _jsxFileName,
111298
- lineNumber: 282
111310
+ lineNumber: 294
111299
111311
  }
111300
111312
  }, selectionsError), React$1.createElement('div', {
111301
111313
  className: classes.tokensDetails,
111302
111314
  __self: this,
111303
111315
  __source: {
111304
111316
  fileName: _jsxFileName,
111305
- lineNumber: 284
111317
+ lineNumber: 296
111306
111318
  }
111307
111319
  }, mode.settings && React$1.createElement(Chip, {
111308
111320
  label: `${mode.label}: ${model.mode ? model.mode : 'None'}`,
@@ -111310,7 +111322,7 @@ class Design extends React$1.Component {
111310
111322
  __self: this,
111311
111323
  __source: {
111312
111324
  fileName: _jsxFileName,
111313
- lineNumber: 286
111325
+ lineNumber: 298
111314
111326
  }
111315
111327
  }), selections.settings && React$1.createElement(Chip, {
111316
111328
  label: `${selections.label}: ${tokensModel.length}`,
@@ -111318,7 +111330,7 @@ class Design extends React$1.Component {
111318
111330
  __self: this,
111319
111331
  __source: {
111320
111332
  fileName: _jsxFileName,
111321
- lineNumber: 290
111333
+ lineNumber: 302
111322
111334
  }
111323
111335
  }), correctAnswer.settings && React$1.createElement(Chip, {
111324
111336
  label: `${correctAnswer.label}: ${tokensModel.filter(t => t.correct).length}`,
@@ -111326,7 +111338,7 @@ class Design extends React$1.Component {
111326
111338
  __self: this,
111327
111339
  __source: {
111328
111340
  fileName: _jsxFileName,
111329
- lineNumber: 294
111341
+ lineNumber: 306
111330
111342
  }
111331
111343
  }), selectionCount.settings && React$1.createElement(NumberTextField, {
111332
111344
  min: tokensModel.filter(t => t.correct).length || 0,
@@ -111338,7 +111350,7 @@ class Design extends React$1.Component {
111338
111350
  __self: this,
111339
111351
  __source: {
111340
111352
  fileName: _jsxFileName,
111341
- lineNumber: 301
111353
+ lineNumber: 313
111342
111354
  }
111343
111355
  })), rationaleEnabled && React$1.createElement(InputContainer, {
111344
111356
  label: rationale.label || '',
@@ -111346,7 +111358,7 @@ class Design extends React$1.Component {
111346
111358
  __self: this,
111347
111359
  __source: {
111348
111360
  fileName: _jsxFileName,
111349
- lineNumber: 313
111361
+ lineNumber: 325
111350
111362
  }
111351
111363
  }, React$1.createElement(EditableHtml, {
111352
111364
  className: classes.prompt,
@@ -111354,6 +111366,7 @@ class Design extends React$1.Component {
111354
111366
  onChange: this.onRationaleChanged,
111355
111367
  imageSupport: imageSupport,
111356
111368
  toolbarOpts: toolbarOpts,
111369
+ pluginProps: getPluginProps(_optionalChain$1([configuration, 'optionalAccess', _7 => _7.rationale, 'optionalAccess', _8 => _8.inputConfiguration])),
111357
111370
  spellCheck: spellCheckEnabled,
111358
111371
  maxImageWidth: maxImageWidth && maxImageWidth.rationale || defaultImageMaxWidth,
111359
111372
  maxImageHeight: maxImageHeight && maxImageHeight.rationale || defaultImageMaxHeight,
@@ -111367,7 +111380,7 @@ class Design extends React$1.Component {
111367
111380
  __self: this,
111368
111381
  __source: {
111369
111382
  fileName: _jsxFileName,
111370
- lineNumber: 314
111383
+ lineNumber: 326
111371
111384
  }
111372
111385
  })), feedbackEnabled && React$1.createElement(FeedbackConfig, {
111373
111386
  feedback: model.feedback,
@@ -111376,7 +111389,7 @@ class Design extends React$1.Component {
111376
111389
  __self: this,
111377
111390
  __source: {
111378
111391
  fileName: _jsxFileName,
111379
- lineNumber: 331
111392
+ lineNumber: 344
111380
111393
  }
111381
111394
  }));
111382
111395
  }
@@ -111534,6 +111547,17 @@ var defaultValues = {
111534
111547
  toolbarEditorPosition: 'bottom'
111535
111548
  },
111536
111549
  configuration: {
111550
+ baseInputConfiguration: {
111551
+ audio: {
111552
+ disabled: false
111553
+ },
111554
+ video: {
111555
+ disabled: false
111556
+ },
111557
+ image: {
111558
+ disabled: false
111559
+ }
111560
+ },
111537
111561
  selectionCount: {
111538
111562
  settings: true,
111539
111563
  label: 'Selection count'
@@ -111552,7 +111576,18 @@ var defaultValues = {
111552
111576
  },
111553
111577
  rationale: {
111554
111578
  settings: true,
111555
- label: 'Rationale'
111579
+ label: 'Rationale',
111580
+ inputConfiguration: {
111581
+ audio: {
111582
+ disabled: false
111583
+ },
111584
+ video: {
111585
+ disabled: false
111586
+ },
111587
+ image: {
111588
+ disabled: false
111589
+ }
111590
+ }
111556
111591
  },
111557
111592
  scoringType: {
111558
111593
  settings: false,
@@ -111564,11 +111599,33 @@ var defaultValues = {
111564
111599
  },
111565
111600
  teacherInstructions: {
111566
111601
  settings: true,
111567
- label: 'Teacher Instructions'
111602
+ label: 'Teacher Instructions',
111603
+ inputConfiguration: {
111604
+ audio: {
111605
+ disabled: false
111606
+ },
111607
+ video: {
111608
+ disabled: false
111609
+ },
111610
+ image: {
111611
+ disabled: false
111612
+ }
111613
+ }
111568
111614
  },
111569
111615
  prompt: {
111570
111616
  label: 'Prompt',
111571
- settings: true
111617
+ settings: true,
111618
+ inputConfiguration: {
111619
+ audio: {
111620
+ disabled: false
111621
+ },
111622
+ video: {
111623
+ disabled: false
111624
+ },
111625
+ image: {
111626
+ disabled: false
111627
+ }
111628
+ }
111572
111629
  },
111573
111630
  text: {
111574
111631
  settings: true,
package/module/element.js CHANGED
@@ -1,4 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-module@2.0.0/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.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@4.0.0/module/index.js";
2
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3
4
  function getDefaultExportFromCjs(x) {
4
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -91359,6 +91360,10 @@ const require$$12$2 = _dll_debug;
91359
91360
  };
91360
91361
  };
91361
91362
  var renderMath = function renderMath(el, renderOpts) {
91363
+ var _getGlobal$instance, _getGlobal$instance2;
91364
+ if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
91365
+ return;
91366
+ }
91362
91367
  var isString = typeof el === 'string';
91363
91368
  var executeOn = document.body;
91364
91369
  if (isString) {
@@ -91387,12 +91392,12 @@ const require$$12$2 = _dll_debug;
91387
91392
  log('el is undefined');
91388
91393
  return;
91389
91394
  }
91390
- if (el instanceof Element && getGlobal().instance) {
91395
+ if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
91391
91396
  getGlobal().instance.Typeset(el);
91392
- } else if (el.length && getGlobal().instance) {
91393
- var _getGlobal$instance;
91397
+ } else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
91398
+ var _getGlobal$instance3;
91394
91399
  var arr = Array.from(el);
91395
- (_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
91400
+ (_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
91396
91401
  }
91397
91402
  };
91398
91403
  _mspace.CHTMLmspace.styles = {
@@ -106335,13 +106340,13 @@ var generateModel = model => {
106335
106340
  };
106336
106341
  const React$1 = _dll_react;
106337
106342
  const PropTypes = _dll_prop_types;
106343
+ const debug = _dll_debug;
106338
106344
  const {CorrectAnswerToggle: CorrectAnswerToggle} = _dll_pie_lib__pie_toolbox_correct_answer_toggle;
106339
106345
  const {color: color} = _dll_pie_lib__pie_toolbox_render_ui;
106340
106346
  const {Feedback: Feedback} = _dll_pie_lib__pie_toolbox_render_ui;
106341
106347
  const {Collapsible: Collapsible} = _dll_pie_lib__pie_toolbox_render_ui;
106342
106348
  const {hasText: hasText} = _dll_pie_lib__pie_toolbox_render_ui;
106343
106349
  const {PreviewPrompt: PreviewPrompt} = _dll_pie_lib__pie_toolbox_render_ui;
106344
- const debug = _dll_debug;
106345
106350
  const _jsxFileName = "/home/circleci/repo/packages/select-text/src/main.jsx";
106346
106351
  const log = debug('@pie-ui:select-text');
106347
106352
  const Types = {
@@ -2,9 +2,13 @@
2
2
  "name": "@pie-element/select-text",
3
3
  "version": "8.3.2",
4
4
  "modules": [
5
+ {
6
+ "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
+ "version": "1.1.0"
8
+ },
5
9
  {
6
10
  "name": "@pie-lib/pie-toolbox-module",
7
- "version": "2.0.0"
11
+ "version": "4.0.0"
8
12
  }
9
13
  ]
10
14
  }
package/module/print.js CHANGED
@@ -1,4 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-module@2.0.0/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.1.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@4.0.0/module/index.js";
2
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3
4
  function getDefaultExportFromCjs(x) {
4
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -91322,6 +91323,10 @@ const require$$12$2 = _dll_debug;
91322
91323
  };
91323
91324
  };
91324
91325
  var renderMath = function renderMath(el, renderOpts) {
91326
+ var _getGlobal$instance, _getGlobal$instance2;
91327
+ if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
91328
+ return;
91329
+ }
91325
91330
  var isString = typeof el === 'string';
91326
91331
  var executeOn = document.body;
91327
91332
  if (isString) {
@@ -91350,12 +91355,12 @@ const require$$12$2 = _dll_debug;
91350
91355
  log('el is undefined');
91351
91356
  return;
91352
91357
  }
91353
- if (el instanceof Element && getGlobal().instance) {
91358
+ if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
91354
91359
  getGlobal().instance.Typeset(el);
91355
- } else if (el.length && getGlobal().instance) {
91356
- var _getGlobal$instance;
91360
+ } else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
91361
+ var _getGlobal$instance3;
91357
91362
  var arr = Array.from(el);
91358
- (_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
91363
+ (_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
91359
91364
  }
91360
91365
  };
91361
91366
  _mspace.CHTMLmspace.styles = {
@@ -106298,13 +106303,13 @@ var generateModel = model => {
106298
106303
  };
106299
106304
  const React$1 = _dll_react;
106300
106305
  const PropTypes = _dll_prop_types;
106306
+ const debug$1 = _dll_debug;
106301
106307
  const {CorrectAnswerToggle: CorrectAnswerToggle} = _dll_pie_lib__pie_toolbox_correct_answer_toggle;
106302
106308
  const {color: color} = _dll_pie_lib__pie_toolbox_render_ui;
106303
106309
  const {Feedback: Feedback} = _dll_pie_lib__pie_toolbox_render_ui;
106304
106310
  const {Collapsible: Collapsible} = _dll_pie_lib__pie_toolbox_render_ui;
106305
106311
  const {hasText: hasText} = _dll_pie_lib__pie_toolbox_render_ui;
106306
106312
  const {PreviewPrompt: PreviewPrompt} = _dll_pie_lib__pie_toolbox_render_ui;
106307
- const debug$1 = _dll_debug;
106308
106313
  const _jsxFileName = "/home/circleci/repo/packages/select-text/src/main.jsx";
106309
106314
  const log$1 = debug$1('@pie-ui:select-text');
106310
106315
  const Types = {
package/package.json CHANGED
@@ -4,19 +4,19 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "8.3.3-next.9+0e3bad244",
7
+ "version": "8.4.0",
8
8
  "description": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
- "@pie-lib/pie-toolbox": "1.7.4",
12
+ "@pie-lib/pie-toolbox": "1.8.1",
13
13
  "prop-types": "^15.6.1",
14
14
  "react": "^16.8.1",
15
15
  "react-dom": "^16.8.1"
16
16
  },
17
17
  "author": "",
18
18
  "license": "ISC",
19
- "gitHead": "0e3bad2448efb7228818808395371d5c4df6fca1",
19
+ "gitHead": "95bab062051a7c74c61eb71aa076e78bff998488",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },