@micromag/editor 0.4.98 → 0.4.101
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 +7 -7
- package/es/index.js +5 -6
- package/package.json +25 -22
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default from 'react';
|
|
2
3
|
import { Story, StoryTheme, DeviceScreen, ViewerTheme, MenuItem, ScreenDefinition } from '@micromag/core';
|
|
3
|
-
import React from 'react';
|
|
4
4
|
|
|
5
5
|
interface EditorProps {
|
|
6
6
|
value?: Story | StoryTheme | null;
|
|
@@ -13,7 +13,7 @@ interface EditorProps {
|
|
|
13
13
|
onChange?: ((...args: unknown[]) => void) | null;
|
|
14
14
|
className?: string | null;
|
|
15
15
|
}
|
|
16
|
-
declare function Editor({ value, viewerTheme, isTheme, isCreateOpened, deviceScreens, mobileView: initialMobileView, onChange, fullscreen, className, }: EditorProps):
|
|
16
|
+
declare function Editor({ value, viewerTheme, isTheme, isCreateOpened, deviceScreens, mobileView: initialMobileView, onChange, fullscreen, className, }: EditorProps): react.JSX.Element;
|
|
17
17
|
|
|
18
18
|
interface EditorContainerProps extends EditorProps {
|
|
19
19
|
value?: Story | StoryTheme | null;
|
|
@@ -27,14 +27,14 @@ interface EditorContainerProps extends EditorProps {
|
|
|
27
27
|
googleMapsLibraries?: string[];
|
|
28
28
|
screenNamespaces?: string[] | null;
|
|
29
29
|
}
|
|
30
|
-
declare function EditorContainer({ value, memoryRouter, routes, basePath, uppy, googleApiKey, googleMapsLibraries, screenNamespaces, ...props }: EditorContainerProps):
|
|
30
|
+
declare function EditorContainer({ value, memoryRouter, routes, basePath, uppy, googleApiKey, googleMapsLibraries, screenNamespaces, ...props }: EditorContainerProps): react.JSX.Element;
|
|
31
31
|
|
|
32
32
|
interface ScreensMenuProps {
|
|
33
33
|
items?: MenuItem[];
|
|
34
34
|
withPreview?: boolean;
|
|
35
35
|
withPlaceholder?: boolean;
|
|
36
36
|
withName?: boolean;
|
|
37
|
-
settings?:
|
|
37
|
+
settings?: react__default.ReactNode | ((...args: unknown[]) => void);
|
|
38
38
|
sortable?: boolean;
|
|
39
39
|
isTree?: boolean;
|
|
40
40
|
isVertical?: boolean;
|
|
@@ -46,7 +46,7 @@ interface ScreensMenuProps {
|
|
|
46
46
|
onClickItem?: (...args: unknown[]) => void;
|
|
47
47
|
onOrderChange?: (...args: unknown[]) => void;
|
|
48
48
|
}
|
|
49
|
-
declare function ScreensMenu({ items, withPreview, withPlaceholder, withName, settings, isVertical, noWrap, className, itemClassName, buttonClassName, settingsClassName, sortable, isTree, onClickItem, onOrderChange, }: ScreensMenuProps):
|
|
49
|
+
declare function ScreensMenu({ items, withPreview, withPlaceholder, withName, settings, isVertical, noWrap, className, itemClassName, buttonClassName, settingsClassName, sortable, isTree, onClickItem, onOrderChange, }: ScreensMenuProps): react__default.JSX.Element;
|
|
50
50
|
|
|
51
51
|
interface ScreenTypesProps {
|
|
52
52
|
screens?: ScreenDefinition[];
|
|
@@ -55,7 +55,7 @@ interface ScreenTypesProps {
|
|
|
55
55
|
className?: string;
|
|
56
56
|
onClickItem?: (...args: unknown[]) => void;
|
|
57
57
|
}
|
|
58
|
-
declare function ScreenTypes({ screens, selectedTypes, legacyTypes, className, onClickItem, }: ScreenTypesProps):
|
|
58
|
+
declare function ScreenTypes({ screens, selectedTypes, legacyTypes, className, onClickItem, }: ScreenTypesProps): react.JSX.Element;
|
|
59
59
|
|
|
60
60
|
declare const createScreen: (definition: any, data?: {}) => any;
|
|
61
61
|
|
package/es/index.js
CHANGED
|
@@ -23,8 +23,8 @@ import { getSizeWithinBounds } from '@folklore/size';
|
|
|
23
23
|
import { Viewer } from '@micromag/viewer';
|
|
24
24
|
import { faPlus } from '@fortawesome/free-solid-svg-icons/faPlus';
|
|
25
25
|
import { faTimesCircle } from '@fortawesome/free-solid-svg-icons/faTimesCircle';
|
|
26
|
-
import isString from 'lodash/isString';
|
|
27
|
-
import isFunction from 'lodash/isFunction';
|
|
26
|
+
import isString from 'lodash-es/isString';
|
|
27
|
+
import isFunction from 'lodash-es/isFunction';
|
|
28
28
|
import { ReactSortable } from 'react-sortablejs';
|
|
29
29
|
import { KeyboardCode, closestCorners, getFirstCollision, getClientRect, MeasuringStrategy, defaultDropAnimation, useSensors, useSensor, PointerSensor, KeyboardSensor, DndContext, closestCenter, DragOverlay } from '@dnd-kit/core';
|
|
30
30
|
import { arrayMove, useSortable, SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
@@ -34,7 +34,7 @@ import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown';
|
|
|
34
34
|
import { faGripLines } from '@fortawesome/free-solid-svg-icons/faGripLines';
|
|
35
35
|
import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
|
|
36
36
|
import Dialog from '@panneau/modal-dialog';
|
|
37
|
-
import orderBy from 'lodash/orderBy';
|
|
37
|
+
import orderBy from 'lodash-es/orderBy';
|
|
38
38
|
|
|
39
39
|
const useRouteParams = t0 => {
|
|
40
40
|
const $ = c(12);
|
|
@@ -951,9 +951,8 @@ function EditForm({
|
|
|
951
951
|
}) : /*#__PURE__*/jsx(Empty, {
|
|
952
952
|
className: "w-100 m-2",
|
|
953
953
|
children: /*#__PURE__*/jsx(FormattedMessage, {
|
|
954
|
-
id: "
|
|
955
|
-
defaultMessage: "Select a screen..."
|
|
956
|
-
decription: "Indication to select a screen to view the form"
|
|
954
|
+
id: "GGlcE2",
|
|
955
|
+
defaultMessage: "Select a screen..."
|
|
957
956
|
})
|
|
958
957
|
})
|
|
959
958
|
}), deleteScreenModalOpened ? /*#__PURE__*/jsx(DeleteScreenModal, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/editor",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.101",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/urbania-media/micromag-js.git"
|
|
13
13
|
},
|
|
14
|
+
"license": "ISC",
|
|
14
15
|
"author": {
|
|
15
16
|
"name": "Folklore",
|
|
16
17
|
"email": "info@folklore.email"
|
|
@@ -29,10 +30,10 @@
|
|
|
29
30
|
"email": "jc@folklore.email"
|
|
30
31
|
}
|
|
31
32
|
],
|
|
32
|
-
"
|
|
33
|
+
"sideEffects": [
|
|
34
|
+
"**/*.css"
|
|
35
|
+
],
|
|
33
36
|
"type": "module",
|
|
34
|
-
"module": "es/index.js",
|
|
35
|
-
"style": "assets/css/styles.css",
|
|
36
37
|
"exports": {
|
|
37
38
|
".": {
|
|
38
39
|
"types": "./es/index.d.ts",
|
|
@@ -42,23 +43,18 @@
|
|
|
42
43
|
"./assets/css/styles": "./assets/css/styles.css",
|
|
43
44
|
"./assets/css/styles.css": "./assets/css/styles.css"
|
|
44
45
|
},
|
|
46
|
+
"module": "es/index.js",
|
|
47
|
+
"types": "es/index.d.ts",
|
|
48
|
+
"style": "assets/css/styles.css",
|
|
45
49
|
"files": [
|
|
46
50
|
"lib",
|
|
47
51
|
"es",
|
|
48
52
|
"assets"
|
|
49
53
|
],
|
|
50
54
|
"scripts": {
|
|
55
|
+
"build": "../../scripts/prepare-package.sh --types",
|
|
51
56
|
"clean": "rm -rf es && rm -rf lib && rm -rf assets && rm -rf styles",
|
|
52
|
-
"prepublishOnly": "npm run build"
|
|
53
|
-
"build": "../../scripts/prepare-package.sh --types"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"react": "^19.0.0",
|
|
57
|
-
"react-dom": "^19.0.0"
|
|
58
|
-
},
|
|
59
|
-
"peerDependencies": {
|
|
60
|
-
"react": "^19.0.0",
|
|
61
|
-
"react-dom": "^19.0.0"
|
|
57
|
+
"prepublishOnly": "npm run build"
|
|
62
58
|
},
|
|
63
59
|
"dependencies": {
|
|
64
60
|
"@babel/runtime": "^7.28.6",
|
|
@@ -70,25 +66,32 @@
|
|
|
70
66
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
71
67
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
72
68
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
73
|
-
"@micromag/core": "^0.4.
|
|
74
|
-
"@micromag/elements": "^0.4.
|
|
75
|
-
"@micromag/fields": "^0.4.
|
|
76
|
-
"@micromag/screens": "^0.4.
|
|
77
|
-
"@micromag/viewer": "^0.4.
|
|
69
|
+
"@micromag/core": "^0.4.100",
|
|
70
|
+
"@micromag/elements": "^0.4.100",
|
|
71
|
+
"@micromag/fields": "^0.4.101",
|
|
72
|
+
"@micromag/screens": "^0.4.101",
|
|
73
|
+
"@micromag/viewer": "^0.4.101",
|
|
78
74
|
"@panneau/modal-confirm": "^4.0.55",
|
|
79
75
|
"@panneau/uppy": "^4.0.55",
|
|
80
76
|
"classnames": "^2.2.6",
|
|
81
|
-
"lodash": "^4.17.23",
|
|
77
|
+
"lodash-es": "^4.17.23",
|
|
82
78
|
"react-intl": "^8.1.3 || ^10.0.0",
|
|
83
79
|
"react-sortablejs": "^6.0.0",
|
|
84
80
|
"sortablejs": "^1.12.0",
|
|
85
81
|
"uuid": "^9.0.0",
|
|
86
82
|
"wouter": "^3.0.0"
|
|
87
83
|
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"react": "^19.0.0",
|
|
86
|
+
"react-dom": "^19.0.0"
|
|
87
|
+
},
|
|
88
|
+
"peerDependencies": {
|
|
89
|
+
"react": "^19.0.0",
|
|
90
|
+
"react-dom": "^19.0.0"
|
|
91
|
+
},
|
|
88
92
|
"publishConfig": {
|
|
89
93
|
"access": "public",
|
|
90
94
|
"registry": "https://registry.npmjs.org/"
|
|
91
95
|
},
|
|
92
|
-
"gitHead": "
|
|
93
|
-
"types": "es/index.d.ts"
|
|
96
|
+
"gitHead": "88aec42cff116b686d2331bf397ba2ada2fa393d"
|
|
94
97
|
}
|