@micromag/screen-map 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 +228 -0
- package/es/index.js +35 -63
- package/es/styles.css +1 -0
- package/package.json +23 -22
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{z-index:1}.container .placeholder{height:100%}.container .markerOverlayContainer{background-color:rgba(28,28,28,.4);opacity:0;pointer-events:none;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.container .markerOverlayContainer,.container .markerOverlayScrollable{height:100%;left:0;position:absolute;top:0;width:100%}.container .markerOverlaySafe{display:block;width:100%}.container .markerOverlay{overflow:hidden;width:100%}.container .markerOverlay,.container .markerOverlayContent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.container .markerOverlayContent{position:relative;-ms-flex-positive:1;background-color:var(--mm-white);flex-grow:1;padding:0 20px;-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease}.container .markerOverlayContentInner{color:var(--mm-black)}.container .swipeIndicator{border:2px solid var(--mm-gray-500);border-radius:2px;margin:10px auto;width:30px}.container .splash{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;left:0;position:absolute;top:0;width:100%;-ms-flex-pack:center;background-color:rgba(28,28,28,.75);justify-content:center;padding:20px;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.container .splash .description,.container .splash .title{margin:10px 0}.container .splash .button{display:inline-block}.container .splash .emptyButton,.container .splash .emptyDescription,.container .splash .emptyTitle{margin:5px auto;width:100%}.container .splash .emptyTitle{height:50px}.container .splash .emptyDescription{height:80px}.container .splash .emptyButton{height:70px}.container .splashButton{margin-top:10px}.container .closeButton{background-color:rgba(43,43,43,.8);border-radius:50%;display:block;font-size:30px;height:44px;line-height:0;opacity:0;padding:0;pointer-events:none;position:absolute;right:20px;text-align:center;top:20px;-webkit-transition:opacity .3s ease;transition:opacity .3s ease;width:44px}.container .markerDescription,.container .markerImage,.container .markerSubtitle,.container .markerTitle{margin-bottom:20px}.container.hasSelectedMarker .markerOverlayContainer{opacity:1;pointer-events:auto}.container.hasSelectedMarker .markerOverlayContent{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.container.opened .splash{opacity:0;pointer-events:none}.container.opened .closeButton{opacity:1;pointer-events:all}
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Marker, MarkerWithImage, TextElement, GeoPosition, BackgroundElement } from '@micromag/core';
|
|
3
|
+
|
|
4
|
+
interface MapScreenProps {
|
|
5
|
+
layout?: 'normal';
|
|
6
|
+
draggable?: boolean;
|
|
7
|
+
markers?: Marker[] | MarkerWithImage[];
|
|
8
|
+
title?: TextElement | null;
|
|
9
|
+
description?: TextElement | null;
|
|
10
|
+
button?: TextElement | null;
|
|
11
|
+
openedMarkerSpacerHeight?: number;
|
|
12
|
+
withMarkerImages?: boolean;
|
|
13
|
+
center?: GeoPosition;
|
|
14
|
+
zoom?: number;
|
|
15
|
+
fitBounds?: boolean;
|
|
16
|
+
background?: BackgroundElement | null;
|
|
17
|
+
current?: boolean;
|
|
18
|
+
active?: boolean;
|
|
19
|
+
type?: string | null;
|
|
20
|
+
className?: string | null;
|
|
21
|
+
}
|
|
22
|
+
declare function MapScreen({ layout, draggable, markers, title, description, button, openedMarkerSpacerHeight, withMarkerImages, zoom, center, fitBounds, background, current, active, type, className, }: MapScreenProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
declare function MapImagesScreen({ ...props }: {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
}): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare const _default: ({
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
|
+
group: {
|
|
32
|
+
label: {
|
|
33
|
+
defaultMessage: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
order: number;
|
|
37
|
+
};
|
|
38
|
+
title: {
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
component: typeof MapScreen;
|
|
43
|
+
layouts: string[];
|
|
44
|
+
states: ({
|
|
45
|
+
id: string;
|
|
46
|
+
label: {
|
|
47
|
+
defaultMessage: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
fields: {
|
|
51
|
+
name: string;
|
|
52
|
+
type: string;
|
|
53
|
+
theme: {
|
|
54
|
+
textStyle: string;
|
|
55
|
+
};
|
|
56
|
+
label: {
|
|
57
|
+
defaultMessage: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
}[];
|
|
61
|
+
repeatable?: undefined;
|
|
62
|
+
fieldName?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
id: string;
|
|
65
|
+
label: {
|
|
66
|
+
defaultMessage: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
fields: ({
|
|
70
|
+
name: string;
|
|
71
|
+
type: string;
|
|
72
|
+
defaultValue: boolean;
|
|
73
|
+
label: {
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
min?: undefined;
|
|
78
|
+
max?: undefined;
|
|
79
|
+
} | {
|
|
80
|
+
name: string;
|
|
81
|
+
type: string;
|
|
82
|
+
defaultValue: number;
|
|
83
|
+
min: number;
|
|
84
|
+
max: number;
|
|
85
|
+
label: {
|
|
86
|
+
defaultMessage: string;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
} | {
|
|
90
|
+
name: string;
|
|
91
|
+
type: string;
|
|
92
|
+
label: {
|
|
93
|
+
defaultMessage: string;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
defaultValue?: undefined;
|
|
97
|
+
min?: undefined;
|
|
98
|
+
max?: undefined;
|
|
99
|
+
})[];
|
|
100
|
+
repeatable?: undefined;
|
|
101
|
+
fieldName?: undefined;
|
|
102
|
+
} | {
|
|
103
|
+
id: string;
|
|
104
|
+
label: {
|
|
105
|
+
defaultMessage: string;
|
|
106
|
+
description: string;
|
|
107
|
+
};
|
|
108
|
+
repeatable: boolean;
|
|
109
|
+
fieldName: string;
|
|
110
|
+
fields: {
|
|
111
|
+
name: string;
|
|
112
|
+
type: string;
|
|
113
|
+
label: {
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
}[];
|
|
118
|
+
})[];
|
|
119
|
+
fields: {
|
|
120
|
+
name: string;
|
|
121
|
+
type: string;
|
|
122
|
+
label: {
|
|
123
|
+
defaultMessage: string;
|
|
124
|
+
description: string;
|
|
125
|
+
};
|
|
126
|
+
}[];
|
|
127
|
+
} | {
|
|
128
|
+
id: string;
|
|
129
|
+
type: string;
|
|
130
|
+
group: {
|
|
131
|
+
label: {
|
|
132
|
+
defaultMessage: string;
|
|
133
|
+
description: string;
|
|
134
|
+
};
|
|
135
|
+
order: number;
|
|
136
|
+
};
|
|
137
|
+
title: {
|
|
138
|
+
defaultMessage: string;
|
|
139
|
+
description: string;
|
|
140
|
+
};
|
|
141
|
+
component: typeof MapImagesScreen;
|
|
142
|
+
layouts: string[];
|
|
143
|
+
states: ({
|
|
144
|
+
id: string;
|
|
145
|
+
label: {
|
|
146
|
+
defaultMessage: string;
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
fields: {
|
|
150
|
+
name: string;
|
|
151
|
+
type: string;
|
|
152
|
+
theme: {
|
|
153
|
+
textStyle: string;
|
|
154
|
+
};
|
|
155
|
+
label: {
|
|
156
|
+
defaultMessage: string;
|
|
157
|
+
description: string;
|
|
158
|
+
};
|
|
159
|
+
}[];
|
|
160
|
+
repeatable?: undefined;
|
|
161
|
+
fieldName?: undefined;
|
|
162
|
+
} | {
|
|
163
|
+
id: string;
|
|
164
|
+
label: {
|
|
165
|
+
defaultMessage: string;
|
|
166
|
+
description: string;
|
|
167
|
+
};
|
|
168
|
+
fields: ({
|
|
169
|
+
name: string;
|
|
170
|
+
type: string;
|
|
171
|
+
defaultValue: boolean;
|
|
172
|
+
label: {
|
|
173
|
+
defaultMessage: string;
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
176
|
+
min?: undefined;
|
|
177
|
+
max?: undefined;
|
|
178
|
+
} | {
|
|
179
|
+
name: string;
|
|
180
|
+
type: string;
|
|
181
|
+
defaultValue: number;
|
|
182
|
+
min: number;
|
|
183
|
+
max: number;
|
|
184
|
+
label: {
|
|
185
|
+
defaultMessage: string;
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
} | {
|
|
189
|
+
name: string;
|
|
190
|
+
type: string;
|
|
191
|
+
label: {
|
|
192
|
+
defaultMessage: string;
|
|
193
|
+
description: string;
|
|
194
|
+
};
|
|
195
|
+
defaultValue?: undefined;
|
|
196
|
+
min?: undefined;
|
|
197
|
+
max?: undefined;
|
|
198
|
+
})[];
|
|
199
|
+
repeatable?: undefined;
|
|
200
|
+
fieldName?: undefined;
|
|
201
|
+
} | {
|
|
202
|
+
id: string;
|
|
203
|
+
label: {
|
|
204
|
+
defaultMessage: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
repeatable: boolean;
|
|
208
|
+
fieldName: string;
|
|
209
|
+
fields: {
|
|
210
|
+
name: string;
|
|
211
|
+
type: string;
|
|
212
|
+
label: {
|
|
213
|
+
defaultMessage: string;
|
|
214
|
+
description: string;
|
|
215
|
+
};
|
|
216
|
+
}[];
|
|
217
|
+
})[];
|
|
218
|
+
fields: {
|
|
219
|
+
name: string;
|
|
220
|
+
type: string;
|
|
221
|
+
label: {
|
|
222
|
+
defaultMessage: string;
|
|
223
|
+
description: string;
|
|
224
|
+
};
|
|
225
|
+
}[];
|
|
226
|
+
})[];
|
|
227
|
+
|
|
228
|
+
export { MapImagesScreen, MapScreen, _default as default };
|
package/es/index.js
CHANGED
|
@@ -3,9 +3,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
3
3
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
6
|
import React, { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
|
8
|
-
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
9
7
|
import { PlaceholderMap, Button, ScreenElement } from '@micromag/core/components';
|
|
10
8
|
import { useGoogleKeys, useScreenSize, usePlaybackContext, usePlaybackMediaRef, useScreenRenderContext, useScreenState, useViewerInteraction } from '@micromag/core/contexts';
|
|
11
9
|
import { useTrackScreenEvent, useDimensionObserver } from '@micromag/core/hooks';
|
|
@@ -21,7 +19,7 @@ import Text from '@micromag/element-text';
|
|
|
21
19
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
22
20
|
import _extends from '@babel/runtime/helpers/extends';
|
|
23
21
|
|
|
24
|
-
var styles = {"container":"
|
|
22
|
+
var styles = {"container":"container","background":"background","content":"content","placeholder":"placeholder","markerOverlayContainer":"markerOverlayContainer","markerOverlayScrollable":"markerOverlayScrollable","markerOverlaySafe":"markerOverlaySafe","markerOverlay":"markerOverlay","markerOverlayContent":"markerOverlayContent","markerOverlayContentInner":"markerOverlayContentInner","swipeIndicator":"swipeIndicator","splash":"splash","title":"title","description":"description","button":"button","emptyTitle":"emptyTitle","emptyDescription":"emptyDescription","emptyButton":"emptyButton","splashButton":"splashButton","closeButton":"closeButton","markerImage":"markerImage","markerTitle":"markerTitle","markerSubtitle":"markerSubtitle","markerDescription":"markerDescription","hasSelectedMarker":"hasSelectedMarker","opened":"opened"};
|
|
25
23
|
|
|
26
24
|
var defaultCenter = {
|
|
27
25
|
lat: 45.5,
|
|
@@ -48,63 +46,39 @@ var stopDragEventsPropagation = {
|
|
|
48
46
|
return e.stopPropagation();
|
|
49
47
|
}
|
|
50
48
|
};
|
|
51
|
-
var propTypes = {
|
|
52
|
-
layout: PropTypes.oneOf(['normal']),
|
|
53
|
-
draggable: PropTypes.bool,
|
|
54
|
-
markers: PropTypes.oneOfType([PropTypes$1.markers, PropTypes$1.markersWithImage]),
|
|
55
|
-
title: PropTypes$1.textElement,
|
|
56
|
-
description: PropTypes$1.textElement,
|
|
57
|
-
button: PropTypes$1.textElement,
|
|
58
|
-
openedMarkerSpacerHeight: PropTypes.number,
|
|
59
|
-
withMarkerImages: PropTypes.bool,
|
|
60
|
-
center: PropTypes$1.geoPosition,
|
|
61
|
-
zoom: PropTypes.number,
|
|
62
|
-
fitBounds: PropTypes.bool,
|
|
63
|
-
// header: MicromagPropTypes.header,
|
|
64
|
-
// footer: MicromagPropTypes.footer,
|
|
65
|
-
background: PropTypes$1.backgroundElement,
|
|
66
|
-
current: PropTypes.bool,
|
|
67
|
-
active: PropTypes.bool,
|
|
68
|
-
// enableInteractions: PropTypes.func,
|
|
69
|
-
// disableInteraction: PropTypes.func,
|
|
70
|
-
type: PropTypes.string,
|
|
71
|
-
className: PropTypes.string
|
|
72
|
-
};
|
|
73
|
-
var defaultProps = {
|
|
74
|
-
layout: 'normal',
|
|
75
|
-
draggable: true,
|
|
76
|
-
markers: [],
|
|
77
|
-
center: defaultCenter,
|
|
78
|
-
zoom: defaultZoom,
|
|
79
|
-
fitBounds: true,
|
|
80
|
-
title: null,
|
|
81
|
-
description: null,
|
|
82
|
-
button: null,
|
|
83
|
-
openedMarkerSpacerHeight: 0.75,
|
|
84
|
-
withMarkerImages: false,
|
|
85
|
-
background: null,
|
|
86
|
-
current: true,
|
|
87
|
-
active: true,
|
|
88
|
-
type: null,
|
|
89
|
-
className: null
|
|
90
|
-
};
|
|
91
49
|
function MapScreen(_ref) {
|
|
92
|
-
var layout = _ref.layout,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
50
|
+
var _ref$layout = _ref.layout,
|
|
51
|
+
layout = _ref$layout === void 0 ? 'normal' : _ref$layout,
|
|
52
|
+
_ref$draggable = _ref.draggable,
|
|
53
|
+
draggable = _ref$draggable === void 0 ? true : _ref$draggable,
|
|
54
|
+
_ref$markers = _ref.markers,
|
|
55
|
+
markers = _ref$markers === void 0 ? [] : _ref$markers,
|
|
56
|
+
_ref$title = _ref.title,
|
|
57
|
+
title = _ref$title === void 0 ? null : _ref$title,
|
|
58
|
+
_ref$description = _ref.description,
|
|
59
|
+
description = _ref$description === void 0 ? null : _ref$description,
|
|
60
|
+
_ref$button = _ref.button,
|
|
61
|
+
button = _ref$button === void 0 ? null : _ref$button,
|
|
62
|
+
_ref$openedMarkerSpac = _ref.openedMarkerSpacerHeight,
|
|
63
|
+
openedMarkerSpacerHeight = _ref$openedMarkerSpac === void 0 ? 0.75 : _ref$openedMarkerSpac,
|
|
64
|
+
_ref$withMarkerImages = _ref.withMarkerImages,
|
|
65
|
+
withMarkerImages = _ref$withMarkerImages === void 0 ? false : _ref$withMarkerImages,
|
|
66
|
+
_ref$zoom = _ref.zoom,
|
|
67
|
+
zoom = _ref$zoom === void 0 ? defaultZoom : _ref$zoom,
|
|
68
|
+
_ref$center = _ref.center,
|
|
69
|
+
center = _ref$center === void 0 ? defaultCenter : _ref$center,
|
|
70
|
+
_ref$fitBounds = _ref.fitBounds,
|
|
71
|
+
fitBounds = _ref$fitBounds === void 0 ? true : _ref$fitBounds,
|
|
72
|
+
_ref$background = _ref.background,
|
|
73
|
+
background = _ref$background === void 0 ? null : _ref$background,
|
|
74
|
+
_ref$current = _ref.current,
|
|
75
|
+
current = _ref$current === void 0 ? true : _ref$current,
|
|
76
|
+
_ref$active = _ref.active,
|
|
77
|
+
active = _ref$active === void 0 ? true : _ref$active,
|
|
78
|
+
_ref$type = _ref.type,
|
|
79
|
+
type = _ref$type === void 0 ? null : _ref$type,
|
|
80
|
+
_ref$className = _ref.className,
|
|
81
|
+
className = _ref$className === void 0 ? null : _ref$className;
|
|
108
82
|
var _useIntl = useIntl(),
|
|
109
83
|
locale = _useIntl.locale;
|
|
110
84
|
var _useGoogleKeys = useGoogleKeys(),
|
|
@@ -497,15 +471,13 @@ function MapScreen(_ref) {
|
|
|
497
471
|
className: styles.background
|
|
498
472
|
}) : null);
|
|
499
473
|
}
|
|
500
|
-
MapScreen.propTypes = propTypes;
|
|
501
|
-
MapScreen.defaultProps = defaultProps;
|
|
502
474
|
|
|
503
|
-
|
|
475
|
+
function MapImagesScreen(_ref) {
|
|
504
476
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
505
477
|
return /*#__PURE__*/React.createElement(MapScreen, Object.assign({}, props, {
|
|
506
478
|
withMarkerImages: true
|
|
507
479
|
}));
|
|
508
|
-
}
|
|
480
|
+
}
|
|
509
481
|
|
|
510
482
|
// import * as transforms from './transforms/index';
|
|
511
483
|
|
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{z-index:1}.container .placeholder{height:100%}.container .markerOverlayContainer{background-color:rgba(28,28,28,.4);opacity:0;pointer-events:none;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.container .markerOverlayContainer,.container .markerOverlayScrollable{height:100%;left:0;position:absolute;top:0;width:100%}.container .markerOverlaySafe{display:block;width:100%}.container .markerOverlay{overflow:hidden;width:100%}.container .markerOverlay,.container .markerOverlayContent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.container .markerOverlayContent{position:relative;-ms-flex-positive:1;background-color:var(--mm-white);flex-grow:1;padding:0 20px;-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease}.container .markerOverlayContentInner{color:var(--mm-black)}.container .swipeIndicator{border:2px solid var(--mm-gray-500);border-radius:2px;margin:10px auto;width:30px}.container .splash{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;left:0;position:absolute;top:0;width:100%;-ms-flex-pack:center;background-color:rgba(28,28,28,.75);justify-content:center;padding:20px;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.container .splash .description,.container .splash .title{margin:10px 0}.container .splash .button{display:inline-block}.container .splash .emptyButton,.container .splash .emptyDescription,.container .splash .emptyTitle{margin:5px auto;width:100%}.container .splash .emptyTitle{height:50px}.container .splash .emptyDescription{height:80px}.container .splash .emptyButton{height:70px}.container .splashButton{margin-top:10px}.container .closeButton{background-color:rgba(43,43,43,.8);border-radius:50%;display:block;font-size:30px;height:44px;line-height:0;opacity:0;padding:0;pointer-events:none;position:absolute;right:20px;text-align:center;top:20px;-webkit-transition:opacity .3s ease;transition:opacity .3s ease;width:44px}.container .markerDescription,.container .markerImage,.container .markerSubtitle,.container .markerTitle{margin-bottom:20px}.container.hasSelectedMarker .markerOverlayContainer{opacity:1;pointer-events:auto}.container.hasSelectedMarker .markerOverlayContent{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.container.opened .splash{opacity:0;pointer-events:none}.container.opened .closeButton{opacity:1;pointer-events:all}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-map",
|
|
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,39 +49,39 @@
|
|
|
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-button": "^0.
|
|
66
|
-
"@micromag/element-container": "^0.
|
|
67
|
-
"@micromag/element-footer": "^0.
|
|
68
|
-
"@micromag/element-header": "^0.
|
|
69
|
-
"@micromag/element-heading": "^0.
|
|
70
|
-
"@micromag/element-image": "^0.
|
|
71
|
-
"@micromag/element-map": "^0.
|
|
72
|
-
"@micromag/element-scroll": "^0.
|
|
73
|
-
"@micromag/element-text": "^0.
|
|
74
|
-
"@micromag/transforms": "^0.
|
|
64
|
+
"@micromag/core": "^0.4.4",
|
|
65
|
+
"@micromag/element-background": "^0.4.4",
|
|
66
|
+
"@micromag/element-button": "^0.4.4",
|
|
67
|
+
"@micromag/element-container": "^0.4.4",
|
|
68
|
+
"@micromag/element-footer": "^0.4.4",
|
|
69
|
+
"@micromag/element-header": "^0.4.4",
|
|
70
|
+
"@micromag/element-heading": "^0.4.4",
|
|
71
|
+
"@micromag/element-image": "^0.4.4",
|
|
72
|
+
"@micromag/element-map": "^0.4.4",
|
|
73
|
+
"@micromag/element-scroll": "^0.4.4",
|
|
74
|
+
"@micromag/element-text": "^0.4.4",
|
|
75
|
+
"@micromag/transforms": "^0.4.4",
|
|
75
76
|
"classnames": "^2.2.6",
|
|
76
|
-
"lodash": "^4.17.
|
|
77
|
-
"
|
|
78
|
-
"react-intl": "^6.6.4",
|
|
77
|
+
"lodash": "^4.17.23",
|
|
78
|
+
"react-intl": "^8.1.3",
|
|
79
79
|
"uuid": "^9.0.0"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org/"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "04b8519c3a3ddace5a21497e22faa11865d57f6d",
|
|
86
|
+
"types": "es/index.d.ts"
|
|
86
87
|
}
|