@storybook/addon-backgrounds 6.5.0-alpha.52 → 6.5.0-alpha.53

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.
File without changes
@@ -3,7 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.parameters = void 0;
6
+ exports.parameters = exports.decorators = void 0;
7
+
8
+ var _withBackground = require("./decorators/withBackground");
9
+
10
+ var _withGrid = require("./decorators/withGrid");
11
+
12
+ var decorators = [_withGrid.withGrid, _withBackground.withBackground];
13
+ exports.decorators = decorators;
7
14
  var parameters = {
8
15
  backgrounds: {
9
16
  grid: {
File without changes
@@ -1,3 +1,6 @@
1
+ import { withBackground } from './decorators/withBackground';
2
+ import { withGrid } from './decorators/withGrid';
3
+ export var decorators = [withGrid, withBackground];
1
4
  export var parameters = {
2
5
  backgrounds: {
3
6
  grid: {
File without changes
@@ -1,3 +1,6 @@
1
+ import { withBackground } from './decorators/withBackground';
2
+ import { withGrid } from './decorators/withGrid';
3
+ export const decorators = [withGrid, withBackground];
1
4
  export const parameters = {
2
5
  backgrounds: {
3
6
  grid: {
File without changes
@@ -1 +1,14 @@
1
- export declare const decorators: ((StoryFn: import("@storybook/csf").PartialStoryFn<import("@storybook/csf").AnyFramework, import("@storybook/csf").Args>, context: import("@storybook/csf").StoryContext<import("@storybook/csf").AnyFramework, import("@storybook/csf").Args>) => unknown)[];
1
+ export declare const decorators: ((StoryFn: import("@storybook/csf").PartialStoryFn<import("@storybook/csf").AnyFramework, import("@storybook/csf").Args>, context: import("@storybook/csf").StoryContext<import("@storybook/csf").AnyFramework, import("@storybook/csf").Args>) => unknown)[];
2
+ export declare const parameters: {
3
+ backgrounds: {
4
+ grid: {
5
+ cellSize: number;
6
+ opacity: number;
7
+ cellAmount: number;
8
+ };
9
+ values: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ };
14
+ };
File without changes
@@ -1 +1,14 @@
1
- export declare const decorators: ((StoryFn: import("@storybook/csf").PartialStoryFn<import("@storybook/csf").AnyFramework, import("@storybook/csf").Args>, context: import("@storybook/csf").StoryContext<import("@storybook/csf").AnyFramework, import("@storybook/csf").Args>) => unknown)[];
1
+ export declare const decorators: ((StoryFn: import("@storybook/csf").PartialStoryFn<import("@storybook/csf").AnyFramework, import("@storybook/csf").Args>, context: import("@storybook/csf").StoryContext<import("@storybook/csf").AnyFramework, import("@storybook/csf").Args>) => unknown)[];
2
+ export declare const parameters: {
3
+ backgrounds: {
4
+ grid: {
5
+ cellSize: number;
6
+ opacity: number;
7
+ cellAmount: number;
8
+ };
9
+ values: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ };
14
+ };
package/manager.js ADDED
@@ -0,0 +1 @@
1
+ import './dist/esm/manager';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-backgrounds",
3
- "version": "6.5.0-alpha.52",
3
+ "version": "6.5.0-alpha.53",
4
4
  "description": "Switch backgrounds to view components in different settings",
5
5
  "keywords": [
6
6
  "addon",
@@ -45,13 +45,13 @@
45
45
  "prepare": "node ../../scripts/prepare.js"
46
46
  },
47
47
  "dependencies": {
48
- "@storybook/addons": "6.5.0-alpha.52",
49
- "@storybook/api": "6.5.0-alpha.52",
50
- "@storybook/client-logger": "6.5.0-alpha.52",
51
- "@storybook/components": "6.5.0-alpha.52",
52
- "@storybook/core-events": "6.5.0-alpha.52",
48
+ "@storybook/addons": "6.5.0-alpha.53",
49
+ "@storybook/api": "6.5.0-alpha.53",
50
+ "@storybook/client-logger": "6.5.0-alpha.53",
51
+ "@storybook/components": "6.5.0-alpha.53",
52
+ "@storybook/core-events": "6.5.0-alpha.53",
53
53
  "@storybook/csf": "0.0.2--canary.507502b.0",
54
- "@storybook/theming": "6.5.0-alpha.52",
54
+ "@storybook/theming": "6.5.0-alpha.53",
55
55
  "core-js": "^3.8.2",
56
56
  "global": "^4.4.0",
57
57
  "memoizerific": "^1.11.3",
@@ -77,7 +77,7 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "863b3811b24a4703645a09286059bc6d95bd2e65",
80
+ "gitHead": "652768b3ff83a355651d5636ccc4d78bee2cdbf9",
81
81
  "sbmodern": "dist/modern/index.js",
82
82
  "storybook": {
83
83
  "displayName": "Backgrounds",
package/preview.js ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/esm/preview';
package/register.js CHANGED
@@ -1 +1,6 @@
1
- require('./dist/esm/register');
1
+ import { once } from '@storybook/client-logger';
2
+ import './manager';
3
+
4
+ once.warn(
5
+ 'register.js is deprecated see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-registerjs'
6
+ );
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.object.to-string.js");
4
-
5
- require("core-js/modules/web.dom-collections.for-each.js");
6
-
7
- require("core-js/modules/es.object.keys.js");
8
-
9
- Object.defineProperty(exports, "__esModule", {
10
- value: true
11
- });
12
-
13
- var _withBackground = require("./withBackground");
14
-
15
- Object.keys(_withBackground).forEach(function (key) {
16
- if (key === "default" || key === "__esModule") return;
17
- if (key in exports && exports[key] === _withBackground[key]) return;
18
- Object.defineProperty(exports, key, {
19
- enumerable: true,
20
- get: function get() {
21
- return _withBackground[key];
22
- }
23
- });
24
- });
25
-
26
- var _withGrid = require("./withGrid");
27
-
28
- Object.keys(_withGrid).forEach(function (key) {
29
- if (key === "default" || key === "__esModule") return;
30
- if (key in exports && exports[key] === _withGrid[key]) return;
31
- Object.defineProperty(exports, key, {
32
- enumerable: true,
33
- get: function get() {
34
- return _withGrid[key];
35
- }
36
- });
37
- });
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.decorators = void 0;
7
-
8
- var _decorators = require("../decorators");
9
-
10
- var decorators = [_decorators.withGrid, _decorators.withBackground];
11
- exports.decorators = decorators;
@@ -1,2 +0,0 @@
1
- export * from './withBackground';
2
- export * from './withGrid';
@@ -1,2 +0,0 @@
1
- import { withGrid, withBackground } from '../decorators';
2
- export var decorators = [withGrid, withBackground];
@@ -1,2 +0,0 @@
1
- export * from './withBackground';
2
- export * from './withGrid';
@@ -1,2 +0,0 @@
1
- import { withGrid, withBackground } from '../decorators';
2
- export const decorators = [withGrid, withBackground];
@@ -1,2 +0,0 @@
1
- export * from './withBackground';
2
- export * from './withGrid';
@@ -1,13 +0,0 @@
1
- export declare const parameters: {
2
- backgrounds: {
3
- grid: {
4
- cellSize: number;
5
- opacity: number;
6
- cellAmount: number;
7
- };
8
- values: {
9
- name: string;
10
- value: string;
11
- }[];
12
- };
13
- };
@@ -1,2 +0,0 @@
1
- export * from './withBackground';
2
- export * from './withGrid';
@@ -1,13 +0,0 @@
1
- export declare const parameters: {
2
- backgrounds: {
3
- grid: {
4
- cellSize: number;
5
- opacity: number;
6
- cellAmount: number;
7
- };
8
- values: {
9
- name: string;
10
- value: string;
11
- }[];
12
- };
13
- };
package/preset.js DELETED
@@ -1,16 +0,0 @@
1
- function config(entry = []) {
2
- return [
3
- ...entry,
4
- require.resolve('./dist/esm/preset/addDecorator'),
5
- require.resolve('./dist/esm/preset/addParameter'),
6
- ];
7
- }
8
-
9
- function managerEntries(entry = [], options) {
10
- return [...entry, require.resolve('./dist/esm/register')];
11
- }
12
-
13
- module.exports = {
14
- managerEntries,
15
- config,
16
- };