@portabletext/editor 1.0.4 → 1.0.5
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 +3 -3
- package/lib/index.d.ts +3 -3
- package/lib/index.esm.js +997 -1295
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1039 -1333
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +997 -1295
- package/lib/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/editor/components/Synchronizer.tsx +1 -1
- package/src/editor/plugins/createWithPatches.ts +1 -2
- package/src/editor/plugins/createWithUndoRedo.ts +1 -1
- package/src/index.ts +1 -1
- package/src/types/editor.ts +1 -1
- package/src/utils/__tests__/dmpToOperations.test.ts +1 -1
- package/src/utils/__tests__/patchToOperations.test.ts +2 -1
- package/src/utils/applyPatch.ts +2 -2
- package/src/utils/operationToPatches.ts +9 -2
- package/src/utils/validateValue.ts +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -19,7 +19,7 @@ import {Node as Node_2} from 'slate'
|
|
|
19
19
|
import {ObjectSchemaType} from '@sanity/types'
|
|
20
20
|
import {Observable} from 'rxjs'
|
|
21
21
|
import {Operation} from 'slate'
|
|
22
|
-
import {Patch} from '@portabletext/patches
|
|
22
|
+
import {Patch} from '@portabletext/patches'
|
|
23
23
|
import {Path} from '@sanity/types'
|
|
24
24
|
import {PortableTextBlock} from '@sanity/types'
|
|
25
25
|
import {PortableTextChild} from '@sanity/types'
|
|
@@ -362,6 +362,8 @@ export declare interface PasteData {
|
|
|
362
362
|
value: PortableTextBlock[] | undefined
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
export {Patch}
|
|
366
|
+
|
|
365
367
|
/**
|
|
366
368
|
* The editor has produced a patch
|
|
367
369
|
* @beta */
|
|
@@ -831,6 +833,4 @@ export declare type ValueChange = {
|
|
|
831
833
|
value: PortableTextBlock[] | undefined
|
|
832
834
|
}
|
|
833
835
|
|
|
834
|
-
export * from '@portabletext/patches/types'
|
|
835
|
-
|
|
836
836
|
export {}
|
package/lib/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import {Node as Node_2} from 'slate'
|
|
|
19
19
|
import {ObjectSchemaType} from '@sanity/types'
|
|
20
20
|
import {Observable} from 'rxjs'
|
|
21
21
|
import {Operation} from 'slate'
|
|
22
|
-
import {Patch} from '@portabletext/patches
|
|
22
|
+
import {Patch} from '@portabletext/patches'
|
|
23
23
|
import {Path} from '@sanity/types'
|
|
24
24
|
import {PortableTextBlock} from '@sanity/types'
|
|
25
25
|
import {PortableTextChild} from '@sanity/types'
|
|
@@ -362,6 +362,8 @@ export declare interface PasteData {
|
|
|
362
362
|
value: PortableTextBlock[] | undefined
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
export {Patch}
|
|
366
|
+
|
|
365
367
|
/**
|
|
366
368
|
* The editor has produced a patch
|
|
367
369
|
* @beta */
|
|
@@ -831,6 +833,4 @@ export declare type ValueChange = {
|
|
|
831
833
|
value: PortableTextBlock[] | undefined
|
|
832
834
|
}
|
|
833
835
|
|
|
834
|
-
export * from '@portabletext/patches/types'
|
|
835
|
-
|
|
836
836
|
export {}
|