@micromag/editor 0.4.17 → 0.4.20
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/es/index.d.ts +22 -19
- package/package.json +7 -7
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Story, Theme, DeviceScreen, ViewerTheme } from '@micromag/core';
|
|
2
|
+
import { Story, Theme, DeviceScreen, ViewerTheme, MenuItem, ScreenDefinition } from '@micromag/core';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
|
|
4
5
|
interface EditorProps {
|
|
5
6
|
value?: Story | Theme | null;
|
|
@@ -28,31 +29,33 @@ interface EditorContainerProps {
|
|
|
28
29
|
}
|
|
29
30
|
declare function EditorContainer({ value, memoryRouter, routes, basePath, uppy, googleApiKey, googleMapsLibraries, screenNamespaces, ...props }: EditorContainerProps): react_jsx_runtime.JSX.Element;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
items?:
|
|
32
|
+
interface ScreensMenuProps {
|
|
33
|
+
items?: MenuItem[];
|
|
33
34
|
withPreview?: boolean;
|
|
34
35
|
withPlaceholder?: boolean;
|
|
35
36
|
withName?: boolean;
|
|
36
|
-
settings?:
|
|
37
|
-
isVertical?: boolean;
|
|
38
|
-
noWrap?: boolean;
|
|
39
|
-
className?: any;
|
|
40
|
-
itemClassName?: any;
|
|
41
|
-
buttonClassName?: any;
|
|
42
|
-
settingsClassName?: any;
|
|
37
|
+
settings?: React.ReactNode | ((...args: unknown[]) => void);
|
|
43
38
|
sortable?: boolean;
|
|
44
39
|
isTree?: boolean;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
isVertical?: boolean;
|
|
41
|
+
noWrap?: boolean;
|
|
42
|
+
className?: string;
|
|
43
|
+
itemClassName?: string;
|
|
44
|
+
buttonClassName?: string;
|
|
45
|
+
settingsClassName?: string;
|
|
46
|
+
onClickItem?: (...args: unknown[]) => void;
|
|
47
|
+
onOrderChange?: (...args: unknown[]) => void;
|
|
48
|
+
}
|
|
49
|
+
declare function ScreensMenu({ items, withPreview, withPlaceholder, withName, settings, isVertical, noWrap, className, itemClassName, buttonClassName, settingsClassName, sortable, isTree, onClickItem, onOrderChange, }: ScreensMenuProps): react_jsx_runtime.JSX.Element;
|
|
48
50
|
|
|
49
|
-
|
|
50
|
-
screens?:
|
|
51
|
-
selectedTypes?:
|
|
51
|
+
interface ScreenTypesProps {
|
|
52
|
+
screens?: ScreenDefinition[];
|
|
53
|
+
selectedTypes?: string[];
|
|
52
54
|
legacyTypes?: string[];
|
|
53
|
-
className?:
|
|
54
|
-
onClickItem?:
|
|
55
|
-
}
|
|
55
|
+
className?: string;
|
|
56
|
+
onClickItem?: (...args: unknown[]) => void;
|
|
57
|
+
}
|
|
58
|
+
declare function ScreenTypes({ screens, selectedTypes, legacyTypes, className, onClickItem, }: ScreenTypesProps): react_jsx_runtime.JSX.Element;
|
|
56
59
|
|
|
57
60
|
declare const createScreen: (definition: any, data?: {}) => any;
|
|
58
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/editor",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
70
70
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
71
71
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
72
|
-
"@micromag/core": "^0.4.
|
|
73
|
-
"@micromag/elements": "^0.4.
|
|
74
|
-
"@micromag/fields": "^0.4.
|
|
75
|
-
"@micromag/screens": "^0.4.
|
|
76
|
-
"@micromag/viewer": "^0.4.
|
|
72
|
+
"@micromag/core": "^0.4.20",
|
|
73
|
+
"@micromag/elements": "^0.4.20",
|
|
74
|
+
"@micromag/fields": "^0.4.20",
|
|
75
|
+
"@micromag/screens": "^0.4.20",
|
|
76
|
+
"@micromag/viewer": "^0.4.20",
|
|
77
77
|
"@panneau/uppy": "^4.0.21",
|
|
78
78
|
"classnames": "^2.2.6",
|
|
79
79
|
"lodash": "^4.17.23",
|
|
@@ -87,6 +87,6 @@
|
|
|
87
87
|
"access": "public",
|
|
88
88
|
"registry": "https://registry.npmjs.org/"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "cc2002a3386b66c7562f0975e5ecf5d54f178845",
|
|
91
91
|
"types": "es/index.d.ts"
|
|
92
92
|
}
|