@baishuyun/ui-base 6.16.1 → 6.18.0
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/dist/Amap/Amap-CNsoge6e.js +826 -0
- package/dist/Amap/index.js +3 -10
- package/dist/Calendar/Calendar-Dk6FVbJ2.js +1608 -0
- package/dist/Calendar/index.js +10 -20
- package/dist/Card/index.js +2 -2
- package/dist/CheckBox/{CheckBox-B92dxWNo.js → CheckBox-CM24-quL.js} +1 -1
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/{ColorPicker-CPr5j6ZN.js → ColorPicker-B_wLqurt.js} +5 -5
- package/dist/ColorPicker/index.js +5 -5
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/DatePicker-CItkTpdZ.js +111 -0
- package/dist/DatePicker/{DatePickerPanel-CtLwYPmz.js → DatePickerPanel-DJXmFihs.js} +3 -4
- package/dist/DatePicker/index.js +6 -8
- package/dist/DatePicker/pickerLocale-Brf7_Tnd.js +30 -0
- package/dist/DropDown/{DropDown-Bi0TsCc_.js → DropDown-B_szM67V.js} +86 -82
- package/dist/DropDown/index.js +8 -9
- package/dist/Editor/index.js +2934 -961
- package/dist/Gantt/index.js +3055 -197
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-BfZycXw4.js → InputTag-C_5nm0eo.js} +2 -2
- package/dist/InputTag/index.js +4 -4
- package/dist/Loading/{Loading-DpbJSRYf.js → Loading-Cherk9Ax.js} +1 -1
- package/dist/Loading/index.js +3 -3
- package/dist/Modal/index.js +2 -2
- package/dist/NotFoundContent/index.js +2 -2
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +2 -2
- package/dist/ScrollBar/{ScrollBar-N2pOLv-8.js → ScrollBar-IMTuAOF5.js} +1 -1
- package/dist/ScrollBar/index.js +2 -2
- package/dist/Segmented/{Segmented-BCQRrc65.js → Segmented-DpmwFerw.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Select/{Select-CB5FqBui.js → Select-VIy6OKEj.js} +257 -253
- package/dist/Select/{SelectInputSearch-DUAv2vE4.js → SelectInputSearch-MApQHnU9.js} +1 -1
- package/dist/Select/index.js +12 -13
- package/dist/Table/Table-8ac6xLZv.js +808 -0
- package/dist/Table/index.js +4 -8
- package/dist/Tabs/{Tabs-B9uCGlxM.js → Tabs-DnoZ8BO0.js} +3 -3
- package/dist/Tabs/index.js +4 -4
- package/dist/Tooltip/{Tooltip-nJU13gX4.js → Tooltip-DBrt3t2r.js} +3 -3
- package/dist/Tooltip/index.js +3 -3
- package/dist/Tree/index.js +4 -4
- package/dist/components/Editor/EditorHtmlPreview.d.ts +3 -0
- package/dist/components/Editor/Preview/EditorPreview.d.ts +1 -1
- package/dist/components/Editor/Preview/HtmlPreview.d.ts +2 -3
- package/dist/components/Editor/Preview/PolishModal.d.ts +0 -1
- package/dist/components/Editor/Preview/TypesetModal.d.ts +0 -1
- package/dist/components/Editor/Preview/useAiPreviewHtml.d.ts +8 -0
- package/dist/components/Editor/__tests__/createTestEditor.d.ts +1 -0
- package/dist/components/Editor/commands/ImageCommands.d.ts +1 -0
- package/dist/components/Editor/constants/portableEditorStyles.d.ts +2 -0
- package/dist/components/Editor/context/EditorContainerContext.d.ts +3 -2
- package/dist/components/Editor/hooks/useEditorFocus.d.ts +1 -0
- package/dist/components/Editor/hooks/useTextFormatsState.d.ts +1 -2
- package/dist/components/Editor/index.d.ts +1 -0
- package/dist/components/Editor/nodes/ExtendedLinkNode.d.ts +9 -0
- package/dist/components/Editor/nodes/ImageComponent.d.ts +1 -0
- package/dist/components/Editor/nodes/ImageNode.d.ts +5 -2
- package/dist/components/Editor/utils/getToolbarItems.d.ts +14 -0
- package/dist/components/Editor/utils/placeProgrammaticCaret.d.ts +5 -0
- package/dist/components/Editor/utils/readTextFormats.d.ts +6 -0
- package/dist/components/Editor/utils/retainCodeSelection.d.ts +3 -0
- package/dist/index.js +28 -50
- package/dist/style.css +1 -1
- package/dist/vendors/Tree-D0Q1IZ2D.js +267 -0
- package/dist/vendors/{version-Dzs4mguZ.js → version-BucxnUKs.js} +1 -1
- package/package.json +1 -1
- package/dist/Amap/Amap-BLSziesG.js +0 -77
- package/dist/Amap/AmapCircle/index.js +0 -5
- package/dist/Amap/AmapCircle-2qupysHe.js +0 -55
- package/dist/Amap/AmapContext-CJBe6lld.js +0 -11
- package/dist/Amap/AmapMarker/index.js +0 -6
- package/dist/Amap/AmapMarker-xEqoVnFR.js +0 -153
- package/dist/Amap/AmapMarkerCluster/index.js +0 -6
- package/dist/Amap/AmapMarkerCluster-CvEQa3o9.js +0 -240
- package/dist/Amap/AmapProvider/index.js +0 -7
- package/dist/Amap/AmapProvider-B-R2DrkJ.js +0 -107
- package/dist/Amap/hooks/index.js +0 -4
- package/dist/Amap/hooks-BTcFpdd0.js +0 -121
- package/dist/Amap/useMarkerInfoWindowController-Cjx0xQXw.js +0 -94
- package/dist/Calendar/AllDaySection-pO7suGJM.js +0 -53
- package/dist/Calendar/Calendar-Cjagi7mU.js +0 -795
- package/dist/Calendar/CurrentTimeIndicator-BF3_INSL.js +0 -65
- package/dist/Calendar/EventCard-DKEZQRTp.js +0 -155
- package/dist/Calendar/TimeAxis-DUc6EL-j.js +0 -13
- package/dist/Calendar/TimeGrid-BV8x9VnF.js +0 -47
- package/dist/Calendar/colorUtils-BbeSMnOs.js +0 -55
- package/dist/Calendar/context/index.js +0 -3
- package/dist/Calendar/context-CamSpkj3.js +0 -21
- package/dist/Calendar/layout-CpOabFQ2.js +0 -300
- package/dist/Calendar/subcomponents/AllDaySection/index.js +0 -11
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +0 -8
- package/dist/Calendar/subcomponents/EventCard/index.js +0 -9
- package/dist/Calendar/subcomponents/TimeAxis/index.js +0 -5
- package/dist/Calendar/subcomponents/TimeGrid/index.js +0 -7
- package/dist/Calendar/theme-Dc8hjcdo.js +0 -71
- package/dist/Calendar/utils/index.js +0 -111
- package/dist/Calendar/utils/layout/index.js +0 -4
- package/dist/Calendar/utils/theme/index.js +0 -3
- package/dist/DatePicker/DatePicker-neAwNSsc.js +0 -101
- package/dist/DatePicker/ensureDayjsPlugins-CSqhjLS7.js +0 -15
- package/dist/DatePicker/pickerLocale-CcPLUbZO.js +0 -15
- package/dist/DatePicker/style/index.js +0 -3
- package/dist/DatePicker/style-W7f5wyUb.js +0 -15
- package/dist/DropDown/style/index.js +0 -3
- package/dist/DropDown/style-DZpkarne.js +0 -9
- package/dist/Editor/Buttons-OwLs5bxR.js +0 -1841
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +0 -21
- package/dist/Editor/constants/index.js +0 -61
- package/dist/Gantt/GanttChart/index.js +0 -21
- package/dist/Gantt/GanttChart-CDnF5qcc.js +0 -2292
- package/dist/Gantt/GanttHighlightContext-dtyoq-oj.js +0 -12
- package/dist/Gantt/GanttTable/index.js +0 -13
- package/dist/Gantt/GanttTable-fOv1Zn2-.js +0 -84
- package/dist/Gantt/GanttToolBar/index.js +0 -17
- package/dist/Gantt/GanttToolBar-BAoiWAHI.js +0 -120
- package/dist/Gantt/collapseKeys-BV_8sIA-.js +0 -160
- package/dist/Gantt/columnResize-Bkenlbab.js +0 -46
- package/dist/Gantt/constants-mEGQ1U1Q.js +0 -39
- package/dist/Gantt/highlightTarget-D3Nf9_7S.js +0 -25
- package/dist/Gantt/theme-B7Iap-tZ.js +0 -31
- package/dist/Gantt/timelineViewConfig-DNt7yi83.js +0 -118
- package/dist/Gantt/utils/index.js +0 -7
- package/dist/Gantt/utils/theme/index.js +0 -3
- package/dist/Select/style/index.js +0 -3
- package/dist/Select/style-C4A8kUd1.js +0 -9
- package/dist/Table/Table-3LSO0xSH.js +0 -545
- package/dist/Table/constants-D7wLH8Qy.js +0 -25
- package/dist/Table/hooks/index.js +0 -3
- package/dist/Table/hooks-DSBl2e4O.js +0 -108
- package/dist/Table/processRowspan-B6HMqw0Q.js +0 -144
- package/dist/Table/style/index.js +0 -3
- package/dist/Table/style-B8Cw8HJe.js +0 -9
- package/dist/Table/utils/index.js +0 -3
- package/dist/Tree/utils/index.js +0 -26
- package/dist/vendors/Tree-DSl4lDjx.js +0 -248
- /package/dist/Card/{Card-rJeWgxu5.js → Card-DAz0dvA3.js} +0 -0
- /package/dist/CheckBox/{CheckBox-DOK5N7z6.js → CheckBox-CcHskTz_.js} +0 -0
- /package/dist/Modal/{Modal-CRKitOOj.js → Modal-eZijJ7CB.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-BLmzWNBi.js → NotFoundContent-DJUQ0_2D.js} +0 -0
- /package/dist/Radio/{Radio-CX9cUqb7.js → Radio-D9jhW7K6.js} +0 -0
- /package/dist/vendors/{animations-Dn_5xJ7B.js → animations-ISccYUE3.js} +0 -0
- /package/dist/vendors/{cssVars-l4-kP_14.js → cssVars-UpriQzph.js} +0 -0
- /package/dist/vendors/{mergeRefs-TiJ0xjUN.js → mergeRefs-mEH9TBYV.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-B3M9k8nj.js → useFloatingOverlay-B66lOL8v.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-VpzL-EPh.js → useFloatingPortal-DJ1iKmW-.js} +0 -0
- /package/dist/vendors/{useLatchedPopupPortalRoot-4fVhqVT4.js → useLatchedPopupPortalRoot-CC6af8t-.js} +0 -0
- /package/dist/vendors/{useLocale-D31qCCff.js → useLocale-Be4e7Xfn.js} +0 -0
package/dist/Table/index.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-BucxnUKs.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../vendors/LocaleContext-DXQoOKM2.js";
|
|
4
|
-
import "../vendors/useLocale-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { n as f, t as p } from "./Table-3LSO0xSH.js";
|
|
8
|
-
import { n as m, t as h } from "./hooks-DSBl2e4O.js";
|
|
9
|
-
import { t as g } from "./style-B8Cw8HJe.js";
|
|
10
|
-
export { n as COLUMN_DEFAULTS, t as DEFAULT_CONFIG, e as TABLE_DOM, p as Table, p as default, f as TableBody, r as calculateFixedOffset, c as expandLeafColumns, u as getCellRowspan, i as getColumnsWidth, d as getRowKey, s as processRowspan, g as resolveTableThemeVars, l as shouldRenderCell, a as sortData, o as splitFixedColumns, h as useColumnResize, m as useTableVirtual };
|
|
4
|
+
import "../vendors/useLocale-Be4e7Xfn.js";
|
|
5
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./Table-8ac6xLZv.js";
|
|
6
|
+
export { o as COLUMN_DEFAULTS, a as DEFAULT_CONFIG, e as TABLE_DOM, h as Table, h as default, t as TableBody, c as calculateFixedOffset, g as expandLeafColumns, d as getCellRowspan, r as getColumnsWidth, i as getRowKey, m as processRowspan, u as resolveTableThemeVars, n as shouldRenderCell, f as sortData, l as splitFixedColumns, p as useColumnResize, s as useTableVirtual };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-DrdQOEJE.js";
|
|
2
2
|
import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
-
import { t as r } from "../vendors/useLocale-
|
|
4
|
-
import { r as i } from "../vendors/animations-
|
|
5
|
-
import { t as a } from "../vendors/useFloatingPortal-
|
|
3
|
+
import { t as r } from "../vendors/useLocale-Be4e7Xfn.js";
|
|
4
|
+
import { r as i } from "../vendors/animations-ISccYUE3.js";
|
|
5
|
+
import { t as a } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
6
6
|
import { isString as o } from "lodash-es";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { createContext as l, useCallback as u, useContext as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
|
package/dist/Tabs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-BucxnUKs.js";
|
|
2
2
|
import "../Icon/Icon-DrdQOEJE.js";
|
|
3
3
|
import "../vendors/LocaleContext-DXQoOKM2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
5
|
-
import "../vendors/useLocale-
|
|
6
|
-
import "../vendors/useFloatingPortal-
|
|
7
|
-
import { i as e, n as t, r as n, t as r } from "./Tabs-
|
|
5
|
+
import "../vendors/useLocale-Be4e7Xfn.js";
|
|
6
|
+
import "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
7
|
+
import { i as e, n as t, r as n, t as r } from "./Tabs-DnoZ8BO0.js";
|
|
8
8
|
export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
2
|
-
import { t as n } from "../vendors/animations-
|
|
3
|
-
import { t as r } from "../vendors/useLatchedPopupPortalRoot-
|
|
4
|
-
import { n as i } from "../vendors/mergeRefs-
|
|
2
|
+
import { t as n } from "../vendors/animations-ISccYUE3.js";
|
|
3
|
+
import { t as r } from "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
4
|
+
import { n as i } from "../vendors/mergeRefs-mEH9TBYV.js";
|
|
5
5
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
import { Fragment as c, cloneElement as l, createContext as u, isValidElement as d, useCallback as f, useEffect as ee, useMemo as p, useRef as te, useState as ne } from "react";
|
|
7
7
|
import { useControllableValue as re } from "ahooks";
|
package/dist/Tooltip/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-BucxnUKs.js";
|
|
2
2
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
-
import "../vendors/useLatchedPopupPortalRoot-
|
|
4
|
-
import { n as e, t } from "./Tooltip-
|
|
3
|
+
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
4
|
+
import { n as e, t } from "./Tooltip-DBrt3t2r.js";
|
|
5
5
|
export { e as TooltipFloatingContext, t as default };
|
package/dist/Tree/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-BucxnUKs.js";
|
|
2
2
|
import "../Icon/Icon-DrdQOEJE.js";
|
|
3
|
-
import { t as e } from "../vendors/Tree-
|
|
4
|
-
import "../CheckBox/CheckBox-
|
|
5
|
-
import "../Radio/Radio-
|
|
3
|
+
import { t as e } from "../vendors/Tree-D0Q1IZ2D.js";
|
|
4
|
+
import "../CheckBox/CheckBox-CcHskTz_.js";
|
|
5
|
+
import "../Radio/Radio-D9jhW7K6.js";
|
|
6
6
|
export { e as Tree };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorAiStatus } from '../interface';
|
|
2
|
-
/** loading
|
|
2
|
+
/** loading 时把预览合到下一帧;ready/error 立刻算,避免应用按钮闪一下。 */
|
|
3
3
|
export declare function usePolishProposedHtml(enabled: boolean, originalHtml: string, text: string, status: EditorAiStatus | undefined): string;
|
|
4
4
|
type EditorPreviewProps = {
|
|
5
5
|
maxLength?: number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EditorAiStatus } from '../interface';
|
|
2
|
+
export declare const toPreviewHtml: (html: string, status?: EditorAiStatus) => string;
|
|
3
|
+
export declare const useAiPreviewHtml: ({ enabled, status, revision, compute, }: {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
status: EditorAiStatus | undefined;
|
|
6
|
+
revision: string;
|
|
7
|
+
compute: () => string;
|
|
8
|
+
}) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createTestEditor: () => import('lexical').LexicalEditor;
|
|
@@ -9,3 +9,5 @@ export declare const PORTABLE_CODE_STYLES: Record<string, string>;
|
|
|
9
9
|
export declare const PORTABLE_TABLE_STYLES: Record<string, string>;
|
|
10
10
|
export declare const PORTABLE_CELL_STYLES: Record<string, string>;
|
|
11
11
|
export declare const PORTABLE_HEADER_CELL_STYLES: Record<string, string>;
|
|
12
|
+
/** 抵消 normalize 的 line-height:0 / relative,避免大字号画进上一块。 */
|
|
13
|
+
export declare const PORTABLE_SUP_SUB_STYLES: Record<string, string>;
|
|
@@ -22,13 +22,14 @@ interface EditorContainerContextType {
|
|
|
22
22
|
}
|
|
23
23
|
export type EditorAiStream = {
|
|
24
24
|
text: string;
|
|
25
|
-
reasoning?: string;
|
|
26
25
|
status?: EditorAiStatus;
|
|
27
26
|
errorMessage?: string;
|
|
28
27
|
};
|
|
29
28
|
declare const EditorContainerContext: import('react').Context<EditorContainerContextType | null>;
|
|
30
29
|
declare const EditorAiStreamContext: import('react').Context<EditorAiStream>;
|
|
30
|
+
declare const EditorAiReasoningContext: import('react').Context<string | undefined>;
|
|
31
31
|
export declare const useEditorContainer: () => EditorContainerContextType;
|
|
32
32
|
export declare const useEditorAiStream: () => EditorAiStream;
|
|
33
|
-
export
|
|
33
|
+
export declare const useEditorAiReasoning: () => string | undefined;
|
|
34
|
+
export { EditorAiStreamContext, EditorAiReasoningContext };
|
|
34
35
|
export default EditorContainerContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useEditorFocus: () => boolean;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function useTextFormatsState(): TextFormatsState;
|
|
1
|
+
export declare const useTextFormatsState: () => import('../ToolbarPlugin/context/TextFormatsContext').TextFormatsState;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Editor as default } from './Editor';
|
|
2
|
+
export { EditorHtmlPreview } from './EditorHtmlPreview';
|
|
2
3
|
export type { EditorUpload, EditorUploadContext, EditorUploadResult, EditorAi, EditorAiMode, EditorAiPreset, EditorAiStatus, EditorProps, EditorTheme, EditorContainerTheme, EditorToolbarFloating, EditorToolbarMode, EditorToolbarOffset, EditorToolbarPlacement, EditorToolbarProps, EditorToolbarSize, EditorToolbarTheme, } from './interface';
|
|
3
4
|
export { registerToolbarButton, unregisterToolbarButton, listRegisteredToolbarButtons, } from './ToolbarPlugin/Buttons';
|
|
4
5
|
export type { IconToolbarButtonName, TextToolbarButtonName, ToolbarButtonName, RegisteredToolbarButtonProps, } from './ToolbarPlugin/Buttons';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LinkNode, LinkAttributes, SerializedLinkNode } from '@lexical/link';
|
|
2
|
+
import { NodeKey } from 'lexical';
|
|
3
|
+
export declare class ExtendedLinkNode extends LinkNode {
|
|
4
|
+
constructor(url?: string, attributes?: LinkAttributes, key?: NodeKey);
|
|
5
|
+
static getType(): string;
|
|
6
|
+
static clone(node: ExtendedLinkNode): ExtendedLinkNode;
|
|
7
|
+
static importJSON(serializedNode: SerializedLinkNode): ExtendedLinkNode;
|
|
8
|
+
sanitizeUrl(url: string): string;
|
|
9
|
+
}
|
|
@@ -6,6 +6,7 @@ export interface ImagePayload {
|
|
|
6
6
|
width?: number;
|
|
7
7
|
height?: number;
|
|
8
8
|
dataId?: string;
|
|
9
|
+
dataSrc?: string;
|
|
9
10
|
key?: NodeKey;
|
|
10
11
|
}
|
|
11
12
|
export type SerializedImageNode = Spread<{
|
|
@@ -14,6 +15,7 @@ export type SerializedImageNode = Spread<{
|
|
|
14
15
|
width?: number;
|
|
15
16
|
height?: number;
|
|
16
17
|
dataId?: string;
|
|
18
|
+
dataSrc?: string;
|
|
17
19
|
}, SerializedLexicalNode>;
|
|
18
20
|
export declare class ImageNode extends DecoratorNode<ReactNode> {
|
|
19
21
|
__src: string;
|
|
@@ -21,9 +23,10 @@ export declare class ImageNode extends DecoratorNode<ReactNode> {
|
|
|
21
23
|
__width?: number;
|
|
22
24
|
__height?: number;
|
|
23
25
|
__dataId?: string;
|
|
26
|
+
__dataSrc?: string;
|
|
24
27
|
static getType(): string;
|
|
25
28
|
static clone(node: ImageNode): ImageNode;
|
|
26
|
-
constructor(src: string, altText?: string, width?: number, height?: number, key?: NodeKey, dataId?: string);
|
|
29
|
+
constructor(src: string, altText?: string, width?: number, height?: number, key?: NodeKey, dataId?: string, dataSrc?: string);
|
|
27
30
|
createDOM(): HTMLElement;
|
|
28
31
|
updateDOM(): false;
|
|
29
32
|
exportDOM(): {
|
|
@@ -48,7 +51,7 @@ export declare class ImageNode extends DecoratorNode<ReactNode> {
|
|
|
48
51
|
exportJSON(): SerializedImageNode;
|
|
49
52
|
isInline(): boolean;
|
|
50
53
|
}
|
|
51
|
-
export declare function $createImageNode({ src, altText, width, height, dataId, key, }: ImagePayload): ImageNode;
|
|
54
|
+
export declare function $createImageNode({ src, altText, width, height, dataId, dataSrc, key, }: ImagePayload): ImageNode;
|
|
52
55
|
export declare function $isImageNode(node: LexicalNode | null | undefined): node is ImageNode;
|
|
53
56
|
declare function convertImageElement(domNode: Node): null | DOMConversionOutput;
|
|
54
57
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EditorToolbarProps } from '../interface';
|
|
2
|
+
export type ToolbarItem = {
|
|
3
|
+
kind: 'button';
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
props?: Record<string, any>;
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'divider';
|
|
9
|
+
key: string;
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'language';
|
|
12
|
+
key: 'code-language';
|
|
13
|
+
};
|
|
14
|
+
export declare const getToolbarItems: (config: NonNullable<EditorToolbarProps["config"]>, inCodeBlock: boolean, inSourceMode: boolean) => ToolbarItem[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LexicalEditor } from 'lexical';
|
|
2
|
+
export declare const $placeProgrammaticCaret: (focused: boolean) => void;
|
|
3
|
+
export declare const $placeCaretIfFocused: (editor: LexicalEditor) => void;
|
|
4
|
+
export declare const $ensureRangeSelection: () => void;
|
|
5
|
+
export declare const ensureEditableRangeSelection: (editor: LexicalEditor) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LexicalEditor } from 'lexical';
|
|
2
|
+
import { TextFormatsState } from '../ToolbarPlugin/context/TextFormatsContext';
|
|
3
|
+
export declare const IDLE_TEXT_FORMATS: TextFormatsState;
|
|
4
|
+
export declare const $readTextFormats: (isFocused: boolean) => TextFormatsState;
|
|
5
|
+
export declare const applyWithLiveFormats: (editor: LexicalEditor, apply: (formats: TextFormatsState) => void) => void;
|
|
6
|
+
export declare const ensureEditableLiveFormats: (editor: LexicalEditor) => TextFormatsState;
|
package/dist/index.js
CHANGED
|
@@ -1,59 +1,37 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-BucxnUKs.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-DrdQOEJE.js";
|
|
4
4
|
import "./vendors/LocaleContext-DXQoOKM2.js";
|
|
5
5
|
import { r as t, t as n } from "./vendors/ConfigProvider-gZYvcwIQ.js";
|
|
6
6
|
import { a as r, i, n as a, t as o } from "./Overlay/OverlayContext-CVSFoyqN.js";
|
|
7
|
-
import "./Amap/
|
|
8
|
-
import { t as s } from "./Amap/AmapProvider-B-R2DrkJ.js";
|
|
9
|
-
import { t as c } from "./Amap/Amap-BLSziesG.js";
|
|
10
|
-
import { n as l, t as u } from "./Amap/hooks-BTcFpdd0.js";
|
|
11
|
-
import { t as d } from "./Amap/AmapCircle-2qupysHe.js";
|
|
12
|
-
import "./Amap/useMarkerInfoWindowController-Cjx0xQXw.js";
|
|
13
|
-
import { t as f } from "./Amap/AmapMarker-xEqoVnFR.js";
|
|
14
|
-
import { t as p } from "./Amap/AmapMarkerCluster-CvEQa3o9.js";
|
|
7
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./Amap/Amap-CNsoge6e.js";
|
|
15
8
|
import "./Overlay/index.js";
|
|
16
|
-
import { t as m } from "./Card/Card-
|
|
17
|
-
import { t as h } from "./Modal/Modal-
|
|
18
|
-
import { t as g } from "./ColorPicker/ColorPicker-
|
|
19
|
-
import "./vendors/useFloatingOverlay-
|
|
20
|
-
import "./vendors/useLocale-
|
|
21
|
-
import "./vendors/useLatchedPopupPortalRoot-
|
|
22
|
-
import { t as _ } from "./Segmented/Segmented-
|
|
23
|
-
import { n as v, t as y } from "./Tooltip/Tooltip-
|
|
24
|
-
import { t as b } from "./Select/Select-
|
|
25
|
-
import "./Select/SelectInputSearch-
|
|
26
|
-
import { t as x } from "./vendors/Tree-
|
|
27
|
-
import "./CheckBox/CheckBox-
|
|
28
|
-
import { t as S } from "./CheckBox/CheckBox-
|
|
29
|
-
import { t as C } from "./Radio/Radio-
|
|
30
|
-
import { t as w } from "./NotFoundContent/NotFoundContent-
|
|
31
|
-
import { t as T } from "./ScrollBar/ScrollBar-
|
|
32
|
-
import "./vendors/useFloatingPortal-
|
|
33
|
-
import "./Select/style-C4A8kUd1.js";
|
|
9
|
+
import { t as m } from "./Card/Card-DAz0dvA3.js";
|
|
10
|
+
import { t as h } from "./Modal/Modal-eZijJ7CB.js";
|
|
11
|
+
import { t as g } from "./ColorPicker/ColorPicker-B_wLqurt.js";
|
|
12
|
+
import "./vendors/useFloatingOverlay-B66lOL8v.js";
|
|
13
|
+
import "./vendors/useLocale-Be4e7Xfn.js";
|
|
14
|
+
import "./vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
15
|
+
import { t as _ } from "./Segmented/Segmented-DpmwFerw.js";
|
|
16
|
+
import { n as v, t as y } from "./Tooltip/Tooltip-DBrt3t2r.js";
|
|
17
|
+
import { t as b } from "./Select/Select-VIy6OKEj.js";
|
|
18
|
+
import "./Select/SelectInputSearch-MApQHnU9.js";
|
|
19
|
+
import { t as x } from "./vendors/Tree-D0Q1IZ2D.js";
|
|
20
|
+
import "./CheckBox/CheckBox-CcHskTz_.js";
|
|
21
|
+
import { t as S } from "./CheckBox/CheckBox-CM24-quL.js";
|
|
22
|
+
import { t as C } from "./Radio/Radio-D9jhW7K6.js";
|
|
23
|
+
import { t as w } from "./NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
24
|
+
import { t as T } from "./ScrollBar/ScrollBar-IMTuAOF5.js";
|
|
25
|
+
import "./vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
34
26
|
import "./Tree/index.js";
|
|
35
|
-
import { n as E, t as D } from "./Tabs/Tabs-
|
|
36
|
-
import { t as O } from "./DropDown/DropDown-
|
|
37
|
-
import "./
|
|
38
|
-
import { t as k } from "./Loading/Loading-DpbJSRYf.js";
|
|
27
|
+
import { n as E, t as D } from "./Tabs/Tabs-DnoZ8BO0.js";
|
|
28
|
+
import { t as O } from "./DropDown/DropDown-B_szM67V.js";
|
|
29
|
+
import { t as k } from "./Loading/Loading-Cherk9Ax.js";
|
|
39
30
|
import "./NotFoundContent/index.js";
|
|
40
|
-
import { t as A } from "./InputTag/InputTag-
|
|
41
|
-
import "./Calendar/
|
|
42
|
-
import { t as
|
|
43
|
-
import
|
|
44
|
-
import "./
|
|
45
|
-
import "./DatePicker/pickerLocale-CcPLUbZO.js";
|
|
46
|
-
import "./DatePicker/style-W7f5wyUb.js";
|
|
47
|
-
import "./Calendar/layout-CpOabFQ2.js";
|
|
48
|
-
import "./Calendar/TimeAxis-DUc6EL-j.js";
|
|
49
|
-
import "./Calendar/TimeGrid-BV8x9VnF.js";
|
|
50
|
-
import "./Calendar/CurrentTimeIndicator-BF3_INSL.js";
|
|
51
|
-
import "./Calendar/EventCard-DKEZQRTp.js";
|
|
52
|
-
import "./Calendar/AllDaySection-pO7suGJM.js";
|
|
53
|
-
import "./Calendar/theme-Dc8hjcdo.js";
|
|
54
|
-
import { a as N, c as P, d as F, f as I, n as L, o as R, r as z, t as B, u as V } from "./Table/processRowspan-B6HMqw0Q.js";
|
|
55
|
-
import { t as H } from "./Table/Table-3LSO0xSH.js";
|
|
56
|
-
import { n as U, t as W } from "./Table/hooks-DSBl2e4O.js";
|
|
57
|
-
import { t as G } from "./Table/style-B8Cw8HJe.js";
|
|
31
|
+
import { t as A } from "./InputTag/InputTag-C_5nm0eo.js";
|
|
32
|
+
import { t as j } from "./Calendar/Calendar-Dk6FVbJ2.js";
|
|
33
|
+
import { t as M } from "./DatePicker/DatePicker-CItkTpdZ.js";
|
|
34
|
+
import "./DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
35
|
+
import { c as N, d as P, f as F, i as I, l as L, m as R, n as z, o as B, p as V, r as H, s as U, t as W, u as G } from "./Table/Table-8ac6xLZv.js";
|
|
58
36
|
import "overlayscrollbars/overlayscrollbars.css";
|
|
59
|
-
export {
|
|
37
|
+
export { u as Amap, d as AmapCircle, l as AmapMarker, p as AmapMarkerCluster, f as AmapProvider, j as Calendar, m as Card, S as Checkbox, g as ColorPicker, n as ConfigProvider, M as DatePicker, O as DropDown, e as Icon, A as InputTag, k as Loading, t as LocalTheme, h as Modal, w as NotFoundContent, o as OVERLAY_Z_BASE, a as OVERLAY_Z_STEP, i as OverlayProvider, C as Radio, C as Ratio, T as ScrollBar, _ as Segmented, b as Select, D as TabSelect, W as Table, E as Tabs, y as Tooltip, v as TooltipFloatingContext, x as Tree, L as calculateFixedOffset, G as expandLeafColumns, B as getCellRowspan, P as getColumnsWidth, F as getRowKey, U as processRowspan, z as resolveTableThemeVars, N as shouldRenderCell, V as sortData, R as splitFixedColumns, s as useAmap, H as useColumnResize, c as useCurrentLocation, r as useOverlayZIndex, I as useTableVirtual };
|