@flogeez/angular-tiptap-editor 2.0.1 → 2.0.2
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
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to `@flogeez/angular-tiptap-editor` will be documented in th
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.0.2] - 2026-01-18
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Peer Dependencies Optimization**: Added `@tiptap/pm` to `peerDependencies`. This ensures a single shared instance of ProseMirror across the application.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- **Slash Commands**: Migrated internal ProseMirror imports (`state`, `view`) to the official `@tiptap/pm` bridge. This aligns the library with Tiptap's recommended architecture and improves compatibility with modern bundlers.
|
|
15
|
+
|
|
8
16
|
|
|
9
17
|
## [2.0.1] - 2026-01-17
|
|
10
18
|
|
|
@@ -25,7 +25,6 @@ import { CommonModule } from '@angular/common';
|
|
|
25
25
|
import tippy, { sticky } from 'tippy.js';
|
|
26
26
|
import * as i1 from '@angular/forms';
|
|
27
27
|
import { FormsModule, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
28
|
-
import { Plugin as Plugin$1, PluginKey as PluginKey$1 } from 'prosemirror-state';
|
|
29
28
|
import { CellSelection } from '@tiptap/pm/tables';
|
|
30
29
|
|
|
31
30
|
const ResizableImage = Node$1.create({
|
|
@@ -5144,8 +5143,8 @@ class TiptapSlashCommandsComponent {
|
|
|
5144
5143
|
}
|
|
5145
5144
|
addKeyboardPlugin(ed) {
|
|
5146
5145
|
// Add a ProseMirror plugin to intercept keyboard events
|
|
5147
|
-
const keyboardPlugin = new Plugin
|
|
5148
|
-
key: new PluginKey
|
|
5146
|
+
const keyboardPlugin = new Plugin({
|
|
5147
|
+
key: new PluginKey("slash-commands-keyboard"),
|
|
5149
5148
|
props: {
|
|
5150
5149
|
handleKeyDown: (view, event) => {
|
|
5151
5150
|
// Only handle if menu is active
|