@notectl/core 2.2.3 → 2.2.6
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/README.md +12 -0
- package/dist/chunks/AlignmentPlugin-DeD4C4EP.mjs +2 -0
- package/dist/chunks/AlignmentPlugin-DeD4C4EP.mjs.map +1 -0
- package/dist/chunks/{BidiIsolationPlugin-Bm3h9J15.mjs → BidiIsolationPlugin-BddRbDCN.mjs} +2 -2
- package/dist/chunks/{BidiIsolationPlugin-Bm3h9J15.mjs.map → BidiIsolationPlugin-BddRbDCN.mjs.map} +1 -1
- package/dist/chunks/{BlockquotePlugin-CxrCA0vY.mjs → BlockquotePlugin-4V7KV_Sb.mjs} +2 -2
- package/dist/chunks/{BlockquotePlugin-CxrCA0vY.mjs.map → BlockquotePlugin-4V7KV_Sb.mjs.map} +1 -1
- package/dist/chunks/{CaretNavigationPlugin-Bb7W_FMg.mjs → CaretNavigationPlugin-C6XBwp0N.mjs} +2 -2
- package/dist/chunks/{CaretNavigationPlugin-Bb7W_FMg.mjs.map → CaretNavigationPlugin-C6XBwp0N.mjs.map} +1 -1
- package/dist/chunks/{CodeBlockPlugin-CcB0WaIz.mjs → CodeBlockPlugin-3V2K3RBe.mjs} +2 -2
- package/dist/chunks/{CodeBlockPlugin-CcB0WaIz.mjs.map → CodeBlockPlugin-3V2K3RBe.mjs.map} +1 -1
- package/dist/chunks/{ColorGrid-CXRdpP_n.mjs → ColorGrid-DPNiXxpD.mjs} +2 -2
- package/dist/chunks/{ColorGrid-CXRdpP_n.mjs.map → ColorGrid-DPNiXxpD.mjs.map} +1 -1
- package/dist/chunks/{ColorPickerPopup-C_74bqid.mjs → ColorPickerPopup-lcf3jS6G.mjs} +2 -2
- package/dist/chunks/{ColorPickerPopup-C_74bqid.mjs.map → ColorPickerPopup-lcf3jS6G.mjs.map} +1 -1
- package/dist/chunks/FontPlugin-DQMj65Bc.mjs +2 -0
- package/dist/chunks/{FontPlugin-1VYDwETg.mjs.map → FontPlugin-DQMj65Bc.mjs.map} +1 -1
- package/dist/chunks/{FontSizePlugin-L1uDVsKY.mjs → FontSizePlugin-9StCjEfN.mjs} +2 -2
- package/dist/chunks/{FontSizePlugin-L1uDVsKY.mjs.map → FontSizePlugin-9StCjEfN.mjs.map} +1 -1
- package/dist/chunks/{FormulaPlugin-66Cc9sH2.mjs → FormulaPlugin-CV5VUxkb.mjs} +2 -2
- package/dist/chunks/{FormulaPlugin-66Cc9sH2.mjs.map → FormulaPlugin-CV5VUxkb.mjs.map} +1 -1
- package/dist/chunks/GapCursorPlugin-Zvxjnr82.mjs +2 -0
- package/dist/chunks/{GapCursorPlugin-B29ieXel.mjs.map → GapCursorPlugin-Zvxjnr82.mjs.map} +1 -1
- package/dist/chunks/{HeadingPlugin-SICF6Tm0.mjs → HeadingPlugin-BuGoM9Rz.mjs} +2 -2
- package/dist/chunks/{HeadingPlugin-SICF6Tm0.mjs.map → HeadingPlugin-BuGoM9Rz.mjs.map} +1 -1
- package/dist/chunks/{HighlightPlugin-B3b_qe68.mjs → HighlightPlugin-C6pHifVz.mjs} +2 -2
- package/dist/chunks/{HighlightPlugin-B3b_qe68.mjs.map → HighlightPlugin-C6pHifVz.mjs.map} +1 -1
- package/dist/chunks/HorizontalRulePlugin-0FjHPZuA.mjs +2 -0
- package/dist/chunks/{HorizontalRulePlugin-BrFlrpmb.mjs.map → HorizontalRulePlugin-0FjHPZuA.mjs.map} +1 -1
- package/dist/chunks/{ImagePlugin-eRVtFFou.mjs → ImagePlugin-KpkuE2LH.mjs} +2 -2
- package/dist/chunks/{ImagePlugin-eRVtFFou.mjs.map → ImagePlugin-KpkuE2LH.mjs.map} +1 -1
- package/dist/chunks/{InlineCodePlugin-Cj1EZ3x2.mjs → InlineCodePlugin-DMr4O7c7.mjs} +2 -2
- package/dist/chunks/{InlineCodePlugin-Cj1EZ3x2.mjs.map → InlineCodePlugin-DMr4O7c7.mjs.map} +1 -1
- package/dist/chunks/{InlineStyleMarkSpec-4R6DC7ij.mjs → InlineStyleMarkSpec-C6LJT7kp.mjs} +2 -2
- package/dist/chunks/{InlineStyleMarkSpec-4R6DC7ij.mjs.map → InlineStyleMarkSpec-C6LJT7kp.mjs.map} +1 -1
- package/dist/chunks/LinkPlugin-DvZ3MPgL.mjs +2 -0
- package/dist/chunks/{LinkPlugin-B_ysjORS.mjs.map → LinkPlugin-DvZ3MPgL.mjs.map} +1 -1
- package/dist/chunks/{ListPlugin-C0BV8CnQ.mjs → ListPlugin-2yl6KiTK.mjs} +2 -2
- package/dist/chunks/{ListPlugin-C0BV8CnQ.mjs.map → ListPlugin-2yl6KiTK.mjs.map} +1 -1
- package/dist/chunks/PluginHelpers-KDuTlmXm.mjs +2 -0
- package/dist/chunks/{PluginHelpers-D4quRJ5a.mjs.map → PluginHelpers-KDuTlmXm.mjs.map} +1 -1
- package/dist/chunks/{PopupManager-CyOfZUab.mjs → PopupManager-DUtaK3WX.mjs} +2 -2
- package/dist/chunks/{PopupManager-CyOfZUab.mjs.map → PopupManager-DUtaK3WX.mjs.map} +1 -1
- package/dist/chunks/{PopupPositioning-DtUrY9bh.mjs → PopupPositioning-BB97-__N.mjs} +2 -2
- package/dist/chunks/{PopupPositioning-DtUrY9bh.mjs.map → PopupPositioning-BB97-__N.mjs.map} +1 -1
- package/dist/chunks/PrintPlugin-DyIZDY3Q.mjs +2 -0
- package/dist/chunks/PrintPlugin-DyIZDY3Q.mjs.map +1 -0
- package/dist/chunks/{PrintTypes-WdtgSj74.mjs → PrintTypes-CxU69qu3.mjs} +3 -2
- package/dist/chunks/PrintTypes-CxU69qu3.mjs.map +1 -0
- package/dist/chunks/{SimpleMark-Bdqjcz0G.mjs → SimpleMark-CaQtFAau.mjs} +2 -2
- package/dist/chunks/{SimpleMark-Bdqjcz0G.mjs.map → SimpleMark-CaQtFAau.mjs.map} +1 -1
- package/dist/chunks/{SmartPastePlugin-BhkoH03E.mjs → SmartPastePlugin-Bi_wpTCV.mjs} +2 -2
- package/dist/chunks/{SmartPastePlugin-BhkoH03E.mjs.map → SmartPastePlugin-Bi_wpTCV.mjs.map} +1 -1
- package/dist/chunks/StrikethroughPlugin-BLKDRWtf.mjs +2 -0
- package/dist/chunks/{StrikethroughPlugin-DRuwEZhu.mjs.map → StrikethroughPlugin-BLKDRWtf.mjs.map} +1 -1
- package/dist/chunks/StyleRuntime-BFKu52mS.mjs +2 -0
- package/dist/chunks/StyleRuntime-BFKu52mS.mjs.map +1 -0
- package/dist/chunks/{SuperSubPlugin-IZ_x8GS-.mjs → SuperSubPlugin-DVP7VnIz.mjs} +2 -2
- package/dist/chunks/{SuperSubPlugin-IZ_x8GS-.mjs.map → SuperSubPlugin-DVP7VnIz.mjs.map} +1 -1
- package/dist/chunks/{TablePlugin-CRp4qSZE.mjs → TablePlugin-BTH9VRZq.mjs} +2 -2
- package/dist/chunks/{TablePlugin-CRp4qSZE.mjs.map → TablePlugin-BTH9VRZq.mjs.map} +1 -1
- package/dist/chunks/TextColorPlugin-CEfZQ6Md.mjs +2 -0
- package/dist/chunks/{TextColorPlugin-CViEiYZk.mjs.map → TextColorPlugin-CEfZQ6Md.mjs.map} +1 -1
- package/dist/chunks/TextDirectionPlugin-DHB88HKf.mjs +2 -0
- package/dist/chunks/TextDirectionPlugin-DHB88HKf.mjs.map +1 -0
- package/dist/chunks/{TextFormattingPlugin-CpyZgtLi.mjs → TextFormattingPlugin-Cubp3e7f.mjs} +2 -2
- package/dist/chunks/{TextFormattingPlugin-CpyZgtLi.mjs.map → TextFormattingPlugin-Cubp3e7f.mjs.map} +1 -1
- package/dist/chunks/{ToolbarPlugin-B5UUc6dY.mjs → ToolbarPlugin-DVGrFf8v.mjs} +2 -2
- package/dist/chunks/{ToolbarPlugin-B5UUc6dY.mjs.map → ToolbarPlugin-DVGrFf8v.mjs.map} +1 -1
- package/dist/chunks/{VideoPlugin-mXIDODzC.mjs → VideoPlugin-B3uf1Dwp.mjs} +2 -2
- package/dist/chunks/{VideoPlugin-mXIDODzC.mjs.map → VideoPlugin-B3uf1Dwp.mjs.map} +1 -1
- package/dist/chunks/full-BBl7mvwH.mjs +2 -0
- package/dist/chunks/{full-CHkwduuY.mjs.map → full-BBl7mvwH.mjs.map} +1 -1
- package/dist/chunks/minimal-CtnR4dqp.mjs +2 -0
- package/dist/chunks/{minimal-D5v-raei.mjs.map → minimal-CtnR4dqp.mjs.map} +1 -1
- package/dist/chunks/src-C89Cw7ni.mjs +2 -0
- package/dist/chunks/{src-gVRDR_79.mjs.map → src-C89Cw7ni.mjs.map} +1 -1
- package/dist/editor/NotectlEditor.d.ts +22 -3
- package/dist/editor/NotectlEditor.d.ts.map +1 -1
- package/dist/full.mjs +1 -1
- package/dist/notectl-core.mjs +1 -1
- package/dist/notectl-core.umd.js +1 -1
- package/dist/notectl-core.umd.js.map +1 -1
- package/dist/plugins/alignment/AlignmentPlugin.d.ts +5 -0
- package/dist/plugins/alignment/AlignmentPlugin.d.ts.map +1 -1
- package/dist/plugins/alignment.mjs +1 -1
- package/dist/plugins/bidi-isolation.mjs +1 -1
- package/dist/plugins/blockquote.mjs +1 -1
- package/dist/plugins/caret-navigation.mjs +1 -1
- package/dist/plugins/code-block.mjs +1 -1
- package/dist/plugins/font-size.mjs +1 -1
- package/dist/plugins/font.mjs +1 -1
- package/dist/plugins/formula.mjs +1 -1
- package/dist/plugins/gap-cursor.mjs +1 -1
- package/dist/plugins/heading.mjs +1 -1
- package/dist/plugins/highlight.mjs +1 -1
- package/dist/plugins/horizontal-rule.mjs +1 -1
- package/dist/plugins/image.mjs +1 -1
- package/dist/plugins/inline-code.mjs +1 -1
- package/dist/plugins/link.mjs +1 -1
- package/dist/plugins/list.mjs +1 -1
- package/dist/plugins/print/PrintHostStyles.d.ts +50 -0
- package/dist/plugins/print/PrintHostStyles.d.ts.map +1 -0
- package/dist/plugins/print/PrintPlugin.d.ts.map +1 -1
- package/dist/plugins/print/PrintServiceImpl.d.ts +72 -3
- package/dist/plugins/print/PrintServiceImpl.d.ts.map +1 -1
- package/dist/plugins/print/PrintStyleCollector.d.ts +150 -21
- package/dist/plugins/print/PrintStyleCollector.d.ts.map +1 -1
- package/dist/plugins/print/StaticHostMarker.d.ts +18 -0
- package/dist/plugins/print/StaticHostMarker.d.ts.map +1 -0
- package/dist/plugins/print.mjs +1 -1
- package/dist/plugins/shared/PluginHelpers.d.ts +8 -0
- package/dist/plugins/shared/PluginHelpers.d.ts.map +1 -1
- package/dist/plugins/shared.mjs +1 -1
- package/dist/plugins/smart-paste.mjs +1 -1
- package/dist/plugins/strikethrough.mjs +1 -1
- package/dist/plugins/super-sub.mjs +1 -1
- package/dist/plugins/table/TableNodeViews.d.ts.map +1 -1
- package/dist/plugins/table.mjs +1 -1
- package/dist/plugins/text-color.mjs +1 -1
- package/dist/plugins/text-direction/TextDirectionPlugin.d.ts +0 -1
- package/dist/plugins/text-direction/TextDirectionPlugin.d.ts.map +1 -1
- package/dist/plugins/text-direction.mjs +1 -1
- package/dist/plugins/text-formatting.mjs +1 -1
- package/dist/plugins/toolbar.mjs +1 -1
- package/dist/plugins/video.mjs +1 -1
- package/dist/presets/full.mjs +1 -1
- package/dist/presets/minimal.mjs +1 -1
- package/dist/presets.mjs +1 -1
- package/dist/style/StyleRuntime.d.ts +7 -0
- package/dist/style/StyleRuntime.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/chunks/AlignmentPlugin-h6sx-yIf.mjs +0 -2
- package/dist/chunks/AlignmentPlugin-h6sx-yIf.mjs.map +0 -1
- package/dist/chunks/FontPlugin-1VYDwETg.mjs +0 -2
- package/dist/chunks/GapCursorPlugin-B29ieXel.mjs +0 -2
- package/dist/chunks/HorizontalRulePlugin-BrFlrpmb.mjs +0 -2
- package/dist/chunks/LinkPlugin-B_ysjORS.mjs +0 -2
- package/dist/chunks/PluginHelpers-D4quRJ5a.mjs +0 -2
- package/dist/chunks/PrintPlugin-CXDFFzWB.mjs +0 -2
- package/dist/chunks/PrintPlugin-CXDFFzWB.mjs.map +0 -1
- package/dist/chunks/PrintTypes-WdtgSj74.mjs.map +0 -1
- package/dist/chunks/StrikethroughPlugin-DRuwEZhu.mjs +0 -2
- package/dist/chunks/StyleRuntime-BAutwDZT.mjs +0 -2
- package/dist/chunks/StyleRuntime-BAutwDZT.mjs.map +0 -1
- package/dist/chunks/TextColorPlugin-CViEiYZk.mjs +0 -2
- package/dist/chunks/TextDirectionPlugin-CQGkaS2s.mjs +0 -2
- package/dist/chunks/TextDirectionPlugin-CQGkaS2s.mjs.map +0 -1
- package/dist/chunks/full-CHkwduuY.mjs +0 -2
- package/dist/chunks/minimal-D5v-raei.mjs +0 -2
- package/dist/chunks/src-gVRDR_79.mjs +0 -2
|
@@ -35,6 +35,11 @@ export declare class AlignmentPlugin implements Plugin {
|
|
|
35
35
|
* type (e.g. paragraph → heading) via `setBlockType`, which replaces attrs.
|
|
36
36
|
*/
|
|
37
37
|
private registerMiddleware;
|
|
38
|
+
/**
|
|
39
|
+
* Applies `alignment` to every alignable block in the current selection in
|
|
40
|
+
* a single transaction. A multi-block selection aligns all of its blocks,
|
|
41
|
+
* not just the anchor; non-alignable blocks in the range are left untouched.
|
|
42
|
+
*/
|
|
38
43
|
private setAlignment;
|
|
39
44
|
private isNonDefaultAlignment;
|
|
40
45
|
private isAlignable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlignmentPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/alignment/AlignmentPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAKpE,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"AlignmentPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/alignment/AlignmentPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAKpE,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAS1D,OAAO,EAEN,KAAK,eAAe,EAEpB,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,eAAe;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAC;IAC/C,mHAAmH;IACnH,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,wFAAwF;IACxF,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC;CAClC;AAUD,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAQpE,CAAC;AAIF,qBAAa,eAAgB,YAAW,MAAM;IAC7C,QAAQ,CAAC,EAAE,eAAe;IAC1B,QAAQ,CAAC,IAAI,eAAe;IAC5B,QAAQ,CAAC,QAAQ,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,cAAc,CAAuB;gBAEjC,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC;IAQvC,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBjD;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,iBAAiB;IAYzB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IA4B1B;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAwBpB,OAAO,CAAC,qBAAqB;IAQ7B,OAAO,CAAC,WAAW;CAInB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as s,n,r as a,t as i}from"../chunks/AlignmentPlugin-
|
|
1
|
+
import{i as s,n,r as a,t as i}from"../chunks/AlignmentPlugin-DeD4C4EP.mjs";export{i as ALIGNMENT_ICONS,a as ALIGNMENT_LOCALE_EN,n as AlignmentPlugin,s as loadAlignmentLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,r as i,t as o}from"../chunks/BidiIsolationPlugin-
|
|
1
|
+
import{n as s,r as i,t as o}from"../chunks/BidiIsolationPlugin-BddRbDCN.mjs";export{s as BIDI_ISOLATION_LOCALE_EN,o as BidiIsolationPlugin,i as loadBidiIsolationLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as o,r as s,t as r}from"../chunks/BlockquotePlugin-
|
|
1
|
+
import{n as o,r as s,t as r}from"../chunks/BlockquotePlugin-4V7KV_Sb.mjs";export{o as BLOCKQUOTE_LOCALE_EN,r as BlockquotePlugin,s as loadBlockquoteLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as a,r,t as s}from"../chunks/CaretNavigationPlugin-
|
|
1
|
+
import{n as a,r,t as s}from"../chunks/CaretNavigationPlugin-C6XBwp0N.mjs";export{a as CARET_NAVIGATION_LOCALE_EN,s as CaretNavigationPlugin,r as loadCaretNavigationLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,i as a,n as o,o as m,r,t as i}from"../chunks/CodeBlockPlugin-
|
|
1
|
+
import{a as s,i as a,n as o,o as m,r,t as i}from"../chunks/CodeBlockPlugin-3V2K3RBe.mjs";import{c as n,i as p,n as t,o as c}from"../chunks/XmlSupport-BYiRwlkK.mjs";export{o as CODE_BLOCK_LOCALE_EN,s as CODE_BLOCK_SERVICE_KEY,i as CodeBlockPlugin,n as JAVA_LANGUAGE,c as JSON_LANGUAGE,a as RegexTokenizer,m as SYNTAX_HIGHLIGHTER_SERVICE_KEY,p as TYPESCRIPT_LANGUAGE,t as XML_LANGUAGE,r as loadCodeBlockLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,r as n,t as o}from"../chunks/FontSizePlugin-
|
|
1
|
+
import{n as s,r as n,t as o}from"../chunks/FontSizePlugin-9StCjEfN.mjs";export{s as FONT_SIZE_LOCALE_EN,o as FontSizePlugin,n as loadFontSizeLocale};
|
package/dist/plugins/font.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,r as n,t as o}from"../chunks/FontPlugin-
|
|
1
|
+
import{n as s,r as n,t as o}from"../chunks/FontPlugin-DQMj65Bc.mjs";export{s as FONT_LOCALE_EN,o as FontPlugin,n as loadFontLocale};
|
package/dist/plugins/formula.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,c as a,i as o,n as r,o as m,r as i,s as n,t}from"../chunks/FormulaPlugin-
|
|
1
|
+
import{a as s,c as a,i as o,n as r,o as m,r as i,s as n,t}from"../chunks/FormulaPlugin-CV5VUxkb.mjs";export{n as DEFAULT_FORMULA_KEYMAP,r as FORMULA_LOCALE_EN,t as FormulaPlugin,s as MATHML_ATTRS,m as MATHML_TAGS,a as buildMathML,o as latexToMathML,i as loadFormulaLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as r}from"../chunks/GapCursorPlugin-
|
|
1
|
+
import{t as r}from"../chunks/GapCursorPlugin-Zvxjnr82.mjs";export{r as GapCursorPlugin};
|
package/dist/plugins/heading.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as s}from"../chunks/BlockTypePickerRegistry-BTET9jM-.mjs";import{n as r,r as i,t as m}from"../chunks/HeadingPlugin-
|
|
1
|
+
import{t as s}from"../chunks/BlockTypePickerRegistry-BTET9jM-.mjs";import{n as r,r as i,t as m}from"../chunks/HeadingPlugin-BuGoM9Rz.mjs";export{s as BlockTypePickerRegistry,r as HEADING_LOCALE_EN,m as HeadingPlugin,i as loadHeadingLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,r as i,t as r}from"../chunks/HighlightPlugin-
|
|
1
|
+
import{n as s,r as i,t as r}from"../chunks/HighlightPlugin-C6pHifVz.mjs";export{s as HIGHLIGHT_LOCALE_EN,r as HighlightPlugin,i as loadHighlightLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as o,r,t as s}from"../chunks/HorizontalRulePlugin-
|
|
1
|
+
import{n as o,r,t as s}from"../chunks/HorizontalRulePlugin-0FjHPZuA.mjs";export{o as HORIZONTAL_RULE_LOCALE_EN,s as HorizontalRulePlugin,r as loadHorizontalRuleLocale};
|
package/dist/plugins/image.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,i as s,n as m,r,t as i}from"../chunks/ImagePlugin-
|
|
1
|
+
import{a,i as s,n as m,r,t as i}from"../chunks/ImagePlugin-KpkuE2LH.mjs";export{m as DEFAULT_IMAGE_KEYMAP,s as IMAGE_LOCALE_EN,r as IMAGE_UPLOAD_SERVICE,i as ImagePlugin,a as loadImageLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n,r as s,t as o}from"../chunks/InlineCodePlugin-
|
|
1
|
+
import{n,r as s,t as o}from"../chunks/InlineCodePlugin-DMr4O7c7.mjs";export{n as INLINE_CODE_LOCALE_EN,o as InlineCodePlugin,s as loadInlineCodeLocale};
|
package/dist/plugins/link.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,r as n,t as r}from"../chunks/LinkPlugin-
|
|
1
|
+
import{n as s,r as n,t as r}from"../chunks/LinkPlugin-DvZ3MPgL.mjs";export{s as LINK_LOCALE_EN,r as LinkPlugin,n as loadLinkLocale};
|
package/dist/plugins/list.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,r,t}from"../chunks/ListPlugin-
|
|
1
|
+
import{n as s,r,t}from"../chunks/ListPlugin-2yl6KiTK.mjs";export{s as LIST_LOCALE_EN,t as ListPlugin,r as loadListLocale};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copies the host page's stylesheets verbatim into the print document.
|
|
3
|
+
*
|
|
4
|
+
* The print document preserves the editor's shadow boundary (declarative
|
|
5
|
+
* shadow DOM), so host-authored rules — `::part()`, element selectors, custom
|
|
6
|
+
* properties, `@media`, `@layer`, `@supports`, CSS nesting — apply natively
|
|
7
|
+
* and need no translation or rewriting.
|
|
8
|
+
*
|
|
9
|
+
* All copied CSS is wrapped in the `notectl-host` cascade layer. Layering does
|
|
10
|
+
* not weaken it against the editor's shadow styles, because the cascade
|
|
11
|
+
* compares tree context before layers (an outer normal declaration beats a
|
|
12
|
+
* shadow-tree one regardless). It does keep the print document's own rules in
|
|
13
|
+
* control: its unlayered rules (page setup, body typography, customCSS) win
|
|
14
|
+
* over the copy for normal declarations regardless of specificity, and the
|
|
15
|
+
* print guards (host-element reset, forced light theme) — `!important` inside
|
|
16
|
+
* the earlier-declared `notectl-print` layer — win even against `!important`
|
|
17
|
+
* host rules.
|
|
18
|
+
*
|
|
19
|
+
* Stylesheets whose rules are not readable (cross-origin) are re-referenced
|
|
20
|
+
* via hoisted `@import ... layer(notectl-host)` statements so the print
|
|
21
|
+
* document loads them itself. The copy is produced as an ordered segment list
|
|
22
|
+
* (rule chunks and `@import` statements interleaved in source order) so
|
|
23
|
+
* equal-specificity cascade ties resolve exactly as on the live page.
|
|
24
|
+
* Disabled stylesheets are skipped and stylesheet-level media conditions are
|
|
25
|
+
* preserved as `@media` wrappers.
|
|
26
|
+
*/
|
|
27
|
+
/** Cascade layer that holds the copied host-page styles in print output. */
|
|
28
|
+
export declare const HOST_STYLE_LAYER = "notectl-host";
|
|
29
|
+
/**
|
|
30
|
+
* One source-ordered piece of the host-page CSS copy. `rules` segments hold
|
|
31
|
+
* verbatim rule text destined for the `notectl-host` layer; `import` segments
|
|
32
|
+
* hold hoisted `@import` statements for unreadable (cross-origin) sheets.
|
|
33
|
+
* `@import` must precede every other rule of its stylesheet, so each segment
|
|
34
|
+
* is emitted as its own `<style>` element — keeping the live source order,
|
|
35
|
+
* which decides equal-specificity ties within the layer.
|
|
36
|
+
*/
|
|
37
|
+
export type HostStyleSegment = {
|
|
38
|
+
readonly kind: 'rules';
|
|
39
|
+
readonly css: string;
|
|
40
|
+
} | {
|
|
41
|
+
readonly kind: 'import';
|
|
42
|
+
readonly statement: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Copies all stylesheets that can target this editor (document-level plus any
|
|
46
|
+
* enclosing shadow roots, including adopted sheets) into an ordered list of
|
|
47
|
+
* verbatim CSS segments for the print document.
|
|
48
|
+
*/
|
|
49
|
+
export declare function collectHostStyleSegments(host: HTMLElement): readonly HostStyleSegment[];
|
|
50
|
+
//# sourceMappingURL=PrintHostStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrintHostStyles.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintHostStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAI/C;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAyS3D;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,gBAAgB,EAAE,CAavF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrintPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintPlugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK1D,OAAO,KAAK,EAAgB,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"PrintPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintPlugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK1D,OAAO,KAAK,EAAgB,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;AAkBrF,qBAAa,WAAY,YAAW,MAAM;IACzC,QAAQ,CAAC,EAAE,WAAW;IACtB,QAAQ,CAAC,IAAI,WAAW;IAExB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAC3C,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,CAAC,EAAE,iBAAiB;IAIhC,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAmDjD,OAAO,IAAI,IAAI;CAMf"}
|
|
@@ -1,7 +1,76 @@
|
|
|
1
1
|
import { PluginEventBus } from '../Plugin.js';
|
|
2
|
+
import { HostStyleSegment } from './PrintHostStyles.js';
|
|
2
3
|
import { PrintService } from './PrintTypes.js';
|
|
3
|
-
/**
|
|
4
|
-
export declare
|
|
4
|
+
/** Marker attribute on the static light-DOM fallback of the export variant. */
|
|
5
|
+
export declare const PRINT_FALLBACK_ATTRIBUTE = "data-notectl-print-fallback";
|
|
6
|
+
/**
|
|
7
|
+
* Marker attribute on the inert `<template>` carrying the export variant's
|
|
8
|
+
* standalone style bundle (page-level CSS and the verbatim host-CSS copy).
|
|
9
|
+
*/
|
|
10
|
+
export declare const PRINT_STYLE_BUNDLE_ATTRIBUTE = "data-notectl-print-styles";
|
|
11
|
+
/**
|
|
12
|
+
* `<meta name>` marking the export document itself. The fallback script only
|
|
13
|
+
* activates the standalone style bundle when this meta sits in
|
|
14
|
+
* `document.head` — true when the export is the document being rendered
|
|
15
|
+
* (file, iframe `srcdoc`, `document.write`, HTML-to-PDF engines), never when
|
|
16
|
+
* it was inlined into a consumer page (fragment parsing keeps the meta inside
|
|
17
|
+
* the injected subtree, outside `document.head`).
|
|
18
|
+
*/
|
|
19
|
+
export declare const PRINT_EXPORT_META_NAME = "notectl-print-export";
|
|
20
|
+
/** Everything needed to assemble the print document. */
|
|
21
|
+
export interface PrintDocumentInput {
|
|
22
|
+
/**
|
|
23
|
+
* Document-level CSS matching the variant: full page fidelity for
|
|
24
|
+
* `internal` ({@link buildDocumentCSS}), marker-qualified inline baseline
|
|
25
|
+
* for `export` ({@link buildExportDocumentCSS}).
|
|
26
|
+
*/
|
|
27
|
+
readonly documentCSS: string;
|
|
28
|
+
/**
|
|
29
|
+
* Full-fidelity page CSS ({@link buildDocumentCSS}) shipped by the export
|
|
30
|
+
* variant inside the inert standalone style bundle; the fallback script
|
|
31
|
+
* activates it only when the export is rendered as its own document.
|
|
32
|
+
*/
|
|
33
|
+
readonly standaloneCSS: string;
|
|
34
|
+
/** Source-ordered host-page CSS copy (rule chunks and hoisted `@import`s). */
|
|
35
|
+
readonly hostSegments: readonly HostStyleSegment[];
|
|
36
|
+
/** CSS placed inside the declarative shadow root. */
|
|
37
|
+
readonly shadowCSS: string;
|
|
38
|
+
/** The live editor host element; its tag and attributes are replicated. */
|
|
39
|
+
readonly host: HTMLElement;
|
|
40
|
+
/** Serialized cloned editor content. */
|
|
41
|
+
readonly contentHTML: string;
|
|
42
|
+
readonly title: string;
|
|
43
|
+
readonly lang: string;
|
|
44
|
+
/** Copy html/body theme-context attributes (only when the live theme is carried). */
|
|
45
|
+
readonly carryThemeContext: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* `export` (`toHTML()`, `AFTER_PRINT`) is embed-safe: its inline styles are
|
|
48
|
+
* marker-qualified, and everything page-level — the host-CSS copy, hoisted
|
|
49
|
+
* `@import`s, and `standaloneCSS` — ships inside an inert `<template>`
|
|
50
|
+
* bundle that the replica-scoped fallback script activates only when the
|
|
51
|
+
* export is rendered as its own document. A consumer page embedding the
|
|
52
|
+
* output can neither load foreign stylesheets nor have its own elements
|
|
53
|
+
* restyled. `internal` (the transient print iframe) inlines the unscoped
|
|
54
|
+
* copy and the imports directly and omits fallback, bundle, and script: the
|
|
55
|
+
* iframe is parsed by the same modern browser, where declarative shadow DOM
|
|
56
|
+
* is guaranteed.
|
|
57
|
+
*/
|
|
58
|
+
readonly variant: 'export' | 'internal';
|
|
59
|
+
/**
|
|
60
|
+
* CSP nonce applied to every embedded `<style>` element so the internal
|
|
61
|
+
* print iframe renders under an inherited `style-src` nonce policy. Never
|
|
62
|
+
* set on the export variant: serialized HTML must not persist the page's
|
|
63
|
+
* live nonce.
|
|
64
|
+
*/
|
|
65
|
+
readonly styleNonce?: string;
|
|
66
|
+
}
|
|
67
|
+
/** Builds the complete print document as an HTML string. */
|
|
68
|
+
export declare function buildHTMLDocument(input: PrintDocumentInput): string;
|
|
69
|
+
/** PrintService plus internal lifecycle hooks (not part of the public service API). */
|
|
70
|
+
export interface ManagedPrintService extends PrintService {
|
|
71
|
+
/** Cancels pending print triggers and removes parked print iframes. */
|
|
72
|
+
dispose(): void;
|
|
73
|
+
}
|
|
5
74
|
/** Creates and returns the PrintService implementation. */
|
|
6
|
-
export declare function createPrintService(shadowRoot: ShadowRoot, host: HTMLElement, container: HTMLElement, eventBus: PluginEventBus):
|
|
75
|
+
export declare function createPrintService(shadowRoot: ShadowRoot, host: HTMLElement, container: HTMLElement, eventBus: PluginEventBus): ManagedPrintService;
|
|
7
76
|
//# sourceMappingURL=PrintServiceImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrintServiceImpl.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintServiceImpl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"PrintServiceImpl.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintServiceImpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAEN,KAAK,gBAAgB,EAErB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,EAMN,KAAK,YAAY,EACjB,MAAM,iBAAiB,CAAC;AAWzB,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,gCAAgC,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAExE;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AA+G7D,wDAAwD;AACxD,MAAM,WAAW,kBAAkB;IAClC;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,8EAA8E;IAC9E,QAAQ,CAAC,YAAY,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnD,qDAAqD;IACrD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,wCAAwC;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qFAAqF;IACrF,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,OAAO,EAAE,QAAQ,GAAG,UAAU,CAAC;IACxC;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,4DAA4D;AAC5D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAkGnE;AAED,uFAAuF;AACvF,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACxD,uEAAuE;IACvE,OAAO,IAAI,IAAI,CAAC;CAChB;AAED,2DAA2D;AAC3D,wBAAgB,kBAAkB,CACjC,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,WAAW,EACtB,QAAQ,EAAE,cAAc,GACtB,mBAAmB,CAmJrB"}
|
|
@@ -1,23 +1,152 @@
|
|
|
1
1
|
import { PrintOptions } from './PrintTypes.js';
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Document-level cascade layer holding the print guards (host reset, forced
|
|
4
|
+
* light theme). Declared before the host-copy layer, so its `!important`
|
|
5
|
+
* declarations beat `!important` host rules.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PRINT_STYLE_LAYER = "notectl-print";
|
|
8
|
+
/**
|
|
9
|
+
* Earliest document-level cascade layer, holding a `customCSS` copy. Its
|
|
10
|
+
* `!important` declarations are the strongest in the print document — the
|
|
11
|
+
* consumer's escape hatch over the print guards and host rules.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CUSTOM_STYLE_LAYER = "notectl-custom";
|
|
14
|
+
/** Adopted shadow styles split by role for print emission. */
|
|
15
|
+
export interface AdoptedStylePartition {
|
|
16
|
+
/** Editor base styles — emitted inside the print cascade layer. */
|
|
17
|
+
readonly base: string;
|
|
18
|
+
/**
|
|
19
|
+
* Runtime style-token rules (strict-CSP mode) carrying user-applied content
|
|
20
|
+
* formatting — emitted unlayered so they keep their cascade strength.
|
|
21
|
+
*/
|
|
22
|
+
readonly runtime: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Extracts CSS text from all adopted stylesheets on a ShadowRoot, separating
|
|
26
|
+
* editor base styles from runtime style-token sheets. The distinction matters
|
|
27
|
+
* for print: base styles go into a cascade layer so consumer overrides win
|
|
28
|
+
* (the documented #202 semantic: `customCSS` overrides built-in element
|
|
29
|
+
* styling regardless of selector specificity — the flip side, also
|
|
30
|
+
* documented, is that broad customCSS resets such as `* { padding: 0 }`
|
|
31
|
+
* override base styling too), but token rules represent user content
|
|
32
|
+
* formatting (inline styles in non-CSP mode) and must not be demoted with
|
|
33
|
+
* them.
|
|
34
|
+
*/
|
|
35
|
+
export declare function partitionAdoptedStyles(shadowRoot: ShadowRoot): AdoptedStylePartition;
|
|
36
|
+
/**
|
|
37
|
+
* Generates light theme custom properties targeting `selector` (a full
|
|
38
|
+
* selector list). The internal print iframe passes `:root` plus the host
|
|
39
|
+
* element, so page-level `customCSS` rules
|
|
40
|
+
* (`body { background: var(--notectl-bg) }`) keep resolving while the host
|
|
41
|
+
* element re-pins the tokens closer than the shadow theme sheet's `:host`
|
|
42
|
+
* defaults; the export variant passes only the marker-qualified replica so
|
|
43
|
+
* nothing can leak into an embedding page. Every declaration is `!important`;
|
|
44
|
+
* emitted inside the `notectl-print` layer, it beats copied host-page token
|
|
45
|
+
* overrides (even `!important` ones) and the shadow theme sheet (tree
|
|
46
|
+
* context), guaranteeing readable print output regardless of the active
|
|
47
|
+
* editor theme.
|
|
48
|
+
*/
|
|
49
|
+
export declare function generateLightThemeTokens(selector: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* Serializes an element's inline `--notectl-*` declarations. Tokens set via
|
|
52
|
+
* the `style` attribute or JS `setProperty` (runtime theme switchers) cannot
|
|
53
|
+
* travel through the stylesheet copy; re-emitting them as inline style on the
|
|
54
|
+
* print document's corresponding element preserves their live cascade
|
|
55
|
+
* strength — inline declarations beat every copied stylesheet rule, exactly
|
|
56
|
+
* as on the live page.
|
|
57
|
+
*/
|
|
58
|
+
export declare function collectInlineThemeTokens(el: Element | null): string;
|
|
59
|
+
/**
|
|
60
|
+
* Snapshots all computed `--notectl-*` tokens from the host element when
|
|
61
|
+
* carrying the live theme (`forceLightTheme: false`). The computed values are
|
|
62
|
+
* the ground truth of what the user saw: tokens set via the host's inline
|
|
63
|
+
* `style` attribute (stripped from the print replica), via JS `setProperty`,
|
|
64
|
+
* or via rules scoped to wrapper elements that do not exist in the print
|
|
65
|
+
* document cannot travel through the stylesheet copy. Targeted at `selector`
|
|
66
|
+
* (a full selector list: the host element, plus `:root` in the internal
|
|
67
|
+
* variant so page-level `customCSS` keeps resolving the tokens) and emitted
|
|
68
|
+
* unlayered: unlayered normal declarations beat the layered host copy, so a
|
|
69
|
+
* host-page rule that matches differently in the print document (its wrapper
|
|
70
|
+
* ancestors are not replicated) cannot override the live values.
|
|
71
|
+
* Print-specific token overrides therefore need `!important` in the host
|
|
72
|
+
* page or `customCSS`.
|
|
73
|
+
*/
|
|
74
|
+
export declare function snapshotThemeTokens(host: HTMLElement, selector: string): string;
|
|
75
|
+
/**
|
|
76
|
+
* Resolves the background the editor content visually sits on, for carrying
|
|
77
|
+
* the live theme into print (`forceLightTheme: false`). Walks up from the
|
|
78
|
+
* content container (crossing shadow boundaries) through the page body up to
|
|
79
|
+
* the root element — dark themes commonly paint `html` and leave `body`
|
|
80
|
+
* transparent — returning the first non-transparent computed
|
|
81
|
+
* background-color. Falls back to white so print output never inherits an
|
|
82
|
+
* undefined background.
|
|
83
|
+
*/
|
|
84
|
+
export declare function resolveCarriedBackground(container: HTMLElement): string;
|
|
85
|
+
/**
|
|
86
|
+
* Snapshots computed typography from the host element into a rule for
|
|
87
|
+
* `selector` (the page body in the print iframe, the replica host in the
|
|
88
|
+
* export variant). Copied host-page styles are layered and `body` rules from
|
|
89
|
+
* the host page are meant for the host application, so print pins typography
|
|
90
|
+
* explicitly to what the editor computed live. The background is pinned to
|
|
91
|
+
* `background` — white when the light theme is forced, the carried theme
|
|
92
|
+
* background otherwise — so dark-theme output never renders light text on
|
|
93
|
+
* white paper.
|
|
94
|
+
*/
|
|
95
|
+
export declare function snapshotTypography(host: HTMLElement, colorOverride?: string, background?: string, selector?: string): string;
|
|
96
|
+
/**
|
|
97
|
+
* Neutralizes page-level hiding and clipping from copied host rules on
|
|
98
|
+
* `html`/`body`. Every declaration is `!important`; emitted inside the
|
|
99
|
+
* `notectl-print` layer it beats the host copy even against `!important`
|
|
100
|
+
* host rules, while `customCSS` (earlier `notectl-custom` layer) still wins.
|
|
101
|
+
*/
|
|
102
|
+
export declare function generatePageResetCSS(): string;
|
|
103
|
+
/**
|
|
104
|
+
* Neutralizes screen-widget chrome on the print host element. Copied
|
|
105
|
+
* host-page rules like `notectl-editor { height: 400px; border: … }` style
|
|
106
|
+
* the live widget but must not constrain the paginated print flow. Every
|
|
107
|
+
* declaration is `!important`; emitted inside the `notectl-print` layer, the
|
|
108
|
+
* reset beats the host copy even against `!important` host rules. Inherited
|
|
109
|
+
* properties (fonts, color) are deliberately not touched; `customCSS` can
|
|
110
|
+
* reclaim any of these via `!important` (earlier `notectl-custom` layer).
|
|
111
|
+
*/
|
|
112
|
+
export declare function generateHostResetCSS(hostSelector: string): string;
|
|
113
|
+
/** Generates the `@page` rule based on PrintOptions. */
|
|
114
|
+
export declare function generatePageCSS(options: PrintOptions): string;
|
|
115
|
+
/** Generates print-specific content rules; emitted inside the shadow scope. */
|
|
116
|
+
export declare function generateContentPrintCSS(options: PrintOptions): string;
|
|
117
|
+
/**
|
|
118
|
+
* Builds the CSS placed inside the print document's declarative shadow root:
|
|
119
|
+
* editor base styles behind a cascade layer (so consumer overrides win),
|
|
120
|
+
* runtime style-token rules unlayered, print content rules, and customCSS as
|
|
121
|
+
* the final same-tree override.
|
|
122
|
+
*/
|
|
123
|
+
export declare function buildShadowCSS(shadowRoot: ShadowRoot, options: PrintOptions): string;
|
|
124
|
+
/**
|
|
125
|
+
* Builds the document-level CSS of the internal print iframe: the print
|
|
126
|
+
* guards (host reset, `html`/`body` page reset, and forced light theme —
|
|
127
|
+
* `!important` inside the `notectl-print` layer), the unlayered theme-token
|
|
128
|
+
* snapshot, body typography, `@page`, and two copies of customCSS. The
|
|
129
|
+
* unlayered copy carries page-level custom rules (`@page`, `body` — they
|
|
130
|
+
* cannot live inside the shadow scope) at normal strength; the
|
|
131
|
+
* `notectl-custom` layer copy makes consumer `!important` rules outrank the
|
|
132
|
+
* print guards and `!important` host rules.
|
|
133
|
+
*/
|
|
134
|
+
export declare function buildDocumentCSS(host: HTMLElement, container: HTMLElement, options: PrintOptions): string;
|
|
135
|
+
/**
|
|
136
|
+
* Builds the inline document-level CSS of the export variant (`toHTML()`,
|
|
137
|
+
* `AFTER_PRINT`). Every selector is qualified with `markerSelector` (the
|
|
138
|
+
* static-replica marker attribute), so the rules can only ever match a
|
|
139
|
+
* replica: embedding the export into a live page via the documented
|
|
140
|
+
* innerHTML/setHTMLUnsafe flow cannot restyle the consumer's document, hide
|
|
141
|
+
* its live editors, or force them light. (`@scope` cannot express this: its
|
|
142
|
+
* implicit `:where(:scope)` descendant prefix excludes the scoping root
|
|
143
|
+
* itself, and shadow content — every `::part()` subject — is outside the
|
|
144
|
+
* scope.) Page-level rules (`html`/`body` reset, `body` typography, `@page`,
|
|
145
|
+
* `:root` tokens, the customCSS document copies) are not emitted here; they
|
|
146
|
+
* ship in the script-gated standalone style bundle and otherwise apply in the
|
|
147
|
+
* `print()` iframe. Instead the typography and background snapshot is emitted
|
|
148
|
+
* `!important` after the host reset in the same layer, so the replica paints
|
|
149
|
+
* its own canvas even without scripts.
|
|
150
|
+
*/
|
|
151
|
+
export declare function buildExportDocumentCSS(host: HTMLElement, container: HTMLElement, options: PrintOptions, markerAttribute: string): string;
|
|
23
152
|
//# sourceMappingURL=PrintStyleCollector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrintStyleCollector.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintStyleCollector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"PrintStyleCollector.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintStyleCollector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAUH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AAWnD,8DAA8D;AAC9D,MAAM,WAAW,qBAAqB;IACrC,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,GAAG,qBAAqB,CAUpF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGjE;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,GAAG,MAAM,CAUnE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAgB/E;AAKD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,CASvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,WAAW,EACjB,aAAa,CAAC,EAAE,MAAM,EACtB,UAAU,SAAY,EACtB,QAAQ,SAAS,GACf,MAAM,CAuBR;AAmDD;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAM7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAMjE;AAED,wDAAwD;AACxD,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAmB7D;AAED,+EAA+E;AAC/E,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAmDrE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAepF;AAMD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,YAAY,GACnB,MAAM,CAqCR;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,YAAY,EACrB,eAAe,EAAE,MAAM,GACrB,MAAM,CAmCR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marker attribute for static host replicas.
|
|
3
|
+
*
|
|
4
|
+
* Print output replicates the editor host element (tag and attributes) so
|
|
5
|
+
* host-page `::part()` rules keep matching in the print document. When that
|
|
6
|
+
* markup is injected into a page where `<notectl-editor>` is registered, the
|
|
7
|
+
* replica must stay static markup: upgrading it into a live editor would
|
|
8
|
+
* replace the replicated shadow content with a fresh editor instance.
|
|
9
|
+
*
|
|
10
|
+
* The print plugin writes the marker; `NotectlEditor` honors it by refusing
|
|
11
|
+
* to boot on marked hosts.
|
|
12
|
+
*/
|
|
13
|
+
export declare const STATIC_HOST_ATTRIBUTE = "data-notectl-static";
|
|
14
|
+
/** True when the element is a static replica that must not boot an editor. */
|
|
15
|
+
export declare function isStaticHostReplica(el: Element): boolean;
|
|
16
|
+
/** Error raised when editor lifecycle APIs are used on a static replica. */
|
|
17
|
+
export declare function createStaticReplicaError(): Error;
|
|
18
|
+
//# sourceMappingURL=StaticHostMarker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticHostMarker.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/StaticHostMarker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAExD;AAED,4EAA4E;AAC5E,wBAAgB,wBAAwB,IAAI,KAAK,CAKhD"}
|
package/dist/plugins/print.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,r,t as n}from"../chunks/PrintTypes-
|
|
1
|
+
import{n as s,r,t as n}from"../chunks/PrintTypes-CxU69qu3.mjs";import{n as t,r as a,t as m}from"../chunks/PrintPlugin-DyIZDY3Q.mjs";export{n as AFTER_PRINT,s as BEFORE_PRINT,t as PRINT_LOCALE_EN,r as PRINT_SERVICE_KEY,m as PrintPlugin,a as loadPrintLocale};
|
|
@@ -23,4 +23,12 @@ export declare function resolveLocale<T>(context: PluginContext, configLocale: T
|
|
|
23
23
|
export declare function getSelectedBlock(state: EditorState): BlockNode | undefined;
|
|
24
24
|
/** Returns the block ID under the cursor, handling both TextSelection and NodeSelection. */
|
|
25
25
|
export declare function getSelectedBlockId(state: EditorState): BlockId | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Returns every leaf-block ID covered by the current selection, in document
|
|
28
|
+
* order. A NodeSelection yields its single node; a collapsed or single-block
|
|
29
|
+
* TextSelection yields one ID; a multi-block TextSelection yields the full
|
|
30
|
+
* inclusive range from anchor to head. Used by block-attribute commands
|
|
31
|
+
* (alignment, text direction) that must apply to the whole selection.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getSelectedBlockIds(state: EditorState): BlockId[];
|
|
26
34
|
//# sourceMappingURL=PluginHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginHelpers.d.ts","sourceRoot":"","sources":["../../../src/plugins/shared/PluginHelpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAIzF;AAED,mDAAmD;AACnD,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;GAGG;AACH,wBAAsB,aAAa,CAAC,CAAC,EACpC,OAAO,EAAE,aAAa,EACtB,YAAY,EAAE,CAAC,GAAG,SAAS,EAC3B,aAAa,EAAE,CAAC,EAChB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAClC,OAAO,CAAC,CAAC,CAAC,CAKZ;AAED,yFAAyF;AACzF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,CAK1E;AAED,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAK1E"}
|
|
1
|
+
{"version":3,"file":"PluginHelpers.d.ts","sourceRoot":"","sources":["../../../src/plugins/shared/PluginHelpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAIzF;AAED,mDAAmD;AACnD,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;GAGG;AACH,wBAAsB,aAAa,CAAC,CAAC,EACpC,OAAO,EAAE,aAAa,EACtB,YAAY,EAAE,CAAC,GAAG,SAAS,EAC3B,aAAa,EAAE,CAAC,EAChB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAClC,OAAO,CAAC,CAAC,CAAC,CAKZ;AAED,yFAAyF;AACzF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,CAK1E;AAED,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAK1E;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,EAAE,CAkBjE"}
|
package/dist/plugins/shared.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as s,i as a,r,t as o}from"../chunks/PluginHelpers-KDuTlmXm.mjs";import{t as m}from"../chunks/ShortcutFormatting-TwiufqeV.mjs";import{n as t,r as n,t as i}from"../chunks/KeyboardNav-D0my3wuy.mjs";import{r as p,t as u}from"../chunks/PopupPositioning-BB97-__N.mjs";import{n as c,t as h}from"../chunks/PopupManager-DUtaK3WX.mjs";import{a as k,i as f,n as j,r as e,t as P}from"../chunks/ColorValidation-DAijTjG9.mjs";import{n as l,t as d}from"../chunks/XmlPatterns-RN32-0ob.mjs";import{n as g,r as C,t as b}from"../chunks/PopupKeyboardPatterns-tUrT9TyV.mjs";import{a as v,i as x,n as y,r as K,t as M}from"../chunks/ColorPickerPopup-lcf3jS6G.mjs";import{n as S,r as w,t as z}from"../chunks/ColorGrid-DPNiXxpD.mjs";export{h as PopupManager,c as PopupServiceKey,d as XML_ATTRS,l as XML_TAG_NAME,u as appendToRoot,y as applyColorMark,i as applyRovingTabindex,b as attachGridKeyboard,g as attachListboxKeyboard,C as attachMenuKeyboard,o as capitalize,t as findNextDropdownItem,m as formatShortcut,K as getActiveColor,S as getColorName,r as getSelectedBlock,a as getSelectedBlockId,x as isColorMarkActive,w as isLightColor,P as isValidCSSColor,j as isValidCSSFontFamily,e as isValidCSSFontSize,f as isValidHexColor,s as loadLocaleModule,n as navigateGrid,p as positionPopup,v as removeColorMark,z as renderColorGrid,M as renderColorPickerPopup,k as resolveColors};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,i as a,n as r,o as t,r as m,s as o,t as i}from"../chunks/XmlDetector-D7TQpw-e.mjs";import{i as n,n as e,r as c,t as p}from"../chunks/SmartPastePlugin-
|
|
1
|
+
import{a as s,i as a,n as r,o as t,r as m,s as o,t as i}from"../chunks/XmlDetector-D7TQpw-e.mjs";import{i as n,n as e,r as c,t as p}from"../chunks/SmartPastePlugin-Bi_wpTCV.mjs";export{s as DEFAULT_RELEVANCE_WEIGHTS,r as JsonDetector,m as LexerDetector,t as MAX_RELEVANCE_WEIGHT,c as SMART_PASTE_LOCALE_EN,e as SMART_PASTE_SERVICE_KEY,p as SmartPastePlugin,i as XmlDetector,o as computeTokenStats,n as loadSmartPasteLocale,a as scoreFromStats};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as r,r as s,t}from"../chunks/StrikethroughPlugin-
|
|
1
|
+
import{n as r,r as s,t}from"../chunks/StrikethroughPlugin-BLKDRWtf.mjs";export{r as STRIKETHROUGH_LOCALE_EN,t as StrikethroughPlugin,s as loadStrikethroughLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as r,r as s,t as u}from"../chunks/SuperSubPlugin-
|
|
1
|
+
import{n as r,r as s,t as u}from"../chunks/SuperSubPlugin-DVP7VnIz.mjs";export{r as SUPER_SUB_LOCALE_EN,u as SuperSubPlugin,s as loadSuperSubLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableNodeViews.d.ts","sourceRoot":"","sources":["../../../src/plugins/table/TableNodeViews.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAIpE,OAAO,KAAK,EAAY,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAErE;;;GAGG;AACH,wBAAgB,0BAA0B,CACzC,SAAS,EAAE,cAAc,EACzB,aAAa,CAAC,EAAE,aAAa,EAC7B,MAAM,GAAE,WAA6B,GACnC,eAAe,
|
|
1
|
+
{"version":3,"file":"TableNodeViews.d.ts","sourceRoot":"","sources":["../../../src/plugins/table/TableNodeViews.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAIpE,OAAO,KAAK,EAAY,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAErE;;;GAGG;AACH,wBAAgB,0BAA0B,CACzC,SAAS,EAAE,cAAc,EACzB,aAAa,CAAC,EAAE,aAAa,EAC7B,MAAM,GAAE,WAA6B,GACnC,eAAe,CAgHjB;AAgBD;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,cAAc,GAAG,eAAe,CAwBxF;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,cAAc,GAAG,eAAe,CAiDzF"}
|
package/dist/plugins/table.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,t as a}from"../chunks/TablePlugin-
|
|
1
|
+
import{n as s,t as a}from"../chunks/TablePlugin-BTH9VRZq.mjs";export{a as TablePlugin,s as TableSelectionServiceKey};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as o,r,t as s}from"../chunks/TextColorPlugin-
|
|
1
|
+
import{n as o,r,t as s}from"../chunks/TextColorPlugin-CEfZQ6Md.mjs";export{o as TEXT_COLOR_LOCALE_EN,s as TextColorPlugin,r as loadTextColorLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextDirectionPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/text-direction/TextDirectionPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"TextDirectionPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/text-direction/TextDirectionPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAY1D,OAAO,EAEN,KAAK,mBAAmB,EAExB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEN,KAAK,aAAa,EAElB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,mBAAmB;IACnC,0CAA0C;IAC1C,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAgBD,qBAAa,mBAAoB,YAAW,MAAM;IACjD,QAAQ,CAAC,EAAE,oBAAoB;IAC/B,QAAQ,CAAC,IAAI,oBAAoB;IACjC,QAAQ,CAAC,QAAQ,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAC7C,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,eAAe,CAAsC;gBAEjD,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC;IAI3C,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBjD,OAAO,IAAI,IAAI;IAKf,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,gBAAgB;IA8BxB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,mBAAmB;IAiC3B,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,YAAY;IAwBpB,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,YAAY;CAIpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as s}from"../chunks/DirectionIcons-Bbawl9ei.mjs";import{t}from"../chunks/TextDirectionService-OFOU6r_s.mjs";import{n as r,r as i,t as o}from"../chunks/DirectionDetection-C7XE0nxW.mjs";import{n,r as m,t as c}from"../chunks/TextDirectionPlugin-
|
|
1
|
+
import{t as s}from"../chunks/DirectionIcons-Bbawl9ei.mjs";import{t}from"../chunks/TextDirectionService-OFOU6r_s.mjs";import{n as r,r as i,t as o}from"../chunks/DirectionDetection-C7XE0nxW.mjs";import{n,r as m,t as c}from"../chunks/TextDirectionPlugin-DHB88HKf.mjs";export{s as DIRECTION_ICONS,n as TEXT_DIRECTION_LOCALE_EN,t as TEXT_DIRECTION_SERVICE_KEY,c as TextDirectionPlugin,o as detectTextDirection,r as findSiblingDirection,i as getBlockDir,m as loadTextDirectionLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as t,r,t as s}from"../chunks/TextFormattingPlugin-
|
|
1
|
+
import{n as t,r,t as s}from"../chunks/TextFormattingPlugin-Cubp3e7f.mjs";export{t as TEXT_FORMATTING_LOCALE_EN,s as TextFormattingPlugin,r as loadTextFormattingLocale};
|
package/dist/plugins/toolbar.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,i as s,n as o,o as r,r as i,t as m}from"../chunks/ToolbarPlugin-
|
|
1
|
+
import{a,i as s,n as o,o as r,r as i,t as m}from"../chunks/ToolbarPlugin-DVGrFf8v.mjs";export{s as TOOLBAR_LOCALE_EN,i as ToolbarOverflowBehavior,m as ToolbarPlugin,r as ToolbarRegistry,o as ToolbarServiceKey,a as loadToolbarLocale};
|
package/dist/plugins/video.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,i as a,n as o,o as i,r,s as m,t as n}from"../chunks/VideoPlugin-
|
|
1
|
+
import{a as s,i as a,n as o,o as i,r,s as m,t as n}from"../chunks/VideoPlugin-B3uf1Dwp.mjs";export{a as DEFAULT_VIDEO_CONFIG,s as DEFAULT_VIDEO_KEYMAP,i as DEFAULT_VIDEO_PROVIDERS,o as VIDEO_LOCALE_EN,n as VideoPlugin,r as loadVideoLocale,m as parseVideoUrl};
|
package/dist/presets/full.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as m}from"../chunks/full-
|
|
1
|
+
import{t as m}from"../chunks/full-BBl7mvwH.mjs";export{m as createFullPreset};
|
package/dist/presets/minimal.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as m}from"../chunks/minimal-
|
|
1
|
+
import{t as m}from"../chunks/minimal-CtnR4dqp.mjs";export{m as createMinimalPreset};
|
package/dist/presets.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as m}from"./chunks/minimal-
|
|
1
|
+
import{t as m}from"./chunks/minimal-CtnR4dqp.mjs";import{t as s}from"./chunks/full-BBl7mvwH.mjs";export{s as createFullPreset,m as createMinimalPreset};
|
|
@@ -10,6 +10,13 @@ export interface StyleRootOptions {
|
|
|
10
10
|
readonly sheet?: CSSStyleSheet | null;
|
|
11
11
|
}
|
|
12
12
|
type StyleRoot = ShadowRoot | Document;
|
|
13
|
+
/**
|
|
14
|
+
* True when the sheet holds runtime style-token rules, i.e. element styling
|
|
15
|
+
* that would be inline `style` attributes outside strict-CSP mode. Consumers
|
|
16
|
+
* (e.g. print) can use this to treat such rules as content styling rather
|
|
17
|
+
* than editor base styles.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isRuntimeStyleSheet(sheet: CSSStyleSheet): boolean;
|
|
13
20
|
/** Creates a constructable stylesheet when the environment supports it. */
|
|
14
21
|
export declare function createRuntimeStyleSheet(): CSSStyleSheet | null;
|
|
15
22
|
/** Registers styling mode for a root (shadow root or document). */
|