Skip to content

Latest commit

 

History

History
406 lines (233 loc) · 11.2 KB

CHANGELOG.md

File metadata and controls

406 lines (233 loc) · 11.2 KB

CHANGELOG

All notable changes to this project will be documented in this file.

Tags

  • Features
  • Bug Fixes
  • Performance Improvements
  • Dependency Updates
  • Breaking Changes
  • Enhancements
  • Documentation
  • Internal
  • Refactor

v12.0.0 (2024-11-28)

Breaking Changes

  • requires angular 19 or greater (64193b0)
  • internal: refactor inputs and outputs to be signals (8bc30cb)

Migration

  • Everything is now standalone, and NgxTiptapModule is no longer needed and has been removed. Manually import the following components wherever required:

    • TiptapEditorDirective
    • TiptapFloatingMenuDirective
    • TiptapBubbleMenuDirective
    • TiptapDraggableDirective
    • TiptapNodeViewContentDirective
  • AngularNodeViewComponent methods are now signals.

    An example of updating attributes in a custom node view:

    Before

    this.updateAttributes({
      count: this.node.attrs['count'] + 1,
    });

    After

    const updateAttributes = this.updateAttributes();
    updateAttributes({
      count: this.node().attrs['count'] + 1,
    });

For more details, refer to the README.

v11.1.0 (2024-09-17)

Features

  • add support for attrs in AngularNodeViewRenderer (476081e)
  • improve selection behaviour in custom nodes (476081e)

Bug Fixes

  • fix types mismatch with tiptap v2.7 (476081e)

v11.0.0 (2024-06-19)

Breaking Changes

v10.1.0 (2024-03-06)

Features

  • add support for updateDelay prop in bubble menu (0680e39)

v10.0.0 (2024-03-05)

Breaking Changes

v9.1.1 (2023-12-11)

Bug Fixes

  • fix view not updated on selection with ChangeDetectionStrategy#OnPush (681dc85)

v9.1.0 (2023-11-03)

Features

  • enable hierarchical injectors in AngularRenderer (93ec574)

v9.0.2 (2023-07-24)

Bug Fixes

  • update selected input in nodeview with text selection (0ec762d)

v9.0.1 (2023-07-17)

Bug Fixes

  • fix trigger ChangeDetection in custom Nodeviews using updateProps (4213560)

v9.0.0 (2023-07-01)

Breaking Changes

v8.0.0 (2023-04-26)

Features

  • update to tiptap v2 stable (432f4d2)

v7.0.0 (2022-12-22)

Bug Fixes

  • fixes ngModelChange is invoked during render without any changes to the model value (1fcc867)

Dependency Updates

  • update prosemirror-* peerDependencies (733aa55)
  • update @tiptap/* peerDependencies (03d738f)
  • update devDependencies (b8b1733)

Breaking Changes

  • requires angular 15 or greater (ea34042)
  • titap commands like setContent, clearContent requires emitUpdate flag to be passed (1fcc867)

For Example,

Before

editor.commands.setContent('Hello World!');

After

editor.commands.setContent('Hello World!', true);

v6.0.0 (2022-06-27)

Breaking Changes

  • requires angular 14 or greater (e7f43bf)

v5.0.0 (2022-05-07)

Bug Fixes

  • don't destroy editor from the directive (c165cc6)
  • run changeDetection manually after view init (65f5c1e)

Breaking Changes

  • Editor should be destroyed manually
import { Component, OnDestroy } from '@angular/core';
import { Editor } from '@tiptap/core';

@Component({
  selector: 'app-root',
})
export class AppComponent implements OnDestroy {
  editor = new Editor();

  ngOnDestroy(): void {
    this.editor.destroy();
  }
}

v4.0.4 (2022-01-18)

Bug Fixes

  • render json inputs correctly (3848f59)

Dependency Updates

v4.0.3 (2022-01-13)

Bug Fixes

  • revert using viewContainerRef instead of applicationRef to create components (bb34ce7)

Dependency Updates

v4.0.2 (2022-01-11)

Refactor

  • use viewContainerRef instead of applicationRef to create components (454be3e)

Dependency Updates

Internal

  • replace chalk with picocolors (be8b0f8)
  • remove unused imports (b73aa97)

v4.0.1 (2021-12-08)

Bug Fixes

  • allow setting empty string to ngModel (89c510e)

Dependency Updates

  • update peerDependencies (1489f44)

Internal

v4.0.0 (2021-11-24)

Breaking Changes

v3.0.4 (2021-09-28)

Bug Fixes

  • destory component when nodeview is removed (8ed4db8)

Dependency Updates

  • update peerDependencies (bdc9db7)

v3.0.3 (2021-08-13)

Dependency Updates

  • update tiptap dependencies (19366aa)
  • update angular dependencies (a1832b4)

v3.0.2 (2021-07-31)

Dependency Updates

  • update tiptap dependencies (94f02da)

v3.0.1 (2021-07-18)

Bug Fixes

  • make AngularRenderer more generic (34d5c70)

v3.0.0 (2021-07-17)

Breaking Changes

  • update Input decorators for AngularNodeViewComponent component (8b9bed1)

Before

this.props.selected;
this.props.updatedAttributes;

After

this.selected;
this.updateAttributes;

v2.1.2 (2021-07-14)

Bug Fixes

  • set correct styles for editable component (2b53819)

v2.1.1 (2021-07-13)

Bug Fixes

  • use correct peerDependencies (e48cf70)

v2.1.0 (2021-05-30)

Features

  • add deleteNode method to component prop (7a170a0)

Bug Fixes

  • set correct semver for tiptap packages (5b08331)
  • move contentDOM on editor update (c5f71d9)
  • move all child nodes within EditorContent (883798e)
  • add missing @angular/forms peerDependency (467619e)

Dependency Updates

  • update peerDependencies (52307d4)

v2.0.0 (2021-05-17)

Breaking Changes

v1.4.1 (2021-05-16)

Bug Fixes

  • detectChanges after mounting contentDOMElement (cc1f8da)

Dependency Updates

  • update tiptap dependencies (54ef857)

v1.4.0 (2021-05-13)

Features

  • add AngularRenderer to render custom components (feaa118), (8ec978b)
  • add tiptapNodeViewContent to add contenteditable element inside node views (8d45055)

v1.3.0 (2021-05-11)

Features

  • support dragging nodeviews (55c70c0)

v1.2.3 (2021-05-10)

Bug Fixes

Dependency Updates

  • update dependencies and devDependencies (cfb68de)

Documentation

  • update examples to use StarterKit instead of defaultExtensions (92c93c9)

v1.2.2 (2021-05-04)

Bug Fixes

  • attach stopEvent only if provided (d385e10)

Internal

v1.2.1 (2021-05-04)

Bug Fixes

  • fix typo in floating-menu directive selector (99775a0)

v1.2.0 (2021-05-03)

Features

  • add AngularNodeViewRenderer to render angular components as nodeViews (ebb7851), (4e9911f)

v1.1.0 (2021-05-03)

Features

  • add support for floating menu and bubble menu (1a7eded)

v1.0.1 (2021-05-02)

Documentation

  • add stackblitz demo link (ae836fe)
  • update usage guide, install instruction

Internal

  • enable prod mode for builds (ed30e81)

v1.0.0 (2021-05-02)

Initial Release: Angular bindings for Tiptap v2