dishui 0.0.65 → 0.0.66

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 (500) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +10 -11
  2. package/dist/chart.js +12 -46
  3. package/dist/code-editor.js +16 -43
  4. package/dist/components/Badge/index.js +10 -15
  5. package/dist/components/Badge/index.js.map +1 -1
  6. package/dist/components/Button/index.js +62 -89
  7. package/dist/components/Button/index.js.map +1 -1
  8. package/dist/components/Card/index.d.ts +76 -0
  9. package/dist/components/Card/index.js +178 -69
  10. package/dist/components/Card/index.js.map +1 -1
  11. package/dist/components/Chart/Chart.js +25 -25
  12. package/dist/components/Chart/Chart.js.map +1 -1
  13. package/dist/components/Checkbox/index.js +57 -65
  14. package/dist/components/Checkbox/index.js.map +1 -1
  15. package/dist/components/ChoicePicker/index.d.ts +44 -0
  16. package/dist/components/ChoicePicker/index.js +81 -0
  17. package/dist/components/ChoicePicker/index.js.map +1 -0
  18. package/dist/components/Column/index.d.ts +28 -0
  19. package/dist/components/Column/index.js +30 -0
  20. package/dist/components/Column/index.js.map +1 -0
  21. package/dist/components/DateTimeInput/index.d.ts +44 -0
  22. package/dist/components/DateTimeInput/index.js +48 -0
  23. package/dist/components/DateTimeInput/index.js.map +1 -0
  24. package/dist/components/Demo/index.js +107 -107
  25. package/dist/components/Demo/index.js.map +1 -1
  26. package/dist/components/Divider/index.d.ts +20 -0
  27. package/dist/components/Divider/index.js +30 -0
  28. package/dist/components/Divider/index.js.map +1 -0
  29. package/dist/components/EmptyState/index.js +24 -24
  30. package/dist/components/EmptyState/index.js.map +1 -1
  31. package/dist/components/FileUploader/DropZone.js +134 -136
  32. package/dist/components/FileUploader/DropZone.js.map +1 -1
  33. package/dist/components/FileUploader/FileItem.js +159 -163
  34. package/dist/components/FileUploader/FileItem.js.map +1 -1
  35. package/dist/components/FileUploader/FileUploader.js +126 -127
  36. package/dist/components/FileUploader/FileUploader.js.map +1 -1
  37. package/dist/components/FileUploader/UploadQueue.js +62 -62
  38. package/dist/components/FileUploader/UploadQueue.js.map +1 -1
  39. package/dist/components/FloatWindow/index.d.ts +28 -0
  40. package/dist/components/GridLayout/index.d.ts +42 -0
  41. package/dist/components/Icon/index.d.ts +24 -0
  42. package/dist/components/Icon/index.js +26 -0
  43. package/dist/components/Icon/index.js.map +1 -0
  44. package/dist/components/Image/index.d.ts +33 -0
  45. package/dist/components/Image/index.js +44 -0
  46. package/dist/components/Image/index.js.map +1 -0
  47. package/dist/components/Input/index.js +196 -197
  48. package/dist/components/Input/index.js.map +1 -1
  49. package/dist/components/Label/index.js +62 -74
  50. package/dist/components/Label/index.js.map +1 -1
  51. package/dist/components/Layout/index.js +134 -139
  52. package/dist/components/Layout/index.js.map +1 -1
  53. package/dist/components/List/index.js +45 -58
  54. package/dist/components/List/index.js.map +1 -1
  55. package/dist/components/Markdown/Markdown.js +106 -107
  56. package/dist/components/Markdown/Markdown.js.map +1 -1
  57. package/dist/components/Markdown/codeThemes.js +24 -33
  58. package/dist/components/Markdown/codeThemes.js.map +1 -1
  59. package/dist/components/Markdown/markdownComponents.js +203 -208
  60. package/dist/components/Markdown/markdownComponents.js.map +1 -1
  61. package/dist/components/Markdown/parseCodeBlockMeta.js +22 -22
  62. package/dist/components/Markdown/parseCodeBlockMeta.js.map +1 -1
  63. package/dist/components/Markdown/useMarkdownSource.js +46 -46
  64. package/dist/components/Markdown/useMarkdownSource.js.map +1 -1
  65. package/dist/components/Markdown/useMarkmapRenderer.js +35 -36
  66. package/dist/components/Markdown/useMarkmapRenderer.js.map +1 -1
  67. package/dist/components/Markdown/useMermaidRenderer.js +41 -42
  68. package/dist/components/Markdown/useMermaidRenderer.js.map +1 -1
  69. package/dist/components/Modal/index.js +82 -82
  70. package/dist/components/Modal/index.js.map +1 -1
  71. package/dist/components/MultipleChoice/index.d.ts +44 -0
  72. package/dist/components/MultipleChoice/index.js +52 -0
  73. package/dist/components/MultipleChoice/index.js.map +1 -0
  74. package/dist/components/Notification/index.d.ts +17 -0
  75. package/dist/components/Page/index.js +40 -71
  76. package/dist/components/Page/index.js.map +1 -1
  77. package/dist/components/PageHeader/index.js +28 -28
  78. package/dist/components/PageHeader/index.js.map +1 -1
  79. package/dist/components/ProtectedRoute/index.js +8 -9
  80. package/dist/components/ProtectedRoute/index.js.map +1 -1
  81. package/dist/components/Row/index.d.ts +28 -0
  82. package/dist/components/Row/index.js +30 -0
  83. package/dist/components/Row/index.js.map +1 -0
  84. package/dist/components/Select/index.js +251 -254
  85. package/dist/components/Select/index.js.map +1 -1
  86. package/dist/components/SidebarToggleButton/index.js +56 -59
  87. package/dist/components/SidebarToggleButton/index.js.map +1 -1
  88. package/dist/components/Slider/index.d.ts +39 -0
  89. package/dist/components/Slider/index.js +52 -0
  90. package/dist/components/Slider/index.js.map +1 -0
  91. package/dist/components/StatCard/index.d.ts +29 -1
  92. package/dist/components/StatCard/index.js +189 -86
  93. package/dist/components/StatCard/index.js.map +1 -1
  94. package/dist/components/Switch/index.d.ts +34 -0
  95. package/dist/components/Switch/index.js +55 -0
  96. package/dist/components/Switch/index.js.map +1 -0
  97. package/dist/components/Tab/index.d.ts +40 -0
  98. package/dist/components/Table/index.js +109 -121
  99. package/dist/components/Table/index.js.map +1 -1
  100. package/dist/components/Tabs/index.js +28 -38
  101. package/dist/components/Tabs/index.js.map +1 -1
  102. package/dist/components/Text/index.d.ts +43 -0
  103. package/dist/components/Text/index.js +55 -0
  104. package/dist/components/Text/index.js.map +1 -0
  105. package/dist/components/Tooltip/index.d.ts +23 -0
  106. package/dist/components/Tooltip/index.js +34 -0
  107. package/dist/components/Tooltip/index.js.map +1 -0
  108. package/dist/components/Tree/Tree.js +205 -205
  109. package/dist/components/Tree/Tree.js.map +1 -1
  110. package/dist/components/pro/ArticleContextMenu/index.js +86 -87
  111. package/dist/components/pro/ArticleContextMenu/index.js.map +1 -1
  112. package/dist/components/pro/ArticleControl/ArticleControl2.js +250 -250
  113. package/dist/components/pro/ArticleControl/ArticleControl2.js.map +1 -1
  114. package/dist/components/pro/ArticleControl/buildHeadingTree.js +31 -32
  115. package/dist/components/pro/ArticleControl/buildHeadingTree.js.map +1 -1
  116. package/dist/components/pro/ArticleControl/useArticleToc.js +100 -102
  117. package/dist/components/pro/ArticleControl/useArticleToc.js.map +1 -1
  118. package/dist/components/pro/Calendar/Calendar.d.ts +10 -0
  119. package/dist/components/pro/Calendar/hooks/useCalendarDrag.d.ts +47 -0
  120. package/dist/components/pro/Calendar/hooks/useCalendarState.d.ts +56 -0
  121. package/dist/components/pro/Calendar/index.d.ts +7 -0
  122. package/dist/components/pro/Calendar/types.d.ts +151 -0
  123. package/dist/components/pro/Calendar/utils.d.ts +94 -0
  124. package/dist/components/pro/Chat/Chat.d.ts +6 -0
  125. package/dist/components/pro/Chat/index.d.ts +2 -0
  126. package/dist/components/pro/Chat/types.d.ts +84 -0
  127. package/dist/components/pro/CodeEditor/editors/CodeEditor.js +287 -327
  128. package/dist/components/pro/CodeEditor/editors/CodeEditor.js.map +1 -1
  129. package/dist/components/pro/CodeEditor/editors/MarkdownEditor.js +167 -224
  130. package/dist/components/pro/CodeEditor/editors/MarkdownEditor.js.map +1 -1
  131. package/dist/components/pro/CodeEditor/editors/markdownExtensions.js +594 -613
  132. package/dist/components/pro/CodeEditor/editors/markdownExtensions.js.map +1 -1
  133. package/dist/components/pro/CodeEditor/extensions/contextMenu.js +54 -55
  134. package/dist/components/pro/CodeEditor/extensions/contextMenu.js.map +1 -1
  135. package/dist/components/pro/CodeEditor/extensions/index.js +152 -160
  136. package/dist/components/pro/CodeEditor/extensions/index.js.map +1 -1
  137. package/dist/components/pro/CodeEditor/langs/index.js +7 -15
  138. package/dist/components/pro/CodeEditor/langs/index.js.map +1 -1
  139. package/dist/components/pro/CodeEditor/langs/javascript.js +11 -48
  140. package/dist/components/pro/CodeEditor/langs/javascript.js.map +1 -1
  141. package/dist/components/pro/CodeEditor/langs/python.js +4 -40
  142. package/dist/components/pro/CodeEditor/langs/python.js.map +1 -1
  143. package/dist/components/pro/CodeEditor/langs/snippets.js +118 -147
  144. package/dist/components/pro/CodeEditor/langs/snippets.js.map +1 -1
  145. package/dist/components/pro/CodeEditor/panels/FootnotePanel.js +153 -153
  146. package/dist/components/pro/CodeEditor/panels/FootnotePanel.js.map +1 -1
  147. package/dist/components/pro/CodeEditor/panels/HistoryPanel.js +180 -190
  148. package/dist/components/pro/CodeEditor/panels/HistoryPanel.js.map +1 -1
  149. package/dist/components/pro/CodeEditor/panels/OutlinePanel.js +130 -137
  150. package/dist/components/pro/CodeEditor/panels/OutlinePanel.js.map +1 -1
  151. package/dist/components/pro/CodeEditor/panels/TableOfContentsPanel.js +228 -242
  152. package/dist/components/pro/CodeEditor/panels/TableOfContentsPanel.js.map +1 -1
  153. package/dist/components/pro/CodeEditor/panels/VariablePanel.js +208 -248
  154. package/dist/components/pro/CodeEditor/panels/VariablePanel.js.map +1 -1
  155. package/dist/components/pro/CodeEditor/themes.js +513 -483
  156. package/dist/components/pro/CodeEditor/themes.js.map +1 -1
  157. package/dist/components/pro/CodeEditor/types.d.ts +1 -1
  158. package/dist/components/pro/CodeEditor/utils.js +171 -175
  159. package/dist/components/pro/CodeEditor/utils.js.map +1 -1
  160. package/dist/components/pro/DataTable/DataTable.js +305 -306
  161. package/dist/components/pro/DataTable/DataTable.js.map +1 -1
  162. package/dist/components/pro/DataTable/Filters.js +299 -314
  163. package/dist/components/pro/DataTable/Filters.js.map +1 -1
  164. package/dist/components/pro/DataTable/PivotPanel.js +203 -204
  165. package/dist/components/pro/DataTable/PivotPanel.js.map +1 -1
  166. package/dist/components/pro/DataTable/PivotView.js +142 -144
  167. package/dist/components/pro/DataTable/PivotView.js.map +1 -1
  168. package/dist/components/pro/DataTable/components/BulkActions.js +42 -42
  169. package/dist/components/pro/DataTable/components/BulkActions.js.map +1 -1
  170. package/dist/components/pro/DataTable/components/ColumnSelector.js +84 -84
  171. package/dist/components/pro/DataTable/components/ColumnSelector.js.map +1 -1
  172. package/dist/components/pro/DataTable/components/FilterBar.js +58 -58
  173. package/dist/components/pro/DataTable/components/FilterBar.js.map +1 -1
  174. package/dist/components/pro/DataTable/components/TableBody.js +93 -94
  175. package/dist/components/pro/DataTable/components/TableBody.js.map +1 -1
  176. package/dist/components/pro/DataTable/components/TableHeader.js +78 -78
  177. package/dist/components/pro/DataTable/components/TableHeader.js.map +1 -1
  178. package/dist/components/pro/DataTable/components/TablePagination.js +77 -77
  179. package/dist/components/pro/DataTable/components/TablePagination.js.map +1 -1
  180. package/dist/components/pro/DataTable/components/TableToolbar.js +40 -40
  181. package/dist/components/pro/DataTable/components/TableToolbar.js.map +1 -1
  182. package/dist/components/pro/DataTable/extension.js +5 -5
  183. package/dist/components/pro/DataTable/extension.js.map +1 -1
  184. package/dist/components/pro/DataTable/pivotEngine.js +84 -92
  185. package/dist/components/pro/DataTable/pivotEngine.js.map +1 -1
  186. package/dist/components/pro/DataTable/pivotExtension.js +93 -93
  187. package/dist/components/pro/DataTable/pivotExtension.js.map +1 -1
  188. package/dist/components/pro/DataTable/rowDetailExtension.js +30 -30
  189. package/dist/components/pro/DataTable/rowDetailExtension.js.map +1 -1
  190. package/dist/components/pro/DataTable/tanstack-table.js +45 -62
  191. package/dist/components/pro/DataTable/tanstack-table.js.map +1 -1
  192. package/dist/components/pro/DataTable/treeDataUtils.js +37 -48
  193. package/dist/components/pro/DataTable/treeDataUtils.js.map +1 -1
  194. package/dist/components/pro/DataTable/useColumnDragReorder.js +68 -68
  195. package/dist/components/pro/DataTable/useColumnDragReorder.js.map +1 -1
  196. package/dist/components/pro/DataTable/utils.js +156 -168
  197. package/dist/components/pro/DataTable/utils.js.map +1 -1
  198. package/dist/components/pro/FileExplorer/Breadcrumb.js +180 -180
  199. package/dist/components/pro/FileExplorer/Breadcrumb.js.map +1 -1
  200. package/dist/components/pro/FileExplorer/CreateDialog.js +78 -78
  201. package/dist/components/pro/FileExplorer/CreateDialog.js.map +1 -1
  202. package/dist/components/pro/FileExplorer/FileExplorer.js +202 -205
  203. package/dist/components/pro/FileExplorer/FileExplorer.js.map +1 -1
  204. package/dist/components/pro/FileExplorer/FileIcon.js +189 -189
  205. package/dist/components/pro/FileExplorer/FileIcon.js.map +1 -1
  206. package/dist/components/pro/FileExplorer/GridView.js +100 -100
  207. package/dist/components/pro/FileExplorer/GridView.js.map +1 -1
  208. package/dist/components/pro/FileExplorer/ListView.js +209 -209
  209. package/dist/components/pro/FileExplorer/ListView.js.map +1 -1
  210. package/dist/components/pro/FileExplorer/Toolbar.js +199 -199
  211. package/dist/components/pro/FileExplorer/Toolbar.js.map +1 -1
  212. package/dist/components/pro/Flow/Flow.js +920 -948
  213. package/dist/components/pro/Flow/Flow.js.map +1 -1
  214. package/dist/components/pro/Flow/FlowCanvas.js +1626 -1662
  215. package/dist/components/pro/Flow/FlowCanvas.js.map +1 -1
  216. package/dist/components/pro/Flow/archify/build.js +85 -94
  217. package/dist/components/pro/Flow/archify/build.js.map +1 -1
  218. package/dist/components/pro/Flow/archify/convert.js +512 -519
  219. package/dist/components/pro/Flow/archify/convert.js.map +1 -1
  220. package/dist/components/pro/Flow/archify/palette.js +87 -104
  221. package/dist/components/pro/Flow/archify/palette.js.map +1 -1
  222. package/dist/components/pro/Flow/archify/presets.js +34 -37
  223. package/dist/components/pro/Flow/archify/presets.js.map +1 -1
  224. package/dist/components/pro/Flow/archify/spec.js +7 -7
  225. package/dist/components/pro/Flow/archify/spec.js.map +1 -1
  226. package/dist/components/pro/Flow/canvas/AlignmentGuides.js +25 -25
  227. package/dist/components/pro/Flow/canvas/AlignmentGuides.js.map +1 -1
  228. package/dist/components/pro/Flow/canvas/GridRenderer.js +54 -55
  229. package/dist/components/pro/Flow/canvas/GridRenderer.js.map +1 -1
  230. package/dist/components/pro/Flow/canvas/MiniMapRenderer.js +54 -58
  231. package/dist/components/pro/Flow/canvas/MiniMapRenderer.js.map +1 -1
  232. package/dist/components/pro/Flow/canvas/PixiApp.js +105 -102
  233. package/dist/components/pro/Flow/canvas/PixiApp.js.map +1 -1
  234. package/dist/components/pro/Flow/canvas/SelectionOverlay.js +38 -38
  235. package/dist/components/pro/Flow/canvas/SelectionOverlay.js.map +1 -1
  236. package/dist/components/pro/Flow/canvas/ViewportContainer.js +117 -117
  237. package/dist/components/pro/Flow/canvas/ViewportContainer.js.map +1 -1
  238. package/dist/components/pro/Flow/constants.js +266 -278
  239. package/dist/components/pro/Flow/constants.js.map +1 -1
  240. package/dist/components/pro/Flow/context/FlowAIContext.js +27 -28
  241. package/dist/components/pro/Flow/context/FlowAIContext.js.map +1 -1
  242. package/dist/components/pro/Flow/context/FlowContext.js +60 -61
  243. package/dist/components/pro/Flow/context/FlowContext.js.map +1 -1
  244. package/dist/components/pro/Flow/context/FlowUIContext.js +115 -117
  245. package/dist/components/pro/Flow/context/FlowUIContext.js.map +1 -1
  246. package/dist/components/pro/Flow/edges/EdgeRenderer.js +135 -138
  247. package/dist/components/pro/Flow/edges/EdgeRenderer.js.map +1 -1
  248. package/dist/components/pro/Flow/edges/edgeMarkers.js +11 -14
  249. package/dist/components/pro/Flow/edges/edgeMarkers.js.map +1 -1
  250. package/dist/components/pro/Flow/edges/edgePaths.js +351 -367
  251. package/dist/components/pro/Flow/edges/edgePaths.js.map +1 -1
  252. package/dist/components/pro/Flow/hooks/useAlignmentGuides.js +49 -52
  253. package/dist/components/pro/Flow/hooks/useAlignmentGuides.js.map +1 -1
  254. package/dist/components/pro/Flow/hooks/useClipboard.js +154 -154
  255. package/dist/components/pro/Flow/hooks/useClipboard.js.map +1 -1
  256. package/dist/components/pro/Flow/hooks/useCompactMode.js +17 -17
  257. package/dist/components/pro/Flow/hooks/useCompactMode.js.map +1 -1
  258. package/dist/components/pro/Flow/hooks/useDeleteSelection.js +40 -40
  259. package/dist/components/pro/Flow/hooks/useDeleteSelection.js.map +1 -1
  260. package/dist/components/pro/Flow/hooks/useDraggablePanel.js +51 -51
  261. package/dist/components/pro/Flow/hooks/useDraggablePanel.js.map +1 -1
  262. package/dist/components/pro/Flow/hooks/useEdgeMutations.js +157 -157
  263. package/dist/components/pro/Flow/hooks/useEdgeMutations.js.map +1 -1
  264. package/dist/components/pro/Flow/hooks/useFlowImportExport.js +190 -201
  265. package/dist/components/pro/Flow/hooks/useFlowImportExport.js.map +1 -1
  266. package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.js +32 -38
  267. package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.js.map +1 -1
  268. package/dist/components/pro/Flow/hooks/useLayoutActions.js +172 -180
  269. package/dist/components/pro/Flow/hooks/useLayoutActions.js.map +1 -1
  270. package/dist/components/pro/Flow/hooks/useLineMutations.js +57 -57
  271. package/dist/components/pro/Flow/hooks/useLineMutations.js.map +1 -1
  272. package/dist/components/pro/Flow/hooks/useMindMap.js +229 -238
  273. package/dist/components/pro/Flow/hooks/useMindMap.js.map +1 -1
  274. package/dist/components/pro/Flow/hooks/useNodeMutations.js +102 -102
  275. package/dist/components/pro/Flow/hooks/useNodeMutations.js.map +1 -1
  276. package/dist/components/pro/Flow/hooks/usePdfExport.js +55 -56
  277. package/dist/components/pro/Flow/hooks/usePdfExport.js.map +1 -1
  278. package/dist/components/pro/Flow/hooks/usePixiApp.js +55 -57
  279. package/dist/components/pro/Flow/hooks/usePixiApp.js.map +1 -1
  280. package/dist/components/pro/Flow/hooks/useResizablePanel.js +31 -31
  281. package/dist/components/pro/Flow/hooks/useResizablePanel.js.map +1 -1
  282. package/dist/components/pro/Flow/hooks/useSelection.js +69 -69
  283. package/dist/components/pro/Flow/hooks/useSelection.js.map +1 -1
  284. package/dist/components/pro/Flow/hooks/useUndoRedo.js +27 -27
  285. package/dist/components/pro/Flow/hooks/useUndoRedo.js.map +1 -1
  286. package/dist/components/pro/Flow/hooks/useViewport.js +28 -28
  287. package/dist/components/pro/Flow/hooks/useViewport.js.map +1 -1
  288. package/dist/components/pro/Flow/lines/FreehandTool.js +63 -63
  289. package/dist/components/pro/Flow/lines/FreehandTool.js.map +1 -1
  290. package/dist/components/pro/Flow/lines/GeometricLineTool.js +80 -80
  291. package/dist/components/pro/Flow/lines/GeometricLineTool.js.map +1 -1
  292. package/dist/components/pro/Flow/lines/LineRenderer.js +88 -88
  293. package/dist/components/pro/Flow/lines/LineRenderer.js.map +1 -1
  294. package/dist/components/pro/Flow/lines/lineSmoothing.js +32 -34
  295. package/dist/components/pro/Flow/lines/lineSmoothing.js.map +1 -1
  296. package/dist/components/pro/Flow/nodes/DataNodeView.js +236 -242
  297. package/dist/components/pro/Flow/nodes/DataNodeView.js.map +1 -1
  298. package/dist/components/pro/Flow/nodes/MediaContent.js +236 -246
  299. package/dist/components/pro/Flow/nodes/MediaContent.js.map +1 -1
  300. package/dist/components/pro/Flow/nodes/MediaOverlay.js +63 -63
  301. package/dist/components/pro/Flow/nodes/MediaOverlay.js.map +1 -1
  302. package/dist/components/pro/Flow/nodes/Model3DView.js +111 -113
  303. package/dist/components/pro/Flow/nodes/Model3DView.js.map +1 -1
  304. package/dist/components/pro/Flow/nodes/NodeHandles.js +74 -80
  305. package/dist/components/pro/Flow/nodes/NodeHandles.js.map +1 -1
  306. package/dist/components/pro/Flow/nodes/NodeRenderer.js +303 -314
  307. package/dist/components/pro/Flow/nodes/NodeRenderer.js.map +1 -1
  308. package/dist/components/pro/Flow/nodes/NodeText.js +25 -29
  309. package/dist/components/pro/Flow/nodes/NodeText.js.map +1 -1
  310. package/dist/components/pro/Flow/nodes/aiClient.js +124 -137
  311. package/dist/components/pro/Flow/nodes/aiClient.js.map +1 -1
  312. package/dist/components/pro/Flow/nodes/animAnchors.js +42 -49
  313. package/dist/components/pro/Flow/nodes/animAnchors.js.map +1 -1
  314. package/dist/components/pro/Flow/nodes/dataUtils.js +246 -267
  315. package/dist/components/pro/Flow/nodes/dataUtils.js.map +1 -1
  316. package/dist/components/pro/Flow/nodes/nodeUtils.js +23 -28
  317. package/dist/components/pro/Flow/nodes/nodeUtils.js.map +1 -1
  318. package/dist/components/pro/Flow/nodes/shapes.js +556 -589
  319. package/dist/components/pro/Flow/nodes/shapes.js.map +1 -1
  320. package/dist/components/pro/Flow/nodes/svgIconTexture.js +37 -39
  321. package/dist/components/pro/Flow/nodes/svgIconTexture.js.map +1 -1
  322. package/dist/components/pro/Flow/nodes/svgIcons.js +684 -689
  323. package/dist/components/pro/Flow/nodes/svgIcons.js.map +1 -1
  324. package/dist/components/pro/Flow/panels/AIPanel.js +464 -491
  325. package/dist/components/pro/Flow/panels/AIPanel.js.map +1 -1
  326. package/dist/components/pro/Flow/panels/Breadcrumb.js +41 -41
  327. package/dist/components/pro/Flow/panels/Breadcrumb.js.map +1 -1
  328. package/dist/components/pro/Flow/panels/ContextMenu.js +37 -37
  329. package/dist/components/pro/Flow/panels/ContextMenu.js.map +1 -1
  330. package/dist/components/pro/Flow/panels/DataInspectorSection.js +428 -432
  331. package/dist/components/pro/Flow/panels/DataInspectorSection.js.map +1 -1
  332. package/dist/components/pro/Flow/panels/ExpandableTextarea.js +61 -62
  333. package/dist/components/pro/Flow/panels/ExpandableTextarea.js.map +1 -1
  334. package/dist/components/pro/Flow/panels/FlowPanelGroup.js +114 -114
  335. package/dist/components/pro/Flow/panels/FlowPanelGroup.js.map +1 -1
  336. package/dist/components/pro/Flow/panels/FlowToolbar.js +347 -391
  337. package/dist/components/pro/Flow/panels/FlowToolbar.js.map +1 -1
  338. package/dist/components/pro/Flow/panels/InspectorPanel.js +1792 -1798
  339. package/dist/components/pro/Flow/panels/InspectorPanel.js.map +1 -1
  340. package/dist/components/pro/Flow/panels/OutlinePanel.js +242 -248
  341. package/dist/components/pro/Flow/panels/OutlinePanel.js.map +1 -1
  342. package/dist/components/pro/Flow/panels/PresentationMode.js +137 -140
  343. package/dist/components/pro/Flow/panels/PresentationMode.js.map +1 -1
  344. package/dist/components/pro/Flow/panels/ProjectTitle.js +46 -46
  345. package/dist/components/pro/Flow/panels/ProjectTitle.js.map +1 -1
  346. package/dist/components/pro/Flow/panels/ShapePalette.js +557 -572
  347. package/dist/components/pro/Flow/panels/ShapePalette.js.map +1 -1
  348. package/dist/components/pro/Flow/panels/toolbarIcons.d.ts +0 -1
  349. package/dist/components/pro/Flow/panels/toolbarIcons.js +508 -557
  350. package/dist/components/pro/Flow/panels/toolbarIcons.js.map +1 -1
  351. package/dist/components/pro/Flow/types.js +26 -26
  352. package/dist/components/pro/Flow/types.js.map +1 -1
  353. package/dist/components/pro/Flow/utils/dashedLine.js +113 -117
  354. package/dist/components/pro/Flow/utils/dashedLine.js.map +1 -1
  355. package/dist/components/pro/Flow/utils/gradient.js +55 -55
  356. package/dist/components/pro/Flow/utils/gradient.js.map +1 -1
  357. package/dist/components/pro/Flow/utils/pdfExport.js +50 -89
  358. package/dist/components/pro/Flow/utils/pdfExport.js.map +1 -1
  359. package/dist/components/pro/Flow/utils/themeColor.js +185 -195
  360. package/dist/components/pro/Flow/utils/themeColor.js.map +1 -1
  361. package/dist/components/pro/Gantt/Gantt.d.ts +7 -0
  362. package/dist/components/pro/Gantt/hooks/useGanttDrag.d.ts +31 -0
  363. package/dist/components/pro/Gantt/hooks/useGanttState.d.ts +58 -0
  364. package/dist/components/pro/Gantt/index.d.ts +6 -0
  365. package/dist/components/pro/Gantt/types.d.ts +478 -0
  366. package/dist/components/pro/Gantt/utils.d.ts +124 -0
  367. package/dist/components/pro/Resizable/Resizable.d.ts +30 -0
  368. package/dist/components/pro/Resizable/index.d.ts +2 -0
  369. package/dist/components/pro/RichTextEditor/AIRewrite.js +323 -334
  370. package/dist/components/pro/RichTextEditor/AIRewrite.js.map +1 -1
  371. package/dist/components/pro/RichTextEditor/BlockHandle.js +314 -316
  372. package/dist/components/pro/RichTextEditor/BlockHandle.js.map +1 -1
  373. package/dist/components/pro/RichTextEditor/BubbleToolbar.js +97 -97
  374. package/dist/components/pro/RichTextEditor/BubbleToolbar.js.map +1 -1
  375. package/dist/components/pro/RichTextEditor/CommentDialog.js +88 -88
  376. package/dist/components/pro/RichTextEditor/CommentDialog.js.map +1 -1
  377. package/dist/components/pro/RichTextEditor/CommentPanel.js +240 -240
  378. package/dist/components/pro/RichTextEditor/CommentPanel.js.map +1 -1
  379. package/dist/components/pro/RichTextEditor/CommentPopover.js +234 -234
  380. package/dist/components/pro/RichTextEditor/CommentPopover.js.map +1 -1
  381. package/dist/components/pro/RichTextEditor/ContextMenu.js +251 -252
  382. package/dist/components/pro/RichTextEditor/ContextMenu.js.map +1 -1
  383. package/dist/components/pro/RichTextEditor/RichTextEditor.js +267 -271
  384. package/dist/components/pro/RichTextEditor/RichTextEditor.js.map +1 -1
  385. package/dist/components/pro/RichTextEditor/SlashMenu.js +214 -214
  386. package/dist/components/pro/RichTextEditor/SlashMenu.js.map +1 -1
  387. package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.js +44 -75
  388. package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.js.map +1 -1
  389. package/dist/components/pro/RichTextEditor/Toolbar/FloatingDialogMenu.js +261 -261
  390. package/dist/components/pro/RichTextEditor/Toolbar/FloatingDialogMenu.js.map +1 -1
  391. package/dist/components/pro/RichTextEditor/Toolbar/MarkdownTemplates.js +172 -526
  392. package/dist/components/pro/RichTextEditor/Toolbar/MarkdownTemplates.js.map +1 -1
  393. package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.js +112 -114
  394. package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.js.map +1 -1
  395. package/dist/components/pro/RichTextEditor/Toolbar/TableOpsMenu.js +194 -194
  396. package/dist/components/pro/RichTextEditor/Toolbar/TableOpsMenu.js.map +1 -1
  397. package/dist/components/pro/RichTextEditor/Toolbar/Toolbar.js +970 -973
  398. package/dist/components/pro/RichTextEditor/Toolbar/Toolbar.js.map +1 -1
  399. package/dist/components/pro/RichTextEditor/Toolbar/ToolbarButton.js +11 -12
  400. package/dist/components/pro/RichTextEditor/Toolbar/ToolbarButton.js.map +1 -1
  401. package/dist/components/pro/RichTextEditor/extensions/CodeBlockView.js +310 -344
  402. package/dist/components/pro/RichTextEditor/extensions/CodeBlockView.js.map +1 -1
  403. package/dist/components/pro/RichTextEditor/extensions/CommentMark.js +38 -39
  404. package/dist/components/pro/RichTextEditor/extensions/CommentMark.js.map +1 -1
  405. package/dist/components/pro/RichTextEditor/extensions/FloatingDialog.js +620 -625
  406. package/dist/components/pro/RichTextEditor/extensions/FloatingDialog.js.map +1 -1
  407. package/dist/components/pro/RichTextEditor/extensions/FontSize.js +25 -25
  408. package/dist/components/pro/RichTextEditor/extensions/FontSize.js.map +1 -1
  409. package/dist/components/pro/RichTextEditor/extensions/MarkdownBlock.js +167 -176
  410. package/dist/components/pro/RichTextEditor/extensions/MarkdownBlock.js.map +1 -1
  411. package/dist/components/pro/RichTextEditor/types.js +75 -75
  412. package/dist/components/pro/RichTextEditor/types.js.map +1 -1
  413. package/dist/contexts/AppContext.d.ts +1 -1
  414. package/dist/contexts/AppContext.js +216 -221
  415. package/dist/contexts/AppContext.js.map +1 -1
  416. package/dist/data-table.js +15 -41
  417. package/dist/data-table.js.map +1 -1
  418. package/dist/dishui.css +1 -1
  419. package/dist/flow.js +27 -83
  420. package/dist/hooks/useClickOutside.js +18 -18
  421. package/dist/hooks/useClickOutside.js.map +1 -1
  422. package/dist/hooks/useContainerElement.js +9 -9
  423. package/dist/hooks/useContainerElement.js.map +1 -1
  424. package/dist/hooks/useControllableState.js +33 -35
  425. package/dist/hooks/useControllableState.js.map +1 -1
  426. package/dist/hooks/useCopyToClipboard.js +16 -16
  427. package/dist/hooks/useCopyToClipboard.js.map +1 -1
  428. package/dist/hooks/useDebounce.js +14 -14
  429. package/dist/hooks/useDebounce.js.map +1 -1
  430. package/dist/hooks/useDraggable.js +50 -50
  431. package/dist/hooks/useDraggable.js.map +1 -1
  432. package/dist/hooks/useTableColumns.js +39 -41
  433. package/dist/hooks/useTableColumns.js.map +1 -1
  434. package/dist/hooks/useTableData.js +67 -68
  435. package/dist/hooks/useTableData.js.map +1 -1
  436. package/dist/index-nostyled.d.ts +8 -0
  437. package/dist/index.d.ts +27 -1
  438. package/dist/index.js +105 -241
  439. package/dist/layouts/MainLayout.js +56 -56
  440. package/dist/layouts/MainLayout.js.map +1 -1
  441. package/dist/layouts/Navbar.js +214 -214
  442. package/dist/layouts/Navbar.js.map +1 -1
  443. package/dist/layouts/Sidebar.js +184 -186
  444. package/dist/layouts/Sidebar.js.map +1 -1
  445. package/dist/layouts/headbar/Headbar.js +25 -25
  446. package/dist/layouts/headbar/Headbar.js.map +1 -1
  447. package/dist/layouts/headbar/HeadbarLangSwitcher.js +39 -39
  448. package/dist/layouts/headbar/HeadbarLangSwitcher.js.map +1 -1
  449. package/dist/layouts/headbar/HeadbarSearch.js +120 -120
  450. package/dist/layouts/headbar/HeadbarSearch.js.map +1 -1
  451. package/dist/layouts/headbar/HeadbarThemeSwitcher.js +27 -27
  452. package/dist/layouts/headbar/HeadbarThemeSwitcher.js.map +1 -1
  453. package/dist/layouts/headbar/HeadbarTitle.js +26 -26
  454. package/dist/layouts/headbar/HeadbarTitle.js.map +1 -1
  455. package/dist/lite.js +9 -24
  456. package/dist/markdown.js +4 -9
  457. package/dist/pages/components/Calendar/index.d.ts +3 -0
  458. package/dist/pages/components/Calendar/index.en.d.ts +3 -0
  459. package/dist/pages/components/Calendar/index.zh.d.ts +3 -0
  460. package/dist/pages/components/Chat/index.d.ts +3 -0
  461. package/dist/pages/components/Chat/index.en.d.ts +3 -0
  462. package/dist/pages/components/Chat/index.zh.d.ts +3 -0
  463. package/dist/pages/components/FloatWindow/index.d.ts +3 -0
  464. package/dist/pages/components/FloatWindow/index.en.d.ts +3 -0
  465. package/dist/pages/components/FloatWindow/index.zh.d.ts +3 -0
  466. package/dist/pages/components/Gantt/index.d.ts +3 -0
  467. package/dist/pages/components/Gantt/index.en.d.ts +3 -0
  468. package/dist/pages/components/Gantt/index.zh.d.ts +3 -0
  469. package/dist/pages/components/GridLayout/index.d.ts +3 -0
  470. package/dist/pages/components/GridLayout/index.en.d.ts +3 -0
  471. package/dist/pages/components/GridLayout/index.zh.d.ts +3 -0
  472. package/dist/pages/components/Notification/index.d.ts +3 -0
  473. package/dist/pages/components/Notification/index.en.d.ts +3 -0
  474. package/dist/pages/components/Notification/index.zh.d.ts +3 -0
  475. package/dist/pages/components/Resizable/index.d.ts +3 -0
  476. package/dist/pages/components/Resizable/index.en.d.ts +3 -0
  477. package/dist/pages/components/Resizable/index.zh.d.ts +3 -0
  478. package/dist/pages/components/Tab/index.d.ts +3 -0
  479. package/dist/pages/components/Tab/index.en.d.ts +3 -0
  480. package/dist/pages/components/Tab/index.zh.d.ts +3 -0
  481. package/dist/styles/themeStyles.js +87 -86
  482. package/dist/styles/themeStyles.js.map +1 -1
  483. package/dist/utils/cn.d.ts +13 -0
  484. package/dist/utils/cn.js +16 -0
  485. package/dist/utils/cn.js.map +1 -0
  486. package/dist/utils/i18n.js +690 -602
  487. package/dist/utils/i18n.js.map +1 -1
  488. package/dist/utils/menu.js +94 -94
  489. package/dist/utils/menu.js.map +1 -1
  490. package/dist/utils/rehype-code-meta.js +14 -14
  491. package/dist/utils/rehype-code-meta.js.map +1 -1
  492. package/dist/utils/remark-code-meta.js +9 -9
  493. package/dist/utils/remark-code-meta.js.map +1 -1
  494. package/dist/utils/routerBuilder.js +59 -60
  495. package/dist/utils/routerBuilder.js.map +1 -1
  496. package/dist/utils/selection.js +28 -29
  497. package/dist/utils/selection.js.map +1 -1
  498. package/dist/utils/themes.js +275 -255
  499. package/dist/utils/themes.js.map +1 -1
  500. package/package.json +19 -6
@@ -1,585 +1,570 @@
1
- import { PALETTE_ITEMS as v } from "../constants.js";
2
- import { useFlowUI as u } from "../context/FlowUIContext.js";
3
- import { resolveThemeColor as M } from "../utils/themeColor.js";
4
- import { SVG_ICON_CATEGORIES as S, buildSvgMarkup as C, getSvgIcon as b, getSvgIconsByCategory as P } from "../nodes/svgIcons.js";
5
- import { useDraggablePanel as W } from "../hooks/useDraggablePanel.js";
6
- import { useResizablePanel as I } from "../hooks/useResizablePanel.js";
7
- import { makeStarterDataConfig as $ } from "../nodes/dataUtils.js";
8
- import { useCallback as x, useState as T } from "react";
9
- import { Fragment as k, jsx as e, jsxs as d } from "react/jsx-runtime";
10
- var N = [
11
- {
12
- mode: "freehand",
13
- label: "Freehand"
14
- },
15
- {
16
- mode: "line",
17
- label: "Line"
18
- },
19
- {
20
- mode: "polyline",
21
- label: "Polyline"
22
- },
23
- {
24
- mode: "arrow",
25
- label: "Arrow"
26
- }
1
+ import { PALETTE_ITEMS as e } from "../constants.js";
2
+ import { useFlowUI as t } from "../context/FlowUIContext.js";
3
+ import { resolveThemeColor as n } from "../utils/themeColor.js";
4
+ import { SVG_ICON_CATEGORIES as r, buildSvgMarkup as i, getSvgIcon as a, getSvgIconsByCategory as o } from "../nodes/svgIcons.js";
5
+ import { useDraggablePanel as s } from "../hooks/useDraggablePanel.js";
6
+ import { useResizablePanel as c } from "../hooks/useResizablePanel.js";
7
+ import { makeStarterDataConfig as l } from "../nodes/dataUtils.js";
8
+ import { useCallback as u, useState as d } from "react";
9
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
10
+ //#region src/components/pro/Flow/panels/ShapePalette.tsx
11
+ var h = [
12
+ {
13
+ mode: "freehand",
14
+ label: "Freehand"
15
+ },
16
+ {
17
+ mode: "line",
18
+ label: "Line"
19
+ },
20
+ {
21
+ mode: "polyline",
22
+ label: "Polyline"
23
+ },
24
+ {
25
+ mode: "arrow",
26
+ label: "Arrow"
27
+ }
27
28
  ];
28
- function Z() {
29
- const { showPalette: l } = u(), { panelStyle: c, handleProps: a } = W(), { panelWidth: t, resizeHandleProps: o } = I("right", 180);
30
- return l ? /* @__PURE__ */ d("div", {
31
- className: "flow-palette",
32
- "data-flow-panel": !0,
33
- style: {
34
- ...c,
35
- width: t
36
- },
37
- children: [
38
- /* @__PURE__ */ e("div", {
39
- className: "flow-panel-resize-handle flow-panel-resize-handle--right",
40
- ...o
41
- }),
42
- /* @__PURE__ */ e("div", {
43
- className: "flow-panel-drag-handle",
44
- ...a,
45
- style: {
46
- fontSize: 11,
47
- fontWeight: 600,
48
- marginBottom: 6,
49
- color: "color-mix(in oklch, var(--color-base-content) 50%, transparent)",
50
- textTransform: "uppercase",
51
- letterSpacing: "0.05em",
52
- cursor: "grab"
53
- },
54
- children: "Shapes"
55
- }),
56
- /* @__PURE__ */ e("div", {
57
- className: "flow-palette-content",
58
- children: /* @__PURE__ */ e(A, {})
59
- })
60
- ]
61
- }) : null;
29
+ function g() {
30
+ let { showPalette: e } = t(), { panelStyle: n, handleProps: r } = s(), { panelWidth: i, resizeHandleProps: a } = c("right", 180);
31
+ return e ? /* @__PURE__ */ m("div", {
32
+ className: "flow-palette",
33
+ "data-flow-panel": !0,
34
+ style: {
35
+ ...n,
36
+ width: i
37
+ },
38
+ children: [
39
+ /* @__PURE__ */ p("div", {
40
+ className: "flow-panel-resize-handle flow-panel-resize-handle--right",
41
+ ...a
42
+ }),
43
+ /* @__PURE__ */ p("div", {
44
+ className: "flow-panel-drag-handle",
45
+ ...r,
46
+ style: {
47
+ fontSize: 11,
48
+ fontWeight: 600,
49
+ marginBottom: 6,
50
+ color: "color-mix(in oklch, var(--color-base-content) 50%, transparent)",
51
+ textTransform: "uppercase",
52
+ letterSpacing: "0.05em",
53
+ cursor: "grab"
54
+ },
55
+ children: "Shapes"
56
+ }),
57
+ /* @__PURE__ */ p("div", {
58
+ className: "flow-palette-content",
59
+ children: /* @__PURE__ */ p(_, {})
60
+ })
61
+ ]
62
+ }) : null;
62
63
  }
63
- function A() {
64
- const { toolMode: l, setToolMode: c, setPendingPlacement: a, pendingPlacement: t } = u(), o = x((n, i, p, s) => {
65
- t?.type === n ? a(null) : (a({
66
- type: n,
67
- width: i,
68
- height: p,
69
- data: { ...s }
70
- }), c("select"));
71
- }, [
72
- a,
73
- c,
74
- t
75
- ]);
76
- return /* @__PURE__ */ d(k, { children: [
77
- /* @__PURE__ */ e("div", {
78
- className: "flow-palette-grid",
79
- children: v.map((n) => /* @__PURE__ */ d("div", {
80
- className: `flow-palette-item${t?.type === n.type ? " flow-palette-item--active" : ""}`,
81
- onClick: () => o(n.type, n.width, n.height, n.data),
82
- children: [/* @__PURE__ */ e(E, { type: n.type }), /* @__PURE__ */ e("span", {
83
- className: "flow-palette-item-label",
84
- children: n.data.label
85
- })]
86
- }, n.type))
87
- }),
88
- /* @__PURE__ */ e(z, { children: "Lines" }),
89
- /* @__PURE__ */ e("div", {
90
- className: "flow-palette-grid",
91
- children: N.map((n) => /* @__PURE__ */ d("div", {
92
- className: `flow-palette-item${l === n.mode ? " flow-palette-item--active" : ""}`,
93
- onClick: () => {
94
- a(null), c(l === n.mode ? "select" : n.mode);
95
- },
96
- children: [/* @__PURE__ */ e(B, { mode: n.mode }), /* @__PURE__ */ e("span", {
97
- className: "flow-palette-item-label",
98
- children: n.label
99
- })]
100
- }, n.mode))
101
- })
102
- ] });
64
+ function _() {
65
+ let { toolMode: n, setToolMode: r, setPendingPlacement: i, pendingPlacement: a } = t(), o = u((e, t, n, o) => {
66
+ a?.type === e ? i(null) : (i({
67
+ type: e,
68
+ width: t,
69
+ height: n,
70
+ data: { ...o }
71
+ }), r("select"));
72
+ }, [
73
+ i,
74
+ r,
75
+ a
76
+ ]);
77
+ return /* @__PURE__ */ m(f, { children: [
78
+ /* @__PURE__ */ p("div", {
79
+ className: "flow-palette-grid",
80
+ children: e.map((e) => /* @__PURE__ */ m("div", {
81
+ className: `flow-palette-item${a?.type === e.type ? " flow-palette-item--active" : ""}`,
82
+ onClick: () => o(e.type, e.width, e.height, e.data),
83
+ children: [/* @__PURE__ */ p(w, { type: e.type }), /* @__PURE__ */ p("span", {
84
+ className: "flow-palette-item-label",
85
+ children: e.data.label
86
+ })]
87
+ }, e.type))
88
+ }),
89
+ /* @__PURE__ */ p(C, { children: "Lines" }),
90
+ /* @__PURE__ */ p("div", {
91
+ className: "flow-palette-grid",
92
+ children: h.map((e) => /* @__PURE__ */ m("div", {
93
+ className: `flow-palette-item${n === e.mode ? " flow-palette-item--active" : ""}`,
94
+ onClick: () => {
95
+ i(null), r(n === e.mode ? "select" : e.mode);
96
+ },
97
+ children: [/* @__PURE__ */ p(T, { mode: e.mode }), /* @__PURE__ */ p("span", {
98
+ className: "flow-palette-item-label",
99
+ children: e.label
100
+ })]
101
+ }, e.mode))
102
+ })
103
+ ] });
103
104
  }
104
- function q() {
105
- const { setPendingPlacement: l, setToolMode: c, pendingPlacement: a } = u(), [t, o] = T({ lang: !0 }), n = x((i, p) => {
106
- const s = a?.data.svgId;
107
- if (a?.type === "shapeSvg" && s === i) {
108
- l(null);
109
- return;
110
- }
111
- const r = {
112
- label: p,
113
- fill: "transparent",
114
- stroke: "theme:base-content",
115
- strokeWidth: 1.5,
116
- color: b(i)?.brandColor ?? "theme:base-content",
117
- labelColor: "theme:base-content",
118
- fontSize: 12,
119
- svgId: i,
120
- iconBox: !1,
121
- labelPlacement: "bottom",
122
- borderStyle: "none"
123
- };
124
- l({
125
- type: "shapeSvg",
126
- width: 56,
127
- height: 56,
128
- data: r
129
- }), c("select");
130
- }, [
131
- a,
132
- l,
133
- c
134
- ]);
135
- return /* @__PURE__ */ e(k, { children: S.map((i) => {
136
- const p = P(i.id), s = t[i.id];
137
- return /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ d("button", {
138
- type: "button",
139
- className: "flow-palette-section-toggle",
140
- onClick: () => o((r) => ({
141
- ...r,
142
- [i.id]: !r[i.id]
143
- })),
144
- children: [/* @__PURE__ */ e("span", {
145
- style: {
146
- transform: s ? "rotate(90deg)" : "none",
147
- transition: "transform .15s"
148
- },
149
- children: "▸"
150
- }), i.label]
151
- }), s && /* @__PURE__ */ e("div", {
152
- className: "flow-palette-grid",
153
- children: p.map((r) => /* @__PURE__ */ d("div", {
154
- className: `flow-palette-item${a?.type === "shapeSvg" && a.data.svgId === r.id ? " flow-palette-item--active" : ""}`,
155
- onClick: () => n(r.id, r.label),
156
- title: r.label,
157
- children: [/* @__PURE__ */ e(D, { id: r.id }), /* @__PURE__ */ e("span", {
158
- className: "flow-palette-item-label",
159
- children: r.label
160
- })]
161
- }, r.id))
162
- })] }, i.id);
163
- }) });
105
+ function v() {
106
+ let { setPendingPlacement: e, setToolMode: n, pendingPlacement: i } = t(), [s, c] = d({ lang: !0 }), l = u((t, r) => {
107
+ let o = i?.data.svgId;
108
+ if (i?.type === "shapeSvg" && o === t) {
109
+ e(null);
110
+ return;
111
+ }
112
+ let s = {
113
+ label: r,
114
+ fill: "transparent",
115
+ stroke: "theme:base-content",
116
+ strokeWidth: 1.5,
117
+ color: a(t)?.brandColor ?? "theme:base-content",
118
+ labelColor: "theme:base-content",
119
+ fontSize: 12,
120
+ svgId: t,
121
+ iconBox: !1,
122
+ labelPlacement: "bottom",
123
+ borderStyle: "none"
124
+ };
125
+ e({
126
+ type: "shapeSvg",
127
+ width: 56,
128
+ height: 56,
129
+ data: s
130
+ }), n("select");
131
+ }, [
132
+ i,
133
+ e,
134
+ n
135
+ ]);
136
+ return /* @__PURE__ */ p(f, { children: r.map((e) => {
137
+ let t = o(e.id), n = s[e.id];
138
+ return /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("button", {
139
+ type: "button",
140
+ className: "flow-palette-section-toggle",
141
+ onClick: () => c((t) => ({
142
+ ...t,
143
+ [e.id]: !t[e.id]
144
+ })),
145
+ children: [/* @__PURE__ */ p("span", {
146
+ style: {
147
+ transform: n ? "rotate(90deg)" : "none",
148
+ transition: "transform .15s"
149
+ },
150
+ children: "▸"
151
+ }), e.label]
152
+ }), n && /* @__PURE__ */ p("div", {
153
+ className: "flow-palette-grid",
154
+ children: t.map((e) => /* @__PURE__ */ m("div", {
155
+ className: `flow-palette-item${i?.type === "shapeSvg" && i.data.svgId === e.id ? " flow-palette-item--active" : ""}`,
156
+ onClick: () => l(e.id, e.label),
157
+ title: e.label,
158
+ children: [/* @__PURE__ */ p(y, { id: e.id }), /* @__PURE__ */ p("span", {
159
+ className: "flow-palette-item-label",
160
+ children: e.label
161
+ })]
162
+ }, e.id))
163
+ })] }, e.id);
164
+ }) });
164
165
  }
165
- function D({ id: l }) {
166
- const c = b(l), a = M(c?.brandColor, "") || "#475569", t = C(l, a);
167
- if (!t) return null;
168
- const o = `data:image/svg+xml;utf8,${encodeURIComponent(t)}`;
169
- return /* @__PURE__ */ e("img", {
170
- src: o,
171
- width: 20,
172
- height: 16,
173
- alt: "",
174
- style: { objectFit: "contain" }
175
- });
166
+ function y({ id: e }) {
167
+ let t = a(e), r = n(t?.brandColor, "") || "#475569", o = i(e, r);
168
+ if (!o) return null;
169
+ let s = `data:image/svg+xml;utf8,${encodeURIComponent(o)}`;
170
+ return /* @__PURE__ */ p("img", {
171
+ src: s,
172
+ width: 20,
173
+ height: 16,
174
+ alt: "",
175
+ style: { objectFit: "contain" }
176
+ });
176
177
  }
177
- var L = [
178
- {
179
- kind: "markdown",
180
- label: "Markdown",
181
- width: 260,
182
- height: 180,
183
- content: `# 标题
184
-
185
- - 支持 **GFM**
186
- - 支持 \`代码\`
187
-
188
- > 引用文本`,
189
- icon: /* @__PURE__ */ e(f, { text: "M↓" })
190
- },
191
- {
192
- kind: "html",
193
- label: "HTML",
194
- width: 260,
195
- height: 180,
196
- content: `<div style="font-family:sans-serif;padding:12px">
197
- <h3>Hello</h3>
198
- <p>可编辑的 HTML 片段</p>
199
- </div>`,
200
- icon: /* @__PURE__ */ e(f, { text: "</>" })
201
- },
202
- {
203
- kind: "mermaid",
204
- label: "Mermaid",
205
- width: 280,
206
- height: 200,
207
- content: `graph TD
208
- A[开始] --> B{判断}
209
- B -->|是| C[处理]
210
- B -->|否| D[结束]`,
211
- icon: /* @__PURE__ */ e(f, { text: "⎇" })
212
- },
213
- {
214
- kind: "math",
215
- label: "Math",
216
- width: 240,
217
- height: 120,
218
- content: "E = mc^2",
219
- icon: /* @__PURE__ */ e(f, { text: "√x" })
220
- },
221
- {
222
- kind: "image",
223
- label: "Image",
224
- width: 320,
225
- height: 220,
226
- content: "",
227
- icon: /* @__PURE__ */ e(f, { text: "IMG" })
228
- },
229
- {
230
- kind: "model3d",
231
- label: "3D",
232
- width: 360,
233
- height: 280,
234
- content: "",
235
- icon: /* @__PURE__ */ e(f, { text: "3D" })
236
- },
237
- {
238
- kind: "ai",
239
- label: "AI",
240
- width: 300,
241
- height: 340,
242
- content: "",
243
- icon: /* @__PURE__ */ e(f, { text: "AI" })
244
- },
245
- {
246
- kind: "data",
247
- label: "Data",
248
- width: 420,
249
- height: 300,
250
- content: "",
251
- icon: /* @__PURE__ */ e(f, { text: "⊞" })
252
- }
178
+ var b = [
179
+ {
180
+ kind: "markdown",
181
+ label: "Markdown",
182
+ width: 260,
183
+ height: 180,
184
+ content: "# 标题\n\n- 支持 **GFM**\n- 支持 `代码`\n\n> 引用文本",
185
+ icon: /* @__PURE__ */ p(x, { text: "M↓" })
186
+ },
187
+ {
188
+ kind: "html",
189
+ label: "HTML",
190
+ width: 260,
191
+ height: 180,
192
+ content: "<div style=\"font-family:sans-serif;padding:12px\">\n <h3>Hello</h3>\n <p>可编辑的 HTML 片段</p>\n</div>",
193
+ icon: /* @__PURE__ */ p(x, { text: "</>" })
194
+ },
195
+ {
196
+ kind: "mermaid",
197
+ label: "Mermaid",
198
+ width: 280,
199
+ height: 200,
200
+ content: "graph TD\n A[开始] --> B{判断}\n B -->|是| C[处理]\n B -->|否| D[结束]",
201
+ icon: /* @__PURE__ */ p(x, { text: "⎇" })
202
+ },
203
+ {
204
+ kind: "math",
205
+ label: "Math",
206
+ width: 240,
207
+ height: 120,
208
+ content: "E = mc^2",
209
+ icon: /* @__PURE__ */ p(x, { text: "√x" })
210
+ },
211
+ {
212
+ kind: "image",
213
+ label: "Image",
214
+ width: 320,
215
+ height: 220,
216
+ content: "",
217
+ icon: /* @__PURE__ */ p(x, { text: "IMG" })
218
+ },
219
+ {
220
+ kind: "model3d",
221
+ label: "3D",
222
+ width: 360,
223
+ height: 280,
224
+ content: "",
225
+ icon: /* @__PURE__ */ p(x, { text: "3D" })
226
+ },
227
+ {
228
+ kind: "ai",
229
+ label: "AI",
230
+ width: 300,
231
+ height: 340,
232
+ content: "",
233
+ icon: /* @__PURE__ */ p(x, { text: "AI" })
234
+ },
235
+ {
236
+ kind: "data",
237
+ label: "Data",
238
+ width: 420,
239
+ height: 300,
240
+ content: "",
241
+ icon: /* @__PURE__ */ p(x, { text: "⊞" })
242
+ }
253
243
  ];
254
- function f({ text: l }) {
255
- return /* @__PURE__ */ e("div", {
256
- style: {
257
- width: 20,
258
- height: 16,
259
- display: "flex",
260
- alignItems: "center",
261
- justifyContent: "center",
262
- fontSize: 9,
263
- fontWeight: 700,
264
- color: "color-mix(in oklch, var(--color-base-content) 60%, transparent)",
265
- border: "1px solid color-mix(in oklch, var(--color-base-content) 20%, transparent)",
266
- borderRadius: 3,
267
- flexShrink: 0
268
- },
269
- children: l
270
- });
244
+ function x({ text: e }) {
245
+ return /* @__PURE__ */ p("div", {
246
+ style: {
247
+ width: 20,
248
+ height: 16,
249
+ display: "flex",
250
+ alignItems: "center",
251
+ justifyContent: "center",
252
+ fontSize: 9,
253
+ fontWeight: 700,
254
+ color: "color-mix(in oklch, var(--color-base-content) 60%, transparent)",
255
+ border: "1px solid color-mix(in oklch, var(--color-base-content) 20%, transparent)",
256
+ borderRadius: 3,
257
+ flexShrink: 0
258
+ },
259
+ children: e
260
+ });
271
261
  }
272
- function J() {
273
- const { setPendingPlacement: l, setToolMode: c, pendingPlacement: a } = u(), t = x((o) => {
274
- if (a?.type === "mediaNode" && a.data.mediaKind === o.kind) {
275
- l(null);
276
- return;
277
- }
278
- const n = {
279
- label: o.label,
280
- fill: "theme:base-100",
281
- stroke: "theme:base-content",
282
- strokeWidth: 1.5,
283
- color: "theme:base-content",
284
- fontSize: 13,
285
- borderStyle: "solid",
286
- mediaKind: o.kind,
287
- mediaContent: o.content,
288
- ...o.kind === "ai" ? { aiConfig: {
289
- gateway: "",
290
- protocol: "openai",
291
- model: ""
292
- } } : o.kind === "model3d" ? { modelFormat: "stl" } : o.kind === "data" ? { dataConfig: $() } : {}
293
- };
294
- l({
295
- type: "mediaNode",
296
- width: o.width,
297
- height: o.height,
298
- data: n
299
- }), c("select");
300
- }, [
301
- a,
302
- l,
303
- c
304
- ]);
305
- return /* @__PURE__ */ e("div", {
306
- className: "flow-palette-grid",
307
- children: L.map((o) => /* @__PURE__ */ d("div", {
308
- className: `flow-palette-item${a?.type === "mediaNode" && a.data.mediaKind === o.kind ? " flow-palette-item--active" : ""}`,
309
- onClick: () => t(o),
310
- title: o.label,
311
- children: [o.icon, /* @__PURE__ */ e("span", {
312
- className: "flow-palette-item-label",
313
- children: o.label
314
- })]
315
- }, o.kind))
316
- });
262
+ function S() {
263
+ let { setPendingPlacement: e, setToolMode: n, pendingPlacement: r } = t(), i = u((t) => {
264
+ if (r?.type === "mediaNode" && r.data.mediaKind === t.kind) {
265
+ e(null);
266
+ return;
267
+ }
268
+ let i = {
269
+ label: t.label,
270
+ fill: "theme:base-100",
271
+ stroke: "theme:base-content",
272
+ strokeWidth: 1.5,
273
+ color: "theme:base-content",
274
+ fontSize: 13,
275
+ borderStyle: "solid",
276
+ mediaKind: t.kind,
277
+ mediaContent: t.content,
278
+ ...t.kind === "ai" ? { aiConfig: {
279
+ gateway: "",
280
+ protocol: "openai",
281
+ model: ""
282
+ } } : t.kind === "model3d" ? { modelFormat: "stl" } : t.kind === "data" ? { dataConfig: l() } : {}
283
+ };
284
+ e({
285
+ type: "mediaNode",
286
+ width: t.width,
287
+ height: t.height,
288
+ data: i
289
+ }), n("select");
290
+ }, [
291
+ r,
292
+ e,
293
+ n
294
+ ]);
295
+ return /* @__PURE__ */ p("div", {
296
+ className: "flow-palette-grid",
297
+ children: b.map((e) => /* @__PURE__ */ m("div", {
298
+ className: `flow-palette-item${r?.type === "mediaNode" && r.data.mediaKind === e.kind ? " flow-palette-item--active" : ""}`,
299
+ onClick: () => i(e),
300
+ title: e.label,
301
+ children: [e.icon, /* @__PURE__ */ p("span", {
302
+ className: "flow-palette-item-label",
303
+ children: e.label
304
+ })]
305
+ }, e.kind))
306
+ });
317
307
  }
318
- function z({ children: l }) {
319
- return /* @__PURE__ */ e("div", {
320
- style: {
321
- fontSize: 11,
322
- fontWeight: 600,
323
- margin: "10px 0 6px",
324
- color: "color-mix(in oklch, var(--color-base-content) 50%, transparent)",
325
- textTransform: "uppercase",
326
- letterSpacing: "0.05em"
327
- },
328
- children: l
329
- });
308
+ function C({ children: e }) {
309
+ return /* @__PURE__ */ p("div", {
310
+ style: {
311
+ fontSize: 11,
312
+ fontWeight: 600,
313
+ margin: "10px 0 6px",
314
+ color: "color-mix(in oklch, var(--color-base-content) 50%, transparent)",
315
+ textTransform: "uppercase",
316
+ letterSpacing: "0.05em"
317
+ },
318
+ children: e
319
+ });
330
320
  }
331
- function E({ type: l }) {
332
- const t = "currentColor", n = {
333
- shapeRect: /* @__PURE__ */ e("rect", {
334
- x: "3",
335
- y: "4",
336
- width: 30,
337
- height: 20,
338
- rx: "1",
339
- fill: "none",
340
- stroke: t,
341
- strokeWidth: 1.5
342
- }),
343
- shapeRoundRect: /* @__PURE__ */ e("rect", {
344
- x: "3",
345
- y: "4",
346
- width: 30,
347
- height: 20,
348
- rx: "5",
349
- fill: "none",
350
- stroke: t,
351
- strokeWidth: 1.5
352
- }),
353
- shapeEllipse: /* @__PURE__ */ e("ellipse", {
354
- cx: 18,
355
- cy: 14,
356
- rx: 14,
357
- ry: 10,
358
- fill: "none",
359
- stroke: t,
360
- strokeWidth: 1.5
361
- }),
362
- shapeDiamond: /* @__PURE__ */ e("polygon", {
363
- points: "18,3 32,14 18,25 4,14",
364
- fill: "none",
365
- stroke: t,
366
- strokeWidth: 1.5
367
- }),
368
- shapeDocument: /* @__PURE__ */ e("path", {
369
- d: `M4,4 L32,4 L32,20 C${25.2},16 ${10.799999999999999},26 4,20 Z`,
370
- fill: "none",
371
- stroke: t,
372
- strokeWidth: 1.5
373
- }),
374
- shapeParallelogram: /* @__PURE__ */ e("polygon", {
375
- points: "9.600000000000001,4 32,4 26.4,24 4,24",
376
- fill: "none",
377
- stroke: t,
378
- strokeWidth: 1.5
379
- }),
380
- shapeTriangle: /* @__PURE__ */ e("polygon", {
381
- points: "18,4 32,24 4,24",
382
- fill: "none",
383
- stroke: t,
384
- strokeWidth: 1.5
385
- }),
386
- shapeTrapezoid: /* @__PURE__ */ e("polygon", {
387
- points: "8.2,4 27.8,4 32,24 4,24",
388
- fill: "none",
389
- stroke: t,
390
- strokeWidth: 1.5
391
- }),
392
- shapePentagon: (() => {
393
- const s = Math.min(18, 14) - 4, r = Array.from({ length: 5 }, (w, y) => {
394
- const h = Math.PI * 2 * y / 5 - Math.PI / 2;
395
- return `${18 + s * Math.cos(h)},${14 + s * Math.sin(h)}`;
396
- }).join(" ");
397
- return /* @__PURE__ */ e("polygon", {
398
- points: r,
399
- fill: "none",
400
- stroke: t,
401
- strokeWidth: 1.5
402
- });
403
- })(),
404
- shapeHexagon: (() => {
405
- const w = Array.from({ length: 6 }, (y, h) => {
406
- const m = Math.PI * 2 * h / 6 - Math.PI / 6;
407
- return `${18 + 14 * Math.cos(m)},${14 + 10 * Math.sin(m)}`;
408
- }).join(" ");
409
- return /* @__PURE__ */ e("polygon", {
410
- points: w,
411
- fill: "none",
412
- stroke: t,
413
- strokeWidth: 1.5
414
- });
415
- })(),
416
- shapeStar: (() => {
417
- const s = Math.min(18, 14) - 3, r = s * 0.4, w = Array.from({ length: 10 }, (y, h) => {
418
- const m = Math.PI * h / 5 - Math.PI / 2, g = h % 2 === 0 ? s : r;
419
- return `${18 + g * Math.cos(m)},${14 + g * Math.sin(m)}`;
420
- }).join(" ");
421
- return /* @__PURE__ */ e("polygon", {
422
- points: w,
423
- fill: "none",
424
- stroke: t,
425
- strokeWidth: 1.5
426
- });
427
- })(),
428
- shapeHexagram: (() => {
429
- const s = Math.min(18, 14) - 3, r = s * 0.55, w = Array.from({ length: 12 }, (y, h) => {
430
- const m = Math.PI * h / 6 - Math.PI / 2, g = h % 2 === 0 ? s : r;
431
- return `${18 + g * Math.cos(m)},${14 + g * Math.sin(m)}`;
432
- }).join(" ");
433
- return /* @__PURE__ */ e("polygon", {
434
- points: w,
435
- fill: "none",
436
- stroke: t,
437
- strokeWidth: 1.5
438
- });
439
- })(),
440
- shapeRightTriangle: /* @__PURE__ */ e("polygon", {
441
- points: "4,4 32,24 4,24",
442
- fill: "none",
443
- stroke: t,
444
- strokeWidth: 1.5
445
- }),
446
- shapeCorner: (Math.min(28, 20) * 0.4, /* @__PURE__ */ e("polygon", {
447
- points: "4,4 32,4 32,12 12,12 12,24 4,24",
448
- fill: "none",
449
- stroke: t,
450
- strokeWidth: 1.5
451
- })),
452
- textLabel: /* @__PURE__ */ e("text", {
453
- x: 18,
454
- y: 15,
455
- textAnchor: "middle",
456
- dominantBaseline: "middle",
457
- fontSize: "10",
458
- fill: "currentColor",
459
- children: "Aa"
460
- }),
461
- animAnchor: /* @__PURE__ */ d(k, { children: [
462
- /* @__PURE__ */ e("rect", {
463
- x: "3",
464
- y: "4",
465
- width: 30,
466
- height: 20,
467
- rx: "2",
468
- fill: "none",
469
- stroke: t,
470
- strokeWidth: 1.5,
471
- strokeDasharray: "4 3"
472
- }),
473
- /* @__PURE__ */ e("circle", {
474
- cx: "8",
475
- cy: "9",
476
- r: "4",
477
- fill: "none",
478
- stroke: t,
479
- strokeWidth: 1.5
480
- }),
481
- /* @__PURE__ */ e("text", {
482
- x: "8",
483
- y: "10.5",
484
- textAnchor: "middle",
485
- dominantBaseline: "middle",
486
- fontSize: "7",
487
- fill: "currentColor",
488
- children: "1"
489
- })
490
- ] }),
491
- geometryGroup: /* @__PURE__ */ e("rect", {
492
- x: "3",
493
- y: "4",
494
- width: 30,
495
- height: 20,
496
- rx: "3",
497
- fill: "none",
498
- stroke: t,
499
- strokeWidth: 1.5,
500
- strokeDasharray: "6 3"
501
- }),
502
- flowGroup: /* @__PURE__ */ e("rect", {
503
- x: "3",
504
- y: "4",
505
- width: 30,
506
- height: 20,
507
- rx: "3",
508
- fill: "none",
509
- stroke: t,
510
- strokeWidth: 1.5,
511
- strokeDasharray: "2 3"
512
- })
513
- };
514
- return /* @__PURE__ */ e("svg", {
515
- width: 36,
516
- height: 28,
517
- viewBox: "0 0 36 28",
518
- style: { color: "color-mix(in oklch, var(--color-base-content) 55%, transparent)" },
519
- children: n[l] ?? n.shapeRect
520
- });
321
+ function w({ type: e }) {
322
+ let t = "currentColor", n = 1.5, r = {
323
+ shapeRect: /* @__PURE__ */ p("rect", {
324
+ x: "3",
325
+ y: "4",
326
+ width: 30,
327
+ height: 20,
328
+ rx: "1",
329
+ fill: "none",
330
+ stroke: t,
331
+ strokeWidth: n
332
+ }),
333
+ shapeRoundRect: /* @__PURE__ */ p("rect", {
334
+ x: "3",
335
+ y: "4",
336
+ width: 30,
337
+ height: 20,
338
+ rx: "5",
339
+ fill: "none",
340
+ stroke: t,
341
+ strokeWidth: n
342
+ }),
343
+ shapeEllipse: /* @__PURE__ */ p("ellipse", {
344
+ cx: 18,
345
+ cy: 14,
346
+ rx: 14,
347
+ ry: 10,
348
+ fill: "none",
349
+ stroke: t,
350
+ strokeWidth: n
351
+ }),
352
+ shapeDiamond: /* @__PURE__ */ p("polygon", {
353
+ points: "18,3 32,14 18,25 4,14",
354
+ fill: "none",
355
+ stroke: t,
356
+ strokeWidth: n
357
+ }),
358
+ shapeDocument: /* @__PURE__ */ p("path", {
359
+ d: `M4,4 L32,4 L32,20 C25.2,16 ${36 * .3},26 4,20 Z`,
360
+ fill: "none",
361
+ stroke: t,
362
+ strokeWidth: n
363
+ }),
364
+ shapeParallelogram: /* @__PURE__ */ p("polygon", {
365
+ points: "9.600000000000001,4 32,4 26.4,24 4,24",
366
+ fill: "none",
367
+ stroke: t,
368
+ strokeWidth: n
369
+ }),
370
+ shapeTriangle: /* @__PURE__ */ p("polygon", {
371
+ points: "18,4 32,24 4,24",
372
+ fill: "none",
373
+ stroke: t,
374
+ strokeWidth: n
375
+ }),
376
+ shapeTrapezoid: /* @__PURE__ */ p("polygon", {
377
+ points: "8.2,4 27.8,4 32,24 4,24",
378
+ fill: "none",
379
+ stroke: t,
380
+ strokeWidth: n
381
+ }),
382
+ shapePentagon: (() => {
383
+ let e = Array.from({ length: 5 }, (e, t) => {
384
+ let n = Math.PI * 2 * t / 5 - Math.PI / 2;
385
+ return `${18 + 10 * Math.cos(n)},${14 + 10 * Math.sin(n)}`;
386
+ }).join(" ");
387
+ return /* @__PURE__ */ p("polygon", {
388
+ points: e,
389
+ fill: "none",
390
+ stroke: t,
391
+ strokeWidth: n
392
+ });
393
+ })(),
394
+ shapeHexagon: (() => {
395
+ let e = Array.from({ length: 6 }, (e, t) => {
396
+ let n = Math.PI * 2 * t / 6 - Math.PI / 6;
397
+ return `${18 + 14 * Math.cos(n)},${14 + 10 * Math.sin(n)}`;
398
+ }).join(" ");
399
+ return /* @__PURE__ */ p("polygon", {
400
+ points: e,
401
+ fill: "none",
402
+ stroke: t,
403
+ strokeWidth: n
404
+ });
405
+ })(),
406
+ shapeStar: (() => {
407
+ let e = Array.from({ length: 10 }, (e, t) => {
408
+ let n = Math.PI * t / 5 - Math.PI / 2, r = t % 2 == 0 ? 11 : 4.4;
409
+ return `${18 + r * Math.cos(n)},${14 + r * Math.sin(n)}`;
410
+ }).join(" ");
411
+ return /* @__PURE__ */ p("polygon", {
412
+ points: e,
413
+ fill: "none",
414
+ stroke: t,
415
+ strokeWidth: n
416
+ });
417
+ })(),
418
+ shapeHexagram: (() => {
419
+ let e = Array.from({ length: 12 }, (e, t) => {
420
+ let n = Math.PI * t / 6 - Math.PI / 2, r = t % 2 == 0 ? 11 : 6.050000000000001;
421
+ return `${18 + r * Math.cos(n)},${14 + r * Math.sin(n)}`;
422
+ }).join(" ");
423
+ return /* @__PURE__ */ p("polygon", {
424
+ points: e,
425
+ fill: "none",
426
+ stroke: t,
427
+ strokeWidth: n
428
+ });
429
+ })(),
430
+ shapeRightTriangle: /* @__PURE__ */ p("polygon", {
431
+ points: "4,4 32,24 4,24",
432
+ fill: "none",
433
+ stroke: t,
434
+ strokeWidth: n
435
+ }),
436
+ shapeCorner: /* @__PURE__ */ p("polygon", {
437
+ points: "4,4 32,4 32,12 12,12 12,24 4,24",
438
+ fill: "none",
439
+ stroke: t,
440
+ strokeWidth: n
441
+ }),
442
+ textLabel: /* @__PURE__ */ p("text", {
443
+ x: 18,
444
+ y: 15,
445
+ textAnchor: "middle",
446
+ dominantBaseline: "middle",
447
+ fontSize: "10",
448
+ fill: "currentColor",
449
+ children: "Aa"
450
+ }),
451
+ animAnchor: /* @__PURE__ */ m(f, { children: [
452
+ /* @__PURE__ */ p("rect", {
453
+ x: "3",
454
+ y: "4",
455
+ width: 30,
456
+ height: 20,
457
+ rx: "2",
458
+ fill: "none",
459
+ stroke: t,
460
+ strokeWidth: n,
461
+ strokeDasharray: "4 3"
462
+ }),
463
+ /* @__PURE__ */ p("circle", {
464
+ cx: "8",
465
+ cy: "9",
466
+ r: "4",
467
+ fill: "none",
468
+ stroke: t,
469
+ strokeWidth: n
470
+ }),
471
+ /* @__PURE__ */ p("text", {
472
+ x: "8",
473
+ y: "10.5",
474
+ textAnchor: "middle",
475
+ dominantBaseline: "middle",
476
+ fontSize: "7",
477
+ fill: "currentColor",
478
+ children: "1"
479
+ })
480
+ ] }),
481
+ geometryGroup: /* @__PURE__ */ p("rect", {
482
+ x: "3",
483
+ y: "4",
484
+ width: 30,
485
+ height: 20,
486
+ rx: "3",
487
+ fill: "none",
488
+ stroke: t,
489
+ strokeWidth: n,
490
+ strokeDasharray: "6 3"
491
+ }),
492
+ flowGroup: /* @__PURE__ */ p("rect", {
493
+ x: "3",
494
+ y: "4",
495
+ width: 30,
496
+ height: 20,
497
+ rx: "3",
498
+ fill: "none",
499
+ stroke: t,
500
+ strokeWidth: n,
501
+ strokeDasharray: "2 3"
502
+ })
503
+ };
504
+ return /* @__PURE__ */ p("svg", {
505
+ width: 36,
506
+ height: 28,
507
+ viewBox: "0 0 36 28",
508
+ style: { color: "color-mix(in oklch, var(--color-base-content) 55%, transparent)" },
509
+ children: r[e] ?? r.shapeRect
510
+ });
521
511
  }
522
- function B({ mode: l }) {
523
- const t = "currentColor", n = {
524
- connect: /* @__PURE__ */ d(k, { children: [/* @__PURE__ */ e("line", {
525
- x1: "6",
526
- y1: 22,
527
- x2: 30,
528
- y2: "6",
529
- stroke: t,
530
- strokeWidth: 1.5
531
- }), /* @__PURE__ */ e("polygon", {
532
- points: "30,6 25,4 27,9",
533
- fill: t
534
- })] }),
535
- freehand: /* @__PURE__ */ e("path", {
536
- d: "M6,20 C10,14 14,10 18,14 S26,6 30,8",
537
- fill: "none",
538
- stroke: t,
539
- strokeWidth: 1.5,
540
- strokeLinecap: "round"
541
- }),
542
- line: /* @__PURE__ */ e("line", {
543
- x1: "6",
544
- y1: 22,
545
- x2: 30,
546
- y2: "6",
547
- stroke: t,
548
- strokeWidth: 1.5
549
- }),
550
- polyline: /* @__PURE__ */ e("polyline", {
551
- points: "6,22 14,8 20,18 30,6",
552
- fill: "none",
553
- stroke: t,
554
- strokeWidth: 1.5,
555
- strokeLinejoin: "round"
556
- }),
557
- arrow: /* @__PURE__ */ d(k, { children: [/* @__PURE__ */ e("line", {
558
- x1: "6",
559
- y1: 22,
560
- x2: 30,
561
- y2: "6",
562
- stroke: t,
563
- strokeWidth: 1.5
564
- }), /* @__PURE__ */ e("polygon", {
565
- points: "30,6 24,6 28,12",
566
- fill: t
567
- })] })
568
- };
569
- return /* @__PURE__ */ e("svg", {
570
- width: 36,
571
- height: 28,
572
- viewBox: "0 0 36 28",
573
- style: { color: "color-mix(in oklch, var(--color-base-content) 55%, transparent)" },
574
- children: n[l] ?? n.line
575
- });
512
+ function T({ mode: e }) {
513
+ let t = "currentColor", n = 1.5, r = {
514
+ connect: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("line", {
515
+ x1: "6",
516
+ y1: 22,
517
+ x2: 30,
518
+ y2: "6",
519
+ stroke: t,
520
+ strokeWidth: n
521
+ }), /* @__PURE__ */ p("polygon", {
522
+ points: "30,6 25,4 27,9",
523
+ fill: t
524
+ })] }),
525
+ freehand: /* @__PURE__ */ p("path", {
526
+ d: "M6,20 C10,14 14,10 18,14 S26,6 30,8",
527
+ fill: "none",
528
+ stroke: t,
529
+ strokeWidth: n,
530
+ strokeLinecap: "round"
531
+ }),
532
+ line: /* @__PURE__ */ p("line", {
533
+ x1: "6",
534
+ y1: 22,
535
+ x2: 30,
536
+ y2: "6",
537
+ stroke: t,
538
+ strokeWidth: n
539
+ }),
540
+ polyline: /* @__PURE__ */ p("polyline", {
541
+ points: "6,22 14,8 20,18 30,6",
542
+ fill: "none",
543
+ stroke: t,
544
+ strokeWidth: n,
545
+ strokeLinejoin: "round"
546
+ }),
547
+ arrow: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("line", {
548
+ x1: "6",
549
+ y1: 22,
550
+ x2: 30,
551
+ y2: "6",
552
+ stroke: t,
553
+ strokeWidth: n
554
+ }), /* @__PURE__ */ p("polygon", {
555
+ points: "30,6 24,6 28,12",
556
+ fill: t
557
+ })] })
558
+ };
559
+ return /* @__PURE__ */ p("svg", {
560
+ width: 36,
561
+ height: 28,
562
+ viewBox: "0 0 36 28",
563
+ style: { color: "color-mix(in oklch, var(--color-base-content) 55%, transparent)" },
564
+ children: r[e] ?? r.line
565
+ });
576
566
  }
577
- export {
578
- J as MediaStampContent,
579
- E as PaletteThumbnail,
580
- A as ShapePaletteContent,
581
- q as SvgStampContent,
582
- Z as default
583
- };
567
+ //#endregion
568
+ export { S as MediaStampContent, w as PaletteThumbnail, _ as ShapePaletteContent, v as SvgStampContent, g as default };
584
569
 
585
570
  //# sourceMappingURL=ShapePalette.js.map