@fileverse-dev/ddoc 5.0.6 → 5.1.0

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "5.0.6",
5
+ "version": "5.1.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/fileverse/fileverse-ddocs.git"
@@ -1,20 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
-
3
- /**
4
- * TypographyPersistence consolidates fontFamily and fontSize persistence logic
5
- * into a single extension with 2 plugins.
6
- *
7
- * Node-attr syncing (storedMarks → paragraph attrs) is handled directly by the
8
- * setFontFamily/unsetFontFamily/setFontSize/unsetFontSize commands rather than
9
- * via an appendTransaction plugin, because appendTransaction's setNodeMarkup
10
- * clears storedMarks and drops other textStyle attrs like color.
11
- *
12
- * Plugins:
13
- * 1. typographyInheritance — when a new paragraph is inserted next to a styled
14
- * one, inherit fontFamily and fontSize in a single setNodeMarkup pass.
15
- * Skips trailing-node paragraphs (they inherit from the previous sibling
16
- * at creation time, but should not be overridden when the user clears them).
17
- * 2. typographyStoredMarks — when selection moves into an empty styled
18
- * paragraph, restore storedMarks for both fontFamily and fontSize at once.
19
- */
20
- export declare const TypographyPersistence: Extension<any, any>;