@ydesign/react-editor 0.0.4 → 0.0.6
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/app.css +2 -2
- package/dist/app.d.ts +4 -4
- package/dist/app.js +2 -2
- package/dist/chunk-2PAJLUQH.js +1 -0
- package/dist/chunk-2XCWXNZD.js +1 -0
- package/dist/chunk-4BG4CHIB.js +1 -0
- package/dist/{chunk-VXTF2OL2.js → chunk-4HH3B3W3.js} +2 -1
- package/dist/chunk-4WITBL6X.js +1 -0
- package/dist/chunk-ARZMBVXU.js +1 -0
- package/dist/{chunk-MQZE5LZU.js → chunk-DCGJ6RKU.js} +1 -1
- package/dist/chunk-EN72YNS7.js +151 -0
- package/dist/{chunk-OV74NBJ5.js → chunk-FGCLY24Q.js} +2 -2
- package/dist/chunk-FOMWIGAQ.js +50 -0
- package/dist/chunk-HD2T2D4D.js +1 -0
- package/dist/chunk-HQSM4X2M.js +1 -0
- package/dist/chunk-INRJE7VS.js +1 -0
- package/dist/chunk-IPOZDTK2.js +9 -0
- package/dist/chunk-ISNCNIFJ.js +27 -0
- package/dist/chunk-KCNKLCD5.js +1 -0
- package/dist/chunk-LFWKF4C4.js +3 -0
- package/dist/chunk-N5KI6CPA.js +1 -0
- package/dist/chunk-NQYSJ5MN.js +1 -0
- package/dist/chunk-OA7Z7HNL.js +1 -0
- package/dist/chunk-OBJ5NZSC.js +1 -0
- package/dist/chunk-OFA6JIQB.js +9 -0
- package/dist/chunk-OG4HUTJF.js +16 -0
- package/dist/chunk-ONY3GLGA.js +1 -0
- package/dist/chunk-QX7ZGRSR.js +1 -0
- package/dist/chunk-R452ARGU.js +1 -0
- package/dist/chunk-TNBL7KOG.js +1 -0
- package/dist/chunk-TWH7TO5J.js +1 -0
- package/dist/chunk-TYHXQPZQ.js +1 -0
- package/dist/chunk-WHYEXY5V.js +54 -0
- package/dist/chunk-XXR5YN2B.js +9 -0
- package/dist/chunk-YLXPQ2GI.js +1 -0
- package/dist/chunk-YOQ663QO.js +1 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.js +1 -1
- package/dist/model/store.d.ts +9 -6
- package/dist/model/store.js +1 -1
- package/dist/project.d.ts +9 -2
- package/dist/project.js +1 -1
- package/dist/side-panel/background-panel.js +1 -1
- package/dist/side-panel/images-grid.d.ts +3 -1
- package/dist/side-panel/images-grid.js +1 -1
- package/dist/side-panel/index.js +1 -1
- package/dist/side-panel/layers-panel.js +1 -1
- package/dist/side-panel/photos-panel.d.ts +4 -2
- package/dist/side-panel/photos-panel.js +1 -1
- package/dist/side-panel/shapes-panel.d.ts +4 -2
- package/dist/side-panel/shapes-panel.js +1 -1
- package/dist/side-panel/side-panel.js +1 -1
- package/dist/side-panel/size-panel.js +1 -1
- package/dist/side-panel/tab-button.js +1 -1
- package/dist/side-panel/templates-panel.js +1 -1
- package/dist/side-panel/text-panel.js +1 -1
- package/dist/side-panel/upload-panel.d.ts +6 -3
- package/dist/side-panel/upload-panel.js +1 -1
- package/dist/toolbar/default-toolbar.js +1 -1
- package/dist/toolbar/download-button.d.ts +4 -2
- package/dist/toolbar/download-button.js +1 -1
- package/dist/toolbar/duplicate-button.js +1 -1
- package/dist/toolbar/figure-toolbar.js +1 -1
- package/dist/toolbar/filters-picker.js +1 -1
- package/dist/toolbar/flip-button.d.ts +4 -2
- package/dist/toolbar/flip-button.js +1 -1
- package/dist/toolbar/group-button.js +1 -1
- package/dist/toolbar/history-buttons.js +1 -1
- package/dist/toolbar/image-eraser-pen.d.ts +4 -2
- package/dist/toolbar/image-eraser-pen.js +1 -1
- package/dist/toolbar/image-remove-background.d.ts +4 -2
- package/dist/toolbar/image-remove-background.js +1 -1
- package/dist/toolbar/image-toolbar.d.ts +4 -2
- package/dist/toolbar/image-toolbar.js +1 -1
- package/dist/toolbar/lock-button.js +1 -1
- package/dist/toolbar/opacity-picker.js +1 -1
- package/dist/toolbar/position-picker.js +1 -1
- package/dist/toolbar/remove-button.js +1 -1
- package/dist/toolbar/text-ai-write.js +1 -1
- package/dist/toolbar/text-toolbar.js +1 -1
- package/dist/toolbar/toolbar.d.ts +2 -2
- package/dist/toolbar/toolbar.js +1 -1
- package/dist/topbar/create-design.d.ts +27 -0
- package/dist/topbar/create-design.js +1 -0
- package/dist/topbar/file-menu.d.ts +7 -2
- package/dist/topbar/file-menu.js +1 -1
- package/dist/topbar/topbar.js +5 -5
- package/dist/utils/l10n.d.ts +205 -3
- package/dist/utils/l10n.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-3TTTJUTT.js +0 -1
- package/dist/chunk-4FFLRF6N.js +0 -1
- package/dist/chunk-4HEMGHOQ.js +0 -1
- package/dist/chunk-53KFBGJB.js +0 -16
- package/dist/chunk-AGNRQAPA.js +0 -1
- package/dist/chunk-APQPKBER.js +0 -1
- package/dist/chunk-B35ZYWID.js +0 -1
- package/dist/chunk-CMH73CYQ.js +0 -27
- package/dist/chunk-COQ4GO5N.js +0 -1
- package/dist/chunk-CS6Z4TQU.js +0 -1
- package/dist/chunk-DBQHEZPG.js +0 -1
- package/dist/chunk-DJBTBRPS.js +0 -1
- package/dist/chunk-EOBIVNFF.js +0 -1
- package/dist/chunk-FXO52BV7.js +0 -1
- package/dist/chunk-GYDTKPW5.js +0 -1
- package/dist/chunk-H67HTXU4.js +0 -1
- package/dist/chunk-IQ7O55C5.js +0 -42
- package/dist/chunk-KLZXBPXI.js +0 -1
- package/dist/chunk-LCE6Z46D.js +0 -3
- package/dist/chunk-M4S26KQG.js +0 -1
- package/dist/chunk-MNACXCF5.js +0 -1
- package/dist/chunk-PSXS4WMN.js +0 -1
- package/dist/chunk-Q2L6VKFI.js +0 -9
- package/dist/chunk-R6Z6F447.js +0 -1
- package/dist/chunk-WGX437MN.js +0 -9
- package/dist/chunk-XK24AOVW.js +0 -54
- package/dist/chunk-XM3RPIUS.js +0 -9
- package/dist/chunk-XPAHGJGK.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-YLXPQ2GI.js";import"../chunk-4LUZF4CB.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as LayersPanel};
|
|
@@ -7,8 +7,10 @@ import '@ydesign/core';
|
|
|
7
7
|
import '../utils/fonts.js';
|
|
8
8
|
import 'mobx';
|
|
9
9
|
|
|
10
|
-
declare const PhotosPanel: ({ store }: {
|
|
10
|
+
declare const PhotosPanel: (({ store }: {
|
|
11
11
|
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element
|
|
12
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
13
15
|
|
|
14
16
|
export { PhotosPanel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-R452ARGU.js";import"../chunk-FOMWIGAQ.js";import"../chunk-WCHGSVUC.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as PhotosPanel};
|
|
@@ -7,8 +7,10 @@ import '@ydesign/core';
|
|
|
7
7
|
import '../utils/fonts.js';
|
|
8
8
|
import 'mobx';
|
|
9
9
|
|
|
10
|
-
declare const ShapesPanel: ({ store }: {
|
|
10
|
+
declare const ShapesPanel: (({ store }: {
|
|
11
11
|
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element
|
|
12
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
13
15
|
|
|
14
16
|
export { ShapesPanel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-OFA6JIQB.js";import"../chunk-MXZ6RXT3.js";import"../chunk-DCGJ6RKU.js";import"../chunk-7NNOHYKX.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as ShapesPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l}from"../chunk-
|
|
1
|
+
import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l}from"../chunk-WHYEXY5V.js";import"../chunk-ISNCNIFJ.js";import"../chunk-NQYSJ5MN.js";import"../chunk-YLXPQ2GI.js";import"../chunk-4LUZF4CB.js";import"../chunk-R452ARGU.js";import"../chunk-OFA6JIQB.js";import"../chunk-IPOZDTK2.js";import{a}from"../chunk-4HH3B3W3.js";import"../chunk-FGCLY24Q.js";import"../chunk-5C2MNUBC.js";import"../chunk-MXZ6RXT3.js";import"../chunk-XXR5YN2B.js";import"../chunk-N5KI6CPA.js";import"../chunk-YRJUN267.js";import"../chunk-RVXI723F.js";import"../chunk-OQ6HU62L.js";import"../chunk-FOMWIGAQ.js";import"../chunk-WCHGSVUC.js";import"../chunk-DCGJ6RKU.js";import"../chunk-7NNOHYKX.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{g as BackgroundSection,j as DEFAULT_SECTIONS,h as LayersSection,d as PhotosSection,a as SectionTab,e as ShapesSection,k as SidePanel,i as SizeSection,b as TemplatesSection,c as TextSection,f as UploadSection,l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-IPOZDTK2.js";import"../chunk-5C2MNUBC.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as SizePanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-4HH3B3W3.js";import"../chunk-O2XFH626.js";export{a as SectionTab};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-FGCLY24Q.js";import"../chunk-FOMWIGAQ.js";import"../chunk-WCHGSVUC.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as TemplatesPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-ISNCNIFJ.js";import"../chunk-FOMWIGAQ.js";import"../chunk-WCHGSVUC.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as TextPanel};
|
|
@@ -7,8 +7,11 @@ import '@ydesign/core';
|
|
|
7
7
|
import '../utils/fonts.js';
|
|
8
8
|
import 'mobx';
|
|
9
9
|
|
|
10
|
-
declare
|
|
10
|
+
declare function setUploadFunc(func: any): void;
|
|
11
|
+
declare const UploadPanel: (({ store }: {
|
|
11
12
|
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element
|
|
13
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
13
16
|
|
|
14
|
-
export { UploadPanel, UploadPanel as default };
|
|
17
|
+
export { UploadPanel, UploadPanel as default, setUploadFunc };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-NQYSJ5MN.js";import"../chunk-OQ6HU62L.js";import"../chunk-FOMWIGAQ.js";import"../chunk-WCHGSVUC.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{b as UploadPanel,c as default,a as setUploadFunc};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-N5KI6CPA.js";import"../chunk-YRJUN267.js";import"../chunk-RVXI723F.js";import"../chunk-OQ6HU62L.js";import"../chunk-WCHGSVUC.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as BackgroundPicker,b as DefaultToolbar,c as default};
|
|
@@ -7,8 +7,10 @@ import '@ydesign/core';
|
|
|
7
7
|
import '../utils/fonts.js';
|
|
8
8
|
import 'mobx';
|
|
9
9
|
|
|
10
|
-
declare const DownloadButton: ({ store }: {
|
|
10
|
+
declare const DownloadButton: (({ store }: {
|
|
11
11
|
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element
|
|
12
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
13
15
|
|
|
14
16
|
export { DownloadButton, DownloadButton as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-HQSM4X2M.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as DownloadButton,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-INRJE7VS.js";import"../chunk-ARZMBVXU.js";import"../chunk-JMIN2XMC.js";import"../chunk-O2XFH626.js";export{a as DuplicateButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-HD2T2D4D.js";import"../chunk-YOQ663QO.js";import"../chunk-YRJUN267.js";import"../chunk-RVXI723F.js";import"../chunk-WCHGSVUC.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{b as FigureFill,c as FigureSettings,d as FigureStroke,e as FigureToolbar,a as getFillKey};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-YOQ663QO.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as FiltersPicker};
|
|
@@ -7,10 +7,12 @@ import 'mobx-state-tree';
|
|
|
7
7
|
import '../utils/fonts.js';
|
|
8
8
|
import 'mobx';
|
|
9
9
|
|
|
10
|
-
declare const FlipButton: ({ element, store }: {
|
|
10
|
+
declare const FlipButton: (({ element, store }: {
|
|
11
11
|
elements?: Array<FabricObject>;
|
|
12
12
|
element?: FabricObject;
|
|
13
13
|
store: StoreType;
|
|
14
|
-
}) => react_jsx_runtime.JSX.Element
|
|
14
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
15
17
|
|
|
16
18
|
export { FlipButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-TYHXQPZQ.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as FlipButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-KCNKLCD5.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as GroupButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a}from"../chunk-
|
|
1
|
+
import{e as a}from"../chunk-OG4HUTJF.js";import"../chunk-QX7ZGRSR.js";import"../chunk-TNBL7KOG.js";import"../chunk-4BG4CHIB.js";import"../chunk-OA7Z7HNL.js";import"../chunk-KCNKLCD5.js";import"../chunk-LFWKF4C4.js";import"../chunk-TWH7TO5J.js";import"../chunk-4WITBL6X.js";import"../chunk-2PAJLUQH.js";import"../chunk-XRRO2RT7.js";import"../chunk-OBJ5NZSC.js";import"../chunk-INRJE7VS.js";import"../chunk-HD2T2D4D.js";import"../chunk-YOQ663QO.js";import"../chunk-TYHXQPZQ.js";import"../chunk-3TO57JPN.js";import"../chunk-CB23VFSC.js";import"../chunk-IUFYYEGO.js";import"../chunk-HQSM4X2M.js";import"../chunk-MXZ6RXT3.js";import"../chunk-N5KI6CPA.js";import"../chunk-YRJUN267.js";import"../chunk-RVXI723F.js";import"../chunk-OQ6HU62L.js";import"../chunk-WCHGSVUC.js";import"../chunk-DCGJ6RKU.js";import"../chunk-7NNOHYKX.js";import"../chunk-ARZMBVXU.js";import"../chunk-WJT6VPDR.js";import"../chunk-JMIN2XMC.js";import"../chunk-75WC3GVB.js";import"../chunk-O2XFH626.js";export{a as HistoryButtons};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { FabricImage } from '@ydesign/core';
|
|
3
3
|
|
|
4
|
-
declare const ImageEraserPen: ({ element }: {
|
|
4
|
+
declare const ImageEraserPen: (({ element }: {
|
|
5
5
|
element: FabricImage;
|
|
6
|
-
}) => react_jsx_runtime.JSX.Element
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
7
9
|
|
|
8
10
|
export { ImageEraserPen };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-TWH7TO5J.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as ImageEraserPen};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { FabricImage } from '@ydesign/core';
|
|
3
3
|
|
|
4
|
-
declare const ImageRemoveBackground: ({ element }: {
|
|
4
|
+
declare const ImageRemoveBackground: (({ element }: {
|
|
5
5
|
element: FabricImage;
|
|
6
|
-
}) => react_jsx_runtime.JSX.Element
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
7
9
|
|
|
8
10
|
export { ImageRemoveBackground };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-4WITBL6X.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as ImageRemoveBackground};
|
|
@@ -11,10 +11,12 @@ type Props = {
|
|
|
11
11
|
store: StoreType;
|
|
12
12
|
components?: any;
|
|
13
13
|
};
|
|
14
|
-
declare const ImageFitToBackground: ({ element, store }: {
|
|
14
|
+
declare const ImageFitToBackground: (({ element, store }: {
|
|
15
15
|
element: FabricImage;
|
|
16
16
|
store: StoreType;
|
|
17
|
-
}) => react_jsx_runtime.JSX.Element
|
|
17
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
18
20
|
declare const ImageCrop: (({ element, store }: {
|
|
19
21
|
element: FabricImage;
|
|
20
22
|
store: StoreType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-LFWKF4C4.js";import"../chunk-TWH7TO5J.js";import"../chunk-4WITBL6X.js";import"../chunk-YOQ663QO.js";import"../chunk-TYHXQPZQ.js";import"../chunk-3TO57JPN.js";import"../chunk-CB23VFSC.js";import"../chunk-MXZ6RXT3.js";import"../chunk-YRJUN267.js";import"../chunk-WCHGSVUC.js";import"../chunk-DCGJ6RKU.js";import"../chunk-7NNOHYKX.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{c as ImageClip,b as ImageCrop,a as ImageFitToBackground,d as ImageToolbar,e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-2PAJLUQH.js";import"../chunk-ARZMBVXU.js";import"../chunk-75WC3GVB.js";import"../chunk-O2XFH626.js";export{a as LockButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-OBJ5NZSC.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as OpacityPicker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-QX7ZGRSR.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as PositionPicker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-TNBL7KOG.js";import"../chunk-IUFYYEGO.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as RemoveButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-OA7Z7HNL.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as TextAiWrite};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-4BG4CHIB.js";import"../chunk-OA7Z7HNL.js";import"../chunk-YOQ663QO.js";import"../chunk-YRJUN267.js";import"../chunk-RVXI723F.js";import"../chunk-WCHGSVUC.js";import"../chunk-ARZMBVXU.js";import"../chunk-WJT6VPDR.js";import"../chunk-O2XFH626.js";export{a as ALIGN_OPTIONS,b as TextToolbar,c as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
2
|
+
import * as node_modules_styled_components_dist_types from 'node_modules/styled-components/dist/types';
|
|
3
3
|
import * as styled_components from 'styled-components';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { StoreType } from '../model/store.js';
|
|
@@ -10,7 +10,7 @@ import '@ydesign/core';
|
|
|
10
10
|
import '../utils/fonts.js';
|
|
11
11
|
import 'mobx';
|
|
12
12
|
|
|
13
|
-
declare const NavBarGroup:
|
|
13
|
+
declare const NavBarGroup: node_modules_styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
14
|
declare function registerToolbarComponent(type: string, reactComponent: any): void;
|
|
15
15
|
type ToolbarProps = {
|
|
16
16
|
store: StoreType;
|
package/dist/toolbar/toolbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-OG4HUTJF.js";import"../chunk-QX7ZGRSR.js";import"../chunk-TNBL7KOG.js";import"../chunk-4BG4CHIB.js";import"../chunk-OA7Z7HNL.js";import"../chunk-KCNKLCD5.js";import"../chunk-LFWKF4C4.js";import"../chunk-TWH7TO5J.js";import"../chunk-4WITBL6X.js";import"../chunk-2PAJLUQH.js";import"../chunk-XRRO2RT7.js";import"../chunk-OBJ5NZSC.js";import"../chunk-INRJE7VS.js";import"../chunk-HD2T2D4D.js";import"../chunk-YOQ663QO.js";import"../chunk-TYHXQPZQ.js";import"../chunk-3TO57JPN.js";import"../chunk-CB23VFSC.js";import"../chunk-IUFYYEGO.js";import"../chunk-HQSM4X2M.js";import"../chunk-MXZ6RXT3.js";import"../chunk-N5KI6CPA.js";import"../chunk-YRJUN267.js";import"../chunk-RVXI723F.js";import"../chunk-OQ6HU62L.js";import"../chunk-WCHGSVUC.js";import"../chunk-DCGJ6RKU.js";import"../chunk-7NNOHYKX.js";import"../chunk-ARZMBVXU.js";import"../chunk-WJT6VPDR.js";import"../chunk-JMIN2XMC.js";import"../chunk-75WC3GVB.js";import"../chunk-O2XFH626.js";export{a as NavBarGroup,c as Toolbar,d as default,b as registerToolbarComponent};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { StoreType } from '../model/store.js';
|
|
3
|
+
import 'fabric';
|
|
4
|
+
import 'mobx-state-tree/dist/internal';
|
|
5
|
+
import 'mobx-state-tree';
|
|
6
|
+
import '@ydesign/core';
|
|
7
|
+
import '../utils/fonts.js';
|
|
8
|
+
import 'mobx';
|
|
9
|
+
|
|
10
|
+
type Size = {
|
|
11
|
+
name: string;
|
|
12
|
+
desc: string;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
unit: string;
|
|
16
|
+
bgColor?: string;
|
|
17
|
+
};
|
|
18
|
+
interface CreateDesignProps {
|
|
19
|
+
store: StoreType;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
onConfirm: (size: Size) => void;
|
|
23
|
+
mode?: 'create' | 'open';
|
|
24
|
+
}
|
|
25
|
+
declare const CreateDesign: ({ visible, onClose, onConfirm }: CreateDesignProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
export { CreateDesign };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-EN72YNS7.js";import"../chunk-5C2MNUBC.js";import"../chunk-MXZ6RXT3.js";import"../chunk-O2XFH626.js";export{a as CreateDesign};
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { StoreType } from '../model/store.js';
|
|
3
|
+
import { ProjectType } from '../project.js';
|
|
3
4
|
import 'fabric';
|
|
4
5
|
import 'mobx-state-tree/dist/internal';
|
|
5
6
|
import 'mobx-state-tree';
|
|
6
7
|
import '@ydesign/core';
|
|
7
8
|
import '../utils/fonts.js';
|
|
8
9
|
import 'mobx';
|
|
10
|
+
import 'react';
|
|
9
11
|
|
|
10
|
-
declare const FileMenu: ({ store }: {
|
|
12
|
+
declare const FileMenu: (({ store, project }: {
|
|
11
13
|
store: StoreType;
|
|
12
|
-
|
|
14
|
+
project: ProjectType;
|
|
15
|
+
}) => react_jsx_runtime.JSX.Element) & {
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
13
18
|
|
|
14
19
|
export { FileMenu };
|
package/dist/topbar/file-menu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-2XCWXNZD.js";import"../chunk-EN72YNS7.js";import"../chunk-5C2MNUBC.js";import"../chunk-MXZ6RXT3.js";import"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{a as FileMenu};
|
package/dist/topbar/topbar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as l}from"../chunk-HQSM4X2M.js";import{a as d}from"../chunk-2XCWXNZD.js";import"../chunk-EN72YNS7.js";import{b as r}from"../chunk-5C2MNUBC.js";import"../chunk-MXZ6RXT3.js";import{c as n}from"../chunk-ARZMBVXU.js";import{b as p}from"../chunk-ONY3GLGA.js";import"../chunk-WJT6VPDR.js";import"../chunk-O2XFH626.js";import o from"styled-components";import{observer as s}from"mobx-react-lite";import{Input as m,Tooltip as c,Button as f}from"antd";import{CloudUpload as g}from"lucide-react";import{jsx as t,jsxs as i}from"react/jsx-runtime";var h=o("div")`
|
|
2
2
|
white-space: nowrap;
|
|
3
3
|
height: 50px;
|
|
4
4
|
padding: 0 15px;
|
|
@@ -11,18 +11,18 @@ import{a as n}from"../chunk-B35ZYWID.js";import{a}from"../chunk-FXO52BV7.js";imp
|
|
|
11
11
|
overflow-y: hidden;
|
|
12
12
|
max-width: 100vw;
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,v=o("div")`
|
|
15
15
|
@media screen and (max-width: 500px) {
|
|
16
16
|
display: flex;
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`,x=o("div")`
|
|
19
19
|
float: left;
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
height: 50px;
|
|
23
|
-
`,
|
|
23
|
+
`,y=o("div")`
|
|
24
24
|
float: right;
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
height: 50px;
|
|
28
|
-
`,
|
|
28
|
+
`,u=s(({project:e})=>(console.log(e.status),t(c,{title:"\u4FDD\u5B58\u4F5C\u56FE\u8BB0\u5F55",children:t(f,{type:"text",style:{marginLeft:14},icon:t(g,{size:16,style:{display:"flex"}}),children:"Save"})}))),z=s(({store:e})=>{let a=p();return t(h,{className:"topbar border-b-1 border-b-gray-200",children:i(v,{children:[i(x,{children:[i("div",{style:{display:"flex",alignItems:"center",gap:10,paddingRight:16,paddingLeft:16,userSelect:"none"},children:[t("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("rect",{width:"20",height:"20",fill:"rgb(22, 119, 255)"})}),t("span",{style:{fontWeight:500,fontSize:20,lineHeight:"100%",letterSpacing:.25},children:"Ydesign"})]}),t(d,{store:e,project:a}),t("div",{style:{paddingLeft:10,maxWidth:200},children:t(m,{placeholder:n("topbar.editableTextPlaceholder")})}),i("div",{style:{paddingLeft:16,fontSize:14},className:"text-gray-600",children:[r({px:e.width,unit:e.unit,dpi:e.dpi,precious:0})," x"," ",r({px:e.height,unit:e.unit,dpi:e.dpi,precious:0})," ",e.unit]}),t(u,{project:a})]}),t(y,{children:t(l,{store:e})})]})})});export{z as Topbar};
|
package/dist/utils/l10n.d.ts
CHANGED
|
@@ -1,21 +1,223 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 设置/更新翻译
|
|
3
|
+
* @param {object} newTranslations - 新的翻译对象
|
|
4
|
+
* @param {object} options - 配置选项
|
|
5
|
+
* @param {boolean} options.validate - 是否验证翻译完整性
|
|
6
|
+
*/
|
|
7
|
+
declare const setTranslations: (newTranslations: any, { validate }?: {
|
|
8
|
+
validate?: boolean | undefined;
|
|
9
|
+
}) => void;
|
|
10
|
+
/**
|
|
11
|
+
* 获取所有翻译(返回普通 JS 对象)
|
|
12
|
+
* @returns {object}
|
|
3
13
|
*/
|
|
4
14
|
declare const getTranslations: () => {
|
|
5
15
|
toolbar: {
|
|
16
|
+
undo: string;
|
|
17
|
+
redo: string;
|
|
18
|
+
duration: string;
|
|
6
19
|
opacity: string;
|
|
7
20
|
effects: string;
|
|
21
|
+
blur: string;
|
|
22
|
+
textBackground: string;
|
|
23
|
+
backgroundCornerRadius: string;
|
|
24
|
+
backgroundOpacity: string;
|
|
25
|
+
backgroundPadding: string;
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
brightness: string;
|
|
28
|
+
filters: string;
|
|
29
|
+
sepia: string;
|
|
30
|
+
grayscale: string;
|
|
31
|
+
contrast: string;
|
|
32
|
+
saturation: string;
|
|
33
|
+
vibrance: string;
|
|
34
|
+
hueRotation: string;
|
|
35
|
+
noise: string;
|
|
36
|
+
pixelate: string;
|
|
37
|
+
textStroke: string;
|
|
38
|
+
shadow: string;
|
|
39
|
+
border: string;
|
|
40
|
+
cornerRadius: string;
|
|
41
|
+
textleft: string;
|
|
42
|
+
textcenter: string;
|
|
43
|
+
textright: string;
|
|
44
|
+
textjustify: string;
|
|
45
|
+
textBold: string;
|
|
46
|
+
textItalic: string;
|
|
47
|
+
textUnderline: string;
|
|
48
|
+
textStrikethrough: string;
|
|
49
|
+
splitByGrapheme: string;
|
|
8
50
|
position: string;
|
|
51
|
+
layering: string;
|
|
52
|
+
toForward: string;
|
|
53
|
+
up: string;
|
|
54
|
+
down: string;
|
|
55
|
+
toBottom: string;
|
|
56
|
+
alignLeft: string;
|
|
57
|
+
alignCenter: string;
|
|
58
|
+
alignRight: string;
|
|
59
|
+
alignTop: string;
|
|
60
|
+
alignMiddle: string;
|
|
61
|
+
alignBottom: string;
|
|
62
|
+
flip: string;
|
|
63
|
+
flipHorizontally: string;
|
|
64
|
+
flipVertically: string;
|
|
65
|
+
fitToBackground: string;
|
|
66
|
+
removeBackground: string;
|
|
67
|
+
removeBackgroundTitle: string;
|
|
68
|
+
cancelRemoveBackground: string;
|
|
69
|
+
confirmRemoveBackground: string;
|
|
70
|
+
eraserPen: string;
|
|
71
|
+
eraserPenTitle: string;
|
|
72
|
+
cancelEraserPen: string;
|
|
73
|
+
confirmEraserPen: string;
|
|
74
|
+
crop: string;
|
|
75
|
+
cropDone: string;
|
|
76
|
+
cropCancel: string;
|
|
77
|
+
clip: string;
|
|
78
|
+
removeClip: string;
|
|
79
|
+
removeMask: string;
|
|
80
|
+
transparency: string;
|
|
81
|
+
lockedDescription: string;
|
|
82
|
+
unlockedDescription: string;
|
|
83
|
+
removeElements: string;
|
|
84
|
+
duplicateElements: string;
|
|
85
|
+
download: string;
|
|
86
|
+
saveAsImage: string;
|
|
87
|
+
saveAsPDF: string;
|
|
88
|
+
lineHeight: string;
|
|
89
|
+
letterSpacing: string;
|
|
90
|
+
offsetX: string;
|
|
91
|
+
offsetY: string;
|
|
92
|
+
color: string;
|
|
93
|
+
selectable: string;
|
|
94
|
+
draggable: string;
|
|
95
|
+
removable: string;
|
|
96
|
+
resizable: string;
|
|
97
|
+
contentEditable: string;
|
|
98
|
+
styleEditable: string;
|
|
99
|
+
alwaysOnTop: string;
|
|
100
|
+
showInExport: string;
|
|
9
101
|
ungroupElements: string;
|
|
10
102
|
groupElements: string;
|
|
103
|
+
lineSize: string;
|
|
104
|
+
fade: string;
|
|
105
|
+
move: string;
|
|
106
|
+
zoom: string;
|
|
107
|
+
rotate: string;
|
|
108
|
+
none: string;
|
|
109
|
+
bounce: string;
|
|
110
|
+
blink: string;
|
|
111
|
+
strength: string;
|
|
112
|
+
spaceEvenly: string;
|
|
113
|
+
horizontalDistribution: string;
|
|
114
|
+
verticalDistribution: string;
|
|
115
|
+
strokeWidth: string;
|
|
116
|
+
strokeSettings: string;
|
|
117
|
+
colorPicker: {
|
|
118
|
+
solid: string;
|
|
119
|
+
linear: string;
|
|
120
|
+
angle: string;
|
|
121
|
+
};
|
|
122
|
+
aiText: {
|
|
123
|
+
aiWrite: string;
|
|
124
|
+
rewrite: string;
|
|
125
|
+
shorten: string;
|
|
126
|
+
continue: string;
|
|
127
|
+
proofread: string;
|
|
128
|
+
tones: string;
|
|
129
|
+
friendly: string;
|
|
130
|
+
professional: string;
|
|
131
|
+
humorous: string;
|
|
132
|
+
formal: string;
|
|
133
|
+
customPrompt: string;
|
|
134
|
+
generatedResult: string;
|
|
135
|
+
cancel: string;
|
|
136
|
+
generate: string;
|
|
137
|
+
back: string;
|
|
138
|
+
tryAgain: string;
|
|
139
|
+
insert: string;
|
|
140
|
+
promptPlaceholder: string;
|
|
141
|
+
};
|
|
142
|
+
addImage: string;
|
|
143
|
+
addText: string;
|
|
144
|
+
fileType: string;
|
|
145
|
+
quality: string;
|
|
146
|
+
multiplier: string;
|
|
147
|
+
size: string;
|
|
148
|
+
};
|
|
149
|
+
workspace: {
|
|
150
|
+
noPages: string;
|
|
151
|
+
addPage: string;
|
|
152
|
+
removePage: string;
|
|
153
|
+
duplicatePage: string;
|
|
154
|
+
moveUp: string;
|
|
155
|
+
moveDown: string;
|
|
11
156
|
};
|
|
12
|
-
workspace: {};
|
|
13
157
|
scale: {
|
|
14
158
|
reset: string;
|
|
15
159
|
};
|
|
160
|
+
error: {
|
|
161
|
+
removeBackground: string;
|
|
162
|
+
};
|
|
16
163
|
sidePanel: {
|
|
17
164
|
templates: string;
|
|
165
|
+
searchTemplatesWithSameSize: string;
|
|
166
|
+
searchPlaceholder: string;
|
|
167
|
+
otherFormats: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
error: string;
|
|
170
|
+
text: string;
|
|
171
|
+
uploadFont: string;
|
|
172
|
+
myFonts: string;
|
|
173
|
+
photos: string;
|
|
174
|
+
videos: string;
|
|
175
|
+
animations: string;
|
|
176
|
+
effects: string;
|
|
177
|
+
elements: string;
|
|
178
|
+
shapes: string;
|
|
179
|
+
lines: string;
|
|
180
|
+
upload: string;
|
|
181
|
+
uploadImage: string;
|
|
182
|
+
uploadTip: string;
|
|
183
|
+
background: string;
|
|
184
|
+
resize: string;
|
|
185
|
+
layers: string;
|
|
186
|
+
layerTypes: {
|
|
187
|
+
image: string;
|
|
188
|
+
text: string;
|
|
189
|
+
svg: string;
|
|
190
|
+
line: string;
|
|
191
|
+
figure: string;
|
|
192
|
+
group: string;
|
|
193
|
+
};
|
|
194
|
+
layersTip: string;
|
|
195
|
+
noLayers: string;
|
|
196
|
+
namePlaceholder: string;
|
|
197
|
+
useMagicResize: string;
|
|
198
|
+
clipImage: string;
|
|
199
|
+
width: string;
|
|
200
|
+
height: string;
|
|
201
|
+
magicResizeDescription: string;
|
|
202
|
+
headerText: string;
|
|
203
|
+
createHeader: string;
|
|
204
|
+
subHeaderText: string;
|
|
205
|
+
createSubHeader: string;
|
|
206
|
+
bodyText: string;
|
|
207
|
+
createBody: string;
|
|
208
|
+
units: string;
|
|
209
|
+
};
|
|
210
|
+
topbar: {
|
|
211
|
+
newDesign: string;
|
|
212
|
+
language: string;
|
|
213
|
+
editableTextPlaceholder: string;
|
|
18
214
|
};
|
|
19
215
|
};
|
|
216
|
+
/**
|
|
217
|
+
* 获取翻译文本
|
|
218
|
+
* @param {string} key - 翻译键,如 'toolbar.opacity'
|
|
219
|
+
* @returns {string} 翻译文本,如果不存在则返回格式化后的键名
|
|
220
|
+
*/
|
|
221
|
+
declare const translate: (key: string) => string;
|
|
20
222
|
|
|
21
|
-
export { getTranslations };
|
|
223
|
+
export { getTranslations, setTranslations, translate };
|
package/dist/utils/l10n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-O2XFH626.js";
|
|
1
|
+
import{a,b,c}from"../chunk-ARZMBVXU.js";import"../chunk-O2XFH626.js";export{b as getTranslations,a as setTranslations,c as translate};
|