@portabletext/editor 1.49.1 → 1.49.2
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/_chunks-cjs/editor-provider.cjs +22 -11
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-cjs/util.merge-text-blocks.cjs +2 -1
- package/lib/_chunks-cjs/util.merge-text-blocks.cjs.map +1 -1
- package/lib/_chunks-cjs/util.slice-blocks.cjs +26 -8
- package/lib/_chunks-cjs/util.slice-blocks.cjs.map +1 -1
- package/lib/_chunks-es/editor-provider.js +22 -11
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/_chunks-es/util.merge-text-blocks.js +2 -1
- package/lib/_chunks-es/util.merge-text-blocks.js.map +1 -1
- package/lib/_chunks-es/util.slice-blocks.js +26 -8
- package/lib/_chunks-es/util.slice-blocks.js.map +1 -1
- package/lib/index.cjs +8 -4
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +8 -4
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/behaviors/behavior.abstract.split.ts +2 -2
- package/src/converters/converter.portable-text.ts +1 -0
- package/src/converters/converter.text-html.ts +1 -0
- package/src/converters/converter.text-plain.ts +1 -0
- package/src/editor/Editable.tsx +1 -0
- package/src/editor/components/render-element.tsx +3 -3
- package/src/internal-utils/parse-blocks.test.ts +20 -20
- package/src/internal-utils/parse-blocks.ts +57 -20
- package/src/operations/behavior.operation.annotation.add.ts +1 -1
- package/src/operations/behavior.operation.block.set.ts +1 -1
- package/src/operations/behavior.operation.block.unset.ts +2 -2
- package/src/operations/behavior.operation.insert-inline-object.ts +1 -1
- package/src/operations/behavior.operation.insert.block.ts +1 -1
- package/src/selectors/selector.get-trimmed-selection.test.ts +1 -0
- package/src/utils/util.merge-text-blocks.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -609,7 +609,8 @@ function RenderElement(props) {
|
|
|
609
609
|
schema
|
|
610
610
|
},
|
|
611
611
|
options: {
|
|
612
|
-
refreshKeys: !1
|
|
612
|
+
refreshKeys: !1,
|
|
613
|
+
validateFields: !1
|
|
613
614
|
},
|
|
614
615
|
inlineObject: {
|
|
615
616
|
_key: props.element._key,
|
|
@@ -636,7 +637,8 @@ function RenderElement(props) {
|
|
|
636
637
|
schema
|
|
637
638
|
},
|
|
638
639
|
options: {
|
|
639
|
-
refreshKeys: !1
|
|
640
|
+
refreshKeys: !1,
|
|
641
|
+
validateFields: !1
|
|
640
642
|
},
|
|
641
643
|
block: props.element
|
|
642
644
|
}), $[16] = props.element, $[17] = schema, $[18] = t0) : t0 = $[18];
|
|
@@ -654,7 +656,8 @@ function RenderElement(props) {
|
|
|
654
656
|
schema
|
|
655
657
|
},
|
|
656
658
|
options: {
|
|
657
|
-
refreshKeys: !1
|
|
659
|
+
refreshKeys: !1,
|
|
660
|
+
validateFields: !1
|
|
658
661
|
},
|
|
659
662
|
blockObject: {
|
|
660
663
|
_key: props.element._key,
|
|
@@ -1331,7 +1334,8 @@ const debug = debugWithName("component:Editable"), PortableTextEditable = forwar
|
|
|
1331
1334
|
},
|
|
1332
1335
|
blocks: result_1.insert,
|
|
1333
1336
|
options: {
|
|
1334
|
-
refreshKeys: !0
|
|
1337
|
+
refreshKeys: !0,
|
|
1338
|
+
validateFields: !0
|
|
1335
1339
|
}
|
|
1336
1340
|
}),
|
|
1337
1341
|
placement: "auto"
|