-
Notifications
You must be signed in to change notification settings - Fork 13.8k
chore: migrate @rocket.chat/storybook-dark-mode from the Fuselage repository
#41810
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
Open
tassoevan
wants to merge
5
commits into
develop
Choose a base branch
from
chore/storybook-dark-mode
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d993ba2
chore: migrate `@rocket.chat/storybook-dark-mode` from Fuselage
tassoevan 4e5fbfa
chore: use shared tsconfig in `@rocket.chat/storybook-dark-mode`
tassoevan 4bee88b
chore: fix `@rocket.chat/storybook-dark-mode` manifest after the migr…
tassoevan e87d106
chore: drop the redundant optional call on `window.matchMedia`
tassoevan 602dfee
chore: stop emitting declarations from the esm and cjs build passes
tassoevan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,19 @@ | ||
| # @rocket.chat/storybook-dark-mode | ||
|
|
||
| ## 4.2.1 | ||
|
|
||
| ### Patch Changes | ||
|
|
||
| - [#2060](https://github.com/RocketChat/fuselage/pull/2060) [`ee381bb`](https://github.com/RocketChat/fuselage/commit/ee381bb32982d0f4ed9ef26385b5016e0a2e4023) Thanks [@tassoevan](https://github.com/tassoevan)! - feat: Remove deprecations and keep documentation comments | ||
|
|
||
| ## 4.2.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - [#1999](https://github.com/RocketChat/fuselage/pull/1999) [`6e37f9d`](https://github.com/RocketChat/fuselage/commit/6e37f9d2fee4c9ebeb8ea2c1601bbd4c89905859) Thanks [@tassoevan](https://github.com/tassoevan)! - feat!: Upgrade to React 19 | ||
|
|
||
| ## 4.1.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - [#1849](https://github.com/RocketChat/fuselage/pull/1849) [`99b319c`](https://github.com/RocketChat/fuselage/commit/99b319c6c2ef1015d1d1edb027068c23dc1e29d9) Thanks [@tassoevan](https://github.com/tassoevan)! - feat(storybook-dark-mode): Fork `storybook-dark-mode` |
This file contains hidden or 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,20 @@ | ||
| Copyright (c) 2019 Andrew Lisowski <lisowski54@gmail.com> | ||
| Copyright (c) 2026 Rocket.Chat Technologies Corp. | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
| IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
| DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
| OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE | ||
| OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains hidden or 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,47 @@ | ||
| { | ||
| "name": "@rocket.chat/storybook-dark-mode", | ||
| "version": "4.2.1", | ||
| "description": "Toggle between light and dark mode in Storybook (Rocket.Chat fork)", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/RocketChat/fuselage.git", | ||
| "directory": "packages/storybook-dark-mode" | ||
| }, | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| "license": "MIT", | ||
| "author": "Andrew Lisowski <lisowski54@gmail.com>", | ||
| "contributors": [ | ||
| "Rocket.Chat Technologies Corp." | ||
| ], | ||
| "main": "dist/cjs/index.js", | ||
| "module": "dist/esm/index.js", | ||
| "types": "dist/ts/index.d.ts", | ||
| "files": [ | ||
| "src", | ||
| "dist", | ||
| "preset.js" | ||
| ], | ||
| "scripts": { | ||
| "build": "rm -rf dist && tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && tsc -p tsconfig.build.json", | ||
| "lint": "eslint .", | ||
| "lint:fix": "eslint . --fix" | ||
| }, | ||
| "dependencies": { | ||
| "@storybook/global": "~5.0.0", | ||
| "@storybook/icons": "~1.6.0", | ||
| "fast-deep-equal": "~3.1.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@rocket.chat/tsconfig": "workspace:~", | ||
| "@types/react": "~19.2.18", | ||
| "@types/react-dom": "~19.2.4", | ||
| "eslint": "~9.39.5", | ||
| "prettier": "~3.3.3", | ||
| "react": "~19.2.8", | ||
| "react-dom": "~19.2.8", | ||
| "typescript": "~5.9.3" | ||
| }, | ||
| "peerDependencies": { | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
|
||
| "react": "*", | ||
| "react-dom": "*" | ||
|
tassoevan marked this conversation as resolved.
Outdated
|
||
| } | ||
| } | ||
This file contains hidden or 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,7 @@ | ||
| function managerEntries(entry = []) { | ||
| return [...entry, require.resolve('./dist/esm/preset/manager')]; | ||
| } | ||
|
|
||
| module.exports = { | ||
| managerEntries, | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.