@newhighsco/storybook-preset 6.3.3 → 6.3.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.
@@ -16,5 +16,4 @@ var DocsContainer = function DocsContainer(props) {
16
16
  theme: dark ? _theming.themes.dark : _theming.themes.light
17
17
  }));
18
18
  };
19
- var _default = DocsContainer;
20
- exports["default"] = _default;
19
+ var _default = exports["default"] = DocsContainer;
@@ -10,8 +10,8 @@ var _theming = require("@storybook/theming");
10
10
  var _propTypes = require("prop-types");
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _storybookDarkMode = require("storybook-dark-mode");
13
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
15
  var DocsPage = function DocsPage(_ref) {
16
16
  var _stories;
17
17
  var _ref$theme = _ref.theme,
@@ -56,5 +56,4 @@ var DocsPage = function DocsPage(_ref) {
56
56
  DocsPage.propTypes = {
57
57
  theme: _propTypes.object
58
58
  };
59
- var _default = (0, _theming.withTheme)(DocsPage);
60
- exports["default"] = _default;
59
+ var _default = exports["default"] = (0, _theming.withTheme)(DocsPage);
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
21
21
  /** @typedef { import('@storybook/react-webpack5').StorybookConfig } StorybookConfig */
22
22
 
23
23
  /** @type { StorybookConfig['addons'] } */
24
- var addons = ['@storybook/addon-actions', '@storybook/addon-backgrounds', '@storybook/addon-docs', '@storybook/addon-links', {
24
+ var addons = exports.addons = ['@storybook/addon-actions', '@storybook/addon-backgrounds', '@storybook/addon-docs', '@storybook/addon-links', {
25
25
  name: '@storybook/addon-styling-webpack',
26
26
  options: {
27
27
  rules: [(0, _loaders.cssLoaders)(), (0, _loaders.cssLoaders)(/\.s[ac]ss$/, [{
@@ -39,17 +39,14 @@ var addons = ['@storybook/addon-actions', '@storybook/addon-backgrounds', '@stor
39
39
  }];
40
40
 
41
41
  /** @type { StorybookConfig['core'] } */
42
- exports.addons = addons;
43
- var core = function core(config) {
42
+ var core = exports.core = function core(config) {
44
43
  return _objectSpread(_objectSpread({}, config), {}, {
45
44
  disableTelemetry: true
46
45
  });
47
46
  };
48
47
 
49
48
  /** @type { StorybookConfig['previewAnnotations'] } */
50
- exports.core = core;
51
- var previewAnnotations = function previewAnnotations() {
49
+ var previewAnnotations = exports.previewAnnotations = function previewAnnotations() {
52
50
  var entry = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
53
51
  return [].concat(_toConsumableArray(entry), [(0, _path.resolve)(__dirname, './preview')]);
54
- };
55
- exports.previewAnnotations = previewAnnotations;
52
+ };
package/dist/loaders.js CHANGED
@@ -14,7 +14,7 @@ var filter = function filter(url) {
14
14
  if (url.startsWith('/')) return false;
15
15
  return true;
16
16
  };
17
- var cssLoaders = function cssLoaders() {
17
+ var cssLoaders = exports.cssLoaders = function cssLoaders() {
18
18
  var test = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : /\.css$/;
19
19
  var importLoaders = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
20
20
  importLoaders = [{
@@ -42,5 +42,4 @@ var cssLoaders = function cssLoaders() {
42
42
  }
43
43
  }].concat(_toConsumableArray(importLoaders))
44
44
  };
45
- };
46
- exports.cssLoaders = cssLoaders;
45
+ };
package/dist/preview.js CHANGED
@@ -27,5 +27,4 @@ var preview = {
27
27
  viewMode: 'docs'
28
28
  }
29
29
  };
30
- var _default = preview;
31
- exports["default"] = _default;
30
+ var _default = exports["default"] = preview;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newhighsco/storybook-preset",
3
3
  "description": "New High Score shareable Storybook preset",
4
- "version": "6.3.3",
4
+ "version": "6.3.5",
5
5
  "author": "New High Score <hello@newhighsco.re>",
6
6
  "license": "ISC",
7
7
  "private": false,
@@ -31,12 +31,12 @@
31
31
  "@storybook/addon-backgrounds": "7.4.4",
32
32
  "@storybook/addon-docs": "7.4.4",
33
33
  "@storybook/addon-links": "7.4.4",
34
- "@storybook/addon-styling-webpack": "0.0.4",
34
+ "@storybook/addon-styling-webpack": "0.0.5",
35
35
  "@storybook/addons": "7.4.4",
36
36
  "css-loader": "6.8.1",
37
- "postcss": "8.4.30",
37
+ "postcss": "8.4.31",
38
38
  "postcss-loader": "7.3.3",
39
- "sass": "1.68.0",
39
+ "sass": "1.69.3",
40
40
  "sass-loader": "13.3.2",
41
41
  "storybook-dark-mode": "3.0.1",
42
42
  "style-loader": "3.3.3"