@portabletext/editor 7.10.12 → 7.10.13

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/lib/index.js CHANGED
@@ -18650,9 +18650,9 @@ function clearEditor({
18650
18650
  editorEngine,
18651
18651
  doneSyncing
18652
18652
  }) {
18653
- withoutNormalizing(editorEngine, () => {
18654
- pluginWithoutHistory(editorEngine, () => {
18655
- withRemoteChanges(editorEngine, () => {
18653
+ withRemoteChanges(editorEngine, () => {
18654
+ withoutNormalizing(editorEngine, () => {
18655
+ pluginWithoutHistory(editorEngine, () => {
18656
18656
  withoutPatching(editorEngine, () => {
18657
18657
  if (doneSyncing)
18658
18658
  return;
@@ -18676,8 +18676,8 @@ function removeExtraBlocks({
18676
18676
  value
18677
18677
  }) {
18678
18678
  let isChanged = !1;
18679
- return withoutNormalizing(editorEngine, () => {
18680
- withRemoteChanges(editorEngine, () => {
18679
+ return withRemoteChanges(editorEngine, () => {
18680
+ withoutNormalizing(editorEngine, () => {
18681
18681
  withoutPatching(editorEngine, () => {
18682
18682
  const childrenLength = editorEngine.snapshot.context.value.length;
18683
18683
  if (value.length < childrenLength) {
@@ -18711,8 +18711,8 @@ function syncBlock({
18711
18711
  const repairedBlock = applyAutoResolution(validation2, [block], block), engineBlock = toEngineBlock(repairedBlock, {
18712
18712
  schemaTypes: context.schema
18713
18713
  });
18714
- return withoutNormalizing(editorEngine, () => {
18715
- withRemoteChanges(editorEngine, () => {
18714
+ return withRemoteChanges(editorEngine, () => {
18715
+ withoutNormalizing(editorEngine, () => {
18716
18716
  withoutPatching(editorEngine, () => {
18717
18717
  editorEngine.apply({
18718
18718
  type: "insert",
@@ -18755,8 +18755,8 @@ function syncBlock({
18755
18755
  });
18756
18756
  })), validation.valid || validation.resolution?.autoResolve) {
18757
18757
  const repairedBlock = applyAutoResolution(validation, validationValue, block);
18758
- return oldBlock._key === block._key && oldBlock._type === block._type ? (debug.syncValue("Updating block", oldBlock, repairedBlock), withoutNormalizing(editorEngine, () => {
18759
- withRemoteChanges(editorEngine, () => {
18758
+ return oldBlock._key === block._key && oldBlock._type === block._type ? (debug.syncValue("Updating block", oldBlock, repairedBlock), withRemoteChanges(editorEngine, () => {
18759
+ withoutNormalizing(editorEngine, () => {
18760
18760
  withoutPatching(editorEngine, () => {
18761
18761
  updateBlock({
18762
18762
  context,
@@ -18767,8 +18767,8 @@ function syncBlock({
18767
18767
  });
18768
18768
  });
18769
18769
  });
18770
- })) : (debug.syncValue("Replacing block", oldBlock, repairedBlock), withoutNormalizing(editorEngine, () => {
18771
- withRemoteChanges(editorEngine, () => {
18770
+ })) : (debug.syncValue("Replacing block", oldBlock, repairedBlock), withRemoteChanges(editorEngine, () => {
18771
+ withoutNormalizing(editorEngine, () => {
18772
18772
  withoutPatching(editorEngine, () => {
18773
18773
  replaceBlock({
18774
18774
  context,