@portabletext/editor 1.0.3 → 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 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/types'
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/types'
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.esm.js CHANGED
@@ -10,11 +10,10 @@ import { styled } from "styled-components";
10
10
  import uniq from "lodash/uniq.js";
11
11
  import { Subject } from "rxjs";
12
12
  import { Schema } from "@sanity/schema";
13
- import { diffMatchPatch as diffMatchPatch$1, set, insert, setIfMissing, unset } from "@portabletext/patches/patch-event";
13
+ import { diffMatchPatch as diffMatchPatch$1, set, insert, setIfMissing, unset, applyAll } from "@portabletext/patches";
14
14
  import get from "lodash/get.js";
15
15
  import isUndefined from "lodash/isUndefined.js";
16
16
  import omitBy from "lodash/omitBy.js";
17
- import { applyAll } from "@portabletext/patches/apply";
18
17
  import flatten from "lodash/flatten.js";
19
18
  import { isHotkey } from "is-hotkey-esm";
20
19
  import { htmlToBlocks, normalizeBlock } from "@sanity/block-tools";
@@ -22,7 +21,6 @@ import isPlainObject from "lodash/isPlainObject.js";
22
21
  import throttle from "lodash/throttle.js";
23
22
  import { randomKey } from "@sanity/util/content";
24
23
  import debounce from "lodash/debounce.js";
25
- export * from "@portabletext/patches/types";
26
24
  const rootName = "sanity-pte:";
27
25
  debug$l(rootName);
28
26
  function debugWithName(name) {