@micromag/screen-image 0.3.832 → 0.4.4
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 +1 -1
- package/es/index.d.ts +266 -0
- package/es/index.js +47 -73
- package/es/styles.css +1 -0
- package/package.json +21 -20
package/assets/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.container{height:100%;overflow:hidden;position:relative;width:100%}.container .background{height:100%;left:0;position:absolute;top:0;width:100%;z-index:0}.container .content{height:100%;position:relative;z-index:1}.container .emptyImage,.container .emptyLegend,.container .emptyText,.container .emptyTitle{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800);margin:10px auto;width:100%}.container .emptyImage{height:100%}.container .emptyTitle{height:100px}.container .emptyText{height:80px}.container .emptyLegend{height:50px}.container .imageContainer{position:relative;-ms-flex-positive:1;flex-grow:1}.container .image{height:100%;left:0;position:absolute;top:0;width:100%}.container .placeholderImage{height:100%}.container.isPlaceholder .layout{padding:10px}.container.isCard .placeholderImage{margin:-10px -10px 0}.container.isCardReverse .placeholderImage{margin:10px -10px 0}.container.isCardReverse .footer{bottom:0;left:0;position:absolute;width:100%}.container.isFullscreen .layout{padding:0}.container.isFullscreen .header{left:0;margin-top:0;position:absolute;top:0;width:100%;z-index:1}.container.isFullscreen .footer{bottom:0;left:0;margin-top:0;position:absolute;width:100%}
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ImageMedia, HeadingElement, TextElement, BackgroundElement, Header, Footer } from '@micromag/core';
|
|
3
|
+
|
|
4
|
+
interface ImageScreenProps {
|
|
5
|
+
layout?: 'normal' | 'fullscreen' | 'reverse' | 'card' | 'card-reverse' | 'title-top';
|
|
6
|
+
image?: ImageMedia | null;
|
|
7
|
+
imageFit?: 'contain' | 'cover' | null;
|
|
8
|
+
defaultImageFit?: string;
|
|
9
|
+
title?: HeadingElement | null;
|
|
10
|
+
text?: TextElement | null;
|
|
11
|
+
legend?: TextElement | null;
|
|
12
|
+
withTitle?: boolean;
|
|
13
|
+
withText?: boolean;
|
|
14
|
+
withLegend?: boolean;
|
|
15
|
+
spacing?: number;
|
|
16
|
+
background?: BackgroundElement | null;
|
|
17
|
+
header?: Header | null;
|
|
18
|
+
footer?: Footer | null;
|
|
19
|
+
current?: boolean;
|
|
20
|
+
active?: boolean;
|
|
21
|
+
preload?: boolean;
|
|
22
|
+
className?: string | null;
|
|
23
|
+
}
|
|
24
|
+
declare function ImageScreen({ layout, image, imageFit, defaultImageFit, title, text, legend, withTitle, withText, withLegend, spacing, background, header, footer, current, active, preload, className, }: ImageScreenProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
declare function ImageTitleTextScreen({ ...props }: {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
}): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare const _default: ({
|
|
31
|
+
id: string;
|
|
32
|
+
type: string;
|
|
33
|
+
group: {
|
|
34
|
+
label: {
|
|
35
|
+
defaultMessage: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
order: number;
|
|
39
|
+
};
|
|
40
|
+
title: {
|
|
41
|
+
defaultMessage: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
component: typeof ImageScreen;
|
|
45
|
+
layouts: string[];
|
|
46
|
+
fields: ({
|
|
47
|
+
name: string;
|
|
48
|
+
type: string;
|
|
49
|
+
defaultValue: string;
|
|
50
|
+
label: {
|
|
51
|
+
defaultMessage: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
values?: undefined;
|
|
55
|
+
theme?: undefined;
|
|
56
|
+
} | {
|
|
57
|
+
name: string;
|
|
58
|
+
type: string;
|
|
59
|
+
label: {
|
|
60
|
+
defaultMessage: string;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
defaultValue?: undefined;
|
|
64
|
+
values?: undefined;
|
|
65
|
+
theme?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
name: string;
|
|
68
|
+
type: string;
|
|
69
|
+
defaultValue: string;
|
|
70
|
+
values: string[];
|
|
71
|
+
label: {
|
|
72
|
+
defaultMessage: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
theme?: undefined;
|
|
76
|
+
} | {
|
|
77
|
+
name: string;
|
|
78
|
+
type: string;
|
|
79
|
+
label: {
|
|
80
|
+
defaultMessage: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
theme: {
|
|
84
|
+
badge: {
|
|
85
|
+
label: {
|
|
86
|
+
textStyle: string;
|
|
87
|
+
};
|
|
88
|
+
boxStyle: string;
|
|
89
|
+
};
|
|
90
|
+
callToAction?: undefined;
|
|
91
|
+
};
|
|
92
|
+
defaultValue?: undefined;
|
|
93
|
+
values?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
name: string;
|
|
96
|
+
type: string;
|
|
97
|
+
label: {
|
|
98
|
+
defaultMessage: string;
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
theme: {
|
|
102
|
+
callToAction: {
|
|
103
|
+
label: {
|
|
104
|
+
textStyle: string;
|
|
105
|
+
};
|
|
106
|
+
boxStyle: string;
|
|
107
|
+
};
|
|
108
|
+
badge?: undefined;
|
|
109
|
+
};
|
|
110
|
+
defaultValue?: undefined;
|
|
111
|
+
values?: undefined;
|
|
112
|
+
})[];
|
|
113
|
+
} | {
|
|
114
|
+
id: string;
|
|
115
|
+
type: string;
|
|
116
|
+
group: {
|
|
117
|
+
label: {
|
|
118
|
+
defaultMessage: string;
|
|
119
|
+
description: string;
|
|
120
|
+
};
|
|
121
|
+
order: number;
|
|
122
|
+
};
|
|
123
|
+
title: {
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
component: typeof ImageTitleTextScreen;
|
|
128
|
+
layouts: string[];
|
|
129
|
+
fields: ({
|
|
130
|
+
name: string;
|
|
131
|
+
type: string;
|
|
132
|
+
defaultValue: string;
|
|
133
|
+
label: {
|
|
134
|
+
defaultMessage: string;
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
isHorizontal?: undefined;
|
|
138
|
+
values?: undefined;
|
|
139
|
+
inline?: undefined;
|
|
140
|
+
theme?: undefined;
|
|
141
|
+
} | {
|
|
142
|
+
name: string;
|
|
143
|
+
type: string;
|
|
144
|
+
isHorizontal: boolean;
|
|
145
|
+
label: {
|
|
146
|
+
defaultMessage: string;
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
defaultValue?: undefined;
|
|
150
|
+
values?: undefined;
|
|
151
|
+
inline?: undefined;
|
|
152
|
+
theme?: undefined;
|
|
153
|
+
} | {
|
|
154
|
+
name: string;
|
|
155
|
+
type: string;
|
|
156
|
+
defaultValue: string;
|
|
157
|
+
values: string[];
|
|
158
|
+
label: {
|
|
159
|
+
defaultMessage: string;
|
|
160
|
+
description: string;
|
|
161
|
+
};
|
|
162
|
+
isHorizontal?: undefined;
|
|
163
|
+
inline?: undefined;
|
|
164
|
+
theme?: undefined;
|
|
165
|
+
} | {
|
|
166
|
+
name: string;
|
|
167
|
+
type: string;
|
|
168
|
+
inline: boolean;
|
|
169
|
+
theme: {
|
|
170
|
+
textStyle: string;
|
|
171
|
+
badge?: undefined;
|
|
172
|
+
callToAction?: undefined;
|
|
173
|
+
};
|
|
174
|
+
label: {
|
|
175
|
+
defaultMessage: string;
|
|
176
|
+
description: string;
|
|
177
|
+
};
|
|
178
|
+
defaultValue?: undefined;
|
|
179
|
+
isHorizontal?: undefined;
|
|
180
|
+
values?: undefined;
|
|
181
|
+
} | {
|
|
182
|
+
name: string;
|
|
183
|
+
type: string;
|
|
184
|
+
theme: {
|
|
185
|
+
textStyle: string;
|
|
186
|
+
badge?: undefined;
|
|
187
|
+
callToAction?: undefined;
|
|
188
|
+
};
|
|
189
|
+
label: {
|
|
190
|
+
defaultMessage: string;
|
|
191
|
+
description: string;
|
|
192
|
+
};
|
|
193
|
+
defaultValue?: undefined;
|
|
194
|
+
isHorizontal?: undefined;
|
|
195
|
+
values?: undefined;
|
|
196
|
+
inline?: undefined;
|
|
197
|
+
} | {
|
|
198
|
+
name: string;
|
|
199
|
+
type: string;
|
|
200
|
+
label: {
|
|
201
|
+
defaultMessage: string;
|
|
202
|
+
description: string;
|
|
203
|
+
};
|
|
204
|
+
defaultValue?: undefined;
|
|
205
|
+
isHorizontal?: undefined;
|
|
206
|
+
values?: undefined;
|
|
207
|
+
inline?: undefined;
|
|
208
|
+
theme?: undefined;
|
|
209
|
+
} | {
|
|
210
|
+
name: string;
|
|
211
|
+
type: string;
|
|
212
|
+
label: {
|
|
213
|
+
defaultMessage: string;
|
|
214
|
+
description: string;
|
|
215
|
+
};
|
|
216
|
+
theme: {
|
|
217
|
+
badge: {
|
|
218
|
+
label: {
|
|
219
|
+
textStyle: string;
|
|
220
|
+
};
|
|
221
|
+
boxStyle: string;
|
|
222
|
+
};
|
|
223
|
+
textStyle?: undefined;
|
|
224
|
+
callToAction?: undefined;
|
|
225
|
+
};
|
|
226
|
+
defaultValue?: undefined;
|
|
227
|
+
isHorizontal?: undefined;
|
|
228
|
+
values?: undefined;
|
|
229
|
+
inline?: undefined;
|
|
230
|
+
} | {
|
|
231
|
+
name: string;
|
|
232
|
+
type: string;
|
|
233
|
+
label: {
|
|
234
|
+
defaultMessage: string;
|
|
235
|
+
description: string;
|
|
236
|
+
};
|
|
237
|
+
theme: {
|
|
238
|
+
callToAction: {
|
|
239
|
+
label: {
|
|
240
|
+
textStyle: string;
|
|
241
|
+
};
|
|
242
|
+
boxStyle: string;
|
|
243
|
+
};
|
|
244
|
+
textStyle?: undefined;
|
|
245
|
+
badge?: undefined;
|
|
246
|
+
};
|
|
247
|
+
defaultValue?: undefined;
|
|
248
|
+
isHorizontal?: undefined;
|
|
249
|
+
values?: undefined;
|
|
250
|
+
inline?: undefined;
|
|
251
|
+
})[];
|
|
252
|
+
})[];
|
|
253
|
+
|
|
254
|
+
declare function ImageTitleScreen({ ...props }: {
|
|
255
|
+
[x: string]: any;
|
|
256
|
+
}): react_jsx_runtime.JSX.Element;
|
|
257
|
+
|
|
258
|
+
declare function ImageTextScreen({ ...props }: {
|
|
259
|
+
[x: string]: any;
|
|
260
|
+
}): react_jsx_runtime.JSX.Element;
|
|
261
|
+
|
|
262
|
+
declare function ImageLegendScreen({ ...props }: {
|
|
263
|
+
[x: string]: any;
|
|
264
|
+
}): react_jsx_runtime.JSX.Element;
|
|
265
|
+
|
|
266
|
+
export { ImageLegendScreen, ImageScreen, ImageTextScreen, ImageTitleScreen, ImageTitleTextScreen, _default as default };
|
package/es/index.js
CHANGED
|
@@ -2,9 +2,7 @@ import { FormattedMessage, defineMessage } from 'react-intl';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
5
|
import React, { useState, useCallback, useMemo } from 'react';
|
|
7
|
-
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
8
6
|
import { ScreenElement } from '@micromag/core/components';
|
|
9
7
|
import { useScreenSize, useScreenRenderContext, useViewerContext, useViewerWebView, usePlaybackContext, usePlaybackMediaRef } from '@micromag/core/contexts';
|
|
10
8
|
import { useDimensionObserver } from '@micromag/core/hooks';
|
|
@@ -20,69 +18,47 @@ import Visual from '@micromag/element-visual';
|
|
|
20
18
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
21
19
|
import _extends from '@babel/runtime/helpers/extends';
|
|
22
20
|
|
|
23
|
-
var styles = {"container":"
|
|
21
|
+
var styles = {"container":"container","background":"background","content":"content","emptyImage":"emptyImage","emptyTitle":"emptyTitle","emptyText":"emptyText","emptyLegend":"emptyLegend","imageContainer":"imageContainer","image":"image","placeholderImage":"placeholderImage","isPlaceholder":"isPlaceholder","layout":"layout","isCard":"isCard","isCardReverse":"isCardReverse","footer":"footer","isFullscreen":"isFullscreen","header":"header"};
|
|
24
22
|
|
|
25
23
|
// NOTE: should this be a scrolling element ?
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
layout
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
preload: true,
|
|
65
|
-
className: null
|
|
66
|
-
};
|
|
67
|
-
var ImageScreen = function ImageScreen(_ref) {
|
|
68
|
-
var layout = _ref.layout,
|
|
69
|
-
image = _ref.image,
|
|
70
|
-
imageFit = _ref.imageFit,
|
|
71
|
-
defaultImageFit = _ref.defaultImageFit,
|
|
72
|
-
title = _ref.title,
|
|
73
|
-
text = _ref.text,
|
|
74
|
-
legend = _ref.legend,
|
|
75
|
-
withTitle = _ref.withTitle,
|
|
76
|
-
withText = _ref.withText,
|
|
77
|
-
withLegend = _ref.withLegend,
|
|
78
|
-
spacing = _ref.spacing,
|
|
79
|
-
background = _ref.background,
|
|
80
|
-
header = _ref.header,
|
|
81
|
-
footer = _ref.footer,
|
|
82
|
-
current = _ref.current,
|
|
83
|
-
active = _ref.active,
|
|
84
|
-
preload = _ref.preload,
|
|
85
|
-
className = _ref.className;
|
|
25
|
+
function ImageScreen(_ref) {
|
|
26
|
+
var _ref$layout = _ref.layout,
|
|
27
|
+
layout = _ref$layout === void 0 ? 'normal' : _ref$layout,
|
|
28
|
+
_ref$image = _ref.image,
|
|
29
|
+
image = _ref$image === void 0 ? null : _ref$image,
|
|
30
|
+
_ref$imageFit = _ref.imageFit,
|
|
31
|
+
imageFit = _ref$imageFit === void 0 ? null : _ref$imageFit,
|
|
32
|
+
_ref$defaultImageFit = _ref.defaultImageFit,
|
|
33
|
+
defaultImageFit = _ref$defaultImageFit === void 0 ? 'cover' : _ref$defaultImageFit,
|
|
34
|
+
_ref$title = _ref.title,
|
|
35
|
+
title = _ref$title === void 0 ? null : _ref$title,
|
|
36
|
+
_ref$text = _ref.text,
|
|
37
|
+
text = _ref$text === void 0 ? null : _ref$text,
|
|
38
|
+
_ref$legend = _ref.legend,
|
|
39
|
+
legend = _ref$legend === void 0 ? null : _ref$legend,
|
|
40
|
+
_ref$withTitle = _ref.withTitle,
|
|
41
|
+
withTitle = _ref$withTitle === void 0 ? false : _ref$withTitle,
|
|
42
|
+
_ref$withText = _ref.withText,
|
|
43
|
+
withText = _ref$withText === void 0 ? false : _ref$withText,
|
|
44
|
+
_ref$withLegend = _ref.withLegend,
|
|
45
|
+
withLegend = _ref$withLegend === void 0 ? false : _ref$withLegend,
|
|
46
|
+
_ref$spacing = _ref.spacing,
|
|
47
|
+
spacing = _ref$spacing === void 0 ? 20 : _ref$spacing,
|
|
48
|
+
_ref$background = _ref.background,
|
|
49
|
+
background = _ref$background === void 0 ? null : _ref$background,
|
|
50
|
+
_ref$header = _ref.header,
|
|
51
|
+
header = _ref$header === void 0 ? null : _ref$header,
|
|
52
|
+
_ref$footer = _ref.footer,
|
|
53
|
+
footer = _ref$footer === void 0 ? null : _ref$footer,
|
|
54
|
+
_ref$current = _ref.current,
|
|
55
|
+
current = _ref$current === void 0 ? true : _ref$current,
|
|
56
|
+
_ref$active = _ref.active,
|
|
57
|
+
active = _ref$active === void 0 ? true : _ref$active,
|
|
58
|
+
_ref$preload = _ref.preload,
|
|
59
|
+
preload = _ref$preload === void 0 ? true : _ref$preload,
|
|
60
|
+
_ref$className = _ref.className,
|
|
61
|
+
className = _ref$className === void 0 ? null : _ref$className;
|
|
86
62
|
var _useScreenSize = useScreenSize(),
|
|
87
63
|
width = _useScreenSize.width,
|
|
88
64
|
height = _useScreenSize.height,
|
|
@@ -298,38 +274,36 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
298
274
|
withoutVideo: isPreview,
|
|
299
275
|
className: styles.background
|
|
300
276
|
}) : null);
|
|
301
|
-
}
|
|
302
|
-
ImageScreen.propTypes = propTypes;
|
|
303
|
-
ImageScreen.defaultProps = defaultProps;
|
|
277
|
+
}
|
|
304
278
|
|
|
305
|
-
|
|
279
|
+
function ImageLegendScreen(_ref) {
|
|
306
280
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
307
281
|
return /*#__PURE__*/React.createElement(ImageScreen, Object.assign({}, props, {
|
|
308
282
|
withLegend: true
|
|
309
283
|
}));
|
|
310
|
-
}
|
|
284
|
+
}
|
|
311
285
|
|
|
312
|
-
|
|
286
|
+
function ImageTextScreen(_ref) {
|
|
313
287
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
314
288
|
return /*#__PURE__*/React.createElement(ImageScreen, Object.assign({}, props, {
|
|
315
289
|
withText: true
|
|
316
290
|
}));
|
|
317
|
-
}
|
|
291
|
+
}
|
|
318
292
|
|
|
319
|
-
|
|
293
|
+
function ImageTitleScreen(_ref) {
|
|
320
294
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
321
295
|
return /*#__PURE__*/React.createElement(ImageScreen, Object.assign({}, props, {
|
|
322
296
|
withTitle: true
|
|
323
297
|
}));
|
|
324
|
-
}
|
|
298
|
+
}
|
|
325
299
|
|
|
326
|
-
|
|
300
|
+
function ImageTitleTextScreen(_ref) {
|
|
327
301
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
328
302
|
return /*#__PURE__*/React.createElement(ImageScreen, Object.assign({}, props, {
|
|
329
303
|
withTitle: true,
|
|
330
304
|
withText: true
|
|
331
305
|
}));
|
|
332
|
-
}
|
|
306
|
+
}
|
|
333
307
|
|
|
334
308
|
// import * as transforms from './transforms/index';
|
|
335
309
|
|
package/es/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.container{height:100%;overflow:hidden;position:relative;width:100%}.container .background{height:100%;left:0;position:absolute;top:0;width:100%;z-index:0}.container .content{height:100%;position:relative;z-index:1}.container .emptyImage,.container .emptyLegend,.container .emptyText,.container .emptyTitle{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800);margin:10px auto;width:100%}.container .emptyImage{height:100%}.container .emptyTitle{height:100px}.container .emptyText{height:80px}.container .emptyLegend{height:50px}.container .imageContainer{position:relative;-ms-flex-positive:1;flex-grow:1}.container .image{height:100%;left:0;position:absolute;top:0;width:100%}.container .placeholderImage{height:100%}.container.isPlaceholder .layout{padding:10px}.container.isCard .placeholderImage{margin:-10px -10px 0}.container.isCardReverse .placeholderImage{margin:10px -10px 0}.container.isCardReverse .footer{bottom:0;left:0;position:absolute;width:100%}.container.isFullscreen .layout{padding:0}.container.isFullscreen .header{left:0;margin-top:0;position:absolute;top:0;width:100%;z-index:1}.container.isFullscreen .footer{bottom:0;left:0;margin-top:0;position:absolute;width:100%}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-image",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"style": "assets/css/styles.css",
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|
|
38
|
+
"types": "./es/index.d.ts",
|
|
38
39
|
"import": "./es/index.js"
|
|
39
40
|
},
|
|
40
41
|
"./assets/css/styles": "./assets/css/styles.css",
|
|
@@ -48,37 +49,37 @@
|
|
|
48
49
|
"scripts": {
|
|
49
50
|
"clean": "rm -rf es && rm -rf lib && rm -rf assets",
|
|
50
51
|
"prepublishOnly": "npm run build",
|
|
51
|
-
"build": "../../scripts/prepare-package.sh"
|
|
52
|
+
"build": "../../scripts/prepare-package.sh --types"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"react": "^
|
|
55
|
-
"react-dom": "^
|
|
55
|
+
"react": "^19.2.0",
|
|
56
|
+
"react-dom": "^18.3.0 || ^19.0.0"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
|
-
"react": "^
|
|
59
|
-
"react-dom": "^
|
|
59
|
+
"react": "^19.2.0",
|
|
60
|
+
"react-dom": "^18.3.0 || ^19.0.0"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"@babel/runtime": "^7.13.10",
|
|
63
|
-
"@micromag/core": "^0.
|
|
64
|
-
"@micromag/element-background": "^0.
|
|
65
|
-
"@micromag/element-container": "^0.
|
|
66
|
-
"@micromag/element-footer": "^0.
|
|
67
|
-
"@micromag/element-header": "^0.
|
|
68
|
-
"@micromag/element-heading": "^0.
|
|
69
|
-
"@micromag/element-layout": "^0.
|
|
70
|
-
"@micromag/element-text": "^0.
|
|
71
|
-
"@micromag/element-visual": "^0.
|
|
72
|
-
"@micromag/transforms": "^0.
|
|
64
|
+
"@micromag/core": "^0.4.4",
|
|
65
|
+
"@micromag/element-background": "^0.4.4",
|
|
66
|
+
"@micromag/element-container": "^0.4.4",
|
|
67
|
+
"@micromag/element-footer": "^0.4.4",
|
|
68
|
+
"@micromag/element-header": "^0.4.4",
|
|
69
|
+
"@micromag/element-heading": "^0.4.4",
|
|
70
|
+
"@micromag/element-layout": "^0.4.4",
|
|
71
|
+
"@micromag/element-text": "^0.4.4",
|
|
72
|
+
"@micromag/element-visual": "^0.4.4",
|
|
73
|
+
"@micromag/transforms": "^0.4.4",
|
|
73
74
|
"classnames": "^2.2.6",
|
|
74
|
-
"lodash": "^4.17.
|
|
75
|
-
"
|
|
76
|
-
"react-intl": "^6.6.4",
|
|
75
|
+
"lodash": "^4.17.23",
|
|
76
|
+
"react-intl": "^8.1.3",
|
|
77
77
|
"uuid": "^9.0.0"
|
|
78
78
|
},
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public",
|
|
81
81
|
"registry": "https://registry.npmjs.org/"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "04b8519c3a3ddace5a21497e22faa11865d57f6d",
|
|
84
|
+
"types": "es/index.d.ts"
|
|
84
85
|
}
|