@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
package/chunk/BG6j6Ct7.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { useState as u, useEffect as s } from "react";
|
|
2
|
-
function m(o) {
|
|
3
|
-
const [t, r] = u({
|
|
4
|
-
value: o,
|
|
5
|
-
resolve: (e) => {
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
return s(() => {
|
|
9
|
-
const e = window.requestAnimationFrame(() => {
|
|
10
|
-
t.resolve(t.value);
|
|
11
|
-
});
|
|
12
|
-
return () => {
|
|
13
|
-
window.cancelAnimationFrame(e);
|
|
14
|
-
};
|
|
15
|
-
}, [t]), [
|
|
16
|
-
t.value,
|
|
17
|
-
(e) => new Promise((a) => {
|
|
18
|
-
r((i) => {
|
|
19
|
-
let n = e;
|
|
20
|
-
return typeof e == "function" && (n = e(i.value)), {
|
|
21
|
-
value: n,
|
|
22
|
-
resolve: a
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
})
|
|
26
|
-
];
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
m as u
|
|
30
|
-
};
|
package/chunk/C5CbL5ku.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import o from "react";
|
|
2
|
-
import "@unicom-cloud/utils/date";
|
|
3
|
-
import "@unicom-cloud/utils/case-name";
|
|
4
|
-
import "@unicom-cloud/utils/class-name";
|
|
5
|
-
import "@unicom-cloud/utils/constant/ui";
|
|
6
|
-
import "@unicom-cloud/utils/clipboard-copy";
|
|
7
|
-
import "./DS_deHpN.js";
|
|
8
|
-
import "./d1c9z8T1.js";
|
|
9
|
-
import "@unicom-cloud/utils/emitter";
|
|
10
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
11
|
-
import "react/jsx-runtime";
|
|
12
|
-
import "lodash/escapeRegExp";
|
|
13
|
-
import "lodash/isArray";
|
|
14
|
-
import "lodash/isNumber";
|
|
15
|
-
import "lodash/isString";
|
|
16
|
-
import "lodash/isFunction";
|
|
17
|
-
import "lodash/throttle";
|
|
18
|
-
import "./DsaQZE4X.js";
|
|
19
|
-
import "lodash/camelCase";
|
|
20
|
-
import "lodash/capitalize";
|
|
21
|
-
import "lodash/cloneDeep";
|
|
22
|
-
import "lodash/debounce";
|
|
23
|
-
import "lodash/get";
|
|
24
|
-
import "lodash/has";
|
|
25
|
-
import "lodash/kebabCase";
|
|
26
|
-
import "lodash/merge";
|
|
27
|
-
import "lodash/mergeWith";
|
|
28
|
-
import "lodash/set";
|
|
29
|
-
import "lodash/setWith";
|
|
30
|
-
import "lodash/snakeCase";
|
|
31
|
-
import "lodash/startCase";
|
|
32
|
-
import "lodash/uniq";
|
|
33
|
-
import "lodash/upperFirst";
|
|
34
|
-
import "@unicom-cloud/utils/math";
|
|
35
|
-
import "lodash/isPlainObject";
|
|
36
|
-
import "@unicom-cloud/utils/pinyin";
|
|
37
|
-
import "./BJ9_azwQ.js";
|
|
38
|
-
import "./CXrVhA6-.js";
|
|
39
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
40
|
-
import "@unicom-cloud/utils/screenfull";
|
|
41
|
-
import "@unicom-cloud/utils/constant/ui.js";
|
|
42
|
-
import "@unicom-cloud/utils/tinycolor";
|
|
43
|
-
import "@unicom-cloud/utils/ui-color";
|
|
44
|
-
import "react-is";
|
|
45
|
-
import "@unicom-cloud/utils/tree";
|
|
46
|
-
import { isString as i } from "@unicom-cloud/utils/is";
|
|
47
|
-
import "uuid";
|
|
48
|
-
import "./hc_ufgVf.js";
|
|
49
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
50
|
-
function _(r) {
|
|
51
|
-
const t = o.useId();
|
|
52
|
-
return i(r) ? `${r}-${t}` : t;
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
_ as u
|
|
56
|
-
};
|
package/chunk/CXrVhA6-.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Component as s } from "react";
|
|
2
|
-
import u, { findDOMNode as f } from "react-dom";
|
|
3
|
-
import d from "react-dom/client";
|
|
4
|
-
import { g as c, f as l } from "./DsaQZE4X.js";
|
|
5
|
-
import m from "../utils/warning.js";
|
|
6
|
-
import { isFunction as o } from "@unicom-cloud/utils/is";
|
|
7
|
-
const p = u;
|
|
8
|
-
let a;
|
|
9
|
-
try {
|
|
10
|
-
a = p.createRoot || d.createRoot;
|
|
11
|
-
} catch (t) {
|
|
12
|
-
console.error(t);
|
|
13
|
-
}
|
|
14
|
-
let i;
|
|
15
|
-
function R(t) {
|
|
16
|
-
const r = t.constructor;
|
|
17
|
-
if (!o(r)) return !1;
|
|
18
|
-
i ||= /* @__PURE__ */ new WeakSet();
|
|
19
|
-
const e = i.has(r);
|
|
20
|
-
return i.add(r), e;
|
|
21
|
-
}
|
|
22
|
-
function E(t, r) {
|
|
23
|
-
if (!t) return null;
|
|
24
|
-
const e = t;
|
|
25
|
-
if (t instanceof Element)
|
|
26
|
-
return t;
|
|
27
|
-
if (e.dom instanceof Element)
|
|
28
|
-
return e.dom;
|
|
29
|
-
if (e.current instanceof Element)
|
|
30
|
-
return e.current;
|
|
31
|
-
if (c) {
|
|
32
|
-
const n = e.props?.ref;
|
|
33
|
-
if (n && "current" in n && n.current instanceof Element)
|
|
34
|
-
return n.current;
|
|
35
|
-
}
|
|
36
|
-
return o(e.getRootDOMNode) ? e.getRootDOMNode() : e instanceof s && o(f) ? f(e) : r && (m(
|
|
37
|
-
l && !R(r),
|
|
38
|
-
"Element does not define the `getRootDOMNode` method causing a call to React.findDOMNode. but findDOMNode is deprecated in StrictMode. Please check the code logic",
|
|
39
|
-
{ element: t, instance: r }
|
|
40
|
-
), o(f)) ? f(r) : null;
|
|
41
|
-
}
|
|
42
|
-
function k(t, r) {
|
|
43
|
-
if (!t) return;
|
|
44
|
-
let e;
|
|
45
|
-
c ? e = t?.props?.ref ?? t?.ref : e = t?.ref, e && (o(e) ? e(r) : "current" in e && (e.current = r));
|
|
46
|
-
}
|
|
47
|
-
function C(t) {
|
|
48
|
-
a = t;
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
k as c,
|
|
52
|
-
E as f,
|
|
53
|
-
C as s
|
|
54
|
-
};
|
package/chunk/DMv8Hn4u.js
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as x, Fragment as H } from "react/jsx-runtime";
|
|
2
|
-
import T from "lodash/isFunction";
|
|
3
|
-
import L from "lodash/isNil";
|
|
4
|
-
import Q, { createContext as S, useContext as y, useRef as q } from "react";
|
|
5
|
-
import { a as B, I as J } from "./C1vY8016.js";
|
|
6
|
-
import { u as E } from "./FgWHhRFz.js";
|
|
7
|
-
import { u as j } from "./2vdCeheu.js";
|
|
8
|
-
import R from "@unicom-cloud/utils/class-name";
|
|
9
|
-
import { o as K } from "./BKKEev13.js";
|
|
10
|
-
import U from "lodash/isArray";
|
|
11
|
-
import W from "lodash/isPlainObject";
|
|
12
|
-
import { pickTriggerPropsFromRest as X } from "../utils/constant.js";
|
|
13
|
-
import { a as Y } from "./ClqoGc3r.js";
|
|
14
|
-
import _ from "../typography/index.js";
|
|
15
|
-
const A = {
|
|
16
|
-
type: "radio"
|
|
17
|
-
}, Z = {
|
|
18
|
-
type: "radio",
|
|
19
|
-
mode: "outline",
|
|
20
|
-
direction: "horizontal"
|
|
21
|
-
}, P = S(A), he = ({ children: m }) => /* @__PURE__ */ a(P.Provider, { value: A, children: m });
|
|
22
|
-
function D(m) {
|
|
23
|
-
const {
|
|
24
|
-
getPrefixCls: f,
|
|
25
|
-
size: g,
|
|
26
|
-
componentConfig: v,
|
|
27
|
-
rtl: h
|
|
28
|
-
} = y(B), e = E(
|
|
29
|
-
m,
|
|
30
|
-
Z,
|
|
31
|
-
v?.RadioGroup
|
|
32
|
-
), {
|
|
33
|
-
style: r,
|
|
34
|
-
className: s,
|
|
35
|
-
name: o,
|
|
36
|
-
children: t,
|
|
37
|
-
direction: n,
|
|
38
|
-
type: C,
|
|
39
|
-
mode: b,
|
|
40
|
-
options: $,
|
|
41
|
-
disabled: p
|
|
42
|
-
} = e, [d, G] = j(void 0, {
|
|
43
|
-
defaultValue: e.defaultValue,
|
|
44
|
-
value: e.value
|
|
45
|
-
}), k = e.size || g, i = f?.("radio"), V = R(
|
|
46
|
-
`${i}-group`,
|
|
47
|
-
{
|
|
48
|
-
[`${i}-group-type-button`]: C !== "radio",
|
|
49
|
-
[`${i}-size-${k}`]: !!k,
|
|
50
|
-
[`${i}-mode-${b}`]: !!b,
|
|
51
|
-
[`${i}-group-disabled`]: p,
|
|
52
|
-
[`${i}-group-direction-horizontal`]: n === "horizontal",
|
|
53
|
-
// 潘启宝添加
|
|
54
|
-
[`${i}-group-direction-vertical`]: n === "vertical",
|
|
55
|
-
[`${i}-group-rtl`]: h
|
|
56
|
-
},
|
|
57
|
-
s
|
|
58
|
-
), z = {
|
|
59
|
-
onChangeValue: (c, w) => {
|
|
60
|
-
const { onChange: N } = e;
|
|
61
|
-
c !== d && ("value" in e || G(c), N?.(c, w));
|
|
62
|
-
},
|
|
63
|
-
type: C,
|
|
64
|
-
value: d,
|
|
65
|
-
disabled: p,
|
|
66
|
-
group: !0,
|
|
67
|
-
name: o
|
|
68
|
-
};
|
|
69
|
-
return /* @__PURE__ */ a(P.Provider, { value: z, children: /* @__PURE__ */ a(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
className: V,
|
|
73
|
-
role: "radiogroup",
|
|
74
|
-
style: r,
|
|
75
|
-
...X(e),
|
|
76
|
-
...Y(e),
|
|
77
|
-
children: $ && U($) ? $.map((c, w) => {
|
|
78
|
-
const { value: N, label: I, disabled: M, ...O } = c;
|
|
79
|
-
return W(c) ? /* @__PURE__ */ a(
|
|
80
|
-
u,
|
|
81
|
-
{
|
|
82
|
-
...O,
|
|
83
|
-
disabled: p || M,
|
|
84
|
-
value: N,
|
|
85
|
-
children: I
|
|
86
|
-
},
|
|
87
|
-
N
|
|
88
|
-
) : /* @__PURE__ */ a(u, { value: c, disabled: p, children: c }, w);
|
|
89
|
-
}) : t
|
|
90
|
-
}
|
|
91
|
-
) });
|
|
92
|
-
}
|
|
93
|
-
D.displayName = "RadioGroup";
|
|
94
|
-
const ee = {};
|
|
95
|
-
function F(m) {
|
|
96
|
-
const { getPrefixCls: f, componentConfig: g, rtl: v } = y(B), h = E(
|
|
97
|
-
m,
|
|
98
|
-
ee,
|
|
99
|
-
g?.["Radio.Block"]
|
|
100
|
-
), { className: e, options: r, ...s } = h, o = f?.("radio-group-block");
|
|
101
|
-
return /* @__PURE__ */ a(
|
|
102
|
-
u.Group,
|
|
103
|
-
{
|
|
104
|
-
className: R(`${o}`, e),
|
|
105
|
-
...s,
|
|
106
|
-
onChange: (t, n) => {
|
|
107
|
-
h.onChange?.(t, n);
|
|
108
|
-
},
|
|
109
|
-
children: r.map((t) => /* @__PURE__ */ a(u, { value: t.value, children: ({ checked: n }) => /* @__PURE__ */ x(
|
|
110
|
-
"div",
|
|
111
|
-
{
|
|
112
|
-
style: { width: t.width },
|
|
113
|
-
className: R(
|
|
114
|
-
`${o}-card`,
|
|
115
|
-
n && `${o}-card-checked`
|
|
116
|
-
),
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ a("div", { className: `${o}-card-mask`, children: /* @__PURE__ */ a("div", { className: `${o}-card-mask-dot` }) }),
|
|
119
|
-
/* @__PURE__ */ x("div", { className: `${o}-card-content`, children: [
|
|
120
|
-
/* @__PURE__ */ a(
|
|
121
|
-
_.Ellipsis,
|
|
122
|
-
{
|
|
123
|
-
className: `${o}-card-content-title`,
|
|
124
|
-
rows: 1,
|
|
125
|
-
showTooltip: !0,
|
|
126
|
-
expandable: !1,
|
|
127
|
-
onExpand: (C) => {
|
|
128
|
-
},
|
|
129
|
-
children: t.title
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
/* @__PURE__ */ a(
|
|
133
|
-
_.Ellipsis,
|
|
134
|
-
{
|
|
135
|
-
className: `${o}-card-content-desc`,
|
|
136
|
-
rows: 1,
|
|
137
|
-
showTooltip: !0,
|
|
138
|
-
expandable: !1,
|
|
139
|
-
onExpand: (C) => {
|
|
140
|
-
},
|
|
141
|
-
children: t.desc
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
] })
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
) }, t.title))
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
F.displayName = "RadioGroupBlock";
|
|
152
|
-
function u(m) {
|
|
153
|
-
const f = q(null), { getPrefixCls: g, componentConfig: v, rtl: h } = y(B), e = E(
|
|
154
|
-
m,
|
|
155
|
-
{},
|
|
156
|
-
v?.Radio
|
|
157
|
-
), r = y(P), s = g?.("radio"), o = { ...e };
|
|
158
|
-
r.group && (o.checked = r.value === e.value, o.disabled = "disabled" in e ? e.disabled : r.disabled);
|
|
159
|
-
const { disabled: t, children: n, value: C, style: b, className: $, ...p } = o, [d, G] = j(!1, {
|
|
160
|
-
value: o.checked,
|
|
161
|
-
defaultValue: o.defaultChecked
|
|
162
|
-
}), k = R(
|
|
163
|
-
`${s}${r.type === "button" ? "-button" : ""}`,
|
|
164
|
-
{
|
|
165
|
-
[`${s}-checked`]: d,
|
|
166
|
-
[`${s}-disabled`]: t,
|
|
167
|
-
[`${s}-rtl`]: h
|
|
168
|
-
},
|
|
169
|
-
$
|
|
170
|
-
), i = (l) => {
|
|
171
|
-
const { onChange: z, value: c } = o;
|
|
172
|
-
t || (r.group ? r.onChangeValue?.(c, l) : !("checked" in e) && !d && G(!0), !d && z?.(!0, l));
|
|
173
|
-
}, V = Q.useCallback(
|
|
174
|
-
(l) => {
|
|
175
|
-
T(e.children) && (l.preventDefault(), f.current && f.current.click()), p.onClick?.(l);
|
|
176
|
-
},
|
|
177
|
-
[e.children, p.onClick]
|
|
178
|
-
);
|
|
179
|
-
return /* @__PURE__ */ x(
|
|
180
|
-
"label",
|
|
181
|
-
{
|
|
182
|
-
...K(p, ["checked", "onChange"]),
|
|
183
|
-
onClick: V,
|
|
184
|
-
style: b,
|
|
185
|
-
className: k,
|
|
186
|
-
children: [
|
|
187
|
-
/* @__PURE__ */ a(
|
|
188
|
-
"input",
|
|
189
|
-
{
|
|
190
|
-
ref: f,
|
|
191
|
-
disabled: t,
|
|
192
|
-
value: C || "",
|
|
193
|
-
type: "radio",
|
|
194
|
-
...r.name ? { name: r.name } : {},
|
|
195
|
-
checked: d,
|
|
196
|
-
onChange: (l) => {
|
|
197
|
-
l.persist(), i(l);
|
|
198
|
-
},
|
|
199
|
-
onClick: (l) => {
|
|
200
|
-
l.stopPropagation();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
),
|
|
204
|
-
T(n) ? n({ checked: d }) : r.type === "radio" ? /* @__PURE__ */ x(H, { children: [
|
|
205
|
-
/* @__PURE__ */ a(
|
|
206
|
-
J,
|
|
207
|
-
{
|
|
208
|
-
prefix: s,
|
|
209
|
-
className: `${s}-mask-wrapper`,
|
|
210
|
-
disabled: d || t,
|
|
211
|
-
children: /* @__PURE__ */ a("div", { className: `${s}-mask` })
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
!L(n) && /* @__PURE__ */ a("span", { className: `${s}-text`, children: n })
|
|
215
|
-
] }) : r.type === "button" && /* @__PURE__ */ a("span", { className: `${s}-button-inner`, children: n })
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
u.__PQB_RADIO = !0;
|
|
221
|
-
u.displayName = "Radio";
|
|
222
|
-
u.Group = D;
|
|
223
|
-
u.GroupBlock = F;
|
|
224
|
-
u.GroupContext = P;
|
|
225
|
-
export {
|
|
226
|
-
he as C,
|
|
227
|
-
D as G,
|
|
228
|
-
u as R,
|
|
229
|
-
F as a,
|
|
230
|
-
P as b
|
|
231
|
-
};
|
package/chunk/DsuIQH0F.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { useRef as m, useEffect as b, useState as L } from "react";
|
|
2
|
-
import { u as w } from "./DfChiMIE.js";
|
|
3
|
-
import { isBrowser as p } from "@unicom-cloud/utils/constant/platform";
|
|
4
|
-
import "@unicom-cloud/utils/date";
|
|
5
|
-
import "@unicom-cloud/utils/case-name";
|
|
6
|
-
import "@unicom-cloud/utils/class-name";
|
|
7
|
-
import "@unicom-cloud/utils/constant/ui";
|
|
8
|
-
import "@unicom-cloud/utils/clipboard-copy";
|
|
9
|
-
import "./DS_deHpN.js";
|
|
10
|
-
import "./d1c9z8T1.js";
|
|
11
|
-
import "@unicom-cloud/utils/emitter";
|
|
12
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
13
|
-
import "react/jsx-runtime";
|
|
14
|
-
import "lodash/escapeRegExp";
|
|
15
|
-
import "lodash/isArray";
|
|
16
|
-
import "lodash/isNumber";
|
|
17
|
-
import "lodash/isString";
|
|
18
|
-
import "lodash/isFunction";
|
|
19
|
-
import "lodash/throttle";
|
|
20
|
-
import "./DsaQZE4X.js";
|
|
21
|
-
import "lodash/camelCase";
|
|
22
|
-
import "lodash/capitalize";
|
|
23
|
-
import "lodash/cloneDeep";
|
|
24
|
-
import "lodash/debounce";
|
|
25
|
-
import "lodash/get";
|
|
26
|
-
import "lodash/has";
|
|
27
|
-
import "lodash/kebabCase";
|
|
28
|
-
import "lodash/merge";
|
|
29
|
-
import "lodash/mergeWith";
|
|
30
|
-
import "lodash/set";
|
|
31
|
-
import "lodash/setWith";
|
|
32
|
-
import "lodash/snakeCase";
|
|
33
|
-
import "lodash/startCase";
|
|
34
|
-
import "lodash/uniq";
|
|
35
|
-
import "lodash/upperFirst";
|
|
36
|
-
import "@unicom-cloud/utils/math";
|
|
37
|
-
import "lodash/isPlainObject";
|
|
38
|
-
import "@unicom-cloud/utils/pinyin";
|
|
39
|
-
import "./BJ9_azwQ.js";
|
|
40
|
-
import "./CXrVhA6-.js";
|
|
41
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
42
|
-
import "@unicom-cloud/utils/screenfull";
|
|
43
|
-
import "@unicom-cloud/utils/constant/ui.js";
|
|
44
|
-
import "@unicom-cloud/utils/tinycolor";
|
|
45
|
-
import "@unicom-cloud/utils/ui-color";
|
|
46
|
-
import "react-is";
|
|
47
|
-
import "@unicom-cloud/utils/tree";
|
|
48
|
-
import { isFunction as E } from "@unicom-cloud/utils/is";
|
|
49
|
-
import "uuid";
|
|
50
|
-
import "./hc_ufgVf.js";
|
|
51
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
52
|
-
import { i as x } from "./CdXR6dj7.js";
|
|
53
|
-
import { d as h } from "./CN7NKv_2.js";
|
|
54
|
-
function A(t) {
|
|
55
|
-
const e = m(t);
|
|
56
|
-
return e.current = t, e;
|
|
57
|
-
}
|
|
58
|
-
function R(t, e) {
|
|
59
|
-
if (!p)
|
|
60
|
-
return;
|
|
61
|
-
if (!t)
|
|
62
|
-
return e;
|
|
63
|
-
let r;
|
|
64
|
-
return E(t) ? r = t() : "current" in t ? r = t.current : r = t, r;
|
|
65
|
-
}
|
|
66
|
-
const T = (t) => {
|
|
67
|
-
x && (E(t) || console.error(
|
|
68
|
-
`useUnmount expected parameter is a function, got ${typeof t}`
|
|
69
|
-
));
|
|
70
|
-
const e = A(t);
|
|
71
|
-
b(
|
|
72
|
-
() => () => {
|
|
73
|
-
e.current();
|
|
74
|
-
},
|
|
75
|
-
[]
|
|
76
|
-
);
|
|
77
|
-
}, y = (t) => (r, s, u) => {
|
|
78
|
-
const i = m(!1), n = m([]), c = m([]), o = m(void 0);
|
|
79
|
-
t(() => {
|
|
80
|
-
const a = (Array.isArray(u) ? u : [u]).map((N) => R(N));
|
|
81
|
-
if (!i.current) {
|
|
82
|
-
i.current = !0, n.current = a, c.current = s, o.current = r();
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
(a.length !== n.current.length || !h(n.current, a) || !h(c.current, s)) && (o.current?.(), n.current = a, c.current = s, o.current = r());
|
|
86
|
-
}), T(() => {
|
|
87
|
-
o.current?.(), i.current = !1;
|
|
88
|
-
});
|
|
89
|
-
}, W = y(b), B = (t, {
|
|
90
|
-
manual: e,
|
|
91
|
-
ready: r = !0,
|
|
92
|
-
defaultParams: s = [],
|
|
93
|
-
refreshDeps: u = [],
|
|
94
|
-
refreshDepsAction: i
|
|
95
|
-
}) => {
|
|
96
|
-
const n = m(!1);
|
|
97
|
-
return n.current = !1, w(() => {
|
|
98
|
-
!e && r && (n.current = !0, t.run(...s));
|
|
99
|
-
}, [r]), w(() => {
|
|
100
|
-
n.current || e || (n.current = !0, i ? i() : t.refresh());
|
|
101
|
-
}, [...u]), {
|
|
102
|
-
onBefore: () => {
|
|
103
|
-
if (!r)
|
|
104
|
-
return {
|
|
105
|
-
stopNow: !0
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
B.onInit = ({ ready: t = !0, manual: e }) => ({
|
|
111
|
-
loading: !e && t
|
|
112
|
-
});
|
|
113
|
-
function S() {
|
|
114
|
-
return p ? document.visibilityState !== "hidden" : !0;
|
|
115
|
-
}
|
|
116
|
-
const l = /* @__PURE__ */ new Set();
|
|
117
|
-
function Ut(t) {
|
|
118
|
-
return l.add(t), function() {
|
|
119
|
-
l.has(t) && l.delete(t);
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
if (p) {
|
|
123
|
-
const t = () => {
|
|
124
|
-
S() && l.forEach((e) => e());
|
|
125
|
-
};
|
|
126
|
-
window.addEventListener("visibilitychange", t, !1);
|
|
127
|
-
}
|
|
128
|
-
const O = () => p && typeof navigator.onLine < "u" ? navigator.onLine : !0, d = /* @__PURE__ */ new Set();
|
|
129
|
-
function $t(t) {
|
|
130
|
-
return d.add(t), function() {
|
|
131
|
-
d.has(t) && d.delete(t);
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
if (p) {
|
|
135
|
-
const t = () => {
|
|
136
|
-
!S() || !O() || d.forEach((e) => e());
|
|
137
|
-
};
|
|
138
|
-
window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1);
|
|
139
|
-
}
|
|
140
|
-
const g = {
|
|
141
|
-
top: NaN,
|
|
142
|
-
left: NaN,
|
|
143
|
-
bottom: NaN,
|
|
144
|
-
right: NaN,
|
|
145
|
-
height: NaN,
|
|
146
|
-
width: NaN
|
|
147
|
-
}, v = {
|
|
148
|
-
text: "",
|
|
149
|
-
...g
|
|
150
|
-
};
|
|
151
|
-
function U(t) {
|
|
152
|
-
if (!t || t.rangeCount < 1)
|
|
153
|
-
return g;
|
|
154
|
-
const e = t.getRangeAt(0), { height: r, width: s, top: u, left: i, right: n, bottom: c } = e.getBoundingClientRect();
|
|
155
|
-
return {
|
|
156
|
-
height: r,
|
|
157
|
-
width: s,
|
|
158
|
-
top: u,
|
|
159
|
-
left: i,
|
|
160
|
-
right: n,
|
|
161
|
-
bottom: c
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
function jt(t) {
|
|
165
|
-
const [e, r] = L(v), s = m(e), u = m(!1);
|
|
166
|
-
return s.current = e, W(
|
|
167
|
-
() => {
|
|
168
|
-
const i = R(t, document);
|
|
169
|
-
if (!i)
|
|
170
|
-
return;
|
|
171
|
-
const n = () => {
|
|
172
|
-
let o = null, f = "", a = g;
|
|
173
|
-
window.getSelection && (o = window.getSelection(), f = o ? o.toString() : "", f && u.current && (a = U(o), r({ ...e, text: f, ...a })));
|
|
174
|
-
}, c = (o) => {
|
|
175
|
-
if (o.button === 2 || !window.getSelection)
|
|
176
|
-
return;
|
|
177
|
-
s.current.text && r({ ...v }), u.current = !1;
|
|
178
|
-
const f = window.getSelection();
|
|
179
|
-
f && (f.removeAllRanges(), u.current = i.contains(o.target));
|
|
180
|
-
};
|
|
181
|
-
return i.addEventListener("mouseup", n), document.addEventListener("mousedown", c), () => {
|
|
182
|
-
i.removeEventListener("mouseup", n), document.removeEventListener("mousedown", c);
|
|
183
|
-
};
|
|
184
|
-
},
|
|
185
|
-
[],
|
|
186
|
-
t
|
|
187
|
-
), e;
|
|
188
|
-
}
|
|
189
|
-
export {
|
|
190
|
-
jt as a,
|
|
191
|
-
T as b,
|
|
192
|
-
y as c,
|
|
193
|
-
W as d,
|
|
194
|
-
$t as e,
|
|
195
|
-
B as f,
|
|
196
|
-
R as g,
|
|
197
|
-
S as i,
|
|
198
|
-
Ut as s,
|
|
199
|
-
A as u
|
|
200
|
-
};
|
package/chunk/d1c9z8T1.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { N as i } from "./CjNkKiBA.js";
|
|
2
|
-
const s = function() {
|
|
3
|
-
try {
|
|
4
|
-
return !(typeof window < "u" && document !== void 0);
|
|
5
|
-
} catch {
|
|
6
|
-
return !0;
|
|
7
|
-
}
|
|
8
|
-
}(), w = /* @__PURE__ */ function() {
|
|
9
|
-
return s ? i : function(t, o, n, e) {
|
|
10
|
-
t?.addEventListener?.(o, n, e || !1);
|
|
11
|
-
};
|
|
12
|
-
}(), g = /* @__PURE__ */ function() {
|
|
13
|
-
return s ? i : function(t, o, n, e) {
|
|
14
|
-
t?.removeEventListener?.(o, n, e || !1);
|
|
15
|
-
};
|
|
16
|
-
}(), E = function(t, o) {
|
|
17
|
-
if (!t)
|
|
18
|
-
return !1;
|
|
19
|
-
if (t.contains)
|
|
20
|
-
return t.contains(o);
|
|
21
|
-
let n = o;
|
|
22
|
-
for (; n; ) {
|
|
23
|
-
if (n === t)
|
|
24
|
-
return !0;
|
|
25
|
-
n = n.parentNode;
|
|
26
|
-
}
|
|
27
|
-
return !1;
|
|
28
|
-
};
|
|
29
|
-
function h(t) {
|
|
30
|
-
if (!(t instanceof HTMLElement) || t === document.documentElement || t === window)
|
|
31
|
-
return !1;
|
|
32
|
-
const o = t === document.documentElement ? t.clientHeight : t.offsetHeight, n = t === document.documentElement ? t.clientWidth : t.offsetWidth, e = t.scrollHeight, l = t.scrollWidth, c = window.getComputedStyle(t), u = c.getPropertyValue("overflow-x"), f = c.getPropertyValue("overflow-y"), r = ["scroll", "auto"], a = e > o && r.includes(f), d = l > n && r.includes(u);
|
|
33
|
-
return a || d;
|
|
34
|
-
}
|
|
35
|
-
const p = (t, o = document.documentElement) => {
|
|
36
|
-
const n = [];
|
|
37
|
-
let e = t;
|
|
38
|
-
for (; e && e !== o; )
|
|
39
|
-
h(e) && n.push(e), e = e.parentElement;
|
|
40
|
-
return n;
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
s as a,
|
|
44
|
-
w as b,
|
|
45
|
-
E as c,
|
|
46
|
-
p as g,
|
|
47
|
-
h as i,
|
|
48
|
-
g as o
|
|
49
|
-
};
|