-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
2,272 additions
and
1,800 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,5 @@ | ||
--- | ||
'@crackle/core': minor | ||
--- | ||
|
||
Side-effects fixes for Braid |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from '../lib/breakpoints'; | ||
export * from '../lib/components'; | ||
export * from './css'; |
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 +1 @@ | ||
export * from '../lib/components'; | ||
export { atoms } from '../lib/atoms/atoms'; |
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,7 +1,11 @@ | ||
import '../lib/reset'; | ||
// This entry aims to mimic the reset from Braid | ||
// https://github.com/seek-oss/braid-design-system/blob/master/packages/braid-design-system/src/entries/reset.ts | ||
|
||
if (process.env.NO_SIDE_EFFECTS !== 'clearly') { | ||
throw new Error('side-effect'); | ||
} | ||
import '../lib/reset/reset.css'; | ||
import '../lib/atoms/sprinkles.css'; | ||
|
||
import { markResetImported } from '../lib/reset/resetTracker'; | ||
|
||
export * from '../lib/breakpoints'; | ||
if (process.env.NODE_ENV === 'development') { | ||
markResetImported(); | ||
} |
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,7 +1 @@ | ||
import { ensureResetImported } from './lib/reset/resetTracker'; | ||
|
||
if (process.env.NODE_ENV === 'development') { | ||
ensureResetImported(); | ||
} | ||
|
||
export {}; | ||
export * from './lib/components'; |
11 changes: 11 additions & 0 deletions
11
fixtures/with-side-effects/src/lib/components/BraidProvider.tsx
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,11 @@ | ||
import type { ReactNode } from 'react'; | ||
|
||
import { ensureResetImported } from '../reset/resetTracker'; | ||
|
||
if (process.env.NODE_ENV === 'development') { | ||
ensureResetImported(); | ||
} | ||
|
||
export const BraidProvider = ({ children }: { children: ReactNode }) => ( | ||
<>{children}</> | ||
); |
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 +1,2 @@ | ||
export * from './Box'; | ||
export * from './BraidProvider'; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -41,17 +41,16 @@ | |
"@crackle-private/bootstrap": "workspace:*", | ||
"@crackle/cli": "workspace:*", | ||
"@crackle/core": "workspace:*", | ||
"@playwright/test": "^1.32.0", | ||
"@playwright/test": "^1.40.0", | ||
"@preconstruct/eslint-plugin-format-js-tag": "^0.4.0", | ||
"eslint": "^8.45.0", | ||
"eslint": "^8.54.0", | ||
"eslint-config-seek": "^11.3.1", | ||
"ignore-sync": "^7.0.1", | ||
"prettier": "^2.8.8", | ||
"tsx": "^3.12.7", | ||
"typescript": "~5.1.6", | ||
"tsx": "^4.2.0", | ||
"typescript": "~5.2.2", | ||
"vitest": "^0.33.0", | ||
"webpack": "^5.79.0", | ||
"wireit": "^0.10.0" | ||
"wireit": "^0.14.1" | ||
}, | ||
"packageManager": "[email protected]", | ||
"volta": { | ||
|
@@ -71,7 +70,7 @@ | |
] | ||
}, | ||
"overrides": { | ||
"tsm>esbuild": "^0.18.10" | ||
"ink>@types/react": "^18" | ||
} | ||
}, | ||
"wireit": { | ||
|
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.