@limetech/lime-elements 39.33.2 → 39.34.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 (306) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/{checkbox.template-CHtKKyY1.js → checkbox.template-BLkvZRs6.js} +1 -1
  3. package/dist/cjs/{index-BjHIBY-I.js → index-8x93m5oI.js} +57 -21
  4. package/dist/cjs/lime-elements.cjs.js +3 -3
  5. package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +2 -2
  6. package/dist/cjs/limel-action-bar_3.cjs.entry.js +4 -4
  7. package/dist/cjs/limel-ai-avatar.cjs.entry.js +2 -2
  8. package/dist/cjs/limel-badge.cjs.entry.js +3 -3
  9. package/dist/cjs/limel-banner.cjs.entry.js +2 -2
  10. package/dist/cjs/limel-breadcrumbs_8.cjs.entry.js +9 -9
  11. package/dist/cjs/limel-button-group.cjs.entry.js +2 -2
  12. package/dist/cjs/limel-button.cjs.entry.js +3 -3
  13. package/dist/cjs/limel-callout.cjs.entry.js +2 -2
  14. package/dist/cjs/limel-card.cjs.entry.js +2 -2
  15. package/dist/cjs/limel-chart.cjs.entry.js +1 -1
  16. package/dist/cjs/limel-checkbox.cjs.entry.js +3 -3
  17. package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
  18. package/dist/cjs/limel-chip_2.cjs.entry.js +2 -2
  19. package/dist/cjs/limel-circular-progress.cjs.entry.js +2 -2
  20. package/dist/cjs/limel-code-diff.cjs.entry.js +75 -34
  21. package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
  22. package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
  23. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +3 -3
  24. package/dist/cjs/limel-color-picker.cjs.entry.js +2 -2
  25. package/dist/cjs/limel-config.cjs.entry.js +1 -1
  26. package/dist/cjs/limel-date-picker.cjs.entry.js +1 -1
  27. package/dist/cjs/limel-dialog.cjs.entry.js +3 -3
  28. package/dist/cjs/limel-dock-button.cjs.entry.js +1 -1
  29. package/dist/cjs/limel-dock.cjs.entry.js +3 -3
  30. package/dist/cjs/limel-drag-handle.cjs.entry.js +2 -2
  31. package/dist/cjs/limel-dynamic-label.cjs.entry.js +1 -1
  32. package/dist/cjs/limel-email-viewer.cjs.entry.js +2 -2
  33. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +3 -3
  34. package/dist/cjs/limel-file-viewer.cjs.entry.js +61 -49
  35. package/dist/cjs/limel-file.cjs.entry.js +2 -2
  36. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
  37. package/dist/cjs/limel-flex-container.cjs.entry.js +2 -2
  38. package/dist/cjs/limel-form.cjs.entry.js +7831 -6820
  39. package/dist/cjs/limel-grid.cjs.entry.js +2 -2
  40. package/dist/cjs/limel-header.cjs.entry.js +2 -2
  41. package/dist/cjs/limel-help-content.cjs.entry.js +2 -2
  42. package/dist/cjs/limel-help.cjs.entry.js +3 -3
  43. package/dist/cjs/limel-helper-line.cjs.entry.js +3 -3
  44. package/dist/cjs/limel-hotkey_4.cjs.entry.js +6 -6
  45. package/dist/cjs/limel-icon-button.cjs.entry.js +2 -2
  46. package/dist/cjs/limel-icon.cjs.entry.js +2 -2
  47. package/dist/cjs/limel-info-tile.cjs.entry.js +3 -3
  48. package/dist/cjs/limel-list-item.cjs.entry.js +5 -5
  49. package/dist/cjs/limel-markdown.cjs.entry.js +3 -3
  50. package/dist/cjs/limel-masonry-layout.cjs.entry.js +2 -2
  51. package/dist/cjs/limel-menu-item-meta.cjs.entry.js +2 -2
  52. package/dist/cjs/limel-picker.cjs.entry.js +2 -2
  53. package/dist/cjs/limel-popover_2.cjs.entry.js +3 -3
  54. package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
  55. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
  56. package/dist/cjs/limel-progress-flow.cjs.entry.js +1 -1
  57. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1633 -1516
  58. package/dist/cjs/limel-radio-button-group.cjs.entry.js +2 -2
  59. package/dist/cjs/limel-radio-button.cjs.entry.js +3 -3
  60. package/dist/cjs/limel-select.cjs.entry.js +3 -3
  61. package/dist/cjs/limel-shortcut.cjs.entry.js +2 -2
  62. package/dist/cjs/limel-slider.cjs.entry.js +3 -3
  63. package/dist/cjs/limel-snackbar.cjs.entry.js +3 -3
  64. package/dist/cjs/limel-split-button.cjs.entry.js +3 -3
  65. package/dist/cjs/limel-switch.cjs.entry.js +2 -2
  66. package/dist/cjs/limel-tab-bar.cjs.entry.js +3 -3
  67. package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -2
  68. package/dist/cjs/limel-table.cjs.entry.js +255 -154
  69. package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +4 -4
  70. package/dist/cjs/limel-text-editor.cjs.entry.js +16 -3
  71. package/dist/cjs/loader.cjs.js +2 -2
  72. package/dist/cjs/{markdown-parser-BIa99LAc.js → markdown-parser-ZtNkFlPt.js} +336 -370
  73. package/dist/cjs/{render-list-component-DgRQ8H3v.js → render-list-component-DAV1Dyg1.js} +1 -1
  74. package/dist/collection/collection-manifest.json +2 -1
  75. package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
  76. package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
  77. package/dist/collection/components/action-bar/action-bar.js +2 -2
  78. package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
  79. package/dist/collection/components/badge/badge.js +2 -2
  80. package/dist/collection/components/banner/banner.js +1 -1
  81. package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
  82. package/dist/collection/components/button/button.js +2 -2
  83. package/dist/collection/components/button-group/button-group.js +1 -1
  84. package/dist/collection/components/callout/callout.js +1 -1
  85. package/dist/collection/components/card/card.js +1 -1
  86. package/dist/collection/components/checkbox/checkbox.js +1 -1
  87. package/dist/collection/components/chip/chip.js +11 -7
  88. package/dist/collection/components/chip-set/chip-set.js +1 -1
  89. package/dist/collection/components/circular-progress/circular-progress.js +2 -2
  90. package/dist/collection/components/code-diff/code-diff.js +1 -1
  91. package/dist/collection/components/code-editor/code-editor.js +1 -1
  92. package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
  93. package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
  94. package/dist/collection/components/color-picker/color-picker.js +1 -1
  95. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
  96. package/dist/collection/components/dialog/dialog.js +2 -2
  97. package/dist/collection/components/dock/dock.js +3 -3
  98. package/dist/collection/components/drag-handle/drag-handle.js +1 -1
  99. package/dist/collection/components/email-viewer/email-viewer.js +1 -1
  100. package/dist/collection/components/file/file.js +1 -1
  101. package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
  102. package/dist/collection/components/file-input/file-input.js +1 -1
  103. package/dist/collection/components/flex-container/flex-container.js +1 -1
  104. package/dist/collection/components/form/form.js +1 -1
  105. package/dist/collection/components/grid/grid.js +1 -1
  106. package/dist/collection/components/header/header.js +1 -1
  107. package/dist/collection/components/help/help-content.js +1 -1
  108. package/dist/collection/components/help/help.js +2 -2
  109. package/dist/collection/components/helper-line/helper-line.js +2 -2
  110. package/dist/collection/components/hotkey/hotkey.js +1 -1
  111. package/dist/collection/components/icon/icon.js +1 -1
  112. package/dist/collection/components/icon-button/icon-button.js +1 -1
  113. package/dist/collection/components/info-tile/info-tile.js +2 -2
  114. package/dist/collection/components/input-field/input-field.js +1 -1
  115. package/dist/collection/components/list/list.js +1 -1
  116. package/dist/collection/components/list-item/list-item.js +2 -2
  117. package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
  118. package/dist/collection/components/markdown/markdown.js +1 -1
  119. package/dist/collection/components/masonry-layout/masonry-layout.js +1 -1
  120. package/dist/collection/components/menu/menu.js +2 -2
  121. package/dist/collection/components/menu-list/menu-list.js +1 -1
  122. package/dist/collection/components/menu-surface/menu-surface.js +1 -1
  123. package/dist/collection/components/notched-outline/notched-outline.js +1 -1
  124. package/dist/collection/components/picker/picker.js +1 -1
  125. package/dist/collection/components/popover/popover.js +1 -1
  126. package/dist/collection/components/popover-surface/popover-surface.js +1 -1
  127. package/dist/collection/components/portal/portal.js +1 -1
  128. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  129. package/dist/collection/components/radio-button-group/radio-button.js +2 -2
  130. package/dist/collection/components/select/select.js +1 -1
  131. package/dist/collection/components/shortcut/shortcut.js +1 -1
  132. package/dist/collection/components/slider/slider.js +5 -5
  133. package/dist/collection/components/snackbar/snackbar.js +2 -2
  134. package/dist/collection/components/spinner/spinner.js +1 -1
  135. package/dist/collection/components/split-button/split-button.js +2 -2
  136. package/dist/collection/components/switch/switch.js +1 -1
  137. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  138. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  139. package/dist/collection/components/table/table.css +1 -0
  140. package/dist/collection/components/table/table.js +3 -3
  141. package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
  142. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +42 -3
  143. package/dist/collection/components/text-editor/text-editor.js +37 -3
  144. package/dist/collection/components/tooltip/tooltip-content.js +1 -1
  145. package/dist/collection/components/tooltip/tooltip.js +3 -3
  146. package/dist/esm/{checkbox.template-CfWJ3CAC.js → checkbox.template-CtIjSGPt.js} +1 -1
  147. package/dist/esm/{index-DBTJNfo7.js → index-VCOjLfyP.js} +57 -21
  148. package/dist/esm/lime-elements.js +4 -4
  149. package/dist/esm/limel-3d-hover-effect-glow.entry.js +2 -2
  150. package/dist/esm/limel-action-bar_3.entry.js +4 -4
  151. package/dist/esm/limel-ai-avatar.entry.js +2 -2
  152. package/dist/esm/limel-badge.entry.js +3 -3
  153. package/dist/esm/limel-banner.entry.js +2 -2
  154. package/dist/esm/limel-breadcrumbs_8.entry.js +9 -9
  155. package/dist/esm/limel-button-group.entry.js +2 -2
  156. package/dist/esm/limel-button.entry.js +3 -3
  157. package/dist/esm/limel-callout.entry.js +2 -2
  158. package/dist/esm/limel-card.entry.js +2 -2
  159. package/dist/esm/limel-chart.entry.js +1 -1
  160. package/dist/esm/limel-checkbox.entry.js +3 -3
  161. package/dist/esm/limel-chip-set.entry.js +2 -2
  162. package/dist/esm/limel-chip_2.entry.js +2 -2
  163. package/dist/esm/limel-circular-progress.entry.js +2 -2
  164. package/dist/esm/limel-code-diff.entry.js +75 -34
  165. package/dist/esm/limel-code-editor.entry.js +2 -2
  166. package/dist/esm/limel-collapsible-section.entry.js +2 -2
  167. package/dist/esm/limel-color-picker-palette.entry.js +3 -3
  168. package/dist/esm/limel-color-picker.entry.js +2 -2
  169. package/dist/esm/limel-config.entry.js +1 -1
  170. package/dist/esm/limel-date-picker.entry.js +1 -1
  171. package/dist/esm/limel-dialog.entry.js +3 -3
  172. package/dist/esm/limel-dock-button.entry.js +1 -1
  173. package/dist/esm/limel-dock.entry.js +3 -3
  174. package/dist/esm/limel-drag-handle.entry.js +2 -2
  175. package/dist/esm/limel-dynamic-label.entry.js +1 -1
  176. package/dist/esm/limel-email-viewer.entry.js +2 -2
  177. package/dist/esm/limel-file-dropzone_2.entry.js +3 -3
  178. package/dist/esm/limel-file-viewer.entry.js +61 -49
  179. package/dist/esm/limel-file.entry.js +2 -2
  180. package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
  181. package/dist/esm/limel-flex-container.entry.js +2 -2
  182. package/dist/esm/limel-form.entry.js +7831 -6820
  183. package/dist/esm/limel-grid.entry.js +2 -2
  184. package/dist/esm/limel-header.entry.js +2 -2
  185. package/dist/esm/limel-help-content.entry.js +2 -2
  186. package/dist/esm/limel-help.entry.js +3 -3
  187. package/dist/esm/limel-helper-line.entry.js +3 -3
  188. package/dist/esm/limel-hotkey_4.entry.js +6 -6
  189. package/dist/esm/limel-icon-button.entry.js +2 -2
  190. package/dist/esm/limel-icon.entry.js +2 -2
  191. package/dist/esm/limel-info-tile.entry.js +3 -3
  192. package/dist/esm/limel-list-item.entry.js +5 -5
  193. package/dist/esm/limel-markdown.entry.js +3 -3
  194. package/dist/esm/limel-masonry-layout.entry.js +2 -2
  195. package/dist/esm/limel-menu-item-meta.entry.js +2 -2
  196. package/dist/esm/limel-picker.entry.js +2 -2
  197. package/dist/esm/limel-popover_2.entry.js +3 -3
  198. package/dist/esm/limel-profile-picture.entry.js +1 -1
  199. package/dist/esm/limel-progress-flow-item.entry.js +1 -1
  200. package/dist/esm/limel-progress-flow.entry.js +1 -1
  201. package/dist/esm/limel-prosemirror-adapter.entry.js +1633 -1516
  202. package/dist/esm/limel-radio-button-group.entry.js +2 -2
  203. package/dist/esm/limel-radio-button.entry.js +3 -3
  204. package/dist/esm/limel-select.entry.js +3 -3
  205. package/dist/esm/limel-shortcut.entry.js +2 -2
  206. package/dist/esm/limel-slider.entry.js +3 -3
  207. package/dist/esm/limel-snackbar.entry.js +3 -3
  208. package/dist/esm/limel-split-button.entry.js +3 -3
  209. package/dist/esm/limel-switch.entry.js +2 -2
  210. package/dist/esm/limel-tab-bar.entry.js +3 -3
  211. package/dist/esm/limel-tab-panel.entry.js +2 -2
  212. package/dist/esm/limel-table.entry.js +255 -154
  213. package/dist/esm/limel-text-editor-link-menu.entry.js +4 -4
  214. package/dist/esm/limel-text-editor.entry.js +16 -3
  215. package/dist/esm/loader.js +3 -3
  216. package/dist/esm/{markdown-parser-D7vLKElE.js → markdown-parser-nW7FzScN.js} +294 -328
  217. package/dist/esm/{render-list-component-D7LjGxDF.js → render-list-component-BdncB2vG.js} +1 -1
  218. package/dist/lime-elements/lime-elements.esm.js +1 -1
  219. package/dist/lime-elements/{p-1efd78ee.entry.js → p-0605c490.entry.js} +1 -1
  220. package/dist/lime-elements/p-063b8d0a.entry.js +1 -0
  221. package/dist/lime-elements/{p-5d9adcbb.entry.js → p-08e7006f.entry.js} +1 -1
  222. package/dist/lime-elements/p-10955e5d.entry.js +1 -0
  223. package/dist/lime-elements/p-1153e2ba.entry.js +1 -0
  224. package/dist/lime-elements/{p-49901dd7.entry.js → p-17ff8353.entry.js} +1 -1
  225. package/dist/lime-elements/{p-19a259ff.entry.js → p-2a27bf12.entry.js} +1 -1
  226. package/dist/lime-elements/{p-d8b640e8.entry.js → p-2cb55d62.entry.js} +1 -1
  227. package/dist/lime-elements/{p-0f8672fe.entry.js → p-2ef433e0.entry.js} +1 -1
  228. package/dist/lime-elements/{p-12aa0d06.entry.js → p-317d56a7.entry.js} +1 -1
  229. package/dist/lime-elements/{p-d5f189b9.entry.js → p-31965f6c.entry.js} +2 -2
  230. package/dist/lime-elements/{p-61ec46d5.entry.js → p-33ab319b.entry.js} +1 -1
  231. package/dist/lime-elements/p-444e3088.entry.js +1 -0
  232. package/dist/lime-elements/p-44bd59ac.entry.js +1 -0
  233. package/dist/lime-elements/{p-08a261ce.entry.js → p-44f4d02e.entry.js} +1 -1
  234. package/dist/lime-elements/{p-5f121609.entry.js → p-45801616.entry.js} +1 -1
  235. package/dist/lime-elements/{p-1ae8b33a.entry.js → p-53b7bee8.entry.js} +1 -1
  236. package/dist/lime-elements/{p-122cd39d.entry.js → p-66600fc3.entry.js} +1 -1
  237. package/dist/lime-elements/{p-46900c5b.entry.js → p-6c60d915.entry.js} +1 -1
  238. package/dist/lime-elements/{p-a85b2734.entry.js → p-6fa4b1b3.entry.js} +1 -1
  239. package/dist/lime-elements/{p-59716b48.entry.js → p-719dc4c0.entry.js} +1 -1
  240. package/dist/lime-elements/{p-7b074737.entry.js → p-7776313e.entry.js} +1 -1
  241. package/dist/lime-elements/{p-6ca1da96.entry.js → p-7b687fc6.entry.js} +1 -1
  242. package/dist/lime-elements/{p-2a92790c.entry.js → p-7f891de4.entry.js} +1 -1
  243. package/dist/lime-elements/{p-a7764b6d.entry.js → p-80b0bcb3.entry.js} +1 -1
  244. package/dist/lime-elements/{p-871eb795.entry.js → p-8376ac0d.entry.js} +2 -2
  245. package/dist/lime-elements/{p-dee5717c.entry.js → p-8aaf4f50.entry.js} +1 -1
  246. package/dist/lime-elements/{p-8fde4714.entry.js → p-90a506aa.entry.js} +1 -1
  247. package/dist/lime-elements/{p-d0288858.entry.js → p-9b7966f1.entry.js} +1 -1
  248. package/dist/lime-elements/{p-bffbd011.entry.js → p-9bb07225.entry.js} +1 -1
  249. package/dist/lime-elements/{p-a6805c64.entry.js → p-9e8eaa86.entry.js} +1 -1
  250. package/dist/lime-elements/{p-989f4a52.entry.js → p-9eb06bf7.entry.js} +1 -1
  251. package/dist/lime-elements/{p-faceccc0.entry.js → p-9eb6879d.entry.js} +1 -1
  252. package/dist/lime-elements/{p--9pvUs5M.js → p-D9twpDvz.js} +1 -1
  253. package/dist/lime-elements/p-NN0EYecx.js +1 -0
  254. package/dist/lime-elements/p-VCOjLfyP.js +2 -0
  255. package/dist/lime-elements/{p-e5e8a734.entry.js → p-a0720aca.entry.js} +8 -8
  256. package/dist/lime-elements/{p-f5d60f9c.entry.js → p-a11abcb0.entry.js} +4 -4
  257. package/dist/lime-elements/p-a73f70d7.entry.js +1 -0
  258. package/dist/lime-elements/{p-129a19c7.entry.js → p-a7e9e96c.entry.js} +1 -1
  259. package/dist/lime-elements/{p-140afd9f.entry.js → p-a827a280.entry.js} +1 -1
  260. package/dist/lime-elements/{p-d0607ba8.entry.js → p-aa6190e8.entry.js} +1 -1
  261. package/dist/lime-elements/{p-b8a31121.entry.js → p-aa8d7faa.entry.js} +1 -1
  262. package/dist/lime-elements/{p-5da0315f.entry.js → p-aba01020.entry.js} +1 -1
  263. package/dist/lime-elements/{p-b61a1d27.entry.js → p-ac5d5099.entry.js} +2 -2
  264. package/dist/lime-elements/{p-9b3e8f43.entry.js → p-b3b53dbc.entry.js} +1 -1
  265. package/dist/lime-elements/{p-9359e870.entry.js → p-b7649589.entry.js} +1 -1
  266. package/dist/lime-elements/{p-1a5541f1.entry.js → p-bcc2cb1a.entry.js} +1 -1
  267. package/dist/lime-elements/{p-4d948ed5.entry.js → p-c447d311.entry.js} +1 -1
  268. package/dist/lime-elements/{p-33bd5212.entry.js → p-c6cbd842.entry.js} +1 -1
  269. package/dist/lime-elements/{p-df0b927e.entry.js → p-caf1bca2.entry.js} +1 -1
  270. package/dist/lime-elements/{p-f85dbaec.entry.js → p-cdbab1d5.entry.js} +1 -1
  271. package/dist/lime-elements/{p-DdYOzHlg.js → p-csTwzWL7.js} +2 -2
  272. package/dist/lime-elements/p-d8d6e12a.entry.js +13 -0
  273. package/dist/lime-elements/{p-60518e6b.entry.js → p-db0bd965.entry.js} +1 -1
  274. package/dist/lime-elements/{p-22f34040.entry.js → p-dc415221.entry.js} +1 -1
  275. package/dist/lime-elements/{p-91990c64.entry.js → p-e31d0b36.entry.js} +1 -1
  276. package/dist/lime-elements/p-e38a13fb.entry.js +1 -0
  277. package/dist/lime-elements/{p-fa0d7b8c.entry.js → p-e4549e8b.entry.js} +1 -1
  278. package/dist/lime-elements/{p-d09e74b1.entry.js → p-e59d7177.entry.js} +1 -1
  279. package/dist/lime-elements/{p-50f51eb9.entry.js → p-e7b9716f.entry.js} +1 -1
  280. package/dist/lime-elements/{p-9e1a4d63.entry.js → p-ed70059b.entry.js} +1 -1
  281. package/dist/lime-elements/{p-afd4be62.entry.js → p-eef0cd8b.entry.js} +1 -1
  282. package/dist/lime-elements/{p-de203f64.entry.js → p-f7695614.entry.js} +1 -1
  283. package/dist/lime-elements/{p-198f3179.entry.js → p-f91de6bd.entry.js} +1 -1
  284. package/dist/lime-elements/{p-2a9e7bf5.entry.js → p-f9b74b03.entry.js} +1 -1
  285. package/dist/lime-elements/p-f9c8e4d2.entry.js +1 -0
  286. package/dist/lime-elements/{p-6b7e58c3.entry.js → p-fac02bae.entry.js} +1 -1
  287. package/dist/lime-elements/{p-82fb5c74.entry.js → p-fc435802.entry.js} +1 -1
  288. package/dist/lime-elements/p-fe64b285.entry.js +1 -0
  289. package/dist/types/components/form/widgets/code-editor.d.ts +2 -2
  290. package/dist/types/components/text-editor/prosemirror-adapter/prosemirror-adapter.d.ts +14 -0
  291. package/dist/types/components/text-editor/text-editor.d.ts +11 -0
  292. package/dist/types/components.d.ts +30 -20
  293. package/dist/types/stencil-public-runtime.d.ts +1 -0
  294. package/package.json +34 -36
  295. package/dist/lime-elements/p-00e54ccf.entry.js +0 -1
  296. package/dist/lime-elements/p-1614ad86.entry.js +0 -1
  297. package/dist/lime-elements/p-16254e4a.entry.js +0 -1
  298. package/dist/lime-elements/p-3f78362b.entry.js +0 -13
  299. package/dist/lime-elements/p-444e571b.entry.js +0 -1
  300. package/dist/lime-elements/p-6015621e.entry.js +0 -1
  301. package/dist/lime-elements/p-730ba357.entry.js +0 -1
  302. package/dist/lime-elements/p-8203eea8.entry.js +0 -1
  303. package/dist/lime-elements/p-84f5727c.entry.js +0 -1
  304. package/dist/lime-elements/p-BaPK7VfG.js +0 -1
  305. package/dist/lime-elements/p-DBTJNfo7.js +0 -2
  306. package/dist/lime-elements/p-c9fa7a09.entry.js +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-CFO10eej.js');
4
- var index$1 = require('./index-BgFEL6FF.js');
4
+ var index$2 = require('./index-BgFEL6FF.js');
5
5
 
6
6
  /**
7
7
  *
@@ -10742,7 +10742,7 @@ var defaultConstructs = /*#__PURE__*/Object.freeze({
10742
10742
  * @param {ParseOptions | null | undefined} [options]
10743
10743
  * @returns {ParseContext}
10744
10744
  */
10745
- function parse$3(options) {
10745
+ function parse$2(options) {
10746
10746
  const settings = options || {};
10747
10747
  const constructs =
10748
10748
  /** @type {FullNormalizedExtension} */
@@ -11010,7 +11010,7 @@ function stringifyPosition(value) {
11010
11010
  * @returns {string}
11011
11011
  */
11012
11012
  function point$4(point) {
11013
- return index(point && point.line) + ':' + index(point && point.column)
11013
+ return index$1(point && point.line) + ':' + index$1(point && point.column)
11014
11014
  }
11015
11015
 
11016
11016
  /**
@@ -11025,7 +11025,7 @@ function position$2(pos) {
11025
11025
  * @param {number | null | undefined} value
11026
11026
  * @returns {number}
11027
11027
  */
11028
- function index(value) {
11028
+ function index$1(value) {
11029
11029
  return value && typeof value === 'number' ? value : 1
11030
11030
  }
11031
11031
 
@@ -11096,7 +11096,7 @@ function fromMarkdown(value, encoding, options) {
11096
11096
  }
11097
11097
  return compiler(options)(
11098
11098
  postprocess(
11099
- parse$3(options).document().write(preprocess()(value, encoding, true))
11099
+ parse$2(options).document().write(preprocess()(value, encoding, true))
11100
11100
  )
11101
11101
  )
11102
11102
  }
@@ -13674,7 +13674,7 @@ function footer(state) {
13674
13674
  type: 'element',
13675
13675
  tagName: footnoteLabelTagName,
13676
13676
  properties: {
13677
- ...index$1.structuredClone(footnoteLabelProperties),
13677
+ ...index$2.structuredClone(footnoteLabelProperties),
13678
13678
  id: 'footnote-label'
13679
13679
  },
13680
13680
  children: [{type: 'text', value: footnoteLabel}]
@@ -13757,7 +13757,7 @@ function createState(tree, options) {
13757
13757
  wrap
13758
13758
  };
13759
13759
 
13760
- index$1.visit(tree, function (node) {
13760
+ index$2.visit(tree, function (node) {
13761
13761
  if (node.type === 'definition' || node.type === 'footnoteDefinition') {
13762
13762
  const map = node.type === 'definition' ? definitionById : footnoteById;
13763
13763
  const id = String(node.identifier).toUpperCase();
@@ -13794,7 +13794,7 @@ function createState(tree, options) {
13794
13794
  if (state.options.passThrough && state.options.passThrough.includes(type)) {
13795
13795
  if ('children' in node) {
13796
13796
  const {children, ...shallow} = node;
13797
- const result = index$1.structuredClone(shallow);
13797
+ const result = index$2.structuredClone(shallow);
13798
13798
  // @ts-expect-error: TS doesn’t understand…
13799
13799
  result.children = state.all(node);
13800
13800
  // @ts-expect-error: TS doesn’t understand…
@@ -13802,7 +13802,7 @@ function createState(tree, options) {
13802
13802
  }
13803
13803
 
13804
13804
  // @ts-expect-error: it’s custom.
13805
- return index$1.structuredClone(node)
13805
+ return index$2.structuredClone(node)
13806
13806
  }
13807
13807
 
13808
13808
  const unknown = state.options.unknownHandler || defaultUnknownHandler;
@@ -13912,7 +13912,7 @@ function applyData(from, to) {
13912
13912
  }
13913
13913
 
13914
13914
  if (result.type === 'element' && hProperties) {
13915
- Object.assign(result.properties, index$1.structuredClone(hProperties));
13915
+ Object.assign(result.properties, index$2.structuredClone(hProperties));
13916
13916
  }
13917
13917
 
13918
13918
  if (
@@ -14298,12 +14298,12 @@ function escapeStringRegexp(string) {
14298
14298
  */
14299
14299
  function findAndReplace(tree, list, options) {
14300
14300
  const settings = options || {};
14301
- const ignored = index$1.convert(settings.ignore || []);
14301
+ const ignored = index$2.convert(settings.ignore || []);
14302
14302
  const pairs = toPairs(list);
14303
14303
  let pairIndex = -1;
14304
14304
 
14305
14305
  while (++pairIndex < pairs.length) {
14306
- index$1.visitParents(tree, 'text', visitor);
14306
+ index$2.visitParents(tree, 'text', visitor);
14307
14307
  }
14308
14308
 
14309
14309
  /** @type {import('unist-util-visit-parents').BuildVisitor<Root, 'text'>} */
@@ -14736,8 +14736,8 @@ function splitUrl(url) {
14736
14736
 
14737
14737
  let trail = trailExec[0];
14738
14738
  let closingParenIndex = trail.indexOf(')');
14739
- const openingParens = index$1.ccount(url, '(');
14740
- let closingParens = index$1.ccount(url, ')');
14739
+ const openingParens = index$2.ccount(url, '(');
14740
+ let closingParens = index$2.ccount(url, ')');
14741
14741
 
14742
14742
  while (closingParenIndex !== -1 && openingParens > closingParens) {
14743
14743
  url += trail.slice(0, closingParenIndex + 1);
@@ -16002,13 +16002,13 @@ function formatHeadingAsSetext(node, state) {
16002
16002
 
16003
16003
  // Look for literals with a line break.
16004
16004
  // Note that this also
16005
- index$1.visit(node, function (node) {
16005
+ index$2.visit(node, function (node) {
16006
16006
  if (
16007
16007
  ('value' in node && /\r?\n|\r/.test(node.value)) ||
16008
16008
  node.type === 'break'
16009
16009
  ) {
16010
16010
  literalWithBreak = true;
16011
- return index$1.EXIT
16011
+ return index$2.EXIT
16012
16012
  }
16013
16013
  });
16014
16014
 
@@ -16872,7 +16872,7 @@ function paragraph(node, _, state, info) {
16872
16872
  const phrasing =
16873
16873
  /** @type {(node?: unknown) => node is PhrasingContent} */
16874
16874
  (
16875
- index$1.convert([
16875
+ index$2.convert([
16876
16876
  'break',
16877
16877
  'delete',
16878
16878
  'emphasis',
@@ -21844,7 +21844,7 @@ const svg$2 = merge$1([xml$1, xlink$1, xmlns$1, aria$1, svg$3], 'svg');
21844
21844
  * @returns {Array<string>}
21845
21845
  * List of tokens.
21846
21846
  */
21847
- function parse$2(value) {
21847
+ function parse$1(value) {
21848
21848
  /** @type {Array<string>} */
21849
21849
  const tokens = [];
21850
21850
  const input = String(value || '');
@@ -21968,7 +21968,7 @@ function parseSelector(selector, defaultTagName) {
21968
21968
  * @returns {Array<string>}
21969
21969
  * List of tokens.
21970
21970
  */
21971
- function parse$1(value) {
21971
+ function parse(value) {
21972
21972
  const input = String(value || '').trim();
21973
21973
  return input ? input.split(/[ \t\n\r\f]+/g) : []
21974
21974
  }
@@ -22147,11 +22147,11 @@ function addProperty(schema, properties, key, value) {
22147
22147
  // Handle list values.
22148
22148
  else if (typeof value === 'string') {
22149
22149
  if (info.spaceSeparated) {
22150
- result = parse$1(value);
22150
+ result = parse(value);
22151
22151
  } else if (info.commaSeparated) {
22152
- result = parse$2(value);
22152
+ result = parse$1(value);
22153
22153
  } else if (info.commaOrSpaceSeparated) {
22154
- result = parse$1(parse$2(value).join(' '));
22154
+ result = parse(parse$1(value).join(' '));
22155
22155
  } else {
22156
22156
  result = parsePrimitive(info, info.property, value);
22157
22157
  }
@@ -24150,7 +24150,7 @@ const emptyOptions = {};
24150
24150
 
24151
24151
  const own = {}.hasOwnProperty;
24152
24152
 
24153
- const one = index$1.zwitch('type', {handlers: {root: root$1, element: element$1, text: text$1, comment: comment$1, doctype: doctype$1}});
24153
+ const one = index$2.zwitch('type', {handlers: {root: root$1, element: element$1, text: text$1, comment: comment$1, doctype: doctype$1}});
24154
24154
 
24155
24155
  /**
24156
24156
  * Transform a hast tree to a `parse5` AST.
@@ -25804,13 +25804,13 @@ class Tokenizer {
25804
25804
  let result = null;
25805
25805
  let excess = 0;
25806
25806
  let withoutSemicolon = false;
25807
- for (let i = 0, current = index$1.htmlDecodeTree[0]; i >= 0; cp = this._consume()) {
25808
- i = index$1.determineBranch(index$1.htmlDecodeTree, current, i + 1, cp);
25807
+ for (let i = 0, current = index$2.htmlDecodeTree[0]; i >= 0; cp = this._consume()) {
25808
+ i = index$2.determineBranch(index$2.htmlDecodeTree, current, i + 1, cp);
25809
25809
  if (i < 0)
25810
25810
  break;
25811
25811
  excess += 1;
25812
- current = index$1.htmlDecodeTree[i];
25813
- const masked = current & index$1.BinTrieFlags.VALUE_LENGTH;
25812
+ current = index$2.htmlDecodeTree[i];
25813
+ const masked = current & index$2.BinTrieFlags.VALUE_LENGTH;
25814
25814
  // If the branch is a value, store it and continue
25815
25815
  if (masked) {
25816
25816
  // The mask is the number of bytes of the value, including the current byte.
@@ -25830,10 +25830,10 @@ class Tokenizer {
25830
25830
  // If this is a surrogate pair, consume the next two bytes.
25831
25831
  result =
25832
25832
  valueLength === 0
25833
- ? [index$1.htmlDecodeTree[i] & ~index$1.BinTrieFlags.VALUE_LENGTH]
25833
+ ? [index$2.htmlDecodeTree[i] & ~index$2.BinTrieFlags.VALUE_LENGTH]
25834
25834
  : valueLength === 1
25835
- ? [index$1.htmlDecodeTree[++i]]
25836
- : [index$1.htmlDecodeTree[++i], index$1.htmlDecodeTree[++i]];
25835
+ ? [index$2.htmlDecodeTree[++i]]
25836
+ : [index$2.htmlDecodeTree[++i], index$2.htmlDecodeTree[++i]];
25837
25837
  excess = 0;
25838
25838
  withoutSemicolon = cp !== CODE_POINTS.SEMICOLON;
25839
25839
  }
@@ -32426,7 +32426,7 @@ const parseOptions = {sourceCodeLocationInfo: true, scriptingEnabled: false};
32426
32426
  function raw(tree, options) {
32427
32427
  const document = documentMode(tree);
32428
32428
  /** @type {(node: Nodes, state: State) => undefined} */
32429
- const one = index$1.zwitch('type', {
32429
+ const one = index$2.zwitch('type', {
32430
32430
  handlers: {root, element, text, comment, doctype, raw: handleRaw},
32431
32431
  unknown
32432
32432
  });
@@ -32453,7 +32453,7 @@ function raw(tree, options) {
32453
32453
  });
32454
32454
 
32455
32455
  if (state.stitches) {
32456
- index$1.visit(result, 'comment', function (node, index, parent) {
32456
+ index$2.visit(result, 'comment', function (node, index, parent) {
32457
32457
  const stitch = /** @type {Stitch} */ (/** @type {unknown} */ (node));
32458
32458
  if (stitch.value.stitch && parent && index !== undefined) {
32459
32459
  /** @type {Array<RootContent>} */
@@ -33056,8 +33056,8 @@ function createParse5Location(node) {
33056
33056
  */
33057
33057
  function cloneWithoutChildren(node) {
33058
33058
  return 'children' in node
33059
- ? index$1.structuredClone({...node, children: []})
33060
- : index$1.structuredClone(node)
33059
+ ? index$2.structuredClone({...node, children: []})
33060
+ : index$2.structuredClone(node)
33061
33061
  }
33062
33062
 
33063
33063
  /**
@@ -33091,330 +33091,296 @@ function rehypeRaw(options) {
33091
33091
  }
33092
33092
  }
33093
33093
 
33094
- var cjs = {};
33095
-
33096
- var inlineStyleParser;
33097
- var hasRequiredInlineStyleParser;
33098
-
33099
- function requireInlineStyleParser () {
33100
- if (hasRequiredInlineStyleParser) return inlineStyleParser;
33101
- hasRequiredInlineStyleParser = 1;
33102
- // http://www.w3.org/TR/CSS21/grammar.html
33103
- // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
33104
- var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
33105
-
33106
- var NEWLINE_REGEX = /\n/g;
33107
- var WHITESPACE_REGEX = /^\s*/;
33108
-
33109
- // declaration
33110
- var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
33111
- var COLON_REGEX = /^:\s*/;
33112
- var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
33113
- var SEMICOLON_REGEX = /^[;\s]*/;
33114
-
33115
- // https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill
33116
- var TRIM_REGEX = /^\s+|\s+$/g;
33117
-
33118
- // strings
33119
- var NEWLINE = '\n';
33120
- var FORWARD_SLASH = '/';
33121
- var ASTERISK = '*';
33122
- var EMPTY_STRING = '';
33123
-
33124
- // types
33125
- var TYPE_COMMENT = 'comment';
33126
- var TYPE_DECLARATION = 'declaration';
33127
-
33128
- /**
33129
- * @param {String} style
33130
- * @param {Object} [options]
33131
- * @return {Object[]}
33132
- * @throws {TypeError}
33133
- * @throws {Error}
33134
- */
33135
- inlineStyleParser = function (style, options) {
33136
- if (typeof style !== 'string') {
33137
- throw new TypeError('First argument must be a string');
33138
- }
33139
-
33140
- if (!style) return [];
33141
-
33142
- options = options || {};
33143
-
33144
- /**
33145
- * Positional.
33146
- */
33147
- var lineno = 1;
33148
- var column = 1;
33149
-
33150
- /**
33151
- * Update lineno and column based on `str`.
33152
- *
33153
- * @param {String} str
33154
- */
33155
- function updatePosition(str) {
33156
- var lines = str.match(NEWLINE_REGEX);
33157
- if (lines) lineno += lines.length;
33158
- var i = str.lastIndexOf(NEWLINE);
33159
- column = ~i ? str.length - i : column + str.length;
33160
- }
33161
-
33162
- /**
33163
- * Mark position and patch `node.position`.
33164
- *
33165
- * @return {Function}
33166
- */
33167
- function position() {
33168
- var start = { line: lineno, column: column };
33169
- return function (node) {
33170
- node.position = new Position(start);
33171
- whitespace();
33172
- return node;
33173
- };
33174
- }
33175
-
33176
- /**
33177
- * Store position information for a node.
33178
- *
33179
- * @constructor
33180
- * @property {Object} start
33181
- * @property {Object} end
33182
- * @property {undefined|String} source
33183
- */
33184
- function Position(start) {
33185
- this.start = start;
33186
- this.end = { line: lineno, column: column };
33187
- this.source = options.source;
33188
- }
33189
-
33190
- /**
33191
- * Non-enumerable source string.
33192
- */
33193
- Position.prototype.content = style;
33194
-
33195
- /**
33196
- * Error `msg`.
33197
- *
33198
- * @param {String} msg
33199
- * @throws {Error}
33200
- */
33201
- function error(msg) {
33202
- var err = new Error(
33203
- options.source + ':' + lineno + ':' + column + ': ' + msg
33204
- );
33205
- err.reason = msg;
33206
- err.filename = options.source;
33207
- err.line = lineno;
33208
- err.column = column;
33209
- err.source = style;
33210
-
33211
- if (options.silent) ; else {
33212
- throw err;
33213
- }
33214
- }
33215
-
33216
- /**
33217
- * Match `re` and return captures.
33218
- *
33219
- * @param {RegExp} re
33220
- * @return {undefined|Array}
33221
- */
33222
- function match(re) {
33223
- var m = re.exec(style);
33224
- if (!m) return;
33225
- var str = m[0];
33226
- updatePosition(str);
33227
- style = style.slice(str.length);
33228
- return m;
33229
- }
33230
-
33231
- /**
33232
- * Parse whitespace.
33233
- */
33234
- function whitespace() {
33235
- match(WHITESPACE_REGEX);
33236
- }
33237
-
33238
- /**
33239
- * Parse comments.
33240
- *
33241
- * @param {Object[]} [rules]
33242
- * @return {Object[]}
33243
- */
33244
- function comments(rules) {
33245
- var c;
33246
- rules = rules || [];
33247
- while ((c = comment())) {
33248
- if (c !== false) {
33249
- rules.push(c);
33250
- }
33251
- }
33252
- return rules;
33253
- }
33254
-
33255
- /**
33256
- * Parse comment.
33257
- *
33258
- * @return {Object}
33259
- * @throws {Error}
33260
- */
33261
- function comment() {
33262
- var pos = position();
33263
- if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
33264
-
33265
- var i = 2;
33266
- while (
33267
- EMPTY_STRING != style.charAt(i) &&
33268
- (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))
33269
- ) {
33270
- ++i;
33271
- }
33272
- i += 2;
33273
-
33274
- if (EMPTY_STRING === style.charAt(i - 1)) {
33275
- return error('End of comment missing');
33276
- }
33277
-
33278
- var str = style.slice(2, i - 2);
33279
- column += 2;
33280
- updatePosition(str);
33281
- style = style.slice(i);
33282
- column += 2;
33283
-
33284
- return pos({
33285
- type: TYPE_COMMENT,
33286
- comment: str
33287
- });
33288
- }
33289
-
33290
- /**
33291
- * Parse declaration.
33292
- *
33293
- * @return {Object}
33294
- * @throws {Error}
33295
- */
33296
- function declaration() {
33297
- var pos = position();
33298
-
33299
- // prop
33300
- var prop = match(PROPERTY_REGEX);
33301
- if (!prop) return;
33302
- comment();
33303
-
33304
- // :
33305
- if (!match(COLON_REGEX)) return error("property missing ':'");
33306
-
33307
- // val
33308
- var val = match(VALUE_REGEX);
33309
-
33310
- var ret = pos({
33311
- type: TYPE_DECLARATION,
33312
- property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
33313
- value: val
33314
- ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))
33315
- : EMPTY_STRING
33316
- });
33317
-
33318
- // ;
33319
- match(SEMICOLON_REGEX);
33320
-
33321
- return ret;
33322
- }
33323
-
33324
- /**
33325
- * Parse declarations.
33326
- *
33327
- * @return {Object[]}
33328
- */
33329
- function declarations() {
33330
- var decls = [];
33331
-
33332
- comments(decls);
33333
-
33334
- // declarations
33335
- var decl;
33336
- while ((decl = declaration())) {
33337
- if (decl !== false) {
33338
- decls.push(decl);
33339
- comments(decls);
33340
- }
33341
- }
33342
-
33343
- return decls;
33344
- }
33345
-
33346
- whitespace();
33347
- return declarations();
33348
- };
33094
+ // http://www.w3.org/TR/CSS21/grammar.html
33095
+ // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
33096
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
33349
33097
 
33350
- /**
33351
- * Trim `str`.
33352
- *
33353
- * @param {String} str
33354
- * @return {String}
33355
- */
33356
- function trim(str) {
33357
- return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
33358
- }
33359
- return inlineStyleParser;
33360
- }
33098
+ var NEWLINE_REGEX = /\n/g;
33099
+ var WHITESPACE_REGEX = /^\s*/;
33361
33100
 
33362
- var hasRequiredCjs;
33101
+ // declaration
33102
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
33103
+ var COLON_REGEX = /^:\s*/;
33104
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
33105
+ var SEMICOLON_REGEX = /^[;\s]*/;
33363
33106
 
33364
- function requireCjs () {
33365
- if (hasRequiredCjs) return cjs;
33366
- hasRequiredCjs = 1;
33367
- var __importDefault = (cjs && cjs.__importDefault) || function (mod) {
33368
- return (mod && mod.__esModule) ? mod : { "default": mod };
33369
- };
33370
- Object.defineProperty(cjs, "__esModule", { value: true });
33371
- cjs.default = StyleToObject;
33372
- var inline_style_parser_1 = __importDefault(requireInlineStyleParser());
33373
- /**
33374
- * Parses inline style to object.
33375
- *
33376
- * @param style - Inline style.
33377
- * @param iterator - Iterator.
33378
- * @returns - Style object or null.
33379
- *
33380
- * @example Parsing inline style to object:
33381
- *
33382
- * ```js
33383
- * import parse from 'style-to-object';
33384
- * parse('line-height: 42;'); // { 'line-height': '42' }
33385
- * ```
33386
- */
33387
- function StyleToObject(style, iterator) {
33388
- var styleObject = null;
33389
- if (!style || typeof style !== 'string') {
33390
- return styleObject;
33391
- }
33392
- var declarations = (0, inline_style_parser_1.default)(style);
33393
- var hasIterator = typeof iterator === 'function';
33394
- declarations.forEach(function (declaration) {
33395
- if (declaration.type !== 'declaration') {
33396
- return;
33397
- }
33398
- var property = declaration.property, value = declaration.value;
33399
- if (hasIterator) {
33400
- iterator(property, value, declaration);
33401
- }
33402
- else if (value) {
33403
- styleObject = styleObject || {};
33404
- styleObject[property] = value;
33405
- }
33406
- });
33407
- return styleObject;
33408
- }
33409
-
33410
- return cjs;
33107
+ // https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill
33108
+ var TRIM_REGEX = /^\s+|\s+$/g;
33109
+
33110
+ // strings
33111
+ var NEWLINE = '\n';
33112
+ var FORWARD_SLASH = '/';
33113
+ var ASTERISK = '*';
33114
+ var EMPTY_STRING = '';
33115
+
33116
+ // types
33117
+ var TYPE_COMMENT = 'comment';
33118
+ var TYPE_DECLARATION = 'declaration';
33119
+
33120
+ /**
33121
+ * @param {String} style
33122
+ * @param {Object} [options]
33123
+ * @return {Object[]}
33124
+ * @throws {TypeError}
33125
+ * @throws {Error}
33126
+ */
33127
+ function index (style, options) {
33128
+ if (typeof style !== 'string') {
33129
+ throw new TypeError('First argument must be a string');
33130
+ }
33131
+
33132
+ if (!style) return [];
33133
+
33134
+ options = options || {};
33135
+
33136
+ /**
33137
+ * Positional.
33138
+ */
33139
+ var lineno = 1;
33140
+ var column = 1;
33141
+
33142
+ /**
33143
+ * Update lineno and column based on `str`.
33144
+ *
33145
+ * @param {String} str
33146
+ */
33147
+ function updatePosition(str) {
33148
+ var lines = str.match(NEWLINE_REGEX);
33149
+ if (lines) lineno += lines.length;
33150
+ var i = str.lastIndexOf(NEWLINE);
33151
+ column = ~i ? str.length - i : column + str.length;
33152
+ }
33153
+
33154
+ /**
33155
+ * Mark position and patch `node.position`.
33156
+ *
33157
+ * @return {Function}
33158
+ */
33159
+ function position() {
33160
+ var start = { line: lineno, column: column };
33161
+ return function (node) {
33162
+ node.position = new Position(start);
33163
+ whitespace();
33164
+ return node;
33165
+ };
33166
+ }
33167
+
33168
+ /**
33169
+ * Store position information for a node.
33170
+ *
33171
+ * @constructor
33172
+ * @property {Object} start
33173
+ * @property {Object} end
33174
+ * @property {undefined|String} source
33175
+ */
33176
+ function Position(start) {
33177
+ this.start = start;
33178
+ this.end = { line: lineno, column: column };
33179
+ this.source = options.source;
33180
+ }
33181
+
33182
+ /**
33183
+ * Non-enumerable source string.
33184
+ */
33185
+ Position.prototype.content = style;
33186
+
33187
+ /**
33188
+ * Error `msg`.
33189
+ *
33190
+ * @param {String} msg
33191
+ * @throws {Error}
33192
+ */
33193
+ function error(msg) {
33194
+ var err = new Error(
33195
+ options.source + ':' + lineno + ':' + column + ': ' + msg
33196
+ );
33197
+ err.reason = msg;
33198
+ err.filename = options.source;
33199
+ err.line = lineno;
33200
+ err.column = column;
33201
+ err.source = style;
33202
+
33203
+ if (options.silent) ; else {
33204
+ throw err;
33205
+ }
33206
+ }
33207
+
33208
+ /**
33209
+ * Match `re` and return captures.
33210
+ *
33211
+ * @param {RegExp} re
33212
+ * @return {undefined|Array}
33213
+ */
33214
+ function match(re) {
33215
+ var m = re.exec(style);
33216
+ if (!m) return;
33217
+ var str = m[0];
33218
+ updatePosition(str);
33219
+ style = style.slice(str.length);
33220
+ return m;
33221
+ }
33222
+
33223
+ /**
33224
+ * Parse whitespace.
33225
+ */
33226
+ function whitespace() {
33227
+ match(WHITESPACE_REGEX);
33228
+ }
33229
+
33230
+ /**
33231
+ * Parse comments.
33232
+ *
33233
+ * @param {Object[]} [rules]
33234
+ * @return {Object[]}
33235
+ */
33236
+ function comments(rules) {
33237
+ var c;
33238
+ rules = rules || [];
33239
+ while ((c = comment())) {
33240
+ if (c !== false) {
33241
+ rules.push(c);
33242
+ }
33243
+ }
33244
+ return rules;
33245
+ }
33246
+
33247
+ /**
33248
+ * Parse comment.
33249
+ *
33250
+ * @return {Object}
33251
+ * @throws {Error}
33252
+ */
33253
+ function comment() {
33254
+ var pos = position();
33255
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
33256
+
33257
+ var i = 2;
33258
+ while (
33259
+ EMPTY_STRING != style.charAt(i) &&
33260
+ (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))
33261
+ ) {
33262
+ ++i;
33263
+ }
33264
+ i += 2;
33265
+
33266
+ if (EMPTY_STRING === style.charAt(i - 1)) {
33267
+ return error('End of comment missing');
33268
+ }
33269
+
33270
+ var str = style.slice(2, i - 2);
33271
+ column += 2;
33272
+ updatePosition(str);
33273
+ style = style.slice(i);
33274
+ column += 2;
33275
+
33276
+ return pos({
33277
+ type: TYPE_COMMENT,
33278
+ comment: str
33279
+ });
33280
+ }
33281
+
33282
+ /**
33283
+ * Parse declaration.
33284
+ *
33285
+ * @return {Object}
33286
+ * @throws {Error}
33287
+ */
33288
+ function declaration() {
33289
+ var pos = position();
33290
+
33291
+ // prop
33292
+ var prop = match(PROPERTY_REGEX);
33293
+ if (!prop) return;
33294
+ comment();
33295
+
33296
+ // :
33297
+ if (!match(COLON_REGEX)) return error("property missing ':'");
33298
+
33299
+ // val
33300
+ var val = match(VALUE_REGEX);
33301
+
33302
+ var ret = pos({
33303
+ type: TYPE_DECLARATION,
33304
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
33305
+ value: val
33306
+ ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))
33307
+ : EMPTY_STRING
33308
+ });
33309
+
33310
+ // ;
33311
+ match(SEMICOLON_REGEX);
33312
+
33313
+ return ret;
33314
+ }
33315
+
33316
+ /**
33317
+ * Parse declarations.
33318
+ *
33319
+ * @return {Object[]}
33320
+ */
33321
+ function declarations() {
33322
+ var decls = [];
33323
+
33324
+ comments(decls);
33325
+
33326
+ // declarations
33327
+ var decl;
33328
+ while ((decl = declaration())) {
33329
+ if (decl !== false) {
33330
+ decls.push(decl);
33331
+ comments(decls);
33332
+ }
33333
+ }
33334
+
33335
+ return decls;
33336
+ }
33337
+
33338
+ whitespace();
33339
+ return declarations();
33411
33340
  }
33412
33341
 
33413
- var cjsExports = requireCjs();
33414
- var StyleToObject = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(cjsExports);
33342
+ /**
33343
+ * Trim `str`.
33344
+ *
33345
+ * @param {String} str
33346
+ * @return {String}
33347
+ */
33348
+ function trim(str) {
33349
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
33350
+ }
33415
33351
 
33416
- // ensure compatibility with rollup umd build
33417
- var parse = StyleToObject.default || StyleToObject;
33352
+ /**
33353
+ * Parses inline style to object.
33354
+ *
33355
+ * @param style - Inline style.
33356
+ * @param iterator - Iterator.
33357
+ * @returns - Style object or null.
33358
+ *
33359
+ * @example Parsing inline style to object:
33360
+ *
33361
+ * ```js
33362
+ * import parse from 'style-to-object';
33363
+ * parse('line-height: 42;'); // { 'line-height': '42' }
33364
+ * ```
33365
+ */
33366
+ function StyleToObject(style, iterator) {
33367
+ let styleObject = null;
33368
+ if (!style || typeof style !== 'string') {
33369
+ return styleObject;
33370
+ }
33371
+ const declarations = index(style);
33372
+ declarations.forEach((declaration) => {
33373
+ if (declaration.type !== 'declaration') {
33374
+ return;
33375
+ }
33376
+ const { property, value } = declaration;
33377
+ if (value) {
33378
+ styleObject = styleObject || {};
33379
+ styleObject[property] = value;
33380
+ }
33381
+ });
33382
+ return styleObject;
33383
+ }
33418
33384
 
33419
33385
  var colorName$1;
33420
33386
  var hasRequiredColorName;
@@ -33842,7 +33808,7 @@ function sanitizeStyle(node) {
33842
33808
  */
33843
33809
  function sanitizeStyleValue(styleValue) {
33844
33810
  try {
33845
- const css = parse(styleValue);
33811
+ const css = StyleToObject(styleValue);
33846
33812
  const normalizedCss = normalizeBackgroundColor(css);
33847
33813
  return Object.entries(normalizedCss)
33848
33814
  .filter(([key]) => allowedCssProperties.includes(key))
@@ -33899,7 +33865,7 @@ function createLazyLoadImagesPlugin(lazyLoadImages = false) {
33899
33865
  return (tree) => tree;
33900
33866
  }
33901
33867
  return (tree) => {
33902
- index$1.visit(tree, 'element', (node) => {
33868
+ index$2.visit(tree, 'element', (node) => {
33903
33869
  if (node.tagName === 'img') {
33904
33870
  node.properties = node.properties || {};
33905
33871
  node.properties.loading = 'lazy';
@@ -33923,7 +33889,7 @@ function createLazyLoadImagesPlugin(lazyLoadImages = false) {
33923
33889
  function createLinksPlugin() {
33924
33890
  return () => {
33925
33891
  return (tree) => {
33926
- index$1.visit(tree, 'element', (node) => {
33892
+ index$2.visit(tree, 'element', (node) => {
33927
33893
  var _a, _b;
33928
33894
  if (node.tagName === 'a') {
33929
33895
  const href = (_a = node.properties) === null || _a === void 0 ? void 0 : _a.href;
@@ -34076,23 +34042,23 @@ async function markdownToHTML(text, options) {
34076
34042
  if (options === null || options === void 0 ? void 0 : options.forceHardLineBreaks) {
34077
34043
  text = text.replaceAll(/(?<!\\)([\n\r])/g, ' $1');
34078
34044
  }
34079
- const file = await index$1.unified()
34045
+ const file = await index$2.unified()
34080
34046
  .use(remarkParse)
34081
34047
  .use(remarkGfm)
34082
34048
  .use(remarkRehype, { allowDangerousHtml: true })
34083
34049
  .use(rehypeRaw)
34084
34050
  .use(createLinksPlugin())
34085
- .use(index$1.rehypeSanitize, Object.assign({}, getWhiteList((_a = options === null || options === void 0 ? void 0 : options.whitelist) !== null && _a !== void 0 ? _a : [])))
34051
+ .use(index$2.rehypeSanitize, Object.assign({}, getWhiteList((_a = options === null || options === void 0 ? void 0 : options.whitelist) !== null && _a !== void 0 ? _a : [])))
34086
34052
  .use(() => {
34087
34053
  return (tree) => {
34088
34054
  // Run the sanitizeStyle function on all elements, to sanitize
34089
34055
  // the value of the `style` attribute, if there is one.
34090
- index$1.visit(tree, 'element', sanitizeStyle);
34056
+ index$2.visit(tree, 'element', sanitizeStyle);
34091
34057
  };
34092
34058
  })
34093
34059
  .use(createRemoveEmptyParagraphsPlugin(options === null || options === void 0 ? void 0 : options.removeEmptyParagraphs))
34094
34060
  .use(createLazyLoadImagesPlugin(options === null || options === void 0 ? void 0 : options.lazyLoadImages))
34095
- .use(index$1.rehypeStringify)
34061
+ .use(index$2.rehypeStringify)
34096
34062
  .process(text);
34097
34063
  return file.toString();
34098
34064
  }
@@ -34104,34 +34070,34 @@ async function markdownToHTML(text, options) {
34104
34070
  * @returns The sanitized HTML string.
34105
34071
  */
34106
34072
  async function sanitizeHTML(html, whitelist) {
34107
- const file = await index$1.unified()
34108
- .use(index$1.rehypeParse)
34109
- .use(index$1.rehypeSanitize, Object.assign({}, getWhiteList(whitelist !== null && whitelist !== void 0 ? whitelist : [])))
34073
+ const file = await index$2.unified()
34074
+ .use(index$2.rehypeParse)
34075
+ .use(index$2.rehypeSanitize, Object.assign({}, getWhiteList(whitelist !== null && whitelist !== void 0 ? whitelist : [])))
34110
34076
  .use(() => {
34111
34077
  return (tree) => {
34112
34078
  // Run the sanitizeStyle function on all elements, to sanitize
34113
34079
  // the value of the `style` attribute, if there is one.
34114
- index$1.visit(tree, 'element', sanitizeStyle);
34080
+ index$2.visit(tree, 'element', sanitizeStyle);
34115
34081
  };
34116
34082
  })
34117
- .use(index$1.rehypeStringify)
34083
+ .use(index$2.rehypeStringify)
34118
34084
  .process(html);
34119
34085
  return file.toString();
34120
34086
  }
34121
34087
  function getWhiteList(allowedComponents) {
34122
34088
  var _a, _b, _c, _d;
34123
- const defaultSchemaClone = [...((_a = index$1.defaultSchema.attributes['*']) !== null && _a !== void 0 ? _a : [])];
34089
+ const defaultSchemaClone = [...((_a = index$2.defaultSchema.attributes['*']) !== null && _a !== void 0 ? _a : [])];
34124
34090
  const asteriskAttributeWhitelist = defaultSchemaClone.filter((attr) => {
34125
34091
  return attr !== 'height';
34126
34092
  });
34127
34093
  asteriskAttributeWhitelist.push('style');
34128
- const whitelist = Object.assign(Object.assign({}, index$1.defaultSchema), { strip: [...((_b = index$1.defaultSchema.strip) !== null && _b !== void 0 ? _b : []), 'style'], tagNames: [
34129
- ...(index$1.defaultSchema.tagNames || []),
34094
+ const whitelist = Object.assign(Object.assign({}, index$2.defaultSchema), { strip: [...((_b = index$2.defaultSchema.strip) !== null && _b !== void 0 ? _b : []), 'style'], tagNames: [
34095
+ ...(index$2.defaultSchema.tagNames || []),
34130
34096
  ...allowedComponents.map((component) => component.tagName),
34131
- ], attributes: Object.assign(Object.assign({}, index$1.defaultSchema.attributes), { p: [
34132
- ...((_c = index$1.defaultSchema.attributes.p) !== null && _c !== void 0 ? _c : []),
34097
+ ], attributes: Object.assign(Object.assign({}, index$2.defaultSchema.attributes), { p: [
34098
+ ...((_c = index$2.defaultSchema.attributes.p) !== null && _c !== void 0 ? _c : []),
34133
34099
  ['className', 'MsoNormal'],
34134
- ], a: [...((_d = index$1.defaultSchema.attributes.a) !== null && _d !== void 0 ? _d : []), 'referrerpolicy'], '*': asteriskAttributeWhitelist }) });
34100
+ ], a: [...((_d = index$2.defaultSchema.attributes.a) !== null && _d !== void 0 ? _d : []), 'referrerpolicy'], '*': asteriskAttributeWhitelist }) });
34135
34101
  for (const component of allowedComponents) {
34136
34102
  whitelist.attributes[component.tagName] = component.attributes;
34137
34103
  }