@damiro/stylo 0.7.0 → 0.9.1

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 (146) hide show
  1. package/README.md +41 -14
  2. package/dist/{InPlaceView-CS1qy-Ba.js → InPlaceView-Bu91_3Ig.js} +1199 -855
  3. package/dist/InPlaceView-Bu91_3Ig.js.map +1 -0
  4. package/dist/Preview-AaGGwLQP.js +170 -0
  5. package/dist/Preview-AaGGwLQP.js.map +1 -0
  6. package/dist/SplitView.d.ts +4 -2
  7. package/dist/SplitView.d.ts.map +1 -1
  8. package/dist/Stylo.d.ts.map +1 -1
  9. package/dist/editor/SourceView.d.ts +4 -2
  10. package/dist/editor/SourceView.d.ts.map +1 -1
  11. package/dist/editor/extensions.d.ts +2 -2
  12. package/dist/editor/extensions.d.ts.map +1 -1
  13. package/dist/editor/useCodeMirror.d.ts +4 -2
  14. package/dist/editor/useCodeMirror.d.ts.map +1 -1
  15. package/dist/editor/wikilink-complete.d.ts +5 -3
  16. package/dist/editor/wikilink-complete.d.ts.map +1 -1
  17. package/dist/embed-B2Dfkpd_.js +124 -0
  18. package/dist/embed-B2Dfkpd_.js.map +1 -0
  19. package/dist/embed.d.ts +14 -0
  20. package/dist/embed.d.ts.map +1 -0
  21. package/dist/frontmatter-DGUkb9z-.js +39 -0
  22. package/dist/frontmatter-DGUkb9z-.js.map +1 -0
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/inplace/InPlaceView.d.ts +11 -2
  26. package/dist/inplace/InPlaceView.d.ts.map +1 -1
  27. package/dist/inplace/config.d.ts +8 -0
  28. package/dist/inplace/config.d.ts.map +1 -1
  29. package/dist/inplace/context-menu-actions.d.ts +5 -14
  30. package/dist/inplace/context-menu-actions.d.ts.map +1 -1
  31. package/dist/inplace/context-menu-helpers.d.ts +30 -0
  32. package/dist/inplace/context-menu-helpers.d.ts.map +1 -0
  33. package/dist/inplace/context-menu-shell.d.ts +23 -0
  34. package/dist/inplace/context-menu-shell.d.ts.map +1 -0
  35. package/dist/inplace/context-menu-types.d.ts +46 -0
  36. package/dist/inplace/context-menu-types.d.ts.map +1 -0
  37. package/dist/inplace/context-menu.d.ts +2 -42
  38. package/dist/inplace/context-menu.d.ts.map +1 -1
  39. package/dist/inplace/decorate.d.ts.map +1 -1
  40. package/dist/inplace/edit-boundaries.d.ts +1 -25
  41. package/dist/inplace/edit-boundaries.d.ts.map +1 -1
  42. package/dist/inplace/edit-divider.d.ts +27 -0
  43. package/dist/inplace/edit-divider.d.ts.map +1 -0
  44. package/dist/inplace/embed-registry.d.ts +39 -0
  45. package/dist/inplace/embed-registry.d.ts.map +1 -0
  46. package/dist/inplace/embed.d.ts +8 -0
  47. package/dist/inplace/embed.d.ts.map +1 -0
  48. package/dist/inplace/extension.d.ts +6 -0
  49. package/dist/inplace/extension.d.ts.map +1 -1
  50. package/dist/inplace/inline-md.d.ts +6 -1
  51. package/dist/inplace/inline-md.d.ts.map +1 -1
  52. package/dist/inplace/link-row.d.ts +21 -0
  53. package/dist/inplace/link-row.d.ts.map +1 -0
  54. package/dist/inplace/math-edit.d.ts +36 -0
  55. package/dist/inplace/math-edit.d.ts.map +1 -0
  56. package/dist/inplace/math.d.ts +12 -0
  57. package/dist/inplace/math.d.ts.map +1 -1
  58. package/dist/inplace/menu-plugin.d.ts.map +1 -1
  59. package/dist/inplace/nodes-blocks.d.ts +14 -0
  60. package/dist/inplace/nodes-blocks.d.ts.map +1 -0
  61. package/dist/inplace/nodes-inline.d.ts +16 -0
  62. package/dist/inplace/nodes-inline.d.ts.map +1 -0
  63. package/dist/inplace/nodes.d.ts +3 -2
  64. package/dist/inplace/nodes.d.ts.map +1 -1
  65. package/dist/inplace/scan.d.ts +6 -0
  66. package/dist/inplace/scan.d.ts.map +1 -1
  67. package/dist/inplace/selection-bar-position.d.ts +31 -0
  68. package/dist/inplace/selection-bar-position.d.ts.map +1 -0
  69. package/dist/inplace/selection-bar.d.ts +0 -2
  70. package/dist/inplace/selection-bar.d.ts.map +1 -1
  71. package/dist/inplace/table-widget-caret.d.ts +11 -0
  72. package/dist/inplace/table-widget-caret.d.ts.map +1 -0
  73. package/dist/inplace/table-widget-render.d.ts +18 -0
  74. package/dist/inplace/table-widget-render.d.ts.map +1 -0
  75. package/dist/inplace/table-widget.d.ts +5 -2
  76. package/dist/inplace/table-widget.d.ts.map +1 -1
  77. package/dist/inplace/tables.d.ts.map +1 -1
  78. package/dist/inplace/theme-callout.d.ts +50 -0
  79. package/dist/inplace/theme-callout.d.ts.map +1 -0
  80. package/dist/inplace/theme-canvas.d.ts +166 -0
  81. package/dist/inplace/theme-canvas.d.ts.map +1 -0
  82. package/dist/inplace/theme-fonts.d.ts +4 -0
  83. package/dist/inplace/theme-fonts.d.ts.map +1 -0
  84. package/dist/inplace/theme-menu.d.ts +87 -0
  85. package/dist/inplace/theme-menu.d.ts.map +1 -0
  86. package/dist/inplace/theme-popups.d.ts +94 -0
  87. package/dist/inplace/theme-popups.d.ts.map +1 -0
  88. package/dist/inplace/theme-table-gizmos.d.ts +57 -0
  89. package/dist/inplace/theme-table-gizmos.d.ts.map +1 -0
  90. package/dist/inplace/theme-table.d.ts +30 -0
  91. package/dist/inplace/theme-table.d.ts.map +1 -0
  92. package/dist/inplace/theme.d.ts +5 -0
  93. package/dist/inplace/theme.d.ts.map +1 -1
  94. package/dist/inplace/wikilinks.d.ts.map +1 -1
  95. package/dist/inplace/wrap-at.d.ts +32 -0
  96. package/dist/inplace/wrap-at.d.ts.map +1 -0
  97. package/dist/{markdown-N3lRmU2n.js → markdown-BYXs9Tj8.js} +2 -2
  98. package/dist/{markdown-N3lRmU2n.js.map → markdown-BYXs9Tj8.js.map} +1 -1
  99. package/dist/render/Embed.d.ts +24 -0
  100. package/dist/render/Embed.d.ts.map +1 -0
  101. package/dist/render/Preview.d.ts +6 -2
  102. package/dist/render/Preview.d.ts.map +1 -1
  103. package/dist/render/embed-cache.d.ts +10 -0
  104. package/dist/render/embed-cache.d.ts.map +1 -0
  105. package/dist/render/remark-embed.d.ts +19 -0
  106. package/dist/render/remark-embed.d.ts.map +1 -0
  107. package/dist/styles.css +1 -1
  108. package/dist/stylo.js +70 -54
  109. package/dist/stylo.js.map +1 -1
  110. package/dist/toolbar/block.d.ts +0 -26
  111. package/dist/toolbar/block.d.ts.map +1 -1
  112. package/dist/toolbar/command-helpers.d.ts +57 -0
  113. package/dist/toolbar/command-helpers.d.ts.map +1 -0
  114. package/dist/toolbar/commands.d.ts +1 -21
  115. package/dist/toolbar/commands.d.ts.map +1 -1
  116. package/dist/toolbar/frontmatter-toggle.d.ts +13 -0
  117. package/dist/toolbar/frontmatter-toggle.d.ts.map +1 -0
  118. package/dist/toolbar/heading.d.ts +10 -0
  119. package/dist/toolbar/heading.d.ts.map +1 -0
  120. package/dist/toolbar/inline-ops.d.ts +3 -53
  121. package/dist/toolbar/inline-ops.d.ts.map +1 -1
  122. package/dist/toolbar/link-ops.d.ts +22 -0
  123. package/dist/toolbar/link-ops.d.ts.map +1 -0
  124. package/dist/toolbar/rule.d.ts +11 -0
  125. package/dist/toolbar/rule.d.ts.map +1 -0
  126. package/dist/toolbar/table-position.d.ts +32 -0
  127. package/dist/toolbar/table-position.d.ts.map +1 -0
  128. package/dist/toolbar/table.d.ts +1 -16
  129. package/dist/toolbar/table.d.ts.map +1 -1
  130. package/dist/toolbar/underline-ops.d.ts +15 -0
  131. package/dist/toolbar/underline-ops.d.ts.map +1 -0
  132. package/dist/toolbar/wikilink-ops.d.ts +22 -0
  133. package/dist/toolbar/wikilink-ops.d.ts.map +1 -0
  134. package/dist/types.d.ts +48 -0
  135. package/dist/types.d.ts.map +1 -1
  136. package/dist/{useCodeMirror-GPSkaYW6.js → useCodeMirror-DtwupFgc.js} +559 -531
  137. package/dist/useCodeMirror-DtwupFgc.js.map +1 -0
  138. package/package.json +2 -1
  139. package/dist/InPlaceView-CS1qy-Ba.js.map +0 -1
  140. package/dist/Preview-Bw0k3Mev.js +0 -93
  141. package/dist/Preview-Bw0k3Mev.js.map +0 -1
  142. package/dist/callout-oLE630ZP.js +0 -37
  143. package/dist/callout-oLE630ZP.js.map +0 -1
  144. package/dist/useCodeMirror-GPSkaYW6.js.map +0 -1
  145. package/dist/wikilink-CTR8IFKc.js +0 -42
  146. package/dist/wikilink-CTR8IFKc.js.map +0 -1
@@ -7,8 +7,9 @@ export interface NodeCtx {
7
7
  revealed: Set<number>;
8
8
  /** Lines the caret actually touches. Equals `revealed` except under
9
9
  * `reveal: "never"`, where `revealed` is empty but this is not — a few
10
- * constructs (fenced code) still reveal their delimiters on caret entry
11
- * because there is no other way to see or remove them. */
10
+ * constructs (setext underline, blockquote markers, a body-less fenced
11
+ * block) still reveal their delimiters on caret entry because there is no
12
+ * other way to see or remove them. */
12
13
  caretRevealed: Set<number>;
13
14
  out: Range<Decoration>[];
14
15
  toggles: ResolvedToggles;
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/inplace/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAgB/C,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,IAAI,CAAA;IACT,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACrB;;;+DAG2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,CAAA;IACxB,OAAO,EAAE,eAAe,CAAA;IACxB,wFAAwF;IACxF,KAAK,EAAE,MAAM,CAAA;IACb;;4EAEwE;IACxE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B;AAED,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAgPnF"}
1
+ {"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/inplace/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAc/C,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,IAAI,CAAA;IACT,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACrB;;;;2CAIuC;IACvC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,CAAA;IACxB,OAAO,EAAE,eAAe,CAAA;IACxB,wFAAwF;IACxF,KAAK,EAAE,MAAM,CAAA;IACb;;4EAEwE;IACxE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B;AAuDD,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAqBnF"}
@@ -6,6 +6,12 @@ export type { Tree };
6
6
  * `$…$`) is left literal in those contexts.
7
7
  */
8
8
  export declare function inCodeContext(tree: Tree, pos: number): boolean;
9
+ /**
10
+ * Is `pos` inside a GFM `Table`? Its cell content is owned by the table widget
11
+ * (`tableField` / `renderInline`), so the whole-document passes that emit their
12
+ * own decorations — `embed.ts` — must not also decorate inside it.
13
+ */
14
+ export declare function inTableContext(tree: Tree, pos: number): boolean;
9
15
  /** Does any line spanned by `[from, to]` currently hold part of a selection? */
10
16
  export declare function rangeRevealed(revealed: Set<number>, doc: Text, from: number, to: number): boolean;
11
17
  //# sourceMappingURL=scan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../src/inplace/scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAE7C,YAAY,EAAE,IAAI,EAAE,CAAA;AAIpB;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAQ9D;AAED,gFAAgF;AAChF,wBAAgB,aAAa,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAKjG"}
1
+ {"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../src/inplace/scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAE7C,YAAY,EAAE,IAAI,EAAE,CAAA;AAIpB;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAQ9D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAQ/D;AAED,gFAAgF;AAChF,wBAAgB,aAAa,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAKjG"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Pure geometry for `selection-bar.ts`: where the current selection sits on
3
+ * screen, and where the bar should place itself against it. Split out so the
4
+ * plugin class stays about wiring, not measurement.
5
+ */
6
+ import type { EditorView } from "@codemirror/view";
7
+ import type { ToolbarCommandId } from "../types";
8
+ export interface Box {
9
+ left: number;
10
+ right: number;
11
+ top: number;
12
+ bottom: number;
13
+ }
14
+ export type Placement = null | {
15
+ left: number;
16
+ top: number;
17
+ disabled: Record<string, boolean>;
18
+ active: Record<string, boolean>;
19
+ };
20
+ /** The screen box of the current text selection — editor or table cell. */
21
+ export declare function selectionBox(view: EditorView): {
22
+ box: Box;
23
+ inCell: boolean;
24
+ } | null;
25
+ /**
26
+ * Where the bar should sit against the current selection, or `null` to hide
27
+ * it. `bar` supplies its own size via `getBoundingClientRect()` — `[hidden]`
28
+ * hides visibility only, so this still works while the bar is hidden.
29
+ */
30
+ export declare function measureBarPlacement(view: EditorView, bar: HTMLElement, ids: ToolbarCommandId[]): Placement;
31
+ //# sourceMappingURL=selection-bar-position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-bar-position.d.ts","sourceRoot":"","sources":["../../src/inplace/selection-bar-position.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAMhD,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAqBnF;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,WAAW,EAChB,GAAG,EAAE,gBAAgB,EAAE,GACtB,SAAS,CAsCX"}
@@ -27,8 +27,6 @@ declare class SelectionBar implements PluginValue {
27
27
  * write phase. `key: this` collapses repeats within one cycle.
28
28
  */
29
29
  private schedule;
30
- /** The screen box of the current text selection — editor or table cell. */
31
- private selectionBox;
32
30
  private measure;
33
31
  private apply;
34
32
  destroy(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"selection-bar.d.ts","sourceRoot":"","sources":["../../src/inplace/selection-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAiBjG,cAAM,YAAa,YAAW,WAAW;IAe3B,OAAO,CAAC,IAAI;IAdxB,OAAO,CAAC,GAAG,CAAa;IACxB,OAAO,CAAC,GAAG,CAAoB;IAC/B,OAAO,CAAC,OAAO,CAAiD;IAChE,OAAO,CAAC,QAAQ,CAAa;IAG7B,OAAO,CAAC,QAAQ,CAEf;IAED,OAAO,CAAC,iBAAiB,CAExB;IAED,YAAoB,IAAI,EAAE,UAAU,EAiDnC;IAED,MAAM,CAAC,CAAC,EAAE,UAAU,QAMnB;IAED;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAQhB,2EAA2E;IAC3E,OAAO,CAAC,YAAY;IAwBpB,OAAO,CAAC,OAAO;IAyCf,OAAO,CAAC,KAAK;IAcb,OAAO,SAMN;CACF;AASD,eAAO,MAAM,YAAY,qCAAqC,CAAA"}
1
+ {"version":3,"file":"selection-bar.d.ts","sourceRoot":"","sources":["../../src/inplace/selection-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAWjG,cAAM,YAAa,YAAW,WAAW;IAe3B,OAAO,CAAC,IAAI;IAdxB,OAAO,CAAC,GAAG,CAAa;IACxB,OAAO,CAAC,GAAG,CAAoB;IAC/B,OAAO,CAAC,OAAO,CAAiD;IAChE,OAAO,CAAC,QAAQ,CAAa;IAG7B,OAAO,CAAC,QAAQ,CAEf;IAED,OAAO,CAAC,iBAAiB,CAExB;IAED,YAAoB,IAAI,EAAE,UAAU,EAiDnC;IAED,MAAM,CAAC,CAAC,EAAE,UAAU,QAMnB;IAED;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,KAAK;IAcb,OAAO,SAMN;CACF;AAED,eAAO,MAAM,YAAY,qCAAqC,CAAA"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Pure DOM-selection reading for a table cell — the part of
3
+ * `EditableTableWidget.readCaret` that doesn't need the widget's row/col
4
+ * bookkeeping. Split out of `table-widget.ts`.
5
+ */
6
+ /** The selection's offset (and, if different, its head) within `cell`'s text. */
7
+ export declare function caretInCell(cell: HTMLTableCellElement): {
8
+ offset: number;
9
+ head: number;
10
+ };
11
+ //# sourceMappingURL=table-widget-caret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-widget-caret.d.ts","sourceRoot":"","sources":["../../src/inplace/table-widget-caret.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,IAAI,EAAE,oBAAoB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAOxF"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Pure grid-to-DOM rendering for `EditableTableWidget`: building a cell and
3
+ * rebuilding the whole `<thead>`/`<tbody>` from the grid model. Split out of
4
+ * `table-widget.ts` since this half needs nothing from the widget's editing /
5
+ * focus state — just the current rows, alignments, and the `embeds` flag.
6
+ */
7
+ import type { Align } from "../toolbar/table-grid";
8
+ export interface CellGrid {
9
+ rows: string[][];
10
+ aligns: Align[];
11
+ embeds: boolean;
12
+ }
13
+ /** Draw `cell` from `grid.rows[r][c]` (read off its own `data-r`/`data-c`) —
14
+ * raw text when `raw`, rendered otherwise. */
15
+ export declare function paintCell(cell: HTMLTableCellElement, grid: CellGrid, raw: boolean): void;
16
+ /** Rebuild `table`'s `<thead>` / `<tbody>` from the current grid model. */
17
+ export declare function renderTableCells(table: HTMLTableElement, grid: CellGrid): void;
18
+ //# sourceMappingURL=table-widget-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-widget-render.d.ts","sourceRoot":"","sources":["../../src/inplace/table-widget-render.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAIlD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,EAAE,EAAE,CAAA;IAChB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;CAChB;AAED;+CAC+C;AAC/C,wBAAgB,SAAS,CAAC,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAOxF;AAiBD,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI,CAU9E"}
@@ -22,6 +22,8 @@ export interface ParsedTable {
22
22
  */
23
23
  export declare class EditableTableWidget extends WidgetType {
24
24
  readonly data: ParsedTable;
25
+ /** `embedSource` is set: render `![[ref]]` literally in a cell (no chip). */
26
+ private readonly embeds;
25
27
  private table;
26
28
  private rows;
27
29
  private editing;
@@ -35,7 +37,9 @@ export declare class EditableTableWidget extends WidgetType {
35
37
  * browser synthesises from the same gesture and lands within the window is
36
38
  * swallowed rather than re-opening it. */
37
39
  private longPressAt;
38
- constructor(data: ParsedTable);
40
+ constructor(data: ParsedTable,
41
+ /** `embedSource` is set: render `![[ref]]` literally in a cell (no chip). */
42
+ embeds?: boolean);
39
43
  eq(other: EditableTableWidget): boolean;
40
44
  ignoreEvent(): boolean;
41
45
  private cols;
@@ -49,7 +53,6 @@ export declare class EditableTableWidget extends WidgetType {
49
53
  private coords;
50
54
  /** Draw `cell` from `rows[r][c]` — raw text when `raw`, rendered otherwise. */
51
55
  private paint;
52
- private mkCell;
53
56
  /** Rebuild `<thead>` / `<tbody>` from the current grid model. */
54
57
  private renderCells;
55
58
  private appendRow;
@@ -1 +1 @@
1
- {"version":3,"file":"table-widget.d.ts","sourceRoot":"","sources":["../../src/inplace/table-widget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,KAAK,KAAK,EAAiB,MAAM,uBAAuB,CAAA;AAuBjE,6EAA6E;AAC7E,eAAO,MAAM,eAAe,qDAA+B,CAAA;AAE3D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,IAAI,EAAE,MAAM,EAAE,EAAE,CAAA;IAChB,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,mBAAoB,SAAQ,UAAU;IAerC,QAAQ,CAAC,IAAI,EAAE,WAAW;IAdtC,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,IAAI,CAAY;IACxB,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,OAAO,CAAQ;IACvB,iFAAiF;IACjF,OAAO,CAAC,aAAa,CAAsB;IAC3C,OAAO,CAAC,OAAO,CAAY;IAC3B,OAAO,CAAC,MAAM,CAA2B;IACzC,OAAO,CAAC,SAAS,CAA+B;IAChD;;+CAE2C;IAC3C,OAAO,CAAC,WAAW,CAAI;IAEvB,YAAqB,IAAI,EAAE,WAAW,EAIrC;IAEQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,WAQrC;IAEQ,WAAW,YAEnB;IAED,OAAO,CAAC,IAAI;IAIZ;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAad,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,MAAM;IAId,+EAA+E;IAC/E,OAAO,CAAC,KAAK;IAQb,OAAO,CAAC,MAAM;IAed,iEAAiE;IACjE,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,KAAK;IAIb,iFAAiF;IACjF,OAAO,CAAC,KAAK;IAsBb,wFAAwF;IACxF,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,UAAU;IAQlB,uFAAuF;IACvF,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,UAAU;IAKlB,0CAA0C;IAC1C,OAAO,CAAC,IAAI;IA0BZ,OAAO,CAAC,KAAK;IAuFb;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CASzC;IAED;2BACuB;IACvB,OAAO,CAAC,cAAc;IAetB,KAAK,CAAC,IAAI,EAAE,UAAU,kBA2ErB;IAEQ,OAAO,SAOf;CACF"}
1
+ {"version":3,"file":"table-widget.d.ts","sourceRoot":"","sources":["../../src/inplace/table-widget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,KAAK,KAAK,EAAiB,MAAM,uBAAuB,CAAA;AAuBjE,6EAA6E;AAC7E,eAAO,MAAM,eAAe,qDAA+B,CAAA;AAE3D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,IAAI,EAAE,MAAM,EAAE,EAAE,CAAA;IAChB,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,mBAAoB,SAAQ,UAAU;IAgB/C,QAAQ,CAAC,IAAI,EAAE,WAAW;IAC1B,6EAA6E;IAC7E,OAAO,CAAC,QAAQ,CAAC,MAAM;IAjBzB,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,IAAI,CAAY;IACxB,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,OAAO,CAAQ;IACvB,iFAAiF;IACjF,OAAO,CAAC,aAAa,CAAsB;IAC3C,OAAO,CAAC,OAAO,CAAY;IAC3B,OAAO,CAAC,MAAM,CAA2B;IACzC,OAAO,CAAC,SAAS,CAA+B;IAChD;;+CAE2C;IAC3C,OAAO,CAAC,WAAW,CAAI;IAEvB,YACW,IAAI,EAAE,WAAW;IAC1B,6EAA6E;IAC5D,MAAM,UAAQ,EAKhC;IAEQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,WAQrC;IAEQ,WAAW,YAEnB;IAED,OAAO,CAAC,IAAI;IAIZ;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAad,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,MAAM;IAId,+EAA+E;IAC/E,OAAO,CAAC,KAAK;IAIb,iEAAiE;IACjE,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,KAAK;IAIb,iFAAiF;IACjF,OAAO,CAAC,KAAK;IAsBb,wFAAwF;IACxF,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,UAAU;IAQlB,uFAAuF;IACvF,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,UAAU;IAKlB,0CAA0C;IAC1C,OAAO,CAAC,IAAI;IA0BZ,OAAO,CAAC,KAAK;IAuFb;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CASzC;IAED;2BACuB;IACvB,OAAO,CAAC,cAAc;IAetB,KAAK,CAAC,IAAI,EAAE,UAAU,kBA2ErB;IAEQ,OAAO,SAOf;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/inplace/tables.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,UAAU,EAAa,MAAM,mBAAmB,CAAA;AACvF,OAAO,EAAc,KAAK,aAAa,EAA0B,MAAM,kBAAkB,CAAA;AAqHzF;;;GAGG;AACH,eAAO,MAAM,UAAU,2BAuBrB,CAAA"}
1
+ {"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/inplace/tables.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,UAAU,EAAa,MAAM,mBAAmB,CAAA;AACvF,OAAO,EAAc,KAAK,aAAa,EAA0B,MAAM,kBAAkB,CAAA;AA2HzF;;;GAGG;AACH,eAAO,MAAM,UAAU,2BAuBrB,CAAA"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Callout blockquotes (`> [!note]`). Split out of `theme-canvas.ts`, which
3
+ * keeps the plain `.cm-inplace-quote` styling next to it.
4
+ */
5
+ export declare const calloutTheme: {
6
+ ".cm-inplace-callout": {
7
+ borderLeft: string;
8
+ padding: string;
9
+ background: string;
10
+ color: string;
11
+ };
12
+ ".cm-inplace-callout-head": {
13
+ paddingTop: string;
14
+ borderTopRightRadius: string;
15
+ };
16
+ ".cm-inplace-callout-foot": {
17
+ paddingBottom: string;
18
+ borderBottomRightRadius: string;
19
+ };
20
+ ".cm-inplace-callout-note": {
21
+ "--stylo-callout-accent": string;
22
+ };
23
+ ".cm-inplace-callout-tip": {
24
+ "--stylo-callout-accent": string;
25
+ };
26
+ ".cm-inplace-callout-warn": {
27
+ "--stylo-callout-accent": string;
28
+ };
29
+ ".cm-inplace-callout-danger": {
30
+ "--stylo-callout-accent": string;
31
+ };
32
+ ".cm-inplace-callout-example": {
33
+ "--stylo-callout-accent": string;
34
+ };
35
+ ".cm-inplace-callout-head::before": {
36
+ content: string;
37
+ display: string;
38
+ marginBottom: string;
39
+ fontSize: string;
40
+ fontWeight: string;
41
+ textTransform: string;
42
+ letterSpacing: string;
43
+ color: string;
44
+ };
45
+ ".cm-inplace-callout-head[data-revealed]::before": {
46
+ content: string;
47
+ display: string;
48
+ };
49
+ };
50
+ //# sourceMappingURL=theme-callout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-callout.d.ts","sourceRoot":"","sources":["../../src/inplace/theme-callout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY;IAIvB,qBAAqB;QACnB,UAAU;QACV,OAAO;QACP,UAAU;QAEV,KAAK;;IAMP,0BAA0B;QACxB,UAAU;QACV,oBAAoB;;IAEtB,0BAA0B;QACxB,aAAa;QACb,uBAAuB;;IAEzB,0BAA0B;QAAI,wBAAwB;;IACtD,yBAAyB;QAAI,wBAAwB;;IACrD,0BAA0B;QAAI,wBAAwB;;IACtD,4BAA4B;QAC1B,wBAAwB;;IAE1B,6BAA6B;QAC3B,wBAAwB;;IAE1B,kCAAkC;QAChC,OAAO;QACP,OAAO;QACP,YAAY;QACZ,QAAQ;QACR,UAAU;QACV,aAAa;QACb,aAAa;QACb,KAAK;;IAGP,iDAAiD;QAAI,OAAO;QAAQ,OAAO;;CAC5E,CAAA"}
@@ -0,0 +1,166 @@
1
+ /**
2
+ * The prose display styling for the in-place canvas proper: base typography,
3
+ * headings, inline marks, code, links, math, embeds, rules, plain
4
+ * blockquotes, lists, and frontmatter. Callout blockquotes are their own file
5
+ * (`theme-callout.ts`). Split out of `theme.ts`, which spreads this together
6
+ * with the callout / table / menu / popup sections into one `EditorView.theme`
7
+ * call.
8
+ */
9
+ export declare const canvasTheme: {
10
+ "& .cm-content": {
11
+ fontFamily: string;
12
+ lineHeight: string;
13
+ padding: string;
14
+ WebkitTouchCallout: string;
15
+ };
16
+ "& .cm-line": {
17
+ paddingLeft: string;
18
+ paddingRight: string;
19
+ };
20
+ ".cm-inplace-heading": {
21
+ fontWeight: string;
22
+ };
23
+ ".cm-inplace-h1": {
24
+ fontSize: string;
25
+ lineHeight: string;
26
+ paddingTop: string;
27
+ };
28
+ ".cm-inplace-h2": {
29
+ fontSize: string;
30
+ lineHeight: string;
31
+ paddingTop: string;
32
+ };
33
+ ".cm-inplace-h3": {
34
+ fontSize: string;
35
+ lineHeight: string;
36
+ paddingTop: string;
37
+ };
38
+ ".cm-inplace-h4": {
39
+ fontSize: string;
40
+ lineHeight: string;
41
+ paddingTop: string;
42
+ };
43
+ ".cm-inplace-h5": {
44
+ fontSize: string;
45
+ };
46
+ ".cm-inplace-h6": {
47
+ fontSize: string;
48
+ color: string;
49
+ };
50
+ ".cm-inplace-strong": {
51
+ fontWeight: string;
52
+ };
53
+ ".cm-inplace-em": {
54
+ fontStyle: string;
55
+ };
56
+ ".cm-inplace-strike": {
57
+ textDecoration: string;
58
+ };
59
+ ".cm-inplace-code": {
60
+ fontFamily: string;
61
+ fontSize: string;
62
+ padding: string;
63
+ borderRadius: string;
64
+ background: string;
65
+ };
66
+ ".cm-inplace-mono": {
67
+ fontFamily: string;
68
+ fontSize: string;
69
+ background: string;
70
+ padding: string;
71
+ };
72
+ ".cm-inplace-code-top": {
73
+ paddingTop: string;
74
+ borderTopLeftRadius: string;
75
+ borderTopRightRadius: string;
76
+ };
77
+ ".cm-inplace-code-bottom": {
78
+ paddingBottom: string;
79
+ borderBottomLeftRadius: string;
80
+ borderBottomRightRadius: string;
81
+ };
82
+ ".cm-inplace-fence": {
83
+ color: string;
84
+ };
85
+ ".cm-inplace-code-pad": {
86
+ fontSize: string;
87
+ lineHeight: string;
88
+ };
89
+ ".cm-inplace-link": {
90
+ color: string;
91
+ textDecoration: string;
92
+ cursor: string;
93
+ };
94
+ ".cm-inplace-wikilink": {
95
+ color: string;
96
+ };
97
+ ".cm-inplace-math-block": {
98
+ display: string;
99
+ padding: string;
100
+ textAlign: string;
101
+ };
102
+ ".cm-inplace-math-block .katex-display": {
103
+ margin: string;
104
+ };
105
+ ".cm-inplace-embed": {
106
+ display: string;
107
+ margin: string;
108
+ };
109
+ ".cm-inplace-embed .stylo-embed-content": {
110
+ borderLeft: string;
111
+ paddingLeft: string;
112
+ };
113
+ ".cm-inplace-embed-inline": {
114
+ display: string;
115
+ };
116
+ ".cm-inplace-hr-line": {
117
+ fontSize: string;
118
+ lineHeight: string;
119
+ };
120
+ ".cm-inplace-setext-rule": {
121
+ fontSize: string;
122
+ lineHeight: string;
123
+ };
124
+ ".cm-inplace-hr": {
125
+ display: string;
126
+ height: string;
127
+ margin: string;
128
+ border: string;
129
+ background: string;
130
+ };
131
+ ".cm-inplace-quote": {
132
+ borderLeft: string;
133
+ paddingLeft: string;
134
+ color: string;
135
+ };
136
+ ".cm-inplace-bullet": {
137
+ color: string;
138
+ };
139
+ ".cm-inplace-li": {
140
+ backgroundImage: string;
141
+ backgroundRepeat: string;
142
+ backgroundPosition: string;
143
+ backgroundSize: string;
144
+ };
145
+ ".cm-inplace-checkbox": {
146
+ margin: string;
147
+ verticalAlign: string;
148
+ cursor: string;
149
+ };
150
+ ".cm-inplace-fm": {
151
+ fontFamily: string;
152
+ fontSize: string;
153
+ color: string;
154
+ };
155
+ ".cm-inplace-fm-first::before": {
156
+ content: string;
157
+ marginRight: string;
158
+ fontFamily: string;
159
+ fontSize: string;
160
+ fontWeight: string;
161
+ textTransform: string;
162
+ letterSpacing: string;
163
+ color: string;
164
+ };
165
+ };
166
+ //# sourceMappingURL=theme-canvas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-canvas.d.ts","sourceRoot":"","sources":["../../src/inplace/theme-canvas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,WAAW;;;;;;;;QAkBN,WAAW;QAAO,YAAY;;;QAErB,UAAU;;;QACf,QAAQ;QAAY,UAAU;QAAe,UAAU;;;QACvD,QAAQ;QAAW,UAAU;QAAe,UAAU;;;QACtD,QAAQ;QAAY,UAAU;QAAS,UAAU;;;QACjD,QAAQ;QAAS,UAAU;QAAS,UAAU;;;QAC9C,QAAQ;;;QACR,QAAQ;QAAW,KAAK;;;QAEpB,UAAU;;;QACd,SAAS;;;QACL,cAAc;;;;;;;;;;;;;;;;QA0BpC,UAAU;QACV,mBAAmB;QACnB,oBAAoB;;;QAGpB,aAAa;QACb,sBAAsB;QACtB,uBAAuB;;;QAEF,KAAK;;;QAEF,QAAQ;QAAO,UAAU;;;QAIjD,KAAK;QACL,cAAc;QACd,MAAM;;;QAEkB,KAAK;;;QAG7B,OAAO;QACP,OAAO;QACP,SAAS;;;QAEgC,MAAM;;;QAM/C,OAAO;QACP,MAAM;;;QAGN,UAAU;QACV,WAAW;;;QAIiB,OAAO;;;QAKZ,QAAQ;QAAO,UAAU;;;QAGrB,QAAQ;QAAO,UAAU;;;QAEpD,OAAO;QAKP,MAAM;QACN,MAAM;QACN,MAAM;QAEN,UAAU;;;QAIV,UAAU;QAEV,WAAW;QACX,KAAK;;;QAGiB,KAAK;;;QAK3B,eAAe;QAEf,gBAAgB;QAChB,kBAAkB;QAClB,cAAc;;;QAGd,MAAM;QACN,aAAa;QACb,MAAM;;;;;;;;;;;;;;;;;CAiBT,CAAA"}
@@ -0,0 +1,4 @@
1
+ /** Font-family tokens shared by every `theme-*.ts` file. */
2
+ export declare const MONO = "var(--stylo-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)";
3
+ export declare const SANS = "var(--stylo-font-family, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif)";
4
+ //# sourceMappingURL=theme-fonts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-fonts.d.ts","sourceRoot":"","sources":["../../src/inplace/theme-fonts.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAE5D,eAAO,MAAM,IAAI,4FAC0E,CAAA;AAE3F,eAAO,MAAM,IAAI,oHACgG,CAAA"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Right-click menu (`menu-plugin.ts` / `context-menu.ts`) — also the editable
3
+ * table's structural menu (`table-gizmos.ts`), same shell. Split out of
4
+ * `theme.ts`.
5
+ */
6
+ export declare const menuTheme: {
7
+ ".cm-inplace-menu": {
8
+ position: string;
9
+ inset: string;
10
+ zIndex: string;
11
+ pointerEvents: string;
12
+ };
13
+ ".cm-inplace-menu-panel": {
14
+ position: string;
15
+ minWidth: string;
16
+ padding: string;
17
+ display: string;
18
+ flexDirection: string;
19
+ pointerEvents: string;
20
+ background: string;
21
+ border: string;
22
+ borderRadius: string;
23
+ boxShadow: string;
24
+ font: string;
25
+ };
26
+ ".cm-inplace-menu-sep": {
27
+ height: string;
28
+ margin: string;
29
+ background: string;
30
+ };
31
+ ".cm-inplace-menu-item": {
32
+ all: string;
33
+ display: string;
34
+ alignItems: string;
35
+ gap: string;
36
+ padding: string;
37
+ borderRadius: string;
38
+ fontSize: string;
39
+ cursor: string;
40
+ whiteSpace: string;
41
+ };
42
+ ".cm-inplace-menu-item svg": {
43
+ width: string;
44
+ height: string;
45
+ flex: string;
46
+ color: string;
47
+ };
48
+ ".cm-inplace-menu-item:hover:not(:disabled)": {
49
+ background: string;
50
+ };
51
+ ".cm-inplace-menu-item:disabled": {
52
+ opacity: string;
53
+ cursor: string;
54
+ };
55
+ ".cm-inplace-menu-item[data-active]": {
56
+ color: string;
57
+ fontWeight: string;
58
+ };
59
+ ".cm-inplace-menu-item[data-active] svg": {
60
+ color: string;
61
+ };
62
+ ".cm-inplace-menu-parent::after": {
63
+ content: string;
64
+ marginLeft: string;
65
+ paddingLeft: string;
66
+ };
67
+ ".cm-inplace-menu-input": {
68
+ display: string;
69
+ boxSizing: string;
70
+ width: string;
71
+ maxWidth: string;
72
+ margin: string;
73
+ padding: string;
74
+ border: string;
75
+ borderRadius: string;
76
+ fontSize: string;
77
+ fontFamily: string;
78
+ lineHeight: string;
79
+ color: string;
80
+ background: string;
81
+ outline: string;
82
+ };
83
+ ".cm-inplace-menu-input:focus": {
84
+ borderColor: string;
85
+ };
86
+ };
87
+ //# sourceMappingURL=theme-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-menu.d.ts","sourceRoot":"","sources":["../../src/inplace/theme-menu.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,SAAS;IAGpB,kBAAkB;QAChB,QAAQ;QACR,KAAK;QACL,MAAM;QACN,aAAa;;IAEf,wBAAwB;QACtB,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,OAAO;QACP,aAAa;QACb,aAAa;QACb,UAAU;QACV,MAAM;QACN,YAAY;QACZ,SAAS;QACT,IAAI;;IAEN,sBAAsB;QACpB,MAAM;QACN,MAAM;QACN,UAAU;;IAEZ,uBAAuB;QACrB,GAAG;QACH,OAAO;QACP,UAAU;QACV,GAAG;QACH,OAAO;QACP,YAAY;QACZ,QAAQ;QACR,MAAM;QACN,UAAU;;IAEZ,2BAA2B;QACzB,KAAK;QACL,MAAM;QACN,IAAI;QACJ,KAAK;;IAEP,4CAA4C;QAC1C,UAAU;;IAEZ,gCAAgC;QAAI,OAAO;QAAS,MAAM;;IAI1D,oCAAoC;QAAI,KAAK;QAAyB,UAAU;;IAChF,wCAAwC;QAAI,KAAK;;IACjD,gCAAgC;QAC9B,OAAO;QACP,UAAU;QACV,WAAW;;IAEb,wBAAwB;QACtB,OAAO;QACP,SAAS;QACT,KAAK;QACL,QAAQ;QACR,MAAM;QACN,OAAO;QACP,MAAM;QACN,YAAY;QACZ,QAAQ;QACR,UAAU;QACV,UAAU;QACV,KAAK;QACL,UAAU;QACV,OAAO;;IAET,8BAA8B;QAAI,WAAW;;CAC9C,CAAA"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * The selection bar (`selection-bar.ts`), its touch-target growth alongside
3
+ * the right-click menu's, and the link / wikilink / math hover bubble
4
+ * (`link-hover.ts`, `math-edit.ts`). Split out of `theme.ts`.
5
+ */
6
+ export declare const popupsTheme: {
7
+ ".cm-inplace-selbar": {
8
+ position: string;
9
+ zIndex: string;
10
+ display: string;
11
+ gap: string;
12
+ padding: string;
13
+ background: string;
14
+ border: string;
15
+ borderRadius: string;
16
+ boxShadow: string;
17
+ };
18
+ ".cm-inplace-selbar[hidden]": {
19
+ visibility: string;
20
+ pointerEvents: string;
21
+ };
22
+ ".cm-inplace-selbar-btn": {
23
+ all: string;
24
+ display: string;
25
+ padding: string;
26
+ borderRadius: string;
27
+ cursor: string;
28
+ color: string;
29
+ };
30
+ ".cm-inplace-selbar-btn svg": {
31
+ width: string;
32
+ height: string;
33
+ display: string;
34
+ };
35
+ ".cm-inplace-selbar-btn:hover": {
36
+ background: string;
37
+ color: string;
38
+ };
39
+ ".cm-inplace-selbar-btn[data-active]": {
40
+ color: string;
41
+ background: string;
42
+ };
43
+ "@media (pointer: coarse)": {
44
+ ".cm-inplace-menu-panel": {
45
+ minWidth: string;
46
+ padding: string;
47
+ };
48
+ ".cm-inplace-menu-item": {
49
+ padding: string;
50
+ fontSize: string;
51
+ };
52
+ ".cm-inplace-menu-item svg": {
53
+ width: string;
54
+ height: string;
55
+ };
56
+ ".cm-inplace-menu-sep": {
57
+ margin: string;
58
+ };
59
+ ".cm-inplace-menu-input": {
60
+ padding: string;
61
+ fontSize: string;
62
+ };
63
+ ".cm-inplace-selbar": {
64
+ gap: string;
65
+ padding: string;
66
+ };
67
+ ".cm-inplace-selbar-btn": {
68
+ padding: string;
69
+ minWidth: string;
70
+ justifyContent: string;
71
+ };
72
+ ".cm-inplace-selbar-btn svg": {
73
+ width: string;
74
+ height: string;
75
+ };
76
+ };
77
+ ".cm-tooltip.cm-tooltip-hover:has(.cm-inplace-href-tip)": {
78
+ border: string;
79
+ background: string;
80
+ };
81
+ ".cm-inplace-href-tip": {
82
+ maxWidth: string;
83
+ padding: string;
84
+ borderRadius: string;
85
+ background: string;
86
+ border: string;
87
+ boxShadow: string;
88
+ color: string;
89
+ fontSize: string;
90
+ lineHeight: string;
91
+ wordBreak: string;
92
+ };
93
+ };
94
+ //# sourceMappingURL=theme-popups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-popups.d.ts","sourceRoot":"","sources":["../../src/inplace/theme-popups.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW;IAItB,oBAAoB;QAClB,QAAQ;QACR,MAAM;QACN,OAAO;QACP,GAAG;QACH,OAAO;QACP,UAAU;QACV,MAAM;QACN,YAAY;QACZ,SAAS;;IAEX,4BAA4B;QAAI,UAAU;QAAY,aAAa;;IACnE,wBAAwB;QACtB,GAAG;QACH,OAAO;QACP,OAAO;QACP,YAAY;QACZ,MAAM;QACN,KAAK;;IAEP,4BAA4B;QAAI,KAAK;QAAY,MAAM;QAAY,OAAO;;IAC1E,8BAA8B;QAC5B,UAAU;QACV,KAAK;;IAEP,qCAAqC;QACnC,KAAK;QACL,UAAU;;IASZ,0BAA0B;QACxB,wBAAwB;YAAI,QAAQ;YAAU,OAAO;;QACrD,uBAAuB;YAAI,OAAO;YAAgB,QAAQ;;QAC1D,2BAA2B;YAAI,KAAK;YAAY,MAAM;;QACtD,sBAAsB;YAAI,MAAM;;QAChC,wBAAwB;YAAI,OAAO;YAAgB,QAAQ;;QAC3D,oBAAoB;YAAI,GAAG;YAAY,OAAO;;QAC9C,wBAAwB;YAAI,OAAO;YAAY,QAAQ;YAAU,cAAc;;QAC/E,4BAA4B;YAAI,KAAK;YAAY,MAAM;;;IAKzD,wDAAwD;QACtD,MAAM;QACN,UAAU;;IAEZ,sBAAsB;QACpB,QAAQ;QACR,OAAO;QACP,YAAY;QACZ,UAAU;QACV,MAAM;QACN,SAAS;QACT,KAAK;QACL,QAAQ;QACR,UAAU;QACV,SAAS;;CAEZ,CAAA"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Editable-table affordances: the edge `+` strips that add a row / column on
3
+ * hover (`table-gizmos.ts`). Split out of `theme.ts`.
4
+ */
5
+ export declare const tableGizmosTheme: {
6
+ ".cm-inplace-table-wrap": {
7
+ position: string;
8
+ display: string;
9
+ maxWidth: string;
10
+ padding: string;
11
+ };
12
+ ".cm-inplace-table-gizmos": {
13
+ position: string;
14
+ inset: string;
15
+ pointerEvents: string;
16
+ };
17
+ ".cm-inplace-tg-edge": {
18
+ position: string;
19
+ display: string;
20
+ alignItems: string;
21
+ justifyContent: string;
22
+ pointerEvents: string;
23
+ padding: string;
24
+ font: string;
25
+ border: string;
26
+ background: string;
27
+ cursor: string;
28
+ opacity: string;
29
+ transition: string;
30
+ };
31
+ ".cm-inplace-tg-edge:hover": {
32
+ opacity: string;
33
+ background: string;
34
+ };
35
+ ".cm-inplace-tg-addcol": {
36
+ width: string;
37
+ };
38
+ ".cm-inplace-tg-addrow": {
39
+ height: string;
40
+ };
41
+ ".cm-inplace-tg-plus": {
42
+ width: string;
43
+ height: string;
44
+ color: string;
45
+ background: string;
46
+ pointerEvents: string;
47
+ };
48
+ ".cm-inplace-tg-edge:hover .cm-inplace-tg-plus": {
49
+ color: string;
50
+ };
51
+ "@media (hover: none)": {
52
+ ".cm-inplace-tg-edge": {
53
+ opacity: string;
54
+ };
55
+ };
56
+ };
57
+ //# sourceMappingURL=theme-table-gizmos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-table-gizmos.d.ts","sourceRoot":"","sources":["../../src/inplace/theme-table-gizmos.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,gBAAgB;IAC3B,wBAAwB;QACtB,QAAQ;QACR,OAAO;QACP,QAAQ;QAMR,OAAO;;IAET,0BAA0B;QACxB,QAAQ;QACR,KAAK;QACL,aAAa;;IAMf,qBAAqB;QACnB,QAAQ;QACR,OAAO;QACP,UAAU;QACV,cAAc;QACd,aAAa;QACb,OAAO;QACP,IAAI;QACJ,MAAM;QACN,UAAU;QACV,MAAM;QACN,OAAO;QACP,UAAU;;IAEZ,2BAA2B;QACzB,OAAO;QACP,UAAU;;IAEZ,uBAAuB;QAAI,KAAK;;IAChC,uBAAuB;QAAI,MAAM;;IAKjC,qBAAqB;QACnB,KAAK;QACL,MAAM;QACN,KAAK;QACL,UAAU;QAGV,aAAa;;IAEf,+CAA+C;QAAI,KAAK;;IAGxD,sBAAsB;QACpB,qBAAqB;YAAI,OAAO;;;CAEnC,CAAA"}