Skip to content

Commit fad3b7f

Browse files
authored
Remove unused code and deps (#467)
1 parent 5b0ed6b commit fad3b7f

File tree

26 files changed

+44
-220
lines changed

26 files changed

+44
-220
lines changed

.changeset/nice-rules-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'playroom': patch
3+
---
4+
5+
Remove unused code, remove unused deps, update `sucrase` to latest version

cypress/support/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ export const loadPlayroomWithAppearance = (
411411
loadPlayroom(initialCode);
412412
};
413413

414-
export const typeInSearchField = (text: string) =>
414+
const typeInSearchField = (text: string) =>
415415
cy.get('.CodeMirror-search-field').type(text);
416416

417417
export const findInCode = (
@@ -504,9 +504,6 @@ export const assertCodePaneSearchMatchesCount = (lines: number) => {
504504
);
505505
};
506506

507-
export const assertZeroStateIsVisible = () =>
508-
cy.findByTestId('zeroState').should('be.visible');
509-
510507
export const assertColourMode = (mode: 'dark' | 'light') => {
511508
cy.document().then((doc) => {
512509
expect(doc.documentElement.getAttribute('data-playroom-dark')).to.equal(

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"@capsizecss/metrics": "^3.5.0",
8686
"@capsizecss/vanilla-extract": "^2.0.4",
8787
"@soda/friendly-errors-webpack-plugin": "^1.8.1",
88-
"@types/base64-url": "^2.2.0",
8988
"@types/codemirror": "^5.60.5",
9089
"@types/prettier": "^2.7.1",
9190
"@types/react": "^18.0.0 || ^19.0.0",
@@ -121,7 +120,7 @@
121120
"react-error-boundary": "^4.0.13",
122121
"read-pkg-up": "^7.0.1",
123122
"scope-eval": "^1.0.0",
124-
"sucrase": "^3.34.0",
123+
"sucrase": "^3.35.1",
125124
"tinyglobby": "^0.2.12",
126125
"typescript": ">=5.0.0",
127126
"use-debounce": "^10.0.0",
@@ -137,7 +136,6 @@
137136
"@testing-library/cypress": "^10.1.0",
138137
"@types/jest": "^29.2.4",
139138
"@types/node": "^18.11.9",
140-
"@types/webpack-env": "^1.18.8",
141139
"concurrently": "^9.1.2",
142140
"cypress": "^15.5.0",
143141
"eslint": "^9.23.0",

pnpm-lock.yaml

Lines changed: 6 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Button/Button.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { minTouchableBeforePseudo } from '../../css/shared.css';
44
import { sprinkles, colorPaletteVars } from '../../css/sprinkles.css';
55
import { vars } from '../../css/vars.css';
66

7-
export const sizeVar = createVar();
7+
const sizeVar = createVar();
88

99
const reset = style([
1010
sprinkles({

src/components/ButtonIcon/ButtonIcon.css.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { minTouchableBeforePseudo } from '../../css/shared.css';
1212
import { colorPaletteVars, sprinkles } from '../../css/sprinkles.css';
1313
import { vars } from '../../css/vars.css';
1414

15-
export const sizeVar = createVar();
16-
export const foreground = createVar();
15+
const sizeVar = createVar();
16+
const foreground = createVar();
1717

1818
export const button = style([
1919
sprinkles({

src/components/ButtonIcon/ButtonIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const ButtonIcon = forwardRef<HTMLButtonElement, ButtonIconProps>(
5757
)
5858
);
5959

60-
export type AnchorElementProps = Omit<
60+
type AnchorElementProps = Omit<
6161
AllHTMLAttributes<HTMLAnchorElement>,
6262
'style' | 'className' | 'size'
6363
> & {

0 commit comments

Comments
 (0)