@unicom-cloud/ui 0.8.111 → 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 +2 -2
- 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/{BlflTd2i.js → DfUcAhyT.js} +433 -470
- 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 +80 -80
- 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 +347 -348
- 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 +14 -14
- 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/COsRZOz1.js +0 -1813
- package/chunk/CylJZkp8.js +0 -6
- package/chunk/Di5KBCVQ.js +0 -4
- package/chunk/cW_5U6dL.js +0 -28
- package/types/common/utils/mitt.d.ts +0 -1
- 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
|
@@ -3,7 +3,7 @@ import { RICH_TEXT_CLASS_NAME_PREFIX as L } from "../rich-text/constant.js";
|
|
|
3
3
|
import lt from "@unicom-cloud/utils/diff";
|
|
4
4
|
import W from "lodash/cloneDeep";
|
|
5
5
|
import X from "lodash/isEqual";
|
|
6
|
-
import ue from "@unicom-cloud/utils/
|
|
6
|
+
import ue from "@unicom-cloud/utils/emitter";
|
|
7
7
|
import { isMacOS as fe } from "@unicom-cloud/utils/constant/platform";
|
|
8
8
|
var kt;
|
|
9
9
|
((r) => {
|
|
@@ -1357,10 +1357,7 @@ Ee.forEach((r) => {
|
|
|
1357
1357
|
});
|
|
1358
1358
|
});
|
|
1359
1359
|
});
|
|
1360
|
-
class m {
|
|
1361
|
-
constructor() {
|
|
1362
|
-
this.emitter = ue(), this.domListeners = {}, this.on("error", Nt.error);
|
|
1363
|
-
}
|
|
1360
|
+
class m extends ue {
|
|
1364
1361
|
static {
|
|
1365
1362
|
this.events = {
|
|
1366
1363
|
EDITOR_CHANGE: "editor-change",
|
|
@@ -1385,20 +1382,20 @@ class m {
|
|
|
1385
1382
|
USER: "user"
|
|
1386
1383
|
};
|
|
1387
1384
|
}
|
|
1385
|
+
constructor() {
|
|
1386
|
+
super(), this.domListeners = {}, this.on("error", Nt.error);
|
|
1387
|
+
}
|
|
1388
1388
|
on(...t) {
|
|
1389
|
-
return
|
|
1389
|
+
return super.on(...t);
|
|
1390
1390
|
}
|
|
1391
1391
|
once(...t) {
|
|
1392
|
-
return
|
|
1392
|
+
return super.once(...t);
|
|
1393
1393
|
}
|
|
1394
1394
|
emit(...t) {
|
|
1395
|
-
return Nt.log.call(Nt, ...t),
|
|
1395
|
+
return Nt.log.call(Nt, ...t), super.emit(...t);
|
|
1396
1396
|
}
|
|
1397
1397
|
off(...t) {
|
|
1398
|
-
return
|
|
1399
|
-
}
|
|
1400
|
-
offAll(...t) {
|
|
1401
|
-
return this.emitter.offAll(...t);
|
|
1398
|
+
return super.off(...t);
|
|
1402
1399
|
}
|
|
1403
1400
|
handleDOM(t, ...e) {
|
|
1404
1401
|
(this.domListeners[t.type] || []).forEach(({ node: s, handler: i }) => {
|
|
@@ -2346,14 +2343,14 @@ class u {
|
|
|
2346
2343
|
return this.imports[t] == null && tt.error(`Cannot import ${t}. Are you sure it was registered?`), this.imports[t];
|
|
2347
2344
|
}
|
|
2348
2345
|
static register(...t) {
|
|
2349
|
-
if (typeof t[0]
|
|
2350
|
-
const e = t[0], s = !!t[1], i = "attrName" in e ? e.attrName : e.blotName;
|
|
2351
|
-
typeof i == "string" ? this.register(`formats/${i}`, e, s) : Object.keys(e).forEach((n) => {
|
|
2352
|
-
this.register(n, e[n], s);
|
|
2353
|
-
});
|
|
2354
|
-
} else {
|
|
2346
|
+
if (typeof t[0] == "string") {
|
|
2355
2347
|
const e = t[0], s = t[1], i = !!t[2];
|
|
2356
2348
|
this.imports[e] != null && !i && tt.warn(`Overwriting ${e} with`, s), this.imports[e] = s, (e.startsWith("blots/") || e.startsWith("formats/")) && s && typeof s != "boolean" && s.blotName !== "abstract" && ht.register(s), typeof s.register == "function" && s.register(ht);
|
|
2349
|
+
} else {
|
|
2350
|
+
const e = t[0], s = !!t[1], i = "attrName" in e ? e.attrName : e.blotName;
|
|
2351
|
+
typeof i == "string" ? this.register(`formats/${i}`, e, s) : Object.entries(e).forEach(([n, o], l, a) => {
|
|
2352
|
+
this.register(n, o, s);
|
|
2353
|
+
});
|
|
2357
2354
|
}
|
|
2358
2355
|
}
|
|
2359
2356
|
constructor(t, e = {}) {
|
|
@@ -2403,12 +2400,12 @@ class u {
|
|
|
2403
2400
|
}
|
|
2404
2401
|
this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable(), this.allowReadOnlyEdits = !1;
|
|
2405
2402
|
}
|
|
2406
|
-
addContainer(t, e = null) {
|
|
2403
|
+
addContainer(t, e = null, s) {
|
|
2407
2404
|
if (typeof t == "string") {
|
|
2408
|
-
const
|
|
2409
|
-
t = document.createElement("div"), t.classList.add(
|
|
2405
|
+
const i = t;
|
|
2406
|
+
t = document.createElement("div"), t.classList.add(i);
|
|
2410
2407
|
}
|
|
2411
|
-
return this.container.insertBefore(t, e), t;
|
|
2408
|
+
return s instanceof HTMLElement ? s.appendChild(t) : this.container.insertBefore(t, e), t;
|
|
2412
2409
|
}
|
|
2413
2410
|
blur() {
|
|
2414
2411
|
this.selection.setRange(null);
|
|
@@ -2443,21 +2440,22 @@ class u {
|
|
|
2443
2440
|
return S.call(
|
|
2444
2441
|
this,
|
|
2445
2442
|
() => {
|
|
2446
|
-
const
|
|
2447
|
-
let
|
|
2448
|
-
if (
|
|
2443
|
+
const n = this.getSelection(!0);
|
|
2444
|
+
let o = new f();
|
|
2445
|
+
if (n == null)
|
|
2446
|
+
return o;
|
|
2449
2447
|
if (this.scroll.query(t, p.BLOCK))
|
|
2450
|
-
|
|
2448
|
+
o = this.editor.formatLine(n.index, n.length, {
|
|
2451
2449
|
[t]: e
|
|
2452
2450
|
});
|
|
2453
2451
|
else {
|
|
2454
|
-
if (
|
|
2455
|
-
return this.selection.format(t, e),
|
|
2456
|
-
|
|
2452
|
+
if (n.length === 0)
|
|
2453
|
+
return this.selection.format(t, e), o;
|
|
2454
|
+
o = this.editor.formatText(n.index, n.length, {
|
|
2457
2455
|
[t]: e
|
|
2458
2456
|
});
|
|
2459
2457
|
}
|
|
2460
|
-
return this.setSelection(
|
|
2458
|
+
return this.setSelection(n, m.sources.SILENT), o;
|
|
2461
2459
|
},
|
|
2462
2460
|
s
|
|
2463
2461
|
);
|
|
@@ -3,9 +3,9 @@ import Ke from "@unicom-cloud/icons/IconUiMenuFold";
|
|
|
3
3
|
import De from "@unicom-cloud/icons/IconUiMenuUnfold";
|
|
4
4
|
import Re from "lodash/isPlainObject";
|
|
5
5
|
import H, { useContext as A, useState as me, forwardRef as fe, useEffect as oe, useRef as ne, useMemo as _e } from "react";
|
|
6
|
-
import { a as he } from "./
|
|
6
|
+
import { a as he } from "./C1vY8016.js";
|
|
7
7
|
import { u as Ae } from "./BJeTDXdz.js";
|
|
8
|
-
import { u as te } from "./
|
|
8
|
+
import { u as te } from "./C5CbL5ku.js";
|
|
9
9
|
import { u as Te } from "./Bvxzb1wd.js";
|
|
10
10
|
import { u as Ue } from "./FgWHhRFz.js";
|
|
11
11
|
import { u as Z } from "./2vdCeheu.js";
|
|
@@ -15,7 +15,7 @@ import { o as Y } from "./BKKEev13.js";
|
|
|
15
15
|
import z from "../menu/context.js";
|
|
16
16
|
import ze from "../menu/Item.js";
|
|
17
17
|
import Be from "../menu/ItemGroup.js";
|
|
18
|
-
import { r as He } from "./
|
|
18
|
+
import { r as He } from "./CHQ8c547.js";
|
|
19
19
|
import { getStyle as ue } from "../utils/style.js";
|
|
20
20
|
import ge from "@unicom-cloud/icons/IconUiDown";
|
|
21
21
|
import { u as Ve } from "./BG6j6Ct7.js";
|