@unicom-cloud/ui 0.8.109 → 0.8.110
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 +1 -1
- package/AutoComplete.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- 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 +6 -4
- package/Countdown.js +42 -8
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +42 -6
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +43 -7
- package/Form.js +21 -16
- 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 +2 -2
- package/LiquidFill.js +12 -10
- package/List.js +1 -1
- package/Loading.js +42 -6
- package/Marquee.js +12 -10
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +41 -5
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +12 -10
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +76 -0
- package/Segmented.js +42 -7
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +43 -7
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +1 -1
- package/Tour.js +13 -11
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/affix/index.js +2 -2
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +2 -2
- 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 +2 -2
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +3 -3
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +2 -2
- 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/BDMqvmVH.js +4239 -0
- package/chunk/BDgzrqDN.js +154 -0
- package/chunk/BG6j6Ct7.js +30 -0
- package/chunk/BGJspFG9.js +56 -0
- package/chunk/BO_5qdS_.js +13 -0
- package/chunk/{DblEjsQ8.js → BUNoUPLs.js} +1 -1
- package/chunk/B_c0gPsX.js +83 -0
- package/chunk/BcEZk8pT.js +837 -0
- package/chunk/{DGSfSsAY.js → BeHcDey_.js} +1 -1
- package/chunk/{Bm3gJPkz.js → BnUWOu3_.js} +5 -5
- package/chunk/Bvxzb1wd.js +16 -0
- package/chunk/{DryCfcSV.js → CFyN9Eio.js} +4 -4
- package/chunk/CN7NKv_2.js +11 -0
- package/chunk/COc48wzV.js +64 -0
- package/chunk/{BDKb_-wj.js → COsRZOz1.js} +4 -4
- package/chunk/CT7ury1Z.js +13 -0
- package/chunk/Ca6eMq_Y.js +8 -0
- package/chunk/{p9jiLDTk.js → CgN4U7Ou.js} +2 -2
- package/chunk/{Bg3uJGPu.js → CsqGBZv1.js} +1 -1
- package/chunk/CylJZkp8.js +6 -0
- package/chunk/{9WWq1a0I.js → DSqW_efI.js} +1 -1
- package/chunk/{Bz3KT4sO.js → Dbw0YUY1.js} +81 -47
- package/chunk/Dh-zFF65.js +15 -0
- package/chunk/Di5KBCVQ.js +4 -0
- package/chunk/{DjPTURUf.js → Lyh0cz3R.js} +3 -3
- package/chunk/{DgWzb7M5.js → Y_GQsZUt.js} +1 -1
- package/chunk/{BfBHo0RR.js → n1tirBXA.js} +7 -7
- package/chunk/{DYc9a7tm.js → qsVvkBLU.js} +1 -1
- package/chunk/zFFM4RBT.js +2100 -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 +10 -8
- package/countdown/index.js +67 -33
- 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 +74 -38
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +63 -29
- package/form/Form.js +3 -3
- package/form/FormItem.js +1 -1
- package/form/index.js +85 -77
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +128 -133
- package/hooks/useCreation.js +4 -0
- package/hooks/useId.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +44 -9
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +718 -717
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +3 -3
- package/input/InputElement.js +2 -2
- package/input/Password.js +2 -2
- package/input/Search.js +1 -1
- package/input/Textarea.js +2 -2
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.js +1 -1
- package/input-tag/InputTag.js +1 -1
- 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 +2 -2
- package/liquid-fill/index.js +17 -15
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +54 -18
- package/marquee/index.js +19 -17
- package/marquee-/index.js +17 -15
- package/mentions/index.js +1 -1
- package/menu/Menu.js +4 -4
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +3 -3
- package/message/useMessage.js +4 -3
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +2 -2
- package/notice/index.js +41 -5
- package/notification/index.js +1 -1
- 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 +120 -81
- package/pagination/PageItem.js +2 -2
- 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 +2 -2
- package/progress/index.js +1 -1
- package/qr-code/index.js +15 -13
- 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 +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/constant.js +5 -0
- package/rich-text/core.js +11 -0
- package/rich-text/eventemitter/index.d.ts +135 -0
- package/rich-text/index.js +182 -0
- package/rich-text/interface.js +1 -0
- package/rich-text/rich.js +1877 -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 +145 -110
- package/select/Option.js +1 -1
- package/select/Select.js +235 -227
- package/select-view/Core.js +2 -2
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +1 -1
- package/space/index.js +51 -15
- 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 +1 -1
- package/table/Table.js +3 -3
- package/table/index.js +41 -39
- 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 +2 -2
- 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 +20 -18
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +1 -1
- package/tree/Animation.js +2 -2
- 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 +4 -4
- package/tree-select/index.js +1 -1
- package/trigger/index.js +1 -1
- package/types/common/hooks/src/index.d.ts +1 -5
- package/types/common/hooks/src/use-url-state/index.d.ts +1 -1
- package/types/common/hooks/useId.d.ts +1 -1
- package/types/common/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/common/hooks/useKeyboardEvent.d.ts +1 -1
- package/types/common/hooks/{useListenResize.d.ts → useListenWindowResize.d.ts} +4 -6
- package/types/common/hooks/useWatch.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +2 -2
- package/types/common/utils/index.d.ts +47 -0
- package/types/common/utils/keyboardCode.d.ts +4 -0
- package/types/common/utils/math.d.ts +1 -0
- package/types/common/utils/mitt.d.ts +1 -0
- package/types/common/utils/pinyin.d.ts +1 -0
- package/types/common/utils/reactTransitionGroup.d.ts +1 -0
- package/types/common/utils/uuid.d.ts +1 -0
- package/types/common/utils/validate.d.ts +1 -0
- package/types/pc/config-provider/interface.d.ts +2 -0
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/form/index.d.ts +6 -1
- package/types/pc/hooks/index.d.ts +2 -2
- package/types/pc/hooks/useCreation.d.ts +1 -0
- package/types/pc/hooks/useListenWindowResize.d.ts +1 -0
- package/types/pc/index.d.ts +2 -0
- package/types/pc/message/index.d.ts +1 -0
- package/types/pc/message/interface.d.ts +2 -2
- package/types/pc/page-header/interface.d.ts +3 -0
- package/types/pc/rich-text/blots/block.d.ts +34 -0
- package/types/pc/rich-text/blots/break.d.ts +8 -0
- package/types/pc/rich-text/blots/container.d.ts +4 -0
- package/types/pc/rich-text/blots/cursor.d.ts +26 -0
- package/types/pc/rich-text/blots/embed.d.ts +18 -0
- package/types/pc/rich-text/blots/inline.d.ts +12 -0
- package/types/pc/rich-text/blots/scroll.d.ts +49 -0
- package/types/pc/rich-text/blots/text.d.ts +5 -0
- package/types/pc/rich-text/constant.d.ts +1 -0
- package/types/pc/rich-text/core/composition.d.ts +12 -0
- package/types/pc/rich-text/core/editor.d.ts +28 -0
- package/types/pc/rich-text/core/emitter.d.ts +37 -0
- package/types/pc/rich-text/core/instances.d.ts +3 -0
- package/types/pc/rich-text/core/logger.d.ts +7 -0
- package/types/pc/rich-text/core/module.d.ts +8 -0
- package/types/pc/rich-text/core/rich.d.ts +217 -0
- package/types/pc/rich-text/core/selection.d.ts +74 -0
- package/types/pc/rich-text/core/theme.d.ts +32 -0
- package/types/pc/rich-text/core/utils/createRegistryWithFormats.d.ts +5 -0
- package/types/pc/rich-text/core/utils/scrollRectIntoView.d.ts +11 -0
- package/types/pc/rich-text/core.d.ts +7 -0
- package/types/pc/rich-text/delta/AttributeMap.d.ts +10 -0
- package/types/pc/rich-text/delta/Op.d.ts +11 -0
- package/types/pc/rich-text/delta/OpIterator.d.ts +13 -0
- package/types/pc/rich-text/delta/index.d.ts +45 -0
- package/types/pc/rich-text/eventemitter/index.d.ts +101 -0
- package/types/pc/rich-text/formats/align.d.ts +5 -0
- package/types/pc/rich-text/formats/background.d.ts +5 -0
- package/types/pc/rich-text/formats/blockquote.d.ts +6 -0
- package/types/pc/rich-text/formats/bold.d.ts +11 -0
- package/types/pc/rich-text/formats/code.d.ts +15 -0
- package/types/pc/rich-text/formats/color.d.ts +7 -0
- package/types/pc/rich-text/formats/direction.d.ts +5 -0
- package/types/pc/rich-text/formats/font.d.ts +7 -0
- package/types/pc/rich-text/formats/formula.d.ts +10 -0
- package/types/pc/rich-text/formats/header.d.ts +7 -0
- package/types/pc/rich-text/formats/image.d.ts +13 -0
- package/types/pc/rich-text/formats/indent.d.ts +8 -0
- package/types/pc/rich-text/formats/italic.d.ts +6 -0
- package/types/pc/rich-text/formats/link.d.ts +13 -0
- package/types/pc/rich-text/formats/list.d.ts +13 -0
- package/types/pc/rich-text/formats/script.d.ts +8 -0
- package/types/pc/rich-text/formats/size.d.ts +4 -0
- package/types/pc/rich-text/formats/strike.d.ts +6 -0
- package/types/pc/rich-text/formats/table.d.ts +45 -0
- package/types/pc/rich-text/formats/underline.d.ts +6 -0
- package/types/pc/rich-text/formats/video.d.ts +14 -0
- package/types/pc/rich-text/index.d.ts +6 -0
- package/types/pc/rich-text/interface.d.ts +17 -0
- package/types/pc/rich-text/modules/clipboard.d.ts +43 -0
- package/types/pc/rich-text/modules/history.d.ts +36 -0
- package/types/pc/rich-text/modules/input.d.ts +10 -0
- package/types/pc/rich-text/modules/keyboard.d.ts +58 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/index.d.ts +2 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
- package/types/pc/rich-text/modules/syntax.d.ts +50 -0
- package/types/pc/rich-text/modules/table.d.ts +20 -0
- package/types/pc/rich-text/modules/tableEmbed.d.ts +27 -0
- package/types/pc/rich-text/modules/toolbar.d.ts +24 -0
- package/types/pc/rich-text/modules/uiNode.d.ts +19 -0
- package/types/pc/rich-text/modules/uploader.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/attributor.d.ts +17 -0
- package/types/pc/rich-text/parchment/attributor/class.d.ts +8 -0
- package/types/pc/rich-text/parchment/attributor/store.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/style.d.ts +8 -0
- package/types/pc/rich-text/parchment/blot/abstract/blot.d.ts +115 -0
- package/types/pc/rich-text/parchment/blot/abstract/container.d.ts +18 -0
- package/types/pc/rich-text/parchment/blot/abstract/leaf.d.ts +29 -0
- package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +50 -0
- package/types/pc/rich-text/parchment/blot/abstract/shadow.d.ts +37 -0
- package/types/pc/rich-text/parchment/blot/block.d.ts +25 -0
- package/types/pc/rich-text/parchment/blot/embed.d.ts +11 -0
- package/types/pc/rich-text/parchment/blot/inline.d.ts +28 -0
- package/types/pc/rich-text/parchment/blot/scroll.d.ts +34 -0
- package/types/pc/rich-text/parchment/blot/text.d.ts +26 -0
- package/types/pc/rich-text/parchment/collection/linked-list.d.ts +21 -0
- package/types/pc/rich-text/parchment/collection/linked-node.d.ts +6 -0
- package/types/pc/rich-text/parchment/error.d.ts +6 -0
- package/types/pc/rich-text/parchment/index.d.ts +21 -0
- package/types/pc/rich-text/parchment/registry.d.ts +21 -0
- package/types/pc/rich-text/parchment/scope.d.ts +14 -0
- package/types/pc/rich-text/rich.d.ts +5 -0
- package/types/pc/rich-text/themes/base.d.ts +35 -0
- package/types/pc/rich-text/themes/bubble.d.ts +18 -0
- package/types/pc/rich-text/themes/snow.d.ts +9 -0
- package/types/pc/rich-text/ui/color-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icon-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icons.d.ts +51 -0
- package/types/pc/rich-text/ui/picker.d.ts +16 -0
- package/types/pc/rich-text/ui/tooltip.d.ts +12 -0
- package/types/pc/select/interface.d.ts +4 -0
- package/types/pc/utils/index.d.ts +2 -0
- package/types/pc/utils/mitt.d.ts +1 -0
- package/types/pc/utils/names.d.ts +107 -91
- package/types/pc/utils/pinyin.d.ts +1 -0
- package/types/pc/version/index.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +5 -3
- package/typography/Operations.js +6 -4
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +2 -2
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +167 -163
- package/utils/mitt.js +5 -0
- package/utils/names.js +12 -2
- package/utils/pinyin.js +5 -0
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +2 -2
- package/watermark/Watermark.js +1 -1
- package/chunk/5_U1CBIu.js +0 -8
- package/chunk/B9YvSTvI.js +0 -2321
- package/chunk/BLOlsa0k.js +0 -11
- package/chunk/BTLlOOe9.js +0 -189
- package/chunk/C6Aw3qIJ.js +0 -16
- package/chunk/CMl7m9nA.js +0 -6
- package/chunk/COqvRD0G.js +0 -11
- package/chunk/DXlwLh0Y.js +0 -806
- package/chunk/DlSv5Vu0.js +0 -16
- package/chunk/DmDh7NRL.js +0 -14
- package/chunk/Duezix3m.js +0 -25
- package/chunk/siEVY1s5.js +0 -33
- package/hooks/useCreate.js +0 -4
- package/types/common/hooks/src/use-dynamic-list/index.d.ts +0 -18
- package/types/common/hooks/src/use-event-emitter/index.d.ts +0 -11
- package/types/common/hooks/src/use-map/index.d.ts +0 -8
- package/types/common/hooks/src/use-set/index.d.ts +0 -6
- package/types/common/hooks/useCreate.d.ts +0 -2
- package/types/pc/hooks/useCreate.d.ts +0 -1
- package/types/pc/hooks/useListenResize.d.ts +0 -1
- /package/hooks/{useListenResize.js → useListenWindowResize.js} +0 -0
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
* @param resizeHandler {en} Resize event callback
|
|
6
6
|
* @param deps 触发事件绑定更新的依赖
|
|
7
7
|
* @param deps {en} Dependencies that trigger event binding updates
|
|
8
|
-
* @param needListen 是否开启事件监听,默认开启
|
|
9
|
-
* @param needListen {en} Whether to enable event monitoring
|
|
10
8
|
* @example
|
|
11
9
|
* ```
|
|
12
|
-
* import {
|
|
10
|
+
* import { useListenWindowResize } from './hooks';
|
|
13
11
|
*
|
|
14
|
-
*
|
|
12
|
+
* useListenWindowResize(setSize, [], listenResize);
|
|
15
13
|
* ```
|
|
16
14
|
*/
|
|
17
|
-
declare function
|
|
18
|
-
export default
|
|
15
|
+
declare function useListenWindowResize(resizeHandler: (e: any) => void, deps?: unknown[]): void;
|
|
16
|
+
export default useListenWindowResize;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ComponentState, PropsWithoutRef } from 'react';
|
|
2
|
-
declare function useWatch<T>(value: PropsWithoutRef<T> | ComponentState, callback: (value: any, prevValue: any) => void):
|
|
2
|
+
declare function useWatch<T>(value: PropsWithoutRef<T> | ComponentState, callback: (value: any, prevValue: any) => void): any[];
|
|
3
3
|
export default useWatch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 获取页面视口宽高大小,并在页面有resize时更新大小
|
|
2
|
+
* 获取页面视口宽高大小,并在页面有 resize 时更新大小
|
|
3
3
|
* @desc {en} Get the width and height of the page viewport, and update the size when the page is resized
|
|
4
4
|
* @param needListen 是否开启resize事件监听
|
|
5
5
|
* @param needListen {en} Whether to enable resize event monitoring
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* const { windowHeight, windowWidth } = useWindowSize();
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
declare
|
|
14
|
+
declare function useWindowSize(debounceFlag?: boolean): {
|
|
15
15
|
width: number;
|
|
16
16
|
height: number;
|
|
17
17
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export * from '@unicom-cloud/utils/date';
|
|
2
|
+
export * from './caseName';
|
|
3
|
+
export * from './className';
|
|
4
|
+
export * from './constant';
|
|
5
|
+
export * from './copy';
|
|
6
|
+
export * from './dayjs';
|
|
7
|
+
export * from './dom';
|
|
8
|
+
export * from './fileToURL';
|
|
9
|
+
export * from './fillNBSP';
|
|
10
|
+
export * from './findScrollParent';
|
|
11
|
+
export * from './getHighlightText';
|
|
12
|
+
export * from './getHotkeyHandler';
|
|
13
|
+
export * from './getStringLength';
|
|
14
|
+
export * from './include';
|
|
15
|
+
export * from './intersectionObserver';
|
|
16
|
+
export * from './is';
|
|
17
|
+
export * from './lodash';
|
|
18
|
+
export * from './math';
|
|
19
|
+
export * from './mergedToString';
|
|
20
|
+
export * from './mergeProps';
|
|
21
|
+
export * from './mitt';
|
|
22
|
+
export * from './mutationObserver';
|
|
23
|
+
export * from './omit';
|
|
24
|
+
export * from './pad';
|
|
25
|
+
export * from './pick';
|
|
26
|
+
export * from './pinyin';
|
|
27
|
+
export * from './PqbCSSTransition';
|
|
28
|
+
export * from './reactDOM';
|
|
29
|
+
export * from './reactTransitionGroup';
|
|
30
|
+
export * from './resizeObserver';
|
|
31
|
+
export * from './saveAs';
|
|
32
|
+
export * from './screenfull';
|
|
33
|
+
export * from './scrollIntoViewIfNeeded';
|
|
34
|
+
export * from './setDarkTheme';
|
|
35
|
+
export * from './setDir';
|
|
36
|
+
export * from './setPrimaryColor';
|
|
37
|
+
export * from './setTheme';
|
|
38
|
+
export * from './style';
|
|
39
|
+
export * from './throttleByRaf';
|
|
40
|
+
export * from './toArray';
|
|
41
|
+
export * from './tree';
|
|
42
|
+
export * from './tween';
|
|
43
|
+
export * from './type';
|
|
44
|
+
export * from './uuid';
|
|
45
|
+
export * from './validate';
|
|
46
|
+
export * from './warning';
|
|
47
|
+
export { keyboardCode } from './keyboardCode';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, div, default as math, minus, plus, times, } from '@unicom-cloud/utils/math';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, default as mitt } from '@unicom-cloud/utils/mitt';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, default as pinyin } from '@unicom-cloud/utils/pinyin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CSSTransition, default, default as reactTransitionGroup, ReplaceTransition, SwitchTransition, Transition, TransitionGroup, } from '@unicom-cloud/react-transition-group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { v4 as uuid, v4 as uuidv4 } from 'uuid';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DefaultValidateMessage, Schema, default as validate, } from '@unicom-cloud/validate';
|
|
@@ -51,6 +51,7 @@ import { RadioGroupProps, RadioProps } from '../radio/interface';
|
|
|
51
51
|
import { RateProps } from '../rate/interface';
|
|
52
52
|
import { ResizeBoxProps } from '../resize-box/interface';
|
|
53
53
|
import { ResultProps } from '../result/interface';
|
|
54
|
+
import type { RichTextProps } from '../rich-text/interface';
|
|
54
55
|
import type { ColProps, RowProps } from '../row-col/interface';
|
|
55
56
|
import type { SegmentedProps } from '../segmented/interface';
|
|
56
57
|
import { SelectProps } from '../select/interface';
|
|
@@ -170,6 +171,7 @@ export type ComponentConfig = {
|
|
|
170
171
|
Flex?: FlexProps;
|
|
171
172
|
Details?: DetailsProps;
|
|
172
173
|
Loading?: LoadingProps;
|
|
174
|
+
RichText?: RichTextProps;
|
|
173
175
|
};
|
|
174
176
|
/**
|
|
175
177
|
* @title ConfigProvider
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RangePickerHandle } from './interface';
|
|
2
|
-
declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils
|
|
2
|
+
declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & import("react").RefAttributes<RangePickerHandle>>;
|
|
3
3
|
export default PickerComponent;
|
package/types/pc/form/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Form from './Form';
|
|
2
2
|
import { FormInstance, FormItemProps, FormProps, FormProviderProps } from './interface';
|
|
3
|
+
import { FormContext, FormItemContext, FormListContext, FormProviderContext } from './context';
|
|
3
4
|
import FormControl from './Control';
|
|
4
5
|
import FormItem from './FormItem';
|
|
5
6
|
import FormList from './FormList';
|
|
@@ -20,7 +21,11 @@ export interface FormComponent extends RefForm {
|
|
|
20
21
|
useFormContext: typeof useFormContext;
|
|
21
22
|
useWatch: typeof useWatch;
|
|
22
23
|
useFormState: typeof useFormState;
|
|
24
|
+
FormContext: typeof FormContext;
|
|
25
|
+
FormItemContext: typeof FormItemContext;
|
|
26
|
+
FormProviderContext: typeof FormProviderContext;
|
|
27
|
+
FormListContext: typeof FormListContext;
|
|
23
28
|
}
|
|
24
29
|
declare const FormComp: FormComponent;
|
|
25
|
-
export { FormControl, FormItem, FormList, FormProvider, getFormInstance, useForm, useFormContext, useFormState, useWatch as useFormWatch, };
|
|
30
|
+
export { FormContext, FormControl, FormItem, FormItemContext, FormList, FormListContext, FormProvider, FormProviderContext, getFormInstance, useForm, useFormContext, useFormState, useWatch as useFormWatch, };
|
|
26
31
|
export default FormComp;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "../../common/hooks/src";
|
|
2
2
|
export { default as useVerificationCode } from "./use-verification-code";
|
|
3
3
|
export { default as useWatermark } from "./use-watermark";
|
|
4
|
-
export { default as
|
|
4
|
+
export { default as useCreation } from "./useCreation";
|
|
5
5
|
export { default as useForceUpdate } from "./useForceUpdate";
|
|
6
6
|
export { default as useId } from "./useId";
|
|
7
7
|
export { default as useIntersectionObserver } from "./useIntersectionObserver";
|
|
@@ -10,7 +10,7 @@ export { default as useInView } from "./useInView";
|
|
|
10
10
|
export { default as useIsFirstRender } from "./useIsFirstRender";
|
|
11
11
|
export { default as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect";
|
|
12
12
|
export { default as useKeyboardEvent } from "./useKeyboardEvent";
|
|
13
|
-
export { default as
|
|
13
|
+
export { default as useListenWindowResize } from "./useListenWindowResize";
|
|
14
14
|
export { default as useMedia } from "./useMedia";
|
|
15
15
|
export { default as useMergeProps } from "./useMergeProps";
|
|
16
16
|
export { default as useMergeValue } from "./useMergeValue";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../common/hooks/src/use-creation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../../common/hooks/useListenWindowResize';
|
package/types/pc/index.d.ts
CHANGED
|
@@ -124,6 +124,8 @@ export { default as ResizeBox, ResizeBoxSplit, ResizeBoxSplitGroup, } from './re
|
|
|
124
124
|
export type { ResizeBoxProps } from './resize-box/interface';
|
|
125
125
|
export { default as Result } from './result';
|
|
126
126
|
export type { ResultProps } from './result/interface';
|
|
127
|
+
export { default as RichText } from './rich-text';
|
|
128
|
+
export type { RichTextProps } from './rich-text/interface';
|
|
127
129
|
export { Col, default as Row, RowItem } from './row-col';
|
|
128
130
|
export type { ColProps, RowProps } from './row-col/interface';
|
|
129
131
|
export { default as Segmented } from './segmented';
|
|
@@ -24,7 +24,7 @@ export interface MessageProps {
|
|
|
24
24
|
* @zh 消息内容
|
|
25
25
|
* @en Message content
|
|
26
26
|
*/
|
|
27
|
-
content: ReactNode | string;
|
|
27
|
+
content: ReactNode | string | number;
|
|
28
28
|
/**
|
|
29
29
|
* @zh 是否显示图标
|
|
30
30
|
* @en Whether to show the icon
|
|
@@ -70,7 +70,7 @@ export interface MessageProps {
|
|
|
70
70
|
closeIcon?: ReactNode;
|
|
71
71
|
type?: string;
|
|
72
72
|
}
|
|
73
|
-
type messageHookFunction = (config: MessageProps | string) => MessageType;
|
|
73
|
+
type messageHookFunction = (config: MessageProps | string | number) => MessageType;
|
|
74
74
|
export type MessageHookReturnType = {
|
|
75
75
|
info?: messageHookFunction;
|
|
76
76
|
success?: messageHookFunction;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Delta from '../delta';
|
|
2
|
+
import type { Blot, Parent } from '../parchment';
|
|
3
|
+
import { AttributorStore, BlockBlot, EmbedBlot } from '../parchment';
|
|
4
|
+
declare class Block extends BlockBlot {
|
|
5
|
+
cache: {
|
|
6
|
+
delta?: Delta | null;
|
|
7
|
+
length?: number;
|
|
8
|
+
};
|
|
9
|
+
delta(): Delta;
|
|
10
|
+
deleteAt(index: number, length: number): void;
|
|
11
|
+
formatAt(index: number, length: number, name: string, value: unknown): void;
|
|
12
|
+
insertAt(index: number, value: string, def?: unknown): void;
|
|
13
|
+
insertBefore(blot: Blot, ref?: Blot | null): void;
|
|
14
|
+
length(): number;
|
|
15
|
+
moveChildren(target: Parent, ref?: Blot | null): void;
|
|
16
|
+
optimize(context: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}): void;
|
|
19
|
+
path(index: number): [Blot, number][];
|
|
20
|
+
removeChild(child: Blot): void;
|
|
21
|
+
split(index: number, force?: boolean | undefined): Blot | null;
|
|
22
|
+
}
|
|
23
|
+
declare class BlockEmbed extends EmbedBlot {
|
|
24
|
+
attributes: AttributorStore;
|
|
25
|
+
domNode: HTMLElement;
|
|
26
|
+
attach(): void;
|
|
27
|
+
delta(): Delta;
|
|
28
|
+
format(name: string, value: unknown): void;
|
|
29
|
+
formatAt(index: number, length: number, name: string, value: unknown): void;
|
|
30
|
+
insertAt(index: number, value: string, def?: unknown): void;
|
|
31
|
+
}
|
|
32
|
+
declare function blockDelta(blot: BlockBlot, filter?: boolean): Delta;
|
|
33
|
+
declare function bubbleFormats(blot: Blot | null, formats?: Record<string, unknown>, filter?: boolean): Record<string, unknown>;
|
|
34
|
+
export { blockDelta, BlockEmbed, bubbleFormats, Block as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type Selection from '../core/selection.js';
|
|
2
|
+
import type { ScrollBlot } from '../parchment';
|
|
3
|
+
import { EmbedBlot } from '../parchment';
|
|
4
|
+
import type { EmbedContextRange } from './embed.js';
|
|
5
|
+
declare class Cursor extends EmbedBlot {
|
|
6
|
+
static blotName: string;
|
|
7
|
+
static className: string;
|
|
8
|
+
static tagName: string;
|
|
9
|
+
static CONTENTS: string;
|
|
10
|
+
static value(): undefined;
|
|
11
|
+
selection: Selection;
|
|
12
|
+
textNode: Text;
|
|
13
|
+
savedLength: number;
|
|
14
|
+
constructor(scroll: ScrollBlot, domNode: HTMLElement, selection: Selection);
|
|
15
|
+
detach(): void;
|
|
16
|
+
format(name: string, value: unknown): void;
|
|
17
|
+
index(node: Node, offset: number): number;
|
|
18
|
+
length(): number;
|
|
19
|
+
position(): [Text, number];
|
|
20
|
+
remove(): void;
|
|
21
|
+
restore(): EmbedContextRange | null;
|
|
22
|
+
update(mutations: MutationRecord[], context: Record<string, unknown>): void;
|
|
23
|
+
optimize(context?: unknown): void;
|
|
24
|
+
value(): string;
|
|
25
|
+
}
|
|
26
|
+
export default Cursor;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ScrollBlot } from '../parchment';
|
|
2
|
+
import { EmbedBlot } from '../parchment';
|
|
3
|
+
export interface EmbedContextRange {
|
|
4
|
+
startNode: Node | Text;
|
|
5
|
+
startOffset: number;
|
|
6
|
+
endNode?: Node | Text;
|
|
7
|
+
endOffset?: number;
|
|
8
|
+
}
|
|
9
|
+
declare class Embed extends EmbedBlot {
|
|
10
|
+
contentNode: HTMLSpanElement;
|
|
11
|
+
leftGuard: Text;
|
|
12
|
+
rightGuard: Text;
|
|
13
|
+
constructor(scroll: ScrollBlot, node: Node);
|
|
14
|
+
index(node: Node, offset: number): number;
|
|
15
|
+
restore(node: Text): EmbedContextRange | null;
|
|
16
|
+
update(mutations: MutationRecord[], context: Record<string, unknown>): void;
|
|
17
|
+
}
|
|
18
|
+
export default Embed;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BlotConstructor } from '../parchment';
|
|
2
|
+
import { InlineBlot } from '../parchment';
|
|
3
|
+
declare class Inline extends InlineBlot {
|
|
4
|
+
static allowedChildren: BlotConstructor[];
|
|
5
|
+
static order: string[];
|
|
6
|
+
static compare(self: string, other: string): number;
|
|
7
|
+
formatAt(index: number, length: number, name: string, value: unknown): void;
|
|
8
|
+
optimize(context: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): void;
|
|
11
|
+
}
|
|
12
|
+
export default Inline;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { EmitterSource } from '../core/emitter.js';
|
|
2
|
+
import Emitter from '../core/emitter.js';
|
|
3
|
+
import Delta from '../delta';
|
|
4
|
+
import type { Blot, Registry } from '../parchment';
|
|
5
|
+
import { LeafBlot, ScrollBlot } from '../parchment';
|
|
6
|
+
import Block, { BlockEmbed } from './block.js';
|
|
7
|
+
import Container from './container.js';
|
|
8
|
+
declare class Scroll extends ScrollBlot {
|
|
9
|
+
static blotName: string;
|
|
10
|
+
static className: string;
|
|
11
|
+
static tagName: string;
|
|
12
|
+
static defaultChild: typeof Block;
|
|
13
|
+
static allowedChildren: (typeof Block | typeof BlockEmbed | typeof Container)[];
|
|
14
|
+
emitter: Emitter;
|
|
15
|
+
batch: false | MutationRecord[];
|
|
16
|
+
constructor(registry: Registry, domNode: HTMLDivElement, { emitter }: {
|
|
17
|
+
emitter: Emitter;
|
|
18
|
+
});
|
|
19
|
+
batchStart(): void;
|
|
20
|
+
batchEnd(): void;
|
|
21
|
+
emitMount(blot: Blot): void;
|
|
22
|
+
emitUnmount(blot: Blot): void;
|
|
23
|
+
emitEmbedUpdate(blot: Blot, change: unknown): void;
|
|
24
|
+
deleteAt(index: number, length: number): void;
|
|
25
|
+
enable(enabled?: boolean): void;
|
|
26
|
+
formatAt(index: number, length: number, format: string, value: unknown): void;
|
|
27
|
+
insertAt(index: number, value: string, def?: unknown): void;
|
|
28
|
+
insertBefore(blot: Blot, ref?: Blot | null): void;
|
|
29
|
+
insertContents(index: number, delta: Delta): void;
|
|
30
|
+
isEnabled(): boolean;
|
|
31
|
+
leaf(index: number): [LeafBlot | null, number];
|
|
32
|
+
line(index: number): [Block | BlockEmbed | null, number];
|
|
33
|
+
lines(index?: number, length?: number): (Block | BlockEmbed)[];
|
|
34
|
+
optimize(context?: {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}): void;
|
|
37
|
+
optimize(mutations?: MutationRecord[], context?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}): void;
|
|
40
|
+
path(index: number): [Blot, number][];
|
|
41
|
+
remove(): void;
|
|
42
|
+
update(source?: EmitterSource): void;
|
|
43
|
+
update(mutations?: MutationRecord[]): void;
|
|
44
|
+
updateEmbedAt(index: number, key: string, change: unknown): void;
|
|
45
|
+
protected handleDragStart(event: DragEvent): void;
|
|
46
|
+
private deltaToRenderBlocks;
|
|
47
|
+
private createBlock;
|
|
48
|
+
}
|
|
49
|
+
export default Scroll;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RICH_TEXT_CLASS_NAME_PREFIX = "pqb-rich-text";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type Scroll from '../blots/scroll.js';
|
|
2
|
+
import Emitter from './emitter.js';
|
|
3
|
+
declare class Composition {
|
|
4
|
+
private scroll;
|
|
5
|
+
private emitter;
|
|
6
|
+
isComposing: boolean;
|
|
7
|
+
constructor(scroll: Scroll, emitter: Emitter);
|
|
8
|
+
private setupListeners;
|
|
9
|
+
private handleCompositionStart;
|
|
10
|
+
private handleCompositionEnd;
|
|
11
|
+
}
|
|
12
|
+
export default Composition;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type Scroll from '../blots/scroll.js';
|
|
2
|
+
import Delta from '../delta';
|
|
3
|
+
import { Range } from './selection.js';
|
|
4
|
+
type SelectionInfo = {
|
|
5
|
+
newRange: Range;
|
|
6
|
+
oldRange: Range;
|
|
7
|
+
};
|
|
8
|
+
declare class Editor {
|
|
9
|
+
scroll: Scroll;
|
|
10
|
+
delta: Delta;
|
|
11
|
+
constructor(scroll: Scroll);
|
|
12
|
+
applyDelta(delta: Delta): Delta;
|
|
13
|
+
deleteText(index: number, length: number): Delta;
|
|
14
|
+
formatLine(index: number, length: number, formats?: Record<string, unknown>): Delta;
|
|
15
|
+
formatText(index: number, length: number, formats?: Record<string, unknown>): Delta;
|
|
16
|
+
getContents(index: number, length: number): Delta;
|
|
17
|
+
getDelta(): Delta;
|
|
18
|
+
getFormat(index: number, length?: number): Record<string, unknown>;
|
|
19
|
+
getHTML(index: number, length: number): string;
|
|
20
|
+
getText(index: number, length: number): string;
|
|
21
|
+
insertContents(index: number, contents: Delta): Delta;
|
|
22
|
+
insertEmbed(index: number, embed: string, value: unknown): Delta;
|
|
23
|
+
insertText(index: number, text: string, formats?: Record<string, unknown>): Delta;
|
|
24
|
+
isBlank(): boolean;
|
|
25
|
+
removeFormat(index: number, length: number): Delta;
|
|
26
|
+
update(change: Delta | null, mutations?: MutationRecord[], selectionInfo?: SelectionInfo | undefined): Delta;
|
|
27
|
+
}
|
|
28
|
+
export default Editor;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare class Emitter {
|
|
2
|
+
static events: {
|
|
3
|
+
readonly EDITOR_CHANGE: "editor-change";
|
|
4
|
+
readonly SCROLL_BEFORE_UPDATE: "scroll-before-update";
|
|
5
|
+
readonly SCROLL_BLOT_MOUNT: "scroll-blot-mount";
|
|
6
|
+
readonly SCROLL_BLOT_UNMOUNT: "scroll-blot-unmount";
|
|
7
|
+
readonly SCROLL_OPTIMIZE: "scroll-optimize";
|
|
8
|
+
readonly SCROLL_UPDATE: "scroll-update";
|
|
9
|
+
readonly SCROLL_EMBED_UPDATE: "scroll-embed-update";
|
|
10
|
+
readonly SELECTION_CHANGE: "selection-change";
|
|
11
|
+
readonly TEXT_CHANGE: "text-change";
|
|
12
|
+
readonly COMPOSITION_BEFORE_START: "composition-before-start";
|
|
13
|
+
readonly COMPOSITION_START: "composition-start";
|
|
14
|
+
readonly COMPOSITION_BEFORE_END: "composition-before-end";
|
|
15
|
+
readonly COMPOSITION_END: "composition-end";
|
|
16
|
+
};
|
|
17
|
+
static sources: {
|
|
18
|
+
readonly API: "api";
|
|
19
|
+
readonly SILENT: "silent";
|
|
20
|
+
readonly USER: "user";
|
|
21
|
+
};
|
|
22
|
+
protected domListeners: Record<string, {
|
|
23
|
+
node: Node;
|
|
24
|
+
handler: Function;
|
|
25
|
+
}[]>;
|
|
26
|
+
constructor();
|
|
27
|
+
private emitter;
|
|
28
|
+
on(...args: any[]): void;
|
|
29
|
+
once(...args: any[]): void;
|
|
30
|
+
emit(...args: unknown[]): boolean;
|
|
31
|
+
off(...args: any[]): void;
|
|
32
|
+
offAll(...args: any[]): void;
|
|
33
|
+
handleDOM(event: Event, ...args: unknown[]): void;
|
|
34
|
+
listenDOM(eventName: string, node: Node, handler: EventListener): void;
|
|
35
|
+
}
|
|
36
|
+
export type EmitterSource = (typeof Emitter.sources)[keyof typeof Emitter.sources];
|
|
37
|
+
export default Emitter;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const levels: readonly ["error", "warn", "log", "info"];
|
|
2
|
+
export type DebugLevel = (typeof levels)[number];
|
|
3
|
+
declare function namespace(ns: string): Record<DebugLevel, (...args: unknown[]) => void>;
|
|
4
|
+
declare namespace namespace {
|
|
5
|
+
var level: (newLevel: DebugLevel | false) => void;
|
|
6
|
+
}
|
|
7
|
+
export default namespace;
|