@micromag/core 0.3.531 → 0.3.547
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/vendor.css +1 -1
- package/es/components.js +27 -30
- package/package.json +3 -4
- package/lib/components.js +0 -5370
- package/lib/contexts.js +0 -1848
- package/lib/hooks.js +0 -2402
- package/lib/index.js +0 -2387
- package/lib/utils.js +0 -1409
package/es/components.js
CHANGED
|
@@ -1799,7 +1799,6 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1799
1799
|
};
|
|
1800
1800
|
ElementPortal.propTypes = propTypes$t;
|
|
1801
1801
|
ElementPortal.defaultProps = defaultProps$t;
|
|
1802
|
-
var ElementPortal$1 = ElementPortal;
|
|
1803
1802
|
|
|
1804
1803
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1805
1804
|
var propTypes$s = {
|
|
@@ -1823,7 +1822,7 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1823
1822
|
register = _useModals$register === void 0 ? null : _useModals$register,
|
|
1824
1823
|
_useModals$unregister = _useModals.unregister,
|
|
1825
1824
|
unregister = _useModals$unregister === void 0 ? null : _useModals$unregister;
|
|
1826
|
-
return /*#__PURE__*/React.createElement(ElementPortal
|
|
1825
|
+
return /*#__PURE__*/React.createElement(ElementPortal, {
|
|
1827
1826
|
id: id,
|
|
1828
1827
|
data: data,
|
|
1829
1828
|
container: container,
|
|
@@ -1994,7 +1993,7 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
1994
1993
|
if (panels === null) {
|
|
1995
1994
|
return children;
|
|
1996
1995
|
}
|
|
1997
|
-
return /*#__PURE__*/React.createElement(ElementPortal
|
|
1996
|
+
return /*#__PURE__*/React.createElement(ElementPortal, {
|
|
1998
1997
|
id: id,
|
|
1999
1998
|
data: data,
|
|
2000
1999
|
container: container,
|
|
@@ -2302,7 +2301,6 @@ var PlaceholderBlock = function PlaceholderBlock(_ref) {
|
|
|
2302
2301
|
};
|
|
2303
2302
|
PlaceholderBlock.propTypes = propTypes$i;
|
|
2304
2303
|
PlaceholderBlock.defaultProps = defaultProps$i;
|
|
2305
|
-
var PlaceholderBlock$1 = PlaceholderBlock;
|
|
2306
2304
|
|
|
2307
2305
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
2308
2306
|
|
|
@@ -2337,7 +2335,7 @@ var ElementComponent = function ElementComponent(_ref) {
|
|
|
2337
2335
|
if (isPlaceholder) {
|
|
2338
2336
|
// TODO: figure out what this did
|
|
2339
2337
|
// const PlaceholderComponent = Placeholders[pascalCase(name)];
|
|
2340
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
2338
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, placeholderProps);
|
|
2341
2339
|
}
|
|
2342
2340
|
var RealComponent = components[pascalCase(name)];
|
|
2343
2341
|
if (!RealComponent) {
|
|
@@ -3316,7 +3314,7 @@ var AdFrame = function AdFrame(_ref) {
|
|
|
3316
3314
|
var width = _ref.width,
|
|
3317
3315
|
height = _ref.height,
|
|
3318
3316
|
className = _ref.className;
|
|
3319
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3317
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3320
3318
|
width: width,
|
|
3321
3319
|
height: height,
|
|
3322
3320
|
className: className
|
|
@@ -3332,7 +3330,7 @@ var AdImage = function AdImage(_ref) {
|
|
|
3332
3330
|
var width = _ref.width,
|
|
3333
3331
|
height = _ref.height,
|
|
3334
3332
|
className = _ref.className;
|
|
3335
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3333
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3336
3334
|
width: width,
|
|
3337
3335
|
height: height,
|
|
3338
3336
|
className: className
|
|
@@ -3350,7 +3348,7 @@ var Audio = function Audio(_ref) {
|
|
|
3350
3348
|
_ref$height = _ref.height,
|
|
3351
3349
|
height = _ref$height === void 0 ? '2em' : _ref$height,
|
|
3352
3350
|
className = _ref.className;
|
|
3353
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3351
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3354
3352
|
width: width,
|
|
3355
3353
|
height: height,
|
|
3356
3354
|
className: className
|
|
@@ -3408,7 +3406,6 @@ var PlaceholderText = function PlaceholderText(_ref) {
|
|
|
3408
3406
|
};
|
|
3409
3407
|
PlaceholderText.propTypes = propTypes$b;
|
|
3410
3408
|
PlaceholderText.defaultProps = defaultProps$b;
|
|
3411
|
-
var PlaceholderText$1 = PlaceholderText;
|
|
3412
3409
|
|
|
3413
3410
|
/* eslint-disable react/destructuring-assignment, react/prop-types */
|
|
3414
3411
|
var Button = function Button(_ref) {
|
|
@@ -3417,12 +3414,12 @@ var Button = function Button(_ref) {
|
|
|
3417
3414
|
_ref$height = _ref.height,
|
|
3418
3415
|
height = _ref$height === void 0 ? '0.4em' : _ref$height,
|
|
3419
3416
|
className = _ref.className;
|
|
3420
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3417
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3421
3418
|
outline: true,
|
|
3422
3419
|
width: width,
|
|
3423
3420
|
height: height,
|
|
3424
3421
|
className: className
|
|
3425
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText
|
|
3422
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
3426
3423
|
line: 1,
|
|
3427
3424
|
height: "0.1em"
|
|
3428
3425
|
}));
|
|
@@ -3435,7 +3432,7 @@ var Image = function Image(_ref) {
|
|
|
3435
3432
|
height = _ref.height,
|
|
3436
3433
|
className = _ref.className,
|
|
3437
3434
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
3438
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3435
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3439
3436
|
width: width,
|
|
3440
3437
|
height: height,
|
|
3441
3438
|
className: className
|
|
@@ -3448,7 +3445,7 @@ var Image$1 = Image;
|
|
|
3448
3445
|
|
|
3449
3446
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3450
3447
|
var Line = function Line(props) {
|
|
3451
|
-
return /*#__PURE__*/React.createElement(PlaceholderText
|
|
3448
|
+
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3452
3449
|
className: classNames([props.className, styles$d.shortText]),
|
|
3453
3450
|
height: 0.2,
|
|
3454
3451
|
lines: 1
|
|
@@ -3459,7 +3456,7 @@ var Line$1 = Line;
|
|
|
3459
3456
|
var styles$b = {"container":"micromag-core-placeholders-map-container","icon":"micromag-core-placeholders-map-icon"};
|
|
3460
3457
|
|
|
3461
3458
|
var Map = function Map(props) {
|
|
3462
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3459
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3463
3460
|
width: "100%",
|
|
3464
3461
|
height: "100%",
|
|
3465
3462
|
className: classNames([styles$b.container, _defineProperty({}, props.className, props.className !== null)])
|
|
@@ -3481,7 +3478,7 @@ var Map$1 = Map;
|
|
|
3481
3478
|
|
|
3482
3479
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3483
3480
|
var MapPath = function MapPath(props) {
|
|
3484
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3481
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3485
3482
|
width: "100%",
|
|
3486
3483
|
height: "70%",
|
|
3487
3484
|
className: classNames([props.className, styles$d.mapPath])
|
|
@@ -3495,7 +3492,7 @@ var MapPath$1 = MapPath;
|
|
|
3495
3492
|
|
|
3496
3493
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3497
3494
|
var Quote = function Quote(props) {
|
|
3498
|
-
return /*#__PURE__*/React.createElement(PlaceholderText
|
|
3495
|
+
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3499
3496
|
className: classNames([props.className, styles$d.subtitle]),
|
|
3500
3497
|
height: 0.5,
|
|
3501
3498
|
lines: 6
|
|
@@ -3505,7 +3502,7 @@ var Quote$1 = Quote;
|
|
|
3505
3502
|
|
|
3506
3503
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3507
3504
|
var ShortText = function ShortText(props) {
|
|
3508
|
-
return /*#__PURE__*/React.createElement(PlaceholderText
|
|
3505
|
+
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3509
3506
|
className: classNames([props.className, styles$d.shortText]),
|
|
3510
3507
|
height: 0.2,
|
|
3511
3508
|
lines: 2
|
|
@@ -3515,7 +3512,7 @@ var ShortText$1 = ShortText;
|
|
|
3515
3512
|
|
|
3516
3513
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3517
3514
|
var Subtitle = function Subtitle(props) {
|
|
3518
|
-
return /*#__PURE__*/React.createElement(PlaceholderText
|
|
3515
|
+
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3519
3516
|
className: classNames([props.className, styles$d.subtitle]),
|
|
3520
3517
|
height: 0.3,
|
|
3521
3518
|
lines: 1
|
|
@@ -3533,7 +3530,7 @@ var TextPlaceholder = function TextPlaceholder(props) {
|
|
|
3533
3530
|
lines = _props$lines === void 0 ? 4 : _props$lines,
|
|
3534
3531
|
_props$lineMargin = props.lineMargin,
|
|
3535
3532
|
lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
|
|
3536
|
-
return /*#__PURE__*/React.createElement(PlaceholderText
|
|
3533
|
+
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3537
3534
|
height: height,
|
|
3538
3535
|
lines: lines,
|
|
3539
3536
|
lineMargin: lineMargin,
|
|
@@ -3544,7 +3541,7 @@ var TextPlaceholder$1 = TextPlaceholder;
|
|
|
3544
3541
|
|
|
3545
3542
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3546
3543
|
var Timeline = function Timeline(props) {
|
|
3547
|
-
return /*#__PURE__*/React.createElement(PlaceholderText
|
|
3544
|
+
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3548
3545
|
className: classNames([props.className, styles$d.timeline])
|
|
3549
3546
|
}));
|
|
3550
3547
|
};
|
|
@@ -3558,7 +3555,7 @@ var Title$2 = function Title(props) {
|
|
|
3558
3555
|
lines = _props$lines === void 0 ? 2 : _props$lines,
|
|
3559
3556
|
_props$lineMargin = props.lineMargin,
|
|
3560
3557
|
lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
|
|
3561
|
-
return /*#__PURE__*/React.createElement(PlaceholderText
|
|
3558
|
+
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3562
3559
|
className: classNames([props.className, styles$d.title]),
|
|
3563
3560
|
height: height,
|
|
3564
3561
|
lines: lines,
|
|
@@ -3572,7 +3569,7 @@ var Video = function Video(_ref) {
|
|
|
3572
3569
|
var width = _ref.width,
|
|
3573
3570
|
height = _ref.height,
|
|
3574
3571
|
className = _ref.className;
|
|
3575
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3572
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3576
3573
|
width: width,
|
|
3577
3574
|
height: height,
|
|
3578
3575
|
className: className
|
|
@@ -3589,7 +3586,7 @@ var Video360 = function Video360(_ref) {
|
|
|
3589
3586
|
var width = _ref.width,
|
|
3590
3587
|
height = _ref.height,
|
|
3591
3588
|
className = _ref.className;
|
|
3592
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3589
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3593
3590
|
width: width,
|
|
3594
3591
|
height: height,
|
|
3595
3592
|
className: classNames([styles$a.container, _defineProperty({}, className, className !== null)]),
|
|
@@ -3608,7 +3605,7 @@ var VideoLoop = function VideoLoop(_ref) {
|
|
|
3608
3605
|
var width = _ref.width,
|
|
3609
3606
|
height = _ref.height,
|
|
3610
3607
|
className = _ref.className;
|
|
3611
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3608
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3612
3609
|
width: width,
|
|
3613
3610
|
height: height,
|
|
3614
3611
|
className: className
|
|
@@ -3923,7 +3920,7 @@ var InputText = function InputText(_ref) {
|
|
|
3923
3920
|
_ref$height = _ref.height,
|
|
3924
3921
|
height = _ref$height === void 0 ? '0.5em' : _ref$height,
|
|
3925
3922
|
className = _ref.className;
|
|
3926
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3923
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3927
3924
|
outline: true,
|
|
3928
3925
|
width: width,
|
|
3929
3926
|
height: height,
|
|
@@ -3949,12 +3946,12 @@ var Answer$2 = function Answer(_ref) {
|
|
|
3949
3946
|
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
3950
3947
|
className: styles$4.answerIcon,
|
|
3951
3948
|
icon: good ? faCheck : faTimes
|
|
3952
|
-
})), /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3949
|
+
})), /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3953
3950
|
outline: true,
|
|
3954
3951
|
width: width,
|
|
3955
3952
|
height: height,
|
|
3956
3953
|
className: styles$4.block
|
|
3957
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText
|
|
3954
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
3958
3955
|
line: 1,
|
|
3959
3956
|
height: "0.2em"
|
|
3960
3957
|
})));
|
|
@@ -3964,7 +3961,7 @@ var Answer$3 = Answer$2;
|
|
|
3964
3961
|
var styles$3 = {"container":"micromag-core-placeholders-share-options-container","box":"micromag-core-placeholders-share-options-box","icon":"micromag-core-placeholders-share-options-icon","item":"micromag-core-placeholders-share-options-item","button":"micromag-core-placeholders-share-options-button"};
|
|
3965
3962
|
|
|
3966
3963
|
var Title = function Title(props) {
|
|
3967
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3964
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3968
3965
|
width: "100%",
|
|
3969
3966
|
height: "100%",
|
|
3970
3967
|
className: classNames([styles$3.container, _defineProperty({}, props.className, props.className !== null)]),
|
|
@@ -3998,12 +3995,12 @@ var Answer = function Answer(_ref) {
|
|
|
3998
3995
|
className = _ref.className;
|
|
3999
3996
|
return /*#__PURE__*/React.createElement("div", {
|
|
4000
3997
|
className: classNames([styles$2.container, _defineProperty({}, className, className !== null)])
|
|
4001
|
-
}, /*#__PURE__*/React.createElement(PlaceholderBlock
|
|
3998
|
+
}, /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
4002
3999
|
outline: true,
|
|
4003
4000
|
width: width,
|
|
4004
4001
|
height: height,
|
|
4005
4002
|
className: styles$2.block
|
|
4006
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText
|
|
4003
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
4007
4004
|
line: 1,
|
|
4008
4005
|
height: "0.2em"
|
|
4009
4006
|
})), /*#__PURE__*/React.createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.547",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -30,12 +30,11 @@
|
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"license": "ISC",
|
|
33
|
-
"
|
|
33
|
+
"type": "module",
|
|
34
34
|
"module": "es/index.js",
|
|
35
35
|
"style": "assets/css/styles.css",
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|
|
38
|
-
"require": "./lib/index.js",
|
|
39
38
|
"import": "./es/index.js"
|
|
40
39
|
},
|
|
41
40
|
"./components": {
|
|
@@ -145,5 +144,5 @@
|
|
|
145
144
|
"access": "public",
|
|
146
145
|
"registry": "https://registry.npmjs.org/"
|
|
147
146
|
},
|
|
148
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "3c2f5904ce61fcfa61f673c38c2a5ec56e9e2b07"
|
|
149
148
|
}
|