@unicom-cloud/ui 0.8.112 → 0.8.114
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/Affix.js +2 -2
- package/Alert.js +2 -2
- package/AutoComplete.js +1 -1
- package/BackTop.js +3 -3
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -47
- package/Countdown.js +17 -51
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +15 -51
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +1 -1
- package/Flex.js +16 -52
- package/Form.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +17 -52
- package/List.js +1 -1
- package/Loading.js +15 -51
- package/Marquee.js +24 -46
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +14 -50
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +16 -53
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/RichText.js +12 -13
- package/Segmented.js +16 -51
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +16 -52
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +2 -2
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +18 -54
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +3 -3
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +3 -3
- package/badge/Count.js +1 -1
- package/badge/index.js +2 -2
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{BiZSULcr.js → BGb_jT2S.js} +640 -672
- package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
- package/chunk/BcdTSJks.js +48 -0
- package/chunk/{CrOzsnI0.js → Bl3hZtxi.js} +1 -1
- package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
- package/chunk/{Cx92e1S8.js → CKojyqln.js} +5 -5
- package/chunk/{C3kH2ES3.js → CRgtPpMG.js} +1 -1
- package/chunk/CVMFAeSw.js +39 -0
- package/chunk/{0BhDjhcd.js → CVjWKHBo.js} +1 -1
- package/chunk/{DfbO4QTS.js → CYPFoLks.js} +4 -4
- package/chunk/{BfVlSL8A.js → Ch4iApRQ.js} +4 -4
- package/chunk/ClNkxEcR.js +154 -0
- package/chunk/{CYssV-zz.js → Cs9GrNJa.js} +66 -100
- package/chunk/{DfUcAhyT.js → CwLSam2p.js} +2 -2
- package/chunk/CxbF1opI.js +231 -0
- package/chunk/Cy26_CKq.js +33 -0
- package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
- package/chunk/{CylbdYce.js → D6I1_o6O.js} +1 -1
- package/chunk/{CtCFA4ht.js → DPDyV8yt.js} +4 -4
- package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
- package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
- package/chunk/{C1vY8016.js → DstheLSK.js} +79 -110
- package/chunk/{KPBMJlOB.js → HFPyZ48d.js} +37 -35
- package/chunk/{DhAvt6tJ.js → efH9HX0H.js} +3 -3
- package/chunk/exc7v_Hl.js +53 -0
- package/chunk/gJsdBcpG.js +10 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +22 -66
- package/countdown/index.js +42 -76
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +47 -83
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +89 -93
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/flex/index.js +38 -72
- package/form/Control.js +115 -103
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/index.js +1 -1
- package/form/promisify.js +10 -19
- package/form/store.js +3 -3
- package/form/util.js +62 -52
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +9 -9
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useResizeObserver.js +7 -50
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/addFromIconFontCn.js +1 -1
- package/icon/index.js +2 -2
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +18 -53
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +703 -690
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +29 -20
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +2 -2
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +57 -92
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +27 -63
- package/locale/en-US.js +5 -3
- package/locale/tr-TR.js +5 -3
- package/marquee/index.js +71 -93
- package/marquee-/index.js +74 -96
- package/mentions/index.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +2 -2
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +5 -5
- package/modal/index.js +2 -2
- package/notice/index.js +14 -50
- package/notification/index.js +2 -2
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/index.js +1 -1
- package/qr-code/index.js +1243 -92
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/rich-text/index.js +6332 -77
- package/rich-text/lib/diff/index.d.ts +21 -0
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +126 -161
- package/select/Option.js +44 -41
- package/select/Select.js +10 -12
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +2 -2
- package/space/index.js +24 -60
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +2 -2
- package/table/Table.js +14 -53
- package/table/index.js +77 -120
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +81 -117
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +3 -3
- package/tree-select/index.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +145 -145
- package/types/common/hooks/src/use-theme/index.d.ts +2 -2
- package/types/common/hooks/useStateWithPromise.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +4 -4
- package/types/common/utils/dom.d.ts +13 -1
- package/types/common/utils/lodash.d.ts +2 -1
- package/types/common/utils/reactDOM.d.ts +10 -1
- package/types/common/utils/validate.d.ts +2 -1
- package/types/pc/carousel/interface.d.ts +2 -2
- package/types/pc/color-picker/Panel.d.ts +1 -1
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/form/interface.d.ts +6 -1
- package/types/pc/form/promisify.d.ts +5 -0
- package/types/pc/form/store.d.ts +1 -1
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/index.d.ts +1 -1
- package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
- package/types/pc/list/interface.d.ts +2 -2
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/qr-code/examples/demo.d.ts +1 -0
- package/types/pc/qr-code/examples/download.d.ts +2 -0
- package/types/pc/qr-code/examples/full.d.ts +2 -0
- package/types/pc/qr-code/examples/image.d.ts +2 -0
- package/types/pc/qr-code/index.d.ts +2 -0
- package/types/pc/qr-code/src/index.d.ts +116 -0
- package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
- package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
- package/types/pc/rich-text/index.d.ts +7 -4
- package/types/pc/rich-text/interface.d.ts +3 -2
- package/types/pc/rich-text/{core → lib/core}/editor.d.ts +1 -1
- package/types/pc/rich-text/{core → lib/core}/rich.d.ts +3 -7
- package/types/pc/rich-text/{core → lib/core}/selection.d.ts +1 -0
- package/types/pc/rich-text/{core.d.ts → lib/core.d.ts} +1 -1
- package/types/pc/rich-text/lib/delta/AttributeMap.d.ts +15 -0
- package/types/pc/rich-text/lib/delta/Op.d.ts +13 -0
- package/types/pc/rich-text/lib/delta/OpIterator.d.ts +14 -0
- package/types/pc/rich-text/lib/delta/index.d.ts +53 -0
- package/types/pc/rich-text/lib/diff/index.d.ts +40 -0
- package/types/pc/rich-text/{formats → lib/formats}/bold.d.ts +1 -1
- package/types/pc/rich-text/{formats → lib/formats}/font.d.ts +1 -1
- package/types/pc/rich-text/lib/formats/hr.d.ts +5 -0
- package/types/pc/rich-text/lib/formats/image-resize/index.d.ts +27 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/BaseModule.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/DisplaySize.d.ts +5 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/Resize.d.ts +13 -0
- package/types/pc/rich-text/lib/formats/image-resize/options.d.ts +7 -0
- package/types/pc/rich-text/lib/formats/liOl.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/liUl.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/lineHeight.d.ts +3 -0
- package/types/pc/rich-text/{formats → lib/formats}/list.d.ts +1 -0
- package/types/pc/rich-text/{formats → lib/formats}/table.d.ts +3 -3
- package/types/pc/rich-text/{modules → lib/modules}/clipboard.d.ts +2 -2
- package/types/pc/rich-text/{modules → lib/modules}/history.d.ts +1 -1
- package/types/pc/rich-text/{modules → lib/modules}/keyboard.d.ts +1 -1
- package/types/pc/rich-text/{modules → lib/modules}/syntax.d.ts +2 -2
- package/types/pc/rich-text/{modules → lib/modules}/tableEmbed.d.ts +3 -3
- package/types/pc/rich-text/{modules → lib/modules}/toolbar.d.ts +1 -1
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/attributor.d.ts +3 -3
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/style.d.ts +2 -2
- package/types/pc/rich-text/{ui → lib/ui}/icons.d.ts +5 -1
- package/types/pc/rich-text/{ui → lib/ui}/picker.d.ts +1 -0
- package/types/pc/tabs/hook/useDomSize.d.ts +2 -2
- package/types/pc/tabs/hook/useHeaderScroll.d.ts +2 -2
- package/types/pc/tree-select/hook/useStateValue.d.ts +2 -2
- package/types/pc/utils/date.d.ts +1 -0
- package/types/pc/utils/index.d.ts +2 -2
- package/types/pc/utils/validate.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +70 -114
- package/typography/Operations.js +29 -74
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/request_.js +1972 -41
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/date.js +1 -0
- package/utils/dom.js +1 -1
- package/utils/index.js +248 -236
- package/utils/lodash.js +33 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/validate.js +15 -5
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +218 -217
- package/watermark/Watermark.js +1 -1
- package/chunk/BCmfDFV4.js +0 -4237
- package/chunk/BG6j6Ct7.js +0 -30
- package/chunk/C5CbL5ku.js +0 -56
- package/chunk/CXrVhA6-.js +0 -54
- package/chunk/DMv8Hn4u.js +0 -231
- package/chunk/DsuIQH0F.js +0 -200
- package/chunk/d1c9z8T1.js +0 -49
- package/chunk/vP3qfmKM.js +0 -84
- package/rich-text/core.js +0 -11
- package/rich-text/rich.js +0 -1347
- package/types/common/utils/index.d.ts +0 -47
- package/types/common/utils/keyboardCode.d.ts +0 -4
- package/types/common/utils/math.d.ts +0 -1
- package/types/common/utils/reactTransitionGroup.d.ts +0 -1
- package/types/common/utils/uuid.d.ts +0 -1
- package/types/pc/rich-text/delta/AttributeMap.d.ts +0 -10
- package/types/pc/rich-text/delta/Op.d.ts +0 -11
- package/types/pc/rich-text/delta/OpIterator.d.ts +0 -13
- package/types/pc/rich-text/delta/index.d.ts +0 -45
- package/types/common/hooks/src/utils/{index.d.ts → is.d.ts} +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/block.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/break.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/container.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/cursor.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/embed.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/inline.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/scroll.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/text.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/composition.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/emitter.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/instances.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/logger.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/module.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/theme.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/utils/createRegistryWithFormats.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/utils/scrollRectIntoView.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/align.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/background.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/blockquote.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/code.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/color.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/direction.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/formula.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/header.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/image.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/indent.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/italic.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/link.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/script.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/size.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/strike.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/underline.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/video.d.ts +0 -0
- package/types/pc/rich-text/{rich.d.ts → lib/index.d.ts} +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/input.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/index.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/table.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/uiNode.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/uploader.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/class.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/store.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/blot.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/container.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/leaf.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/parent.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/shadow.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/block.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/embed.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/inline.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/scroll.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/text.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-list.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-node.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/error.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/index.d.ts +1 -1
- /package/types/pc/rich-text/{parchment → lib/parchment}/registry.d.ts +0 -0
- /package/types/pc/rich-text/{parchment → lib/parchment}/scope.d.ts +0 -0
- /package/types/pc/rich-text/{themes → lib/themes}/base.d.ts +0 -0
- /package/types/pc/rich-text/{themes → lib/themes}/pqb.d.ts +0 -0
- /package/types/pc/rich-text/{ui → lib/ui}/color-picker.d.ts +0 -0
- /package/types/pc/rich-text/{ui → lib/ui}/icon-picker.d.ts +0 -0
- /package/types/pc/rich-text/{ui → lib/ui}/tooltip.d.ts +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { isBrowser as h } from "@unicom-cloud/utils/constant/platform";
|
|
2
|
+
import { N as s } from "./CjNkKiBA.js";
|
|
3
|
+
const l = !h, w = Reflect.apply(
|
|
4
|
+
() => l ? s : function(t, e, n, o) {
|
|
5
|
+
t?.addEventListener?.(e, n, o || !1);
|
|
6
|
+
},
|
|
7
|
+
void 0,
|
|
8
|
+
[]
|
|
9
|
+
), E = Reflect.apply(
|
|
10
|
+
() => l ? s : function(t, e, n, o) {
|
|
11
|
+
t?.removeEventListener?.(e, n, o || !1);
|
|
12
|
+
},
|
|
13
|
+
void 0,
|
|
14
|
+
[]
|
|
15
|
+
), v = function(t, e) {
|
|
16
|
+
if (!t)
|
|
17
|
+
return !1;
|
|
18
|
+
if (t.contains)
|
|
19
|
+
return t.contains(e);
|
|
20
|
+
let n = e;
|
|
21
|
+
for (; n; ) {
|
|
22
|
+
if (n === t)
|
|
23
|
+
return !0;
|
|
24
|
+
n = n.parentNode;
|
|
25
|
+
}
|
|
26
|
+
return !1;
|
|
27
|
+
};
|
|
28
|
+
function m(t) {
|
|
29
|
+
if (!(t instanceof HTMLElement) || t === document.documentElement || t === window)
|
|
30
|
+
return !1;
|
|
31
|
+
const e = t === document.documentElement ? t.clientHeight : t.offsetHeight, n = t === document.documentElement ? t.clientWidth : t.offsetWidth, o = t.scrollHeight, i = t.scrollWidth, r = window.getComputedStyle(t), f = r.getPropertyValue("overflow-x"), u = r.getPropertyValue("overflow-y"), c = ["scroll", "auto"], a = o > e && c.includes(u), d = i > n && c.includes(f);
|
|
32
|
+
return a || d;
|
|
33
|
+
}
|
|
34
|
+
const y = (t, e = document.documentElement) => {
|
|
35
|
+
const n = [];
|
|
36
|
+
let o = t;
|
|
37
|
+
for (; o && o !== e; )
|
|
38
|
+
m(o) && n.push(o), o = o.parentElement;
|
|
39
|
+
return n;
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
l as a,
|
|
43
|
+
w as b,
|
|
44
|
+
v as c,
|
|
45
|
+
y as g,
|
|
46
|
+
m as i,
|
|
47
|
+
E as o
|
|
48
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as u, useState as l, useCallback as h, useLayoutEffect as d, useEffect as g } from "react";
|
|
2
|
-
import { b as E, c as p, d as w, g as c } from "./
|
|
2
|
+
import { b as E, c as p, d as w, g as c } from "./ClNkxEcR.js";
|
|
3
3
|
import "./DsaQZE4X.js";
|
|
4
4
|
import { isBrowser as S } from "@unicom-cloud/utils/constant/platform";
|
|
5
5
|
import { isFunction as F } from "@unicom-cloud/utils/is";
|
|
@@ -9,9 +9,9 @@ import j from "lodash/isFunction";
|
|
|
9
9
|
import ae from "lodash/isPlainObject";
|
|
10
10
|
import G from "lodash/isString";
|
|
11
11
|
import ze, { useRef as U, useState as ne, useCallback as se, useEffect as Q, forwardRef as Ke, useContext as qe, useImperativeHandle as Je } from "react";
|
|
12
|
-
import { a as Ge } from "./
|
|
12
|
+
import { a as Ge } from "./DstheLSK.js";
|
|
13
13
|
import { u as de } from "./BJeTDXdz.js";
|
|
14
|
-
import { u as Qe } from "./
|
|
14
|
+
import { u as Qe } from "./gJsdBcpG.js";
|
|
15
15
|
import { u as Xe } from "./FgWHhRFz.js";
|
|
16
16
|
import { u as ke } from "./2vdCeheu.js";
|
|
17
17
|
import { u as te } from "./DfChiMIE.js";
|
|
@@ -24,12 +24,12 @@ import fe from "lodash/isEqualWith";
|
|
|
24
24
|
import "./DsaQZE4X.js";
|
|
25
25
|
import Y from "lodash/get";
|
|
26
26
|
import { b as rt } from "./-PX9OR3r.js";
|
|
27
|
-
import { C as we } from "./
|
|
27
|
+
import { C as we } from "./CRgtPpMG.js";
|
|
28
28
|
import { u as it } from "./oopARUrq.js";
|
|
29
|
-
import { b as _e, o as oe } from "./
|
|
29
|
+
import { b as _e, o as oe } from "./BcdTSJks.js";
|
|
30
30
|
import Oe from "../virtual-list/VirtualList.js";
|
|
31
31
|
import { u as lt } from "./CsqGBZv1.js";
|
|
32
|
-
import { P as at } from "./
|
|
32
|
+
import { P as at } from "./DQ8_XXrH.js";
|
|
33
33
|
function ct(t, i) {
|
|
34
34
|
const o = U(null), h = de();
|
|
35
35
|
return o.current || (o.current = t()), te(() => {
|
|
@@ -4,7 +4,7 @@ import W from "@unicom-cloud/icons/IconUiMinus";
|
|
|
4
4
|
import B from "lodash/isFunction";
|
|
5
5
|
import q from "lodash/isNil";
|
|
6
6
|
import V, { createContext as J, useState as K, useContext as P, useCallback as M, useRef as Q, useEffect as X } from "react";
|
|
7
|
-
import { a as I, I as Y } from "./
|
|
7
|
+
import { a as I, I as Y } from "./DstheLSK.js";
|
|
8
8
|
import { u as Z } from "./FgWHhRFz.js";
|
|
9
9
|
import { u as S } from "./2vdCeheu.js";
|
|
10
10
|
import w from "@unicom-cloud/utils/class-name";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import m from "lodash/debounce";
|
|
2
|
+
import { useState as l, useDeferredValue as d, useMemo as h, useEffect as s } from "react";
|
|
3
|
+
import "./DsaQZE4X.js";
|
|
4
|
+
import { u as p } from "./BL9DMeor.js";
|
|
5
|
+
import { isFunction as w } from "@unicom-cloud/utils/is";
|
|
6
|
+
function V(o = !1, c) {
|
|
7
|
+
const [n, u] = l({
|
|
8
|
+
...r(null)
|
|
9
|
+
}), f = d(
|
|
10
|
+
n
|
|
11
|
+
// 延迟一个值与防抖和节流之间有什么不同?
|
|
12
|
+
// 防抖(Debounce) 是指在用户停止输入一段时间(例如一秒钟)之后再更新列表。
|
|
13
|
+
// 节流(Throttle) 是指每隔一段时间(例如最多每秒一次)更新列表。
|
|
14
|
+
// 虽然这些技术在某些情况下是有用的,但 useDeferredValue 更适合优化渲染,因为它与 React 自身深度集成,并且能够适应用户的设备。
|
|
15
|
+
// 与防抖或节流不同,useDeferredValue 不需要选择任何固定延迟时间。如果用户的设备很快(比如性能强劲的笔记本电脑),延迟的重渲染几乎会立即发生并且不会被察觉。如果用户的设备较慢,那么列表会相应地“滞后”于输入,滞后的程度与设备的速度有关。
|
|
16
|
+
// 此外,与防抖或节流不同,useDeferredValue 执行的延迟重新渲染默认是可中断的。这意味着,如果 React 正在重新渲染一个大型列表,但用户进行了另一次键盘输入,React 会放弃该重新渲染,先处理键盘输入,然后再次开始在后台渲染。相比之下,防抖和节流仍会产生不顺畅的体验,因为它们是阻塞的:它们仅仅是将渲染阻塞键盘输入的时刻推迟了。
|
|
17
|
+
// 如果你要优化的工作不是在渲染期间发生的,那么防抖和节流仍然非常有用。例如,它们可以让你减少网络请求的次数。你也可以同时使用这些技术。
|
|
18
|
+
);
|
|
19
|
+
function r(t) {
|
|
20
|
+
const { innerWidth: i = 0, innerHeight: a = 0 } = t?.currentTarget ?? t?.target ?? window;
|
|
21
|
+
return {
|
|
22
|
+
width: i,
|
|
23
|
+
height: a
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const e = h(() => {
|
|
27
|
+
function t(i) {
|
|
28
|
+
u(r(i));
|
|
29
|
+
}
|
|
30
|
+
return o ? m(t, 123) : t;
|
|
31
|
+
}, [o]);
|
|
32
|
+
return p(e, [e]), s(() => (c?.(n), () => {
|
|
33
|
+
}), [n]), s(() => (u(r(null)), () => {
|
|
34
|
+
"cancel" in e && w(e.cancel) && e.cancel();
|
|
35
|
+
}), []), f;
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
V as u
|
|
39
|
+
};
|
|
@@ -6,7 +6,7 @@ import G from "lodash/isArray";
|
|
|
6
6
|
import Je from "lodash/isPlainObject";
|
|
7
7
|
import An from "lodash/isUndefined";
|
|
8
8
|
import { useContext as ie, useMemo as an, forwardRef as On, useRef as Le, useImperativeHandle as Mn, useState as se, useEffect as Ke } from "react";
|
|
9
|
-
import { a as Re } from "./
|
|
9
|
+
import { a as Re } from "./DstheLSK.js";
|
|
10
10
|
import { u as Hn } from "./FgWHhRFz.js";
|
|
11
11
|
import { u as Kt } from "./8w-ItYb1.js";
|
|
12
12
|
import { u as Qt } from "./DfChiMIE.js";
|
|
@@ -3,18 +3,18 @@ import ln from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import sn from "lodash/isFunction";
|
|
4
4
|
import { forwardRef as Me, useState as w, useImperativeHandle as an, useRef as h, useContext as cn, useCallback as un, useEffect as ee } from "react";
|
|
5
5
|
import ve from "../button/index.js";
|
|
6
|
-
import { b as we, e as dn, a as fn, I as mn } from "./
|
|
6
|
+
import { b as we, e as dn, a as fn, I as mn } from "./DstheLSK.js";
|
|
7
7
|
import { u as pn } from "./oopARUrq.js";
|
|
8
8
|
import { u as Cn } from "./FgWHhRFz.js";
|
|
9
9
|
import { u as gn } from "./2vdCeheu.js";
|
|
10
10
|
import { u as hn } from "./BqWBaRtM.js";
|
|
11
11
|
import bn from "../portal/index.js";
|
|
12
|
-
import { P as xe } from "./
|
|
12
|
+
import { P as xe } from "./DQ8_XXrH.js";
|
|
13
13
|
import ne from "@unicom-cloud/utils/class-name";
|
|
14
|
-
import { c as vn, a as xn } from "./
|
|
14
|
+
import { c as vn, a as xn } from "./BcdTSJks.js";
|
|
15
15
|
import { Esc as kn } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
16
16
|
import { o as Mn } from "./BKKEev13.js";
|
|
17
|
-
import { f as wn } from "./
|
|
17
|
+
import { f as wn } from "./exc7v_Hl.js";
|
|
18
18
|
import En from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
19
19
|
import Tn from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
20
20
|
import ke from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
@@ -3,9 +3,9 @@ import Ke from "@unicom-cloud/icons/IconUiMenuFold";
|
|
|
3
3
|
import De from "@unicom-cloud/icons/IconUiMenuUnfold";
|
|
4
4
|
import Re from "lodash/isPlainObject";
|
|
5
5
|
import H, { useContext as A, useState as me, forwardRef as fe, useEffect as oe, useRef as ne, useMemo as _e } from "react";
|
|
6
|
-
import { a as he } from "./
|
|
6
|
+
import { a as he } from "./DstheLSK.js";
|
|
7
7
|
import { u as Ae } from "./BJeTDXdz.js";
|
|
8
|
-
import { u as te } from "./
|
|
8
|
+
import { u as te } from "./gJsdBcpG.js";
|
|
9
9
|
import { u as Te } from "./Bvxzb1wd.js";
|
|
10
10
|
import { u as Ue } from "./FgWHhRFz.js";
|
|
11
11
|
import { u as Z } from "./2vdCeheu.js";
|
|
@@ -18,10 +18,10 @@ import Be from "../menu/ItemGroup.js";
|
|
|
18
18
|
import { r as He } from "./CHQ8c547.js";
|
|
19
19
|
import { getStyle as ue } from "../utils/style.js";
|
|
20
20
|
import ge from "@unicom-cloud/icons/IconUiDown";
|
|
21
|
-
import { u as Ve } from "./
|
|
21
|
+
import { u as Ve } from "./Cy26_CKq.js";
|
|
22
22
|
import Ce from "../menu/Indent.js";
|
|
23
23
|
import { isChildrenSelected as Me, processChildren as ye, PROPS_NEED_TO_BE_PASSED_IN_SUBMENU as We, generateInfoMap as Fe } from "../menu/util.js";
|
|
24
|
-
import { P as je } from "./
|
|
24
|
+
import { P as je } from "./DQ8_XXrH.js";
|
|
25
25
|
import { Enter as be, ArrowLeft as qe, ArrowRight as Ge } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
26
26
|
import { p as Qe } from "./ClqoGc3r.js";
|
|
27
27
|
import Ye from "@unicom-cloud/icons/IconUiLeft";
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { useRef as f, useEffect as b, useState as L } from "react";
|
|
2
|
+
import { u as h } from "./DfChiMIE.js";
|
|
3
|
+
import { isBrowser as d } from "@unicom-cloud/utils/constant/platform";
|
|
4
|
+
import "./DsaQZE4X.js";
|
|
5
|
+
import { isFunction as E } from "@unicom-cloud/utils/is";
|
|
6
|
+
import { i as x } from "./CdXR6dj7.js";
|
|
7
|
+
import { d as p } from "./CN7NKv_2.js";
|
|
8
|
+
function A(e) {
|
|
9
|
+
const t = f(e);
|
|
10
|
+
return t.current = e, t;
|
|
11
|
+
}
|
|
12
|
+
function R(e, t) {
|
|
13
|
+
if (!d)
|
|
14
|
+
return;
|
|
15
|
+
if (!e)
|
|
16
|
+
return t;
|
|
17
|
+
let n;
|
|
18
|
+
return E(e) ? n = e() : "current" in e ? n = e.current : n = e, n;
|
|
19
|
+
}
|
|
20
|
+
const T = (e) => {
|
|
21
|
+
x && (E(e) || console.error(
|
|
22
|
+
`useUnmount expected parameter is a function, got ${typeof e}`
|
|
23
|
+
));
|
|
24
|
+
const t = A(e);
|
|
25
|
+
b(
|
|
26
|
+
() => () => {
|
|
27
|
+
t.current();
|
|
28
|
+
},
|
|
29
|
+
[]
|
|
30
|
+
);
|
|
31
|
+
}, y = (e) => (n, s, u) => {
|
|
32
|
+
const i = f(!1), r = f([]), c = f([]), o = f(void 0);
|
|
33
|
+
e(() => {
|
|
34
|
+
const l = (Array.isArray(u) ? u : [u]).map((N) => R(N));
|
|
35
|
+
if (!i.current) {
|
|
36
|
+
i.current = !0, r.current = l, c.current = s, o.current = n();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
(l.length !== r.current.length || !p(r.current, l) || !p(c.current, s)) && (o.current?.(), r.current = l, c.current = s, o.current = n());
|
|
40
|
+
}), T(() => {
|
|
41
|
+
o.current?.(), i.current = !1;
|
|
42
|
+
});
|
|
43
|
+
}, W = y(b), B = (e, {
|
|
44
|
+
manual: t,
|
|
45
|
+
ready: n = !0,
|
|
46
|
+
defaultParams: s = [],
|
|
47
|
+
refreshDeps: u = [],
|
|
48
|
+
refreshDepsAction: i
|
|
49
|
+
}) => {
|
|
50
|
+
const r = f(!1);
|
|
51
|
+
return r.current = !1, h(() => {
|
|
52
|
+
!t && n && (r.current = !0, e.run(...s));
|
|
53
|
+
}, [n]), h(() => {
|
|
54
|
+
r.current || t || (r.current = !0, i ? i() : e.refresh());
|
|
55
|
+
}, [...u]), {
|
|
56
|
+
onBefore: () => {
|
|
57
|
+
if (!n)
|
|
58
|
+
return {
|
|
59
|
+
stopNow: !0
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
B.onInit = ({ ready: e = !0, manual: t }) => ({
|
|
65
|
+
loading: !t && e
|
|
66
|
+
});
|
|
67
|
+
function S() {
|
|
68
|
+
return d ? document.visibilityState !== "hidden" : !0;
|
|
69
|
+
}
|
|
70
|
+
const m = /* @__PURE__ */ new Set();
|
|
71
|
+
function P(e) {
|
|
72
|
+
return m.add(e), function() {
|
|
73
|
+
m.has(e) && m.delete(e);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
if (d) {
|
|
77
|
+
const e = () => {
|
|
78
|
+
S() && m.forEach((t) => t());
|
|
79
|
+
};
|
|
80
|
+
window.addEventListener("visibilitychange", e, !1);
|
|
81
|
+
}
|
|
82
|
+
const O = () => d && typeof navigator.onLine < "u" ? navigator.onLine : !0, g = /* @__PURE__ */ new Set();
|
|
83
|
+
function V(e) {
|
|
84
|
+
return g.add(e), function() {
|
|
85
|
+
g.has(e) && g.delete(e);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
if (d) {
|
|
89
|
+
const e = () => {
|
|
90
|
+
!S() || !O() || g.forEach((t) => t());
|
|
91
|
+
};
|
|
92
|
+
window.addEventListener("visibilitychange", e, !1), window.addEventListener("focus", e, !1);
|
|
93
|
+
}
|
|
94
|
+
const w = {
|
|
95
|
+
top: NaN,
|
|
96
|
+
left: NaN,
|
|
97
|
+
bottom: NaN,
|
|
98
|
+
right: NaN,
|
|
99
|
+
height: NaN,
|
|
100
|
+
width: NaN
|
|
101
|
+
}, v = {
|
|
102
|
+
text: "",
|
|
103
|
+
...w
|
|
104
|
+
};
|
|
105
|
+
function U(e) {
|
|
106
|
+
if (!e || e.rangeCount < 1)
|
|
107
|
+
return w;
|
|
108
|
+
const t = e.getRangeAt(0), { height: n, width: s, top: u, left: i, right: r, bottom: c } = t.getBoundingClientRect();
|
|
109
|
+
return {
|
|
110
|
+
height: n,
|
|
111
|
+
width: s,
|
|
112
|
+
top: u,
|
|
113
|
+
left: i,
|
|
114
|
+
right: r,
|
|
115
|
+
bottom: c
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function k(e) {
|
|
119
|
+
const [t, n] = L(v), s = f(t), u = f(!1);
|
|
120
|
+
return s.current = t, W(
|
|
121
|
+
() => {
|
|
122
|
+
const i = R(e, document);
|
|
123
|
+
if (!i)
|
|
124
|
+
return;
|
|
125
|
+
const r = () => {
|
|
126
|
+
let o = null, a = "", l = w;
|
|
127
|
+
window.getSelection && (o = window.getSelection(), a = o ? o.toString() : "", a && u.current && (l = U(o), n({ ...t, text: a, ...l })));
|
|
128
|
+
}, c = (o) => {
|
|
129
|
+
if (o.button === 2 || !window.getSelection)
|
|
130
|
+
return;
|
|
131
|
+
s.current.text && n({ ...v }), u.current = !1;
|
|
132
|
+
const a = window.getSelection();
|
|
133
|
+
a && (a.removeAllRanges(), u.current = i.contains(o.target));
|
|
134
|
+
};
|
|
135
|
+
return i.addEventListener("mouseup", r), document.addEventListener("mousedown", c), () => {
|
|
136
|
+
i.removeEventListener("mouseup", r), document.removeEventListener("mousedown", c);
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
[],
|
|
140
|
+
e
|
|
141
|
+
), t;
|
|
142
|
+
}
|
|
143
|
+
export {
|
|
144
|
+
k as a,
|
|
145
|
+
T as b,
|
|
146
|
+
y as c,
|
|
147
|
+
W as d,
|
|
148
|
+
V as e,
|
|
149
|
+
B as f,
|
|
150
|
+
R as g,
|
|
151
|
+
S as i,
|
|
152
|
+
P as s,
|
|
153
|
+
A as u
|
|
154
|
+
};
|