Skip to content
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

chore(deps): update all non-major dependencies #610

Merged
merged 9 commits into from
Mar 3, 2023
32 changes: 32 additions & 0 deletions .changeset/cold-hornets-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
'@launchpad-ui/progress-bubbles': patch
'@launchpad-ui/split-button': patch
'@launchpad-ui/navigation': patch
'@launchpad-ui/pagination': patch
'@launchpad-ui/clipboard': patch
'@launchpad-ui/dropdown': patch
'@launchpad-ui/markdown': patch
'@launchpad-ui/progress': patch
'@launchpad-ui/snackbar': patch
'@launchpad-ui/tab-list': patch
'@launchpad-ui/counter': patch
'@launchpad-ui/popover': patch
'@launchpad-ui/tooltip': patch
'@launchpad-ui/avatar': patch
'@launchpad-ui/banner': patch
'@launchpad-ui/button': patch
'@launchpad-ui/drawer': patch
'@launchpad-ui/filter': patch
'@launchpad-ui/slider': patch
'@launchpad-ui/toggle': patch
'@launchpad-ui/tokens': patch
'@launchpad-ui/alert': patch
'@launchpad-ui/icons': patch
'@launchpad-ui/modal': patch
'@launchpad-ui/table': patch
'@launchpad-ui/toast': patch
'@launchpad-ui/chip': patch
'@launchpad-ui/core': patch
---

Update nonmajor versions across framework
14 changes: 7 additions & 7 deletions apps/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@
"@react-aria/ssr": "3.4.0",
"@react-stately/collections": "3.5.0",
"@react-stately/data": "3.8.1",
"@remix-run/node": "^1.8.0",
"@remix-run/react": "^1.8.0",
"@remix-run/serve": "^1.8.0",
"@remix-run/node": "^1.10.0",
"@remix-run/react": "^1.10.0",
"@remix-run/serve": "^1.10.0",
"isbot": "^3.6.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@remix-run/dev": "^1.8.0",
"@remix-run/eslint-config": "^1.8.0",
"eslint": "^8.29.0",
"@remix-run/dev": "^1.10.0",
"@remix-run/eslint-config": "^1.10.0",
"eslint": "^8.31.0",
"typescript": "^4.9.3"
},
"engines": {
"node": ">=v18.12.0"
"node": ">=v18.13.0"
}
}
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"devDependencies": {
"@babel/core": "^7.20.2",
"@changesets/changelog-github": "^0.4.4",
"@changesets/cli": "^2.25.0",
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@changesets/cli": "^2.26.0",
"@commitlint/cli": "^17.4.1",
"@commitlint/config-conventional": "^17.4.0",
"@cypress/code-coverage": "^3.10.0",
"@etchteam/storybook-addon-status": "^4.2.1",
"@storybook/addon-a11y": "^7.0.0-beta.11",
Expand All @@ -70,24 +70,24 @@
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/testing-library__jest-dom": "^5.14.3",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@vitejs/plugin-react": "^2.2.0",
"@vitest/coverage-c8": "^0.25.1",
"@vitest/ui": "^0.25.1",
"axe-core": "^4.5.0",
"chromatic": "^6.11.2",
"@vitest/coverage-c8": "^0.27.0",
"@vitest/ui": "^0.27.0",
"axe-core": "^4.6.2",
"chromatic": "^6.14.0",
"concurrently": "^7.6.0",
"cypress": "^12.2.0",
"cypress": "^12.3.0",
"cypress-axe": "^1.2.0",
"cypress-real-events": "^1.7.6",
"deepmerge": "^4.2.2",
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.5.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-functional": "^5.0.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-jsx-a11y": "^6.7.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-react-hooks": "^4.6.0",
Expand All @@ -96,11 +96,11 @@
"husky": "^8.0.1",
"jsdom": "^21.0.0",
"lint-staged": "^13.1.0",
"nx": "^15.2.1",
"nx": "^15.4.5",
"nyc": "^15.1.0",
"plop": "^3.1.1",
"postcss": "^8.4.16",
"postcss-import": "^15.0.0",
"postcss-import": "^15.1.0",
"postcss-nested": "^6.0.0",
"postcss-preset-env": "^8.0.1",
"prettier": "^2.8.0",
Expand All @@ -116,10 +116,10 @@
"vite": "^3.2.0",
"vite-plugin-istanbul": "^4.0.0",
"vite-plugin-turbosnap": "^1.0.1",
"vitest": "^0.25.1",
"vitest": "^0.27.0",
"wait-on": "^7.0.1"
},
"packageManager": "pnpm@7.18.0",
"packageManager": "pnpm@7.24.2",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
Expand Down
15 changes: 8 additions & 7 deletions packages/clipboard/__tests__/CopyToClipboard.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import { it, expect, describe, vi } from 'vitest';
import { render, screen, userEvent, waitFor } from '../../../test/utils';
import { CopyToClipboard } from '../src';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.navigator = { clipboard: { writeText: vi.fn() } };

const createComponent = ({ children, ...rest }: Partial<CopyToClipboardProps>) => (
<CopyToClipboard
text="Copy content"
Expand All @@ -26,10 +22,12 @@ describe('CopyToClipboard', () => {
it('copies text when clicked on', async () => {
const user = userEvent.setup();

const spy = vi.spyOn(window.navigator.clipboard, 'writeText');

render(createComponent({}));

await user.click(screen.getByRole('button'));
expect(navigator.clipboard.writeText).toHaveBeenCalledWith('Copy content');
await user.click(screen.getByTestId('copy-code-button'));
expect(spy).toHaveBeenCalledWith('Copy content');
});

it('handles MouseEnter and MouseLeave', async () => {
Expand Down Expand Up @@ -98,10 +96,13 @@ describe('CopyToClipboard', () => {
};

const user = userEvent.setup();

const spy = vi.spyOn(window.navigator.clipboard, 'writeText');

render(<WrappedComponent />);

await user.click(screen.getByTestId('wrapper'));
expect(navigator.clipboard.writeText).toHaveBeenCalledWith('Copy content');
expect(spy).toHaveBeenCalledWith('Copy content');
});

it('renders a button when asChild is false', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@launchpad-ui/tokens": "workspace:~",
"classix": "2.1.17",
"isomorphic-dompurify": "^0.24.0",
"isomorphic-dompurify": "^0.26.0",
"marked": "^4.2.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"test": "vitest run --coverage"
},
"dependencies": {
"@floating-ui/core": "1.0.0",
"@floating-ui/dom": "1.0.0",
"@floating-ui/core": "1.2.1",
"@floating-ui/dom": "1.2.1",
"@launchpad-ui/focus-trap": "workspace:~",
"@launchpad-ui/overlay": "workspace:~",
"@launchpad-ui/tokens": "workspace:~",
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
},
"devDependencies": {
"style-dictionary": "^3.7.0",
"yaml": "^2.1.0"
"yaml": "^2.2.1"
}
}