@pinkpixel/marzipan 1.0.5 → 1.0.7

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 (220) hide show
  1. package/dist/_basePickBy-BXyyc71p.js +152 -0
  2. package/dist/_basePickBy-BXyyc71p.js.map +1 -0
  3. package/dist/_baseUniq-Dde5pUWM.js +615 -0
  4. package/dist/_baseUniq-Dde5pUWM.js.map +1 -0
  5. package/dist/actions/core/detection.d.ts +11 -0
  6. package/dist/actions/core/detection.d.ts.map +1 -0
  7. package/dist/actions/core/detection.js +142 -0
  8. package/dist/actions/core/detection.js.map +1 -0
  9. package/dist/actions/core/formats.d.ts +5 -0
  10. package/dist/actions/core/formats.d.ts.map +1 -0
  11. package/dist/actions/core/formats.js +75 -0
  12. package/dist/actions/core/formats.js.map +1 -0
  13. package/dist/actions/core/insertion.d.ts +5 -0
  14. package/dist/actions/core/insertion.d.ts.map +1 -0
  15. package/dist/actions/core/insertion.js +116 -0
  16. package/dist/actions/core/insertion.js.map +1 -0
  17. package/dist/actions/core/selection.d.ts +13 -0
  18. package/dist/actions/core/selection.d.ts.map +1 -0
  19. package/dist/actions/core/selection.js +137 -0
  20. package/dist/actions/core/selection.js.map +1 -0
  21. package/dist/actions/debug.d.ts +10 -0
  22. package/dist/actions/debug.d.ts.map +1 -0
  23. package/dist/actions/debug.js +39 -0
  24. package/dist/actions/debug.js.map +1 -0
  25. package/dist/actions/index.d.ts +48 -0
  26. package/dist/actions/index.d.ts.map +1 -0
  27. package/dist/actions/index.js +237 -0
  28. package/dist/actions/index.js.map +1 -0
  29. package/dist/actions/operations/block.d.ts +5 -0
  30. package/dist/actions/operations/block.d.ts.map +1 -0
  31. package/dist/actions/operations/block.js +120 -0
  32. package/dist/actions/operations/block.js.map +1 -0
  33. package/dist/actions/operations/list.d.ts +4 -0
  34. package/dist/actions/operations/list.d.ts.map +1 -0
  35. package/dist/actions/operations/list.js +151 -0
  36. package/dist/actions/operations/list.js.map +1 -0
  37. package/dist/actions/types.d.ts +43 -0
  38. package/dist/actions/types.d.ts.map +1 -0
  39. package/dist/actions/types.js +2 -0
  40. package/dist/actions/types.js.map +1 -0
  41. package/dist/arc-CfMWIGxd.js +84 -0
  42. package/dist/arc-CfMWIGxd.js.map +1 -0
  43. package/dist/architectureDiagram-VXUJARFQ-Bb4i7x-6.js +4663 -0
  44. package/dist/architectureDiagram-VXUJARFQ-Bb4i7x-6.js.map +1 -0
  45. package/dist/blockDiagram-VD42YOAC-ldSoJhgA.js +2262 -0
  46. package/dist/blockDiagram-VD42YOAC-ldSoJhgA.js.map +1 -0
  47. package/dist/c4Diagram-YG6GDRKO-D-ENeA7h.js +1581 -0
  48. package/dist/c4Diagram-YG6GDRKO-D-ENeA7h.js.map +1 -0
  49. package/dist/channel-BCTxewZI.js +6 -0
  50. package/dist/channel-BCTxewZI.js.map +1 -0
  51. package/dist/chunk-4BX2VUAB-Cfh_4i4X.js +9 -0
  52. package/dist/chunk-4BX2VUAB-Cfh_4i4X.js.map +1 -0
  53. package/dist/chunk-55IACEB6-DNOIVRvW.js +9 -0
  54. package/dist/chunk-55IACEB6-DNOIVRvW.js.map +1 -0
  55. package/dist/chunk-B4BG7PRW-C_qWbbk6.js +1376 -0
  56. package/dist/chunk-B4BG7PRW-C_qWbbk6.js.map +1 -0
  57. package/dist/chunk-DI55MBZ5-D_yXJA03.js +1371 -0
  58. package/dist/chunk-DI55MBZ5-D_yXJA03.js.map +1 -0
  59. package/dist/chunk-FMBD7UC4-B9NJjOBf.js +20 -0
  60. package/dist/chunk-FMBD7UC4-B9NJjOBf.js.map +1 -0
  61. package/dist/chunk-QN33PNHL-CVrLUVsI.js +20 -0
  62. package/dist/chunk-QN33PNHL-CVrLUVsI.js.map +1 -0
  63. package/dist/chunk-QZHKN3VN-FvAf_VJR.js +16 -0
  64. package/dist/chunk-QZHKN3VN-FvAf_VJR.js.map +1 -0
  65. package/dist/chunk-TZMSLE5B-DxYTPD3t.js +65 -0
  66. package/dist/chunk-TZMSLE5B-DxYTPD3t.js.map +1 -0
  67. package/dist/classDiagram-2ON5EDUG-Cg641kit.js +17 -0
  68. package/dist/classDiagram-2ON5EDUG-Cg641kit.js.map +1 -0
  69. package/dist/classDiagram-v2-WZHVMYZB-Cg641kit.js +17 -0
  70. package/dist/classDiagram-v2-WZHVMYZB-Cg641kit.js.map +1 -0
  71. package/dist/clone-D062_nJ-.js +9 -0
  72. package/dist/clone-D062_nJ-.js.map +1 -0
  73. package/dist/cose-bilkent-S5V4N54A-DIb5rck_.js +2609 -0
  74. package/dist/cose-bilkent-S5V4N54A-DIb5rck_.js.map +1 -0
  75. package/dist/cytoscape.esm-DfdJODL8.js +18736 -0
  76. package/dist/cytoscape.esm-DfdJODL8.js.map +1 -0
  77. package/dist/dagre-6UL2VRFP-CZKadRq9.js +445 -0
  78. package/dist/dagre-6UL2VRFP-CZKadRq9.js.map +1 -0
  79. package/dist/defaultLocale-D7EN2tov.js +172 -0
  80. package/dist/defaultLocale-D7EN2tov.js.map +1 -0
  81. package/dist/diagram-PSM6KHXK-VDtnZynV.js +532 -0
  82. package/dist/diagram-PSM6KHXK-VDtnZynV.js.map +1 -0
  83. package/dist/diagram-QEK2KX5R-DxjNZqZ_.js +218 -0
  84. package/dist/diagram-QEK2KX5R-DxjNZqZ_.js.map +1 -0
  85. package/dist/diagram-S2PKOQOG-CCX3j4vi.js +143 -0
  86. package/dist/diagram-S2PKOQOG-CCX3j4vi.js.map +1 -0
  87. package/dist/erDiagram-Q2GNP2WA-nwmrf6lJ.js +842 -0
  88. package/dist/erDiagram-Q2GNP2WA-nwmrf6lJ.js.map +1 -0
  89. package/dist/flowDiagram-NV44I4VS-DQEdMlRX.js +1621 -0
  90. package/dist/flowDiagram-NV44I4VS-DQEdMlRX.js.map +1 -0
  91. package/dist/ganttDiagram-LVOFAZNH-WMiy-Gep.js +2506 -0
  92. package/dist/ganttDiagram-LVOFAZNH-WMiy-Gep.js.map +1 -0
  93. package/dist/gitGraphDiagram-NY62KEGX-BgmbSTgN.js +700 -0
  94. package/dist/gitGraphDiagram-NY62KEGX-BgmbSTgN.js.map +1 -0
  95. package/dist/graph-CSVEP8oS.js +248 -0
  96. package/dist/graph-CSVEP8oS.js.map +1 -0
  97. package/dist/icons.d.ts +17 -0
  98. package/dist/icons.d.ts.map +1 -0
  99. package/dist/icons.js +67 -0
  100. package/dist/icons.js.map +1 -0
  101. package/dist/index.d.ts +143 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +1 -1
  104. package/dist/index.js.map +1 -1
  105. package/dist/infoDiagram-F6ZHWCRC-BzTgHHGF.js +25 -0
  106. package/dist/infoDiagram-F6ZHWCRC-BzTgHHGF.js.map +1 -0
  107. package/dist/init-DjUOC4st.js +17 -0
  108. package/dist/init-DjUOC4st.js.map +1 -0
  109. package/dist/journeyDiagram-XKPGCS4Q-B5P7hkT-.js +835 -0
  110. package/dist/journeyDiagram-XKPGCS4Q-B5P7hkT-.js.map +1 -0
  111. package/dist/kanban-definition-3W4ZIXB7-CLtnd0xR.js +720 -0
  112. package/dist/kanban-definition-3W4ZIXB7-CLtnd0xR.js.map +1 -0
  113. package/dist/katex-CmGeg_OO.js +11693 -0
  114. package/dist/katex-CmGeg_OO.js.map +1 -0
  115. package/dist/layout-CdTiJocX.js +1325 -0
  116. package/dist/layout-CdTiJocX.js.map +1 -0
  117. package/dist/linear-BhblBDrV.js +260 -0
  118. package/dist/linear-BhblBDrV.js.map +1 -0
  119. package/dist/link-tooltip.d.ts +27 -0
  120. package/dist/link-tooltip.d.ts.map +1 -0
  121. package/dist/link-tooltip.js +224 -0
  122. package/dist/link-tooltip.js.map +1 -0
  123. package/dist/marzipan.d.ts +472 -0
  124. package/dist/marzipan.d.ts.map +1 -0
  125. package/dist/marzipan.js +1185 -0
  126. package/dist/marzipan.js.map +1 -0
  127. package/dist/mermaid.core-DENutRS8.js +15249 -0
  128. package/dist/mermaid.core-DENutRS8.js.map +1 -0
  129. package/dist/mindmap-definition-VGOIOE7T-BXBE9eta.js +785 -0
  130. package/dist/mindmap-definition-VGOIOE7T-BXBE9eta.js.map +1 -0
  131. package/dist/ordinal-DfAQgscy.js +62 -0
  132. package/dist/ordinal-DfAQgscy.js.map +1 -0
  133. package/dist/parser.d.ts +234 -0
  134. package/dist/parser.d.ts.map +1 -0
  135. package/dist/parser.js +886 -0
  136. package/dist/parser.js.map +1 -0
  137. package/dist/pieDiagram-ADFJNKIX-BND3UUQ-.js +162 -0
  138. package/dist/pieDiagram-ADFJNKIX-BND3UUQ-.js.map +1 -0
  139. package/dist/plugins/accentSwatchPlugin.d.ts +15 -0
  140. package/dist/plugins/accentSwatchPlugin.d.ts.map +1 -0
  141. package/dist/plugins/accentSwatchPlugin.js +142 -0
  142. package/dist/plugins/accentSwatchPlugin.js.map +1 -0
  143. package/dist/plugins/imageManagerPlugin.d.ts +16 -0
  144. package/dist/plugins/imageManagerPlugin.d.ts.map +1 -0
  145. package/dist/plugins/imageManagerPlugin.js +161 -0
  146. package/dist/plugins/imageManagerPlugin.js.map +1 -0
  147. package/dist/plugins/imagePicker.d.ts +7 -0
  148. package/dist/plugins/imagePicker.d.ts.map +1 -0
  149. package/dist/plugins/imagePicker.js +33 -0
  150. package/dist/plugins/imagePicker.js.map +1 -0
  151. package/dist/plugins/imagePickerPlugin.d.ts +3 -0
  152. package/dist/plugins/imagePickerPlugin.d.ts.map +1 -0
  153. package/dist/plugins/imagePickerPlugin.js +12 -0
  154. package/dist/plugins/imagePickerPlugin.js.map +1 -0
  155. package/dist/plugins/mermaidExternal.d.ts +2 -0
  156. package/dist/plugins/mermaidExternal.d.ts.map +1 -0
  157. package/dist/plugins/mermaidExternal.js +44 -0
  158. package/dist/plugins/mermaidExternal.js.map +1 -0
  159. package/dist/plugins/mermaidPlugin.d.ts +2 -0
  160. package/dist/plugins/mermaidPlugin.d.ts.map +1 -0
  161. package/dist/plugins/mermaidPlugin.js +25 -0
  162. package/dist/plugins/mermaidPlugin.js.map +1 -0
  163. package/dist/plugins/tableGenerator.d.ts +2 -0
  164. package/dist/plugins/tableGenerator.d.ts.map +1 -0
  165. package/dist/plugins/tableGenerator.js +24 -0
  166. package/dist/plugins/tableGenerator.js.map +1 -0
  167. package/dist/plugins/tableGridPlugin.d.ts +14 -0
  168. package/dist/plugins/tableGridPlugin.d.ts.map +1 -0
  169. package/dist/plugins/tableGridPlugin.js +77 -0
  170. package/dist/plugins/tableGridPlugin.js.map +1 -0
  171. package/dist/plugins/tablePlugin.d.ts +2 -0
  172. package/dist/plugins/tablePlugin.d.ts.map +1 -0
  173. package/dist/plugins/tablePlugin.js +26 -0
  174. package/dist/plugins/tablePlugin.js.map +1 -0
  175. package/dist/plugins/tinyHighlight.d.ts +10 -0
  176. package/dist/plugins/tinyHighlight.d.ts.map +1 -0
  177. package/dist/plugins/tinyHighlight.js +109 -0
  178. package/dist/plugins/tinyHighlight.js.map +1 -0
  179. package/dist/plugins/utils/table.d.ts +3 -0
  180. package/dist/plugins/utils/table.d.ts.map +1 -0
  181. package/dist/plugins/utils/table.js +25 -0
  182. package/dist/plugins/utils/table.js.map +1 -0
  183. package/dist/quadrantDiagram-AYHSOK5B-CnLHbrEF.js +1023 -0
  184. package/dist/quadrantDiagram-AYHSOK5B-CnLHbrEF.js.map +1 -0
  185. package/dist/requirementDiagram-UZGBJVZJ-caC7K17a.js +851 -0
  186. package/dist/requirementDiagram-UZGBJVZJ-caC7K17a.js.map +1 -0
  187. package/dist/sankeyDiagram-TZEHDZUN-CV5-bwv8.js +811 -0
  188. package/dist/sankeyDiagram-TZEHDZUN-CV5-bwv8.js.map +1 -0
  189. package/dist/sequenceDiagram-WL72ISMW-Cq1otbHU.js +2512 -0
  190. package/dist/sequenceDiagram-WL72ISMW-Cq1otbHU.js.map +1 -0
  191. package/dist/shortcuts.d.ts +15 -0
  192. package/dist/shortcuts.d.ts.map +1 -0
  193. package/dist/shortcuts.js +78 -0
  194. package/dist/shortcuts.js.map +1 -0
  195. package/dist/stateDiagram-FKZM4ZOC-BJ5UwskL.js +264 -0
  196. package/dist/stateDiagram-FKZM4ZOC-BJ5UwskL.js.map +1 -0
  197. package/dist/stateDiagram-v2-4FDKWEC3-H1gqsSsO.js +17 -0
  198. package/dist/stateDiagram-v2-4FDKWEC3-H1gqsSsO.js.map +1 -0
  199. package/dist/styles.d.ts +11 -0
  200. package/dist/styles.d.ts.map +1 -0
  201. package/dist/styles.js +854 -0
  202. package/dist/styles.js.map +1 -0
  203. package/dist/table-DMIy93NJ.js +25 -0
  204. package/dist/table-DMIy93NJ.js.map +1 -0
  205. package/dist/themes.d.ts +197 -0
  206. package/dist/themes.d.ts.map +1 -0
  207. package/dist/themes.js +120 -0
  208. package/dist/themes.js.map +1 -0
  209. package/dist/timeline-definition-IT6M3QCI-CqPEUsh4.js +796 -0
  210. package/dist/timeline-definition-IT6M3QCI-CqPEUsh4.js.map +1 -0
  211. package/dist/toolbar.d.ts +37 -0
  212. package/dist/toolbar.d.ts.map +1 -0
  213. package/dist/toolbar.js +283 -0
  214. package/dist/toolbar.js.map +1 -0
  215. package/dist/treemap-75Q7IDZK-DmPg5GN7.js +12988 -0
  216. package/dist/treemap-75Q7IDZK-DmPg5GN7.js.map +1 -0
  217. package/dist/xychartDiagram-PRI3JC2R-C3_IO4Rm.js +1341 -0
  218. package/dist/xychartDiagram-PRI3JC2R-C3_IO4Rm.js.map +1 -0
  219. package/docs/types.d.ts +1 -1
  220. package/package.json +15 -11
package/dist/icons.js ADDED
@@ -0,0 +1,67 @@
1
+ // @ts-nocheck
2
+ /**
3
+ * SVG icons for Marzipan toolbar (TypeScript)
4
+ * Quill-style icons with inline styles
5
+ */
6
+ export const boldIcon = `<svg viewBox="0 0 18 18">
7
+ <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"></path>
8
+ <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"></path>
9
+ </svg>`;
10
+ export const italicIcon = `<svg viewBox="0 0 18 18">
11
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="13" y1="4" y2="4"></line>
12
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="5" x2="11" y1="14" y2="14"></line>
13
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="8" x2="10" y1="14" y2="4"></line>
14
+ </svg>`;
15
+ export const h1Icon = `<svg viewBox="0 0 18 18">
16
+ <path fill="currentColor" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"></path>
17
+ </svg>`;
18
+ export const h2Icon = `<svg viewBox="0 0 18 18">
19
+ <path fill="currentColor" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"></path>
20
+ </svg>`;
21
+ export const h3Icon = `<svg viewBox="0 0 18 18">
22
+ <path fill="currentColor" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"></path>
23
+ </svg>`;
24
+ export const linkIcon = `<svg viewBox="0 0 18 18">
25
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="11" y1="7" y2="11"></line>
26
+ <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"></path>
27
+ <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"></path>
28
+ </svg>`;
29
+ export const codeIcon = `<svg viewBox="0 0 18 18">
30
+ <polyline stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" points="5 7 3 9 5 11"></polyline>
31
+ <polyline stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" points="13 7 15 9 13 11"></polyline>
32
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="10" x2="8" y1="5" y2="13"></line>
33
+ </svg>`;
34
+ export const bulletListIcon = `<svg viewBox="0 0 18 18">
35
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="6" x2="15" y1="4" y2="4"></line>
36
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="6" x2="15" y1="9" y2="9"></line>
37
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="6" x2="15" y1="14" y2="14"></line>
38
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="3" x2="3" y1="4" y2="4"></line>
39
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="3" x2="3" y1="9" y2="9"></line>
40
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="3" x2="3" y1="14" y2="14"></line>
41
+ </svg>`;
42
+ export const orderedListIcon = `<svg viewBox="0 0 18 18">
43
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="15" y1="4" y2="4"></line>
44
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="15" y1="9" y2="9"></line>
45
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="15" y1="14" y2="14"></line>
46
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" x1="2.5" x2="4.5" y1="5.5" y2="5.5"></line>
47
+ <path fill="currentColor" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"></path>
48
+ <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"></path>
49
+ <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"></path>
50
+ </svg>`;
51
+ export const quoteIcon = `<svg viewBox="2 2 20 20">
52
+ <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 10.8182L9 10.8182C8.80222 10.8182 8.60888 10.7649 8.44443 10.665C8.27998 10.5651 8.15181 10.4231 8.07612 10.257C8.00043 10.0909 7.98063 9.90808 8.01922 9.73174C8.0578 9.55539 8.15304 9.39341 8.29289 9.26627C8.43275 9.13913 8.61093 9.05255 8.80491 9.01747C8.99889 8.98239 9.19996 9.00039 9.38268 9.0692C9.56541 9.13801 9.72159 9.25453 9.83147 9.40403C9.94135 9.55353 10 9.72929 10 9.90909L10 12.1818C10 12.664 9.78929 13.1265 9.41421 13.4675C9.03914 13.8084 8.53043 14 8 14"></path>
53
+ <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 10.8182L15 10.8182C14.8022 10.8182 14.6089 10.7649 14.4444 10.665C14.28 10.5651 14.1518 10.4231 14.0761 10.257C14.0004 10.0909 13.9806 9.90808 14.0192 9.73174C14.0578 9.55539 14.153 9.39341 14.2929 9.26627C14.4327 9.13913 14.6109 9.05255 14.8049 9.01747C14.9989 8.98239 15.2 9.00039 15.3827 9.0692C15.5654 9.13801 15.7216 9.25453 15.8315 9.40403C15.9414 9.55353 16 9.72929 16 9.90909L16 12.1818C16 12.664 15.7893 13.1265 15.4142 13.4675C15.0391 13.8084 14.5304 14 14 14"></path>
54
+ </svg>`;
55
+ export const taskListIcon = `<svg viewBox="0 0 18 18">
56
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="8" x2="16" y1="4" y2="4"></line>
57
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="8" x2="16" y1="9" y2="9"></line>
58
+ <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="8" x2="16" y1="14" y2="14"></line>
59
+ <rect stroke="currentColor" fill="none" stroke-width="1.5" x="2" y="3" width="3" height="3" rx="0.5"></rect>
60
+ <rect stroke="currentColor" fill="none" stroke-width="1.5" x="2" y="13" width="3" height="3" rx="0.5"></rect>
61
+ <polyline stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" points="2.65 9.5 3.5 10.5 5 8.5"></polyline>
62
+ </svg>`;
63
+ export const eyeIcon = `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
64
+ <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" fill="none"></path>
65
+ <circle cx="12" cy="12" r="3" fill="none"></circle>
66
+ </svg>`;
67
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA,cAAc;AACd;;;GAGG;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG;;;OAGjB,CAAC;AAER,MAAM,CAAC,MAAM,UAAU,GAAG;;;;OAInB,CAAC;AAER,MAAM,CAAC,MAAM,MAAM,GAAG;;OAEf,CAAC;AAER,MAAM,CAAC,MAAM,MAAM,GAAG;;OAEf,CAAC;AAER,MAAM,CAAC,MAAM,MAAM,GAAG;;OAEf,CAAC;AAER,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;OAIjB,CAAC;AAER,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;OAIjB,CAAC;AAGR,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;OAOvB,CAAC;AAER,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;OAQxB,CAAC;AAER,MAAM,CAAC,MAAM,SAAS,GAAG;;;OAGlB,CAAC;AAER,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;OAOrB,CAAC;AAER,MAAM,CAAC,MAAM,OAAO,GAAG;;;OAGhB,CAAC"}
@@ -0,0 +1,143 @@
1
+ // Type definitions for @pinkpixel/marzipan
2
+ // Project: https://github.com/pinkpixel-dev/marzipan
3
+ // Definitions by: Pink Pixel <https://pinkpixel.dev>
4
+
5
+ // Re-export all types from main declarations
6
+ export * from './marzipan.d';
7
+
8
+ // Re-export default
9
+ export { default } from './marzipan.d';
10
+
11
+ // Action types (these should match actions/types.ts exports)
12
+ export interface FormatStyleOptions {
13
+ prefix?: string;
14
+ suffix?: string;
15
+ blockPrefix?: string;
16
+ blockSuffix?: string;
17
+ multiline?: boolean;
18
+ replaceNext?: string;
19
+ prefixSpace?: boolean;
20
+ scanFor?: string | RegExp;
21
+ surroundWithNewlines?: boolean;
22
+ orderedList?: boolean;
23
+ unorderedList?: boolean;
24
+ trimFirst?: boolean;
25
+ }
26
+
27
+ export interface ResolvedFormatStyle {
28
+ prefix: string;
29
+ suffix: string;
30
+ blockPrefix: string;
31
+ blockSuffix: string;
32
+ multiline: boolean;
33
+ replaceNext: string;
34
+ prefixSpace: boolean;
35
+ scanFor: string | RegExp | null;
36
+ surroundWithNewlines: boolean;
37
+ orderedList: boolean;
38
+ unorderedList: boolean;
39
+ trimFirst: boolean;
40
+ }
41
+
42
+ export interface TextTransformResult {
43
+ text: string;
44
+ selectionStart: number;
45
+ selectionEnd: number;
46
+ }
47
+
48
+ export type UndoMethod = 'native' | 'manual' | 'auto';
49
+
50
+ export interface LineOperationAdjustment {
51
+ start: number;
52
+ end: number;
53
+ }
54
+
55
+ export interface LineOperationOptions {
56
+ prefix?: string;
57
+ adjustSelection?: (
58
+ isRemoving: boolean,
59
+ selectionStart: number,
60
+ selectionEnd: number,
61
+ lineStart: number
62
+ ) => LineOperationAdjustment;
63
+ }
64
+
65
+ // Theme utilities
66
+ export interface Theme {
67
+ name: string;
68
+ colors: ThemeColors;
69
+ }
70
+
71
+ export interface ThemeColors {
72
+ bgPrimary?: string;
73
+ bgSecondary?: string;
74
+ text?: string;
75
+ textSecondary?: string;
76
+ h1?: string;
77
+ h2?: string;
78
+ h3?: string;
79
+ strong?: string;
80
+ em?: string;
81
+ link?: string;
82
+ code?: string;
83
+ codeBg?: string;
84
+ blockquote?: string;
85
+ hr?: string;
86
+ syntaxMarker?: string;
87
+ listMarker?: string;
88
+ cursor?: string;
89
+ selection?: string;
90
+ rawLine?: string;
91
+ toolbarBg?: string;
92
+ toolbarBorder?: string;
93
+ toolbarIcon?: string;
94
+ toolbarHover?: string;
95
+ toolbarActive?: string;
96
+ border?: string;
97
+ }
98
+
99
+ // Built-in themes
100
+ export declare const solar: Theme;
101
+ export declare const cave: Theme;
102
+ export declare const themes: {
103
+ solar: Theme;
104
+ cave: Theme;
105
+ light: Theme;
106
+ dark: Theme;
107
+ };
108
+
109
+ // Theme utility functions
110
+ export declare function getTheme(theme: string | Theme): Theme;
111
+ export declare function themeToCSSVars(colors: ThemeColors): string;
112
+ export declare function mergeTheme(baseTheme: Theme, customColors?: Partial<ThemeColors>): Theme;
113
+
114
+ // Markdown actions
115
+ export interface LinkOptions {
116
+ url?: string;
117
+ text?: string;
118
+ }
119
+
120
+ export interface MarkdownActions {
121
+ toggleBold(textarea: HTMLTextAreaElement | null): void;
122
+ toggleItalic(textarea: HTMLTextAreaElement | null): void;
123
+ toggleCode(textarea: HTMLTextAreaElement | null): void;
124
+ insertLink(textarea: HTMLTextAreaElement | null, options?: LinkOptions): void;
125
+ toggleBulletList(textarea: HTMLTextAreaElement | null): void;
126
+ toggleNumberedList(textarea: HTMLTextAreaElement | null): void;
127
+ toggleQuote(textarea: HTMLTextAreaElement | null): void;
128
+ toggleTaskList(textarea: HTMLTextAreaElement | null): void;
129
+ insertHeader(textarea: HTMLTextAreaElement | null, level?: number, toggle?: boolean): void;
130
+ toggleH1(textarea: HTMLTextAreaElement | null): void;
131
+ toggleH2(textarea: HTMLTextAreaElement | null): void;
132
+ toggleH3(textarea: HTMLTextAreaElement | null): void;
133
+ getActiveFormats(textarea: HTMLTextAreaElement): string[];
134
+ hasFormat(textarea: HTMLTextAreaElement, format: string): boolean;
135
+ expandSelection(textarea: HTMLTextAreaElement): void;
136
+ applyCustomFormat(textarea: HTMLTextAreaElement | null, format: FormatStyleOptions): void;
137
+ preserveSelection(textarea: HTMLTextAreaElement, fn: () => void): void;
138
+ setUndoMethod(method: UndoMethod): void;
139
+ setDebugMode(enabled: boolean): void;
140
+ getDebugMode(): boolean;
141
+ }
142
+
143
+ export declare const actions: MarkdownActions;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,YAAY,CAAA;AAGjC,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAGpC,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAChD,YAAY,EACV,OAAO,IAAI,eAAe,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,KAAK,EACL,WAAW,EACX,KAAK,EACL,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,aAAa,EACd,MAAM,cAAc,CAAA;AAErB,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iBAAiB,CAAA"}
package/dist/index.js CHANGED
@@ -2585,7 +2585,7 @@ class Xe {
2585
2585
  }
2586
2586
  /**
2587
2587
  * Marzipan - A lightweight markdown editor and viewer
2588
- * @version 1.0.0
2588
+ * @version 1.0.6
2589
2589
  * @license Apache-2.0
2590
2590
  */
2591
2591
  const w = class w {