polotno 4.5.2 → 4.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.
Files changed (104) hide show
  1. package/blueprint/toolbar/image-toolbar.d.ts +2 -2
  2. package/blueprint/toolbar/sketch.js +1 -1
  3. package/canvas/apply-filters.d.ts +1 -1
  4. package/canvas/audio.js +1 -1
  5. package/canvas/context-menu/context-menu.d.ts +2 -2
  6. package/canvas/figure-element.js +1 -1
  7. package/canvas/image-element.d.ts +11 -0
  8. package/canvas/image-element.js +1 -1
  9. package/canvas/page-controls.d.ts +1 -1
  10. package/canvas/rich-editor.js +2 -2
  11. package/canvas/rules.d.ts +1 -1
  12. package/canvas/tooltip.d.ts +2 -2
  13. package/canvas/video-element.js +1 -1
  14. package/hooks/use-event.js +1 -1
  15. package/icons/registry.d.ts +1 -0
  16. package/icons/registry.js +1 -1
  17. package/model/audio-model.d.ts +2 -0
  18. package/model/audio-model.js +1 -1
  19. package/model/store.d.ts +3 -0
  20. package/model/store.js +1 -1
  21. package/package.json +7 -7
  22. package/pages-timeline/audio-track.d.ts +3 -2
  23. package/pages-timeline/audio-track.js +1 -1
  24. package/pages-timeline/audios.js +1 -1
  25. package/pages-timeline/element-track.js +1 -1
  26. package/pages-timeline/index.d.ts +1 -1
  27. package/pages-timeline/index.js +1 -1
  28. package/pages-timeline/play-button.d.ts +1 -1
  29. package/pages-timeline/track-styles.d.ts +9 -0
  30. package/pages-timeline/track-styles.js +1 -1
  31. package/polotno.bundle.js +200 -201
  32. package/primitives/button-group.d.ts +2 -2
  33. package/primitives/button.d.ts +2 -2
  34. package/primitives/dialog.d.ts +2 -2
  35. package/primitives/dropdown-menu.d.ts +2 -2
  36. package/primitives/field-group.d.ts +1 -1
  37. package/primitives/field-row.d.ts +1 -1
  38. package/primitives/floating-control.js +2 -2
  39. package/primitives/index.d.ts +27 -27
  40. package/primitives/input-group.d.ts +2 -2
  41. package/primitives/input.d.ts +1 -1
  42. package/primitives/navbar.d.ts +5 -5
  43. package/primitives/numeric-input.d.ts +1 -1
  44. package/primitives/overflow-list.d.ts +1 -1
  45. package/primitives/panel-header.d.ts +1 -1
  46. package/primitives/popover.d.ts +2 -2
  47. package/primitives/portal-scope.d.ts +3 -3
  48. package/primitives/search-input.d.ts +1 -1
  49. package/primitives/select.d.ts +2 -2
  50. package/primitives/separator.d.ts +1 -1
  51. package/primitives/slider-field.d.ts +1 -1
  52. package/primitives/slider.d.ts +2 -2
  53. package/primitives/spinner.d.ts +1 -1
  54. package/primitives/switch.d.ts +1 -1
  55. package/primitives/tabs.d.ts +2 -2
  56. package/primitives/textarea.d.ts +1 -1
  57. package/primitives/toggle-group.d.ts +4 -4
  58. package/primitives/toggle.d.ts +3 -3
  59. package/primitives/tooltip-icon-button.d.ts +4 -4
  60. package/primitives/tooltip.d.ts +2 -2
  61. package/side-panel/background-panel.d.ts +2 -2
  62. package/side-panel/draw-panel.d.ts +2 -2
  63. package/side-panel/elements-panel.d.ts +2 -2
  64. package/side-panel/images-grid.js +1 -1
  65. package/side-panel/index.d.ts +35 -35
  66. package/side-panel/photos-panel.d.ts +1 -1
  67. package/side-panel/select-gif.d.ts +1 -1
  68. package/side-panel/side-panel.d.ts +5 -5
  69. package/side-panel/size-panel.d.ts +3 -3
  70. package/side-panel/tab-button.d.ts +1 -1
  71. package/side-panel/tab-button.js +2 -2
  72. package/side-panel/templates-panel.d.ts +2 -2
  73. package/side-panel/unsplash-credit.d.ts +1 -1
  74. package/side-panel/upload-panel.d.ts +3 -3
  75. package/side-panel/upload-panel.js +1 -1
  76. package/side-panel/videos-grid.js +1 -1
  77. package/themes/blueprint.css +1 -1
  78. package/themes/carbon.css +127 -128
  79. package/toolbar/download-button.d.ts +2 -2
  80. package/toolbar/element-container.d.ts +1 -1
  81. package/toolbar/filters-picker.d.ts +1 -1
  82. package/toolbar/group-toolbar.d.ts +2 -2
  83. package/toolbar/history-buttons.d.ts +1 -1
  84. package/toolbar/image-remove-background-button.d.ts +1 -1
  85. package/toolbar/image-toolbar.d.ts +1 -1
  86. package/toolbar/index.d.ts +34 -34
  87. package/toolbar/many-toolbar.d.ts +2 -2
  88. package/toolbar/opacity-picker.d.ts +1 -1
  89. package/toolbar/page-toolbar.d.ts +3 -3
  90. package/toolbar/toolbar.d.ts +3 -3
  91. package/toolbar/zoom-buttons.d.ts +1 -1
  92. package/ui-types.d.ts +8 -8
  93. package/ui.css +1 -1
  94. package/utils/array.js +1 -1
  95. package/utils/file.d.ts +3 -0
  96. package/utils/file.js +1 -1
  97. package/utils/html-to-svg/svg-builder.d.ts +1 -1
  98. package/utils/insert-file.d.ts +3 -2
  99. package/utils/insert-file.js +1 -1
  100. package/utils/l10n.d.ts +4 -0
  101. package/utils/l10n.js +1 -1
  102. package/utils/media.d.ts +6 -0
  103. package/utils/media.js +1 -0
  104. 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
- 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
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
- :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
- }
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
- :root {
88
- --background: #ffffff;
89
- --foreground: #161616; /* text + monochrome primary (inverts in .dark) */
90
- --card: #ffffff; /* website card (white tile) */
91
- --card-foreground: #161616;
92
- --popover: #ffffff;
93
- --popover-foreground: #161616;
94
- --primary: #161616; /* monochrome (= foreground); blue retired */
95
- --primary-foreground: #ffffff;
96
- --secondary: #f4f4f4; /* subtle light surface (gray 10) */
97
- --secondary-foreground: #161616;
98
- --muted: #f4f4f4; /* gray 10 */
99
- --muted-foreground: #525252; /* website light-muted (gray 70) */
100
- --accent: #e8e8e8; /* hover (gray 10 hover) */
101
- --accent-foreground: #161616;
102
- --destructive: #da1e28; /* danger (red) — the only retained color */
103
- --border: #c6c6c6; /* website card-border (gray 30) */
104
- --input: #c6c6c6;
105
- --ring: #161616; /* monochrome focus */
106
- /* Monochrome data-vis ramp (dark -> light grays). */
107
- --chart-1: #161616;
108
- --chart-2: #525252;
109
- --chart-3: #8d8d8d;
110
- --chart-4: #a8a8a8;
111
- --chart-5: #c6c6c6;
112
- --radius: 0;
113
- --sidebar: #ffffff;
114
- --sidebar-foreground: #161616;
115
- --sidebar-primary: #161616;
116
- --sidebar-primary-foreground: #ffffff;
117
- --sidebar-accent: #e8e8e8;
118
- --sidebar-accent-foreground: #161616;
119
- --sidebar-border: #c6c6c6;
120
- --sidebar-ring: #161616;
121
- }
122
-
123
- /* dark = website brand surface (#161616). Default theme (see providers.tsx). */
124
- .dark {
125
- --background: #161616; /* website --color-bg */
126
- --foreground: #ffffff; /* website --color-fg */
127
- --card: #262626; /* Carbon g100 layer-01 (gray 90) */
128
- --card-foreground: #ffffff;
129
- --popover: #262626;
130
- --popover-foreground: #ffffff;
131
- --primary: #ffffff; /* monochrome (= foreground); blue retired */
132
- --primary-foreground: #161616; /* contrast on the white primary surface */
133
- --secondary: #393939; /* visible secondary surface */
134
- --secondary-foreground: #ffffff;
135
- --muted: #262626; /* Carbon g100 layer-01 (gray 90) */
136
- --muted-foreground: #c6c6c6; /* Carbon g100 text-secondary (gray 30) */
137
- --accent: #333333; /* Carbon g100 layer-hover-01 */
138
- --accent-foreground: #ffffff;
139
- --destructive: #da1e28; /* website dashboard danger (red) */
140
- --border: #393939; /* website header divider (gray 80) */
141
- --input: #393939;
142
- --ring: #ffffff; /* monochrome focus */
143
- /* Monochrome data-vis ramp (light -> dark grays). */
144
- --chart-1: #ffffff;
145
- --chart-2: #c6c6c6;
146
- --chart-3: #a8a8a8;
147
- --chart-4: #8d8d8d;
148
- --chart-5: #6f6f6f;
149
- --sidebar: #161616;
150
- --sidebar-foreground: #ffffff;
151
- --sidebar-primary: #ffffff;
152
- --sidebar-primary-foreground: #161616;
153
- --sidebar-accent: #333333;
154
- --sidebar-accent-foreground: #ffffff;
155
- --sidebar-border: #393939;
156
- --sidebar-ring: #ffffff;
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 "react";
2
- import type { StoreType } from "../ui-types.js";
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,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React from 'react';
2
2
  export declare const extendToolbar: ({ type, usedItems, components, }: {
3
3
  type: string;
4
4
  usedItems: Array<string | undefined | false>;
@@ -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,5 +1,5 @@
1
- import * as React from "react";
2
- import type { StoreType } from "../ui-types.js";
1
+ import * as React from 'react';
2
+ import type { StoreType } from '../ui-types.js';
3
3
  type Props = {
4
4
  store: StoreType;
5
5
  components?: any;
@@ -1,4 +1,4 @@
1
- import type { StoreType } from "../ui-types.js";
1
+ import type { StoreType } from '../ui-types.js';
2
2
  export declare const HistoryButtons: (({ store }: {
3
3
  store: StoreType;
4
4
  }) => import("react").JSX.Element) & {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
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) & {
@@ -1,34 +1,34 @@
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
+ 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,5 +1,5 @@
1
- import * as React from "react";
2
- import type { StoreType } from "../ui-types.js";
1
+ import * as React from 'react';
2
+ import type { StoreType } from '../ui-types.js';
3
3
  type Props = {
4
4
  store: StoreType;
5
5
  components?: any;
@@ -1,4 +1,4 @@
1
- import type { StoreType } from "../ui-types.js";
1
+ import type { StoreType } from '../ui-types.js';
2
2
  export declare const OpacityPicker: (({ store }: {
3
3
  store: StoreType;
4
4
  }) => import("react").JSX.Element) & {
@@ -1,6 +1,6 @@
1
- import * as React from "react";
2
- export { NumberInput } from "../primitives/numeric-input.js";
3
- import type { StoreType } from "../ui-types.js";
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;
@@ -1,6 +1,6 @@
1
- import * as React from "react";
2
- import { useToolbarCondensed } from "../hooks/use-toolbar-condensed.js";
3
- import type { StoreType } from "../ui-types.js";
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;
@@ -1,4 +1,4 @@
1
- import type { StoreType } from "../ui-types.js";
1
+ import type { StoreType } from '../ui-types.js';
2
2
  type Props = {
3
3
  store: StoreType;
4
4
  };
package/ui-types.d.ts CHANGED
@@ -1,13 +1,13 @@
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";
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["history"]>;
10
+ export type HistoryType = NonNullable<StoreType['history']>;
11
11
  export interface SectionTabProps {
12
12
  onClick: any;
13
13
  active: boolean;