@unicom-cloud/ui 0.8.172 → 0.8.173

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 (1585) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/affix/Affix.js +1 -1
  3. package/affix/constants.js +1 -1
  4. package/affix/context.js +1 -1
  5. package/affix/index.js +1 -1
  6. package/affix/style/index.js +1 -1
  7. package/alert/Alert.js +1 -1
  8. package/alert/constants.js +1 -1
  9. package/alert/context.js +1 -1
  10. package/alert/index.js +1 -1
  11. package/alert/style/index.js +1 -1
  12. package/anchor/Anchor.js +1 -1
  13. package/anchor/Link.js +1 -1
  14. package/anchor/constants.js +1 -1
  15. package/anchor/context.js +1 -1
  16. package/anchor/index.js +1 -1
  17. package/anchor/style/index.js +1 -1
  18. package/anchor/utils.js +1 -1
  19. package/animation/Animation.js +1 -1
  20. package/animation/constants.js +1 -1
  21. package/animation/context.js +1 -1
  22. package/animation/index.js +1 -1
  23. package/animation/style/index.js +1 -1
  24. package/app/App.js +1 -1
  25. package/app/constants.js +1 -1
  26. package/app/context.js +1 -1
  27. package/app/index.js +1 -1
  28. package/app/style/index.js +1 -1
  29. package/app/useApp.js +1 -1
  30. package/auto-complete/AutoComplete.js +1 -1
  31. package/auto-complete/constants.js +1 -1
  32. package/auto-complete/context.js +1 -1
  33. package/auto-complete/index.js +1 -1
  34. package/auto-complete/style/index.js +1 -1
  35. package/avatar/Avatar.js +1 -1
  36. package/avatar/Group.js +1 -1
  37. package/avatar/constants.js +1 -1
  38. package/avatar/context.js +1 -1
  39. package/avatar/index.js +1 -1
  40. package/avatar/style/index.js +1 -1
  41. package/back-top/BackTop.js +1 -1
  42. package/back-top/constants.js +1 -1
  43. package/back-top/context.js +1 -1
  44. package/back-top/index.js +1 -1
  45. package/back-top/style/index.js +1 -1
  46. package/badge/Badge.js +1 -1
  47. package/badge/Count.js +1 -1
  48. package/badge/constants.js +1 -1
  49. package/badge/context.js +1 -1
  50. package/badge/index.js +1 -1
  51. package/badge/style/index.js +1 -1
  52. package/badge/utils.js +1 -1
  53. package/border-beam/BorderBeam.js +1 -1
  54. package/border-beam/constants.js +1 -1
  55. package/border-beam/context.js +1 -1
  56. package/border-beam/index.js +1 -1
  57. package/border-beam/style/index.js +1 -1
  58. package/breadcrumb/Breadcrumb.js +1 -1
  59. package/breadcrumb/Item.js +1 -1
  60. package/breadcrumb/constants.js +1 -1
  61. package/breadcrumb/context.js +1 -1
  62. package/breadcrumb/index.js +1 -1
  63. package/breadcrumb/style/index.js +1 -1
  64. package/button/Button.js +1 -1
  65. package/button/Group.js +1 -1
  66. package/button/Toggle.js +1 -1
  67. package/button/constants.js +1 -1
  68. package/button/context.js +1 -1
  69. package/button/index.js +1 -1
  70. package/button/style/index.js +1 -1
  71. package/calendar/Calendar.js +1 -1
  72. package/calendar/Month.js +1 -1
  73. package/calendar/WeekList.js +1 -1
  74. package/calendar/Year.js +1 -1
  75. package/calendar/constants.js +1 -1
  76. package/calendar/context.js +1 -1
  77. package/calendar/header/Panel.js +1 -1
  78. package/calendar/header/index.js +1 -1
  79. package/calendar/hooks/useCellClassName.js +1 -1
  80. package/calendar/index.js +1 -1
  81. package/calendar/style/index.js +1 -1
  82. package/card/Card.js +1 -1
  83. package/card/Grid.js +1 -1
  84. package/card/Meta.js +1 -1
  85. package/card/constants.js +1 -1
  86. package/card/context.js +1 -1
  87. package/card/index.js +1 -1
  88. package/card/style/index.js +1 -1
  89. package/carousel/Arrow.js +1 -1
  90. package/carousel/Carousel.js +1 -1
  91. package/carousel/Indicator.js +1 -1
  92. package/carousel/constants.js +1 -1
  93. package/carousel/context.js +1 -1
  94. package/carousel/index.js +1 -1
  95. package/carousel/style/index.js +1 -1
  96. package/cascader/Cascader.js +1 -1
  97. package/cascader/base/node.js +1 -1
  98. package/cascader/base/store.js +1 -1
  99. package/cascader/constants.js +1 -1
  100. package/cascader/context.js +1 -1
  101. package/cascader/hooks/useRefCurrent.js +1 -1
  102. package/cascader/index.js +1 -1
  103. package/cascader/panel/List.js +1 -1
  104. package/cascader/panel/Option.js +1 -1
  105. package/cascader/panel/Search.js +1 -1
  106. package/cascader/style/index.js +1 -1
  107. package/cascader/utils.js +1 -1
  108. package/checkbox/Checkbox.js +1 -1
  109. package/checkbox/Group.js +1 -1
  110. package/checkbox/GroupBlock.js +1 -1
  111. package/checkbox/constants.js +1 -1
  112. package/checkbox/context.js +1 -1
  113. package/checkbox/index.js +1 -1
  114. package/checkbox/style/index.js +1 -1
  115. package/checkbox/useCheckbox.js +1 -1
  116. package/collapse/Collapse.js +1 -1
  117. package/collapse/Item.js +1 -1
  118. package/collapse/constants.js +1 -1
  119. package/collapse/context.js +1 -1
  120. package/collapse/index.js +1 -1
  121. package/collapse/style/index.js +1 -1
  122. package/collapse/utils.js +1 -1
  123. package/color-picker/ColorPicker.js +1 -1
  124. package/color-picker/ControlBar.js +1 -1
  125. package/color-picker/InputAlpha.js +1 -1
  126. package/color-picker/InputHex.js +1 -1
  127. package/color-picker/InputRgb.js +1 -1
  128. package/color-picker/Mode.js +1 -1
  129. package/color-picker/Palette.js +1 -1
  130. package/color-picker/Panel.js +1 -1
  131. package/color-picker/colors.js +1 -1
  132. package/color-picker/constants.js +1 -1
  133. package/color-picker/context.js +1 -1
  134. package/color-picker/hooks/useColorPicker.js +1 -1
  135. package/color-picker/hooks/useControlBlock.js +1 -1
  136. package/color-picker/index.js +1 -1
  137. package/color-picker/interface.js +1 -1
  138. package/color-picker/style/index.js +1 -1
  139. package/color-picker/utils.js +1 -1
  140. package/comment/Comment.js +1 -1
  141. package/comment/constants.js +1 -1
  142. package/comment/context.js +1 -1
  143. package/comment/index.js +1 -1
  144. package/comment/style/index.js +1 -1
  145. package/config-provider/ConfigProvider.js +1 -1
  146. package/config-provider/constants.js +1 -1
  147. package/config-provider/context.js +1 -1
  148. package/config-provider/index.js +1 -1
  149. package/config-provider/initUI.js +1 -1
  150. package/config-provider/style/index.js +1 -1
  151. package/config-provider/useConfigProvider.js +1 -1
  152. package/config-provider/utils.js +1 -1
  153. package/constants/index.js +1 -1
  154. package/copy/Copy.js +1 -1
  155. package/copy/constants.js +1 -1
  156. package/copy/context.js +1 -1
  157. package/copy/index.js +1 -1
  158. package/copy/style/index.js +1 -1
  159. package/countdown/Countdown.js +1 -1
  160. package/countdown/constants.js +1 -1
  161. package/countdown/context.js +1 -1
  162. package/countdown/index.js +1 -1
  163. package/countdown/style/index.js +1 -1
  164. package/countdown/utils.js +1 -1
  165. package/date-picker/DatePicker.js +1 -1
  166. package/date-picker/Picker.js +1 -1
  167. package/date-picker/Range.js +1 -1
  168. package/date-picker/constants.js +1 -1
  169. package/date-picker/context.js +1 -1
  170. package/date-picker/hooks/useCellClassName.js +1 -1
  171. package/date-picker/index.js +1 -1
  172. package/date-picker/panel/Body.js +1 -1
  173. package/date-picker/panel/Footer.js +1 -1
  174. package/date-picker/panel/Header.js +1 -1
  175. package/date-picker/panel/Shortcut.js +1 -1
  176. package/date-picker/panel/WeekList.js +1 -1
  177. package/date-picker/panel/date/index.js +1 -1
  178. package/date-picker/panel/month/index.js +1 -1
  179. package/date-picker/panel/quarter/index.js +1 -1
  180. package/date-picker/panel/range/index.js +1 -1
  181. package/date-picker/panel/week/index.js +1 -1
  182. package/date-picker/panel/year/index.js +1 -1
  183. package/date-picker/style/index.js +1 -1
  184. package/date-picker/utils.js +1 -1
  185. package/descriptions/Descriptions.js +1 -1
  186. package/descriptions/constants.js +1 -1
  187. package/descriptions/context.js +1 -1
  188. package/descriptions/index.js +1 -1
  189. package/descriptions/style/index.js +1 -1
  190. package/details/Details.js +1 -1
  191. package/details/constants.js +1 -1
  192. package/details/context.js +1 -1
  193. package/details/index.js +1 -1
  194. package/details/style/index.js +1 -1
  195. package/development/Development.js +1 -1
  196. package/development/constants.js +1 -1
  197. package/development/context.js +1 -1
  198. package/development/index.js +1 -1
  199. package/development/style/index.js +1 -1
  200. package/divider/Divider.js +1 -1
  201. package/divider/constants.js +1 -1
  202. package/divider/context.js +1 -1
  203. package/divider/index.js +1 -1
  204. package/divider/style/index.js +1 -1
  205. package/draggable/Draggable.js +1 -1
  206. package/draggable/Item.js +1 -1
  207. package/draggable/constants.js +1 -1
  208. package/draggable/context.js +1 -1
  209. package/draggable/index.js +1 -1
  210. package/draggable/style/index.js +1 -1
  211. package/draw/Draw.js +13 -13
  212. package/draw/{core/actions → actions}/actionAddToLibrary.d.ts +109 -109
  213. package/draw/{core/actions → actions}/actionAddToLibrary.js +8 -8
  214. package/draw/{core/actions → actions}/actionAlign.d.ts +14 -14
  215. package/draw/{core/actions → actions}/actionAlign.js +13 -13
  216. package/draw/{core/actions → actions}/actionBoundText.d.ts +72 -72
  217. package/draw/{core/actions → actions}/actionBoundText.js +13 -13
  218. package/draw/{core/actions → actions}/actionCanvas.d.ts +420 -420
  219. package/draw/{core/actions → actions}/actionCanvas.js +32 -32
  220. package/draw/{core/actions → actions}/actionClipboard.d.ts +81 -81
  221. package/draw/{core/actions → actions}/actionClipboard.js +9 -9
  222. package/draw/{core/actions → actions}/actionCropEditor.d.ts +37 -37
  223. package/draw/{core/actions → actions}/actionCropEditor.js +6 -6
  224. package/draw/{core/actions → actions}/actionDeleteSelected.d.ts +97 -97
  225. package/draw/{core/actions → actions}/actionDeleteSelected.js +16 -16
  226. package/draw/{core/actions → actions}/actionDistribute.d.ts +4 -4
  227. package/draw/{core/actions → actions}/actionDistribute.js +13 -13
  228. package/draw/{core/actions → actions}/actionDuplicateSelection.d.ts +3 -3
  229. package/draw/{core/actions → actions}/actionDuplicateSelection.js +12 -12
  230. package/draw/{core/actions → actions}/actionElementLink.d.ts +45 -45
  231. package/draw/{core/actions → actions}/actionElementLink.js +11 -11
  232. package/draw/{core/actions → actions}/actionElementLock.d.ts +73 -73
  233. package/draw/{core/actions → actions}/actionElementLock.js +11 -11
  234. package/draw/{core/actions → actions}/actionEmbeddable.d.ts +38 -38
  235. package/draw/{core/actions → actions}/actionEmbeddable.js +5 -5
  236. package/draw/{core/actions → actions}/actionExport.d.ts +85 -85
  237. package/draw/{core/actions → actions}/actionExport.js +13 -13
  238. package/draw/{core/actions → actions}/actionFinalize.d.ts +3 -3
  239. package/draw/{core/actions → actions}/actionFinalize.js +16 -16
  240. package/draw/{core/actions → actions}/actionFlip.d.ts +4 -4
  241. package/draw/{core/actions → actions}/actionFlip.js +15 -15
  242. package/draw/{core/actions → actions}/actionFrame.d.ts +250 -250
  243. package/draw/{core/actions → actions}/actionFrame.js +14 -14
  244. package/draw/{core/actions → actions}/actionGroup.d.ts +65 -65
  245. package/draw/{core/actions → actions}/actionGroup.js +15 -15
  246. package/draw/{core/actions → actions}/actionHistory.d.ts +2 -2
  247. package/draw/{core/actions → actions}/actionHistory.js +9 -9
  248. package/draw/{core/actions → actions}/actionLinearEditor.d.ts +159 -159
  249. package/draw/{core/actions → actions}/actionLinearEditor.js +10 -10
  250. package/draw/{core/actions → actions}/actionMenu.d.ts +36 -36
  251. package/draw/{core/actions → actions}/actionMenu.js +6 -6
  252. package/draw/{core/actions → actions}/actionProperties.d.ts +62 -62
  253. package/draw/{core/actions → actions}/actionProperties.js +194 -194
  254. package/draw/{core/actions → actions}/actionSelectAll.d.ts +35 -35
  255. package/draw/{core/actions → actions}/actionSelectAll.js +10 -10
  256. package/draw/{core/actions → actions}/actionStyles.d.ts +40 -40
  257. package/draw/{core/actions → actions}/actionStyles.js +12 -12
  258. package/draw/actions/actionTextAutoResize.d.ts +17 -0
  259. package/draw/{core/actions → actions}/actionTextAutoResize.js +10 -10
  260. package/draw/{core/actions → actions}/actionToggleGridMode.d.ts +39 -39
  261. package/draw/{core/actions → actions}/actionToggleGridMode.js +6 -6
  262. package/draw/{core/actions → actions}/actionToggleObjectsSnapMode.d.ts +40 -40
  263. package/draw/{core/actions → actions}/actionToggleObjectsSnapMode.js +6 -6
  264. package/draw/{core/actions → actions}/actionToggleSearchMenu.d.ts +36 -36
  265. package/draw/{core/actions → actions}/actionToggleSearchMenu.js +6 -6
  266. package/draw/actions/actionToggleShapeSwitch.d.ts +19 -0
  267. package/draw/{core/actions → actions}/actionToggleStats.d.ts +38 -38
  268. package/draw/{core/actions → actions}/actionToggleStats.js +6 -6
  269. package/draw/{core/actions → actions}/actionToggleViewMode.d.ts +40 -40
  270. package/draw/{core/actions → actions}/actionToggleViewMode.js +6 -6
  271. package/draw/{core/actions → actions}/actionToggleZenMode.d.ts +40 -40
  272. package/draw/{core/actions → actions}/actionToggleZenMode.js +6 -6
  273. package/draw/{core/actions → actions}/actionZindex.d.ts +12 -12
  274. package/draw/{core/actions → actions}/actionZindex.js +9 -9
  275. package/draw/{core/actions → actions}/index.js +1 -1
  276. package/draw/{core/actions → actions}/manager.d.ts +2 -2
  277. package/draw/{core/actions → actions}/manager.js +4 -4
  278. package/draw/actions/register.js +6 -0
  279. package/draw/{core/actions → actions}/shortcuts.d.ts +1 -1
  280. package/draw/{core/actions → actions}/shortcuts.js +4 -4
  281. package/draw/{core/actions → actions}/types.d.ts +3 -3
  282. package/draw/{core/analytics.js → analytics.js} +4 -4
  283. package/draw/{core/animated-trail.d.ts → animated-trail.d.ts} +2 -2
  284. package/draw/{core/animated-trail.js → animated-trail.js} +7 -7
  285. package/draw/{core/animation-frame-handler.js → animation-frame-handler.js} +2 -2
  286. package/draw/{core/appState.d.ts → appState.d.ts} +15 -15
  287. package/draw/{core/appState.js → appState.js} +8 -8
  288. package/draw/{core/charts.d.ts → charts.d.ts} +1 -1
  289. package/draw/{core/charts.js → charts.js} +12 -12
  290. package/draw/{core/clients.d.ts → clients.d.ts} +1 -1
  291. package/draw/{core/clients.js → clients.js} +9 -6
  292. package/draw/{core/clipboard.d.ts → clipboard.d.ts} +5 -5
  293. package/draw/{core/clipboard.js → clipboard.js} +45 -45
  294. package/draw/common/binary-heap.js +1 -1
  295. package/draw/common/bounds.js +1 -1
  296. package/draw/common/colors.js +1 -1
  297. package/draw/common/constants.d.ts +1 -1
  298. package/draw/common/constants.js +4 -4
  299. package/draw/common/editorInterface.js +1 -1
  300. package/draw/common/emitter.js +1 -1
  301. package/draw/common/font-metadata.js +1 -1
  302. package/draw/common/index.js +1 -1
  303. package/draw/common/keys.js +1 -1
  304. package/draw/common/points.js +1 -1
  305. package/draw/common/promise-pool.js +1 -1
  306. package/draw/common/queue.js +1 -1
  307. package/draw/common/random.js +1 -1
  308. package/draw/common/url.js +2 -2
  309. package/draw/common/utils.js +1 -1
  310. package/draw/{core/components → components}/Actions.d.ts +2 -2
  311. package/draw/components/Actions.js +493 -0
  312. package/draw/{core/components → components}/ActiveConfirmDialog.js +4 -4
  313. package/draw/{core/components → components}/App.d.ts +18 -18
  314. package/draw/{core/components → components}/App.js +676 -676
  315. package/draw/{core/components → components}/BraveMeasureTextError.js +2 -2
  316. package/draw/{core/components → components}/ContextMenu.js +2 -2
  317. package/draw/{core/components → components}/ConvertElementTypePopup.d.ts +2 -2
  318. package/draw/{core/components → components}/ConvertElementTypePopup.js +37 -37
  319. package/draw/{core/components → components}/DarkModeToggle.d.ts +1 -1
  320. package/draw/{core/components → components}/DarkModeToggle.js +5 -5
  321. package/draw/{core/components → components}/ElementCanvasButtons.d.ts +1 -1
  322. package/draw/{core/components → components}/ElementCanvasButtons.js +6 -6
  323. package/draw/{core/components → components}/ElementLinkDialog.d.ts +3 -3
  324. package/draw/{core/components → components}/ElementLinkDialog.js +12 -12
  325. package/draw/{core/components → components}/Ellipsify.js +2 -2
  326. package/draw/{core/components → components}/ErrorDialog.js +3 -3
  327. package/draw/{core/components → components}/ExportDialog.d.ts +2 -2
  328. package/draw/{core/components → components}/ExportDialog.js +4 -4
  329. package/draw/{core/components → components}/EyeDropper.d.ts +1 -1
  330. package/draw/{core/components → components}/EyeDropper.js +7 -7
  331. package/draw/{core/components → components}/FixedSideContainer.js +2 -2
  332. package/draw/{core/components → components}/Footer.d.ts +2 -2
  333. package/draw/{core/components → components}/Footer.js +8 -8
  334. package/draw/{core/components → components}/HandButton.js +5 -5
  335. package/draw/{core/components → components}/HelpDialog.js +6 -6
  336. package/draw/{core/components → components}/HintViewer.d.ts +2 -2
  337. package/draw/{core/components → components}/HintViewer.js +17 -17
  338. package/draw/{core/components → components}/ImageExportDialog.d.ts +2 -2
  339. package/draw/{core/components → components}/ImageExportDialog.js +14 -14
  340. package/draw/{core/components → components}/InitializeApp.d.ts +1 -1
  341. package/draw/{core/components → components}/InitializeApp.js +2 -2
  342. package/draw/{core/components → components}/InlineIcon.js +2 -2
  343. package/draw/{core/components → components}/Island.js +2 -2
  344. package/draw/{core/components → components}/LaserPointerButton.js +2 -2
  345. package/draw/{core/components → components}/LayerUI.d.ts +2 -2
  346. package/draw/{core/components → components}/LayerUI.js +21 -21
  347. package/draw/{core/components → components}/LibraryMenu.js +14 -14
  348. package/draw/{core/components → components}/LibraryMenuItems.d.ts +1 -1
  349. package/draw/{core/components → components}/LibraryMenuItems.js +15 -15
  350. package/draw/{core/components → components}/LibraryMenuSection.d.ts +2 -2
  351. package/draw/{core/components → components}/LibraryMenuSection.js +3 -3
  352. package/draw/{core/components → components}/LibraryUnit.d.ts +1 -1
  353. package/draw/{core/components → components}/LibraryUnit.js +3 -3
  354. package/draw/{core/components → components}/LoadingMessage.d.ts +1 -1
  355. package/draw/{core/components → components}/LoadingMessage.js +3 -3
  356. package/draw/{core/components → components}/LockButton.js +4 -4
  357. package/draw/{core/components → components}/MagicButton.js +2 -2
  358. package/draw/{core/components → components}/PasteChartDialog.d.ts +1 -1
  359. package/draw/{core/components → components}/PasteChartDialog.js +3 -3
  360. package/draw/{core/components → components}/PenModeButton.js +2 -2
  361. package/draw/{core/components → components}/Popover.js +5 -5
  362. package/draw/{core/components → components}/ProjectName.js +5 -5
  363. package/draw/{core/components → components}/Range.d.ts +1 -1
  364. package/draw/{core/components → components}/Range.js +4 -4
  365. package/draw/{core/components → components}/SVGLayer.js +2 -2
  366. package/draw/{core/components → components}/SearchMenu.js +21 -21
  367. package/draw/{core/components → components}/Stack.js +1 -1
  368. package/draw/{core/components → components}/Toast.js +3 -3
  369. package/draw/{core/components → components}/Trans.js +2 -2
  370. package/draw/{core/components → components}/UnlockPopup.d.ts +1 -1
  371. package/draw/{core/components → components}/UnlockPopup.js +7 -7
  372. package/draw/{core/components → components}/canvases/InteractiveCanvas.d.ts +3 -3
  373. package/draw/{core/components → components}/canvases/InteractiveCanvas.js +5 -5
  374. package/draw/{core/components → components}/canvases/NewElementCanvas.d.ts +3 -3
  375. package/draw/{core/components → components}/canvases/NewElementCanvas.js +2 -2
  376. package/draw/{core/components → components}/canvases/StaticCanvas.d.ts +3 -3
  377. package/draw/{core/components → components}/canvases/StaticCanvas.js +4 -4
  378. package/draw/components/canvases/index.js +4 -0
  379. package/draw/{core/components → components}/context.d.ts +3 -3
  380. package/draw/{core/components → components}/context.js +4 -4
  381. package/draw/{core/components → components}/diagram-to-code-plugin/index.d.ts +1 -1
  382. package/draw/{core/components → components}/diagram-to-code-plugin/index.js +2 -2
  383. package/draw/{core/components → components}/hooks.d.ts +6 -6
  384. package/draw/{core/components → components}/hooks.js +4 -4
  385. package/draw/{core/components → components}/icons.d.ts +1 -1
  386. package/draw/{core/components → components}/icons.js +4 -4
  387. package/draw/{core/components → components}/main-menu/DefaultItems.d.ts +1 -1
  388. package/draw/{core/components → components}/main-menu/DefaultItems.js +4 -4
  389. package/draw/{core/components → components}/main-menu/MenuItem.js +4 -4
  390. package/draw/{core/components → components}/main-menu/common.js +5 -5
  391. package/draw/{core/components → components}/overwrite-confirm/State.js +3 -3
  392. package/draw/{core/components → components}/overwrite-confirm/index.js +7 -7
  393. package/draw/{core/components → components}/shapes.d.ts +1 -1
  394. package/draw/{core/components → components}/shapes.js +4 -4
  395. package/draw/{core/components → components}/stats/Angle.d.ts +3 -3
  396. package/draw/{core/components → components}/stats/Angle.js +8 -8
  397. package/draw/{core/components → components}/stats/CanvasGrid.d.ts +2 -2
  398. package/draw/{core/components → components}/stats/CanvasGrid.js +2 -2
  399. package/draw/{core/components → components}/stats/Collapsible.js +2 -2
  400. package/draw/{core/components → components}/stats/Dimension.d.ts +3 -3
  401. package/draw/{core/components → components}/stats/Dimension.js +10 -10
  402. package/draw/{core/components → components}/stats/DragInput.d.ts +3 -3
  403. package/draw/{core/components → components}/stats/DragInput.js +9 -9
  404. package/draw/{core/components → components}/stats/FontSize.d.ts +3 -3
  405. package/draw/{core/components → components}/stats/FontSize.js +5 -5
  406. package/draw/{core/components → components}/stats/MultiAngle.d.ts +3 -3
  407. package/draw/{core/components → components}/stats/MultiAngle.js +8 -8
  408. package/draw/{core/components → components}/stats/MultiDimension.d.ts +3 -3
  409. package/draw/{core/components → components}/stats/MultiDimension.js +13 -13
  410. package/draw/{core/components → components}/stats/MultiFontSize.d.ts +3 -3
  411. package/draw/{core/components → components}/stats/MultiFontSize.js +6 -6
  412. package/draw/{core/components → components}/stats/MultiPosition.d.ts +3 -3
  413. package/draw/{core/components → components}/stats/MultiPosition.js +7 -7
  414. package/draw/{core/components → components}/stats/Position.d.ts +3 -3
  415. package/draw/{core/components → components}/stats/Position.js +8 -8
  416. package/draw/{core/components → components}/stats/index.d.ts +2 -2
  417. package/draw/{core/components → components}/stats/index.js +12 -12
  418. package/draw/{core/components → components}/stats/utils.d.ts +3 -3
  419. package/draw/{core/components → components}/stats/utils.js +11 -11
  420. package/draw/constants.js +1 -1
  421. package/draw/{core/context → context}/tunnels.d.ts +9 -9
  422. package/draw/{core/context → context}/tunnels.js +6 -6
  423. package/draw/{core/context → context}/ui-appState.d.ts +1 -1
  424. package/draw/context/ui-appState.js +7 -0
  425. package/draw/context.js +1 -1
  426. package/draw/{core/cursor.d.ts → cursor.d.ts} +1 -1
  427. package/draw/{core/cursor.js → cursor.js} +4 -4
  428. package/draw/{core/data → data}/EditorLocalStorage.d.ts +2 -2
  429. package/draw/{core/data → data}/blob.d.ts +69 -69
  430. package/draw/{core/data → data}/blob.js +25 -25
  431. package/draw/{core/data → data}/encode.js +3 -3
  432. package/draw/data/encryption.js +4 -0
  433. package/draw/{core/data → data}/filesystem.d.ts +3 -3
  434. package/draw/{core/data → data}/filesystem.js +9 -9
  435. package/draw/{core/data → data}/image.js +7 -7
  436. package/draw/data/index.js +5 -0
  437. package/draw/{core/data → data}/json.d.ts +33 -33
  438. package/draw/{core/data → data}/json.js +4 -4
  439. package/draw/{core/data → data}/library.d.ts +3 -3
  440. package/draw/{core/data → data}/library.js +32 -32
  441. package/draw/{core/data → data}/reconcile.d.ts +3 -3
  442. package/draw/{core/data → data}/reconcile.js +6 -6
  443. package/draw/{core/data → data}/resave.d.ts +2 -2
  444. package/draw/{core/data → data}/resave.js +2 -2
  445. package/draw/{core/data → data}/restore.d.ts +3 -3
  446. package/draw/{core/data → data}/restore.js +49 -49
  447. package/draw/{core/data → data}/types.d.ts +3 -3
  448. package/draw/{core/data → data}/utils.d.ts +2 -2
  449. package/draw/{core/data → data}/utils.js +10 -10
  450. package/draw/{core/deburr.js → deburr.js} +2 -2
  451. package/draw/editor-jotai.d.ts +7 -0
  452. package/draw/editor-jotai.js +11 -0
  453. package/draw/element/Scene.js +1 -1
  454. package/draw/element/align.js +1 -1
  455. package/draw/element/arrows/focus.js +1 -1
  456. package/draw/element/arrows/helpers.js +1 -1
  457. package/draw/element/binding.js +1 -1
  458. package/draw/element/bounds.js +1 -1
  459. package/draw/element/collision.js +1 -1
  460. package/draw/element/comparisons.js +1 -1
  461. package/draw/element/containerCache.js +1 -1
  462. package/draw/element/cropElement.js +1 -1
  463. package/draw/element/delta.js +1 -1
  464. package/draw/element/distance.js +1 -1
  465. package/draw/element/distribute.js +1 -1
  466. package/draw/element/dragElements.js +1 -1
  467. package/draw/element/duplicate.js +1 -1
  468. package/draw/element/elbowArrow.js +1 -1
  469. package/draw/element/elementLink.js +1 -1
  470. package/draw/element/embeddable.js +1 -1
  471. package/draw/element/flowchart.js +1 -1
  472. package/draw/element/fractionalIndex.js +1 -1
  473. package/draw/element/frame.js +1 -1
  474. package/draw/element/groups.js +1 -1
  475. package/draw/element/heading.js +1 -1
  476. package/draw/element/image.js +1 -1
  477. package/draw/element/index.js +1 -1
  478. package/draw/element/is.js +1 -1
  479. package/draw/element/linearElementEditor.js +1 -1
  480. package/draw/element/mutateElement.js +1 -1
  481. package/draw/element/newElement.js +1 -1
  482. package/draw/element/positionElementsOnGrid.js +1 -1
  483. package/draw/element/renderElement.d.ts +1 -1
  484. package/draw/element/renderElement.js +1 -1
  485. package/draw/element/resizeElements.js +1 -1
  486. package/draw/element/resizeTest.js +1 -1
  487. package/draw/element/selection.js +1 -1
  488. package/draw/element/shape.d.ts +1 -1
  489. package/draw/element/shape.js +1 -1
  490. package/draw/element/showSelectedShapeActions.js +1 -1
  491. package/draw/element/sizeHelpers.js +1 -1
  492. package/draw/element/sortElements.js +1 -1
  493. package/draw/element/store.d.ts +1 -1
  494. package/draw/element/store.js +1 -1
  495. package/draw/element/textElement.js +1 -1
  496. package/draw/element/textMeasurements.js +1 -1
  497. package/draw/element/textWrapping.js +1 -1
  498. package/draw/element/transform.js +1 -1
  499. package/draw/element/transformHandles.js +1 -1
  500. package/draw/element/typeChecks.js +1 -1
  501. package/draw/element/utils.js +1 -1
  502. package/draw/element/zindex.js +1 -1
  503. package/draw/{core/eraser → eraser}/index.js +17 -17
  504. package/draw/errors.js +41 -0
  505. package/draw/{core/fonts → fonts}/DrawFontFace.js +2 -2
  506. package/draw/{core/fonts → fonts}/Fonts.d.ts +3 -3
  507. package/draw/{core/fonts → fonts}/Fonts.js +12 -12
  508. package/draw/fonts/index.js +3 -0
  509. package/draw/{core/gesture.d.ts → gesture.d.ts} +1 -1
  510. package/draw/{core/gesture.js → gesture.js} +2 -2
  511. package/draw/{core/history.d.ts → history.d.ts} +5 -5
  512. package/draw/{core/history.js → history.js} +7 -7
  513. package/draw/{core/hooks → hooks}/useCopiedIndicator.js +2 -2
  514. package/draw/{core/hooks → hooks}/useCreatePortalContainer.js +4 -4
  515. package/draw/{core/hooks → hooks}/useEmitter.d.ts +1 -1
  516. package/draw/{core/hooks → hooks}/useEmitter.js +2 -2
  517. package/draw/{core/hooks → hooks}/useLibraryItemSvg.d.ts +1 -1
  518. package/draw/{core/hooks → hooks}/useLibraryItemSvg.js +6 -6
  519. package/draw/{core/hooks → hooks}/useOutsideClick.js +4 -4
  520. package/draw/{core/hooks → hooks}/useScrollPosition.js +3 -3
  521. package/draw/{core/hooks → hooks}/useStable.js +2 -2
  522. package/draw/{core/hooks → hooks}/useTextEditorFocus.js +2 -2
  523. package/draw/{core/hooks → hooks}/useTransition.js +2 -2
  524. package/draw/{core/i18n.d.ts → i18n.d.ts} +1 -1
  525. package/draw/{core/i18n.js → i18n.js} +3 -3
  526. package/draw/index.d.ts +13 -13
  527. package/draw/index.js +48 -48
  528. package/draw/interface.d.ts +11 -11
  529. package/draw/{core/laser-trails.js → laser-trails.js} +5 -5
  530. package/draw/{core/lasso → lasso}/index.js +13 -13
  531. package/draw/{core/lasso → lasso}/utils.d.ts +2 -2
  532. package/draw/{core/lasso → lasso}/utils.js +10 -10
  533. package/draw/libs/browser-fs-access/directory-open.js +1 -1
  534. package/draw/libs/browser-fs-access/file-open.js +1 -1
  535. package/draw/libs/browser-fs-access/file-save.js +1 -1
  536. package/draw/libs/browser-fs-access/fs-access/directory-open.js +1 -1
  537. package/draw/libs/browser-fs-access/fs-access/file-open.js +1 -1
  538. package/draw/libs/browser-fs-access/fs-access/file-save.js +1 -1
  539. package/draw/libs/browser-fs-access/index.js +1 -1
  540. package/draw/libs/browser-fs-access/legacy/directory-open.js +1 -1
  541. package/draw/libs/browser-fs-access/legacy/file-open.js +1 -1
  542. package/draw/libs/browser-fs-access/legacy/file-save.js +1 -1
  543. package/draw/libs/browser-fs-access/supported.js +1 -1
  544. package/draw/libs/fractional-indexing/index.js +1 -1
  545. package/draw/libs/fuzzy/index.js +1 -1
  546. package/draw/libs/glur/index.js +1 -1
  547. package/draw/libs/glur/mono16.js +1 -1
  548. package/draw/libs/hachure-fill/index.js +1 -1
  549. package/draw/libs/image-blob-reduce/index.js +1 -1
  550. package/draw/libs/image-blob-reduce/lib/image_traverse.js +1 -1
  551. package/draw/libs/image-blob-reduce/lib/jpeg_plugins.js +1 -1
  552. package/draw/libs/image-blob-reduce/lib/utils.js +1 -1
  553. package/draw/libs/jotai/index.js +1 -1
  554. package/draw/libs/jotai/react/Provider.js +1 -1
  555. package/draw/libs/jotai/react/useAtom.js +1 -1
  556. package/draw/libs/jotai/react/useAtomValue.js +1 -1
  557. package/draw/libs/jotai/react/useSetAtom.js +1 -1
  558. package/draw/libs/jotai/react/utils/useAtomCallback.js +1 -1
  559. package/draw/libs/jotai/react/utils/useHydrateAtoms.js +1 -1
  560. package/draw/libs/jotai/react/utils/useReducerAtom.js +1 -1
  561. package/draw/libs/jotai/react/utils/useResetAtom.js +1 -1
  562. package/draw/libs/jotai/react/utils.js +1 -1
  563. package/draw/libs/jotai/react.js +1 -1
  564. package/draw/libs/jotai/utils.js +1 -1
  565. package/draw/libs/jotai/vanilla/atom.js +1 -1
  566. package/draw/libs/jotai/vanilla/internals.js +1 -1
  567. package/draw/libs/jotai/vanilla/store.js +1 -1
  568. package/draw/libs/jotai/vanilla/utils/atomFamily.js +1 -1
  569. package/draw/libs/jotai/vanilla/utils/atomWithStorage.js +1 -1
  570. package/draw/libs/jotai/vanilla/utils.js +1 -1
  571. package/draw/libs/jotai-scope/createIsolation.js +1 -1
  572. package/draw/libs/jotai-scope/index.js +1 -1
  573. package/draw/libs/jotai-scope/scope-provider/index.js +1 -1
  574. package/draw/libs/jotai-scope/scope-provider/scope.js +1 -1
  575. package/draw/libs/jotai-scope/utils.js +1 -1
  576. package/draw/libs/laser-pointer/index.js +1 -1
  577. package/draw/libs/laser-pointer/math.js +1 -1
  578. package/draw/libs/laser-pointer/simplify.js +1 -1
  579. package/draw/libs/laser-pointer/state.js +1 -1
  580. package/draw/libs/markdown-to-text/index.js +1 -1
  581. package/draw/libs/math/angle.js +1 -1
  582. package/draw/libs/math/constants.js +1 -1
  583. package/draw/libs/math/curve.js +1 -1
  584. package/draw/libs/math/ellipse.js +1 -1
  585. package/draw/libs/math/index.js +1 -1
  586. package/draw/libs/math/line.js +1 -1
  587. package/draw/libs/math/point.js +1 -1
  588. package/draw/libs/math/polygon.js +1 -1
  589. package/draw/libs/math/range.js +1 -1
  590. package/draw/libs/math/rectangle.js +1 -1
  591. package/draw/libs/math/segment.js +1 -1
  592. package/draw/libs/math/triangle.js +1 -1
  593. package/draw/libs/math/utils.js +1 -1
  594. package/draw/libs/math/vector.js +1 -1
  595. package/draw/libs/multimath/index.js +1 -1
  596. package/draw/libs/multimath/lib/wa_detect.js +1 -1
  597. package/draw/libs/nanoid/index.js +1 -1
  598. package/draw/libs/nanoid/url-alphabet/index.js +1 -1
  599. package/draw/libs/pako/index.js +1 -1
  600. package/draw/libs/path-data-parser/absolutize.js +1 -1
  601. package/draw/libs/path-data-parser/index.js +1 -1
  602. package/draw/libs/path-data-parser/normalize.js +1 -1
  603. package/draw/libs/path-data-parser/parser.js +1 -1
  604. package/draw/libs/perfect-freehand/getStroke.js +1 -1
  605. package/draw/libs/perfect-freehand/getStrokeOutlinePoints.js +1 -1
  606. package/draw/libs/perfect-freehand/getStrokePoints.js +1 -1
  607. package/draw/libs/perfect-freehand/getStrokeRadius.js +1 -1
  608. package/draw/libs/perfect-freehand/index.js +1 -1
  609. package/draw/libs/perfect-freehand/vec.js +1 -1
  610. package/draw/libs/pica/index.js +1 -1
  611. package/draw/libs/pica/lib/mathlib.js +1 -1
  612. package/draw/libs/pica/lib/mm_resize/convolve.js +1 -1
  613. package/draw/libs/pica/lib/mm_resize/convolve_wasm_base64.js +1 -1
  614. package/draw/libs/pica/lib/mm_resize/index.js +1 -1
  615. package/draw/libs/pica/lib/mm_resize/resize.js +1 -1
  616. package/draw/libs/pica/lib/mm_resize/resize_filter_gen.js +1 -1
  617. package/draw/libs/pica/lib/mm_resize/resize_wasm.js +1 -1
  618. package/draw/libs/pica/lib/mm_unsharp_mask/index.js +1 -1
  619. package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.js +1 -1
  620. package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.js +1 -1
  621. package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.js +1 -1
  622. package/draw/libs/pica/lib/pool.js +1 -1
  623. package/draw/libs/pica/lib/tiler.js +1 -1
  624. package/draw/libs/pica/lib/utils.js +1 -1
  625. package/draw/libs/pica/lib/worker.js +1 -1
  626. package/draw/libs/png-chunk-text/decode.js +1 -1
  627. package/draw/libs/png-chunk-text/encode.js +1 -1
  628. package/draw/libs/png-chunk-text/index.js +1 -1
  629. package/draw/libs/png-chunks-encode/index.js +1 -1
  630. package/draw/libs/png-chunks-extract/index.js +1 -1
  631. package/draw/libs/points-on-curve/curve-to-bezier.js +1 -1
  632. package/draw/libs/points-on-curve/index.js +1 -1
  633. package/draw/libs/points-on-path/index.js +1 -1
  634. package/draw/libs/promise-pool/index.js +1 -1
  635. package/draw/libs/roughjs/canvas.js +1 -1
  636. package/draw/libs/roughjs/core.js +1 -1
  637. package/draw/libs/roughjs/fillers/dashed-filler.js +1 -1
  638. package/draw/libs/roughjs/fillers/dot-filler.js +1 -1
  639. package/draw/libs/roughjs/fillers/filler.js +1 -1
  640. package/draw/libs/roughjs/fillers/hachure-filler.js +1 -1
  641. package/draw/libs/roughjs/fillers/hatch-filler.js +1 -1
  642. package/draw/libs/roughjs/fillers/scan-line-hachure.js +1 -1
  643. package/draw/libs/roughjs/fillers/zigzag-filler.js +1 -1
  644. package/draw/libs/roughjs/fillers/zigzag-line-filler.js +1 -1
  645. package/draw/libs/roughjs/generator.js +1 -1
  646. package/draw/libs/roughjs/geometry.js +1 -1
  647. package/draw/libs/roughjs/index.js +1 -1
  648. package/draw/libs/roughjs/math.js +1 -1
  649. package/draw/libs/roughjs/renderer.js +1 -1
  650. package/draw/libs/roughjs/rough.js +1 -1
  651. package/draw/libs/roughjs/svg.js +1 -1
  652. package/draw/libs/sliced/index.js +1 -1
  653. package/draw/libs/webworkify/index.js +1 -1
  654. package/draw/mermaid.js +27 -0
  655. package/draw/polyfill.js +6 -0
  656. package/draw/{core/reactUtils.js → reactUtils.js} +4 -4
  657. package/draw/{core/renderer → renderer}/animation.js +2 -2
  658. package/draw/{core/renderer → renderer}/helpers.d.ts +1 -1
  659. package/draw/{core/renderer → renderer}/helpers.js +5 -5
  660. package/draw/{core/renderer → renderer}/interactiveScene.js +18 -18
  661. package/draw/{core/renderer → renderer}/renderNewElementScene.js +8 -8
  662. package/draw/{core/renderer → renderer}/renderSnaps.d.ts +1 -1
  663. package/draw/{core/renderer → renderer}/renderSnaps.js +6 -6
  664. package/draw/{core/renderer → renderer}/roundRect.js +2 -2
  665. package/draw/{core/renderer → renderer}/staticScene.d.ts +2 -2
  666. package/draw/{core/renderer → renderer}/staticScene.js +12 -12
  667. package/draw/{core/renderer → renderer}/staticSvgScene.d.ts +3 -3
  668. package/draw/{core/renderer → renderer}/staticSvgScene.js +19 -19
  669. package/draw/{core/scene → scene}/Renderer.d.ts +4 -4
  670. package/draw/{core/scene → scene}/Renderer.js +6 -6
  671. package/draw/{core/scene → scene}/export.d.ts +2 -2
  672. package/draw/{core/scene → scene}/export.js +52 -52
  673. package/draw/{core/scene → scene}/index.d.ts +1 -1
  674. package/draw/scene/index.js +7 -0
  675. package/draw/{core/scene → scene}/normalize.d.ts +1 -1
  676. package/draw/scene/normalize.js +10 -0
  677. package/draw/{core/scene → scene}/scroll.d.ts +2 -2
  678. package/draw/{core/scene → scene}/scroll.js +6 -6
  679. package/draw/{core/scene → scene}/scrollbars.d.ts +1 -1
  680. package/draw/{core/scene → scene}/scrollbars.js +5 -5
  681. package/draw/{core/scene → scene}/types.d.ts +7 -7
  682. package/draw/{core/scene → scene}/zoom.d.ts +1 -1
  683. package/draw/{core/scene → scene}/zoom.js +2 -2
  684. package/draw/{core/shortcut.js → shortcut.js} +4 -4
  685. package/draw/{core/snapping.d.ts → snapping.d.ts} +5 -5
  686. package/draw/{core/snapping.js → snapping.js} +14 -14
  687. package/draw/style/index.js +1 -1
  688. package/draw/utils/bbox.js +1 -1
  689. package/draw/utils/export.d.ts +1 -1
  690. package/draw/utils/export.js +7 -7
  691. package/draw/utils/index.js +2 -2
  692. package/draw/utils/shape.js +1 -1
  693. package/draw/utils/withinBounds.js +1 -1
  694. package/draw/workers.js +51 -0
  695. package/draw/{core/wysiwyg → wysiwyg}/textWysiwyg.d.ts +1 -1
  696. package/draw/{core/wysiwyg → wysiwyg}/textWysiwyg.js +16 -16
  697. package/drawer/Drawer.js +1 -1
  698. package/drawer/constants.js +1 -1
  699. package/drawer/context.js +1 -1
  700. package/drawer/index.js +1 -1
  701. package/drawer/style/index.js +1 -1
  702. package/drawer/use-drawer/Hook.js +1 -1
  703. package/drawer/use-drawer/index.js +1 -1
  704. package/dropdown/Button.js +1 -1
  705. package/dropdown/Dropdown.js +1 -1
  706. package/dropdown/constants.js +1 -1
  707. package/dropdown/context.js +1 -1
  708. package/dropdown/index.js +1 -1
  709. package/dropdown/style/index.js +1 -1
  710. package/empty/Empty.js +1 -1
  711. package/empty/constants.js +1 -1
  712. package/empty/context.js +1 -1
  713. package/empty/index.js +1 -1
  714. package/empty/style/index.js +1 -1
  715. package/flex/Flex.js +1 -1
  716. package/flex/constants.js +1 -1
  717. package/flex/context.js +1 -1
  718. package/flex/index.js +1 -1
  719. package/flex/style/index.js +1 -1
  720. package/form/Control.js +1 -1
  721. package/form/Form.js +1 -1
  722. package/form/Item.js +1 -1
  723. package/form/ItemLabel.js +1 -1
  724. package/form/ItemTip.js +1 -1
  725. package/form/LabelSymbol.js +1 -1
  726. package/form/List.js +1 -1
  727. package/form/Provider.js +1 -1
  728. package/form/constants.js +1 -1
  729. package/form/context.js +1 -1
  730. package/form/hooks/useForm.js +1 -1
  731. package/form/hooks/useFormContext.js +1 -1
  732. package/form/hooks/useFormState.js +1 -1
  733. package/form/hooks/useWatch.js +1 -1
  734. package/form/index.js +1 -1
  735. package/form/interface.js +1 -1
  736. package/form/promisify.js +1 -1
  737. package/form/store.js +1 -1
  738. package/form/style/index.js +1 -1
  739. package/form/utils.js +1 -1
  740. package/global-provider/GlobalProvider.js +1 -1
  741. package/global-provider/constants.js +1 -1
  742. package/global-provider/context.js +1 -1
  743. package/global-provider/index.js +1 -1
  744. package/global-provider/style/index.js +1 -1
  745. package/grid/Grid.js +1 -1
  746. package/grid/Item.js +1 -1
  747. package/grid/constants.js +1 -1
  748. package/grid/context.js +1 -1
  749. package/grid/index.js +1 -1
  750. package/grid/style/index.js +1 -1
  751. package/grid/utils.js +1 -1
  752. package/hooks/index.js +1 -1
  753. package/hooks/use-breakpoint/index.js +1 -1
  754. package/hooks/use-computed-state/index.js +1 -1
  755. package/hooks/use-controllable-value/index.js +1 -1
  756. package/hooks/use-create/index.js +1 -1
  757. package/hooks/use-creation/index.js +1 -1
  758. package/hooks/use-effect-event/index.js +1 -1
  759. package/hooks/use-event/index.js +1 -1
  760. package/hooks/use-event-listener/index.js +1 -1
  761. package/hooks/use-force-update/index.js +1 -1
  762. package/hooks/use-fullscreen/index.js +1 -1
  763. package/hooks/use-id/index.js +1 -1
  764. package/hooks/use-intersection-observer/index.js +1 -1
  765. package/hooks/use-intersection-observers/index.js +1 -1
  766. package/hooks/use-interval/index.js +1 -1
  767. package/hooks/use-is-first-render/index.js +1 -1
  768. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  769. package/hooks/use-keyboard-event/index.js +1 -1
  770. package/hooks/use-latest/index.js +1 -1
  771. package/hooks/use-listen-window-resize/index.js +1 -1
  772. package/hooks/use-media/index.js +1 -1
  773. package/hooks/use-memoized-fn/index.js +1 -1
  774. package/hooks/use-merge-props/index.js +1 -1
  775. package/hooks/use-move/index.js +1 -1
  776. package/hooks/use-mutation-observers/index.js +1 -1
  777. package/hooks/use-online-status/index.js +1 -1
  778. package/hooks/use-overflow-hidden/index.js +1 -1
  779. package/hooks/use-override-ref/index.js +1 -1
  780. package/hooks/use-persist-callback/index.js +1 -1
  781. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  782. package/hooks/use-previous/index.js +1 -1
  783. package/hooks/use-refs/index.js +1 -1
  784. package/hooks/use-resize-observer/index.js +1 -1
  785. package/hooks/use-resize-observers/index.js +1 -1
  786. package/hooks/use-responsive-state/index.js +1 -1
  787. package/hooks/use-set-state/index.js +1 -1
  788. package/hooks/use-state-callback/index.js +1 -1
  789. package/hooks/use-state-with-promise/index.js +1 -1
  790. package/hooks/use-throttle-fn-with-raf/index.js +1 -1
  791. package/hooks/use-update-effect/index.js +1 -1
  792. package/hooks/use-update-layout-effect/index.js +1 -1
  793. package/hooks/use-verification-code/index.js +1 -1
  794. package/hooks/use-watch/index.js +1 -1
  795. package/hooks/use-watermark/index.js +1 -1
  796. package/hooks/use-watermark/utils.js +1 -1
  797. package/hooks/use-window-size/index.js +1 -1
  798. package/hooks/useMountLifecycle.js +1 -1
  799. package/icon/Icon.js +1 -1
  800. package/icon/addIconFromCdn.js +1 -1
  801. package/icon/constants.js +1 -1
  802. package/icon/context.js +1 -1
  803. package/icon/index.js +1 -1
  804. package/icon/style/index.js +1 -1
  805. package/icon-hover/IconHover.js +1 -1
  806. package/icon-hover/constants.js +1 -1
  807. package/icon-hover/context.js +1 -1
  808. package/icon-hover/index.js +1 -1
  809. package/icon-hover/style/index.js +1 -1
  810. package/icons/file/File.js +1 -1
  811. package/icons/file/context.js +1 -1
  812. package/icons/file/index.js +1 -1
  813. package/icons/file/style/index.js +1 -1
  814. package/icons.js +1 -1
  815. package/image/Footer.js +1 -1
  816. package/image/Image.js +1 -1
  817. package/image/Preview.js +1 -1
  818. package/image/PreviewArrow.js +1 -1
  819. package/image/PreviewGroup.js +1 -1
  820. package/image/PreviewToolbar.js +1 -1
  821. package/image/TriggerForToolbar.js +1 -1
  822. package/image/constants.js +1 -1
  823. package/image/context.js +1 -1
  824. package/image/hooks/useImageStatus.js +1 -1
  825. package/image/hooks/useShowFooter.js +1 -1
  826. package/image/index.js +1 -1
  827. package/image/style/index.js +1 -1
  828. package/image/utils/getFixTranslate.js +1 -1
  829. package/image/utils/getScale.js +1 -1
  830. package/index.js +1 -1
  831. package/input/Button.js +1 -1
  832. package/input/Core.js +1 -1
  833. package/input/Group.js +1 -1
  834. package/input/Input.js +1 -1
  835. package/input/Password.js +1 -1
  836. package/input/Search.js +1 -1
  837. package/input/Textarea.js +1 -1
  838. package/input/autoSizeTextareaHeight.js +1 -1
  839. package/input/constants.js +1 -1
  840. package/input/context.js +1 -1
  841. package/input/index.js +1 -1
  842. package/input/style/index.js +1 -1
  843. package/input/useComposition.js +1 -1
  844. package/input/utils.js +1 -1
  845. package/input-number/InputNumber.js +1 -1
  846. package/input-number/constants.js +1 -1
  847. package/input-number/context.js +1 -1
  848. package/input-number/decimal.js +1 -1
  849. package/input-number/hooks/useSelectionRange.js +1 -1
  850. package/input-number/index.js +1 -1
  851. package/input-number/style/index.js +1 -1
  852. package/input-number/utils.js +1 -1
  853. package/input-tag/InputTag.js +1 -1
  854. package/input-tag/constants.js +1 -1
  855. package/input-tag/context.js +1 -1
  856. package/input-tag/hooks/useComputeAutoWidthDelay.js +1 -1
  857. package/input-tag/index.js +1 -1
  858. package/input-tag/style/index.js +1 -1
  859. package/layout/Content.js +1 -1
  860. package/layout/Footer.js +1 -1
  861. package/layout/Header.js +1 -1
  862. package/layout/Layout.js +1 -1
  863. package/layout/Sider.js +1 -1
  864. package/layout/constants.js +1 -1
  865. package/layout/context.js +1 -1
  866. package/layout/index.js +1 -1
  867. package/layout/style/index.js +1 -1
  868. package/link/Link.js +1 -1
  869. package/link/constants.js +1 -1
  870. package/link/context.js +1 -1
  871. package/link/index.js +1 -1
  872. package/link/style/index.js +1 -1
  873. package/liquid-fill/LiquidFill.js +1 -1
  874. package/liquid-fill/constants.js +1 -1
  875. package/liquid-fill/context.js +1 -1
  876. package/liquid-fill/index.js +1 -1
  877. package/liquid-fill/style/index.js +1 -1
  878. package/list/Item.js +1 -1
  879. package/list/List.js +1 -1
  880. package/list/Meta.js +1 -1
  881. package/list/constants.js +1 -1
  882. package/list/context.js +1 -1
  883. package/list/index.js +1 -1
  884. package/list/style/index.js +1 -1
  885. package/loading/Loading.js +1 -1
  886. package/loading/constants.js +1 -1
  887. package/loading/context.js +1 -1
  888. package/loading/index.js +1 -1
  889. package/loading/style/index.js +1 -1
  890. package/locale/ar-EG.js +1 -1
  891. package/locale/de-DE.js +1 -1
  892. package/locale/default.js +1 -1
  893. package/locale/en-US.js +1 -1
  894. package/locale/es-ES.js +1 -1
  895. package/locale/fr-FR.js +1 -1
  896. package/locale/id-ID.js +1 -1
  897. package/locale/it-IT.js +1 -1
  898. package/locale/ja-JP.js +1 -1
  899. package/locale/ko-KR.js +1 -1
  900. package/locale/ms-MY.js +1 -1
  901. package/locale/pt-BR.js +1 -1
  902. package/locale/pt-PT.js +1 -1
  903. package/locale/ru-RU.js +1 -1
  904. package/locale/th-TH.js +1 -1
  905. package/locale/tr-TR.js +1 -1
  906. package/locale/vi-VN.js +1 -1
  907. package/locale/zh-CN.js +1 -1
  908. package/locale/zh-HK.js +1 -1
  909. package/locale/zh-TW.js +1 -1
  910. package/marquee/Marquee.js +1 -1
  911. package/marquee/constants.js +1 -1
  912. package/marquee/context.js +1 -1
  913. package/marquee/index.js +1 -1
  914. package/marquee/style/index.js +1 -1
  915. package/mask/Mask.js +1 -1
  916. package/mask/constants.js +1 -1
  917. package/mask/context.js +1 -1
  918. package/mask/index.js +1 -1
  919. package/mask/style/index.js +1 -1
  920. package/masonry/Item.js +1 -1
  921. package/masonry/Masonry.js +1 -1
  922. package/masonry/constants.js +1 -1
  923. package/masonry/context.js +1 -1
  924. package/masonry/hooks/useDelay.js +1 -1
  925. package/masonry/hooks/useGutter.js +1 -1
  926. package/masonry/hooks/usePositions.js +1 -1
  927. package/masonry/hooks/useRefs.js +1 -1
  928. package/masonry/index.js +1 -1
  929. package/masonry/style/index.js +1 -1
  930. package/mentions/Mentions.js +1 -1
  931. package/mentions/constants.js +1 -1
  932. package/mentions/context.js +1 -1
  933. package/mentions/index.js +1 -1
  934. package/mentions/style/index.js +1 -1
  935. package/mentions/utils.js +1 -1
  936. package/menu/Indent.js +1 -1
  937. package/menu/Item.js +1 -1
  938. package/menu/ItemGroup.js +1 -1
  939. package/menu/Menu.js +1 -1
  940. package/menu/OverflowWrap.js +1 -1
  941. package/menu/constants.js +1 -1
  942. package/menu/context.js +1 -1
  943. package/menu/index.js +1 -1
  944. package/menu/style/index.js +1 -1
  945. package/menu/sub-menu/Inline.js +1 -1
  946. package/menu/sub-menu/Pop.js +1 -1
  947. package/menu/sub-menu/index.js +1 -1
  948. package/menu/utils.js +1 -1
  949. package/message/Message.js +1 -1
  950. package/message/config.js +1 -1
  951. package/message/constants.js +1 -1
  952. package/message/context.js +1 -1
  953. package/message/hooks/useMessage.js +1 -1
  954. package/message/index.js +1 -1
  955. package/message/style/index.js +1 -1
  956. package/message/utils.js +1 -1
  957. package/modal/Modal.js +1 -1
  958. package/modal/config.js +1 -1
  959. package/modal/confirm.js +1 -1
  960. package/modal/constants.js +1 -1
  961. package/modal/context.js +1 -1
  962. package/modal/index.js +1 -1
  963. package/modal/style/index.js +1 -1
  964. package/modal/use-modal/Hook.js +1 -1
  965. package/modal/use-modal/index.js +1 -1
  966. package/modal/utils.js +1 -1
  967. package/notice/Notice.js +1 -1
  968. package/notice/config.js +1 -1
  969. package/notice/constants.js +1 -1
  970. package/notice/context.js +1 -1
  971. package/notice/index.js +1 -1
  972. package/notice/style/index.js +1 -1
  973. package/notice/utils.js +1 -1
  974. package/notice/withNotice.js +1 -1
  975. package/notification/Notification.js +1 -1
  976. package/notification/config.js +1 -1
  977. package/notification/constants.js +1 -1
  978. package/notification/context.js +1 -1
  979. package/notification/hooks/useNotification.js +1 -1
  980. package/notification/index.js +1 -1
  981. package/notification/style/index.js +1 -1
  982. package/notification/utils.js +1 -1
  983. package/overflow-ellipsis/Item.js +1 -1
  984. package/overflow-ellipsis/OverflowEllipsis.js +1 -1
  985. package/overflow-ellipsis/constants.js +1 -1
  986. package/overflow-ellipsis/context.js +1 -1
  987. package/overflow-ellipsis/index.js +1 -1
  988. package/overflow-ellipsis/style/index.js +1 -1
  989. package/package.json +1 -1
  990. package/page-header/PageHeader.js +1 -1
  991. package/page-header/constants.js +1 -1
  992. package/page-header/context.js +1 -1
  993. package/page-header/index.js +1 -1
  994. package/page-header/style/index.js +1 -1
  995. package/pagination/Item.js +1 -1
  996. package/pagination/Jumper.js +1 -1
  997. package/pagination/Pagination.js +1 -1
  998. package/pagination/PreNextButton.js +1 -1
  999. package/pagination/PreNextJump.js +1 -1
  1000. package/pagination/SizeOption.js +1 -1
  1001. package/pagination/constants.js +1 -1
  1002. package/pagination/context.js +1 -1
  1003. package/pagination/index.js +1 -1
  1004. package/pagination/interface.js +1 -1
  1005. package/pagination/style/index.js +1 -1
  1006. package/pagination/utils.js +1 -1
  1007. package/picker/Input.js +1 -1
  1008. package/picker/InputRange.js +1 -1
  1009. package/picker/constants.js +1 -1
  1010. package/picker/context.js +1 -1
  1011. package/picker/index.js +1 -1
  1012. package/picker/style/index.js +1 -1
  1013. package/popconfirm/Popconfirm.js +1 -1
  1014. package/popconfirm/constants.js +1 -1
  1015. package/popconfirm/context.js +1 -1
  1016. package/popconfirm/index.js +1 -1
  1017. package/popconfirm/style/index.js +1 -1
  1018. package/popover/Popover.js +1 -1
  1019. package/popover/constants.js +1 -1
  1020. package/popover/context.js +1 -1
  1021. package/popover/index.js +1 -1
  1022. package/popover/style/index.js +1 -1
  1023. package/portal/Portal.js +1 -1
  1024. package/portal/constants.js +1 -1
  1025. package/portal/context.js +1 -1
  1026. package/portal/index.js +1 -1
  1027. package/portal/style/index.js +1 -1
  1028. package/progress/Circle.js +1 -1
  1029. package/progress/Line.js +1 -1
  1030. package/progress/Progress.js +1 -1
  1031. package/progress/Step.js +1 -1
  1032. package/progress/constants.js +1 -1
  1033. package/progress/context.js +1 -1
  1034. package/progress/index.js +1 -1
  1035. package/progress/style/index.js +1 -1
  1036. package/qr-code/QRCode.js +1 -1
  1037. package/qr-code/constants.js +1 -1
  1038. package/qr-code/context.js +1 -1
  1039. package/qr-code/index.js +1 -1
  1040. package/qr-code/src/index.js +1 -1
  1041. package/qr-code/src/qrcodegen.js +1 -1
  1042. package/qr-code/style/index.js +1 -1
  1043. package/radio/Group.js +1 -1
  1044. package/radio/GroupBlock.js +1 -1
  1045. package/radio/Radio.js +1 -1
  1046. package/radio/constants.js +1 -1
  1047. package/radio/context.js +1 -1
  1048. package/radio/index.js +1 -1
  1049. package/radio/style/index.js +1 -1
  1050. package/rate/Rate.js +1 -1
  1051. package/rate/constants.js +1 -1
  1052. package/rate/context.js +1 -1
  1053. package/rate/index.js +1 -1
  1054. package/rate/style/index.js +1 -1
  1055. package/resize-box/ResizeBox.js +1 -1
  1056. package/resize-box/ResizeTrigger.js +1 -1
  1057. package/resize-box/Split.js +1 -1
  1058. package/resize-box/SplitGroup.js +1 -1
  1059. package/resize-box/constants.js +1 -1
  1060. package/resize-box/context.js +1 -1
  1061. package/resize-box/index.js +1 -1
  1062. package/resize-box/style/index.js +1 -1
  1063. package/result/403.js +1 -1
  1064. package/result/404.js +1 -1
  1065. package/result/500.js +1 -1
  1066. package/result/Result.js +1 -1
  1067. package/result/constants.js +1 -1
  1068. package/result/context.js +1 -1
  1069. package/result/index.js +1 -1
  1070. package/result/style/index.js +1 -1
  1071. package/rich-text/RichText.js +1 -1
  1072. package/rich-text/Toolbar.js +1 -1
  1073. package/rich-text/constants.js +1 -1
  1074. package/rich-text/context.js +1 -1
  1075. package/rich-text/index.js +1 -1
  1076. package/rich-text/libs/blots/block.js +1 -1
  1077. package/rich-text/libs/blots/break.js +1 -1
  1078. package/rich-text/libs/blots/container.js +1 -1
  1079. package/rich-text/libs/blots/cursor.js +1 -1
  1080. package/rich-text/libs/blots/embed.js +1 -1
  1081. package/rich-text/libs/blots/inline.js +1 -1
  1082. package/rich-text/libs/blots/scroll.js +1 -1
  1083. package/rich-text/libs/blots/text.js +1 -1
  1084. package/rich-text/libs/core/composition.js +1 -1
  1085. package/rich-text/libs/core/editor.js +1 -1
  1086. package/rich-text/libs/core/emitter.js +1 -1
  1087. package/rich-text/libs/core/logger.js +1 -1
  1088. package/rich-text/libs/core/module.js +1 -1
  1089. package/rich-text/libs/core/rich.js +1 -1
  1090. package/rich-text/libs/core/selection.js +1 -1
  1091. package/rich-text/libs/core/theme.js +1 -1
  1092. package/rich-text/libs/core/utils/createRegistryWithFormats.js +1 -1
  1093. package/rich-text/libs/core/utils/scrollRectIntoView.js +1 -1
  1094. package/rich-text/libs/delta/AttributeMap.js +1 -1
  1095. package/rich-text/libs/delta/Op.js +1 -1
  1096. package/rich-text/libs/delta/OpIterator.js +1 -1
  1097. package/rich-text/libs/delta/index.js +1 -1
  1098. package/rich-text/libs/diff/index.js +1 -1
  1099. package/rich-text/libs/formats/align.js +1 -1
  1100. package/rich-text/libs/formats/background.js +1 -1
  1101. package/rich-text/libs/formats/blockquote.js +1 -1
  1102. package/rich-text/libs/formats/bold.js +1 -1
  1103. package/rich-text/libs/formats/code.js +1 -1
  1104. package/rich-text/libs/formats/color.js +1 -1
  1105. package/rich-text/libs/formats/direction.js +1 -1
  1106. package/rich-text/libs/formats/emoji.js +1 -1
  1107. package/rich-text/libs/formats/font.js +1 -1
  1108. package/rich-text/libs/formats/formula.js +1 -1
  1109. package/rich-text/libs/formats/header.js +1 -1
  1110. package/rich-text/libs/formats/hr.js +1 -1
  1111. package/rich-text/libs/formats/image.js +1 -1
  1112. package/rich-text/libs/formats/indent.js +1 -1
  1113. package/rich-text/libs/formats/italic.js +1 -1
  1114. package/rich-text/libs/formats/lineHeight.js +1 -1
  1115. package/rich-text/libs/formats/link.js +1 -1
  1116. package/rich-text/libs/formats/list.js +1 -1
  1117. package/rich-text/libs/formats/script.js +1 -1
  1118. package/rich-text/libs/formats/size.js +1 -1
  1119. package/rich-text/libs/formats/strike.js +1 -1
  1120. package/rich-text/libs/formats/table.js +1 -1
  1121. package/rich-text/libs/formats/underline.js +1 -1
  1122. package/rich-text/libs/formats/video.js +1 -1
  1123. package/rich-text/libs/index.js +1 -1
  1124. package/rich-text/libs/modules/clipboard.js +1 -1
  1125. package/rich-text/libs/modules/history.js +1 -1
  1126. package/rich-text/libs/modules/image-resize/index.js +1 -1
  1127. package/rich-text/libs/modules/image-resize/modules/Base.js +1 -1
  1128. package/rich-text/libs/modules/image-resize/modules/DisplaySize.js +1 -1
  1129. package/rich-text/libs/modules/image-resize/modules/Resize.js +1 -1
  1130. package/rich-text/libs/modules/image-resize/options.js +1 -1
  1131. package/rich-text/libs/modules/input.js +1 -1
  1132. package/rich-text/libs/modules/keyboard.js +1 -1
  1133. package/rich-text/libs/modules/normalize-external-html/index.js +1 -1
  1134. package/rich-text/libs/modules/normalize-external-html/normalizers/googleDocs.js +1 -1
  1135. package/rich-text/libs/modules/normalize-external-html/normalizers/msWord.js +1 -1
  1136. package/rich-text/libs/modules/table.js +1 -1
  1137. package/rich-text/libs/modules/toolbar.js +1 -1
  1138. package/rich-text/libs/modules/uiNode.js +1 -1
  1139. package/rich-text/libs/modules/uploader.js +1 -1
  1140. package/rich-text/libs/parchment/attributor/attributor.js +1 -1
  1141. package/rich-text/libs/parchment/attributor/class.js +1 -1
  1142. package/rich-text/libs/parchment/attributor/store.js +1 -1
  1143. package/rich-text/libs/parchment/attributor/style.js +1 -1
  1144. package/rich-text/libs/parchment/blot/abstract/container.js +1 -1
  1145. package/rich-text/libs/parchment/blot/abstract/leaf.js +1 -1
  1146. package/rich-text/libs/parchment/blot/abstract/parent.js +1 -1
  1147. package/rich-text/libs/parchment/blot/abstract/shadow.js +1 -1
  1148. package/rich-text/libs/parchment/blot/block.js +1 -1
  1149. package/rich-text/libs/parchment/blot/embed.js +1 -1
  1150. package/rich-text/libs/parchment/blot/inline.js +1 -1
  1151. package/rich-text/libs/parchment/blot/scroll.js +1 -1
  1152. package/rich-text/libs/parchment/blot/text.js +1 -1
  1153. package/rich-text/libs/parchment/collection/linked-list.js +1 -1
  1154. package/rich-text/libs/parchment/error.js +1 -1
  1155. package/rich-text/libs/parchment/index.js +1 -1
  1156. package/rich-text/libs/parchment/registry.js +1 -1
  1157. package/rich-text/libs/parchment/scope.js +1 -1
  1158. package/rich-text/style/index.js +1 -1
  1159. package/router-error/RouterError.js +1 -1
  1160. package/router-error/constants.js +1 -1
  1161. package/router-error/context.js +1 -1
  1162. package/router-error/index.js +1 -1
  1163. package/router-error/style/index.js +1 -1
  1164. package/row-col/Col.js +1 -1
  1165. package/row-col/Row.js +1 -1
  1166. package/row-col/constants.js +1 -1
  1167. package/row-col/context.js +1 -1
  1168. package/row-col/index.js +1 -1
  1169. package/row-col/style/index.js +1 -1
  1170. package/segmented/Segmented.js +1 -1
  1171. package/segmented/constants.js +1 -1
  1172. package/segmented/context.js +1 -1
  1173. package/segmented/index.js +1 -1
  1174. package/segmented/style/index.js +1 -1
  1175. package/select/Option.js +1 -1
  1176. package/select/OptionGroup.js +1 -1
  1177. package/select/Select.js +1 -1
  1178. package/select/constants.js +1 -1
  1179. package/select/context.js +1 -1
  1180. package/select/index.js +1 -1
  1181. package/select/style/index.js +1 -1
  1182. package/select/utils.js +1 -1
  1183. package/select-view/Core.js +1 -1
  1184. package/select-view/SelectView.js +1 -1
  1185. package/select-view/constants.js +1 -1
  1186. package/select-view/context.js +1 -1
  1187. package/select-view/index.js +1 -1
  1188. package/select-view/style/index.js +1 -1
  1189. package/skeleton/Image.js +1 -1
  1190. package/skeleton/Skeleton.js +1 -1
  1191. package/skeleton/Text.js +1 -1
  1192. package/skeleton/constants.js +1 -1
  1193. package/skeleton/context.js +1 -1
  1194. package/skeleton/index.js +1 -1
  1195. package/skeleton/style/index.js +1 -1
  1196. package/slider/Button.js +1 -1
  1197. package/slider/Dot.js +1 -1
  1198. package/slider/Input.js +1 -1
  1199. package/slider/Mark.js +1 -1
  1200. package/slider/Slider.js +1 -1
  1201. package/slider/Tick.js +1 -1
  1202. package/slider/constants.js +1 -1
  1203. package/slider/context.js +1 -1
  1204. package/slider/hooks/useInterval.js +1 -1
  1205. package/slider/hooks/useLegalValue.js +1 -1
  1206. package/slider/index.js +1 -1
  1207. package/slider/style/index.js +1 -1
  1208. package/slider/utils.js +1 -1
  1209. package/space/Space.js +1 -1
  1210. package/space/constants.js +1 -1
  1211. package/space/context.js +1 -1
  1212. package/space/index.js +1 -1
  1213. package/space/style/index.js +1 -1
  1214. package/speech-synthesis/SpeechSynthesis.js +1 -1
  1215. package/speech-synthesis/constants.js +1 -1
  1216. package/speech-synthesis/context.js +1 -1
  1217. package/speech-synthesis/index.js +1 -1
  1218. package/speech-synthesis/style/index.js +1 -1
  1219. package/spin/DotLoading.js +1 -1
  1220. package/spin/Spin.js +1 -1
  1221. package/spin/constants.js +1 -1
  1222. package/spin/context.js +1 -1
  1223. package/spin/index.js +1 -1
  1224. package/spin/style/index.js +1 -1
  1225. package/splitter/Bar.js +1 -1
  1226. package/splitter/Panel.js +1 -1
  1227. package/splitter/Splitter.js +1 -1
  1228. package/splitter/constants.js +1 -1
  1229. package/splitter/context.js +1 -1
  1230. package/splitter/hooks/useItems.js +1 -1
  1231. package/splitter/hooks/useResizable.js +1 -1
  1232. package/splitter/hooks/useResize.js +1 -1
  1233. package/splitter/hooks/useSizes.js +1 -1
  1234. package/splitter/index.js +1 -1
  1235. package/splitter/style/index.js +1 -1
  1236. package/statistic/Statistic.js +1 -1
  1237. package/statistic/constants.js +1 -1
  1238. package/statistic/context.js +1 -1
  1239. package/statistic/index.js +1 -1
  1240. package/statistic/interface.js +1 -1
  1241. package/statistic/style/index.js +1 -1
  1242. package/steps/Item.js +1 -1
  1243. package/steps/Steps.js +1 -1
  1244. package/steps/constants.js +1 -1
  1245. package/steps/context.js +1 -1
  1246. package/steps/index.js +1 -1
  1247. package/steps/style/index.js +1 -1
  1248. package/style/constants.js +1 -1
  1249. package/style.css +1 -1
  1250. package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
  1251. package/suspense-fallback-test/constants.js +1 -1
  1252. package/suspense-fallback-test/context.js +1 -1
  1253. package/suspense-fallback-test/index.js +1 -1
  1254. package/suspense-fallback-test/style/index.js +1 -1
  1255. package/switch/Switch.js +1 -1
  1256. package/switch/constants.js +1 -1
  1257. package/switch/context.js +1 -1
  1258. package/switch/index.js +1 -1
  1259. package/switch/style/index.js +1 -1
  1260. package/table/ColGroup.js +1 -1
  1261. package/table/Table.js +1 -1
  1262. package/table/constants.js +1 -1
  1263. package/table/context.js +1 -1
  1264. package/table/hooks/useColumns.js +1 -1
  1265. package/table/hooks/useComponent.js +1 -1
  1266. package/table/hooks/useExpand.js +1 -1
  1267. package/table/hooks/useRowSelection.js +1 -1
  1268. package/table/hooks/useSorter.js +1 -1
  1269. package/table/hooks/useStickyClassNames.js +1 -1
  1270. package/table/hooks/useStickyOffsets.js +1 -1
  1271. package/table/hooks/useThResizable.js +1 -1
  1272. package/table/index.js +1 -1
  1273. package/table/style/index.js +1 -1
  1274. package/table/summary/Cell.js +1 -1
  1275. package/table/summary/Row.js +1 -1
  1276. package/table/summary/context.js +1 -1
  1277. package/table/summary/index.js +1 -1
  1278. package/table/tbody/DataRecordRenderer.js +1 -1
  1279. package/table/tbody/Td.js +1 -1
  1280. package/table/tbody/Tr.js +7 -2
  1281. package/table/tbody/index.js +1 -1
  1282. package/table/tfoot/index.js +1 -1
  1283. package/table/th-resizable/index.js +1 -1
  1284. package/table/th-resizable/style/index.js +1 -1
  1285. package/table/thead/Column.js +1 -1
  1286. package/table/thead/index.js +1 -1
  1287. package/table/utils.js +1 -1
  1288. package/tabs/TabContent.js +1 -1
  1289. package/tabs/TabPane.js +1 -1
  1290. package/tabs/Tabs.js +1 -1
  1291. package/tabs/constants.js +1 -1
  1292. package/tabs/context.js +1 -1
  1293. package/tabs/hooks/useDomSize.js +1 -1
  1294. package/tabs/hooks/useHeaderScroll.js +1 -1
  1295. package/tabs/index.js +1 -1
  1296. package/tabs/style/index.js +1 -1
  1297. package/tabs/tab-header/DropdownIcon.js +1 -1
  1298. package/tabs/tab-header/TabInk.js +1 -1
  1299. package/tabs/tab-header/TabNavIcon.js +1 -1
  1300. package/tabs/tab-header/TabTitle.js +1 -1
  1301. package/tabs/tab-header/index.js +1 -1
  1302. package/tabs/utils.js +1 -1
  1303. package/tag/Tag.js +1 -1
  1304. package/tag/constants.js +1 -1
  1305. package/tag/context.js +1 -1
  1306. package/tag/index.js +1 -1
  1307. package/tag/style/index.js +1 -1
  1308. package/tag/utils.js +1 -1
  1309. package/time-picker/Picker.js +1 -1
  1310. package/time-picker/TimeColumn.js +1 -1
  1311. package/time-picker/TimePicker.js +1 -1
  1312. package/time-picker/TimePickerRange.js +1 -1
  1313. package/time-picker/constants.js +1 -1
  1314. package/time-picker/context.js +1 -1
  1315. package/time-picker/index.js +1 -1
  1316. package/time-picker/style/index.js +1 -1
  1317. package/time-picker/utils.js +1 -1
  1318. package/time-picker/withTimePicker.js +1 -1
  1319. package/timeline/Item.js +1 -1
  1320. package/timeline/Timeline.js +1 -1
  1321. package/timeline/constants.js +1 -1
  1322. package/timeline/context.js +1 -1
  1323. package/timeline/index.js +1 -1
  1324. package/timeline/style/index.js +1 -1
  1325. package/timer/Timer.js +1 -1
  1326. package/timer/constants.js +1 -1
  1327. package/timer/context.js +1 -1
  1328. package/timer/index.js +1 -1
  1329. package/timer/style/index.js +1 -1
  1330. package/toast/Toast.js +1 -1
  1331. package/toast/constants.js +1 -1
  1332. package/toast/context.js +1 -1
  1333. package/toast/index.js +1 -1
  1334. package/toast/style/index.js +1 -1
  1335. package/tooltip/Tooltip.js +1 -1
  1336. package/tooltip/constants.js +1 -1
  1337. package/tooltip/context.js +1 -1
  1338. package/tooltip/index.js +1 -1
  1339. package/tooltip/style/index.js +1 -1
  1340. package/tour/Tour.js +1 -1
  1341. package/tour/constants.js +1 -1
  1342. package/tour/context.js +1 -1
  1343. package/tour/index.js +1 -1
  1344. package/tour/style/index.js +1 -1
  1345. package/tour/utils.js +1 -1
  1346. package/transfer/Item.js +1 -1
  1347. package/transfer/List.js +1 -1
  1348. package/transfer/Transfer.js +1 -1
  1349. package/transfer/constants.js +1 -1
  1350. package/transfer/context.js +1 -1
  1351. package/transfer/index.js +1 -1
  1352. package/transfer/style/index.js +1 -1
  1353. package/transition/constants.js +1 -1
  1354. package/transition/context.js +1 -1
  1355. package/transition/index.js +1 -1
  1356. package/transition/style/index.js +1 -1
  1357. package/tree/Animation.js +1 -1
  1358. package/tree/Node.js +1 -1
  1359. package/tree/NodeList.js +1 -1
  1360. package/tree/Tree.js +1 -1
  1361. package/tree/constants.js +1 -1
  1362. package/tree/context.js +1 -1
  1363. package/tree/index.js +1 -1
  1364. package/tree/style/index.js +1 -1
  1365. package/tree/utils.js +1 -1
  1366. package/tree-select/List.js +1 -1
  1367. package/tree-select/TreeSelect.js +1 -1
  1368. package/tree-select/constants.js +1 -1
  1369. package/tree-select/context.js +1 -1
  1370. package/tree-select/hooks/useKeyCache.js +1 -1
  1371. package/tree-select/hooks/useStateValue.js +1 -1
  1372. package/tree-select/hooks/useTreeData.js +1 -1
  1373. package/tree-select/index.js +1 -1
  1374. package/tree-select/style/index.js +1 -1
  1375. package/tree-select/utils.js +1 -1
  1376. package/trigger/Trigger.js +1 -1
  1377. package/trigger/constants.js +1 -1
  1378. package/trigger/context.js +1 -1
  1379. package/trigger/getPopupStyle.js +1 -1
  1380. package/trigger/index.js +1 -1
  1381. package/trigger/style/index.js +1 -1
  1382. package/trigger/utils.js +1 -1
  1383. package/typewriter/Typewriter.js +1 -1
  1384. package/typewriter/constants.js +1 -1
  1385. package/typewriter/context.js +1 -1
  1386. package/typewriter/index.js +1 -1
  1387. package/typewriter/style/index.js +1 -1
  1388. package/typography/Base.js +1 -1
  1389. package/typography/EditContent.js +1 -1
  1390. package/typography/Ellipsis.js +1 -1
  1391. package/typography/Operations.js +1 -1
  1392. package/typography/Paragraph.js +1 -1
  1393. package/typography/Text.js +1 -1
  1394. package/typography/Title.js +1 -1
  1395. package/typography/Typography.js +1 -1
  1396. package/typography/constants.js +1 -1
  1397. package/typography/context.js +1 -1
  1398. package/typography/hooks/useCssEllipsis.js +1 -1
  1399. package/typography/hooks/useEllipsis.js +1 -1
  1400. package/typography/index.js +1 -1
  1401. package/typography/style/index.js +1 -1
  1402. package/upload/TriggerNode.js +1 -1
  1403. package/upload/Upload.js +1 -1
  1404. package/upload/Uploader.js +1 -1
  1405. package/upload/constants.js +1 -1
  1406. package/upload/context.js +1 -1
  1407. package/upload/index.js +1 -1
  1408. package/upload/list/PictureItem.js +1 -1
  1409. package/upload/list/TextItem.js +1 -1
  1410. package/upload/list/UploadProgress.js +1 -1
  1411. package/upload/list/index.js +1 -1
  1412. package/upload/list/utils.js +1 -1
  1413. package/upload/request.js +1 -1
  1414. package/upload/style/index.js +1 -1
  1415. package/upload/utils.js +1 -1
  1416. package/utils/callOrReturn.js +1 -1
  1417. package/utils/callbackOriginRef.js +1 -1
  1418. package/utils/caseName.js +1 -1
  1419. package/utils/className.js +1 -1
  1420. package/utils/constants.js +1 -1
  1421. package/utils/contextHolder.js +1 -1
  1422. package/utils/copy.js +1 -1
  1423. package/utils/createGlobalConfigFunction.js +1 -1
  1424. package/utils/css.js +1 -1
  1425. package/utils/date.js +1 -1
  1426. package/utils/dayjs.js +1 -1
  1427. package/utils/document.js +1 -1
  1428. package/utils/dom.js +1 -1
  1429. package/utils/emitter.js +1 -1
  1430. package/utils/file.js +1 -1
  1431. package/utils/fileRead.js +1 -1
  1432. package/utils/fileToDataURL.js +1 -1
  1433. package/utils/fillNBSP.js +1 -1
  1434. package/utils/findRootElement.js +1 -1
  1435. package/utils/findScrollParent.js +1 -1
  1436. package/utils/getHighlightText.js +1 -1
  1437. package/utils/getHotkeyHandler.js +1 -1
  1438. package/utils/getScrollBarHeight.js +1 -1
  1439. package/utils/getScrollBarSize.js +1 -1
  1440. package/utils/getScrollBarWidth.js +1 -1
  1441. package/utils/getStringLength.js +1 -1
  1442. package/utils/include.js +1 -1
  1443. package/utils/index.js +1 -1
  1444. package/utils/intersectionObserver.js +1 -1
  1445. package/utils/is.js +1 -1
  1446. package/utils/keyboardCode.js +1 -1
  1447. package/utils/lodash.js +1 -1
  1448. package/utils/math.js +1 -1
  1449. package/utils/mergeProps.js +1 -1
  1450. package/utils/mergedToString.js +1 -1
  1451. package/utils/mutationObserver.js +1 -1
  1452. package/utils/names.js +1 -1
  1453. package/utils/object.js +1 -1
  1454. package/utils/omit.js +1 -1
  1455. package/utils/pad.js +1 -1
  1456. package/utils/pick.js +1 -1
  1457. package/utils/pinyin.js +1 -1
  1458. package/utils/react19Adapter.js +1 -1
  1459. package/utils/ref.js +1 -1
  1460. package/utils/resizeObserver.js +1 -1
  1461. package/utils/responsiveObserve.js +1 -1
  1462. package/utils/saveAs.js +1 -1
  1463. package/utils/screenfull.js +1 -1
  1464. package/utils/scrollIntoViewIfNeeded.js +1 -1
  1465. package/utils/setCreateRoot.js +1 -1
  1466. package/utils/setDarkTheme.js +1 -1
  1467. package/utils/setPrimaryColor.js +1 -1
  1468. package/utils/setTheme.js +1 -1
  1469. package/utils/string.js +1 -1
  1470. package/utils/style.js +1 -1
  1471. package/utils/tinycolor.js +1 -1
  1472. package/utils/toArray.js +1 -1
  1473. package/utils/tree.js +1 -1
  1474. package/utils/tunnel.js +1 -1
  1475. package/utils/tween.js +1 -1
  1476. package/utils/uuid.js +1 -1
  1477. package/utils/validate.js +1 -1
  1478. package/utils/warning.js +1 -1
  1479. package/verification-code/VerificationCode.js +1 -1
  1480. package/verification-code/constants.js +1 -1
  1481. package/verification-code/context.js +1 -1
  1482. package/verification-code/index.js +1 -1
  1483. package/verification-code/style/index.js +1 -1
  1484. package/version/index.js +6 -6
  1485. package/virtual-list/Filler.js +1 -1
  1486. package/virtual-list/VirtualList.js +1 -1
  1487. package/virtual-list/constants.js +1 -1
  1488. package/virtual-list/context.js +1 -1
  1489. package/virtual-list/hooks/useCacheChildrenNodes.js +1 -1
  1490. package/virtual-list/hooks/useComputeVirtualItemHeight.js +1 -1
  1491. package/virtual-list/index.js +1 -1
  1492. package/virtual-list/style/index.js +1 -1
  1493. package/virtual-list/utils/algorithm.js +1 -1
  1494. package/virtual-list/utils/item.js +1 -1
  1495. package/watermark/Watermark.js +1 -1
  1496. package/watermark/constants.js +1 -1
  1497. package/watermark/context.js +1 -1
  1498. package/watermark/index.js +1 -1
  1499. package/watermark/style/index.js +1 -1
  1500. package/draw/core/actions/actionTextAutoResize.d.ts +0 -17
  1501. package/draw/core/actions/actionToggleShapeSwitch.d.ts +0 -19
  1502. package/draw/core/actions/register.js +0 -6
  1503. package/draw/core/components/Actions.js +0 -493
  1504. package/draw/core/components/canvases/index.js +0 -4
  1505. package/draw/core/context/ui-appState.js +0 -7
  1506. package/draw/core/data/ai/types.d.ts +0 -242
  1507. package/draw/core/data/encryption.js +0 -4
  1508. package/draw/core/data/index.js +0 -5
  1509. package/draw/core/editor-jotai.d.ts +0 -7
  1510. package/draw/core/editor-jotai.js +0 -11
  1511. package/draw/core/errors.js +0 -22
  1512. package/draw/core/fonts/index.js +0 -3
  1513. package/draw/core/polyfill.js +0 -6
  1514. package/draw/core/scene/index.js +0 -7
  1515. package/draw/core/scene/normalize.js +0 -10
  1516. /package/{app → animation}/style/index.css +0 -0
  1517. /package/draw/{core/actions → actions}/index.d.ts +0 -0
  1518. /package/draw/{core/actions → actions}/register.d.ts +0 -0
  1519. /package/draw/{core/analytics.d.ts → analytics.d.ts} +0 -0
  1520. /package/draw/{core/animation-frame-handler.d.ts → animation-frame-handler.d.ts} +0 -0
  1521. /package/draw/{core/components → components}/ActiveConfirmDialog.d.ts +0 -0
  1522. /package/draw/{core/components → components}/BraveMeasureTextError.d.ts +0 -0
  1523. /package/draw/{core/components → components}/ButtonIconCycle.d.ts +0 -0
  1524. /package/draw/{core/components → components}/ButtonSeparator.d.ts +0 -0
  1525. /package/draw/{core/components → components}/ContextMenu.d.ts +0 -0
  1526. /package/draw/{core/components → components}/Ellipsify.d.ts +0 -0
  1527. /package/draw/{core/components → components}/ErrorDialog.d.ts +0 -0
  1528. /package/draw/{core/components → components}/FixedSideContainer.d.ts +0 -0
  1529. /package/draw/{core/components → components}/HandButton.d.ts +0 -0
  1530. /package/draw/{core/components → components}/HelpDialog.d.ts +0 -0
  1531. /package/draw/{core/components → components}/InlineIcon.d.ts +0 -0
  1532. /package/draw/{core/components → components}/Island.d.ts +0 -0
  1533. /package/draw/{core/components → components}/LaserPointerButton.d.ts +0 -0
  1534. /package/draw/{core/components → components}/LibraryMenu.d.ts +0 -0
  1535. /package/draw/{core/components → components}/LinkButton.d.ts +0 -0
  1536. /package/draw/{core/components → components}/LockButton.d.ts +0 -0
  1537. /package/draw/{core/components → components}/MagicButton.d.ts +0 -0
  1538. /package/draw/{core/components → components}/PenModeButton.d.ts +0 -0
  1539. /package/draw/{core/components → components}/Popover.d.ts +0 -0
  1540. /package/draw/{core/components → components}/ProjectName.d.ts +0 -0
  1541. /package/draw/{core/components → components}/SVGLayer.d.ts +0 -0
  1542. /package/draw/{core/components → components}/ScrollableList.d.ts +0 -0
  1543. /package/draw/{core/components → components}/SearchMenu.d.ts +0 -0
  1544. /package/draw/{core/components → components}/Stack.d.ts +0 -0
  1545. /package/draw/{core/components → components}/Toast.d.ts +0 -0
  1546. /package/draw/{core/components → components}/Tooltip.d.ts +0 -0
  1547. /package/draw/{core/components → components}/Trans.d.ts +0 -0
  1548. /package/draw/{core/components → components}/canvases/index.d.ts +0 -0
  1549. /package/draw/{core/components → components}/hoc/withInternalFallback.d.ts +0 -0
  1550. /package/draw/{core/components → components}/main-menu/MenuItem.d.ts +0 -0
  1551. /package/draw/{core/components → components}/main-menu/common.d.ts +0 -0
  1552. /package/draw/{core/components → components}/overwrite-confirm/State.d.ts +0 -0
  1553. /package/draw/{core/components → components}/overwrite-confirm/index.d.ts +0 -0
  1554. /package/draw/{core/components → components}/stats/Collapsible.d.ts +0 -0
  1555. /package/draw/{core/data → data}/encode.d.ts +0 -0
  1556. /package/draw/{core/data → data}/encryption.d.ts +0 -0
  1557. /package/draw/{core/data → data}/image.d.ts +0 -0
  1558. /package/draw/{core/data → data}/index.d.ts +0 -0
  1559. /package/draw/{core/deburr.d.ts → deburr.d.ts} +0 -0
  1560. /package/draw/{core/eraser → eraser}/index.d.ts +0 -0
  1561. /package/draw/{core/errors.d.ts → errors.d.ts} +0 -0
  1562. /package/draw/{core/fonts → fonts}/DrawFontFace.d.ts +0 -0
  1563. /package/draw/{core/fonts → fonts}/index.d.ts +0 -0
  1564. /package/draw/{core/hooks → hooks}/useCallbackRefState.d.ts +0 -0
  1565. /package/draw/{core/hooks → hooks}/useCopiedIndicator.d.ts +0 -0
  1566. /package/draw/{core/hooks → hooks}/useCreatePortalContainer.d.ts +0 -0
  1567. /package/draw/{core/hooks → hooks}/useOutsideClick.d.ts +0 -0
  1568. /package/draw/{core/hooks → hooks}/useScrollPosition.d.ts +0 -0
  1569. /package/draw/{core/hooks → hooks}/useStable.d.ts +0 -0
  1570. /package/draw/{core/hooks → hooks}/useStableCallback.d.ts +0 -0
  1571. /package/draw/{core/hooks → hooks}/useTextEditorFocus.d.ts +0 -0
  1572. /package/draw/{core/hooks → hooks}/useTransition.d.ts +0 -0
  1573. /package/draw/{core/laser-trails.d.ts → laser-trails.d.ts} +0 -0
  1574. /package/draw/{core/lasso → lasso}/index.d.ts +0 -0
  1575. /package/draw/{core/locales → locales}/percentages.json.js +0 -0
  1576. /package/draw/{core/locales → locales}/zh-CN.json.js +0 -0
  1577. /package/draw/{core/mermaid.d.ts → mermaid.d.ts} +0 -0
  1578. /package/draw/{core/polyfill.d.ts → polyfill.d.ts} +0 -0
  1579. /package/draw/{core/reactUtils.d.ts → reactUtils.d.ts} +0 -0
  1580. /package/draw/{core/renderer → renderer}/animation.d.ts +0 -0
  1581. /package/draw/{core/renderer → renderer}/interactiveScene.d.ts +0 -0
  1582. /package/draw/{core/renderer → renderer}/renderNewElementScene.d.ts +0 -0
  1583. /package/draw/{core/renderer → renderer}/roundRect.d.ts +0 -0
  1584. /package/draw/{core/shortcut.d.ts → shortcut.d.ts} +0 -0
  1585. /package/draw/{core/workers.d.ts → workers.d.ts} +0 -0
@@ -1,38 +1,38 @@
1
- /* 潘启宝 2026-06-29 10:53:33 星期一 山东省济南市 */
2
- import e from "../../../button/index.js";
3
- import t from "../../../flex/index.js";
4
- import n from "../../../popover/index.js";
5
- import r from "../../../radio/index.js";
6
- import i from "../../../color-picker/index.js";
7
- import { isTransparent as a } from "../../common/colors.js";
8
- import { ARROW_TYPE as o, FONT_SIZES as s, ROUNDNESS as c, STROKE_WIDTH as l, VERTICAL_ALIGN as u } from "../../common/constants.js";
9
- import { deriveStylesPanelMode as ee } from "../../common/editorInterface.js";
10
- import { KEYS as d } from "../../common/keys.js";
11
- import { pointFrom as f } from "../../libs/math/point.js";
12
- import "../../libs/math/index.js";
13
- import { arrayToMap as p, invariant as m, reduceToCommonValue as te } from "../../common/utils.js";
14
- import { randomInteger as ne } from "../../common/random.js";
15
- import "../../common/index.js";
16
- import { canHaveArrowheads as h, hasStrokeColor as re } from "../../element/comparisons.js";
17
- import { canBecomePolygon as ie, isArrowElement as g, isBoundToContainer as ae, isElbowArrow as _, isLineElement as v, isLinearElement as y, isTextElement as b, isUsingAdaptiveRadius as oe } from "../../element/typeChecks.js";
18
- import { getSelectedElements as x, getTargetElements as se, isSomeElementSelected as ce } from "../../element/selection.js";
19
- import { getBoundTextElement as S, redrawTextBoundingBox as C } from "../../element/textElement.js";
20
- import { updateElbowArrowPoints as le } from "../../element/elbowArrow.js";
21
- import { newElementWith as w } from "../../element/mutateElement.js";
22
- import { toggleLinePolygonState as ue } from "../../element/shape.js";
23
- import { bindBindingElement as T, calculateFixedPointForElbowArrowBinding as E, updateBoundElements as de } from "../../element/binding.js";
24
- import { LinearElementEditor as D } from "../../element/linearElementEditor.js";
25
- import { CaptureUpdateAction as O } from "../../element/store.js";
26
- import { getNonDeletedElements as k } from "../../element/index.js";
27
- import { trackEvent as fe } from "../analytics.js";
28
- import { getLanguage as pe, t as A } from "../i18n.js";
1
+ /* 潘启宝 2026-06-30 09:38:37 星期二 山东省济南市 */
2
+ import e from "../../button/index.js";
3
+ import t from "../../flex/index.js";
4
+ import n from "../../popover/index.js";
5
+ import r from "../../radio/index.js";
6
+ import i from "../../color-picker/index.js";
7
+ import { isTransparent as a } from "../common/colors.js";
8
+ import { ARROW_TYPE as o, FONT_SIZES as s, ROUNDNESS as c, STROKE_WIDTH as l, VERTICAL_ALIGN as u } from "../common/constants.js";
9
+ import { deriveStylesPanelMode as ee } from "../common/editorInterface.js";
10
+ import { KEYS as d } from "../common/keys.js";
11
+ import { pointFrom as te } from "../libs/math/point.js";
12
+ import "../libs/math/index.js";
13
+ import { arrayToMap as f, invariant as p, reduceToCommonValue as ne } from "../common/utils.js";
14
+ import { randomInteger as re } from "../common/random.js";
15
+ import "../common/index.js";
16
+ import { trackEvent as ie } from "../analytics.js";
17
+ import { canHaveArrowheads as m, hasStrokeColor as ae } from "../element/comparisons.js";
18
+ import { canBecomePolygon as oe, isArrowElement as h, isBoundToContainer as se, isElbowArrow as g, isLineElement as _, isLinearElement as v, isTextElement as y, isUsingAdaptiveRadius as ce } from "../element/typeChecks.js";
19
+ import { getSelectedElements as b, getTargetElements as le, isSomeElementSelected as ue } from "../element/selection.js";
20
+ import { getBoundTextElement as x, redrawTextBoundingBox as S } from "../element/textElement.js";
21
+ import { updateElbowArrowPoints as de } from "../element/elbowArrow.js";
22
+ import { newElementWith as C } from "../element/mutateElement.js";
23
+ import { toggleLinePolygonState as fe } from "../element/shape.js";
24
+ import { bindBindingElement as w, calculateFixedPointForElbowArrowBinding as T, updateBoundElements as pe } from "../element/binding.js";
25
+ import { LinearElementEditor as E } from "../element/linearElementEditor.js";
26
+ import { CaptureUpdateAction as D } from "../element/store.js";
27
+ import { getNonDeletedElements as O } from "../element/index.js";
28
+ import { getLanguage as me, t as k } from "../i18n.js";
29
29
  import "../scene/index.js";
30
- import { register as j } from "./register.js";
31
- import { getShortcutKey as M } from "../shortcut.js";
32
- import { getColorPickerProps as N } from "../../utils/index.js";
33
- import { Range as P } from "../components/Range.js";
34
- import { ArrowheadArrowIcon as F, ArrowheadBarIcon as I, ArrowheadCircleIcon as L, ArrowheadCircleOutlineIcon as R, ArrowheadCrowfootIcon as z, ArrowheadCrowfootOneIcon as B, ArrowheadCrowfootOneOrManyIcon as me, ArrowheadDiamondIcon as he, ArrowheadDiamondOutlineIcon as ge, ArrowheadNoneIcon as _e, ArrowheadTriangleIcon as ve, ArrowheadTriangleOutlineIcon as ye, FillCrossHatchIcon as be, FillHachureIcon as xe, FillSolidIcon as Se, FillZigZagIcon as Ce, SloppinessArchitectIcon as we, SloppinessArtistIcon as Te, SloppinessCartoonistIcon as Ee, StrokeStyleDashedIcon as De, StrokeStyleDottedIcon as Oe, fontSizeIcon as V } from "../components/icons.js";
35
- import { withCaretPositionPreservation as H } from "../hooks/useTextEditorFocus.js";
30
+ import { register as A } from "./register.js";
31
+ import { getShortcutKey as j } from "../shortcut.js";
32
+ import { Range as M } from "../components/Range.js";
33
+ import { ArrowheadArrowIcon as N, ArrowheadBarIcon as P, ArrowheadCircleIcon as F, ArrowheadCircleOutlineIcon as I, ArrowheadCrowfootIcon as L, ArrowheadCrowfootOneIcon as R, ArrowheadCrowfootOneOrManyIcon as z, ArrowheadDiamondIcon as he, ArrowheadDiamondOutlineIcon as ge, ArrowheadNoneIcon as _e, ArrowheadTriangleIcon as ve, ArrowheadTriangleOutlineIcon as ye, FillCrossHatchIcon as be, FillHachureIcon as xe, FillSolidIcon as Se, FillZigZagIcon as Ce, SloppinessArchitectIcon as we, SloppinessArtistIcon as Te, SloppinessCartoonistIcon as Ee, StrokeStyleDashedIcon as De, StrokeStyleDottedIcon as Oe, fontSizeIcon as B } from "../components/icons.js";
34
+ import { withCaretPositionPreservation as V } from "../hooks/useTextEditorFocus.js";
35
+ import { getColorPickerProps as H } from "../utils/index.js";
36
36
  import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
37
37
  import K from "@unicom-cloud/icons/IconUiMinus";
38
38
  import ke from "@unicom-cloud/utils/tinycolor";
@@ -47,7 +47,7 @@ import Le from "@unicom-cloud/icons/IconUiEdgeSharp";
47
47
  import Re from "@unicom-cloud/icons/IconUiElbowArrow";
48
48
  import ze from "@unicom-cloud/icons/IconUiRoundArrow";
49
49
  import Be from "@unicom-cloud/icons/IconUiSharpArrow";
50
- //#region components/pc/draw/core/actions/actionProperties.tsx
50
+ //#region components/pc/draw/actions/actionProperties.tsx
51
51
  var q = (e) => {
52
52
  let t = ee(e.editorInterface);
53
53
  return {
@@ -56,66 +56,66 @@ var q = (e) => {
56
56
  isMobile: t === "mobile"
57
57
  };
58
58
  }, J = (e, t, n, r = !1) => {
59
- let i = p(x(e, t, { includeBoundTextElement: r }));
59
+ let i = f(b(e, t, { includeBoundTextElement: r }));
60
60
  return e.map((e) => i.get(e.id) || e.id === t.editingTextElement?.id ? n(e) : e);
61
61
  }, Y = function(e, t, n, r, i) {
62
- let a = t.state.editingTextElement, o = k(e), s = null;
63
- if (a && (s = n(a)), !s) if (ce(o, t.state)) {
62
+ let a = t.state.editingTextElement, o = O(e), s = null;
63
+ if (a && (s = n(a)), !s) if (ue(o, t.state)) {
64
64
  let e = t.scene.getSelectedElements(t.state);
65
- s = te(r === !0 ? e : e.filter((e) => r(e)), n) ?? (typeof i == "function" ? i(!0) : i);
65
+ s = ne(r === !0 ? e : e.filter((e) => r(e)), n) ?? (typeof i == "function" ? i(!0) : i);
66
66
  } else s = typeof i == "function" ? i(!1) : i;
67
67
  return s;
68
- }, X = (e, t, n) => ae(t) || !t.autoResize ? t : n.mutateElement(t, {
68
+ }, X = (e, t, n) => se(t) || !t.autoResize ? t : n.mutateElement(t, {
69
69
  x: e.textAlign === "left" ? e.x : e.x + (e.width - t.width) / (e.textAlign === "center" ? 2 : 1),
70
70
  y: e.y + (e.height - t.height) / 2
71
71
  }), Z = (e, t, n, r, i) => {
72
72
  let a = /* @__PURE__ */ new Set(), o = J(e, t, (e) => {
73
- if (b(e)) {
73
+ if (y(e)) {
74
74
  let t = r(e);
75
75
  a.add(t);
76
- let i = w(e, { fontSize: t });
77
- return C(i, n.scene.getContainerElement(e), n.scene), i = X(e, i, n.scene), i;
76
+ let i = C(e, { fontSize: t });
77
+ return S(i, n.scene.getContainerElement(e), n.scene), i = X(e, i, n.scene), i;
78
78
  }
79
79
  return e;
80
80
  }, !0);
81
- return x(e, t, { includeBoundTextElement: !0 }).forEach((e) => {
82
- b(e) && de(e, n.scene);
81
+ return b(e, t, { includeBoundTextElement: !0 }).forEach((e) => {
82
+ y(e) && pe(e, n.scene);
83
83
  }), {
84
84
  elements: o,
85
85
  appState: {
86
86
  ...t,
87
87
  currentItemFontSize: a.size === 1 ? [...a][0] : i ?? t.currentItemFontSize
88
88
  },
89
- captureUpdate: O.IMMEDIATELY
89
+ captureUpdate: D.IMMEDIATELY
90
90
  };
91
91
  };
92
- j({
92
+ A({
93
93
  name: "changeStrokeColor",
94
94
  label: "labels.stroke",
95
95
  trackEvent: !1,
96
96
  perform: (e, t, n) => ({
97
- ...n?.currentItemStrokeColor && { elements: J(e, t, (e) => re(e.type) ? w(e, { strokeColor: n.currentItemStrokeColor }) : e, !0) },
97
+ ...n?.currentItemStrokeColor && { elements: J(e, t, (e) => ae(e.type) ? C(e, { strokeColor: n.currentItemStrokeColor }) : e, !0) },
98
98
  appState: {
99
99
  ...t,
100
100
  ...n
101
101
  },
102
- captureUpdate: n?.currentItemStrokeColor ? O.IMMEDIATELY : O.EVENTUALLY
102
+ captureUpdate: n?.currentItemStrokeColor ? D.IMMEDIATELY : D.EVENTUALLY
103
103
  }),
104
104
  PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: a }) => {
105
105
  let { stylesPanelMode: o } = q(r);
106
106
  return /* @__PURE__ */ G(U, { children: [o === "full" && /* @__PURE__ */ W("h3", {
107
107
  "aria-hidden": "true",
108
- children: A("labels.stroke")
108
+ children: k("labels.stroke")
109
109
  }), /* @__PURE__ */ W(i, {
110
- title: A("labels.stroke"),
111
- ...N(),
110
+ title: k("labels.stroke"),
111
+ ...H(),
112
112
  value: Y(e, r, (e) => e.strokeColor, !0, (e) => e ? null : t.currentItemStrokeColor),
113
113
  onChange: (e) => {
114
114
  n({ currentItemStrokeColor: e });
115
115
  }
116
116
  })] });
117
117
  }
118
- }), j({
118
+ }), A({
119
119
  name: "changeBackgroundColor",
120
120
  label: "labels.changeBackground",
121
121
  trackEvent: !1,
@@ -125,33 +125,33 @@ j({
125
125
  ...t,
126
126
  ...n
127
127
  },
128
- captureUpdate: O.EVENTUALLY
128
+ captureUpdate: D.EVENTUALLY
129
129
  };
130
130
  let i, o = r.scene.getSelectedElements(t);
131
- if (!a(n.currentItemBackgroundColor) && o.every((e) => v(e) && ie(e.points))) {
132
- let t = p(o);
133
- i = e.map((e) => t.has(e.id) && v(e) ? w(e, {
131
+ if (!a(n.currentItemBackgroundColor) && o.every((e) => _(e) && oe(e.points))) {
132
+ let t = f(o);
133
+ i = e.map((e) => t.has(e.id) && _(e) ? C(e, {
134
134
  backgroundColor: n.currentItemBackgroundColor,
135
- ...ue(e, !0)
135
+ ...fe(e, !0)
136
136
  }) : e);
137
- } else i = J(e, t, (e) => w(e, { backgroundColor: n.currentItemBackgroundColor }));
137
+ } else i = J(e, t, (e) => C(e, { backgroundColor: n.currentItemBackgroundColor }));
138
138
  return {
139
139
  elements: i,
140
140
  appState: {
141
141
  ...t,
142
142
  ...n
143
143
  },
144
- captureUpdate: O.IMMEDIATELY
144
+ captureUpdate: D.IMMEDIATELY
145
145
  };
146
146
  },
147
147
  PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: a }) => {
148
148
  let { stylesPanelMode: o } = q(r);
149
149
  return /* @__PURE__ */ G(U, { children: [o === "full" && /* @__PURE__ */ W("h3", {
150
150
  "aria-hidden": "true",
151
- children: A("labels.background")
151
+ children: k("labels.background")
152
152
  }), /* @__PURE__ */ W(i, {
153
- title: A("labels.background"),
154
- ...N(),
153
+ title: k("labels.background"),
154
+ ...H(),
155
155
  value: Y(e, r, (e) => {
156
156
  let t = e.backgroundColor, n = new ke(t);
157
157
  return n.getAlpha() || (t = n.setAlpha(.27).toHex8String()), t;
@@ -161,38 +161,38 @@ j({
161
161
  }
162
162
  })] });
163
163
  }
164
- }), j({
164
+ }), A({
165
165
  name: "changeFillStyle",
166
166
  label: "labels.fill",
167
167
  trackEvent: !1,
168
- perform: (e, t, n, r) => (fe("element", "changeFillStyle", `${n} (${r.editorInterface.formFactor === "phone" ? "mobile" : "desktop"})`), {
169
- elements: J(e, t, (e) => w(e, { fillStyle: n })),
168
+ perform: (e, t, n, r) => (ie("element", "changeFillStyle", `${n} (${r.editorInterface.formFactor === "phone" ? "mobile" : "desktop"})`), {
169
+ elements: J(e, t, (e) => C(e, { fillStyle: n })),
170
170
  appState: {
171
171
  ...t,
172
172
  currentItemFillStyle: n
173
173
  },
174
- captureUpdate: O.IMMEDIATELY
174
+ captureUpdate: D.IMMEDIATELY
175
175
  }),
176
176
  PanelComponent: ({ elements: e, appState: t, updateData: n, app: r }) => {
177
- let i = x(e, t), a = i.length > 0 && i.every((e) => e.fillStyle === "zigzag");
178
- return /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: A("labels.fill") }), Q({
177
+ let i = b(e, t), a = i.length > 0 && i.every((e) => e.fillStyle === "zigzag");
178
+ return /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: k("labels.fill") }), Q({
179
179
  options: [
180
180
  {
181
181
  value: "hachure",
182
- text: `${A(a ? "labels.zigzag" : "labels.hachure")} (${M("Alt-Click")})`,
182
+ text: `${k(a ? "labels.zigzag" : "labels.hachure")} (${j("Alt-Click")})`,
183
183
  icon: a ? Ce : xe,
184
184
  active: a ? !0 : void 0,
185
185
  testId: "fill-hachure"
186
186
  },
187
187
  {
188
188
  value: "cross-hatch",
189
- text: A("labels.crossHatch"),
189
+ text: k("labels.crossHatch"),
190
190
  icon: be,
191
191
  testId: "fill-cross-hatch"
192
192
  },
193
193
  {
194
194
  value: "solid",
195
- text: A("labels.solid"),
195
+ text: k("labels.solid"),
196
196
  icon: Se,
197
197
  testId: "fill-solid"
198
198
  }
@@ -203,35 +203,35 @@ j({
203
203
  }
204
204
  })] });
205
205
  }
206
- }), j({
206
+ }), A({
207
207
  name: "changeStrokeWidth",
208
208
  label: "labels.strokeWidth",
209
209
  trackEvent: !1,
210
210
  perform: (e, t, n) => ({
211
- elements: J(e, t, (e) => w(e, { strokeWidth: n })),
211
+ elements: J(e, t, (e) => C(e, { strokeWidth: n })),
212
212
  appState: {
213
213
  ...t,
214
214
  currentItemStrokeWidth: n
215
215
  },
216
- captureUpdate: O.IMMEDIATELY
216
+ captureUpdate: D.IMMEDIATELY
217
217
  }),
218
- PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: A("labels.strokeWidth") }), Q({
218
+ PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: k("labels.strokeWidth") }), Q({
219
219
  options: [
220
220
  {
221
221
  value: l.thin,
222
- text: A("labels.thin"),
222
+ text: k("labels.thin"),
223
223
  icon: /* @__PURE__ */ W(K, { style: { strokeWidth: 4 } }),
224
224
  testId: "strokeWidth-thin"
225
225
  },
226
226
  {
227
227
  value: l.bold,
228
- text: A("labels.bold"),
228
+ text: k("labels.bold"),
229
229
  icon: /* @__PURE__ */ W(K, { style: { strokeWidth: 6 } }),
230
230
  testId: "strokeWidth-bold"
231
231
  },
232
232
  {
233
233
  value: l.extraBold,
234
- text: A("labels.extraBold"),
234
+ text: k("labels.extraBold"),
235
235
  icon: /* @__PURE__ */ W(K, { style: { strokeWidth: 8 } }),
236
236
  testId: "strokeWidth-extraBold"
237
237
  }
@@ -239,37 +239,37 @@ j({
239
239
  value: Y(e, r, (e) => e.strokeWidth, (e) => Object.prototype.hasOwnProperty.call(e, "strokeWidth"), (e) => e ? null : t.currentItemStrokeWidth),
240
240
  onChange: (e) => n(e)
241
241
  })] })
242
- }), j({
242
+ }), A({
243
243
  name: "changeSloppiness",
244
244
  label: "labels.sloppiness",
245
245
  trackEvent: !1,
246
246
  perform: (e, t, n) => ({
247
- elements: J(e, t, (e) => w(e, {
248
- seed: ne(),
247
+ elements: J(e, t, (e) => C(e, {
248
+ seed: re(),
249
249
  roughness: n
250
250
  })),
251
251
  appState: {
252
252
  ...t,
253
253
  currentItemRoughness: n
254
254
  },
255
- captureUpdate: O.IMMEDIATELY
255
+ captureUpdate: D.IMMEDIATELY
256
256
  }),
257
- PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: A("labels.sloppiness") }), Q({
257
+ PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: k("labels.sloppiness") }), Q({
258
258
  value: Y(e, r, (e) => e.roughness, (e) => Object.prototype.hasOwnProperty.call(e, "roughness"), (e) => e ? null : t.currentItemRoughness),
259
259
  options: [
260
260
  {
261
261
  value: 0,
262
- label: A("labels.architect"),
262
+ label: k("labels.architect"),
263
263
  icon: we
264
264
  },
265
265
  {
266
266
  value: 1,
267
- label: A("labels.artist"),
267
+ label: k("labels.artist"),
268
268
  icon: Te
269
269
  },
270
270
  {
271
271
  value: 2,
272
- label: A("labels.cartoonist"),
272
+ label: k("labels.cartoonist"),
273
273
  icon: Ee
274
274
  }
275
275
  ],
@@ -297,68 +297,68 @@ function Q(n) {
297
297
  })
298
298
  });
299
299
  }
300
- j({
300
+ A({
301
301
  name: "changeStrokeStyle",
302
302
  label: "labels.strokeStyle",
303
303
  trackEvent: !1,
304
304
  perform: (e, t, n) => ({
305
- elements: J(e, t, (e) => w(e, { strokeStyle: n })),
305
+ elements: J(e, t, (e) => C(e, { strokeStyle: n })),
306
306
  appState: {
307
307
  ...t,
308
308
  currentItemStrokeStyle: n
309
309
  },
310
- captureUpdate: O.IMMEDIATELY
310
+ captureUpdate: D.IMMEDIATELY
311
311
  }),
312
- PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: A("labels.strokeStyle") }), Q({
312
+ PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: k("labels.strokeStyle") }), Q({
313
313
  options: [
314
314
  {
315
315
  value: "solid",
316
- text: A("labels.strokeStyle_solid"),
316
+ text: k("labels.strokeStyle_solid"),
317
317
  icon: /* @__PURE__ */ W(K, { style: { strokeWidth: 4 } })
318
318
  },
319
319
  {
320
320
  value: "dashed",
321
- text: A("labels.strokeStyle_dashed"),
321
+ text: k("labels.strokeStyle_dashed"),
322
322
  icon: De
323
323
  },
324
324
  {
325
325
  value: "dotted",
326
- text: A("labels.strokeStyle_dotted"),
326
+ text: k("labels.strokeStyle_dotted"),
327
327
  icon: Oe
328
328
  }
329
329
  ],
330
330
  value: Y(e, r, (e) => e.strokeStyle, (e) => Object.prototype.hasOwnProperty.call(e, "strokeStyle"), (e) => e ? null : t.currentItemStrokeStyle),
331
331
  onChange: (e) => n(e)
332
332
  })] })
333
- }), j({
333
+ }), A({
334
334
  name: "changeOpacity",
335
335
  label: "labels.opacity",
336
336
  trackEvent: !1,
337
337
  perform: (e, t, n) => ({
338
- elements: J(e, t, (e) => w(e, { opacity: n }), !0),
338
+ elements: J(e, t, (e) => C(e, { opacity: n }), !0),
339
339
  appState: {
340
340
  ...t,
341
341
  currentItemOpacity: n
342
342
  },
343
- captureUpdate: O.IMMEDIATELY
343
+ captureUpdate: D.IMMEDIATELY
344
344
  }),
345
- PanelComponent: ({ app: e, updateData: t }) => /* @__PURE__ */ W(P, {
345
+ PanelComponent: ({ app: e, updateData: t }) => /* @__PURE__ */ W(M, {
346
346
  updateData: t,
347
347
  app: e,
348
348
  testId: "opacity"
349
349
  })
350
- }), j({
350
+ }), A({
351
351
  name: "changeFontSize",
352
352
  label: "labels.fontSize",
353
353
  trackEvent: !1,
354
- perform: (e, t, n, r) => Z(e, t, r, () => (m(n, "actionChangeFontSize: Expected a font size value"), n), n),
354
+ perform: (e, t, n, r) => Z(e, t, r, () => (p(n, "actionChangeFontSize: Expected a font size value"), n), n),
355
355
  PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => {
356
356
  let { isCompact: a } = q(r), o = { fontWeight: 500 };
357
- return /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: A("labels.fontSize") }), Q({
357
+ return /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: k("labels.fontSize") }), Q({
358
358
  options: [
359
359
  {
360
360
  value: s.sm,
361
- text: A("labels.small"),
361
+ text: k("labels.small"),
362
362
  icon: /* @__PURE__ */ W("span", {
363
363
  style: { ...o },
364
364
  children: "S"
@@ -367,7 +367,7 @@ j({
367
367
  },
368
368
  {
369
369
  value: s.md,
370
- text: A("labels.medium"),
370
+ text: k("labels.medium"),
371
371
  icon: /* @__PURE__ */ W("span", {
372
372
  style: { ...o },
373
373
  children: "M"
@@ -376,7 +376,7 @@ j({
376
376
  },
377
377
  {
378
378
  value: s.lg,
379
- text: A("labels.large"),
379
+ text: k("labels.large"),
380
380
  icon: /* @__PURE__ */ W("span", {
381
381
  style: { ...o },
382
382
  children: "L"
@@ -385,7 +385,7 @@ j({
385
385
  },
386
386
  {
387
387
  value: s.xl,
388
- text: A("labels.veryLarge"),
388
+ text: k("labels.veryLarge"),
389
389
  icon: /* @__PURE__ */ W("span", {
390
390
  style: { ...o },
391
391
  children: "XL"
@@ -394,40 +394,40 @@ j({
394
394
  }
395
395
  ],
396
396
  value: Y(e, r, (e) => {
397
- if (b(e)) return e.fontSize;
398
- let t = S(e, r.scene.getNonDeletedElementsMap());
397
+ if (y(e)) return e.fontSize;
398
+ let t = x(e, r.scene.getNonDeletedElementsMap());
399
399
  return t ? t.fontSize : null;
400
- }, (e) => b(e) || S(e, r.scene.getNonDeletedElementsMap()) !== null, (e) => e ? null : t.currentItemFontSize || 20),
400
+ }, (e) => y(e) || x(e, r.scene.getNonDeletedElementsMap()) !== null, (e) => e ? null : t.currentItemFontSize || 20),
401
401
  onChange: (e) => {
402
- H(() => n(e), a, !!t.editingTextElement, i?.onPreventClose);
402
+ V(() => n(e), a, !!t.editingTextElement, i?.onPreventClose);
403
403
  }
404
404
  })] });
405
405
  }
406
406
  });
407
- var Ve = j({
407
+ var Ve = A({
408
408
  name: "decreaseFontSize",
409
409
  label: "labels.decreaseFontSize",
410
- icon: V,
410
+ icon: B,
411
411
  trackEvent: !1,
412
412
  perform: (e, t, n, r) => Z(e, t, r, (e) => Math.round(1 / 1.1 * e.fontSize)),
413
413
  keyTest: (e) => e[d.CTRL_OR_CMD] && e.shiftKey && (e.key === d.CHEVRON_LEFT || e.key === d.COMMA)
414
- }), He = j({
414
+ }), He = A({
415
415
  name: "increaseFontSize",
416
416
  label: "labels.increaseFontSize",
417
- icon: V,
417
+ icon: B,
418
418
  trackEvent: !1,
419
419
  perform: (e, t, n, r) => Z(e, t, r, (e) => Math.round(e.fontSize * 1.1)),
420
420
  keyTest: (e) => e[d.CTRL_OR_CMD] && e.shiftKey && (e.key === d.CHEVRON_RIGHT || e.key === d.PERIOD)
421
421
  });
422
- j({
422
+ A({
423
423
  name: "changeTextAlign",
424
424
  label: "Change text alignment",
425
425
  trackEvent: !1,
426
426
  perform: (e, t, n, r) => ({
427
427
  elements: J(e, t, (e) => {
428
- if (b(e)) {
429
- let t = w(e, { textAlign: n });
430
- return C(t, r.scene.getContainerElement(e), r.scene), t;
428
+ if (y(e)) {
429
+ let t = C(e, { textAlign: n });
430
+ return S(t, r.scene.getContainerElement(e), r.scene), t;
431
431
  }
432
432
  return e;
433
433
  }, !0),
@@ -435,55 +435,55 @@ j({
435
435
  ...t,
436
436
  currentItemTextAlign: n
437
437
  },
438
- captureUpdate: O.IMMEDIATELY
438
+ captureUpdate: D.IMMEDIATELY
439
439
  }),
440
440
  PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => {
441
441
  let a = r.scene.getNonDeletedElementsMap(), { isCompact: o } = q(r);
442
- return /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: A("labels.textAlign") }), Q({
442
+ return /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: k("labels.textAlign") }), Q({
443
443
  options: [
444
444
  {
445
445
  value: "left",
446
- text: A("labels.left"),
446
+ text: k("labels.left"),
447
447
  icon: /* @__PURE__ */ W(je, {}),
448
448
  testId: "align-left"
449
449
  },
450
450
  {
451
451
  value: "center",
452
- text: A("labels.center"),
452
+ text: k("labels.center"),
453
453
  icon: /* @__PURE__ */ W(Ae, {}),
454
454
  testId: "align-horizontal-center"
455
455
  },
456
456
  {
457
457
  value: "right",
458
- text: A("labels.right"),
458
+ text: k("labels.right"),
459
459
  icon: /* @__PURE__ */ W(Me, {}),
460
460
  testId: "align-right"
461
461
  }
462
462
  ],
463
463
  value: Y(e, r, (e) => {
464
- if (b(e)) return e.textAlign;
465
- let t = S(e, a);
464
+ if (y(e)) return e.textAlign;
465
+ let t = x(e, a);
466
466
  return t ? t.textAlign : null;
467
- }, (e) => b(e) || S(e, a) !== null, (e) => e ? null : t.currentItemTextAlign),
467
+ }, (e) => y(e) || x(e, a) !== null, (e) => e ? null : t.currentItemTextAlign),
468
468
  onChange: (e) => {
469
- H(() => n(e), o, !!t.editingTextElement, i?.onPreventClose);
469
+ V(() => n(e), o, !!t.editingTextElement, i?.onPreventClose);
470
470
  }
471
471
  })] });
472
472
  }
473
- }), j({
473
+ }), A({
474
474
  name: "changeVerticalAlign",
475
475
  label: "Change vertical alignment",
476
476
  trackEvent: { category: "element" },
477
477
  perform: (e, t, n, r) => ({
478
478
  elements: J(e, t, (e) => {
479
- if (b(e)) {
480
- let t = w(e, { verticalAlign: n });
481
- return C(t, r.scene.getContainerElement(e), r.scene), t;
479
+ if (y(e)) {
480
+ let t = C(e, { verticalAlign: n });
481
+ return S(t, r.scene.getContainerElement(e), r.scene), t;
482
482
  }
483
483
  return e;
484
484
  }, !0),
485
485
  appState: { ...t },
486
- captureUpdate: O.IMMEDIATELY
486
+ captureUpdate: D.IMMEDIATELY
487
487
  }),
488
488
  PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, data: i }) => {
489
489
  let { isCompact: a } = q(r);
@@ -491,60 +491,60 @@ j({
491
491
  options: [
492
492
  {
493
493
  value: u.TOP,
494
- text: A("labels.alignTop"),
494
+ text: k("labels.alignTop"),
495
495
  icon: /* @__PURE__ */ W(Fe, {}),
496
496
  testId: "align-top"
497
497
  },
498
498
  {
499
499
  value: u.MIDDLE,
500
- text: A("labels.centerVertically"),
500
+ text: k("labels.centerVertically"),
501
501
  icon: /* @__PURE__ */ W(Pe, {}),
502
502
  testId: "align-middle"
503
503
  },
504
504
  {
505
505
  value: u.BOTTOM,
506
- text: A("labels.alignBottom"),
506
+ text: k("labels.alignBottom"),
507
507
  icon: /* @__PURE__ */ W(Ne, {}),
508
508
  testId: "align-bottom"
509
509
  }
510
510
  ],
511
511
  value: Y(e, r, (e) => {
512
- if (b(e) && e.containerId) return e.verticalAlign;
513
- let t = S(e, r.scene.getNonDeletedElementsMap());
512
+ if (y(e) && e.containerId) return e.verticalAlign;
513
+ let t = x(e, r.scene.getNonDeletedElementsMap());
514
514
  return t ? t.verticalAlign : null;
515
- }, (e) => b(e) || S(e, r.scene.getNonDeletedElementsMap()) !== null, (e) => e ? null : u.MIDDLE),
515
+ }, (e) => y(e) || x(e, r.scene.getNonDeletedElementsMap()) !== null, (e) => e ? null : u.MIDDLE),
516
516
  onChange: (e) => {
517
- H(() => n(e), a, !!t.editingTextElement, i?.onPreventClose);
517
+ V(() => n(e), a, !!t.editingTextElement, i?.onPreventClose);
518
518
  }
519
519
  }) });
520
520
  }
521
- }), j({
521
+ }), A({
522
522
  name: "changeRoundness",
523
523
  label: "Change edge roundness",
524
524
  trackEvent: !1,
525
525
  perform: (e, t, n) => ({
526
- elements: J(e, t, (e) => _(e) ? e : w(e, { roundness: n === "round" ? { type: oe(e.type) ? c.ADAPTIVE_RADIUS : c.PROPORTIONAL_RADIUS } : null })),
526
+ elements: J(e, t, (e) => g(e) ? e : C(e, { roundness: n === "round" ? { type: ce(e.type) ? c.ADAPTIVE_RADIUS : c.PROPORTIONAL_RADIUS } : null })),
527
527
  appState: {
528
528
  ...t,
529
529
  currentItemRoundness: n
530
530
  },
531
- captureUpdate: O.IMMEDIATELY
531
+ captureUpdate: D.IMMEDIATELY
532
532
  }),
533
533
  PanelComponent: ({ elements: e, appState: t, updateData: n, app: r, renderAction: i }) => {
534
- let a = se(k(e), t).some((e) => e.roundness?.type === c.LEGACY);
534
+ let a = le(O(e), t).some((e) => e.roundness?.type === c.LEGACY);
535
535
  return /* @__PURE__ */ G("fieldset", { children: [
536
- /* @__PURE__ */ W("legend", { children: A("labels.edges") }),
536
+ /* @__PURE__ */ W("legend", { children: k("labels.edges") }),
537
537
  Q({
538
538
  options: [{
539
539
  value: "sharp",
540
- text: A("labels.sharp"),
540
+ text: k("labels.sharp"),
541
541
  icon: /* @__PURE__ */ W(Le, {})
542
542
  }, {
543
543
  value: "round",
544
- text: A("labels.round"),
544
+ text: k("labels.round"),
545
545
  icon: /* @__PURE__ */ W(Ie, {})
546
546
  }],
547
- value: Y(e, r, (e) => a ? null : e.roundness ? "round" : "sharp", (e) => !g(e) && Object.prototype.hasOwnProperty.call(e, "roundness"), (e) => e ? null : t.currentItemRoundness),
547
+ value: Y(e, r, (e) => a ? null : e.roundness ? "round" : "sharp", (e) => !h(e) && Object.prototype.hasOwnProperty.call(e, "roundness"), (e) => e ? null : t.currentItemRoundness),
548
548
  onChange: (e) => n(e)
549
549
  }),
550
550
  i("togglePolygon")
@@ -554,87 +554,87 @@ j({
554
554
  var $ = (e) => [
555
555
  {
556
556
  value: null,
557
- text: A("labels.arrowhead_none"),
557
+ text: k("labels.arrowhead_none"),
558
558
  keyBinding: "q",
559
559
  icon: _e
560
560
  },
561
561
  {
562
562
  value: "arrow",
563
- text: A("labels.arrowhead_arrow"),
563
+ text: k("labels.arrowhead_arrow"),
564
564
  keyBinding: "w",
565
- icon: /* @__PURE__ */ W(F, { flip: e })
565
+ icon: /* @__PURE__ */ W(N, { flip: e })
566
566
  },
567
567
  {
568
568
  value: "triangle",
569
- text: A("labels.arrowhead_triangle"),
569
+ text: k("labels.arrowhead_triangle"),
570
570
  icon: /* @__PURE__ */ W(ve, { flip: e }),
571
571
  keyBinding: "e"
572
572
  },
573
573
  {
574
574
  value: "triangle_outline",
575
- text: A("labels.arrowhead_triangle_outline"),
575
+ text: k("labels.arrowhead_triangle_outline"),
576
576
  icon: /* @__PURE__ */ W(ye, { flip: e }),
577
577
  keyBinding: "r"
578
578
  },
579
579
  {
580
580
  value: "circle",
581
- text: A("labels.arrowhead_circle"),
581
+ text: k("labels.arrowhead_circle"),
582
582
  keyBinding: "a",
583
- icon: /* @__PURE__ */ W(L, { flip: e })
583
+ icon: /* @__PURE__ */ W(F, { flip: e })
584
584
  },
585
585
  {
586
586
  value: "circle_outline",
587
- text: A("labels.arrowhead_circle_outline"),
587
+ text: k("labels.arrowhead_circle_outline"),
588
588
  keyBinding: "s",
589
- icon: /* @__PURE__ */ W(R, { flip: e })
589
+ icon: /* @__PURE__ */ W(I, { flip: e })
590
590
  },
591
591
  {
592
592
  value: "diamond",
593
- text: A("labels.arrowhead_diamond"),
593
+ text: k("labels.arrowhead_diamond"),
594
594
  icon: /* @__PURE__ */ W(he, { flip: e }),
595
595
  keyBinding: "d"
596
596
  },
597
597
  {
598
598
  value: "diamond_outline",
599
- text: A("labels.arrowhead_diamond_outline"),
599
+ text: k("labels.arrowhead_diamond_outline"),
600
600
  icon: /* @__PURE__ */ W(ge, { flip: e }),
601
601
  keyBinding: "f"
602
602
  },
603
603
  {
604
604
  value: "bar",
605
- text: A("labels.arrowhead_bar"),
605
+ text: k("labels.arrowhead_bar"),
606
606
  keyBinding: "z",
607
- icon: /* @__PURE__ */ W(I, { flip: e })
607
+ icon: /* @__PURE__ */ W(P, { flip: e })
608
608
  },
609
609
  {
610
610
  value: "crowfoot_one",
611
- text: A("labels.arrowhead_crowfoot_one"),
612
- icon: /* @__PURE__ */ W(B, { flip: e }),
611
+ text: k("labels.arrowhead_crowfoot_one"),
612
+ icon: /* @__PURE__ */ W(R, { flip: e }),
613
613
  keyBinding: "x"
614
614
  },
615
615
  {
616
616
  value: "crowfoot_many",
617
- text: A("labels.arrowhead_crowfoot_many"),
618
- icon: /* @__PURE__ */ W(z, { flip: e }),
617
+ text: k("labels.arrowhead_crowfoot_many"),
618
+ icon: /* @__PURE__ */ W(L, { flip: e }),
619
619
  keyBinding: "c"
620
620
  },
621
621
  {
622
622
  value: "crowfoot_one_or_many",
623
- text: A("labels.arrowhead_crowfoot_one_or_many"),
624
- icon: /* @__PURE__ */ W(me, { flip: e }),
623
+ text: k("labels.arrowhead_crowfoot_one_or_many"),
624
+ icon: /* @__PURE__ */ W(z, { flip: e }),
625
625
  keyBinding: "v"
626
626
  }
627
627
  ];
628
- j({
628
+ A({
629
629
  name: "changeArrowhead",
630
630
  label: "Change arrowheads",
631
631
  trackEvent: !1,
632
- perform: (e, t, n) => (m(n, "actionChangeArrowhead: value must be defined"), {
632
+ perform: (e, t, n) => (p(n, "actionChangeArrowhead: value must be defined"), {
633
633
  elements: J(e, t, (e) => {
634
- if (y(e)) {
634
+ if (v(e)) {
635
635
  let { position: t, type: r } = n;
636
- if (t === "start") return w(e, { startArrowhead: r });
637
- if (t === "end") return w(e, { endArrowhead: r });
636
+ if (t === "start") return C(e, { startArrowhead: r });
637
+ if (t === "end") return C(e, { endArrowhead: r });
638
638
  }
639
639
  return e;
640
640
  }),
@@ -642,11 +642,11 @@ j({
642
642
  ...t,
643
643
  [n.position === "start" ? "currentItemStartArrowhead" : "currentItemEndArrowhead"]: n.type
644
644
  },
645
- captureUpdate: O.IMMEDIATELY
645
+ captureUpdate: D.IMMEDIATELY
646
646
  }),
647
647
  PanelComponent: ({ elements: r, appState: i, updateData: a, app: o }) => {
648
- let s = pe().rtl, c = Y(r, o, (e) => y(e) && h(e.type) ? e.startArrowhead : i.currentItemStartArrowhead, !0, i.currentItemStartArrowhead), l = Y(r, o, (e) => y(e) && h(e.type) ? e.endArrowhead : i.currentItemEndArrowhead, !0, i.currentItemEndArrowhead);
649
- return /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: A("labels.arrowheads") }), /* @__PURE__ */ G(t, {
648
+ let s = me().rtl, c = Y(r, o, (e) => v(e) && m(e.type) ? e.startArrowhead : i.currentItemStartArrowhead, !0, i.currentItemStartArrowhead), l = Y(r, o, (e) => v(e) && m(e.type) ? e.endArrowhead : i.currentItemEndArrowhead, !0, i.currentItemEndArrowhead);
649
+ return /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: k("labels.arrowheads") }), /* @__PURE__ */ G(t, {
650
650
  inline: !0,
651
651
  wrap: !0,
652
652
  children: [/* @__PURE__ */ W(n, {
@@ -680,7 +680,7 @@ j({
680
680
  })]
681
681
  })] });
682
682
  }
683
- }), j({
683
+ }), A({
684
684
  name: "changeArrowProperties",
685
685
  label: "Change arrow properties",
686
686
  trackEvent: !1,
@@ -689,48 +689,48 @@ j({
689
689
  className: "selected-shape-actions",
690
690
  children: [i("changeArrowhead"), i("changeArrowType")]
691
691
  })
692
- }), j({
692
+ }), A({
693
693
  name: "changeArrowType",
694
694
  label: "Change arrow types",
695
695
  trackEvent: !1,
696
696
  perform: (e, t, n, r) => {
697
697
  let i = J(e, t, (e) => {
698
- if (!g(e)) return e;
699
- let i = r.scene.getNonDeletedElementsMap(), a = D.getPointAtIndexGlobalCoordinates(e, 0, i), s = D.getPointAtIndexGlobalCoordinates(e, -1, i), l = w(e, {
698
+ if (!h(e)) return e;
699
+ let i = r.scene.getNonDeletedElementsMap(), a = E.getPointAtIndexGlobalCoordinates(e, 0, i), s = E.getPointAtIndexGlobalCoordinates(e, -1, i), l = C(e, {
700
700
  x: n === o.elbow ? a[0] : e.x,
701
701
  y: n === o.elbow ? a[1] : e.y,
702
702
  roundness: n === o.round ? { type: c.PROPORTIONAL_RADIUS } : null,
703
703
  elbowed: n === o.elbow,
704
704
  angle: n === o.elbow ? 0 : e.angle,
705
- points: n === o.elbow || e.elbowed ? [D.pointFromAbsoluteCoords({
705
+ points: n === o.elbow || e.elbowed ? [E.pointFromAbsoluteCoords({
706
706
  ...e,
707
707
  x: a[0],
708
708
  y: a[1],
709
709
  angle: 0
710
- }, a, i), D.pointFromAbsoluteCoords({
710
+ }, a, i), E.pointFromAbsoluteCoords({
711
711
  ...e,
712
712
  x: a[0],
713
713
  y: a[1],
714
714
  angle: 0
715
715
  }, s, i)] : e.points
716
716
  });
717
- if (_(l)) {
717
+ if (g(l)) {
718
718
  l.fixedSegments = null;
719
719
  let e = r.scene.getNonDeletedElementsMap();
720
720
  r.dismissLinearEditor();
721
- let t = D.getPointAtIndexGlobalCoordinates(l, 0, e), n = D.getPointAtIndexGlobalCoordinates(l, -1, e), i = l.startBinding && e.get(l.startBinding.elementId), a = l.endBinding && e.get(l.endBinding.elementId), o = i && l.startBinding ? {
721
+ let t = E.getPointAtIndexGlobalCoordinates(l, 0, e), n = E.getPointAtIndexGlobalCoordinates(l, -1, e), i = l.startBinding && e.get(l.startBinding.elementId), a = l.endBinding && e.get(l.endBinding.elementId), o = i && l.startBinding ? {
722
722
  ...l.startBinding,
723
- ...E(l, i, "start", e)
723
+ ...T(l, i, "start", e)
724
724
  } : null, s = a && l.endBinding ? {
725
725
  ...l.endBinding,
726
- ...E(l, a, "end", e)
726
+ ...T(l, a, "end", e)
727
727
  } : null;
728
728
  l = {
729
729
  ...l,
730
730
  startBinding: o,
731
731
  endBinding: s,
732
- ...le(l, e, {
733
- points: [t, n].map((e) => f(e[0] - l.x, e[1] - l.y)),
732
+ ...de(l, e, {
733
+ points: [t, n].map((e) => te(e[0] - l.x, e[1] - l.y)),
734
734
  startBinding: o,
735
735
  endBinding: s,
736
736
  fixedSegments: null
@@ -740,11 +740,11 @@ j({
740
740
  let e = r.scene.getNonDeletedElementsMap();
741
741
  if (l.startBinding) {
742
742
  let n = e.get(l.startBinding.elementId);
743
- n && T(l, n, t.bindMode === "inside" ? "inside" : "orbit", "start", r.scene);
743
+ n && w(l, n, t.bindMode === "inside" ? "inside" : "orbit", "start", r.scene);
744
744
  }
745
745
  if (l.endBinding) {
746
746
  let n = e.get(l.endBinding.elementId);
747
- n && T(l, n, t.bindMode === "inside" ? "inside" : "orbit", "end", r.scene);
747
+ n && w(l, n, t.bindMode === "inside" ? "inside" : "orbit", "end", r.scene);
748
748
  }
749
749
  }
750
750
  return l;
@@ -754,36 +754,36 @@ j({
754
754
  }, s = t.selectedLinearElement?.elementId;
755
755
  if (s) {
756
756
  let t = i.find((e) => e.id === s);
757
- t && (a.selectedLinearElement = new D(t, p(e)));
757
+ t && (a.selectedLinearElement = new E(t, f(e)));
758
758
  }
759
759
  return {
760
760
  elements: i,
761
761
  appState: a,
762
- captureUpdate: O.IMMEDIATELY
762
+ captureUpdate: D.IMMEDIATELY
763
763
  };
764
764
  },
765
- PanelComponent: ({ elements: e, appState: t, updateData: n, app: r }) => /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: A("labels.arrowtypes") }), Q({
765
+ PanelComponent: ({ elements: e, appState: t, updateData: n, app: r }) => /* @__PURE__ */ G("fieldset", { children: [/* @__PURE__ */ W("legend", { children: k("labels.arrowtypes") }), Q({
766
766
  options: [
767
767
  {
768
768
  value: o.sharp,
769
- text: A("labels.arrowtype_sharp"),
769
+ text: k("labels.arrowtype_sharp"),
770
770
  icon: /* @__PURE__ */ W(Be, {}),
771
771
  testId: "sharp-arrow"
772
772
  },
773
773
  {
774
774
  value: o.round,
775
- text: A("labels.arrowtype_round"),
775
+ text: k("labels.arrowtype_round"),
776
776
  icon: /* @__PURE__ */ W(ze, {}),
777
777
  testId: "round-arrow"
778
778
  },
779
779
  {
780
780
  value: o.elbow,
781
- text: A("labels.arrowtype_elbowed"),
781
+ text: k("labels.arrowtype_elbowed"),
782
782
  icon: /* @__PURE__ */ W(Re, {}),
783
783
  testId: "elbow-arrow"
784
784
  }
785
785
  ],
786
- value: Y(e, r, (e) => g(e) ? e.elbowed ? o.elbow : e.roundness ? o.round : o.sharp : null, (e) => g(e), (e) => e ? null : t.currentItemArrowType),
786
+ value: Y(e, r, (e) => h(e) ? e.elbowed ? o.elbow : e.roundness ? o.round : o.sharp : null, (e) => h(e), (e) => e ? null : t.currentItemArrowType),
787
787
  onChange: (e) => n(e)
788
788
  })] })
789
789
  });