@fileverse-dev/ddoc 5.0.7 → 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/dist/headless-editor-utils.es.js +1 -1
- package/dist/{index-D4hYioav.mjs → index-mGcKslYf.mjs} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/{markdown-source-pane-DslilGqY.mjs → markdown-source-pane-Czkf5b3H.mjs} +1 -1
- package/dist/package/extensions/caret-marks/caret-marks.d.ts +13 -0
- package/dist/package/extensions/caret-marks/caret-style.d.ts +24 -0
- package/dist/package/extensions/caret-marks/dispatch-context.d.ts +32 -0
- package/dist/package/extensions/caret-marks/index.d.ts +3 -0
- package/dist/package/extensions/caret-marks/split-declaration.d.ts +11 -0
- package/dist/package/extensions/caret-marks/test-helpers.d.ts +72 -0
- package/dist/{split-view-toolbar-BGeKurwZ.mjs → split-view-toolbar-hec3sLWd.mjs} +1 -1
- package/dist/{use-headless-editor-CPt0mRmF.mjs → use-headless-editor-CZD1x_Re.mjs} +13605 -13436
- package/package.json +1 -1
- package/dist/package/extensions/typography-persistence.d.ts +0 -20
package/package.json
CHANGED
|
@@ -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>;
|