useblocks 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.
- package/README.md +70 -40
- package/compat-globals.js +1 -1
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/js/discussHandlers.sDXLf5I7.js +88 -0
- package/iframe/js/{iframe-eblock.body.js → iframe-eblock.body.714faf8a.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.js → iframe.body.714faf8a.js} +35 -35
- package/iframe/js/iframe.js +2 -2
- package/package.json +4 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +49 -42
- package/runtime/package.json +4 -1
- package/runtime/react/index.js +1 -1
- package/runtime/uuid/index.js +21 -0
- package/static/core/11bc33e0.js +1 -0
- package/static/core/1ed86ed3.js +1 -0
- package/static/core/248de796.js +1 -0
- package/static/core/{e50b6f57.js → 274b5d7a.js} +1 -1
- package/static/core/4067c5be.js +1 -0
- package/static/core/453596ac.js +27 -0
- package/static/core/4b12ae50.js +1 -0
- package/static/core/{db82c42b.js → 50d547f6.js} +1 -1
- package/static/core/549c0ef1.js +1 -0
- package/static/core/{b29146b3.js → 563a690f.js} +5 -5
- package/static/core/{c1bf6439.js → 5c62f38b.js} +1 -1
- package/static/core/5f949f39.js +1 -0
- package/static/core/{e0d71533.js → 60aa31a3.js} +6 -6
- package/static/core/{79749848.js → 66619f08.js} +7 -7
- package/static/core/7052d050.js +28 -0
- package/static/core/{984e936f.js → 7555e955.js} +1 -1
- package/static/core/{55a38638.js → 7c89682e.js} +7 -7
- package/static/core/83c17079.js +2 -0
- package/static/core/{4c83d06a.js → 8c5284f6.js} +1 -1
- package/static/core/{e0e5c9b9.js → 958fe93e.js} +2 -2
- package/static/core/{6fcb3c31.js → a3f7b4c9.js} +1 -1
- package/static/core/{9560f31a.js → a494cc9f.js} +1 -1
- package/static/core/{a5996860.js → a6303cb2.js} +1 -1
- package/static/core/b8a0f663.js +1 -0
- package/static/core/bb65f553.js +1 -0
- package/static/core/{4c3f5897.js → c2f990cf.js} +2 -2
- package/static/core/{72d350ea.js → c8d6258e.js} +1 -1
- package/static/core/{3ece766f.js → d58ae4ac.js} +2 -2
- package/static/core/d61988e0.js +7 -0
- package/static/core/d887672a.js +1 -0
- package/static/core/dcc37768.js +1 -0
- package/static/core/{30841c46.js → e50f64f6.js} +1 -1
- package/static/core/{175b5b0f.js → ff7d14e8.js} +1 -1
- package/static/esm/2490dab8.js +1 -0
- package/static/esm/971f1b2c.js +1 -0
- package/static/esm/ad8c16a9.js +1 -0
- package/static/esm/f76c9d9d.js +1 -0
- package/static/umd/6639d610.js +1 -0
- package/static/umd-runtime/B7h7P1Np.js +1 -0
- package/static/umd-runtime/{DHIkHsbq.js → BAqQTgiL.js} +1 -1
- package/static/umd-runtime/{DiNHpyis.js → BB6AXfHj.js} +1 -1
- package/static/umd-runtime/{CnUGCoaH.js → BauvM4c_.js} +1 -1
- package/static/umd-runtime/{cL_ha9ef.js → CgVJ4rE0.js} +1 -1
- package/static/umd-runtime/Cvm7BS4_.js +341 -0
- package/static/umd-runtime/{BnE05QKl.js → D7DggGzi.js} +1 -1
- package/static/umd-runtime/{2iAslXEF.js → DBbch1O-.js} +1 -1
- package/static/umd-runtime/{Bcqtk2f7.js → Dqoi-pC_.js} +2 -2
- package/static/umd-runtime/{CDTBLHGd.js → G2k8ELiO.js} +3 -3
- package/static/umd-runtime/{CVtPwspX.js → SFp4nbvq.js} +1 -1
- package/static/umd-runtime/{DVB_-O4B.js → UsRzAWs2.js} +1 -1
- package/static/umd-runtime/runtime.js +1 -1
- package/static/umd-runtime/ui-kit-icons.js +1 -1
- package/static/umd-runtime/ui-kit.js +2 -2
- package/static/umd-runtime/{DP3QTW77.js → uk9LyZos.js} +1 -1
- package/useblocks-core.714faf8a.js +859 -0
- package/useblocks-esm.js +11 -11
- package/{useblocks-po.8098d114.js → useblocks-po.714faf8a.js} +1 -1
- package/useblocks.d.ts +109 -25
- package/useblocks.js +39 -15
- package/vendor/@rc-component/cascader/package.json +1 -1
- package/vendor/@rc-component/dialog/es/Dialog/Content/Panel.js +3 -2
- package/vendor/@rc-component/dialog/package.json +1 -1
- package/vendor/@rc-component/image/es/Preview/index.js +3 -3
- package/vendor/@rc-component/image/package.json +1 -1
- package/vendor/@rc-component/input/es/BaseInput.js +3 -3
- package/vendor/@rc-component/input/es/Input.js +20 -27
- package/vendor/@rc-component/{textarea → input}/es/ResizableTextArea.js +5 -4
- package/vendor/@rc-component/{textarea → input}/es/TextArea.js +30 -40
- package/vendor/@rc-component/{textarea → input}/es/calculateNodeHeight.js +4 -4
- package/vendor/@rc-component/input/es/hooks/useCountDisplay.js +25 -0
- package/vendor/@rc-component/input/es/hooks/useCountExceed.js +25 -0
- package/vendor/@rc-component/input/es/hooks/useMergedValue.js +13 -0
- package/vendor/@rc-component/input/es/index.js +3 -1
- package/vendor/@rc-component/input/package.json +1 -1
- package/vendor/@rc-component/mentions/es/DropdownMenu.js +1 -1
- package/vendor/@rc-component/mentions/es/Mentions.js +35 -8
- package/vendor/@rc-component/mentions/package.json +1 -1
- package/vendor/@rc-component/menu/es/Menu.js +1 -0
- package/vendor/@rc-component/menu/es/MenuItem.js +1 -0
- package/vendor/@rc-component/menu/es/MenuItemGroup.js +1 -0
- package/vendor/@rc-component/menu/es/SubMenu/PopupTrigger.js +1 -0
- package/vendor/@rc-component/menu/es/SubMenu/index.js +1 -0
- package/vendor/@rc-component/menu/es/context/MenuContext.js +1 -0
- package/vendor/@rc-component/menu/es/hooks/useAccessibility.js +1 -0
- package/vendor/@rc-component/menu/es/hooks/useKeyRecords.js +1 -0
- package/vendor/@rc-component/menu/es/utils/commonUtil.js +1 -0
- package/vendor/@rc-component/menu/es/utils/nodeUtil.js +2 -1
- package/vendor/@rc-component/menu/es/utils/warnUtil.js +1 -0
- package/vendor/@rc-component/menu/package.json +1 -1
- package/vendor/@rc-component/notification/LICENSE +21 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/LICENSE +22 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Children/toArray.js +15 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/canUseDom.js +6 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/contains.js +13 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/dynamicCSS.js +94 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/findDOMNode.js +14 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/focus.js +99 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/isVisible.js +18 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/shadow.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/styleChecker.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/KeyCode.js +499 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Portal.js +28 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/React/isFragment.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/React/render.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/getScrollBarSize.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useControlledState.js +3 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useDelayState.js +4 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useEvent.js +9 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useId.js +23 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useLayoutEffect.js +26 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMemo.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMergedState.js +4 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useState.js +24 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useSyncState.js +20 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/index.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/is.js +21 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/isEqual.js +35 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/isMobile.js +11 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/mergeProps.js +14 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/omit.js +1 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/pickAttrs.js +50 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/proxyObject.js +1 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/raf.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/ref.js +38 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/test/domHook.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/get.js +11 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/set.js +58 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/warning.js +46 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/package.json +6 -0
- package/vendor/@rc-component/notification/es/Notification.js +129 -0
- package/vendor/@rc-component/notification/es/NotificationList/Content.js +33 -0
- package/vendor/@rc-component/notification/es/NotificationList/index.js +174 -0
- package/vendor/@rc-component/notification/es/NotificationProvider.js +4 -3
- package/vendor/@rc-component/notification/es/Notifications.js +28 -31
- package/vendor/@rc-component/notification/es/Progress.js +10 -0
- package/vendor/@rc-component/notification/es/hooks/useClosable.js +30 -0
- package/vendor/@rc-component/notification/es/hooks/useListPosition/index.js +50 -0
- package/vendor/@rc-component/notification/es/hooks/useListPosition/useSizes.js +33 -0
- package/vendor/@rc-component/notification/es/hooks/useNoticeTimer.js +58 -0
- package/vendor/@rc-component/notification/es/hooks/useNotification.js +27 -18
- package/vendor/@rc-component/notification/es/hooks/useStack.js +4 -4
- package/vendor/@rc-component/notification/es/index.js +4 -2
- package/vendor/@rc-component/notification/package.json +1 -1
- package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/MultipleDates.js +13 -3
- package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/index.js +3 -1
- package/vendor/@rc-component/picker/es/PickerInput/SinglePicker.js +2 -1
- package/vendor/@rc-component/picker/package.json +1 -1
- package/vendor/@rc-component/table/LICENSE +21 -0
- package/vendor/@rc-component/table/es/Body/MeasureCell.js +1 -0
- package/vendor/@rc-component/table/es/Body/MeasureRow.js +1 -0
- package/vendor/@rc-component/table/es/Cell/useCellRender.js +1 -0
- package/vendor/@rc-component/table/es/FixedHolder/index.js +1 -0
- package/vendor/@rc-component/table/es/Table.js +17 -9
- package/vendor/@rc-component/table/es/VirtualTable/BodyGrid.js +10 -4
- package/vendor/@rc-component/table/es/VirtualTable/BodyLine.js +13 -5
- package/vendor/@rc-component/table/es/hooks/useColumns/index.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useExpand.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useFixedInfo.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useSticky.js +1 -0
- package/vendor/@rc-component/table/es/index.js +2 -1
- package/vendor/@rc-component/table/es/stickyScrollBar.js +1 -0
- package/vendor/@rc-component/table/es/utils/legacyUtil.js +1 -0
- package/vendor/@rc-component/table/es/utils/offsetUtil.js +1 -0
- package/vendor/@rc-component/table/package.json +1 -1
- package/vendor/@rc-component/tabs/es/TabNavList/OperationNode.js +4 -2
- package/vendor/@rc-component/tabs/es/TabNavList/TabNode.js +5 -4
- package/vendor/@rc-component/tabs/es/TabNavList/index.js +11 -4
- package/vendor/@rc-component/tabs/es/Tabs.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useAnimateConfig.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useIndicator.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useUpdate.js +1 -0
- package/vendor/@rc-component/tabs/package.json +1 -1
- package/vendor/@rc-component/tour/es/TourStep/DefaultPanel.js +4 -1
- package/vendor/@rc-component/tour/package.json +1 -1
- package/vendor/@rc-component/tree/es/MotionTreeNode.js +1 -0
- package/vendor/@rc-component/tree/es/NodeList.js +2 -2
- package/vendor/@rc-component/tree/es/Tree.js +4 -5
- package/vendor/@rc-component/tree/es/TreeNode.js +7 -2
- package/vendor/@rc-component/tree/es/index.js +3 -0
- package/vendor/@rc-component/tree/es/useUnmount.js +1 -0
- package/vendor/@rc-component/tree/es/util.js +1 -0
- package/vendor/@rc-component/tree/es/utils/conductUtil.js +1 -0
- package/vendor/@rc-component/tree/es/utils/treeUtil.js +1 -0
- package/vendor/@rc-component/tree/package.json +1 -1
- package/vendor/@rc-component/tree-select/package.json +1 -1
- package/vendor/@rc-component/util/es/index.js +10 -10
- package/vendor/antd/es/_util/ActionButton.js +2 -3
- package/vendor/antd/es/_util/ContextIsolator.js +1 -1
- package/vendor/antd/es/_util/PurePanel.js +7 -4
- package/vendor/antd/es/_util/convertToTooltipProps.js +2 -2
- package/vendor/antd/es/_util/fallbackProp.js +15 -0
- package/vendor/antd/es/_util/gapSize.js +2 -1
- package/vendor/antd/es/_util/getRenderPropValue.js +2 -1
- package/vendor/antd/es/_util/getScroll.js +4 -4
- package/vendor/antd/es/_util/hooks/index.js +2 -2
- package/vendor/antd/es/_util/hooks/useAllowClear.js +25 -0
- package/vendor/antd/es/_util/hooks/useClosable.js +6 -5
- package/vendor/antd/es/_util/hooks/{useMergeSemantic.js → useMergeSemantic/index.js} +14 -24
- package/vendor/antd/es/_util/hooks/useMergeSemantic/utils.js +14 -0
- package/vendor/antd/es/_util/hooks/useMergedMask.js +2 -1
- package/vendor/antd/es/_util/is.js +27 -0
- package/vendor/antd/es/_util/motion.js +8 -8
- package/vendor/antd/es/_util/normalizeIcon.js +9 -0
- package/vendor/antd/es/_util/placements.js +2 -1
- package/vendor/antd/es/_util/reactNode.js +2 -1
- package/vendor/antd/es/_util/responsiveObserver.js +3 -2
- package/vendor/antd/es/_util/scrollTo.js +3 -1
- package/vendor/antd/es/_util/styleChecker.js +1 -0
- package/vendor/antd/es/_util/throttleByAnimationFrame.js +1 -0
- package/vendor/antd/es/_util/toList.js +1 -1
- package/vendor/antd/es/_util/wave/WaveEffect.js +3 -1
- package/vendor/antd/es/_util/wave/index.js +14 -4
- package/vendor/antd/es/_util/wave/util.js +5 -3
- package/vendor/antd/es/alert/Alert.js +12 -10
- package/vendor/antd/es/alert/ErrorBoundary.js +1 -1
- package/vendor/antd/es/alert/style/index.js +16 -10
- package/vendor/antd/es/anchor/Anchor.js +23 -16
- package/vendor/antd/es/anchor/AnchorLink.js +4 -4
- package/vendor/antd/es/app/App.js +7 -3
- package/vendor/antd/es/auto-complete/AutoComplete.js +7 -8
- package/vendor/antd/es/avatar/Avatar.js +5 -3
- package/vendor/antd/es/back-top/index.js +1 -0
- package/vendor/antd/es/badge/Badge.js +5 -6
- package/vendor/antd/es/badge/Ribbon.js +1 -2
- package/vendor/antd/es/badge/style/index.js +4 -3
- package/vendor/antd/es/border-beam/BorderBeam.js +42 -0
- package/vendor/antd/es/border-beam/BorderBeamEffect.js +24 -0
- package/vendor/antd/es/border-beam/hooks/useBorderSize.js +37 -0
- package/vendor/antd/es/border-beam/hooks/useChildDom.js +24 -0
- package/vendor/antd/es/border-beam/index.js +7 -0
- package/vendor/antd/es/border-beam/style/index.js +60 -0
- package/vendor/antd/es/border-beam/util.js +26 -0
- package/vendor/antd/es/breadcrumb/Breadcrumb.js +1 -2
- package/vendor/antd/es/breadcrumb/BreadcrumbItem.js +1 -1
- package/vendor/antd/es/breadcrumb/useItemRender.js +3 -2
- package/vendor/antd/es/button/Button.js +7 -6
- package/vendor/antd/es/button/buttonHelpers.js +4 -8
- package/vendor/antd/es/button/index.js +2 -2
- package/vendor/antd/es/button/style/index.js +5 -0
- package/vendor/antd/es/calendar/generateCalendar.js +20 -8
- package/vendor/antd/es/card/Card.js +5 -7
- package/vendor/antd/es/card/CardMeta.js +1 -2
- package/vendor/antd/es/carousel/index.js +2 -1
- package/vendor/antd/es/cascader/Panel.js +1 -1
- package/vendor/antd/es/cascader/index.js +23 -16
- package/vendor/antd/es/cascader/style/columns.js +6 -2
- package/vendor/antd/es/checkbox/Checkbox.js +2 -3
- package/vendor/antd/es/checkbox/Group.js +2 -1
- package/vendor/antd/es/checkbox/style/index.js +1 -5
- package/vendor/antd/es/checkbox/useBubbleLock.js +1 -0
- package/vendor/antd/es/collapse/Collapse.js +3 -3
- package/vendor/antd/es/collapse/style/index.js +1 -4
- package/vendor/antd/es/color-picker/ColorPicker.js +1 -2
- package/vendor/antd/es/color-picker/ColorPickerPanel.js +2 -1
- package/vendor/antd/es/color-picker/components/ColorTrigger.js +3 -1
- package/vendor/antd/es/color-picker/components/PanelPicker/index.js +1 -0
- package/vendor/antd/es/config-provider/hooks/useSize.js +3 -2
- package/vendor/antd/es/config-provider/hooks/useTheme.js +2 -0
- package/vendor/antd/es/config-provider/index.js +11 -3
- package/vendor/antd/es/date-picker/generatePicker/generateRangePicker.js +20 -10
- package/vendor/antd/es/date-picker/generatePicker/generateSinglePicker.js +17 -8
- package/vendor/antd/es/date-picker/generatePicker/useSuffixIcon.js +1 -1
- package/vendor/antd/es/date-picker/hooks/useMergedPickerSemantic.js +1 -2
- package/vendor/antd/es/date-picker/style/index.js +13 -3
- package/vendor/antd/es/date-picker/style/multiple.js +3 -4
- package/vendor/antd/es/date-picker/style/panel.js +5 -20
- package/vendor/antd/es/date-picker/util.js +14 -13
- package/vendor/antd/es/descriptions/Cell.js +2 -3
- package/vendor/antd/es/descriptions/hooks/useItems.js +2 -1
- package/vendor/antd/es/descriptions/index.js +3 -3
- package/vendor/antd/es/divider/index.js +3 -2
- package/vendor/antd/es/drawer/Drawer.js +10 -5
- package/vendor/antd/es/drawer/DrawerPanel.js +3 -2
- package/vendor/antd/es/dropdown/dropdown.js +11 -8
- package/vendor/antd/es/dropdown/style/index.js +2 -6
- package/vendor/antd/es/empty/index.js +1 -2
- package/vendor/antd/es/flex/index.js +2 -2
- package/vendor/antd/es/float-button/BackTop.js +1 -0
- package/vendor/antd/es/float-button/FloatButton.js +3 -3
- package/vendor/antd/es/float-button/FloatButtonGroup.js +2 -2
- package/vendor/antd/es/form/ErrorList.js +13 -6
- package/vendor/antd/es/form/Form.js +7 -6
- package/vendor/antd/es/form/FormItem/ItemHolder.js +1 -1
- package/vendor/antd/es/form/FormItem/index.js +6 -6
- package/vendor/antd/es/form/FormItemInput.js +5 -3
- package/vendor/antd/es/form/FormItemLabel.js +2 -1
- package/vendor/antd/es/form/FormList.js +1 -0
- package/vendor/antd/es/form/hooks/useChildren.js +4 -3
- package/vendor/antd/es/form/hooks/useForm.js +3 -1
- package/vendor/antd/es/form/hooks/useFrameState.js +1 -0
- package/vendor/antd/es/form/hooks/useItemRef.js +7 -5
- package/vendor/antd/es/form/style/index.js +1 -3
- package/vendor/antd/es/grid/col.js +5 -7
- package/vendor/antd/es/grid/hooks/useBreakpoint.js +1 -0
- package/vendor/antd/es/grid/hooks/useGutter.js +2 -1
- package/vendor/antd/es/grid/row.js +7 -6
- package/vendor/antd/es/image/PreviewGroup.js +1 -2
- package/vendor/antd/es/image/Progress.js +58 -0
- package/vendor/antd/es/image/hooks/useMergedPreviewConfig.js +3 -1
- package/vendor/antd/es/image/hooks/usePlaceholderConfig.js +15 -0
- package/vendor/antd/es/image/hooks/usePreviewConfig.js +3 -2
- package/vendor/antd/es/image/index.js +36 -5
- package/vendor/antd/es/image/style/index.js +114 -4
- package/vendor/antd/es/image/style/progressAnimation.js +26 -0
- package/vendor/antd/es/index.js +2 -1
- package/vendor/antd/es/input/Input.js +9 -4
- package/vendor/antd/es/input/OTP/OTPInput.js +1 -0
- package/vendor/antd/es/input/OTP/index.js +3 -3
- package/vendor/antd/es/input/Password.js +45 -26
- package/vendor/antd/es/input/Search.js +6 -5
- package/vendor/antd/es/input/TextArea.js +13 -7
- package/vendor/antd/es/input/style/index.js +17 -11
- package/vendor/antd/es/input/style/otp.js +2 -1
- package/vendor/antd/es/input/style/variants.js +16 -10
- package/vendor/antd/es/input-number/index.js +3 -3
- package/vendor/antd/es/input-number/style/index.js +9 -9
- package/vendor/antd/es/layout/Sider.js +3 -2
- package/vendor/antd/es/list/index.js +5 -3
- package/vendor/antd/es/locale/en_US.js +3 -1
- package/vendor/antd/es/locale/ru_RU.js +3 -1
- package/vendor/antd/es/locale/useLocale.js +2 -1
- package/vendor/antd/es/masonry/Masonry.js +4 -3
- package/vendor/antd/es/mentions/index.js +28 -14
- package/vendor/antd/es/menu/MenuItem.js +2 -1
- package/vendor/antd/es/menu/OverrideContext.js +1 -0
- package/vendor/antd/es/menu/SubMenu.js +1 -1
- package/vendor/antd/es/menu/menu.js +5 -5
- package/vendor/antd/es/menu/style/index.js +21 -36
- package/vendor/antd/es/menu/style/vertical.js +2 -1
- package/vendor/antd/es/message/PureList.js +49 -0
- package/vendor/antd/es/message/PurePanel.js +28 -36
- package/vendor/antd/es/message/index.js +6 -3
- package/vendor/antd/es/message/style/index.js +102 -99
- package/vendor/antd/es/message/useMessage.js +29 -33
- package/vendor/antd/es/message/util.js +1 -1
- package/vendor/antd/es/modal/ConfirmDialog.js +11 -9
- package/vendor/antd/es/modal/Modal.js +12 -7
- package/vendor/antd/es/modal/PurePanel.js +1 -2
- package/vendor/antd/es/modal/confirm.js +4 -3
- package/vendor/antd/es/modal/shared.js +3 -2
- package/vendor/antd/es/modal/useModal/HookModal.js +2 -1
- package/vendor/antd/es/notification/PureList.js +46 -0
- package/vendor/antd/es/notification/PurePanel.js +37 -56
- package/vendor/antd/es/notification/hooks/useStackConfig.js +13 -0
- package/vendor/antd/es/notification/index.js +3 -1
- package/vendor/antd/es/notification/style/index.js +103 -170
- package/vendor/antd/es/notification/style/notification.js +191 -0
- package/vendor/antd/es/notification/style/placement.js +117 -60
- package/vendor/antd/es/notification/useNotification.js +37 -40
- package/vendor/antd/es/notification/util.js +9 -50
- package/vendor/antd/es/pagination/Pagination.js +1 -2
- package/vendor/antd/es/pagination/useShowSizeChanger.js +2 -1
- package/vendor/antd/es/popconfirm/PurePanel.js +4 -1
- package/vendor/antd/es/popconfirm/index.js +1 -2
- package/vendor/antd/es/popover/PurePanel.js +1 -2
- package/vendor/antd/es/popover/index.js +1 -2
- package/vendor/antd/es/progress/Circle.js +2 -1
- package/vendor/antd/es/progress/progress.js +3 -3
- package/vendor/antd/es/progress/utils.js +4 -3
- package/vendor/antd/es/qr-code/index.js +4 -4
- package/vendor/antd/es/radio/group.js +4 -3
- package/vendor/antd/es/radio/radio.js +2 -2
- package/vendor/antd/es/radio/style/index.js +1 -1
- package/vendor/antd/es/rate/index.js +2 -4
- package/vendor/antd/es/result/index.js +6 -5
- package/vendor/antd/es/result/style/index.js +10 -6
- package/vendor/antd/es/segmented/index.js +5 -3
- package/vendor/antd/es/select/index.js +23 -12
- package/vendor/antd/es/select/style/dropdown.js +1 -1
- package/vendor/antd/es/select/style/select-input.js +23 -15
- package/vendor/antd/es/select/useIcons.js +43 -26
- package/vendor/antd/es/skeleton/Element.js +2 -1
- package/vendor/antd/es/skeleton/Skeleton.js +3 -3
- package/vendor/antd/es/slider/SliderTooltip.js +1 -0
- package/vendor/antd/es/slider/index.js +5 -3
- package/vendor/antd/es/slider/useRafLock.js +1 -0
- package/vendor/antd/es/space/Compact.js +1 -1
- package/vendor/antd/es/space/Item.js +1 -1
- package/vendor/antd/es/space/index.js +2 -2
- package/vendor/antd/es/space/style/addon.js +5 -2
- package/vendor/antd/es/spin/Indicator/Progress.js +2 -1
- package/vendor/antd/es/spin/index.js +1 -2
- package/vendor/antd/es/splitter/Panel.js +7 -3
- package/vendor/antd/es/splitter/SplitBar.js +5 -4
- package/vendor/antd/es/splitter/Splitter.js +9 -6
- package/vendor/antd/es/splitter/hooks/useItems.js +2 -1
- package/vendor/antd/es/splitter/hooks/useSizes.js +1 -1
- package/vendor/antd/es/splitter/style/index.js +8 -6
- package/vendor/antd/es/statistic/Number.js +8 -4
- package/vendor/antd/es/statistic/Statistic.js +14 -10
- package/vendor/antd/es/steps/index.js +4 -4
- package/vendor/antd/es/style/compact-item-vertical.js +2 -1
- package/vendor/antd/es/style/compact-item.js +6 -6
- package/vendor/antd/es/switch/index.js +1 -2
- package/vendor/antd/es/table/InternalTable.js +23 -14
- package/vendor/antd/es/table/hooks/useFilledColumns.js +23 -0
- package/vendor/antd/es/table/hooks/useFilter/FilterDropdown.js +22 -16
- package/vendor/antd/es/table/hooks/useFilter/FilterWrapper.js +1 -0
- package/vendor/antd/es/table/hooks/useFilter/index.js +34 -18
- package/vendor/antd/es/table/hooks/useLazyKVMap.js +2 -1
- package/vendor/antd/es/table/hooks/usePagination.js +7 -4
- package/vendor/antd/es/table/hooks/useSelection.js +32 -21
- package/vendor/antd/es/table/hooks/useSorter.js +10 -5
- package/vendor/antd/es/table/style/bordered.js +5 -27
- package/vendor/antd/es/table/style/empty.js +1 -4
- package/vendor/antd/es/table/style/index.js +1 -4
- package/vendor/antd/es/table/util.js +6 -6
- package/vendor/antd/es/tabs/hooks/useAnimateConfig.js +2 -1
- package/vendor/antd/es/tabs/index.js +1 -2
- package/vendor/antd/es/tag/CheckableTagGroup.js +8 -5
- package/vendor/antd/es/tag/hooks/useColor.js +4 -3
- package/vendor/antd/es/tag/index.js +13 -7
- package/vendor/antd/es/theme/themes/dark/colors.js +2 -1
- package/vendor/antd/es/theme/themes/default/colors.js +2 -1
- package/vendor/antd/es/theme/useToken.js +2 -2
- package/vendor/antd/es/theme/util/alias.js +34 -29
- package/vendor/antd/es/timeline/Timeline.js +3 -4
- package/vendor/antd/es/tooltip/PurePanel.js +1 -2
- package/vendor/antd/es/tooltip/UniqueProvider/index.js +2 -1
- package/vendor/antd/es/tooltip/index.js +9 -7
- package/vendor/antd/es/tour/PurePanel.js +2 -2
- package/vendor/antd/es/tour/index.js +1 -1
- package/vendor/antd/es/tour/panelRender.js +4 -2
- package/vendor/antd/es/transfer/ListBody.js +3 -1
- package/vendor/antd/es/transfer/ListItem.js +2 -1
- package/vendor/antd/es/transfer/Section.js +17 -8
- package/vendor/antd/es/transfer/index.js +51 -16
- package/vendor/antd/es/transfer/style/index.js +5 -1
- package/vendor/antd/es/tree/Tree.js +1 -2
- package/vendor/antd/es/tree/style/index.js +5 -1
- package/vendor/antd/es/tree/utils/iconUtil.js +5 -4
- package/vendor/antd/es/tree-select/index.js +3 -3
- package/vendor/antd/es/typography/Base/CopyBtn.js +3 -2
- package/vendor/antd/es/typography/Base/Ellipsis.js +3 -3
- package/vendor/antd/es/typography/Base/index.js +38 -31
- package/vendor/antd/es/typography/Editable.js +10 -4
- package/vendor/antd/es/typography/Link.js +1 -0
- package/vendor/antd/es/typography/Text.js +2 -1
- package/vendor/antd/es/typography/Typography.js +20 -10
- package/vendor/antd/es/typography/hooks/useCopyClick.js +2 -1
- package/vendor/antd/es/typography/hooks/useMergedConfig.js +13 -7
- package/vendor/antd/es/typography/hooks/useTooltipProps.js +2 -1
- package/vendor/antd/es/typography/hooks/useTypographySemantic.js +33 -0
- package/vendor/antd/es/typography/style/index.js +12 -27
- package/vendor/antd/es/typography/style/mixins.js +46 -13
- package/vendor/antd/es/upload/Upload.js +13 -7
- package/vendor/antd/es/upload/UploadList/ListItem.js +6 -5
- package/vendor/antd/es/upload/UploadList/index.js +4 -3
- package/vendor/antd/es/upload/utils.js +18 -1
- package/vendor/antd/es/version/version.js +1 -1
- package/vendor/antd/es/watermark/index.js +6 -4
- package/vendor/antd/es/watermark/useSingletonCache.js +1 -0
- package/vendor/antd/es/watermark/useWatermark.js +3 -3
- package/vendor/antd/package.json +1 -1
- package/vendor/useblocks-ui-kit/es/components/DataEntry/Input/index.js +1 -1
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/discussHandlers.CCCXIEaO.js +0 -88
- package/static/core/1f101241.js +0 -1
- package/static/core/1fa93ad8.js +0 -28
- package/static/core/2007bc93.js +0 -1
- package/static/core/30ab7b1d.js +0 -1
- package/static/core/440a91be.js +0 -1
- package/static/core/44e96a78.js +0 -1
- package/static/core/823aedee.js +0 -1
- package/static/core/828583e1.js +0 -2
- package/static/core/8cc6e392.js +0 -1
- package/static/core/9aefcefb.js +0 -1
- package/static/core/a4f90443.js +0 -27
- package/static/core/a7ac37cd.js +0 -1
- package/static/core/df41de18.js +0 -7
- package/static/esm/349f9e2c.js +0 -1
- package/static/esm/50fbfdf6.js +0 -1
- package/static/media/icon-sets/lucide.json +0 -6275
- package/static/media/icon-sets/tabler.json +0 -19336
- package/static/umd-runtime/Cl8heeC3.js +0 -1
- package/static/umd-runtime/D0xo8o9c.js +0 -335
- package/useblocks-core.8098d114.js +0 -859
- package/vendor/@rc-component/notification/es/Notice.js +0 -106
- package/vendor/@rc-component/notification/es/NoticeList.js +0 -98
- package/vendor/@rc-component/textarea/LICENSE.md +0 -9
- package/vendor/@rc-component/textarea/es/index.js +0 -6
- package/vendor/@rc-component/textarea/package.json +0 -6
- package/vendor/antd/es/_util/extendsObject.js +0 -12
- package/vendor/antd/es/_util/getAllowClear.js +0 -12
- package/vendor/antd/es/_util/isNonNullable.js +0 -6
- package/vendor/antd/es/_util/isPrimitive.js +0 -4
- package/vendor/antd/es/notification/style/pure-panel.js +0 -18
- package/vendor/antd/es/notification/style/stack.js +0 -85
- /package/iframe/{iframe-eblock.8098d114.html → iframe-eblock.714faf8a.html} +0 -0
- /package/iframe/{iframe.8098d114.html → iframe.714faf8a.html} +0 -0
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/KeyCode.js
|
|
2
|
+
/**
|
|
3
|
+
* @ignore
|
|
4
|
+
* some key-codes definition and utils from closure-library
|
|
5
|
+
* @author yiminghe@gmail.com
|
|
6
|
+
*/
|
|
7
|
+
const KeyCode = {
|
|
8
|
+
/**
|
|
9
|
+
* MAC_ENTER
|
|
10
|
+
*/
|
|
11
|
+
MAC_ENTER: 3,
|
|
12
|
+
/**
|
|
13
|
+
* BACKSPACE
|
|
14
|
+
*/
|
|
15
|
+
BACKSPACE: 8,
|
|
16
|
+
/**
|
|
17
|
+
* TAB
|
|
18
|
+
*/
|
|
19
|
+
TAB: 9,
|
|
20
|
+
/**
|
|
21
|
+
* NUMLOCK on FF/Safari Mac
|
|
22
|
+
*/
|
|
23
|
+
NUM_CENTER: 12,
|
|
24
|
+
/**
|
|
25
|
+
* ENTER
|
|
26
|
+
*/
|
|
27
|
+
ENTER: 13,
|
|
28
|
+
/**
|
|
29
|
+
* SHIFT
|
|
30
|
+
*/
|
|
31
|
+
SHIFT: 16,
|
|
32
|
+
/**
|
|
33
|
+
* CTRL
|
|
34
|
+
*/
|
|
35
|
+
CTRL: 17,
|
|
36
|
+
/**
|
|
37
|
+
* ALT
|
|
38
|
+
*/
|
|
39
|
+
ALT: 18,
|
|
40
|
+
/**
|
|
41
|
+
* PAUSE
|
|
42
|
+
*/
|
|
43
|
+
PAUSE: 19,
|
|
44
|
+
/**
|
|
45
|
+
* CAPS_LOCK
|
|
46
|
+
*/
|
|
47
|
+
CAPS_LOCK: 20,
|
|
48
|
+
/**
|
|
49
|
+
* ESC
|
|
50
|
+
*/
|
|
51
|
+
ESC: 27,
|
|
52
|
+
/**
|
|
53
|
+
* SPACE
|
|
54
|
+
*/
|
|
55
|
+
SPACE: 32,
|
|
56
|
+
/**
|
|
57
|
+
* PAGE_UP
|
|
58
|
+
*/
|
|
59
|
+
PAGE_UP: 33,
|
|
60
|
+
/**
|
|
61
|
+
* PAGE_DOWN
|
|
62
|
+
*/
|
|
63
|
+
PAGE_DOWN: 34,
|
|
64
|
+
/**
|
|
65
|
+
* END
|
|
66
|
+
*/
|
|
67
|
+
END: 35,
|
|
68
|
+
/**
|
|
69
|
+
* HOME
|
|
70
|
+
*/
|
|
71
|
+
HOME: 36,
|
|
72
|
+
/**
|
|
73
|
+
* LEFT
|
|
74
|
+
*/
|
|
75
|
+
LEFT: 37,
|
|
76
|
+
/**
|
|
77
|
+
* UP
|
|
78
|
+
*/
|
|
79
|
+
UP: 38,
|
|
80
|
+
/**
|
|
81
|
+
* RIGHT
|
|
82
|
+
*/
|
|
83
|
+
RIGHT: 39,
|
|
84
|
+
/**
|
|
85
|
+
* DOWN
|
|
86
|
+
*/
|
|
87
|
+
DOWN: 40,
|
|
88
|
+
/**
|
|
89
|
+
* PRINT_SCREEN
|
|
90
|
+
*/
|
|
91
|
+
PRINT_SCREEN: 44,
|
|
92
|
+
/**
|
|
93
|
+
* INSERT
|
|
94
|
+
*/
|
|
95
|
+
INSERT: 45,
|
|
96
|
+
/**
|
|
97
|
+
* DELETE
|
|
98
|
+
*/
|
|
99
|
+
DELETE: 46,
|
|
100
|
+
/**
|
|
101
|
+
* ZERO
|
|
102
|
+
*/
|
|
103
|
+
ZERO: 48,
|
|
104
|
+
/**
|
|
105
|
+
* ONE
|
|
106
|
+
*/
|
|
107
|
+
ONE: 49,
|
|
108
|
+
/**
|
|
109
|
+
* TWO
|
|
110
|
+
*/
|
|
111
|
+
TWO: 50,
|
|
112
|
+
/**
|
|
113
|
+
* THREE
|
|
114
|
+
*/
|
|
115
|
+
THREE: 51,
|
|
116
|
+
/**
|
|
117
|
+
* FOUR
|
|
118
|
+
*/
|
|
119
|
+
FOUR: 52,
|
|
120
|
+
/**
|
|
121
|
+
* FIVE
|
|
122
|
+
*/
|
|
123
|
+
FIVE: 53,
|
|
124
|
+
/**
|
|
125
|
+
* SIX
|
|
126
|
+
*/
|
|
127
|
+
SIX: 54,
|
|
128
|
+
/**
|
|
129
|
+
* SEVEN
|
|
130
|
+
*/
|
|
131
|
+
SEVEN: 55,
|
|
132
|
+
/**
|
|
133
|
+
* EIGHT
|
|
134
|
+
*/
|
|
135
|
+
EIGHT: 56,
|
|
136
|
+
/**
|
|
137
|
+
* NINE
|
|
138
|
+
*/
|
|
139
|
+
NINE: 57,
|
|
140
|
+
/**
|
|
141
|
+
* QUESTION_MARK
|
|
142
|
+
*/
|
|
143
|
+
QUESTION_MARK: 63,
|
|
144
|
+
/**
|
|
145
|
+
* A
|
|
146
|
+
*/
|
|
147
|
+
A: 65,
|
|
148
|
+
/**
|
|
149
|
+
* B
|
|
150
|
+
*/
|
|
151
|
+
B: 66,
|
|
152
|
+
/**
|
|
153
|
+
* C
|
|
154
|
+
*/
|
|
155
|
+
C: 67,
|
|
156
|
+
/**
|
|
157
|
+
* D
|
|
158
|
+
*/
|
|
159
|
+
D: 68,
|
|
160
|
+
/**
|
|
161
|
+
* E
|
|
162
|
+
*/
|
|
163
|
+
E: 69,
|
|
164
|
+
/**
|
|
165
|
+
* F
|
|
166
|
+
*/
|
|
167
|
+
F: 70,
|
|
168
|
+
/**
|
|
169
|
+
* G
|
|
170
|
+
*/
|
|
171
|
+
G: 71,
|
|
172
|
+
/**
|
|
173
|
+
* H
|
|
174
|
+
*/
|
|
175
|
+
H: 72,
|
|
176
|
+
/**
|
|
177
|
+
* I
|
|
178
|
+
*/
|
|
179
|
+
I: 73,
|
|
180
|
+
/**
|
|
181
|
+
* J
|
|
182
|
+
*/
|
|
183
|
+
J: 74,
|
|
184
|
+
/**
|
|
185
|
+
* K
|
|
186
|
+
*/
|
|
187
|
+
K: 75,
|
|
188
|
+
/**
|
|
189
|
+
* L
|
|
190
|
+
*/
|
|
191
|
+
L: 76,
|
|
192
|
+
/**
|
|
193
|
+
* M
|
|
194
|
+
*/
|
|
195
|
+
M: 77,
|
|
196
|
+
/**
|
|
197
|
+
* N
|
|
198
|
+
*/
|
|
199
|
+
N: 78,
|
|
200
|
+
/**
|
|
201
|
+
* O
|
|
202
|
+
*/
|
|
203
|
+
O: 79,
|
|
204
|
+
/**
|
|
205
|
+
* P
|
|
206
|
+
*/
|
|
207
|
+
P: 80,
|
|
208
|
+
/**
|
|
209
|
+
* Q
|
|
210
|
+
*/
|
|
211
|
+
Q: 81,
|
|
212
|
+
/**
|
|
213
|
+
* R
|
|
214
|
+
*/
|
|
215
|
+
R: 82,
|
|
216
|
+
/**
|
|
217
|
+
* S
|
|
218
|
+
*/
|
|
219
|
+
S: 83,
|
|
220
|
+
/**
|
|
221
|
+
* T
|
|
222
|
+
*/
|
|
223
|
+
T: 84,
|
|
224
|
+
/**
|
|
225
|
+
* U
|
|
226
|
+
*/
|
|
227
|
+
U: 85,
|
|
228
|
+
/**
|
|
229
|
+
* V
|
|
230
|
+
*/
|
|
231
|
+
V: 86,
|
|
232
|
+
/**
|
|
233
|
+
* W
|
|
234
|
+
*/
|
|
235
|
+
W: 87,
|
|
236
|
+
/**
|
|
237
|
+
* X
|
|
238
|
+
*/
|
|
239
|
+
X: 88,
|
|
240
|
+
/**
|
|
241
|
+
* Y
|
|
242
|
+
*/
|
|
243
|
+
Y: 89,
|
|
244
|
+
/**
|
|
245
|
+
* Z
|
|
246
|
+
*/
|
|
247
|
+
Z: 90,
|
|
248
|
+
/**
|
|
249
|
+
* META
|
|
250
|
+
*/
|
|
251
|
+
META: 91,
|
|
252
|
+
/**
|
|
253
|
+
* WIN_KEY_RIGHT
|
|
254
|
+
*/
|
|
255
|
+
WIN_KEY_RIGHT: 92,
|
|
256
|
+
/**
|
|
257
|
+
* CONTEXT_MENU
|
|
258
|
+
*/
|
|
259
|
+
CONTEXT_MENU: 93,
|
|
260
|
+
/**
|
|
261
|
+
* NUM_ZERO
|
|
262
|
+
*/
|
|
263
|
+
NUM_ZERO: 96,
|
|
264
|
+
/**
|
|
265
|
+
* NUM_ONE
|
|
266
|
+
*/
|
|
267
|
+
NUM_ONE: 97,
|
|
268
|
+
/**
|
|
269
|
+
* NUM_TWO
|
|
270
|
+
*/
|
|
271
|
+
NUM_TWO: 98,
|
|
272
|
+
/**
|
|
273
|
+
* NUM_THREE
|
|
274
|
+
*/
|
|
275
|
+
NUM_THREE: 99,
|
|
276
|
+
/**
|
|
277
|
+
* NUM_FOUR
|
|
278
|
+
*/
|
|
279
|
+
NUM_FOUR: 100,
|
|
280
|
+
/**
|
|
281
|
+
* NUM_FIVE
|
|
282
|
+
*/
|
|
283
|
+
NUM_FIVE: 101,
|
|
284
|
+
/**
|
|
285
|
+
* NUM_SIX
|
|
286
|
+
*/
|
|
287
|
+
NUM_SIX: 102,
|
|
288
|
+
/**
|
|
289
|
+
* NUM_SEVEN
|
|
290
|
+
*/
|
|
291
|
+
NUM_SEVEN: 103,
|
|
292
|
+
/**
|
|
293
|
+
* NUM_EIGHT
|
|
294
|
+
*/
|
|
295
|
+
NUM_EIGHT: 104,
|
|
296
|
+
/**
|
|
297
|
+
* NUM_NINE
|
|
298
|
+
*/
|
|
299
|
+
NUM_NINE: 105,
|
|
300
|
+
/**
|
|
301
|
+
* NUM_MULTIPLY
|
|
302
|
+
*/
|
|
303
|
+
NUM_MULTIPLY: 106,
|
|
304
|
+
/**
|
|
305
|
+
* NUM_PLUS
|
|
306
|
+
*/
|
|
307
|
+
NUM_PLUS: 107,
|
|
308
|
+
/**
|
|
309
|
+
* NUM_MINUS
|
|
310
|
+
*/
|
|
311
|
+
NUM_MINUS: 109,
|
|
312
|
+
/**
|
|
313
|
+
* NUM_PERIOD
|
|
314
|
+
*/
|
|
315
|
+
NUM_PERIOD: 110,
|
|
316
|
+
/**
|
|
317
|
+
* NUM_DIVISION
|
|
318
|
+
*/
|
|
319
|
+
NUM_DIVISION: 111,
|
|
320
|
+
/**
|
|
321
|
+
* F1
|
|
322
|
+
*/
|
|
323
|
+
F1: 112,
|
|
324
|
+
/**
|
|
325
|
+
* F2
|
|
326
|
+
*/
|
|
327
|
+
F2: 113,
|
|
328
|
+
/**
|
|
329
|
+
* F3
|
|
330
|
+
*/
|
|
331
|
+
F3: 114,
|
|
332
|
+
/**
|
|
333
|
+
* F4
|
|
334
|
+
*/
|
|
335
|
+
F4: 115,
|
|
336
|
+
/**
|
|
337
|
+
* F5
|
|
338
|
+
*/
|
|
339
|
+
F5: 116,
|
|
340
|
+
/**
|
|
341
|
+
* F6
|
|
342
|
+
*/
|
|
343
|
+
F6: 117,
|
|
344
|
+
/**
|
|
345
|
+
* F7
|
|
346
|
+
*/
|
|
347
|
+
F7: 118,
|
|
348
|
+
/**
|
|
349
|
+
* F8
|
|
350
|
+
*/
|
|
351
|
+
F8: 119,
|
|
352
|
+
/**
|
|
353
|
+
* F9
|
|
354
|
+
*/
|
|
355
|
+
F9: 120,
|
|
356
|
+
/**
|
|
357
|
+
* F10
|
|
358
|
+
*/
|
|
359
|
+
F10: 121,
|
|
360
|
+
/**
|
|
361
|
+
* F11
|
|
362
|
+
*/
|
|
363
|
+
F11: 122,
|
|
364
|
+
/**
|
|
365
|
+
* F12
|
|
366
|
+
*/
|
|
367
|
+
F12: 123,
|
|
368
|
+
/**
|
|
369
|
+
* NUMLOCK
|
|
370
|
+
*/
|
|
371
|
+
NUMLOCK: 144,
|
|
372
|
+
/**
|
|
373
|
+
* SEMICOLON
|
|
374
|
+
*/
|
|
375
|
+
SEMICOLON: 186,
|
|
376
|
+
/**
|
|
377
|
+
* DASH
|
|
378
|
+
*/
|
|
379
|
+
DASH: 189,
|
|
380
|
+
/**
|
|
381
|
+
* EQUALS
|
|
382
|
+
*/
|
|
383
|
+
EQUALS: 187,
|
|
384
|
+
/**
|
|
385
|
+
* COMMA
|
|
386
|
+
*/
|
|
387
|
+
COMMA: 188,
|
|
388
|
+
/**
|
|
389
|
+
* PERIOD
|
|
390
|
+
*/
|
|
391
|
+
PERIOD: 190,
|
|
392
|
+
/**
|
|
393
|
+
* SLASH
|
|
394
|
+
*/
|
|
395
|
+
SLASH: 191,
|
|
396
|
+
/**
|
|
397
|
+
* APOSTROPHE
|
|
398
|
+
*/
|
|
399
|
+
APOSTROPHE: 192,
|
|
400
|
+
/**
|
|
401
|
+
* SINGLE_QUOTE
|
|
402
|
+
*/
|
|
403
|
+
SINGLE_QUOTE: 222,
|
|
404
|
+
/**
|
|
405
|
+
* OPEN_SQUARE_BRACKET
|
|
406
|
+
*/
|
|
407
|
+
OPEN_SQUARE_BRACKET: 219,
|
|
408
|
+
/**
|
|
409
|
+
* BACKSLASH
|
|
410
|
+
*/
|
|
411
|
+
BACKSLASH: 220,
|
|
412
|
+
/**
|
|
413
|
+
* CLOSE_SQUARE_BRACKET
|
|
414
|
+
*/
|
|
415
|
+
CLOSE_SQUARE_BRACKET: 221,
|
|
416
|
+
/**
|
|
417
|
+
* WIN_KEY
|
|
418
|
+
*/
|
|
419
|
+
WIN_KEY: 224,
|
|
420
|
+
/**
|
|
421
|
+
* MAC_FF_META
|
|
422
|
+
*/
|
|
423
|
+
MAC_FF_META: 224,
|
|
424
|
+
/**
|
|
425
|
+
* WIN_IME
|
|
426
|
+
*/
|
|
427
|
+
WIN_IME: 229,
|
|
428
|
+
/**
|
|
429
|
+
* whether text and modified key is entered at the same time.
|
|
430
|
+
*/
|
|
431
|
+
isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {
|
|
432
|
+
const { keyCode } = e;
|
|
433
|
+
if (e.altKey && !e.ctrlKey || e.metaKey || keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) return false;
|
|
434
|
+
switch (keyCode) {
|
|
435
|
+
case KeyCode.ALT:
|
|
436
|
+
case KeyCode.CAPS_LOCK:
|
|
437
|
+
case KeyCode.CONTEXT_MENU:
|
|
438
|
+
case KeyCode.CTRL:
|
|
439
|
+
case KeyCode.DOWN:
|
|
440
|
+
case KeyCode.END:
|
|
441
|
+
case KeyCode.ESC:
|
|
442
|
+
case KeyCode.HOME:
|
|
443
|
+
case KeyCode.INSERT:
|
|
444
|
+
case KeyCode.LEFT:
|
|
445
|
+
case KeyCode.MAC_FF_META:
|
|
446
|
+
case KeyCode.META:
|
|
447
|
+
case KeyCode.NUMLOCK:
|
|
448
|
+
case KeyCode.NUM_CENTER:
|
|
449
|
+
case KeyCode.PAGE_DOWN:
|
|
450
|
+
case KeyCode.PAGE_UP:
|
|
451
|
+
case KeyCode.PAUSE:
|
|
452
|
+
case KeyCode.PRINT_SCREEN:
|
|
453
|
+
case KeyCode.RIGHT:
|
|
454
|
+
case KeyCode.SHIFT:
|
|
455
|
+
case KeyCode.UP:
|
|
456
|
+
case KeyCode.WIN_KEY:
|
|
457
|
+
case KeyCode.WIN_KEY_RIGHT: return false;
|
|
458
|
+
default: return true;
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* whether character is entered.
|
|
463
|
+
*/
|
|
464
|
+
isCharacterKey: function isCharacterKey(keyCode) {
|
|
465
|
+
if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) return true;
|
|
466
|
+
if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) return true;
|
|
467
|
+
if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) return true;
|
|
468
|
+
if (window.navigator.userAgent.indexOf("WebKit") !== -1 && keyCode === 0) return true;
|
|
469
|
+
switch (keyCode) {
|
|
470
|
+
case KeyCode.SPACE:
|
|
471
|
+
case KeyCode.QUESTION_MARK:
|
|
472
|
+
case KeyCode.NUM_PLUS:
|
|
473
|
+
case KeyCode.NUM_MINUS:
|
|
474
|
+
case KeyCode.NUM_PERIOD:
|
|
475
|
+
case KeyCode.NUM_DIVISION:
|
|
476
|
+
case KeyCode.SEMICOLON:
|
|
477
|
+
case KeyCode.DASH:
|
|
478
|
+
case KeyCode.EQUALS:
|
|
479
|
+
case KeyCode.COMMA:
|
|
480
|
+
case KeyCode.PERIOD:
|
|
481
|
+
case KeyCode.SLASH:
|
|
482
|
+
case KeyCode.APOSTROPHE:
|
|
483
|
+
case KeyCode.SINGLE_QUOTE:
|
|
484
|
+
case KeyCode.OPEN_SQUARE_BRACKET:
|
|
485
|
+
case KeyCode.BACKSLASH:
|
|
486
|
+
case KeyCode.CLOSE_SQUARE_BRACKET: return true;
|
|
487
|
+
default: return false;
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
isEditableTarget: function isEditableTarget(e) {
|
|
491
|
+
const target = e.target;
|
|
492
|
+
if (!(target instanceof HTMLElement)) return false;
|
|
493
|
+
const tagName = target.tagName;
|
|
494
|
+
if (tagName === "INPUT" || tagName === "TEXTAREA" || tagName === "SELECT" || target.isContentEditable) return true;
|
|
495
|
+
return false;
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
//#endregion
|
|
499
|
+
export { KeyCode as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import canUseDom from "./Dom/canUseDom.js";
|
|
2
|
+
import { forwardRef, useEffect, useImperativeHandle, useRef } from "../../../../../../react/index.js";
|
|
3
|
+
import ReactDOM from "../../../../../../react-dom/index.js";
|
|
4
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/Portal.js
|
|
5
|
+
const Portal = /*#__PURE__*/ forwardRef((props, ref) => {
|
|
6
|
+
const { didUpdate, getContainer, children } = props;
|
|
7
|
+
const parentRef = useRef(null);
|
|
8
|
+
const containerRef = useRef(null);
|
|
9
|
+
useImperativeHandle(ref, () => ({}));
|
|
10
|
+
const initRef = useRef(false);
|
|
11
|
+
if (!initRef.current && canUseDom()) {
|
|
12
|
+
containerRef.current = getContainer();
|
|
13
|
+
parentRef.current = containerRef.current.parentNode;
|
|
14
|
+
initRef.current = true;
|
|
15
|
+
}
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
didUpdate?.(props);
|
|
18
|
+
});
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (containerRef.current.parentNode === null && parentRef.current !== null) parentRef.current.appendChild(containerRef.current);
|
|
21
|
+
return () => {
|
|
22
|
+
containerRef.current?.parentNode?.removeChild(containerRef.current);
|
|
23
|
+
};
|
|
24
|
+
}, []);
|
|
25
|
+
return containerRef.current ? /*#__PURE__*/ ReactDOM.createPortal(children, containerRef.current) : null;
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Portal as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/React/isFragment.js
|
|
2
|
+
const REACT_ELEMENT_TYPE_18 = Symbol.for("react.element");
|
|
3
|
+
const REACT_ELEMENT_TYPE_19 = Symbol.for("react.transitional.element");
|
|
4
|
+
const REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
5
|
+
/**
|
|
6
|
+
* Compatible with React 18 or 19 to check if node is a Fragment.
|
|
7
|
+
*/
|
|
8
|
+
function isFragment(object) {
|
|
9
|
+
return object && typeof object === "object" && (object.$$typeof === REACT_ELEMENT_TYPE_18 || object.$$typeof === REACT_ELEMENT_TYPE_19) && object.type === REACT_FRAGMENT_TYPE;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { isFragment as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React$1 from "../../../../../../../react/index.js";
|
|
2
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/hooks/useEvent.js
|
|
3
|
+
const useEvent = (callback) => {
|
|
4
|
+
const fnRef = React$1.useRef(callback);
|
|
5
|
+
fnRef.current = callback;
|
|
6
|
+
return React$1.useCallback((...args) => fnRef.current?.(...args), []);
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useEvent as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React$1 from "../../../../../../../react/index.js";
|
|
2
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/hooks/useId.js
|
|
3
|
+
function getUseId() {
|
|
4
|
+
return { ...React$1 }.useId;
|
|
5
|
+
}
|
|
6
|
+
let uuid = 0;
|
|
7
|
+
const useOriginId = getUseId();
|
|
8
|
+
var useId_default = useOriginId ? function useId(id) {
|
|
9
|
+
const reactId = useOriginId();
|
|
10
|
+
if (id) return id;
|
|
11
|
+
return reactId;
|
|
12
|
+
} : function useCompatId(id) {
|
|
13
|
+
const [innerId, setInnerId] = React$1.useState("ssr-id");
|
|
14
|
+
React$1.useEffect(() => {
|
|
15
|
+
const nextId = uuid;
|
|
16
|
+
uuid += 1;
|
|
17
|
+
setInnerId(`rc_unique_${nextId}`);
|
|
18
|
+
}, []);
|
|
19
|
+
if (id) return id;
|
|
20
|
+
return innerId;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useId_default as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import canUseDom from "../Dom/canUseDom.js";
|
|
2
|
+
import * as React$1 from "../../../../../../../react/index.js";
|
|
3
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/hooks/useLayoutEffect.js
|
|
4
|
+
/**
|
|
5
|
+
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
6
|
+
*/
|
|
7
|
+
const useInternalLayoutEffect = canUseDom() ? React$1.useLayoutEffect : React$1.useEffect;
|
|
8
|
+
const useLayoutEffect$1 = (callback, deps) => {
|
|
9
|
+
const firstMountRef = React$1.useRef(true);
|
|
10
|
+
useInternalLayoutEffect(() => {
|
|
11
|
+
return callback(firstMountRef.current);
|
|
12
|
+
}, deps);
|
|
13
|
+
useInternalLayoutEffect(() => {
|
|
14
|
+
firstMountRef.current = false;
|
|
15
|
+
return () => {
|
|
16
|
+
firstMountRef.current = true;
|
|
17
|
+
};
|
|
18
|
+
}, []);
|
|
19
|
+
};
|
|
20
|
+
const useLayoutUpdateEffect = (callback, deps) => {
|
|
21
|
+
useLayoutEffect$1((firstMount) => {
|
|
22
|
+
if (!firstMount) return callback();
|
|
23
|
+
}, deps);
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { useLayoutEffect$1 as default, useLayoutUpdateEffect };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React$1 from "../../../../../../../react/index.js";
|
|
2
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/hooks/useMemo.js
|
|
3
|
+
function useMemo$1(getValue, condition, shouldUpdate) {
|
|
4
|
+
const cacheRef = React$1.useRef({});
|
|
5
|
+
if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
6
|
+
cacheRef.current.value = getValue();
|
|
7
|
+
cacheRef.current.condition = condition;
|
|
8
|
+
}
|
|
9
|
+
return cacheRef.current.value;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { useMemo$1 as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React$1 from "../../../../../../../react/index.js";
|
|
2
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/hooks/useState.js
|
|
3
|
+
/**
|
|
4
|
+
* Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
|
|
5
|
+
* We do not make this auto is to avoid real memory leak.
|
|
6
|
+
* Developer should confirm it's safe to ignore themselves.
|
|
7
|
+
*/
|
|
8
|
+
const useSafeState = (defaultValue) => {
|
|
9
|
+
const destroyRef = React$1.useRef(false);
|
|
10
|
+
const [value, setValue] = React$1.useState(defaultValue);
|
|
11
|
+
React$1.useEffect(() => {
|
|
12
|
+
destroyRef.current = false;
|
|
13
|
+
return () => {
|
|
14
|
+
destroyRef.current = true;
|
|
15
|
+
};
|
|
16
|
+
}, []);
|
|
17
|
+
function safeSetState(updater, ignoreDestroy) {
|
|
18
|
+
if (ignoreDestroy && destroyRef.current) return;
|
|
19
|
+
setValue(updater);
|
|
20
|
+
}
|
|
21
|
+
return [value, safeSetState];
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { useSafeState as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import useEvent from "./useEvent.js";
|
|
2
|
+
import * as React$1 from "../../../../../../../react/index.js";
|
|
3
|
+
//#region node_modules/@rc-component/notification/node_modules/@rc-component/util/es/hooks/useSyncState.js
|
|
4
|
+
/**
|
|
5
|
+
* Same as React.useState but will always get latest state.
|
|
6
|
+
* This is useful when React merge multiple state updates into one.
|
|
7
|
+
* e.g. onTransitionEnd trigger multiple event at once will be merged state update in React.
|
|
8
|
+
*/
|
|
9
|
+
function useSyncState(defaultValue) {
|
|
10
|
+
const [, forceUpdate] = React$1.useReducer((x) => x + 1, 0);
|
|
11
|
+
const currentValueRef = React$1.useRef(defaultValue);
|
|
12
|
+
return [useEvent(() => {
|
|
13
|
+
return currentValueRef.current;
|
|
14
|
+
}), useEvent((updater) => {
|
|
15
|
+
currentValueRef.current = typeof updater === "function" ? updater(currentValueRef.current) : updater;
|
|
16
|
+
forceUpdate();
|
|
17
|
+
})];
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { useSyncState as default };
|