@baishuyun/ui-base 6.17.0 → 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/index.js +1 -1
- package/dist/Calendar/{Calendar-BlsUX2vX.js → Calendar-Dk6FVbJ2.js} +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-BRwPZeui.js → DatePicker-CItkTpdZ.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-UwjSXS-U.js → DatePickerPanel-DJXmFihs.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DropDown/index.js +1 -1
- package/dist/Editor/index.js +606 -587
- package/dist/Gantt/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/index.js +1 -1
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/components/Editor/Preview/EditorPreview.d.ts +1 -1
- 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/commands/ImageCommands.d.ts +1 -0
- package/dist/components/Editor/context/EditorContainerContext.d.ts +3 -2
- package/dist/components/Editor/nodes/ImageComponent.d.ts +1 -0
- package/dist/components/Editor/nodes/ImageNode.d.ts +5 -2
- package/dist/index.js +3 -3
- package/dist/vendors/{version-CfjNx5v2.js → version-BucxnUKs.js} +1 -1
- package/package.json +1 -1
package/dist/Gantt/index.js
CHANGED
package/dist/Icon/index.js
CHANGED
package/dist/InputTag/index.js
CHANGED
package/dist/Loading/index.js
CHANGED
package/dist/Modal/index.js
CHANGED
package/dist/Overlay/index.js
CHANGED
package/dist/Radio/index.js
CHANGED
package/dist/ScrollBar/index.js
CHANGED
package/dist/Segmented/index.js
CHANGED
package/dist/Select/index.js
CHANGED
package/dist/Table/index.js
CHANGED
package/dist/Tabs/index.js
CHANGED
package/dist/Tooltip/index.js
CHANGED
package/dist/Tree/index.js
CHANGED
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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 {};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
@@ -29,8 +29,8 @@ import { t as O } from "./DropDown/DropDown-B_szM67V.js";
|
|
|
29
29
|
import { t as k } from "./Loading/Loading-Cherk9Ax.js";
|
|
30
30
|
import "./NotFoundContent/index.js";
|
|
31
31
|
import { t as A } from "./InputTag/InputTag-C_5nm0eo.js";
|
|
32
|
-
import { t as j } from "./Calendar/Calendar-
|
|
33
|
-
import { t as M } from "./DatePicker/DatePicker-
|
|
32
|
+
import { t as j } from "./Calendar/Calendar-Dk6FVbJ2.js";
|
|
33
|
+
import { t as M } from "./DatePicker/DatePicker-CItkTpdZ.js";
|
|
34
34
|
import "./DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
35
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";
|
|
36
36
|
import "overlayscrollbars/overlayscrollbars.css";
|