@storybook/web-components 6.4.0-beta.3 → 6.4.0-beta.30

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.
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.webpack = webpack;
7
+ exports.config = void 0;
8
+
9
+ var _coreCommon = require("@storybook/core-common");
7
10
 
8
11
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
9
12
 
@@ -11,7 +14,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
11
14
 
12
15
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
16
 
14
- // eslint-disable-next-line import/no-extraneous-dependencies
15
17
  function webpack(config, options) {
16
18
  var _options$features;
17
19
 
@@ -35,4 +37,10 @@ function webpack(config, options) {
35
37
  }
36
38
  });
37
39
  return config;
38
- }
40
+ }
41
+
42
+ var config = function (entry = []) {
43
+ return [...entry, (0, _coreCommon.findDistEsm)(__dirname, 'client/preview/config')];
44
+ };
45
+
46
+ exports.config = config;
@@ -5,6 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  // eslint-disable-next-line import/no-extraneous-dependencies
8
+ import { findDistEsm } from '@storybook/core-common';
8
9
  export function webpack(config, options) {
9
10
  var _options$features;
10
11
 
@@ -28,4 +29,7 @@ export function webpack(config, options) {
28
29
  }
29
30
  });
30
31
  return config;
31
- }
32
+ }
33
+ export var config = function (entry = []) {
34
+ return [...entry, findDistEsm(__dirname, 'client/preview/config')];
35
+ };
@@ -5,6 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  // eslint-disable-next-line import/no-extraneous-dependencies
8
+ import { findDistEsm } from '@storybook/core-common';
8
9
  export function webpack(config, options) {
9
10
  var _options$features;
10
11
 
@@ -28,4 +29,7 @@ export function webpack(config, options) {
28
29
  }
29
30
  });
30
31
  return config;
31
- }
32
+ }
33
+ export var config = function (entry = []) {
34
+ return [...entry, findDistEsm(__dirname, 'client/preview/config')];
35
+ };
@@ -1,3 +1,4 @@
1
1
  import { Configuration } from 'webpack';
2
- import { Options } from '@storybook/core-common';
2
+ import { Options, StorybookConfig } from '@storybook/core-common';
3
3
  export declare function webpack(config: Configuration, options: Options): Configuration;
4
+ export declare const config: StorybookConfig['config'];
@@ -1,3 +1,4 @@
1
1
  import { Configuration } from 'webpack';
2
- import type { Options } from '@storybook/core-common';
2
+ import { Options, StorybookConfig } from '@storybook/core-common';
3
3
  export declare function webpack(config: Configuration, options: Options): Configuration;
4
+ export declare const config: StorybookConfig['config'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/web-components",
3
- "version": "6.4.0-beta.3",
3
+ "version": "6.4.0-beta.30",
4
4
  "description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "lit-html",
@@ -50,13 +50,13 @@
50
50
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
51
51
  "@babel/plugin-syntax-import-meta": "^7.10.4",
52
52
  "@babel/preset-env": "^7.12.11",
53
- "@storybook/addons": "6.4.0-beta.3",
54
- "@storybook/client-api": "6.4.0-beta.3",
55
- "@storybook/core": "6.4.0-beta.3",
56
- "@storybook/core-common": "6.4.0-beta.3",
57
- "@storybook/csf": "0.0.2--canary.6aca495.0",
58
- "@storybook/preview-web": "6.4.0-beta.3",
59
- "@storybook/store": "6.4.0-beta.3",
53
+ "@storybook/addons": "6.4.0-beta.30",
54
+ "@storybook/client-api": "6.4.0-beta.30",
55
+ "@storybook/core": "6.4.0-beta.30",
56
+ "@storybook/core-common": "6.4.0-beta.30",
57
+ "@storybook/csf": "0.0.2--canary.87bc651.0",
58
+ "@storybook/preview-web": "6.4.0-beta.30",
59
+ "@storybook/store": "6.4.0-beta.30",
60
60
  "@types/webpack-env": "^1.16.0",
61
61
  "babel-plugin-bundled-import-meta": "^0.3.1",
62
62
  "core-js": "^3.8.2",
@@ -79,6 +79,6 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "0fc9200599c97a5797c5af886792200cd29e2046",
82
+ "gitHead": "061df7c81746e8aa9afd4c6648f090aeff10b85f",
83
83
  "sbmodern": "dist/modern/client/index.js"
84
84
  }
package/preset.js CHANGED
@@ -1,7 +1 @@
1
- function config(entry = []) {
2
- return [...entry, require.resolve('./dist/esm/client/preview/config')];
3
- }
4
-
5
- module.exports = {
6
- config,
7
- };
1
+ module.exports = require('./dist/cjs/server/framework-preset-web-components');
package/types-7-0.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/ts3.9/client/preview/types-7-0.d';