@unicom-cloud/ui 0.8.112 → 0.8.113

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 (413) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/ColorPicker.js +1 -1
  14. package/Comment.js +1 -1
  15. package/ConfigProvider.js +1 -1
  16. package/Copy.js +3 -47
  17. package/Countdown.js +16 -50
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Details.js +14 -50
  21. package/Development.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Dropdown.js +1 -1
  25. package/Empty.js +1 -1
  26. package/Flex.js +15 -51
  27. package/Form.js +1 -1
  28. package/Icon.js +1 -1
  29. package/IconHover.js +1 -1
  30. package/Image.js +1 -1
  31. package/InputNumber.js +1 -1
  32. package/Layout.js +1 -1
  33. package/Link.js +1 -1
  34. package/LiquidFill.js +16 -51
  35. package/List.js +1 -1
  36. package/Loading.js +14 -50
  37. package/Marquee.js +23 -46
  38. package/Mentions.js +1 -1
  39. package/Menu.js +1 -1
  40. package/Message.js +1 -1
  41. package/Modal.js +1 -1
  42. package/Notice.js +13 -49
  43. package/Notification.js +1 -1
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Popconfirm.js +1 -1
  47. package/Popover.js +1 -1
  48. package/Progress.js +1 -1
  49. package/QrCode.js +14 -51
  50. package/Radio.js +1 -1
  51. package/Rate.js +1 -1
  52. package/ResizeBox.js +1 -1
  53. package/Result.js +1 -1
  54. package/RichText.js +12 -13
  55. package/Segmented.js +15 -50
  56. package/Skeleton.js +1 -1
  57. package/Slider.js +1 -1
  58. package/Space.js +15 -51
  59. package/Spin.js +1 -1
  60. package/Statistic.js +1 -1
  61. package/Steps.js +1 -1
  62. package/Switch.js +1 -1
  63. package/Table.js +1 -1
  64. package/Tabs.js +1 -1
  65. package/Tag.js +1 -1
  66. package/Tooltip.js +1 -1
  67. package/Tour.js +17 -53
  68. package/Transfer.js +1 -1
  69. package/Tree.js +1 -1
  70. package/TreeSelect.js +1 -1
  71. package/Trigger.js +1 -1
  72. package/affix/index.js +1 -1
  73. package/alert/index.js +1 -1
  74. package/anchor/Anchor.js +2 -2
  75. package/anchor/Link.js +1 -1
  76. package/app/App.js +2 -2
  77. package/auto-complete/index.js +1 -1
  78. package/avatar/Avatar.js +1 -1
  79. package/avatar/Group.js +1 -1
  80. package/back-top/index.js +1 -1
  81. package/badge/index.js +1 -1
  82. package/breadcrumb/index.js +2 -2
  83. package/button/Group.js +1 -1
  84. package/button/index.js +1 -1
  85. package/calendar/index.js +2 -2
  86. package/card/Grid.js +1 -1
  87. package/card/Meta.js +1 -1
  88. package/card/index.js +1 -1
  89. package/carousel/Arrow.js +1 -1
  90. package/carousel/Indicator.js +1 -1
  91. package/carousel/index.js +1 -1
  92. package/cascader/Cascader.js +3 -3
  93. package/cascader/index.js +1 -1
  94. package/cascader/util.js +1 -1
  95. package/checkbox/Checkbox.js +2 -2
  96. package/checkbox/Group.js +2 -2
  97. package/checkbox/GroupBlock.js +2 -2
  98. package/checkbox/index.js +2 -2
  99. package/chunk/{0BhDjhcd.js → 3t4FwEoB.js} +1 -1
  100. package/chunk/{KPBMJlOB.js → BHAu6wbC.js} +1 -1
  101. package/chunk/{DhAvt6tJ.js → Bcl7dWlJ.js} +2 -2
  102. package/chunk/{CrOzsnI0.js → Bl3hZtxi.js} +1 -1
  103. package/chunk/{BfVlSL8A.js → Bzx5BueA.js} +3 -3
  104. package/chunk/CVMFAeSw.js +39 -0
  105. package/chunk/{C1vY8016.js → CYDaUML7.js} +77 -108
  106. package/chunk/{CYssV-zz.js → CbXCgtzv.js} +65 -99
  107. package/chunk/ClNkxEcR.js +154 -0
  108. package/chunk/{DfUcAhyT.js → CwLSam2p.js} +2 -2
  109. package/chunk/Cy26_CKq.js +33 -0
  110. package/chunk/{BiZSULcr.js → D0dVE1v1.js} +317 -350
  111. package/chunk/{CtCFA4ht.js → DA5AMZwY.js} +3 -3
  112. package/chunk/{DfbO4QTS.js → DB0hUIM1.js} +1 -1
  113. package/chunk/{DMv8Hn4u.js → De8RLlOK.js} +1 -1
  114. package/chunk/{C3kH2ES3.js → DrYaod6k.js} +1 -1
  115. package/chunk/{CylbdYce.js → DzlfiVe2.js} +1 -1
  116. package/chunk/gJsdBcpG.js +10 -0
  117. package/chunk/{Cx92e1S8.js → yWKJUe_w.js} +3 -3
  118. package/collapse/Collapse.js +1 -1
  119. package/collapse/Item.js +1 -1
  120. package/color-picker/ControlBar.js +1 -1
  121. package/color-picker/InputAlpha.js +1 -1
  122. package/color-picker/InputHex.js +1 -1
  123. package/color-picker/InputRgb.js +1 -1
  124. package/color-picker/Palette.js +1 -1
  125. package/color-picker/Panel.js +2 -2
  126. package/color-picker/index.js +1 -1
  127. package/comment/index.js +1 -1
  128. package/config-provider/ConfigProvider.js +1 -1
  129. package/config-provider/context.js +1 -1
  130. package/config-provider/index.js +2 -2
  131. package/copy/index.js +22 -66
  132. package/countdown/index.js +41 -75
  133. package/date-picker/Picker.js +1 -1
  134. package/date-picker/RangePicker.js +2 -2
  135. package/date-picker/index.js +1 -1
  136. package/descriptions/index.js +1 -1
  137. package/details/index.js +46 -82
  138. package/development/index.js +1 -1
  139. package/divider/index.js +1 -1
  140. package/draggable/index.js +1 -1
  141. package/drawer/Drawer.js +1 -1
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +1 -1
  144. package/empty/index.js +1 -1
  145. package/flex/index.js +37 -71
  146. package/form/Form.js +2 -2
  147. package/form/FormItem.js +1 -1
  148. package/form/index.js +1 -1
  149. package/grid/Grid.js +1 -1
  150. package/grid/Item.js +1 -1
  151. package/hooks/index.js +6 -6
  152. package/hooks/useId.js +1 -1
  153. package/hooks/useResizeObserver.js +7 -50
  154. package/hooks/useStateWithPromise.js +1 -1
  155. package/hooks/useWindowSize.js +1 -1
  156. package/icon/index.js +1 -1
  157. package/icon-hover/index.js +1 -1
  158. package/icons/file.js +1 -1
  159. package/image/Image.js +2 -2
  160. package/image/ImagePreview.js +17 -52
  161. package/image/ImagePreviewArrow.js +1 -1
  162. package/image/ImagePreviewGroup.js +1 -1
  163. package/image/index.js +1 -1
  164. package/index.js +379 -378
  165. package/input/Button.js +1 -1
  166. package/input/Group.js +1 -1
  167. package/input/Input.js +1 -1
  168. package/input/InputElement.js +1 -1
  169. package/input/Password.js +1 -1
  170. package/input/Search.js +1 -1
  171. package/input/Textarea.js +1 -1
  172. package/input-number/index.js +1 -1
  173. package/input-tag/InputTag.js +1 -1
  174. package/layout/Content.js +1 -1
  175. package/layout/Footer.js +1 -1
  176. package/layout/Header.js +1 -1
  177. package/layout/Sider.js +1 -1
  178. package/layout/index.js +1 -1
  179. package/link/index.js +1 -1
  180. package/liquid-fill/index.js +56 -91
  181. package/list/Item.js +1 -1
  182. package/list/Meta.js +1 -1
  183. package/list/index.js +1 -1
  184. package/loading/index.js +26 -62
  185. package/marquee/index.js +70 -93
  186. package/marquee-/index.js +73 -96
  187. package/mentions/index.js +1 -1
  188. package/menu/Menu.js +3 -3
  189. package/menu/OverflowWrap.js +1 -1
  190. package/menu/index.js +2 -2
  191. package/message/index.js +1 -1
  192. package/message/useMessage.js +1 -1
  193. package/modal/Confirm.js +2 -2
  194. package/modal/Modal.js +2 -2
  195. package/modal/index.js +2 -2
  196. package/notice/index.js +13 -49
  197. package/notification/index.js +1 -1
  198. package/notification/useNotification.js +1 -1
  199. package/overflow-ellipsis/OverflowItem.js +1 -1
  200. package/overflow-ellipsis/index.js +1 -1
  201. package/package.json +1 -1
  202. package/page-header/index.js +1 -1
  203. package/pagination/PageItem.js +1 -1
  204. package/pagination/PageJumper.js +1 -1
  205. package/pagination/PageOption.js +1 -1
  206. package/pagination/Pagination.js +1 -1
  207. package/picker/Input.js +1 -1
  208. package/picker/InputRange.js +1 -1
  209. package/popconfirm/index.js +1 -1
  210. package/popover/index.js +1 -1
  211. package/progress/CircleProgress.js +1 -1
  212. package/progress/index.js +1 -1
  213. package/qr-code/index.js +26 -63
  214. package/radio/Group.js +2 -2
  215. package/radio/GroupBlock.js +2 -2
  216. package/radio/Radio.js +2 -2
  217. package/radio/index.js +2 -2
  218. package/rate/index.js +1 -1
  219. package/resize-box/ResizeTrigger.js +1 -1
  220. package/resize-box/Split.js +1 -1
  221. package/resize-box/SplitGroup.js +1 -1
  222. package/resize-box/index.js +1 -1
  223. package/result/index.js +1 -1
  224. package/rich-text/index.js +6332 -77
  225. package/rich-text/lib/diff/index.d.ts +21 -0
  226. package/row-col/Col-.js +1 -1
  227. package/row-col/Col.js +1 -1
  228. package/row-col/Row.js +1 -1
  229. package/segmented/index.js +118 -153
  230. package/select/Option.js +44 -41
  231. package/select/Select.js +10 -12
  232. package/select-view/Core.js +1 -1
  233. package/skeleton/index.js +1 -1
  234. package/slider/Button.js +1 -1
  235. package/slider/index.js +1 -1
  236. package/space/index.js +23 -59
  237. package/spin/DotLoading.js +1 -1
  238. package/spin/index.js +1 -1
  239. package/splitter/Panel.js +1 -1
  240. package/splitter/SplitBar.js +2 -2
  241. package/splitter/Splitter.js +2 -2
  242. package/statistic/index.js +1 -1
  243. package/steps/index.js +1 -1
  244. package/style.css +1 -1
  245. package/switch/index.js +1 -1
  246. package/table/Table.js +14 -53
  247. package/table/index.js +77 -120
  248. package/tabs/Tab.js +3 -3
  249. package/tabs/TabContent.js +2 -2
  250. package/tabs/TabPane.js +1 -1
  251. package/tabs/index.js +2 -2
  252. package/tag/index.js +1 -1
  253. package/time-picker/Picker.js +1 -1
  254. package/time-picker/TimePicker.js +1 -1
  255. package/timeline/Item.js +1 -1
  256. package/timeline/Timeline.js +1 -1
  257. package/tooltip/index.js +1 -1
  258. package/tour/index.js +80 -116
  259. package/transfer/Item.js +2 -2
  260. package/transfer/List.js +2 -2
  261. package/transfer/index.js +1 -1
  262. package/tree/Animation.js +2 -2
  263. package/tree/Node.js +3 -3
  264. package/tree/NodeList.js +1 -1
  265. package/tree/Tree.js +2 -2
  266. package/tree/index.js +1 -1
  267. package/tree-select/Select.js +3 -3
  268. package/tree-select/index.js +1 -1
  269. package/trigger/index.js +1 -1
  270. package/types/common/hooks/src/use-theme/index.d.ts +2 -2
  271. package/types/common/hooks/useStateWithPromise.d.ts +1 -1
  272. package/types/common/utils/dom.d.ts +12 -0
  273. package/types/pc/carousel/interface.d.ts +2 -2
  274. package/types/pc/color-picker/Panel.d.ts +1 -1
  275. package/types/pc/date-picker/RangePicker.d.ts +1 -1
  276. package/types/pc/index.d.ts +1 -1
  277. package/types/pc/list/interface.d.ts +2 -2
  278. package/types/pc/menu/context.d.ts +1 -1
  279. package/types/pc/rich-text/index.d.ts +7 -4
  280. package/types/pc/rich-text/interface.d.ts +3 -2
  281. package/types/pc/rich-text/{core → lib/core}/editor.d.ts +1 -1
  282. package/types/pc/rich-text/{core → lib/core}/rich.d.ts +3 -7
  283. package/types/pc/rich-text/{core → lib/core}/selection.d.ts +1 -0
  284. package/types/pc/rich-text/{core.d.ts → lib/core.d.ts} +1 -1
  285. package/types/pc/rich-text/lib/delta/AttributeMap.d.ts +15 -0
  286. package/types/pc/rich-text/lib/delta/Op.d.ts +13 -0
  287. package/types/pc/rich-text/lib/delta/OpIterator.d.ts +14 -0
  288. package/types/pc/rich-text/lib/delta/index.d.ts +53 -0
  289. package/types/pc/rich-text/lib/diff/index.d.ts +40 -0
  290. package/types/pc/rich-text/{formats → lib/formats}/bold.d.ts +1 -1
  291. package/types/pc/rich-text/{formats → lib/formats}/font.d.ts +1 -1
  292. package/types/pc/rich-text/lib/formats/hr.d.ts +5 -0
  293. package/types/pc/rich-text/lib/formats/image-resize/index.d.ts +27 -0
  294. package/types/pc/rich-text/lib/formats/image-resize/modules/BaseModule.d.ts +10 -0
  295. package/types/pc/rich-text/lib/formats/image-resize/modules/DisplaySize.d.ts +5 -0
  296. package/types/pc/rich-text/lib/formats/image-resize/modules/Resize.d.ts +13 -0
  297. package/types/pc/rich-text/lib/formats/image-resize/options.d.ts +7 -0
  298. package/types/pc/rich-text/lib/formats/liOl.d.ts +10 -0
  299. package/types/pc/rich-text/lib/formats/liUl.d.ts +10 -0
  300. package/types/pc/rich-text/lib/formats/lineHeight.d.ts +3 -0
  301. package/types/pc/rich-text/{formats → lib/formats}/list.d.ts +1 -0
  302. package/types/pc/rich-text/{formats → lib/formats}/table.d.ts +3 -3
  303. package/types/pc/rich-text/{modules → lib/modules}/clipboard.d.ts +2 -2
  304. package/types/pc/rich-text/{modules → lib/modules}/history.d.ts +1 -1
  305. package/types/pc/rich-text/{modules → lib/modules}/keyboard.d.ts +1 -1
  306. package/types/pc/rich-text/{modules → lib/modules}/syntax.d.ts +2 -2
  307. package/types/pc/rich-text/{modules → lib/modules}/tableEmbed.d.ts +3 -3
  308. package/types/pc/rich-text/{modules → lib/modules}/toolbar.d.ts +1 -1
  309. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/attributor.d.ts +3 -3
  310. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/style.d.ts +2 -2
  311. package/types/pc/rich-text/{ui → lib/ui}/icons.d.ts +5 -1
  312. package/types/pc/rich-text/{ui → lib/ui}/picker.d.ts +1 -0
  313. package/types/pc/tabs/hook/useDomSize.d.ts +2 -2
  314. package/types/pc/tabs/hook/useHeaderScroll.d.ts +2 -2
  315. package/types/pc/tree-select/hook/useStateValue.d.ts +2 -2
  316. package/types/pc/utils/date.d.ts +1 -0
  317. package/types/pc/utils/index.d.ts +2 -2
  318. package/typography/Base.js +1 -1
  319. package/typography/Ellipsis.js +70 -114
  320. package/typography/Operations.js +29 -74
  321. package/typography/Paragraph.js +1 -1
  322. package/typography/Typography.js +1 -1
  323. package/upload/TriggerNode.js +1 -1
  324. package/upload/Upload.js +1 -1
  325. package/utils/contextHolder.js +1 -1
  326. package/utils/date.js +1 -0
  327. package/utils/index.js +70 -70
  328. package/verification-code/VerificationCode.js +1 -1
  329. package/version/index.js +1 -1
  330. package/virtual-list/VirtualList.js +218 -217
  331. package/watermark/Watermark.js +1 -1
  332. package/chunk/BCmfDFV4.js +0 -4237
  333. package/chunk/BG6j6Ct7.js +0 -30
  334. package/chunk/C5CbL5ku.js +0 -56
  335. package/chunk/DsuIQH0F.js +0 -200
  336. package/chunk/vP3qfmKM.js +0 -84
  337. package/rich-text/core.js +0 -11
  338. package/rich-text/rich.js +0 -1347
  339. package/types/common/utils/index.d.ts +0 -47
  340. package/types/common/utils/keyboardCode.d.ts +0 -4
  341. package/types/common/utils/math.d.ts +0 -1
  342. package/types/common/utils/reactTransitionGroup.d.ts +0 -1
  343. package/types/common/utils/uuid.d.ts +0 -1
  344. package/types/common/utils/validate.d.ts +0 -1
  345. package/types/pc/rich-text/delta/AttributeMap.d.ts +0 -10
  346. package/types/pc/rich-text/delta/Op.d.ts +0 -11
  347. package/types/pc/rich-text/delta/OpIterator.d.ts +0 -13
  348. package/types/pc/rich-text/delta/index.d.ts +0 -45
  349. package/types/common/hooks/src/utils/{index.d.ts → is.d.ts} +0 -0
  350. package/types/pc/rich-text/{blots → lib/blots}/block.d.ts +0 -0
  351. package/types/pc/rich-text/{blots → lib/blots}/break.d.ts +0 -0
  352. package/types/pc/rich-text/{blots → lib/blots}/container.d.ts +0 -0
  353. package/types/pc/rich-text/{blots → lib/blots}/cursor.d.ts +0 -0
  354. package/types/pc/rich-text/{blots → lib/blots}/embed.d.ts +0 -0
  355. package/types/pc/rich-text/{blots → lib/blots}/inline.d.ts +0 -0
  356. package/types/pc/rich-text/{blots → lib/blots}/scroll.d.ts +0 -0
  357. package/types/pc/rich-text/{blots → lib/blots}/text.d.ts +0 -0
  358. package/types/pc/rich-text/{core → lib/core}/composition.d.ts +0 -0
  359. package/types/pc/rich-text/{core → lib/core}/emitter.d.ts +0 -0
  360. package/types/pc/rich-text/{core → lib/core}/instances.d.ts +0 -0
  361. package/types/pc/rich-text/{core → lib/core}/logger.d.ts +0 -0
  362. package/types/pc/rich-text/{core → lib/core}/module.d.ts +0 -0
  363. package/types/pc/rich-text/{core → lib/core}/theme.d.ts +0 -0
  364. package/types/pc/rich-text/{core → lib/core}/utils/createRegistryWithFormats.d.ts +0 -0
  365. package/types/pc/rich-text/{core → lib/core}/utils/scrollRectIntoView.d.ts +0 -0
  366. package/types/pc/rich-text/{formats → lib/formats}/align.d.ts +0 -0
  367. package/types/pc/rich-text/{formats → lib/formats}/background.d.ts +0 -0
  368. package/types/pc/rich-text/{formats → lib/formats}/blockquote.d.ts +0 -0
  369. package/types/pc/rich-text/{formats → lib/formats}/code.d.ts +0 -0
  370. package/types/pc/rich-text/{formats → lib/formats}/color.d.ts +0 -0
  371. package/types/pc/rich-text/{formats → lib/formats}/direction.d.ts +0 -0
  372. package/types/pc/rich-text/{formats → lib/formats}/formula.d.ts +0 -0
  373. package/types/pc/rich-text/{formats → lib/formats}/header.d.ts +0 -0
  374. package/types/pc/rich-text/{formats → lib/formats}/image.d.ts +0 -0
  375. package/types/pc/rich-text/{formats → lib/formats}/indent.d.ts +0 -0
  376. package/types/pc/rich-text/{formats → lib/formats}/italic.d.ts +0 -0
  377. package/types/pc/rich-text/{formats → lib/formats}/link.d.ts +0 -0
  378. package/types/pc/rich-text/{formats → lib/formats}/script.d.ts +0 -0
  379. package/types/pc/rich-text/{formats → lib/formats}/size.d.ts +0 -0
  380. package/types/pc/rich-text/{formats → lib/formats}/strike.d.ts +0 -0
  381. package/types/pc/rich-text/{formats → lib/formats}/underline.d.ts +0 -0
  382. package/types/pc/rich-text/{formats → lib/formats}/video.d.ts +0 -0
  383. package/types/pc/rich-text/{rich.d.ts → lib/index.d.ts} +0 -0
  384. package/types/pc/rich-text/{modules → lib/modules}/input.d.ts +0 -0
  385. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/index.d.ts +0 -0
  386. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
  387. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
  388. package/types/pc/rich-text/{modules → lib/modules}/table.d.ts +0 -0
  389. package/types/pc/rich-text/{modules → lib/modules}/uiNode.d.ts +0 -0
  390. package/types/pc/rich-text/{modules → lib/modules}/uploader.d.ts +0 -0
  391. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/class.d.ts +0 -0
  392. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/store.d.ts +0 -0
  393. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/blot.d.ts +0 -0
  394. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/container.d.ts +0 -0
  395. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/leaf.d.ts +0 -0
  396. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/parent.d.ts +0 -0
  397. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/shadow.d.ts +0 -0
  398. package/types/pc/rich-text/{parchment → lib/parchment}/blot/block.d.ts +0 -0
  399. package/types/pc/rich-text/{parchment → lib/parchment}/blot/embed.d.ts +0 -0
  400. package/types/pc/rich-text/{parchment → lib/parchment}/blot/inline.d.ts +0 -0
  401. package/types/pc/rich-text/{parchment → lib/parchment}/blot/scroll.d.ts +0 -0
  402. package/types/pc/rich-text/{parchment → lib/parchment}/blot/text.d.ts +0 -0
  403. package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-list.d.ts +0 -0
  404. package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-node.d.ts +0 -0
  405. package/types/pc/rich-text/{parchment → lib/parchment}/error.d.ts +0 -0
  406. package/types/pc/rich-text/{parchment → lib/parchment}/index.d.ts +1 -1
  407. /package/types/pc/rich-text/{parchment → lib/parchment}/registry.d.ts +0 -0
  408. /package/types/pc/rich-text/{parchment → lib/parchment}/scope.d.ts +0 -0
  409. /package/types/pc/rich-text/{themes → lib/themes}/base.d.ts +0 -0
  410. /package/types/pc/rich-text/{themes → lib/themes}/pqb.d.ts +0 -0
  411. /package/types/pc/rich-text/{ui → lib/ui}/color-picker.d.ts +0 -0
  412. /package/types/pc/rich-text/{ui → lib/ui}/icon-picker.d.ts +0 -0
  413. /package/types/pc/rich-text/{ui → lib/ui}/tooltip.d.ts +0 -0
package/chunk/BG6j6Ct7.js DELETED
@@ -1,30 +0,0 @@
1
- import { useState as u, useEffect as s } from "react";
2
- function m(o) {
3
- const [t, r] = u({
4
- value: o,
5
- resolve: (e) => {
6
- }
7
- });
8
- return s(() => {
9
- const e = window.requestAnimationFrame(() => {
10
- t.resolve(t.value);
11
- });
12
- return () => {
13
- window.cancelAnimationFrame(e);
14
- };
15
- }, [t]), [
16
- t.value,
17
- (e) => new Promise((a) => {
18
- r((i) => {
19
- let n = e;
20
- return typeof e == "function" && (n = e(i.value)), {
21
- value: n,
22
- resolve: a
23
- };
24
- });
25
- })
26
- ];
27
- }
28
- export {
29
- m as u
30
- };
package/chunk/C5CbL5ku.js DELETED
@@ -1,56 +0,0 @@
1
- import o from "react";
2
- import "@unicom-cloud/utils/date";
3
- import "@unicom-cloud/utils/case-name";
4
- import "@unicom-cloud/utils/class-name";
5
- import "@unicom-cloud/utils/constant/ui";
6
- import "@unicom-cloud/utils/clipboard-copy";
7
- import "./DS_deHpN.js";
8
- import "./d1c9z8T1.js";
9
- import "@unicom-cloud/utils/emitter";
10
- import "@unicom-cloud/utils/file/fileToURL";
11
- import "react/jsx-runtime";
12
- import "lodash/escapeRegExp";
13
- import "lodash/isArray";
14
- import "lodash/isNumber";
15
- import "lodash/isString";
16
- import "lodash/isFunction";
17
- import "lodash/throttle";
18
- import "./DsaQZE4X.js";
19
- import "lodash/camelCase";
20
- import "lodash/capitalize";
21
- import "lodash/cloneDeep";
22
- import "lodash/debounce";
23
- import "lodash/get";
24
- import "lodash/has";
25
- import "lodash/kebabCase";
26
- import "lodash/merge";
27
- import "lodash/mergeWith";
28
- import "lodash/set";
29
- import "lodash/setWith";
30
- import "lodash/snakeCase";
31
- import "lodash/startCase";
32
- import "lodash/uniq";
33
- import "lodash/upperFirst";
34
- import "@unicom-cloud/utils/math";
35
- import "lodash/isPlainObject";
36
- import "@unicom-cloud/utils/pinyin";
37
- import "./BJ9_azwQ.js";
38
- import "./CXrVhA6-.js";
39
- import "@unicom-cloud/utils/file/saveAs";
40
- import "@unicom-cloud/utils/screenfull";
41
- import "@unicom-cloud/utils/constant/ui.js";
42
- import "@unicom-cloud/utils/tinycolor";
43
- import "@unicom-cloud/utils/ui-color";
44
- import "react-is";
45
- import "@unicom-cloud/utils/tree";
46
- import { isString as i } from "@unicom-cloud/utils/is";
47
- import "uuid";
48
- import "./hc_ufgVf.js";
49
- import "@unicom-cloud/utils/constant/keyboardCode";
50
- function _(r) {
51
- const t = o.useId();
52
- return i(r) ? `${r}-${t}` : t;
53
- }
54
- export {
55
- _ as u
56
- };
package/chunk/DsuIQH0F.js DELETED
@@ -1,200 +0,0 @@
1
- import { useRef as m, useEffect as b, useState as L } from "react";
2
- import { u as w } from "./DfChiMIE.js";
3
- import { isBrowser as p } from "@unicom-cloud/utils/constant/platform";
4
- import "@unicom-cloud/utils/date";
5
- import "@unicom-cloud/utils/case-name";
6
- import "@unicom-cloud/utils/class-name";
7
- import "@unicom-cloud/utils/constant/ui";
8
- import "@unicom-cloud/utils/clipboard-copy";
9
- import "./DS_deHpN.js";
10
- import "./d1c9z8T1.js";
11
- import "@unicom-cloud/utils/emitter";
12
- import "@unicom-cloud/utils/file/fileToURL";
13
- import "react/jsx-runtime";
14
- import "lodash/escapeRegExp";
15
- import "lodash/isArray";
16
- import "lodash/isNumber";
17
- import "lodash/isString";
18
- import "lodash/isFunction";
19
- import "lodash/throttle";
20
- import "./DsaQZE4X.js";
21
- import "lodash/camelCase";
22
- import "lodash/capitalize";
23
- import "lodash/cloneDeep";
24
- import "lodash/debounce";
25
- import "lodash/get";
26
- import "lodash/has";
27
- import "lodash/kebabCase";
28
- import "lodash/merge";
29
- import "lodash/mergeWith";
30
- import "lodash/set";
31
- import "lodash/setWith";
32
- import "lodash/snakeCase";
33
- import "lodash/startCase";
34
- import "lodash/uniq";
35
- import "lodash/upperFirst";
36
- import "@unicom-cloud/utils/math";
37
- import "lodash/isPlainObject";
38
- import "@unicom-cloud/utils/pinyin";
39
- import "./BJ9_azwQ.js";
40
- import "./CXrVhA6-.js";
41
- import "@unicom-cloud/utils/file/saveAs";
42
- import "@unicom-cloud/utils/screenfull";
43
- import "@unicom-cloud/utils/constant/ui.js";
44
- import "@unicom-cloud/utils/tinycolor";
45
- import "@unicom-cloud/utils/ui-color";
46
- import "react-is";
47
- import "@unicom-cloud/utils/tree";
48
- import { isFunction as E } from "@unicom-cloud/utils/is";
49
- import "uuid";
50
- import "./hc_ufgVf.js";
51
- import "@unicom-cloud/utils/constant/keyboardCode";
52
- import { i as x } from "./CdXR6dj7.js";
53
- import { d as h } from "./CN7NKv_2.js";
54
- function A(t) {
55
- const e = m(t);
56
- return e.current = t, e;
57
- }
58
- function R(t, e) {
59
- if (!p)
60
- return;
61
- if (!t)
62
- return e;
63
- let r;
64
- return E(t) ? r = t() : "current" in t ? r = t.current : r = t, r;
65
- }
66
- const T = (t) => {
67
- x && (E(t) || console.error(
68
- `useUnmount expected parameter is a function, got ${typeof t}`
69
- ));
70
- const e = A(t);
71
- b(
72
- () => () => {
73
- e.current();
74
- },
75
- []
76
- );
77
- }, y = (t) => (r, s, u) => {
78
- const i = m(!1), n = m([]), c = m([]), o = m(void 0);
79
- t(() => {
80
- const a = (Array.isArray(u) ? u : [u]).map((N) => R(N));
81
- if (!i.current) {
82
- i.current = !0, n.current = a, c.current = s, o.current = r();
83
- return;
84
- }
85
- (a.length !== n.current.length || !h(n.current, a) || !h(c.current, s)) && (o.current?.(), n.current = a, c.current = s, o.current = r());
86
- }), T(() => {
87
- o.current?.(), i.current = !1;
88
- });
89
- }, W = y(b), B = (t, {
90
- manual: e,
91
- ready: r = !0,
92
- defaultParams: s = [],
93
- refreshDeps: u = [],
94
- refreshDepsAction: i
95
- }) => {
96
- const n = m(!1);
97
- return n.current = !1, w(() => {
98
- !e && r && (n.current = !0, t.run(...s));
99
- }, [r]), w(() => {
100
- n.current || e || (n.current = !0, i ? i() : t.refresh());
101
- }, [...u]), {
102
- onBefore: () => {
103
- if (!r)
104
- return {
105
- stopNow: !0
106
- };
107
- }
108
- };
109
- };
110
- B.onInit = ({ ready: t = !0, manual: e }) => ({
111
- loading: !e && t
112
- });
113
- function S() {
114
- return p ? document.visibilityState !== "hidden" : !0;
115
- }
116
- const l = /* @__PURE__ */ new Set();
117
- function Ut(t) {
118
- return l.add(t), function() {
119
- l.has(t) && l.delete(t);
120
- };
121
- }
122
- if (p) {
123
- const t = () => {
124
- S() && l.forEach((e) => e());
125
- };
126
- window.addEventListener("visibilitychange", t, !1);
127
- }
128
- const O = () => p && typeof navigator.onLine < "u" ? navigator.onLine : !0, d = /* @__PURE__ */ new Set();
129
- function $t(t) {
130
- return d.add(t), function() {
131
- d.has(t) && d.delete(t);
132
- };
133
- }
134
- if (p) {
135
- const t = () => {
136
- !S() || !O() || d.forEach((e) => e());
137
- };
138
- window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1);
139
- }
140
- const g = {
141
- top: NaN,
142
- left: NaN,
143
- bottom: NaN,
144
- right: NaN,
145
- height: NaN,
146
- width: NaN
147
- }, v = {
148
- text: "",
149
- ...g
150
- };
151
- function U(t) {
152
- if (!t || t.rangeCount < 1)
153
- return g;
154
- const e = t.getRangeAt(0), { height: r, width: s, top: u, left: i, right: n, bottom: c } = e.getBoundingClientRect();
155
- return {
156
- height: r,
157
- width: s,
158
- top: u,
159
- left: i,
160
- right: n,
161
- bottom: c
162
- };
163
- }
164
- function jt(t) {
165
- const [e, r] = L(v), s = m(e), u = m(!1);
166
- return s.current = e, W(
167
- () => {
168
- const i = R(t, document);
169
- if (!i)
170
- return;
171
- const n = () => {
172
- let o = null, f = "", a = g;
173
- window.getSelection && (o = window.getSelection(), f = o ? o.toString() : "", f && u.current && (a = U(o), r({ ...e, text: f, ...a })));
174
- }, c = (o) => {
175
- if (o.button === 2 || !window.getSelection)
176
- return;
177
- s.current.text && r({ ...v }), u.current = !1;
178
- const f = window.getSelection();
179
- f && (f.removeAllRanges(), u.current = i.contains(o.target));
180
- };
181
- return i.addEventListener("mouseup", n), document.addEventListener("mousedown", c), () => {
182
- i.removeEventListener("mouseup", n), document.removeEventListener("mousedown", c);
183
- };
184
- },
185
- [],
186
- t
187
- ), e;
188
- }
189
- export {
190
- jt as a,
191
- T as b,
192
- y as c,
193
- W as d,
194
- $t as e,
195
- B as f,
196
- R as g,
197
- S as i,
198
- Ut as s,
199
- A as u
200
- };
package/chunk/vP3qfmKM.js DELETED
@@ -1,84 +0,0 @@
1
- import f from "lodash/debounce";
2
- import { useState as a, useDeferredValue as l, useMemo as d, useEffect as n } from "react";
3
- import "@unicom-cloud/utils/date";
4
- import "@unicom-cloud/utils/case-name";
5
- import "@unicom-cloud/utils/class-name";
6
- import "@unicom-cloud/utils/constant/ui";
7
- import "@unicom-cloud/utils/clipboard-copy";
8
- import "./DS_deHpN.js";
9
- import "./d1c9z8T1.js";
10
- import "@unicom-cloud/utils/emitter";
11
- import "@unicom-cloud/utils/file/fileToURL";
12
- import "react/jsx-runtime";
13
- import "lodash/escapeRegExp";
14
- import "lodash/isArray";
15
- import "lodash/isNumber";
16
- import "lodash/isString";
17
- import "lodash/isFunction";
18
- import "lodash/throttle";
19
- import "./DsaQZE4X.js";
20
- import "lodash/camelCase";
21
- import "lodash/capitalize";
22
- import "lodash/cloneDeep";
23
- import "lodash/get";
24
- import "lodash/has";
25
- import "lodash/kebabCase";
26
- import "lodash/merge";
27
- import "lodash/mergeWith";
28
- import "lodash/set";
29
- import "lodash/setWith";
30
- import "lodash/snakeCase";
31
- import "lodash/startCase";
32
- import "lodash/uniq";
33
- import "lodash/upperFirst";
34
- import "@unicom-cloud/utils/math";
35
- import "lodash/isPlainObject";
36
- import "@unicom-cloud/utils/pinyin";
37
- import "./BJ9_azwQ.js";
38
- import "./CXrVhA6-.js";
39
- import "@unicom-cloud/utils/file/saveAs";
40
- import "@unicom-cloud/utils/screenfull";
41
- import "@unicom-cloud/utils/constant/ui.js";
42
- import "@unicom-cloud/utils/tinycolor";
43
- import "@unicom-cloud/utils/ui-color";
44
- import "react-is";
45
- import "@unicom-cloud/utils/tree";
46
- import { isFunction as h } from "@unicom-cloud/utils/is";
47
- import "uuid";
48
- import "./hc_ufgVf.js";
49
- import "@unicom-cloud/utils/constant/keyboardCode";
50
- import { u as w } from "./BL9DMeor.js";
51
- function lt(p = !1, u) {
52
- const [i, e] = a({
53
- ...o(null)
54
- }), s = l(
55
- i
56
- // 延迟一个值与防抖和节流之间有什么不同?
57
- // 防抖(Debounce) 是指在用户停止输入一段时间(例如一秒钟)之后再更新列表。
58
- // 节流(Throttle) 是指每隔一段时间(例如最多每秒一次)更新列表。
59
- // 虽然这些技术在某些情况下是有用的,但 useDeferredValue 更适合优化渲染,因为它与 React 自身深度集成,并且能够适应用户的设备。
60
- // 与防抖或节流不同,useDeferredValue 不需要选择任何固定延迟时间。如果用户的设备很快(比如性能强劲的笔记本电脑),延迟的重渲染几乎会立即发生并且不会被察觉。如果用户的设备较慢,那么列表会相应地“滞后”于输入,滞后的程度与设备的速度有关。
61
- // 此外,与防抖或节流不同,useDeferredValue 执行的延迟重新渲染默认是可中断的。这意味着,如果 React 正在重新渲染一个大型列表,但用户进行了另一次键盘输入,React 会放弃该重新渲染,先处理键盘输入,然后再次开始在后台渲染。相比之下,防抖和节流仍会产生不顺畅的体验,因为它们是阻塞的:它们仅仅是将渲染阻塞键盘输入的时刻推迟了。
62
- // 如果你要优化的工作不是在渲染期间发生的,那么防抖和节流仍然非常有用。例如,它们可以让你减少网络请求的次数。你也可以同时使用这些技术。
63
- );
64
- function o(r) {
65
- const { innerWidth: m = 0, innerHeight: c = 0 } = r?.currentTarget ?? r?.target ?? window;
66
- return {
67
- width: m,
68
- height: c
69
- };
70
- }
71
- const t = d(() => {
72
- function r(m) {
73
- e(o(m));
74
- }
75
- return p ? f(r, 123) : r;
76
- }, [p]);
77
- return w(t, [t]), n(() => (u?.(i), () => {
78
- }), [i]), n(() => (e(o(null)), () => {
79
- "cancel" in t && h(t.cancel) && t.cancel();
80
- }), []), s;
81
- }
82
- export {
83
- lt as u
84
- };
package/rich-text/core.js DELETED
@@ -1,11 +0,0 @@
1
- import { A as e, D as s, M as r, O as o, I as p, P as l, a as u, R as M } from "../chunk/BCmfDFV4.js";
2
- export {
3
- e as AttributeMap,
4
- s as Delta,
5
- r as Module,
6
- o as Op,
7
- p as OpIterator,
8
- l as Parchment,
9
- u as Range,
10
- M as default
11
- };