@doist/typist 1.4.9 → 1.4.11
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [1.4.11](https://github.com/Doist/typist/compare/v1.4.10...v1.4.11) (2023-09-08)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- Remove `handlePaste` escape when clipboard holds multiple types ([#434](https://github.com/Doist/typist/issues/434)) ([4395051](https://github.com/Doist/typist/commit/43950517bcfcc1fa412e4681b4d336dd3bb3ac1b))
|
|
6
|
+
|
|
7
|
+
## [1.4.10](https://github.com/Doist/typist/compare/v1.4.9...v1.4.10) (2023-09-05)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **deps:** update tiptap packages to v2.1.8 ([#427](https://github.com/Doist/typist/issues/427)) ([c3f34bb](https://github.com/Doist/typist/commit/c3f34bb31ad912b1cebc5a2a28adfaa1054492d7))
|
|
12
|
+
|
|
1
13
|
## [1.4.9](https://github.com/Doist/typist/compare/v1.4.8...v1.4.9) (2023-09-05)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text-image.d.ts","sourceRoot":"","sources":["../../../src/extensions/rich-text/rich-text-image.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD;;GAEG;AACH,KAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE;QACP;;WAEG;QACH,YAAY,EAAE,MAAM,CAAA;QAEpB;;WAEG;QACH,cAAc,EAAE,OAAO,CAAA;QAEvB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAA;KACzB,CAAA;CACJ,GAAG,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,GAC7B,IAAI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
|
|
87
87
|
}
|
|
88
|
-
// Do not handle the event if there are multiple clipboard types
|
|
89
|
-
if ((event.clipboardData?.types || []).length > 1) {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
88
|
const pastedFiles = Array.from(event.clipboardData?.files || []);
|
|
93
89
|
// Do not handle the event if no files were pasted
|
|
94
90
|
if (pastedFiles.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doist/typist",
|
|
3
3
|
"description": "The mighty Tiptap-based rich-text editor React component that powers Doist products.",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.11",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://typist.doist.dev/",
|
|
7
7
|
"repository": "https://github.com/Doist/typist",
|
|
@@ -46,36 +46,36 @@
|
|
|
46
46
|
"validate:pre-push": "run-s test"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@tiptap/core": "2.1.
|
|
50
|
-
"@tiptap/extension-blockquote": "2.1.
|
|
51
|
-
"@tiptap/extension-bold": "2.1.
|
|
52
|
-
"@tiptap/extension-bullet-list": "2.1.
|
|
53
|
-
"@tiptap/extension-character-count": "2.1.
|
|
54
|
-
"@tiptap/extension-code": "2.1.
|
|
55
|
-
"@tiptap/extension-code-block": "2.1.
|
|
56
|
-
"@tiptap/extension-document": "2.1.
|
|
57
|
-
"@tiptap/extension-dropcursor": "2.1.
|
|
58
|
-
"@tiptap/extension-gapcursor": "2.1.
|
|
59
|
-
"@tiptap/extension-hard-break": "2.1.
|
|
60
|
-
"@tiptap/extension-heading": "2.1.
|
|
61
|
-
"@tiptap/extension-history": "2.1.
|
|
62
|
-
"@tiptap/extension-horizontal-rule": "2.1.
|
|
63
|
-
"@tiptap/extension-image": "2.1.
|
|
64
|
-
"@tiptap/extension-italic": "2.1.
|
|
65
|
-
"@tiptap/extension-link": "2.1.
|
|
66
|
-
"@tiptap/extension-list-item": "2.1.
|
|
67
|
-
"@tiptap/extension-list-keymap": "2.1.
|
|
68
|
-
"@tiptap/extension-ordered-list": "2.1.
|
|
69
|
-
"@tiptap/extension-paragraph": "2.1.
|
|
70
|
-
"@tiptap/extension-placeholder": "2.1.
|
|
71
|
-
"@tiptap/extension-strike": "2.1.
|
|
72
|
-
"@tiptap/extension-task-item": "2.1.
|
|
73
|
-
"@tiptap/extension-task-list": "2.1.
|
|
74
|
-
"@tiptap/extension-text": "2.1.
|
|
75
|
-
"@tiptap/extension-typography": "2.1.
|
|
76
|
-
"@tiptap/pm": "2.1.
|
|
77
|
-
"@tiptap/react": "2.1.
|
|
78
|
-
"@tiptap/suggestion": "2.1.
|
|
49
|
+
"@tiptap/core": "2.1.8",
|
|
50
|
+
"@tiptap/extension-blockquote": "2.1.8",
|
|
51
|
+
"@tiptap/extension-bold": "2.1.8",
|
|
52
|
+
"@tiptap/extension-bullet-list": "2.1.8",
|
|
53
|
+
"@tiptap/extension-character-count": "2.1.8",
|
|
54
|
+
"@tiptap/extension-code": "2.1.8",
|
|
55
|
+
"@tiptap/extension-code-block": "2.1.8",
|
|
56
|
+
"@tiptap/extension-document": "2.1.8",
|
|
57
|
+
"@tiptap/extension-dropcursor": "2.1.8",
|
|
58
|
+
"@tiptap/extension-gapcursor": "2.1.8",
|
|
59
|
+
"@tiptap/extension-hard-break": "2.1.8",
|
|
60
|
+
"@tiptap/extension-heading": "2.1.8",
|
|
61
|
+
"@tiptap/extension-history": "2.1.8",
|
|
62
|
+
"@tiptap/extension-horizontal-rule": "2.1.8",
|
|
63
|
+
"@tiptap/extension-image": "2.1.8",
|
|
64
|
+
"@tiptap/extension-italic": "2.1.8",
|
|
65
|
+
"@tiptap/extension-link": "2.1.8",
|
|
66
|
+
"@tiptap/extension-list-item": "2.1.8",
|
|
67
|
+
"@tiptap/extension-list-keymap": "2.1.8",
|
|
68
|
+
"@tiptap/extension-ordered-list": "2.1.8",
|
|
69
|
+
"@tiptap/extension-paragraph": "2.1.8",
|
|
70
|
+
"@tiptap/extension-placeholder": "2.1.8",
|
|
71
|
+
"@tiptap/extension-strike": "2.1.8",
|
|
72
|
+
"@tiptap/extension-task-item": "2.1.8",
|
|
73
|
+
"@tiptap/extension-task-list": "2.1.8",
|
|
74
|
+
"@tiptap/extension-text": "2.1.8",
|
|
75
|
+
"@tiptap/extension-typography": "2.1.8",
|
|
76
|
+
"@tiptap/pm": "2.1.8",
|
|
77
|
+
"@tiptap/react": "2.1.8",
|
|
78
|
+
"@tiptap/suggestion": "2.1.8",
|
|
79
79
|
"prosemirror-codemark": "0.4.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|