@storybook/angular 11.0.0-beta.4 → 11.0.0-beta.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.
- package/dist/_browser-chunks/{chunk-5LDX3DGU.js → chunk-DZOEEBJT.js} +2 -2
- package/dist/_browser-chunks/{chunk-5E3THNDT.js → chunk-SL5LA2WR.js} +1 -10
- package/dist/_browser-chunks/{chunk-2HJNMSSH.js → chunk-TVI2RATP.js} +2 -2
- package/dist/client/config.js +1 -1
- package/dist/client/docs/config.js +1 -1
- package/dist/client/index.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SL5LA2WR.js";
|
|
4
4
|
import {
|
|
5
5
|
config_exports as config_exports2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TVI2RATP.js";
|
|
7
7
|
import {
|
|
8
8
|
computesTemplateFromComponent,
|
|
9
9
|
formatPropInTemplate,
|
|
@@ -22,7 +22,7 @@ global.STORYBOOK_ENV = "angular";
|
|
|
22
22
|
// src/client/decorateStory.ts
|
|
23
23
|
import { sanitizeStoryContextUpdate } from "storybook/preview-api";
|
|
24
24
|
function decorateStory(mainStoryFn, decorators) {
|
|
25
|
-
return
|
|
25
|
+
return decorators.reduce(
|
|
26
26
|
(previousStoryFn, decorator) => (context) => decorator((update) => previousStoryFn({
|
|
27
27
|
...context,
|
|
28
28
|
...sanitizeStoryContextUpdate(update)
|
|
@@ -40,15 +40,6 @@ var prepareMain = (story, context) => {
|
|
|
40
40
|
function hasNoTemplate(template) {
|
|
41
41
|
return template == null;
|
|
42
42
|
}
|
|
43
|
-
var cleanArgsDecorator = (storyFn, context) => {
|
|
44
|
-
if (!context.argTypes || !context.args)
|
|
45
|
-
return storyFn();
|
|
46
|
-
let argsToClean = context.args;
|
|
47
|
-
return context.args = Object.entries(argsToClean).reduce((obj, [key, arg]) => {
|
|
48
|
-
let argType = context.argTypes[key];
|
|
49
|
-
return argType?.action || argType?.control ? { ...obj, [key]: arg } : obj;
|
|
50
|
-
}, {}), storyFn();
|
|
51
|
-
};
|
|
52
43
|
|
|
53
44
|
// src/client/config.ts
|
|
54
45
|
import { enhanceArgTypes } from "storybook/internal/docs-tools";
|
|
@@ -22,9 +22,9 @@ var skipSourceRender = (context) => {
|
|
|
22
22
|
return useEffect(() => {
|
|
23
23
|
if (skipSourceRender(context))
|
|
24
24
|
return;
|
|
25
|
-
let { props, userDefinedTemplate } = story, { component,
|
|
25
|
+
let { props, userDefinedTemplate } = story, { component, parameters: parameters2 } = context, template = parameters2.docs?.source?.excludeDecorators ? context.originalStoryFn(context.args, context).template : story.template;
|
|
26
26
|
if (component && !userDefinedTemplate) {
|
|
27
|
-
let newSource = computesTemplateSourceFromComponent(component, props
|
|
27
|
+
let newSource = computesTemplateSourceFromComponent(component, props) || template;
|
|
28
28
|
newSource && newSource !== source.current && (emitTransformCode(newSource, context), source.current = newSource);
|
|
29
29
|
} else template && template !== source.current && (emitTransformCode(template, context), source.current = template);
|
|
30
30
|
}), story;
|
package/dist/client/config.js
CHANGED
package/dist/client/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
componentWrapperDecorator,
|
|
6
6
|
moduleMetadata,
|
|
7
7
|
setProjectAnnotations
|
|
8
|
-
} from "../_browser-chunks/chunk-
|
|
9
|
-
import "../_browser-chunks/chunk-
|
|
10
|
-
import "../_browser-chunks/chunk-
|
|
8
|
+
} from "../_browser-chunks/chunk-DZOEEBJT.js";
|
|
9
|
+
import "../_browser-chunks/chunk-SL5LA2WR.js";
|
|
10
|
+
import "../_browser-chunks/chunk-TVI2RATP.js";
|
|
11
11
|
import "../_browser-chunks/chunk-X37A3J56.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
componentWrapperDecorator,
|
|
6
6
|
moduleMetadata,
|
|
7
7
|
setProjectAnnotations
|
|
8
|
-
} from "./_browser-chunks/chunk-
|
|
9
|
-
import "./_browser-chunks/chunk-
|
|
10
|
-
import "./_browser-chunks/chunk-
|
|
8
|
+
} from "./_browser-chunks/chunk-DZOEEBJT.js";
|
|
9
|
+
import "./_browser-chunks/chunk-SL5LA2WR.js";
|
|
10
|
+
import "./_browser-chunks/chunk-TVI2RATP.js";
|
|
11
11
|
import "./_browser-chunks/chunk-X37A3J56.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.5",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"!src/**/*"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@storybook/builder-webpack5": "11.0.0-beta.
|
|
62
|
+
"@storybook/builder-webpack5": "11.0.0-beta.5",
|
|
63
63
|
"@storybook/global": "^5.0.0",
|
|
64
64
|
"telejson": "8.0.0",
|
|
65
65
|
"ts-dedent": "^2.2.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@angular/forms": "^21.0.0",
|
|
80
80
|
"@angular/platform-browser": "^21.0.0",
|
|
81
81
|
"@angular/platform-browser-dynamic": "^21.0.0",
|
|
82
|
-
"@storybook/angular-compodoc": "11.0.0-beta.
|
|
83
|
-
"@storybook/core-webpack": "11.0.0-beta.
|
|
82
|
+
"@storybook/angular-compodoc": "11.0.0-beta.5",
|
|
83
|
+
"@storybook/core-webpack": "11.0.0-beta.5",
|
|
84
84
|
"@types/node": "^22.19.1",
|
|
85
85
|
"empathic": "^2.0.0",
|
|
86
86
|
"rimraf": "^6.0.1",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@angular/platform-browser": ">=21.0.0 < 23.0.0",
|
|
102
102
|
"@angular/platform-browser-dynamic": ">=21.0.0 < 23.0.0",
|
|
103
103
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
104
|
-
"storybook": "^11.0.0-beta.
|
|
104
|
+
"storybook": "^11.0.0-beta.5",
|
|
105
105
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
|
|
106
106
|
"zone.js": ">=0.14.0"
|
|
107
107
|
},
|