@portabletext/editor 1.44.13 → 1.44.14
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/behavior.core.cjs +41 -41
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +4474 -4454
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js +41 -41
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/editor-provider.js +4477 -4457
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/index.cjs +13 -13
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +16 -16
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/behavior-actions/behavior.action.annotation.add.ts +133 -0
- package/src/behavior-actions/behavior.action.annotation.remove.ts +150 -0
- package/src/behavior-actions/behavior.actions.ts +2 -4
- package/src/converters/converter.text-html.ts +14 -2
- package/src/converters/converter.text-plain.ts +14 -2
- package/src/editor/PortableTextEditor.tsx +1 -1
- package/src/editor/plugins/createWithEditableAPI.ts +1 -282
- package/src/index.ts +34 -34
package/src/index.ts
CHANGED
|
@@ -4,6 +4,8 @@ export type {
|
|
|
4
4
|
PortableTextChild,
|
|
5
5
|
PortableTextSpan,
|
|
6
6
|
} from '@sanity/types'
|
|
7
|
+
export type {AddedAnnotationPaths} from './behavior-actions/behavior.action.annotation.add'
|
|
8
|
+
export {EditorEventListener} from './editor-event-listener'
|
|
7
9
|
export type {Editor, EditorConfig, EditorEvent} from './editor/create-editor'
|
|
8
10
|
export {
|
|
9
11
|
defineSchema,
|
|
@@ -28,57 +30,55 @@ export type {EditorContext, EditorSnapshot} from './editor/editor-snapshot'
|
|
|
28
30
|
export {usePortableTextEditor} from './editor/hooks/usePortableTextEditor'
|
|
29
31
|
export {usePortableTextEditorSelection} from './editor/hooks/usePortableTextEditorSelection'
|
|
30
32
|
export {defaultKeyGenerator as keyGenerator} from './editor/key-generator'
|
|
31
|
-
export type {AddedAnnotationPaths} from './editor/plugins/createWithEditableAPI'
|
|
32
33
|
export {PortableTextEditor} from './editor/PortableTextEditor'
|
|
33
34
|
export type {PortableTextEditorProps} from './editor/PortableTextEditor'
|
|
34
|
-
export {EditorEventListener} from './editor-event-listener'
|
|
35
35
|
export type {BlockOffset} from './types/block-offset'
|
|
36
36
|
export type {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
ValueChange,
|
|
44
|
-
SelectionChange,
|
|
45
|
-
FocusChange,
|
|
46
|
-
UnsetChange,
|
|
37
|
+
BlockAnnotationRenderProps,
|
|
38
|
+
BlockChildRenderProps,
|
|
39
|
+
BlockDecoratorRenderProps,
|
|
40
|
+
BlockListItemRenderProps,
|
|
41
|
+
BlockRenderProps,
|
|
42
|
+
BlockStyleRenderProps,
|
|
47
43
|
BlurChange,
|
|
48
|
-
LoadingChange,
|
|
49
|
-
ReadyChange,
|
|
50
|
-
ErrorChange,
|
|
51
|
-
InvalidValueResolution,
|
|
52
|
-
InvalidValue,
|
|
53
|
-
UndoChange,
|
|
54
|
-
RedoChange,
|
|
55
44
|
ConnectionChange,
|
|
45
|
+
EditableAPI,
|
|
46
|
+
EditableAPIDeleteOptions,
|
|
56
47
|
EditorChange,
|
|
57
48
|
EditorChanges,
|
|
49
|
+
EditorSelection,
|
|
50
|
+
EditorSelectionPoint,
|
|
51
|
+
ErrorChange,
|
|
52
|
+
FocusChange,
|
|
53
|
+
InvalidValue,
|
|
54
|
+
InvalidValueResolution,
|
|
55
|
+
LoadingChange,
|
|
56
|
+
MutationChange,
|
|
57
|
+
OnBeforeInputFn,
|
|
58
|
+
OnCopyFn,
|
|
59
|
+
OnPasteFn,
|
|
58
60
|
OnPasteResult,
|
|
59
61
|
OnPasteResultOrPromise,
|
|
60
62
|
PasteData,
|
|
61
|
-
|
|
62
|
-
OnBeforeInputFn,
|
|
63
|
-
OnCopyFn,
|
|
63
|
+
PatchChange,
|
|
64
64
|
PatchObservable,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
PortableTextMemberSchemaTypes,
|
|
66
|
+
RangeDecoration,
|
|
67
|
+
RangeDecorationOnMovedDetails,
|
|
68
|
+
ReadyChange,
|
|
69
|
+
RedoChange,
|
|
70
|
+
RenderAnnotationFunction,
|
|
70
71
|
RenderBlockFunction,
|
|
71
72
|
RenderChildFunction,
|
|
73
|
+
RenderDecoratorFunction,
|
|
72
74
|
RenderEditableFunction,
|
|
73
|
-
|
|
75
|
+
RenderListItemFunction,
|
|
74
76
|
RenderPlaceholderFunction,
|
|
75
77
|
RenderStyleFunction,
|
|
76
|
-
BlockStyleRenderProps,
|
|
77
|
-
RenderListItemFunction,
|
|
78
|
-
RenderDecoratorFunction,
|
|
79
78
|
ScrollSelectionIntoViewFunction,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
SelectionChange,
|
|
80
|
+
UndoChange,
|
|
81
|
+
UnsetChange,
|
|
82
|
+
ValueChange,
|
|
83
83
|
} from './types/editor'
|
|
84
84
|
export type {HotkeyOptions} from './types/options'
|