@analogjs/storybook-angular 2.0.0-beta.18 → 2.0.0-beta.19
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/README.md +23 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -89,6 +89,29 @@ To register global styles, add them to the `@analogjs/storybook-angular` builder
|
|
|
89
89
|
}
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
+
## Enabling Zoneless Change Detection
|
|
93
|
+
|
|
94
|
+
To use zoneless change detection for the Storybook, add the `experimentalZoneless` flag to the `@analogjs/storybook-angular` builder options in the `angular.json` or `project.json`.
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
"storybook": {
|
|
98
|
+
"builder": "@analogjs/storybook-angular:start-storybook",
|
|
99
|
+
"options": {
|
|
100
|
+
// ... other options
|
|
101
|
+
"experimentalZoneless": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"build-storybook": {
|
|
105
|
+
"builder": "@analogjs/storybook-angular:build-storybook",
|
|
106
|
+
"options": {
|
|
107
|
+
// ... other options
|
|
108
|
+
"experimentalZoneless": true
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
> Zoneless change detection is the default for new projects starting Angular v21.
|
|
114
|
+
|
|
92
115
|
## Setting up Static Assets
|
|
93
116
|
|
|
94
117
|
Static assets are configured in the `.storybook/main.ts` file using the `staticDirs` array.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/storybook-angular",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.19",
|
|
4
4
|
"description": "Storybook Integration for Angular & Vite",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
},
|
|
37
37
|
"main": "src/index.js",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@storybook/builder-vite": "^10.0.0
|
|
39
|
+
"@storybook/builder-vite": "^10.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@storybook/angular": "^10.0.0
|
|
42
|
+
"@storybook/angular": "^10.0.0",
|
|
43
43
|
"@analogjs/vite-plugin-angular": "*",
|
|
44
|
-
"storybook": "^10.0.0
|
|
44
|
+
"storybook": "^10.0.0",
|
|
45
45
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|