@mui/internal-docs-infra 0.2.3-canary.17 → 0.2.3-canary.18
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/esm/useCode/Pre.js +7 -1
- package/package.json +3 -3
package/esm/useCode/Pre.js
CHANGED
|
@@ -105,10 +105,16 @@ export function Pre(_ref) {
|
|
|
105
105
|
}, {
|
|
106
106
|
rootMargin: hydrateMargin
|
|
107
107
|
});
|
|
108
|
-
|
|
108
|
+
|
|
109
|
+
// <pre><code><span class="frame" data-frame="0">...</span><span class="frame" data-frame="1">...</span>...</code></pre>
|
|
110
|
+
root.childNodes[0].childNodes.forEach(function (node) {
|
|
109
111
|
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
110
112
|
var _observer$current;
|
|
111
113
|
var element = node;
|
|
114
|
+
if (!element.hasAttribute('data-frame')) {
|
|
115
|
+
console.warn('Expected frame element in useCode <Pre>', element);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
112
118
|
(_observer$current = observer.current) == null || _observer$current.observe(element);
|
|
113
119
|
}
|
|
114
120
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-docs-infra",
|
|
3
|
-
"version": "0.2.3-canary.
|
|
3
|
+
"version": "0.2.3-canary.18",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "MUI Infra - internal documentation creation tools.",
|
|
6
6
|
"keywords": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"kebab-case": "^2.0.2",
|
|
33
33
|
"lz-string": "^1.5.0",
|
|
34
34
|
"path-module": "^0.1.2",
|
|
35
|
-
"prettier": "~3.
|
|
35
|
+
"prettier": "~3.7.4",
|
|
36
36
|
"uint8-to-base64": "^0.2.1",
|
|
37
37
|
"unist-util-visit": "^5.0.0",
|
|
38
38
|
"vscode-oniguruma": "^2.0.1"
|
|
@@ -259,5 +259,5 @@
|
|
|
259
259
|
},
|
|
260
260
|
"./esm": null
|
|
261
261
|
},
|
|
262
|
-
"gitSha": "
|
|
262
|
+
"gitSha": "38c5a98185aff44d88220fd39d8fd542ca3e96e9"
|
|
263
263
|
}
|