polotno 3.12.0 → 3.13.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 (176) hide show
  1. package/README.md +57 -22
  2. package/blueprint/canvas/context-menu/context-menu.d.ts +2 -2
  3. package/blueprint/canvas/page-controls.d.ts +14 -2
  4. package/blueprint/canvas/tooltip.d.ts +24 -2
  5. package/blueprint/pages-timeline/audio-track.d.ts +12 -2
  6. package/blueprint/pages-timeline/audios.d.ts +10 -2
  7. package/blueprint/pages-timeline/current-time.d.ts +2 -2
  8. package/blueprint/pages-timeline/element-track.d.ts +14 -2
  9. package/blueprint/pages-timeline/elements.d.ts +2 -2
  10. package/blueprint/pages-timeline/page-preview.d.ts +8 -2
  11. package/blueprint/pages-timeline/pages-timeline.d.ts +8 -2
  12. package/blueprint/pages-timeline/pages.d.ts +8 -2
  13. package/blueprint/pages-timeline/play-button.d.ts +2 -2
  14. package/blueprint/pages-timeline/time-ruler.d.ts +10 -2
  15. package/blueprint/side-panel/ai-images-panel.d.ts +6 -2
  16. package/blueprint/side-panel/animations-panel.d.ts +6 -2
  17. package/blueprint/side-panel/background-panel.d.ts +6 -2
  18. package/blueprint/side-panel/draw-panel.d.ts +6 -2
  19. package/blueprint/side-panel/effects-panel.d.ts +6 -2
  20. package/blueprint/side-panel/image-clip-panel.d.ts +6 -2
  21. package/blueprint/side-panel/layers-panel.d.ts +6 -2
  22. package/blueprint/side-panel/pages-panel.d.ts +6 -2
  23. package/blueprint/side-panel/select-video.d.ts +2 -2
  24. package/blueprint/side-panel/side-panel.d.ts +2 -2
  25. package/blueprint/side-panel/size-panel.d.ts +6 -2
  26. package/blueprint/side-panel/templates-panel.d.ts +6 -2
  27. package/blueprint/side-panel/text-panel.d.ts +6 -2
  28. package/blueprint/side-panel/videos-panel.d.ts +6 -2
  29. package/blueprint/toolbar/admin-button.d.ts +6 -2
  30. package/blueprint/toolbar/animations-picker.d.ts +18 -4
  31. package/blueprint/toolbar/copy-style.d.ts +6 -2
  32. package/blueprint/toolbar/download-button.d.ts +6 -2
  33. package/blueprint/toolbar/duplicate-button.d.ts +6 -2
  34. package/blueprint/toolbar/figure-toolbar.d.ts +8 -8
  35. package/blueprint/toolbar/filters-picker.d.ts +26 -6
  36. package/blueprint/toolbar/gif-toolbar.d.ts +2 -2
  37. package/blueprint/toolbar/group-button.d.ts +6 -2
  38. package/blueprint/toolbar/group-toolbar.d.ts +2 -2
  39. package/blueprint/toolbar/history-buttons.d.ts +6 -2
  40. package/blueprint/toolbar/html-toolbar.d.ts +10 -10
  41. package/blueprint/toolbar/image-remove-background-button.d.ts +10 -2
  42. package/blueprint/toolbar/image-toolbar.d.ts +28 -8
  43. package/blueprint/toolbar/line-toolbar.d.ts +14 -10
  44. package/blueprint/toolbar/lock-button.d.ts +6 -2
  45. package/blueprint/toolbar/many-toolbar.d.ts +2 -2
  46. package/blueprint/toolbar/opacity-picker.d.ts +6 -2
  47. package/blueprint/toolbar/page-toolbar.d.ts +2 -2
  48. package/blueprint/toolbar/position-picker.d.ts +6 -2
  49. package/blueprint/toolbar/remove-button.d.ts +6 -2
  50. package/blueprint/toolbar/svg-toolbar.d.ts +2 -2
  51. package/blueprint/toolbar/table-toolbar.d.ts +44 -14
  52. package/blueprint/toolbar/text-ai-write.d.ts +6 -2
  53. package/blueprint/toolbar/text-toolbar.d.ts +14 -14
  54. package/blueprint/toolbar/toolbar.d.ts +2 -2
  55. package/blueprint/toolbar/video-toolbar.d.ts +6 -6
  56. package/blueprint/toolbar/zoom-buttons.d.ts +4 -4
  57. package/canvas/audio.d.ts +3 -2
  58. package/canvas/context-menu/context-menu.d.ts +2 -2
  59. package/canvas/drawing-layer.d.ts +2 -2
  60. package/canvas/element.d.ts +2 -2
  61. package/canvas/fade-overlay.d.ts +14 -0
  62. package/canvas/fade-overlay.js +1 -0
  63. package/canvas/figure-element.d.ts +2 -2
  64. package/canvas/gif-element.d.ts +2 -2
  65. package/canvas/gif-element.js +1 -1
  66. package/canvas/highlighter.d.ts +6 -2
  67. package/canvas/html-element.d.ts +2 -2
  68. package/canvas/image-element.d.ts +5 -3
  69. package/canvas/image-element.js +1 -1
  70. package/canvas/line-element.d.ts +2 -2
  71. package/canvas/page-controls.d.ts +14 -2
  72. package/canvas/page.d.ts +2 -2
  73. package/canvas/page.js +1 -1
  74. package/canvas/render-tag-element.d.ts +2 -2
  75. package/canvas/render-tag-element.js +1 -1
  76. package/canvas/rich-editor.js +3 -3
  77. package/canvas/rules.d.ts +2 -2
  78. package/canvas/table-element.d.ts +2 -2
  79. package/canvas/text-element.d.ts +2 -2
  80. package/canvas/tooltip.d.ts +24 -2
  81. package/canvas/video-element.d.ts +3 -2
  82. package/canvas/video-element.js +1 -1
  83. package/canvas/workspace-canvas.d.ts +2 -2
  84. package/hooks/use-fade-stop-focus.d.ts +2 -0
  85. package/hooks/use-fade-stop-focus.js +1 -0
  86. package/icons/registry.d.ts +106 -102
  87. package/model/figure-model.d.ts +1 -1
  88. package/model/gif-model.d.ts +1 -1
  89. package/model/group-model.d.ts +8 -8
  90. package/model/image-model.d.ts +1 -1
  91. package/model/line-model.d.ts +1 -1
  92. package/model/page-model.d.ts +10 -10
  93. package/model/shape-model.d.ts +2 -2
  94. package/model/shape-model.js +1 -1
  95. package/model/store.d.ts +92 -92
  96. package/model/svg-model.d.ts +1 -1
  97. package/model/table-model.d.ts +1 -1
  98. package/model/text-model.d.ts +1 -1
  99. package/model/video-model.d.ts +1 -1
  100. package/package.json +49 -35
  101. package/pages-timeline/audio-track.d.ts +14 -2
  102. package/pages-timeline/audio-track.js +1 -1
  103. package/pages-timeline/audios.d.ts +10 -2
  104. package/pages-timeline/current-time.d.ts +2 -2
  105. package/pages-timeline/current-time.js +1 -1
  106. package/pages-timeline/element-track.d.ts +14 -2
  107. package/pages-timeline/element-track.js +1 -1
  108. package/pages-timeline/elements.d.ts +2 -2
  109. package/pages-timeline/page-preview.d.ts +8 -2
  110. package/pages-timeline/page-preview.js +1 -1
  111. package/pages-timeline/pages-timeline.d.ts +8 -2
  112. package/pages-timeline/pages-timeline.js +1 -1
  113. package/pages-timeline/pages.d.ts +8 -2
  114. package/pages-timeline/play-button.d.ts +2 -2
  115. package/pages-timeline/time-ruler.d.ts +10 -2
  116. package/pages-timeline/time-ruler.js +1 -1
  117. package/polotno.bundle.js +167 -166
  118. package/side-panel/ai-images-panel.d.ts +6 -2
  119. package/side-panel/animations-panel.d.ts +6 -2
  120. package/side-panel/background-panel.d.ts +6 -2
  121. package/side-panel/draw-panel.d.ts +6 -2
  122. package/side-panel/effects-panel.d.ts +6 -2
  123. package/side-panel/effects-panel.js +1 -1
  124. package/side-panel/image-clip-panel.d.ts +6 -2
  125. package/side-panel/layers-panel.d.ts +6 -2
  126. package/side-panel/pages-panel.d.ts +6 -2
  127. package/side-panel/select-video.d.ts +2 -2
  128. package/side-panel/side-panel.d.ts +2 -2
  129. package/side-panel/size-panel.d.ts +6 -2
  130. package/side-panel/templates-panel.d.ts +6 -2
  131. package/side-panel/text-panel.d.ts +6 -2
  132. package/side-panel/videos-panel.d.ts +6 -2
  133. package/toolbar/admin-button.d.ts +6 -2
  134. package/toolbar/animations-picker.d.ts +18 -4
  135. package/toolbar/copy-style.d.ts +6 -2
  136. package/toolbar/download-button.d.ts +6 -2
  137. package/toolbar/duplicate-button.d.ts +6 -2
  138. package/toolbar/figure-toolbar.d.ts +8 -8
  139. package/toolbar/filters-picker.d.ts +26 -6
  140. package/toolbar/gif-toolbar.d.ts +2 -2
  141. package/toolbar/group-button.d.ts +6 -2
  142. package/toolbar/group-toolbar.d.ts +2 -2
  143. package/toolbar/history-buttons.d.ts +6 -2
  144. package/toolbar/html-toolbar.d.ts +10 -10
  145. package/toolbar/image-remove-background-button.d.ts +10 -2
  146. package/toolbar/image-toolbar.d.ts +32 -10
  147. package/toolbar/line-toolbar.d.ts +14 -10
  148. package/toolbar/lock-button.d.ts +6 -2
  149. package/toolbar/many-toolbar.d.ts +2 -2
  150. package/toolbar/opacity-picker.d.ts +6 -2
  151. package/toolbar/page-toolbar.d.ts +2 -2
  152. package/toolbar/position-picker.d.ts +6 -2
  153. package/toolbar/remove-button.d.ts +6 -2
  154. package/toolbar/svg-toolbar.d.ts +2 -2
  155. package/toolbar/table-toolbar.d.ts +44 -14
  156. package/toolbar/text-ai-write.d.ts +6 -2
  157. package/toolbar/text-toolbar.d.ts +30 -18
  158. package/toolbar/toolbar.d.ts +2 -2
  159. package/toolbar/video-toolbar.d.ts +12 -6
  160. package/toolbar/video-toolbar.js +1 -1
  161. package/toolbar/zoom-buttons.d.ts +4 -4
  162. package/ui.css +1 -1
  163. package/utils/clip-fade.d.ts +6 -0
  164. package/utils/clip-fade.js +1 -0
  165. package/utils/clipboard.d.ts +2 -2
  166. package/utils/fade-gradient.d.ts +33 -0
  167. package/utils/fade-gradient.js +1 -0
  168. package/utils/fade-overlay.d.ts +9 -0
  169. package/utils/fade-overlay.js +1 -0
  170. package/utils/l10n.d.ts +19 -0
  171. package/utils/l10n.js +1 -1
  172. package/utils/pointer-drag.d.ts +6 -4
  173. package/utils/pointer-drag.js +1 -1
  174. package/utils/rich-text-html.d.ts +0 -10
  175. package/utils/rich-text-html.js +1 -1
  176. package/utils/validate-key.js +1 -1
package/README.md CHANGED
@@ -1,48 +1,83 @@
1
1
  # Polotno
2
2
 
3
- Build modern image and video editing apps with a powerful, flexible SDK.
3
+ Design editor SDK. Embed a Canva-like editor in your product, generate designs from templates and data, and export them to PNG, JPEG, PDF, or video in the browser or on a server.
4
4
 
5
- **[Documentation](https://polotno.com/docs)** · **[Website](https://polotno.com/)**
5
+ Polotno ships React components and a framework-independent store. Use it from React, or from Vue, Angular, Svelte, and plain JavaScript through the [frameworkless integration](https://polotno.com/docs/frameworkless-integration). It is built on [Konva](https://konvajs.org/) and [react-konva](https://github.com/konvajs/react-konva).
6
6
 
7
- ## Installation
7
+ **[Documentation](https://polotno.com/docs)** · **[Website](https://polotno.com/)** · **[Build with AI](https://polotno.com/docs/build-with-ai)**
8
+
9
+ ## What you get
10
+
11
+ - **Editor** — canvas, toolbar, side panel, pages, and zoom controls. Every part can be replaced, hidden, or restyled.
12
+ - **Templates and automation** — designs are plain JSON. Load templates, fill variables, and generate variants from data.
13
+ - **Text, images, and media** — rich text and fonts, image crop and filters, AI background removal, SVG, GIF, and video with audio.
14
+ - **Video editing** — animations, timelines, and export to MP4 and GIF.
15
+ - **Import** — PDF and PSD files become editable designs.
16
+ - **Export** — PNG, JPEG, PDF with bleed and crop marks, SVG, HTML, PPTX, MP4, GIF.
17
+ - **Server-side rendering** — render the same JSON in Node.js with `polotno-node`, or use Polotno Cloud Render.
18
+ - **AI tools** — write assistant, background removal, and an MCP server plus skills for coding agents.
19
+
20
+ ## Install
8
21
 
9
22
  ```bash
10
23
  npm install polotno
11
24
  ```
12
25
 
13
- ## Quick Start
26
+ `polotno@4` is the React 19 line. For React 18, install `polotno@react18`.
27
+
28
+ ## Quick start
14
29
 
15
30
  ```jsx
16
- import React from 'react';
17
31
  import { PolotnoContainer, SidePanelWrap, WorkspaceWrap } from 'polotno';
18
32
  import { Toolbar } from 'polotno/toolbar/toolbar';
19
33
  import { ZoomButtons } from 'polotno/toolbar/zoom-buttons';
20
34
  import { SidePanel } from 'polotno/side-panel';
21
35
  import { Workspace } from 'polotno/canvas/workspace';
22
36
  import { createStore } from 'polotno/model/store';
37
+ import 'polotno/ui.css';
23
38
 
24
39
  const store = createStore({
25
- key: 'YOUR_API_KEY', // get your key at https://polotno.com/cabinet
26
- showCredit: true,
40
+ key: 'YOUR_API_KEY', // https://polotno.com/cabinet — the SDK warns in the console without one
27
41
  });
28
42
  store.addPage();
29
43
 
30
- export const App = () => {
31
- return (
32
- <PolotnoContainer style={{ width: '100vw', height: '100vh' }}>
33
- <SidePanelWrap>
34
- <SidePanel store={store} />
35
- </SidePanelWrap>
36
- <WorkspaceWrap>
37
- <Toolbar store={store} />
38
- <Workspace store={store} />
39
- <ZoomButtons store={store} />
40
- </WorkspaceWrap>
41
- </PolotnoContainer>
42
- );
43
- };
44
+ export const App = () => (
45
+ <PolotnoContainer style={{ width: '100vw', height: '100vh' }}>
46
+ <SidePanelWrap>
47
+ <SidePanel store={store} />
48
+ </SidePanelWrap>
49
+ <WorkspaceWrap>
50
+ <Toolbar store={store} />
51
+ <Workspace store={store} />
52
+ <ZoomButtons store={store} />
53
+ </WorkspaceWrap>
54
+ </PolotnoContainer>
55
+ );
56
+ ```
57
+
58
+ Export the current design:
59
+
60
+ ```js
61
+ await store.waitLoading();
62
+ const png = await store.toDataURL();
63
+ const pdf = await store.toPDFDataURL();
44
64
  ```
45
65
 
66
+ ## AI coding agents
67
+
68
+ Install the official skills so your agent knows the SDK before it writes code. `polotno-sdk` is for developers integrating the editor; `polotno-design` is for producing designs.
69
+
70
+ ```bash
71
+ # Claude Code: both skills plus the docs MCP server
72
+ claude plugin marketplace add polotno-project/skills
73
+ claude plugin install polotno@polotno
74
+
75
+ # Cursor, Codex, Copilot, Windsurf, Cline, and others
76
+ npx skills add polotno-project/skills
77
+ ```
78
+
79
+ Every docs page is also available as markdown by appending `.md` to its URL, and https://polotno.com/llms.txt indexes them. Full guide: https://polotno.com/docs/build-with-ai
80
+
46
81
  ## License
47
82
 
48
- See [LICENSE.md](./LICENSE.md).
83
+ Polotno is commercial software. See [LICENSE.md](./LICENSE.md) and [pricing](https://polotno.com/sdk/pricing).
@@ -11,7 +11,7 @@ type ContextMenuProps = {
11
11
  isOpen: boolean;
12
12
  setIsOpen: (b: boolean) => void;
13
13
  };
14
- export declare const ContextMenu: (({ store, isOpen, offset, setIsOpen }: ContextMenuProps) => React.JSX.Element | null) & {
15
- displayName: string;
14
+ export declare const ContextMenu: (({ store, isOpen, offset, setIsOpen }: ContextMenuProps) => React.JSX.Element | null) & React.NamedExoticComponent<ContextMenuProps> & {
15
+ readonly type: ({ store, isOpen, offset, setIsOpen }: ContextMenuProps) => React.JSX.Element | null;
16
16
  };
17
17
  export {};
@@ -7,6 +7,18 @@ export declare const PageControls: (({ store, page, xPadding, yPadding, layout,
7
7
  xPadding: number;
8
8
  yPadding: number;
9
9
  layout?: "vertical" | "horizontal";
10
- }) => React.JSX.Element | null) & {
11
- displayName: string;
10
+ }) => React.JSX.Element | null) & React.NamedExoticComponent<{
11
+ store: StoreType;
12
+ page: PageType;
13
+ xPadding: number;
14
+ yPadding: number;
15
+ layout?: "vertical" | "horizontal";
16
+ }> & {
17
+ readonly type: ({ store, page, xPadding, yPadding, layout, }: {
18
+ store: StoreType;
19
+ page: PageType;
20
+ xPadding: number;
21
+ yPadding: number;
22
+ layout?: "vertical" | "horizontal";
23
+ }) => React.JSX.Element | null;
12
24
  };
@@ -12,6 +12,28 @@ export declare const Tooltip: (({ store, page, components, stageRef, tooltipSafe
12
12
  left?: number;
13
13
  right?: number;
14
14
  };
15
- }) => React.JSX.Element | null) & {
16
- displayName: string;
15
+ }) => React.JSX.Element | null) & React.NamedExoticComponent<{
16
+ store: StoreType;
17
+ page: PageType;
18
+ components?: any;
19
+ stageRef?: any;
20
+ tooltipSafeArea?: {
21
+ top?: number;
22
+ bottom?: number;
23
+ left?: number;
24
+ right?: number;
25
+ };
26
+ }> & {
27
+ readonly type: ({ store, page, components, stageRef, tooltipSafeArea, }: {
28
+ store: StoreType;
29
+ page: PageType;
30
+ components?: any;
31
+ stageRef?: any;
32
+ tooltipSafeArea?: {
33
+ top?: number;
34
+ bottom?: number;
35
+ left?: number;
36
+ right?: number;
37
+ };
38
+ }) => React.JSX.Element | null;
17
39
  };
@@ -8,6 +8,16 @@ export declare const AudioTrack: (({ audio, scale, store, index, }: {
8
8
  scale: number;
9
9
  store: StoreType;
10
10
  index: number;
11
- }) => React.JSX.Element) & {
12
- displayName: string;
11
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
12
+ audio: AudioType;
13
+ scale: number;
14
+ store: StoreType;
15
+ index: number;
16
+ }> & {
17
+ readonly type: ({ audio, scale, store, index, }: {
18
+ audio: AudioType;
19
+ scale: number;
20
+ store: StoreType;
21
+ index: number;
22
+ }) => React.JSX.Element;
13
23
  };
@@ -4,6 +4,14 @@ export declare const Audios: (({ store, scale, width, }: {
4
4
  store: StoreType;
5
5
  scale: number;
6
6
  width: number;
7
- }) => React.JSX.Element | null) & {
8
- displayName: string;
7
+ }) => React.JSX.Element | null) & React.NamedExoticComponent<{
8
+ store: StoreType;
9
+ scale: number;
10
+ width: number;
11
+ }> & {
12
+ readonly type: ({ store, scale, width, }: {
13
+ store: StoreType;
14
+ scale: number;
15
+ width: number;
16
+ }) => React.JSX.Element | null;
9
17
  };
@@ -7,7 +7,7 @@ interface CurrentTimeProps {
7
7
  variant?: Variant;
8
8
  dragAreaRef?: React.RefObject<HTMLElement | null>;
9
9
  }
10
- export declare const CurrentTime: (({ store, scale, variant, dragAreaRef }: CurrentTimeProps) => React.JSX.Element) & {
11
- displayName: string;
10
+ export declare const CurrentTime: (({ store, scale, variant, dragAreaRef }: CurrentTimeProps) => React.JSX.Element) & React.NamedExoticComponent<CurrentTimeProps> & {
11
+ readonly type: ({ store, scale, variant, dragAreaRef }: CurrentTimeProps) => React.JSX.Element;
12
12
  };
13
13
  export {};
@@ -9,6 +9,18 @@ export declare const ElementTrack: (({ element, page, store, scale, row, }: {
9
9
  store: StoreType;
10
10
  scale: number;
11
11
  row: number;
12
- }) => React.JSX.Element) & {
13
- displayName: string;
12
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
13
+ element: ShapeType;
14
+ page: PageType;
15
+ store: StoreType;
16
+ scale: number;
17
+ row: number;
18
+ }> & {
19
+ readonly type: ({ element, page, store, scale, row, }: {
20
+ element: ShapeType;
21
+ page: PageType;
22
+ store: StoreType;
23
+ scale: number;
24
+ row: number;
25
+ }) => React.JSX.Element;
14
26
  };
@@ -5,7 +5,7 @@ interface ElementTimelineProps {
5
5
  scale: number;
6
6
  width: number;
7
7
  }
8
- export declare const ElementsTimeline: (({ store, scale, width }: ElementTimelineProps) => React.JSX.Element | null) & {
9
- displayName: string;
8
+ export declare const ElementsTimeline: (({ store, scale, width }: ElementTimelineProps) => React.JSX.Element | null) & React.NamedExoticComponent<ElementTimelineProps> & {
9
+ readonly type: ({ store, scale, width }: ElementTimelineProps) => React.JSX.Element | null;
10
10
  };
11
11
  export {};
@@ -7,6 +7,12 @@ export declare const usePagePreview: ({ page, ref, }: {
7
7
  export declare const PagePreview: (({ page, scale }: {
8
8
  page: PageType;
9
9
  scale: number;
10
- }) => React.JSX.Element) & {
11
- displayName: string;
10
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
11
+ page: PageType;
12
+ scale: number;
13
+ }> & {
14
+ readonly type: ({ page, scale }: {
15
+ page: PageType;
16
+ scale: number;
17
+ }) => React.JSX.Element;
12
18
  };
@@ -4,6 +4,12 @@ import { StoreType } from '../../model/store.js';
4
4
  export declare const PagesTimeline: (({ store, defaultOpened, }: {
5
5
  store: StoreType;
6
6
  defaultOpened?: boolean;
7
- }) => React.JSX.Element) & {
8
- displayName: string;
7
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
8
+ store: StoreType;
9
+ defaultOpened?: boolean;
10
+ }> & {
11
+ readonly type: ({ store, defaultOpened, }: {
12
+ store: StoreType;
13
+ defaultOpened?: boolean;
14
+ }) => React.JSX.Element;
9
15
  };
@@ -3,6 +3,12 @@ import { StoreType } from '../../model/store.js';
3
3
  export declare const Pages: (({ store, scale }: {
4
4
  store: StoreType;
5
5
  scale: number;
6
- }) => React.JSX.Element) & {
7
- displayName: string;
6
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
7
+ store: StoreType;
8
+ scale: number;
9
+ }> & {
10
+ readonly type: ({ store, scale }: {
11
+ store: StoreType;
12
+ scale: number;
13
+ }) => React.JSX.Element;
8
14
  };
@@ -5,7 +5,7 @@ interface PlayButtonProps {
5
5
  scale?: number;
6
6
  onScaleChange?: (scale: number) => void;
7
7
  }
8
- export declare const PlayButton: (({ store, scale, onScaleChange }: PlayButtonProps) => React.JSX.Element) & {
9
- displayName: string;
8
+ export declare const PlayButton: (({ store, scale, onScaleChange }: PlayButtonProps) => React.JSX.Element) & React.NamedExoticComponent<PlayButtonProps> & {
9
+ readonly type: ({ store, scale, onScaleChange }: PlayButtonProps) => React.JSX.Element;
10
10
  };
11
11
  export {};
@@ -4,6 +4,14 @@ export declare const TimeRuler: (({ store, scale, minWidth, }: {
4
4
  store: StoreType;
5
5
  scale: number;
6
6
  minWidth?: number;
7
- }) => React.JSX.Element) & {
8
- displayName: string;
7
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
8
+ store: StoreType;
9
+ scale: number;
10
+ minWidth?: number;
11
+ }> & {
12
+ readonly type: ({ store, scale, minWidth, }: {
13
+ store: StoreType;
14
+ scale: number;
15
+ minWidth?: number;
16
+ }) => React.JSX.Element;
9
17
  };
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const AiImagesPanel: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -7,6 +7,10 @@ export declare const NumberInput: ({ value, onValueChange, ...props }: {
7
7
  }) => React.JSX.Element;
8
8
  export declare const AnimationsPanel: (({ store }: {
9
9
  store: StoreType;
10
- }) => React.JSX.Element | null) & {
11
- displayName: string;
10
+ }) => React.JSX.Element | null) & React.NamedExoticComponent<{
11
+ store: StoreType;
12
+ }> & {
13
+ readonly type: ({ store }: {
14
+ store: StoreType;
15
+ }) => React.JSX.Element | null;
12
16
  };
@@ -4,6 +4,10 @@ export declare const setDefaultQuery: (query: string) => void;
4
4
  export declare const setBackgroundColorsPreset: (newColors: string[]) => void;
5
5
  export declare const BackgroundPanel: (({ store }: {
6
6
  store: StoreType;
7
- }) => React.JSX.Element) & {
8
- displayName: string;
7
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
8
+ store: StoreType;
9
+ }> & {
10
+ readonly type: ({ store }: {
11
+ store: StoreType;
12
+ }) => React.JSX.Element;
9
13
  };
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const DrawPanel: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -7,6 +7,10 @@ export declare const NumberInput: ({ value, onValueChange, ...props }: {
7
7
  }) => React.JSX.Element;
8
8
  export declare const EffectsPanel: (({ store }: {
9
9
  store: StoreType;
10
- }) => React.JSX.Element | null) & {
11
- displayName: string;
10
+ }) => React.JSX.Element | null) & React.NamedExoticComponent<{
11
+ store: StoreType;
12
+ }> & {
13
+ readonly type: ({ store }: {
14
+ store: StoreType;
15
+ }) => React.JSX.Element | null;
12
16
  };
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const ImageClipPanel: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const LayersPanel: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const PagesPanel: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -160,7 +160,7 @@ export declare const selectVideo: ({ src, droppedPos, targetElement, store, attr
160
160
  } & {
161
161
  readonly locked: boolean;
162
162
  readonly a: import("../../model/shape-model.js").AnimatedAttrs;
163
- animated(attr: any): any;
163
+ animated(attr: string): any;
164
164
  readonly timeRange: {
165
165
  start: number;
166
166
  end: number;
@@ -328,7 +328,7 @@ export declare const selectVideo: ({ src, droppedPos, targetElement, store, attr
328
328
  } & {
329
329
  readonly locked: boolean;
330
330
  readonly a: import("../../model/shape-model.js").AnimatedAttrs;
331
- animated(attr: any): any;
331
+ animated(attr: string): any;
332
332
  readonly timeRange: {
333
333
  start: number;
334
334
  end: number;
@@ -33,7 +33,7 @@ interface SidePanelProps {
33
33
  sections?: Section[];
34
34
  defaultSection?: string;
35
35
  }
36
- export declare const SidePanel: (({ store, sections, defaultSection }: SidePanelProps) => React.JSX.Element) & {
37
- displayName: string;
36
+ export declare const SidePanel: (({ store, sections, defaultSection }: SidePanelProps) => React.JSX.Element) & React.NamedExoticComponent<SidePanelProps> & {
37
+ readonly type: ({ store, sections, defaultSection }: SidePanelProps) => React.JSX.Element;
38
38
  };
39
39
  export default SidePanel;
@@ -8,6 +8,10 @@ export declare const SIZE_CATEGORIES: Array<{
8
8
  }>;
9
9
  export declare const SizePanel: (({ store }: {
10
10
  store: StoreType;
11
- }) => React.JSX.Element) & {
12
- displayName: string;
11
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
12
+ store: StoreType;
13
+ }> & {
14
+ readonly type: ({ store }: {
15
+ store: StoreType;
16
+ }) => React.JSX.Element;
13
17
  };
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const TemplatesPanel: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -4,7 +4,11 @@ declare let uploadFunc: (file: File) => Promise<string>;
4
4
  export declare function setFontUploadFunc(func: typeof uploadFunc): void;
5
5
  export declare const TextPanel: (({ store }: {
6
6
  store: StoreType;
7
- }) => React.JSX.Element) & {
8
- displayName: string;
7
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
8
+ store: StoreType;
9
+ }> & {
10
+ readonly type: ({ store }: {
11
+ store: StoreType;
12
+ }) => React.JSX.Element;
9
13
  };
10
14
  export {};
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const VideosPanel: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const AdminButton: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -10,13 +10,27 @@ export declare const AnimationsPickerOld: (({ element, store, elements, }: {
10
10
  elements?: Array<ShapeType>;
11
11
  element?: ShapeType;
12
12
  store: StoreType;
13
- }) => React.JSX.Element) & {
14
- displayName: string;
13
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
14
+ elements?: Array<ShapeType>;
15
+ element?: ShapeType;
16
+ store: StoreType;
17
+ }> & {
18
+ readonly type: ({ element, store, elements, }: {
19
+ elements?: Array<ShapeType>;
20
+ element?: ShapeType;
21
+ store: StoreType;
22
+ }) => React.JSX.Element;
15
23
  };
16
24
  export declare const AnimationsPicker: (({ element, store }: {
17
25
  element: ShapeType;
18
26
  store: StoreType;
19
- }) => React.JSX.Element | null) & {
20
- displayName: string;
27
+ }) => React.JSX.Element | null) & React.NamedExoticComponent<{
28
+ element: ShapeType;
29
+ store: StoreType;
30
+ }> & {
31
+ readonly type: ({ element, store }: {
32
+ element: ShapeType;
33
+ store: StoreType;
34
+ }) => React.JSX.Element | null;
21
35
  };
22
36
  export default AnimationsPicker;
@@ -2,7 +2,11 @@ import { StoreType } from '../../model/store.js';
2
2
  import React from 'react';
3
3
  export declare const CopyStyleButton: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
8
12
  export declare const PAINT_ICON: React.JSX.Element;
@@ -2,7 +2,11 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const DownloadButton: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
8
12
  export default DownloadButton;
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import { StoreType } from '../../model/store.js';
3
3
  export declare const DuplicateButton: (({ store }: {
4
4
  store: StoreType;
5
- }) => React.JSX.Element) & {
6
- displayName: string;
5
+ }) => React.JSX.Element) & React.NamedExoticComponent<{
6
+ store: StoreType;
7
+ }> & {
8
+ readonly type: ({ store }: {
9
+ store: StoreType;
10
+ }) => React.JSX.Element;
7
11
  };
@@ -10,16 +10,16 @@ type ButtonProps = {
10
10
  store: StoreType;
11
11
  elements: FigureElementType[];
12
12
  };
13
- export declare const FigureFill: (({ elements, store }: ButtonProps) => React.JSX.Element) & {
14
- displayName: string;
13
+ export declare const FigureFill: (({ elements, store }: ButtonProps) => React.JSX.Element) & React.NamedExoticComponent<ButtonProps> & {
14
+ readonly type: ({ elements, store }: ButtonProps) => React.JSX.Element;
15
15
  };
16
- export declare const FigureSettings: (({ store, elements, element }: ButtonProps) => React.JSX.Element) & {
17
- displayName: string;
16
+ export declare const FigureSettings: (({ store, elements, element }: ButtonProps) => React.JSX.Element) & React.NamedExoticComponent<ButtonProps> & {
17
+ readonly type: ({ store, elements, element }: ButtonProps) => React.JSX.Element;
18
18
  };
19
- export declare const FigureStroke: (({ elements, store }: ButtonProps) => React.JSX.Element | null) & {
20
- displayName: string;
19
+ export declare const FigureStroke: (({ elements, store }: ButtonProps) => React.JSX.Element | null) & React.NamedExoticComponent<ButtonProps> & {
20
+ readonly type: ({ elements, store }: ButtonProps) => React.JSX.Element | null;
21
21
  };
22
- export declare const FigureToolbar: (({ store, components }: Props) => React.JSX.Element) & {
23
- displayName: string;
22
+ export declare const FigureToolbar: (({ store, components }: Props) => React.JSX.Element) & React.NamedExoticComponent<Props> & {
23
+ readonly type: ({ store, components }: Props) => React.JSX.Element;
24
24
  };
25
25
  export default FigureToolbar;