@storybook/components 6.5.0-alpha.1 → 6.5.0-alpha.5

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.
@@ -29,6 +29,8 @@ exports.StorySkeleton = exports.Story = exports.StoryError = void 0;
29
29
 
30
30
  require("core-js/modules/es.array.concat.js");
31
31
 
32
+ var _global = _interopRequireDefault(require("global"));
33
+
32
34
  var _react = _interopRequireWildcard(require("react"));
33
35
 
34
36
  var _IFrame = require("./IFrame");
@@ -43,11 +45,14 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
43
45
 
44
46
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
45
47
 
48
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
49
+
46
50
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
47
51
 
48
52
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
49
53
 
50
- var BASE_URL = 'iframe.html';
54
+ var PREVIEW_URL = _global.default.PREVIEW_URL;
55
+ var BASE_URL = PREVIEW_URL || 'iframe.html';
51
56
  var StoryError;
52
57
  /** error message for Story with null storyFn
53
58
  * if the story id exists, it must be pointing to a non-existing story
@@ -5,12 +5,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
5
5
  import "core-js/modules/es.array.concat.js";
6
6
  import "core-js/modules/es.object.keys.js";
7
7
  import "core-js/modules/es.symbol.js";
8
+ import global from 'global';
8
9
  import React, { createElement, Fragment } from 'react';
9
10
  import { IFrame } from './IFrame';
10
11
  import { EmptyBlock } from './EmptyBlock';
11
12
  import { ZoomContext } from './ZoomContext';
12
13
  import { Loader } from '..';
13
- var BASE_URL = 'iframe.html';
14
+ var PREVIEW_URL = global.PREVIEW_URL;
15
+ var BASE_URL = PREVIEW_URL || 'iframe.html';
14
16
  export var StoryError;
15
17
  /** error message for Story with null storyFn
16
18
  * if the story id exists, it must be pointing to a non-existing story
@@ -1,11 +1,15 @@
1
1
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
2
 
3
+ import global from 'global';
3
4
  import React, { createElement, Fragment } from 'react';
4
5
  import { IFrame } from './IFrame';
5
6
  import { EmptyBlock } from './EmptyBlock';
6
7
  import { ZoomContext } from './ZoomContext';
7
8
  import { Loader } from '..';
8
- const BASE_URL = 'iframe.html';
9
+ const {
10
+ PREVIEW_URL
11
+ } = global;
12
+ const BASE_URL = PREVIEW_URL || 'iframe.html';
9
13
  export let StoryError;
10
14
  /** error message for Story with null storyFn
11
15
  * if the story id exists, it must be pointing to a non-existing story
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/components",
3
- "version": "6.5.0-alpha.1",
3
+ "version": "6.5.0-alpha.5",
4
4
  "description": "Core Storybook Components",
5
5
  "keywords": [
6
6
  "storybook"
@@ -41,9 +41,9 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@popperjs/core": "^2.6.0",
44
- "@storybook/client-logger": "6.5.0-alpha.1",
44
+ "@storybook/client-logger": "6.5.0-alpha.5",
45
45
  "@storybook/csf": "0.0.2--canary.87bc651.0",
46
- "@storybook/theming": "6.5.0-alpha.1",
46
+ "@storybook/theming": "6.5.0-alpha.5",
47
47
  "@types/color-convert": "^2.0.0",
48
48
  "@types/overlayscrollbars": "^1.12.0",
49
49
  "@types/react-syntax-highlighter": "11.0.5",
@@ -51,7 +51,7 @@
51
51
  "core-js": "^3.8.2",
52
52
  "fast-deep-equal": "^3.1.3",
53
53
  "global": "^4.4.0",
54
- "lodash": "^4.17.20",
54
+ "lodash": "^4.17.21",
55
55
  "markdown-to-jsx": "^7.1.3",
56
56
  "memoizerific": "^1.11.3",
57
57
  "overlayscrollbars": "^1.13.1",
@@ -76,6 +76,6 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "fbf6e247a099ec45c30f8594f255a088847b7957",
79
+ "gitHead": "df18f2ad3794d61c59c6458f66f73635502b8963",
80
80
  "sbmodern": "dist/modern/index.js"
81
81
  }