@mui/internal-docs-infra 0.13.1-canary.32 → 0.13.1-canary.33

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.32",
3
+ "version": "0.13.1-canary.33",
4
4
  "author": "MUI Team",
5
5
  "description": "MUI Infra - internal documentation creation tools.",
6
6
  "license": "MIT",
@@ -814,5 +814,5 @@
814
814
  "bin": {
815
815
  "docs-infra": "./cli/index.mjs"
816
816
  },
817
- "gitSha": "ade666223d2e07ada27dbdedb646057819ab8f56"
817
+ "gitSha": "66349fd377283e3c89adb448f0827d7d4ef35362"
818
818
  }
@@ -263,14 +263,13 @@ export function useSourceEditing({
263
263
  }
264
264
  }, [contextSetCode, selectedVariantKey, effectiveCode, selectedVariant, context?.preParsedCache, context?.fallbacks]);
265
265
 
266
- // Warm the edit-time runtime as soon as the block is editable, so the first
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.');