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
feat(styling-library): expand types for cacheProvider #3200
Conversation
🦋 Changeset detectedLatest commit: 4c1491d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -43,6 +43,7 @@ | |||
"react": "^18.0.0", | |||
"react-dom": "^18.0.0", | |||
"react-helmet": "^6.1.0", | |||
"react-shadow": "^20.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dev-dependency on this package because we only use it for the story
@@ -17,11 +16,11 @@ export type { | |||
EmotionLabel, | |||
CSSObject, | |||
} from '@styled-system/css'; | |||
export type {Options as CreateCacheOptions} from '@emotion/cache'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just re-export the whole thing, no point limiting it anymore
@@ -0,0 +1,6 @@ | |||
--- | |||
'@twilio-paste/styling-library': patch | |||
'@twilio-paste/core': patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patch change because this is unsupported, undocumented changes
title: 'Theme/ThemeProvider/CacheProvider', | ||
}; | ||
|
||
export const CacheProviderContainer = (): React.ReactNode => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a quick example to demonstrate it working
✅ Deploy Preview for paste-theme-designer ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for paste-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4c1491d:
|
Passing run #5896 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Size Change: 0 B Total Size: 979 kB ℹ️ View Unchanged
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 4c1491d. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 3 targetsSent with 💌 from NxCloud. |
575dd44
to
1aa6283
Compare
91220f7
to
4c1491d
Compare
Expands types on
@twilio-paste/styling-library
, and in turn@twilio-paste/them
for cacheProviderProps such that acontainer
key may be passed so Emotion styles can be injected within certain elements, like in shadow-dom.Resolves #3196