@micromag/screen-title 0.4.71 → 0.4.76
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 +2 -2
- package/es/index.js +214 -276
- package/package.json +16 -15
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ForwardedRef } from 'react';
|
|
3
|
-
import { HeadingElement, TextElement, BoxStyle, Label, Header, Footer, BackgroundElement } from '@micromag/core';
|
|
3
|
+
import { HeadingElement, TextElement, BoxStyle, Label, Header, Footer, BackgroundElement, MediaElement } from '@micromag/core';
|
|
4
4
|
|
|
5
5
|
interface TitleScreenProps {
|
|
6
6
|
layout?: 'top' | 'middle' | 'bottom' | 'split' | 'split-top' | 'split-bottom';
|
|
@@ -19,7 +19,7 @@ interface TitleScreenProps {
|
|
|
19
19
|
current?: boolean;
|
|
20
20
|
active?: boolean;
|
|
21
21
|
transitionStagger?: number;
|
|
22
|
-
mediaRef?: ForwardedRef<
|
|
22
|
+
mediaRef?: ForwardedRef<MediaElement> | null;
|
|
23
23
|
className?: string | null;
|
|
24
24
|
}
|
|
25
25
|
declare function TitleScreen({ layout, title, subtitle, description, boxStyle, withSubtitle, withDescription, withBox, spacing, descriptionEmptyLabel, header, footer, background, current, active, mediaRef: customMediaRef, className, }: TitleScreenProps): react_jsx_runtime.JSX.Element;
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { FormattedMessage, defineMessage } from 'react-intl';
|
|
2
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
3
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
2
|
import classNames from 'classnames';
|
|
5
3
|
import { ScreenElement } from '@micromag/core/components';
|
|
6
4
|
import { useScreenSize, useScreenRenderContext, useViewerContext, useViewerWebView, usePlaybackContext, usePlaybackMediaRef } from '@micromag/core/contexts';
|
|
@@ -13,138 +11,124 @@ import Heading from '@micromag/element-heading';
|
|
|
13
11
|
import Layout, { Spacer } from '@micromag/element-layout';
|
|
14
12
|
import Text from '@micromag/element-text';
|
|
15
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
16
|
-
import
|
|
17
|
-
import _extends from '@babel/runtime/helpers/extends';
|
|
18
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
14
|
+
import { c } from 'react/compiler-runtime';
|
|
19
15
|
|
|
20
16
|
var styles = {"container":"micromag-screen-title-container","background":"micromag-screen-title-background","content":"micromag-screen-title-content","emptyTitle":"micromag-screen-title-emptyTitle","emptySubtitle":"micromag-screen-title-emptySubtitle","emptyDescription":"micromag-screen-title-emptyDescription","title":"micromag-screen-title-title","withMargin":"micromag-screen-title-withMargin","subtitle":"micromag-screen-title-subtitle","box":"micromag-screen-title-box","isPlaceholder":"micromag-screen-title-isPlaceholder","layout":"micromag-screen-title-layout"};
|
|
21
17
|
|
|
22
|
-
function TitleScreen(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var isMiddleLayout = layout === 'middle';
|
|
91
|
-
var isBottomLayout = layout === 'bottom';
|
|
92
|
-
var verticalAlign = isSplitted ? layoutParts[1] || null : layoutParts[0];
|
|
93
|
-
var titleWithMargin = hasTitle && (hasSubtitle || hasDescription) && (!isSplitted || verticalAlign === 'top');
|
|
94
|
-
var subtitleWithMargin = hasSubtitle && hasDescription && (!isSplitted || verticalAlign === 'bottom');
|
|
95
|
-
var backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
96
|
-
var backgroundShouldLoad = current || active;
|
|
97
|
-
var hasHeader = isHeaderFilled(header);
|
|
98
|
-
var hasFooter = isFooterFilled(footer);
|
|
99
|
-
var footerProps = getFooterProps(footer, {
|
|
100
|
-
isView: isView,
|
|
101
|
-
current: current,
|
|
102
|
-
openWebView: openWebView,
|
|
103
|
-
isPreview: isPreview
|
|
18
|
+
function TitleScreen({
|
|
19
|
+
layout = 'top',
|
|
20
|
+
title = null,
|
|
21
|
+
subtitle = null,
|
|
22
|
+
description = null,
|
|
23
|
+
boxStyle = null,
|
|
24
|
+
withSubtitle = false,
|
|
25
|
+
withDescription = false,
|
|
26
|
+
withBox = false,
|
|
27
|
+
spacing = 20,
|
|
28
|
+
descriptionEmptyLabel = /*#__PURE__*/jsx(FormattedMessage, {
|
|
29
|
+
id: "507VAi",
|
|
30
|
+
defaultMessage: "Description"
|
|
31
|
+
}),
|
|
32
|
+
header = null,
|
|
33
|
+
footer = null,
|
|
34
|
+
background = null,
|
|
35
|
+
current = true,
|
|
36
|
+
active = true,
|
|
37
|
+
mediaRef: customMediaRef = null,
|
|
38
|
+
className = null
|
|
39
|
+
}) {
|
|
40
|
+
const {
|
|
41
|
+
width,
|
|
42
|
+
height,
|
|
43
|
+
resolution
|
|
44
|
+
} = useScreenSize();
|
|
45
|
+
const {
|
|
46
|
+
isView,
|
|
47
|
+
isPreview,
|
|
48
|
+
isPlaceholder,
|
|
49
|
+
isEdit
|
|
50
|
+
} = useScreenRenderContext();
|
|
51
|
+
const {
|
|
52
|
+
topHeight: viewerTopHeight,
|
|
53
|
+
bottomHeight: viewerBottomHeight,
|
|
54
|
+
bottomSidesWidth: viewerBottomSidesWidth
|
|
55
|
+
} = useViewerContext();
|
|
56
|
+
const {
|
|
57
|
+
open: openWebView
|
|
58
|
+
} = useViewerWebView();
|
|
59
|
+
const {
|
|
60
|
+
muted
|
|
61
|
+
} = usePlaybackContext();
|
|
62
|
+
const {
|
|
63
|
+
ref: mediaRef,
|
|
64
|
+
isCurrent: isCurrentMedia = false
|
|
65
|
+
} = usePlaybackMediaRef(current, true);
|
|
66
|
+
const hasTitle = isTextFilled(title);
|
|
67
|
+
const hasSubtitle = isTextFilled(subtitle);
|
|
68
|
+
const hasDescription = isTextFilled(description);
|
|
69
|
+
const layoutParts = layout.split('-');
|
|
70
|
+
const isSplitted = layoutParts[0] === 'split';
|
|
71
|
+
const isTopLayout = layout === 'top';
|
|
72
|
+
const isMiddleLayout = layout === 'middle';
|
|
73
|
+
const isBottomLayout = layout === 'bottom';
|
|
74
|
+
const verticalAlign = isSplitted ? layoutParts[1] || null : layoutParts[0];
|
|
75
|
+
const titleWithMargin = hasTitle && (hasSubtitle || hasDescription) && (!isSplitted || verticalAlign === 'top');
|
|
76
|
+
const subtitleWithMargin = hasSubtitle && hasDescription && (!isSplitted || verticalAlign === 'bottom');
|
|
77
|
+
const backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
78
|
+
const backgroundShouldLoad = current || active;
|
|
79
|
+
const hasHeader = isHeaderFilled(header);
|
|
80
|
+
const hasFooter = isFooterFilled(footer);
|
|
81
|
+
const footerProps = getFooterProps(footer, {
|
|
82
|
+
isView,
|
|
83
|
+
current,
|
|
84
|
+
openWebView,
|
|
85
|
+
isPreview
|
|
104
86
|
});
|
|
105
|
-
|
|
87
|
+
const titleElement = /*#__PURE__*/jsx(ScreenElement, {
|
|
106
88
|
placeholder: "title",
|
|
107
89
|
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
108
90
|
id: "2ZOPe+",
|
|
109
|
-
defaultMessage:
|
|
110
|
-
"type": 0,
|
|
111
|
-
"value": "Title"
|
|
112
|
-
}]
|
|
91
|
+
defaultMessage: "Title"
|
|
113
92
|
}),
|
|
114
93
|
emptyClassName: styles.emptyTitle,
|
|
115
94
|
isEmpty: !hasTitle,
|
|
116
|
-
children: hasTitle ? /*#__PURE__*/jsx(Heading,
|
|
117
|
-
className: classNames([styles.title,
|
|
118
|
-
|
|
95
|
+
children: hasTitle ? /*#__PURE__*/jsx(Heading, {
|
|
96
|
+
className: classNames([styles.title, {
|
|
97
|
+
[styles.withMargin]: titleWithMargin
|
|
98
|
+
}]),
|
|
99
|
+
...title,
|
|
119
100
|
size: 1
|
|
120
|
-
})
|
|
101
|
+
}) : null
|
|
121
102
|
}, "title");
|
|
122
|
-
|
|
103
|
+
const subtitleElement = withSubtitle ? /*#__PURE__*/jsx(ScreenElement, {
|
|
123
104
|
placeholder: "subtitle",
|
|
124
105
|
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
125
106
|
id: "d60tSn",
|
|
126
|
-
defaultMessage:
|
|
127
|
-
"type": 0,
|
|
128
|
-
"value": "Subtitle"
|
|
129
|
-
}]
|
|
107
|
+
defaultMessage: "Subtitle"
|
|
130
108
|
}),
|
|
131
109
|
emptyClassName: styles.emptySubtitle,
|
|
132
110
|
isEmpty: !hasSubtitle,
|
|
133
|
-
children: hasSubtitle ? /*#__PURE__*/jsx(Heading,
|
|
134
|
-
className: classNames([styles.subtitle,
|
|
135
|
-
|
|
111
|
+
children: hasSubtitle ? /*#__PURE__*/jsx(Heading, {
|
|
112
|
+
className: classNames([styles.subtitle, {
|
|
113
|
+
[styles.withMargin]: subtitleWithMargin
|
|
114
|
+
}]),
|
|
115
|
+
...subtitle,
|
|
136
116
|
size: 2
|
|
137
|
-
})
|
|
117
|
+
}) : null
|
|
138
118
|
}, "subtitle") : null;
|
|
139
|
-
|
|
119
|
+
const descriptionElement = withDescription ? /*#__PURE__*/jsx(ScreenElement, {
|
|
140
120
|
placeholder: "shortText",
|
|
141
121
|
emptyLabel: descriptionEmptyLabel,
|
|
142
122
|
emptyClassName: styles.emptyDescription,
|
|
143
123
|
isEmpty: !hasDescription,
|
|
144
|
-
children: hasDescription ? /*#__PURE__*/jsx(Text,
|
|
124
|
+
children: hasDescription ? /*#__PURE__*/jsx(Text, {
|
|
125
|
+
...description
|
|
126
|
+
}) : null
|
|
145
127
|
}, "description") : null;
|
|
146
128
|
return /*#__PURE__*/jsxs("div", {
|
|
147
|
-
className: classNames([styles.container, className,
|
|
129
|
+
className: classNames([styles.container, className, {
|
|
130
|
+
[styles.isPlaceholder]: isPlaceholder
|
|
131
|
+
}]),
|
|
148
132
|
"data-screen-ready": true,
|
|
149
133
|
children: [/*#__PURE__*/jsx(Container, {
|
|
150
134
|
width: width,
|
|
@@ -164,7 +148,9 @@ function TitleScreen(_ref) {
|
|
|
164
148
|
style: {
|
|
165
149
|
paddingBottom: spacing
|
|
166
150
|
},
|
|
167
|
-
children: /*#__PURE__*/jsx(Header,
|
|
151
|
+
children: /*#__PURE__*/jsx(Header, {
|
|
152
|
+
...header
|
|
153
|
+
})
|
|
168
154
|
}) : null, !isPlaceholder && hasFooter && isMiddleLayout ? /*#__PURE__*/jsx(Spacer, {}, "spacer-cta-top") : null, !isPlaceholder && hasHeader && isBottomLayout ? /*#__PURE__*/jsx(Spacer, {}, "spacer-cta-top") : null, !isPlaceholder && hasHeader && !hasFooter && isMiddleLayout ? /*#__PURE__*/jsx(Spacer, {}, "spacer-cta-top") : null, withBox && !isSplitted ? /*#__PURE__*/jsx("div", {
|
|
169
155
|
className: styles.box,
|
|
170
156
|
style: isEdit || isPlaceholder || hasTitle || hasSubtitle || hasDescription ? getStyleFromBox(boxStyle) : null,
|
|
@@ -187,7 +173,9 @@ function TitleScreen(_ref) {
|
|
|
187
173
|
paddingLeft: Math.max(0, viewerBottomSidesWidth - spacing),
|
|
188
174
|
paddingRight: Math.max(0, viewerBottomSidesWidth - spacing)
|
|
189
175
|
},
|
|
190
|
-
children: /*#__PURE__*/jsx(Footer,
|
|
176
|
+
children: /*#__PURE__*/jsx(Footer, {
|
|
177
|
+
...footerProps
|
|
178
|
+
})
|
|
191
179
|
}, "call-to-action") : null]
|
|
192
180
|
})
|
|
193
181
|
}), !isPlaceholder ? /*#__PURE__*/jsx(Background, {
|
|
@@ -205,38 +193,93 @@ function TitleScreen(_ref) {
|
|
|
205
193
|
});
|
|
206
194
|
}
|
|
207
195
|
|
|
208
|
-
function TitleSubtitleScreen(
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
196
|
+
function TitleSubtitleScreen(t0) {
|
|
197
|
+
const $ = c(4);
|
|
198
|
+
let props;
|
|
199
|
+
if ($[0] !== t0) {
|
|
200
|
+
({
|
|
201
|
+
...props
|
|
202
|
+
} = t0);
|
|
203
|
+
$[0] = t0;
|
|
204
|
+
$[1] = props;
|
|
205
|
+
} else {
|
|
206
|
+
props = $[1];
|
|
207
|
+
}
|
|
208
|
+
let t1;
|
|
209
|
+
if ($[2] !== props) {
|
|
210
|
+
t1 = /*#__PURE__*/jsx(TitleScreen, {
|
|
211
|
+
...props,
|
|
212
|
+
withSubtitle: true
|
|
213
|
+
});
|
|
214
|
+
$[2] = props;
|
|
215
|
+
$[3] = t1;
|
|
216
|
+
} else {
|
|
217
|
+
t1 = $[3];
|
|
218
|
+
}
|
|
219
|
+
return t1;
|
|
213
220
|
}
|
|
214
221
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
function TitleSubtitleCreditsScreen(t0) {
|
|
223
|
+
const $ = c(7);
|
|
224
|
+
let props;
|
|
225
|
+
let t1;
|
|
226
|
+
if ($[0] !== t0) {
|
|
227
|
+
({
|
|
228
|
+
credits: t1,
|
|
229
|
+
...props
|
|
230
|
+
} = t0);
|
|
231
|
+
$[0] = t0;
|
|
232
|
+
$[1] = props;
|
|
233
|
+
$[2] = t1;
|
|
234
|
+
} else {
|
|
235
|
+
props = $[1];
|
|
236
|
+
t1 = $[2];
|
|
237
|
+
}
|
|
238
|
+
const credits = t1 === undefined ? null : t1;
|
|
239
|
+
let t2;
|
|
240
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
241
|
+
t2 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
225
242
|
id: "/hupzO",
|
|
226
|
-
defaultMessage:
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
243
|
+
defaultMessage: "Credits"
|
|
244
|
+
});
|
|
245
|
+
$[3] = t2;
|
|
246
|
+
} else {
|
|
247
|
+
t2 = $[3];
|
|
248
|
+
}
|
|
249
|
+
let t3;
|
|
250
|
+
if ($[4] !== credits || $[5] !== props) {
|
|
251
|
+
t3 = /*#__PURE__*/jsx(TitleScreen, {
|
|
252
|
+
...props,
|
|
253
|
+
description: credits,
|
|
254
|
+
withSubtitle: true,
|
|
255
|
+
withDescription: true,
|
|
256
|
+
descriptionEmptyLabel: t2
|
|
257
|
+
});
|
|
258
|
+
$[4] = credits;
|
|
259
|
+
$[5] = props;
|
|
260
|
+
$[6] = t3;
|
|
261
|
+
} else {
|
|
262
|
+
t3 = $[6];
|
|
263
|
+
}
|
|
264
|
+
return t3;
|
|
232
265
|
}
|
|
233
266
|
|
|
234
267
|
function TitleWithBoxScreen(props) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
268
|
+
const $ = c(2);
|
|
269
|
+
let t0;
|
|
270
|
+
if ($[0] !== props) {
|
|
271
|
+
t0 = /*#__PURE__*/jsx(TitleScreen, {
|
|
272
|
+
...props,
|
|
273
|
+
withSubtitle: true,
|
|
274
|
+
withDescription: true,
|
|
275
|
+
withBox: true
|
|
276
|
+
});
|
|
277
|
+
$[0] = props;
|
|
278
|
+
$[1] = t0;
|
|
279
|
+
} else {
|
|
280
|
+
t0 = $[1];
|
|
281
|
+
}
|
|
282
|
+
return t0;
|
|
240
283
|
}
|
|
241
284
|
|
|
242
285
|
var definition = [{
|
|
@@ -245,19 +288,13 @@ var definition = [{
|
|
|
245
288
|
group: {
|
|
246
289
|
label: defineMessage({
|
|
247
290
|
id: "uKJRh2",
|
|
248
|
-
defaultMessage:
|
|
249
|
-
"type": 0,
|
|
250
|
-
"value": "Title"
|
|
251
|
-
}]
|
|
291
|
+
defaultMessage: "Title"
|
|
252
292
|
}),
|
|
253
293
|
order: 1
|
|
254
294
|
},
|
|
255
295
|
title: defineMessage({
|
|
256
296
|
id: "dVcog7",
|
|
257
|
-
defaultMessage:
|
|
258
|
-
"type": 0,
|
|
259
|
-
"value": "Title"
|
|
260
|
-
}]
|
|
297
|
+
defaultMessage: "Title"
|
|
261
298
|
}),
|
|
262
299
|
component: TitleScreen,
|
|
263
300
|
layouts: ['top', 'middle', 'bottom'],
|
|
@@ -268,10 +305,7 @@ var definition = [{
|
|
|
268
305
|
defaultValue: 'top',
|
|
269
306
|
label: defineMessage({
|
|
270
307
|
id: "4iBXj2",
|
|
271
|
-
defaultMessage:
|
|
272
|
-
"type": 0,
|
|
273
|
-
"value": "Layout"
|
|
274
|
-
}]
|
|
308
|
+
defaultMessage: "Layout"
|
|
275
309
|
})
|
|
276
310
|
}, {
|
|
277
311
|
name: 'title',
|
|
@@ -281,30 +315,21 @@ var definition = [{
|
|
|
281
315
|
},
|
|
282
316
|
label: defineMessage({
|
|
283
317
|
id: "N25iDO",
|
|
284
|
-
defaultMessage:
|
|
285
|
-
"type": 0,
|
|
286
|
-
"value": "Title"
|
|
287
|
-
}]
|
|
318
|
+
defaultMessage: "Title"
|
|
288
319
|
})
|
|
289
320
|
}, {
|
|
290
321
|
name: 'background',
|
|
291
322
|
type: 'background',
|
|
292
323
|
label: defineMessage({
|
|
293
324
|
id: "+MPZRu",
|
|
294
|
-
defaultMessage:
|
|
295
|
-
"type": 0,
|
|
296
|
-
"value": "Background"
|
|
297
|
-
}]
|
|
325
|
+
defaultMessage: "Background"
|
|
298
326
|
})
|
|
299
327
|
}, {
|
|
300
328
|
name: 'header',
|
|
301
329
|
type: 'header',
|
|
302
330
|
label: defineMessage({
|
|
303
331
|
id: "rhuDxI",
|
|
304
|
-
defaultMessage:
|
|
305
|
-
"type": 0,
|
|
306
|
-
"value": "Header"
|
|
307
|
-
}]
|
|
332
|
+
defaultMessage: "Header"
|
|
308
333
|
}),
|
|
309
334
|
theme: {
|
|
310
335
|
badge: {
|
|
@@ -319,10 +344,7 @@ var definition = [{
|
|
|
319
344
|
type: 'footer',
|
|
320
345
|
label: defineMessage({
|
|
321
346
|
id: "g4nybp",
|
|
322
|
-
defaultMessage:
|
|
323
|
-
"type": 0,
|
|
324
|
-
"value": "Footer"
|
|
325
|
-
}]
|
|
347
|
+
defaultMessage: "Footer"
|
|
326
348
|
}),
|
|
327
349
|
theme: {
|
|
328
350
|
callToAction: {
|
|
@@ -339,19 +361,13 @@ var definition = [{
|
|
|
339
361
|
group: {
|
|
340
362
|
label: defineMessage({
|
|
341
363
|
id: "uKJRh2",
|
|
342
|
-
defaultMessage:
|
|
343
|
-
"type": 0,
|
|
344
|
-
"value": "Title"
|
|
345
|
-
}]
|
|
364
|
+
defaultMessage: "Title"
|
|
346
365
|
}),
|
|
347
366
|
order: 1
|
|
348
367
|
},
|
|
349
368
|
title: defineMessage({
|
|
350
369
|
id: "P1dwGU",
|
|
351
|
-
defaultMessage:
|
|
352
|
-
"type": 0,
|
|
353
|
-
"value": "Title with subtitle"
|
|
354
|
-
}]
|
|
370
|
+
defaultMessage: "Title with subtitle"
|
|
355
371
|
}),
|
|
356
372
|
component: TitleSubtitleScreen,
|
|
357
373
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
@@ -362,10 +378,7 @@ var definition = [{
|
|
|
362
378
|
defaultValue: 'top',
|
|
363
379
|
label: defineMessage({
|
|
364
380
|
id: "4iBXj2",
|
|
365
|
-
defaultMessage:
|
|
366
|
-
"type": 0,
|
|
367
|
-
"value": "Layout"
|
|
368
|
-
}]
|
|
381
|
+
defaultMessage: "Layout"
|
|
369
382
|
})
|
|
370
383
|
}, {
|
|
371
384
|
name: 'title',
|
|
@@ -375,10 +388,7 @@ var definition = [{
|
|
|
375
388
|
},
|
|
376
389
|
label: defineMessage({
|
|
377
390
|
id: "N25iDO",
|
|
378
|
-
defaultMessage:
|
|
379
|
-
"type": 0,
|
|
380
|
-
"value": "Title"
|
|
381
|
-
}]
|
|
391
|
+
defaultMessage: "Title"
|
|
382
392
|
})
|
|
383
393
|
}, {
|
|
384
394
|
name: 'subtitle',
|
|
@@ -388,30 +398,21 @@ var definition = [{
|
|
|
388
398
|
},
|
|
389
399
|
label: defineMessage({
|
|
390
400
|
id: "EcZYpr",
|
|
391
|
-
defaultMessage:
|
|
392
|
-
"type": 0,
|
|
393
|
-
"value": "Subtitle"
|
|
394
|
-
}]
|
|
401
|
+
defaultMessage: "Subtitle"
|
|
395
402
|
})
|
|
396
403
|
}, {
|
|
397
404
|
name: 'background',
|
|
398
405
|
type: 'background',
|
|
399
406
|
label: defineMessage({
|
|
400
407
|
id: "+MPZRu",
|
|
401
|
-
defaultMessage:
|
|
402
|
-
"type": 0,
|
|
403
|
-
"value": "Background"
|
|
404
|
-
}]
|
|
408
|
+
defaultMessage: "Background"
|
|
405
409
|
})
|
|
406
410
|
}, {
|
|
407
411
|
name: 'header',
|
|
408
412
|
type: 'header',
|
|
409
413
|
label: defineMessage({
|
|
410
414
|
id: "rhuDxI",
|
|
411
|
-
defaultMessage:
|
|
412
|
-
"type": 0,
|
|
413
|
-
"value": "Header"
|
|
414
|
-
}]
|
|
415
|
+
defaultMessage: "Header"
|
|
415
416
|
}),
|
|
416
417
|
theme: {
|
|
417
418
|
badge: {
|
|
@@ -426,10 +427,7 @@ var definition = [{
|
|
|
426
427
|
type: 'footer',
|
|
427
428
|
label: defineMessage({
|
|
428
429
|
id: "g4nybp",
|
|
429
|
-
defaultMessage:
|
|
430
|
-
"type": 0,
|
|
431
|
-
"value": "Footer"
|
|
432
|
-
}]
|
|
430
|
+
defaultMessage: "Footer"
|
|
433
431
|
}),
|
|
434
432
|
theme: {
|
|
435
433
|
callToAction: {
|
|
@@ -446,19 +444,13 @@ var definition = [{
|
|
|
446
444
|
group: {
|
|
447
445
|
label: defineMessage({
|
|
448
446
|
id: "uKJRh2",
|
|
449
|
-
defaultMessage:
|
|
450
|
-
"type": 0,
|
|
451
|
-
"value": "Title"
|
|
452
|
-
}]
|
|
447
|
+
defaultMessage: "Title"
|
|
453
448
|
}),
|
|
454
449
|
order: 1
|
|
455
450
|
},
|
|
456
451
|
title: defineMessage({
|
|
457
452
|
id: "vZrFq6",
|
|
458
|
-
defaultMessage:
|
|
459
|
-
"type": 0,
|
|
460
|
-
"value": "Title with subtitle and credits"
|
|
461
|
-
}]
|
|
453
|
+
defaultMessage: "Title with subtitle and credits"
|
|
462
454
|
}),
|
|
463
455
|
component: TitleSubtitleCreditsScreen,
|
|
464
456
|
layouts: ['top', 'middle', 'bottom', 'split-top', 'split-bottom'],
|
|
@@ -469,10 +461,7 @@ var definition = [{
|
|
|
469
461
|
defaultValue: 'top',
|
|
470
462
|
label: defineMessage({
|
|
471
463
|
id: "4iBXj2",
|
|
472
|
-
defaultMessage:
|
|
473
|
-
"type": 0,
|
|
474
|
-
"value": "Layout"
|
|
475
|
-
}]
|
|
464
|
+
defaultMessage: "Layout"
|
|
476
465
|
})
|
|
477
466
|
}, {
|
|
478
467
|
name: 'title',
|
|
@@ -482,10 +471,7 @@ var definition = [{
|
|
|
482
471
|
},
|
|
483
472
|
label: defineMessage({
|
|
484
473
|
id: "N25iDO",
|
|
485
|
-
defaultMessage:
|
|
486
|
-
"type": 0,
|
|
487
|
-
"value": "Title"
|
|
488
|
-
}]
|
|
474
|
+
defaultMessage: "Title"
|
|
489
475
|
})
|
|
490
476
|
}, {
|
|
491
477
|
name: 'subtitle',
|
|
@@ -495,10 +481,7 @@ var definition = [{
|
|
|
495
481
|
},
|
|
496
482
|
label: defineMessage({
|
|
497
483
|
id: "EcZYpr",
|
|
498
|
-
defaultMessage:
|
|
499
|
-
"type": 0,
|
|
500
|
-
"value": "Subtitle"
|
|
501
|
-
}]
|
|
484
|
+
defaultMessage: "Subtitle"
|
|
502
485
|
})
|
|
503
486
|
}, {
|
|
504
487
|
name: 'credits',
|
|
@@ -508,30 +491,21 @@ var definition = [{
|
|
|
508
491
|
},
|
|
509
492
|
label: defineMessage({
|
|
510
493
|
id: "upzOTm",
|
|
511
|
-
defaultMessage:
|
|
512
|
-
"type": 0,
|
|
513
|
-
"value": "Credits"
|
|
514
|
-
}]
|
|
494
|
+
defaultMessage: "Credits"
|
|
515
495
|
})
|
|
516
496
|
}, {
|
|
517
497
|
name: 'background',
|
|
518
498
|
type: 'background',
|
|
519
499
|
label: defineMessage({
|
|
520
500
|
id: "+MPZRu",
|
|
521
|
-
defaultMessage:
|
|
522
|
-
"type": 0,
|
|
523
|
-
"value": "Background"
|
|
524
|
-
}]
|
|
501
|
+
defaultMessage: "Background"
|
|
525
502
|
})
|
|
526
503
|
}, {
|
|
527
504
|
name: 'header',
|
|
528
505
|
type: 'header',
|
|
529
506
|
label: defineMessage({
|
|
530
507
|
id: "rhuDxI",
|
|
531
|
-
defaultMessage:
|
|
532
|
-
"type": 0,
|
|
533
|
-
"value": "Header"
|
|
534
|
-
}]
|
|
508
|
+
defaultMessage: "Header"
|
|
535
509
|
}),
|
|
536
510
|
theme: {
|
|
537
511
|
badge: {
|
|
@@ -546,10 +520,7 @@ var definition = [{
|
|
|
546
520
|
type: 'footer',
|
|
547
521
|
label: defineMessage({
|
|
548
522
|
id: "g4nybp",
|
|
549
|
-
defaultMessage:
|
|
550
|
-
"type": 0,
|
|
551
|
-
"value": "Footer"
|
|
552
|
-
}]
|
|
523
|
+
defaultMessage: "Footer"
|
|
553
524
|
}),
|
|
554
525
|
theme: {
|
|
555
526
|
callToAction: {
|
|
@@ -566,19 +537,13 @@ var definition = [{
|
|
|
566
537
|
group: {
|
|
567
538
|
label: defineMessage({
|
|
568
539
|
id: "uKJRh2",
|
|
569
|
-
defaultMessage:
|
|
570
|
-
"type": 0,
|
|
571
|
-
"value": "Title"
|
|
572
|
-
}]
|
|
540
|
+
defaultMessage: "Title"
|
|
573
541
|
}),
|
|
574
542
|
order: 1
|
|
575
543
|
},
|
|
576
544
|
title: defineMessage({
|
|
577
545
|
id: "9a5s+m",
|
|
578
|
-
defaultMessage:
|
|
579
|
-
"type": 0,
|
|
580
|
-
"value": "Title with box"
|
|
581
|
-
}]
|
|
546
|
+
defaultMessage: "Title with box"
|
|
582
547
|
}),
|
|
583
548
|
component: TitleWithBoxScreen,
|
|
584
549
|
layouts: ['top', 'middle', 'bottom', 'split-top', 'split-bottom'],
|
|
@@ -589,10 +554,7 @@ var definition = [{
|
|
|
589
554
|
defaultValue: 'top',
|
|
590
555
|
label: defineMessage({
|
|
591
556
|
id: "4iBXj2",
|
|
592
|
-
defaultMessage:
|
|
593
|
-
"type": 0,
|
|
594
|
-
"value": "Layout"
|
|
595
|
-
}]
|
|
557
|
+
defaultMessage: "Layout"
|
|
596
558
|
})
|
|
597
559
|
}, {
|
|
598
560
|
name: 'title',
|
|
@@ -602,10 +564,7 @@ var definition = [{
|
|
|
602
564
|
},
|
|
603
565
|
label: defineMessage({
|
|
604
566
|
id: "N25iDO",
|
|
605
|
-
defaultMessage:
|
|
606
|
-
"type": 0,
|
|
607
|
-
"value": "Title"
|
|
608
|
-
}]
|
|
567
|
+
defaultMessage: "Title"
|
|
609
568
|
})
|
|
610
569
|
}, {
|
|
611
570
|
name: 'subtitle',
|
|
@@ -615,10 +574,7 @@ var definition = [{
|
|
|
615
574
|
},
|
|
616
575
|
label: defineMessage({
|
|
617
576
|
id: "EcZYpr",
|
|
618
|
-
defaultMessage:
|
|
619
|
-
"type": 0,
|
|
620
|
-
"value": "Subtitle"
|
|
621
|
-
}]
|
|
577
|
+
defaultMessage: "Subtitle"
|
|
622
578
|
})
|
|
623
579
|
}, {
|
|
624
580
|
name: 'description',
|
|
@@ -628,30 +584,21 @@ var definition = [{
|
|
|
628
584
|
},
|
|
629
585
|
label: defineMessage({
|
|
630
586
|
id: "ZCe0r4",
|
|
631
|
-
defaultMessage:
|
|
632
|
-
"type": 0,
|
|
633
|
-
"value": "Description"
|
|
634
|
-
}]
|
|
587
|
+
defaultMessage: "Description"
|
|
635
588
|
})
|
|
636
589
|
}, {
|
|
637
590
|
type: 'fields',
|
|
638
591
|
isList: true,
|
|
639
592
|
label: defineMessage({
|
|
640
593
|
id: "LOknw0",
|
|
641
|
-
defaultMessage:
|
|
642
|
-
"type": 0,
|
|
643
|
-
"value": "Styles"
|
|
644
|
-
}]
|
|
594
|
+
defaultMessage: "Styles"
|
|
645
595
|
}),
|
|
646
596
|
fields: [{
|
|
647
597
|
name: 'boxStyle',
|
|
648
598
|
type: 'box-style-form',
|
|
649
599
|
label: defineMessage({
|
|
650
600
|
id: "f5Yipd",
|
|
651
|
-
defaultMessage:
|
|
652
|
-
"type": 0,
|
|
653
|
-
"value": "Box"
|
|
654
|
-
}]
|
|
601
|
+
defaultMessage: "Box"
|
|
655
602
|
})
|
|
656
603
|
}]
|
|
657
604
|
}, {
|
|
@@ -659,20 +606,14 @@ var definition = [{
|
|
|
659
606
|
type: 'background',
|
|
660
607
|
label: defineMessage({
|
|
661
608
|
id: "cDj1mZ",
|
|
662
|
-
defaultMessage:
|
|
663
|
-
"type": 0,
|
|
664
|
-
"value": "Background"
|
|
665
|
-
}]
|
|
609
|
+
defaultMessage: "Background"
|
|
666
610
|
})
|
|
667
611
|
}, {
|
|
668
612
|
name: 'header',
|
|
669
613
|
type: 'header',
|
|
670
614
|
label: defineMessage({
|
|
671
615
|
id: "rhuDxI",
|
|
672
|
-
defaultMessage:
|
|
673
|
-
"type": 0,
|
|
674
|
-
"value": "Header"
|
|
675
|
-
}]
|
|
616
|
+
defaultMessage: "Header"
|
|
676
617
|
}),
|
|
677
618
|
theme: {
|
|
678
619
|
badge: {
|
|
@@ -687,10 +628,7 @@ var definition = [{
|
|
|
687
628
|
type: 'footer',
|
|
688
629
|
label: defineMessage({
|
|
689
630
|
id: "g4nybp",
|
|
690
|
-
defaultMessage:
|
|
691
|
-
"type": 0,
|
|
692
|
-
"value": "Footer"
|
|
693
|
-
}]
|
|
631
|
+
defaultMessage: "Footer"
|
|
694
632
|
}),
|
|
695
633
|
theme: {
|
|
696
634
|
callToAction: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-title",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.76",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|
|
38
38
|
"types": "./es/index.d.ts",
|
|
39
|
+
"style": "./assets/css/styles.css",
|
|
39
40
|
"import": "./es/index.js"
|
|
40
41
|
},
|
|
41
42
|
"./assets/css/styles": "./assets/css/styles.css",
|
|
@@ -52,24 +53,24 @@
|
|
|
52
53
|
"build": "../../scripts/prepare-package.sh --types"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"react": "^
|
|
56
|
-
"react-dom": "^
|
|
56
|
+
"react": "^19.0.0",
|
|
57
|
+
"react-dom": "^19.0.0"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
|
-
"react": "^
|
|
60
|
-
"react-dom": "^
|
|
60
|
+
"react": "^19.0.0",
|
|
61
|
+
"react-dom": "^19.0.0"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"@babel/runtime": "^7.28.6",
|
|
64
|
-
"@micromag/core": "^0.4.
|
|
65
|
-
"@micromag/element-background": "^0.4.
|
|
66
|
-
"@micromag/element-container": "^0.4.
|
|
67
|
-
"@micromag/element-footer": "^0.4.
|
|
68
|
-
"@micromag/element-header": "^0.4.
|
|
69
|
-
"@micromag/element-heading": "^0.4.
|
|
70
|
-
"@micromag/element-layout": "^0.4.
|
|
71
|
-
"@micromag/element-text": "^0.4.
|
|
72
|
-
"@micromag/transforms": "^0.4.
|
|
65
|
+
"@micromag/core": "^0.4.74",
|
|
66
|
+
"@micromag/element-background": "^0.4.76",
|
|
67
|
+
"@micromag/element-container": "^0.4.74",
|
|
68
|
+
"@micromag/element-footer": "^0.4.76",
|
|
69
|
+
"@micromag/element-header": "^0.4.74",
|
|
70
|
+
"@micromag/element-heading": "^0.4.74",
|
|
71
|
+
"@micromag/element-layout": "^0.4.74",
|
|
72
|
+
"@micromag/element-text": "^0.4.74",
|
|
73
|
+
"@micromag/transforms": "^0.4.74",
|
|
73
74
|
"classnames": "^2.2.6",
|
|
74
75
|
"lodash": "^4.17.23",
|
|
75
76
|
"react-intl": "^8.1.3 || ^10.0.0",
|
|
@@ -79,6 +80,6 @@
|
|
|
79
80
|
"access": "public",
|
|
80
81
|
"registry": "https://registry.npmjs.org/"
|
|
81
82
|
},
|
|
82
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "42a24f578994b23090271013f136b7f78956b632",
|
|
83
84
|
"types": "es/index.d.ts"
|
|
84
85
|
}
|