@portabletext/editor 2.8.0 → 2.8.1

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.
Files changed (42) hide show
  1. package/lib/_chunks-cjs/selector.is-selection-expanded.cjs +10 -4
  2. package/lib/_chunks-cjs/selector.is-selection-expanded.cjs.map +1 -1
  3. package/lib/_chunks-cjs/util.merge-text-blocks.cjs +0 -1
  4. package/lib/_chunks-cjs/util.merge-text-blocks.cjs.map +1 -1
  5. package/lib/_chunks-cjs/util.slice-blocks.cjs +3 -6
  6. package/lib/_chunks-cjs/util.slice-blocks.cjs.map +1 -1
  7. package/lib/_chunks-dts/behavior.types.action.d.cts +73 -73
  8. package/lib/_chunks-dts/behavior.types.action.d.ts +9 -9
  9. package/lib/_chunks-es/selector.is-selection-expanded.js +10 -4
  10. package/lib/_chunks-es/selector.is-selection-expanded.js.map +1 -1
  11. package/lib/_chunks-es/util.merge-text-blocks.js +0 -1
  12. package/lib/_chunks-es/util.merge-text-blocks.js.map +1 -1
  13. package/lib/_chunks-es/util.slice-blocks.js +3 -6
  14. package/lib/_chunks-es/util.slice-blocks.js.map +1 -1
  15. package/lib/index.cjs +0 -10
  16. package/lib/index.cjs.map +1 -1
  17. package/lib/index.js +0 -10
  18. package/lib/index.js.map +1 -1
  19. package/lib/plugins/index.d.cts +3 -3
  20. package/lib/plugins/index.d.ts +3 -3
  21. package/lib/utils/index.d.ts +2 -2
  22. package/package.json +5 -5
  23. package/src/behaviors/behavior.abstract.split.ts +0 -1
  24. package/src/converters/converter.portable-text.ts +0 -1
  25. package/src/converters/converter.text-html.ts +0 -1
  26. package/src/converters/converter.text-plain.ts +0 -1
  27. package/src/editor/Editable.tsx +0 -1
  28. package/src/internal-utils/parse-blocks.test.ts +23 -23
  29. package/src/internal-utils/parse-blocks.ts +11 -23
  30. package/src/internal-utils/test-editor.tsx +15 -21
  31. package/src/operations/behavior.operation.annotation.add.ts +1 -1
  32. package/src/operations/behavior.operation.block.set.ts +1 -1
  33. package/src/operations/behavior.operation.block.unset.ts +2 -2
  34. package/src/operations/behavior.operation.insert.block.ts +1 -1
  35. package/src/plugins/plugin.internal.auto-close-brackets.test.tsx +25 -71
  36. package/src/plugins/plugin.markdown.test.tsx +12 -30
  37. package/src/selectors/selector.get-selected-value.test.ts +748 -0
  38. package/src/selectors/selector.get-selected-value.ts +28 -7
  39. package/src/selectors/selector.get-trimmed-selection.test.ts +0 -1
  40. package/src/utils/util.merge-text-blocks.ts +1 -1
  41. package/src/utils/util.slice-blocks.ts +3 -3
  42. package/src/utils/util.slice-blocks.test.ts +0 -499
package/lib/index.js CHANGED
@@ -1948,7 +1948,6 @@ const RelayActorContext = createContext({}), debug$d = debugWithName("component:
1948
1948
  },
1949
1949
  blocks: result_1.insert,
1950
1950
  options: {
1951
- refreshKeys: !1,
1952
1951
  validateFields: !1
1953
1952
  }
1954
1953
  }),
@@ -2413,7 +2412,6 @@ const converterJson = {
2413
2412
  context: snapshot.context,
2414
2413
  block,
2415
2414
  options: {
2416
- refreshKeys: !1,
2417
2415
  validateFields: !1
2418
2416
  }
2419
2417
  });
@@ -2476,7 +2474,6 @@ function createConverterTextHtml(legacySchema) {
2476
2474
  context: snapshot.context,
2477
2475
  block,
2478
2476
  options: {
2479
- refreshKeys: !1,
2480
2477
  validateFields: !1
2481
2478
  }
2482
2479
  });
@@ -2524,7 +2521,6 @@ function createConverterTextPlain(legacySchema) {
2524
2521
  context: snapshot.context,
2525
2522
  block,
2526
2523
  options: {
2527
- refreshKeys: !1,
2528
2524
  validateFields: !1
2529
2525
  }
2530
2526
  });
@@ -3987,7 +3983,6 @@ const addAnnotationOperationImplementation = ({
3987
3983
  },
3988
3984
  context,
3989
3985
  options: {
3990
- refreshKeys: !1,
3991
3986
  validateFields: !0
3992
3987
  }
3993
3988
  });
@@ -4150,7 +4145,6 @@ const addAnnotationOperationImplementation = ({
4150
4145
  ...filteredProps
4151
4146
  },
4152
4147
  options: {
4153
- refreshKeys: !1,
4154
4148
  validateFields: !0
4155
4149
  }
4156
4150
  });
@@ -4200,7 +4194,6 @@ const addAnnotationOperationImplementation = ({
4200
4194
  context,
4201
4195
  block: omit(parsedBlock, propsToRemove),
4202
4196
  options: {
4203
- refreshKeys: !1,
4204
4197
  validateFields: !0
4205
4198
  }
4206
4199
  });
@@ -4218,7 +4211,6 @@ const addAnnotationOperationImplementation = ({
4218
4211
  context,
4219
4212
  block: omit(parsedBlock, operation.props.filter((prop) => prop !== "_type")),
4220
4213
  options: {
4221
- refreshKeys: !1,
4222
4214
  validateFields: !0
4223
4215
  }
4224
4216
  });
@@ -4607,7 +4599,6 @@ const insertBlockOperationImplementation = ({
4607
4599
  block: operation.block,
4608
4600
  context,
4609
4601
  options: {
4610
- refreshKeys: !1,
4611
4602
  validateFields: !0
4612
4603
  }
4613
4604
  });
@@ -8880,7 +8871,6 @@ const MAX_LIST_LEVEL = 10, clearListOnBackspace = defineBehavior({
8880
8871
  }),
8881
8872
  context: snapshot.context,
8882
8873
  options: {
8883
- refreshKeys: !1,
8884
8874
  validateFields: !1
8885
8875
  }
8886
8876
  });