@portabletext/editor 1.0.8 → 1.0.9
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.d.mts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +184 -173
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +183 -172
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +184 -173
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -3
- package/src/editor/Editable.tsx +4 -7
- package/src/editor/PortableTextEditor.tsx +30 -11
- package/src/editor/__tests__/RangeDecorations.test.tsx +4 -4
- package/src/editor/components/Synchronizer.tsx +15 -46
- package/src/editor/hooks/usePortableTextEditorSelection.tsx +62 -0
- package/src/utils/withChanges.ts +0 -7
- package/src/editor/hooks/usePortableTextEditorSelection.ts +0 -22
- package/src/editor/hooks/usePortableTextEditorValue.ts +0 -16
package/lib/index.d.mts
CHANGED
|
@@ -456,6 +456,7 @@ export declare class PortableTextEditor extends Component<PortableTextEditorProp
|
|
|
456
456
|
constructor(props: PortableTextEditorProps)
|
|
457
457
|
componentDidUpdate(prevProps: PortableTextEditorProps): void
|
|
458
458
|
setEditable: (editable: EditableAPI) => void
|
|
459
|
+
private getValue
|
|
459
460
|
render(): JSX_2.Element
|
|
460
461
|
static activeAnnotations: (editor: PortableTextEditor) => PortableTextObject[]
|
|
461
462
|
static isAnnotationActive: (
|
package/lib/index.d.ts
CHANGED
|
@@ -456,6 +456,7 @@ export declare class PortableTextEditor extends Component<PortableTextEditorProp
|
|
|
456
456
|
constructor(props: PortableTextEditorProps)
|
|
457
457
|
componentDidUpdate(prevProps: PortableTextEditorProps): void
|
|
458
458
|
setEditable: (editable: EditableAPI) => void
|
|
459
|
+
private getValue
|
|
459
460
|
render(): JSX_2.Element
|
|
460
461
|
static activeAnnotations: (editor: PortableTextEditor) => PortableTextObject[]
|
|
461
462
|
static isAnnotationActive: (
|