slate-react 0.100.0-2023920121024 → 0.100.0

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.
Files changed (83) hide show
  1. package/dist/components/editable.d.ts +84 -83
  2. package/dist/components/editable.d.ts.map +1 -1
  3. package/dist/components/element.d.ts +28 -27
  4. package/dist/components/element.d.ts.map +1 -1
  5. package/dist/components/leaf.d.ts +14 -13
  6. package/dist/components/leaf.d.ts.map +1 -1
  7. package/dist/components/restore-dom/restore-dom-manager.d.ts +8 -8
  8. package/dist/components/restore-dom/restore-dom-manager.d.ts.map +1 -1
  9. package/dist/components/restore-dom/restore-dom.d.ts +8 -7
  10. package/dist/components/restore-dom/restore-dom.d.ts.map +1 -1
  11. package/dist/components/slate.d.ts +15 -15
  12. package/dist/components/slate.d.ts.map +1 -1
  13. package/dist/components/string.d.ts +20 -20
  14. package/dist/components/string.d.ts.map +1 -1
  15. package/dist/components/text.d.ts +12 -12
  16. package/dist/components/text.d.ts.map +1 -1
  17. package/dist/custom-types.d.ts +37 -15
  18. package/dist/custom-types.d.ts.map +1 -1
  19. package/dist/hooks/android-input-manager/android-input-manager.d.ts +29 -29
  20. package/dist/hooks/android-input-manager/android-input-manager.d.ts.map +1 -1
  21. package/dist/hooks/android-input-manager/use-android-input-manager.d.ts +7 -7
  22. package/dist/hooks/android-input-manager/use-android-input-manager.d.ts.map +1 -1
  23. package/dist/hooks/use-children.d.ts +15 -15
  24. package/dist/hooks/use-children.d.ts.map +1 -1
  25. package/dist/hooks/use-decorate.d.ts +10 -10
  26. package/dist/hooks/use-decorate.d.ts.map +1 -1
  27. package/dist/hooks/use-editor.d.ts +5 -5
  28. package/dist/hooks/use-editor.d.ts.map +1 -1
  29. package/dist/hooks/use-focused.d.ts +9 -9
  30. package/dist/hooks/use-focused.d.ts.map +1 -1
  31. package/dist/hooks/use-is-mounted.d.ts +1 -1
  32. package/dist/hooks/use-is-mounted.d.ts.map +1 -1
  33. package/dist/hooks/use-isomorphic-layout-effect.d.ts +5 -5
  34. package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +1 -1
  35. package/dist/hooks/use-mutation-observer.d.ts +2 -2
  36. package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
  37. package/dist/hooks/use-read-only.d.ts +9 -9
  38. package/dist/hooks/use-read-only.d.ts.map +1 -1
  39. package/dist/hooks/use-selected.d.ts +9 -9
  40. package/dist/hooks/use-selected.d.ts.map +1 -1
  41. package/dist/hooks/use-slate-selection.d.ts +6 -6
  42. package/dist/hooks/use-slate-selection.d.ts.map +1 -1
  43. package/dist/hooks/use-slate-selector.d.ts +31 -31
  44. package/dist/hooks/use-slate-selector.d.ts.map +1 -1
  45. package/dist/hooks/use-slate-static.d.ts +11 -11
  46. package/dist/hooks/use-slate-static.d.ts.map +1 -1
  47. package/dist/hooks/use-slate.d.ts +23 -23
  48. package/dist/hooks/use-slate.d.ts.map +1 -1
  49. package/dist/hooks/use-track-user-input.d.ts +5 -5
  50. package/dist/hooks/use-track-user-input.d.ts.map +1 -1
  51. package/dist/index.d.ts +14 -14
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.es.js +624 -1275
  54. package/dist/index.es.js.map +1 -1
  55. package/dist/index.js +943 -1734
  56. package/dist/index.js.map +1 -1
  57. package/dist/plugin/react-editor.d.ts +150 -150
  58. package/dist/plugin/react-editor.d.ts.map +1 -1
  59. package/dist/plugin/with-react.d.ts +11 -11
  60. package/dist/plugin/with-react.d.ts.map +1 -1
  61. package/dist/slate-react.js +20187 -17894
  62. package/dist/slate-react.min.js +1 -1
  63. package/dist/utils/constants.d.ts +1 -1
  64. package/dist/utils/constants.d.ts.map +1 -1
  65. package/dist/utils/diff-text.d.ts +44 -44
  66. package/dist/utils/diff-text.d.ts.map +1 -1
  67. package/dist/utils/dom.d.ts +83 -83
  68. package/dist/utils/dom.d.ts.map +1 -1
  69. package/dist/utils/environment.d.ts +15 -15
  70. package/dist/utils/environment.d.ts.map +1 -1
  71. package/dist/utils/hotkeys.d.ts +30 -30
  72. package/dist/utils/hotkeys.d.ts.map +1 -1
  73. package/dist/utils/key.d.ts +11 -11
  74. package/dist/utils/key.d.ts.map +1 -1
  75. package/dist/utils/lines.d.ts +14 -14
  76. package/dist/utils/lines.d.ts.map +1 -1
  77. package/dist/utils/range-list.d.ts +22 -18
  78. package/dist/utils/range-list.d.ts.map +1 -1
  79. package/dist/utils/types.d.ts +1 -1
  80. package/dist/utils/types.d.ts.map +1 -1
  81. package/dist/utils/weak-maps.d.ts +53 -77
  82. package/dist/utils/weak-maps.d.ts.map +1 -1
  83. package/package.json +24 -24
@@ -1,78 +1,54 @@
1
- import { Ancestor, Editor, Node, Range, RangeRef, Text } from 'slate';
2
- import { Action } from '../hooks/android-input-manager/android-input-manager';
3
- import { TextDiff } from './diff-text';
4
- import { Key } from './key';
5
- /**
6
- * Two weak maps that allow us rebuild a path given a node. They are populated
7
- * at render time such that after a render occurs we can always backtrack.
8
- */
9
- export declare const NODE_TO_INDEX: WeakMap<Node, number>;
10
- export declare const NODE_TO_PARENT: WeakMap<Node, Ancestor>;
11
- /**
12
- * Weak maps that allow us to go between Slate nodes and DOM nodes. These
13
- * are used to resolve DOM event-related logic into Slate actions.
14
- */
15
- export declare const EDITOR_TO_WINDOW: WeakMap<Editor, Window>;
16
- export declare const EDITOR_TO_ELEMENT: WeakMap<Editor, HTMLElement>;
17
- export declare const EDITOR_TO_PLACEHOLDER: WeakMap<Editor, string>;
18
- export declare const EDITOR_TO_PLACEHOLDER_ELEMENT: WeakMap<Editor, HTMLElement>;
19
- export declare const ELEMENT_TO_NODE: WeakMap<HTMLElement, Node>;
20
- export declare const NODE_TO_ELEMENT: WeakMap<Node, HTMLElement>;
21
- export declare const NODE_TO_KEY: WeakMap<Node, Key>;
22
- export declare const EDITOR_TO_KEY_TO_ELEMENT: WeakMap<Editor, WeakMap<Key, HTMLElement>>;
23
- /**
24
- * Weak maps for storing editor-related state.
25
- */
26
- export declare const IS_READ_ONLY: WeakMap<Editor, boolean>;
27
- export declare const IS_FOCUSED: WeakMap<Editor, boolean>;
28
- export declare const IS_COMPOSING: WeakMap<Editor, boolean>;
29
- export declare const EDITOR_TO_USER_SELECTION: WeakMap<Editor, RangeRef | null>;
30
- /**
31
- * Weak map for associating the context `onChange` context with the plugin.
32
- */
33
- export declare const EDITOR_TO_ON_CHANGE: WeakMap<import("..").ReactEditor, (options?: {
34
- operation?: import("slate").BaseInsertNodeOperation | import("slate").BaseMergeNodeOperation | import("slate").BaseMoveNodeOperation | import("slate").BaseRemoveNodeOperation | import("slate").BaseSetNodeOperation | import("slate").BaseSplitNodeOperation | {
35
- type: "set_selection";
36
- properties: null;
37
- newProperties: import("slate").BaseRange & {
38
- placeholder?: string | undefined;
39
- onPlaceholderResize?: ((node: HTMLElement | null) => void) | undefined;
40
- };
41
- } | {
42
- type: "set_selection";
43
- properties: Partial<import("slate").BaseRange & {
44
- placeholder?: string | undefined;
45
- onPlaceholderResize?: ((node: HTMLElement | null) => void) | undefined;
46
- }>;
47
- newProperties: Partial<import("slate").BaseRange & {
48
- placeholder?: string | undefined;
49
- onPlaceholderResize?: ((node: HTMLElement | null) => void) | undefined;
50
- }>;
51
- } | {
52
- type: "set_selection";
53
- properties: import("slate").BaseRange & {
54
- placeholder?: string | undefined;
55
- onPlaceholderResize?: ((node: HTMLElement | null) => void) | undefined;
56
- };
57
- newProperties: null;
58
- } | import("slate").BaseInsertTextOperation | import("slate").BaseRemoveTextOperation | undefined;
59
- } | undefined) => void>;
60
- /**
61
- * Weak maps for saving pending state on composition stage.
62
- */
63
- export declare const EDITOR_TO_SCHEDULE_FLUSH: WeakMap<Editor, () => void>;
64
- export declare const EDITOR_TO_PENDING_INSERTION_MARKS: WeakMap<Editor, Partial<Text> | null>;
65
- export declare const EDITOR_TO_USER_MARKS: WeakMap<Editor, Partial<Text> | null>;
66
- /**
67
- * Android input handling specific weak-maps
68
- */
69
- export declare const EDITOR_TO_PENDING_DIFFS: WeakMap<Editor, TextDiff[]>;
70
- export declare const EDITOR_TO_PENDING_ACTION: WeakMap<Editor, Action | null>;
71
- export declare const EDITOR_TO_PENDING_SELECTION: WeakMap<Editor, Range | null>;
72
- export declare const EDITOR_TO_FORCE_RENDER: WeakMap<Editor, () => void>;
73
- /**
74
- * Symbols.
75
- */
76
- export declare const PLACEHOLDER_SYMBOL: string;
77
- export declare const MARK_PLACEHOLDER_SYMBOL: string;
1
+ import { Ancestor, Editor, Node, Operation, Range, RangeRef, Text } from 'slate';
2
+ import { Action } from '../hooks/android-input-manager/android-input-manager';
3
+ import { TextDiff } from './diff-text';
4
+ import { Key } from './key';
5
+ /**
6
+ * Two weak maps that allow us rebuild a path given a node. They are populated
7
+ * at render time such that after a render occurs we can always backtrack.
8
+ */
9
+ export declare const NODE_TO_INDEX: WeakMap<Node, number>;
10
+ export declare const NODE_TO_PARENT: WeakMap<Node, Ancestor>;
11
+ /**
12
+ * Weak maps that allow us to go between Slate nodes and DOM nodes. These
13
+ * are used to resolve DOM event-related logic into Slate actions.
14
+ */
15
+ export declare const EDITOR_TO_WINDOW: WeakMap<Editor, Window>;
16
+ export declare const EDITOR_TO_ELEMENT: WeakMap<Editor, HTMLElement>;
17
+ export declare const EDITOR_TO_PLACEHOLDER: WeakMap<Editor, string>;
18
+ export declare const EDITOR_TO_PLACEHOLDER_ELEMENT: WeakMap<Editor, HTMLElement>;
19
+ export declare const ELEMENT_TO_NODE: WeakMap<HTMLElement, Node>;
20
+ export declare const NODE_TO_ELEMENT: WeakMap<Node, HTMLElement>;
21
+ export declare const NODE_TO_KEY: WeakMap<Node, Key>;
22
+ export declare const EDITOR_TO_KEY_TO_ELEMENT: WeakMap<Editor, WeakMap<Key, HTMLElement>>;
23
+ /**
24
+ * Weak maps for storing editor-related state.
25
+ */
26
+ export declare const IS_READ_ONLY: WeakMap<Editor, boolean>;
27
+ export declare const IS_FOCUSED: WeakMap<Editor, boolean>;
28
+ export declare const IS_COMPOSING: WeakMap<Editor, boolean>;
29
+ export declare const EDITOR_TO_USER_SELECTION: WeakMap<Editor, RangeRef | null>;
30
+ /**
31
+ * Weak map for associating the context `onChange` context with the plugin.
32
+ */
33
+ export declare const EDITOR_TO_ON_CHANGE: WeakMap<import("..").ReactEditor, (options?: {
34
+ operation?: Operation;
35
+ }) => void>;
36
+ /**
37
+ * Weak maps for saving pending state on composition stage.
38
+ */
39
+ export declare const EDITOR_TO_SCHEDULE_FLUSH: WeakMap<Editor, () => void>;
40
+ export declare const EDITOR_TO_PENDING_INSERTION_MARKS: WeakMap<Editor, Partial<Text> | null>;
41
+ export declare const EDITOR_TO_USER_MARKS: WeakMap<Editor, Partial<Text> | null>;
42
+ /**
43
+ * Android input handling specific weak-maps
44
+ */
45
+ export declare const EDITOR_TO_PENDING_DIFFS: WeakMap<Editor, TextDiff[]>;
46
+ export declare const EDITOR_TO_PENDING_ACTION: WeakMap<Editor, Action | null>;
47
+ export declare const EDITOR_TO_PENDING_SELECTION: WeakMap<Editor, Range | null>;
48
+ export declare const EDITOR_TO_FORCE_RENDER: WeakMap<Editor, () => void>;
49
+ /**
50
+ * Symbols.
51
+ */
52
+ export declare const PLACEHOLDER_SYMBOL: string;
53
+ export declare const MARK_PLACEHOLDER_SYMBOL: string;
78
54
  //# sourceMappingURL=weak-maps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"weak-maps.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/weak-maps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAa,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,sDAAsD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAE3B;;;GAGG;AAEH,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,IAAI,EAAE,MAA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,CAAA;AAEjB,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CACxD,CAAA;AAEf;;GAEG;AAEH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,CACjD,CAAA;AAEf,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CACrD,CAAA;AAEf,eAAO,MAAM,2BAA2B,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK,GAAG,IAAI,CACvD,CAAA;AAEf,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,IAAI,CAAiB,CAAA;AAEhF;;GAEG;AAEH,eAAO,MAAM,kBAAkB,QAA6C,CAAA;AAC5E,eAAO,MAAM,uBAAuB,QAEd,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "slate-react",
3
3
  "description": "Tools for building completely customizable richtext editors with React.",
4
- "version": "0.100.0-2023920121024",
4
+ "version": "0.100.0",
5
5
  "license": "MIT",
6
6
  "repository": "git://github.com/ianstormtaylor/slate.git",
7
7
  "main": "dist/index.js",
@@ -15,34 +15,34 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@juggle/resize-observer": "^3.4.0",
18
- "@types/is-hotkey": "^0.1.1",
19
- "@types/lodash": "^4.14.149",
20
- "direction": "^1.0.3",
21
- "is-hotkey": "^0.1.6",
18
+ "@types/is-hotkey": "^0.1.8",
19
+ "@types/lodash": "^4.14.200",
20
+ "direction": "^1.0.4",
21
+ "is-hotkey": "^0.2.0",
22
22
  "is-plain-object": "^5.0.0",
23
- "lodash": "^4.17.4",
24
- "scroll-into-view-if-needed": "^2.2.20",
25
- "tiny-invariant": "1.0.6"
23
+ "lodash": "^4.17.21",
24
+ "scroll-into-view-if-needed": "^3.1.0",
25
+ "tiny-invariant": "1.3.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@babel/runtime": "^7.7.4",
29
- "@types/jest": "^27.4.1",
30
- "@types/jsdom": "^16.2.14",
31
- "@types/react": "^16.9.13",
32
- "@types/react-dom": "^16.9.4",
33
- "@types/react-test-renderer": "^16.8.0",
34
- "@types/resize-observer-browser": "^0.1.7",
35
- "react": ">=16.8.0",
36
- "react-dom": ">=16.8.0",
37
- "react-test-renderer": ">=16.8.0",
38
- "slate": "^0.94.0",
39
- "slate-hyperscript": "^0.81.3",
40
- "source-map-loader": "^4.0.0"
28
+ "@babel/runtime": "^7.23.2",
29
+ "@types/jest": "29.5.6",
30
+ "@types/jsdom": "^21.1.4",
31
+ "@types/react": "^18.2.28",
32
+ "@types/react-dom": "^18.2.13",
33
+ "@types/react-test-renderer": "^18.0.3",
34
+ "@types/resize-observer-browser": "^0.1.8",
35
+ "react": "^18.2.0",
36
+ "react-dom": "^18.2.0",
37
+ "react-test-renderer": "^18.2.0",
38
+ "slate": "^0.100.0",
39
+ "slate-hyperscript": "^0.100.0",
40
+ "source-map-loader": "^4.0.1"
41
41
  },
42
42
  "peerDependencies": {
43
- "react": ">=16.8.0",
44
- "react-dom": ">=16.8.0",
45
- "slate": ">=0.65.3"
43
+ "react": ">=18.2.0",
44
+ "react-dom": ">=18.2.0",
45
+ "slate": ">=0.99.0"
46
46
  },
47
47
  "umdGlobals": {
48
48
  "react": "React",