@micromag/screen-contribution 0.4.48 → 0.4.50
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.js +248 -224
- package/package.json +16 -16
package/es/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { faSpinner } from '@fortawesome/free-solid-svg-icons/faSpinner';
|
|
|
8
8
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import DOMPurify from 'dompurify';
|
|
11
|
-
import
|
|
11
|
+
import { useRef, useState, useCallback, useEffect } from 'react';
|
|
12
12
|
import { ScreenElement, Transitions } from '@micromag/core/components';
|
|
13
13
|
import { useScreenSize, useViewerContext, useScreenRenderContext, useViewerWebView, usePlaybackContext, usePlaybackMediaRef } from '@micromag/core/contexts';
|
|
14
14
|
import { useTrackScreenEvent, useDimensionObserver } from '@micromag/core/hooks';
|
|
@@ -24,6 +24,7 @@ import Layout from '@micromag/element-layout';
|
|
|
24
24
|
import Scroll from '@micromag/element-scroll';
|
|
25
25
|
import Text from '@micromag/element-text';
|
|
26
26
|
import TextInput from '@micromag/element-text-input';
|
|
27
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
27
28
|
|
|
28
29
|
var styles = {"container":"micromag-screen-contribution-container","background":"micromag-screen-contribution-background","content":"micromag-screen-contribution-content","inner":"micromag-screen-contribution-inner","layout":"micromag-screen-contribution-layout","header":"micromag-screen-contribution-header","emptyTitle":"micromag-screen-contribution-emptyTitle","emptyInputName":"micromag-screen-contribution-emptyInputName","emptyInputMessage":"micromag-screen-contribution-emptyInputMessage","emptySubmit":"micromag-screen-contribution-emptySubmit","emptySkip":"micromag-screen-contribution-emptySkip","title":"micromag-screen-contribution-title","interactiveContainer":"micromag-screen-contribution-interactiveContainer","form":"micromag-screen-contribution-form","inputName":"micromag-screen-contribution-inputName","inputMessage":"micromag-screen-contribution-inputMessage","buttonSubmit":"micromag-screen-contribution-buttonSubmit","buttonSkip":"micromag-screen-contribution-buttonSkip","showBack":"micromag-screen-contribution-showBack","formContent":"micromag-screen-contribution-formContent","formLoading":"micromag-screen-contribution-formLoading","loadingIcon":"micromag-screen-contribution-loadingIcon","contributionsContainer":"micromag-screen-contribution-contributionsContainer","contributionsContent":"micromag-screen-contribution-contributionsContent","contributions":"micromag-screen-contribution-contributions","contribution":"micromag-screen-contribution-contribution","footer":"micromag-screen-contribution-footer","disabled":"micromag-screen-contribution-disabled","submitting":"micromag-screen-contribution-submitting","submitted":"micromag-screen-contribution-submitted","showContributions":"micromag-screen-contribution-showContributions","isPlaceholder":"micromag-screen-contribution-isPlaceholder","reset":"micromag-screen-contribution-reset"};
|
|
29
30
|
|
|
@@ -279,13 +280,12 @@ function ContributionScreen(_ref) {
|
|
|
279
280
|
|
|
280
281
|
// Title
|
|
281
282
|
|
|
282
|
-
var items = [/*#__PURE__*/
|
|
283
|
-
key: "title",
|
|
283
|
+
var items = [/*#__PURE__*/jsx(ScreenElement, {
|
|
284
284
|
placeholder: "title",
|
|
285
285
|
placeholderProps: {
|
|
286
286
|
height: '0.75em'
|
|
287
287
|
},
|
|
288
|
-
emptyLabel: /*#__PURE__*/
|
|
288
|
+
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
289
289
|
id: "2ZOPe+",
|
|
290
290
|
defaultMessage: [{
|
|
291
291
|
"type": 0,
|
|
@@ -293,10 +293,11 @@ function ContributionScreen(_ref) {
|
|
|
293
293
|
}]
|
|
294
294
|
}),
|
|
295
295
|
emptyClassName: styles.emptyTitle,
|
|
296
|
-
isEmpty: !hasTitle
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
296
|
+
isEmpty: !hasTitle,
|
|
297
|
+
children: hasTitle ? /*#__PURE__*/jsx(Heading, _objectSpread(_objectSpread({}, title), {}, {
|
|
298
|
+
className: styles.title
|
|
299
|
+
})) : null
|
|
300
|
+
}, "title")];
|
|
300
301
|
var allContributions = [].concat(_toConsumableArray(userName !== null && userName !== '' && userMessage !== null && userMessage !== '' ? [{
|
|
301
302
|
name: userName,
|
|
302
303
|
message: userMessage
|
|
@@ -304,232 +305,255 @@ function ContributionScreen(_ref) {
|
|
|
304
305
|
|
|
305
306
|
// Form
|
|
306
307
|
|
|
307
|
-
items.push(/*#__PURE__*/
|
|
308
|
-
key: "form",
|
|
308
|
+
items.push(/*#__PURE__*/jsxs("div", {
|
|
309
309
|
className: styles.interactiveContainer,
|
|
310
310
|
style: {
|
|
311
311
|
height: submitState < 4 ? interactiveContainerHeight : null,
|
|
312
312
|
transitionDuration: "".concat(resizeTransitionDuration, "ms")
|
|
313
|
-
}
|
|
314
|
-
}, /*#__PURE__*/React.createElement("form", {
|
|
315
|
-
className: styles.form,
|
|
316
|
-
onSubmit: onSubmit,
|
|
317
|
-
ref: formRef
|
|
318
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
319
|
-
className: styles.formContent
|
|
320
|
-
}, /*#__PURE__*/React.createElement(ScreenElement, {
|
|
321
|
-
placeholder: "inputText",
|
|
322
|
-
placeholderProps: {
|
|
323
|
-
height: '0.25em'
|
|
324
|
-
},
|
|
325
|
-
emptyLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
326
|
-
id: "G/ITGY",
|
|
327
|
-
defaultMessage: [{
|
|
328
|
-
"type": 0,
|
|
329
|
-
"value": "Your name"
|
|
330
|
-
}]
|
|
331
|
-
}),
|
|
332
|
-
emptyClassName: styles.emptyInputName,
|
|
333
|
-
isEmpty: !hasNameLabel
|
|
334
|
-
}, /*#__PURE__*/React.createElement(Transitions, {
|
|
335
|
-
transitions: transitions,
|
|
336
|
-
playing: transitionPlaying,
|
|
337
|
-
delay: transitionStagger,
|
|
338
|
-
disabled: transitionDisabled
|
|
339
|
-
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
340
|
-
className: styles.inputName
|
|
341
|
-
}, name, {
|
|
342
|
-
value: userName,
|
|
343
|
-
onChange: function onChange(e) {
|
|
344
|
-
return onNameChange(e);
|
|
345
313
|
},
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
314
|
+
children: [/*#__PURE__*/jsxs("form", {
|
|
315
|
+
className: styles.form,
|
|
316
|
+
onSubmit: onSubmit,
|
|
317
|
+
ref: formRef,
|
|
318
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
319
|
+
className: styles.formContent,
|
|
320
|
+
children: [/*#__PURE__*/jsx(ScreenElement, {
|
|
321
|
+
placeholder: "inputText",
|
|
322
|
+
placeholderProps: {
|
|
323
|
+
height: '0.25em'
|
|
324
|
+
},
|
|
325
|
+
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
326
|
+
id: "G/ITGY",
|
|
327
|
+
defaultMessage: [{
|
|
328
|
+
"type": 0,
|
|
329
|
+
"value": "Your name"
|
|
330
|
+
}]
|
|
331
|
+
}),
|
|
332
|
+
emptyClassName: styles.emptyInputName,
|
|
333
|
+
isEmpty: !hasNameLabel,
|
|
334
|
+
children: /*#__PURE__*/jsx(Transitions, {
|
|
335
|
+
transitions: transitions,
|
|
336
|
+
playing: transitionPlaying,
|
|
337
|
+
delay: transitionStagger,
|
|
338
|
+
disabled: transitionDisabled,
|
|
339
|
+
children: /*#__PURE__*/jsx(TextInput, _objectSpread(_objectSpread({
|
|
340
|
+
className: styles.inputName
|
|
341
|
+
}, name), {}, {
|
|
342
|
+
value: userName,
|
|
343
|
+
onChange: function onChange(e) {
|
|
344
|
+
return onNameChange(e);
|
|
345
|
+
},
|
|
346
|
+
onBlur: function onBlur(e) {
|
|
347
|
+
return onNameBlur(e);
|
|
348
|
+
},
|
|
349
|
+
focusable: current && isView,
|
|
350
|
+
disabled: isPreview,
|
|
351
|
+
required: true
|
|
352
|
+
}))
|
|
353
|
+
})
|
|
354
|
+
}), /*#__PURE__*/jsx(ScreenElement, {
|
|
355
|
+
placeholder: "inputText",
|
|
356
|
+
placeholderProps: {
|
|
357
|
+
height: '0.75em'
|
|
358
|
+
},
|
|
359
|
+
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
360
|
+
id: "JAguka",
|
|
361
|
+
defaultMessage: [{
|
|
362
|
+
"type": 0,
|
|
363
|
+
"value": "Your message"
|
|
364
|
+
}]
|
|
365
|
+
}),
|
|
366
|
+
emptyClassName: styles.emptyInputMessage,
|
|
367
|
+
isEmpty: !hasMessageLabel,
|
|
368
|
+
children: /*#__PURE__*/jsx(Transitions, {
|
|
369
|
+
transitions: transitions,
|
|
370
|
+
playing: transitionPlaying,
|
|
371
|
+
delay: transitionStagger * 2,
|
|
372
|
+
disabled: transitionDisabled,
|
|
373
|
+
children: /*#__PURE__*/jsx(TextInput, _objectSpread(_objectSpread({
|
|
374
|
+
className: styles.inputMessage
|
|
375
|
+
}, message), {}, {
|
|
376
|
+
value: userMessage,
|
|
377
|
+
onChange: function onChange(e) {
|
|
378
|
+
return onMessageChange(e);
|
|
379
|
+
},
|
|
380
|
+
onBlur: function onBlur(e) {
|
|
381
|
+
return onMessageBlur(e);
|
|
382
|
+
},
|
|
383
|
+
disabled: isPreview,
|
|
384
|
+
focusable: current && isView,
|
|
385
|
+
multiline: true,
|
|
386
|
+
required: true
|
|
387
|
+
}))
|
|
388
|
+
})
|
|
389
|
+
}), /*#__PURE__*/jsx(ScreenElement, {
|
|
390
|
+
placeholder: "button",
|
|
391
|
+
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
392
|
+
id: "5uH4x7",
|
|
393
|
+
defaultMessage: [{
|
|
394
|
+
"type": 0,
|
|
395
|
+
"value": "Submit"
|
|
396
|
+
}]
|
|
397
|
+
}),
|
|
398
|
+
emptyClassName: styles.emptySubmit,
|
|
399
|
+
isEmpty: !hasSubmit,
|
|
400
|
+
children: /*#__PURE__*/jsx(Transitions, {
|
|
401
|
+
transitions: transitions,
|
|
402
|
+
playing: transitionPlaying,
|
|
403
|
+
delay: transitionStagger * 3,
|
|
404
|
+
disabled: transitionDisabled,
|
|
405
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
406
|
+
type: "submit",
|
|
407
|
+
className: styles.buttonSubmit,
|
|
408
|
+
disabled: isPreview,
|
|
409
|
+
buttonStyle: submit !== null ? submit.buttonStyle : null,
|
|
410
|
+
focusable: current && isView,
|
|
411
|
+
children: /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({}, submit), {}, {
|
|
412
|
+
inline: true
|
|
413
|
+
}))
|
|
414
|
+
})
|
|
415
|
+
})
|
|
416
|
+
})]
|
|
417
|
+
}), /*#__PURE__*/jsx("div", {
|
|
418
|
+
className: styles.formLoading,
|
|
419
|
+
children: /*#__PURE__*/jsx(FontAwesomeIcon, {
|
|
420
|
+
className: styles.loadingIcon,
|
|
421
|
+
icon: faSpinner
|
|
422
|
+
})
|
|
423
|
+
})]
|
|
424
|
+
}), canViewAnswers && !hasSubmitted ? /*#__PURE__*/jsx(ScreenElement, {
|
|
425
|
+
placeholder: "button",
|
|
426
|
+
emptyLabel: submitState !== 4 ? /*#__PURE__*/jsx(FormattedMessage, {
|
|
427
|
+
id: "U2RZp5",
|
|
428
|
+
defaultMessage: [{
|
|
429
|
+
"type": 0,
|
|
430
|
+
"value": "Skip"
|
|
431
|
+
}]
|
|
432
|
+
}) : /*#__PURE__*/jsx(FormattedMessage, {
|
|
433
|
+
id: "AzN1aW",
|
|
434
|
+
defaultMessage: [{
|
|
435
|
+
"type": 0,
|
|
436
|
+
"value": "Back"
|
|
437
|
+
}]
|
|
438
|
+
}),
|
|
439
|
+
emptyClassName: styles.emptySkip,
|
|
440
|
+
children: /*#__PURE__*/jsx(Transitions, {
|
|
441
|
+
transitions: transitions,
|
|
442
|
+
playing: transitionPlaying,
|
|
443
|
+
delay: transitionStagger * 3,
|
|
444
|
+
disabled: transitionDisabled,
|
|
445
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
446
|
+
type: "button",
|
|
447
|
+
className: classNames([styles.buttonSkip, _defineProperty({}, styles.showBack, submitState === 4)]),
|
|
448
|
+
disabled: isPreview,
|
|
449
|
+
onClick: onClickSkip,
|
|
450
|
+
buttonStyle: finalAnswersButton !== null ? finalAnswersButton.buttonStyle : null,
|
|
451
|
+
focusable: current && isView,
|
|
452
|
+
children: /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({}, finalAnswersButton), {}, {
|
|
453
|
+
inline: true
|
|
454
|
+
}))
|
|
455
|
+
})
|
|
456
|
+
})
|
|
457
|
+
}) : null, /*#__PURE__*/jsx("div", {
|
|
458
|
+
className: styles.contributionsContainer,
|
|
459
|
+
"aria-hidden": submitState === 4 ? null : 'true',
|
|
460
|
+
children: /*#__PURE__*/jsx("div", {
|
|
461
|
+
className: styles.contributionsContent,
|
|
462
|
+
children: /*#__PURE__*/jsx("div", {
|
|
463
|
+
className: styles.contributions,
|
|
464
|
+
ref: contributionsRef,
|
|
465
|
+
children: allContributions.map(function (contribution, contributionIndex) {
|
|
466
|
+
var nameInnerStyle = nameStyle !== null ? nameStyle.style || null : null;
|
|
467
|
+
var messageInnerStyle = messageStyle !== null ? messageStyle.style || null : null;
|
|
468
|
+
return /*#__PURE__*/jsxs("div", {
|
|
469
|
+
className: styles.contribution,
|
|
470
|
+
style: nameInnerStyle !== null ? getStyleFromColor(nameInnerStyle.color, 'borderColor') : null,
|
|
471
|
+
children: [/*#__PURE__*/jsx(Heading, {
|
|
472
|
+
className: styles.contributionName,
|
|
473
|
+
body: contribution.name,
|
|
474
|
+
size: 2,
|
|
475
|
+
textStyle: nameInnerStyle
|
|
476
|
+
}), /*#__PURE__*/jsx(Text, {
|
|
477
|
+
className: styles.contributionMessage,
|
|
478
|
+
body: contribution.message,
|
|
479
|
+
textStyle: messageInnerStyle
|
|
480
|
+
})]
|
|
481
|
+
}, "contribution-".concat(contributionIndex));
|
|
482
|
+
})
|
|
483
|
+
})
|
|
484
|
+
})
|
|
485
|
+
}), hasFooter ? /*#__PURE__*/jsx("div", {
|
|
486
|
+
style: {
|
|
487
|
+
height: callToActionHeight
|
|
488
|
+
}
|
|
489
|
+
}) : null]
|
|
490
|
+
}, "form"));
|
|
491
|
+
var headerElement = !isPlaceholder && hasHeader ? /*#__PURE__*/jsx("div", {
|
|
475
492
|
className: styles.header,
|
|
476
493
|
style: {
|
|
477
494
|
paddingBottom: spacing
|
|
478
|
-
}
|
|
479
|
-
|
|
495
|
+
},
|
|
496
|
+
children: /*#__PURE__*/jsx(Header, _objectSpread({}, header))
|
|
497
|
+
}) : null;
|
|
480
498
|
var showReset = isEdit && submitState === 4;
|
|
481
|
-
return /*#__PURE__*/
|
|
499
|
+
return /*#__PURE__*/jsxs("div", {
|
|
482
500
|
className: classNames([styles.container, className, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.isPlaceholder, isPlaceholder), styles.submitting, submitState === 1), styles.submitted, submitState > 1), styles.showContributions, submitState === 4)]),
|
|
483
|
-
"data-screen-ready": true
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
501
|
+
"data-screen-ready": true,
|
|
502
|
+
children: [/*#__PURE__*/jsxs(Container, {
|
|
503
|
+
width: width,
|
|
504
|
+
height: height,
|
|
505
|
+
className: styles.content,
|
|
506
|
+
children: [showReset ? /*#__PURE__*/jsx(Button, {
|
|
507
|
+
className: styles.reset,
|
|
508
|
+
icon: /*#__PURE__*/jsx(FontAwesomeIcon, {
|
|
509
|
+
icon: faRedo,
|
|
510
|
+
size: "md"
|
|
511
|
+
}),
|
|
512
|
+
onClick: onContributionReset
|
|
513
|
+
}) : null, /*#__PURE__*/jsxs("div", {
|
|
514
|
+
className: styles.inner,
|
|
515
|
+
children: [/*#__PURE__*/jsx(Scroll, {
|
|
516
|
+
verticalAlign: layout,
|
|
517
|
+
disabled: scrollingDisabled,
|
|
518
|
+
onScrolledTrigger: onScrolledTrigger,
|
|
519
|
+
onScrolledBottom: onScrolledBottom,
|
|
520
|
+
onScrolledNotBottom: onScrolledNotBottom,
|
|
521
|
+
scrolleeClassName: styles.scrollee,
|
|
522
|
+
withShadow: true,
|
|
523
|
+
children: /*#__PURE__*/jsxs(Layout, {
|
|
524
|
+
className: styles.layout,
|
|
525
|
+
style: !isPlaceholder ? {
|
|
526
|
+
padding: spacing,
|
|
527
|
+
paddingTop: hasHeader ? spacing / 2 + (!isPreview ? viewerTopHeight : 0) : spacing / 2,
|
|
528
|
+
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing / 2
|
|
529
|
+
} : null,
|
|
530
|
+
children: [headerElement, items]
|
|
531
|
+
})
|
|
532
|
+
}), !isPlaceholder && hasFooter ? /*#__PURE__*/jsx("div", {
|
|
533
|
+
ref: footerRef,
|
|
534
|
+
className: classNames([styles.footer, _defineProperty({}, styles.disabled, !swipeUpLinkActive)]),
|
|
535
|
+
style: {
|
|
536
|
+
paddingLeft: Math.max(viewerBottomSidesWidth, spacing / 2),
|
|
537
|
+
paddingRight: Math.max(viewerBottomSidesWidth, spacing / 2),
|
|
538
|
+
paddingTop: 0,
|
|
539
|
+
paddingBottom: (!isPreview ? viewerBottomHeight : 0) + spacing / 2
|
|
540
|
+
},
|
|
541
|
+
children: /*#__PURE__*/jsx(Footer, _objectSpread({}, footerProps))
|
|
542
|
+
}) : null]
|
|
543
|
+
})]
|
|
544
|
+
}), !isPlaceholder ? /*#__PURE__*/jsx(Background, {
|
|
545
|
+
background: background,
|
|
546
|
+
width: width,
|
|
547
|
+
height: height,
|
|
548
|
+
resolution: resolution,
|
|
549
|
+
playing: backgroundPlaying,
|
|
550
|
+
muted: muted,
|
|
551
|
+
shouldLoad: mediaShouldLoad,
|
|
552
|
+
mediaRef: mediaRef,
|
|
553
|
+
withoutVideo: isPreview,
|
|
554
|
+
className: styles.background
|
|
555
|
+
}) : null]
|
|
556
|
+
});
|
|
533
557
|
}
|
|
534
558
|
|
|
535
559
|
var definition = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-contribution",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.50",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -64,20 +64,20 @@
|
|
|
64
64
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
65
65
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
66
66
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
67
|
-
"@micromag/core": "^0.4.
|
|
68
|
-
"@micromag/data": "^0.4.
|
|
69
|
-
"@micromag/element-background": "^0.4.
|
|
70
|
-
"@micromag/element-button": "^0.4.
|
|
71
|
-
"@micromag/element-container": "^0.4.
|
|
72
|
-
"@micromag/element-footer": "^0.4.
|
|
73
|
-
"@micromag/element-header": "^0.4.
|
|
74
|
-
"@micromag/element-heading": "^0.4.
|
|
75
|
-
"@micromag/element-layout": "^0.4.
|
|
76
|
-
"@micromag/element-scroll": "^0.4.
|
|
77
|
-
"@micromag/element-share-incentive": "^0.4.
|
|
78
|
-
"@micromag/element-text": "^0.4.
|
|
79
|
-
"@micromag/element-text-input": "^0.4.
|
|
80
|
-
"@micromag/transforms": "^0.4.
|
|
67
|
+
"@micromag/core": "^0.4.50",
|
|
68
|
+
"@micromag/data": "^0.4.50",
|
|
69
|
+
"@micromag/element-background": "^0.4.50",
|
|
70
|
+
"@micromag/element-button": "^0.4.50",
|
|
71
|
+
"@micromag/element-container": "^0.4.50",
|
|
72
|
+
"@micromag/element-footer": "^0.4.50",
|
|
73
|
+
"@micromag/element-header": "^0.4.50",
|
|
74
|
+
"@micromag/element-heading": "^0.4.50",
|
|
75
|
+
"@micromag/element-layout": "^0.4.50",
|
|
76
|
+
"@micromag/element-scroll": "^0.4.50",
|
|
77
|
+
"@micromag/element-share-incentive": "^0.4.50",
|
|
78
|
+
"@micromag/element-text": "^0.4.50",
|
|
79
|
+
"@micromag/element-text-input": "^0.4.50",
|
|
80
|
+
"@micromag/transforms": "^0.4.50",
|
|
81
81
|
"classnames": "^2.2.6",
|
|
82
82
|
"dompurify": "^3.2.6",
|
|
83
83
|
"lodash": "^4.17.23",
|
|
@@ -88,6 +88,6 @@
|
|
|
88
88
|
"access": "public",
|
|
89
89
|
"registry": "https://registry.npmjs.org/"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "940d5ca98f8f448b79eaa3e2fa685c3ee95185b8",
|
|
92
92
|
"types": "es/index.d.ts"
|
|
93
93
|
}
|