-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storybook] Add story code snippets #7716
base: main
Are you sure you want to change the base?
[Storybook] Add story code snippets #7716
Commits on Jun 20, 2024
-
feat: add custom code-sippet addon panel
- adds addon panel for outputting code snippet with Storybooks SyntaxHighlighter - registers code-snippet addon panel in Storybook manager
Configuration menu - View commit details
-
Copy full SHA for a3a8806 - Browse repository at this point
Copy the full SHA a3a8806View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9db3e30 - Browse repository at this point
Copy the full SHA 9db3e30View commit details -
feat: add and use jsxDecorator
- adds the main bulk of the addon functionality; the jsxDecorator takes the story element, transforms it according to our needs and passes the element to react-element-to-jsx-string to output a jsx string
Configuration menu - View commit details
-
Copy full SHA for e9f26e3 - Browse repository at this point
Copy the full SHA e9f26e3View commit details -
fix: prevent fewer hooks called error on euiTheme
- calling useEuiTheme only on the initial decorator call and not every recursive check
Configuration menu - View commit details
-
Copy full SHA for 91bafcd - Browse repository at this point
Copy the full SHA 91bafcdView commit details -
docs(storybook): updates stories to ensure code-snippet generation
- ensure naming convention for stateful wrapper to start with Stateful... for filters to work - ensure args are passed along when using decorators - ensure no anonymous render functions are used as they would otherwise be skipped
Configuration menu - View commit details
-
Copy full SHA for 447c190 - Browse repository at this point
Copy the full SHA 447c190View commit details -
docs(storybook): various story adjustments
- EuiCombobox: setup onChange handler and use it in the stateful wrapper; fix static value for options - EuiheaderAlert: adds a storybook only prop to ensure the full code is used for the snippet generation and not the close state one as the snippet is only generated on arg change and not triggered by preview changes
Configuration menu - View commit details
-
Copy full SHA for 4965850 - Browse repository at this point
Copy the full SHA 4965850View commit details -
docs(storybook): skip code snippet generation for components that hav…
…e render functions
Configuration menu - View commit details
-
Copy full SHA for 3070b31 - Browse repository at this point
Copy the full SHA 3070b31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d9d48b - Browse repository at this point
Copy the full SHA 0d9d48bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ffcd37 - Browse repository at this point
Copy the full SHA 2ffcd37View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffdcd72 - Browse repository at this point
Copy the full SHA ffdcd72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2efe00e - Browse repository at this point
Copy the full SHA 2efe00eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e11cc2 - Browse repository at this point
Copy the full SHA 8e11cc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 037759b - Browse repository at this point
Copy the full SHA 037759bView commit details -
docs(storybook): revert custom opening handling for EuiheaderAlert fl…
…yout story in favor of initially setting it to open
Configuration menu - View commit details
-
Copy full SHA for 14d57a4 - Browse repository at this point
Copy the full SHA 14d57a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c00c0ab - Browse repository at this point
Copy the full SHA c00c0abView commit details -
Configuration menu - View commit details
-
Copy full SHA for f651e69 - Browse repository at this point
Copy the full SHA f651e69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 774f9a7 - Browse repository at this point
Copy the full SHA 774f9a7View commit details -
refactor(code-snippet): remove obsolete double quote transform since …
…prettier handles it
Configuration menu - View commit details
-
Copy full SHA for 4a6bdcd - Browse repository at this point
Copy the full SHA 4a6bdcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e326f8 - Browse repository at this point
Copy the full SHA 6e326f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e978fb3 - Browse repository at this point
Copy the full SHA e978fb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b45e0c - Browse repository at this point
Copy the full SHA 5b45e0cView commit details -
chore(code-snippet): remove unused skip code
-add additional comments
Configuration menu - View commit details
-
Copy full SHA for 6205f79 - Browse repository at this point
Copy the full SHA 6205f79View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc4f27f - Browse repository at this point
Copy the full SHA dc4f27fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf1b4f6 - Browse repository at this point
Copy the full SHA cf1b4f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c1ac61 - Browse repository at this point
Copy the full SHA 5c1ac61View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab09e89 - Browse repository at this point
Copy the full SHA ab09e89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d5ce6e - Browse repository at this point
Copy the full SHA 4d5ce6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cc7ab0 - Browse repository at this point
Copy the full SHA 3cc7ab0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64a583a - Browse repository at this point
Copy the full SHA 64a583aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aba7aa - Browse repository at this point
Copy the full SHA 7aba7aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 29fab28 - Browse repository at this point
Copy the full SHA 29fab28View commit details -
feat(code-snippet): add support for snippet value overrides
-adds example for EuiDatePicker story
Configuration menu - View commit details
-
Copy full SHA for 6c767b6 - Browse repository at this point
Copy the full SHA 6c767b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1385035 - Browse repository at this point
Copy the full SHA 1385035View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61a38d7 - Browse repository at this point
Copy the full SHA 61a38d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe269e7 - Browse repository at this point
Copy the full SHA fe269e7View commit details