@pie-element/select-text 8.3.2-next.2 → 8.3.2-next.6

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.
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "1.7.1",
11
+ "@pie-lib/pie-toolbox": "1.7.2",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -6,7 +6,7 @@
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
- "@pie-lib/pie-toolbox": "1.7.1",
9
+ "@pie-lib/pie-toolbox": "1.7.2",
10
10
  "debug": "^3.1.0",
11
11
  "lodash": "^4.17.15"
12
12
  },
@@ -94463,47 +94463,12 @@ const require$$12$4 = _dll_debug;
94463
94463
  packages: packages,
94464
94464
  macros: macros,
94465
94465
  inlineMath: [['$', '$'], ['\\(', '\\)']],
94466
- processEscapes: true,
94467
- options: {
94468
- enableExplorer: true,
94469
- enableAssistiveMml: true,
94470
- a11y: {
94471
- speech: true,
94472
- braille: true,
94473
- subtitles: true
94474
- },
94475
- sre: {
94476
- domain: 'default',
94477
- style: 'default',
94478
- locale: 'en'
94479
- }
94480
- }
94466
+ processEscapes: true
94481
94467
  } : {
94482
94468
  packages: packages,
94483
- macros: macros,
94484
- options: {
94485
- enableExplorer: true,
94486
- enableAssistiveMml: true,
94487
- a11y: {
94488
- speech: true,
94489
- braille: true,
94490
- subtitles: true
94491
- },
94492
- sre: {
94493
- domain: 'default',
94494
- style: 'default',
94495
- locale: 'en'
94496
- }
94497
- }
94469
+ macros: macros
94498
94470
  };
94499
94471
  var mmlConfig = {
94500
- options: {
94501
- a11y: {
94502
- speech: true,
94503
- braille: true,
94504
- subtitles: true
94505
- }
94506
- },
94507
94472
  parseError: function parseError(node) {
94508
94473
  console.log('error:', node);
94509
94474
  this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
@@ -94512,12 +94477,7 @@ const require$$12$4 = _dll_debug;
94512
94477
  var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
94513
94478
  var htmlConfig = {
94514
94479
  fontURL: fontURL,
94515
- wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes)),
94516
- options: {
94517
- renderActions: {
94518
- assistiveMml: [['AssistiveMmlHandler']]
94519
- }
94520
- }
94480
+ wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
94521
94481
  };
94522
94482
  var mml = new _mathml.MathML(mmlConfig);
94523
94483
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
@@ -94531,16 +94491,6 @@ const require$$12$4 = _dll_debug;
94531
94491
  console.error(err);
94532
94492
  doc.typesetError(math, err);
94533
94493
  },
94534
- options: {
94535
- enableAssistiveMml: true,
94536
- menuOptions: {
94537
- settings: {
94538
- assistiveMml: true,
94539
- collapsible: true,
94540
- explorer: true
94541
- }
94542
- }
94543
- },
94544
94494
  InputJax: [new _tex.TeX(texConfig), mml],
94545
94495
  OutputJax: new _chtml.CHTML(htmlConfig)
94546
94496
  });
@@ -94609,9 +94559,9 @@ const require$$12$4 = _dll_debug;
94609
94559
  log('el is undefined');
94610
94560
  return;
94611
94561
  }
94612
- if (el instanceof Element) {
94562
+ if (el instanceof Element && getGlobal().instance) {
94613
94563
  getGlobal().instance.Typeset(el);
94614
- } else if (el.length) {
94564
+ } else if (el.length && getGlobal().instance) {
94615
94565
  var _getGlobal$instance;
94616
94566
  var arr = Array.from(el);
94617
94567
  (_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
@@ -104276,8 +104226,18 @@ const require$$11$3 = _dll_prop_types;
104276
104226
  return _this;
104277
104227
  }
104278
104228
  (0, _createClass2["default"])(PreviewPrompt, [{
104229
+ key: "componentDidMount",
104230
+ value: function componentDidMount() {
104231
+ this.alignImages();
104232
+ }
104233
+ }, {
104279
104234
  key: "componentDidUpdate",
104280
104235
  value: function componentDidUpdate() {
104236
+ this.alignImages();
104237
+ }
104238
+ }, {
104239
+ key: "alignImages",
104240
+ value: function alignImages() {
104281
104241
  var previewPrompt = document.querySelector('#preview-prompt');
104282
104242
  var images = previewPrompt && previewPrompt.getElementsByTagName('img');
104283
104243
  if (images && images.length) {
package/module/element.js CHANGED
@@ -91291,47 +91291,12 @@ const require$$12$2 = _dll_debug;
91291
91291
  packages: packages,
91292
91292
  macros: macros,
91293
91293
  inlineMath: [['$', '$'], ['\\(', '\\)']],
91294
- processEscapes: true,
91295
- options: {
91296
- enableExplorer: true,
91297
- enableAssistiveMml: true,
91298
- a11y: {
91299
- speech: true,
91300
- braille: true,
91301
- subtitles: true
91302
- },
91303
- sre: {
91304
- domain: 'default',
91305
- style: 'default',
91306
- locale: 'en'
91307
- }
91308
- }
91294
+ processEscapes: true
91309
91295
  } : {
91310
91296
  packages: packages,
91311
- macros: macros,
91312
- options: {
91313
- enableExplorer: true,
91314
- enableAssistiveMml: true,
91315
- a11y: {
91316
- speech: true,
91317
- braille: true,
91318
- subtitles: true
91319
- },
91320
- sre: {
91321
- domain: 'default',
91322
- style: 'default',
91323
- locale: 'en'
91324
- }
91325
- }
91297
+ macros: macros
91326
91298
  };
91327
91299
  var mmlConfig = {
91328
- options: {
91329
- a11y: {
91330
- speech: true,
91331
- braille: true,
91332
- subtitles: true
91333
- }
91334
- },
91335
91300
  parseError: function parseError(node) {
91336
91301
  console.log('error:', node);
91337
91302
  this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
@@ -91340,12 +91305,7 @@ const require$$12$2 = _dll_debug;
91340
91305
  var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
91341
91306
  var htmlConfig = {
91342
91307
  fontURL: fontURL,
91343
- wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes)),
91344
- options: {
91345
- renderActions: {
91346
- assistiveMml: [['AssistiveMmlHandler']]
91347
- }
91348
- }
91308
+ wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
91349
91309
  };
91350
91310
  var mml = new _mathml.MathML(mmlConfig);
91351
91311
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
@@ -91359,16 +91319,6 @@ const require$$12$2 = _dll_debug;
91359
91319
  console.error(err);
91360
91320
  doc.typesetError(math, err);
91361
91321
  },
91362
- options: {
91363
- enableAssistiveMml: true,
91364
- menuOptions: {
91365
- settings: {
91366
- assistiveMml: true,
91367
- collapsible: true,
91368
- explorer: true
91369
- }
91370
- }
91371
- },
91372
91322
  InputJax: [new _tex.TeX(texConfig), mml],
91373
91323
  OutputJax: new _chtml.CHTML(htmlConfig)
91374
91324
  });
@@ -91437,9 +91387,9 @@ const require$$12$2 = _dll_debug;
91437
91387
  log('el is undefined');
91438
91388
  return;
91439
91389
  }
91440
- if (el instanceof Element) {
91390
+ if (el instanceof Element && getGlobal().instance) {
91441
91391
  getGlobal().instance.Typeset(el);
91442
- } else if (el.length) {
91392
+ } else if (el.length && getGlobal().instance) {
91443
91393
  var _getGlobal$instance;
91444
91394
  var arr = Array.from(el);
91445
91395
  (_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
@@ -101822,8 +101772,18 @@ const require$$11$1 = _dll_prop_types;
101822
101772
  return _this;
101823
101773
  }
101824
101774
  (0, _createClass2["default"])(PreviewPrompt, [{
101775
+ key: "componentDidMount",
101776
+ value: function componentDidMount() {
101777
+ this.alignImages();
101778
+ }
101779
+ }, {
101825
101780
  key: "componentDidUpdate",
101826
101781
  value: function componentDidUpdate() {
101782
+ this.alignImages();
101783
+ }
101784
+ }, {
101785
+ key: "alignImages",
101786
+ value: function alignImages() {
101827
101787
  var previewPrompt = document.querySelector('#preview-prompt');
101828
101788
  var images = previewPrompt && previewPrompt.getElementsByTagName('img');
101829
101789
  if (images && images.length) {
package/module/print.js CHANGED
@@ -91254,47 +91254,12 @@ const require$$12$2 = _dll_debug;
91254
91254
  packages: packages,
91255
91255
  macros: macros,
91256
91256
  inlineMath: [['$', '$'], ['\\(', '\\)']],
91257
- processEscapes: true,
91258
- options: {
91259
- enableExplorer: true,
91260
- enableAssistiveMml: true,
91261
- a11y: {
91262
- speech: true,
91263
- braille: true,
91264
- subtitles: true
91265
- },
91266
- sre: {
91267
- domain: 'default',
91268
- style: 'default',
91269
- locale: 'en'
91270
- }
91271
- }
91257
+ processEscapes: true
91272
91258
  } : {
91273
91259
  packages: packages,
91274
- macros: macros,
91275
- options: {
91276
- enableExplorer: true,
91277
- enableAssistiveMml: true,
91278
- a11y: {
91279
- speech: true,
91280
- braille: true,
91281
- subtitles: true
91282
- },
91283
- sre: {
91284
- domain: 'default',
91285
- style: 'default',
91286
- locale: 'en'
91287
- }
91288
- }
91260
+ macros: macros
91289
91261
  };
91290
91262
  var mmlConfig = {
91291
- options: {
91292
- a11y: {
91293
- speech: true,
91294
- braille: true,
91295
- subtitles: true
91296
- }
91297
- },
91298
91263
  parseError: function parseError(node) {
91299
91264
  console.log('error:', node);
91300
91265
  this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
@@ -91303,12 +91268,7 @@ const require$$12$2 = _dll_debug;
91303
91268
  var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
91304
91269
  var htmlConfig = {
91305
91270
  fontURL: fontURL,
91306
- wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes)),
91307
- options: {
91308
- renderActions: {
91309
- assistiveMml: [['AssistiveMmlHandler']]
91310
- }
91311
- }
91271
+ wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
91312
91272
  };
91313
91273
  var mml = new _mathml.MathML(mmlConfig);
91314
91274
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
@@ -91322,16 +91282,6 @@ const require$$12$2 = _dll_debug;
91322
91282
  console.error(err);
91323
91283
  doc.typesetError(math, err);
91324
91284
  },
91325
- options: {
91326
- enableAssistiveMml: true,
91327
- menuOptions: {
91328
- settings: {
91329
- assistiveMml: true,
91330
- collapsible: true,
91331
- explorer: true
91332
- }
91333
- }
91334
- },
91335
91285
  InputJax: [new _tex.TeX(texConfig), mml],
91336
91286
  OutputJax: new _chtml.CHTML(htmlConfig)
91337
91287
  });
@@ -91400,9 +91350,9 @@ const require$$12$2 = _dll_debug;
91400
91350
  log('el is undefined');
91401
91351
  return;
91402
91352
  }
91403
- if (el instanceof Element) {
91353
+ if (el instanceof Element && getGlobal().instance) {
91404
91354
  getGlobal().instance.Typeset(el);
91405
- } else if (el.length) {
91355
+ } else if (el.length && getGlobal().instance) {
91406
91356
  var _getGlobal$instance;
91407
91357
  var arr = Array.from(el);
91408
91358
  (_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
@@ -101785,8 +101735,18 @@ const require$$11$1 = _dll_prop_types;
101785
101735
  return _this;
101786
101736
  }
101787
101737
  (0, _createClass2["default"])(PreviewPrompt, [{
101738
+ key: "componentDidMount",
101739
+ value: function componentDidMount() {
101740
+ this.alignImages();
101741
+ }
101742
+ }, {
101788
101743
  key: "componentDidUpdate",
101789
101744
  value: function componentDidUpdate() {
101745
+ this.alignImages();
101746
+ }
101747
+ }, {
101748
+ key: "alignImages",
101749
+ value: function alignImages() {
101790
101750
  var previewPrompt = document.querySelector('#preview-prompt');
101791
101751
  var images = previewPrompt && previewPrompt.getElementsByTagName('img');
101792
101752
  if (images && images.length) {
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.2-next.2+37c47ad03",
7
+ "version": "8.3.2-next.6+4ff9971e6",
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.1",
12
+ "@pie-lib/pie-toolbox": "1.7.2",
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": "37c47ad039789cb7eee68973215cd8a9f5c84716",
19
+ "gitHead": "4ff9971e65b680aea180c94f9e85cab7249af2fb",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },