1 | # Changelog
|
2 |
|
3 | Notable changes to Draft.js will be documented in this file.
|
4 |
|
5 | Changes to `src` are live in production on facebook.com at the time of release.
|
6 |
|
7 | ## 0.11.7 (Aug 13th, 2020)
|
8 |
|
9 | ### Added
|
10 |
|
11 | * Allow aria-describedby overriding (Jeff Dickey in 8b8b9c00)
|
12 | * Add support to create editor state using text string (Abhishek Pandya in fc9395fe)
|
13 |
|
14 | ### Changed
|
15 | * Update readme to suggest building with yarn (#2527) (Kevin Chavez in 54213a13)
|
16 | * Update build, static analysis deps (+ upgrade to fbjs 2.0.0) (#2541) (Kevin Chavez in 5e92a32f)
|
17 | * Tex example: Update babel to v7 + other deps (#2533) (Kevin Chavez in ce94ecf3)
|
18 | * Update package.json (#2490) (Michaël De Boey in b79082f9)
|
19 | * Update media.html (#2452) (fay in a8f44b15)
|
20 | * Upgrade dependencies in playground example (#2534) (Kevin Chavez in f6bf4ed3)
|
21 | * feat(docs): Update README.md (#2523) (Darsh Shah in e0fc33eb)
|
22 | * adds highlight in docs (#2469) (Tunde Thomas in cef61910)
|
23 | * Update QuickStart-API-Basics.md (#2491) (Michaël De Boey in 170fe23a)
|
24 | * Update .travis.yml (#2495) (Michaël De Boey in 3eb391e7)
|
25 | * Update link to Record in docs (#2418) (Rounak Agarwal in 6a55c383)
|
26 | * Update link to Immutable Map in docs (#2530) (Rounak Agarwal in 31dde91a)
|
27 | * Upgrade browserify and babel deps in universal example (#2532) (Kevin Chavez in 1c8815a1)
|
28 | * Upgrade eslint, flow, jest (#2531) (Kevin Chavez in ccd0470b)
|
29 | * Fix the build by adding an argument to catch statement (Kevin Chavez in 5482c902)
|
30 | * Conditionally invokes URI.tryParseURI in OSS code (Claudio Procida in 36de6f1f)
|
31 | * formatPastedText prop (Laura González in 9a9ccbd5)
|
32 | * fix pasting invalid links (Frank Thompson in 862a5b2b)
|
33 | * chore(dependabot): adds examples directories separately (#2505) (Claudio Procida in fb0eb34c)
|
34 | * style(website): Removes desaturation (#2504) (Claudio Procida in 2b8edb18)
|
35 | * Fixes links accessibility by adding underlines (#2497) (R Nabors in 5e17cc24)
|
36 | * add codes to suppressions in www (Daniel Sainati in 8457ebba)
|
37 | * update comments in mobile to support error codes (Daniel Sainati in fb728fde)
|
38 | * Use object shorthand in DraftEditorCompositionHandler (Kevin Chavez in d949433d)
|
39 | * Force the selection when composition is resolved (#2094) (Robbert Brak in 3be4d372)
|
40 | * fix(security): Upgrades Docusaurus to address CVE-2020-7662 (#2457) (Claudio Procida in a08a8fa5)
|
41 |
|
42 |
|
43 | ## 0.11.6 (June 4th, 2020)
|
44 |
|
45 | ### Added
|
46 | * Adds BLM banner (#2454) (claudiopro in 2a0c5bbe)
|
47 | * HtmlConversion: Add support for telephone links (#2365) (Andrew Lauria in e1e9a0c5)
|
48 | * 7.C - Block Operations - Consume (Shalabh Vyas in 99c6b06c)
|
49 | * Add fromJS() API to Draft model objects (Shalabh Vyas in 3ee5a23e)
|
50 |
|
51 | ### Changed
|
52 | * Add Null return value type in code example (#2429) (Jacob D. Castro in 45bb6b52)
|
53 | * Add /meta/bundle-size-stats to .gitignore (#2436) (Kevin Chavez in e3a689df)
|
54 | * Update eslint, cross-env and gulp-derequire. Fix version numbers for … (#2437) (Kevin Chavez in 79a25b5c)
|
55 | * Update Overview.md (#2434) (Mohamed ABDELLANI in e5e293f1)
|
56 | * Upgrade jest and flow-bin deps (#2435) (Kevin Chavez in 9ac399cc)
|
57 | * Update cadence for dependabot updates (#2402) (Kevin Chavez in 6619077c)
|
58 | * Bump alex from 8.0.0 to 8.1.1 (#2407) (dependabot-preview[bot] in 7e604b06)
|
59 | * Bump fstream from 1.0.11 to 1.0.12 in /examples/draft-0-10-0/tex (#2396) (dependabot[bot] in 1f5d40ec)
|
60 | * Bump acorn from 6.0.5 to 6.4.1 in /examples/draft-0-10-0/tex (#2376) (dependabot[bot] in 9028881c)
|
61 | * chore(flow): Updates flow-bin to 0.123 (#2393) (Claudio Procida in 497a4787)
|
62 | * Short-circuit getUpdatedSelectionState for invalid selection updates on prod (Kevin Chavez in 0585b68f)
|
63 | * Type selection object in setDraftEditorSelection.js (Kevin Chavez in 31dec710)
|
64 | * Type selection object in keyCommandBackspaceToStartOfLine.js (Kevin Chavez in aa5c4a19)
|
65 | * Flow v0.123.0 in www (Panagiotis Vekris in af675755)
|
66 | * Type selection object in getDraftEditorSelection.js (Kevin Chavez in dfacb1b4)
|
67 | * Type selection object in editOnBlur.js (Kevin Chavez in 22997144)
|
68 | * Type selection object in editOnInput. (Kevin Chavez in 41beae1b)
|
69 | * upgrade to flow 0.122.0 (Marshall Roch in 97dd19b2)
|
70 | * DraftEntity ID Changes (Shalabh Vyas in 13989e31)
|
71 | * use pasted block type if pasting to empty unstyled block (Frank Thompson in 7d3d3c8f)
|
72 | * Update deps for and cleanup playground example (#2368) (Kevin Chavez in 2658dd60)
|
73 | * Only extend selection if it has ranges in setDraftEditorSelection.js (Kevin Chavez in d53fa7ab)
|
74 | * Update draft.js on website to v0.11.5 (#2370) (Kevin Chavez in 538d864e)
|
75 | * Make a few types exact (Kevin Chavez in 0950285d)
|
76 | * Remaining non-generated non-reason-parsed files (Jordan Brown in 153482ff)
|
77 |
|
78 | ### Fixed
|
79 | * Fix draft-js pasted inline styles (Giulio Jiang in 92176ab2)
|
80 | * docs: in react hooks example, limit createEmpty calls (#2432) (Benjamin Atkin in 05e838e6)
|
81 | * Revisit comment for todo of T65805998, validate there's nothing to worry about (Kevin Chavez in 268ece35)
|
82 | * html/shared/draft-js/model/transaction (generatedunixname89002005287564 in c75f1e4c)
|
83 | * types-first in html/js/mobile (Panagiotis Vekris in e66f39ef)
|
84 | * Address #2413 by making Firefox follow the same behaviour as Chrome (#2414) (Kevin Chavez in 6d619c61)
|
85 | * Prevent placeholder from unnecessarily wrapping (#2392) (Frank Yan in 9d6bbfdc)
|
86 | * docs: Fix simple typo, sibbling -> sibling (#2384) (Tim Gates in d1cb1e77)
|
87 | * Fix build by adding missing modules (Kevin Chavez in fbe3417e)
|
88 | * Fix flow by allowing optional chaining (#2369) (Kevin Chavez in 85764327)
|
89 |
|
90 | ## 0.11.5 (Mar 26, 2020)
|
91 |
|
92 | ### Removed
|
93 | * Remove examples for draft.js 0.9.0 (#2358) (Kevin Chavez in fd16d8e2)
|
94 |
|
95 | ### Changed
|
96 | * Update deps in 'universal' example (#2362) (Kevin Chavez in dc8bfbb2)
|
97 | * Remove unused Flow suppressions in WWW (George Zahariev in 3858858b)
|
98 | * Improve types for EditorState (Kevin Chavez in 792bd3ab)
|
99 | * Don't SSR example editor on website. (#2356) (Kevin Chavez in 9191a3f2)
|
100 | * Deprecate Travis Bot files and configuration (Chris Lüer in 6c1c6544)
|
101 | * Require ReactDOMComet instead of ReactDOM (Dan Abramov in 66301633)
|
102 | * Strictify DraftEditorLeaf.react.js (Kevin Chavez in b4a1db99)
|
103 | * Make decodeEntityRanges flow strict (Kevin Chavez in 7af73b70)
|
104 | * Move key to static argument instead of spread (Sebastian Markbage in d6527a95)
|
105 | * "ecmascript" => "ECMAScript" (#2327) (Agastya Chandrakant in 6cfed736)
|
106 | * Abstract ReactDOM as ReactDOMComet (Sebastian Markbage in 24339f12)
|
107 | * Prevent (but not fix) ‘Cannot read property 'getIn' of undefined’ in getUpdatedSelectionState (Steven Luscher in a9fcbb20)
|
108 | * Make some more modules strict(-local) (Kevin Chavez in c30ca735 and 70025659)
|
109 | * Update webpack deps (#2310) (Kevin Chavez in 0131e1d5)
|
110 | * Remove unused gulp task remained from docusaurus 2 migration (#2308) (Kanitkorn S in 963e3126)
|
111 | * Re-write `DraftEditorExample` in the website using react hooks (#2287) (Kevin Chavez in 9b9376bd)
|
112 | * Add a preventScroll prop (Dan Abramov in 3ba907bb)
|
113 | * Add editorRef prop to DraftEditor (Dan Abramov in 8c500424)
|
114 | * Remove findDOMNode from DraftEditorBlockNode (Sebastian Markbage in 0dd39781)
|
115 | * Remove findDOMNode in DraftEditorDragHandler (Sebastian Markbage in c1a55ceb)
|
116 | * Remove findDOMNode from getContentEditableContainer (Sebastian Markbage in 9d587d9f)
|
117 | * Upgrade to Flow explicit inexact object type syntax (Jordan Brown in b051fc1b)
|
118 | * Upgrade eslint + flow, and fix failed test from nullishCoalescingOperator (#2083) (Kanitkorn S in 824fd125)
|
119 | * chore(travis): bumps node versions used in Travis CI to 10 and 12 (#2300) (Claudio Procida in e711230f)
|
120 |
|
121 | ### Fixed
|
122 | * Fix Uncaught TypeError: Cannot read property 'nodeType' of null at editOnInput (#2330) (Konstantin Tarkus in db3216d9)
|
123 | * Fix keyBindingFn documentation URL (Ryan Silva in 3251017d)
|
124 | * fix style handling in convertFromHTMLToContentBlocks (Frank Thompson in ad8374d2)
|
125 | * remove unused flow suppressions (Panagiotis Vekris in 822d2fbd)
|
126 |
|
127 | ## 0.11.4 (January 7th, 2020)
|
128 |
|
129 | ### Added
|
130 | * Add Section and Article to DefaultBlockRenderMap (#2212) (Tarun047 in e20f79f)
|
131 |
|
132 | ### Changed
|
133 | * Add rules to .flowconfig for flow strict rules (#2288) (Kevin Chavez in f223799)
|
134 | * Update website's yarn version to 0.11.3 (Kevin Chavez in efcaf42)
|
135 | * Prettify docs files (#2275) (Yangshun Tay in 6fc9964)
|
136 | * Remove Jest auto mocking (#2279) (Yangshun Tay in 817e371)
|
137 | * Add myself to get TravisCI emails (Kevin Chavez in f4167fe)
|
138 | * Unit tests for isHTMLBRElement (Claudio Procida in bb81765)
|
139 | * Remove niveditc from Travis CI email (Nivedita Chopra in 7721805)
|
140 | * Create CNAME (#2276) (Yangshun Tay in 92680be)
|
141 | * Upgrade to Docusaurus 2 (#2268) (Yangshun Tay in 5b10191)
|
142 | * move alex to dev dependencies (#2272) (Ilya in b889d5d)
|
143 | * Improve docs syntax and formatting (#2267) (Yangshun Tay in 9b4a628)
|
144 |
|
145 | ### Fixed
|
146 | * fix(chore): fixes webpack-stream error with missing catch var declaration (#2291) (Claudio Procida in 4252469)
|
147 | * IE could not display composer when opening or creating a new group chat from the chat create view (Jainil Parekh in 64b51df)
|
148 | * Fix DOMObserver mutation data for IE (#2285) (Jainil Parekh in afb708f)
|
149 | * Added tests and fixed IE IndexSizeError trying to get a range from a selection when there is not one (#2271) (Lauren Wyatt in aa55de2)
|
150 | * Fix scroll behavior when node has tab chars (#2256) (cdr in 5d37c03)
|
151 | * Fix docs links in readme (#2284) (Lucas Cordeiro in 3b6d231)
|
152 | * Fix isHTMLBRElement test (#2278) (Yangshun Tay in 0603772)
|
153 | * Fix `isHTMLBRElement` check (Jack Armstrong in e869fcb)
|
154 | * Fix typing Chinese in Edge (#2082) (#2088) (Robbert Brak in 8c0727e)
|
155 | * Fix Travis website deployment (#2274) (Yangshun Tay in 861aab8)
|
156 | * getEntityKeyForSelection.js (Kevin Chavez in c07a404)
|
157 |
|
158 | ## 0.11.3 (December 2nd, 2019)
|
159 |
|
160 | ### Added
|
161 | * Take over enhancements to render Draft.js in an iframe (#1938) (Claudio Procida in dceddf5)
|
162 | * Implement click listener for editor wrapper (#2230) (Max Vyz in 8f77aa3)
|
163 | * Add linting for insensitive and inconsiderate language (#2223) (Claudio Procida in 5dd99d3)
|
164 |
|
165 | ### Changed
|
166 | * Updates to Prettier 1.19.1 (#2265) (Claudio Procida in abcbe20)
|
167 | * Bump mixin-deep from 1.3.1 to 1.3.2 in /examples/draft-0-10-0/universal (#2259) (dependabot[bot] in 37d281b)
|
168 | * Upgrade dependencies in /website (#2263) (Kevin Chavez in 0b57720)
|
169 | * Update dependencies in examples/draft-0-10-0/universal (#2257) (Kevin Chavez in ae2dd14)
|
170 | * Update dependencies in examples/draft-0-10-0/playground (#2258) (Kevin Chavez in 11bc5d8)
|
171 | * Prettify files rest of non-intern files in html/ (George Zahariev in 6217dc8)
|
172 | * add flow declaration in editOnBeforeInput-test.js (Frank Thompson in 0601090)
|
173 | * Bump lodash.merge from 4.6.1 to 4.6.2 in /website (#2241) (dependabot[bot] in 177db5e)
|
174 | * Defaulting to createEmpty if block map is empty in createWithContent (Fixes issue #2226) (#2240) (David Fuentes in c42662e)
|
175 | * Bump handlebars from 4.1.1 to 4.5.1 in /examples/draft-0-10-0/playground (#2242) (dependabot[bot] in 2a761af)
|
176 | * Suppress non-synced files in www for 0.111 (Jordan Brown in 4bca140)
|
177 | * Upgrade more deps. (#2239) (Kevin Chavez in a477e83)
|
178 | * Bump lodash.template from 4.4.0 to 4.5.0 in /examples/draft-0-10-0/playground (#2236) (dependabot[bot] in 0e03745)
|
179 | * Bump mixin-deep from 1.3.1 to 1.3.2 in /website (#2234) (dependabot[bot] in 78f20cc)
|
180 | * Bump lodash from 4.17.11 to 4.17.15 in /website (#2233) (dependabot[bot] in da1ab7c)
|
181 | * Updated browser icons in README (#2238) (SuNNjek in 6ed6ed4)
|
182 | * Bump mixin-deep from 1.3.1 to 1.3.2 in /examples/draft-0-10-0/playground (#2235) (dependabot[bot] in 2744ff7)
|
183 | * Upgrade 8 dependencies (including jest, @babel/core, etc). (#2237) (Kevin Chavez in 46103ac)
|
184 | * Upgrades ESLint and related plugins/configs. (#2231) (Kevin Chavez in 53d2a63)
|
185 |
|
186 | ### Fixed
|
187 | * fix wrong property access in convertFromHTMLToContentBlocks (Frank Thompson in 7d26fab)
|
188 | * Fix draftjs type error for event (Jack Armstrong in e7ae2e7)
|
189 | * fix decorator handling in editOnBeforeInput (Frank Thompson in 1452b87)
|
190 | * fixes #304, kudos to @andpor (#2197) (Ante Beslic in 2908035)
|
191 | * Fix playground example import (#2220) (Ryan Lee in 778e88d)
|
192 | * Fix React warnings (#2221) (Alan Norbauer in 2595016)
|
193 |
|
194 | ### Meta
|
195 | * deploy v112 to www (Daniel Sainati in ae542b7)
|
196 |
|
197 | ## 0.11.2 (September 30th, 2019)
|
198 |
|
199 | ### Changed
|
200 |
|
201 | * Upgrade to Flow strict-local (generatedunixname89002005287564 in 0c92bf7)
|
202 | * chore(website): updates stylesheet for 0.11.1 (#2188) (Claudio Procida in 543df66)
|
203 | * Prepare 0.11.1 (#2186) (Claudio Procida in 3adf593)
|
204 |
|
205 | ### Fixed
|
206 |
|
207 | * fix(selection): Returns previous selection if either leaf is null (#2189) (Claudio Procida in fe68e43)
|
208 |
|
209 | ## 0.11.1 (September 19th, 2019)
|
210 |
|
211 | ### Added
|
212 | * Support post processor on paste entities. (Tee Xie in 3043573)
|
213 | * Adding 'preserveSelectionOnBlur' prop (#2128) (Matthew Holloway in db792ef)
|
214 |
|
215 | ### Changed
|
216 | * Reaping draft_segmented_entities_behavior (Mohamed Moussa in cd4adaa)
|
217 | * Make insertIntoList strict-local (Kevin Chavez in db64f93)
|
218 | * Adopt Contributor Covenant (Paul O'Shannessy in 2c61167)
|
219 | * Flowify editOnKeyDown.js (Kevin Chavez in 8473e41)
|
220 | * (Flowify) decodeInlineStyleRanges.js (Kevin Chavez in 20a619c)
|
221 | * Flowify editOnInput.js (Kevin Chavez in 594a14f)
|
222 | * Flowify editOnBlur.js (Kevin Chavez in 6972278)
|
223 | * updated function description for onEditInput event handler function (#2132) (Mukesh Soni in 14349f1)
|
224 | * updated hastext method to not account for zero space width chars (#2163) (Ajith V in 85aa3a3)
|
225 | * Encode non-ASCII characters in all snapshot tests (Daniel Lo Nigro in 734bd82)
|
226 | * @flow -> @flow-strict for html/shared (Runjie Guan in 0375c0e)
|
227 | * Revert D16421104: [rfc][draft-js] catch errors when encoding entity map (Frank Thompson in 8e9cabf)
|
228 | * catch errors when encoding entity map (Frank Thompson in 259d122)
|
229 | * Revert D16362778: [rfc][draftjs] catch errors when encoding entity map (Frank Thompson in 96e7f25)
|
230 | * catch errors when encoding entity map (Frank Thompson in c0e911c)
|
231 | * Flow-type DataTransfer.js (Kevin Chavez in ed09f78)
|
232 | * All these modules can actually be strict (Kevin Chavez in bc716b2)
|
233 |
|
234 | ### Fixed
|
235 | * convertFromHTML breaks after converting \n string, issue #1822 (#1823) (Sannikov in 9246cc7)
|
236 | * Fixes HTML importer to make image entity immutable (#2184) (Claudio Procida in b858f43)
|
237 | * Fixing js example and cleaning up one sentence (#2172) (Liz LeCrone in 819f58c)
|
238 | * Reaping draft_killswitch_allow_nontextnodes (generatedunixname89002005287564 in 0e2e9a7)
|
239 | * Fix for workchat composer cursor jumping (Jainil Parekh in aed35d2)
|
240 | * Fix various grammatical errors (#2158) (Jordan Lee in 1ff8c8c)
|
241 | * Composer: Not assuming element has leaves (Nitzan Raz in ce8bdd0)
|
242 | * Update jsfiddle links with recent versions of the Draft and React (#2145) (Günay Mert Karadoğan in 22b7599)
|
243 | * Changes reference to BSD license to MIT (#2130) (claudiopro in 4064cae)
|
244 | * Updates CHANGELOG for v0.11.0 (#2052) (Claudio Procida in 973f7ff)
|
245 | * Fixed a bug causing block data being over-written when pasted. (Tee Xie in 82e2135)
|
246 | * Merge pull request #2113 from danielo515/patch-1 (Claudio Procida in 0e88544)
|
247 | * Update ShipIt Sync (Claudio Procida in 0f138d1)
|
248 |
|
249 | ## 0.11.0 (July 9th, 2019)
|
250 |
|
251 | ### Added
|
252 | * Adds support for nullish coalescing operator (#2076) (Claudio Procida in 96c7221)
|
253 | * Add import statements for hooks-example in README (#2075) (Bennett in 943f6dc)
|
254 | * Unit tests for DraftStringKey (Claudio Procida in 978ad6b)
|
255 | * Adding Hooks in docs (#2004) (Charles ⚡ in f9f5fd6)
|
256 | * Exports `isSoftNewlineEvent` as static method of `KeyBindingUtil` (Kevin Hawkinson in aede823)
|
257 | * Add live demo to README.md (#1907) (PLa in 6db3726)
|
258 | * added highlighting (`<mark>` tag) to draft js html to content block converter (Isaiah Solomon in 37f2f2a)
|
259 | * Relicense under MIT and remove patents grant (#1967) (Claudio Procida in 585af35)
|
260 | * Ctrl-K at end of line should delete newline (Sophie Alpert in 6455493)
|
261 | * Add type annotations to `React.Component` classes in html/shared (Paco Estevez Garcia in 2e3a181)
|
262 | * Add return type annotation to `addEmojiInput` (Sam Goldman in 280d242)
|
263 | * Unstyle empty list item on Enter key (#769) (Eric Biewener in a0267a9)
|
264 | * Allow Option+Space to be handled on OSX Chrome (#1254) (Colin Jeanne in 022bcf7)
|
265 | * Added information about nature of block keys (#1892) (Prateek Nayak in 8ad59c4)
|
266 | * Add flow to files (Nivedita Chopra in d87e093)
|
267 | * Docs: add explicit deprecation notes to Entity methods (#1787) (vinogradov in cc6b897)
|
268 | * Clarifies editor example, changes height to min-height (#1889) (Claudio Procida in 67d6fda)
|
269 | * Improves editor overview example with min height and border (#1887) (Claudio Procida in b8862fd)
|
270 | * Adds iframed editor example (#1879) (Claudio Procida in 8d5cbbe)
|
271 | * Perform untab on backspace for nested items (Nivedita Chopra in 0688fa3)
|
272 | * Support custom block rendering (Nivedita Chopra in fbe2267)
|
273 | * Updates favicons and launcher icons with Draftjs logo (#1872) (Claudio Procida in d9c9d40)
|
274 | * Merge successive non-leaf blocks resulting from tab (Nivedita Chopra in fbd18ce)
|
275 | * Merge successive non-leaf blocks resulting from untab (Nivedita Chopra in 36e588a)
|
276 | * Unnest the first non-leaf child (Nivedita Chopra in 0cb3804)
|
277 | * Implement untab operations (Nivedita Chopra in 77e6844)
|
278 | * added favicon (#1871) (saranshkataria in b9dd551)
|
279 | * Add Algolia search (#1864) (Yangshun Tay in 1bf2145)
|
280 | * `KeyBindingUtil`: add `usesMacOSHeuristics` method (#869) (William Boman in 98e7730)
|
281 | * Export `RawDraftContentState` publicly (#1841) (Cédric Messiant in c6ff39d)
|
282 | * Implement moveChildUp operation for untab (Nivedita Chopra in e145a2a)
|
283 | * Allow insertion at a specific point for updateParentChild (Nivedita Chopra in 6b83312)
|
284 | * Implement onTab in NestedRichTextEditorUtil (Nivedita Chopra in 8d3cfba)
|
285 | * Add utilty methods for creating a new parent & updating node to become sibling's child (Nivedita Chopra in 6f73657)
|
286 | * Add utility methods for parent-child & sibling pointer updates (Nivedita Chopra in 0cb80b7)
|
287 | * Warn visibly when extensions break Draft (Sophie Alpert in c0fb6a8)
|
288 | * Add data structure invariants for tree data (Nivedita Chopra in ad4f64f)
|
289 | * Add Draft.js logo to header (Joel Marcey in 0ce20bc)
|
290 | * Enable deprecated-type rule in www (George Zahariev in dc9fa27)
|
291 | * Add different counter-style for ordered lists based on their depth (Noam Elboim in d2a3ae8)
|
292 | * Finish modernizing `convertFromHTMLToContentBlocks` - max nesting bug fix (Noam Elboim in 06c0ee6)
|
293 | * Finish modernizing `convertFromHTMLToContentBlocks` - upgrade draft-js internals (Noam Elboim in d24b802)
|
294 | * Finish modernizing `convertFromHTMLToContentBlocks` - nesting bug fix (Noam Elboim in 49bdd85)
|
295 | * Add docs about `DraftDecoratorComponentProps` (Flarnie Marchan in 7fddfcd)
|
296 | * Add list block `onTab` test (il kwon Sim in 102701c)
|
297 | * Integrating experiments on playground (mitermayer in b6ae887)
|
298 | * Add clarifying comments to `getRemovalRange` (Flarnie Marchan in 28cb4a3)
|
299 | * Adding Rich Editor to the playground (mitermayer in 227d125)
|
300 | * Allow indentation beyond one level deeper than block above. (Eric Biewener in 73e5a9c)
|
301 | * Enabling a GK manager for the plaground (mitermayer in 8eea2c2)
|
302 | * Bundle size stats (Alan in 5ffce3d)
|
303 | * Clear block type when pressing backspace (Sophie Alpert in 6a1e2b0)
|
304 | * added favicon to website (Michael Baldwin in 6cc2d85)
|
305 | * expose start/end positions of a decorated component within a contentBlock (Matthew Mans in 3a3d34b)
|
306 | * Add draft js playground (Julian Krispel-Samsel in 18fdffb)
|
307 |
|
308 |
|
309 | ### Changed
|
310 | * Moves test for legacy convertFromHTMLToContentBlocks out of OSS repo (Claudio Procida in 5eb49b1)
|
311 | * Removes legacy convertFromHTMLToContentBlocks from OSS repo (Claudio Procida in a7d955e)
|
312 | * Renames convertFromHTMLToContentBlocks2 to convertFromHTMLToContentBlocks (Claudio Procida in d08399b)
|
313 | * Removes all resolved uses of convertFromHTMLToContentBlocks_DEPRECATED (Claudio Procida in ec43403)
|
314 | * draft-js: clean up useless divs from HTML when pasting content (Daniel Quadros de Miranda in 0f5427a)
|
315 | * docs: remove --save flag (#2008) (Mounish Sai in f92d4b1)
|
316 | * Rename DraftEditorBlock to EditorBlock (#2002) (Umang Galaiya in 8514b57)
|
317 | * Removes unnecessary eslint disable rules (Claudio Procida in 1ba0764)
|
318 | * Upgrades react-scripts to ^1.1.5 (#2042) (Claudio Procida in 71ef373)
|
319 | * Upgrades docusaurus (#2039) (Claudio Procida in 21753fa)
|
320 | * Removes unused gulp-browserify-thin (#2032) (Claudio Procida in fc3549a)
|
321 | * Upgrades @babel/core, babel-preset-fbjs, and gulp-util (#2028) (Claudio Procida in 68196f6)
|
322 | * Deploy 0.94 to www (George Zahariev in 6183935)
|
323 | * deploy 0.93 (Daniel Sainati in 3400cda)
|
324 | * Normalize case in `convertFromHTMLToContentBlocks` variable names (Claudio Procida in b4183b1)
|
325 | * Cleans up and refreshes generated website resources (#1998) (Claudio Procida in bd799f5)
|
326 | * Upgrades Draft to React 16.8 ⚛️ (#1996) (claudiopro in a97ed7e)
|
327 | * Adds email notifications for TravisCI builds (#1990) (Claudio Procida in a4cc10d)
|
328 | * Upgrades flow-bin to 0.91.0 and mutes fbjs joinClasses error � (#1989) (Claudio Procida in e8a281c)
|
329 | * Update to 0.92.0 (Paco Estevez Garcia in c022efb)
|
330 | * Update webpack-dev-server & babel version in TeX examples (#1981) (Nivedita Chopra in a3a3585)
|
331 | * Remove `componentWillReceiveProps` usages in examples (#1952) (Deep in 363f66e)
|
332 | * Upgrade to Gulp 4 (fixes build) (#1957) (Kevin Chavez in 85ad25c)
|
333 | * Kill permanent permanently. (Andrey Sukhachev in 236270a)
|
334 | * Deploy Flow v0.85 to www (Sam Goldman in 744af91)
|
335 | * flow 0.84 www deploy (Avik Chaudhuri in 59dd225)
|
336 | * Bring back the ariaOwneeID prop. (#1883) (Andrea Fercia in ce7f677)
|
337 | * Add Node.js version 10 for CI (#1909) (noelyoo in 4a9a6a8)
|
338 | * Refactor buffer constructor (#1912) (noelyoo in 11d7379)
|
339 | * Update Advanced-Topics-Inline-Styles.md (#1902) (Yao Bin in 0b7ec2a)
|
340 | * Remove flow typing for DraftEntity mock (#1891) (Nivedita Chopra in 75aa88a)
|
341 | * Flow strict for some files (Nivedita Chopra in bbd3ef1)
|
342 | * Update documentation concerning immutable updates (#1884) (Connor Jennings in c336ae2)
|
343 | * Update docs to ensure kebab menu shows subheads (#1885) (Connor Jennings in 2ff0c7e)
|
344 | * Support npm version 6.x (#1866) (Yangshun Tay in 724fdc6)
|
345 | * Remove unused var in BlockTree (#1859) (Nivedita Chopra in 0a45fcd)
|
346 | * Update jest version to latest (#1858) (Nivedita Chopra in b962974)
|
347 | * Update Advanced-Topics-Entities.md (#1767) (alaoui abdellah in d40ff40)
|
348 | * Update link to code of conduct (#1855) (Nivedita Chopra in 8c373b6)
|
349 | * var => const on remaining file (Nivedita Chopra in 022798c)
|
350 | * Update prettier version to 1.13.6 (#1854) (Nivedita Chopra in e2c24cf)
|
351 | * Remove Flow Strict Local from files with future sketchy-null errors after bug fix (George Zahariev in c5b785a)
|
352 | * Remove non-leaf blocks in tree => raw conversion (Nivedita Chopra in f5b2acb)
|
353 | * Update Docusaurus to 1.3.3 (#1797) (Yangshun Tay in d6a0ac0)
|
354 | * modify docs overview url (#1802) (Shubham Tiwari in 9f86efb)
|
355 | * v0.79.1 in www (Panagiotis Vekris in 93a90a9)
|
356 | * Remove gating on draft_non_native_insertion_forces_selection (Sophie Alpert in 1a5b27a)
|
357 | * 5/n Disable forward delete across blocks when nested blocks are enabled (Flarnie Marchan in 0600549)
|
358 | * 3/n Splitting PR #1828: updates to the Rich Text Editor example (#1828) (mitermayer in e98e91e)
|
359 | * 2/n splitting PR #1828: updating `removeRangeFromContentState` (#1828) (mitermayer in a399e43)
|
360 | * 1/n splitting PR #1828: Initial forking of `RichTextEditorUtil` (#1828) (mitermayer in 328ddc6)
|
361 | * Warn if `moveSelectionForward/Backward` called with non-collapsed selection (Flarnie Marchan in 99eca6b)
|
362 | * codemod jasmine -> jest in html/shared (Aaron Abramov in 7f9299d)
|
363 | * Remove logo from background circle (#1800) (Paul O’Shannessy in 47ae65a)
|
364 | * var => const on test files (Nivedita Chopra in 0f58b64)
|
365 | * Migrate to Docusaurus - Attempt #2 (Noam Elboim in 710919b)
|
366 | * Remove old decorator fingerprint logic (Sophie Alpert in b2f6ed0)
|
367 | * Use strict-local in as many files as possible (Miorel Palii in 3798902)
|
368 | * Pass eventTimeStamp to `handleKeyPress` to allow tracking (Flarnie Marchan in 0ecf9a6)
|
369 | * Pass synthetic event to `handleBeforeInput` callback (Flarnie Marchan in b86b5ce)
|
370 | * `React.Element<any>` / `React.Element<*>` -> `React.Node` as much as possible (Miorel Palii in a1f4593)
|
371 | * Change remaining vars to let/const (Nivedita Chopra in 8de2db9)
|
372 | * Removed `@providesModule` tags and dependencies from draft-js (Rubén Norte in ee2e9c8)
|
373 | * Add `@providesModule` back to draft-js modules (Ashley Watkins in 05b2b4c)
|
374 | * Add common Flow type for decorator components (Ashley Watkins in 8000486)
|
375 | * Add `@providesModule` back to draft-js modules (Rubén Norte in 4c4465f)
|
376 | * Removed `@providesModule` tag from non-generated files in html/shared directories (1/1) (Rubén Norte in 293f262)
|
377 | * 2/n Remove last vestiges of cWU (Flarnie Marchan in e954091)
|
378 | * 1/n Move `blockSelect` flag out of cWU (Flarnie Marchan in 0f6199d)
|
379 | * Upgrade to Flow v0.68.0 (Sam Goldman in a99f51e)
|
380 | * Strict-ify files that can be strict-ified with no additional changes (Miorel Palii in 22f9c52)
|
381 | * rename-unsafe-lifecycles (Brian Vaughn in 8b3e8c9)
|
382 | * Refactor `convertFromHTMLtoContentBlocks` (Nicolas Champsavoir in 732b69d)
|
383 | * Making gkx overwrittable (mitermayer in 7495adf)
|
384 | * 2/n Do update `blockSelectEvents` flag, during render (Flarnie Marchan in e571268)
|
385 | * 1/n remove GK on `flushSync` (Flarnie Marchan in 4241f43)
|
386 | * Playground - Making sure blockMap should always visible by default (mitermayer in 7eb2a50)
|
387 | * Move uglifyjs-webpack-plugin to devDependencies (Thibaud Colas in 4de1345)
|
388 | * Making a more sane .gitignore (mitermayer in f4bc3a7)
|
389 | * Examples cleanup (Ken Hibino in 67f3586)
|
390 | * Ensure selection collapses if user tries to replace with matching text (Brian Ng in 084bdb6)
|
391 | * Move `_latestEditorState` assignment back to commit phase (Sophie Alpert in 04c2b9c)
|
392 | * Remove Node 6 from engines list in package.json (Thibaud Colas in 584d849)
|
393 | * Update `_latestEditorState` in render too (Flarnie Marchan in 90a8f22)
|
394 | * Widen logging and add stack trace for IE selection bug (Flarnie Marchan in a6317e6)
|
395 | * Match block and inline examples for consistency. (cbeninati in e65a8e6)
|
396 | * Bundle size stats + Misc changes (Alan Norbauer in 0a1f981)
|
397 | * Remove `componentWillUpdate` under GK (Flarnie Marchan in 7885959)
|
398 | * try disabling 'blockSelectEvents' flag (Flarnie Marchan in d144883)
|
399 | * Update site footer from 2017 -> 2018 (Michael Chen in 558352c)
|
400 | * Make the Flow type of `CompositeDraftDecorator`'s constructor more strict (Steven Luscher in a894030)
|
401 | * Deprecated the coarse `onArrowUp` et al key handler props on `DraftEditor.react` to make it possible to produce editor commands from these keys (Steven Luscher in dc5ca7f)
|
402 | * Wrap Draft handlers in `flushControlled` instead of `flushSync` (Andrew Clark in cda13cb)
|
403 | * Update docs/APIReference-Editor.md (Sai Kishore Komanduri in 27a5f10)
|
404 | * Bumping internal flow version (mitermayer in 342a51a)
|
405 | * Switch from `DraftFeatureFlags` to gkx() (Sophie Alpert in 07eb9c4)
|
406 | * Add `flushSync` to Draft.js for *only* GK folks (Flarnie Marchan in 26040e5)
|
407 |
|
408 | ### Fixed
|
409 | * Fixed drag and drop `.length` error (#2117) (job in 2487e7d)
|
410 | * Fix broken id anchor (#2095) (Sajad Torkamani in eddcc55)
|
411 | * Typo corrected - Overview.md (#2089) (Jonathan Erlich in 87a812d)
|
412 | * fix: set to nested list items to right depth (Kevin Li in 12c4480)
|
413 | * fix(styles): avoid permanently accumulating attribute styles (Kevin Li in 7cfb055)
|
414 | * Fixes runtime error when cutting empty selection at the end of the content (Claudio Procida in 23fc70f)
|
415 | * Fixing major Android editing issues (#2035) (Fabio M. Costa in 634bd29)
|
416 | * Fix broken link in Overview.md (#2062) (seojeee in e8e0bcf)
|
417 | * Fix failing `DraftStringKey` test (#2064) (Claudio Procida in fe4e266)
|
418 | * Fixes require order lint issues /2 (Claudio Procida in 76e121e)
|
419 | * Fixes require order lint issues (Claudio Procida in e2c5357)
|
420 | * Fix the issue of draft JS does not do copy and paste correctly with custom entities. (Tee Xie in d09ef3e)
|
421 | * fix typo in README.md (#2055) (Tanner Eustice in 75a89ff)
|
422 | * rename `*.test.js` to `*-test.js` to match naming convention (Aaron Abramov in dc58df8)
|
423 | * Convert some of draftjs' `ReactDOM.findDOMNode` to refs (#2051) (Dennis Wilkins in 1fae34f)
|
424 | * Correct warning condition (#2049) (Ben Gardner in ffd8f59)
|
425 | * Fix npm run dev (#2030) (Fabio M. Costa in 3c01ef6)
|
426 | * Specify correct type of `joinClasses` (George Zahariev in 7b9a7e1)
|
427 | * Restores flow error suppression for fbjs@1.0.0 (#2014) (Claudio Procida in 6a26a82)
|
428 | * Fix leading line feed conversion (Guillaume Aubert in 5081c87)
|
429 | * Handles `<br>` tags in refactored HTML converter (Claudio Procida in fdf63aa)
|
430 | * Typo fix in code comment (#1997) (Deniz Susman in e84e757)
|
431 | * Fix bad destructuring when content block key has a `-` (#1995) (Jan Karlo Dela Cruz in c21a9f7)
|
432 | * Fix typo in code comment for DraftEditor (#1991) (Deniz Susman in 7167210)
|
433 | * Fixes lint warnings in `convertFromHTMLToContentBlocks2` tests (Claudio Procida in e942ee9)
|
434 | * Update fbjs to 1.0.0 to fix ReDos Vulnerability (#1978) (Anthony Muscat in 9b2a366)
|
435 | * Normalize copyright headers to BSD + patents grant and drop the year (#1964) (Claudio Procida in 642aa11)
|
436 | * Fixes flow error (#1962) (Claudio Procida in fb7882b)
|
437 | * Remove unused suppression comments from www as of v0.89 (Gabe Levi in 8dd6dda)
|
438 | * Add correct type annotations to DraftEditor.react.js (Paco Estevez Garcia in 83edf02)
|
439 | * Fix `$FlowFixMe` type not working for CI builds of draft-js (Paco Estevez Garcia in 81f92ee)
|
440 | * Annotate exports codemod on html/shared (Paco Estevez Garcia in 7cb10f9)
|
441 | * Revert D13097194: [codemod][types-first] Add type annotations to html/shared (Craig Phillips in 010fce7)
|
442 | * Add type annotations to html/shared (Paco Estevez Garcia in 6f4102d)
|
443 | * Fix all 'curly' violations (Paul O'Shannessy in ab199ef)
|
444 | * Fix tex and universal examples crash because of different React versions (#1756) (#1931) (Thibaud Colas in 7dddded)
|
445 | * Fix typo (#1913) (noelyoo in 1d3c77f)
|
446 | * Fixes some drag-n-drop problems (#1599) (Denis Oblogin in 20a0f73)
|
447 | * Bug/1668 (#1691) (Alexis H in 1d2d854)
|
448 | * Fix SelectionState’s `hasEdgeWithin` (#1811) (Andrew Branch in 7666e95)
|
449 | * Fix drop issue (#1725) (LaySent in 800d6b5)
|
450 | * fixes #868 (#1878) (Julian Krispel in 6ba124c)
|
451 | * Fix check for tree blocks (Nivedita Chopra in 690f7ef)
|
452 | * Fix bug in merge blocks (Nivedita Chopra in 7daa87e)
|
453 | * Fix raw to tree conversion (Nivedita Chopra in 8ac1922)
|
454 | * Bug Fix - Remove deleted block from its parent's children (Nivedita Chopra in 02e0e00)
|
455 | * Fix small typo (#1865) (Valentin Hervieu in 8bb9c6c)
|
456 | * Fix paste handling for images with `role="presentation"` (Jainil Parekh in 6df3808)
|
457 | * Minor fix in entities docs (#1534) (Alastair Hole in 9f0d115)
|
458 | * Fixes incorrect docs, see #1497 (#1837) (Matt Greenfield in a18b6fe)
|
459 | * Fixes warning for missing keys in example color controls (#1853) (Claudio Procida in 4a5ad07)
|
460 | * Fix Lint errors for type imports (Nivedita Chopra in e6c693c)
|
461 | * Fix Travis breakage caused due to unimported `idx` module (Nivedita Chopra in 3306ddf)
|
462 | * Fix `DraftTreeAdapter` to respect the tree invariants (Nivedita Chopra in 39be488)
|
463 | * Inline call to `gkx` to combat fatal in `ContentState` (Steven Luscher in a6c9ffd)
|
464 | * Handle ReactDOM type errors (Ashley Watkins in 9130859)
|
465 | * Fix tree invariants test (#1836) (Nivedita Chopra in 05208a8)
|
466 | * Fix unlucky failures in character replacement (Sophie Alpert in ae25b8f)
|
467 | * Regression test for bug with nested block and deleting (Flarnie Marchan in 2d7ad18)
|
468 | * Tree Data - Fix for backspace at the start of a nested block (Nivedita Chopra in cf48f77)
|
469 | * Tree Data - Don't update pointers if range is within the same block (Nivedita Chopra in f3d3490)
|
470 | * Fix Draft input cursor jumping to the end (Dan Abramov in 37dadd3)
|
471 | * Fix tests to be independent on the implementation of invariant (Matthew McKeen in 81cc54b)
|
472 | * Re-apply order-requires linter on html/shared/ (Dave Alongi in 0bb8d76)
|
473 | * Auto-fix `prefer-const` ESLint rule (3/n) (Miorel Palii in bf1a028)
|
474 | * Auto-fix all auto-fixable eqeqeq problems (Miorel Palii in eea70f4)
|
475 | * Fixing Docusaurus migration issues (Noam Elboim in 72ad814)
|
476 | * Fix block tree before/after comparison (Sophie Alpert in fa88ee1)
|
477 | * Fixed license, Flow and lint issues in draft-js (Rubén Norte in 3e9ff8e)
|
478 | * Actually for real fix the flow type of decorator props (Flarnie Marchan in 7e1a107)
|
479 | * Workaround for BlockNode variance issue caused by flow transform (#1621) (Bob Ippolito in 1d77500)
|
480 | * Revert "rename-unsafe-lifecycles" (mitermayer in 6eec8f9)
|
481 | * Fix typo (Aditya Bhardwaj in 6ef6c66)
|
482 | * Website: Fixed code highlight (Marcelo Jorge Vieira in 04c667c)
|
483 | * Fixing tex example (Guilherme Miranda in 900ef76)
|
484 | * Fix typo (Thomas Broadley in 35b3605)
|
485 | * Fixing master (mitermayer in 4c12ead)
|
486 | * Fix Linux keyboard shortcuts (Thomas Nardone in f6fbf1c)
|
487 | * fix typo in changelog (Flarnie Marchan in 93bc209)
|
488 |
|
489 | ### Meta
|
490 | * Add issue triage guidelines to CONTRIBUTING.md (#1896) (Nivedita Chopra in 7df9eb9)
|
491 | * Add meeting notes for 10/12 (#1901) (Nivedita Chopra in 9a96ab0)
|
492 | * Add meeting notes from 9/7 (#1862) (Nivedita Chopra in b8ea228)
|
493 | * Change oncall to draft_js (Nivedita Chopra in fbc8a0c)
|
494 | * Update biweekly sync meeting notes from February 2018 (Flarnie Marchan in 1ef4044)
|
495 | * Update weekly meeting notes from Oct. 2017 - Jan. 2018 (Flarnie Marchan in 7017825)
|
496 |
|
497 |
|
498 | ## 0.10.5 (January 19th, 2018)
|
499 |
|
500 | ### Added
|
501 | * Add support for `ariaDescribedBy` prop, for better a11y. (Suraj Karnati in
|
502 | [a6af3e15](https://github.com/facebook/draft-js/commit/a6af3e15120e74c8797c5670f5bb63cb45c49a32))
|
503 | * Add support for `ariaLabelledBy` prop, for better a11y. ([@jackyho112](https://github.com/jackyho112)
|
504 | in [#1519](https://github.com/facebook/draft-js/pull/1519))
|
505 |
|
506 | ### Changed
|
507 | * Cause editor to break out of code block when user enters two blank lines. (Hanzhi Zhang
|
508 | in [548fd5d1](https://github.com/facebook/draft-js/commit/548fd5d1b1c31b7b4c79cd70b101fae69d522b3f))
|
509 |
|
510 | ### Fixed
|
511 | * Preserve list indentation when copying and pasting from one Draft.js editor
|
512 | into another. ([@GordyD](https://github.com/GordyD) in [#1605](https://github.com/facebook/draft-js/pull/1605))
|
513 | * Fix `cannot read property 'update' of undefined` error that was thrown when
|
514 | typing same character into selection that starts with that character. ([@existentialism](https://github.com/existentialism) in
|
515 | [#1512](https://github.com/facebook/draft-js/pull/1512))
|
516 | * Fix `encodeRawBlocks` to handle non-contiguous entities. Entities should
|
517 | always be contiguous, and cover one sequential range of characters. However,
|
518 | in cases where entityState is corrupted to include non-contiguous entities,
|
519 | `encodeRawBlocks` would improperly process the entities in that case. (Frank
|
520 | Thompson in [0059dd46](https://github.com/facebook/draft-js/commit/0059dd46f4d23af7d9803316aa93d8deddb5e8ae))
|
521 | * Updated CSS for DraftEditorPlaceholder to support multiline placeholder (Gaurav Vaish in
|
522 | [c38b0285](https://github.com/facebook/draft-js/commit/c38b028513214416d66a3fdf191745dfde04ed2b)
|
523 | * Fix issue where typing at the end of a link caused the link to continue. (Ian
|
524 | Jones in
|
525 | [d16833b3](https://github.com/facebook/draft-js/commit/d16833b3dae77ccf13e3af7f5e42c8131b0d1d2c))
|
526 | * Fix regression of bug where clicking a link caused the focus to move but the
|
527 | selection state was not cleared, leading to a 'node not found' error.
|
528 | ([@flarnie](https://github.com/flarnie)
|
529 | in [55316176](https://github.com/facebook/draft-js/commit/553161761903bed7fad971d73e1fe04bb0ff360e))
|
530 | * Loosen Flow type definition for DraftBlockType to allow user-defined custom
|
531 | block types. ([@mitermayer](https://github.com/mitermayer)
|
532 | in [#1480](https://github.com/facebook/draft-js/pull/1480))
|
533 |
|
534 | ## 0.10.4 (October 24th, 2017)
|
535 |
|
536 | ### Added
|
537 | * Expose `onRightArrow` and `onLeftArrow` props to allow handling keyboard
|
538 | events when right or left arrow is pressed.
|
539 | ([@eessex](https://github.com/eessex)
|
540 | in [#1384](https://github.com/facebook/draft-js/pull/1384))
|
541 | * Expose Draft.css as default CSS export in package.json for use by CSS
|
542 | preprocessors. ([@darobin](https://github.com/darobin )
|
543 | in [#566](https://github.com/facebook/draft-js/pull/566))
|
544 |
|
545 | ### Changed
|
546 | * Change 'lookUpwardForInlineStyle' from O(n^2) to O(n), improving performance.
|
547 | :) ([@Lemmih](https://github.com/Lemmih)
|
548 | in [#1429](https://github.com/facebook/draft-js/pull/1429))
|
549 |
|
550 | ### Fixed
|
551 | * Fix bug where editors inside draggable parent were broken for Safari.
|
552 | ([@mattkrick](https://github.com/mattkrick) in
|
553 | [#1326](https://github.com/facebook/draft-js/pull/1326))
|
554 | * Stop pulling in Enzyme as production dependency. D'oh.
|
555 | ([@flarnie](https://github.com/flarnie) in
|
556 | [#1415](https://github.com/facebook/draft-js/pull/1415))
|
557 | * Fix `TypeError: Cannot read property 'nodeType' of undefined` error where
|
558 | `anchorNode` was `undefined`.
|
559 | ([@tleunen](https://github.com/tleunen) in
|
560 | [#1407](https://github.com/facebook/draft-js/pull/1407))
|
561 | * Fix error thrown when callback tries to `focus` on editor after it has been
|
562 | unmounted. ([@mattkrick](https://github.com/mattkrick) in
|
563 | [#1409](https://github.com/facebook/draft-js/pull/1409))
|
564 | * Fix bug where selecting a single character then typing it doesn't replace it.
|
565 | ([@karanjthakkar](https://github.com/karanjthakkar) in
|
566 | [#719](https://github.com/facebook/draft-js/pull/719))
|
567 | * Clear the block type when backspacing at the start of the first block with
|
568 | rich text utils. ([@jvaill](https://github.com/jvaill) in
|
569 | [#748](https://github.com/facebook/draft-js/pull/748))
|
570 |
|
571 | ## 0.10.3 (September 28th, 2017)
|
572 |
|
573 | ### Added
|
574 | * Allow React 16.\* as peer dependency. ([@nikgraf](https://github.com/nikgraf)
|
575 | in [#1385](https://github.com/facebook/draft-js/pull/1385))
|
576 |
|
577 | ### Fixed
|
578 | * Fixed bug where using a custom block type without overriding the default block
|
579 | map threw an error. ([@southerncross](https://github.com/southerncross) in
|
580 | [#1302](https://github.com/facebook/draft-js/pull/1302))
|
581 | * Update dependency on `fbjs` to get fix for bug where `focus()` caused
|
582 | unexpected scroll ([@flarnie](https://github.com/flarnie) in
|
583 | [#1401](https://github.com/facebook/draft-js/pull/1401))
|
584 |
|
585 | ## 0.10.2
|
586 |
|
587 | ### Added
|
588 | * Added support for `aria-controls` in draft.js ([@jessebeach](https://github.com/jessebeach) in [7f0cab28](https://github.com/facebook/draft-js/commit/7f0cab28386ec4bde8ec6289377bff9e53cd019b))
|
589 |
|
590 | ### Changed
|
591 | * Change `aria-owns` to `aria-controls` in draft.js. ([@jessebeach](https://github.com/jessebeach) in [7f0cab28](https://github.com/facebook/draft-js/commit/7f0cab28386ec4bde8ec6289377bff9e53cd019b))
|
592 | * Deprecates support of `ariaOwns` and `ariaOwneeID` props.
|
593 | * Deprecate use of `ariaHasPopup` prop in draft.js. `ariaExpanded` should be used instead if an input is showing a dropdown with options.([@jessebeach](https://github.com/jessebeach) in [744e9b4e](https://github.com/facebook/draft-js/commit/744e9b4eb4810797a93c66591fea6f9cac533b4b))
|
594 | * Pasting an `img` no longer inserts the `src` by default; now inserts image emoji if no decorator is used. ([@aadsm](https://github.com/aadsm) in [0b22d713](https://github.com/facebook/draft-js/commit/0b22d713d556ccc4820850099ad6231493b3f7aa) and [@flarnie](https://github.com/flarnie) in [1378](https://github.com/facebook/draft-js/pull/1378))
|
595 |
|
596 | ### Fixed
|
597 |
|
598 | * Fix issue where selection state was not cleared on blur and refocus of the
|
599 | editor. ([@sophiebits](https://github.com/sophiebits) in
|
600 | [19b9b1c5](https://github.com/facebook/draft-js/commit/19b9b1c5007bcb3a4111ea31f8d9a8cda629a1ff))
|
601 | * Fix issue where pasting code into code block defaulted to plain text, and
|
602 | styles were dropped from pasted blocks in general.
|
603 | ([@bumbu](https://github.com/bumbu) in
|
604 | [e8d10112](https://github.com/facebook/draft-js/commit/e8d101121fb9dd9203a46d899124a7be4b0b2936))
|
605 | * Fix issue where Flow was not running with some 'import' statements ([@flarnie](https://github.com/flarnie) & [@yuku-t](https://github.com/yuku-t) in [#1263](https://github.com/facebook/draft-js/pull/1262))
|
606 | * Fix bug where Draft threw when two keys were pressed at same time in React 16 async mode ([@sophiebits](https://github.com/sophiebits) in [1c6a49b8](https://github.com/facebook/draft-js/commit/1c6a49b8801183fe0c29458626c0b5dbe1238e59))
|
607 | * Fix recent Chrome bug where tab causes error ([@sophiebits](https://github.com/sophiebits) in [5863399a](https://github.com/facebook/draft-js/commit/5863399a3a1bcbbe9b090249504a70496a7af7cc))
|
608 | * Fix "Refs must have owner" error when multiple copies of React are used ([@mks11](https://github.com/mks11) in [#925](https://github.com/facebook/draft-js/pull/925))
|
609 | * Fix issue where AT could treat 'return' as submit in Draft ([@jessebeach](https://github.com/jessebeach) in [#1295](https://github.com/facebook/draft-js/pull/1295))
|
610 | * Don't allow `aria-expanded` to be true unless the aria role is combobox ([@jessebeach](https://github.com/jessebeach) in [3494d45d](https://github.com/facebook/draft-js/commit/3494d45d32b64d6e82e4b3e8fcade6a2b5c6bd46))
|
611 | * Fix pesky "This Selection object doesn't have any Ranges" bug ([@sophiebits](https://github.com/sophiebits) in [96688e10](https://github.com/facebook/draft-js/commit/96688e10b22a778c76e03009da4b9f3d05eba5f7) and [036e3a84](https://github.com/facebook/draft-js/commit/036e3a848e3593c97f4c3011e1ddc045e128a7af))
|
612 | * Fix bug where pasting `img` with large data URL source could crash editor ([@aadsm](https://github.com/aadsm) in [0b22d713](https://github.com/facebook/draft-js/commit/0b22d713d556ccc4820850099ad6231493b3f7aa))
|
613 |
|
614 | ## 0.10.1
|
615 |
|
616 | ### Added
|
617 |
|
618 | * Support UMD in dist output format (#1090)
|
619 | * Expose textDirectionality prop
|
620 | * Expose props disabling auto-correct, auto-complete, auto-capitalize
|
621 | * Add `editorKey` prop for SSR
|
622 | * Pass `block` to `customStyleFn` callback
|
623 | * Added `moveAtomicBlock` to `AtomicBlockUtils`
|
624 |
|
625 | ### Fixed
|
626 |
|
627 | * Fix some cases of "Failed to execute 'setStart' on 'Range" bug (#1162)
|
628 | * Fix Chrome text deletion bug (#1155)
|
629 | * Pass fresh editorState to edit handlers (#1112 and #1113)
|
630 | * Fix for text insertion bugs in Android 5.1
|
631 | * Correctly delete immutable and segmented entity content when at the edge of a
|
632 | selection
|
633 | * Fix bug where all text except first letter was dropped in IE11
|
634 | * Fix bug where starting new line incorrectly toggled inline style
|
635 | * Fix 'getRangeClientRects' to work around [webkit selection bounding rect
|
636 | bug](https://www.youtube.com/watch?v=TpNzVH5jlcU)
|
637 |
|
638 | ## 0.10.0 (Dec. 16, 2016)
|
639 |
|
640 | ### Added
|
641 |
|
642 | * Add improved API for entity manipulation to contentState
|
643 | * Add deprecation warnings to old Entity module API
|
644 | * Add image support to convertFromHTML
|
645 | * Add option of 'aliasedElements' in block render map
|
646 |
|
647 | ### Changed
|
648 |
|
649 | * This version supports both the old and new Entity API; we
|
650 | are deprecating the Entity module in favor of
|
651 | using contentState. See [the migration guide.](https://draftjs.org/docs/v0-10-api-migration.html#content)
|
652 |
|
653 | ### Fixed
|
654 |
|
655 | * Fix bug where block data was not removed when deleting atomic block
|
656 | * Fix bug preventing pasting from clipboard
|
657 | * Fix dead key deletion and deletion in 2-Set Korean
|
658 | * Fix ContentState.createFromBlockArray to allow taking an empty array
|
659 | * Improve typing in Korean on Windows
|
660 |
|
661 | ## 0.9.1 (September 16, 2016)
|
662 |
|
663 | ### Added
|
664 |
|
665 | * `customStyleFn` for more control over inline style ranges
|
666 |
|
667 | ### Fixed
|
668 |
|
669 | * Update Flow version
|
670 | * Fix flow error in DraftEditorDragHandler
|
671 |
|
672 | ## 0.9.0 (September 13, 2016)
|
673 |
|
674 | ### Changed
|
675 |
|
676 | * Return 'handled' or 'not-handled' from cancellable handlers callback
|
677 | * Boolean return value is deprecated
|
678 | * Expand and update documentation
|
679 |
|
680 | ### Fixed
|
681 |
|
682 | * Fix selection of atomic block when it is the last block
|
683 | * Preserve the depth of custom block types when converting to raw
|
684 | * Stop mutating component children when creating blocks with wrapper elements
|
685 |
|
686 | ## 0.8.1 (August 12, 2016)
|
687 |
|
688 | ### Fixed
|
689 |
|
690 | * Include `object-assign` in npm dependencies
|
691 | * Include `babel-core` in npm dependencies of tex example
|
692 |
|
693 | ## 0.8.0 (August 8, 2016)
|
694 |
|
695 | ### Added
|
696 |
|
697 | * `customStyleFn` for more control over inline style ranges
|
698 | * Uses `internalClipboard` for Safari
|
699 | * Metadata for `ContentBlock` objects
|
700 | * `convertFromHTMLToContentBlocks`:
|
701 | * Support for `mailto` protocol for links
|
702 | * Support "unset" inline styles
|
703 | * Run ESLint on examples
|
704 |
|
705 |
|
706 | ### Changed
|
707 |
|
708 | * Removed redundant ESLint module in TeX example
|
709 | * Update Travis CI config for readability, Node v4 requirements, and pruning/updating npm dependencies
|
710 | * Use `immutable` ~3.7.4 to avoid Flow errors in updated versions
|
711 | * Modify `getSelectionOffsetKeyForNode` to search for nested offset-annotated nodes
|
712 | * Upgrade eslint to 3.0.1, use fbjs config
|
713 | * Update to Flow 0.28
|
714 | * Jest
|
715 | * Update to 12.1.1
|
716 | * Replaced `jest.fn().mockReturnValue(x)` with `jest.fn(() => x)`
|
717 | * Remove extra spaces from the text decoration style
|
718 | * No longer using `nullthrows` for `blockRenderMap`
|
719 | * `convertFromHTMLToContentBlocks`:
|
720 | * Improved variable names in `joinChunks`
|
721 | * Additional whitelisted entities such as `className`, `rel`, `target`, `title`
|
722 |
|
723 | ### Fixed
|
724 |
|
725 | * Fix bug where placeholder text was not being erased in Chrome
|
726 | * Fix bug where double click link in Firefox broke selection
|
727 | * Kill iOS tooltips
|
728 | * removed unnecessary `undefined` checks on `DraftEditorLeaf`
|
729 | * `convertFromHTMLToContentBlocks`:
|
730 | * Preserve pasted block type on paste
|
731 | * Strip XML carriage returns and zero-width spaces
|
732 | * `getBlockMapSupportedTags()` will always return a valid array of tags
|
733 | * Documentation fixes
|
734 |
|
735 | ## 0.7.0 (May 3, 2016)
|
736 |
|
737 | ### Added
|
738 |
|
739 | * `blockRenderMap`: A map that allows configuration for the DOM elements and
|
740 | wrapper components to render, keyed by block type
|
741 | * Includes configurability of element-to-block-type paste processing
|
742 |
|
743 | ### Changed
|
744 |
|
745 | * Update to Jest 11.0.2
|
746 |
|
747 | ### Fixed
|
748 |
|
749 | * Change deletion behavior around `atomic` blocks to avoid DOM selection errors
|
750 | * Properly apply entities across multiple blocks in
|
751 | * Improve placeholder behavior for a11y
|
752 | * Properly remove and modify entity ranges during spellcheck changes
|
753 | * Match Chrome `<textarea>` behavior during <kbd>cmd</kbd>+<kbd>backspace</kbd>
|
754 | command at visual line-start
|
755 |
|
756 | ## 0.6.0 (April 27, 2016)
|
757 |
|
758 | ### Added
|
759 |
|
760 | * `ContentState.getFirstBlock()` convenience method
|
761 |
|
762 | ### Changed
|
763 |
|
764 | * <kbd>return</kbd> key handling now goes through command flow to enable easier
|
765 | custom `'split-block'` handling.
|
766 | * `convertFromRaw` now returns a `ContentState` object instead of an
|
767 | `Array<ContentBlock>`
|
768 |
|
769 | ## 0.5.0 (April 12, 2016)
|
770 |
|
771 | ### Fixed
|
772 |
|
773 | * <kbd>option</kbd>+<kbd>spacebar</kbd> no longer incorrectly scrolls browser in Chrome OSX
|
774 | * Cursor behavior when adding soft newlines
|
775 |
|
776 | ### Added
|
777 |
|
778 | * `AtomicBlockUtils`, a utility module to simplify adding `atomic` blocks to
|
779 | an `EditorState`
|
780 |
|
781 | ### Changed
|
782 |
|
783 | * The `media` block type is now `atomic`, to better represent that this type
|
784 | is not just intended for photos and videos
|
785 |
|
786 | ## 0.4.0 (April 6, 2016)
|
787 |
|
788 | ### Fixed
|
789 |
|
790 | * Avoid clearing inline style override when setting block type or depth
|
791 |
|
792 | ### Added
|
793 |
|
794 | * `editable` field for custom block component configuration
|
795 | * Default key binding support for <kbd>Ctrl</kbd>+<kbd>M</kbd> (`split-block`)
|
796 |
|
797 | ### Changed
|
798 |
|
799 | * Always wrap custom block components, based on block type
|
800 | * Includes `data-editor`, `data-offset-key`, `data-block` in block props
|
801 | * Replace `onPasteRawText` prop with `handlePastedText`
|
802 |
|
803 | ## 0.3.0 (March 22, 2016)
|
804 |
|
805 | ### Fixed
|
806 |
|
807 | * Properly extract custom inline styles for `convertToRaw`
|
808 | * Fix internal paste behavior to better handle copied custom blocks
|
809 |
|
810 | ### Added
|
811 |
|
812 | * Export `getVisibleSelectionRect`
|
813 | * Export `convertFromHTML`
|
814 | * Export `DraftEditorBlock`
|
815 |
|
816 | ## 0.2.2 (March 9, 2016)
|
817 |
|
818 | ### Fixed
|
819 |
|
820 | * Build before publish to get the warning suppression in place correctly
|
821 |
|
822 | ## 0.2.1 (March 9, 2016)
|
823 |
|
824 | ### Added
|
825 |
|
826 | * React 15 RC as peer/dev dependency, provide `suppressContentEditableWarning`
|
827 |
|
828 | ## 0.2.0 (March 8, 2016)
|
829 |
|
830 | ### Added
|
831 |
|
832 | * Move `white-space: pre-wrap` into inline style to resolve insertion issues
|
833 | * `handleDrop` prop method for `Editor` to allow manual drop management
|
834 | * `decoratedText` prop for decorator components
|
835 | * `getVisibleSelectionRect`, to provide Rect for DOM selection
|
836 | * Export `KeyBindingUtil` and `getDefaultKeyBinding`
|
837 |
|
838 | ### Fixed
|
839 |
|
840 | * Triple-clicks followed by block type changes now only affect first block
|
841 | * `DraftEditorLeaf` now re-renders correctly when its styles change
|
842 | * Backspace behavior within empty code blocks
|
843 |
|
844 | ## 0.1.0 (February 22, 2016)
|
845 |
|
846 | * Initial public release
|