@handlewithcare/react-prosemirror 3.1.0-tiptap.40 → 3.1.0-tiptap.41

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.
@@ -75,8 +75,8 @@ export declare class ReactEditorView extends EditorView implements AbstractEdito
75
75
  setProps(props: Partial<DirectEditorProps>): void;
76
76
  update(props: DirectEditorProps): void;
77
77
  updateState(state: EditorState): void;
78
- someProp<PropName extends keyof EditorProps>(propName: PropName): EditorProps[PropName] | undefined;
79
- someProp<PropName extends keyof EditorProps, Result>(propName: PropName, f?: (value: NonNullable<EditorProps[PropName]>) => Result): Result | undefined;
78
+ someProp<PropName extends keyof EditorProps, Result>(propName: PropName, f: (value: NonNullable<EditorProps[PropName]>) => Result): Result | undefined;
79
+ someProp<PropName extends keyof EditorProps>(propName: PropName): NonNullable<EditorProps[PropName]> | undefined;
80
80
  destroy(): void;
81
81
  /**
82
82
  * Commit effects by appling the pending props and state.
@@ -13,7 +13,8 @@ export declare class StaticEditorView implements AbstractEditorView {
13
13
  setProps(props: Partial<DirectEditorProps>): void;
14
14
  update(props: DirectEditorProps): void;
15
15
  updateState(state: EditorState): void;
16
- someProp<PropName extends keyof EditorProps>(propName: PropName): EditorProps[PropName] | undefined;
16
+ someProp<PropName extends keyof EditorProps, Result>(propName: PropName, f: (value: NonNullable<EditorProps[PropName]>) => Result): Result | undefined;
17
+ someProp<PropName extends keyof EditorProps>(propName: PropName): NonNullable<EditorProps[PropName]> | undefined;
17
18
  destroy(): void;
18
19
  domSelectionRange(): {
19
20
  anchorNode: null;
@@ -1,4 +1,4 @@
1
1
  import { Schema } from "prosemirror-model";
2
2
  import { EditorState } from "prosemirror-state";
3
- export declare const EMPTY_SCHEMA: Schema<"text" | "doc", any>;
3
+ export declare const EMPTY_SCHEMA: Schema<"doc" | "text", any>;
4
4
  export declare const EMPTY_STATE: EditorState;
@@ -904,19 +904,19 @@ export declare function mergeReactProps(a: HTMLProps<HTMLElement>, b: HTMLProps<
904
904
  suppressContentEditableWarning?: boolean | undefined;
905
905
  suppressHydrationWarning?: boolean | undefined;
906
906
  accessKey?: string | undefined;
907
- autoCapitalize?: "on" | "off" | "none" | (string & {}) | "sentences" | "words" | "characters" | undefined;
907
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined;
908
908
  autoFocus?: boolean | undefined;
909
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
909
+ contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
910
910
  contextMenu?: string | undefined;
911
911
  dir?: string | undefined;
912
- draggable?: (boolean | "true" | "false") | undefined;
913
- enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
912
+ draggable?: (boolean | "false" | "true") | undefined;
913
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
914
914
  hidden?: boolean | undefined;
915
915
  id?: string | undefined;
916
916
  lang?: string | undefined;
917
917
  nonce?: string | undefined;
918
918
  slot?: string | undefined;
919
- spellCheck?: (boolean | "true" | "false") | undefined;
919
+ spellCheck?: (boolean | "false" | "true") | undefined;
920
920
  tabIndex?: number | undefined;
921
921
  title?: string | undefined;
922
922
  translate?: "yes" | "no" | undefined;
@@ -943,58 +943,58 @@ export declare function mergeReactProps(a: HTMLProps<HTMLElement>, b: HTMLProps<
943
943
  itemRef?: string | undefined;
944
944
  results?: number | undefined;
945
945
  security?: string | undefined;
946
- unselectable?: "on" | "off" | undefined;
947
- inputMode?: "url" | "none" | "search" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
946
+ unselectable?: "off" | "on" | undefined;
947
+ inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
948
948
  is?: string | undefined;
949
949
  exportparts?: string | undefined;
950
950
  part?: string | undefined;
951
951
  "aria-activedescendant"?: string | undefined;
952
- "aria-atomic"?: (boolean | "true" | "false") | undefined;
953
- "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
952
+ "aria-atomic"?: (boolean | "false" | "true") | undefined;
953
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
954
954
  "aria-braillelabel"?: string | undefined;
955
955
  "aria-brailleroledescription"?: string | undefined;
956
- "aria-busy"?: (boolean | "true" | "false") | undefined;
957
- "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
956
+ "aria-busy"?: (boolean | "false" | "true") | undefined;
957
+ "aria-checked"?: boolean | "false" | "true" | "mixed" | undefined;
958
958
  "aria-colcount"?: number | undefined;
959
959
  "aria-colindex"?: number | undefined;
960
960
  "aria-colindextext"?: string | undefined;
961
961
  "aria-colspan"?: number | undefined;
962
962
  "aria-controls"?: string | undefined;
963
- "aria-current"?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
963
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
964
964
  "aria-describedby"?: string | undefined;
965
965
  "aria-description"?: string | undefined;
966
966
  "aria-details"?: string | undefined;
967
- "aria-disabled"?: (boolean | "true" | "false") | undefined;
968
- "aria-dropeffect"?: "copy" | "link" | "execute" | "none" | "move" | "popup" | undefined;
967
+ "aria-disabled"?: (boolean | "false" | "true") | undefined;
968
+ "aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
969
969
  "aria-errormessage"?: string | undefined;
970
- "aria-expanded"?: (boolean | "true" | "false") | undefined;
970
+ "aria-expanded"?: (boolean | "false" | "true") | undefined;
971
971
  "aria-flowto"?: string | undefined;
972
- "aria-grabbed"?: (boolean | "true" | "false") | undefined;
973
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
974
- "aria-hidden"?: (boolean | "true" | "false") | undefined;
975
- "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
972
+ "aria-grabbed"?: (boolean | "false" | "true") | undefined;
973
+ "aria-haspopup"?: boolean | "false" | "true" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
974
+ "aria-hidden"?: (boolean | "false" | "true") | undefined;
975
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
976
976
  "aria-keyshortcuts"?: string | undefined;
977
977
  "aria-label"?: string | undefined;
978
978
  "aria-labelledby"?: string | undefined;
979
979
  "aria-level"?: number | undefined;
980
980
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
981
- "aria-modal"?: (boolean | "true" | "false") | undefined;
982
- "aria-multiline"?: (boolean | "true" | "false") | undefined;
983
- "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
981
+ "aria-modal"?: (boolean | "false" | "true") | undefined;
982
+ "aria-multiline"?: (boolean | "false" | "true") | undefined;
983
+ "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
984
984
  "aria-orientation"?: "horizontal" | "vertical" | undefined;
985
985
  "aria-owns"?: string | undefined;
986
986
  "aria-placeholder"?: string | undefined;
987
987
  "aria-posinset"?: number | undefined;
988
- "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
989
- "aria-readonly"?: (boolean | "true" | "false") | undefined;
988
+ "aria-pressed"?: boolean | "false" | "true" | "mixed" | undefined;
989
+ "aria-readonly"?: (boolean | "false" | "true") | undefined;
990
990
  "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
991
- "aria-required"?: (boolean | "true" | "false") | undefined;
991
+ "aria-required"?: (boolean | "false" | "true") | undefined;
992
992
  "aria-roledescription"?: string | undefined;
993
993
  "aria-rowcount"?: number | undefined;
994
994
  "aria-rowindex"?: number | undefined;
995
995
  "aria-rowindextext"?: string | undefined;
996
996
  "aria-rowspan"?: number | undefined;
997
- "aria-selected"?: (boolean | "true" | "false") | undefined;
997
+ "aria-selected"?: (boolean | "false" | "true") | undefined;
998
998
  "aria-setsize"?: number | undefined;
999
999
  "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
1000
1000
  "aria-valuemax"?: number | undefined;
@@ -118,7 +118,7 @@ export declare class NodeViewDesc extends ViewDesc {
118
118
  parseRule(): Omit<TagParseRule, "tag"> | null;
119
119
  matchesNode(node: Node, outerDeco: readonly Decoration[], innerDeco: DecorationSource): boolean;
120
120
  get size(): number;
121
- get border(): 1 | 0;
121
+ get border(): 0 | 1;
122
122
  updateChildren(_view: EditorView, _pos: number): void;
123
123
  update(node: Node, outerDeco: readonly Decoration[], innerDeco: DecorationSource, view: EditorView): boolean;
124
124
  updateInner(node: Node, outerDeco: readonly Decoration[], innerDeco: DecorationSource, view: EditorView): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handlewithcare/react-prosemirror",
3
- "version": "3.1.0-tiptap.40",
3
+ "version": "3.1.0-tiptap.41",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
@@ -100,7 +100,7 @@
100
100
  "micromark-extension-gfm-table": "^2.1.1",
101
101
  "prettier": "^2.8.3",
102
102
  "prosemirror-commands": "^1.7.1",
103
- "prosemirror-gapcursor": "^1.4.0",
103
+ "prosemirror-gapcursor": "^1.4.1",
104
104
  "prosemirror-history": "^1.5.0",
105
105
  "prosemirror-inputrules": "^1.5.1",
106
106
  "prosemirror-keymap": "^1.2.3",
@@ -109,8 +109,8 @@
109
109
  "prosemirror-state": "^1.4.4",
110
110
  "prosemirror-tables": "^1.8.5",
111
111
  "prosemirror-test-builder": "^1.1.1",
112
- "prosemirror-transform": "^1.10.5",
113
- "prosemirror-view": "1.41.4",
112
+ "prosemirror-transform": "^1.12.0",
113
+ "prosemirror-view": "1.41.7",
114
114
  "react": "^18.2.0",
115
115
  "react-dom": "^18.2.0",
116
116
  "react-reconciler": "^0.29.0",
@@ -123,10 +123,13 @@
123
123
  "webdriver": "^9.18.0",
124
124
  "webdriverio": "^9.18.1"
125
125
  },
126
+ "resolutions": {
127
+ "prosemirror-view": "1.41.7"
128
+ },
126
129
  "peerDependencies": {
127
130
  "prosemirror-model": "^1.0.0",
128
131
  "prosemirror-state": "^1.0.0",
129
- "prosemirror-view": "1.41.4",
132
+ "prosemirror-view": "1.41.7",
130
133
  "react": ">=17 <20",
131
134
  "react-dom": ">=17 <20",
132
135
  "react-reconciler": ">=0.26.1 <=0.33.0"
@@ -139,7 +142,7 @@
139
142
  "@tiptap/core": "^3.15.3",
140
143
  "@tiptap/pm": "^3.15.3",
141
144
  "@tiptap/react": "^3.15.3",
142
- "classnames": "^2.3.2"
145
+ "classnames": "^2.5.1"
143
146
  },
144
147
  "publishConfig": {
145
148
  "access": "public"