@mui/internal-docs-infra 0.13.1-canary.32 → 0.13.1-canary.34
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-docs-infra",
|
|
3
|
-
"version": "0.13.1-canary.
|
|
3
|
+
"version": "0.13.1-canary.34",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "MUI Infra - internal documentation creation tools.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/mui/mui-public/tree/master/packages/docs-infra",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@babel/runtime": "^8.1.
|
|
32
|
+
"@babel/runtime": "^8.1.2",
|
|
33
33
|
"@csstools/postcss-light-dark-function": "^3.0.8",
|
|
34
34
|
"@csstools/postcss-relative-color-syntax": "^4.0.16",
|
|
35
35
|
"@csstools/postcss-stepped-value-functions": "^5.0.9",
|
|
36
|
-
"@mui/internal-typescript-api-extractor": "0.1.1-canary.
|
|
36
|
+
"@mui/internal-typescript-api-extractor": "0.1.1-canary.3",
|
|
37
37
|
"@orama/orama": "^3.1.18",
|
|
38
38
|
"@orama/plugin-qps": "^3.1.18",
|
|
39
39
|
"@orama/stemmers": "^3.1.18",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"kebab-case": "^2.0.2",
|
|
52
52
|
"lz-string": "^1.5.0",
|
|
53
53
|
"path-module": "^0.1.2",
|
|
54
|
-
"postcss": "^8.5.
|
|
54
|
+
"postcss": "^8.5.33",
|
|
55
55
|
"postcss-modules-extract-imports": "^3.1.0",
|
|
56
56
|
"postcss-modules-local-by-default": "^4.2.0",
|
|
57
57
|
"postcss-modules-scope": "^3.2.1",
|
|
@@ -814,5 +814,5 @@
|
|
|
814
814
|
"bin": {
|
|
815
815
|
"docs-infra": "./cli/index.mjs"
|
|
816
816
|
},
|
|
817
|
-
"gitSha": "
|
|
817
|
+
"gitSha": "cffe85463a9e35d7f8dc48a1396d5ee07a774e31"
|
|
818
818
|
}
|
|
@@ -263,14 +263,13 @@ export function useSourceEditing({
|
|
|
263
263
|
}
|
|
264
264
|
}, [contextSetCode, selectedVariantKey, effectiveCode, selectedVariant, context?.preParsedCache, context?.fallbacks]);
|
|
265
265
|
|
|
266
|
-
//
|
|
267
|
-
// edit applies synchronously (no flash). Read-only blocks never load it.
|
|
266
|
+
// Interaction editors load through activate/setSource instead of warming on mount.
|
|
268
267
|
React.useEffect(() => {
|
|
269
|
-
if (peekSourceEditingEngine() || !contextSetCode || disabled) {
|
|
268
|
+
if (peekSourceEditingEngine() || !contextSetCode || disabled || context?.editActivation === 'interaction') {
|
|
270
269
|
return;
|
|
271
270
|
}
|
|
272
271
|
preloadSourceEditingEngineCached().catch(() => {});
|
|
273
|
-
}, [contextSetCode, disabled]);
|
|
272
|
+
}, [contextSetCode, disabled, context?.editActivation]);
|
|
274
273
|
const reset = React.useCallback(() => {
|
|
275
274
|
if (!contextSetCode) {
|
|
276
275
|
console.warn('setCode is not available in the current context. Ensure you are using CodeControllerContext.');
|