Skip to content

Releases: Patternslib/pat-tiptap

Release 4.4.0

11 Aug 15:31
Compare
Choose a tag to compare

4.4.0 (2022-08-11)

Features

  • Add utils.is_url to test if a string is a URL. (28e197f)

  • Link panel: Try to correct invalid URLs. (72c25fd)If a URL was entered in the link panel but the protocol part was
    forgotten, prepend https:// to the URL.
    Relative URLs are kept as-is.

Maintenance

Release 4.3.0

17 Jul 21:41
Compare
Choose a tag to compare

4.3.0 (2022-07-17)

Features

  • Close context menu on ESC and outside click. (6de22c2)Always close context menu (link, mentions, tagging) when clicked outside or
    escape key was pressed.

  • When editing links and closing the link edit panel restore the cursor position to the position where we left. (2b00839)

Bug Fixes

  • Align to changes in pat-modal where pat-modal-ready is thrown only once and not on the initiating button but on the injected modal. (7011525)

  • Correct import of logger. (ee290e4)

  • Do not open the link context menu after opening the link editing panel. (f7d9e95)

  • Prevent double initialization of link and suggestion context menu patterns. (fbda4f6)

Maintenance

  • Demo: Add a link to the demo. (b424f19)

  • Demo: Mark focused element in red. (c969ade)

Release 4.2.0

11 Jul 12:56
Compare
Choose a tag to compare

4.2.0 (2022-07-11)

Features

  • Always include undo/redo functionality. (870b22c)This allows to use undo/redo via keyboard shortcuts even if undo/redo buttons are not shown.

Maintenance

  • Remove dependency on starter-kit and directly depend on all necessary extensions. Upgrade extensions. (0862192)

  • Upgrade @tiptap/core. (1aa4688)

  • Upgrade to @patternslib/dev 2.3.0. (b55cbc4)

Release 4.1.0

27 Jun 22:02
Compare
Choose a tag to compare

4.1.0 (2022-06-27)

Bug Fixes

  • Allow to share one toolbar with multiple tiptap instances. (86022a7)Fix an issue with a toolbar which is shared among multiple editor
    instances would invoke the command on each instance.
    Now you have to focus at least once the editor so that the toolbar will
    issue a command on it.
    When clicking a toolbar button, the last focused texteditor instance is
    used to issue to command on.
    To make sure that the toolbar will always invoke an action even without
    first clicking into a tiptap contenteditable area use pat-autofocus.

  • Fix demo index-many.html with many tiptap instances to use the correct bundle JavaScript. (6ca04b1)

  • Use known good versions for @tiptap until current issues with newer beta releases are resolved. (c9d5716)Newer versions break with: "RangeError: Adding different instances of a keyed plugin (plugin$)"

Maintenance

  • Upgrade to @patternslib/dev 2.2.0 and adapt module federation config. (603f12c)

Release 4.0.0

21 Jun 07:50
Compare
Choose a tag to compare

4.0.0 (2022-06-21)

Bug Fixes

  • Close the suggestion popup when clicking outside. (ca75099)

  • Update demo for correct bundle since we extend @patternslib/dev webpack config. (6c21285)

Maintenance

  • Remove console.log message in tests. (b82508c)

Release 4.0.0-alpha.1

15 Jun 07:17
Compare
Choose a tag to compare
Release 4.0.0-alpha.1 Pre-release
Pre-release

4.0.0-alpha.1 (2022-06-15)

Breaking Changes

  • Depend on @patternslib/dev and extend config from there. (c7989ac)

  • Extend babel config from @patternslib/dev. (b20800e)

  • Extend commitlint config from @patternslib/dev. (96ef27e)

  • Extend eslint config from @patternslib/dev. (6173108)

  • Extend jest config from @patternslib/dev. (f80ad63)

  • Extend Makefile from @patternslib/dev. (37e2c0c)

  • Extend prettier config from @patternslib/dev. (36daaf8)

  • Extend release-it config from @patternslib/dev. (17cea4b)

  • Extend webpack config from @patternslib/dev. (5c19f1a)

Maintenance

  • Build: Update GitHub actions setup. (a516f9b)

Release 4.0.0-alpha.0

14 Jun 15:04
Compare
Choose a tag to compare
Release 4.0.0-alpha.0 Pre-release
Pre-release

4.0.0-alpha.0 (2022-06-14)

Features

  • Build: Build module federation enabled bundles. (f7012d3)

Maintenance

  • Build: @patternslib/patternslib as peerDependency. (7dd2328)Move @patternslib/patternslib dependency to peerDependencies and set to any version to avoid version conflicts when this package is a dependency of another Patternslib based package.

  • Build: Add @patternslib/patternslib also to devDependencies so that we get it installed. (0e96688)

  • build: Add build:dev script to package.json to create a unminified development build. (d7a0cb2)

  • Build: Add keyword "patternslib" to package.json. (35e1714)

  • Build: Extend jest.config.js from Patternslib and reuse their setupTests file too. (f772a66)

  • Build: Makefile - Allow OTP when publishing to npm, build bundles and publish them on GitHub, add pre-release targets. (1a376cc)

  • Build: Remove dependency regenerator-runtime except from test setup. The async/await runtime handling is already built-in in current Babel. (c88b735)

  • Build: Upgrade and cleanup dependencies. (0558bfc)

  • Make core a little more efficient and don't overuse optional chaining where it's not needed. (f10b94a)

Release 3.4.1

24 Apr 21:45
Compare
Choose a tag to compare

3.4.1 (2022-04-24)

Bug Fixes

  • Suggestion: Do not break when trying to set a item active, but no results are available. (d222ebd)

  • Suggestion: Get whole suggestion text also when copying. (bdd12ac)
    Always get the text starting from the suggestion character to the end.
    Previously when copying a suggestion text into the text area, the text wasn't recognized and not used to filter down the items.

Release 3.4.0

21 Apr 14:44
Compare
Choose a tag to compare

3.4.0 (2022-04-21)

Features

  • Suggestion: Allow accessibility attributes on the suggestion link. (2907d97)

Bug Fixes

  • Suggestion: Use data-title to for the link's text. This frees up data-id which we need to add the suggestion id which can then be used by the backend to identify the term. (6cd6669)

Maintenance

Release 3.3.0

19 Apr 07:50
Compare
Choose a tag to compare

3.3.0 (2022-04-19)

Features

  • Suggestions: Allow data-NAME as attribute on the mention-link. (e13397e)

Bug Fixes

  • Suggestions: Use the closest element as the one where attributes are copied from. e.target is not necessarily the anchor itself but can be any element within the anchor. (eadde22)

Maintenance

  • Suggestions: Enable the data-attribute copying test. It works in the meantime. (7735af1)

  • Suggestions: Test to not copy disallowed attributes. (62c4df6)