@micromag/editor 0.4.89 → 0.4.90-alpha.2
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/assets/css/styles.css +16 -9
- package/es/index.d.ts +15 -15
- package/es/index.js +352 -435
- package/es/styles.css +16 -9
- package/package.json +9 -8
package/es/index.d.ts
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Story,
|
|
2
|
+
import { Story, StoryTheme, DeviceScreen, ViewerTheme, MenuItem, ScreenDefinition } from '@micromag/core';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
interface EditorProps {
|
|
6
|
-
value?: Story | Theme | null;
|
|
7
|
-
deviceScreens?: DeviceScreen[];
|
|
8
|
-
viewerTheme?: ViewerTheme | null;
|
|
9
|
-
mobileView?: 'screens' | 'preview' | 'form';
|
|
10
|
-
fullscreen?: boolean;
|
|
11
|
-
isTheme?: boolean;
|
|
12
|
-
isCreateOpened?: boolean;
|
|
13
|
-
onChange?: ((...args: unknown[]) => void) | null;
|
|
14
|
-
className?: string | null;
|
|
15
|
-
}
|
|
16
|
-
declare function Editor({ value, viewerTheme, isTheme, isCreateOpened, deviceScreens, mobileView: initialMobileView, onChange, fullscreen, className, }: EditorProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
|
|
18
5
|
interface EditorContainerProps {
|
|
19
|
-
value?: Story |
|
|
6
|
+
value?: Story | StoryTheme | null;
|
|
20
7
|
routes?: unknown;
|
|
21
8
|
memoryRouter?: boolean;
|
|
22
9
|
basePath?: string | null;
|
|
@@ -29,6 +16,19 @@ interface EditorContainerProps {
|
|
|
29
16
|
}
|
|
30
17
|
declare function EditorContainer({ value, memoryRouter, routes, basePath, uppy, googleApiKey, googleMapsLibraries, screenNamespaces, ...props }: EditorContainerProps): react_jsx_runtime.JSX.Element;
|
|
31
18
|
|
|
19
|
+
interface EditorProps {
|
|
20
|
+
value?: Story | StoryTheme | null;
|
|
21
|
+
deviceScreens?: DeviceScreen[];
|
|
22
|
+
viewerTheme?: ViewerTheme | null;
|
|
23
|
+
mobileView?: 'screens' | 'preview' | 'form';
|
|
24
|
+
fullscreen?: boolean;
|
|
25
|
+
isTheme?: boolean;
|
|
26
|
+
isCreateOpened?: boolean;
|
|
27
|
+
onChange?: ((...args: unknown[]) => void) | null;
|
|
28
|
+
className?: string | null;
|
|
29
|
+
}
|
|
30
|
+
declare function Editor({ value, viewerTheme, isTheme, isCreateOpened, deviceScreens, mobileView: initialMobileView, onChange, fullscreen, className, }: EditorProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
32
|
interface ScreensMenuProps {
|
|
33
33
|
items?: MenuItem[];
|
|
34
34
|
withPreview?: boolean;
|