labellife-design-tool 0.1.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/LICENSE +23 -0
- package/README.md +128 -0
- package/dist/lib/CanvasEditor.d.ts +8 -0
- package/dist/lib/CanvasEditor.d.ts.map +1 -0
- package/dist/lib/components/Header.d.ts +17 -0
- package/dist/lib/components/Header.d.ts.map +1 -0
- package/dist/lib/components/LeftMenu.d.ts +13 -0
- package/dist/lib/components/LeftMenu.d.ts.map +1 -0
- package/dist/lib/components/TemplateInputModal.d.ts +10 -0
- package/dist/lib/components/TemplateInputModal.d.ts.map +1 -0
- package/dist/lib/components/header/AppName.d.ts +4 -0
- package/dist/lib/components/header/AppName.d.ts.map +1 -0
- package/dist/lib/components/header/ExportButton.d.ts +8 -0
- package/dist/lib/components/header/ExportButton.d.ts.map +1 -0
- package/dist/lib/components/header/HistoryControls.d.ts +10 -0
- package/dist/lib/components/header/HistoryControls.d.ts.map +1 -0
- package/dist/lib/components/header/ZoomControls.d.ts +10 -0
- package/dist/lib/components/header/ZoomControls.d.ts.map +1 -0
- package/dist/lib/components/sidebar/RightSidebar.d.ts +16 -0
- package/dist/lib/components/sidebar/RightSidebar.d.ts.map +1 -0
- package/dist/lib/config.d.ts +11 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/constants/CanvasPresets.d.ts +6 -0
- package/dist/lib/constants/CanvasPresets.d.ts.map +1 -0
- package/dist/lib/constants/DefaultColors.d.ts +2 -0
- package/dist/lib/constants/DefaultColors.d.ts.map +1 -0
- package/dist/lib/constants/FontFamilies.d.ts +2 -0
- package/dist/lib/constants/FontFamilies.d.ts.map +1 -0
- package/dist/lib/constants/index.d.ts +4 -0
- package/dist/lib/constants/index.d.ts.map +1 -0
- package/dist/lib/elements/EditableTextElement.d.ts +10 -0
- package/dist/lib/elements/EditableTextElement.d.ts.map +1 -0
- package/dist/lib/elements/ShapeElement.d.ts +10 -0
- package/dist/lib/elements/ShapeElement.d.ts.map +1 -0
- package/dist/lib/elements/UrlImageElement.d.ts +10 -0
- package/dist/lib/elements/UrlImageElement.d.ts.map +1 -0
- package/dist/lib/elements/index.d.ts +4 -0
- package/dist/lib/elements/index.d.ts.map +1 -0
- package/dist/lib/index.css +1109 -0
- package/dist/lib/index.js +4052 -0
- package/dist/lib/lib/index.d.ts +11 -0
- package/dist/lib/lib/index.d.ts.map +1 -0
- package/dist/lib/panels/BackgroundPanel.d.ts +11 -0
- package/dist/lib/panels/BackgroundPanel.d.ts.map +1 -0
- package/dist/lib/panels/DesignPanel.d.ts +15 -0
- package/dist/lib/panels/DesignPanel.d.ts.map +1 -0
- package/dist/lib/panels/ElementPanel.d.ts +8 -0
- package/dist/lib/panels/ElementPanel.d.ts.map +1 -0
- package/dist/lib/panels/ExportPanel.d.ts +10 -0
- package/dist/lib/panels/ExportPanel.d.ts.map +1 -0
- package/dist/lib/panels/ImagePanel.d.ts +13 -0
- package/dist/lib/panels/ImagePanel.d.ts.map +1 -0
- package/dist/lib/panels/TextPanel.d.ts +11 -0
- package/dist/lib/panels/TextPanel.d.ts.map +1 -0
- package/dist/lib/panels/VariablesPanel.d.ts +11 -0
- package/dist/lib/panels/VariablesPanel.d.ts.map +1 -0
- package/dist/lib/types/CanvasDesign.d.ts +13 -0
- package/dist/lib/types/CanvasDesign.d.ts.map +1 -0
- package/dist/lib/types/CanvasEditor.d.ts +6 -0
- package/dist/lib/types/CanvasEditor.d.ts.map +1 -0
- package/dist/lib/types/CanvasElement.d.ts +80 -0
- package/dist/lib/types/CanvasElement.d.ts.map +1 -0
- package/dist/lib/types/Config.d.ts +19 -0
- package/dist/lib/types/Config.d.ts.map +1 -0
- package/dist/lib/types/Feature.d.ts +4 -0
- package/dist/lib/types/Feature.d.ts.map +1 -0
- package/dist/lib/types/MenuElement.d.ts +7 -0
- package/dist/lib/types/MenuElement.d.ts.map +1 -0
- package/dist/lib/types/Page.d.ts +9 -0
- package/dist/lib/types/Page.d.ts.map +1 -0
- package/dist/lib/types/Panel.d.ts +17 -0
- package/dist/lib/types/Panel.d.ts.map +1 -0
- package/dist/lib/types/ShapeType.d.ts +2 -0
- package/dist/lib/types/ShapeType.d.ts.map +1 -0
- package/dist/lib/types/ToolType.d.ts +3 -0
- package/dist/lib/types/ToolType.d.ts.map +1 -0
- package/dist/lib/types/UnsplashSearchResult.d.ts +11 -0
- package/dist/lib/types/UnsplashSearchResult.d.ts.map +1 -0
- package/dist/lib/types/UserInput.d.ts +21 -0
- package/dist/lib/types/UserInput.d.ts.map +1 -0
- package/dist/lib/types/index.d.ts +12 -0
- package/dist/lib/types/index.d.ts.map +1 -0
- package/dist/lib/utils/exportImportUtils.d.ts +24 -0
- package/dist/lib/utils/exportImportUtils.d.ts.map +1 -0
- package/package.json +91 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Canvas Editor Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# LabelLife Design Tool
|
|
2
|
+
|
|
3
|
+
Professional canvas editor built with React, TypeScript, and Konva.js. A powerful design tool similar to Canva/Polotno for creating graphics, posters, and designs.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🎨 **Rich Canvas Editor** - Full-featured design editor with text, images, shapes, and more
|
|
8
|
+
- 📐 **Multi-page Support** - Create designs with multiple pages
|
|
9
|
+
- 🖼️ **Image Management** - Upload images, use Unsplash, crop, mask, and apply filters
|
|
10
|
+
- ✏️ **Text Editing** - Rich text editing with fonts, colors, alignment, and styling
|
|
11
|
+
- 🔷 **Shapes & Elements** - Add various shapes (rectangles, circles, stars, polygons, etc.)
|
|
12
|
+
- 🎭 **Image Masking** - Apply masks to images (circle, star, triangle, etc.)
|
|
13
|
+
- 📤 **Export Options** - Export to PNG, JPG, or JSON
|
|
14
|
+
- 📥 **Template Import** - Import JSON templates with user input collection
|
|
15
|
+
- 🌐 **i18n Support** - Internationalization support (English, Dutch)
|
|
16
|
+
- ⚙️ **Configurable** - Customize features, panels, and behavior
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install labellife-design-tool
|
|
22
|
+
# or
|
|
23
|
+
yarn add labellife-design-tool
|
|
24
|
+
# or
|
|
25
|
+
pnpm add labellife-design-tool
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
### Basic Usage
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
import { CanvasEditor } from 'labellife-design-tool';
|
|
34
|
+
import 'labellife-design-tool/styles'; // Import CSS
|
|
35
|
+
|
|
36
|
+
function App() {
|
|
37
|
+
return (
|
|
38
|
+
<CanvasEditor
|
|
39
|
+
name="My Design Editor"
|
|
40
|
+
config={{
|
|
41
|
+
export: {
|
|
42
|
+
png: true,
|
|
43
|
+
jpg: true,
|
|
44
|
+
json: true,
|
|
45
|
+
},
|
|
46
|
+
multiPage: true,
|
|
47
|
+
variables: true,
|
|
48
|
+
}}
|
|
49
|
+
/>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Note on CSS**: The CSS is pre-processed and ready to use. Simply import it - no Tailwind configuration needed!
|
|
55
|
+
|
|
56
|
+
### Configure Unsplash API Key
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
import { CanvasEditor, setUnsplashAccessKey } from 'labellife-design-tool';
|
|
60
|
+
|
|
61
|
+
// Set Unsplash API key programmatically
|
|
62
|
+
setUnsplashAccessKey('your-unsplash-access-key');
|
|
63
|
+
|
|
64
|
+
// Or use environment variable
|
|
65
|
+
// UNSPLASH_ACCESS_KEY=your-key npm start
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Advanced Usage with Types
|
|
69
|
+
|
|
70
|
+
```tsx
|
|
71
|
+
import {
|
|
72
|
+
CanvasEditor,
|
|
73
|
+
CanvasDesign,
|
|
74
|
+
Config,
|
|
75
|
+
exportToPNG,
|
|
76
|
+
importFromJSON
|
|
77
|
+
} from 'labellife-design-tool';
|
|
78
|
+
import type { CanvasElement } from 'labellife-design-tool';
|
|
79
|
+
|
|
80
|
+
const config: Config = {
|
|
81
|
+
export: { png: true, jpg: true, json: true },
|
|
82
|
+
multiPage: true,
|
|
83
|
+
variables: true,
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
function MyEditor() {
|
|
87
|
+
return <CanvasEditor name="Editor" config={config} />;
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Development
|
|
92
|
+
|
|
93
|
+
To run the development server:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
bun install
|
|
97
|
+
bun dev
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
To build the library:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
bun run build:lib:all
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
To build the app:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
bun run build:app
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Project Structure
|
|
113
|
+
|
|
114
|
+
- `src/lib/index.ts` - Library entry point (npm package)
|
|
115
|
+
- `src/CanvasEditor.tsx` - Main editor component
|
|
116
|
+
- `src/types/` - TypeScript type definitions
|
|
117
|
+
- `src/components/` - React components
|
|
118
|
+
- `src/panels/` - Sidebar panels
|
|
119
|
+
- `src/elements/` - Canvas element components
|
|
120
|
+
- `src/utils/` - Utility functions
|
|
121
|
+
|
|
122
|
+
## License
|
|
123
|
+
|
|
124
|
+
MIT
|
|
125
|
+
|
|
126
|
+
## Contributing
|
|
127
|
+
|
|
128
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CanvasEditor.d.ts","sourceRoot":"","sources":["../../src/CanvasEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAkFxE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CA68B7D,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActivePanelId } from '../types';
|
|
3
|
+
export interface HeaderProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
zoom: number;
|
|
6
|
+
historyIndex: number;
|
|
7
|
+
historyLength: number;
|
|
8
|
+
onUndo: () => void;
|
|
9
|
+
onRedo: () => void;
|
|
10
|
+
onZoomIn: () => void;
|
|
11
|
+
onZoomOut: () => void;
|
|
12
|
+
onZoomReset: () => void;
|
|
13
|
+
onSetActivePanel: (panel: ActivePanelId | "export") => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const Header: React.FC<HeaderProps>;
|
|
16
|
+
export default Header;
|
|
17
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,gBAAgB,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,QAAQ,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0CxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ToolType, ActivePanelId } from "../types";
|
|
3
|
+
import { Config } from "../types/Config";
|
|
4
|
+
export interface LeftMenuProps {
|
|
5
|
+
tool: ToolType;
|
|
6
|
+
activePanel: ActivePanelId;
|
|
7
|
+
onSetTool: (tool: ToolType) => void;
|
|
8
|
+
onSetActivePanel: (panel: ActivePanelId) => void;
|
|
9
|
+
config?: Config;
|
|
10
|
+
}
|
|
11
|
+
export declare const LeftMenu: React.FC<LeftMenuProps>;
|
|
12
|
+
export default LeftMenu;
|
|
13
|
+
//# sourceMappingURL=LeftMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeftMenu.d.ts","sourceRoot":"","sources":["../../../src/components/LeftMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAWzC,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,gBAAgB,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqH5C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UserInputItem } from "../types/UserInput";
|
|
3
|
+
interface TemplateInputModalProps {
|
|
4
|
+
inputs: UserInputItem[];
|
|
5
|
+
onComplete: (values: Record<string, any>) => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const TemplateInputModal: React.FC<TemplateInputModalProps>;
|
|
9
|
+
export default TemplateInputModal;
|
|
10
|
+
//# sourceMappingURL=TemplateInputModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateInputModal.d.ts","sourceRoot":"","sources":["../../../src/components/TemplateInputModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,UAAU,uBAAuB;IAC/B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAClD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAkazD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppName.d.ts","sourceRoot":"","sources":["../../../../src/components/header/AppName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAGpB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ActivePanelId } from "../../types";
|
|
3
|
+
interface ExportButtonProps {
|
|
4
|
+
onSetActivePanel: (panel: ActivePanelId | "export") => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ExportButton: React.FC<ExportButtonProps>;
|
|
7
|
+
export default ExportButton;
|
|
8
|
+
//# sourceMappingURL=ExportButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportButton.d.ts","sourceRoot":"","sources":["../../../../src/components/header/ExportButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,UAAU,iBAAiB;IACzB,gBAAgB,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,QAAQ,KAAK,IAAI,CAAC;CAC7D;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAW7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface HistoryControlsProps {
|
|
3
|
+
historyIndex: number;
|
|
4
|
+
historyLength: number;
|
|
5
|
+
onUndo: () => void;
|
|
6
|
+
onRedo: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const HistoryControls: React.FC<HistoryControlsProps>;
|
|
9
|
+
export default HistoryControls;
|
|
10
|
+
//# sourceMappingURL=HistoryControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HistoryControls.d.ts","sourceRoot":"","sources":["../../../../src/components/header/HistoryControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2BnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ZoomControlsProps {
|
|
3
|
+
zoom: number;
|
|
4
|
+
onZoomIn: () => void;
|
|
5
|
+
onZoomOut: () => void;
|
|
6
|
+
onZoomReset: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const ZoomControls: React.FC<ZoomControlsProps>;
|
|
9
|
+
export default ZoomControls;
|
|
10
|
+
//# sourceMappingURL=ZoomControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomControls.d.ts","sourceRoot":"","sources":["../../../../src/components/header/ZoomControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmC7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CanvasElement } from "../../types";
|
|
3
|
+
interface RightSidebarProps {
|
|
4
|
+
currentPageElements: CanvasElement[];
|
|
5
|
+
selectedElement: CanvasElement | undefined | null;
|
|
6
|
+
selectedId: string | null;
|
|
7
|
+
onSelectElement: (id: string) => void;
|
|
8
|
+
onUpdateElement: (id: string, attrs: Partial<CanvasElement>) => void;
|
|
9
|
+
onDuplicateSelected: () => void;
|
|
10
|
+
onMoveElementUp: (id: string) => void;
|
|
11
|
+
onMoveElementDown: (id: string) => void;
|
|
12
|
+
onDeleteSelected: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const RightSidebar: React.FC<RightSidebarProps>;
|
|
15
|
+
export default RightSidebar;
|
|
16
|
+
//# sourceMappingURL=RightSidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RightSidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/RightSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,UAAU,iBAAiB;IACzB,mBAAmB,EAAE,aAAa,EAAE,CAAC;IACrC,eAAe,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC;IAClD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IACrE,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiH7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const UNSPLASH_ACCESS_KEY: string;
|
|
2
|
+
/**
|
|
3
|
+
* Set the Unsplash API access key programmatically
|
|
4
|
+
* @param key - Your Unsplash API access key
|
|
5
|
+
*/
|
|
6
|
+
export declare function setUnsplashAccessKey(key: string): void;
|
|
7
|
+
/**
|
|
8
|
+
* Get the current Unsplash API access key
|
|
9
|
+
*/
|
|
10
|
+
export declare function getUnsplashAccessKey(): string | undefined;
|
|
11
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,QAAwD,CAAC;AAEzF;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,SAAS,CAEzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CanvasPresets.d.ts","sourceRoot":"","sources":["../../../src/constants/CanvasPresets.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;GAS1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultColors.d.ts","sourceRoot":"","sources":["../../../src/constants/DefaultColors.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,UAgB1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontFamilies.d.ts","sourceRoot":"","sources":["../../../src/constants/FontFamilies.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,UAczB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CanvasElement } from "../types/CanvasElement";
|
|
3
|
+
export declare const EditableTextElement: React.FC<{
|
|
4
|
+
element: CanvasElement;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
onSelect: () => void;
|
|
7
|
+
onChange: (attrs: Partial<CanvasElement>) => void;
|
|
8
|
+
}>;
|
|
9
|
+
export default EditableTextElement;
|
|
10
|
+
//# sourceMappingURL=EditableTextElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableTextElement.d.ts","sourceRoot":"","sources":["../../../src/elements/EditableTextElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAuBvD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IACzC,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACnD,CAgNA,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CanvasElement } from "../types/CanvasElement";
|
|
3
|
+
export declare const ShapeElement: React.FC<{
|
|
4
|
+
element: CanvasElement;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
onSelect: () => void;
|
|
7
|
+
onChange: (attrs: Partial<CanvasElement>) => void;
|
|
8
|
+
}>;
|
|
9
|
+
export default ShapeElement;
|
|
10
|
+
//# sourceMappingURL=ShapeElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShapeElement.d.ts","sourceRoot":"","sources":["../../../src/elements/ShapeElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAcjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAClC,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACnD,CA+YA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CanvasElement } from "../types";
|
|
3
|
+
export declare const UrlImageElement: React.FC<{
|
|
4
|
+
element: CanvasElement;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
onSelect: () => void;
|
|
7
|
+
onChange: (attrs: Partial<CanvasElement>) => void;
|
|
8
|
+
}>;
|
|
9
|
+
export default UrlImageElement;
|
|
10
|
+
//# sourceMappingURL=UrlImageElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UrlImageElement.d.ts","sourceRoot":"","sources":["../../../src/elements/UrlImageElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACnD,CA6cA,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
|