@notectl/core 2.3.4 → 2.3.5

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 (111) hide show
  1. package/custom-elements.json +4 -0
  2. package/dist/chunks/CaretNavigationPlugin-DEZU09LJ.mjs +2 -0
  3. package/dist/chunks/{CaretNavigationPlugin-Clv8dzR5.mjs.map → CaretNavigationPlugin-DEZU09LJ.mjs.map} +1 -1
  4. package/dist/chunks/FontPlugin-C_ScWZ0P.mjs +2 -0
  5. package/dist/chunks/FontPlugin-C_ScWZ0P.mjs.map +1 -0
  6. package/dist/chunks/{FontSizePlugin-CZB-AwZQ.mjs → FontSizePlugin-DB_0njtC.mjs} +2 -2
  7. package/dist/chunks/FontSizePlugin-DB_0njtC.mjs.map +1 -0
  8. package/dist/chunks/{FormulaPlugin-C7N3QXDx.mjs → FormulaPlugin-CI0r4X1o.mjs} +2 -2
  9. package/dist/chunks/{FormulaPlugin-C7N3QXDx.mjs.map → FormulaPlugin-CI0r4X1o.mjs.map} +1 -1
  10. package/dist/chunks/HeadingPlugin-LK8Pg4h0.mjs +2 -0
  11. package/dist/chunks/HeadingPlugin-LK8Pg4h0.mjs.map +1 -0
  12. package/dist/chunks/{HighlightPlugin-CE_MgFNz.mjs → HighlightPlugin-B4WlZawl.mjs} +2 -2
  13. package/dist/chunks/{HighlightPlugin-CE_MgFNz.mjs.map → HighlightPlugin-B4WlZawl.mjs.map} +1 -1
  14. package/dist/chunks/ImagePlugin-C5ESNNsA.mjs +2 -0
  15. package/dist/chunks/ImagePlugin-C5ESNNsA.mjs.map +1 -0
  16. package/dist/chunks/{PrintPlugin-1m54b2-Y.mjs → PrintPlugin-BQ7LWbEB.mjs} +2 -2
  17. package/dist/chunks/{PrintPlugin-1m54b2-Y.mjs.map → PrintPlugin-BQ7LWbEB.mjs.map} +1 -1
  18. package/dist/chunks/SelectionSync-CwOHMMfI.mjs +2 -0
  19. package/dist/chunks/SelectionSync-CwOHMMfI.mjs.map +1 -0
  20. package/dist/chunks/{TablePlugin-B894cIXW.mjs → TablePlugin-C4WMYGWN.mjs} +2 -2
  21. package/dist/chunks/TablePlugin-C4WMYGWN.mjs.map +1 -0
  22. package/dist/chunks/{TextColorPlugin-B6YoN9mR.mjs → TextColorPlugin-D_MhNJT6.mjs} +2 -2
  23. package/dist/chunks/{TextColorPlugin-B6YoN9mR.mjs.map → TextColorPlugin-D_MhNJT6.mjs.map} +1 -1
  24. package/dist/chunks/ThemeEngine-kIXtSRkI.mjs +3 -0
  25. package/dist/chunks/ThemeEngine-kIXtSRkI.mjs.map +1 -0
  26. package/dist/chunks/{ToolbarPlugin-ClKY-LiT.mjs → ToolbarPlugin-DdrLarMD.mjs} +2 -2
  27. package/dist/chunks/ToolbarPlugin-DdrLarMD.mjs.map +1 -0
  28. package/dist/chunks/{color-picker-C9B2rYw-.mjs → color-picker-DJ05ey9o.mjs} +2 -2
  29. package/dist/chunks/{color-picker-C9B2rYw-.mjs.map → color-picker-DJ05ey9o.mjs.map} +1 -1
  30. package/dist/chunks/{full-CNi2CaF3.mjs → full-Cshz7aTP.mjs} +2 -2
  31. package/dist/chunks/{full-CNi2CaF3.mjs.map → full-Cshz7aTP.mjs.map} +1 -1
  32. package/dist/chunks/minimal-7XqMY9kC.mjs +2 -0
  33. package/dist/chunks/{minimal-Bykbo9So.mjs.map → minimal-7XqMY9kC.mjs.map} +1 -1
  34. package/dist/chunks/register-ArnJV5vu.mjs +3 -0
  35. package/dist/chunks/register-ArnJV5vu.mjs.map +1 -0
  36. package/dist/editor/styles/base.d.ts +1 -1
  37. package/dist/editor/styles/base.d.ts.map +1 -1
  38. package/dist/editor/styles/color-picker.d.ts +1 -1
  39. package/dist/editor/styles/color-picker.d.ts.map +1 -1
  40. package/dist/editor/styles/font-select.d.ts +1 -1
  41. package/dist/editor/styles/font-select.d.ts.map +1 -1
  42. package/dist/editor/styles/font-size-select.d.ts +1 -1
  43. package/dist/editor/styles/font-size-select.d.ts.map +1 -1
  44. package/dist/editor/styles/heading-select.d.ts +1 -1
  45. package/dist/editor/styles/heading-select.d.ts.map +1 -1
  46. package/dist/editor/styles/image.d.ts +1 -1
  47. package/dist/editor/styles/image.d.ts.map +1 -1
  48. package/dist/editor/styles/table.d.ts +1 -1
  49. package/dist/editor/styles/table.d.ts.map +1 -1
  50. package/dist/editor/styles/toolbar.d.ts +1 -1
  51. package/dist/editor/styles/toolbar.d.ts.map +1 -1
  52. package/dist/editor/theme/ThemeEngine.d.ts.map +1 -1
  53. package/dist/editor/theme/ThemeTokens.d.ts +7 -0
  54. package/dist/editor/theme/ThemeTokens.d.ts.map +1 -1
  55. package/dist/full.mjs +1 -1
  56. package/dist/input/InputHandler.d.ts +8 -0
  57. package/dist/input/InputHandler.d.ts.map +1 -1
  58. package/dist/input/InputManager.d.ts +6 -0
  59. package/dist/input/InputManager.d.ts.map +1 -1
  60. package/dist/input/PasteHTMLHandler.d.ts +12 -4
  61. package/dist/input/PasteHTMLHandler.d.ts.map +1 -1
  62. package/dist/input/PasteHandler.d.ts +8 -0
  63. package/dist/input/PasteHandler.d.ts.map +1 -1
  64. package/dist/input/PasteRichBlockHandler.d.ts +1 -1
  65. package/dist/input/PasteRichBlockHandler.d.ts.map +1 -1
  66. package/dist/model/ContentSlice.d.ts +10 -0
  67. package/dist/model/ContentSlice.d.ts.map +1 -1
  68. package/dist/notectl-core.mjs +1 -1
  69. package/dist/notectl-core.umd.js +1 -1
  70. package/dist/notectl-core.umd.js.map +1 -1
  71. package/dist/plugins/caret-navigation.mjs +1 -1
  72. package/dist/plugins/font-size.mjs +1 -1
  73. package/dist/plugins/font.mjs +1 -1
  74. package/dist/plugins/formula.mjs +1 -1
  75. package/dist/plugins/heading.mjs +1 -1
  76. package/dist/plugins/highlight.mjs +1 -1
  77. package/dist/plugins/image.mjs +1 -1
  78. package/dist/plugins/print.mjs +1 -1
  79. package/dist/plugins/table.mjs +1 -1
  80. package/dist/plugins/text-color.mjs +1 -1
  81. package/dist/plugins/toolbar.mjs +1 -1
  82. package/dist/presets/full.mjs +1 -1
  83. package/dist/presets/minimal.mjs +1 -1
  84. package/dist/presets.mjs +1 -1
  85. package/dist/register.mjs +1 -1
  86. package/dist/state/EditorState.d.ts +2 -0
  87. package/dist/state/EditorState.d.ts.map +1 -1
  88. package/dist/view/EditorView.d.ts +6 -0
  89. package/dist/view/EditorView.d.ts.map +1 -1
  90. package/dist/view/EditorViewEvents.d.ts +19 -2
  91. package/dist/view/EditorViewEvents.d.ts.map +1 -1
  92. package/dist/view/SelectionSync.d.ts +6 -0
  93. package/dist/view/SelectionSync.d.ts.map +1 -1
  94. package/package.json +1 -1
  95. package/dist/chunks/CaretNavigationPlugin-Clv8dzR5.mjs +0 -2
  96. package/dist/chunks/FontPlugin-B4Ouhmpe.mjs +0 -2
  97. package/dist/chunks/FontPlugin-B4Ouhmpe.mjs.map +0 -1
  98. package/dist/chunks/FontSizePlugin-CZB-AwZQ.mjs.map +0 -1
  99. package/dist/chunks/HeadingPlugin-hubN_Ebt.mjs +0 -2
  100. package/dist/chunks/HeadingPlugin-hubN_Ebt.mjs.map +0 -1
  101. package/dist/chunks/ImagePlugin-B_y4STEr.mjs +0 -2
  102. package/dist/chunks/ImagePlugin-B_y4STEr.mjs.map +0 -1
  103. package/dist/chunks/SelectionSync-CcvoRrNd.mjs +0 -2
  104. package/dist/chunks/SelectionSync-CcvoRrNd.mjs.map +0 -1
  105. package/dist/chunks/TablePlugin-B894cIXW.mjs.map +0 -1
  106. package/dist/chunks/ThemeEngine-D4W6Y80e.mjs +0 -3
  107. package/dist/chunks/ThemeEngine-D4W6Y80e.mjs.map +0 -1
  108. package/dist/chunks/ToolbarPlugin-ClKY-LiT.mjs.map +0 -1
  109. package/dist/chunks/minimal-Bykbo9So.mjs +0 -2
  110. package/dist/chunks/register-CF80zDgl.mjs +0 -3
  111. package/dist/chunks/register-CF80zDgl.mjs.map +0 -1
@@ -1,3 +1,3 @@
1
1
  /** Core editor styles — :host, .notectl-editor, .notectl-content, generic utilities. */
2
- export declare const BASE_CSS = "\n/**\n * Public theme tokens.\n *\n * Declared via @property so that:\n * - DevTools surfaces them as first-class CSS variables,\n * - invalid values are rejected at the engine level instead of breaking\n * downstream rules silently,\n * - the values are interpolatable for animations.\n *\n * The registration is scoped to this shadow root. Consumers override these\n * by setting the same custom properties on a parent (e.g. ::host).\n *\n * Components use the three-tier cascade:\n * var(--notectl-<component>-<prop>, var(--notectl-<prop>, <fallback>))\n */\n@property --notectl-bg { syntax: '<color>'; initial-value: #ffffff; inherits: true; }\n@property --notectl-fg { syntax: '<color>'; initial-value: #1f2328; inherits: true; }\n@property --notectl-fg-muted { syntax: '<color>'; initial-value: #6e7781; inherits: true; }\n@property --notectl-border { syntax: '<color>'; initial-value: #d0d7de; inherits: true; }\n@property --notectl-border-focus { syntax: '<color>'; initial-value: #0969da; inherits: true; }\n@property --notectl-primary { syntax: '<color>'; initial-value: #0969da; inherits: true; }\n@property --notectl-primary-fg { syntax: '<color>'; initial-value: #ffffff; inherits: true; }\n@property --notectl-focus-ring { syntax: '<color>'; initial-value: rgba(9, 105, 218, 0.3); inherits: true; }\n\n:host {\n\tdisplay: block;\n\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n\tfont-size: 16px;\n\tline-height: 1.6;\n\tcolor: var(--notectl-fg);\n}\n\n.notectl-editor {\n\tdisplay: flex;\n\tflex-direction: column;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: var(--notectl-border-radius, 6px);\n\toverflow: hidden;\n\tbackground: var(--notectl-bg);\n\t/* Fill any explicit host height so embedders can size <notectl-editor>\n\t (e.g. height: 500px) and have the toolbar/content/footer fit inside.\n\t border-box keeps the 1px border within the host's height; min-height: 0\n\t lets the flex content shrink below its intrinsic size so internal\n\t scrolling can engage. */\n\tbox-sizing: border-box;\n\theight: 100%;\n\tmin-height: 0;\n}\n\n.notectl-editor:focus-within {\n\tborder-color: var(--notectl-border-focus);\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* Content Area */\n.notectl-content {\n\tflex: 1;\n\tpadding: 12px 16px;\n\toutline: none;\n\tmin-height: var(--notectl-content-min-height, 400px);\n\tmax-height: var(--notectl-content-max-height, none);\n\toverflow-y: auto;\n\tcursor: text;\n\tposition: relative;\n\twhite-space: pre-wrap;\n\tword-wrap: break-word;\n\t-webkit-user-select: text;\n\tuser-select: text;\n\t-moz-tab-size: 4;\n\ttab-size: 4;\n}\n\n.notectl-content p {\n\tmargin: 0;\n\tpadding: 2px 0;\n\tmin-height: 1.6em;\n}\n\n.notectl-content p + p {\n\tmargin-top: 0;\n}\n\n/* Horizontal Rule */\n.notectl-content hr {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 8px 0;\n\tpadding: 0;\n\tcursor: default;\n\tuser-select: none;\n}\n\n/* Placeholder */\n.notectl-content.notectl-content--empty::before {\n\tcontent: attr(data-placeholder);\n\tcolor: var(--notectl-fg-muted);\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 12px;\n\tinset-inline-start: 16px;\n}\n\n/* Plugin container bottom */\n.notectl-plugin-container--bottom {\n\tborder-top: 1px solid var(--notectl-border);\n\tflex-shrink: 0;\n}\n\n/* Screen reader announcements */\n.notectl-sr-only {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tmargin: -1px;\n\tpadding: 0;\n\toverflow: hidden;\n\tclip: rect(0, 0, 0, 0);\n\twhite-space: nowrap;\n\tborder: 0;\n}\n\n/* Node selection */\n.notectl-node-selected {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: 2px;\n}\n\n/* High-contrast / forced-colors mode (Windows High Contrast, etc.) */\n@media (forced-colors: active) {\n\t.notectl-editor {\n\t\tborder-color: CanvasText;\n\t}\n\t.notectl-editor:focus-within {\n\t\tborder-color: Highlight;\n\t\tbox-shadow: 0 0 0 2px Highlight;\n\t}\n\t.notectl-content {\n\t\tcolor: CanvasText;\n\t}\n\t.notectl-plugin-container--top,\n\t.notectl-plugin-container--bottom {\n\t\tborder-color: CanvasText;\n\t}\n\t.notectl-node-selected {\n\t\toutline-color: Highlight;\n\t}\n}\n";
2
+ export declare const BASE_CSS = "\n/**\n * Public theme tokens.\n *\n * Declared via @property so that:\n * - DevTools surfaces them as first-class CSS variables,\n * - invalid values are rejected at the engine level instead of breaking\n * downstream rules silently,\n * - the values are interpolatable for animations.\n *\n * The registration is scoped to this shadow root. Consumers override these\n * by setting the same custom properties on a parent (e.g. ::host).\n *\n * Components use the three-tier cascade:\n * var(--notectl-<component>-<prop>, var(--notectl-<prop>, <fallback>))\n */\n@property --notectl-bg { syntax: '<color>'; initial-value: #ffffff; inherits: true; }\n@property --notectl-fg { syntax: '<color>'; initial-value: #1f2328; inherits: true; }\n@property --notectl-fg-muted { syntax: '<color>'; initial-value: #6e7781; inherits: true; }\n@property --notectl-border { syntax: '<color>'; initial-value: #d0d7de; inherits: true; }\n@property --notectl-border-focus { syntax: '<color>'; initial-value: #0969da; inherits: true; }\n@property --notectl-primary { syntax: '<color>'; initial-value: #0969da; inherits: true; }\n@property --notectl-primary-fg { syntax: '<color>'; initial-value: #ffffff; inherits: true; }\n@property --notectl-accent-fg { syntax: '<color>'; initial-value: #0969da; inherits: true; }\n@property --notectl-focus-ring { syntax: '<color>'; initial-value: rgba(9, 105, 218, 0.3); inherits: true; }\n\n:host {\n\tdisplay: block;\n\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n\tfont-size: 16px;\n\tline-height: 1.6;\n\tcolor: var(--notectl-fg);\n}\n\n.notectl-editor {\n\tdisplay: flex;\n\tflex-direction: column;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: var(--notectl-border-radius, 6px);\n\toverflow: hidden;\n\tbackground: var(--notectl-bg);\n\t/* Fill any explicit host height so embedders can size <notectl-editor>\n\t (e.g. height: 500px) and have the toolbar/content/footer fit inside.\n\t border-box keeps the 1px border within the host's height; min-height: 0\n\t lets the flex content shrink below its intrinsic size so internal\n\t scrolling can engage. */\n\tbox-sizing: border-box;\n\theight: 100%;\n\tmin-height: 0;\n}\n\n.notectl-editor:focus-within {\n\tborder-color: var(--notectl-border-focus);\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* Content Area */\n.notectl-content {\n\tflex: 1;\n\tpadding: 12px 16px;\n\toutline: none;\n\tmin-height: var(--notectl-content-min-height, 400px);\n\tmax-height: var(--notectl-content-max-height, none);\n\toverflow-y: auto;\n\tcursor: text;\n\tposition: relative;\n\twhite-space: pre-wrap;\n\tword-wrap: break-word;\n\t-webkit-user-select: text;\n\tuser-select: text;\n\t-moz-tab-size: 4;\n\ttab-size: 4;\n}\n\n.notectl-content p {\n\tmargin: 0;\n\tpadding: 2px 0;\n\tmin-height: 1.6em;\n}\n\n.notectl-content p + p {\n\tmargin-top: 0;\n}\n\n/* Horizontal Rule */\n.notectl-content hr {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 8px 0;\n\tpadding: 0;\n\tcursor: default;\n\tuser-select: none;\n}\n\n/* Placeholder */\n.notectl-content.notectl-content--empty::before {\n\tcontent: attr(data-placeholder);\n\tcolor: var(--notectl-fg-muted);\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 12px;\n\tinset-inline-start: 16px;\n}\n\n/* Plugin container bottom */\n.notectl-plugin-container--bottom {\n\tborder-top: 1px solid var(--notectl-border);\n\tflex-shrink: 0;\n}\n\n/* Screen reader announcements */\n.notectl-sr-only {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tmargin: -1px;\n\tpadding: 0;\n\toverflow: hidden;\n\tclip: rect(0, 0, 0, 0);\n\twhite-space: nowrap;\n\tborder: 0;\n}\n\n/* Node selection */\n.notectl-node-selected {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: 2px;\n}\n\n/* High-contrast / forced-colors mode (Windows High Contrast, etc.) */\n@media (forced-colors: active) {\n\t.notectl-editor {\n\t\tborder-color: CanvasText;\n\t}\n\t.notectl-editor:focus-within {\n\t\tborder-color: Highlight;\n\t\tbox-shadow: 0 0 0 2px Highlight;\n\t}\n\t.notectl-content {\n\t\tcolor: CanvasText;\n\t}\n\t.notectl-plugin-container--top,\n\t.notectl-plugin-container--bottom {\n\t\tborder-color: CanvasText;\n\t}\n\t.notectl-node-selected {\n\t\toutline-color: Highlight;\n\t}\n}\n";
3
3
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/base.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,QAAQ,soIAoJpB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/base.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,QAAQ,ouIAqJpB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Color picker popup styles (text-color + highlight plugins). */
2
- export declare const COLOR_PICKER_CSS = "\n/* Color Picker Popup */\n.notectl-color-picker {\n\tpadding: 8px;\n\tmin-width: 240px;\n}\n\n.notectl-color-picker__default {\n\tdisplay: block;\n\twidth: 100%;\n\tpadding: 6px 12px;\n\tmargin-bottom: 8px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-overlay);\n\tcursor: pointer;\n\tfont-size: 13px;\n\tcolor: var(--notectl-fg);\n\ttext-align: center;\n}\n\n.notectl-color-picker__default:hover {\n\tbackground: var(--notectl-hover-bg);\n}\n\n.notectl-color-picker__grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(10, 1fr);\n\tgap: 3px;\n}\n\n.notectl-color-picker__grid [role=\"row\"] {\n\tdisplay: contents;\n}\n\n.notectl-color-picker__swatch {\n\twidth: 22px;\n\theight: 22px;\n\tborder: 1px solid transparent;\n\tborder-radius: 3px;\n\tpadding: 0;\n\tcursor: pointer;\n\ttransition: transform 0.1s;\n}\n\n.notectl-color-picker__swatch:hover,\n.notectl-color-picker__swatch:focus-visible {\n\ttransform: scale(1.25);\n\tz-index: 1;\n}\n\n.notectl-color-picker__swatch:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: 1px;\n}\n\n.notectl-color-picker__swatch--active {\n\tborder: 2px solid var(--notectl-primary-fg);\n\tborder-radius: 3px;\n}\n\n.notectl-toolbar-btn--textColor .notectl-toolbar-btn__color-indicator {\n\tdisplay: block;\n\twidth: 16px;\n\theight: 3px;\n\tmargin-top: 1px;\n\tborder-radius: 1px;\n}\n";
2
+ export declare const COLOR_PICKER_CSS = "\n/* Color Picker Popup */\n.notectl-color-picker {\n\tpadding: 8px;\n\tmin-width: 240px;\n}\n\n.notectl-color-picker__default {\n\tdisplay: block;\n\twidth: 100%;\n\tpadding: 6px 12px;\n\tmargin-bottom: 8px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-overlay);\n\tcursor: pointer;\n\tfont-size: 13px;\n\tcolor: var(--notectl-fg);\n\ttext-align: center;\n}\n\n.notectl-color-picker__default:hover {\n\tbackground: var(--notectl-hover-bg);\n}\n\n.notectl-color-picker__grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(10, 1fr);\n\tgap: 3px;\n}\n\n.notectl-color-picker__grid [role=\"row\"] {\n\tdisplay: contents;\n}\n\n.notectl-color-picker__swatch {\n\twidth: 22px;\n\theight: 22px;\n\tborder: 1px solid transparent;\n\tborder-radius: 3px;\n\tpadding: 0;\n\tcursor: pointer;\n\ttransition: transform 0.1s;\n}\n\n.notectl-color-picker__swatch:hover,\n.notectl-color-picker__swatch:focus-visible {\n\ttransform: scale(1.25);\n\tz-index: 1;\n}\n\n.notectl-color-picker__swatch:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: 1px;\n}\n\n.notectl-color-picker__swatch--active {\n\tborder: 2px solid var(--notectl-accent-fg);\n\tborder-radius: 3px;\n}\n\n.notectl-toolbar-btn--textColor .notectl-toolbar-btn__color-indicator {\n\tdisplay: block;\n\twidth: 16px;\n\theight: 3px;\n\tmargin-top: 1px;\n\tborder-radius: 1px;\n}\n";
3
3
  //# sourceMappingURL=color-picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/color-picker.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,w5CAoE5B,CAAC"}
1
+ {"version":3,"file":"color-picker.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/color-picker.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,u5CAoE5B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Font picker toolbar combobox + popup styles. */
2
- export declare const FONT_SELECT_CSS = "\n/* Font Select \u2014 Width overrides for combobox button */\n.notectl-toolbar-btn--font {\n\tmin-width: 100px;\n\tmax-width: 160px;\n}\n\n/* Font Picker Popup */\n.notectl-font-picker {\n\tmin-width: 200px;\n\tmax-height: 320px;\n\toverflow-y: auto;\n}\n\n.notectl-font-picker__list {\n\tpadding: 4px 0;\n}\n\n.notectl-font-picker__item {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\twidth: 100%;\n\tpadding: 7px 12px;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tline-height: 1.4;\n\ttext-align: start;\n\twhite-space: nowrap;\n\tfont-family: inherit;\n\ttransition: background 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-font-picker__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-font-picker__item--active {\n\tbackground: var(--notectl-active-bg);\n\tcolor: var(--notectl-primary-fg);\n}\n\n@media (hover: hover) {\n\t.notectl-font-picker__item--active:hover {\n\t\tbackground: var(--notectl-active-bg);\n\t}\n}\n\n.notectl-font-picker__check {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\tflex-shrink: 0;\n\tfont-size: 13px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-font-picker__label {\n\tflex: 1;\n}\n\n.notectl-font-picker__separator {\n\theight: 1px;\n\tbackground: var(--notectl-border);\n\tmargin: 4px 8px;\n}\n";
2
+ export declare const FONT_SELECT_CSS = "\n/* Font Select \u2014 Width overrides for combobox button */\n.notectl-toolbar-btn--font {\n\tmin-width: 100px;\n\tmax-width: 160px;\n}\n\n/* Font Picker Popup */\n.notectl-font-picker {\n\tmin-width: 200px;\n\tmax-height: 320px;\n\toverflow-y: auto;\n}\n\n.notectl-font-picker__list {\n\tpadding: 4px 0;\n}\n\n.notectl-font-picker__item {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\twidth: 100%;\n\tpadding: 7px 12px;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tline-height: 1.4;\n\ttext-align: start;\n\twhite-space: nowrap;\n\tfont-family: inherit;\n\ttransition: background 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-font-picker__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-font-picker__item--active {\n\tbackground: var(--notectl-active-bg);\n\tcolor: var(--notectl-accent-fg);\n}\n\n@media (hover: hover) {\n\t.notectl-font-picker__item--active:hover {\n\t\tbackground: var(--notectl-active-bg);\n\t}\n}\n\n.notectl-font-picker__check {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\tflex-shrink: 0;\n\tfont-size: 13px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-accent-fg);\n}\n\n.notectl-font-picker__label {\n\tflex: 1;\n}\n\n.notectl-font-picker__separator {\n\theight: 1px;\n\tbackground: var(--notectl-border);\n\tmargin: 4px 8px;\n}\n";
3
3
  //# sourceMappingURL=font-select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"font-select.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/font-select.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,eAAO,MAAM,eAAe,+4CAyE3B,CAAC"}
1
+ {"version":3,"file":"font-select.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/font-select.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,eAAO,MAAM,eAAe,64CAyE3B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Font size picker toolbar combobox + popup styles. */
2
- export declare const FONT_SIZE_SELECT_CSS = "\n/* Font Size Select \u2014 Width overrides for combobox button */\n.notectl-toolbar-btn--fontSize {\n\tmin-width: 60px;\n\tmax-width: 80px;\n}\n\n/* Font Size Picker Popup */\n.notectl-font-size-picker {\n\tmin-width: 140px;\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.notectl-font-size-picker__input-wrapper {\n\tpadding: 8px 8px 4px;\n}\n\n.notectl-font-size-picker__input {\n\twidth: 100%;\n\tpadding: 6px 8px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tfont-size: 13px;\n\tfont-family: inherit;\n\tcolor: var(--notectl-fg);\n\tbackground: var(--notectl-surface-overlay);\n\toutline: none;\n\tbox-sizing: border-box;\n\t-moz-appearance: textfield;\n}\n\n.notectl-font-size-picker__input::-webkit-inner-spin-button,\n.notectl-font-size-picker__input::-webkit-outer-spin-button {\n\t-webkit-appearance: none;\n\tmargin: 0;\n}\n\n.notectl-font-size-picker__input:focus {\n\tborder-color: var(--notectl-border-focus);\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.notectl-font-size-picker__list {\n\tmax-height: 280px;\n\toverflow-y: auto;\n\tpadding: 4px 0;\n}\n\n.notectl-font-size-picker__item {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\twidth: 100%;\n\tpadding: 7px 12px;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tline-height: 1.4;\n\ttext-align: start;\n\twhite-space: nowrap;\n\tfont-family: inherit;\n\ttransition: background 0.1s;\n\toutline: none;\n}\n\n@media (hover: hover) {\n\t.notectl-font-size-picker__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-font-size-picker__item--active {\n\tbackground: var(--notectl-active-bg);\n\tcolor: var(--notectl-primary-fg);\n}\n\n@media (hover: hover) {\n\t.notectl-font-size-picker__item--active:hover {\n\t\tbackground: var(--notectl-active-bg);\n\t}\n}\n\n.notectl-font-size-picker__item--focused {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: -2px;\n}\n\n.notectl-font-size-picker__check {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\tflex-shrink: 0;\n\tfont-size: 13px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-font-size-picker__label {\n\tflex: 1;\n}\n";
2
+ export declare const FONT_SIZE_SELECT_CSS = "\n/* Font Size Select \u2014 Width overrides for combobox button */\n.notectl-toolbar-btn--fontSize {\n\tmin-width: 60px;\n\tmax-width: 80px;\n}\n\n/* Font Size Picker Popup */\n.notectl-font-size-picker {\n\tmin-width: 140px;\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.notectl-font-size-picker__input-wrapper {\n\tpadding: 8px 8px 4px;\n}\n\n.notectl-font-size-picker__input {\n\twidth: 100%;\n\tpadding: 6px 8px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tfont-size: 13px;\n\tfont-family: inherit;\n\tcolor: var(--notectl-fg);\n\tbackground: var(--notectl-surface-overlay);\n\toutline: none;\n\tbox-sizing: border-box;\n\t-moz-appearance: textfield;\n}\n\n.notectl-font-size-picker__input::-webkit-inner-spin-button,\n.notectl-font-size-picker__input::-webkit-outer-spin-button {\n\t-webkit-appearance: none;\n\tmargin: 0;\n}\n\n.notectl-font-size-picker__input:focus {\n\tborder-color: var(--notectl-border-focus);\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.notectl-font-size-picker__list {\n\tmax-height: 280px;\n\toverflow-y: auto;\n\tpadding: 4px 0;\n}\n\n.notectl-font-size-picker__item {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\twidth: 100%;\n\tpadding: 7px 12px;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tline-height: 1.4;\n\ttext-align: start;\n\twhite-space: nowrap;\n\tfont-family: inherit;\n\ttransition: background 0.1s;\n\toutline: none;\n}\n\n@media (hover: hover) {\n\t.notectl-font-size-picker__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-font-size-picker__item--active {\n\tbackground: var(--notectl-active-bg);\n\tcolor: var(--notectl-accent-fg);\n}\n\n@media (hover: hover) {\n\t.notectl-font-size-picker__item--active:hover {\n\t\tbackground: var(--notectl-active-bg);\n\t}\n}\n\n.notectl-font-size-picker__item--focused {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: -2px;\n}\n\n.notectl-font-size-picker__check {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\tflex-shrink: 0;\n\tfont-size: 13px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-accent-fg);\n}\n\n.notectl-font-size-picker__label {\n\tflex: 1;\n}\n";
3
3
  //# sourceMappingURL=font-size-select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"font-size-select.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/font-size-select.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,eAAO,MAAM,oBAAoB,suEAwGhC,CAAC"}
1
+ {"version":3,"file":"font-size-select.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/font-size-select.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,eAAO,MAAM,oBAAoB,ouEAwGhC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Heading picker toolbar combobox + popup styles. */
2
- export declare const HEADING_SELECT_CSS = "\n/* Heading Select \u2014 Width overrides for combobox button */\n.notectl-toolbar-btn--heading {\n\tmin-width: 100px;\n\tmax-width: 160px;\n}\n\n/* Heading Picker Popup */\n.notectl-heading-picker {\n\tmin-width: 200px;\n\tmax-height: 320px;\n\toverflow-y: auto;\n}\n\n.notectl-heading-picker__list {\n\tpadding: 4px 0;\n}\n\n.notectl-heading-picker__item {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\twidth: 100%;\n\tpadding: 7px 12px;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\ttext-align: start;\n\twhite-space: nowrap;\n\tfont-family: inherit;\n\ttransition: background 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-heading-picker__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-heading-picker__item--active {\n\tbackground: var(--notectl-active-bg);\n\tcolor: var(--notectl-primary-fg);\n}\n\n@media (hover: hover) {\n\t.notectl-heading-picker__item--active:hover {\n\t\tbackground: var(--notectl-active-bg);\n\t}\n}\n\n.notectl-heading-picker__check {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\tflex-shrink: 0;\n\tfont-size: 13px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-heading-picker__label {\n\tflex: 1;\n}\n";
2
+ export declare const HEADING_SELECT_CSS = "\n/* Heading Select \u2014 Width overrides for combobox button */\n.notectl-toolbar-btn--heading {\n\tmin-width: 100px;\n\tmax-width: 160px;\n}\n\n/* Heading Picker Popup */\n.notectl-heading-picker {\n\tmin-width: 200px;\n\tmax-height: 320px;\n\toverflow-y: auto;\n}\n\n.notectl-heading-picker__list {\n\tpadding: 4px 0;\n}\n\n.notectl-heading-picker__item {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\twidth: 100%;\n\tpadding: 7px 12px;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\ttext-align: start;\n\twhite-space: nowrap;\n\tfont-family: inherit;\n\ttransition: background 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-heading-picker__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-heading-picker__item--active {\n\tbackground: var(--notectl-active-bg);\n\tcolor: var(--notectl-accent-fg);\n}\n\n@media (hover: hover) {\n\t.notectl-heading-picker__item--active:hover {\n\t\tbackground: var(--notectl-active-bg);\n\t}\n}\n\n.notectl-heading-picker__check {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\tflex-shrink: 0;\n\tfont-size: 13px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-accent-fg);\n}\n\n.notectl-heading-picker__label {\n\tflex: 1;\n}\n";
3
3
  //# sourceMappingURL=heading-select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading-select.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/heading-select.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,eAAO,MAAM,kBAAkB,yyCAkE9B,CAAC"}
1
+ {"version":3,"file":"heading-select.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/heading-select.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,eAAO,MAAM,kBAAkB,uyCAkE9B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Image styles — display, alignment, resize handles, upload overlay. */
2
- export declare const IMAGE_CSS = "\n/* Image */\n.notectl-image {\n\tmargin: 8px 0;\n\tuser-select: none;\n\tline-height: 0;\n}\n\n.notectl-image--center {\n\ttext-align: center;\n}\n\n.notectl-image--start {\n\ttext-align: start;\n}\n\n.notectl-image--end {\n\ttext-align: end;\n}\n\n.notectl-image__container {\n\tdisplay: inline-block;\n\tposition: relative;\n\tline-height: 0;\n}\n\n.notectl-image__img {\n\tdisplay: block;\n\tmax-width: 100%;\n\tborder-radius: 4px;\n}\n\n.notectl-image--selected .notectl-image__container {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: 2px;\n\tborder-radius: 6px;\n}\n\n/* Alignment toolbar (appears on image selection) */\n.notectl-image__align-toolbar {\n\tdisplay: flex;\n\tgap: 2px;\n\tposition: absolute;\n\ttop: -36px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tbackground: var(--notectl-surface-overlay);\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 6px;\n\tpadding: 2px;\n\tbox-shadow: 0 2px 8px var(--notectl-shadow);\n\tz-index: 10;\n}\n\n.notectl-image__align-btn {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\theight: 28px;\n\tborder: none;\n\tbackground: transparent;\n\tborder-radius: 4px;\n\tcursor: pointer;\n\tcolor: var(--notectl-fg);\n}\n\n.notectl-image__align-btn:hover {\n\tbackground: var(--notectl-hover-bg);\n}\n\n.notectl-image__align-btn--active {\n\tbackground: var(--notectl-active-bg);\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-image__align-btn svg {\n\twidth: 16px;\n\theight: 16px;\n\tfill: currentColor;\n}\n\n/* Upload overlay */\n.notectl-image__overlay {\n\tposition: absolute;\n\tinset: 0;\n\tdisplay: none;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground: rgba(255, 255, 255, 0.8);\n\tborder-radius: 4px;\n\tfont-size: 13px;\n\tcolor: var(--notectl-fg-muted);\n}\n\n.notectl-image__overlay--uploading {\n\tdisplay: flex;\n}\n\n.notectl-image__overlay--error {\n\tdisplay: flex;\n\tbackground: var(--notectl-danger-muted);\n\tcolor: var(--notectl-danger);\n}\n\n/* Resize overlay + handles */\n.notectl-image__resize-overlay {\n\tposition: absolute;\n\tinset: 0;\n\tpointer-events: none;\n}\n\n.notectl-image__resize-handle {\n\tposition: absolute;\n\twidth: 10px;\n\theight: 10px;\n\tbackground: var(--notectl-surface-raised);\n\tborder: 2px solid var(--notectl-primary);\n\tborder-radius: 50%;\n\tpointer-events: all;\n\tz-index: 2;\n\ttransition: transform 0.1s, background 0.1s;\n}\n\n.notectl-image__resize-handle:hover {\n\tbackground: var(--notectl-primary);\n\ttransform: scale(1.3);\n}\n\n.notectl-image--resizing .notectl-image__resize-handle {\n\tbackground: var(--notectl-primary);\n}\n\n.notectl-image__resize-handle--nw {\n\ttop: -5px;\n\tinset-inline-start: -5px;\n\tcursor: nwse-resize;\n}\n\n.notectl-image__resize-handle--ne {\n\ttop: -5px;\n\tinset-inline-end: -5px;\n\tcursor: nesw-resize;\n}\n\n.notectl-image__resize-handle--sw {\n\tbottom: -5px;\n\tinset-inline-start: -5px;\n\tcursor: nesw-resize;\n}\n\n.notectl-image__resize-handle--se {\n\tbottom: -5px;\n\tinset-inline-end: -5px;\n\tcursor: nwse-resize;\n}\n\n/* RTL cursor overrides \u2014 flip diagonal cursors when in RTL context */\n[dir=\"rtl\"] .notectl-image__resize-handle--nw {\n\tcursor: nesw-resize;\n}\n\n[dir=\"rtl\"] .notectl-image__resize-handle--ne {\n\tcursor: nwse-resize;\n}\n\n[dir=\"rtl\"] .notectl-image__resize-handle--sw {\n\tcursor: nwse-resize;\n}\n\n[dir=\"rtl\"] .notectl-image__resize-handle--se {\n\tcursor: nesw-resize;\n}\n\n/* Size indicator tooltip */\n.notectl-image__size-indicator {\n\tposition: absolute;\n\tbottom: -28px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tpadding: 2px 8px;\n\tbackground: var(--notectl-tooltip-bg);\n\tcolor: var(--notectl-tooltip-fg);\n\tfont-size: 11px;\n\tfont-weight: 500;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\tpointer-events: none;\n\topacity: 0;\n\ttransition: opacity 0.15s;\n\tz-index: 3;\n}\n\n.notectl-image__size-indicator--visible {\n\topacity: 1;\n}\n\n/* Keyboard resize hint (shown on selection, hidden during drag) */\n.notectl-image__keyboard-hint {\n\tdisplay: none;\n\tposition: absolute;\n\tbottom: -28px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tpadding: 2px 8px;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\twhite-space: nowrap;\n\tpointer-events: none;\n\tz-index: 3;\n}\n\n.notectl-image--selected .notectl-image__keyboard-hint {\n\tdisplay: block;\n}\n\n.notectl-image--resizing .notectl-image__keyboard-hint {\n\tdisplay: none;\n}\n\n/* Resizing feedback */\n.notectl-image--resizing .notectl-image__img {\n\topacity: 0.85;\n}\n";
2
+ export declare const IMAGE_CSS = "\n/* Image */\n.notectl-image {\n\tmargin: 8px 0;\n\tuser-select: none;\n\tline-height: 0;\n}\n\n.notectl-image--center {\n\ttext-align: center;\n}\n\n.notectl-image--start {\n\ttext-align: start;\n}\n\n.notectl-image--end {\n\ttext-align: end;\n}\n\n.notectl-image__container {\n\tdisplay: inline-block;\n\tposition: relative;\n\tline-height: 0;\n}\n\n.notectl-image__img {\n\tdisplay: block;\n\tmax-width: 100%;\n\tborder-radius: 4px;\n}\n\n.notectl-image--selected .notectl-image__container {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: 2px;\n\tborder-radius: 6px;\n}\n\n/* Alignment toolbar (appears on image selection) */\n.notectl-image__align-toolbar {\n\tdisplay: flex;\n\tgap: 2px;\n\tposition: absolute;\n\ttop: -36px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tbackground: var(--notectl-surface-overlay);\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 6px;\n\tpadding: 2px;\n\tbox-shadow: 0 2px 8px var(--notectl-shadow);\n\tz-index: 10;\n}\n\n.notectl-image__align-btn {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\theight: 28px;\n\tborder: none;\n\tbackground: transparent;\n\tborder-radius: 4px;\n\tcursor: pointer;\n\tcolor: var(--notectl-fg);\n}\n\n.notectl-image__align-btn:hover {\n\tbackground: var(--notectl-hover-bg);\n}\n\n.notectl-image__align-btn--active {\n\tbackground: var(--notectl-active-bg);\n\tcolor: var(--notectl-accent-fg);\n}\n\n.notectl-image__align-btn svg {\n\twidth: 16px;\n\theight: 16px;\n\tfill: currentColor;\n}\n\n/* Upload overlay */\n.notectl-image__overlay {\n\tposition: absolute;\n\tinset: 0;\n\tdisplay: none;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground: rgba(255, 255, 255, 0.8);\n\tborder-radius: 4px;\n\tfont-size: 13px;\n\tcolor: var(--notectl-fg-muted);\n}\n\n.notectl-image__overlay--uploading {\n\tdisplay: flex;\n}\n\n.notectl-image__overlay--error {\n\tdisplay: flex;\n\tbackground: var(--notectl-danger-muted);\n\tcolor: var(--notectl-danger);\n}\n\n/* Resize overlay + handles */\n.notectl-image__resize-overlay {\n\tposition: absolute;\n\tinset: 0;\n\tpointer-events: none;\n}\n\n.notectl-image__resize-handle {\n\tposition: absolute;\n\twidth: 10px;\n\theight: 10px;\n\tbackground: var(--notectl-surface-raised);\n\tborder: 2px solid var(--notectl-primary);\n\tborder-radius: 50%;\n\tpointer-events: all;\n\tz-index: 2;\n\ttransition: transform 0.1s, background 0.1s;\n}\n\n.notectl-image__resize-handle:hover {\n\tbackground: var(--notectl-primary);\n\ttransform: scale(1.3);\n}\n\n.notectl-image--resizing .notectl-image__resize-handle {\n\tbackground: var(--notectl-primary);\n}\n\n.notectl-image__resize-handle--nw {\n\ttop: -5px;\n\tinset-inline-start: -5px;\n\tcursor: nwse-resize;\n}\n\n.notectl-image__resize-handle--ne {\n\ttop: -5px;\n\tinset-inline-end: -5px;\n\tcursor: nesw-resize;\n}\n\n.notectl-image__resize-handle--sw {\n\tbottom: -5px;\n\tinset-inline-start: -5px;\n\tcursor: nesw-resize;\n}\n\n.notectl-image__resize-handle--se {\n\tbottom: -5px;\n\tinset-inline-end: -5px;\n\tcursor: nwse-resize;\n}\n\n/* RTL cursor overrides \u2014 flip diagonal cursors when in RTL context */\n[dir=\"rtl\"] .notectl-image__resize-handle--nw {\n\tcursor: nesw-resize;\n}\n\n[dir=\"rtl\"] .notectl-image__resize-handle--ne {\n\tcursor: nwse-resize;\n}\n\n[dir=\"rtl\"] .notectl-image__resize-handle--sw {\n\tcursor: nwse-resize;\n}\n\n[dir=\"rtl\"] .notectl-image__resize-handle--se {\n\tcursor: nesw-resize;\n}\n\n/* Size indicator tooltip */\n.notectl-image__size-indicator {\n\tposition: absolute;\n\tbottom: -28px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tpadding: 2px 8px;\n\tbackground: var(--notectl-tooltip-bg);\n\tcolor: var(--notectl-tooltip-fg);\n\tfont-size: 11px;\n\tfont-weight: 500;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\tpointer-events: none;\n\topacity: 0;\n\ttransition: opacity 0.15s;\n\tz-index: 3;\n}\n\n.notectl-image__size-indicator--visible {\n\topacity: 1;\n}\n\n/* Keyboard resize hint (shown on selection, hidden during drag) */\n.notectl-image__keyboard-hint {\n\tdisplay: none;\n\tposition: absolute;\n\tbottom: -28px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tpadding: 2px 8px;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\twhite-space: nowrap;\n\tpointer-events: none;\n\tz-index: 3;\n}\n\n.notectl-image--selected .notectl-image__keyboard-hint {\n\tdisplay: block;\n}\n\n.notectl-image--resizing .notectl-image__keyboard-hint {\n\tdisplay: none;\n}\n\n/* Resizing feedback */\n.notectl-image--resizing .notectl-image__img {\n\topacity: 0.85;\n}\n";
3
3
  //# sourceMappingURL=image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/image.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,SAAS,s/IAgOrB,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/image.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,SAAS,q/IAgOrB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Table styles — table layout, selection, context menu, controls, insert lines. */
2
- export declare const TABLE_CSS = "\n/* Table */\n.notectl-table-wrapper {\n\tmargin: 8px 0;\n\toverflow-x: auto;\n\tposition: relative;\n}\n\n.notectl-table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n\ttable-layout: fixed;\n}\n\n.notectl-table col {\n\tbox-sizing: border-box;\n}\n\n/* Border resolution order: per-table local override \u2192 theme component token \u2192 theme global token.\n * The inline --ntbl-border-color is set by the toolbar's \"border color\" action and must win\n * over the theme so per-table customizations remain visible after a theme switch.\n */\n.notectl-table td {\n\tborder: 1px solid var(--ntbl-border-color, var(--notectl-table-border, var(--notectl-border)));\n\tbackground: var(--notectl-table-cell-bg, transparent);\n\tpadding: 8px 12px;\n\tmin-width: var(--ntbl-min-column-width, 60px);\n\tvertical-align: top;\n\tmin-height: 1.6em;\n}\n\n.notectl-table th {\n\tborder: 1px solid var(--ntbl-border-color, var(--notectl-table-border, var(--notectl-border)));\n\tbackground: var(--notectl-table-header-bg, var(--notectl-surface-raised));\n\tpadding: 8px 12px;\n\tmin-width: var(--ntbl-min-column-width, 60px);\n\tvertical-align: top;\n\ttext-align: start;\n\tfont-weight: 600;\n}\n\n.notectl-table--borderless td {\n\tborder: 1px dashed rgba(128, 128, 128, 0.15);\n}\n\n@media print {\n\t.notectl-table--borderless td {\n\t\tborder: none;\n\t}\n}\n\n.notectl-table td:focus-within {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: -2px;\n}\n\n.notectl-table-cell--selected {\n\tbackground: var(--notectl-primary-muted);\n}\n\n/* Table Context Menu */\n.notectl-table-context-menu {\n\tbackground: var(--notectl-surface-overlay);\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 6px;\n\tbox-shadow: 0 4px 12px var(--notectl-shadow);\n\tpadding: 4px 0;\n\tmin-width: 180px;\n\tz-index: 10000;\n}\n\n.notectl-table-context-menu button {\n\tdisplay: block;\n\twidth: 100%;\n\tpadding: 8px 12px;\n\ttext-align: start;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tfont-family: inherit;\n}\n\n.notectl-table-context-menu button:hover {\n\tbackground: var(--notectl-hover-bg);\n}\n\n.notectl-table-context-menu hr {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 4px 0;\n}\n\n/* === Table Controls === */\n\n/* Outer container for table + controls */\n.ntbl-container {\n\tposition: relative;\n\tmargin: 8px 0;\n\tpadding-block-start: 24px;\n\tpadding-inline-start: 24px;\n}\n\n.ntbl-container .notectl-table-wrapper {\n\tmargin: 0;\n}\n\n.ntbl-container.notectl-table--selected .notectl-table-wrapper {\n\toutline: 2px solid var(--notectl-primary-fg);\n\toutline-offset: 2px;\n\tborder-radius: 6px;\n}\n\n/* --- Column Handle Bar --- */\n.ntbl-col-bar {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 24px;\n\theight: 20px;\n\tdisplay: flex;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tz-index: 3;\n\tpointer-events: none;\n}\n\n.ntbl-container:hover .ntbl-col-bar,\n.ntbl-container:focus-within .ntbl-col-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-col-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n/* --- Row Handle Bar --- */\n.ntbl-row-bar {\n\tposition: absolute;\n\ttop: 24px;\n\tinset-inline-start: 0;\n\twidth: 20px;\n\tdisplay: flex;\n\tflex-direction: column;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tz-index: 3;\n\tpointer-events: none;\n}\n\n.ntbl-container:hover .ntbl-row-bar,\n.ntbl-container:focus-within .ntbl-row-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-row-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n/* --- Handle (shared base) --- */\n.ntbl-handle {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: pointer;\n\ttransition: background 0.15s ease;\n\tborder-radius: 3px;\n}\n\n.ntbl-handle-select {\n\tposition: absolute;\n\tinset: 0;\n\twidth: 100%;\n\theight: 100%;\n\tborder: 0;\n\tborder-radius: inherit;\n\tbackground: transparent;\n\tcursor: pointer;\n}\n\n.ntbl-handle-select[aria-pressed=\"true\"] {\n\tbackground: var(--notectl-primary-muted);\n\tbox-shadow: inset 0 0 0 1px var(--notectl-primary);\n}\n\n.ntbl-handle-select:focus-visible {\n\toutline: none;\n\tbox-shadow: inset 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-col-handle {\n\theight: 100%;\n\tbackground: var(--notectl-hover-bg);\n\tborder-radius: 4px 4px 0 0;\n}\n\n.ntbl-col-handle:hover {\n\tbackground: var(--notectl-border);\n}\n\n.ntbl-row-handle {\n\twidth: 100%;\n\tbackground: var(--notectl-hover-bg);\n\tborder-start-start-radius: 4px;\n\tborder-end-start-radius: 4px;\n}\n\n.ntbl-row-handle:hover {\n\tbackground: var(--notectl-border);\n}\n\n/* --- Handle Delete Button --- */\n.ntbl-handle-delete {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\theight: 16px;\n\tborder: none;\n\tbackground: transparent;\n\tcolor: var(--notectl-fg-muted);\n\tcursor: pointer;\n\tborder-radius: 3px;\n\tpadding: 0;\n\topacity: 0;\n\ttransform: scale(0.7);\n\ttransition: opacity 0.15s, transform 0.15s,\n\t\tbackground 0.15s, color 0.15s;\n\tz-index: 1;\n}\n\n/* --- Logical column/row resize separators --- */\n.ntbl-col-resize-bar,\n.ntbl-row-resize-bar {\n\tposition: absolute;\n\tinset: 0 auto auto 0;\n\tz-index: 8;\n\tpointer-events: none;\n}\n\n.ntbl-resize-separator {\n\tposition: absolute;\n\tdisplay: block;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\topacity: 0;\n\tpointer-events: none;\n\ttouch-action: none;\n}\n\n.ntbl-resize-separator--column {\n\twidth: 12px;\n\ttransform: translateX(-6px);\n\tcursor: col-resize;\n}\n\n.ntbl-resize-separator--row {\n\theight: 12px;\n\ttransform: translateY(-6px);\n\tcursor: row-resize;\n}\n\n.ntbl-container:hover .ntbl-resize-separator,\n.ntbl-container:focus-within .ntbl-resize-separator,\n.ntbl-container.notectl-table--selected .ntbl-resize-separator,\n.ntbl-container--resizing-column .ntbl-resize-separator--column,\n.ntbl-container--resizing-row .ntbl-resize-separator--row {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-resize-separator::after {\n\tcontent: \"\";\n\tposition: absolute;\n\tbackground: var(--notectl-primary);\n\topacity: 0.35;\n}\n\n.ntbl-resize-separator--column::after {\n\tinset: 0 auto 0 5px;\n\twidth: 2px;\n}\n\n.ntbl-resize-separator--row::after {\n\tinset: 5px 0 auto 0;\n\theight: 2px;\n}\n\n.ntbl-resize-separator:hover::after,\n.ntbl-resize-separator:focus-visible::after {\n\topacity: 1;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-resize-separator:focus-visible {\n\toutline: none;\n}\n\n.ntbl-resize-indicator {\n\tposition: absolute;\n\tdisplay: none;\n\tz-index: 12;\n\tpadding: 3px 7px;\n\tborder-radius: 4px;\n\tbackground: var(--notectl-fg);\n\tcolor: var(--notectl-bg);\n\tfont: 12px/1.4 monospace;\n\tpointer-events: none;\n\twhite-space: nowrap;\n}\n\n.ntbl-resize-indicator--visible {\n\tdisplay: block;\n}\n\n.ntbl-container--resizing-column,\n.ntbl-container--resizing-column * {\n\tcursor: col-resize !important;\n\tuser-select: none !important;\n}\n\n.ntbl-container--resizing-row,\n.ntbl-container--resizing-row * {\n\tcursor: row-resize !important;\n\tuser-select: none !important;\n}\n\n.ntbl-handle:hover .ntbl-handle-delete,\n.ntbl-handle:focus-within .ntbl-handle-delete {\n\topacity: 1;\n\ttransform: scale(1);\n}\n\n.ntbl-handle-delete:hover,\n.ntbl-handle-delete:focus-visible {\n\tbackground: var(--notectl-danger-muted);\n\tcolor: var(--notectl-danger);\n}\n\n.ntbl-handle-delete:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Insert Lines --- */\n.ntbl-insert-line {\n\tposition: absolute;\n\tpointer-events: none;\n\topacity: 0;\n\ttransition: opacity 0.15s ease;\n\tz-index: 6;\n}\n\n.ntbl-insert-line--visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-insert-line--horizontal {\n\theight: 2px;\n\tbackground: linear-gradient(\n\t\t90deg,\n\t\ttransparent,\n\t\tvar(--notectl-primary) 8%,\n\t\tvar(--notectl-primary) 92%,\n\t\ttransparent\n\t);\n\tbox-shadow: 0 0 6px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-line--vertical {\n\twidth: 2px;\n\tbackground: linear-gradient(\n\t\t180deg,\n\t\ttransparent,\n\t\tvar(--notectl-primary) 8%,\n\t\tvar(--notectl-primary) 92%,\n\t\ttransparent\n\t);\n\tbox-shadow: 0 0 6px var(--notectl-focus-ring);\n}\n\n/* --- Insert Button on Line --- */\n.ntbl-insert-btn {\n\tposition: absolute;\n\twidth: 20px;\n\theight: 20px;\n\tborder-radius: 50%;\n\tbackground: var(--notectl-surface-raised);\n\tborder: 2px solid var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n\tcursor: pointer;\n\tpointer-events: all;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tpadding: 0;\n\tbox-shadow: 0 2px 8px var(--notectl-focus-ring);\n\ttransition: background 0.15s, color 0.15s,\n\t\ttransform 0.15s, box-shadow 0.15s;\n}\n\n.ntbl-insert-line--horizontal .ntbl-insert-btn {\n\tleft: 50%;\n\ttop: -9px;\n\ttransform: translateX(-50%);\n}\n\n.ntbl-insert-line--vertical .ntbl-insert-btn {\n\ttop: 50%;\n\tinset-inline-start: -9px;\n\ttransform: translateY(-50%);\n}\n\n.ntbl-insert-btn:hover,\n.ntbl-insert-btn:focus-visible {\n\tbackground: var(--notectl-primary);\n\tcolor: var(--notectl-primary-fg);\n\tbox-shadow: 0 2px 12px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-line--horizontal .ntbl-insert-btn:hover {\n\ttransform: translateX(-50%) scale(1.2);\n}\n\n.ntbl-insert-line--vertical .ntbl-insert-btn:hover {\n\ttransform: translateY(-50%) scale(1.2);\n}\n\n/* --- Add Row / Add Column Zones --- */\n.ntbl-add-zone {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: pointer;\n\tuser-select: none;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.2s ease,\n\t\tborder-color 0.2s ease;\n}\n\n.ntbl-container:hover .ntbl-add-zone,\n.ntbl-container:focus-within .ntbl-add-zone {\n\topacity: 1;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-add-zone {\n\topacity: 1;\n}\n\n.ntbl-delete-table-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 0;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-danger);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-raised);\n\tcolor: var(--notectl-danger);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n}\n\n.ntbl-container:hover .ntbl-delete-table-btn,\n.ntbl-container:focus-within .ntbl-delete-table-btn,\n.ntbl-container.notectl-table--selected .ntbl-delete-table-btn {\n\topacity: 1;\n}\n\n.ntbl-delete-table-btn:hover,\n.ntbl-delete-table-btn:focus-visible {\n\tbackground: var(--notectl-danger-muted);\n\tborder-color: var(--notectl-danger);\n}\n\n.ntbl-delete-table-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Context Menu Discovery Hint --- */\n.ntbl-context-hint {\n\tposition: absolute;\n\ttop: 4px;\n\tinset-inline-end: 0;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tpadding: 2px 8px;\n\tborder-radius: 4px;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tpointer-events: none;\n\twhite-space: nowrap;\n\tz-index: 5;\n}\n\n.ntbl-container:hover .ntbl-context-hint,\n.ntbl-container:focus-within .ntbl-context-hint,\n.ntbl-container.notectl-table--selected .ntbl-context-hint {\n\topacity: 1;\n}\n\n/* --- Table Actions Button --- */\n.ntbl-actions-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 48px;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-raised);\n\tcolor: var(--notectl-fg-muted);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n\tcursor: pointer;\n\tpadding: 0;\n}\n\n.ntbl-container:hover .ntbl-actions-btn,\n.ntbl-container:focus-within .ntbl-actions-btn,\n.ntbl-container.notectl-table--selected .ntbl-actions-btn {\n\topacity: 1;\n}\n\n.ntbl-actions-btn:hover,\n.ntbl-actions-btn:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\tborder-color: var(--notectl-primary);\n}\n\n.ntbl-actions-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Border Color Button --- */\n.ntbl-border-color-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 24px;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-raised);\n\tcolor: var(--notectl-fg-muted);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n\tcursor: pointer;\n\tpadding: 0;\n}\n\n.ntbl-container:hover .ntbl-border-color-btn,\n.ntbl-container:focus-within .ntbl-border-color-btn,\n.ntbl-container.notectl-table--selected .ntbl-border-color-btn {\n\topacity: 1;\n}\n\n.ntbl-border-color-btn:hover,\n.ntbl-border-color-btn:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\tborder-color: var(--notectl-primary);\n}\n\n.ntbl-border-color-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-border-color-swatch {\n\twidth: 10px;\n\theight: 10px;\n\tborder-radius: 2px;\n\tborder: 1px solid rgba(0, 0, 0, 0.15);\n}\n\n/* --- Context Menu Keyboard Hint --- */\n.notectl-table-context-menu__hint {\n\tpadding: 4px 12px 6px;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin-top: 4px;\n\ttext-align: center;\n\tuser-select: none;\n}\n\n/* --- Context Menu Focus --- */\n.notectl-table-context-menu button:focus-visible {\n\toutline: none;\n\tbackground: var(--notectl-primary-muted);\n\tbox-shadow: inset 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.notectl-table-context-menu [role=\"separator\"] {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 4px 0;\n\theight: 0;\n}\n\n/* --- Precise size editor --- */\n.notectl-table-size-editor {\n\tbox-sizing: border-box;\n\twidth: 340px;\n\tmax-width: calc(100vw - 16px);\n\tmin-width: 260px;\n\tpadding: 12px;\n}\n\n.notectl-table-size-editor__title {\n\tmargin-block-end: 10px;\n\tfont-weight: 600;\n}\n\n.notectl-table-size-editor__field {\n\tdisplay: grid;\n\tgap: 4px;\n\tmargin-block-end: 10px;\n\tfont-size: 13px;\n}\n\n.notectl-table-size-editor__input-wrap {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 6px;\n}\n\n.notectl-table-size-editor input {\n\tbox-sizing: border-box;\n\tmin-width: 0;\n\twidth: 100%;\n\tpadding: 6px 8px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-bg);\n\tcolor: var(--notectl-fg);\n\tfont: inherit;\n}\n\n.notectl-table-size-editor input:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: 1px;\n}\n\n.notectl-table-size-editor input[aria-invalid=\"true\"] {\n\tborder-color: var(--notectl-danger);\n}\n\n.notectl-table-size-editor__unit {\n\tcolor: var(--notectl-fg-muted);\n}\n\n.notectl-table-size-editor__error {\n\tmin-height: 1.2em;\n\tcolor: var(--notectl-danger);\n\tfont-size: 11px;\n}\n\n.notectl-table-size-editor__resets,\n.notectl-table-size-editor__actions {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: 4px;\n}\n\n.notectl-table-size-editor__resets {\n\tpadding-block-end: 10px;\n\tborder-block-end: 1px solid var(--notectl-border);\n}\n\n.notectl-table-size-editor__actions {\n\tjustify-content: flex-end;\n\tpadding-block-start: 10px;\n}\n\n.notectl-table-size-editor button {\n\twidth: auto;\n\tpadding: 6px 8px;\n\tborder-radius: 4px;\n\tfont-size: 12px;\n}\n\n.notectl-table-context-menu .notectl-table-size-editor__apply {\n\tbackground: var(--notectl-primary);\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-table-context-menu .notectl-table-size-editor button:disabled {\n\topacity: 0.5;\n\tcursor: not-allowed;\n}\n\n/* Read-only tables keep semantic dimensions but expose no mutation affordances. */\n.ntbl-container[data-notectl-table-readonly] {\n\tpadding-block-start: 0;\n\tpadding-inline-start: 0;\n}\n\n.ntbl-container[data-notectl-table-readonly] > :is(\n\t.ntbl-col-bar,\n\t.ntbl-row-bar,\n\t.ntbl-col-resize-bar,\n\t.ntbl-row-resize-bar,\n\t.ntbl-insert-line,\n\t.ntbl-add-zone,\n\t.ntbl-delete-table-btn,\n\t.ntbl-border-color-btn,\n\t.ntbl-actions-btn,\n\t.ntbl-context-hint,\n\t.ntbl-resize-indicator\n) {\n\tdisplay: none !important;\n}\n\n.ntbl-add-row {\n\tbottom: 0;\n\theight: 24px;\n\tborder: 1px dashed var(--notectl-border);\n\tborder-end-start-radius: 6px;\n\tborder-end-end-radius: 6px;\n\tborder-block-start: none;\n\tcolor: var(--notectl-fg-muted);\n\ttransform: translateY(100%);\n}\n\n.ntbl-add-row:hover,\n.ntbl-add-row:focus-visible {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n}\n\n.ntbl-add-row:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-add-col {\n\tinset-inline-end: 0;\n\ttop: 24px;\n\twidth: 24px;\n\tborder: 1px dashed var(--notectl-border);\n\tborder-start-end-radius: 6px;\n\tborder-end-end-radius: 6px;\n\tborder-inline-start: none;\n\tcolor: var(--notectl-fg-muted);\n\ttransform: translateX(100%);\n}\n\n[dir=\"rtl\"] .ntbl-add-col {\n\ttransform: translateX(-100%);\n}\n\n.ntbl-add-col:hover,\n.ntbl-add-col:focus-visible {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n}\n\n.ntbl-add-col:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-add-icon {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttransition: transform 0.2s ease;\n}\n\n.ntbl-add-zone:hover .ntbl-add-icon {\n\ttransform: scale(1.15);\n}\n\n@media print {\n\t.notectl-table-wrapper {\n\t\toverflow: visible;\n\t}\n\n\t.ntbl-container {\n\t\tpadding: 0;\n\t}\n\n\t.ntbl-container > [data-notectl-no-print] {\n\t\tdisplay: none !important;\n\t}\n}\n";
2
+ export declare const TABLE_CSS = "\n/* Table */\n.notectl-table-wrapper {\n\tmargin: 8px 0;\n\toverflow-x: auto;\n\tposition: relative;\n}\n\n.notectl-table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n\ttable-layout: fixed;\n}\n\n.notectl-table col {\n\tbox-sizing: border-box;\n}\n\n/* Border resolution order: per-table local override \u2192 theme component token \u2192 theme global token.\n * The inline --ntbl-border-color is set by the toolbar's \"border color\" action and must win\n * over the theme so per-table customizations remain visible after a theme switch.\n */\n.notectl-table td {\n\tborder: 1px solid var(--ntbl-border-color, var(--notectl-table-border, var(--notectl-border)));\n\tbackground: var(--notectl-table-cell-bg, transparent);\n\tpadding: 8px 12px;\n\tmin-width: var(--ntbl-min-column-width, 60px);\n\tvertical-align: top;\n\tmin-height: 1.6em;\n}\n\n.notectl-table th {\n\tborder: 1px solid var(--ntbl-border-color, var(--notectl-table-border, var(--notectl-border)));\n\tbackground: var(--notectl-table-header-bg, var(--notectl-surface-raised));\n\tpadding: 8px 12px;\n\tmin-width: var(--ntbl-min-column-width, 60px);\n\tvertical-align: top;\n\ttext-align: start;\n\tfont-weight: 600;\n}\n\n.notectl-table--borderless td {\n\tborder: 1px dashed rgba(128, 128, 128, 0.15);\n}\n\n@media print {\n\t.notectl-table--borderless td {\n\t\tborder: none;\n\t}\n}\n\n.notectl-table td:focus-within {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: -2px;\n}\n\n.notectl-table-cell--selected {\n\tbackground: var(--notectl-primary-muted);\n}\n\n/* Table Context Menu */\n.notectl-table-context-menu {\n\tbackground: var(--notectl-surface-overlay);\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 6px;\n\tbox-shadow: 0 4px 12px var(--notectl-shadow);\n\tpadding: 4px 0;\n\tmin-width: 180px;\n\tz-index: 10000;\n}\n\n.notectl-table-context-menu button {\n\tdisplay: block;\n\twidth: 100%;\n\tpadding: 8px 12px;\n\ttext-align: start;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tfont-family: inherit;\n}\n\n.notectl-table-context-menu button:hover {\n\tbackground: var(--notectl-hover-bg);\n}\n\n.notectl-table-context-menu hr {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 4px 0;\n}\n\n/* === Table Controls === */\n\n/* Outer container for table + controls */\n.ntbl-container {\n\tposition: relative;\n\tmargin: 8px 0;\n\tpadding-block-start: 24px;\n\tpadding-inline-start: 24px;\n}\n\n.ntbl-container .notectl-table-wrapper {\n\tmargin: 0;\n}\n\n.ntbl-container.notectl-table--selected .notectl-table-wrapper {\n\toutline: 2px solid var(--notectl-accent-fg);\n\toutline-offset: 2px;\n\tborder-radius: 6px;\n}\n\n/* --- Column Handle Bar --- */\n.ntbl-col-bar {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 24px;\n\theight: 20px;\n\tdisplay: flex;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tz-index: 3;\n\tpointer-events: none;\n}\n\n.ntbl-container:hover .ntbl-col-bar,\n.ntbl-container:focus-within .ntbl-col-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-col-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n/* --- Row Handle Bar --- */\n.ntbl-row-bar {\n\tposition: absolute;\n\ttop: 24px;\n\tinset-inline-start: 0;\n\twidth: 20px;\n\tdisplay: flex;\n\tflex-direction: column;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tz-index: 3;\n\tpointer-events: none;\n}\n\n.ntbl-container:hover .ntbl-row-bar,\n.ntbl-container:focus-within .ntbl-row-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-row-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n/* --- Handle (shared base) --- */\n.ntbl-handle {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: pointer;\n\ttransition: background 0.15s ease;\n\tborder-radius: 3px;\n}\n\n.ntbl-handle-select {\n\tposition: absolute;\n\tinset: 0;\n\twidth: 100%;\n\theight: 100%;\n\tborder: 0;\n\tborder-radius: inherit;\n\tbackground: transparent;\n\tcursor: pointer;\n}\n\n.ntbl-handle-select[aria-pressed=\"true\"] {\n\tbackground: var(--notectl-primary-muted);\n\tbox-shadow: inset 0 0 0 1px var(--notectl-primary);\n}\n\n.ntbl-handle-select:focus-visible {\n\toutline: none;\n\tbox-shadow: inset 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-col-handle {\n\theight: 100%;\n\tbackground: var(--notectl-hover-bg);\n\tborder-radius: 4px 4px 0 0;\n}\n\n.ntbl-col-handle:hover {\n\tbackground: var(--notectl-border);\n}\n\n.ntbl-row-handle {\n\twidth: 100%;\n\tbackground: var(--notectl-hover-bg);\n\tborder-start-start-radius: 4px;\n\tborder-end-start-radius: 4px;\n}\n\n.ntbl-row-handle:hover {\n\tbackground: var(--notectl-border);\n}\n\n/* --- Handle Delete Button --- */\n.ntbl-handle-delete {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\theight: 16px;\n\tborder: none;\n\tbackground: transparent;\n\tcolor: var(--notectl-fg-muted);\n\tcursor: pointer;\n\tborder-radius: 3px;\n\tpadding: 0;\n\topacity: 0;\n\ttransform: scale(0.7);\n\ttransition: opacity 0.15s, transform 0.15s,\n\t\tbackground 0.15s, color 0.15s;\n\tz-index: 1;\n}\n\n/* --- Logical column/row resize separators --- */\n.ntbl-col-resize-bar,\n.ntbl-row-resize-bar {\n\tposition: absolute;\n\tinset: 0 auto auto 0;\n\tz-index: 8;\n\tpointer-events: none;\n}\n\n.ntbl-resize-separator {\n\tposition: absolute;\n\tdisplay: block;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\topacity: 0;\n\tpointer-events: none;\n\ttouch-action: none;\n}\n\n.ntbl-resize-separator--column {\n\twidth: 12px;\n\ttransform: translateX(-6px);\n\tcursor: col-resize;\n}\n\n.ntbl-resize-separator--row {\n\theight: 12px;\n\ttransform: translateY(-6px);\n\tcursor: row-resize;\n}\n\n.ntbl-container:hover .ntbl-resize-separator,\n.ntbl-container:focus-within .ntbl-resize-separator,\n.ntbl-container.notectl-table--selected .ntbl-resize-separator,\n.ntbl-container--resizing-column .ntbl-resize-separator--column,\n.ntbl-container--resizing-row .ntbl-resize-separator--row {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-resize-separator::after {\n\tcontent: \"\";\n\tposition: absolute;\n\tbackground: var(--notectl-primary);\n\topacity: 0.35;\n}\n\n.ntbl-resize-separator--column::after {\n\tinset: 0 auto 0 5px;\n\twidth: 2px;\n}\n\n.ntbl-resize-separator--row::after {\n\tinset: 5px 0 auto 0;\n\theight: 2px;\n}\n\n.ntbl-resize-separator:hover::after,\n.ntbl-resize-separator:focus-visible::after {\n\topacity: 1;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-resize-separator:focus-visible {\n\toutline: none;\n}\n\n.ntbl-resize-indicator {\n\tposition: absolute;\n\tdisplay: none;\n\tz-index: 12;\n\tpadding: 3px 7px;\n\tborder-radius: 4px;\n\tbackground: var(--notectl-fg);\n\tcolor: var(--notectl-bg);\n\tfont: 12px/1.4 monospace;\n\tpointer-events: none;\n\twhite-space: nowrap;\n}\n\n.ntbl-resize-indicator--visible {\n\tdisplay: block;\n}\n\n.ntbl-container--resizing-column,\n.ntbl-container--resizing-column * {\n\tcursor: col-resize !important;\n\tuser-select: none !important;\n}\n\n.ntbl-container--resizing-row,\n.ntbl-container--resizing-row * {\n\tcursor: row-resize !important;\n\tuser-select: none !important;\n}\n\n.ntbl-handle:hover .ntbl-handle-delete,\n.ntbl-handle:focus-within .ntbl-handle-delete {\n\topacity: 1;\n\ttransform: scale(1);\n}\n\n.ntbl-handle-delete:hover,\n.ntbl-handle-delete:focus-visible {\n\tbackground: var(--notectl-danger-muted);\n\tcolor: var(--notectl-danger);\n}\n\n.ntbl-handle-delete:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Insert Lines --- */\n.ntbl-insert-line {\n\tposition: absolute;\n\tpointer-events: none;\n\topacity: 0;\n\ttransition: opacity 0.15s ease;\n\tz-index: 6;\n}\n\n.ntbl-insert-line--visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-insert-line--horizontal {\n\theight: 2px;\n\tbackground: linear-gradient(\n\t\t90deg,\n\t\ttransparent,\n\t\tvar(--notectl-primary) 8%,\n\t\tvar(--notectl-primary) 92%,\n\t\ttransparent\n\t);\n\tbox-shadow: 0 0 6px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-line--vertical {\n\twidth: 2px;\n\tbackground: linear-gradient(\n\t\t180deg,\n\t\ttransparent,\n\t\tvar(--notectl-primary) 8%,\n\t\tvar(--notectl-primary) 92%,\n\t\ttransparent\n\t);\n\tbox-shadow: 0 0 6px var(--notectl-focus-ring);\n}\n\n/* --- Insert Button on Line --- */\n.ntbl-insert-btn {\n\tposition: absolute;\n\twidth: 20px;\n\theight: 20px;\n\tborder-radius: 50%;\n\tbackground: var(--notectl-surface-raised);\n\tborder: 2px solid var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n\tcursor: pointer;\n\tpointer-events: all;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tpadding: 0;\n\tbox-shadow: 0 2px 8px var(--notectl-focus-ring);\n\ttransition: background 0.15s, color 0.15s,\n\t\ttransform 0.15s, box-shadow 0.15s;\n}\n\n.ntbl-insert-line--horizontal .ntbl-insert-btn {\n\tleft: 50%;\n\ttop: -9px;\n\ttransform: translateX(-50%);\n}\n\n.ntbl-insert-line--vertical .ntbl-insert-btn {\n\ttop: 50%;\n\tinset-inline-start: -9px;\n\ttransform: translateY(-50%);\n}\n\n.ntbl-insert-btn:hover,\n.ntbl-insert-btn:focus-visible {\n\tbackground: var(--notectl-primary);\n\tcolor: var(--notectl-primary-fg);\n\tbox-shadow: 0 2px 12px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-line--horizontal .ntbl-insert-btn:hover {\n\ttransform: translateX(-50%) scale(1.2);\n}\n\n.ntbl-insert-line--vertical .ntbl-insert-btn:hover {\n\ttransform: translateY(-50%) scale(1.2);\n}\n\n/* --- Add Row / Add Column Zones --- */\n.ntbl-add-zone {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: pointer;\n\tuser-select: none;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.2s ease,\n\t\tborder-color 0.2s ease;\n}\n\n.ntbl-container:hover .ntbl-add-zone,\n.ntbl-container:focus-within .ntbl-add-zone {\n\topacity: 1;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-add-zone {\n\topacity: 1;\n}\n\n.ntbl-delete-table-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 0;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-danger);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-raised);\n\tcolor: var(--notectl-danger);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n}\n\n.ntbl-container:hover .ntbl-delete-table-btn,\n.ntbl-container:focus-within .ntbl-delete-table-btn,\n.ntbl-container.notectl-table--selected .ntbl-delete-table-btn {\n\topacity: 1;\n}\n\n.ntbl-delete-table-btn:hover,\n.ntbl-delete-table-btn:focus-visible {\n\tbackground: var(--notectl-danger-muted);\n\tborder-color: var(--notectl-danger);\n}\n\n.ntbl-delete-table-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Context Menu Discovery Hint --- */\n.ntbl-context-hint {\n\tposition: absolute;\n\ttop: 4px;\n\tinset-inline-end: 0;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tpadding: 2px 8px;\n\tborder-radius: 4px;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tpointer-events: none;\n\twhite-space: nowrap;\n\tz-index: 5;\n}\n\n.ntbl-container:hover .ntbl-context-hint,\n.ntbl-container:focus-within .ntbl-context-hint,\n.ntbl-container.notectl-table--selected .ntbl-context-hint {\n\topacity: 1;\n}\n\n/* --- Table Actions Button --- */\n.ntbl-actions-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 48px;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-raised);\n\tcolor: var(--notectl-fg-muted);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n\tcursor: pointer;\n\tpadding: 0;\n}\n\n.ntbl-container:hover .ntbl-actions-btn,\n.ntbl-container:focus-within .ntbl-actions-btn,\n.ntbl-container.notectl-table--selected .ntbl-actions-btn {\n\topacity: 1;\n}\n\n.ntbl-actions-btn:hover,\n.ntbl-actions-btn:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\tborder-color: var(--notectl-primary);\n}\n\n.ntbl-actions-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Border Color Button --- */\n.ntbl-border-color-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 24px;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-raised);\n\tcolor: var(--notectl-fg-muted);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n\tcursor: pointer;\n\tpadding: 0;\n}\n\n.ntbl-container:hover .ntbl-border-color-btn,\n.ntbl-container:focus-within .ntbl-border-color-btn,\n.ntbl-container.notectl-table--selected .ntbl-border-color-btn {\n\topacity: 1;\n}\n\n.ntbl-border-color-btn:hover,\n.ntbl-border-color-btn:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\tborder-color: var(--notectl-primary);\n}\n\n.ntbl-border-color-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-border-color-swatch {\n\twidth: 10px;\n\theight: 10px;\n\tborder-radius: 2px;\n\tborder: 1px solid rgba(0, 0, 0, 0.15);\n}\n\n/* --- Context Menu Keyboard Hint --- */\n.notectl-table-context-menu__hint {\n\tpadding: 4px 12px 6px;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin-top: 4px;\n\ttext-align: center;\n\tuser-select: none;\n}\n\n/* --- Context Menu Focus --- */\n.notectl-table-context-menu button:focus-visible {\n\toutline: none;\n\tbackground: var(--notectl-primary-muted);\n\tbox-shadow: inset 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.notectl-table-context-menu [role=\"separator\"] {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 4px 0;\n\theight: 0;\n}\n\n/* --- Precise size editor --- */\n.notectl-table-size-editor {\n\tbox-sizing: border-box;\n\twidth: 340px;\n\tmax-width: calc(100vw - 16px);\n\tmin-width: 260px;\n\tpadding: 12px;\n}\n\n.notectl-table-size-editor__title {\n\tmargin-block-end: 10px;\n\tfont-weight: 600;\n}\n\n.notectl-table-size-editor__field {\n\tdisplay: grid;\n\tgap: 4px;\n\tmargin-block-end: 10px;\n\tfont-size: 13px;\n}\n\n.notectl-table-size-editor__input-wrap {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 6px;\n}\n\n.notectl-table-size-editor input {\n\tbox-sizing: border-box;\n\tmin-width: 0;\n\twidth: 100%;\n\tpadding: 6px 8px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-bg);\n\tcolor: var(--notectl-fg);\n\tfont: inherit;\n}\n\n.notectl-table-size-editor input:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: 1px;\n}\n\n.notectl-table-size-editor input[aria-invalid=\"true\"] {\n\tborder-color: var(--notectl-danger);\n}\n\n.notectl-table-size-editor__unit {\n\tcolor: var(--notectl-fg-muted);\n}\n\n.notectl-table-size-editor__error {\n\tmin-height: 1.2em;\n\tcolor: var(--notectl-danger);\n\tfont-size: 11px;\n}\n\n.notectl-table-size-editor__resets,\n.notectl-table-size-editor__actions {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: 4px;\n}\n\n.notectl-table-size-editor__resets {\n\tpadding-block-end: 10px;\n\tborder-block-end: 1px solid var(--notectl-border);\n}\n\n.notectl-table-size-editor__actions {\n\tjustify-content: flex-end;\n\tpadding-block-start: 10px;\n}\n\n.notectl-table-size-editor button {\n\twidth: auto;\n\tpadding: 6px 8px;\n\tborder-radius: 4px;\n\tfont-size: 12px;\n}\n\n.notectl-table-context-menu .notectl-table-size-editor__apply {\n\tbackground: var(--notectl-primary);\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-table-context-menu .notectl-table-size-editor button:disabled {\n\topacity: 0.5;\n\tcursor: not-allowed;\n}\n\n/* Read-only tables keep semantic dimensions but expose no mutation affordances. */\n.ntbl-container[data-notectl-table-readonly] {\n\tpadding-block-start: 0;\n\tpadding-inline-start: 0;\n}\n\n.ntbl-container[data-notectl-table-readonly] > :is(\n\t.ntbl-col-bar,\n\t.ntbl-row-bar,\n\t.ntbl-col-resize-bar,\n\t.ntbl-row-resize-bar,\n\t.ntbl-insert-line,\n\t.ntbl-add-zone,\n\t.ntbl-delete-table-btn,\n\t.ntbl-border-color-btn,\n\t.ntbl-actions-btn,\n\t.ntbl-context-hint,\n\t.ntbl-resize-indicator\n) {\n\tdisplay: none !important;\n}\n\n.ntbl-add-row {\n\tbottom: 0;\n\theight: 24px;\n\tborder: 1px dashed var(--notectl-border);\n\tborder-end-start-radius: 6px;\n\tborder-end-end-radius: 6px;\n\tborder-block-start: none;\n\tcolor: var(--notectl-fg-muted);\n\ttransform: translateY(100%);\n}\n\n.ntbl-add-row:hover,\n.ntbl-add-row:focus-visible {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n}\n\n.ntbl-add-row:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-add-col {\n\tinset-inline-end: 0;\n\ttop: 24px;\n\twidth: 24px;\n\tborder: 1px dashed var(--notectl-border);\n\tborder-start-end-radius: 6px;\n\tborder-end-end-radius: 6px;\n\tborder-inline-start: none;\n\tcolor: var(--notectl-fg-muted);\n\ttransform: translateX(100%);\n}\n\n[dir=\"rtl\"] .ntbl-add-col {\n\ttransform: translateX(-100%);\n}\n\n.ntbl-add-col:hover,\n.ntbl-add-col:focus-visible {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n}\n\n.ntbl-add-col:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-add-icon {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttransition: transform 0.2s ease;\n}\n\n.ntbl-add-zone:hover .ntbl-add-icon {\n\ttransform: scale(1.15);\n}\n\n@media print {\n\t.notectl-table-wrapper {\n\t\toverflow: visible;\n\t}\n\n\t.ntbl-container {\n\t\tpadding: 0;\n\t}\n\n\t.ntbl-container > [data-notectl-no-print] {\n\t\tdisplay: none !important;\n\t}\n}\n";
3
3
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/table.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,eAAO,MAAM,SAAS,sgkBAizBrB,CAAC"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/table.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,eAAO,MAAM,SAAS,qgkBAizBrB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** Toolbar styles — buttons, separators, tooltips, popups, dropdowns. */
2
- export declare const TOOLBAR_CSS = "\n/* Toolbar */\n.notectl-plugin-container--top {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-wrap: nowrap;\n\tborder-bottom: 1px solid var(--notectl-border);\n\tbackground: var(--notectl-toolbar-bg, var(--notectl-surface-raised));\n\tmin-height: 40px;\n\tflex-shrink: 0;\n}\n\n.notectl-toolbar {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-wrap: nowrap;\n\toverflow: hidden;\n\tflex: 1;\n\tmin-width: 0;\n\tgap: 2px;\n\tpadding: 4px 8px;\n}\n\n.notectl-toolbar[hidden] {\n\tdisplay: none;\n}\n\n/* Group wrapper \u2014 real flex container so consumers can style it via ::part(toolbar-group)\n with padding/background/border directly. Group gap mirrors the toolbar gap so the\n visual rhythm between buttons stays uniform whether or not a group boundary lies between them. */\n.notectl-toolbar-group {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 2px;\n}\n\n.notectl-toolbar-group--overflow-hidden {\n\tdisplay: none;\n}\n\n.notectl-toolbar-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 32px;\n\theight: 32px;\n\tborder: 1px solid transparent;\n\tborder-radius: 4px;\n\tbackground: var(--notectl-toolbar-button-bg, transparent);\n\tcursor: pointer;\n\tcolor: var(--notectl-toolbar-button-fg, var(--notectl-fg));\n\tfont-size: 14px;\n\tline-height: 1;\n\tpadding: 0;\n\tflex-shrink: 0;\n\ttransition: background 0.1s, border-color 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn:hover {\n\t\tbackground: var(--notectl-toolbar-button-hover-bg, var(--notectl-hover-bg));\n\t\tborder-color: var(--notectl-border);\n\t}\n}\n\n.notectl-toolbar-btn--active {\n\tbackground: var(--notectl-toolbar-button-active-bg, var(--notectl-active-bg));\n\tborder-color: var(--notectl-primary-muted);\n\tcolor: var(--notectl-toolbar-button-active-fg, var(--notectl-primary-fg));\n}\n\n.notectl-toolbar-btn:focus-visible {\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n\toutline: none;\n}\n\n.notectl-toolbar-btn:disabled {\n\topacity: 0.4;\n\tcursor: not-allowed;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn:disabled:hover {\n\t\tbackground: transparent;\n\t\tborder-color: transparent;\n\t}\n}\n\n.notectl-toolbar-btn__icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tpointer-events: none;\n}\n\n.notectl-toolbar-btn__icon svg {\n\tdisplay: block;\n\twidth: 18px;\n\theight: 18px;\n\tfill: currentColor;\n}\n\n/* Tooltip (rendered as fixed-position element in shadow root) */\n.notectl-toolbar-tooltip {\n\tpadding: 4px 8px;\n\tborder-radius: 4px;\n\tbackground: var(--notectl-tooltip-bg);\n\tcolor: var(--notectl-tooltip-fg);\n\tfont-size: 11px;\n\tfont-weight: 500;\n\twhite-space: nowrap;\n\tpointer-events: none;\n\tz-index: 10001;\n\tline-height: 1.4;\n\tletter-spacing: 0.01em;\n\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n}\n\n.notectl-toolbar-separator {\n\tdisplay: inline-block;\n\twidth: 1px;\n\theight: 20px;\n\tbackground: var(--notectl-border);\n\tmargin: 0 4px;\n\tvertical-align: middle;\n}\n\n/* Toolbar Popups */\n.notectl-toolbar-popup {\n\tbackground: var(--notectl-surface-overlay);\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 6px;\n\tbox-shadow: 0 4px 12px var(--notectl-shadow);\n\toverflow: hidden;\n}\n\n/* Grid Picker */\n.notectl-grid-picker__cell:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n\n.notectl-grid-picker__cell--highlighted {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n}\n\n/* Dropdown */\n.notectl-dropdown {\n\tmin-width: 160px;\n\tpadding: 4px 0;\n}\n\n.notectl-dropdown__item {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n\tpadding: 8px 12px;\n\ttext-align: start;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tline-height: 1.4;\n\tfont-family: inherit;\n\twhite-space: nowrap;\n}\n\n@media (hover: hover) {\n\t.notectl-dropdown__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-dropdown__item:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\toutline: none;\n}\n\n.notectl-dropdown__item-icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-fg-muted);\n\tflex-shrink: 0;\n}\n\n.notectl-dropdown__item-label {\n\tflex: 1;\n}\n\n/* Overflow behavior: flow mode \u2014 toolbar wraps to additional rows */\n.notectl-toolbar[data-overflow=\"flow\"] {\n\tflex-wrap: wrap;\n\toverflow: visible;\n}\n\n/* Overflow behavior: none \u2014 toolbar clips without any responsive behavior */\n.notectl-toolbar[data-overflow=\"none\"] {\n\tflex-wrap: nowrap;\n\toverflow: hidden;\n}\n\n/* Overflow: hidden items (burger-menu mode) */\n.notectl-toolbar-btn--overflow-hidden,\n.notectl-toolbar-separator--overflow-hidden {\n\tdisplay: none;\n}\n\n/* Overflow \"more\" button */\n.notectl-toolbar-overflow-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 32px;\n\theight: 32px;\n\tborder: 1px solid transparent;\n\tborder-radius: 4px;\n\tbackground: transparent;\n\tcursor: pointer;\n\tcolor: var(--notectl-fg);\n\tfont-size: 16px;\n\tline-height: 1;\n\tpadding: 0;\n\tflex-shrink: 0;\n\tmargin-inline-start: auto;\n\ttransition: background 0.1s, border-color 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-overflow-btn:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t\tborder-color: var(--notectl-border);\n\t}\n}\n\n.notectl-toolbar-overflow-btn--hidden {\n\tdisplay: none;\n}\n\n.notectl-toolbar-overflow-btn:focus-visible {\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n\toutline: none;\n}\n\n/* Dropdown item states shared by all dropdown menus (including overflow) */\n.notectl-dropdown__item:disabled {\n\topacity: 0.4;\n\tcursor: not-allowed;\n}\n\n@media (hover: hover) {\n\t.notectl-dropdown__item:disabled:hover {\n\t\tbackground: none;\n\t}\n}\n\n.notectl-dropdown__item--active {\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-dropdown__item-icon svg {\n\tdisplay: block;\n\twidth: 16px;\n\theight: 16px;\n\tfill: currentColor;\n}\n\n.notectl-dropdown__separator {\n\theight: 1px;\n\tbackground: var(--notectl-border);\n\tmargin: 4px 0;\n}\n\n/* Combobox-style toolbar buttons (shared base for font, fontSize, heading, etc.) */\n.notectl-toolbar-btn[role=\"combobox\"] {\n\twidth: auto;\n\tpadding: 0 8px;\n\tgap: 4px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-toolbar-bg, var(--notectl-surface-raised));\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn[role=\"combobox\"]:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t\tborder-color: var(--notectl-fg-muted);\n\t}\n}\n\n.notectl-toolbar-btn[role=\"combobox\"].notectl-toolbar-btn--active {\n\tbackground: var(--notectl-toolbar-bg, var(--notectl-surface-raised));\n\tborder-color: var(--notectl-primary-muted);\n}\n\n.notectl-toolbar-combobox__label {\n\tflex: 1;\n\tfont-size: 13px;\n\tfont-weight: 500;\n\tcolor: var(--notectl-fg);\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\ttext-align: start;\n\tline-height: 30px;\n}\n\n.notectl-toolbar-combobox__arrow {\n\tflex-shrink: 0;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tline-height: 30px;\n}\n\n/* Link Popup */\n.notectl-link-popup {\n\tpadding: 8px;\n\tmin-width: 200px;\n}\n\n.notectl-link-popup__input {\n\twidth: 100%;\n\tpadding: 4px;\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tfont-size: 13px;\n\tcolor: var(--notectl-fg);\n\tbackground: var(--notectl-surface-overlay);\n}\n\n.notectl-link-popup__input:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n\n.notectl-link-popup__button {\n\twidth: 100%;\n\tpadding: 6px 12px;\n\tcursor: pointer;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-overlay);\n\tcolor: var(--notectl-fg);\n\tfont-size: 13px;\n}\n\n.notectl-link-popup__button--apply {\n\tmargin-top: 4px;\n}\n\n@media (hover: hover) {\n\t.notectl-link-popup__button:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-link-popup__button:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n";
2
+ export declare const TOOLBAR_CSS = "\n/* Toolbar */\n.notectl-plugin-container--top {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-wrap: nowrap;\n\tborder-bottom: 1px solid var(--notectl-border);\n\tbackground: var(--notectl-toolbar-bg, var(--notectl-surface-raised));\n\tmin-height: 40px;\n\tflex-shrink: 0;\n}\n\n.notectl-toolbar {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-wrap: nowrap;\n\toverflow: hidden;\n\tflex: 1;\n\tmin-width: 0;\n\tgap: 2px;\n\tpadding: 4px 8px;\n}\n\n.notectl-toolbar[hidden] {\n\tdisplay: none;\n}\n\n/* Group wrapper \u2014 real flex container so consumers can style it via ::part(toolbar-group)\n with padding/background/border directly. Group gap mirrors the toolbar gap so the\n visual rhythm between buttons stays uniform whether or not a group boundary lies between them. */\n.notectl-toolbar-group {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 2px;\n}\n\n.notectl-toolbar-group--overflow-hidden {\n\tdisplay: none;\n}\n\n.notectl-toolbar-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 32px;\n\theight: 32px;\n\tborder: 1px solid transparent;\n\tborder-radius: 4px;\n\tbackground: var(--notectl-toolbar-button-bg, transparent);\n\tcursor: pointer;\n\tcolor: var(--notectl-toolbar-button-fg, var(--notectl-fg));\n\tfont-size: 14px;\n\tline-height: 1;\n\tpadding: 0;\n\tflex-shrink: 0;\n\ttransition: background 0.1s, border-color 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn:hover {\n\t\tbackground: var(--notectl-toolbar-button-hover-bg, var(--notectl-hover-bg));\n\t\tborder-color: var(--notectl-border);\n\t}\n}\n\n.notectl-toolbar-btn--active {\n\tbackground: var(--notectl-toolbar-button-active-bg, var(--notectl-active-bg));\n\tborder-color: var(--notectl-primary-muted);\n\tcolor: var(--notectl-toolbar-button-active-fg, var(--notectl-accent-fg));\n}\n\n.notectl-toolbar-btn:focus-visible {\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n\toutline: none;\n}\n\n.notectl-toolbar-btn:disabled {\n\topacity: 0.4;\n\tcursor: not-allowed;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn:disabled:hover {\n\t\tbackground: transparent;\n\t\tborder-color: transparent;\n\t}\n}\n\n.notectl-toolbar-btn__icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tpointer-events: none;\n}\n\n.notectl-toolbar-btn__icon svg {\n\tdisplay: block;\n\twidth: 18px;\n\theight: 18px;\n\tfill: currentColor;\n}\n\n/* Tooltip (rendered as fixed-position element in shadow root) */\n.notectl-toolbar-tooltip {\n\tpadding: 4px 8px;\n\tborder-radius: 4px;\n\tbackground: var(--notectl-tooltip-bg);\n\tcolor: var(--notectl-tooltip-fg);\n\tfont-size: 11px;\n\tfont-weight: 500;\n\twhite-space: nowrap;\n\tpointer-events: none;\n\tz-index: 10001;\n\tline-height: 1.4;\n\tletter-spacing: 0.01em;\n\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n}\n\n.notectl-toolbar-separator {\n\tdisplay: inline-block;\n\twidth: 1px;\n\theight: 20px;\n\tbackground: var(--notectl-border);\n\tmargin: 0 4px;\n\tvertical-align: middle;\n}\n\n/* Toolbar Popups */\n.notectl-toolbar-popup {\n\tbackground: var(--notectl-surface-overlay);\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 6px;\n\tbox-shadow: 0 4px 12px var(--notectl-shadow);\n\toverflow: hidden;\n}\n\n/* Grid Picker */\n.notectl-grid-picker__cell:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n\n.notectl-grid-picker__cell--highlighted {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n}\n\n/* Dropdown */\n.notectl-dropdown {\n\tmin-width: 160px;\n\tpadding: 4px 0;\n}\n\n.notectl-dropdown__item {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n\tpadding: 8px 12px;\n\ttext-align: start;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tline-height: 1.4;\n\tfont-family: inherit;\n\twhite-space: nowrap;\n}\n\n@media (hover: hover) {\n\t.notectl-dropdown__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-dropdown__item:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\toutline: none;\n}\n\n.notectl-dropdown__item-icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-fg-muted);\n\tflex-shrink: 0;\n}\n\n.notectl-dropdown__item-label {\n\tflex: 1;\n}\n\n/* Overflow behavior: flow mode \u2014 toolbar wraps to additional rows */\n.notectl-toolbar[data-overflow=\"flow\"] {\n\tflex-wrap: wrap;\n\toverflow: visible;\n}\n\n/* Overflow behavior: none \u2014 toolbar clips without any responsive behavior */\n.notectl-toolbar[data-overflow=\"none\"] {\n\tflex-wrap: nowrap;\n\toverflow: hidden;\n}\n\n/* Overflow: hidden items (burger-menu mode) */\n.notectl-toolbar-btn--overflow-hidden,\n.notectl-toolbar-separator--overflow-hidden {\n\tdisplay: none;\n}\n\n/* Overflow \"more\" button */\n.notectl-toolbar-overflow-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 32px;\n\theight: 32px;\n\tborder: 1px solid transparent;\n\tborder-radius: 4px;\n\tbackground: transparent;\n\tcursor: pointer;\n\tcolor: var(--notectl-fg);\n\tfont-size: 16px;\n\tline-height: 1;\n\tpadding: 0;\n\tflex-shrink: 0;\n\tmargin-inline-start: auto;\n\ttransition: background 0.1s, border-color 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-overflow-btn:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t\tborder-color: var(--notectl-border);\n\t}\n}\n\n.notectl-toolbar-overflow-btn--hidden {\n\tdisplay: none;\n}\n\n.notectl-toolbar-overflow-btn:focus-visible {\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n\toutline: none;\n}\n\n/* Dropdown item states shared by all dropdown menus (including overflow) */\n.notectl-dropdown__item:disabled {\n\topacity: 0.4;\n\tcursor: not-allowed;\n}\n\n@media (hover: hover) {\n\t.notectl-dropdown__item:disabled:hover {\n\t\tbackground: none;\n\t}\n}\n\n.notectl-dropdown__item--active {\n\tcolor: var(--notectl-accent-fg);\n}\n\n.notectl-dropdown__item-icon svg {\n\tdisplay: block;\n\twidth: 16px;\n\theight: 16px;\n\tfill: currentColor;\n}\n\n.notectl-dropdown__separator {\n\theight: 1px;\n\tbackground: var(--notectl-border);\n\tmargin: 4px 0;\n}\n\n/* Combobox-style toolbar buttons (shared base for font, fontSize, heading, etc.) */\n.notectl-toolbar-btn[role=\"combobox\"] {\n\twidth: auto;\n\tpadding: 0 8px;\n\tgap: 4px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-toolbar-bg, var(--notectl-surface-raised));\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn[role=\"combobox\"]:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t\tborder-color: var(--notectl-fg-muted);\n\t}\n}\n\n.notectl-toolbar-btn[role=\"combobox\"].notectl-toolbar-btn--active {\n\tbackground: var(--notectl-toolbar-bg, var(--notectl-surface-raised));\n\tborder-color: var(--notectl-primary-muted);\n}\n\n.notectl-toolbar-combobox__label {\n\tflex: 1;\n\tfont-size: 13px;\n\tfont-weight: 500;\n\tcolor: var(--notectl-fg);\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\ttext-align: start;\n\tline-height: 30px;\n}\n\n.notectl-toolbar-combobox__arrow {\n\tflex-shrink: 0;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tline-height: 30px;\n}\n\n/* Link Popup */\n.notectl-link-popup {\n\tpadding: 8px;\n\tmin-width: 200px;\n}\n\n.notectl-link-popup__input {\n\twidth: 100%;\n\tpadding: 4px;\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tfont-size: 13px;\n\tcolor: var(--notectl-fg);\n\tbackground: var(--notectl-surface-overlay);\n}\n\n.notectl-link-popup__input:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n\n.notectl-link-popup__button {\n\twidth: 100%;\n\tpadding: 6px 12px;\n\tcursor: pointer;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-surface-overlay);\n\tcolor: var(--notectl-fg);\n\tfont-size: 13px;\n}\n\n.notectl-link-popup__button--apply {\n\tmargin-top: 4px;\n}\n\n@media (hover: hover) {\n\t.notectl-link-popup__button:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-link-popup__button:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n";
3
3
  //# sourceMappingURL=toolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/toolbar.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,WAAW,iuQA6WvB,CAAC"}
1
+ {"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/editor/styles/toolbar.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,WAAW,+tQA6WvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeEngine.d.ts","sourceRoot":"","sources":["../../../src/editor/theme/ThemeEngine.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,OAAO,KAAK,EAAE,KAAK,EAAe,MAAM,kBAAkB,CAAC;AAiH3D,oEAAoE;AACpE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAsBrD;AAED,kEAAkE;AAClE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,aAAa,CAIjE"}
1
+ {"version":3,"file":"ThemeEngine.d.ts","sourceRoot":"","sources":["../../../src/editor/theme/ThemeEngine.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,OAAO,KAAK,EAAE,KAAK,EAAe,MAAM,kBAAkB,CAAC;AAqH3D,oEAAoE;AACpE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAsBrD;AAED,kEAAkE;AAClE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,aAAa,CAIjE"}
@@ -7,7 +7,14 @@ export interface ThemePrimitives {
7
7
  readonly border: string;
8
8
  readonly borderFocus: string;
9
9
  readonly primary: string;
10
+ /** Text drawn on a solid `primary` background (filled buttons and controls). */
10
11
  readonly primaryForeground: string;
12
+ /**
13
+ * Primary-tinted text and indicators on neutral backgrounds (active/selected states).
14
+ * Optional for source compatibility with themes created before this token was introduced.
15
+ * The theme engine falls back to `primaryForeground` when it is omitted.
16
+ */
17
+ readonly accentForeground?: string;
11
18
  readonly primaryMuted: string;
12
19
  readonly surfaceRaised: string;
13
20
  readonly surfaceOverlay: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeTokens.d.ts","sourceRoot":"","sources":["../../../src/editor/theme/ThemeTokens.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CA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BAA2B;AAC3B,eAAO,MAAM,UAAU,EAAE,KAuDxB,CAAC;AAEF,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,GAAG,KAAK,CAqCvE;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,qEAAqE;AACrE,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,KAAK,GAAG,KAAK,CAa9D"}
package/dist/full.mjs CHANGED
@@ -1 +1 @@
1
- import{i as s,n as a,o as m,r}from"./chunks/HTMLUtils-B0nGyFLb.mjs";import{A as o,B as i,D as t,F as n,H as u,I as p,M as c,P as l,R as e,V as j,_ as h,g,i as k,j as f,k as P,m as d,n as T,p as b,r as D,z as S}from"./chunks/Document-D_2cIBJG.mjs";import{c as C,i as x,l as y,n as M,r as v,s as R}from"./chunks/NodeResolver-BtIknXqD.mjs";import{a as F,c as I,d as A,f as B,i as H,l as N,m as z,n as _,o as w,p as E,r as K,u as L}from"./chunks/Selection-DC6AOGgF.mjs";import{a as V,i as G,n as O,o as U,r as X,t as q}from"./chunks/TypeBrands-Ch9856Gb.mjs";import{i as Q,n as W,o as Y,r as $,t as J}from"./chunks/NavigationQueries-Bt4zZ17v.mjs";import{r as Z,t as ss}from"./chunks/ContentModel-Bzmzeqwg.mjs";import{i as as,t as ms}from"./chunks/NodeSelectionCommands-DK3iEh18.mjs";import{a as rs,c as os,i as is,l as ts,n as ns,r as us,s as ps,u as cs}from"./chunks/Commands-D-0UXYvo.mjs";import{a as ls,i as es,l as js,n as hs,o as gs,r as ks,s as fs,t as Ps}from"./chunks/MarkCommands-CJvLGL5G.mjs";import{n as ds,t as Ts}from"./chunks/RangeIterator-DDOxTQIf.mjs";import{A as bs,C as Ds,D as Ss,E as Cs,I as xs,L as ys,M as Ms,N as vs,O as Rs,P as Fs,R as Is,S as As,T as Bs,_ as Hs,a as Ns,b as zs,c as _s,d as ws,f as Es,g as Ks,h as Ls,i as Vs,j as Gs,k as Os,l as Us,m as Xs,n as qs,o as Qs,p as Ws,r as Ys,s as $s,t as Js,u as Zs,v as sa,w as aa,x as ma,y as ra,z as oa}from"./chunks/CaretNavigationPlugin-Clv8dzR5.mjs";import{A as ia,C as ta,D as na,E as ua,M as pa,N as ca,O as la,S as ea,T as ja,_ as ha,a as ga,b as ka,c as fa,d as Pa,f as da,g as Ta,h as ba,i as Da,j as Sa,k as Ca,l as xa,m as ya,n as Ma,o as va,p as Ra,r as Fa,s as Ia,t as Aa,u as Ba,v as Ha,w as Na,x as za,y as _a}from"./chunks/register-CF80zDgl.mjs";import{n as wa,r as Ea,t as Ka}from"./chunks/AttrRegistry-CtNhf2EF.mjs";import{i as La,n as Va,r as Ga,t as Oa}from"./chunks/AttributedMarkCommands-B3MQdob_.mjs";import{_ as Ua,a as Xa,c as qa,d as Qa,f as Wa,g as Ya,h as $a,i as Ja,l as Za,m as sm,n as am,o as mm,p as rm,r as om,s as im,t as tm,u as nm}from"./chunks/ThemeEngine-D4W6Y80e.mjs";import{f as um,h as pm,m as cm,p as lm}from"./chunks/TableDimensions-BcARMxQB.mjs";import{t as em}from"./chunks/DocumentParser-i-CreJ48.mjs";import{a as jm,c as hm,d as gm,h as km,i as fm,l as Pm,o as dm,p as Tm,s as bm,t as Dm}from"./chunks/Decoration-BwhoA4MU.mjs";import{t as Sm}from"./chunks/SyntaxTokenTypes-BUCOMtL8.mjs";import{n as Cm,t as xm}from"./chunks/TypedKeys-CA4bfw9O.mjs";import{c as ym,i as Mm,l as vm,r as Rm,t as Fm,u as Im}from"./chunks/PluginHelpers-WG1Lzzh3.mjs";import{a as Am,i as Bm,n as Hm,r as Nm,t as zm}from"./chunks/Platform-ByobkiCc.mjs";import{t as _m}from"./chunks/SchemaRegistry-acc6q_5x.mjs";import{t as wm}from"./chunks/BlockTypePickerRegistry-BTET9jM-.mjs";import{a as Em,i as Km,n as Lm,o as Vm,r as Gm,t as Om}from"./chunks/ToolbarPlugin-ClKY-LiT.mjs";import{n as Um,r as Xm,t as qm}from"./chunks/SelectionTransactions-DNCzsl_b.mjs";import{n as Qm}from"./chunks/DomUtils-Bf7JLFlx.mjs";import{n as Wm,t as Ym}from"./chunks/GapCursorPlugin-NozsEK9J.mjs";import{t as $m}from"./chunks/MarkInputRule-DNneF2gp.mjs";import{t as Jm}from"./chunks/ShortcutFormatting-TwiufqeV.mjs";import{n as Zm,r as sr,t as ar}from"./chunks/TextFormattingPlugin-DlS0SeW7.mjs";import{n as mr,r as rr,t as or}from"./chunks/KeyboardNav-D0my3wuy.mjs";import{i as ir,t as tr}from"./chunks/PopupPositioning-CIqgpqlW.mjs";import{n as nr,t as ur}from"./chunks/PopupManager-Jz5JrUdC.mjs";import{a as pr,i as cr,n as lr,r as er,t as jr}from"./chunks/src-5GKFQ2mQ.mjs";import"./html.mjs";import{n as hr,r as gr,t as kr}from"./chunks/FontPlugin-B4Ouhmpe.mjs";import{a as fr,i as Pr,n as dr,r as Tr,t as br}from"./chunks/ColorValidation-B9d_umnf.mjs";import{t as Dr}from"./chunks/minimal-Bykbo9So.mjs";import{i as Sr,n as Cr,r as xr,t as yr}from"./chunks/AlignmentPlugin-DIwrRsHd.mjs";import{t as Mr}from"./chunks/DirectionIcons-Bbawl9ei.mjs";import{t as vr}from"./chunks/TextDirectionService-OFOU6r_s.mjs";import{n as Rr,r as Fr,t as Ir}from"./chunks/BidiIsolationPlugin-cOLlL3Y9.mjs";import{n as Ar,r as Br,t as Hr}from"./chunks/BlockquotePlugin-D-jRWLQB.mjs";import{a as Nr,i as zr,n as _r,o as wr,r as Er,t as Kr}from"./chunks/CodeBlockPlugin-BandNM3t.mjs";import{i as Lr,n as Vr,o as Gr,r as Or,t as Ur}from"./chunks/xml-BsV44TrJ.mjs";import{n as Xr,t as qr}from"./chunks/XmlPatterns-RN32-0ob.mjs";import{n as Qr,r as Wr,t as Yr}from"./chunks/PopupKeyboardPatterns-BcwdDxRq.mjs";import{n as $r,r as Jr,t as Zr}from"./chunks/FontSizePlugin-CZB-AwZQ.mjs";import{a as so,c as ao,i as mo,n as ro,o as oo,r as io,s as to,t as no}from"./chunks/FormulaPlugin-C7N3QXDx.mjs";import{t as uo}from"./chunks/HardBreakPlugin-CC4rntSX.mjs";import{n as po,r as co,t as lo}from"./chunks/HeadingPlugin-hubN_Ebt.mjs";import{a as eo,i as jo,n as ho,r as go,t as ko}from"./chunks/ColorPickerPopup-_C5JZhki.mjs";import{n as fo,r as Po,t as To}from"./chunks/ColorGrid-D0vLHsG6.mjs";import{n as bo,r as Do,t as So}from"./chunks/HighlightPlugin-CE_MgFNz.mjs";import{n as Co,r as xo,t as yo}from"./chunks/HorizontalRulePlugin-CxmUMM34.mjs";import{a as Mo,i as vo,n as Ro,r as Fo,t as Io}from"./chunks/ImagePlugin-B_y4STEr.mjs";import{n as Ao,r as Bo,t as Ho}from"./chunks/InlineCodePlugin-C1SqGfv5.mjs";import{n as No,r as zo,t as _o}from"./chunks/LinkPlugin-BwXDGHPe.mjs";import{n as wo,r as Eo,t as Ko}from"./chunks/ListPlugin-DSFPSWQC.mjs";import{n as Lo,r as Vo,t as Go}from"./chunks/PrintPlugin-1m54b2-Y.mjs";import{a as Oo,c as Uo,d as Xo,i as qo,l as Qo,n as Wo,o as Yo,r as $o,s as Jo,t as Zo,u as si}from"./chunks/XmlSupport-3Za6SIqF.mjs";import{i as ai,n as mi,r as ri,t as oi}from"./chunks/SmartPastePlugin-CjExbE9Q.mjs";import{n as ii,r as ti,t as ni}from"./chunks/StrikethroughPlugin-d-EW2YYx.mjs";import{n as ui,r as pi,t as ci}from"./chunks/SuperSubPlugin-C-kvFQyx.mjs";import{a as li,i as ei,n as ji,o as hi,r as gi,t as ki}from"./chunks/TablePlugin-B894cIXW.mjs";import{n as fi,r as Pi,t as di}from"./chunks/TextColorPlugin-B6YoN9mR.mjs";import{n as Ti,r as bi,t as Di}from"./chunks/DirectionDetection-ZrkMhyaL.mjs";import{t as Si}from"./chunks/TextDirectionAutoPlugin-LVDkKdDX.mjs";import{n as Ci,r as xi,t as yi}from"./chunks/TextDirectionPlugin-CtGwof7i.mjs";import{a as Mi,i as vi,n as Ri,o as Fi,r as Ii,s as Ai,t as Bi}from"./chunks/VideoPlugin-C9z4JfP_.mjs";import{t as Hi}from"./chunks/full-CNi2CaF3.mjs";import"./presets.mjs";import{n as Ni,r as zi,t as _i}from"./chunks/StarterFonts-BDQPg-cu.mjs";import{t as wi}from"./chunks/MathFont-BS8IwYh2.mjs";import"./fonts.mjs";import"./plugins/text-formatting.mjs";import"./plugins/heading.mjs";import"./plugins/toolbar.mjs";import"./plugins/shared.mjs";import"./plugins/table.mjs";import"./plugins/image.mjs";import"./plugins/formula.mjs";import"./plugins/video.mjs";import"./plugins/code-block.mjs";import"./plugins/link.mjs";import"./plugins/list.mjs";import"./plugins/blockquote.mjs";import"./plugins/strikethrough.mjs";import"./plugins/inline-code.mjs";import"./plugins/text-color.mjs";import"./plugins/horizontal-rule.mjs";import"./plugins/alignment.mjs";import"./plugins/font.mjs";import"./plugins/font-size.mjs";import"./plugins/highlight.mjs";import"./plugins/super-sub.mjs";import"./plugins/hard-break.mjs";import"./plugins/gap-cursor.mjs";import"./plugins/caret-navigation.mjs";import"./plugins/print.mjs";import"./plugins/smart-paste.mjs";import"./plugins/language.mjs";import"./plugins/text-direction.mjs";import"./plugins/bidi-isolation.mjs";import"./plugins/text-direction-auto.mjs";export{om as AFTER_PRINT,yr as ALIGNMENT_ICONS,xr as ALIGNMENT_LOCALE_EN,Cr as AlignmentPlugin,Ja as BEFORE_PRINT,Rr as BIDI_ISOLATION_LOCALE_EN,Ar as BLOCKQUOTE_LOCALE_EN,Ir as BidiIsolationPlugin,wm as BlockTypePickerRegistry,Hr as BlockquotePlugin,qs as CARET_NAVIGATION_LOCALE_EN,_r as CODE_BLOCK_LOCALE_EN,Nr as CODE_BLOCK_SERVICE_KEY,Js as CaretNavigationPlugin,ea as ClipboardHandler,Kr as CodeBlockPlugin,za as CompositionTracker,Ia as CursorWrapper,mm as DARK_THEME,to as DEFAULT_FORMULA_KEYMAP,Ro as DEFAULT_IMAGE_KEYMAP,Qo as DEFAULT_RELEVANCE_WEIGHTS,ji as DEFAULT_TABLE_SIZING_CONFIG,vi as DEFAULT_VIDEO_CONFIG,Mi as DEFAULT_VIDEO_KEYMAP,Fi as DEFAULT_VIDEO_PROVIDERS,Mr as DIRECTION_ICONS,Dm as DecorationSet,Da as EditorInitializationAbortedError,ua as EditorState,da as EventBus,xm as EventKey,_i as FIRA_CODE,Ni as FIRA_SANS,hr as FONT_LOCALE_EN,$r as FONT_SIZE_LOCALE_EN,ro as FORMULA_LOCALE_EN,Ta as FileHandlerRegistry,kr as FontPlugin,Zr as FontSizePlugin,no as FormulaPlugin,Ym as GapCursorPlugin,po as HEADING_LOCALE_EN,bo as HIGHLIGHT_LOCALE_EN,Co as HORIZONTAL_RULE_LOCALE_EN,uo as HardBreakPlugin,lo as HeadingPlugin,So as HighlightPlugin,Ba as HistoryManager,yo as HorizontalRulePlugin,bm as IDENTITY_MAP,vo as IMAGE_LOCALE_EN,Fo as IMAGE_UPLOAD_SERVICE,Ao as INLINE_CODE_LOCALE_EN,Io as ImagePlugin,Ho as InlineCodePlugin,ha as InputManager,ba as InputRuleRegistry,Lr as JAVA_LANGUAGE,Yo as JAVA_SUPPORT,Or as JSON_LANGUAGE,qo as JSON_SUPPORT,Oo as JsonDetector,ya as KeymapRegistry,Gr as LANGUAGE_REGISTRY_SERVICE_KEY,im as LIGHT_THEME,No as LINK_LOCALE_EN,wo as LIST_LOCALE_EN,Jo as LexerDetector,_o as LinkPlugin,Ko as ListPlugin,pr as Locale,vm as LocaleService,Im as LocaleServiceKey,so as MATHML_ATTRS,oo as MATHML_TAGS,si as MAX_RELEVANCE_WEIGHT,hm as Mapping,wi as NOTECTL_MATH_FONT,Ra as NodeViewRegistry,Ma as NotectlEditor,Qa as PAPER_MARGIN_HORIZONTAL_PX,Wa as PAPER_MARGIN_TOP_PX,rm as PAPER_VIEWPORT_PADDING_PX,Lo as PRINT_LOCALE_EN,Xa as PRINT_SERVICE_KEY,sm as PaperSize,Pa as PluginManager,ur as PopupManager,nr as PopupServiceKey,Go as PrintPlugin,zr as RegexTokenizer,ri as SMART_PASTE_LOCALE_EN,mi as SMART_PASTE_SERVICE_KEY,zi as STARTER_FONTS,ii as STRIKETHROUGH_LOCALE_EN,ui as SUPER_SUB_LOCALE_EN,wr as SYNTAX_HIGHLIGHTER_SERVICE_KEY,Sm as SYNTAX_TOKEN_TYPES,_m as SchemaRegistry,Cm as ServiceKey,oi as SmartPastePlugin,ni as StrikethroughPlugin,ci as SuperSubPlugin,li as TABLE_LOCALE_EN,fi as TEXT_COLOR_LOCALE_EN,Ci as TEXT_DIRECTION_LOCALE_EN,vr as TEXT_DIRECTION_SERVICE_KEY,Zm as TEXT_FORMATTING_LOCALE_EN,Km as TOOLBAR_LOCALE_EN,Vr as TYPESCRIPT_LANGUAGE,$o as TYPESCRIPT_SUPPORT,ki as TablePlugin,ei as TableSelectionServiceKey,gi as TableSizingServiceKey,di as TextColorPlugin,Si as TextDirectionAutoPlugin,yi as TextDirectionPlugin,ar as TextFormattingPlugin,qa as ThemePreset,Gm as ToolbarOverflowBehavior,Om as ToolbarPlugin,Vm as ToolbarRegistry,Lm as ToolbarServiceKey,na as TransactionBuilder,um as VALID_ALIGNMENTS,lm as VALID_DIRECTIONS,Ri as VIDEO_LOCALE_EN,Bi as VideoPlugin,qr as XML_ATTRS,Ur as XML_LANGUAGE,Zo as XML_SUPPORT,Xr as XML_TAG_NAME,Wo as XmlDetector,jr as adoptContentStyles,tr as appendToRoot,Oa as applyAttributedMark,ho as applyColorMark,or as applyRovingTabindex,la as applyStep,Yr as attachGridKeyboard,Qr as attachListboxKeyboard,Wr as attachMenuKeyboard,T as blockAttrValuesEqual,D as blockAttrsEqual,q as blockId,k as blockOffsetToTextOffset,ao as buildMathML,ss as canContain,J as canCrossBlockBoundary,Fm as capitalize,Pm as collectRemovedBlockIds,O as commandName,Xo as computeTokenStats,ta as consoleLogger,Qm as createBlockElement,b as createBlockNode,_ as createCollapsedSelection,d as createDocument,Fa as createEditor,Hi as createFullPreset,K as createGapCursor,g as createInlineNode,$m as createMarkInputRule,Dr as createMinimalPreset,H as createNodeSelection,F as createPosition,w as createSelection,h as createTextNode,Za as createTheme,tm as createThemeStyleSheet,gs as defaultSchema,pa as deleteBackward,ts as deleteBackwardAtGap,ca as deleteForward,cs as deleteForwardAtGap,ms as deleteNodeSelection,ns as deleteSelectionCommand,Di as detectTextDirection,bs as endOfTextblock,a as escapeAttr,r as escapeHTML,sa as extendCharacterBackward,ra as extendCharacterForward,Vs as extendLineDown,Ns as extendLineUp,zs as extendToBlockEnd,ma as extendToBlockStart,As as extendToDocumentEnd,Ds as extendToDocumentStart,Qs as extendToLineEnd,$s as extendToLineStart,qm as extendTx,_s as extendWordBackward,Us as extendWordForward,mr as findNextDropdownItem,M as findNode,v as findNodePath,x as findNodeWithPath,Ti as findSiblingDirection,xs as findWordBoundaryBackward,ys as findWordBoundaryForward,Ts as forEachBlockIdInRange,ds as forEachBlockInRange,s as formatHTML,Jm as formatShortcut,am as generateThemeCSS,go as getActiveColor,t as getBlockChildren,bi as getBlockDir,P as getBlockLength,o as getBlockMarksAtOffset,f as getBlockText,va as getBlockTypeLabel,Gs as getCaretRectFromSelection,fo as getColorName,c as getContentAtOffset,l as getInlineChildren,Va as getMarkAttrAtSelection,$a as getPaperCSSSize,Ya as getPaperDimensions,Rm as getSelectedBlock,Mm as getSelectedBlockId,Ca as getStepMap,n as getTextChildren,zm as getTextDirection,p as hasMark,lr as injectContentStyles,fm as inlineDecoration,X as inlineType,us as insertHardBreakCommand,is as insertTextCommand,ia as invertStep,Sa as invertTransaction,fa as isAllowedInReadonly,Ga as isAttributedMarkActive,e as isBlockNode,I as isCollapsed,jo as isColorMarkActive,Hm as isFirefox,N as isForward,L as isGapCursor,S as isInlineNode,Ka as isInlineNodeOfType,W as isInsideIsolating,$ as isIsolatingBlock,i as isLeafBlock,Po as isLightColor,Nm as isMac,Ps as isMarkActive,fs as isMarkAllowed,wa as isMarkOfType,Ea as isNodeOfType,A as isNodeSelection,Bm as isRtlContext,xa as isSelectionOnlyTransaction,j as isTextNode,B as isTextSelection,br as isValidCSSColor,dr as isValidCSSFontFamily,Tr as isValidCSSFontSize,Pr as isValidHexColor,Ua as isValidPaperSize,Q as isVoidBlock,Am as isWebKit,mo as latexToMathML,Sr as loadAlignmentLocale,Fr as loadBidiIsolationLocale,Br as loadBlockquoteLocale,Ys as loadCaretNavigationLocale,Er as loadCodeBlockLocale,gr as loadFontLocale,Jr as loadFontSizeLocale,io as loadFormulaLocale,co as loadHeadingLocale,Do as loadHighlightLocale,xo as loadHorizontalRuleLocale,Mo as loadImageLocale,Bo as loadInlineCodeLocale,zo as loadLinkLocale,Eo as loadListLocale,ym as loadLocaleModule,Vo as loadPrintLocale,ai as loadSmartPasteLocale,ti as loadStrikethroughLocale,pi as loadSuperSubLocale,hi as loadTableLocale,Pi as loadTextColorLocale,xi as loadTextDirectionLocale,sr as loadTextFormattingLocale,Em as loadToolbarLocale,Ii as loadVideoLocale,gm as mapChildIndex,Tm as mapInsertionIndex,km as mapPositionThroughStep,Ha as mapSelection,_a as mapTextSelection,u as markSetsEqual,G as markType,rs as mergeBlockBackward,aa as moveCharacterBackward,Bs as moveCharacterForward,Zs as moveLineDown,ws as moveLineUp,Rs as moveToBlockEnd,Os as moveToBlockStart,Cs as moveToDocumentEnd,Ss as moveToDocumentStart,Es as moveToLineEnd,Ws as moveToLineStart,Um as moveTx,Xs as moveWordBackward,Ls as moveWordForward,Ms as navigateAcrossBlocks,as as navigateArrowIntoVoid,Wm as navigateFromGapCursor,rr as navigateGrid,vs as navigateVerticalWithGoalColumn,Is as nextGraphemeSize,jm as nodeDecoration,Xm as nodeSelTx,V as nodeType,m as normalizeHTMLId,ka as normalizeKeyDescriptor,em as parseHTMLToDocument,Ai as parseVideoUrl,U as pluginId,ir as positionPopup,oa as prevGraphemeSize,ga as registerBuiltinSpecs,Aa as registerNotectlEditor,er as removeAdoptedStyles,La as removeAttributedMark,eo as removeColorMark,cr as removeContentStyles,To as renderColorGrid,ko as renderColorPickerPopup,fr as resolveColors,R as resolveNodeByPath,C as resolveParentByPath,nm as resolveTheme,js as schemaFromRegistry,Na as scopedLogger,Uo as scoreFromStats,ps as selectAll,E as selectionRange,z as selectionsEqual,cm as serializeDocumentToCSS,pm as serializeDocumentToHTML,Y as sharesParent,ja as silentLogger,Fs as skipInlineNode,os as splitBlockCommand,hs as toggleBold,ks as toggleItalic,es as toggleMark,ls as toggleUnderline,Z as validateContent,Ks as viewExtend,Hs as viewMove,y as walkNodes,dm as widgetDecoration};
1
+ import{i as s,n as a,o as m,r}from"./chunks/HTMLUtils-B0nGyFLb.mjs";import{A as o,B as i,D as t,F as n,H as u,I as p,M as c,P as l,R as e,V as j,_ as h,g,i as k,j as f,k as P,m as d,n as T,p as b,r as D,z as S}from"./chunks/Document-D_2cIBJG.mjs";import{c as C,i as x,l as y,n as M,r as v,s as R}from"./chunks/NodeResolver-BtIknXqD.mjs";import{a as F,c as I,d as A,f as B,i as H,l as N,m as z,n as _,o as w,p as E,r as K,u as L}from"./chunks/Selection-DC6AOGgF.mjs";import{a as V,i as G,n as O,o as U,r as X,t as q}from"./chunks/TypeBrands-Ch9856Gb.mjs";import{i as Q,n as W,o as Y,r as $,t as J}from"./chunks/NavigationQueries-Bt4zZ17v.mjs";import{r as Z,t as ss}from"./chunks/ContentModel-Bzmzeqwg.mjs";import{i as as,t as ms}from"./chunks/NodeSelectionCommands-DK3iEh18.mjs";import{a as rs,c as os,i as is,l as ts,n as ns,r as us,s as ps,u as cs}from"./chunks/Commands-D-0UXYvo.mjs";import{a as ls,i as es,l as js,n as hs,o as gs,r as ks,s as fs,t as Ps}from"./chunks/MarkCommands-CJvLGL5G.mjs";import{n as ds,t as Ts}from"./chunks/RangeIterator-DDOxTQIf.mjs";import{A as bs,C as Ds,D as Ss,E as Cs,I as xs,L as ys,M as Ms,N as vs,O as Rs,P as Fs,R as Is,S as As,T as Bs,_ as Hs,a as Ns,b as zs,c as _s,d as ws,f as Es,g as Ks,h as Ls,i as Vs,j as Gs,k as Os,l as Us,m as Xs,n as qs,o as Qs,p as Ws,r as Ys,s as $s,t as Js,u as Zs,v as sa,w as aa,x as ma,y as ra,z as oa}from"./chunks/CaretNavigationPlugin-DEZU09LJ.mjs";import{A as ia,C as ta,D as na,E as ua,M as pa,N as ca,O as la,S as ea,T as ja,_ as ha,a as ga,b as ka,c as fa,d as Pa,f as da,g as Ta,h as ba,i as Da,j as Sa,k as Ca,l as xa,m as ya,n as Ma,o as va,p as Ra,r as Fa,s as Ia,t as Aa,u as Ba,v as Ha,w as Na,x as za,y as _a}from"./chunks/register-ArnJV5vu.mjs";import{n as wa,r as Ea,t as Ka}from"./chunks/AttrRegistry-CtNhf2EF.mjs";import{i as La,n as Va,r as Ga,t as Oa}from"./chunks/AttributedMarkCommands-B3MQdob_.mjs";import{_ as Ua,a as Xa,c as qa,d as Qa,f as Wa,g as Ya,h as $a,i as Ja,l as Za,m as sm,n as am,o as mm,p as rm,r as om,s as im,t as tm,u as nm}from"./chunks/ThemeEngine-kIXtSRkI.mjs";import{f as um,h as pm,m as cm,p as lm}from"./chunks/TableDimensions-BcARMxQB.mjs";import{t as em}from"./chunks/DocumentParser-i-CreJ48.mjs";import{a as jm,c as hm,d as gm,h as km,i as fm,l as Pm,o as dm,p as Tm,s as bm,t as Dm}from"./chunks/Decoration-BwhoA4MU.mjs";import{t as Sm}from"./chunks/SyntaxTokenTypes-BUCOMtL8.mjs";import{n as Cm,t as xm}from"./chunks/TypedKeys-CA4bfw9O.mjs";import{c as ym,i as Mm,l as vm,r as Rm,t as Fm,u as Im}from"./chunks/PluginHelpers-WG1Lzzh3.mjs";import{a as Am,i as Bm,n as Hm,r as Nm,t as zm}from"./chunks/Platform-ByobkiCc.mjs";import{t as _m}from"./chunks/SchemaRegistry-acc6q_5x.mjs";import{t as wm}from"./chunks/BlockTypePickerRegistry-BTET9jM-.mjs";import{a as Em,i as Km,n as Lm,o as Vm,r as Gm,t as Om}from"./chunks/ToolbarPlugin-DdrLarMD.mjs";import{n as Um,r as Xm,t as qm}from"./chunks/SelectionTransactions-DNCzsl_b.mjs";import{n as Qm}from"./chunks/DomUtils-Bf7JLFlx.mjs";import{n as Wm,t as Ym}from"./chunks/GapCursorPlugin-NozsEK9J.mjs";import{t as $m}from"./chunks/MarkInputRule-DNneF2gp.mjs";import{t as Jm}from"./chunks/ShortcutFormatting-TwiufqeV.mjs";import{n as Zm,r as sr,t as ar}from"./chunks/TextFormattingPlugin-DlS0SeW7.mjs";import{n as mr,r as rr,t as or}from"./chunks/KeyboardNav-D0my3wuy.mjs";import{i as ir,t as tr}from"./chunks/PopupPositioning-CIqgpqlW.mjs";import{n as nr,t as ur}from"./chunks/PopupManager-Jz5JrUdC.mjs";import{a as pr,i as cr,n as lr,r as er,t as jr}from"./chunks/src-5GKFQ2mQ.mjs";import"./html.mjs";import{n as hr,r as gr,t as kr}from"./chunks/FontPlugin-C_ScWZ0P.mjs";import{a as fr,i as Pr,n as dr,r as Tr,t as br}from"./chunks/ColorValidation-B9d_umnf.mjs";import{t as Dr}from"./chunks/minimal-7XqMY9kC.mjs";import{i as Sr,n as Cr,r as xr,t as yr}from"./chunks/AlignmentPlugin-DIwrRsHd.mjs";import{t as Mr}from"./chunks/DirectionIcons-Bbawl9ei.mjs";import{t as vr}from"./chunks/TextDirectionService-OFOU6r_s.mjs";import{n as Rr,r as Fr,t as Ir}from"./chunks/BidiIsolationPlugin-cOLlL3Y9.mjs";import{n as Ar,r as Br,t as Hr}from"./chunks/BlockquotePlugin-D-jRWLQB.mjs";import{a as Nr,i as zr,n as _r,o as wr,r as Er,t as Kr}from"./chunks/CodeBlockPlugin-BandNM3t.mjs";import{i as Lr,n as Vr,o as Gr,r as Or,t as Ur}from"./chunks/xml-BsV44TrJ.mjs";import{n as Xr,t as qr}from"./chunks/XmlPatterns-RN32-0ob.mjs";import{n as Qr,r as Wr,t as Yr}from"./chunks/PopupKeyboardPatterns-BcwdDxRq.mjs";import{n as $r,r as Jr,t as Zr}from"./chunks/FontSizePlugin-DB_0njtC.mjs";import{a as so,c as ao,i as mo,n as ro,o as oo,r as io,s as to,t as no}from"./chunks/FormulaPlugin-CI0r4X1o.mjs";import{t as uo}from"./chunks/HardBreakPlugin-CC4rntSX.mjs";import{n as po,r as co,t as lo}from"./chunks/HeadingPlugin-LK8Pg4h0.mjs";import{a as eo,i as jo,n as ho,r as go,t as ko}from"./chunks/ColorPickerPopup-_C5JZhki.mjs";import{n as fo,r as Po,t as To}from"./chunks/ColorGrid-D0vLHsG6.mjs";import{n as bo,r as Do,t as So}from"./chunks/HighlightPlugin-B4WlZawl.mjs";import{n as Co,r as xo,t as yo}from"./chunks/HorizontalRulePlugin-CxmUMM34.mjs";import{a as Mo,i as vo,n as Ro,r as Fo,t as Io}from"./chunks/ImagePlugin-C5ESNNsA.mjs";import{n as Ao,r as Bo,t as Ho}from"./chunks/InlineCodePlugin-C1SqGfv5.mjs";import{n as No,r as zo,t as _o}from"./chunks/LinkPlugin-BwXDGHPe.mjs";import{n as wo,r as Eo,t as Ko}from"./chunks/ListPlugin-DSFPSWQC.mjs";import{n as Lo,r as Vo,t as Go}from"./chunks/PrintPlugin-BQ7LWbEB.mjs";import{a as Oo,c as Uo,d as Xo,i as qo,l as Qo,n as Wo,o as Yo,r as $o,s as Jo,t as Zo,u as si}from"./chunks/XmlSupport-3Za6SIqF.mjs";import{i as ai,n as mi,r as ri,t as oi}from"./chunks/SmartPastePlugin-CjExbE9Q.mjs";import{n as ii,r as ti,t as ni}from"./chunks/StrikethroughPlugin-d-EW2YYx.mjs";import{n as ui,r as pi,t as ci}from"./chunks/SuperSubPlugin-C-kvFQyx.mjs";import{a as li,i as ei,n as ji,o as hi,r as gi,t as ki}from"./chunks/TablePlugin-C4WMYGWN.mjs";import{n as fi,r as Pi,t as di}from"./chunks/TextColorPlugin-D_MhNJT6.mjs";import{n as Ti,r as bi,t as Di}from"./chunks/DirectionDetection-ZrkMhyaL.mjs";import{t as Si}from"./chunks/TextDirectionAutoPlugin-LVDkKdDX.mjs";import{n as Ci,r as xi,t as yi}from"./chunks/TextDirectionPlugin-CtGwof7i.mjs";import{a as Mi,i as vi,n as Ri,o as Fi,r as Ii,s as Ai,t as Bi}from"./chunks/VideoPlugin-C9z4JfP_.mjs";import{t as Hi}from"./chunks/full-Cshz7aTP.mjs";import"./presets.mjs";import{n as Ni,r as zi,t as _i}from"./chunks/StarterFonts-BDQPg-cu.mjs";import{t as wi}from"./chunks/MathFont-BS8IwYh2.mjs";import"./fonts.mjs";import"./plugins/text-formatting.mjs";import"./plugins/heading.mjs";import"./plugins/toolbar.mjs";import"./plugins/shared.mjs";import"./plugins/table.mjs";import"./plugins/image.mjs";import"./plugins/formula.mjs";import"./plugins/video.mjs";import"./plugins/code-block.mjs";import"./plugins/link.mjs";import"./plugins/list.mjs";import"./plugins/blockquote.mjs";import"./plugins/strikethrough.mjs";import"./plugins/inline-code.mjs";import"./plugins/text-color.mjs";import"./plugins/horizontal-rule.mjs";import"./plugins/alignment.mjs";import"./plugins/font.mjs";import"./plugins/font-size.mjs";import"./plugins/highlight.mjs";import"./plugins/super-sub.mjs";import"./plugins/hard-break.mjs";import"./plugins/gap-cursor.mjs";import"./plugins/caret-navigation.mjs";import"./plugins/print.mjs";import"./plugins/smart-paste.mjs";import"./plugins/language.mjs";import"./plugins/text-direction.mjs";import"./plugins/bidi-isolation.mjs";import"./plugins/text-direction-auto.mjs";export{om as AFTER_PRINT,yr as ALIGNMENT_ICONS,xr as ALIGNMENT_LOCALE_EN,Cr as AlignmentPlugin,Ja as BEFORE_PRINT,Rr as BIDI_ISOLATION_LOCALE_EN,Ar as BLOCKQUOTE_LOCALE_EN,Ir as BidiIsolationPlugin,wm as BlockTypePickerRegistry,Hr as BlockquotePlugin,qs as CARET_NAVIGATION_LOCALE_EN,_r as CODE_BLOCK_LOCALE_EN,Nr as CODE_BLOCK_SERVICE_KEY,Js as CaretNavigationPlugin,ea as ClipboardHandler,Kr as CodeBlockPlugin,za as CompositionTracker,Ia as CursorWrapper,mm as DARK_THEME,to as DEFAULT_FORMULA_KEYMAP,Ro as DEFAULT_IMAGE_KEYMAP,Qo as DEFAULT_RELEVANCE_WEIGHTS,ji as DEFAULT_TABLE_SIZING_CONFIG,vi as DEFAULT_VIDEO_CONFIG,Mi as DEFAULT_VIDEO_KEYMAP,Fi as DEFAULT_VIDEO_PROVIDERS,Mr as DIRECTION_ICONS,Dm as DecorationSet,Da as EditorInitializationAbortedError,ua as EditorState,da as EventBus,xm as EventKey,_i as FIRA_CODE,Ni as FIRA_SANS,hr as FONT_LOCALE_EN,$r as FONT_SIZE_LOCALE_EN,ro as FORMULA_LOCALE_EN,Ta as FileHandlerRegistry,kr as FontPlugin,Zr as FontSizePlugin,no as FormulaPlugin,Ym as GapCursorPlugin,po as HEADING_LOCALE_EN,bo as HIGHLIGHT_LOCALE_EN,Co as HORIZONTAL_RULE_LOCALE_EN,uo as HardBreakPlugin,lo as HeadingPlugin,So as HighlightPlugin,Ba as HistoryManager,yo as HorizontalRulePlugin,bm as IDENTITY_MAP,vo as IMAGE_LOCALE_EN,Fo as IMAGE_UPLOAD_SERVICE,Ao as INLINE_CODE_LOCALE_EN,Io as ImagePlugin,Ho as InlineCodePlugin,ha as InputManager,ba as InputRuleRegistry,Lr as JAVA_LANGUAGE,Yo as JAVA_SUPPORT,Or as JSON_LANGUAGE,qo as JSON_SUPPORT,Oo as JsonDetector,ya as KeymapRegistry,Gr as LANGUAGE_REGISTRY_SERVICE_KEY,im as LIGHT_THEME,No as LINK_LOCALE_EN,wo as LIST_LOCALE_EN,Jo as LexerDetector,_o as LinkPlugin,Ko as ListPlugin,pr as Locale,vm as LocaleService,Im as LocaleServiceKey,so as MATHML_ATTRS,oo as MATHML_TAGS,si as MAX_RELEVANCE_WEIGHT,hm as Mapping,wi as NOTECTL_MATH_FONT,Ra as NodeViewRegistry,Ma as NotectlEditor,Qa as PAPER_MARGIN_HORIZONTAL_PX,Wa as PAPER_MARGIN_TOP_PX,rm as PAPER_VIEWPORT_PADDING_PX,Lo as PRINT_LOCALE_EN,Xa as PRINT_SERVICE_KEY,sm as PaperSize,Pa as PluginManager,ur as PopupManager,nr as PopupServiceKey,Go as PrintPlugin,zr as RegexTokenizer,ri as SMART_PASTE_LOCALE_EN,mi as SMART_PASTE_SERVICE_KEY,zi as STARTER_FONTS,ii as STRIKETHROUGH_LOCALE_EN,ui as SUPER_SUB_LOCALE_EN,wr as SYNTAX_HIGHLIGHTER_SERVICE_KEY,Sm as SYNTAX_TOKEN_TYPES,_m as SchemaRegistry,Cm as ServiceKey,oi as SmartPastePlugin,ni as StrikethroughPlugin,ci as SuperSubPlugin,li as TABLE_LOCALE_EN,fi as TEXT_COLOR_LOCALE_EN,Ci as TEXT_DIRECTION_LOCALE_EN,vr as TEXT_DIRECTION_SERVICE_KEY,Zm as TEXT_FORMATTING_LOCALE_EN,Km as TOOLBAR_LOCALE_EN,Vr as TYPESCRIPT_LANGUAGE,$o as TYPESCRIPT_SUPPORT,ki as TablePlugin,ei as TableSelectionServiceKey,gi as TableSizingServiceKey,di as TextColorPlugin,Si as TextDirectionAutoPlugin,yi as TextDirectionPlugin,ar as TextFormattingPlugin,qa as ThemePreset,Gm as ToolbarOverflowBehavior,Om as ToolbarPlugin,Vm as ToolbarRegistry,Lm as ToolbarServiceKey,na as TransactionBuilder,um as VALID_ALIGNMENTS,lm as VALID_DIRECTIONS,Ri as VIDEO_LOCALE_EN,Bi as VideoPlugin,qr as XML_ATTRS,Ur as XML_LANGUAGE,Zo as XML_SUPPORT,Xr as XML_TAG_NAME,Wo as XmlDetector,jr as adoptContentStyles,tr as appendToRoot,Oa as applyAttributedMark,ho as applyColorMark,or as applyRovingTabindex,la as applyStep,Yr as attachGridKeyboard,Qr as attachListboxKeyboard,Wr as attachMenuKeyboard,T as blockAttrValuesEqual,D as blockAttrsEqual,q as blockId,k as blockOffsetToTextOffset,ao as buildMathML,ss as canContain,J as canCrossBlockBoundary,Fm as capitalize,Pm as collectRemovedBlockIds,O as commandName,Xo as computeTokenStats,ta as consoleLogger,Qm as createBlockElement,b as createBlockNode,_ as createCollapsedSelection,d as createDocument,Fa as createEditor,Hi as createFullPreset,K as createGapCursor,g as createInlineNode,$m as createMarkInputRule,Dr as createMinimalPreset,H as createNodeSelection,F as createPosition,w as createSelection,h as createTextNode,Za as createTheme,tm as createThemeStyleSheet,gs as defaultSchema,pa as deleteBackward,ts as deleteBackwardAtGap,ca as deleteForward,cs as deleteForwardAtGap,ms as deleteNodeSelection,ns as deleteSelectionCommand,Di as detectTextDirection,bs as endOfTextblock,a as escapeAttr,r as escapeHTML,sa as extendCharacterBackward,ra as extendCharacterForward,Vs as extendLineDown,Ns as extendLineUp,zs as extendToBlockEnd,ma as extendToBlockStart,As as extendToDocumentEnd,Ds as extendToDocumentStart,Qs as extendToLineEnd,$s as extendToLineStart,qm as extendTx,_s as extendWordBackward,Us as extendWordForward,mr as findNextDropdownItem,M as findNode,v as findNodePath,x as findNodeWithPath,Ti as findSiblingDirection,xs as findWordBoundaryBackward,ys as findWordBoundaryForward,Ts as forEachBlockIdInRange,ds as forEachBlockInRange,s as formatHTML,Jm as formatShortcut,am as generateThemeCSS,go as getActiveColor,t as getBlockChildren,bi as getBlockDir,P as getBlockLength,o as getBlockMarksAtOffset,f as getBlockText,va as getBlockTypeLabel,Gs as getCaretRectFromSelection,fo as getColorName,c as getContentAtOffset,l as getInlineChildren,Va as getMarkAttrAtSelection,$a as getPaperCSSSize,Ya as getPaperDimensions,Rm as getSelectedBlock,Mm as getSelectedBlockId,Ca as getStepMap,n as getTextChildren,zm as getTextDirection,p as hasMark,lr as injectContentStyles,fm as inlineDecoration,X as inlineType,us as insertHardBreakCommand,is as insertTextCommand,ia as invertStep,Sa as invertTransaction,fa as isAllowedInReadonly,Ga as isAttributedMarkActive,e as isBlockNode,I as isCollapsed,jo as isColorMarkActive,Hm as isFirefox,N as isForward,L as isGapCursor,S as isInlineNode,Ka as isInlineNodeOfType,W as isInsideIsolating,$ as isIsolatingBlock,i as isLeafBlock,Po as isLightColor,Nm as isMac,Ps as isMarkActive,fs as isMarkAllowed,wa as isMarkOfType,Ea as isNodeOfType,A as isNodeSelection,Bm as isRtlContext,xa as isSelectionOnlyTransaction,j as isTextNode,B as isTextSelection,br as isValidCSSColor,dr as isValidCSSFontFamily,Tr as isValidCSSFontSize,Pr as isValidHexColor,Ua as isValidPaperSize,Q as isVoidBlock,Am as isWebKit,mo as latexToMathML,Sr as loadAlignmentLocale,Fr as loadBidiIsolationLocale,Br as loadBlockquoteLocale,Ys as loadCaretNavigationLocale,Er as loadCodeBlockLocale,gr as loadFontLocale,Jr as loadFontSizeLocale,io as loadFormulaLocale,co as loadHeadingLocale,Do as loadHighlightLocale,xo as loadHorizontalRuleLocale,Mo as loadImageLocale,Bo as loadInlineCodeLocale,zo as loadLinkLocale,Eo as loadListLocale,ym as loadLocaleModule,Vo as loadPrintLocale,ai as loadSmartPasteLocale,ti as loadStrikethroughLocale,pi as loadSuperSubLocale,hi as loadTableLocale,Pi as loadTextColorLocale,xi as loadTextDirectionLocale,sr as loadTextFormattingLocale,Em as loadToolbarLocale,Ii as loadVideoLocale,gm as mapChildIndex,Tm as mapInsertionIndex,km as mapPositionThroughStep,Ha as mapSelection,_a as mapTextSelection,u as markSetsEqual,G as markType,rs as mergeBlockBackward,aa as moveCharacterBackward,Bs as moveCharacterForward,Zs as moveLineDown,ws as moveLineUp,Rs as moveToBlockEnd,Os as moveToBlockStart,Cs as moveToDocumentEnd,Ss as moveToDocumentStart,Es as moveToLineEnd,Ws as moveToLineStart,Um as moveTx,Xs as moveWordBackward,Ls as moveWordForward,Ms as navigateAcrossBlocks,as as navigateArrowIntoVoid,Wm as navigateFromGapCursor,rr as navigateGrid,vs as navigateVerticalWithGoalColumn,Is as nextGraphemeSize,jm as nodeDecoration,Xm as nodeSelTx,V as nodeType,m as normalizeHTMLId,ka as normalizeKeyDescriptor,em as parseHTMLToDocument,Ai as parseVideoUrl,U as pluginId,ir as positionPopup,oa as prevGraphemeSize,ga as registerBuiltinSpecs,Aa as registerNotectlEditor,er as removeAdoptedStyles,La as removeAttributedMark,eo as removeColorMark,cr as removeContentStyles,To as renderColorGrid,ko as renderColorPickerPopup,fr as resolveColors,R as resolveNodeByPath,C as resolveParentByPath,nm as resolveTheme,js as schemaFromRegistry,Na as scopedLogger,Uo as scoreFromStats,ps as selectAll,E as selectionRange,z as selectionsEqual,cm as serializeDocumentToCSS,pm as serializeDocumentToHTML,Y as sharesParent,ja as silentLogger,Fs as skipInlineNode,os as splitBlockCommand,hs as toggleBold,ks as toggleItalic,es as toggleMark,ls as toggleUnderline,Z as validateContent,Ks as viewExtend,Hs as viewMove,y as walkNodes,dm as widgetDecoration};
@@ -1,3 +1,4 @@
1
+ import { Selection } from '../model/Selection.js';
1
2
  import { Transaction } from '../state/Transaction.js';
2
3
  import { InputRuleRegistry } from '../model/InputRuleRegistry.js';
3
4
  import { PluginCallbackExecutor } from '../model/PluginCallbackExecutor.js';
@@ -25,6 +26,12 @@ export interface InputHandlerOptions {
25
26
  getTextInputInterceptors?: () => readonly TextInputInterceptorEntry[];
26
27
  /** Shared plugin callback error boundary supplied by PluginManager. */
27
28
  callbackExecutor?: PluginCallbackExecutor;
29
+ /**
30
+ * Maps a DOM static range from `InputEvent.getTargetRanges()` to a model
31
+ * selection. Supplied by the composition root from the view layer; lets
32
+ * `insertReplacementText` target the exact browser-reported word range.
33
+ */
34
+ resolveTargetRange?: (range: StaticRange) => Selection | null;
28
35
  }
29
36
  export declare class InputHandler {
30
37
  private readonly element;
@@ -37,6 +44,7 @@ export declare class InputHandler {
37
44
  private readonly compositionTracker;
38
45
  private readonly getTextInputInterceptors;
39
46
  private readonly callbackExecutor;
47
+ private readonly resolveTargetRange?;
40
48
  private compositionCommitHandled;
41
49
  private readonly handleBeforeInput;
42
50
  private readonly hand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Q,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA6C;IACtF,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAyB;IAC1D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAA2C;IAC/E,OAAO,CAAC,wBAAwB,CAAS;IAEzC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA0B;IAC5D,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAgC;IACvE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;gBAGnD,OAAO,EAAE,WAAW,EACrC,OAAO,EAAE,mBAAmB;IAsB7B,OAAO,CAAC,aAAa;IAuJrB,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,gBAAgB;IAgBxB;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;IAkBhC,OAAO,CAAC,eAAe;IAyCvB,OAAO,IAAI,IAAI;CAKf"}
@@ -5,6 +5,7 @@ import { MarkdownSyntaxExtension } from '../model/MarkdownSyntaxRegistry.js';
5
5
  import { PasteInterceptorEntry } from '../model/PasteInterceptor.js';
6
6
  import { PluginCallbackExecutor } from '../model/PluginCallbackExecutor.js';
7
7
  import { SchemaRegistry } from '../model/SchemaRegistry.js';
8
+ import { Selection } from '../model/Selection.js';
8
9
  import { TextInputInterceptorEntry } from '../model/TextInputInterceptor.js';
9
10
  import { EditorState } from '../state/EditorState.js';
10
11
  import { Transaction } from '../state/Transaction.js';
@@ -37,6 +38,11 @@ export interface InputManagerDeps {
37
38
  readonly markdownImportedMessage?: string;
38
39
  /** Shared plugin callback error boundary supplied by PluginManager. */
39
40
  readonly callbackExecutor?: PluginCallbackExecutor;
41
+ /**
42
+ * Maps a DOM static range from `InputEvent.getTargetRanges()` to a model
43
+ * selection (view-layer DOM mapping, wired by the composition root).
44
+ */
45
+ readonly resolveTargetRange?: (range: StaticRange) => Selection | null;
40
46
  }
41
47
  export declare class InputManager {
42
48
  readonly compositionTracker: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CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iFAAiF;IACjF,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAC1C,uEAAuE;IACvE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IACnD;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,SAAS,GAAG,IAAI,CAAC;CACvE;AAED,qBAAa,YAAY;IACxB,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAChD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAClD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;gBAExC,cAAc,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB;IAoD/D,+EAA+E;IAC/E,aAAa,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,IAAI;IAI/E,gEAAgE;IAChE,OAAO,IAAI,IAAI;CAMf"}
@@ -12,9 +12,14 @@ export declare class PasteHTMLHandler {
12
12
  handleHTMLOrTextPaste(clipboardData: DataTransfer, plainText: string, selection?: EditorSelection): void;
13
13
  /** Inserts plain text through the standard paste pipeline (no HTML interpretation). */
14
14
  pastePlainText(text: string, selection?: EditorSelection): void;
15
- /** Inserts a pre-built HTML string through the standard paste pipeline. */
16
- pasteHTMLString(html: string, selection?: EditorSelection): void;
17
- /** Sanitizes and processes pasted HTML content. */
15
+ /**
16
+ * Inserts a pre-built HTML string through the standard paste pipeline.
17
+ * Returns whether the HTML materialized content (a claimed rich paste or a
18
+ * dispatched insertion). Markup that parses to nothing reports false so the
19
+ * caller can fall back to another clipboard flavor (#216).
20
+ */
21
+ pasteHTMLString(html: string, selection?: EditorSelection): boolean;
22
+ /** Sanitizes and processes pasted HTML content. Returns whether content materialized. */
18
23
  private handleHTML;
19
24
  /** Extracts embedded rich block JSON from HTML (data-notectl-rich). */
20
25
  private extractRichData;
@@ -37,7 +42,10 @@ export declare class PasteHTMLHandler {
37
42
  private containsMultiBlockListItem;
38
43
  /** Checks whether a DOM fragment contains elements matching void block parse rules. */
39
44
  private containsVoidBlockElements;
40
- /** Handles paste of HTML requiring the DocumentParser (tables, void blocks). */
45
+ /**
46
+ * Handles paste of HTML requiring the DocumentParser (tables, void blocks).
47
+ * Returns whether a transaction was dispatched.
48
+ */
41
49
  private handleDocumentPaste;
42
50
  private extractTextFromHTML;
43
51
  private stateAtSelection;
@@ -1 +1 @@
1
- {"version":3,"file":"PasteHTMLHandler.d.ts","sourceRoot":"","sources":["../../src/input/PasteHTMLHandler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACN,KAAK,eAAe,EAMpB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAmChE,qBAAa,gBAAgB;IAE3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAHpB,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,EACpB,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,WAAW,KAAK,OAAO;IAGtF,8DAA8D;IAC9D,qBAAqB,CACpB,aAAa,EAAE,YAAY,EAC3B,SAAS,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,EAAE,cAAc,GAAG,SAAS,EAC1C,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,WAAW,KAAK,OAAO;IAGtF,8DAA8D;IAC9D,qBAAqB,CACpB,aAAa,EAAE,YAAY,EAC3B,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,eAAe,GACzB,IAAI;IAYP,uFAAuF;IACvF,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI;IAM/D;;;;;OAKG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,eAAe,GAAG,OAAO;IAInE,yFAAyF;IACzF,OAAO,CAAC,UAAU;IAyElB,uEAAuE;IACvE,OAAO,CAAC,eAAe;IASvB,qEAAqE;IACrE,OAAO,CAAC,kBAAkB;IAS1B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAe9B,yFAAyF;IACzF,OAAO,CAAC,uBAAuB;IAW/B;;;;;;OAMG;IACH,OAAO,CAAC,0BAA0B;IAmClC,uFAAuF;IACvF,OAAO,CAAC,yBAAyB;IAgBjC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAoE3B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,gBAAgB;CAIxB"}
@@ -51,6 +51,14 @@ export declare class PasteHandler {
51
51
  constructor(element: HTMLElement, options: PasteHandlerOptions);
52
52
  private onPaste;
53
53
  private processClipboardSnapshot;
54
+ /**
55
+ * Continues through the remaining clipboard flavors after preferred HTML
56
+ * materialized nothing (#216). Deferred image files get the next turn; when
57
+ * none is handled, the captured plain text is the final lossless fallback.
58
+ */
59
+ private handleContentlessHTMLFallback;
60
+ private continueContentlessHTMLFallback;
61
+ private finishContentlessHTMLFallback;
54
62
  /**
55
63
  * Dynamically imports the Markdown engine, parses the captured text, and
56
64
  * routes the result through the HTML paste pipeline (which owns block
@@ -1 +1 @@
1
- {"version":3,"file":"PasteHand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AAQ,CAAC,2BAA2B,CAA2C;IACvF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAyB;IACnD,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAS;IACjD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAyB;IAC1D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAsC;IACzE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmB;IAC/C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;IACzD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA4B;IAC7D,OAAO,CAAC,MAAM,CAAQ;gBAGJ,OAAO,EAAE,WAAW,EACrC,OAAO,EAAE,mBAAmB;IAiC7B,OAAO,CAAC,OAAO;IAqCf,OAAO,CAAC,wBAAwB;IA4ChC;;;;OAIG;IACH,OAAO,CAAC,6BAA6B;YA6BvB,+BAA+B;IAkB7C,OAAO,CAAC,6BAA6B;IAcrC;;;;;;;;;;;;OAYG;YACW,mBAAmB;IA8CjC,OAAO,CAAC,+BAA+B;IAOvC,wFAAwF;IACxF,OAAO,CAAC,oBAAoB;IAqB5B,OAAO,CAAC,gBAAgB;YAmBV,yBAAyB;IA6BvC,4EAA4E;IAC5E,aAAa,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,IAAI;IAiB/E,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,gBAAgB;IASxB;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;IAehC,OAAO,IAAI,IAAI;CAOf"}
@@ -25,7 +25,7 @@ export declare class PasteRichBlockHandler {
25
25
  */
26
26
  handleRichPaste(blocks: readonly RichBlockData[], initialState?: EditorState): boolean;
27
27
  /**
28
- * Validates and builds the clipboard blocks, resolves the insertion context
28
+ * Builds the validated clipboard blocks, resolves the insertion context
29
29
  * (cell or root), and inserts them. When the caret is in a table cell whose
30
30
  * content rule forbids one of the blocks (e.g. a copied code_block, which is a
31
31
  * leaf block not in the cell's allow-list), the whole run escapes to the
@@ -1 +1 @@
1
- {"version":3,"file":"PasteRichBlockHandler.d.ts","sourceRoot":"","sources":["../../src/input/PasteRichBlockHandler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAyBH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAUjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEhE,qBAAa,qBAAqB;IAEhC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC;gBAFf,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,EACpB,cAAc,CAAC,EAAE,cAAc,YAAA;IAGjD,qEAAqE;IACrE,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA8DpC,kEAAkE;IAClE,OAAO,CAAC,kBAAkB;IAY1B;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAKnB,6EAA6E;IAC7E,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO;IAWnE;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,EAAE,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO;IAsDtF;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,0BAA0B;IAuClC,8DAA8D;IAC9D,OAAO,CAAC,WAAW;CA4BnB"}
1
+ {"version":3,"file":"PasteRichBlockHandler.d.ts","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