@flogeez/angular-tiptap-editor 3.4.0 → 3.4.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/esm2022/lib/components/editor/angular-tiptap-editor.component.mjs +3 -1
  3. package/esm2022/lib/components/table-of-contents/ate-table-of-contents.component.mjs +21 -6
  4. package/esm2022/lib/components/table-of-contents/ate-toc-node.component.mjs +64 -0
  5. package/esm2022/lib/config/ate-slash-commands.config.mjs +10 -1
  6. package/esm2022/lib/config/ate-toc.config.mjs +13 -0
  7. package/esm2022/lib/i18n/ateTranslationsModel.mjs +1 -1
  8. package/esm2022/lib/i18n/de_ateTranslations.mjs +6 -1
  9. package/esm2022/lib/i18n/en_ateTranslations.mjs +6 -1
  10. package/esm2022/lib/i18n/fr_ateTranslations.mjs +6 -1
  11. package/esm2022/lib/models/ate-editor-config.model.mjs +1 -1
  12. package/esm2022/lib/models/ate-toc.model.mjs +2 -0
  13. package/esm2022/lib/node-view/ate-angular-node-view.mjs +8 -2
  14. package/esm2022/lib/node-view/ate-node-view.renderer.mjs +11 -6
  15. package/esm2022/public-api.mjs +4 -1
  16. package/fesm2022/flogeez-angular-tiptap-editor.mjs +8373 -8250
  17. package/fesm2022/flogeez-angular-tiptap-editor.mjs.map +1 -1
  18. package/lib/components/editor/angular-tiptap-editor.component.d.ts +1 -0
  19. package/lib/components/table-of-contents/ate-table-of-contents.component.d.ts +3 -9
  20. package/lib/components/table-of-contents/ate-toc-node.component.d.ts +19 -0
  21. package/lib/config/ate-slash-commands.config.d.ts +1 -1
  22. package/lib/config/ate-toc.config.d.ts +5 -0
  23. package/lib/i18n/ateTranslationsModel.d.ts +5 -0
  24. package/lib/models/ate-editor-config.model.d.ts +3 -0
  25. package/lib/models/ate-toc.model.d.ts +26 -0
  26. package/lib/node-view/ate-angular-node-view.d.ts +4 -0
  27. package/lib/services/ate-i18n.service.d.ts +9 -0
  28. package/package.json +1 -1
  29. package/public-api.d.ts +4 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,33 @@ 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), with the exception that the major version is specifically aligned with the major version of [Tiptap](https://tiptap.dev).
7
7
 
8
+ ## [3.4.2] - 2026-07-31
9
+
10
+ ### Added
11
+
12
+ - **`maxDepth` Heading Filtering (`AteTableOfContentsComponent`)**: Added `maxDepth` input (1 to 6, default: `6`) to filter extracted headings up to a specific level (e.g. H1 to H4). Supported across `AteTableOfContentsComponent`, `AteTocNodeComponent`, and `AteEditorConfig`.
13
+
14
+ ### Refactored
15
+
16
+ - **TOC Models & Configuration Architecture**: Extracted `AteTocConfig`, `AteTocItem`, and `AteTocVariant` into `lib/models/ate-toc.model.ts` and `ATE_DEFAULT_TOC_CONFIG` into `lib/config/ate-toc.config.ts`.
17
+ - **Cleaned Public Exports**: Cleaned up duplicate re-exports in `public-api.ts` to export all TOC types and configurations directly from the unified models and config modules.
18
+
19
+ ## [3.4.1] - 2026-07-31
20
+
21
+ ### Added
22
+
23
+ - **Table of Contents Slash Command & NodeView (`AteTocNodeExtension`)**: Integrated inline Table of Contents insertion via Slash Commands (`/tableOfContents` / `/toc`).
24
+ - Rendered inline inside ProseMirror using an Angular NodeView (`AteTocNodeComponent`).
25
+ - Full i18n search keyword support for English, French, and German.
26
+ - Exported `AteTocNodeComponent`, `AteTocNodeOptions`, and `getAteTocNodeExtension` for easy customization.
27
+ - **`AteAngularNodeView.attributes` Helper Signal**: Added a reactive `public attributes: Signal<Record<string, unknown>>` signal on `AteAngularNodeView` for clean, direct access to node attributes in custom Angular NodeView components (`this.attributes()['key']`).
28
+
29
+ ### Fixed
30
+
31
+ - **Angular 18 NodeView Renderer Input Syncing**: Fixed an Angular `NG0303` runtime error in `AteNodeViewRenderer` when syncing dynamic Tiptap node attributes by checking declared component inputs metadata (`ɵcmp.inputs`) before invoking `setInput()`.
32
+ - **Inline TOC Scroll Highlight Guard**: Disabled active heading scroll tracking in `AteTableOfContentsComponent` when rendered inline (`floating: false`), keeping inline TOC summaries static within the document flow.
33
+ - **Opt-in Slash Command Defaults**: Configured `tableOfContents: false` by default in `ATE_DEFAULT_SLASH_COMMANDS_CONFIG` to maintain a lightweight default slash menu while enabling easy opt-in activation.
34
+
8
35
  ## [3.4.0] - 2026-07-30
9
36
 
10
37
  ### Added