@doist/typist 8.0.3 → 8.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/CHANGELOG.md +133 -121
- package/CODE_OF_CONDUCT.md +10 -10
- package/CONTRIBUTING.md +15 -15
- package/README.md +2 -2
- package/dist/extensions/rich-text/rich-text-image.d.ts +1 -1
- package/dist/extensions/rich-text/rich-text-image.d.ts.map +1 -1
- package/dist/factories/create-suggestion-extension.d.ts.map +1 -1
- package/dist/factories/create-suggestion-extension.js +2 -1
- package/package.json +67 -66
package/CHANGELOG.md
CHANGED
|
@@ -1,85 +1,97 @@
|
|
|
1
|
+
## [8.0.5](https://github.com/Doist/typist/compare/v8.0.4...v8.0.5) (2025-11-10)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **deps:** update tiptap packages to v2.27.1 ([#1148](https://github.com/Doist/typist/issues/1148)) ([69d325f](https://github.com/Doist/typist/commit/69d325f12c038511923eda5e38606adb696d981a))
|
|
6
|
+
|
|
7
|
+
## [8.0.4](https://github.com/Doist/typist/compare/v8.0.3...v8.0.4) (2025-10-24)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **deps:** update tiptap packages to v2.26.4 ([#1116](https://github.com/Doist/typist/issues/1116)) ([0b2f55b](https://github.com/Doist/typist/commit/0b2f55bd1191d5c7a8c5caa7b53185b5ded77a0e))
|
|
12
|
+
|
|
1
13
|
## [8.0.3](https://github.com/Doist/typist/compare/v8.0.2...v8.0.3) (2025-10-24)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
|
4
16
|
|
|
5
|
-
-
|
|
17
|
+
- **deps:** update tiptap packages to v2.26.3 ([#1110](https://github.com/Doist/typist/issues/1110)) ([a0bfbe7](https://github.com/Doist/typist/commit/a0bfbe7abcff4473c80709e0303bca030742deeb))
|
|
6
18
|
|
|
7
19
|
## [8.0.2](https://github.com/Doist/typist/compare/v8.0.1...v8.0.2) (2025-05-21)
|
|
8
20
|
|
|
9
21
|
### Bug Fixes
|
|
10
22
|
|
|
11
|
-
-
|
|
23
|
+
- Add support for npm 11 ([#1097](https://github.com/Doist/typist/issues/1097)) ([62cf6a0](https://github.com/Doist/typist/commit/62cf6a055acf283af2c9424fdce9367b397d9012))
|
|
12
24
|
|
|
13
25
|
## [8.0.1](https://github.com/Doist/typist/compare/v8.0.0...v8.0.1) (2025-05-21)
|
|
14
26
|
|
|
15
27
|
### Bug Fixes
|
|
16
28
|
|
|
17
|
-
-
|
|
29
|
+
- **deps:** update tiptap packages to v2.12.0 ([#1069](https://github.com/Doist/typist/issues/1069)) ([071be06](https://github.com/Doist/typist/commit/071be0654e83574a392ac9dd4e04f85051d33096))
|
|
18
30
|
|
|
19
31
|
## [8.0.0](https://github.com/Doist/typist/compare/v7.0.8...v8.0.0) (2025-03-17)
|
|
20
32
|
|
|
21
33
|
### ⚠ BREAKING CHANGES
|
|
22
34
|
|
|
23
|
-
-
|
|
35
|
+
- **html-serializer:** Removed support for the single tilde syntax (e.g., `~text~`) for strike-through formatting. Please update your content to use the double tilde syntax (e.g., `~~text~~`) instead.
|
|
24
36
|
|
|
25
37
|
### Bug Fixes
|
|
26
38
|
|
|
27
|
-
-
|
|
39
|
+
- **html-serializer:** Remove support for single tilde syntax for strike-through text ([#1055](https://github.com/Doist/typist/issues/1055)) ([95c7231](https://github.com/Doist/typist/commit/95c72316196e932c4599d2566684a9b2813acd09))
|
|
28
40
|
|
|
29
41
|
## [7.0.8](https://github.com/Doist/typist/compare/v7.0.7...v7.0.8) (2025-02-05)
|
|
30
42
|
|
|
31
43
|
### Bug Fixes
|
|
32
44
|
|
|
33
|
-
-
|
|
45
|
+
- **deps:** update tiptap packages to v2.11.5 ([#1014](https://github.com/Doist/typist/issues/1014)) ([d4c8270](https://github.com/Doist/typist/commit/d4c8270c0a997694fd71422958ca72a793b95663))
|
|
34
46
|
|
|
35
47
|
## [7.0.7](https://github.com/Doist/typist/compare/v7.0.6...v7.0.7) (2025-01-27)
|
|
36
48
|
|
|
37
49
|
### Bug Fixes
|
|
38
50
|
|
|
39
|
-
-
|
|
51
|
+
- **deps:** update tiptap packages to v2.11.2 ([#1006](https://github.com/Doist/typist/issues/1006)) ([87dcb3a](https://github.com/Doist/typist/commit/87dcb3a2685a701d2991d74ee8374833f614068e))
|
|
40
52
|
|
|
41
53
|
## [7.0.6](https://github.com/Doist/typist/compare/v7.0.5...v7.0.6) (2025-01-07)
|
|
42
54
|
|
|
43
55
|
### Bug Fixes
|
|
44
56
|
|
|
45
|
-
-
|
|
57
|
+
- **rich-text-code:** Retore original Tiptap input/paste rules ([#999](https://github.com/Doist/typist/issues/999)) ([6673d83](https://github.com/Doist/typist/commit/6673d83e1e6985cfcd68e5f836518f7edee8d444))
|
|
46
58
|
|
|
47
59
|
## [7.0.5](https://github.com/Doist/typist/compare/v7.0.4...v7.0.5) (2025-01-07)
|
|
48
60
|
|
|
49
61
|
### Bug Fixes
|
|
50
62
|
|
|
51
|
-
-
|
|
63
|
+
- **deps:** update tiptap packages to v2.11.0 ([#992](https://github.com/Doist/typist/issues/992)) ([a13270e](https://github.com/Doist/typist/commit/a13270efa093acd76961cf174edbb83522402a6e))
|
|
52
64
|
|
|
53
65
|
## [7.0.4](https://github.com/Doist/typist/compare/v7.0.3...v7.0.4) (2024-12-11)
|
|
54
66
|
|
|
55
67
|
### Bug Fixes
|
|
56
68
|
|
|
57
|
-
-
|
|
69
|
+
- Check table element before pasting it as a string ([#977](https://github.com/Doist/typist/issues/977)) ([954568e](https://github.com/Doist/typist/commit/954568efdacd362855a68078050975bea7c2d2c3))
|
|
58
70
|
|
|
59
71
|
## [7.0.3](https://github.com/Doist/typist/compare/v7.0.2...v7.0.3) (2024-12-02)
|
|
60
72
|
|
|
61
73
|
### Bug Fixes
|
|
62
74
|
|
|
63
|
-
-
|
|
75
|
+
- **deps:** update tiptap packages to v2.10.3 ([#920](https://github.com/Doist/typist/issues/920)) ([0328b9d](https://github.com/Doist/typist/commit/0328b9d38977385f5f49f2461a1430e955f97b55))
|
|
64
76
|
|
|
65
77
|
## [7.0.2](https://github.com/Doist/typist/compare/v7.0.1...v7.0.2) (2024-09-30)
|
|
66
78
|
|
|
67
79
|
### Bug Fixes
|
|
68
80
|
|
|
69
|
-
-
|
|
81
|
+
- **deps:** update tiptap packages to v2.7.2 ([#909](https://github.com/Doist/typist/issues/909)) ([910d1e1](https://github.com/Doist/typist/commit/910d1e194b323382d47eaaf944a87d7c5ad6cefd))
|
|
70
82
|
|
|
71
83
|
## [7.0.1](https://github.com/Doist/typist/compare/v7.0.0...v7.0.1) (2024-09-19)
|
|
72
84
|
|
|
73
85
|
### Bug Fixes
|
|
74
86
|
|
|
75
|
-
-
|
|
87
|
+
- Destroy React renderer and dropdown on Escape ([4f8d5be](https://github.com/Doist/typist/commit/4f8d5beadfd1235a8f4d4c032905ecb07fccf785))
|
|
76
88
|
|
|
77
89
|
## [7.0.0](https://github.com/Doist/typist/compare/v6.0.11...v7.0.0) (2024-08-28)
|
|
78
90
|
|
|
79
91
|
### ⚠ BREAKING CHANGES
|
|
80
92
|
|
|
81
|
-
-
|
|
82
|
-
|
|
93
|
+
- Fix TypeScript types for the Suggestion plugin
|
|
94
|
+
`command` function (allowing for generic override).
|
|
83
95
|
|
|
84
96
|
Although this was not causing any issues for us due to the convoluted
|
|
85
97
|
implementation, the same fix was recently applied to Tiptap, and this
|
|
@@ -92,151 +104,151 @@ consistency and clarity, but these are safe changes.
|
|
|
92
104
|
|
|
93
105
|
### Code Refactoring
|
|
94
106
|
|
|
95
|
-
-
|
|
107
|
+
- General improvements for TypeScript types ([#883](https://github.com/Doist/typist/issues/883)) ([b235eaf](https://github.com/Doist/typist/commit/b235eaf9506c5bf8ed0a94e863f9262b9735ad7e))
|
|
96
108
|
|
|
97
109
|
## [6.0.11](https://github.com/Doist/typist/compare/v6.0.10...v6.0.11) (2024-08-23)
|
|
98
110
|
|
|
99
111
|
### Bug Fixes
|
|
100
112
|
|
|
101
|
-
-
|
|
113
|
+
- **deps:** update tiptap packages to v2.6.6 ([#882](https://github.com/Doist/typist/issues/882)) ([691e909](https://github.com/Doist/typist/commit/691e90920ed29897d66d8f54e90e8ef30129d821))
|
|
102
114
|
|
|
103
115
|
## [6.0.10](https://github.com/Doist/typist/compare/v6.0.9...v6.0.10) (2024-08-21)
|
|
104
116
|
|
|
105
117
|
### Bug Fixes
|
|
106
118
|
|
|
107
|
-
-
|
|
119
|
+
- **deps:** update tiptap packages to v2.6.5 ([#881](https://github.com/Doist/typist/issues/881)) ([b72cf19](https://github.com/Doist/typist/commit/b72cf192cd50035a87a54ff83f194cb41b5ad700))
|
|
108
120
|
|
|
109
121
|
## [6.0.9](https://github.com/Doist/typist/compare/v6.0.8...v6.0.9) (2024-08-20)
|
|
110
122
|
|
|
111
123
|
### Bug Fixes
|
|
112
124
|
|
|
113
|
-
-
|
|
125
|
+
- **deps:** update tiptap packages to v2.6.4 ([#875](https://github.com/Doist/typist/issues/875)) ([a28caac](https://github.com/Doist/typist/commit/a28caac30770e7062971c662c0577f78f8f8d8af))
|
|
114
126
|
|
|
115
127
|
## [6.0.8](https://github.com/Doist/typist/compare/v6.0.7...v6.0.8) (2024-08-16)
|
|
116
128
|
|
|
117
129
|
### Bug Fixes
|
|
118
130
|
|
|
119
|
-
-
|
|
131
|
+
- Empty list items returns incorrectly formatted Markdown ([#874](https://github.com/Doist/typist/issues/874)) ([9c8bcb5](https://github.com/Doist/typist/commit/9c8bcb5e00040a24b0287a227baed27eb2ecf0d7))
|
|
120
132
|
|
|
121
133
|
## [6.0.7](https://github.com/Doist/typist/compare/v6.0.6...v6.0.7) (2024-08-14)
|
|
122
134
|
|
|
123
135
|
### Bug Fixes
|
|
124
136
|
|
|
125
|
-
-
|
|
137
|
+
- **deps:** update tiptap packages to v2.6.2 ([#872](https://github.com/Doist/typist/issues/872)) ([f75fb41](https://github.com/Doist/typist/commit/f75fb41bc56c89f0d7218e13d28a02cda2c9b52f))
|
|
126
138
|
|
|
127
139
|
## [6.0.6](https://github.com/Doist/typist/compare/v6.0.5...v6.0.6) (2024-08-12)
|
|
128
140
|
|
|
129
141
|
### Bug Fixes
|
|
130
142
|
|
|
131
|
-
-
|
|
143
|
+
- **deps:** update tiptap packages to v2.5.9 ([#773](https://github.com/Doist/typist/issues/773)) ([80247dd](https://github.com/Doist/typist/commit/80247ddd911131513c84f17b390091bdaffa5480))
|
|
132
144
|
|
|
133
145
|
## [6.0.5](https://github.com/Doist/typist/compare/v6.0.4...v6.0.5) (2024-08-09)
|
|
134
146
|
|
|
135
147
|
### Bug Fixes
|
|
136
148
|
|
|
137
|
-
-
|
|
149
|
+
- **paste-markdown:** Escape backslashes before punctuation ([#866](https://github.com/Doist/typist/issues/866)) ([e7e83de](https://github.com/Doist/typist/commit/e7e83dec4f522ca14533f8ad0ffb81e8492664ff))
|
|
138
150
|
|
|
139
151
|
## [6.0.4](https://github.com/Doist/typist/compare/v6.0.3...v6.0.4) (2024-08-02)
|
|
140
152
|
|
|
141
153
|
### Bug Fixes
|
|
142
154
|
|
|
143
|
-
-
|
|
155
|
+
- Remove `@react-hookz/web` peer dependency ([#861](https://github.com/Doist/typist/issues/861)) ([ad7644d](https://github.com/Doist/typist/commit/ad7644d0c5f33225607198b3f549a19d9632f405))
|
|
144
156
|
|
|
145
157
|
## [6.0.3](https://github.com/Doist/typist/compare/v6.0.2...v6.0.3) (2024-05-13)
|
|
146
158
|
|
|
147
159
|
### Bug Fixes
|
|
148
160
|
|
|
149
|
-
-
|
|
161
|
+
- Check `code` mark presence instead of any mark in `canInsertSuggestion` ([#791](https://github.com/Doist/typist/issues/791)) ([2f70959](https://github.com/Doist/typist/commit/2f709597c029e1d68bf7d39fb20c8a9a17a0f800))
|
|
150
162
|
|
|
151
163
|
## [6.0.2](https://github.com/Doist/typist/compare/v6.0.1...v6.0.2) (2024-04-15)
|
|
152
164
|
|
|
153
165
|
### Bug Fixes
|
|
154
166
|
|
|
155
|
-
-
|
|
167
|
+
- **rich-text-link:** Change `openOnClick` default to `whenNotEditable` ([#744](https://github.com/Doist/typist/issues/744)) ([db729d4](https://github.com/Doist/typist/commit/db729d48702231b78c77313510a7069d5c36fdde))
|
|
156
168
|
|
|
157
169
|
## [6.0.1](https://github.com/Doist/typist/compare/v6.0.0...v6.0.1) (2024-04-15)
|
|
158
170
|
|
|
159
171
|
### Bug Fixes
|
|
160
172
|
|
|
161
|
-
-
|
|
173
|
+
- **deps:** update tiptap packages to v2.3.0 ([#736](https://github.com/Doist/typist/issues/736)) ([bbf77a8](https://github.com/Doist/typist/commit/bbf77a809458160d3acbfd69a61d6eb92556a4b4))
|
|
162
174
|
|
|
163
175
|
## [6.0.0](https://github.com/Doist/typist/compare/v5.0.1...v6.0.0) (2024-04-11)
|
|
164
176
|
|
|
165
177
|
### ⚠ BREAKING CHANGES
|
|
166
178
|
|
|
167
|
-
-
|
|
179
|
+
- Use a wildcard export for ProseMirror model, state and view (#733)
|
|
168
180
|
|
|
169
181
|
### Code Refactoring
|
|
170
182
|
|
|
171
|
-
-
|
|
183
|
+
- Use a wildcard export for ProseMirror model, state and view ([#733](https://github.com/Doist/typist/issues/733)) ([496e976](https://github.com/Doist/typist/commit/496e976553f7de235dde8c9e50e934b85fb9f217))
|
|
172
184
|
|
|
173
185
|
## [5.0.1](https://github.com/Doist/typist/compare/v5.0.0...v5.0.1) (2024-04-11)
|
|
174
186
|
|
|
175
187
|
### Bug Fixes
|
|
176
188
|
|
|
177
|
-
-
|
|
189
|
+
- **deps:** update tiptap packages to v2.2.5 ([#732](https://github.com/Doist/typist/issues/732)) ([f1fc6d3](https://github.com/Doist/typist/commit/f1fc6d37861322f2ccceaf77d7ed6c520670418a))
|
|
178
190
|
|
|
179
191
|
## [5.0.0](https://github.com/Doist/typist/compare/v4.0.5...v5.0.0) (2024-03-20)
|
|
180
192
|
|
|
181
193
|
### ⚠ BREAKING CHANGES
|
|
182
194
|
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
|
|
195
|
+
- This option was unused and was not intended for
|
|
196
|
+
consumer use. However, its removal technically constitutes a breaking
|
|
197
|
+
change, so we have marked it accordingly.
|
|
186
198
|
|
|
187
199
|
### Miscellaneous Chores
|
|
188
200
|
|
|
189
|
-
-
|
|
201
|
+
- Remove unused `onImageNodeDelete` option ([#702](https://github.com/Doist/typist/issues/702)) ([ebd0678](https://github.com/Doist/typist/commit/ebd06784c14d00b748af7ad38bb030afcba41c35))
|
|
190
202
|
|
|
191
203
|
## [4.0.5](https://github.com/Doist/typist/compare/v4.0.4...v4.0.5) (2024-03-06)
|
|
192
204
|
|
|
193
205
|
### Bug Fixes
|
|
194
206
|
|
|
195
|
-
-
|
|
207
|
+
- Prevent extra blank lines on list items ([#685](https://github.com/Doist/typist/issues/685)) ([b538ebe](https://github.com/Doist/typist/commit/b538ebef9a43d6b1af2f68efcdad445ec9e0cc17))
|
|
196
208
|
|
|
197
209
|
## [4.0.4](https://github.com/Doist/typist/compare/v4.0.3...v4.0.4) (2024-03-06)
|
|
198
210
|
|
|
199
211
|
### Bug Fixes
|
|
200
212
|
|
|
201
|
-
-
|
|
213
|
+
- **deps:** update tiptap packages to v2.2.4 ([#660](https://github.com/Doist/typist/issues/660)) ([b603996](https://github.com/Doist/typist/commit/b603996c64b98388f43d0e7489b3fec7629b2b7d))
|
|
202
214
|
|
|
203
215
|
## [4.0.3](https://github.com/Doist/typist/compare/v4.0.2...v4.0.3) (2024-03-06)
|
|
204
216
|
|
|
205
217
|
### Bug Fixes
|
|
206
218
|
|
|
207
|
-
-
|
|
219
|
+
- **deps:** update dependency hast-util-is-element to v3 ([#683](https://github.com/Doist/typist/issues/683)) ([97c6428](https://github.com/Doist/typist/commit/97c64288edabf924b524711d0691d7e3ecc4c25a))
|
|
208
220
|
|
|
209
221
|
## [4.0.2](https://github.com/Doist/typist/compare/v4.0.1...v4.0.2) (2024-02-08)
|
|
210
222
|
|
|
211
223
|
### Bug Fixes
|
|
212
224
|
|
|
213
|
-
-
|
|
225
|
+
- **bold-and-italics:** Disallow only whitespace in the markdown shortcuts ([#651](https://github.com/Doist/typist/issues/651)) ([4c740dd](https://github.com/Doist/typist/commit/4c740ddedc487ad27f2fc8b56e2440913911e40f))
|
|
214
226
|
|
|
215
227
|
## [4.0.1](https://github.com/Doist/typist/compare/v4.0.0...v4.0.1) (2024-02-07)
|
|
216
228
|
|
|
217
229
|
### Bug Fixes
|
|
218
230
|
|
|
219
|
-
-
|
|
231
|
+
- **deps:** update tiptap packages to v2.2.1 ([#643](https://github.com/Doist/typist/issues/643)) ([0abbe97](https://github.com/Doist/typist/commit/0abbe9755a9acb14ee8004202ae3f7f48ff47a0f))
|
|
220
232
|
|
|
221
233
|
## [4.0.0](https://github.com/Doist/typist/compare/v3.0.0...v4.0.0) (2024-01-30)
|
|
222
234
|
|
|
223
235
|
### ⚠ BREAKING CHANGES
|
|
224
236
|
|
|
225
|
-
-
|
|
237
|
+
- **deps:** update unified ecosystem dependencies (#395)
|
|
226
238
|
|
|
227
239
|
### Bug Fixes
|
|
228
240
|
|
|
229
|
-
-
|
|
241
|
+
- **deps:** update unified ecosystem dependencies ([#395](https://github.com/Doist/typist/issues/395)) ([e97ad83](https://github.com/Doist/typist/commit/e97ad83e7015cf49044bc72cf8ef6dce1be1f2c8))
|
|
230
242
|
|
|
231
243
|
## [3.0.0](https://github.com/Doist/typist/compare/v2.3.1...v3.0.0) (2024-01-18)
|
|
232
244
|
|
|
233
245
|
### ⚠ BREAKING CHANGES
|
|
234
246
|
|
|
235
|
-
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
247
|
+
- **extensions:** The `smartToggleBulletList` and
|
|
248
|
+
`smartToggleOrderedList` commands were renamed to have the same name as
|
|
249
|
+
the built-in toggle functions so that they can easily be used by the
|
|
250
|
+
default keyboard shortcuts without having to change the
|
|
251
|
+
`addKeyboardShortcuts` function.
|
|
240
252
|
|
|
241
253
|
The `BulletList` and `OrderedList` extensions now take an additional
|
|
242
254
|
option, `smartToggle` (default: `false`), that indicates whether hard
|
|
@@ -245,394 +257,394 @@ selection into a bullet/ordered list, or not.
|
|
|
245
257
|
|
|
246
258
|
### Features
|
|
247
259
|
|
|
248
|
-
-
|
|
260
|
+
- **extensions:** Overwrite built-in List/Ordered toggle functions with a `smartToggle` option ([#620](https://github.com/Doist/typist/issues/620)) ([059da61](https://github.com/Doist/typist/commit/059da61605370f8a3534d3c7669acbc952ea40d3))
|
|
249
261
|
|
|
250
262
|
## [2.3.1](https://github.com/Doist/typist/compare/v2.3.0...v2.3.1) (2024-01-17)
|
|
251
263
|
|
|
252
264
|
### Bug Fixes
|
|
253
265
|
|
|
254
|
-
-
|
|
266
|
+
- **commands:** Restore built-in `toggleBulletList` and `toggleOrderedList` ([#613](https://github.com/Doist/typist/issues/613)) ([4c4a0dc](https://github.com/Doist/typist/commit/4c4a0dc98e5c7351d6a0d2e8b16661c1e8f54fdd))
|
|
255
267
|
|
|
256
268
|
## [2.3.0](https://github.com/Doist/typist/compare/v2.2.1...v2.3.0) (2024-01-17)
|
|
257
269
|
|
|
258
270
|
### Features
|
|
259
271
|
|
|
260
|
-
-
|
|
272
|
+
- **commands:** Add `smartToggleBulletList` and `smartToggleOrderedList` ([#612](https://github.com/Doist/typist/issues/612)) ([e5dcc8b](https://github.com/Doist/typist/commit/e5dcc8b523d7596e168f919fd53d9119f7c40ac7))
|
|
261
273
|
|
|
262
274
|
## [2.2.1](https://github.com/Doist/typist/compare/v2.2.0...v2.2.1) (2024-01-11)
|
|
263
275
|
|
|
264
276
|
### Bug Fixes
|
|
265
277
|
|
|
266
|
-
-
|
|
278
|
+
- **deps:** update tiptap packages to v2.1.13 ([#554](https://github.com/Doist/typist/issues/554)) ([e89007b](https://github.com/Doist/typist/commit/e89007b7da928c3be46f2beaef9207586c3279a4))
|
|
267
279
|
|
|
268
280
|
## [2.2.0](https://github.com/Doist/typist/compare/v2.1.3...v2.2.0) (2023-11-21)
|
|
269
281
|
|
|
270
282
|
### Features
|
|
271
283
|
|
|
272
|
-
-
|
|
284
|
+
- add support for Node v21 ([#533](https://github.com/Doist/typist/issues/533)) ([87ca351](https://github.com/Doist/typist/commit/87ca35150b03a8a429296a3324b018e1a9121b04))
|
|
273
285
|
|
|
274
286
|
## [2.1.3](https://github.com/Doist/typist/compare/v2.1.2...v2.1.3) (2023-11-03)
|
|
275
287
|
|
|
276
288
|
### Bug Fixes
|
|
277
289
|
|
|
278
|
-
-
|
|
290
|
+
- **deps:** update tiptap packages to v2.1.12 ([#488](https://github.com/Doist/typist/issues/488)) ([63c619c](https://github.com/Doist/typist/commit/63c619cc085ad14b3909ab6dddd929da04449ff3))
|
|
279
291
|
|
|
280
292
|
## [2.1.2](https://github.com/Doist/typist/compare/v2.1.1...v2.1.2) (2023-10-19)
|
|
281
293
|
|
|
282
294
|
### Bug Fixes
|
|
283
295
|
|
|
284
|
-
-
|
|
296
|
+
- Change `emDelimiter` to `*` to fix having only part of word in italic ([#490](https://github.com/Doist/typist/issues/490)) ([7496ff2](https://github.com/Doist/typist/commit/7496ff2b3c42ab39a22c253b7d20cca7f19af3b2))
|
|
285
297
|
|
|
286
298
|
## [2.1.1](https://github.com/Doist/typist/compare/v2.1.0...v2.1.1) (2023-10-03)
|
|
287
299
|
|
|
288
300
|
### Bug Fixes
|
|
289
301
|
|
|
290
|
-
-
|
|
302
|
+
- **deps:** update tiptap packages to v2.1.11 ([#462](https://github.com/Doist/typist/issues/462)) ([80d86e7](https://github.com/Doist/typist/commit/80d86e7c8bb7e7bd3605b8ea9d0ce61c1327f50e))
|
|
291
303
|
|
|
292
304
|
## [2.1.0](https://github.com/Doist/typist/compare/v2.0.3...v2.1.0) (2023-09-28)
|
|
293
305
|
|
|
294
306
|
### Features
|
|
295
307
|
|
|
296
|
-
-
|
|
308
|
+
- add support for Node v20 and npm v10 ([#465](https://github.com/Doist/typist/issues/465)) ([8e3c1b3](https://github.com/Doist/typist/commit/8e3c1b39f1e4f4d0eabbd113998da29a52e4461f))
|
|
297
309
|
|
|
298
310
|
## [2.0.3](https://github.com/Doist/typist/compare/v2.0.2...v2.0.3) (2023-09-25)
|
|
299
311
|
|
|
300
312
|
### Bug Fixes
|
|
301
313
|
|
|
302
|
-
-
|
|
314
|
+
- **deps:** update tiptap packages to v2.1.10 ([#447](https://github.com/Doist/typist/issues/447)) ([9ed0371](https://github.com/Doist/typist/commit/9ed037104495be1dd4886f4c4263a886be94a995))
|
|
303
315
|
|
|
304
316
|
## [2.0.2](https://github.com/Doist/typist/compare/v2.0.1...v2.0.2) (2023-09-14)
|
|
305
317
|
|
|
306
318
|
### Bug Fixes
|
|
307
319
|
|
|
308
|
-
-
|
|
320
|
+
- Update ProseMirror imports to `@tiptap/pm/*` packages ([#443](https://github.com/Doist/typist/issues/443)) ([48e42e8](https://github.com/Doist/typist/commit/48e42e8294bce3b768313047ab8f5268ee900abb))
|
|
309
321
|
|
|
310
322
|
## [2.0.1](https://github.com/Doist/typist/compare/v2.0.0...v2.0.1) (2023-09-14)
|
|
311
323
|
|
|
312
324
|
### Bug Fixes
|
|
313
325
|
|
|
314
|
-
-
|
|
326
|
+
- **commands:** Buggy `insertMarkdownContentAt` implementation ([#442](https://github.com/Doist/typist/issues/442)) ([b9667f9](https://github.com/Doist/typist/commit/b9667f94d726285438244db1c58662b7c04ed8be))
|
|
315
327
|
|
|
316
328
|
## [2.0.0](https://github.com/Doist/typist/compare/v1.5.0...v2.0.0) (2023-09-13)
|
|
317
329
|
|
|
318
330
|
### ⚠ BREAKING CHANGES
|
|
319
331
|
|
|
320
|
-
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
332
|
+
- **commands:** With the introduction of `insertMarkdownContentAt`, the
|
|
333
|
+
API for `insertMarkdownContent` was changed to match the Tiptap's
|
|
334
|
+
implementation of `insertContent`/`insertContentAt`, which the
|
|
335
|
+
`insertMarkdown*` commands draw inspiration from.
|
|
324
336
|
|
|
325
337
|
### Features
|
|
326
338
|
|
|
327
|
-
-
|
|
339
|
+
- **commands:** Add `insertMarkdownContentAt` command ([#439](https://github.com/Doist/typist/issues/439)) ([e87b892](https://github.com/Doist/typist/commit/e87b8929c2c77f1a6fbb065d865d73d45f62134f))
|
|
328
340
|
|
|
329
341
|
## [1.5.0](https://github.com/Doist/typist/compare/v1.4.12...v1.5.0) (2023-09-12)
|
|
330
342
|
|
|
331
343
|
### Features
|
|
332
344
|
|
|
333
|
-
-
|
|
345
|
+
- Add `createParagraphEnd` command ([#438](https://github.com/Doist/typist/issues/438)) ([28484aa](https://github.com/Doist/typist/commit/28484aa4c5bdc8b5e47f12b0d03e45dacba7b533))
|
|
334
346
|
|
|
335
347
|
## [1.4.12](https://github.com/Doist/typist/compare/v1.4.11...v1.4.12) (2023-09-08)
|
|
336
348
|
|
|
337
349
|
### Bug Fixes
|
|
338
350
|
|
|
339
|
-
-
|
|
351
|
+
- Hyperlink a text selection when pasting a valid URL ([#435](https://github.com/Doist/typist/issues/435)) ([999455e](https://github.com/Doist/typist/commit/999455ee8bb55df9335ad9ca6e2d07b8833b4d41))
|
|
340
352
|
|
|
341
353
|
## [1.4.11](https://github.com/Doist/typist/compare/v1.4.10...v1.4.11) (2023-09-08)
|
|
342
354
|
|
|
343
355
|
### Bug Fixes
|
|
344
356
|
|
|
345
|
-
-
|
|
357
|
+
- Remove `handlePaste` escape when clipboard holds multiple types ([#434](https://github.com/Doist/typist/issues/434)) ([4395051](https://github.com/Doist/typist/commit/43950517bcfcc1fa412e4681b4d336dd3bb3ac1b))
|
|
346
358
|
|
|
347
359
|
## [1.4.10](https://github.com/Doist/typist/compare/v1.4.9...v1.4.10) (2023-09-05)
|
|
348
360
|
|
|
349
361
|
### Bug Fixes
|
|
350
362
|
|
|
351
|
-
-
|
|
363
|
+
- **deps:** update tiptap packages to v2.1.8 ([#427](https://github.com/Doist/typist/issues/427)) ([c3f34bb](https://github.com/Doist/typist/commit/c3f34bb31ad912b1cebc5a2a28adfaa1054492d7))
|
|
352
364
|
|
|
353
365
|
## [1.4.9](https://github.com/Doist/typist/compare/v1.4.8...v1.4.9) (2023-09-05)
|
|
354
366
|
|
|
355
367
|
### Bug Fixes
|
|
356
368
|
|
|
357
|
-
-
|
|
369
|
+
- **rich-text-kit:** Allow the `ListKeymap` extension to be configured ([#426](https://github.com/Doist/typist/issues/426)) ([7d789bb](https://github.com/Doist/typist/commit/7d789bb8a0a4a4c55c219606e0f0c95e3698ebc7))
|
|
358
370
|
|
|
359
371
|
## [1.4.8](https://github.com/Doist/typist/compare/v1.4.7...v1.4.8) (2023-08-28)
|
|
360
372
|
|
|
361
373
|
### Bug Fixes
|
|
362
374
|
|
|
363
|
-
-
|
|
375
|
+
- **rich-text-link:** Markdown pasting broken with conflicting `linkOnPaste` option ([#411](https://github.com/Doist/typist/issues/411)) ([2df2ba9](https://github.com/Doist/typist/commit/2df2ba94208357cbeaa3a9ac482503ac843e9b06))
|
|
364
376
|
|
|
365
377
|
## [1.4.7](https://github.com/Doist/typist/compare/v1.4.6...v1.4.7) (2023-08-24)
|
|
366
378
|
|
|
367
379
|
### Bug Fixes
|
|
368
380
|
|
|
369
|
-
-
|
|
381
|
+
- **deps:** update tiptap packages to v2.1.7 ([#407](https://github.com/Doist/typist/issues/407)) ([0df2f58](https://github.com/Doist/typist/commit/0df2f58ee912b8447d50c63b1790c8623ccf0ab7))
|
|
370
382
|
|
|
371
383
|
## [1.4.6](https://github.com/Doist/typist/compare/v1.4.5...v1.4.6) (2023-08-24)
|
|
372
384
|
|
|
373
385
|
### Bug Fixes
|
|
374
386
|
|
|
375
|
-
-
|
|
387
|
+
- **deps:** revert update gfm strikethrough and autolink literal packages to v1 ([#408](https://github.com/Doist/typist/issues/408)) ([c231d95](https://github.com/Doist/typist/commit/c231d95bebc9905245930de9ef874c791f74413e))
|
|
376
388
|
|
|
377
389
|
## [1.4.5](https://github.com/Doist/typist/compare/v1.4.4...v1.4.5) (2023-08-23)
|
|
378
390
|
|
|
379
391
|
### Bug Fixes
|
|
380
392
|
|
|
381
|
-
-
|
|
393
|
+
- **deps:** update tiptap packages to v2.1.6 ([#398](https://github.com/Doist/typist/issues/398)) ([08d1f6a](https://github.com/Doist/typist/commit/08d1f6a47f788a326c46c3e5ecb7f824a8e700e6))
|
|
382
394
|
|
|
383
395
|
## [1.4.4](https://github.com/Doist/typist/compare/v1.4.3...v1.4.4) (2023-08-04)
|
|
384
396
|
|
|
385
397
|
### Bug Fixes
|
|
386
398
|
|
|
387
|
-
-
|
|
399
|
+
- **deps:** update gfm autolink literal packages to v2 (major) ([#378](https://github.com/Doist/typist/issues/378)) ([d5b0e37](https://github.com/Doist/typist/commit/d5b0e379673e94cacb3f1e78557225f20fb9c9e6))
|
|
388
400
|
|
|
389
401
|
## [1.4.3](https://github.com/Doist/typist/compare/v1.4.2...v1.4.3) (2023-08-04)
|
|
390
402
|
|
|
391
403
|
### Bug Fixes
|
|
392
404
|
|
|
393
|
-
-
|
|
405
|
+
- **deps:** update gfm strikethrough packages to v2 (major) ([#379](https://github.com/Doist/typist/issues/379)) ([6b99f9d](https://github.com/Doist/typist/commit/6b99f9dc3b2f77b864f31e34a12918ea21d78d90))
|
|
394
406
|
|
|
395
407
|
## [1.4.2](https://github.com/Doist/typist/compare/v1.4.1...v1.4.2) (2023-08-04)
|
|
396
408
|
|
|
397
409
|
### Bug Fixes
|
|
398
410
|
|
|
399
|
-
-
|
|
411
|
+
- **deps:** update dependency unist-util-remove to v4 ([#380](https://github.com/Doist/typist/issues/380)) ([31d7f63](https://github.com/Doist/typist/commit/31d7f63b4d434e8ed42aa585859b646431ff1b89))
|
|
400
412
|
|
|
401
413
|
## [1.4.1](https://github.com/Doist/typist/compare/v1.4.0...v1.4.1) (2023-08-04)
|
|
402
414
|
|
|
403
415
|
### Bug Fixes
|
|
404
416
|
|
|
405
|
-
-
|
|
417
|
+
- **deps:** update tiptap packages to v2.0.4 ([#374](https://github.com/Doist/typist/issues/374)) ([83c8049](https://github.com/Doist/typist/commit/83c80494bb76947a4080a10cef5e8df6061f2710))
|
|
406
418
|
|
|
407
419
|
## [1.4.0](https://github.com/Doist/typist/compare/v1.3.2...v1.4.0) (2023-06-20)
|
|
408
420
|
|
|
409
421
|
### Features
|
|
410
422
|
|
|
411
|
-
-
|
|
423
|
+
- Allow all marks to coexist with the Code mark ([#309](https://github.com/Doist/typist/issues/309)) ([ac06735](https://github.com/Doist/typist/commit/ac067352d97f6c7987ae94a47855654cfbf1dda6))
|
|
412
424
|
|
|
413
425
|
## [1.3.2](https://github.com/Doist/typist/compare/v1.3.1...v1.3.2) (2023-06-19)
|
|
414
426
|
|
|
415
427
|
### Bug Fixes
|
|
416
428
|
|
|
417
|
-
-
|
|
429
|
+
- Extra paragraph node inserted above an Horizontal Rule ([#313](https://github.com/Doist/typist/issues/313)) ([3852309](https://github.com/Doist/typist/commit/38523099af792428531162655a1aabd2bdc9b6ad))
|
|
418
430
|
|
|
419
431
|
## [1.3.1](https://github.com/Doist/typist/compare/v1.3.0...v1.3.1) (2023-06-13)
|
|
420
432
|
|
|
421
433
|
### Bug Fixes
|
|
422
434
|
|
|
423
|
-
-
|
|
435
|
+
- Add support for literal autolinks (GFM based) ([#303](https://github.com/Doist/typist/issues/303)) ([4537091](https://github.com/Doist/typist/commit/45370914988eed1226722051f18a2fa49d9aa50f))
|
|
424
436
|
|
|
425
437
|
## [1.3.0](https://github.com/Doist/typist/compare/v1.2.9...v1.3.0) (2023-06-12)
|
|
426
438
|
|
|
427
439
|
### Features
|
|
428
440
|
|
|
429
|
-
-
|
|
441
|
+
- Add the `PasteHTMLTableAsString` extension ([#290](https://github.com/Doist/typist/issues/290)) ([ee90014](https://github.com/Doist/typist/commit/ee90014c4c8bfa8c80b11ab5cae01ba434f942b6))
|
|
430
442
|
|
|
431
443
|
## [1.2.9](https://github.com/Doist/typist/compare/v1.2.8...v1.2.9) (2023-06-01)
|
|
432
444
|
|
|
433
445
|
### Bug Fixes
|
|
434
446
|
|
|
435
|
-
-
|
|
447
|
+
- **html-serializer:** Don't share instances between editors ([#275](https://github.com/Doist/typist/issues/275)) ([3aba8c7](https://github.com/Doist/typist/commit/3aba8c7b00b44e22a14ea2bc6d6dcad0f4f5ed80))
|
|
436
448
|
|
|
437
449
|
## [1.2.8](https://github.com/Doist/typist/compare/v1.2.7...v1.2.8) (2023-05-30)
|
|
438
450
|
|
|
439
451
|
### Notes
|
|
440
452
|
|
|
441
|
-
-
|
|
453
|
+
- This version was published by mistake because we were unware that a `revert:` commit would publish a new version. There's no difference between `v1.2.7` and `v1.2.8`, the distributed code is exactly the same.
|
|
442
454
|
|
|
443
455
|
## [1.2.7](https://github.com/Doist/typist/compare/v1.2.6...v1.2.7) (2023-05-22)
|
|
444
456
|
|
|
445
457
|
### Bug Fixes
|
|
446
458
|
|
|
447
|
-
-
|
|
459
|
+
- **paste-markdown:** Incorrect paste behaviour when HTML source is VSCode ([#260](https://github.com/Doist/typist/issues/260)) ([3326796](https://github.com/Doist/typist/commit/3326796a9093a984113ac76f69bc3ec109004288))
|
|
448
460
|
|
|
449
461
|
## [1.2.6](https://github.com/Doist/typist/compare/v1.2.5...v1.2.6) (2023-04-18)
|
|
450
462
|
|
|
451
463
|
### Bug Fixes
|
|
452
464
|
|
|
453
|
-
-
|
|
465
|
+
- **deps:** update tiptap packages to v2.0.3 ([#226](https://github.com/Doist/typist/issues/226)) ([a1953b0](https://github.com/Doist/typist/commit/a1953b087b51772f5c29671473031cb099c346e0))
|
|
454
466
|
|
|
455
467
|
## [1.2.5](https://github.com/Doist/typist/compare/v1.2.4...v1.2.5) (2023-04-10)
|
|
456
468
|
|
|
457
469
|
### Bug Fixes
|
|
458
470
|
|
|
459
|
-
-
|
|
471
|
+
- **deps:** update tiptap packages to v2.0.2 ([#212](https://github.com/Doist/typist/issues/212)) ([200b339](https://github.com/Doist/typist/commit/200b3398c238dab66eba866a76211f715fe26fb4))
|
|
460
472
|
|
|
461
473
|
## [1.2.4](https://github.com/Doist/typist/compare/v1.2.3...v1.2.4) (2023-04-04)
|
|
462
474
|
|
|
463
475
|
### Bug Fixes
|
|
464
476
|
|
|
465
|
-
-
|
|
477
|
+
- **deps:** update tiptap packages to v2.0.1 ([#201](https://github.com/Doist/typist/issues/201)) ([e31cb2f](https://github.com/Doist/typist/commit/e31cb2f6835a7de55340602f0f0f5d7aa86386df))
|
|
466
478
|
|
|
467
479
|
## [1.2.3](https://github.com/Doist/typist/compare/v1.2.2...v1.2.3) (2023-04-04)
|
|
468
480
|
|
|
469
481
|
### Bug Fixes
|
|
470
482
|
|
|
471
|
-
-
|
|
483
|
+
- **deps:** update tiptap packages to v2.0.0 ([#198](https://github.com/Doist/typist/issues/198)) ([fe4aa82](https://github.com/Doist/typist/commit/fe4aa82d9e9116e09fef285021fc7386782b9daf))
|
|
472
484
|
|
|
473
485
|
## [1.2.2](https://github.com/Doist/typist/compare/v1.2.1...v1.2.2) (2023-04-02)
|
|
474
486
|
|
|
475
487
|
### Bug Fixes
|
|
476
488
|
|
|
477
|
-
-
|
|
489
|
+
- **deps:** update tiptap packages to v2.0.0-rc.2 ([#195](https://github.com/Doist/typist/issues/195)) ([8753f13](https://github.com/Doist/typist/commit/8753f137f4a1c2c0598c0cc98ace29754d971327))
|
|
478
490
|
|
|
479
491
|
## [1.2.1](https://github.com/Doist/typist/compare/v1.2.0...v1.2.1) (2023-04-01)
|
|
480
492
|
|
|
481
493
|
### Bug Fixes
|
|
482
494
|
|
|
483
|
-
-
|
|
495
|
+
- **deps:** update tiptap packages to v2.0.0-rc.1 ([#192](https://github.com/Doist/typist/issues/192)) ([26d090a](https://github.com/Doist/typist/commit/26d090a8a0c93a0795f0714392129aacc30c72b6))
|
|
484
496
|
|
|
485
497
|
## [1.2.0](https://github.com/Doist/typist/compare/v1.1.2...v1.2.0) (2023-03-17)
|
|
486
498
|
|
|
487
499
|
### Features
|
|
488
500
|
|
|
489
|
-
-
|
|
501
|
+
- **serializers:** Add `get*` functions for reusable singular instances ([#88](https://github.com/Doist/typist/issues/88)) ([b2c77c3](https://github.com/Doist/typist/commit/b2c77c30b15cd3dd676fc01531ecbeb5a6f7b952))
|
|
490
502
|
|
|
491
503
|
## [1.1.2](https://github.com/Doist/typist/compare/v1.1.1...v1.1.2) (2023-03-06)
|
|
492
504
|
|
|
493
505
|
### Bug Fixes
|
|
494
506
|
|
|
495
|
-
-
|
|
507
|
+
- **deps:** update tiptap packages to v2.0.0-beta.220 ([#158](https://github.com/Doist/typist/issues/158)) ([c7fc3d8](https://github.com/Doist/typist/commit/c7fc3d8885e962bd33dc30172206309fbeb4eda4))
|
|
496
508
|
|
|
497
509
|
## [1.1.1](https://github.com/Doist/typist/compare/v1.1.0...v1.1.1) (2023-03-03)
|
|
498
510
|
|
|
499
511
|
### Bug Fixes
|
|
500
512
|
|
|
501
|
-
-
|
|
513
|
+
- Invalid `hasCodeMarkBefore` check in `canInsertSuggestion` utility function ([#156](https://github.com/Doist/typist/issues/156)) ([21826c5](https://github.com/Doist/typist/commit/21826c58f763d020d3810fe373ab2524e0f0448e))
|
|
502
514
|
|
|
503
515
|
## [1.1.0](https://github.com/Doist/typist/compare/v1.0.19...v1.1.0) (2023-03-02)
|
|
504
516
|
|
|
505
517
|
### Features
|
|
506
518
|
|
|
507
|
-
-
|
|
519
|
+
- Disallow suggestions inside inline code marks and code blocks ([#154](https://github.com/Doist/typist/issues/154)) ([7d75314](https://github.com/Doist/typist/commit/7d75314b80ef66383c24b06022c47e25d01425f6))
|
|
508
520
|
|
|
509
521
|
## [1.0.19](https://github.com/Doist/typist/compare/v1.0.18...v1.0.19) (2023-02-23)
|
|
510
522
|
|
|
511
523
|
### Bug Fixes
|
|
512
524
|
|
|
513
|
-
-
|
|
525
|
+
- **deps:** update tiptap packages to v2.0.0-beta.218 ([#148](https://github.com/Doist/typist/issues/148)) ([0e9e179](https://github.com/Doist/typist/commit/0e9e179535c2339cc86137ebedf4d2d6cb79b324))
|
|
514
526
|
|
|
515
527
|
## [1.0.18](https://github.com/Doist/typist/compare/v1.0.17...v1.0.18) (2023-02-23)
|
|
516
528
|
|
|
517
529
|
### Bug Fixes
|
|
518
530
|
|
|
519
|
-
-
|
|
531
|
+
- **deps:** Migrate ProseMirror dependencies to `@tiptap/pm` package ([#151](https://github.com/Doist/typist/issues/151)) ([d2a8eae](https://github.com/Doist/typist/commit/d2a8eaefa0dc57579aa97f170e37dae17c77590d))
|
|
520
532
|
|
|
521
533
|
## [1.0.17](https://github.com/Doist/typist/compare/v1.0.16...v1.0.17) (2023-02-23)
|
|
522
534
|
|
|
523
535
|
### Bug Fixes
|
|
524
536
|
|
|
525
|
-
-
|
|
537
|
+
- **markdown-serializer:** Override Turndown escaping behaviour with custom rules ([#102](https://github.com/Doist/typist/issues/102)) ([6950afb](https://github.com/Doist/typist/commit/6950afb61bd22a3b029e7f688f5e704402290e5a))
|
|
526
538
|
|
|
527
539
|
## [1.0.16](https://github.com/Doist/typist/compare/v1.0.15...v1.0.16) (2023-02-22)
|
|
528
540
|
|
|
529
541
|
### Bug Fixes
|
|
530
542
|
|
|
531
|
-
-
|
|
543
|
+
- Replace usage of useEvent with useCallback ([#98](https://github.com/Doist/typist/issues/98)) ([3b175f7](https://github.com/Doist/typist/commit/3b175f77cf0fa638a8ad267959ab720d24815fdd))
|
|
532
544
|
|
|
533
545
|
## [1.0.15](https://github.com/Doist/typist/compare/v1.0.14...v1.0.15) (2023-02-14)
|
|
534
546
|
|
|
535
547
|
### Bug Fixes
|
|
536
548
|
|
|
537
|
-
-
|
|
549
|
+
- **deps:** update tiptap packages to v2.0.0-beta.217 ([#136](https://github.com/Doist/typist/issues/136)) ([eebba15](https://github.com/Doist/typist/commit/eebba150de5f8a972c99a31b77b52af672169a94))
|
|
538
550
|
|
|
539
551
|
## [1.0.14](https://github.com/Doist/typist/compare/v1.0.13...v1.0.14) (2023-02-13)
|
|
540
552
|
|
|
541
553
|
### Bug Fixes
|
|
542
554
|
|
|
543
|
-
-
|
|
555
|
+
- **deps:** update tiptap packages to v2.0.0-beta.216 ([#135](https://github.com/Doist/typist/issues/135)) ([3d31a2e](https://github.com/Doist/typist/commit/3d31a2e2b783c91b9e8858b2234c7ac7f0f0e0a7))
|
|
544
556
|
|
|
545
557
|
## [1.0.13](https://github.com/Doist/typist/compare/v1.0.12...v1.0.13) (2023-02-13)
|
|
546
558
|
|
|
547
559
|
### Bug Fixes
|
|
548
560
|
|
|
549
|
-
-
|
|
561
|
+
- **deps:** update tiptap packages to v2.0.0-beta.215 ([#129](https://github.com/Doist/typist/issues/129)) ([af22d22](https://github.com/Doist/typist/commit/af22d22eff6531c11114cb3122daa184657e504e))
|
|
550
562
|
|
|
551
563
|
## [1.0.12](https://github.com/Doist/typist/compare/v1.0.11...v1.0.12) (2023-01-06)
|
|
552
564
|
|
|
553
565
|
### Bug Fixes
|
|
554
566
|
|
|
555
|
-
-
|
|
567
|
+
- **html-serializer:** Disables tokenizers if marks/nodes are not found in the editor schema ([#86](https://github.com/Doist/typist/issues/86)) ([0ed4a9b](https://github.com/Doist/typist/commit/0ed4a9b694d2b7dcfadce0c5aa3fdefec6d492c5))
|
|
556
568
|
|
|
557
569
|
## [1.0.11](https://github.com/Doist/typist/compare/v1.0.10...v1.0.11) (2022-12-21)
|
|
558
570
|
|
|
559
571
|
### Bug Fixes
|
|
560
572
|
|
|
561
|
-
-
|
|
573
|
+
- **deps:** update tiptap packages to v2.0.0-beta.209 ([#75](https://github.com/Doist/typist/issues/75)) ([97a41c5](https://github.com/Doist/typist/commit/97a41c58254a06ebf72ea7b2440eb04ca0cda51a))
|
|
562
574
|
|
|
563
575
|
## [1.0.10](https://github.com/Doist/typist/compare/v1.0.9...v1.0.10) (2022-12-19)
|
|
564
576
|
|
|
565
577
|
### Bug Fixes
|
|
566
578
|
|
|
567
|
-
-
|
|
579
|
+
- Add required ProseMirror dependencies to package ([#73](https://github.com/Doist/typist/issues/73)) ([cd605c0](https://github.com/Doist/typist/commit/cd605c0606a980516e586f3a6d0915f2c13704a9))
|
|
568
580
|
|
|
569
581
|
## [1.0.9](https://github.com/Doist/typist/compare/v1.0.8...v1.0.9) (2022-12-19)
|
|
570
582
|
|
|
571
583
|
### Bug Fixes
|
|
572
584
|
|
|
573
|
-
-
|
|
585
|
+
- **rich-text-link:** More lenient regex for input/paste rule ([#72](https://github.com/Doist/typist/issues/72)) ([98e363f](https://github.com/Doist/typist/commit/98e363f27e6e403a775ca8fe729ce17dbdf721df))
|
|
574
586
|
|
|
575
587
|
## [1.0.8](https://github.com/Doist/typist/compare/v1.0.7...v1.0.8) (2022-12-19)
|
|
576
588
|
|
|
577
589
|
### Bug Fixes
|
|
578
590
|
|
|
579
|
-
-
|
|
591
|
+
- **factories:** Allow alphanumeric IDs for suggestion nodes in `createSuggestionExtension` ([#66](https://github.com/Doist/typist/issues/66)) ([a1726a6](https://github.com/Doist/typist/commit/a1726a6be089e3e1452def641dfcfc622ac3e942))
|
|
580
592
|
|
|
581
593
|
## [1.0.7](https://github.com/Doist/typist/compare/v1.0.6...v1.0.7) (2022-12-14)
|
|
582
594
|
|
|
583
595
|
### Bug Fixes
|
|
584
596
|
|
|
585
|
-
-
|
|
597
|
+
- **deps:** update tiptap packages to v2.0.0-beta.207 ([#63](https://github.com/Doist/typist/issues/63)) ([da9889f](https://github.com/Doist/typist/commit/da9889faa3224fcca3b23f05178dca24d30d96d5))
|
|
586
598
|
|
|
587
599
|
## [1.0.6](https://github.com/Doist/typist/compare/v1.0.5...v1.0.6) (2022-12-13)
|
|
588
600
|
|
|
589
601
|
### Bug Fixes
|
|
590
602
|
|
|
591
|
-
-
|
|
603
|
+
- **deps:** update tiptap packages to v2.0.0-beta.206 ([#59](https://github.com/Doist/typist/issues/59)) ([27e0f26](https://github.com/Doist/typist/commit/27e0f26df4b5f4c4dd4c0e577bd1e5f3f5da2fc6))
|
|
592
604
|
|
|
593
605
|
## [1.0.5](https://github.com/Doist/typist/compare/v1.0.4...v1.0.5) (2022-12-12)
|
|
594
606
|
|
|
595
607
|
### Bug Fixes
|
|
596
608
|
|
|
597
|
-
-
|
|
609
|
+
- Remove unused Tippy.js peer dependency ([#56](https://github.com/Doist/typist/issues/56)) ([85f87a5](https://github.com/Doist/typist/commit/85f87a554db37e331797563c3795180e5e11ddf7))
|
|
598
610
|
|
|
599
611
|
## [1.0.4](https://github.com/Doist/typist/compare/v1.0.3...v1.0.4) (2022-12-12)
|
|
600
612
|
|
|
601
613
|
### Bug Fixes
|
|
602
614
|
|
|
603
|
-
-
|
|
615
|
+
- **deps:** update tiptap packages to v2.0.0-beta.205 ([#54](https://github.com/Doist/typist/issues/54)) ([2074402](https://github.com/Doist/typist/commit/20744024bda8e4e3263e87dda7a53cca94265407))
|
|
604
616
|
|
|
605
617
|
## [1.0.3](https://github.com/Doist/typist/compare/v1.0.2...v1.0.3) (2022-12-08)
|
|
606
618
|
|
|
607
619
|
### Bug Fixes
|
|
608
620
|
|
|
609
|
-
-
|
|
621
|
+
- **docs:** correct the render function name ([#50](https://github.com/Doist/typist/issues/50)) ([45dd681](https://github.com/Doist/typist/commit/45dd681c761c1189df740f118d4293d30807a2f7))
|
|
610
622
|
|
|
611
623
|
## [1.0.2](https://github.com/Doist/typist/compare/v1.0.1...v1.0.2) (2022-12-02)
|
|
612
624
|
|
|
613
625
|
### Bug Fixes
|
|
614
626
|
|
|
615
|
-
-
|
|
616
|
-
-
|
|
617
|
-
-
|
|
618
|
-
-
|
|
619
|
-
-
|
|
620
|
-
-
|
|
621
|
-
-
|
|
622
|
-
-
|
|
627
|
+
- `insertMarkdownContent` didn't insert Markdown correctly in plain-text documents ([#13](https://github.com/Doist/typist/issues/13)) ([74cc623](https://github.com/Doist/typist/commit/74cc6233edb0a0ffb46d3a5786b310c2b59ae3c5))
|
|
628
|
+
- **deps:** update dependency prosemirror-codemark to v0.4.2 ([#34](https://github.com/Doist/typist/issues/34)) ([58938a1](https://github.com/Doist/typist/commit/58938a170e680c4803558ad6f67c7d1f9617c42e))
|
|
629
|
+
- **deps:** update dependency prosemirror-model to v1.18.2 ([#25](https://github.com/Doist/typist/issues/25)) ([5d1fc1b](https://github.com/Doist/typist/commit/5d1fc1b7d313a6e2828992dc4a9251f8bdb9fe0c))
|
|
630
|
+
- **deps:** update dependency prosemirror-model to v1.18.3 ([#30](https://github.com/Doist/typist/issues/30)) ([54bfd56](https://github.com/Doist/typist/commit/54bfd569d2de8929da4546a411b1dfe5c9215f3a))
|
|
631
|
+
- **deps:** update dependency prosemirror-view to v1.29.1 ([#26](https://github.com/Doist/typist/issues/26)) ([9f86a5e](https://github.com/Doist/typist/commit/9f86a5e5cfe2afbe51c493a05c21306fb85d7807))
|
|
632
|
+
- **deps:** update tiptap packages to v2.0.0-beta.202 ([#9](https://github.com/Doist/typist/issues/9)) ([ce43f74](https://github.com/Doist/typist/commit/ce43f744f98b25e1dd6b28bac1baca3c4a0449c4))
|
|
633
|
+
- **deps:** update tiptap packages to v2.0.0-beta.203 ([#35](https://github.com/Doist/typist/issues/35)) ([2188bc6](https://github.com/Doist/typist/commit/2188bc60012822782b7425e5aa971381a6eeacb3))
|
|
634
|
+
- **deps:** update tiptap packages to v2.0.0-beta.204 ([#38](https://github.com/Doist/typist/issues/38)) ([cb5b359](https://github.com/Doist/typist/commit/cb5b35921dac5a5ac40e46948961079ca683eb54))
|
|
623
635
|
|
|
624
636
|
## [1.0.1](https://github.com/Doist/typist/compare/v1.0.0...v1.0.1) (2022-11-08)
|
|
625
637
|
|
|
626
638
|
### Bug Fixes
|
|
627
639
|
|
|
628
|
-
-
|
|
640
|
+
- Add support for query params in `RichTextLink` extension ([#4](https://github.com/Doist/typist/issues/4)) ([9fac158](https://github.com/Doist/typist/commit/9fac158365f1dcdac0cad8bcf76ec59f276710a8))
|
|
629
641
|
|
|
630
642
|
## 1.0.0 (2022-11-04)
|
|
631
643
|
|
|
632
644
|
### Features
|
|
633
645
|
|
|
634
|
-
-
|
|
646
|
+
- Initial Typist implementation ([19451ab](https://github.com/Doist/typist/commit/19451ab9eb66de1399585d9a2e06141096d690c4))
|
|
635
647
|
|
|
636
648
|
### Bug Fixes
|
|
637
649
|
|
|
638
|
-
-
|
|
650
|
+
- **deps:** update tiptap packages to v2.0.0-beta.200 ([#3](https://github.com/Doist/typist/issues/3)) ([6e977a9](https://github.com/Doist/typist/commit/6e977a9ee5f687700d2868a834b8d20068c15e3e))
|
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -10,19 +10,19 @@ We pledge to act and interact in ways that contribute to an open, welcoming, div
|
|
|
10
10
|
|
|
11
11
|
Examples of behavior that contributes to a positive environment for our community include:
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
13
|
+
- Demonstrating empathy and kindness toward other people
|
|
14
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
+
- Giving and gracefully accepting constructive feedback
|
|
16
|
+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
+
- Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
18
|
|
|
19
19
|
Examples of unacceptable behavior include:
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
21
|
+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
22
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
23
|
+
- Public or private harassment
|
|
24
|
+
- Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
25
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
26
26
|
|
|
27
27
|
## Enforcement Responsibilities
|
|
28
28
|
|
package/CONTRIBUTING.md
CHANGED
|
@@ -28,7 +28,7 @@ If you intend to change the public API, or make any non-trivial changes to the i
|
|
|
28
28
|
|
|
29
29
|
Working on your first Pull Request? You can learn how from this free video series:
|
|
30
30
|
|
|
31
|
-
-
|
|
31
|
+
- [How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)
|
|
32
32
|
|
|
33
33
|
If you decide to fix an issue, please be sure to check the comment thread in case somebody is already working on a fix. If nobody is working on it at the moment, please leave a comment stating that you intend to work on it so other people don't accidentally duplicate your effort.
|
|
34
34
|
|
|
@@ -55,12 +55,12 @@ cd typist
|
|
|
55
55
|
|
|
56
56
|
After cloning Typist and installing all dependencies, several commands are at your disposal:
|
|
57
57
|
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
58
|
+
- `npm run build`: Builds the `@doist/typist` package for publishing to [npm](https://www.npmjs.com/) and [GitHub Packages](https://github.com/orgs/Doist/packages?repo_name=typist);
|
|
59
|
+
- `npm run check`: Validates code quality with ESLint, styling with Prettier, and types with TypeScript;
|
|
60
|
+
- `npm run clean`: Removes temporary directories used for multiple caches;
|
|
61
|
+
- `npm run storybook:build`: Builds Storybook as a static Web application;
|
|
62
|
+
- `npm run storybook:start`: Starts Storybook Web application (available at http://localhost:6006/);
|
|
63
|
+
- `npm run test`: Runs all unit test with Jest and end-to-end tests with Storybook.
|
|
64
64
|
|
|
65
65
|
### Release Process (core team only)
|
|
66
66
|
|
|
@@ -80,11 +80,11 @@ Pull requests are actively monitored, and only need the approval of one or more
|
|
|
80
80
|
|
|
81
81
|
Before submitting a pull request, please take the following into consideration:
|
|
82
82
|
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
83
|
+
- Fork [the repository](https://github.com/doist/typist) and create your branch from `main`;
|
|
84
|
+
- Follow the [Commit Message Guidelines](#commit-message-guidelines) below;
|
|
85
|
+
- Add tests for code that should be tested (like bug fixes);
|
|
86
|
+
- Ensure the test suite passes with flying colours;
|
|
87
|
+
- Do not override built-in validation and formatting checks.
|
|
88
88
|
|
|
89
89
|
### Commit Message Guidelines
|
|
90
90
|
|
|
@@ -92,9 +92,9 @@ Before submitting a pull request, please take the following into consideration:
|
|
|
92
92
|
|
|
93
93
|
If possible, make [atomic commits](https://en.wikipedia.org/wiki/Atomic_commit), which means:
|
|
94
94
|
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
95
|
+
- A commit should not mix whitespace and/or code style changes with functional code changes;
|
|
96
|
+
- A commit should contain exactly one self-contained functional change;
|
|
97
|
+
- A commit should not create an inconsistent state (e.g., test errors, linting errors, partial fix, etc.).
|
|
98
98
|
|
|
99
99
|
#### Commit Message Format
|
|
100
100
|
|
package/README.md
CHANGED
|
@@ -64,8 +64,8 @@ If you're looking for additional documentation, in-depth examples, or a live dem
|
|
|
64
64
|
|
|
65
65
|
A curated list of open-source rich-text editors powered by Tiptap that we can draw inspiration from:
|
|
66
66
|
|
|
67
|
-
-
|
|
68
|
-
|
|
67
|
+
- GitLab's content editor:\
|
|
68
|
+
https://gitlab.com/gitlab-org/gitlab/-/tree/master/app/assets/javascripts/content_editor
|
|
69
69
|
|
|
70
70
|
## Contributing
|
|
71
71
|
|
|
@@ -69,7 +69,7 @@ type RichTextImageOptions = {
|
|
|
69
69
|
* Custom extension that extends the built-in `Image` extension to add support for image pasting,
|
|
70
70
|
* and also adds the ability to pass aditional metadata about an image attachment upload.
|
|
71
71
|
*/
|
|
72
|
-
declare const RichTextImage: import("@tiptap/
|
|
72
|
+
declare const RichTextImage: import("@tiptap/core").Node<RichTextImageOptions, any>;
|
|
73
73
|
export { RichTextImage };
|
|
74
74
|
export type { RichTextImageAttributes, RichTextImageOptions };
|
|
75
75
|
//# sourceMappingURL=rich-text-image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text-image.d.ts","sourceRoot":"","sources":["../../../src/extensions/rich-text/rich-text-image.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEvD;;GAEG;AACH,KAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE;QACP;;WAEG;QACH,YAAY,EAAE,MAAM,CAAA;QAEpB;;WAEG;QACH,cAA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;;OAEG;IACH,cAAc,CAAC,EAAE,CACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,iBAAiB,CAAC,eAAe,CAAC,KAC1C,eAAe,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAA;IAEnD;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAA;CACjD,CAAA;AAED;;GAEG;AACH,KAAK,iBAAiB,CAAC,eAAe,IAAI,QAAQ,CAAC;IAC/C;;OAEG;IACH,KAAK,EAAE,eAAe,EAAE,CAAA;IAExB;;OAEG;IACH,SAAS,EAAE;QAAE,QAAQ,EAAE,EAAE,EAAE,wBAAwB,CAAC,IAAI,CAAC,GAAG,eAAe,GAAG,SAAS,CAAA;KAAE,CAAA;CAC5F,CAAC,CAAA;AAEF;;GAEG;AACH,KAAK,yBAAyB,CAAC,eAAe,IAAI,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAA;AAE1F;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,iBAAS,yBAAyB,CAC9B,eAAe,SAAS;IACpB,CAAC,EAAE,EAAE,wBAAwB,CAAC,IAAI,CAAC,GAAG,OAAO,CAAA;CAChD,GAAG,wBAAwB,EAE5B,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,eAAe,EAAO,EAK7B,GAAG,iBAAiB,EAAE,eAAe,SAAS,wBAAwB,GAChE,EAAE,GACF;IACI,iBAAiB,CAAC;QACd,EAAE,EAAE,eAAe,CAAC,eAAe,EAAE,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAAA;QACpE,KAAK,EAAE,eAAe,CAAC,eAAe,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAA;KAC7E,CAAC;CACL,GACR,yBAAyB,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"create-suggestion-extension.d.ts","sourceRoot":"","sources":["../../src/factories/create-suggestion-extension.ts"],"names":[],"mappings":"AA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ACrB,iBAAiB,GACpB,CAAA"}
|
|
@@ -85,7 +85,8 @@ function createSuggestionExtension(type, items = [],
|
|
|
85
85
|
// sure that a previously referenced suggestion always renders the most
|
|
86
86
|
// up-to-date label for the suggestion), and fallback to the `data-label`
|
|
87
87
|
// attribute if the item is not found in the storage
|
|
88
|
-
|
|
88
|
+
const labelValue = item?.[labelAttribute] ?? element.getAttribute('data-label');
|
|
89
|
+
return typeof labelValue === 'string' ? labelValue : '';
|
|
89
90
|
},
|
|
90
91
|
renderHTML: (attributes) => ({
|
|
91
92
|
'data-label': String(attributes.label),
|
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": "8.0.
|
|
4
|
+
"version": "8.0.5",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://typist.doist.dev/",
|
|
7
7
|
"repository": "https://github.com/Doist/typist",
|
|
@@ -24,64 +24,65 @@
|
|
|
24
24
|
"dist/**"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "run-s clean:* typist
|
|
28
|
-
"
|
|
27
|
+
"build": "run-s clean:* build:typist",
|
|
28
|
+
"build:storybook": "storybook build",
|
|
29
|
+
"build:typist": "tsc --build tsconfig.build.json",
|
|
30
|
+
"check": "run-p check:* -c -l -t",
|
|
31
|
+
"check:eslint": "eslint --format codeframe --cache --cache-location ./.cache/.eslintcache --ext js,jsx,ts,tsx ./",
|
|
32
|
+
"check:prettier": "prettier --check \"./**/*.{js,jsx,ts,tsx,json,css,yml,md}\"",
|
|
33
|
+
"check:types": "tsc --project tsconfig.json",
|
|
29
34
|
"clean": "run-s clean:*",
|
|
30
35
|
"clean:cache": "rimraf .cache/",
|
|
31
36
|
"clean:dist": "rimraf dist/",
|
|
32
37
|
"clean:storybook-static": "rimraf storybook-static/",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
38
|
+
"fix": "run-p fix:* -c -l -t",
|
|
39
|
+
"fix:prettier": "prettier --write \"./**/*.{js,jsx,ts,tsx,json,css,yml,md}\"",
|
|
35
40
|
"prepare": "is-ci || husky",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"storybook:build": "storybook build",
|
|
39
|
-
"storybook:start": "storybook dev --port 6006 --ci",
|
|
41
|
+
"start": "run-s clean:* start:storybook",
|
|
42
|
+
"start:storybook": "storybook dev --port 6006 --ci",
|
|
40
43
|
"test": "vitest run",
|
|
41
44
|
"test:watch": "vitest watch",
|
|
42
|
-
"typescript:check": "tsc --project tsconfig.json",
|
|
43
|
-
"typist:build": "tsc --build tsconfig.build.json",
|
|
44
45
|
"validate:pre-commit": "lint-staged",
|
|
45
46
|
"validate:pre-push": "run-s test"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@tiptap/core": "2.
|
|
49
|
-
"@tiptap/extension-blockquote": "2.
|
|
50
|
-
"@tiptap/extension-bold": "2.
|
|
51
|
-
"@tiptap/extension-bullet-list": "2.
|
|
52
|
-
"@tiptap/extension-character-count": "2.
|
|
53
|
-
"@tiptap/extension-code": "2.
|
|
54
|
-
"@tiptap/extension-code-block": "2.
|
|
55
|
-
"@tiptap/extension-document": "2.
|
|
56
|
-
"@tiptap/extension-dropcursor": "2.
|
|
57
|
-
"@tiptap/extension-gapcursor": "2.
|
|
58
|
-
"@tiptap/extension-hard-break": "2.
|
|
59
|
-
"@tiptap/extension-heading": "2.
|
|
60
|
-
"@tiptap/extension-history": "2.
|
|
61
|
-
"@tiptap/extension-horizontal-rule": "2.
|
|
62
|
-
"@tiptap/extension-image": "2.
|
|
63
|
-
"@tiptap/extension-italic": "2.
|
|
64
|
-
"@tiptap/extension-link": "2.
|
|
65
|
-
"@tiptap/extension-list-item": "2.
|
|
66
|
-
"@tiptap/extension-list-keymap": "2.
|
|
67
|
-
"@tiptap/extension-ordered-list": "2.
|
|
68
|
-
"@tiptap/extension-paragraph": "2.
|
|
69
|
-
"@tiptap/extension-placeholder": "2.
|
|
70
|
-
"@tiptap/extension-strike": "2.
|
|
71
|
-
"@tiptap/extension-task-item": "2.
|
|
72
|
-
"@tiptap/extension-task-list": "2.
|
|
73
|
-
"@tiptap/extension-text": "2.
|
|
74
|
-
"@tiptap/extension-text-style": "2.
|
|
75
|
-
"@tiptap/extension-typography": "2.
|
|
76
|
-
"@tiptap/pm": "2.
|
|
77
|
-
"@tiptap/react": "2.
|
|
78
|
-
"@tiptap/suggestion": "2.
|
|
49
|
+
"@tiptap/core": "2.27.1",
|
|
50
|
+
"@tiptap/extension-blockquote": "2.27.1",
|
|
51
|
+
"@tiptap/extension-bold": "2.27.1",
|
|
52
|
+
"@tiptap/extension-bullet-list": "2.27.1",
|
|
53
|
+
"@tiptap/extension-character-count": "2.27.1",
|
|
54
|
+
"@tiptap/extension-code": "2.27.1",
|
|
55
|
+
"@tiptap/extension-code-block": "2.27.1",
|
|
56
|
+
"@tiptap/extension-document": "2.27.1",
|
|
57
|
+
"@tiptap/extension-dropcursor": "2.27.1",
|
|
58
|
+
"@tiptap/extension-gapcursor": "2.27.1",
|
|
59
|
+
"@tiptap/extension-hard-break": "2.27.1",
|
|
60
|
+
"@tiptap/extension-heading": "2.27.1",
|
|
61
|
+
"@tiptap/extension-history": "2.27.1",
|
|
62
|
+
"@tiptap/extension-horizontal-rule": "2.27.1",
|
|
63
|
+
"@tiptap/extension-image": "2.27.1",
|
|
64
|
+
"@tiptap/extension-italic": "2.27.1",
|
|
65
|
+
"@tiptap/extension-link": "2.27.1",
|
|
66
|
+
"@tiptap/extension-list-item": "2.27.1",
|
|
67
|
+
"@tiptap/extension-list-keymap": "2.27.1",
|
|
68
|
+
"@tiptap/extension-ordered-list": "2.27.1",
|
|
69
|
+
"@tiptap/extension-paragraph": "2.27.1",
|
|
70
|
+
"@tiptap/extension-placeholder": "2.27.1",
|
|
71
|
+
"@tiptap/extension-strike": "2.27.1",
|
|
72
|
+
"@tiptap/extension-task-item": "2.27.1",
|
|
73
|
+
"@tiptap/extension-task-list": "2.27.1",
|
|
74
|
+
"@tiptap/extension-text": "2.27.1",
|
|
75
|
+
"@tiptap/extension-text-style": "2.27.1",
|
|
76
|
+
"@tiptap/extension-typography": "2.27.1",
|
|
77
|
+
"@tiptap/pm": "2.27.1",
|
|
78
|
+
"@tiptap/react": "2.27.1",
|
|
79
|
+
"@tiptap/suggestion": "2.27.1",
|
|
79
80
|
"prosemirror-codemark": "0.4.2"
|
|
80
81
|
},
|
|
81
82
|
"devDependencies": {
|
|
82
|
-
"@doist/eslint-config": "
|
|
83
|
+
"@doist/eslint-config": "12.0.0",
|
|
83
84
|
"@doist/prettier-config": "4.0.0",
|
|
84
|
-
"@doist/reactist": "
|
|
85
|
+
"@doist/reactist": "29.0.0",
|
|
85
86
|
"@mdx-js/react": "3.1.1",
|
|
86
87
|
"@semantic-release/changelog": "6.0.3",
|
|
87
88
|
"@semantic-release/exec": "7.1.0",
|
|
@@ -94,54 +95,54 @@
|
|
|
94
95
|
"@storybook/mdx2-csf": "1.1.0",
|
|
95
96
|
"@storybook/react": "8.6.14",
|
|
96
97
|
"@storybook/react-vite": "8.6.14",
|
|
97
|
-
"@testing-library/dom": "10.4.
|
|
98
|
-
"@testing-library/jest-dom": "6.
|
|
98
|
+
"@testing-library/dom": "10.4.1",
|
|
99
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
99
100
|
"@testing-library/react": "16.3.0",
|
|
100
101
|
"@types/hast": "3.0.4",
|
|
101
102
|
"@types/lodash-es": "4.17.12",
|
|
102
103
|
"@types/react": "18.3.26",
|
|
103
104
|
"@types/react-dom": "18.3.7",
|
|
104
105
|
"@types/react-syntax-highlighter": "15.5.13",
|
|
105
|
-
"@types/turndown": "5.0.
|
|
106
|
+
"@types/turndown": "5.0.6",
|
|
106
107
|
"@types/unist": "3.0.3",
|
|
107
|
-
"@vitejs/plugin-react": "
|
|
108
|
-
"boring-avatars": "
|
|
108
|
+
"@vitejs/plugin-react": "5.1.0",
|
|
109
|
+
"boring-avatars": "2.0.4",
|
|
109
110
|
"classnames": "2.5.1",
|
|
110
|
-
"conventional-changelog-conventionalcommits": "
|
|
111
|
-
"emoji-regex": "10.
|
|
111
|
+
"conventional-changelog-conventionalcommits": "9.1.0",
|
|
112
|
+
"emoji-regex": "10.6.0",
|
|
112
113
|
"eslint": "8.57.1",
|
|
113
|
-
"eslint-formatter-codeframe": "7.32.
|
|
114
|
-
"eslint-import-resolver-typescript": "3.
|
|
115
|
-
"eslint-plugin-simple-import-sort": "12.
|
|
114
|
+
"eslint-formatter-codeframe": "7.32.2",
|
|
115
|
+
"eslint-import-resolver-typescript": "3.10.1",
|
|
116
|
+
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
116
117
|
"eslint-plugin-storybook": "0.12.0",
|
|
117
|
-
"eslint-plugin-unicorn": "56.0.
|
|
118
|
+
"eslint-plugin-unicorn": "56.0.1",
|
|
118
119
|
"eslint-plugin-vitest": "0.4.1",
|
|
119
120
|
"eslint-plugin-vitest-globals": "1.5.0",
|
|
120
121
|
"github-markdown-css": "5.8.1",
|
|
121
122
|
"husky": "9.1.7",
|
|
122
123
|
"ignore-sync": "8.0.0",
|
|
123
124
|
"is-ci": "4.1.0",
|
|
124
|
-
"jsdom": "
|
|
125
|
-
"lint-staged": "
|
|
126
|
-
"npm-run-
|
|
127
|
-
"prettier": "3.2
|
|
125
|
+
"jsdom": "27.1.0",
|
|
126
|
+
"lint-staged": "16.2.6",
|
|
127
|
+
"npm-run-all-next": "1.1.1",
|
|
128
|
+
"prettier": "3.6.2",
|
|
128
129
|
"react": "18.3.1",
|
|
129
130
|
"react-dom": "18.3.1",
|
|
130
131
|
"react-icons": "5.5.0",
|
|
131
|
-
"react-markdown": "
|
|
132
|
-
"react-syntax-highlighter": "
|
|
132
|
+
"react-markdown": "10.1.0",
|
|
133
|
+
"react-syntax-highlighter": "16.1.0",
|
|
133
134
|
"react-use-event-hook": "0.9.6",
|
|
134
135
|
"rehype-raw": "7.0.0",
|
|
135
136
|
"remark-gfm": "4.0.1",
|
|
136
|
-
"rimraf": "6.0
|
|
137
|
+
"rimraf": "6.1.0",
|
|
137
138
|
"semantic-release": "25.0.1",
|
|
138
139
|
"storybook": "8.6.14",
|
|
139
140
|
"storybook-css-modules": "1.0.8",
|
|
140
141
|
"tippy.js": "6.3.7",
|
|
141
|
-
"type-fest": "
|
|
142
|
-
"typescript": "5.
|
|
143
|
-
"typescript-plugin-css-modules": "5.
|
|
144
|
-
"vitest": "
|
|
142
|
+
"type-fest": "5.2.0",
|
|
143
|
+
"typescript": "5.9.3",
|
|
144
|
+
"typescript-plugin-css-modules": "5.2.0",
|
|
145
|
+
"vitest": "4.0.7"
|
|
145
146
|
},
|
|
146
147
|
"peerDependencies": {
|
|
147
148
|
"emoji-regex": "^10.2.1",
|