-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(storybook): upgrade storybook (#29562)
### Parent Issue #29530 ### Objective The stories of our components use a StoryBook older version and there are some stories broken and this is important as part of the PrimeNG upgrade to V17 to check that the components work correctly with this migration as a result this task is to fix the broken storybooks and upgrade using the latest StoryBook version. ### Proposed Changes * Upgrade storybook from v7 to v8 * `Story` was removed in v8 and replace it for `StoryObj` * Use new format to write stories with strong typing * Support to signals inputs in stories * 8 Fixed stories (WIP) ### Checklist - [x] Tests - [x] Translations - [x] Security Implications Contemplated (add notes if applicable) ### Fixed Stories Original | Updated :-------------------------:|:-------------------------: ![localhost_4400__path=_docs_dotcms-content-palette--docs](https://github.com/user-attachments/assets/76fd5769-bd7b-459d-abdf-29fafeeecb2c) | ![localhost_4401__path=_docs_dotcms-content-palette--docs](https://github.com/user-attachments/assets/23aade9f-c1ea-49ed-b59d-458dc28f59d4) ![localhost_4400__path=_docs_dotcms-content-palette--docs](https://github.com/user-attachments/assets/15bb931c-5b2a-47e1-aedd-d2a2047a8e43) | ![localhost_4401__path=_docs_dotcms-content-palette--docs](https://github.com/user-attachments/assets/3097dae1-6fac-4260-8425-5a28909ead4f) ![localhost_4400__path=_docs_primeng-form-treeselect--docs](https://github.com/user-attachments/assets/6cccef59-adfa-4180-91a9-9ef22ca39a84) | ![localhost_4401__path=_docs_dotcms-content-palette--docs (1)](https://github.com/user-attachments/assets/352e827a-0c03-4410-bb64-fde683a4477a) ![localhost_4400__path=_docs_primeng-form-treeselect--docs (1)](https://github.com/user-attachments/assets/0c32516b-2261-438a-838a-05661d2e389a) | ![localhost_4401__path=_docs_dotcms-content-palette--docs (2)](https://github.com/user-attachments/assets/864ba32c-41d4-46cc-acd0-6210eac55d24) ![localhost_4401__path=_docs_dotcms-device-selector-seo--docs](https://github.com/user-attachments/assets/73208220-c092-4008-8da8-87c7d059e814) | ![localhost_4400_](https://github.com/user-attachments/assets/4b316438-e317-420a-a420-519acb2d34b1) ![localhost_4401__path=_docs_dotcms-device-selector-seo--docs (2)](https://github.com/user-attachments/assets/20f9a891-334f-4962-acb1-7d386dc57d0c) | ![localhost_4400__path=_docs_dotcms-results-seo-tool--docs](https://github.com/user-attachments/assets/2f8d7503-dfa4-41f9-8730-9ba9713b53f5)
- Loading branch information
Showing
103 changed files
with
5,936 additions
and
7,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,19 @@ | ||
module.exports = { | ||
addons: [ | ||
{ | ||
name: '@storybook/addon-docs', | ||
options: { | ||
configureJSX: true, | ||
babelOptions: {}, | ||
sourceLoaderOptions: null, | ||
transcludeMarkdown: true | ||
} | ||
}, | ||
'@storybook/addon-actions' | ||
'@storybook/addon-essentials' | ||
], | ||
|
||
// uncomment the property below if you want to apply some webpack config globally | ||
// webpackFinal: async (config, { configType }) => { | ||
// // Make whatever fine-grained changes you need that should apply to all storybook configs | ||
// // Return the altered config | ||
// return config; | ||
// }, | ||
stories: [], | ||
|
||
framework: { | ||
name: '@storybook/angular', | ||
options: { | ||
builder: { | ||
useSWC: true | ||
} | ||
} | ||
options: {} | ||
}, | ||
|
||
docs: { | ||
autodocs: true | ||
}, | ||
|
||
swc: (config, options) => { | ||
return { | ||
...config | ||
}; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.