@widgetic/design-system 0.5.10 → 0.5.12

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 (305) hide show
  1. package/dist/components/CopyableHeader.svelte +4 -4
  2. package/dist/components/CopyableHeader.svelte.d.ts +38 -34
  3. package/dist/components/EmptyState.svelte +3 -4
  4. package/dist/components/EmptyState.svelte.d.ts +35 -31
  5. package/dist/components/GenerateLoader.svelte.d.ts +23 -19
  6. package/dist/components/PasswordInput.svelte.d.ts +23 -19
  7. package/dist/components/ThumbHashImage.svelte +40 -30
  8. package/dist/components/ThumbHashImage.svelte.d.ts +24 -20
  9. package/dist/components/WScrollArea.svelte.d.ts +36 -25
  10. package/dist/components/debug-grid/DebugGrid.svelte +1 -1
  11. package/dist/components/debug-grid/DebugGrid.svelte.d.ts +30 -26
  12. package/dist/components/ic/browser/BrowserInputController.svelte +19 -56
  13. package/dist/components/ic/browser/BrowserInputController.svelte.d.ts +31 -26
  14. package/dist/components/modals/ActionModal.svelte +15 -22
  15. package/dist/components/modals/ActionModal.svelte.d.ts +47 -36
  16. package/dist/components/modals/BaseModal.svelte +14 -12
  17. package/dist/components/modals/BaseModal.svelte.d.ts +36 -32
  18. package/dist/components/modals/NewItemDialog.svelte +1 -1
  19. package/dist/components/modals/NewItemDialog.svelte.d.ts +37 -33
  20. package/dist/components/modals/Portal.svelte +6 -6
  21. package/dist/components/modals/Portal.svelte.d.ts +32 -21
  22. package/dist/components/modals/RenameDialog.svelte +6 -56
  23. package/dist/components/modals/RenameDialog.svelte.d.ts +37 -33
  24. package/dist/components/modals/modalStore.js +3 -6
  25. package/dist/components/navigation/Breadcrumbs.svelte +20 -14
  26. package/dist/components/navigation/Breadcrumbs.svelte.d.ts +32 -28
  27. package/dist/components/pdf/PDFViewer.svelte +104 -101
  28. package/dist/components/pdf/PDFViewer.svelte.d.ts +30 -26
  29. package/dist/components/search-input/SearchInput.svelte +2 -2
  30. package/dist/components/search-input/SearchInput.svelte.d.ts +44 -40
  31. package/dist/components/shad-editor/colorpicker.svelte.d.ts +3 -14
  32. package/dist/components/shad-editor/custom/Extentions/SearchAndReplace.js +2 -1
  33. package/dist/components/shad-editor/custom/code-extended.svelte +1 -1
  34. package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +3 -14
  35. package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
  36. package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +3 -14
  37. package/dist/components/shad-editor/editor-toolbar.svelte +5 -7
  38. package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +7 -14
  39. package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +3 -14
  40. package/dist/components/shad-editor/icons/bold.svelte.d.ts +4 -14
  41. package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +3 -14
  42. package/dist/components/shad-editor/icons/code.svelte.d.ts +4 -14
  43. package/dist/components/shad-editor/icons/highlighter.svelte +5 -7
  44. package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +8 -14
  45. package/dist/components/shad-editor/icons/image.svelte.d.ts +4 -14
  46. package/dist/components/shad-editor/icons/italic.svelte.d.ts +4 -14
  47. package/dist/components/shad-editor/icons/link.svelte.d.ts +4 -14
  48. package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +3 -14
  49. package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +3 -14
  50. package/dist/components/shad-editor/icons/redo.svelte.d.ts +4 -14
  51. package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +3 -14
  52. package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +4 -14
  53. package/dist/components/shad-editor/icons/subscript.svelte.d.ts +4 -14
  54. package/dist/components/shad-editor/icons/superscript.svelte.d.ts +4 -14
  55. package/dist/components/shad-editor/icons/table.svelte.d.ts +4 -14
  56. package/dist/components/shad-editor/icons/task-list.svelte.d.ts +3 -14
  57. package/dist/components/shad-editor/icons/text.svelte.d.ts +3 -14
  58. package/dist/components/shad-editor/icons/textalign.svelte.d.ts +3 -14
  59. package/dist/components/shad-editor/icons/textcolor.svelte +5 -7
  60. package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +7 -14
  61. package/dist/components/shad-editor/icons/underline.svelte.d.ts +4 -14
  62. package/dist/components/shad-editor/icons/undo.svelte.d.ts +4 -14
  63. package/dist/components/shad-editor/shad-editor.svelte +10 -11
  64. package/dist/components/shad-editor/shad-editor.svelte.d.ts +30 -20
  65. package/dist/components/toast/ToasterModal.svelte.d.ts +16 -11
  66. package/dist/components/ui/accordion/accordion-content.svelte.d.ts +4 -15
  67. package/dist/components/ui/accordion/accordion-item.svelte.d.ts +4 -15
  68. package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +5 -15
  69. package/dist/components/ui/alert/alert-description.svelte.d.ts +25 -14
  70. package/dist/components/ui/alert/alert-title.svelte.d.ts +27 -16
  71. package/dist/components/ui/alert/alert.svelte.d.ts +27 -16
  72. package/dist/components/ui/badge/badge.svelte +1 -1
  73. package/dist/components/ui/badge/badge.svelte.d.ts +57 -16
  74. package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +3 -14
  75. package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +3 -14
  76. package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +7 -15
  77. package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +3 -14
  78. package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +3 -14
  79. package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +3 -14
  80. package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +3 -14
  81. package/dist/components/ui/button/button.svelte.d.ts +120 -21
  82. package/dist/components/ui/calendar/calendar-cell.svelte +2 -3
  83. package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +4 -15
  84. package/dist/components/ui/calendar/calendar-day.svelte +2 -3
  85. package/dist/components/ui/calendar/calendar-day.svelte.d.ts +4 -15
  86. package/dist/components/ui/calendar/calendar-grid-body.svelte +2 -3
  87. package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +4 -15
  88. package/dist/components/ui/calendar/calendar-grid-head.svelte +2 -3
  89. package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +4 -15
  90. package/dist/components/ui/calendar/calendar-grid-row.svelte +2 -3
  91. package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +4 -15
  92. package/dist/components/ui/calendar/calendar-grid.svelte +2 -3
  93. package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +4 -15
  94. package/dist/components/ui/calendar/calendar-head-cell.svelte +2 -3
  95. package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +4 -15
  96. package/dist/components/ui/calendar/calendar-header.svelte +2 -3
  97. package/dist/components/ui/calendar/calendar-header.svelte.d.ts +4 -15
  98. package/dist/components/ui/calendar/calendar-heading.svelte +2 -3
  99. package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +4 -15
  100. package/dist/components/ui/calendar/calendar-months.svelte.d.ts +3 -14
  101. package/dist/components/ui/calendar/calendar-next-button.svelte +2 -3
  102. package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +4 -15
  103. package/dist/components/ui/calendar/calendar-prev-button.svelte +2 -3
  104. package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +4 -15
  105. package/dist/components/ui/calendar/calendar.svelte +2 -3
  106. package/dist/components/ui/calendar/calendar.svelte.d.ts +5 -15
  107. package/dist/components/ui/card/card-content.svelte.d.ts +3 -14
  108. package/dist/components/ui/card/card-description.svelte.d.ts +3 -14
  109. package/dist/components/ui/card/card-footer.svelte.d.ts +3 -14
  110. package/dist/components/ui/card/card-header.svelte.d.ts +3 -14
  111. package/dist/components/ui/card/card-title.svelte.d.ts +5 -15
  112. package/dist/components/ui/card/card.svelte.d.ts +3 -14
  113. package/dist/components/ui/checkbox/checkbox.svelte +2 -3
  114. package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -15
  115. package/dist/components/ui/command/command-dialog.svelte.d.ts +7 -20
  116. package/dist/components/ui/command/command-empty.svelte +2 -3
  117. package/dist/components/ui/command/command-empty.svelte.d.ts +4 -15
  118. package/dist/components/ui/command/command-group.svelte.d.ts +6 -16
  119. package/dist/components/ui/command/command-input.svelte +2 -3
  120. package/dist/components/ui/command/command-input.svelte.d.ts +4 -15
  121. package/dist/components/ui/command/command-item.svelte +2 -3
  122. package/dist/components/ui/command/command-item.svelte.d.ts +4 -15
  123. package/dist/components/ui/command/command-link-item.svelte +2 -3
  124. package/dist/components/ui/command/command-link-item.svelte.d.ts +4 -15
  125. package/dist/components/ui/command/command-list.svelte +2 -3
  126. package/dist/components/ui/command/command-list.svelte.d.ts +4 -15
  127. package/dist/components/ui/command/command-separator.svelte +2 -3
  128. package/dist/components/ui/command/command-separator.svelte.d.ts +4 -15
  129. package/dist/components/ui/command/command-shortcut.svelte.d.ts +3 -14
  130. package/dist/components/ui/command/command.svelte +2 -3
  131. package/dist/components/ui/command/command.svelte.d.ts +4 -15
  132. package/dist/components/ui/dialog/dialog-content.svelte.d.ts +6 -17
  133. package/dist/components/ui/dialog/dialog-description.svelte +2 -3
  134. package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -15
  135. package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +3 -14
  136. package/dist/components/ui/dialog/dialog-header.svelte.d.ts +3 -14
  137. package/dist/components/ui/dialog/dialog-overlay.svelte +2 -3
  138. package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -15
  139. package/dist/components/ui/dialog/dialog-title.svelte +2 -3
  140. package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -15
  141. package/dist/components/ui/drawer/drawer-content.svelte.d.ts +6 -16
  142. package/dist/components/ui/drawer/drawer-description.svelte +1 -2
  143. package/dist/components/ui/drawer/drawer-description.svelte.d.ts +4 -15
  144. package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +3 -14
  145. package/dist/components/ui/drawer/drawer-header.svelte.d.ts +3 -14
  146. package/dist/components/ui/drawer/drawer-nested.svelte +1 -3
  147. package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +4 -15
  148. package/dist/components/ui/drawer/drawer-overlay.svelte +1 -2
  149. package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +4 -15
  150. package/dist/components/ui/drawer/drawer-title.svelte +1 -2
  151. package/dist/components/ui/drawer/drawer-title.svelte.d.ts +4 -15
  152. package/dist/components/ui/drawer/drawer.svelte +1 -3
  153. package/dist/components/ui/drawer/drawer.svelte.d.ts +4 -15
  154. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +5 -16
  155. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +6 -16
  156. package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +6 -16
  157. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +6 -16
  158. package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +5 -15
  159. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +2 -3
  160. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -15
  161. package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +2 -3
  162. package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -15
  163. package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +3 -14
  164. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +2 -3
  165. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -15
  166. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +6 -16
  167. package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +6 -16
  168. package/dist/components/ui/input/input.svelte.d.ts +3 -14
  169. package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +3 -14
  170. package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +3 -14
  171. package/dist/components/ui/input-otp/input-otp-slot.svelte +2 -3
  172. package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +13 -15
  173. package/dist/components/ui/input-otp/input-otp.svelte +2 -3
  174. package/dist/components/ui/input-otp/input-otp.svelte.d.ts +4 -15
  175. package/dist/components/ui/label/label.svelte +2 -3
  176. package/dist/components/ui/label/label.svelte.d.ts +4 -15
  177. package/dist/components/ui/popover/popover-content.svelte.d.ts +6 -16
  178. package/dist/components/ui/progress/progress.svelte +2 -3
  179. package/dist/components/ui/progress/progress.svelte.d.ts +4 -15
  180. package/dist/components/ui/radio-group/radio-group-item.svelte +2 -3
  181. package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -15
  182. package/dist/components/ui/radio-group/radio-group.svelte +2 -3
  183. package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -15
  184. package/dist/components/ui/range-calendar/range-calendar-cell.svelte +2 -3
  185. package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +4 -15
  186. package/dist/components/ui/range-calendar/range-calendar-day.svelte +2 -3
  187. package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +4 -15
  188. package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte +2 -3
  189. package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -15
  190. package/dist/components/ui/range-calendar/range-calendar-grid.svelte +2 -3
  191. package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +4 -15
  192. package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte +2 -3
  193. package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -15
  194. package/dist/components/ui/range-calendar/range-calendar-header.svelte +2 -3
  195. package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +4 -15
  196. package/dist/components/ui/range-calendar/range-calendar-heading.svelte +2 -3
  197. package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +4 -15
  198. package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +3 -14
  199. package/dist/components/ui/range-calendar/range-calendar-next-button.svelte +2 -3
  200. package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +4 -15
  201. package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte +2 -3
  202. package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +4 -15
  203. package/dist/components/ui/range-calendar/range-calendar.svelte +2 -3
  204. package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +5 -15
  205. package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +1 -2
  206. package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -15
  207. package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +7 -17
  208. package/dist/components/ui/select/select-content.svelte.d.ts +5 -15
  209. package/dist/components/ui/select/select-group-heading.svelte +2 -3
  210. package/dist/components/ui/select/select-group-heading.svelte.d.ts +4 -15
  211. package/dist/components/ui/select/select-item.svelte +2 -3
  212. package/dist/components/ui/select/select-item.svelte.d.ts +4 -15
  213. package/dist/components/ui/select/select-scroll-down-button.svelte +2 -3
  214. package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -15
  215. package/dist/components/ui/select/select-scroll-up-button.svelte +2 -3
  216. package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -15
  217. package/dist/components/ui/select/select-separator.svelte +2 -3
  218. package/dist/components/ui/select/select-separator.svelte.d.ts +4 -15
  219. package/dist/components/ui/select/select-trigger.svelte +2 -3
  220. package/dist/components/ui/select/select-trigger.svelte.d.ts +4 -15
  221. package/dist/components/ui/separator/separator.svelte +2 -3
  222. package/dist/components/ui/separator/separator.svelte.d.ts +4 -15
  223. package/dist/components/ui/slider/slider.svelte +2 -3
  224. package/dist/components/ui/slider/slider.svelte.d.ts +4 -15
  225. package/dist/components/ui/sonner/sonner.svelte +2 -1
  226. package/dist/components/ui/sonner/sonner.svelte.d.ts +3 -14
  227. package/dist/components/ui/switch/switch.svelte +2 -3
  228. package/dist/components/ui/switch/switch.svelte.d.ts +4 -15
  229. package/dist/components/ui/table/table-body.svelte.d.ts +3 -14
  230. package/dist/components/ui/table/table-caption.svelte.d.ts +3 -14
  231. package/dist/components/ui/table/table-cell.svelte.d.ts +3 -14
  232. package/dist/components/ui/table/table-footer.svelte.d.ts +3 -14
  233. package/dist/components/ui/table/table-head.svelte.d.ts +3 -14
  234. package/dist/components/ui/table/table-header.svelte.d.ts +3 -14
  235. package/dist/components/ui/table/table-row.svelte.d.ts +3 -14
  236. package/dist/components/ui/table/table.svelte.d.ts +3 -14
  237. package/dist/components/ui/tabs/tabs-content.svelte +2 -3
  238. package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -15
  239. package/dist/components/ui/tabs/tabs-list.svelte +2 -3
  240. package/dist/components/ui/tabs/tabs-list.svelte.d.ts +4 -15
  241. package/dist/components/ui/tabs/tabs-trigger.svelte +2 -3
  242. package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +4 -15
  243. package/dist/components/ui/textarea/textarea.svelte.d.ts +3 -14
  244. package/dist/components/ui/toggle/toggle.svelte +1 -1
  245. package/dist/components/ui/toggle/toggle.svelte.d.ts +82 -18
  246. package/dist/components/ui/toggle-group/toggle-group-item.svelte +2 -3
  247. package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +4 -15
  248. package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +8 -16
  249. package/dist/components/ui/tooltip/index.d.ts +2 -1
  250. package/dist/components/ui/tooltip/index.js +5 -1
  251. package/dist/components/ui/tooltip/tooltip-content.svelte +1 -2
  252. package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +4 -15
  253. package/dist/components/widget-system/EditableWidget.svelte.d.ts +42 -30
  254. package/dist/components/widget-system/Moveable.svelte +14 -8
  255. package/dist/components/widget-system/Moveable.svelte.d.ts +51 -39
  256. package/dist/fonts/Cousine/Cousine-Bold.woff2 +0 -0
  257. package/dist/fonts/Cousine/Cousine-Regular.woff2 +0 -0
  258. package/dist/fonts/Inter/Inter-Black.woff2 +0 -0
  259. package/dist/fonts/Inter/Inter-BlackItalic.woff2 +0 -0
  260. package/dist/fonts/Inter/Inter-Bold.woff2 +0 -0
  261. package/dist/fonts/Inter/Inter-BoldItalic.woff2 +0 -0
  262. package/dist/fonts/Inter/Inter-ExtraBold.woff2 +0 -0
  263. package/dist/fonts/Inter/Inter-ExtraBoldItalic.woff2 +0 -0
  264. package/dist/fonts/Inter/Inter-ExtraLight-BETA.woff2 +0 -0
  265. package/dist/fonts/Inter/Inter-ExtraLightItalic-BETA.woff2 +0 -0
  266. package/dist/fonts/Inter/Inter-Italic.woff2 +0 -0
  267. package/dist/fonts/Inter/Inter-Light-BETA.woff2 +0 -0
  268. package/dist/fonts/Inter/Inter-LightItalic-BETA.woff2 +0 -0
  269. package/dist/fonts/Inter/Inter-Medium.woff2 +0 -0
  270. package/dist/fonts/Inter/Inter-MediumItalic.woff2 +0 -0
  271. package/dist/fonts/Inter/Inter-Regular.woff2 +0 -0
  272. package/dist/fonts/Inter/Inter-SemiBold.woff2 +0 -0
  273. package/dist/fonts/Inter/Inter-SemiBoldItalic.woff2 +0 -0
  274. package/dist/fonts/Inter/Inter-Thin-BETA.woff2 +0 -0
  275. package/dist/fonts/Inter/Inter-ThinItalic-BETA.woff2 +0 -0
  276. package/dist/fonts/Inter/Inter-italic.var.woff2 +0 -0
  277. package/dist/fonts/Inter/Inter-upright.var.woff2 +0 -0
  278. package/dist/fonts/Inter/Inter.var.woff2 +0 -0
  279. package/dist/fonts/JetBrainsMono/JetBrainsMono-ExtraBold.woff2 +0 -0
  280. package/dist/icons/Checked.svelte.d.ts +18 -14
  281. package/dist/icons/CheckerBoardBackground.svelte.d.ts +3 -14
  282. package/dist/icons/Close.svelte.d.ts +18 -14
  283. package/dist/icons/Exclamation.svelte.d.ts +22 -19
  284. package/dist/icons/FileBrowser.svelte.d.ts +18 -14
  285. package/dist/icons/LogoWidgetic.svelte +1 -1
  286. package/dist/icons/LogoWidgetic.svelte.d.ts +18 -14
  287. package/dist/icons/LogoWidgeticGreen.svelte.d.ts +18 -14
  288. package/dist/icons/LogoWidgeticType.svelte.d.ts +18 -14
  289. package/dist/icons/LogoWidgeticTypeOld.svelte.d.ts +18 -14
  290. package/dist/icons/OpacitySliderArrows.svelte.d.ts +3 -14
  291. package/dist/icons/TestIcon.svelte.d.ts +22 -19
  292. package/dist/icons/index.js +3 -3
  293. package/dist/stores/pdfCache.js +58 -38
  294. package/dist/styles/fonts.css +402 -98
  295. package/dist/styles/global.css +62 -30
  296. package/package.json +22 -19
  297. package/tailwind.config.ts +22 -0
  298. package/dist/fonts/BLMelody/BLMelody-Bold.woff2 +0 -0
  299. package/dist/fonts/BLMelody/BLMelody-Medium.woff2 +0 -0
  300. package/dist/fonts/BLMelody/BLMelody-SemiBold.woff2 +0 -0
  301. package/dist/fonts/Riegla/Riegla-Bold Italic.otf +0 -0
  302. package/dist/fonts/Riegla/Riegla-Bold.otf +0 -0
  303. package/dist/fonts/Riegla/Riegla-Italic.otf +0 -0
  304. package/dist/fonts/Riegla/Riegla-Regular.otf +0 -0
  305. package/dist/fonts/Riegla/RieglaMedium-Regular.otf +0 -0
@@ -149,11 +149,11 @@
149
149
  */
150
150
  async function openFileBrowser() {
151
151
  try {
152
- console.log('Opening file browser with config:', {
153
- fileTypes,
154
- id: typeof value === 'object' ? value.id : undefined,
155
- batch: 1
156
- });
152
+ // console.log('Opening file browser with config:', {
153
+ // fileTypes,
154
+ // id: typeof value === 'object' ? value.id : undefined,
155
+ // batch: 1
156
+ // });
157
157
 
158
158
  // TODO: When UI SDK is available, replace with actual implementation
159
159
  // const result = await window.uiSDK.mountComponent('file-browser', {
@@ -218,29 +218,14 @@
218
218
  }
219
219
  });
220
220
 
221
- /**
222
- * Checks if a file exists and is accessible
223
- * @param url - URL to check
224
- * @returns Promise that resolves to boolean
225
- */
226
- async function checkFileExists(url: string): Promise<boolean> {
227
- try {
228
- const response = await fetch(url, { method: 'HEAD' });
229
- return response.ok;
230
- } catch {
231
- return false;
232
- }
233
- }
234
-
235
221
  // Update error state handling
236
- async function updateErrorState(url: string) {
237
- isChecking = true;
222
+ function updateErrorState(url: string) {
238
223
  if (!url) {
239
224
  hasError = true;
240
225
  isChecking = false;
241
226
  return;
242
227
  }
243
- hasError = !(await checkFileExists(url));
228
+ hasError = false;
244
229
  isChecking = false;
245
230
  }
246
231
 
@@ -266,37 +251,6 @@
266
251
  // Update the reactive statement to use trimString
267
252
  $: displayLabel = value ? trimString(getFileName(value)) : (header?.label || label);
268
253
  $: previewUrl = getPreviewUrl(value);
269
-
270
- // Add event listeners for media elements
271
- function setupMediaElement(element: HTMLMediaElement) {
272
- if (!element) return;
273
-
274
- element.addEventListener('play', () => {
275
- console.log('Media started playing');
276
- isPlaying = true;
277
- });
278
-
279
- element.addEventListener('pause', () => {
280
- console.log('Media paused');
281
- isPlaying = false;
282
- });
283
-
284
- element.addEventListener('ended', () => {
285
- console.log('Media ended');
286
- isPlaying = false;
287
- });
288
-
289
- // Add listener for when the media is stopped externally
290
- element.addEventListener('timeupdate', () => {
291
- if (element.paused && isPlaying) {
292
- isPlaying = false;
293
- }
294
- });
295
- }
296
-
297
- // Update bindings to setup media elements
298
- $: if (audioElement) setupMediaElement(audioElement);
299
- $: if (videoElement) setupMediaElement(videoElement);
300
254
  </script>
301
255
 
302
256
  <!-- Main container with flex layout for title and preview -->
@@ -372,7 +326,8 @@
372
326
  src={previewUrl}
373
327
  alt={displayLabel}
374
328
  class="w-full h-full object-cover"
375
- on:error={() => hasError = true}
329
+ on:error={() => { hasError = true; isChecking = false; }}
330
+ on:load={() => { isChecking = false; }}
376
331
  />
377
332
  </div>
378
333
  {:else if getFileType(previewUrl) === 'video'}
@@ -384,7 +339,11 @@
384
339
  bind:this={videoElement}
385
340
  src={previewUrl}
386
341
  class="w-full h-full object-cover"
387
- on:error={() => hasError = true}
342
+ on:play={() => { isPlaying = true; }}
343
+ on:pause={() => { isPlaying = false; }}
344
+ on:ended={() => { isPlaying = false; }}
345
+ on:error={() => { hasError = true; isChecking = false; }}
346
+ on:loadeddata={() => { isChecking = false; }}
388
347
  >
389
348
  <track kind="captions" />
390
349
  </video>
@@ -419,7 +378,11 @@
419
378
  <audio
420
379
  bind:this={audioElement}
421
380
  src={previewUrl}
422
- on:error={() => hasError = true}
381
+ on:play={() => { isPlaying = true; }}
382
+ on:pause={() => { isPlaying = false; }}
383
+ on:ended={() => { isPlaying = false; }}
384
+ on:error={() => { hasError = true; isChecking = false; }}
385
+ on:loadeddata={() => { isChecking = false; }}
423
386
  >
424
387
  <track kind="captions" />
425
388
  </audio>
@@ -1,29 +1,34 @@
1
- import { SvelteComponentTyped } from "svelte";
2
1
  import type { InputControllerConfig } from '../types';
3
- declare const __propDef: {
4
- props: {
5
- header?: {
6
- label: string;
7
- helpText?: string;
8
- } | undefined;
9
- label?: string;
10
- value?: string | {
11
- id: string;
12
- file: string;
13
- url: string;
14
- };
15
- onChange?: (newValue: string) => void;
16
- config?: InputControllerConfig;
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: Props & {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
17
12
  };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
22
- };
23
- export type BrowserInputControllerProps = typeof __propDef.props;
24
- export type BrowserInputControllerEvents = typeof __propDef.events;
25
- export type BrowserInputControllerSlots = typeof __propDef.slots;
26
- export default class BrowserInputController extends SvelteComponentTyped<BrowserInputControllerProps, BrowserInputControllerEvents, BrowserInputControllerSlots> {
27
- get onChange(): (newValue: string) => void;
13
+ z_$$bindings?: Bindings;
28
14
  }
29
- export {};
15
+ declare const BrowserInputController: $$__sveltets_2_IsomorphicComponent<{
16
+ header?: {
17
+ label: string;
18
+ helpText?: string;
19
+ } | undefined;
20
+ label?: string;
21
+ value?: string | {
22
+ id: string;
23
+ file: string;
24
+ url: string;
25
+ };
26
+ onChange?: (newValue: string) => void;
27
+ config?: InputControllerConfig;
28
+ }, {
29
+ [evt: string]: CustomEvent<any>;
30
+ }, {}, {
31
+ onChange: (newValue: string) => void;
32
+ }, string>;
33
+ type BrowserInputController = InstanceType<typeof BrowserInputController>;
34
+ export default BrowserInputController;
@@ -76,7 +76,7 @@
76
76
  dispatch('confirm', { items });
77
77
 
78
78
  // Close the modal immediately to allow user to continue working
79
- // isOpen = false;
79
+ isOpen = false;
80
80
  }
81
81
 
82
82
  // Support for restoring modal state
@@ -107,8 +107,8 @@
107
107
 
108
108
  // Only log when modal is actually open
109
109
  $: if (isOpen && isInitialized && items && items.length > 0 && showLogs) {
110
- console.log('Items in open modal:', items);
111
- console.log('First item name:', items[0]?.name);
110
+ // console.log('Items in open modal:', items);
111
+ // console.log('First item name:', items[0]?.name);
112
112
  }
113
113
  </script>
114
114
 
@@ -143,31 +143,24 @@
143
143
  {#if hasButtons}
144
144
  <div class="buttons-container flex justify-center gap-4 mb-[4px]">
145
145
  {#if cancelLabel}
146
- <!-- svelte-ignore a11y-click-events-have-key-events -->
147
- <!-- svelte-ignore a11y-no-static-element-interactions -->
148
- <div
149
- class="cancel-button modal-btn-secondary !h-[34px] radius-pill widgetic-radius flex items-center justify-center px-4 py-2 cursor-pointer bg-[hsl(var(--grey1))] hover:bg-[hsl(var(--grey2))] text-[hsl(var(--grey7))] rounded-full"
150
- on:click={handleClose}
151
- role="button"
152
- tabindex="0"
146
+ <Button
147
+ type="button"
148
+ variant="secondary"
149
+ class="cancel-button modal-btn-secondary !h-[34px] !rounded-[100px] px-4 py-2"
150
+ onclick={handleClose}
153
151
  >
154
152
  {cancelLabel}
155
- </div>
153
+ </Button>
156
154
  {/if}
157
155
  {#if confirmLabel}
158
- <!-- svelte-ignore a11y-click-events-have-key-events -->
159
- <!-- svelte-ignore a11y-no-static-element-interactions -->
160
- <div
161
- class="{confirmVariant === 'attention' ? 'confirm-button modal-btn-attention !h-[34px] radius-pill widgetic-radius flex items-center justify-center px-4 py-2 cursor-pointer bg-[hsl(var(--error))] hover:bg-[hsl(var(--error-dark))] text-white rounded-full' : 'confirm-button modal-btn-primary !h-[34px] radius-pill widgetic-radius flex items-center justify-center px-4 py-2 cursor-pointer bg-[hsl(var(--forest-green))] hover:bg-[hsl(var(--forest-green-dark))] text-white rounded-full'}"
162
- on:click={handleConfirm}
163
- role="button"
164
- tabindex="0"
165
- class:opacity-50={isConfirmDisabled}
166
- class:cursor-not-allowed={isConfirmDisabled}
167
- class:pointer-events-none={isConfirmDisabled}
156
+ <Button
157
+ type="button"
158
+ class="{confirmVariant === 'attention' ? 'confirm-button modal-btn-attention !h-[34px] !rounded-[100px] px-4 py-2 bg-[hsl(var(--error))] hover:bg-[hsl(var(--error-dark))] text-white' : 'confirm-button modal-btn-primary !h-[34px] !rounded-[100px] px-4 py-2 bg-[hsl(var(--forest-green))] hover:bg-[hsl(var(--forest-green-dark))] text-white'}"
159
+ onclick={handleConfirm}
160
+ disabled={isConfirmDisabled}
168
161
  >
169
162
  {confirmLabel}
170
- </div>
163
+ </Button>
171
164
  {/if}
172
165
  </div>
173
166
  {/if}
@@ -1,38 +1,49 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- class?: string;
5
- style?: string;
6
- isOpen?: boolean;
7
- items?: any[];
8
- title?: string;
9
- message?: string;
10
- confirmLabel?: string;
11
- onConfirm?: () => Promise<any>;
12
- cancelLabel?: string;
13
- onCancel?: () => void;
14
- width?: string;
15
- height?: string;
16
- target?: string;
17
- isConfirmDisabled?: boolean;
18
- confirmVariant?: "primary" | "attention";
19
- actionType?: string;
20
- modalType?: string;
21
- modalData?: any;
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
22
11
  };
23
- events: {
24
- cancel: CustomEvent<any>;
25
- confirm: CustomEvent<any>;
26
- } & {
27
- [evt: string]: CustomEvent<any>;
28
- };
29
- slots: {
30
- default: {};
31
- };
32
- };
33
- export type ActionModalProps = typeof __propDef.props;
34
- export type ActionModalEvents = typeof __propDef.events;
35
- export type ActionModalSlots = typeof __propDef.slots;
36
- export default class ActionModal extends SvelteComponentTyped<ActionModalProps, ActionModalEvents, ActionModalSlots> {
12
+ z_$$bindings?: Bindings;
37
13
  }
38
- export {};
14
+ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
15
+ default: any;
16
+ } ? Props extends Record<string, never> ? any : {
17
+ children?: any;
18
+ } : {});
19
+ declare const ActionModal: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
20
+ class?: string;
21
+ style?: string;
22
+ isOpen?: boolean;
23
+ items?: any[];
24
+ title?: string;
25
+ message?: string;
26
+ confirmLabel?: string;
27
+ onConfirm?: () => Promise<any>;
28
+ cancelLabel?: string;
29
+ onCancel?: () => void;
30
+ width?: string;
31
+ height?: string;
32
+ target?: string;
33
+ isConfirmDisabled?: boolean;
34
+ confirmVariant?: "primary" | "attention";
35
+ actionType?: string;
36
+ modalType?: string;
37
+ modalData?: any;
38
+ }, {
39
+ default: {};
40
+ }>, {
41
+ cancel: CustomEvent<any>;
42
+ confirm: CustomEvent<any>;
43
+ } & {
44
+ [evt: string]: CustomEvent<any>;
45
+ }, {
46
+ default: {};
47
+ }, {}, string>;
48
+ type ActionModal = InstanceType<typeof ActionModal>;
49
+ export default ActionModal;
@@ -7,7 +7,7 @@
7
7
 
8
8
  // Design system componentsimports
9
9
  import { Button, WScrollArea, Portal } from '..';
10
- import { IconX } from '../../icons';
10
+ import { IconX } from '@tabler/icons-svelte';
11
11
 
12
12
  // Modal store
13
13
  import { modalState, openModal, closeModal } from './modalStore';
@@ -89,15 +89,15 @@
89
89
  // Check stored state on mount and reopen if needed
90
90
  onMount(() => {
91
91
  if ($modalState.isOpen && !open) {
92
- if(showLogs) console.log('Checking modal restoration:', {
93
- currentType: modalType,
94
- storedType: $modalState.modalType,
95
- storedData: $modalState.data
96
- });
92
+ // if(showLogs) console.log('Checking modal restoration:', {
93
+ // currentType: modalType,
94
+ // storedType: $modalState.modalType,
95
+ // storedData: $modalState.data
96
+ // });
97
97
 
98
98
  // Only reopen if this is the correct modal type
99
99
  if ($modalState.modalType === modalType) {
100
- if(showLogs) console.log('Restoring modal state for:', modalType);
100
+ // if(showLogs) console.log('Restoring modal state for:', modalType);
101
101
  open = true;
102
102
  modalData = $modalState.data;
103
103
  dispatch('restore', $modalState.data);
@@ -134,7 +134,7 @@
134
134
  // update the conetent holder height
135
135
  // setTimeout(() => {
136
136
  allContentHeight = 2 * contentPadding + titleHeight + contentHolderHeight;
137
- if(showLogs) console.log('Modal current height:', allContentHeight);
137
+ // if(showLogs) console.log('Modal current height:', allContentHeight);
138
138
  // let availableHeight = modalHeight - 2 * contentPadding;
139
139
  // if(showLogs) console.log('Modal current height:', allContentHeight, availableHeight);
140
140
  // contentHolderHeight = allContentHeight > availableHeight ? (availableHeight - titleHeight) + 'px' : 'auto';
@@ -186,9 +186,11 @@
186
186
  })();
187
187
 
188
188
  function handleKeydown(event: KeyboardEvent) {
189
+ if (!open) return;
190
+
189
191
  // Only log keyboard events that we actually handle
190
192
  if (['Backspace', 'Escape', 'Space'].includes(event.key)) {
191
- if(showLogs) console.log('Modal handling key:', event.key, 'Target:', (event.target as HTMLElement).tagName);
193
+ // if(showLogs) console.log('Modal handling key:', event.key, 'Target:', (event.target as HTMLElement).tagName);
192
194
  }
193
195
 
194
196
  const target = event.target as HTMLElement;
@@ -218,7 +220,7 @@
218
220
  }
219
221
 
220
222
  function handleClose() {
221
- if(showLogs) console.log('handleClose');
223
+ // if(showLogs) console.log('handleClose');
222
224
 
223
225
  // change the open state to false
224
226
  open = false;
@@ -238,7 +240,7 @@
238
240
  $: if (open !== previousOpen) {
239
241
  previousOpen = open;
240
242
 
241
- if(showLogs) console.log('Modal open state changed:', { open, modalType, modalData });
243
+ // if(showLogs) console.log('Modal open state changed:', { open, modalType, modalData });
242
244
 
243
245
  // Open the modal if the open state is true
244
246
  if (open) {
@@ -258,7 +260,7 @@
258
260
 
259
261
  // Only handle clicks directly on the backdrop
260
262
  if (event.target === event.currentTarget) {
261
- if(showLogs) console.log('Modal backdrop clicked!', event.type);
263
+ // if(showLogs) console.log('Modal backdrop clicked!', event.type);
262
264
  handleClose();
263
265
  }
264
266
  }
@@ -1,34 +1,38 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- class?: string;
5
- style?: string;
6
- width?: string;
7
- height?: string;
8
- modalType?: string | undefined;
9
- modalData?: any;
10
- target?: string;
11
- title?: string | undefined;
12
- titlePadding?: "small" | "large";
13
- open?: boolean;
14
- enableSpaceKey?: boolean;
15
- isSelected?: boolean;
16
- showScroll?: boolean;
17
- children: any;
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
18
11
  };
19
- events: {
20
- click: PointerEvent;
21
- restore: CustomEvent<any>;
22
- spaceKey: CustomEvent<any>;
23
- close: CustomEvent<any>;
24
- } & {
25
- [evt: string]: CustomEvent<any>;
26
- };
27
- slots: {};
28
- };
29
- export type BaseModalProps = typeof __propDef.props;
30
- export type BaseModalEvents = typeof __propDef.events;
31
- export type BaseModalSlots = typeof __propDef.slots;
32
- export default class BaseModal extends SvelteComponentTyped<BaseModalProps, BaseModalEvents, BaseModalSlots> {
12
+ z_$$bindings?: Bindings;
33
13
  }
34
- export {};
14
+ declare const BaseModal: $$__sveltets_2_IsomorphicComponent<{
15
+ class?: string;
16
+ style?: string;
17
+ width?: string;
18
+ height?: string;
19
+ modalType?: string | undefined;
20
+ modalData?: any;
21
+ target?: string;
22
+ title?: string | undefined;
23
+ titlePadding?: "small" | "large";
24
+ open?: boolean;
25
+ enableSpaceKey?: boolean;
26
+ isSelected?: boolean;
27
+ showScroll?: boolean;
28
+ children: any;
29
+ }, {
30
+ click: PointerEvent;
31
+ restore: CustomEvent<any>;
32
+ spaceKey: CustomEvent<any>;
33
+ close: CustomEvent<any>;
34
+ } & {
35
+ [evt: string]: CustomEvent<any>;
36
+ }, {}, {}, string>;
37
+ type BaseModal = InstanceType<typeof BaseModal>;
38
+ export default BaseModal;
@@ -101,7 +101,7 @@
101
101
  return;
102
102
  }
103
103
 
104
- console.log(`Creating ${itemType}:`, { itemName, path: currentPath });
104
+ // console.log(`Creating ${itemType}:`, { itemName, path: currentPath });
105
105
  dispatch('create', { itemName: itemName.trim(), path: currentPath });
106
106
  handleClose();
107
107
  }
@@ -1,35 +1,39 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- class?: string;
5
- style?: string;
6
- isOpen?: boolean;
7
- title?: string;
8
- showTitle?: boolean;
9
- itemType?: string;
10
- placeholder?: string;
11
- target?: string;
12
- currentPath?: string[];
13
- currentPathNames?: string[];
14
- confirmLabel?: string;
15
- cancelLabel?: string;
16
- modalType?: string;
17
- modalWidth?: string;
18
- modalHeight?: string;
19
- maxLength?: number;
20
- modalData?: Record<string, any>;
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
21
11
  };
22
- events: {
23
- create: CustomEvent<any>;
24
- cancel: CustomEvent<any>;
25
- } & {
26
- [evt: string]: CustomEvent<any>;
27
- };
28
- slots: {};
29
- };
30
- export type NewItemDialogProps = typeof __propDef.props;
31
- export type NewItemDialogEvents = typeof __propDef.events;
32
- export type NewItemDialogSlots = typeof __propDef.slots;
33
- export default class NewItemDialog extends SvelteComponentTyped<NewItemDialogProps, NewItemDialogEvents, NewItemDialogSlots> {
12
+ z_$$bindings?: Bindings;
34
13
  }
35
- export {};
14
+ declare const NewItemDialog: $$__sveltets_2_IsomorphicComponent<{
15
+ class?: string;
16
+ style?: string;
17
+ isOpen?: boolean;
18
+ title?: string;
19
+ showTitle?: boolean;
20
+ itemType?: string;
21
+ placeholder?: string;
22
+ target?: string;
23
+ currentPath?: string[];
24
+ currentPathNames?: string[];
25
+ confirmLabel?: string;
26
+ cancelLabel?: string;
27
+ modalType?: string;
28
+ modalWidth?: string;
29
+ modalHeight?: string;
30
+ maxLength?: number;
31
+ modalData?: Record<string, any>;
32
+ }, {
33
+ create: CustomEvent<any>;
34
+ cancel: CustomEvent<any>;
35
+ } & {
36
+ [evt: string]: CustomEvent<any>;
37
+ }, {}, {}, string>;
38
+ type NewItemDialog = InstanceType<typeof NewItemDialog>;
39
+ export default NewItemDialog;
@@ -19,7 +19,7 @@
19
19
  /**
20
20
  * Local Variables
21
21
  */
22
- let host: HTMLElement; // host(target) container of the portal: parent target of the portal
22
+ let host: HTMLElement | null = null; // host(target) container of the portal: parent target of the portal
23
23
  let portal: HTMLElement; // root portal element
24
24
  /** Only remove host on destroy if Portal created it (never remove editor portal slots). */
25
25
  let hostCreatedByPortal = false;
@@ -27,10 +27,10 @@
27
27
  let showLogs = false;
28
28
 
29
29
  onMount(() => {
30
- if(showLogs) console.log('DS Portal target:', target);
30
+ // if(showLogs) console.log('DS Portal target:', target);
31
31
  // If target is an HTML element, use it directly
32
32
  if (target instanceof HTMLElement) {
33
- if(showLogs) console.log('DS Portal target is an HTML element:', target);
33
+ // if(showLogs) console.log('DS Portal target is an HTML element:', target);
34
34
  host = target;
35
35
  } else {
36
36
  const targetId = (target || defaultTarget).replace(/^#/, '');
@@ -39,7 +39,7 @@
39
39
  if (!host) {
40
40
  host = document.querySelector(`.${targetId}`) as HTMLElement | null;
41
41
  }
42
- if(showLogs) console.log('DS Portal host:', host, 'target:', target);
42
+ // if(showLogs) console.log('DS Portal host:', host, 'target:', target);
43
43
 
44
44
  // Create host container if it doesn't exist
45
45
  if (!host) {
@@ -51,10 +51,10 @@
51
51
  }
52
52
  }
53
53
 
54
- if(showLogs) console.log('DS Portal target:', target, 'host:', host, 'portal:', portal);
54
+ // if(showLogs) console.log('DS Portal target:', target, 'host:', host, 'portal:', portal);
55
55
 
56
56
  // Move the portal content to the host
57
- if (portal) host.appendChild(portal);
57
+ if (portal && host) host.appendChild(portal);
58
58
  });
59
59
 
60
60
  onDestroy(() => {
@@ -1,23 +1,34 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- target?: string | HTMLElement | undefined;
5
- clickThrough?: boolean;
6
- class?: string;
7
- style?: string;
8
- clientWidth?: number;
9
- clientHeight?: number;
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
10
11
  };
11
- events: {
12
- [evt: string]: CustomEvent<any>;
13
- };
14
- slots: {
15
- default: {};
16
- };
17
- };
18
- export type PortalProps = typeof __propDef.props;
19
- export type PortalEvents = typeof __propDef.events;
20
- export type PortalSlots = typeof __propDef.slots;
21
- export default class Portal extends SvelteComponentTyped<PortalProps, PortalEvents, PortalSlots> {
12
+ z_$$bindings?: Bindings;
22
13
  }
23
- export {};
14
+ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
15
+ default: any;
16
+ } ? Props extends Record<string, never> ? any : {
17
+ children?: any;
18
+ } : {});
19
+ declare const Portal: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
20
+ target?: string | HTMLElement | undefined;
21
+ clickThrough?: boolean;
22
+ class?: string;
23
+ style?: string;
24
+ clientWidth?: number;
25
+ clientHeight?: number;
26
+ }, {
27
+ default: {};
28
+ }>, {
29
+ [evt: string]: CustomEvent<any>;
30
+ }, {
31
+ default: {};
32
+ }, {}, string>;
33
+ type Portal = InstanceType<typeof Portal>;
34
+ export default Portal;