@doist/typist 8.0.4 → 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 +128 -122
- 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,91 +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
|
+
|
|
1
7
|
## [8.0.4](https://github.com/Doist/typist/compare/v8.0.3...v8.0.4) (2025-10-24)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
4
10
|
|
|
5
|
-
-
|
|
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))
|
|
6
12
|
|
|
7
13
|
## [8.0.3](https://github.com/Doist/typist/compare/v8.0.2...v8.0.3) (2025-10-24)
|
|
8
14
|
|
|
9
15
|
### Bug Fixes
|
|
10
16
|
|
|
11
|
-
-
|
|
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))
|
|
12
18
|
|
|
13
19
|
## [8.0.2](https://github.com/Doist/typist/compare/v8.0.1...v8.0.2) (2025-05-21)
|
|
14
20
|
|
|
15
21
|
### Bug Fixes
|
|
16
22
|
|
|
17
|
-
-
|
|
23
|
+
- Add support for npm 11 ([#1097](https://github.com/Doist/typist/issues/1097)) ([62cf6a0](https://github.com/Doist/typist/commit/62cf6a055acf283af2c9424fdce9367b397d9012))
|
|
18
24
|
|
|
19
25
|
## [8.0.1](https://github.com/Doist/typist/compare/v8.0.0...v8.0.1) (2025-05-21)
|
|
20
26
|
|
|
21
27
|
### Bug Fixes
|
|
22
28
|
|
|
23
|
-
-
|
|
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))
|
|
24
30
|
|
|
25
31
|
## [8.0.0](https://github.com/Doist/typist/compare/v7.0.8...v8.0.0) (2025-03-17)
|
|
26
32
|
|
|
27
33
|
### ⚠ BREAKING CHANGES
|
|
28
34
|
|
|
29
|
-
-
|
|
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.
|
|
30
36
|
|
|
31
37
|
### Bug Fixes
|
|
32
38
|
|
|
33
|
-
-
|
|
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))
|
|
34
40
|
|
|
35
41
|
## [7.0.8](https://github.com/Doist/typist/compare/v7.0.7...v7.0.8) (2025-02-05)
|
|
36
42
|
|
|
37
43
|
### Bug Fixes
|
|
38
44
|
|
|
39
|
-
-
|
|
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))
|
|
40
46
|
|
|
41
47
|
## [7.0.7](https://github.com/Doist/typist/compare/v7.0.6...v7.0.7) (2025-01-27)
|
|
42
48
|
|
|
43
49
|
### Bug Fixes
|
|
44
50
|
|
|
45
|
-
-
|
|
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))
|
|
46
52
|
|
|
47
53
|
## [7.0.6](https://github.com/Doist/typist/compare/v7.0.5...v7.0.6) (2025-01-07)
|
|
48
54
|
|
|
49
55
|
### Bug Fixes
|
|
50
56
|
|
|
51
|
-
-
|
|
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))
|
|
52
58
|
|
|
53
59
|
## [7.0.5](https://github.com/Doist/typist/compare/v7.0.4...v7.0.5) (2025-01-07)
|
|
54
60
|
|
|
55
61
|
### Bug Fixes
|
|
56
62
|
|
|
57
|
-
-
|
|
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))
|
|
58
64
|
|
|
59
65
|
## [7.0.4](https://github.com/Doist/typist/compare/v7.0.3...v7.0.4) (2024-12-11)
|
|
60
66
|
|
|
61
67
|
### Bug Fixes
|
|
62
68
|
|
|
63
|
-
-
|
|
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))
|
|
64
70
|
|
|
65
71
|
## [7.0.3](https://github.com/Doist/typist/compare/v7.0.2...v7.0.3) (2024-12-02)
|
|
66
72
|
|
|
67
73
|
### Bug Fixes
|
|
68
74
|
|
|
69
|
-
-
|
|
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))
|
|
70
76
|
|
|
71
77
|
## [7.0.2](https://github.com/Doist/typist/compare/v7.0.1...v7.0.2) (2024-09-30)
|
|
72
78
|
|
|
73
79
|
### Bug Fixes
|
|
74
80
|
|
|
75
|
-
-
|
|
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))
|
|
76
82
|
|
|
77
83
|
## [7.0.1](https://github.com/Doist/typist/compare/v7.0.0...v7.0.1) (2024-09-19)
|
|
78
84
|
|
|
79
85
|
### Bug Fixes
|
|
80
86
|
|
|
81
|
-
-
|
|
87
|
+
- Destroy React renderer and dropdown on Escape ([4f8d5be](https://github.com/Doist/typist/commit/4f8d5beadfd1235a8f4d4c032905ecb07fccf785))
|
|
82
88
|
|
|
83
89
|
## [7.0.0](https://github.com/Doist/typist/compare/v6.0.11...v7.0.0) (2024-08-28)
|
|
84
90
|
|
|
85
91
|
### ⚠ BREAKING CHANGES
|
|
86
92
|
|
|
87
|
-
-
|
|
88
|
-
|
|
93
|
+
- Fix TypeScript types for the Suggestion plugin
|
|
94
|
+
`command` function (allowing for generic override).
|
|
89
95
|
|
|
90
96
|
Although this was not causing any issues for us due to the convoluted
|
|
91
97
|
implementation, the same fix was recently applied to Tiptap, and this
|
|
@@ -98,151 +104,151 @@ consistency and clarity, but these are safe changes.
|
|
|
98
104
|
|
|
99
105
|
### Code Refactoring
|
|
100
106
|
|
|
101
|
-
-
|
|
107
|
+
- General improvements for TypeScript types ([#883](https://github.com/Doist/typist/issues/883)) ([b235eaf](https://github.com/Doist/typist/commit/b235eaf9506c5bf8ed0a94e863f9262b9735ad7e))
|
|
102
108
|
|
|
103
109
|
## [6.0.11](https://github.com/Doist/typist/compare/v6.0.10...v6.0.11) (2024-08-23)
|
|
104
110
|
|
|
105
111
|
### Bug Fixes
|
|
106
112
|
|
|
107
|
-
-
|
|
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))
|
|
108
114
|
|
|
109
115
|
## [6.0.10](https://github.com/Doist/typist/compare/v6.0.9...v6.0.10) (2024-08-21)
|
|
110
116
|
|
|
111
117
|
### Bug Fixes
|
|
112
118
|
|
|
113
|
-
-
|
|
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))
|
|
114
120
|
|
|
115
121
|
## [6.0.9](https://github.com/Doist/typist/compare/v6.0.8...v6.0.9) (2024-08-20)
|
|
116
122
|
|
|
117
123
|
### Bug Fixes
|
|
118
124
|
|
|
119
|
-
-
|
|
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))
|
|
120
126
|
|
|
121
127
|
## [6.0.8](https://github.com/Doist/typist/compare/v6.0.7...v6.0.8) (2024-08-16)
|
|
122
128
|
|
|
123
129
|
### Bug Fixes
|
|
124
130
|
|
|
125
|
-
-
|
|
131
|
+
- Empty list items returns incorrectly formatted Markdown ([#874](https://github.com/Doist/typist/issues/874)) ([9c8bcb5](https://github.com/Doist/typist/commit/9c8bcb5e00040a24b0287a227baed27eb2ecf0d7))
|
|
126
132
|
|
|
127
133
|
## [6.0.7](https://github.com/Doist/typist/compare/v6.0.6...v6.0.7) (2024-08-14)
|
|
128
134
|
|
|
129
135
|
### Bug Fixes
|
|
130
136
|
|
|
131
|
-
-
|
|
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))
|
|
132
138
|
|
|
133
139
|
## [6.0.6](https://github.com/Doist/typist/compare/v6.0.5...v6.0.6) (2024-08-12)
|
|
134
140
|
|
|
135
141
|
### Bug Fixes
|
|
136
142
|
|
|
137
|
-
-
|
|
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))
|
|
138
144
|
|
|
139
145
|
## [6.0.5](https://github.com/Doist/typist/compare/v6.0.4...v6.0.5) (2024-08-09)
|
|
140
146
|
|
|
141
147
|
### Bug Fixes
|
|
142
148
|
|
|
143
|
-
-
|
|
149
|
+
- **paste-markdown:** Escape backslashes before punctuation ([#866](https://github.com/Doist/typist/issues/866)) ([e7e83de](https://github.com/Doist/typist/commit/e7e83dec4f522ca14533f8ad0ffb81e8492664ff))
|
|
144
150
|
|
|
145
151
|
## [6.0.4](https://github.com/Doist/typist/compare/v6.0.3...v6.0.4) (2024-08-02)
|
|
146
152
|
|
|
147
153
|
### Bug Fixes
|
|
148
154
|
|
|
149
|
-
-
|
|
155
|
+
- Remove `@react-hookz/web` peer dependency ([#861](https://github.com/Doist/typist/issues/861)) ([ad7644d](https://github.com/Doist/typist/commit/ad7644d0c5f33225607198b3f549a19d9632f405))
|
|
150
156
|
|
|
151
157
|
## [6.0.3](https://github.com/Doist/typist/compare/v6.0.2...v6.0.3) (2024-05-13)
|
|
152
158
|
|
|
153
159
|
### Bug Fixes
|
|
154
160
|
|
|
155
|
-
-
|
|
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))
|
|
156
162
|
|
|
157
163
|
## [6.0.2](https://github.com/Doist/typist/compare/v6.0.1...v6.0.2) (2024-04-15)
|
|
158
164
|
|
|
159
165
|
### Bug Fixes
|
|
160
166
|
|
|
161
|
-
-
|
|
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))
|
|
162
168
|
|
|
163
169
|
## [6.0.1](https://github.com/Doist/typist/compare/v6.0.0...v6.0.1) (2024-04-15)
|
|
164
170
|
|
|
165
171
|
### Bug Fixes
|
|
166
172
|
|
|
167
|
-
-
|
|
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))
|
|
168
174
|
|
|
169
175
|
## [6.0.0](https://github.com/Doist/typist/compare/v5.0.1...v6.0.0) (2024-04-11)
|
|
170
176
|
|
|
171
177
|
### ⚠ BREAKING CHANGES
|
|
172
178
|
|
|
173
|
-
-
|
|
179
|
+
- Use a wildcard export for ProseMirror model, state and view (#733)
|
|
174
180
|
|
|
175
181
|
### Code Refactoring
|
|
176
182
|
|
|
177
|
-
-
|
|
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))
|
|
178
184
|
|
|
179
185
|
## [5.0.1](https://github.com/Doist/typist/compare/v5.0.0...v5.0.1) (2024-04-11)
|
|
180
186
|
|
|
181
187
|
### Bug Fixes
|
|
182
188
|
|
|
183
|
-
-
|
|
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))
|
|
184
190
|
|
|
185
191
|
## [5.0.0](https://github.com/Doist/typist/compare/v4.0.5...v5.0.0) (2024-03-20)
|
|
186
192
|
|
|
187
193
|
### ⚠ BREAKING CHANGES
|
|
188
194
|
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
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.
|
|
192
198
|
|
|
193
199
|
### Miscellaneous Chores
|
|
194
200
|
|
|
195
|
-
-
|
|
201
|
+
- Remove unused `onImageNodeDelete` option ([#702](https://github.com/Doist/typist/issues/702)) ([ebd0678](https://github.com/Doist/typist/commit/ebd06784c14d00b748af7ad38bb030afcba41c35))
|
|
196
202
|
|
|
197
203
|
## [4.0.5](https://github.com/Doist/typist/compare/v4.0.4...v4.0.5) (2024-03-06)
|
|
198
204
|
|
|
199
205
|
### Bug Fixes
|
|
200
206
|
|
|
201
|
-
-
|
|
207
|
+
- Prevent extra blank lines on list items ([#685](https://github.com/Doist/typist/issues/685)) ([b538ebe](https://github.com/Doist/typist/commit/b538ebef9a43d6b1af2f68efcdad445ec9e0cc17))
|
|
202
208
|
|
|
203
209
|
## [4.0.4](https://github.com/Doist/typist/compare/v4.0.3...v4.0.4) (2024-03-06)
|
|
204
210
|
|
|
205
211
|
### Bug Fixes
|
|
206
212
|
|
|
207
|
-
-
|
|
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))
|
|
208
214
|
|
|
209
215
|
## [4.0.3](https://github.com/Doist/typist/compare/v4.0.2...v4.0.3) (2024-03-06)
|
|
210
216
|
|
|
211
217
|
### Bug Fixes
|
|
212
218
|
|
|
213
|
-
-
|
|
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))
|
|
214
220
|
|
|
215
221
|
## [4.0.2](https://github.com/Doist/typist/compare/v4.0.1...v4.0.2) (2024-02-08)
|
|
216
222
|
|
|
217
223
|
### Bug Fixes
|
|
218
224
|
|
|
219
|
-
-
|
|
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))
|
|
220
226
|
|
|
221
227
|
## [4.0.1](https://github.com/Doist/typist/compare/v4.0.0...v4.0.1) (2024-02-07)
|
|
222
228
|
|
|
223
229
|
### Bug Fixes
|
|
224
230
|
|
|
225
|
-
-
|
|
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))
|
|
226
232
|
|
|
227
233
|
## [4.0.0](https://github.com/Doist/typist/compare/v3.0.0...v4.0.0) (2024-01-30)
|
|
228
234
|
|
|
229
235
|
### ⚠ BREAKING CHANGES
|
|
230
236
|
|
|
231
|
-
-
|
|
237
|
+
- **deps:** update unified ecosystem dependencies (#395)
|
|
232
238
|
|
|
233
239
|
### Bug Fixes
|
|
234
240
|
|
|
235
|
-
-
|
|
241
|
+
- **deps:** update unified ecosystem dependencies ([#395](https://github.com/Doist/typist/issues/395)) ([e97ad83](https://github.com/Doist/typist/commit/e97ad83e7015cf49044bc72cf8ef6dce1be1f2c8))
|
|
236
242
|
|
|
237
243
|
## [3.0.0](https://github.com/Doist/typist/compare/v2.3.1...v3.0.0) (2024-01-18)
|
|
238
244
|
|
|
239
245
|
### ⚠ BREAKING CHANGES
|
|
240
246
|
|
|
241
|
-
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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.
|
|
246
252
|
|
|
247
253
|
The `BulletList` and `OrderedList` extensions now take an additional
|
|
248
254
|
option, `smartToggle` (default: `false`), that indicates whether hard
|
|
@@ -251,394 +257,394 @@ selection into a bullet/ordered list, or not.
|
|
|
251
257
|
|
|
252
258
|
### Features
|
|
253
259
|
|
|
254
|
-
-
|
|
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))
|
|
255
261
|
|
|
256
262
|
## [2.3.1](https://github.com/Doist/typist/compare/v2.3.0...v2.3.1) (2024-01-17)
|
|
257
263
|
|
|
258
264
|
### Bug Fixes
|
|
259
265
|
|
|
260
|
-
-
|
|
266
|
+
- **commands:** Restore built-in `toggleBulletList` and `toggleOrderedList` ([#613](https://github.com/Doist/typist/issues/613)) ([4c4a0dc](https://github.com/Doist/typist/commit/4c4a0dc98e5c7351d6a0d2e8b16661c1e8f54fdd))
|
|
261
267
|
|
|
262
268
|
## [2.3.0](https://github.com/Doist/typist/compare/v2.2.1...v2.3.0) (2024-01-17)
|
|
263
269
|
|
|
264
270
|
### Features
|
|
265
271
|
|
|
266
|
-
-
|
|
272
|
+
- **commands:** Add `smartToggleBulletList` and `smartToggleOrderedList` ([#612](https://github.com/Doist/typist/issues/612)) ([e5dcc8b](https://github.com/Doist/typist/commit/e5dcc8b523d7596e168f919fd53d9119f7c40ac7))
|
|
267
273
|
|
|
268
274
|
## [2.2.1](https://github.com/Doist/typist/compare/v2.2.0...v2.2.1) (2024-01-11)
|
|
269
275
|
|
|
270
276
|
### Bug Fixes
|
|
271
277
|
|
|
272
|
-
-
|
|
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))
|
|
273
279
|
|
|
274
280
|
## [2.2.0](https://github.com/Doist/typist/compare/v2.1.3...v2.2.0) (2023-11-21)
|
|
275
281
|
|
|
276
282
|
### Features
|
|
277
283
|
|
|
278
|
-
-
|
|
284
|
+
- add support for Node v21 ([#533](https://github.com/Doist/typist/issues/533)) ([87ca351](https://github.com/Doist/typist/commit/87ca35150b03a8a429296a3324b018e1a9121b04))
|
|
279
285
|
|
|
280
286
|
## [2.1.3](https://github.com/Doist/typist/compare/v2.1.2...v2.1.3) (2023-11-03)
|
|
281
287
|
|
|
282
288
|
### Bug Fixes
|
|
283
289
|
|
|
284
|
-
-
|
|
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))
|
|
285
291
|
|
|
286
292
|
## [2.1.2](https://github.com/Doist/typist/compare/v2.1.1...v2.1.2) (2023-10-19)
|
|
287
293
|
|
|
288
294
|
### Bug Fixes
|
|
289
295
|
|
|
290
|
-
-
|
|
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))
|
|
291
297
|
|
|
292
298
|
## [2.1.1](https://github.com/Doist/typist/compare/v2.1.0...v2.1.1) (2023-10-03)
|
|
293
299
|
|
|
294
300
|
### Bug Fixes
|
|
295
301
|
|
|
296
|
-
-
|
|
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))
|
|
297
303
|
|
|
298
304
|
## [2.1.0](https://github.com/Doist/typist/compare/v2.0.3...v2.1.0) (2023-09-28)
|
|
299
305
|
|
|
300
306
|
### Features
|
|
301
307
|
|
|
302
|
-
-
|
|
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))
|
|
303
309
|
|
|
304
310
|
## [2.0.3](https://github.com/Doist/typist/compare/v2.0.2...v2.0.3) (2023-09-25)
|
|
305
311
|
|
|
306
312
|
### Bug Fixes
|
|
307
313
|
|
|
308
|
-
-
|
|
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))
|
|
309
315
|
|
|
310
316
|
## [2.0.2](https://github.com/Doist/typist/compare/v2.0.1...v2.0.2) (2023-09-14)
|
|
311
317
|
|
|
312
318
|
### Bug Fixes
|
|
313
319
|
|
|
314
|
-
-
|
|
320
|
+
- Update ProseMirror imports to `@tiptap/pm/*` packages ([#443](https://github.com/Doist/typist/issues/443)) ([48e42e8](https://github.com/Doist/typist/commit/48e42e8294bce3b768313047ab8f5268ee900abb))
|
|
315
321
|
|
|
316
322
|
## [2.0.1](https://github.com/Doist/typist/compare/v2.0.0...v2.0.1) (2023-09-14)
|
|
317
323
|
|
|
318
324
|
### Bug Fixes
|
|
319
325
|
|
|
320
|
-
-
|
|
326
|
+
- **commands:** Buggy `insertMarkdownContentAt` implementation ([#442](https://github.com/Doist/typist/issues/442)) ([b9667f9](https://github.com/Doist/typist/commit/b9667f94d726285438244db1c58662b7c04ed8be))
|
|
321
327
|
|
|
322
328
|
## [2.0.0](https://github.com/Doist/typist/compare/v1.5.0...v2.0.0) (2023-09-13)
|
|
323
329
|
|
|
324
330
|
### ⚠ BREAKING CHANGES
|
|
325
331
|
|
|
326
|
-
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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.
|
|
330
336
|
|
|
331
337
|
### Features
|
|
332
338
|
|
|
333
|
-
-
|
|
339
|
+
- **commands:** Add `insertMarkdownContentAt` command ([#439](https://github.com/Doist/typist/issues/439)) ([e87b892](https://github.com/Doist/typist/commit/e87b8929c2c77f1a6fbb065d865d73d45f62134f))
|
|
334
340
|
|
|
335
341
|
## [1.5.0](https://github.com/Doist/typist/compare/v1.4.12...v1.5.0) (2023-09-12)
|
|
336
342
|
|
|
337
343
|
### Features
|
|
338
344
|
|
|
339
|
-
-
|
|
345
|
+
- Add `createParagraphEnd` command ([#438](https://github.com/Doist/typist/issues/438)) ([28484aa](https://github.com/Doist/typist/commit/28484aa4c5bdc8b5e47f12b0d03e45dacba7b533))
|
|
340
346
|
|
|
341
347
|
## [1.4.12](https://github.com/Doist/typist/compare/v1.4.11...v1.4.12) (2023-09-08)
|
|
342
348
|
|
|
343
349
|
### Bug Fixes
|
|
344
350
|
|
|
345
|
-
-
|
|
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))
|
|
346
352
|
|
|
347
353
|
## [1.4.11](https://github.com/Doist/typist/compare/v1.4.10...v1.4.11) (2023-09-08)
|
|
348
354
|
|
|
349
355
|
### Bug Fixes
|
|
350
356
|
|
|
351
|
-
-
|
|
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))
|
|
352
358
|
|
|
353
359
|
## [1.4.10](https://github.com/Doist/typist/compare/v1.4.9...v1.4.10) (2023-09-05)
|
|
354
360
|
|
|
355
361
|
### Bug Fixes
|
|
356
362
|
|
|
357
|
-
-
|
|
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))
|
|
358
364
|
|
|
359
365
|
## [1.4.9](https://github.com/Doist/typist/compare/v1.4.8...v1.4.9) (2023-09-05)
|
|
360
366
|
|
|
361
367
|
### Bug Fixes
|
|
362
368
|
|
|
363
|
-
-
|
|
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))
|
|
364
370
|
|
|
365
371
|
## [1.4.8](https://github.com/Doist/typist/compare/v1.4.7...v1.4.8) (2023-08-28)
|
|
366
372
|
|
|
367
373
|
### Bug Fixes
|
|
368
374
|
|
|
369
|
-
-
|
|
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))
|
|
370
376
|
|
|
371
377
|
## [1.4.7](https://github.com/Doist/typist/compare/v1.4.6...v1.4.7) (2023-08-24)
|
|
372
378
|
|
|
373
379
|
### Bug Fixes
|
|
374
380
|
|
|
375
|
-
-
|
|
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))
|
|
376
382
|
|
|
377
383
|
## [1.4.6](https://github.com/Doist/typist/compare/v1.4.5...v1.4.6) (2023-08-24)
|
|
378
384
|
|
|
379
385
|
### Bug Fixes
|
|
380
386
|
|
|
381
|
-
-
|
|
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))
|
|
382
388
|
|
|
383
389
|
## [1.4.5](https://github.com/Doist/typist/compare/v1.4.4...v1.4.5) (2023-08-23)
|
|
384
390
|
|
|
385
391
|
### Bug Fixes
|
|
386
392
|
|
|
387
|
-
-
|
|
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))
|
|
388
394
|
|
|
389
395
|
## [1.4.4](https://github.com/Doist/typist/compare/v1.4.3...v1.4.4) (2023-08-04)
|
|
390
396
|
|
|
391
397
|
### Bug Fixes
|
|
392
398
|
|
|
393
|
-
-
|
|
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))
|
|
394
400
|
|
|
395
401
|
## [1.4.3](https://github.com/Doist/typist/compare/v1.4.2...v1.4.3) (2023-08-04)
|
|
396
402
|
|
|
397
403
|
### Bug Fixes
|
|
398
404
|
|
|
399
|
-
-
|
|
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))
|
|
400
406
|
|
|
401
407
|
## [1.4.2](https://github.com/Doist/typist/compare/v1.4.1...v1.4.2) (2023-08-04)
|
|
402
408
|
|
|
403
409
|
### Bug Fixes
|
|
404
410
|
|
|
405
|
-
-
|
|
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))
|
|
406
412
|
|
|
407
413
|
## [1.4.1](https://github.com/Doist/typist/compare/v1.4.0...v1.4.1) (2023-08-04)
|
|
408
414
|
|
|
409
415
|
### Bug Fixes
|
|
410
416
|
|
|
411
|
-
-
|
|
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))
|
|
412
418
|
|
|
413
419
|
## [1.4.0](https://github.com/Doist/typist/compare/v1.3.2...v1.4.0) (2023-06-20)
|
|
414
420
|
|
|
415
421
|
### Features
|
|
416
422
|
|
|
417
|
-
-
|
|
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))
|
|
418
424
|
|
|
419
425
|
## [1.3.2](https://github.com/Doist/typist/compare/v1.3.1...v1.3.2) (2023-06-19)
|
|
420
426
|
|
|
421
427
|
### Bug Fixes
|
|
422
428
|
|
|
423
|
-
-
|
|
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))
|
|
424
430
|
|
|
425
431
|
## [1.3.1](https://github.com/Doist/typist/compare/v1.3.0...v1.3.1) (2023-06-13)
|
|
426
432
|
|
|
427
433
|
### Bug Fixes
|
|
428
434
|
|
|
429
|
-
-
|
|
435
|
+
- Add support for literal autolinks (GFM based) ([#303](https://github.com/Doist/typist/issues/303)) ([4537091](https://github.com/Doist/typist/commit/45370914988eed1226722051f18a2fa49d9aa50f))
|
|
430
436
|
|
|
431
437
|
## [1.3.0](https://github.com/Doist/typist/compare/v1.2.9...v1.3.0) (2023-06-12)
|
|
432
438
|
|
|
433
439
|
### Features
|
|
434
440
|
|
|
435
|
-
-
|
|
441
|
+
- Add the `PasteHTMLTableAsString` extension ([#290](https://github.com/Doist/typist/issues/290)) ([ee90014](https://github.com/Doist/typist/commit/ee90014c4c8bfa8c80b11ab5cae01ba434f942b6))
|
|
436
442
|
|
|
437
443
|
## [1.2.9](https://github.com/Doist/typist/compare/v1.2.8...v1.2.9) (2023-06-01)
|
|
438
444
|
|
|
439
445
|
### Bug Fixes
|
|
440
446
|
|
|
441
|
-
-
|
|
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))
|
|
442
448
|
|
|
443
449
|
## [1.2.8](https://github.com/Doist/typist/compare/v1.2.7...v1.2.8) (2023-05-30)
|
|
444
450
|
|
|
445
451
|
### Notes
|
|
446
452
|
|
|
447
|
-
-
|
|
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.
|
|
448
454
|
|
|
449
455
|
## [1.2.7](https://github.com/Doist/typist/compare/v1.2.6...v1.2.7) (2023-05-22)
|
|
450
456
|
|
|
451
457
|
### Bug Fixes
|
|
452
458
|
|
|
453
|
-
-
|
|
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))
|
|
454
460
|
|
|
455
461
|
## [1.2.6](https://github.com/Doist/typist/compare/v1.2.5...v1.2.6) (2023-04-18)
|
|
456
462
|
|
|
457
463
|
### Bug Fixes
|
|
458
464
|
|
|
459
|
-
-
|
|
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))
|
|
460
466
|
|
|
461
467
|
## [1.2.5](https://github.com/Doist/typist/compare/v1.2.4...v1.2.5) (2023-04-10)
|
|
462
468
|
|
|
463
469
|
### Bug Fixes
|
|
464
470
|
|
|
465
|
-
-
|
|
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))
|
|
466
472
|
|
|
467
473
|
## [1.2.4](https://github.com/Doist/typist/compare/v1.2.3...v1.2.4) (2023-04-04)
|
|
468
474
|
|
|
469
475
|
### Bug Fixes
|
|
470
476
|
|
|
471
|
-
-
|
|
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))
|
|
472
478
|
|
|
473
479
|
## [1.2.3](https://github.com/Doist/typist/compare/v1.2.2...v1.2.3) (2023-04-04)
|
|
474
480
|
|
|
475
481
|
### Bug Fixes
|
|
476
482
|
|
|
477
|
-
-
|
|
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))
|
|
478
484
|
|
|
479
485
|
## [1.2.2](https://github.com/Doist/typist/compare/v1.2.1...v1.2.2) (2023-04-02)
|
|
480
486
|
|
|
481
487
|
### Bug Fixes
|
|
482
488
|
|
|
483
|
-
-
|
|
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))
|
|
484
490
|
|
|
485
491
|
## [1.2.1](https://github.com/Doist/typist/compare/v1.2.0...v1.2.1) (2023-04-01)
|
|
486
492
|
|
|
487
493
|
### Bug Fixes
|
|
488
494
|
|
|
489
|
-
-
|
|
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))
|
|
490
496
|
|
|
491
497
|
## [1.2.0](https://github.com/Doist/typist/compare/v1.1.2...v1.2.0) (2023-03-17)
|
|
492
498
|
|
|
493
499
|
### Features
|
|
494
500
|
|
|
495
|
-
-
|
|
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))
|
|
496
502
|
|
|
497
503
|
## [1.1.2](https://github.com/Doist/typist/compare/v1.1.1...v1.1.2) (2023-03-06)
|
|
498
504
|
|
|
499
505
|
### Bug Fixes
|
|
500
506
|
|
|
501
|
-
-
|
|
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))
|
|
502
508
|
|
|
503
509
|
## [1.1.1](https://github.com/Doist/typist/compare/v1.1.0...v1.1.1) (2023-03-03)
|
|
504
510
|
|
|
505
511
|
### Bug Fixes
|
|
506
512
|
|
|
507
|
-
-
|
|
513
|
+
- Invalid `hasCodeMarkBefore` check in `canInsertSuggestion` utility function ([#156](https://github.com/Doist/typist/issues/156)) ([21826c5](https://github.com/Doist/typist/commit/21826c58f763d020d3810fe373ab2524e0f0448e))
|
|
508
514
|
|
|
509
515
|
## [1.1.0](https://github.com/Doist/typist/compare/v1.0.19...v1.1.0) (2023-03-02)
|
|
510
516
|
|
|
511
517
|
### Features
|
|
512
518
|
|
|
513
|
-
-
|
|
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))
|
|
514
520
|
|
|
515
521
|
## [1.0.19](https://github.com/Doist/typist/compare/v1.0.18...v1.0.19) (2023-02-23)
|
|
516
522
|
|
|
517
523
|
### Bug Fixes
|
|
518
524
|
|
|
519
|
-
-
|
|
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))
|
|
520
526
|
|
|
521
527
|
## [1.0.18](https://github.com/Doist/typist/compare/v1.0.17...v1.0.18) (2023-02-23)
|
|
522
528
|
|
|
523
529
|
### Bug Fixes
|
|
524
530
|
|
|
525
|
-
-
|
|
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))
|
|
526
532
|
|
|
527
533
|
## [1.0.17](https://github.com/Doist/typist/compare/v1.0.16...v1.0.17) (2023-02-23)
|
|
528
534
|
|
|
529
535
|
### Bug Fixes
|
|
530
536
|
|
|
531
|
-
-
|
|
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))
|
|
532
538
|
|
|
533
539
|
## [1.0.16](https://github.com/Doist/typist/compare/v1.0.15...v1.0.16) (2023-02-22)
|
|
534
540
|
|
|
535
541
|
### Bug Fixes
|
|
536
542
|
|
|
537
|
-
-
|
|
543
|
+
- Replace usage of useEvent with useCallback ([#98](https://github.com/Doist/typist/issues/98)) ([3b175f7](https://github.com/Doist/typist/commit/3b175f77cf0fa638a8ad267959ab720d24815fdd))
|
|
538
544
|
|
|
539
545
|
## [1.0.15](https://github.com/Doist/typist/compare/v1.0.14...v1.0.15) (2023-02-14)
|
|
540
546
|
|
|
541
547
|
### Bug Fixes
|
|
542
548
|
|
|
543
|
-
-
|
|
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))
|
|
544
550
|
|
|
545
551
|
## [1.0.14](https://github.com/Doist/typist/compare/v1.0.13...v1.0.14) (2023-02-13)
|
|
546
552
|
|
|
547
553
|
### Bug Fixes
|
|
548
554
|
|
|
549
|
-
-
|
|
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))
|
|
550
556
|
|
|
551
557
|
## [1.0.13](https://github.com/Doist/typist/compare/v1.0.12...v1.0.13) (2023-02-13)
|
|
552
558
|
|
|
553
559
|
### Bug Fixes
|
|
554
560
|
|
|
555
|
-
-
|
|
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))
|
|
556
562
|
|
|
557
563
|
## [1.0.12](https://github.com/Doist/typist/compare/v1.0.11...v1.0.12) (2023-01-06)
|
|
558
564
|
|
|
559
565
|
### Bug Fixes
|
|
560
566
|
|
|
561
|
-
-
|
|
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))
|
|
562
568
|
|
|
563
569
|
## [1.0.11](https://github.com/Doist/typist/compare/v1.0.10...v1.0.11) (2022-12-21)
|
|
564
570
|
|
|
565
571
|
### Bug Fixes
|
|
566
572
|
|
|
567
|
-
-
|
|
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))
|
|
568
574
|
|
|
569
575
|
## [1.0.10](https://github.com/Doist/typist/compare/v1.0.9...v1.0.10) (2022-12-19)
|
|
570
576
|
|
|
571
577
|
### Bug Fixes
|
|
572
578
|
|
|
573
|
-
-
|
|
579
|
+
- Add required ProseMirror dependencies to package ([#73](https://github.com/Doist/typist/issues/73)) ([cd605c0](https://github.com/Doist/typist/commit/cd605c0606a980516e586f3a6d0915f2c13704a9))
|
|
574
580
|
|
|
575
581
|
## [1.0.9](https://github.com/Doist/typist/compare/v1.0.8...v1.0.9) (2022-12-19)
|
|
576
582
|
|
|
577
583
|
### Bug Fixes
|
|
578
584
|
|
|
579
|
-
-
|
|
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))
|
|
580
586
|
|
|
581
587
|
## [1.0.8](https://github.com/Doist/typist/compare/v1.0.7...v1.0.8) (2022-12-19)
|
|
582
588
|
|
|
583
589
|
### Bug Fixes
|
|
584
590
|
|
|
585
|
-
-
|
|
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))
|
|
586
592
|
|
|
587
593
|
## [1.0.7](https://github.com/Doist/typist/compare/v1.0.6...v1.0.7) (2022-12-14)
|
|
588
594
|
|
|
589
595
|
### Bug Fixes
|
|
590
596
|
|
|
591
|
-
-
|
|
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))
|
|
592
598
|
|
|
593
599
|
## [1.0.6](https://github.com/Doist/typist/compare/v1.0.5...v1.0.6) (2022-12-13)
|
|
594
600
|
|
|
595
601
|
### Bug Fixes
|
|
596
602
|
|
|
597
|
-
-
|
|
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))
|
|
598
604
|
|
|
599
605
|
## [1.0.5](https://github.com/Doist/typist/compare/v1.0.4...v1.0.5) (2022-12-12)
|
|
600
606
|
|
|
601
607
|
### Bug Fixes
|
|
602
608
|
|
|
603
|
-
-
|
|
609
|
+
- Remove unused Tippy.js peer dependency ([#56](https://github.com/Doist/typist/issues/56)) ([85f87a5](https://github.com/Doist/typist/commit/85f87a554db37e331797563c3795180e5e11ddf7))
|
|
604
610
|
|
|
605
611
|
## [1.0.4](https://github.com/Doist/typist/compare/v1.0.3...v1.0.4) (2022-12-12)
|
|
606
612
|
|
|
607
613
|
### Bug Fixes
|
|
608
614
|
|
|
609
|
-
-
|
|
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))
|
|
610
616
|
|
|
611
617
|
## [1.0.3](https://github.com/Doist/typist/compare/v1.0.2...v1.0.3) (2022-12-08)
|
|
612
618
|
|
|
613
619
|
### Bug Fixes
|
|
614
620
|
|
|
615
|
-
-
|
|
621
|
+
- **docs:** correct the render function name ([#50](https://github.com/Doist/typist/issues/50)) ([45dd681](https://github.com/Doist/typist/commit/45dd681c761c1189df740f118d4293d30807a2f7))
|
|
616
622
|
|
|
617
623
|
## [1.0.2](https://github.com/Doist/typist/compare/v1.0.1...v1.0.2) (2022-12-02)
|
|
618
624
|
|
|
619
625
|
### Bug Fixes
|
|
620
626
|
|
|
621
|
-
-
|
|
622
|
-
-
|
|
623
|
-
-
|
|
624
|
-
-
|
|
625
|
-
-
|
|
626
|
-
-
|
|
627
|
-
-
|
|
628
|
-
-
|
|
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))
|
|
629
635
|
|
|
630
636
|
## [1.0.1](https://github.com/Doist/typist/compare/v1.0.0...v1.0.1) (2022-11-08)
|
|
631
637
|
|
|
632
638
|
### Bug Fixes
|
|
633
639
|
|
|
634
|
-
-
|
|
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))
|
|
635
641
|
|
|
636
642
|
## 1.0.0 (2022-11-04)
|
|
637
643
|
|
|
638
644
|
### Features
|
|
639
645
|
|
|
640
|
-
-
|
|
646
|
+
- Initial Typist implementation ([19451ab](https://github.com/Doist/typist/commit/19451ab9eb66de1399585d9a2e06141096d690c4))
|
|
641
647
|
|
|
642
648
|
### Bug Fixes
|
|
643
649
|
|
|
644
|
-
-
|
|
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;;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ACvB,qBAAqB,EACrB,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",
|