@micromag/viewer 0.3.310 → 0.3.311
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 +7 -2
- package/lib/index.js +7 -2
- package/package.json +10 -10
package/es/index.js
CHANGED
|
@@ -3204,9 +3204,10 @@ var defaultRoutes = {
|
|
|
3204
3204
|
screen: screen
|
|
3205
3205
|
};
|
|
3206
3206
|
|
|
3207
|
-
var _excluded = ["story", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "trackingVariables", "locale", "locales", "translations", "pathWithIndex"];
|
|
3207
|
+
var _excluded = ["story", "paused", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "trackingVariables", "locale", "locales", "translations", "pathWithIndex"];
|
|
3208
3208
|
var propTypes = {
|
|
3209
3209
|
story: PropTypes$1.story,
|
|
3210
|
+
paused: PropTypes.bool,
|
|
3210
3211
|
screen: PropTypes.string,
|
|
3211
3212
|
screenComponents: PropTypes.objectOf(PropTypes.elementType),
|
|
3212
3213
|
memoryRouter: PropTypes.bool,
|
|
@@ -3224,6 +3225,7 @@ var propTypes = {
|
|
|
3224
3225
|
};
|
|
3225
3226
|
var defaultProps = {
|
|
3226
3227
|
story: null,
|
|
3228
|
+
paused: false,
|
|
3227
3229
|
screen: null,
|
|
3228
3230
|
screenComponents: null,
|
|
3229
3231
|
memoryRouter: false,
|
|
@@ -3242,6 +3244,7 @@ var defaultProps = {
|
|
|
3242
3244
|
|
|
3243
3245
|
var ViewerContainer = function ViewerContainer(_ref) {
|
|
3244
3246
|
var story = _ref.story,
|
|
3247
|
+
paused = _ref.paused,
|
|
3245
3248
|
screenComponents = _ref.screenComponents,
|
|
3246
3249
|
memoryRouter = _ref.memoryRouter,
|
|
3247
3250
|
basePath = _ref.basePath,
|
|
@@ -3300,7 +3303,9 @@ var ViewerContainer = function ViewerContainer(_ref) {
|
|
|
3300
3303
|
components: screenComponents || {}
|
|
3301
3304
|
}, /*#__PURE__*/React.createElement(VisitorProvider, {
|
|
3302
3305
|
visitor: visitor
|
|
3303
|
-
}, /*#__PURE__*/React.createElement(PlaybackProvider,
|
|
3306
|
+
}, /*#__PURE__*/React.createElement(PlaybackProvider, {
|
|
3307
|
+
paused: paused
|
|
3308
|
+
}, /*#__PURE__*/React.createElement(TrackingProvider, {
|
|
3304
3309
|
variables: finalTrackingVariables
|
|
3305
3310
|
}, withoutRouter ? /*#__PURE__*/React.createElement(Viewer, Object.assign({
|
|
3306
3311
|
story: story,
|
package/lib/index.js
CHANGED
|
@@ -3224,9 +3224,10 @@ var defaultRoutes = {
|
|
|
3224
3224
|
screen: screen
|
|
3225
3225
|
};
|
|
3226
3226
|
|
|
3227
|
-
var _excluded = ["story", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "trackingVariables", "locale", "locales", "translations", "pathWithIndex"];
|
|
3227
|
+
var _excluded = ["story", "paused", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "trackingVariables", "locale", "locales", "translations", "pathWithIndex"];
|
|
3228
3228
|
var propTypes = {
|
|
3229
3229
|
story: core.PropTypes.story,
|
|
3230
|
+
paused: PropTypes__default["default"].bool,
|
|
3230
3231
|
screen: PropTypes__default["default"].string,
|
|
3231
3232
|
screenComponents: PropTypes__default["default"].objectOf(PropTypes__default["default"].elementType),
|
|
3232
3233
|
memoryRouter: PropTypes__default["default"].bool,
|
|
@@ -3244,6 +3245,7 @@ var propTypes = {
|
|
|
3244
3245
|
};
|
|
3245
3246
|
var defaultProps = {
|
|
3246
3247
|
story: null,
|
|
3248
|
+
paused: false,
|
|
3247
3249
|
screen: null,
|
|
3248
3250
|
screenComponents: null,
|
|
3249
3251
|
memoryRouter: false,
|
|
@@ -3262,6 +3264,7 @@ var defaultProps = {
|
|
|
3262
3264
|
|
|
3263
3265
|
var ViewerContainer = function ViewerContainer(_ref) {
|
|
3264
3266
|
var story = _ref.story,
|
|
3267
|
+
paused = _ref.paused,
|
|
3265
3268
|
screenComponents = _ref.screenComponents,
|
|
3266
3269
|
memoryRouter = _ref.memoryRouter,
|
|
3267
3270
|
basePath = _ref.basePath,
|
|
@@ -3320,7 +3323,9 @@ var ViewerContainer = function ViewerContainer(_ref) {
|
|
|
3320
3323
|
components: screenComponents || {}
|
|
3321
3324
|
}, /*#__PURE__*/React__default["default"].createElement(contexts.VisitorProvider, {
|
|
3322
3325
|
visitor: visitor
|
|
3323
|
-
}, /*#__PURE__*/React__default["default"].createElement(contexts.PlaybackProvider,
|
|
3326
|
+
}, /*#__PURE__*/React__default["default"].createElement(contexts.PlaybackProvider, {
|
|
3327
|
+
paused: paused
|
|
3328
|
+
}, /*#__PURE__*/React__default["default"].createElement(contexts.TrackingProvider, {
|
|
3324
3329
|
variables: finalTrackingVariables
|
|
3325
3330
|
}, withoutRouter ? /*#__PURE__*/React__default["default"].createElement(Viewer, Object.assign({
|
|
3326
3331
|
story: story,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.311",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
60
60
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
61
61
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
62
|
-
"@micromag/core": "^0.3.
|
|
63
|
-
"@micromag/element-scroll": "^0.3.
|
|
64
|
-
"@micromag/element-share-options": "^0.3.
|
|
65
|
-
"@micromag/element-webview": "^0.3.
|
|
66
|
-
"@micromag/elements": "^0.3.
|
|
67
|
-
"@micromag/fields": "^0.3.
|
|
68
|
-
"@micromag/intl": "^0.3.
|
|
69
|
-
"@micromag/screens": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.311",
|
|
63
|
+
"@micromag/element-scroll": "^0.3.311",
|
|
64
|
+
"@micromag/element-share-options": "^0.3.311",
|
|
65
|
+
"@micromag/element-webview": "^0.3.311",
|
|
66
|
+
"@micromag/elements": "^0.3.311",
|
|
67
|
+
"@micromag/fields": "^0.3.311",
|
|
68
|
+
"@micromag/intl": "^0.3.311",
|
|
69
|
+
"@micromag/screens": "^0.3.311",
|
|
70
70
|
"@react-spring/core": "^9.1.1",
|
|
71
71
|
"@react-spring/web": "^9.1.1",
|
|
72
72
|
"@use-gesture/react": "^10.2.4",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "fab297a7ad204611597c749b969f14d992d35d47"
|
|
89
89
|
}
|