@baishuyun/ui-base 6.9.1 → 6.10.1
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-BNnmSPnl.js → Amap-BLSziesG.js} +1 -1
- package/dist/Amap/AmapCircle/index.js +4 -4
- package/dist/Amap/{AmapCircle-BDW6pnNR.js → AmapCircle-2qupysHe.js} +1 -1
- package/dist/Amap/AmapMarker/index.js +5 -5
- package/dist/Amap/{AmapMarker-CdoPWdff.js → AmapMarker-xEqoVnFR.js} +2 -2
- package/dist/Amap/AmapMarkerCluster/index.js +5 -5
- package/dist/Amap/{AmapMarkerCluster-CSIxiVC5.js → AmapMarkerCluster-CvEQa3o9.js} +2 -2
- package/dist/Amap/AmapProvider/index.js +6 -5
- package/dist/Amap/{AmapProvider-Cwi6WOe0.js → AmapProvider-DqFp3DZ5.js} +2 -2
- package/dist/Amap/hooks/index.js +3 -3
- package/dist/Amap/{hooks-DAN31s_-.js → hooks-BTcFpdd0.js} +1 -1
- package/dist/Amap/index.js +12 -11
- package/dist/Calendar/{AllDaySection-a96dIzs3.js → AllDaySection-BqbcPQls.js} +1 -1
- package/dist/Calendar/{Calendar-Bcs9mxET.js → Calendar-gEtuBW7Y.js} +9 -10
- package/dist/Calendar/{CurrentTimeIndicator-CNKsVEXH.js → CurrentTimeIndicator-dRYot1Rk.js} +24 -18
- package/dist/Calendar/{EventCard-B1LoBxth.js → EventCard-Di5UX4pB.js} +1 -2
- package/dist/Calendar/{TimeGrid-DIw8oCqY.js → TimeGrid-CBpDFAM4.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +15 -14
- package/dist/Calendar/subcomponents/AllDaySection/index.js +5 -4
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -3
- package/dist/Calendar/subcomponents/EventCard/index.js +4 -3
- package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/{theme-xnrMsnkg.js → theme-i60ueO92.js} +1 -1
- package/dist/Calendar/utils/index.js +1 -1
- package/dist/Calendar/utils/layout/index.js +1 -1
- package/dist/Calendar/utils/theme/index.js +2 -2
- package/dist/Card/index.js +2 -2
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/ColorPicker-CYlrnMwM.js +174 -0
- package/dist/ColorPicker/index.js +6 -6
- package/dist/ConfigProvider/index.js +4 -3
- package/dist/DatePicker/DatePicker-CagGt_f0.js +101 -0
- package/dist/DatePicker/{DatePickerPanel-C_TDG3HH.js → DatePickerPanel-CaDZzxMD.js} +3 -3
- package/dist/DatePicker/index.js +7 -6
- package/dist/DatePicker/style/index.js +2 -2
- package/dist/DatePicker/{style-CNtPPsZp.js → style-UKXn1N_p.js} +1 -1
- package/dist/DropDown/DropDown-CLuQf970.js +178 -0
- package/dist/DropDown/index.js +8 -7
- package/dist/DropDown/style/index.js +2 -2
- package/dist/DropDown/{style-Fdp-U4md.js → style-LLDVPpPa.js} +1 -1
- package/dist/Editor/Buttons-ByO5rS19.js +937 -0
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +12 -12
- package/dist/Editor/constants/index.js +3 -3
- package/dist/Editor/index.js +667 -298
- package/dist/Gantt/GanttChart/index.js +11 -10
- package/dist/Gantt/{GanttChart-DjwZsxEj.js → GanttChart-DvCAp8Dk.js} +3 -5
- package/dist/Gantt/GanttTable/index.js +6 -6
- package/dist/Gantt/{GanttTable-xbXD_PWI.js → GanttTable-DyVJOVo3.js} +1 -1
- package/dist/Gantt/GanttToolBar/index.js +9 -8
- package/dist/Gantt/{GanttToolBar-BTeTsR6Z.js → GanttToolBar-CxT68kmT.js} +2 -3
- package/dist/Gantt/index.js +15 -14
- package/dist/Gantt/{theme-DLNvgM9X.js → theme-2LyXJRDe.js} +1 -1
- package/dist/Gantt/utils/index.js +1 -1
- package/dist/Gantt/utils/theme/index.js +2 -2
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-hzCCJQ1z.js → InputTag-yRPO90Ku.js} +2 -2
- package/dist/InputTag/index.js +5 -5
- package/dist/Loading/{Loading-DiywS7ex.js → Loading-BF_dtuLc.js} +1 -1
- package/dist/Loading/index.js +4 -4
- package/dist/Modal/Modal-Cb7Msq26.js +96 -0
- package/dist/Modal/index.js +3 -2
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/OverlayContext-CVSFoyqN.js +23 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/{ScrollBar-QhXVe8zd.js → ScrollBar-N2pOLv-8.js} +1 -1
- package/dist/ScrollBar/index.js +2 -2
- package/dist/Segmented/{Segmented-BDz1hMDT.js → Segmented-BCQRrc65.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Select/Select-iwzfNy9d.js +753 -0
- package/dist/Select/{SelectInputSearch-COUzreau.js → SelectInputSearch-Bc_aPNbG.js} +1 -1
- package/dist/Select/index.js +8 -7
- package/dist/Table/{Table-yQXQEk6d.js → Table-Cm8zFl2G.js} +2 -2
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/index.js +5 -5
- package/dist/Table/style/index.js +2 -2
- package/dist/Table/{style-DgiPEsSp.js → style-C4wp0IOM.js} +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-BiKW70CL.js → Tabs-BPWRIwtD.js} +118 -103
- package/dist/Tabs/index.js +5 -5
- package/dist/Tooltip/Tooltip-Bb3Jx-If.js +172 -0
- package/dist/Tooltip/index.js +3 -2
- package/dist/Tree/index.js +2 -2
- package/dist/Tree/utils/index.js +1 -1
- package/dist/components/ColorPicker/ColorPalettes.d.ts +3 -8
- package/dist/components/ColorPicker/ColorPicker.type.d.ts +6 -9
- package/dist/components/ColorPicker/constants.d.ts +3 -1
- package/dist/components/ColorPicker/index.d.ts +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +2 -0
- package/dist/components/DatePicker/interface.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/BulletListButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeLanguageButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/IndentButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/NumberListButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/OutdentButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.d.ts +5 -4
- package/dist/components/Editor/ToolbarPlugin/Buttons/RedoButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/StrikeThroughButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SubscriptButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SuperscriptButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/UndoButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +10 -0
- package/dist/components/Editor/ToolbarPlugin/context/HistoryStateProvider.d.ts +8 -0
- package/dist/components/Editor/ToolbarPlugin/context/TextFormatsContext.d.ts +8 -1
- package/dist/components/Editor/ToolbarPlugin/icons/ToolbarIcon.d.ts +13 -0
- package/dist/components/Editor/constants/codeLanguages.d.ts +69 -0
- package/dist/components/Editor/constants/index.d.ts +2 -0
- package/dist/components/Editor/plugins/CodeHighlightPlugin.d.ts +1 -0
- package/dist/components/Editor/plugins/LinkColorPlugin.d.ts +2 -0
- package/dist/components/Editor/plugins/PasteStripImagePlugin.d.ts +1 -0
- package/dist/components/Editor/utils/codeHighlighter.d.ts +12 -0
- package/dist/components/Editor/utils/formatTruncatedFilename.d.ts +4 -0
- package/dist/components/Editor/utils/stripImagesFromHtml.d.ts +1 -0
- package/dist/components/Overlay/OverlayContext.d.ts +16 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +45 -44
- package/dist/locale/lang/en-US.json.d.ts +14 -2
- package/dist/locale/lang/zh-CN.json.d.ts +14 -2
- package/dist/locale/lang/zh-TW.json.d.ts +14 -2
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-DxrZpdIb.js → ConfigProvider-vPuwReNX.js} +70 -36
- package/dist/vendors/{LocaleContext-Dcw6C1LX.js → LocaleContext-CN9doEXT.js} +14 -2
- package/dist/vendors/{Tree-DXmVRDn0.js → Tree-B09frqQX.js} +1 -0
- package/dist/vendors/{useLocale-BKZX2_zw.js → useLocale-sawv8CEL.js} +1 -1
- package/dist/vendors/{version-DiV_Cnd8.js → version-DdQLttdL.js} +1 -1
- package/package.json +7 -1
- package/dist/ColorPicker/ColorPicker-t1uBeATW.js +0 -155
- package/dist/DatePicker/DatePicker--kMNwM9Q.js +0 -96
- package/dist/DropDown/DropDown-yDH9V_9Y.js +0 -171
- package/dist/Editor/Buttons-BhStZyIa.js +0 -620
- package/dist/Modal/Modal-LiztSF7x.js +0 -92
- package/dist/Select/Select-D6EK7whJ.js +0 -744
- package/dist/Tooltip/Tooltip-Ch9lti_7.js +0 -168
- package/dist/vendors/color-D6XBXROa.js +0 -12
- /package/dist/Amap/{AmapContext-D7Njjm5a.js → AmapContext-CJBe6lld.js} +0 -0
- /package/dist/Amap/{useMarkerInfoWindowController-BQmhR0N7.js → useMarkerInfoWindowController-Cjx0xQXw.js} +0 -0
- /package/dist/Card/{Card-CtKLNh3n.js → Card-Ds5Rpq--.js} +0 -0
- /package/dist/vendors/{cssVars-BYg1matG.js → cssVars-l4-kP_14.js} +0 -0
- /package/dist/vendors/{mergeRefs-Bsywq1Vo.js → mergeRefs-TiJ0xjUN.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-BApqkHSu.js → useFloatingOverlay-B3M9k8nj.js} +0 -0
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* 预设颜色网格组件
|
|
3
|
-
*/
|
|
1
|
+
import { ColorPickerPalette } from './ColorPicker.type';
|
|
4
2
|
interface PresetColorsProps {
|
|
5
|
-
/** 当前选中的颜色 */
|
|
6
3
|
currentColor: string;
|
|
7
|
-
/** 颜色选择回调 */
|
|
8
4
|
onColorSelect: (color: string) => void;
|
|
9
|
-
/** 颜色选项 */
|
|
10
5
|
options: string[];
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
className?: string;
|
|
7
|
+
palette?: ColorPickerPalette;
|
|
13
8
|
}
|
|
14
9
|
declare const ColorPalettes: React.FC<PresetColorsProps>;
|
|
15
10
|
export default ColorPalettes;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/** 内置色卡:`vivid` 鲜艳色相深浅档,`basic` 强调色 + 浅底 + 灰度 */
|
|
3
|
+
export type ColorPickerPalette = 'vivid' | 'basic';
|
|
2
4
|
/**
|
|
3
5
|
* 颜色选择器的属性接口
|
|
4
6
|
*/
|
|
@@ -25,18 +27,13 @@ export interface ColorPickerProps {
|
|
|
25
27
|
/** @default false */
|
|
26
28
|
disabled?: boolean;
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* 预设色板。`vivid` / `basic` 使用内置色卡,也可传入自定义颜色数组。
|
|
31
|
+
* @default 'vivid'
|
|
29
32
|
*/
|
|
30
|
-
presetColors?: string[];
|
|
33
|
+
presetColors?: ColorPickerPalette | string[];
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
35
|
+
* 指定颜色选择器外层面板渲染的父级 DOM 节点。内部自定义取色面板挂在外层面板上。
|
|
33
36
|
* @default undefined (默认渲染到 body 元素上)
|
|
34
|
-
* @example
|
|
35
|
-
* ```tsx
|
|
36
|
-
* <ColorPicker getPopupContainer={() => document.getElementById('container')}>
|
|
37
|
-
* <button>选择颜色</button>
|
|
38
|
-
* </ColorPicker>
|
|
39
|
-
* ```
|
|
40
37
|
*/
|
|
41
38
|
getPopupContainer?: () => HTMLElement;
|
|
42
39
|
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { ColorPickerPalette } from './ColorPicker.type';
|
|
1
2
|
declare const COLOR_OPTIONS_RGBA: string[];
|
|
2
|
-
|
|
3
|
+
declare const resolvePresetColors: (presetColors?: ColorPickerPalette | string[]) => string[];
|
|
4
|
+
export { COLOR_OPTIONS_RGBA, resolvePresetColors };
|
|
@@ -10,6 +10,8 @@ export type ConfigProviderProps = PropsWithChildren<{
|
|
|
10
10
|
locale?: Locale;
|
|
11
11
|
messages?: Record<string, any>;
|
|
12
12
|
amap?: AmapConfig;
|
|
13
|
+
/** 全局浮层 z-index 偏移。第一层 = offset + 1000。默认 0 */
|
|
14
|
+
overlayOffset?: number;
|
|
13
15
|
}>;
|
|
14
16
|
export type ConfigContextValue = {
|
|
15
17
|
locale?: Locale;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
export interface UploadImageItem {
|
|
2
|
+
src: string;
|
|
3
|
+
fileName: string;
|
|
4
|
+
}
|
|
1
5
|
export interface UploadImageRef {
|
|
2
|
-
getValue: () => Promise<
|
|
3
|
-
src: string;
|
|
4
|
-
fileName: string;
|
|
5
|
-
}>;
|
|
6
|
+
getValue: () => Promise<UploadImageItem[]>;
|
|
6
7
|
}
|
|
7
8
|
declare const UploadImage: import('react').ForwardRefExoticComponent<import('react').RefAttributes<UploadImageRef>>;
|
|
8
9
|
export default UploadImage;
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { getToolbarButton, listRegisteredToolbarButtons, registerToolbarButton, unregisterToolbarButton } from './registry';
|
|
2
2
|
declare const builtinButtons: {
|
|
3
|
+
undo: import('react').FC<{}>;
|
|
4
|
+
redo: import('react').FC<{}>;
|
|
3
5
|
bold: import('react').FC<{}>;
|
|
4
6
|
underline: import('react').FC<{}>;
|
|
5
7
|
italic: import('react').FC<{}>;
|
|
8
|
+
strikethrough: import('react').FC<{}>;
|
|
9
|
+
superscript: import('react').FC<{}>;
|
|
10
|
+
subscript: import('react').FC<{}>;
|
|
6
11
|
fontSize: import('react').FC<{}>;
|
|
7
12
|
fontColor: import('react').FC<{}>;
|
|
8
13
|
fill: import('react').FC<{}>;
|
|
14
|
+
bullet: import('react').FC<{}>;
|
|
15
|
+
number: import('react').FC<{}>;
|
|
16
|
+
outdent: import('react').FC<{}>;
|
|
17
|
+
indent: import('react').FC<{}>;
|
|
9
18
|
align: import('react').FC<{}>;
|
|
10
19
|
link: import('react').FC<{}>;
|
|
11
20
|
unLink: import('react').FC<{}>;
|
|
12
21
|
picture: import('react').FC<{}>;
|
|
22
|
+
code: import('react').FC<{}>;
|
|
13
23
|
};
|
|
14
24
|
export type BuiltinButtonName = keyof typeof builtinButtons;
|
|
15
25
|
export type ToolbarButtonName = BuiltinButtonName | (string & {});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
type HistoryState = {
|
|
3
|
+
canUndo: boolean;
|
|
4
|
+
canRedo: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useHistoryStateContext: () => HistoryState;
|
|
7
|
+
declare const HistoryStateProvider: React.FC<PropsWithChildren>;
|
|
8
|
+
export default HistoryStateProvider;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { CodeLanguageId } from '../../constants/codeLanguages';
|
|
2
2
|
export type TextFormatsState = {
|
|
3
3
|
bold: boolean;
|
|
4
4
|
italic: boolean;
|
|
5
5
|
underline: boolean;
|
|
6
|
+
strikethrough: boolean;
|
|
7
|
+
superscript: boolean;
|
|
8
|
+
subscript: boolean;
|
|
6
9
|
fontSize: string;
|
|
7
10
|
fontColor: string;
|
|
8
11
|
backgroundColor: string;
|
|
9
12
|
align: 'left' | 'center' | 'right';
|
|
13
|
+
listType: 'bullet' | 'number' | false;
|
|
14
|
+
canOutdent: boolean;
|
|
15
|
+
isCodeBlock: boolean;
|
|
16
|
+
codeLanguage: CodeLanguageId;
|
|
10
17
|
link?: {
|
|
11
18
|
link?: string;
|
|
12
19
|
linkText?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const StrikeThroughIcon: () => import("react").JSX.Element;
|
|
2
|
+
declare const UndoIcon: () => import("react").JSX.Element;
|
|
3
|
+
declare const RedoIcon: () => import("react").JSX.Element;
|
|
4
|
+
declare const SuperscriptIcon: () => import("react").JSX.Element;
|
|
5
|
+
declare const SubscriptIcon: () => import("react").JSX.Element;
|
|
6
|
+
declare const IndentIncreaseIcon: () => import("react").JSX.Element;
|
|
7
|
+
declare const IndentDecreaseIcon: () => import("react").JSX.Element;
|
|
8
|
+
declare const ListOrderedIcon: () => import("react").JSX.Element;
|
|
9
|
+
declare const ListUnorderedIcon: () => import("react").JSX.Element;
|
|
10
|
+
declare const CodeBlockIcon: () => import("react").JSX.Element;
|
|
11
|
+
declare const TableIcon: () => import("react").JSX.Element;
|
|
12
|
+
declare const HtmlIcon: () => import("react").JSX.Element;
|
|
13
|
+
export { StrikeThroughIcon, UndoIcon, RedoIcon, SuperscriptIcon, SubscriptIcon, IndentIncreaseIcon, IndentDecreaseIcon, ListOrderedIcon, ListUnorderedIcon, CodeBlockIcon, TableIcon, HtmlIcon, };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare const DEFAULT_CODE_LANGUAGE = "plaintext";
|
|
2
|
+
export declare const CODE_HIGHLIGHT_THEME = "github-light";
|
|
3
|
+
export declare const CODE_LANGUAGES: readonly [{
|
|
4
|
+
readonly id: "plaintext";
|
|
5
|
+
readonly label: "Plain text";
|
|
6
|
+
}, {
|
|
7
|
+
readonly id: "css";
|
|
8
|
+
readonly label: "CSS";
|
|
9
|
+
}, {
|
|
10
|
+
readonly id: "html";
|
|
11
|
+
readonly label: "HTML";
|
|
12
|
+
}, {
|
|
13
|
+
readonly id: "xml";
|
|
14
|
+
readonly label: "XML";
|
|
15
|
+
}, {
|
|
16
|
+
readonly id: "javascript";
|
|
17
|
+
readonly label: "JavaScript";
|
|
18
|
+
}, {
|
|
19
|
+
readonly id: "typescript";
|
|
20
|
+
readonly label: "TypeScript";
|
|
21
|
+
}, {
|
|
22
|
+
readonly id: "jsx";
|
|
23
|
+
readonly label: "JSX";
|
|
24
|
+
}, {
|
|
25
|
+
readonly id: "go";
|
|
26
|
+
readonly label: "Go";
|
|
27
|
+
}, {
|
|
28
|
+
readonly id: "php";
|
|
29
|
+
readonly label: "PHP";
|
|
30
|
+
}, {
|
|
31
|
+
readonly id: "c";
|
|
32
|
+
readonly label: "C";
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: "python";
|
|
35
|
+
readonly label: "Python";
|
|
36
|
+
}, {
|
|
37
|
+
readonly id: "java";
|
|
38
|
+
readonly label: "Java";
|
|
39
|
+
}, {
|
|
40
|
+
readonly id: "cpp";
|
|
41
|
+
readonly label: "C++";
|
|
42
|
+
}, {
|
|
43
|
+
readonly id: "csharp";
|
|
44
|
+
readonly label: "C#";
|
|
45
|
+
}, {
|
|
46
|
+
readonly id: "vb";
|
|
47
|
+
readonly label: "Visual Basic";
|
|
48
|
+
}, {
|
|
49
|
+
readonly id: "sql";
|
|
50
|
+
readonly label: "SQL";
|
|
51
|
+
}, {
|
|
52
|
+
readonly id: "ruby";
|
|
53
|
+
readonly label: "Ruby";
|
|
54
|
+
}, {
|
|
55
|
+
readonly id: "swift";
|
|
56
|
+
readonly label: "Swift";
|
|
57
|
+
}, {
|
|
58
|
+
readonly id: "bash";
|
|
59
|
+
readonly label: "Bash";
|
|
60
|
+
}, {
|
|
61
|
+
readonly id: "lua";
|
|
62
|
+
readonly label: "Lua";
|
|
63
|
+
}, {
|
|
64
|
+
readonly id: "markdown";
|
|
65
|
+
readonly label: "Markdown";
|
|
66
|
+
}];
|
|
67
|
+
export type CodeLanguageId = (typeof CODE_LANGUAGES)[number]['id'];
|
|
68
|
+
export declare const CODE_LANGUAGE_BY_ID: Record<string, (typeof CODE_LANGUAGES)[number]>;
|
|
69
|
+
export declare const normalizeCodeLanguage: (language: string | null | undefined) => CodeLanguageId;
|
|
@@ -38,4 +38,6 @@ export declare const FONT_SIZES: readonly [{
|
|
|
38
38
|
export declare const DEFAULT_FONT_SIZE = "16px";
|
|
39
39
|
export declare const DEFAULT_FONT_COLOR = "#000";
|
|
40
40
|
export declare const DEFAULT_BACKGROUND_COLOR = "transparent";
|
|
41
|
+
export declare const IMAGE_MAX_BYTES: number;
|
|
42
|
+
export declare const IMAGE_MAX_COUNT = 10;
|
|
41
43
|
export type FontSize = (typeof FONT_SIZES)[number]['value'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CodeHighlightPlugin(): null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function PasteStripImagePlugin(): null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HighlighterCore } from '@shikijs/core';
|
|
2
|
+
import { CodeNode } from '@lexical/code-core';
|
|
3
|
+
import { LexicalNode } from 'lexical';
|
|
4
|
+
import { CodeLanguageId } from '../constants/codeLanguages';
|
|
5
|
+
type HighlightLang = Exclude<CodeLanguageId, 'plaintext'>;
|
|
6
|
+
export declare const isHighlightLang: (language: string) => language is HighlightLang;
|
|
7
|
+
export declare const loadCodeHighlighter: () => Promise<HighlighterCore>;
|
|
8
|
+
export declare const isCodeLanguageReady: (highlighter: HighlighterCore, language: string) => language is HighlightLang;
|
|
9
|
+
export declare const loadCodeLanguage: (language: HighlightLang) => Promise<HighlighterCore>;
|
|
10
|
+
export declare const loadCodeTheme: () => Promise<HighlighterCore>;
|
|
11
|
+
export declare const $tokenizeCodeNode: (codeNode: CodeNode, language: string, highlighter: HighlighterCore | null) => LexicalNode[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function stripImagesFromHtml(html: string): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
/** 第一层浮层底座。嵌套时改为 parentZ + STEP */
|
|
3
|
+
export declare const OVERLAY_Z_BASE = 1000;
|
|
4
|
+
export declare const OVERLAY_Z_STEP = 50;
|
|
5
|
+
type OverlayContextValue = {
|
|
6
|
+
parentZ?: number;
|
|
7
|
+
offset: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const OverlayContext: import('react').Context<OverlayContextValue>;
|
|
10
|
+
export type OverlayProviderProps = PropsWithChildren<{
|
|
11
|
+
zIndex?: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const OverlayProvider: ({ zIndex, offset, children }: OverlayProviderProps) => import("react").JSX.Element;
|
|
15
|
+
export declare const useOverlayZIndex: (override?: number) => number;
|
|
16
|
+
export {};
|
|
@@ -11,7 +11,7 @@ export type TooltipProps = {
|
|
|
11
11
|
content?: ReactNode;
|
|
12
12
|
trigger?: TooltipTrigger;
|
|
13
13
|
style?: CSSProperties;
|
|
14
|
-
/** 浮层 z-index
|
|
14
|
+
/** 浮层 z-index,默认 Overlay 底座;未传时写入 `--bsy-tooltip-z-index` */
|
|
15
15
|
zIndex?: number;
|
|
16
16
|
showArrow?: boolean;
|
|
17
17
|
placement?: Placement;
|
|
@@ -3,6 +3,8 @@ export { Amap, AmapCircle, AmapMarker, AmapMarkerCluster, AmapProvider, useAmap,
|
|
|
3
3
|
export type { AmapCircleEventContext, AmapCircleProps, AmapMarkerClusterContent, AmapMarkerClusterEventContext, AmapMarkerClusterFitOptions, AmapMarkerClusterInfoWindowContext, AmapMarkerClusterMarkerContext, AmapMarkerClusterMarkerEventContext, AmapMarkerClusterMarkerOffset, AmapMarkerClusterProps, AmapMarkerClusterRenderClusterContext, AmapMarkerClusterRuntime, AmapMarkerEventContext, AmapMarkerInfoWindowNativeOptions, AmapMarkerInfoWindowOptions, AmapMarkerProps, AmapProps, AmapProviderProps, LngLat, UseAmapResult, UseCurrentLocationOptions, UseCurrentLocationResult, } from './Amap';
|
|
4
4
|
export { ConfigProvider } from './ConfigProvider';
|
|
5
5
|
export type { AmapConfig, ConfigProviderProps } from './ConfigProvider';
|
|
6
|
+
export { OverlayProvider, useOverlayZIndex, OVERLAY_Z_BASE, OVERLAY_Z_STEP } from './Overlay';
|
|
7
|
+
export type { OverlayProviderProps } from './Overlay';
|
|
6
8
|
export { LocalTheme } from './theme';
|
|
7
9
|
export { default as Card } from './Card';
|
|
8
10
|
export { default as Modal } from './Modal';
|
package/dist/index.js
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-DdQLttdL.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-BBDcb-yw.js";
|
|
4
|
-
import "./vendors/LocaleContext-
|
|
5
|
-
import { r as t, t as n } from "./vendors/ConfigProvider-
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import "./Amap/
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import
|
|
16
|
-
import { t as
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import "./vendors/
|
|
4
|
+
import "./vendors/LocaleContext-CN9doEXT.js";
|
|
5
|
+
import { r as t, t as n } from "./vendors/ConfigProvider-vPuwReNX.js";
|
|
6
|
+
import { a as r, i, n as a, t as o } from "./Overlay/OverlayContext-CVSFoyqN.js";
|
|
7
|
+
import "./Amap/AmapContext-CJBe6lld.js";
|
|
8
|
+
import { t as s } from "./Amap/AmapProvider-DqFp3DZ5.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";
|
|
15
|
+
import "./Overlay/index.js";
|
|
16
|
+
import { t as m } from "./Card/Card-Ds5Rpq--.js";
|
|
17
|
+
import { t as h } from "./Modal/Modal-Cb7Msq26.js";
|
|
18
|
+
import { t as g } from "./ColorPicker/ColorPicker-CYlrnMwM.js";
|
|
19
|
+
import "./vendors/useFloatingOverlay-B3M9k8nj.js";
|
|
20
|
+
import "./vendors/useLocale-sawv8CEL.js";
|
|
20
21
|
import "./vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
21
|
-
import { t as
|
|
22
|
-
import { n as
|
|
23
|
-
import { t as
|
|
24
|
-
import "./Select/SelectInputSearch-
|
|
25
|
-
import { t as
|
|
22
|
+
import { t as _ } from "./Segmented/Segmented-BCQRrc65.js";
|
|
23
|
+
import { n as v, t as y } from "./Tooltip/Tooltip-Bb3Jx-If.js";
|
|
24
|
+
import { t as b } from "./Select/Select-iwzfNy9d.js";
|
|
25
|
+
import "./Select/SelectInputSearch-Bc_aPNbG.js";
|
|
26
|
+
import { t as x } from "./vendors/Tree-B09frqQX.js";
|
|
26
27
|
import "./CheckBox/CheckBox-ByWSy9Yr.js";
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { t as
|
|
30
|
-
import { t as
|
|
28
|
+
import { t as S } from "./CheckBox/CheckBox-nBm0u6zX.js";
|
|
29
|
+
import { t as C } from "./Radio/Radio-CX9cUqb7.js";
|
|
30
|
+
import { t as w } from "./NotFoundContent/NotFoundContent-BLmzWNBi.js";
|
|
31
|
+
import { t as T } from "./ScrollBar/ScrollBar-N2pOLv-8.js";
|
|
31
32
|
import "./vendors/useFloatingPortal-CmVJbuRm.js";
|
|
32
33
|
import "./Tree/index.js";
|
|
33
|
-
import { n as
|
|
34
|
-
import { t as
|
|
35
|
-
import "./DropDown/style-
|
|
36
|
-
import { t as
|
|
34
|
+
import { n as E, t as D } from "./Tabs/Tabs-BPWRIwtD.js";
|
|
35
|
+
import { t as O } from "./DropDown/DropDown-CLuQf970.js";
|
|
36
|
+
import "./DropDown/style-LLDVPpPa.js";
|
|
37
|
+
import { t as k } from "./Loading/Loading-BF_dtuLc.js";
|
|
37
38
|
import "./NotFoundContent/index.js";
|
|
38
|
-
import { t as
|
|
39
|
+
import { t as A } from "./InputTag/InputTag-yRPO90Ku.js";
|
|
39
40
|
import "./Calendar/context-4tCN5X33.js";
|
|
40
|
-
import { t as
|
|
41
|
-
import { t as
|
|
41
|
+
import { t as j } from "./Calendar/Calendar-gEtuBW7Y.js";
|
|
42
|
+
import { t as M } from "./DatePicker/DatePicker-CagGt_f0.js";
|
|
42
43
|
import "./DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
43
44
|
import "./DatePicker/pickerLocale-BRnNjLcv.js";
|
|
44
|
-
import "./DatePicker/style-
|
|
45
|
+
import "./DatePicker/style-UKXn1N_p.js";
|
|
45
46
|
import "./Calendar/layout-Dz-grtu9.js";
|
|
46
47
|
import "./Calendar/TimeAxis-C9e2BdYs.js";
|
|
47
|
-
import "./Calendar/TimeGrid-
|
|
48
|
-
import "./Calendar/CurrentTimeIndicator-
|
|
49
|
-
import "./Calendar/EventCard-
|
|
50
|
-
import "./Calendar/AllDaySection-
|
|
51
|
-
import "./Calendar/theme-
|
|
52
|
-
import { a as
|
|
53
|
-
import { t as
|
|
54
|
-
import { n as
|
|
55
|
-
import { t as
|
|
48
|
+
import "./Calendar/TimeGrid-CBpDFAM4.js";
|
|
49
|
+
import "./Calendar/CurrentTimeIndicator-dRYot1Rk.js";
|
|
50
|
+
import "./Calendar/EventCard-Di5UX4pB.js";
|
|
51
|
+
import "./Calendar/AllDaySection-BqbcPQls.js";
|
|
52
|
+
import "./Calendar/theme-i60ueO92.js";
|
|
53
|
+
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-B0WELhG2.js";
|
|
54
|
+
import { t as H } from "./Table/Table-Cm8zFl2G.js";
|
|
55
|
+
import { n as U, t as W } from "./Table/hooks-BceUZQQm.js";
|
|
56
|
+
import { t as G } from "./Table/style-C4wp0IOM.js";
|
|
56
57
|
import "overlayscrollbars/overlayscrollbars.css";
|
|
57
|
-
export {
|
|
58
|
+
export { c as Amap, d as AmapCircle, f as AmapMarker, p as AmapMarkerCluster, s 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, H as Table, E as Tabs, y as Tooltip, v as TooltipFloatingContext, x as Tree, N as calculateFixedOffset, R as expandLeafColumns, B as getCellRowspan, P as getColumnsWidth, V as getRowKey, L as processRowspan, G as resolveTableThemeVars, z as shouldRenderCell, F as sortData, I as splitFixedColumns, l as useAmap, W as useColumnResize, u as useCurrentLocation, r as useOverlayZIndex, U as useTableVirtual };
|
|
@@ -52,17 +52,29 @@ declare const _default: {
|
|
|
52
52
|
"imageUrlInvalid": "Please enter a valid image URL",
|
|
53
53
|
"imageUrlNote": "Note: Enter image URL to insert image",
|
|
54
54
|
"inputImageUrl": "Enter Image URL",
|
|
55
|
-
"uploadImageNote": "
|
|
55
|
+
"uploadImageNote": "Single image size cannot exceed 5MB",
|
|
56
56
|
"uploadImageText": "Click or drag to upload image",
|
|
57
57
|
"previewImage": "Preview Image",
|
|
58
58
|
"underline": "Underline",
|
|
59
|
+
"strikethrough": "Strikethrough",
|
|
60
|
+
"superscript": "Superscript",
|
|
61
|
+
"subscript": "Subscript",
|
|
62
|
+
"undo": "Undo",
|
|
63
|
+
"redo": "Redo",
|
|
64
|
+
"indent": "Increase indent",
|
|
65
|
+
"outdent": "Decrease indent",
|
|
66
|
+
"bulletList": "Bulleted list",
|
|
67
|
+
"numberList": "Numbered list",
|
|
68
|
+
"codeBlock": "Code block",
|
|
69
|
+
"codeLanguage": "Language",
|
|
59
70
|
"imageFormatOnly": "Only image formats are supported",
|
|
60
71
|
"uploadImageFirst": "Please upload image first",
|
|
61
72
|
"imageAddSuccess": "Image added successfully",
|
|
62
73
|
"operationFailed": "Operation failed",
|
|
63
74
|
"onlyImageFormatsSupported": "Only image formats are supported",
|
|
64
75
|
"pleaseUploadImageFirst": "Please upload image first",
|
|
65
|
-
"imageSizeNote": "Image size cannot exceed
|
|
76
|
+
"imageSizeNote": "Image size cannot exceed 5MB",
|
|
77
|
+
"imageCountNote": "You can upload up to {{count}} images",
|
|
66
78
|
"clickOrDragToUpload": "Click or drag to upload image",
|
|
67
79
|
"enterImageUrl": "Enter image URL",
|
|
68
80
|
"pleaseEnterImageUrl": "Please enter image URL",
|
|
@@ -52,12 +52,24 @@ declare const _default: {
|
|
|
52
52
|
"imageUrlInvalid": "请输入有效的图片URL",
|
|
53
53
|
"imageUrlNote": "注:输入图片URL即可插入图片",
|
|
54
54
|
"inputImageUrl": "输入图片URL",
|
|
55
|
-
"uploadImageNote": "
|
|
55
|
+
"uploadImageNote": "单个图片大小不能超过 5MB",
|
|
56
56
|
"uploadImageText": "点击或拖拽上传图片",
|
|
57
57
|
"previewImage": "预览图片",
|
|
58
58
|
"underline": "下划线",
|
|
59
|
+
"strikethrough": "删除线",
|
|
60
|
+
"superscript": "上标",
|
|
61
|
+
"subscript": "下标",
|
|
62
|
+
"undo": "撤销",
|
|
63
|
+
"redo": "重做",
|
|
64
|
+
"indent": "增加缩进",
|
|
65
|
+
"outdent": "减少缩进",
|
|
66
|
+
"bulletList": "无序列表",
|
|
67
|
+
"numberList": "有序列表",
|
|
68
|
+
"codeBlock": "代码块",
|
|
69
|
+
"codeLanguage": "语言",
|
|
59
70
|
"imageFormatOnly": "只支持图片格式",
|
|
60
|
-
"imageSizeNote": "
|
|
71
|
+
"imageSizeNote": "图片大小不能超过 5MB",
|
|
72
|
+
"imageCountNote": "最多上传 {{count}} 张图片",
|
|
61
73
|
"uploadImageFirst": "请先上传图片",
|
|
62
74
|
"imageAddSuccess": "图片添加成功",
|
|
63
75
|
"operationFailed": "操作失败",
|
|
@@ -52,12 +52,24 @@ declare const _default: {
|
|
|
52
52
|
"imageUrlInvalid": "請輸入有效的圖片 URL",
|
|
53
53
|
"imageUrlNote": "註:輸入圖片 URL 即可插入圖片",
|
|
54
54
|
"inputImageUrl": "輸入圖片 URL",
|
|
55
|
-
"uploadImageNote": "
|
|
55
|
+
"uploadImageNote": "單張圖片大小不能超過 5MB",
|
|
56
56
|
"uploadImageText": "點擊或拖曳上傳圖片",
|
|
57
57
|
"previewImage": "預覽圖片",
|
|
58
58
|
"underline": "底線",
|
|
59
|
+
"strikethrough": "刪除線",
|
|
60
|
+
"superscript": "上標",
|
|
61
|
+
"subscript": "下標",
|
|
62
|
+
"undo": "復原",
|
|
63
|
+
"redo": "重做",
|
|
64
|
+
"indent": "增加縮排",
|
|
65
|
+
"outdent": "減少縮排",
|
|
66
|
+
"bulletList": "無序清單",
|
|
67
|
+
"numberList": "有序清單",
|
|
68
|
+
"codeBlock": "程式碼區塊",
|
|
69
|
+
"codeLanguage": "語言",
|
|
59
70
|
"imageFormatOnly": "僅支援圖片格式",
|
|
60
|
-
"imageSizeNote": "
|
|
71
|
+
"imageSizeNote": "圖片大小不能超過 5MB",
|
|
72
|
+
"imageCountNote": "最多上傳 {{count}} 張圖片",
|
|
61
73
|
"uploadImageFirst": "請先上傳圖片",
|
|
62
74
|
"imageAddSuccess": "圖片新增成功",
|
|
63
75
|
"operationFailed": "操作失敗",
|