@brightspace-ui/core 1.242.3 → 1.242.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.
@@ -14,7 +14,8 @@ import { tryGetIfrauBackdropService } from '../../helpers/ifrauBackdropService.j
14
14
  window.D2L = window.D2L || {};
15
15
  window.D2L.DialogMixin = window.D2L.DialogMixin || {};
16
16
 
17
- window.D2L.DialogMixin.hasNative = (window.HTMLDialogElement !== undefined);
17
+ window.D2L.DialogMixin.hasNative = (window.HTMLDialogElement !== undefined)
18
+ && (navigator.vendor && navigator.vendor.toLowerCase().indexOf('apple') === -1);
18
19
  if (window.D2L.DialogMixin.preferNative === undefined) {
19
20
  window.D2L.DialogMixin.preferNative = true;
20
21
  }
@@ -141,6 +141,18 @@
141
141
  </mfrac>
142
142
  </mrow>
143
143
  <mtext>.</mtext>
144
+ <mspace linebreak="newline"></mspace>
145
+ <msup>
146
+ <mi>e</mi>
147
+ <mrow>
148
+ <mi>i</mi>
149
+ <mi>π<!-- π --></mi>
150
+ </mrow>
151
+ </msup>
152
+ <mo>+</mo>
153
+ <mn>1</mn>
154
+ <mo>=</mo>
155
+ <mn>0</mn>
144
156
  </math>
145
157
  <math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
146
158
  <msup>
@@ -4905,7 +4905,8 @@
4905
4905
  "type": "number"
4906
4906
  },
4907
4907
  {
4908
- "name": "trailingZeroes"
4908
+ "name": "trailingZeroes",
4909
+ "type": "boolean"
4909
4910
  },
4910
4911
  {
4911
4912
  "name": "value",
@@ -8296,7 +8297,7 @@
8296
8297
  {
8297
8298
  "name": "d2l-overflow-group",
8298
8299
  "path": "./components/overflow-group/overflow-group.js",
8299
- "description": "A component that can be used to display a set of buttons, links or menus that will be put into a dropdown menu when they no longer fit on the first line of their container",
8300
+ "description": "\nA component that can be used to display a set of buttons, links or menus that will be put into a dropdown menu when they no longer fit on the first line of their container",
8300
8301
  "attributes": [
8301
8302
  {
8302
8303
  "name": "auto-show",
@@ -8423,7 +8424,7 @@
8423
8424
  {
8424
8425
  "name": "d2l-scroll-wrapper",
8425
8426
  "path": "./components/scroll-wrapper/scroll-wrapper.js",
8426
- "description": "Wraps content which may overflow its horizontal boundaries, providing left/right scroll buttons.",
8427
+ "description": "\nWraps content which may overflow its horizontal boundaries, providing left/right scroll buttons.",
8427
8428
  "attributes": [
8428
8429
  {
8429
8430
  "name": "hide-actions",
@@ -64,14 +64,21 @@ export class HtmlBlockMathRenderer {
64
64
  return elem;
65
65
  }
66
66
 
67
+ // MathJax 3 does not support newlines, but it does persist styles, so add custom styles to mimic a linebreak
68
+ // This work-around should be removed when linebreaks are natively supported.
69
+ // MathJax issue: https://github.com/mathjax/MathJax/issues/2312
70
+ // A duplicate that explains our exact issue: https://github.com/mathjax/MathJax/issues/2495
71
+ const inner = elem.innerHTML.replaceAll('<mspace linebreak="newline">', '<mspace linebreak="newline" style="display: block; height: 0.5rem;">');
72
+
67
73
  const temp = document.createElement('div');
68
74
  temp.style.display = 'none';
69
75
  temp.attachShadow({ mode: 'open' });
70
- temp.shadowRoot.innerHTML = `<div><mjx-doc><mjx-head></mjx-head><mjx-body>${elem.innerHTML}</mjx-body></mjx-doc></div>`;
76
+ temp.shadowRoot.innerHTML = `<div><mjx-doc><mjx-head></mjx-head><mjx-body>${inner}</mjx-body></mjx-doc></div>`;
71
77
 
72
78
  elem.appendChild(temp);
73
79
  await window.MathJax.startup.promise;
74
80
  window.MathJax.typesetShadow(temp.shadowRoot);
81
+
75
82
  return temp.shadowRoot.firstChild;
76
83
  }
77
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.242.3",
3
+ "version": "1.242.6",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",