Skip to content

Latest commit

 

History

History
382 lines (221 loc) · 34.3 KB

CHANGELOG.md

File metadata and controls

382 lines (221 loc) · 34.3 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.10.6 (2024-04-24)

Features

  • image-upload: add accepted file types option (#304) (93bf622)

Bug Fixes

  • image-upload: ensure accept attribute of uploader is populated correctly (9edcb68)
  • image-upload: make color contrast of content policy and branding help text accessible (f57efd3)

0.10.5 (2024-03-28)

Features

  • list: enhance rich text list editing experience (#298) (998c820)

Bug Fixes

  • link-preview: ensure spinner is not shown indefinetely when no preview results are available (#289) (3ae036f)

0.10.4 (2024-03-21)

Dependencies

  • bump @typescript-eslint/eslint-plugin from 7.0.2 to 7.3.1 #290
  • bump @typescript-eslint/parser from 7.1.0 to 7.3.1 #291
  • bump @playwright/test from 1.41.2 to 1.42.1 #284
  • bump typescript from 5.3.3 to 5.4.2 #283
  • bump @stackexchange/stacks from 2.2.0 to 2.3.0 #293 Note: This dependency update includes updates to support the new button group design for the markdown toggle.

0.10.3 (2024-03-06)

Dependencies

  • build(deps-dev): bump cssnano from 6.0.4 to 6.0.5 by @dependabot in #278
  • build(deps-dev): bump eslint from 8.56.0 to 8.57.0 by @dependabot in #277
  • build(deps-dev): bump mini-css-extract-plugin from 2.8.0 to 2.8.1 by @dependabot in #279
  • build(deps-dev): bump postcss-loader from 8.1.0 to 8.1.1 by @dependabot in #281
  • build(deps-dev): bump @typescript-eslint/parser from 7.0.2 to 7.1.0 by @dependabot in #282
  • build(deps-dev): bump @commitlint/cli from 18.6.1 to 19.0.3 by @dependabot in #280

0.10.2 (2024-02-23)

Dependencies

  • relax the peer dependency on @stackoverflow/stacks to include minor releases (package.json)

0.10.1 (2024-02-21)

Dependencies

0.10.0 (2024-02-07)

Bug Fixes

  • autoformatting: prevent autoformatting when the first underscore is preceded by a non-whitespace character (#262) (5e45ac2)
  • controls: improve focus style to meet WCAG 2.2 AA (#267) (7cbaf5e)
  • deps: upgrade @stackoverflow/stacks to v2.0.8 (a19a8a3)
  • deps: upgrade markdown-it to v13.0.2 (e047893)
  • deps: upgrade prosemirror libs to latest minor releases (869c83d)
  • deps: upgrade prosemirror libs to latest patches (a2eeedf)

0.9.1 (2023-11-01)

Bug Fixes

  • a11y: improve btns high contrast mode (#259) (f883361)
  • a11y: use disabled attribute instead of .is-disabled (#260) (afda06c)

0.9.0 (2023-10-06)

⚠ BREAKING CHANGES

  • dependencies: This version of Stacks-Editor is updated to work with Stacks v2 and Stacks-Icons v6.0. Please update those dependencies if included in your projects before upgrading to Stacks-Editor v0.9.0.

0.8.9 (2023-09-22)

Bug Fixes

  • a11y: add menuitem role to menu buttons (#252) (25ac29b)
  • a11y: make dropdown menuitems children of menu (#255) (2409a56)
  • a11y: prevent refocus of textarea on keyboard navigation (#254) (c86457e)

0.8.8 (2023-06-29)

Features

  • image-upload: add option to show a warning in the upload panel (#251) (220f5e7)
  • image-upload: dispatch event for intercepting image upload flow (#249) (a0d83c9)

Bug Fixes

  • a11y: add menuitem role to dropdown items (f00095e)
  • a11y: remove illegal (and superfluous) aria role from the image uploader browse label (#246) (d388a13)

0.8.7 (2023-04-12)

Bug Fixes

  • a11y: accessible mode switcher (#244) (e77f4af)
  • commands: update commonmark to select link instead of text (608562a)

0.8.6 (2023-03-16)

Bug Fixes

  • commands: update commonmark link insert to use the current origin instead of hardcoded url (151c4a8)
  • commonmark: allow shift-enter command (#241) (0e9d659)

0.8.5 (2023-02-09)

Features

  • menu: place code block and inline code menu buttons side by side (#237) (e526265)

0.8.4 (2023-01-11)

Features

  • bindings: add Cmd/Ctrl+Shift+Z hot key for history redo (#227) (e5ac816), closes #187

0.8.3 (2022-12-12)

Features

  • code-paste-handler: remove support for auto-fencing pasted code in markdown mode (008d0f3), closes #230

0.8.2 (2022-10-20)

Features

  • tag-link: add TagLinkOptions.disableMetaTags option (eec8fef), closes #226

Bug Fixes

  • menu: ensure consistent y padding for all dropdown menus (150363e)

0.8.1 (2022-09-28)

Features

  • a11y: add aria-multiline and role attributes to contenteditable element (a363120)
  • options: add new elementAttributes option for setting arbitrary attributes onto the target (8220dd6)

Bug Fixes

  • commands: be more context aware when inserting a horizontal rule to avoid creating a heading (a15551b), closes #192

0.8.0 (2022-09-14)

⚠ BREAKING CHANGES

  • preview: changed type of CommonmarkOptions.preview.renderer from a MarkdownIt instance to an arbitrary rendering function; removed default preview renderer in favor of always requiring a renderer method when enabled

Features

  • preview: update markdown preview renderer to support an arbitrary renderer callback (13bc4df)

Bug Fixes

  • interface-manager: partial fix for race condition causing multiple buildInterface calls (1353dab)
  • link-editor: fix link-editor dispatching on blur when not shown (8785030)
  • stacks-editor: fix mode toggle when preview is disabled and shownByDefault is enabled (149f67f)

0.7.1 (2022-08-30)

Features

  • commonmark-editor: add "more formatting" menu dropdown to match that in the rich-text editor (e20b8f2)
  • menu: show undo/redo buttons on devices that need a virtual keyboard (15360bb), closes #210
  • preview: add additional mode toggle when commonmarkOptions.preview is enabled (#217) (e664128), closes #150
  • reference-link: add reference link syntax support for images (d6efe2b), closes #188
  • rich-text-editor: add code_block (un)indent (shift-)tab shortcuts (#137) (d3e7624), closes #50
  • rich-text-editor: add rich-text tagLink, sub, sup, kbd, and spoiler entries/shortcuts (#158) (4936bbe), closes #51

Bug Fixes

  • html: fix newlines in-between html attributes breaking tag markup parsing (6634898), closes #208
  • markdown-serializer: ease up on over stringent escaping in link urls (33527f6), closes #218
  • menu: change to not mess with a block's classes if the visibility function is missing entirely (6c62c04)
  • menu: fix undo/redo buttons not working, along with ensuring that the state is properly updated (bb686fb), closes #172 #214

0.7.0 (2022-07-28)

⚠ BREAKING CHANGES

  • tag-link: TagLinkOptions.allowNonAscii and TagLinkOptions.allowMetaTags have been removed in favor of the consumer handling all validation using the new TagLinkOptions.validate option TagLinkOptions.renderer has been renamed to TagLinkOptions.render

Features

  • commands: change all shortcut labels to use capital letters (#204) (0bc5c65), closes #166
  • commonmark-editor: move commonmark syntax highlighting to a new Lezer based system (#176) (693a402), closes #21
  • link-editor: open link on Mod-Click (#130) (ea8da4b), closes #62
  • markdown-serializer: prefer sorting numeric link references in number order (20f338a), closes #163
  • markdown-serializer: serialize code_block nodes to use fences by default (f658969), closes #168
  • menu: tweak active/selected button styling (303e494)
  • stacks-editor: change the mode toggle to a radio powered button group instead of a checkbox (2df7f00)
  • tag-link: add all-purpose TagLinkOptions.validate function (6ae6936)

Bug Fixes

  • code-paste-handler: fix "global is not defined" error when compiling with Vite (b7aaf5c), closes #159
  • image-upload: dropped/pasted images now properly load into the image uploader (0bf0bdf), closes #167
  • image-upload: improve image-upload pane layout on small viewport widths (c47728a), closes #202
  • markdown-serializer: fix incorrect newline serialization of html_inline and html_block (664e034), closes #152
  • menu: fix crashes when a menu entry is null (87063b9)
  • rich-text-editor: allow any block node inside list items (#157) (f59b72f), closes #63

0.6.1 (2022-07-05)

Bug Fixes

  • options: fix crash on startup when preview option is unset (c692e17), closes #149

0.6.0 (2022-07-01)

Features

  • commonmark-editor: add basic static markdown preview support (#146) (bb9f862), closes #115
  • commonmark-editor: change copy behavior of commonmark content to be plain text instead of code (485855d)
  • commonmark-editor: detect and format pasted code like rich-text mode (#147) (9d9841a), closes #135
  • editor-plugin: add external plugin support (#141) (aca011f)
  • link-editor: change link editor from a popover to a plugin pane (#142) (3e4c847), closes #19

Bug Fixes

  • commonmark-editor: fix commonmark editor treating all pasted html content as code (6dc4556)
  • commonmark-editor: only select current paragraph on triple click (#128) (7f1fa6c), closes #27
  • commonmark-editor: prevent placeholder clipping (#144) (a3d0669)

0.5.1 (2022-06-16)

Features

  • image-upload: add imageUpload.allowExternalUrls option to allow uploads from external urls (4b994d5), closes #43
  • image-upload: add imageUpload.embedImagesAsLinks setting support (d778070), closes #61
  • menu: add keyboard shortcut labels to tooltips (#127) (90d427a), closes #46
  • plugins: add new interface-manager plugin to coordinate different plugins' interfaces (166b486)
  • plugins: add placeholder to empty input (#116) (da2963e), closes #103
  • rich-text-editor: cycle heading levels on keyboard shortcut (#131) (3be01a0), closes #45

Bug Fixes

  • commonmark-editor: prevent block change from stripping numbers (#140) (1c18a0b), closes #69
  • html: only parse inline html tags if the opening and closing tags are on the same line (383c6db), closes #133
  • image-upload: improve image uploader i18n support (b8e5730)

0.5.0 (2022-05-13)

⚠ BREAKING CHANGES

  • Stacks 1.0 contains breaking changes

Features

  • add basic description list (<dl>, <dd>, <dt>) support (4ec9f36)
  • add heading dropdown menu (0f1a096), closes #5
  • add localization support (e9ae75e), closes #60
  • add mod+e keybinding to insert tables (#8) (d3c6975)
  • add text only link preview support (#94) (a49d73c)
  • allow users to exit certain marks and code blocks by using the arrow keys (e37a959), closes #64

Bug Fixes

  • allow headings to contain any inline nodes, such as soft/hard line breaks (e709127), closes #107
  • allow unformatted text to inherit formatting when pasted into formatted content (6254acf), closes #48
  • backslash escaped hardbreaks now detect and serialize correctly (1bbbb89)
  • change editor target to display: flex so the inner editor grows when resized (9be120f), closes #88
  • change mod+a to only select markdown text, excluding the root node itself (d3598f5), closes #24
  • disallow any marks or nodes inside code_blocks (439bed6), closes #39
  • ensure all generated element ids are unique to prevent clashes with multiple editors (#118) (859f315)
  • fix global runtime crashes when bundling as an es6 module (1d2e7f1), closes #108
  • fix table serialization having incorrect trailing whitespace (5a4c9b0)
  • increase button contrast in high contrast mode (#123) (f769642), closes #86
  • link preview decorations not showing on the correct node (16cfde3), closes #37
  • on horizontal_rule insert, append and prepend paragraph nodes as needed (#124) (bda2637), closes #26
  • toggle heading only when same level (#125) (7b5b5c1), closes #105
  • treat images as inline (#121) (00cd3ea), closes #53
  • update all keybinds to work with capslock turned on (27a785a), closes #90
  • update to Stacks 1.0.1 (#117) (b7b44bc)

0.4.2 (2022-03-04)

Features

  • add ability to pass custom validateLink method to parser (124762a)
  • add deserialization support for reference links (22e84dd), closes #29
  • add StacksEditor:image-uploader-show event (a9ac79c)

Bug Fixes

  • add aria-labels to icon-only buttons (#98) (b69c3e0)
  • add html render support for hard breaks/br tags (a360b6d)
  • add missing import reference for _stacks-mixins (#94) (af1c6c5)
  • add not-allowed cursor to the disabled editor (#100) (1933f6f)
  • always add a paragraph to the end of the doc when inserting a block element at the end (2df6573), closes #18
  • fix table insertion in the middle of text incorrectly adding trailing paragraph (84fc550)
  • fix table menu entry always manipulating the menu icon of the last initialized editor instance (cc592c1)
  • markdown-parser: do not autolink emails without the "mailto:" prefix (#85) (1a8b6cc)
  • add support for serializing node attributes to html (0a00644)
  • render html versions of blockquote, p and header tags back to markdown (746743e)

0.4.1 (2021-07-14)

Bug Fixes

  • fix Safari crashing due to unsupported use of regex negative lookbehind (2feb3b4)

0.4.0 (2021-07-13)

Features

  • add support for mark (em, strong, code, link) input rules (#2) (4814922)
  • automatically format URLs as links on paste in Rich Text mode (#72) (064ce83), closes #33

Bug Fixes

  • clean up image-upload placeholder design (12c36c2)
  • deserialization: ensure that bare urls written in markdown reserialize with correct escaping (f1c0602)

0.3.0 (2021-06-08)

⚠ BREAKING CHANGES

  • dependencies: bumps highlight.js peerDependency to breaking 11.0.x

Bug Fixes

  • rich-text: add the "Reveal spoiler" text for hidden spoilers (#73) (cb0b699), closes #30

  • serialization: escape <> characters when serializing to markdown (3d016bc)

  • dependencies: update prosemirror-highlightjs dependency (097b298)