@storybook/angular 11.0.0-rc.0 → 11.0.0-rc.2
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-X37A3J56.js → chunk-2H4ZPNE7.js} +8 -2
- package/dist/_browser-chunks/{chunk-TVI2RATP.js → chunk-CNYKJYMJ.js} +1 -1
- package/dist/_browser-chunks/{chunk-DZOEEBJT.js → chunk-OLQVT3HA.js} +3 -3
- package/dist/_browser-chunks/{chunk-SL5LA2WR.js → chunk-W2AQOUBS.js} +6 -7
- package/dist/client/config.js +2 -2
- package/dist/client/docs/config.js +2 -2
- package/dist/client/index.js +4 -4
- package/dist/index.js +4 -4
- package/package.json +5 -6
|
@@ -75,8 +75,10 @@ var reflectionCapabilities = new ReflectionCapabilities(), getComponentInputsOut
|
|
|
75
75
|
}
|
|
76
76
|
return previousValue;
|
|
77
77
|
}, initialValue) : initialValue;
|
|
78
|
-
return
|
|
79
|
-
}, hasEntry = (list, propName, templateName) => list.some((e) => e.propName === propName || e.templateName === templateName),
|
|
78
|
+
return addCompiledInputsOutputs(component, decoratorDerived);
|
|
79
|
+
}, hasEntry = (list, propName, templateName) => list.some((e) => e.propName === propName || e.templateName === templateName), hostDirectiveConfigs = (def) => (def.hostDirectives ?? []).flatMap(
|
|
80
|
+
(entry) => typeof entry == "function" ? entry() : [entry]
|
|
81
|
+
), hostBindingNames = (bindings) => Array.isArray(bindings) ? bindings.filter((_, index) => index % 2 === 1) : Object.values(bindings ?? {}), addCompiledInputsOutputs = (component, base) => {
|
|
80
82
|
let result = {
|
|
81
83
|
inputs: [...base.inputs],
|
|
82
84
|
outputs: [...base.outputs]
|
|
@@ -96,6 +98,10 @@ var reflectionCapabilities = new ReflectionCapabilities(), getComponentInputsOut
|
|
|
96
98
|
let propName = def.outputs[templateName] ?? templateName;
|
|
97
99
|
hasEntry(result.outputs, propName, templateName) || result.outputs.push({ propName, templateName });
|
|
98
100
|
}
|
|
101
|
+
for (let config of hostDirectiveConfigs(def))
|
|
102
|
+
for (let bucket of ["inputs", "outputs"])
|
|
103
|
+
for (let templateName of hostBindingNames(config[bucket]))
|
|
104
|
+
result[bucket].some((entry) => entry.templateName === templateName) || result[bucket].push({ propName: templateName, templateName });
|
|
99
105
|
return result;
|
|
100
106
|
};
|
|
101
107
|
var isComponent = (component) => component ? (reflectionCapabilities.annotations(component) || []).some((d) => d instanceof Component) : !1;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W2AQOUBS.js";
|
|
4
4
|
import {
|
|
5
5
|
config_exports as config_exports2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CNYKJYMJ.js";
|
|
7
7
|
import {
|
|
8
8
|
computesTemplateFromComponent,
|
|
9
9
|
formatPropInTemplate,
|
|
10
10
|
isComponent,
|
|
11
11
|
render_exports
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2H4ZPNE7.js";
|
|
13
13
|
|
|
14
14
|
// src/client/portable-stories.ts
|
|
15
15
|
import {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
computesTemplateFromComponent,
|
|
4
4
|
render,
|
|
5
5
|
renderToCanvas
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2H4ZPNE7.js";
|
|
7
7
|
|
|
8
8
|
// src/client/config.ts
|
|
9
9
|
var config_exports = {};
|
|
@@ -16,8 +16,7 @@ __export(config_exports, {
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
// src/client/globals.ts
|
|
19
|
-
|
|
20
|
-
global.STORYBOOK_ENV = "angular";
|
|
19
|
+
globalThis.STORYBOOK_ENV = "angular";
|
|
21
20
|
|
|
22
21
|
// src/client/decorateStory.ts
|
|
23
22
|
import { sanitizeStoryContextUpdate } from "storybook/preview-api";
|
|
@@ -647,10 +646,10 @@ var TAG_INNER = `(?:[^>=]|=\\s*"[^"]*"|=\\s*'[^']*'|=(?!\\s*["']))*`, HTML_TAG =
|
|
|
647
646
|
|
|
648
647
|
// ../../lib/angular-compodoc/dist/browser.js
|
|
649
648
|
import { logger } from "storybook/internal/client-logger";
|
|
650
|
-
|
|
651
|
-
var
|
|
652
|
-
|
|
653
|
-
|
|
649
|
+
var getCompodocJson = () => globalThis.__STORYBOOK_COMPODOC_JSON__;
|
|
650
|
+
var unwrapHtml = (html) => new globalThis.DOMParser().parseFromString(html, "text/html").body.textContent ?? "", extractArgTypesFromData2 = (componentData, {
|
|
651
|
+
filterNonInputControls = globalThis.FEATURES.angularFilterNonInputControls
|
|
652
|
+
} = {}) => extractArgTypesFromData(componentData, {
|
|
654
653
|
compodocJson: getCompodocJson(),
|
|
655
654
|
filterNonInputControls,
|
|
656
655
|
logger,
|
package/dist/client/config.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
argTypesEnhancers,
|
|
3
3
|
decorateStory,
|
|
4
4
|
parameters
|
|
5
|
-
} from "../_browser-chunks/chunk-
|
|
5
|
+
} from "../_browser-chunks/chunk-W2AQOUBS.js";
|
|
6
6
|
import {
|
|
7
7
|
render,
|
|
8
8
|
renderToCanvas
|
|
9
|
-
} from "../_browser-chunks/chunk-
|
|
9
|
+
} from "../_browser-chunks/chunk-2H4ZPNE7.js";
|
|
10
10
|
export {
|
|
11
11
|
decorateStory as applyDecorators,
|
|
12
12
|
argTypesEnhancers,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decorators,
|
|
3
3
|
parameters
|
|
4
|
-
} from "../../_browser-chunks/chunk-
|
|
5
|
-
import "../../_browser-chunks/chunk-
|
|
4
|
+
} from "../../_browser-chunks/chunk-CNYKJYMJ.js";
|
|
5
|
+
import "../../_browser-chunks/chunk-2H4ZPNE7.js";
|
|
6
6
|
export {
|
|
7
7
|
decorators,
|
|
8
8
|
parameters
|
package/dist/client/index.js
CHANGED
|
@@ -5,10 +5,10 @@ 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-
|
|
11
|
-
import "../_browser-chunks/chunk-
|
|
8
|
+
} from "../_browser-chunks/chunk-OLQVT3HA.js";
|
|
9
|
+
import "../_browser-chunks/chunk-W2AQOUBS.js";
|
|
10
|
+
import "../_browser-chunks/chunk-CNYKJYMJ.js";
|
|
11
|
+
import "../_browser-chunks/chunk-2H4ZPNE7.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
|
14
14
|
applicationConfig,
|
package/dist/index.js
CHANGED
|
@@ -5,10 +5,10 @@ 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-
|
|
11
|
-
import "./_browser-chunks/chunk-
|
|
8
|
+
} from "./_browser-chunks/chunk-OLQVT3HA.js";
|
|
9
|
+
import "./_browser-chunks/chunk-W2AQOUBS.js";
|
|
10
|
+
import "./_browser-chunks/chunk-CNYKJYMJ.js";
|
|
11
|
+
import "./_browser-chunks/chunk-2H4ZPNE7.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
|
14
14
|
applicationConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.2",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -59,8 +59,7 @@
|
|
|
59
59
|
"!src/**/*"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@storybook/builder-webpack5": "11.0.0-rc.
|
|
63
|
-
"@storybook/global": "^5.0.0",
|
|
62
|
+
"@storybook/builder-webpack5": "11.0.0-rc.2",
|
|
64
63
|
"telejson": "8.0.0",
|
|
65
64
|
"ts-dedent": "^2.2.0",
|
|
66
65
|
"tsconfig-paths-webpack-plugin": "^4.0.1",
|
|
@@ -79,8 +78,8 @@
|
|
|
79
78
|
"@angular/forms": "^21.0.0",
|
|
80
79
|
"@angular/platform-browser": "^21.0.0",
|
|
81
80
|
"@angular/platform-browser-dynamic": "^21.0.0",
|
|
82
|
-
"@storybook/angular-compodoc": "11.0.0-rc.
|
|
83
|
-
"@storybook/core-webpack": "11.0.0-rc.
|
|
81
|
+
"@storybook/angular-compodoc": "11.0.0-rc.2",
|
|
82
|
+
"@storybook/core-webpack": "11.0.0-rc.2",
|
|
84
83
|
"@types/node": "^22.19.1",
|
|
85
84
|
"empathic": "^2.0.0",
|
|
86
85
|
"rimraf": "^6.0.1",
|
|
@@ -101,7 +100,7 @@
|
|
|
101
100
|
"@angular/platform-browser": ">=21.0.0 < 23.0.0",
|
|
102
101
|
"@angular/platform-browser-dynamic": ">=21.0.0 < 23.0.0",
|
|
103
102
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
104
|
-
"storybook": "^11.0.0-rc.
|
|
103
|
+
"storybook": "^11.0.0-rc.2",
|
|
105
104
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
|
|
106
105
|
"zone.js": ">=0.14.0"
|
|
107
106
|
},
|