polotno 3.5.2 → 3.6.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/blueprint/toolbar/image-toolbar.d.ts +2 -2
- package/blueprint/toolbar/sketch.js +1 -1
- package/canvas/apply-filters.d.ts +1 -1
- package/canvas/audio.js +1 -1
- package/canvas/context-menu/context-menu.d.ts +2 -2
- package/canvas/figure-element.js +1 -1
- package/canvas/image-element.d.ts +11 -0
- package/canvas/image-element.js +1 -1
- package/canvas/page-controls.d.ts +1 -1
- package/canvas/rich-editor.js +2 -2
- package/canvas/rules.d.ts +1 -1
- package/canvas/tooltip.d.ts +2 -2
- package/canvas/video-element.js +1 -1
- package/hooks/use-event.js +1 -1
- package/icons/meronex.js +1 -1
- package/icons/registry.d.ts +1 -0
- package/icons/registry.js +1 -1
- package/model/audio-model.d.ts +2 -0
- package/model/audio-model.js +1 -1
- package/model/store.d.ts +3 -0
- package/model/store.js +1 -1
- package/package.json +7 -7
- package/pages-timeline/audio-track.d.ts +3 -2
- package/pages-timeline/audio-track.js +1 -1
- package/pages-timeline/audios.js +1 -1
- package/pages-timeline/element-track.js +1 -1
- package/pages-timeline/index.d.ts +1 -1
- package/pages-timeline/index.js +1 -1
- package/pages-timeline/play-button.d.ts +1 -1
- package/pages-timeline/track-styles.d.ts +9 -0
- package/pages-timeline/track-styles.js +1 -1
- package/polotno.bundle.js +200 -201
- package/primitives/button-group.d.ts +2 -2
- package/primitives/button.d.ts +2 -2
- package/primitives/dialog.d.ts +2 -2
- package/primitives/dropdown-menu.d.ts +2 -2
- package/primitives/field-group.d.ts +1 -1
- package/primitives/field-row.d.ts +1 -1
- package/primitives/floating-control.js +2 -2
- package/primitives/index.d.ts +27 -27
- package/primitives/input-group.d.ts +2 -2
- package/primitives/input.d.ts +1 -1
- package/primitives/navbar.d.ts +5 -5
- package/primitives/numeric-input.d.ts +1 -1
- package/primitives/overflow-list.d.ts +1 -1
- package/primitives/panel-header.d.ts +1 -1
- package/primitives/popover.d.ts +2 -2
- package/primitives/portal-scope.d.ts +3 -3
- package/primitives/search-input.d.ts +1 -1
- package/primitives/select.d.ts +2 -2
- package/primitives/separator.d.ts +1 -1
- package/primitives/slider-field.d.ts +1 -1
- package/primitives/slider.d.ts +2 -2
- package/primitives/spinner.d.ts +1 -1
- package/primitives/switch.d.ts +1 -1
- package/primitives/tabs.d.ts +2 -2
- package/primitives/textarea.d.ts +1 -1
- package/primitives/toggle-group.d.ts +4 -4
- package/primitives/toggle.d.ts +3 -3
- package/primitives/tooltip-icon-button.d.ts +4 -4
- package/primitives/tooltip.d.ts +2 -2
- package/side-panel/background-panel.d.ts +2 -2
- package/side-panel/draw-panel.d.ts +2 -2
- package/side-panel/elements-panel.d.ts +2 -2
- package/side-panel/images-grid.js +1 -1
- package/side-panel/index.d.ts +35 -35
- package/side-panel/photos-panel.d.ts +1 -1
- package/side-panel/select-gif.d.ts +1 -1
- package/side-panel/side-panel.d.ts +5 -5
- package/side-panel/size-panel.d.ts +3 -3
- package/side-panel/tab-button.d.ts +1 -1
- package/side-panel/tab-button.js +2 -2
- package/side-panel/templates-panel.d.ts +2 -2
- package/side-panel/unsplash-credit.d.ts +1 -1
- package/side-panel/upload-panel.d.ts +3 -3
- package/side-panel/upload-panel.js +1 -1
- package/side-panel/videos-grid.js +1 -1
- package/themes/blueprint.css +1 -1
- package/themes/carbon.css +127 -128
- package/toolbar/download-button.d.ts +2 -2
- package/toolbar/element-container.d.ts +1 -1
- package/toolbar/filters-picker.d.ts +1 -1
- package/toolbar/group-toolbar.d.ts +2 -2
- package/toolbar/history-buttons.d.ts +1 -1
- package/toolbar/image-remove-background-button.d.ts +1 -1
- package/toolbar/image-toolbar.d.ts +1 -1
- package/toolbar/index.d.ts +34 -34
- package/toolbar/many-toolbar.d.ts +2 -2
- package/toolbar/opacity-picker.d.ts +1 -1
- package/toolbar/page-toolbar.d.ts +3 -3
- package/toolbar/toolbar.d.ts +3 -3
- package/toolbar/zoom-buttons.d.ts +1 -1
- package/ui-types.d.ts +8 -8
- package/ui.css +1 -1
- package/utils/array.js +1 -1
- package/utils/file.d.ts +3 -0
- package/utils/file.js +1 -1
- package/utils/html-to-svg/svg-builder.d.ts +1 -1
- package/utils/insert-file.d.ts +3 -2
- package/utils/insert-file.js +1 -1
- package/utils/l10n.d.ts +4 -0
- package/utils/l10n.js +1 -1
- package/utils/media.d.ts +6 -0
- package/utils/media.js +1 -0
- package/utils/validate-key.js +1 -1
package/themes/carbon.css
CHANGED
|
@@ -20,138 +20,137 @@
|
|
|
20
20
|
|
|
21
21
|
/* IBM Plex Sans — 400 / 500 / 600 / 700 (latin) */
|
|
22
22
|
@font-face {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
23
|
+
font-family: 'IBM Plex Sans';
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
font-display: swap;
|
|
27
|
+
src: url('https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff2')
|
|
28
|
+
format('woff2');
|
|
29
|
+
}
|
|
30
|
+
@font-face {
|
|
31
|
+
font-family: 'IBM Plex Sans';
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
font-display: swap;
|
|
35
|
+
src: url('https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff2')
|
|
36
|
+
format('woff2');
|
|
37
|
+
}
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'IBM Plex Sans';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
src: url('https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff2')
|
|
44
|
+
format('woff2');
|
|
45
|
+
}
|
|
46
|
+
@font-face {
|
|
47
|
+
font-family: 'IBM Plex Sans';
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
font-display: swap;
|
|
51
|
+
src: url('https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-700-normal.woff2')
|
|
52
|
+
format('woff2');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* IBM Plex Mono — 400 / 500 (latin) */
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: 'IBM Plex Mono';
|
|
58
|
+
font-style: normal;
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
font-display: swap;
|
|
61
|
+
src: url('https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-mono@latest/latin-400-normal.woff2')
|
|
62
|
+
format('woff2');
|
|
63
|
+
}
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: 'IBM Plex Mono';
|
|
66
|
+
font-style: normal;
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
font-display: swap;
|
|
69
|
+
src: url('https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-mono@latest/latin-500-normal.woff2')
|
|
70
|
+
format('woff2');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Wire the IBM Plex families into Polotno's public override hooks. Setting them
|
|
74
74
|
on :root keeps this an opt-in, app-level choice; the editor reads
|
|
75
75
|
var(--pn-font-sans, <system stack>) on its scoped roots. */
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
:root {
|
|
77
|
+
--pn-font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
|
|
78
|
+
--pn-font-mono: 'IBM Plex Mono', ui-monospace, monospace;
|
|
79
|
+
}
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
/* Monochrome, matching the polotno-website sibling repo: black/white/gray only,
|
|
81
|
+
/* Monochrome, matching the polotno-website sibling repo: black/white/gray only,
|
|
83
82
|
NO blue anywhere in the UI (the website reserves blue for blog prose, which this
|
|
84
83
|
app doesn't have). --primary == --foreground so every primary accent (buttons,
|
|
85
84
|
links, icons, badges, focus) is monochrome and inverts per theme. Red is kept for
|
|
86
85
|
`destructive` only — the one semantic color the website also keeps. Dark-first. */
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
86
|
+
:root {
|
|
87
|
+
--background: #ffffff;
|
|
88
|
+
--foreground: #161616; /* text + monochrome primary (inverts in .dark) */
|
|
89
|
+
--card: #ffffff; /* website card (white tile) */
|
|
90
|
+
--card-foreground: #161616;
|
|
91
|
+
--popover: #ffffff;
|
|
92
|
+
--popover-foreground: #161616;
|
|
93
|
+
--primary: #161616; /* monochrome (= foreground); blue retired */
|
|
94
|
+
--primary-foreground: #ffffff;
|
|
95
|
+
--secondary: #f4f4f4; /* subtle light surface (gray 10) */
|
|
96
|
+
--secondary-foreground: #161616;
|
|
97
|
+
--muted: #f4f4f4; /* gray 10 */
|
|
98
|
+
--muted-foreground: #525252; /* website light-muted (gray 70) */
|
|
99
|
+
--accent: #e8e8e8; /* hover (gray 10 hover) */
|
|
100
|
+
--accent-foreground: #161616;
|
|
101
|
+
--destructive: #da1e28; /* danger (red) — the only retained color */
|
|
102
|
+
--border: #c6c6c6; /* website card-border (gray 30) */
|
|
103
|
+
--input: #c6c6c6;
|
|
104
|
+
--ring: #161616; /* monochrome focus */
|
|
105
|
+
/* Monochrome data-vis ramp (dark -> light grays). */
|
|
106
|
+
--chart-1: #161616;
|
|
107
|
+
--chart-2: #525252;
|
|
108
|
+
--chart-3: #8d8d8d;
|
|
109
|
+
--chart-4: #a8a8a8;
|
|
110
|
+
--chart-5: #c6c6c6;
|
|
111
|
+
--radius: 0;
|
|
112
|
+
--sidebar: #ffffff;
|
|
113
|
+
--sidebar-foreground: #161616;
|
|
114
|
+
--sidebar-primary: #161616;
|
|
115
|
+
--sidebar-primary-foreground: #ffffff;
|
|
116
|
+
--sidebar-accent: #e8e8e8;
|
|
117
|
+
--sidebar-accent-foreground: #161616;
|
|
118
|
+
--sidebar-border: #c6c6c6;
|
|
119
|
+
--sidebar-ring: #161616;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* dark = website brand surface (#161616). Default theme (see providers.tsx). */
|
|
123
|
+
.dark {
|
|
124
|
+
--background: #161616; /* website --color-bg */
|
|
125
|
+
--foreground: #ffffff; /* website --color-fg */
|
|
126
|
+
--card: #262626; /* Carbon g100 layer-01 (gray 90) */
|
|
127
|
+
--card-foreground: #ffffff;
|
|
128
|
+
--popover: #262626;
|
|
129
|
+
--popover-foreground: #ffffff;
|
|
130
|
+
--primary: #ffffff; /* monochrome (= foreground); blue retired */
|
|
131
|
+
--primary-foreground: #161616; /* contrast on the white primary surface */
|
|
132
|
+
--secondary: #393939; /* visible secondary surface */
|
|
133
|
+
--secondary-foreground: #ffffff;
|
|
134
|
+
--muted: #262626; /* Carbon g100 layer-01 (gray 90) */
|
|
135
|
+
--muted-foreground: #c6c6c6; /* Carbon g100 text-secondary (gray 30) */
|
|
136
|
+
--accent: #333333; /* Carbon g100 layer-hover-01 */
|
|
137
|
+
--accent-foreground: #ffffff;
|
|
138
|
+
--destructive: #da1e28; /* website dashboard danger (red) */
|
|
139
|
+
--border: #393939; /* website header divider (gray 80) */
|
|
140
|
+
--input: #393939;
|
|
141
|
+
--ring: #ffffff; /* monochrome focus */
|
|
142
|
+
/* Monochrome data-vis ramp (light -> dark grays). */
|
|
143
|
+
--chart-1: #ffffff;
|
|
144
|
+
--chart-2: #c6c6c6;
|
|
145
|
+
--chart-3: #a8a8a8;
|
|
146
|
+
--chart-4: #8d8d8d;
|
|
147
|
+
--chart-5: #6f6f6f;
|
|
148
|
+
--sidebar: #161616;
|
|
149
|
+
--sidebar-foreground: #ffffff;
|
|
150
|
+
--sidebar-primary: #ffffff;
|
|
151
|
+
--sidebar-primary-foreground: #161616;
|
|
152
|
+
--sidebar-accent: #333333;
|
|
153
|
+
--sidebar-accent-foreground: #ffffff;
|
|
154
|
+
--sidebar-border: #393939;
|
|
155
|
+
--sidebar-ring: #ffffff;
|
|
156
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import type { StoreType } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { StoreType } from '../ui-types.js';
|
|
3
3
|
export declare const DownloadButton: (({ store }: {
|
|
4
4
|
store: StoreType;
|
|
5
5
|
}) => React.JSX.Element) & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export { NumberInput } from '../primitives/numeric-input.js';
|
|
3
3
|
import type { StoreType, ShapeType } from '../ui-types.js';
|
|
4
|
-
export declare const CurvePowerSlider: (({ textEl, eachSet
|
|
4
|
+
export declare const CurvePowerSlider: (({ textEl, eachSet }: {
|
|
5
5
|
textEl: any;
|
|
6
6
|
eachSet: (attrs: any) => void;
|
|
7
7
|
}) => React.JSX.Element) & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export declare function setRemoveBackgroundFunc(func: (url: string, signal?: AbortSignal) => Promise<string>): void;
|
|
3
3
|
export declare const RemoveBackgroundDialog: (({ isOpen, onClose, element, }: {
|
|
4
4
|
isOpen: boolean;
|
|
@@ -15,7 +15,7 @@ export declare const ImageClip: (({ element, store, elements, }: {
|
|
|
15
15
|
}) => React.JSX.Element | null) & {
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
|
-
export declare const ImageCrop: (({ element
|
|
18
|
+
export declare const ImageCrop: (({ element }: {
|
|
19
19
|
element: ImageElementType;
|
|
20
20
|
store: StoreType;
|
|
21
21
|
}) => React.JSX.Element | null) & {
|
package/toolbar/index.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export { Toolbar, registerToolbarComponent, useToolbarCondensed } from
|
|
2
|
-
export { HistoryButtons } from
|
|
3
|
-
export { ColorPicker, DEFAULT_COLORS, setColorsPresetFunc, getUsedColors } from
|
|
4
|
-
export { OpacityPicker } from
|
|
5
|
-
export { PositionPicker } from
|
|
6
|
-
export { LockButton } from
|
|
7
|
-
export { DuplicateButton } from
|
|
8
|
-
export { RemoveButton } from
|
|
9
|
-
export { GroupButton } from
|
|
10
|
-
export { FlipButton } from
|
|
11
|
-
export { DownloadButton } from
|
|
12
|
-
export { ZoomButtons, ZoomGroup } from
|
|
13
|
-
export { ElementContainer, extendToolbar } from
|
|
14
|
-
export { TextToolbar, TextFill, TextFontFamily, TextFontSize, TextFontVariant, TextSpacing, TextTransform, TextFilters, } from
|
|
15
|
-
export { NumberInput, FiltersPicker, EffectsPicker } from
|
|
16
|
-
export { AnimationsPicker, AnimationsPickerOld } from
|
|
17
|
-
export { FigureToolbar, FigureFill, FigureSettings, FigureStroke } from
|
|
18
|
-
export { GifToolbar } from
|
|
19
|
-
export { PageToolbar } from
|
|
20
|
-
export { ManyToolbar } from
|
|
21
|
-
export { SvgToolbar } from
|
|
22
|
-
export { ImageToolbar, ImageRemoveBackground
|
|
23
|
-
export { VideoToolbar } from
|
|
24
|
-
export { LineToolbar, LineSettings, LineColor, BasicHead, LineHeads, } from
|
|
25
|
-
export { TableToolbar, TableBorderSettings, TableStructureMenu, TableStructure, CellPadding, CellBackground, CellVerticalAlign, } from
|
|
26
|
-
export { HtmlToolbar, TextBold, FontStyleGroup, FontColorInput, DirectionInput, } from
|
|
27
|
-
export { TextAiWrite } from
|
|
28
|
-
export { default as Sketch } from
|
|
29
|
-
export { AdminButton } from
|
|
30
|
-
export { CopyStyleButton, PAINT_ICON } from
|
|
31
|
-
export { useLock } from
|
|
32
|
-
export { useDuplicateElement } from
|
|
33
|
-
export { useRemoveElement } from
|
|
34
|
-
export { useCopyStyle } from
|
|
1
|
+
export { Toolbar, registerToolbarComponent, useToolbarCondensed, } from './toolbar.js';
|
|
2
|
+
export { HistoryButtons } from './history-buttons.js';
|
|
3
|
+
export { ColorPicker, DEFAULT_COLORS, setColorsPresetFunc, getUsedColors, } from './color-picker.js';
|
|
4
|
+
export { OpacityPicker } from './opacity-picker.js';
|
|
5
|
+
export { PositionPicker } from './position-picker.js';
|
|
6
|
+
export { LockButton } from './lock-button.js';
|
|
7
|
+
export { DuplicateButton } from './duplicate-button.js';
|
|
8
|
+
export { RemoveButton } from './remove-button.js';
|
|
9
|
+
export { GroupButton } from './group-button.js';
|
|
10
|
+
export { FlipButton } from './flip-button.js';
|
|
11
|
+
export { DownloadButton } from './download-button.js';
|
|
12
|
+
export { ZoomButtons, ZoomGroup } from './zoom-buttons.js';
|
|
13
|
+
export { ElementContainer, extendToolbar } from './element-container.js';
|
|
14
|
+
export { TextToolbar, TextFill, TextFontFamily, TextFontSize, TextFontVariant, TextSpacing, TextTransform, TextFilters, } from './text-toolbar.js';
|
|
15
|
+
export { NumberInput, FiltersPicker, EffectsPicker } from './filters-picker.js';
|
|
16
|
+
export { AnimationsPicker, AnimationsPickerOld } from './animations-picker.js';
|
|
17
|
+
export { FigureToolbar, FigureFill, FigureSettings, FigureStroke, } from './figure-toolbar.js';
|
|
18
|
+
export { GifToolbar } from './gif-toolbar.js';
|
|
19
|
+
export { PageToolbar } from './page-toolbar.js';
|
|
20
|
+
export { ManyToolbar } from './many-toolbar.js';
|
|
21
|
+
export { SvgToolbar } from './svg-toolbar.js';
|
|
22
|
+
export { ImageToolbar, ImageRemoveBackground } from './image-toolbar.js';
|
|
23
|
+
export { VideoToolbar } from './video-toolbar.js';
|
|
24
|
+
export { LineToolbar, LineSettings, LineColor, BasicHead, LineHeads, } from './line-toolbar.js';
|
|
25
|
+
export { TableToolbar, TableBorderSettings, TableStructureMenu, TableStructure, CellPadding, CellBackground, CellVerticalAlign, } from './table-toolbar.js';
|
|
26
|
+
export { HtmlToolbar, TextBold, FontStyleGroup, FontColorInput, DirectionInput, } from './html-toolbar.js';
|
|
27
|
+
export { TextAiWrite } from './text-ai-write.js';
|
|
28
|
+
export { default as Sketch } from './sketch.js';
|
|
29
|
+
export { AdminButton } from './admin-button.js';
|
|
30
|
+
export { CopyStyleButton, PAINT_ICON } from './copy-style.js';
|
|
31
|
+
export { useLock } from './use-lock.js';
|
|
32
|
+
export { useDuplicateElement } from './use-duplicate-element.js';
|
|
33
|
+
export { useRemoveElement } from './use-remove-element.js';
|
|
34
|
+
export { useCopyStyle } from './use-copy-style.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
export { NumberInput } from
|
|
3
|
-
import type { StoreType } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { NumberInput } from '../primitives/numeric-input.js';
|
|
3
|
+
import type { StoreType } from '../ui-types.js';
|
|
4
4
|
type Props = {
|
|
5
5
|
store: StoreType;
|
|
6
6
|
components?: any;
|
package/toolbar/toolbar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { useToolbarCondensed } from
|
|
3
|
-
import type { StoreType } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useToolbarCondensed } from '../hooks/use-toolbar-condensed.js';
|
|
3
|
+
import type { StoreType } from '../ui-types.js';
|
|
4
4
|
type ToolbarProps = {
|
|
5
5
|
store: StoreType;
|
|
6
6
|
downloadButtonEnabled?: boolean;
|
package/ui-types.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { ComponentType } from
|
|
2
|
-
import type { ElementType } from
|
|
3
|
-
import type { PageType } from
|
|
4
|
-
import type { StoreType } from
|
|
5
|
-
import type { ImageElementType } from
|
|
6
|
-
import type { TextElementType } from
|
|
7
|
-
import type { VideoElementType } from
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ElementType } from './model/group-model.js';
|
|
3
|
+
import type { PageType } from './model/page-model.js';
|
|
4
|
+
import type { StoreType } from './model/store.js';
|
|
5
|
+
import type { ImageElementType } from './model/image-model.js';
|
|
6
|
+
import type { TextElementType } from './model/text-model.js';
|
|
7
|
+
import type { VideoElementType } from './model/video-model.js';
|
|
8
8
|
export type { StoreType, PageType, TextElementType, ImageElementType, VideoElementType, };
|
|
9
9
|
export type ShapeType = ElementType;
|
|
10
|
-
export type HistoryType = NonNullable<StoreType[
|
|
10
|
+
export type HistoryType = NonNullable<StoreType['history']>;
|
|
11
11
|
export interface SectionTabProps {
|
|
12
12
|
onClick: any;
|
|
13
13
|
active: boolean;
|