@emailmaker/emailmaker 1.1.85-dev.10 → 1.1.85-dev.11

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 (501) hide show
  1. package/README.md +73 -41
  2. package/compat-globals.js +1 -1
  3. package/emailmaker-core.d8f06ef8.js +859 -0
  4. package/emailmaker-esm.js +11 -11
  5. package/{emailmaker-po.8a98eb63.js → emailmaker-po.d8f06ef8.js} +1 -1
  6. package/emailmaker.d.ts +109 -25
  7. package/emailmaker.js +39 -15
  8. package/iframe/.vite/manifest.json +4 -4
  9. package/iframe/js/discussHandlers.DpogBvtl.js +88 -0
  10. package/iframe/js/{iframe-eblock.body.js → iframe-eblock.body.d8f06ef8.js} +1 -1
  11. package/iframe/js/iframe-eblock.js +2 -2
  12. package/iframe/js/{iframe.body.js → iframe.body.d8f06ef8.js} +35 -35
  13. package/iframe/js/iframe.js +2 -2
  14. package/package.json +4 -1
  15. package/runtime/THIRD_PARTY_LICENSES.txt +49 -42
  16. package/runtime/package.json +4 -1
  17. package/runtime/react/index.js +1 -1
  18. package/runtime/uuid/index.js +21 -0
  19. package/static/core/15af2b29.js +1 -0
  20. package/static/core/1a079af7.js +27 -0
  21. package/static/core/{6be08373.js → 1e650cb3.js} +1 -1
  22. package/static/core/2b02bfec.js +2 -0
  23. package/static/core/{3b8b6bb0.js → 2c0d88ff.js} +1 -1
  24. package/static/core/{4aed1398.js → 30fecb60.js} +7 -7
  25. package/static/core/34aedeaf.js +1 -0
  26. package/static/core/36ae93da.js +1 -0
  27. package/static/core/{3364944b.js → 3ab4db57.js} +1 -1
  28. package/static/core/{1193bb41.js → 3efc4ec8.js} +1 -1
  29. package/static/core/{1c13f798.js → 40d9b4e4.js} +1 -1
  30. package/static/core/{cbcede3f.js → 4797d4f7.js} +7 -7
  31. package/static/core/51b2aae7.js +1 -0
  32. package/static/core/{99c2b321.js → 61ae67b6.js} +1 -1
  33. package/static/core/66bcf2f4.js +1 -0
  34. package/static/core/7606705b.js +7 -0
  35. package/static/core/76d1f317.js +1 -0
  36. package/static/core/{21c9f165.js → 7c3a126d.js} +5 -5
  37. package/static/core/{9de73615.js → 7f73a221.js} +1 -1
  38. package/static/core/{ec289c6e.js → 90061c56.js} +1 -1
  39. package/static/core/{bebf981d.js → 918c30e2.js} +6 -6
  40. package/static/core/9a406203.js +28 -0
  41. package/static/core/{cd9d9cfd.js → a38cd4c8.js} +1 -1
  42. package/static/core/{3daf51db.js → ad8c60e8.js} +3 -3
  43. package/static/core/{4bfe3961.js → ad999fe5.js} +2 -2
  44. package/static/core/b416d219.js +1 -0
  45. package/static/core/ba3477cd.js +1 -0
  46. package/static/core/d0b845c8.js +1 -0
  47. package/static/core/d5a3b772.js +1 -0
  48. package/static/core/{18aa476c.js → e648952b.js} +1 -1
  49. package/static/core/f7baa937.js +1 -0
  50. package/static/esm/2490dab8.js +1 -0
  51. package/static/esm/7f198b88.js +1 -0
  52. package/static/esm/971f1b2c.js +1 -0
  53. package/static/esm/f76c9d9d.js +1 -0
  54. package/static/umd/3f12d6ff.js +1 -0
  55. package/static/umd-runtime/{CKPvGq1V.js → CXeo_4Wo.js} +1 -1
  56. package/static/umd-runtime/CqMyE0Uc.js +341 -0
  57. package/static/umd-runtime/{CLdQLcWb.js → CzJl_OWE.js} +1 -1
  58. package/static/umd-runtime/{Cfglgyi_.js → DHbLOxHw.js} +1 -1
  59. package/static/umd-runtime/{Dapct6er.js → DJs7nSi6.js} +1 -1
  60. package/static/umd-runtime/{DK72AzBY.js → DLNNm9qB.js} +1 -1
  61. package/static/umd-runtime/{-HpwEpwH.js → DRAM_elr.js} +3 -3
  62. package/static/umd-runtime/{CgYMn5fZ.js → DTloyvLC.js} +1 -1
  63. package/static/umd-runtime/{BFxYqYWf.js → DYZMXiWv.js} +2 -2
  64. package/static/umd-runtime/Dxubut77.js +1 -0
  65. package/static/umd-runtime/{Gn4yF-9a.js → ElFNizMF.js} +1 -1
  66. package/static/umd-runtime/{ZH-8P1YS.js → eK-pjJXU.js} +1 -1
  67. package/static/umd-runtime/runtime.js +1 -1
  68. package/static/umd-runtime/ui-kit-icons.js +1 -1
  69. package/static/umd-runtime/ui-kit.js +2 -2
  70. package/static/umd-runtime/{BClKfJvv.js → ytvvaFpU.js} +1 -1
  71. package/vendor/@emailmaker/ui-kit/es/components/DataEntry/Input/index.js +1 -1
  72. package/vendor/@emailmaker/ui-kit/package.json +1 -1
  73. package/vendor/@rc-component/cascader/package.json +1 -1
  74. package/vendor/@rc-component/dialog/es/Dialog/Content/Panel.js +3 -2
  75. package/vendor/@rc-component/dialog/package.json +1 -1
  76. package/vendor/@rc-component/image/es/Preview/index.js +3 -3
  77. package/vendor/@rc-component/image/package.json +1 -1
  78. package/vendor/@rc-component/input/es/BaseInput.js +3 -3
  79. package/vendor/@rc-component/input/es/Input.js +20 -27
  80. package/vendor/@rc-component/{textarea → input}/es/ResizableTextArea.js +5 -4
  81. package/vendor/@rc-component/{textarea → input}/es/TextArea.js +30 -40
  82. package/vendor/@rc-component/{textarea → input}/es/calculateNodeHeight.js +4 -4
  83. package/vendor/@rc-component/input/es/hooks/useCountDisplay.js +25 -0
  84. package/vendor/@rc-component/input/es/hooks/useCountExceed.js +25 -0
  85. package/vendor/@rc-component/input/es/hooks/useMergedValue.js +13 -0
  86. package/vendor/@rc-component/input/es/index.js +3 -1
  87. package/vendor/@rc-component/input/package.json +1 -1
  88. package/vendor/@rc-component/mentions/es/DropdownMenu.js +1 -1
  89. package/vendor/@rc-component/mentions/es/Mentions.js +35 -8
  90. package/vendor/@rc-component/mentions/package.json +1 -1
  91. package/vendor/@rc-component/menu/es/Menu.js +1 -0
  92. package/vendor/@rc-component/menu/es/MenuItem.js +1 -0
  93. package/vendor/@rc-component/menu/es/MenuItemGroup.js +1 -0
  94. package/vendor/@rc-component/menu/es/SubMenu/PopupTrigger.js +1 -0
  95. package/vendor/@rc-component/menu/es/SubMenu/index.js +1 -0
  96. package/vendor/@rc-component/menu/es/context/MenuContext.js +1 -0
  97. package/vendor/@rc-component/menu/es/hooks/useAccessibility.js +1 -0
  98. package/vendor/@rc-component/menu/es/hooks/useKeyRecords.js +1 -0
  99. package/vendor/@rc-component/menu/es/utils/commonUtil.js +1 -0
  100. package/vendor/@rc-component/menu/es/utils/nodeUtil.js +2 -1
  101. package/vendor/@rc-component/menu/es/utils/warnUtil.js +1 -0
  102. package/vendor/@rc-component/menu/package.json +1 -1
  103. package/vendor/@rc-component/notification/LICENSE +21 -0
  104. package/vendor/@rc-component/notification/_/@rc-component/util/LICENSE +22 -0
  105. package/vendor/@rc-component/notification/_/@rc-component/util/es/Children/toArray.js +15 -0
  106. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/canUseDom.js +6 -0
  107. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/contains.js +13 -0
  108. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/dynamicCSS.js +94 -0
  109. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/findDOMNode.js +14 -0
  110. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/focus.js +99 -0
  111. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/isVisible.js +18 -0
  112. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/shadow.js +12 -0
  113. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/styleChecker.js +2 -0
  114. package/vendor/@rc-component/notification/_/@rc-component/util/es/KeyCode.js +499 -0
  115. package/vendor/@rc-component/notification/_/@rc-component/util/es/Portal.js +28 -0
  116. package/vendor/@rc-component/notification/_/@rc-component/util/es/React/isFragment.js +12 -0
  117. package/vendor/@rc-component/notification/_/@rc-component/util/es/React/render.js +2 -0
  118. package/vendor/@rc-component/notification/_/@rc-component/util/es/getScrollBarSize.js +2 -0
  119. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useControlledState.js +3 -0
  120. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useDelayState.js +4 -0
  121. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useEvent.js +9 -0
  122. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useId.js +23 -0
  123. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useLayoutEffect.js +26 -0
  124. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMemo.js +12 -0
  125. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMergedState.js +4 -0
  126. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useState.js +24 -0
  127. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useSyncState.js +20 -0
  128. package/vendor/@rc-component/notification/_/@rc-component/util/es/index.js +36 -0
  129. package/vendor/@rc-component/notification/_/@rc-component/util/es/is.js +21 -0
  130. package/vendor/@rc-component/notification/_/@rc-component/util/es/isEqual.js +35 -0
  131. package/vendor/@rc-component/notification/_/@rc-component/util/es/isMobile.js +11 -0
  132. package/vendor/@rc-component/notification/_/@rc-component/util/es/mergeProps.js +14 -0
  133. package/vendor/@rc-component/notification/_/@rc-component/util/es/omit.js +1 -0
  134. package/vendor/@rc-component/notification/_/@rc-component/util/es/pickAttrs.js +50 -0
  135. package/vendor/@rc-component/notification/_/@rc-component/util/es/proxyObject.js +1 -0
  136. package/vendor/@rc-component/notification/_/@rc-component/util/es/raf.js +36 -0
  137. package/vendor/@rc-component/notification/_/@rc-component/util/es/ref.js +38 -0
  138. package/vendor/@rc-component/notification/_/@rc-component/util/es/test/domHook.js +36 -0
  139. package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/get.js +11 -0
  140. package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/set.js +58 -0
  141. package/vendor/@rc-component/notification/_/@rc-component/util/es/warning.js +46 -0
  142. package/vendor/@rc-component/notification/_/@rc-component/util/package.json +6 -0
  143. package/vendor/@rc-component/notification/es/Notification.js +129 -0
  144. package/vendor/@rc-component/notification/es/NotificationList/Content.js +33 -0
  145. package/vendor/@rc-component/notification/es/NotificationList/index.js +174 -0
  146. package/vendor/@rc-component/notification/es/NotificationProvider.js +4 -3
  147. package/vendor/@rc-component/notification/es/Notifications.js +28 -31
  148. package/vendor/@rc-component/notification/es/Progress.js +10 -0
  149. package/vendor/@rc-component/notification/es/hooks/useClosable.js +30 -0
  150. package/vendor/@rc-component/notification/es/hooks/useListPosition/index.js +50 -0
  151. package/vendor/@rc-component/notification/es/hooks/useListPosition/useSizes.js +33 -0
  152. package/vendor/@rc-component/notification/es/hooks/useNoticeTimer.js +58 -0
  153. package/vendor/@rc-component/notification/es/hooks/useNotification.js +27 -18
  154. package/vendor/@rc-component/notification/es/hooks/useStack.js +4 -4
  155. package/vendor/@rc-component/notification/es/index.js +4 -2
  156. package/vendor/@rc-component/notification/package.json +1 -1
  157. package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/MultipleDates.js +13 -3
  158. package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/index.js +3 -1
  159. package/vendor/@rc-component/picker/es/PickerInput/SinglePicker.js +2 -1
  160. package/vendor/@rc-component/picker/package.json +1 -1
  161. package/vendor/@rc-component/table/LICENSE +21 -0
  162. package/vendor/@rc-component/table/es/Body/MeasureCell.js +1 -0
  163. package/vendor/@rc-component/table/es/Body/MeasureRow.js +1 -0
  164. package/vendor/@rc-component/table/es/Cell/useCellRender.js +1 -0
  165. package/vendor/@rc-component/table/es/FixedHolder/index.js +1 -0
  166. package/vendor/@rc-component/table/es/Table.js +17 -9
  167. package/vendor/@rc-component/table/es/VirtualTable/BodyGrid.js +10 -4
  168. package/vendor/@rc-component/table/es/VirtualTable/BodyLine.js +13 -5
  169. package/vendor/@rc-component/table/es/hooks/useColumns/index.js +1 -0
  170. package/vendor/@rc-component/table/es/hooks/useExpand.js +1 -0
  171. package/vendor/@rc-component/table/es/hooks/useFixedInfo.js +1 -0
  172. package/vendor/@rc-component/table/es/hooks/useSticky.js +1 -0
  173. package/vendor/@rc-component/table/es/index.js +2 -1
  174. package/vendor/@rc-component/table/es/stickyScrollBar.js +1 -0
  175. package/vendor/@rc-component/table/es/utils/legacyUtil.js +1 -0
  176. package/vendor/@rc-component/table/es/utils/offsetUtil.js +1 -0
  177. package/vendor/@rc-component/table/package.json +1 -1
  178. package/vendor/@rc-component/tabs/es/TabNavList/OperationNode.js +4 -2
  179. package/vendor/@rc-component/tabs/es/TabNavList/TabNode.js +5 -4
  180. package/vendor/@rc-component/tabs/es/TabNavList/index.js +11 -4
  181. package/vendor/@rc-component/tabs/es/Tabs.js +1 -0
  182. package/vendor/@rc-component/tabs/es/hooks/useAnimateConfig.js +1 -0
  183. package/vendor/@rc-component/tabs/es/hooks/useIndicator.js +1 -0
  184. package/vendor/@rc-component/tabs/es/hooks/useUpdate.js +1 -0
  185. package/vendor/@rc-component/tabs/package.json +1 -1
  186. package/vendor/@rc-component/tour/es/TourStep/DefaultPanel.js +4 -1
  187. package/vendor/@rc-component/tour/package.json +1 -1
  188. package/vendor/@rc-component/tree/es/MotionTreeNode.js +1 -0
  189. package/vendor/@rc-component/tree/es/NodeList.js +2 -2
  190. package/vendor/@rc-component/tree/es/Tree.js +4 -5
  191. package/vendor/@rc-component/tree/es/TreeNode.js +7 -2
  192. package/vendor/@rc-component/tree/es/index.js +3 -0
  193. package/vendor/@rc-component/tree/es/useUnmount.js +1 -0
  194. package/vendor/@rc-component/tree/es/util.js +1 -0
  195. package/vendor/@rc-component/tree/es/utils/conductUtil.js +1 -0
  196. package/vendor/@rc-component/tree/es/utils/treeUtil.js +1 -0
  197. package/vendor/@rc-component/tree/package.json +1 -1
  198. package/vendor/@rc-component/tree-select/package.json +1 -1
  199. package/vendor/@rc-component/util/es/index.js +10 -10
  200. package/vendor/antd/es/_util/ActionButton.js +2 -3
  201. package/vendor/antd/es/_util/ContextIsolator.js +1 -1
  202. package/vendor/antd/es/_util/PurePanel.js +7 -4
  203. package/vendor/antd/es/_util/convertToTooltipProps.js +2 -2
  204. package/vendor/antd/es/_util/fallbackProp.js +15 -0
  205. package/vendor/antd/es/_util/gapSize.js +2 -1
  206. package/vendor/antd/es/_util/getRenderPropValue.js +2 -1
  207. package/vendor/antd/es/_util/getScroll.js +4 -4
  208. package/vendor/antd/es/_util/hooks/index.js +2 -2
  209. package/vendor/antd/es/_util/hooks/useAllowClear.js +25 -0
  210. package/vendor/antd/es/_util/hooks/useClosable.js +6 -5
  211. package/vendor/antd/es/_util/hooks/{useMergeSemantic.js → useMergeSemantic/index.js} +14 -24
  212. package/vendor/antd/es/_util/hooks/useMergeSemantic/utils.js +14 -0
  213. package/vendor/antd/es/_util/hooks/useMergedMask.js +2 -1
  214. package/vendor/antd/es/_util/is.js +27 -0
  215. package/vendor/antd/es/_util/motion.js +8 -8
  216. package/vendor/antd/es/_util/normalizeIcon.js +9 -0
  217. package/vendor/antd/es/_util/placements.js +2 -1
  218. package/vendor/antd/es/_util/reactNode.js +2 -1
  219. package/vendor/antd/es/_util/responsiveObserver.js +3 -2
  220. package/vendor/antd/es/_util/scrollTo.js +3 -1
  221. package/vendor/antd/es/_util/styleChecker.js +1 -0
  222. package/vendor/antd/es/_util/throttleByAnimationFrame.js +1 -0
  223. package/vendor/antd/es/_util/toList.js +1 -1
  224. package/vendor/antd/es/_util/wave/WaveEffect.js +3 -1
  225. package/vendor/antd/es/_util/wave/index.js +14 -4
  226. package/vendor/antd/es/_util/wave/util.js +5 -3
  227. package/vendor/antd/es/alert/Alert.js +12 -10
  228. package/vendor/antd/es/alert/ErrorBoundary.js +1 -1
  229. package/vendor/antd/es/alert/style/index.js +16 -10
  230. package/vendor/antd/es/anchor/Anchor.js +23 -16
  231. package/vendor/antd/es/anchor/AnchorLink.js +4 -4
  232. package/vendor/antd/es/app/App.js +7 -3
  233. package/vendor/antd/es/auto-complete/AutoComplete.js +7 -8
  234. package/vendor/antd/es/avatar/Avatar.js +5 -3
  235. package/vendor/antd/es/back-top/index.js +1 -0
  236. package/vendor/antd/es/badge/Badge.js +5 -6
  237. package/vendor/antd/es/badge/Ribbon.js +1 -2
  238. package/vendor/antd/es/badge/style/index.js +4 -3
  239. package/vendor/antd/es/border-beam/BorderBeam.js +42 -0
  240. package/vendor/antd/es/border-beam/BorderBeamEffect.js +24 -0
  241. package/vendor/antd/es/border-beam/hooks/useBorderSize.js +37 -0
  242. package/vendor/antd/es/border-beam/hooks/useChildDom.js +24 -0
  243. package/vendor/antd/es/border-beam/index.js +7 -0
  244. package/vendor/antd/es/border-beam/style/index.js +60 -0
  245. package/vendor/antd/es/border-beam/util.js +26 -0
  246. package/vendor/antd/es/breadcrumb/Breadcrumb.js +1 -2
  247. package/vendor/antd/es/breadcrumb/BreadcrumbItem.js +1 -1
  248. package/vendor/antd/es/breadcrumb/useItemRender.js +3 -2
  249. package/vendor/antd/es/button/Button.js +7 -6
  250. package/vendor/antd/es/button/buttonHelpers.js +4 -8
  251. package/vendor/antd/es/button/index.js +2 -2
  252. package/vendor/antd/es/button/style/index.js +5 -0
  253. package/vendor/antd/es/calendar/generateCalendar.js +20 -8
  254. package/vendor/antd/es/card/Card.js +5 -7
  255. package/vendor/antd/es/card/CardMeta.js +1 -2
  256. package/vendor/antd/es/carousel/index.js +2 -1
  257. package/vendor/antd/es/cascader/Panel.js +1 -1
  258. package/vendor/antd/es/cascader/index.js +23 -16
  259. package/vendor/antd/es/cascader/style/columns.js +6 -2
  260. package/vendor/antd/es/checkbox/Checkbox.js +2 -3
  261. package/vendor/antd/es/checkbox/Group.js +2 -1
  262. package/vendor/antd/es/checkbox/style/index.js +1 -5
  263. package/vendor/antd/es/checkbox/useBubbleLock.js +1 -0
  264. package/vendor/antd/es/collapse/Collapse.js +3 -3
  265. package/vendor/antd/es/collapse/style/index.js +1 -4
  266. package/vendor/antd/es/color-picker/ColorPicker.js +1 -2
  267. package/vendor/antd/es/color-picker/ColorPickerPanel.js +2 -1
  268. package/vendor/antd/es/color-picker/components/ColorTrigger.js +3 -1
  269. package/vendor/antd/es/color-picker/components/PanelPicker/index.js +1 -0
  270. package/vendor/antd/es/config-provider/hooks/useSize.js +3 -2
  271. package/vendor/antd/es/config-provider/hooks/useTheme.js +2 -0
  272. package/vendor/antd/es/config-provider/index.js +11 -3
  273. package/vendor/antd/es/date-picker/generatePicker/generateRangePicker.js +20 -10
  274. package/vendor/antd/es/date-picker/generatePicker/generateSinglePicker.js +17 -8
  275. package/vendor/antd/es/date-picker/generatePicker/useSuffixIcon.js +1 -1
  276. package/vendor/antd/es/date-picker/hooks/useMergedPickerSemantic.js +1 -2
  277. package/vendor/antd/es/date-picker/style/index.js +13 -3
  278. package/vendor/antd/es/date-picker/style/multiple.js +3 -4
  279. package/vendor/antd/es/date-picker/style/panel.js +5 -20
  280. package/vendor/antd/es/date-picker/util.js +14 -13
  281. package/vendor/antd/es/descriptions/Cell.js +2 -3
  282. package/vendor/antd/es/descriptions/hooks/useItems.js +2 -1
  283. package/vendor/antd/es/descriptions/index.js +3 -3
  284. package/vendor/antd/es/divider/index.js +3 -2
  285. package/vendor/antd/es/drawer/Drawer.js +10 -5
  286. package/vendor/antd/es/drawer/DrawerPanel.js +3 -2
  287. package/vendor/antd/es/dropdown/dropdown.js +11 -8
  288. package/vendor/antd/es/dropdown/style/index.js +2 -6
  289. package/vendor/antd/es/empty/index.js +1 -2
  290. package/vendor/antd/es/flex/index.js +2 -2
  291. package/vendor/antd/es/float-button/BackTop.js +1 -0
  292. package/vendor/antd/es/float-button/FloatButton.js +3 -3
  293. package/vendor/antd/es/float-button/FloatButtonGroup.js +2 -2
  294. package/vendor/antd/es/form/ErrorList.js +13 -6
  295. package/vendor/antd/es/form/Form.js +7 -6
  296. package/vendor/antd/es/form/FormItem/ItemHolder.js +1 -1
  297. package/vendor/antd/es/form/FormItem/index.js +6 -6
  298. package/vendor/antd/es/form/FormItemInput.js +5 -3
  299. package/vendor/antd/es/form/FormItemLabel.js +2 -1
  300. package/vendor/antd/es/form/FormList.js +1 -0
  301. package/vendor/antd/es/form/hooks/useChildren.js +4 -3
  302. package/vendor/antd/es/form/hooks/useForm.js +3 -1
  303. package/vendor/antd/es/form/hooks/useFrameState.js +1 -0
  304. package/vendor/antd/es/form/hooks/useItemRef.js +7 -5
  305. package/vendor/antd/es/form/style/index.js +1 -3
  306. package/vendor/antd/es/grid/col.js +5 -7
  307. package/vendor/antd/es/grid/hooks/useBreakpoint.js +1 -0
  308. package/vendor/antd/es/grid/hooks/useGutter.js +2 -1
  309. package/vendor/antd/es/grid/row.js +7 -6
  310. package/vendor/antd/es/image/PreviewGroup.js +1 -2
  311. package/vendor/antd/es/image/Progress.js +58 -0
  312. package/vendor/antd/es/image/hooks/useMergedPreviewConfig.js +3 -1
  313. package/vendor/antd/es/image/hooks/usePlaceholderConfig.js +15 -0
  314. package/vendor/antd/es/image/hooks/usePreviewConfig.js +3 -2
  315. package/vendor/antd/es/image/index.js +36 -5
  316. package/vendor/antd/es/image/style/index.js +114 -4
  317. package/vendor/antd/es/image/style/progressAnimation.js +26 -0
  318. package/vendor/antd/es/index.js +2 -1
  319. package/vendor/antd/es/input/Input.js +9 -4
  320. package/vendor/antd/es/input/OTP/OTPInput.js +1 -0
  321. package/vendor/antd/es/input/OTP/index.js +3 -3
  322. package/vendor/antd/es/input/Password.js +45 -26
  323. package/vendor/antd/es/input/Search.js +6 -5
  324. package/vendor/antd/es/input/TextArea.js +13 -7
  325. package/vendor/antd/es/input/style/index.js +17 -11
  326. package/vendor/antd/es/input/style/otp.js +2 -1
  327. package/vendor/antd/es/input/style/variants.js +16 -10
  328. package/vendor/antd/es/input-number/index.js +3 -3
  329. package/vendor/antd/es/input-number/style/index.js +9 -9
  330. package/vendor/antd/es/layout/Sider.js +3 -2
  331. package/vendor/antd/es/list/index.js +5 -3
  332. package/vendor/antd/es/locale/en_US.js +3 -1
  333. package/vendor/antd/es/locale/ru_RU.js +3 -1
  334. package/vendor/antd/es/locale/useLocale.js +2 -1
  335. package/vendor/antd/es/masonry/Masonry.js +4 -3
  336. package/vendor/antd/es/mentions/index.js +28 -14
  337. package/vendor/antd/es/menu/MenuItem.js +2 -1
  338. package/vendor/antd/es/menu/OverrideContext.js +1 -0
  339. package/vendor/antd/es/menu/SubMenu.js +1 -1
  340. package/vendor/antd/es/menu/menu.js +5 -5
  341. package/vendor/antd/es/menu/style/index.js +21 -36
  342. package/vendor/antd/es/menu/style/vertical.js +2 -1
  343. package/vendor/antd/es/message/PureList.js +49 -0
  344. package/vendor/antd/es/message/PurePanel.js +28 -36
  345. package/vendor/antd/es/message/index.js +6 -3
  346. package/vendor/antd/es/message/style/index.js +102 -99
  347. package/vendor/antd/es/message/useMessage.js +29 -33
  348. package/vendor/antd/es/message/util.js +1 -1
  349. package/vendor/antd/es/modal/ConfirmDialog.js +11 -9
  350. package/vendor/antd/es/modal/Modal.js +12 -7
  351. package/vendor/antd/es/modal/PurePanel.js +1 -2
  352. package/vendor/antd/es/modal/confirm.js +4 -3
  353. package/vendor/antd/es/modal/shared.js +3 -2
  354. package/vendor/antd/es/modal/useModal/HookModal.js +2 -1
  355. package/vendor/antd/es/notification/PureList.js +46 -0
  356. package/vendor/antd/es/notification/PurePanel.js +37 -56
  357. package/vendor/antd/es/notification/hooks/useStackConfig.js +13 -0
  358. package/vendor/antd/es/notification/index.js +3 -1
  359. package/vendor/antd/es/notification/style/index.js +103 -170
  360. package/vendor/antd/es/notification/style/notification.js +191 -0
  361. package/vendor/antd/es/notification/style/placement.js +117 -60
  362. package/vendor/antd/es/notification/useNotification.js +37 -40
  363. package/vendor/antd/es/notification/util.js +9 -50
  364. package/vendor/antd/es/pagination/Pagination.js +1 -2
  365. package/vendor/antd/es/pagination/useShowSizeChanger.js +2 -1
  366. package/vendor/antd/es/popconfirm/PurePanel.js +4 -1
  367. package/vendor/antd/es/popconfirm/index.js +1 -2
  368. package/vendor/antd/es/popover/PurePanel.js +1 -2
  369. package/vendor/antd/es/popover/index.js +1 -2
  370. package/vendor/antd/es/progress/Circle.js +2 -1
  371. package/vendor/antd/es/progress/progress.js +3 -3
  372. package/vendor/antd/es/progress/utils.js +4 -3
  373. package/vendor/antd/es/qr-code/index.js +4 -4
  374. package/vendor/antd/es/radio/group.js +4 -3
  375. package/vendor/antd/es/radio/radio.js +2 -2
  376. package/vendor/antd/es/radio/style/index.js +1 -1
  377. package/vendor/antd/es/rate/index.js +2 -4
  378. package/vendor/antd/es/result/index.js +6 -5
  379. package/vendor/antd/es/result/style/index.js +10 -6
  380. package/vendor/antd/es/segmented/index.js +5 -3
  381. package/vendor/antd/es/select/index.js +23 -12
  382. package/vendor/antd/es/select/style/dropdown.js +1 -1
  383. package/vendor/antd/es/select/style/select-input.js +23 -15
  384. package/vendor/antd/es/select/useIcons.js +43 -26
  385. package/vendor/antd/es/skeleton/Element.js +2 -1
  386. package/vendor/antd/es/skeleton/Skeleton.js +3 -3
  387. package/vendor/antd/es/slider/SliderTooltip.js +1 -0
  388. package/vendor/antd/es/slider/index.js +5 -3
  389. package/vendor/antd/es/slider/useRafLock.js +1 -0
  390. package/vendor/antd/es/space/Compact.js +1 -1
  391. package/vendor/antd/es/space/Item.js +1 -1
  392. package/vendor/antd/es/space/index.js +2 -2
  393. package/vendor/antd/es/space/style/addon.js +5 -2
  394. package/vendor/antd/es/spin/Indicator/Progress.js +2 -1
  395. package/vendor/antd/es/spin/index.js +1 -2
  396. package/vendor/antd/es/splitter/Panel.js +7 -3
  397. package/vendor/antd/es/splitter/SplitBar.js +5 -4
  398. package/vendor/antd/es/splitter/Splitter.js +9 -6
  399. package/vendor/antd/es/splitter/hooks/useItems.js +2 -1
  400. package/vendor/antd/es/splitter/hooks/useSizes.js +1 -1
  401. package/vendor/antd/es/splitter/style/index.js +8 -6
  402. package/vendor/antd/es/statistic/Number.js +8 -4
  403. package/vendor/antd/es/statistic/Statistic.js +14 -10
  404. package/vendor/antd/es/steps/index.js +4 -4
  405. package/vendor/antd/es/style/compact-item-vertical.js +2 -1
  406. package/vendor/antd/es/style/compact-item.js +6 -6
  407. package/vendor/antd/es/switch/index.js +1 -2
  408. package/vendor/antd/es/table/InternalTable.js +23 -14
  409. package/vendor/antd/es/table/hooks/useFilledColumns.js +23 -0
  410. package/vendor/antd/es/table/hooks/useFilter/FilterDropdown.js +22 -16
  411. package/vendor/antd/es/table/hooks/useFilter/FilterWrapper.js +1 -0
  412. package/vendor/antd/es/table/hooks/useFilter/index.js +34 -18
  413. package/vendor/antd/es/table/hooks/useLazyKVMap.js +2 -1
  414. package/vendor/antd/es/table/hooks/usePagination.js +7 -4
  415. package/vendor/antd/es/table/hooks/useSelection.js +32 -21
  416. package/vendor/antd/es/table/hooks/useSorter.js +10 -5
  417. package/vendor/antd/es/table/style/bordered.js +5 -27
  418. package/vendor/antd/es/table/style/empty.js +1 -4
  419. package/vendor/antd/es/table/style/index.js +1 -4
  420. package/vendor/antd/es/table/util.js +6 -6
  421. package/vendor/antd/es/tabs/hooks/useAnimateConfig.js +2 -1
  422. package/vendor/antd/es/tabs/index.js +1 -2
  423. package/vendor/antd/es/tag/CheckableTagGroup.js +8 -5
  424. package/vendor/antd/es/tag/hooks/useColor.js +4 -3
  425. package/vendor/antd/es/tag/index.js +13 -7
  426. package/vendor/antd/es/theme/themes/dark/colors.js +2 -1
  427. package/vendor/antd/es/theme/themes/default/colors.js +2 -1
  428. package/vendor/antd/es/theme/useToken.js +2 -2
  429. package/vendor/antd/es/theme/util/alias.js +34 -29
  430. package/vendor/antd/es/timeline/Timeline.js +3 -4
  431. package/vendor/antd/es/tooltip/PurePanel.js +1 -2
  432. package/vendor/antd/es/tooltip/UniqueProvider/index.js +2 -1
  433. package/vendor/antd/es/tooltip/index.js +9 -7
  434. package/vendor/antd/es/tour/PurePanel.js +2 -2
  435. package/vendor/antd/es/tour/index.js +1 -1
  436. package/vendor/antd/es/tour/panelRender.js +4 -2
  437. package/vendor/antd/es/transfer/ListBody.js +3 -1
  438. package/vendor/antd/es/transfer/ListItem.js +2 -1
  439. package/vendor/antd/es/transfer/Section.js +17 -8
  440. package/vendor/antd/es/transfer/index.js +51 -16
  441. package/vendor/antd/es/transfer/style/index.js +5 -1
  442. package/vendor/antd/es/tree/Tree.js +1 -2
  443. package/vendor/antd/es/tree/style/index.js +5 -1
  444. package/vendor/antd/es/tree/utils/iconUtil.js +5 -4
  445. package/vendor/antd/es/tree-select/index.js +3 -3
  446. package/vendor/antd/es/typography/Base/CopyBtn.js +3 -2
  447. package/vendor/antd/es/typography/Base/Ellipsis.js +3 -3
  448. package/vendor/antd/es/typography/Base/index.js +38 -31
  449. package/vendor/antd/es/typography/Editable.js +10 -4
  450. package/vendor/antd/es/typography/Link.js +1 -0
  451. package/vendor/antd/es/typography/Text.js +2 -1
  452. package/vendor/antd/es/typography/Typography.js +20 -10
  453. package/vendor/antd/es/typography/hooks/useCopyClick.js +2 -1
  454. package/vendor/antd/es/typography/hooks/useMergedConfig.js +13 -7
  455. package/vendor/antd/es/typography/hooks/useTooltipProps.js +2 -1
  456. package/vendor/antd/es/typography/hooks/useTypographySemantic.js +33 -0
  457. package/vendor/antd/es/typography/style/index.js +12 -27
  458. package/vendor/antd/es/typography/style/mixins.js +46 -13
  459. package/vendor/antd/es/upload/Upload.js +13 -7
  460. package/vendor/antd/es/upload/UploadList/ListItem.js +6 -5
  461. package/vendor/antd/es/upload/UploadList/index.js +4 -3
  462. package/vendor/antd/es/upload/utils.js +18 -1
  463. package/vendor/antd/es/version/version.js +1 -1
  464. package/vendor/antd/es/watermark/index.js +6 -4
  465. package/vendor/antd/es/watermark/useSingletonCache.js +1 -0
  466. package/vendor/antd/es/watermark/useWatermark.js +3 -3
  467. package/vendor/antd/package.json +1 -1
  468. package/emailmaker-core.8a98eb63.js +0 -859
  469. package/iframe/js/discussHandlers.CTTzIkqW.js +0 -88
  470. package/static/core/132074fc.js +0 -1
  471. package/static/core/2a4178e1.js +0 -1
  472. package/static/core/312b689d.js +0 -7
  473. package/static/core/36d57a50.js +0 -28
  474. package/static/core/420fc89a.js +0 -27
  475. package/static/core/45127a77.js +0 -1
  476. package/static/core/5e35e5e8.js +0 -1
  477. package/static/core/9e0696a3.js +0 -1
  478. package/static/core/b0ddc500.js +0 -2
  479. package/static/core/c5e3e58d.js +0 -1
  480. package/static/core/d612bba8.js +0 -1
  481. package/static/core/dd6e4977.js +0 -1
  482. package/static/core/fb589d00.js +0 -1
  483. package/static/esm/50fbfdf6.js +0 -1
  484. package/static/esm/e1e55006.js +0 -1
  485. package/static/media/icon-sets/lucide.json +0 -6275
  486. package/static/media/icon-sets/tabler.json +0 -19336
  487. package/static/umd-runtime/V5NCqAWA.js +0 -1
  488. package/static/umd-runtime/XrKalJq-.js +0 -335
  489. package/vendor/@rc-component/notification/es/Notice.js +0 -106
  490. package/vendor/@rc-component/notification/es/NoticeList.js +0 -98
  491. package/vendor/@rc-component/textarea/LICENSE.md +0 -9
  492. package/vendor/@rc-component/textarea/es/index.js +0 -6
  493. package/vendor/@rc-component/textarea/package.json +0 -6
  494. package/vendor/antd/es/_util/extendsObject.js +0 -12
  495. package/vendor/antd/es/_util/getAllowClear.js +0 -12
  496. package/vendor/antd/es/_util/isNonNullable.js +0 -6
  497. package/vendor/antd/es/_util/isPrimitive.js +0 -4
  498. package/vendor/antd/es/notification/style/pure-panel.js +0 -18
  499. package/vendor/antd/es/notification/style/stack.js +0 -85
  500. /package/iframe/{iframe-eblock.8a98eb63.html → iframe-eblock.d8f06ef8.html} +0 -0
  501. /package/iframe/{iframe.8a98eb63.html → iframe.d8f06ef8.html} +0 -0
@@ -4,8 +4,8 @@ import useId_default from "../../util/es/hooks/useId.js";
4
4
  import KeyCode from "../../util/es/KeyCode.js";
5
5
  import { clsx } from "../../../clsx/dist/clsx.js";
6
6
  import BaseInput from "../../input/es/BaseInput.js";
7
+ import TextArea from "../../input/es/TextArea.js";
7
8
  import "../../input/es/index.js";
8
- import es_default from "../../textarea/es/index.js";
9
9
  import useEffectState from "./hooks/useEffectState.js";
10
10
  import MentionsContext from "./MentionsContext.js";
11
11
  import KeywordTrigger from "./KeywordTrigger.js";
@@ -98,13 +98,33 @@ const InternalMentions = /*#__PURE__*/ forwardRef((props, ref) => {
98
98
  filterOption$1
99
99
  ]);
100
100
  const mergedOptions = React.useMemo(() => getOptions(mergedMeasureText), [getOptions, mergedMeasureText]);
101
+ const getEnabledActiveIndex = React.useCallback((index, offset = 1) => {
102
+ const len = mergedOptions.length;
103
+ if (!len) return -1;
104
+ for (let i = 0; i < len; i += 1) {
105
+ const current = (index + i * offset + len) % len;
106
+ if (!mergedOptions[current]?.disabled) return current;
107
+ }
108
+ return -1;
109
+ }, [mergedOptions]);
110
+ useEffect(() => {
111
+ if (!mergedMeasuring) return;
112
+ const currentOption = mergedOptions[activeIndex];
113
+ if (!currentOption || currentOption.disabled) setActiveIndex(getEnabledActiveIndex(0));
114
+ }, [
115
+ mergedMeasuring,
116
+ mergedOptions,
117
+ activeIndex,
118
+ getEnabledActiveIndex,
119
+ setActiveIndex
120
+ ]);
101
121
  const onSelectionEffect = useEffectState();
102
122
  const startMeasure = (nextMeasureText, nextMeasurePrefix, nextMeasureLocation) => {
103
123
  setMeasuring(true);
104
124
  setMeasureText(nextMeasureText);
105
125
  setMeasurePrefix(nextMeasurePrefix);
106
126
  setMeasureLocation(nextMeasureLocation);
107
- setActiveIndex(0);
127
+ setActiveIndex(getEnabledActiveIndex(0));
108
128
  };
109
129
  const stopMeasure = (callback) => {
110
130
  setMeasuring(false);
@@ -120,6 +140,7 @@ const InternalMentions = /*#__PURE__*/ forwardRef((props, ref) => {
120
140
  triggerChange(nextValue);
121
141
  };
122
142
  const selectOption = (option) => {
143
+ if (!option || option.disabled) return;
123
144
  const { value: mentionValue = "" } = option;
124
145
  const { text, selectionLocation } = replaceWithMeasure(mergedValue, {
125
146
  measureLocation: mergedMeasureLocation,
@@ -139,10 +160,10 @@ const InternalMentions = /*#__PURE__*/ forwardRef((props, ref) => {
139
160
  onKeyDown?.(event);
140
161
  if (!mergedMeasuring) return;
141
162
  if (which === KeyCode.UP || which === KeyCode.DOWN) {
142
- const optionLen = mergedOptions.length;
163
+ if (!mergedOptions.length) return;
143
164
  const offset = which === KeyCode.UP ? -1 : 1;
144
- const newActiveIndex = (activeIndex + offset + optionLen) % optionLen;
145
- setActiveIndex(newActiveIndex);
165
+ const newActiveIndex = getEnabledActiveIndex(activeIndex + offset, offset);
166
+ if (newActiveIndex !== -1) setActiveIndex(newActiveIndex);
146
167
  event.preventDefault();
147
168
  } else if (which === KeyCode.ESC) stopMeasure();
148
169
  else if (which === KeyCode.ENTER) {
@@ -152,8 +173,14 @@ const InternalMentions = /*#__PURE__*/ forwardRef((props, ref) => {
152
173
  stopMeasure();
153
174
  return;
154
175
  }
155
- const option = mergedOptions[activeIndex];
156
- selectOption(option);
176
+ let targetIndex = activeIndex;
177
+ if (!mergedOptions[targetIndex] || mergedOptions[targetIndex].disabled) targetIndex = getEnabledActiveIndex(0);
178
+ if (targetIndex === -1) {
179
+ stopMeasure();
180
+ return;
181
+ }
182
+ setActiveIndex(targetIndex);
183
+ selectOption(mergedOptions[targetIndex]);
157
184
  }
158
185
  };
159
186
  /**
@@ -228,7 +255,7 @@ const InternalMentions = /*#__PURE__*/ forwardRef((props, ref) => {
228
255
  textarea: mergedTextareaStyle
229
256
  };
230
257
  }, [style, styles]);
231
- const mentionNode = /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(es_default, _extends({
258
+ const mentionNode = /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(TextArea, _extends({
232
259
  classNames: { textarea: mentionClassNames?.textarea },
233
260
  styles: mergedStyles,
234
261
  ref: textareaRef,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/mentions",
3
- "version": "1.6.0",
3
+ "version": "1.9.0",
4
4
  "license": "MIT",
5
5
  "type": "module"
6
6
  }
@@ -2,6 +2,7 @@ import "../../util/es/warning.js";
2
2
  import useControlledState from "../../util/es/hooks/useControlledState.js";
3
3
  import useId_default from "../../util/es/hooks/useId.js";
4
4
  import isEqual from "../../util/es/isEqual.js";
5
+ import "../../util/es/index.js";
5
6
  import { clsx } from "../../../clsx/dist/clsx.js";
6
7
  import es_default from "../../overflow/es/index.js";
7
8
  import { IdContext } from "./context/IdContext.js";
@@ -2,6 +2,7 @@ import warningOnce from "../../util/es/warning.js";
2
2
  import { useComposeRef } from "../../util/es/ref.js";
3
3
  import KeyCode from "../../util/es/KeyCode.js";
4
4
  import omit from "../../util/es/omit.js";
5
+ import "../../util/es/index.js";
5
6
  import { clsx } from "../../../clsx/dist/clsx.js";
6
7
  import es_default from "../../overflow/es/index.js";
7
8
  import { useMenuId } from "./context/IdContext.js";
@@ -1,4 +1,5 @@
1
1
  import omit from "../../util/es/omit.js";
2
+ import "../../util/es/index.js";
2
3
  import { clsx } from "../../../clsx/dist/clsx.js";
3
4
  import { MenuContext } from "./context/MenuContext.js";
4
5
  import { useFullPath, useMeasure } from "./context/PathContext.js";
@@ -1,4 +1,5 @@
1
1
  import wrapperRaf from "../../../util/es/raf.js";
2
+ import "../../../util/es/index.js";
2
3
  import { clsx } from "../../../../clsx/dist/clsx.js";
3
4
  import es_default from "../../../trigger/es/index.js";
4
5
  import { MenuContext } from "../context/MenuContext.js";
@@ -1,4 +1,5 @@
1
1
  import "../../../util/es/warning.js";
2
+ import "../../../util/es/index.js";
2
3
  import { clsx } from "../../../../clsx/dist/clsx.js";
3
4
  import es_default from "../../../overflow/es/index.js";
4
5
  import { useMenuId } from "../context/IdContext.js";
@@ -1,5 +1,6 @@
1
1
  import useMemo$1 from "../../../util/es/hooks/useMemo.js";
2
2
  import isEqual from "../../../util/es/isEqual.js";
3
+ import "../../../util/es/index.js";
3
4
  import * as React$1 from "../../../../react/index.js";
4
5
  //#region node_modules/@rc-component/menu/es/context/MenuContext.js
5
6
  const MenuContext = /*#__PURE__*/ React$1.createContext(null);
@@ -1,6 +1,7 @@
1
1
  import { getFocusNodeList } from "../../../util/es/Dom/focus.js";
2
2
  import KeyCode from "../../../util/es/KeyCode.js";
3
3
  import wrapperRaf from "../../../util/es/raf.js";
4
+ import "../../../util/es/index.js";
4
5
  import { getMenuId } from "../context/IdContext.js";
5
6
  import * as React$1 from "../../../../react/index.js";
6
7
  //#region node_modules/@rc-component/menu/es/hooks/useAccessibility.js
@@ -1,4 +1,5 @@
1
1
  import "../../../util/es/warning.js";
2
+ import "../../../util/es/index.js";
2
3
  import { nextSlice } from "../utils/timeUtil.js";
3
4
  import * as React$1 from "../../../../react/index.js";
4
5
  import { useCallback, useRef } from "../../../../react/index.js";
@@ -1,4 +1,5 @@
1
1
  import toArray from "../../../util/es/Children/toArray.js";
2
+ import "../../../util/es/index.js";
2
3
  import * as React$1 from "../../../../react/index.js";
3
4
  //#region node_modules/@rc-component/menu/es/utils/commonUtil.js
4
5
  function parseChildren(children, keyPath) {
@@ -26,7 +26,8 @@ function convertItemsToNodes(list, components, prefixCls) {
26
26
  return /*#__PURE__*/ React$1.createElement(MergedSubMenu, _extends({ key: mergedKey }, restProps, { title: label }), convertItemsToNodes(children, components, prefixCls));
27
27
  }
28
28
  if (type === "divider") return /*#__PURE__*/ React$1.createElement(MergedDivider, _extends({ key: mergedKey }, restProps));
29
- return /*#__PURE__*/ React$1.createElement(MergedMenuItem, _extends({ key: mergedKey }, restProps, { extra }), label, (!!extra || extra === 0) && /*#__PURE__*/ React$1.createElement("span", { className: `${prefixCls}-item-extra` }, extra));
29
+ const hasExtra = !!extra || extra === 0;
30
+ return /*#__PURE__*/ React$1.createElement(MergedMenuItem, _extends({ key: mergedKey }, restProps, { extra }), hasExtra ? /*#__PURE__*/ React$1.createElement(React$1.Fragment, null, /*#__PURE__*/ React$1.createElement("span", { className: `${prefixCls}-item-label` }, label), /*#__PURE__*/ React$1.createElement("span", { className: `${prefixCls}-item-extra` }, extra)) : label);
30
31
  }
31
32
  return null;
32
33
  }).filter((opt) => opt);
@@ -1,4 +1,5 @@
1
1
  import warningOnce from "../../../util/es/warning.js";
2
+ import "../../../util/es/index.js";
2
3
  //#region node_modules/@rc-component/menu/es/utils/warnUtil.js
3
4
  /**
4
5
  * `onClick` event return `info.item` which point to react node directly.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/menu",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "license": "MIT",
5
5
  "type": "module"
6
6
  }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019-present react-component
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-present yiminghe
4
+ Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,15 @@
1
+ import isFragment from "../React/isFragment.js";
2
+ import React from "../../../../../../../react/index.js";
3
+ //#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Children/toArray.js
4
+ function toArray(children, option = {}) {
5
+ let ret = [];
6
+ React.Children.forEach(children, (child) => {
7
+ if ((child === void 0 || child === null) && !option.keepEmpty) return;
8
+ if (Array.isArray(child)) ret = ret.concat(toArray(child));
9
+ else if (isFragment(child) && child.props) ret = ret.concat(toArray(child.props.children, option));
10
+ else ret.push(child);
11
+ });
12
+ return ret;
13
+ }
14
+ //#endregion
15
+ export { toArray as default };
@@ -0,0 +1,6 @@
1
+ //#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Dom/canUseDom.js
2
+ function canUseDom() {
3
+ return !!(typeof window !== "undefined" && window.document && window.document.createElement);
4
+ }
5
+ //#endregion
6
+ export { canUseDom as default };
@@ -0,0 +1,13 @@
1
+ //#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Dom/contains.js
2
+ function contains(root, n) {
3
+ if (!root) return false;
4
+ if (root.contains) return root.contains(n);
5
+ let node = n;
6
+ while (node) {
7
+ if (node === root) return true;
8
+ node = node.parentNode;
9
+ }
10
+ return false;
11
+ }
12
+ //#endregion
13
+ export { contains as default };
@@ -0,0 +1,94 @@
1
+ import canUseDom from "./canUseDom.js";
2
+ import contains from "./contains.js";
3
+ //#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Dom/dynamicCSS.js
4
+ const APPEND_ORDER = "data-rc-order";
5
+ const APPEND_PRIORITY = "data-rc-priority";
6
+ const MARK_KEY = `rc-util-key`;
7
+ const containerCache = /* @__PURE__ */ new Map();
8
+ function getMark({ mark } = {}) {
9
+ if (mark) return mark.startsWith("data-") ? mark : `data-${mark}`;
10
+ return MARK_KEY;
11
+ }
12
+ function getContainer(option) {
13
+ if (option.attachTo) return option.attachTo;
14
+ return document.querySelector("head") || document.body;
15
+ }
16
+ function getOrder(prepend) {
17
+ if (prepend === "queue") return "prependQueue";
18
+ return prepend ? "prepend" : "append";
19
+ }
20
+ /**
21
+ * Find style which inject by rc-util
22
+ */
23
+ function findStyles(container) {
24
+ return Array.from((containerCache.get(container) || container).children).filter((node) => node.tagName === "STYLE");
25
+ }
26
+ function injectCSS(css, option = {}) {
27
+ if (!canUseDom()) return null;
28
+ const { csp, prepend, priority = 0 } = option;
29
+ const mergedOrder = getOrder(prepend);
30
+ const isPrependQueue = mergedOrder === "prependQueue";
31
+ const styleNode = document.createElement("style");
32
+ styleNode.setAttribute(APPEND_ORDER, mergedOrder);
33
+ if (isPrependQueue && priority) styleNode.setAttribute(APPEND_PRIORITY, `${priority}`);
34
+ if (csp?.nonce) styleNode.nonce = csp?.nonce;
35
+ styleNode.innerHTML = css;
36
+ const container = getContainer(option);
37
+ const { firstChild } = container;
38
+ if (prepend) {
39
+ if (isPrependQueue) {
40
+ const existStyle = (option.styles || findStyles(container)).filter((node) => {
41
+ if (!["prepend", "prependQueue"].includes(node.getAttribute(APPEND_ORDER))) return false;
42
+ const nodePriority = Number(node.getAttribute(APPEND_PRIORITY) || 0);
43
+ return priority >= nodePriority;
44
+ });
45
+ if (existStyle.length) {
46
+ container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
47
+ return styleNode;
48
+ }
49
+ }
50
+ container.insertBefore(styleNode, firstChild);
51
+ } else container.appendChild(styleNode);
52
+ return styleNode;
53
+ }
54
+ function findExistNode(key, option = {}) {
55
+ let { styles } = option;
56
+ styles ||= findStyles(getContainer(option));
57
+ return styles.find((node) => node.getAttribute(getMark(option)) === key);
58
+ }
59
+ function removeCSS(key, option = {}) {
60
+ const existNode = findExistNode(key, option);
61
+ if (existNode) getContainer(option).removeChild(existNode);
62
+ }
63
+ /**
64
+ * qiankun will inject `appendChild` to insert into other
65
+ */
66
+ function syncRealContainer(container, option) {
67
+ const cachedRealContainer = containerCache.get(container);
68
+ if (!cachedRealContainer || !contains(document, cachedRealContainer)) {
69
+ const placeholderStyle = injectCSS("", option);
70
+ const { parentNode } = placeholderStyle;
71
+ containerCache.set(container, parentNode);
72
+ container.removeChild(placeholderStyle);
73
+ }
74
+ }
75
+ function updateCSS(css, key, originOption = {}) {
76
+ const container = getContainer(originOption);
77
+ const styles = findStyles(container);
78
+ const option = {
79
+ ...originOption,
80
+ styles
81
+ };
82
+ syncRealContainer(container, option);
83
+ const existNode = findExistNode(key, option);
84
+ if (existNode) {
85
+ if (option.csp?.nonce && existNode.nonce !== option.csp?.nonce) existNode.nonce = option.csp?.nonce;
86
+ if (existNode.innerHTML !== css) existNode.innerHTML = css;
87
+ return existNode;
88
+ }
89
+ const newNode = injectCSS(css, option);
90
+ newNode.setAttribute(getMark(option), key);
91
+ return newNode;
92
+ }
93
+ //#endregion
94
+ export { injectCSS, removeCSS, updateCSS };
@@ -0,0 +1,14 @@
1
+ //#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Dom/findDOMNode.js
2
+ function isDOM(node) {
3
+ return node instanceof HTMLElement || node instanceof SVGElement;
4
+ }
5
+ /**
6
+ * Retrieves a DOM node via a ref, and does not invoke `findDOMNode`.
7
+ */
8
+ function getDOM(node) {
9
+ if (node && typeof node === "object" && isDOM(node.nativeElement)) return node.nativeElement;
10
+ if (isDOM(node)) return node;
11
+ return null;
12
+ }
13
+ //#endregion
14
+ export { getDOM, isDOM };
@@ -0,0 +1,99 @@
1
+ import "../hooks/useId.js";
2
+ import isVisible_default from "./isVisible.js";
3
+ import "../../../../../../../react/index.js";
4
+ //#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Dom/focus.js
5
+ function focusable(node, includePositive = false) {
6
+ if (isVisible_default(node)) {
7
+ const nodeName = node.nodeName.toLowerCase();
8
+ const isFocusableElement = [
9
+ "input",
10
+ "select",
11
+ "textarea",
12
+ "button"
13
+ ].includes(nodeName) || node.isContentEditable || nodeName === "a" && !!node.getAttribute("href");
14
+ const tabIndexAttr = node.getAttribute("tabindex");
15
+ const tabIndexNum = Number(tabIndexAttr);
16
+ let tabIndex = null;
17
+ if (tabIndexAttr && !Number.isNaN(tabIndexNum)) tabIndex = tabIndexNum;
18
+ else if (isFocusableElement && tabIndex === null) tabIndex = 0;
19
+ if (isFocusableElement && node.disabled) tabIndex = null;
20
+ return tabIndex !== null && (tabIndex >= 0 || includePositive && tabIndex < 0);
21
+ }
22
+ return false;
23
+ }
24
+ function getFocusNodeList(node, includePositive = false) {
25
+ const res = [...node.querySelectorAll("*")].filter((child) => {
26
+ return focusable(child, includePositive);
27
+ });
28
+ if (focusable(node, includePositive)) res.unshift(node);
29
+ return res;
30
+ }
31
+ let lastFocusElement = null;
32
+ let focusElements = [];
33
+ const idToElementMap = /* @__PURE__ */ new Map();
34
+ const ignoredElementMap = /* @__PURE__ */ new Map();
35
+ function getLastElement() {
36
+ return focusElements[focusElements.length - 1];
37
+ }
38
+ function isIgnoredElement(element) {
39
+ const lastElement = getLastElement();
40
+ if (element && lastElement) {
41
+ let lockId;
42
+ for (const [id, ele] of idToElementMap.entries()) if (ele === lastElement) {
43
+ lockId = id;
44
+ break;
45
+ }
46
+ const ignoredEle = ignoredElementMap.get(lockId);
47
+ return !!ignoredEle && (ignoredEle === element || ignoredEle.contains(element));
48
+ }
49
+ return false;
50
+ }
51
+ function hasFocus(element) {
52
+ const { activeElement } = document;
53
+ return element === activeElement || element.contains(activeElement);
54
+ }
55
+ function syncFocus() {
56
+ const lastElement = getLastElement();
57
+ const { activeElement } = document;
58
+ if (isIgnoredElement(activeElement)) return;
59
+ if (lastElement && !hasFocus(lastElement)) {
60
+ const focusableList = getFocusNodeList(lastElement);
61
+ (focusableList.includes(lastFocusElement) ? lastFocusElement : focusableList[0])?.focus({ preventScroll: true });
62
+ } else lastFocusElement = activeElement;
63
+ }
64
+ function onWindowKeyDown(e) {
65
+ if (e.key === "Tab") {
66
+ const { activeElement } = document;
67
+ const focusableList = getFocusNodeList(getLastElement());
68
+ const last = focusableList[focusableList.length - 1];
69
+ if (e.shiftKey && activeElement === focusableList[0]) lastFocusElement = last;
70
+ else if (!e.shiftKey && activeElement === last) lastFocusElement = focusableList[0];
71
+ }
72
+ }
73
+ /**
74
+ * Lock focus in the element.
75
+ * It will force back to the first focusable element when focus leaves the element.
76
+ * @param id - A stable ID for this lock instance
77
+ */
78
+ function lockFocus(element, id) {
79
+ if (element) {
80
+ idToElementMap.set(id, element);
81
+ focusElements = focusElements.filter((ele) => ele !== element);
82
+ focusElements.push(element);
83
+ window.addEventListener("focusin", syncFocus);
84
+ window.addEventListener("keydown", onWindowKeyDown, true);
85
+ syncFocus();
86
+ }
87
+ return () => {
88
+ lastFocusElement = null;
89
+ focusElements = focusElements.filter((ele) => ele !== element);
90
+ idToElementMap.delete(id);
91
+ ignoredElementMap.delete(id);
92
+ if (focusElements.length === 0) {
93
+ window.removeEventListener("focusin", syncFocus);
94
+ window.removeEventListener("keydown", onWindowKeyDown, true);
95
+ }
96
+ };
97
+ }
98
+ //#endregion
99
+ export { getFocusNodeList, lockFocus };
@@ -0,0 +1,18 @@
1
+ //#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Dom/isVisible.js
2
+ var isVisible_default = ((element) => {
3
+ if (!element) return false;
4
+ if (element instanceof Element) {
5
+ if (element.offsetParent) return true;
6
+ if (element.getBBox) {
7
+ const { width, height } = element.getBBox();
8
+ if (width || height) return true;
9
+ }
10
+ if (element.getBoundingClientRect) {
11
+ const { width, height } = element.getBoundingClientRect();
12
+ if (width || height) return true;
13
+ }
14
+ }
15
+ return false;
16
+ });
17
+ //#endregion
18
+ export { isVisible_default as default };
@@ -0,0 +1,12 @@
1
+ //#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Dom/shadow.js
2
+ function getRoot(ele) {
3
+ return ele?.getRootNode?.();
4
+ }
5
+ /**
6
+ * Check if is in shadowRoot
7
+ */
8
+ function inShadow(ele) {
9
+ return getRoot(ele) instanceof ShadowRoot;
10
+ }
11
+ //#endregion
12
+ export { inShadow };
@@ -0,0 +1,2 @@
1
+ import "./canUseDom.js";
2
+ //#endregion