@unicom-cloud/ui 0.8.110 → 0.8.112
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 +3 -3
- package/Alert.js +1 -1
- package/AutoComplete.js +1 -1
- package/BackTop.js +1 -1
- 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 +2 -2
- 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 +2 -2
- package/Countdown.js +17 -17
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +19 -19
- 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 +18 -18
- 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 +19 -19
- package/List.js +1 -1
- package/Loading.js +18 -18
- package/Marquee.js +19 -19
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +18 -18
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +18 -18
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +13 -70
- package/Segmented.js +20 -20
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +18 -18
- 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 +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +19 -19
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +2 -2
- package/affix/index.js +3 -3
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- 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 +1 -1
- 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 +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 +2 -2
- 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/{Y_GQsZUt.js → 0BhDjhcd.js} +1 -1
- package/chunk/{BDMqvmVH.js → BCmfDFV4.js} +28 -30
- package/chunk/{n1tirBXA.js → BfVlSL8A.js} +3 -3
- package/chunk/BiZSULcr.js +1872 -0
- package/chunk/{BcEZk8pT.js → C1vY8016.js} +14 -14
- package/chunk/{qsVvkBLU.js → C3kH2ES3.js} +1 -1
- package/chunk/{BGJspFG9.js → C5CbL5ku.js} +1 -1
- package/chunk/CAA93JLq.js +6 -0
- package/chunk/{B8W1N4er.js → CHQ8c547.js} +11 -10
- package/chunk/{Dbw0YUY1.js → CYssV-zz.js} +36 -36
- package/chunk/CrOzsnI0.js +51 -0
- package/chunk/{CFyN9Eio.js → CtCFA4ht.js} +4 -4
- package/chunk/{BnUWOu3_.js → Cx92e1S8.js} +3 -3
- package/chunk/{BeHcDey_.js → CylbdYce.js} +1 -1
- package/chunk/{BUNoUPLs.js → DMv8Hn4u.js} +1 -1
- package/chunk/{zFFM4RBT.js → DfUcAhyT.js} +703 -680
- package/chunk/{DSqW_efI.js → DfbO4QTS.js} +152 -156
- package/chunk/{CgN4U7Ou.js → DhAvt6tJ.js} +2 -2
- package/chunk/DsuIQH0F.js +200 -0
- package/chunk/{Lyh0cz3R.js → KPBMJlOB.js} +1 -1
- package/chunk/{B_c0gPsX.js → vP3qfmKM.js} +24 -23
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.js +1 -1
- 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 +2 -2
- package/countdown/index.js +17 -17
- 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 +19 -19
- 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 +18 -18
- package/form/Form.js +2 -2
- package/form/FormItem.js +1 -1
- package/form/index.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +96 -97
- package/hooks/useId.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useResizeObserver.js +58 -2
- 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 +2 -2
- package/image/ImagePreview.js +22 -22
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +691 -693
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +2 -2
- package/input/Password.js +1 -1
- 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 +1 -1
- package/liquid-fill/index.js +24 -24
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +18 -18
- package/marquee/index.js +22 -22
- package/marquee-/index.js +22 -22
- package/mentions/index.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +2 -2
- package/notice/index.js +18 -18
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +2 -2
- package/overflow-ellipsis/index.js +2 -2
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- 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 +18 -18
- 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 +2 -2
- 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/core.js +1 -1
- package/rich-text/index.js +65 -128
- package/rich-text/rich.js +406 -936
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +71 -74
- package/row-col/Row.js +1 -1
- package/segmented/index.js +23 -23
- package/select/Option.js +1 -1
- package/select/Select.js +4 -4
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +18 -18
- 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 +3 -3
- 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 +61 -11
- package/table/index.js +4 -4
- 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 +27 -27
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- 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 +3 -3
- package/tree-select/index.js +1 -1
- package/trigger/index.js +2 -2
- package/types/common/hooks/src/use-size/index.d.ts +1 -1
- package/types/common/hooks/src/use-theme/index.d.ts +2 -2
- package/types/common/hooks/src/utils/isBrowser.d.ts +1 -1
- package/types/common/hooks/useResizeObserver.d.ts +1 -5
- package/types/common/hooks/useWindowSize.d.ts +1 -1
- package/types/common/utils/emitter.d.ts +1 -0
- package/types/common/utils/index.d.ts +1 -1
- package/types/pc/index.d.ts +1 -1
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/rich-text/blots/scroll.d.ts +2 -8
- package/types/pc/rich-text/core/emitter.d.ts +2 -3
- package/types/pc/rich-text/core/rich.d.ts +11 -44
- package/types/pc/rich-text/core/selection.d.ts +1 -8
- package/types/pc/rich-text/core/theme.d.ts +3 -0
- package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +2 -4
- package/types/pc/rich-text/themes/base.d.ts +3 -0
- package/types/pc/rich-text/themes/{snow.d.ts → pqb.d.ts} +2 -2
- package/types/pc/rich-text/ui/tooltip.d.ts +2 -0
- package/types/pc/utils/emitter.d.ts +1 -0
- package/types/pc/utils/index.d.ts +1 -1
- package/typography/Base.js +2 -2
- package/typography/Ellipsis.js +3 -3
- package/typography/Operations.js +2 -2
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/emitter.js +5 -0
- package/utils/index.js +3 -3
- package/utils/resizeObserver.js +1 -1
- 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/BDgzrqDN.js +0 -154
- package/chunk/COc48wzV.js +0 -64
- package/chunk/COsRZOz1.js +0 -1813
- package/chunk/CylJZkp8.js +0 -6
- package/chunk/Di5KBCVQ.js +0 -4
- package/chunk/cW_5U6dL.js +0 -28
- package/rich-text/eventemitter/index.d.ts +0 -135
- package/types/common/utils/mitt.d.ts +0 -1
- package/types/pc/rich-text/eventemitter/index.d.ts +0 -101
- package/types/pc/rich-text/themes/bubble.d.ts +0 -18
- package/types/pc/utils/mitt.d.ts +0 -1
- package/utils/mitt.js +0 -5
package/chunk/CylJZkp8.js
DELETED
package/chunk/Di5KBCVQ.js
DELETED
package/chunk/cW_5U6dL.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { useRef as c, useEffect as i } from "react";
|
|
2
|
-
import "./DsaQZE4X.js";
|
|
3
|
-
import { isFunction as f } from "@unicom-cloud/utils/is";
|
|
4
|
-
function b(t) {
|
|
5
|
-
const r = c(null), e = c(null), n = () => {
|
|
6
|
-
r.current && (r.current.disconnect(), r.current = null), e.current && (window.cancelAnimationFrame(e.current), e.current = null);
|
|
7
|
-
}, o = (u) => {
|
|
8
|
-
u && f(t) && (n(), r.current = new ResizeObserver(
|
|
9
|
-
(s) => {
|
|
10
|
-
e.current = window.requestAnimationFrame(
|
|
11
|
-
() => {
|
|
12
|
-
t(s);
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
), r.current.observe(u));
|
|
17
|
-
};
|
|
18
|
-
return i(() => () => {
|
|
19
|
-
n();
|
|
20
|
-
}, []), {
|
|
21
|
-
currentOr: r.current,
|
|
22
|
-
cor: o,
|
|
23
|
-
dor: n
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
b as u
|
|
28
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal `EventEmitter` interface that is molded against the Node.js
|
|
3
|
-
* `EventEmitter` interface.
|
|
4
|
-
*/
|
|
5
|
-
declare class EventEmitter<
|
|
6
|
-
EventTypes extends EventEmitter.ValidEventTypes = string | symbol,
|
|
7
|
-
Context extends any = any
|
|
8
|
-
> {
|
|
9
|
-
static prefixed: string | boolean;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Return an array listing the events for which the emitter has registered
|
|
13
|
-
* listeners.
|
|
14
|
-
*/
|
|
15
|
-
eventNames(): Array<EventEmitter.EventNames<EventTypes>>;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Return the listeners registered for a given event.
|
|
19
|
-
*/
|
|
20
|
-
listeners<T extends EventEmitter.EventNames<EventTypes>>(
|
|
21
|
-
event: T
|
|
22
|
-
): Array<EventEmitter.EventListener<EventTypes, T>>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Return the number of listeners listening to a given event.
|
|
26
|
-
*/
|
|
27
|
-
listenerCount(event: EventEmitter.EventNames<EventTypes>): number;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Calls each of the listeners registered for a given event.
|
|
31
|
-
*/
|
|
32
|
-
emit<T extends EventEmitter.EventNames<EventTypes>>(
|
|
33
|
-
event: T,
|
|
34
|
-
...args: EventEmitter.EventArgs<EventTypes, T>
|
|
35
|
-
): boolean;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Add a listener for a given event.
|
|
39
|
-
*/
|
|
40
|
-
on<T extends EventEmitter.EventNames<EventTypes>>(
|
|
41
|
-
event: T,
|
|
42
|
-
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
43
|
-
context?: Context
|
|
44
|
-
): this;
|
|
45
|
-
addListener<T extends EventEmitter.EventNames<EventTypes>>(
|
|
46
|
-
event: T,
|
|
47
|
-
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
48
|
-
context?: Context
|
|
49
|
-
): this;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Add a one-time listener for a given event.
|
|
53
|
-
*/
|
|
54
|
-
once<T extends EventEmitter.EventNames<EventTypes>>(
|
|
55
|
-
event: T,
|
|
56
|
-
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
57
|
-
context?: Context
|
|
58
|
-
): this;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Remove the listeners of a given event.
|
|
62
|
-
*/
|
|
63
|
-
removeListener<T extends EventEmitter.EventNames<EventTypes>>(
|
|
64
|
-
event: T,
|
|
65
|
-
fn?: EventEmitter.EventListener<EventTypes, T>,
|
|
66
|
-
context?: Context,
|
|
67
|
-
once?: boolean
|
|
68
|
-
): this;
|
|
69
|
-
off<T extends EventEmitter.EventNames<EventTypes>>(
|
|
70
|
-
event: T,
|
|
71
|
-
fn?: EventEmitter.EventListener<EventTypes, T>,
|
|
72
|
-
context?: Context,
|
|
73
|
-
once?: boolean
|
|
74
|
-
): this;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Remove all listeners, or those of the specified event.
|
|
78
|
-
*/
|
|
79
|
-
removeAllListeners(event?: EventEmitter.EventNames<EventTypes>): this;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
declare namespace EventEmitter {
|
|
83
|
-
export interface ListenerFn<Args extends any[] = any[]> {
|
|
84
|
-
(...args: Args): void;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface EventEmitterStatic {
|
|
88
|
-
new <
|
|
89
|
-
EventTypes extends ValidEventTypes = string | symbol,
|
|
90
|
-
Context = any
|
|
91
|
-
>(): EventEmitter<EventTypes, Context>;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* `object` should be in either of the following forms:
|
|
96
|
-
* ```
|
|
97
|
-
* interface EventTypes {
|
|
98
|
-
* 'event-with-parameters': any[]
|
|
99
|
-
* 'event-with-example-handler': (...args: any[]) => void
|
|
100
|
-
* }
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
export type ValidEventTypes = string | symbol | object;
|
|
104
|
-
|
|
105
|
-
export type EventNames<T extends ValidEventTypes> = T extends string | symbol
|
|
106
|
-
? T
|
|
107
|
-
: keyof T;
|
|
108
|
-
|
|
109
|
-
export type ArgumentMap<T extends object> = {
|
|
110
|
-
[K in keyof T]: T[K] extends (...args: any[]) => void
|
|
111
|
-
? Parameters<T[K]>
|
|
112
|
-
: T[K] extends any[]
|
|
113
|
-
? T[K]
|
|
114
|
-
: any[];
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export type EventListener<
|
|
118
|
-
T extends ValidEventTypes,
|
|
119
|
-
K extends EventNames<T>
|
|
120
|
-
> = T extends string | symbol
|
|
121
|
-
? (...args: any[]) => void
|
|
122
|
-
: (
|
|
123
|
-
...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]
|
|
124
|
-
) => void;
|
|
125
|
-
|
|
126
|
-
export type EventArgs<
|
|
127
|
-
T extends ValidEventTypes,
|
|
128
|
-
K extends EventNames<T>
|
|
129
|
-
> = Parameters<EventListener<T, K>>;
|
|
130
|
-
|
|
131
|
-
export const EventEmitter: EventEmitterStatic;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export { EventEmitter }
|
|
135
|
-
export default EventEmitter;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, default as mitt } from '@unicom-cloud/utils/mitt';
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
export default EventEmitter;
|
|
2
|
-
/**
|
|
3
|
-
* Minimal `EventEmitter` interface that is molded against the Node.js
|
|
4
|
-
* `EventEmitter` interface.
|
|
5
|
-
*
|
|
6
|
-
* @constructor
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export function EventEmitter(): void;
|
|
10
|
-
export class EventEmitter {
|
|
11
|
-
_events: Events;
|
|
12
|
-
_eventsCount: number;
|
|
13
|
-
/**
|
|
14
|
-
* Return an array listing the events for which the emitter has registered
|
|
15
|
-
* listeners.
|
|
16
|
-
*
|
|
17
|
-
* @returns {Array}
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
public eventNames(): any[];
|
|
21
|
-
/**
|
|
22
|
-
* Return the listeners registered for a given event.
|
|
23
|
-
*
|
|
24
|
-
* @param {(String|Symbol)} event The event name.
|
|
25
|
-
* @returns {Array} The registered listeners.
|
|
26
|
-
* @public
|
|
27
|
-
*/
|
|
28
|
-
public listeners(event: (string | Symbol)): any[];
|
|
29
|
-
/**
|
|
30
|
-
* Return the number of listeners listening to a given event.
|
|
31
|
-
*
|
|
32
|
-
* @param {(String|Symbol)} event The event name.
|
|
33
|
-
* @returns {Number} The number of listeners.
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
public listenerCount(event: (string | Symbol)): number;
|
|
37
|
-
/**
|
|
38
|
-
* Calls each of the listeners registered for a given event.
|
|
39
|
-
*
|
|
40
|
-
* @param {(String|Symbol)} event The event name.
|
|
41
|
-
* @returns {Boolean} `true` if the event had listeners, else `false`.
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
public emit(event: (string | Symbol), a1: any, a2: any, a3: any, a4: any, a5: any, ...args: any[]): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Add a listener for a given event.
|
|
47
|
-
*
|
|
48
|
-
* @param {(String|Symbol)} event The event name.
|
|
49
|
-
* @param {Function} fn The listener function.
|
|
50
|
-
* @param {*} [context=this] The context to invoke the listener with.
|
|
51
|
-
* @returns {EventEmitter} `this`.
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
public on(event: (string | Symbol), fn: Function, context?: any): EventEmitter;
|
|
55
|
-
/**
|
|
56
|
-
* Add a one-time listener for a given event.
|
|
57
|
-
*
|
|
58
|
-
* @param {(String|Symbol)} event The event name.
|
|
59
|
-
* @param {Function} fn The listener function.
|
|
60
|
-
* @param {*} [context=this] The context to invoke the listener with.
|
|
61
|
-
* @returns {EventEmitter} `this`.
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
public once(event: (string | Symbol), fn: Function, context?: any): EventEmitter;
|
|
65
|
-
/**
|
|
66
|
-
* Remove the listeners of a given event.
|
|
67
|
-
*
|
|
68
|
-
* @param {(String|Symbol)} event The event name.
|
|
69
|
-
* @param {Function} fn Only remove the listeners that match this function.
|
|
70
|
-
* @param {*} context Only remove the listeners that have this context.
|
|
71
|
-
* @param {Boolean} once Only remove one-time listeners.
|
|
72
|
-
* @returns {EventEmitter} `this`.
|
|
73
|
-
* @public
|
|
74
|
-
*/
|
|
75
|
-
public removeListener(event: (string | Symbol), fn: Function, context: any, once: boolean): EventEmitter;
|
|
76
|
-
/**
|
|
77
|
-
* Remove all listeners, or those of the specified event.
|
|
78
|
-
*
|
|
79
|
-
* @param {(String|Symbol)} [event] The event name.
|
|
80
|
-
* @returns {EventEmitter} `this`.
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
83
|
-
public removeAllListeners(event?: (string | Symbol)): EventEmitter;
|
|
84
|
-
off: any;
|
|
85
|
-
addListener: any;
|
|
86
|
-
}
|
|
87
|
-
export namespace EventEmitter {
|
|
88
|
-
export { prefix as prefixed };
|
|
89
|
-
export { EventEmitter };
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Constructor to create a storage for our `EE` objects.
|
|
93
|
-
* An `Events` instance is a plain object whose properties are event names.
|
|
94
|
-
*
|
|
95
|
-
* @constructor
|
|
96
|
-
* @private
|
|
97
|
-
*/
|
|
98
|
-
declare function Events(): void;
|
|
99
|
-
declare class Events {
|
|
100
|
-
}
|
|
101
|
-
declare var prefix: string;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Rich from '../core/rich.js';
|
|
2
|
-
import type { Bounds } from '../core/selection.js';
|
|
3
|
-
import type { ThemeOptions } from '../core/theme.js';
|
|
4
|
-
import type Toolbar from '../modules/toolbar.js';
|
|
5
|
-
import BaseTheme, { BaseTooltip } from './base.js';
|
|
6
|
-
declare class BubbleTooltip extends BaseTooltip {
|
|
7
|
-
static TEMPLATE: string;
|
|
8
|
-
constructor(rich: Rich, bounds?: HTMLElement);
|
|
9
|
-
listen(): void;
|
|
10
|
-
cancel(): void;
|
|
11
|
-
position(reference: Bounds): number;
|
|
12
|
-
}
|
|
13
|
-
declare class BubbleTheme extends BaseTheme {
|
|
14
|
-
tooltip: BubbleTooltip;
|
|
15
|
-
constructor(rich: Rich, options: ThemeOptions);
|
|
16
|
-
extendToolbar(toolbar: Toolbar): void;
|
|
17
|
-
}
|
|
18
|
-
export { BubbleTooltip, BubbleTheme as default };
|
package/types/pc/utils/mitt.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, default as mitt } from '../../common/utils/mitt';
|