Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Playroom: Update to v0.22.0, add 'playroomScope' option (#539)
- Loading branch information
1 parent
f177075
commit 2ba5cfc
Showing
9 changed files
with
47 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
'sku': minor | ||
--- | ||
|
||
**Playroom:** Update to v0.22.0, add `playroomScope` option | ||
|
||
You can now use Playroom's new custom scope feature by providing a `playroomScope` file. | ||
|
||
**EXAMPLE USAGE** | ||
|
||
sku.config.js: | ||
|
||
```js | ||
module.exports = { | ||
playroomScope: './playroom/useScope.ts', | ||
} | ||
``` | ||
|
||
useScope.ts: | ||
|
||
```js | ||
import { useToast } from 'braid-design-system'; | ||
|
||
export default function useScope() { | ||
return { | ||
showToast: useToast() | ||
} | ||
} | ||
``` |
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
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