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: update dev dependencies #860

Merged
merged 4 commits into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/neat-ears-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@launchpad-ui/snackbar': patch
'@launchpad-ui/banner': patch
'@launchpad-ui/drawer': patch
'@launchpad-ui/alert': patch
'@launchpad-ui/toast': patch
'@launchpad-ui/core': patch
---

Update dev dependencies
2 changes: 1 addition & 1 deletion .plop/templates/component/story.tsx.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
description: '{{description}}',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__{{constantCase name}},
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__{{constantCase name}},
},
},
};
Expand Down
33 changes: 18 additions & 15 deletions .storybook/main.js → .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
const path = require('path');
const fs = require('fs');
import type { StorybookConfig } from '@storybook/react-vite';

const fg = require('fast-glob');
const turbosnap = require('vite-plugin-turbosnap');
import path from 'path';
import fs from 'fs';
import fg from 'fast-glob';
import turbosnap from 'vite-plugin-turbosnap';

const tsconfig = require('../tsconfig.json');
import tsconfig from '../tsconfig.json';

const getStories = () =>
fg.sync([path.resolve(__dirname, `../packages/**/stories/*.stories.tsx`), '!**/node_modules']);

module.exports = {
stories: async () => [...getStories()],
const config: StorybookConfig = {
stories: [...getStories()],
features: {
/*
* CSS order issues occur when async chunks are used
Expand All @@ -24,11 +25,11 @@ module.exports = {
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-addon-pseudo-states',
//'@etchteam/storybook-addon-status',
'@etchteam/storybook-addon-status',
],
framework: {
name: '@storybook/react-vite',
options: { fastRefresh: true },
framework: '@storybook/react-vite',
core: {
disableTelemetry: true,
},
staticDirs: ['.'],
env: (config) => {
Expand All @@ -38,13 +39,13 @@ module.exports = {
},
async viteFinal(config, { configType }) {
if (configType === 'PRODUCTION') {
config.plugins.push(turbosnap({ rootDir: config.root }));
config.plugins?.push(turbosnap({ rootDir: config.root || process.cwd() }));
}

return config;
},
docs: {
docsPage: 'automatic',
autodocs: true,
defaultName: 'Docs',
},
};
Expand All @@ -56,10 +57,12 @@ const getPackageStatusEnvVars = () => {
Object.keys(paths).forEach((key) => {
const filepath = path.resolve(__dirname, `.${paths[key][0]}/../package.json`);
const contents = fs.readFileSync(filepath);
const { status } = JSON.parse(contents);
const { status } = JSON.parse(contents.toString());
const statusKey = key.replace('@launchpad-ui/', '').replace(/-/g, '_').toUpperCase();
statuses[`PACKAGE_STATUS__${statusKey}`] = status;
statuses[`STORYBOOK_PACKAGE_STATUS__${statusKey}`] = status;
});

return statuses;
};

export default config;
File renamed without changes.
2 changes: 2 additions & 0 deletions apps/remix/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from '@remix-run/react';

import launchpadStyles from '@launchpad-ui/tokens/index.css';
import themeStyles from '@launchpad-ui/tokens/themes.css';
import globalStyles from './styles/global.css';

// plop start imports
Expand Down Expand Up @@ -50,6 +51,7 @@ import tooltipStyles from '@launchpad-ui/tooltip/style.css';
export const links: LinksFunction = () => {
return [
{ rel: 'stylesheet', href: launchpadStyles },
{ rel: 'stylesheet', href: themeStyles },
{ rel: 'stylesheet', href: globalStyles },
{ rel: 'stylesheet', href: buttonStyles },
{ rel: 'stylesheet', href: iconStyles },
Expand Down
12 changes: 6 additions & 6 deletions apps/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@
"@react-aria/ssr": "3.4.0",
"@react-stately/collections": "3.5.1",
"@react-stately/data": "3.8.1",
"@remix-run/node": "^1.10.0",
"@remix-run/react": "^1.10.0",
"@remix-run/serve": "^1.10.0",
"@remix-run/node": "^1.16.1",
"@remix-run/react": "^1.16.1",
"@remix-run/serve": "^1.16.1",
"isbot": "^3.6.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@remix-run/dev": "^1.10.0",
"@remix-run/eslint-config": "^1.10.0",
"@remix-run/dev": "^1.16.1",
"@remix-run/eslint-config": "^1.16.1",
"eslint": "^8.31.0",
"typescript": "^4.9.3"
"typescript": "^5.0.4"
},
"engines": {
"node": ">=v18.13.0"
Expand Down
103 changes: 42 additions & 61 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,47 @@
},
"homepage": "https://github.com/launchdarkly/launchpad-ui#readme",
"devDependencies": {
"@babel/core": "^7.20.2",
"@changesets/changelog-github": "^0.4.4",
"@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",
"@storybook/addon-essentials": "^7.0.0-beta.11",
"@storybook/addon-interactions": "^7.0.0-beta.11",
"@storybook/addons": "^7.0.0-beta.11",
"@storybook/api": "^7.0.0-beta.11",
"@storybook/cli": "^7.0.0-beta.11",
"@storybook/client-api": "^7.0.0-beta.11",
"@storybook/client-logger": "^7.0.0-beta.11",
"@storybook/components": "^7.0.0-beta.11",
"@storybook/core-client": "^7.0.0-beta.11",
"@storybook/core-events": "^7.0.0-beta.11",
"@storybook/react": "^7.0.0-beta.11",
"@storybook/react-vite": "^7.0.0-beta.11",
"@storybook/testing-library": "^0.0.13",
"@storybook/theming": "^7.0.0-beta.11",
"@storybook/types": "^7.0.0-beta.11",
"@testing-library/dom": "^8.19.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.2",
"@etchteam/storybook-addon-status": "^4.2.4",
"@storybook/addon-a11y": "^7.0.18",
"@storybook/addon-essentials": "^7.0.18",
"@storybook/addon-interactions": "^7.0.18",
"@storybook/addons": "^7.0.18",
"@storybook/api": "^7.0.18",
"@storybook/cli": "^7.0.18",
"@storybook/client-api": "^7.0.18",
"@storybook/client-logger": "^7.0.18",
"@storybook/components": "^7.0.18",
"@storybook/core-client": "^7.0.18",
"@storybook/core-events": "^7.0.18",
"@storybook/react": "^7.0.18",
"@storybook/react-vite": "^7.0.18",
"@storybook/testing-library": "^0.1.0",
"@storybook/theming": "^7.0.18",
"@storybook/types": "^7.0.18",
"@testing-library/dom": "^9.3.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/node": "^18.11.8",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/testing-library__jest-dom": "^5.14.3",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@vitejs/plugin-react": "^2.2.0",
"@vitest/coverage-c8": "^0.27.0",
"@vitest/ui": "^0.27.0",
"axe-core": "^4.6.2",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vitejs/plugin-react-swc": "^3.3.1",
"@vitest/coverage-c8": "^0.31.4",
"@vitest/ui": "^0.31.4",
"axe-core": "^4.7.2",
"chromatic": "^6.14.0",
"concurrently": "^7.6.0",
"cypress": "^12.3.0",
"cypress-axe": "^1.2.0",
"cypress-real-events": "^1.7.6",
"concurrently": "^8.1.0",
"cypress": "^12.13.0",
"cypress-axe": "^1.4.0",
"cypress-real-events": "^1.8.1",
"deepmerge": "^4.2.2",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
Expand All @@ -103,46 +102,28 @@
"postcss-import": "^15.1.0",
"postcss-nested": "^6.0.0",
"postcss-preset-env": "^8.0.1",
"prettier": "^2.8.0",
"prettier": "^2.8.8",
"react": "18.2.0",
"react-dom": "18.2.0",
"storybook-addon-pseudo-states": "^1.15.2",
"stylelint": "^15.2.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^29.0.0",
"storybook-addon-pseudo-states": "^2.0.1",
"stylelint": "^15.6.2",
"stylelint-config-standard": "^33.0.0",
"stylelint-value-no-unknown-custom-properties": "^4.0.0",
"typescript": "^4.9.3",
"typescript": "^5.0.4",
"typescript-plugin-css-modules": "^5.0.1",
"vite": "^3.2.0",
"vite-plugin-istanbul": "^4.0.0",
"vite-plugin-turbosnap": "^1.0.1",
"vitest": "^0.27.0",
"vite": "^4.3.9",
"vite-plugin-istanbul": "^4.1.0",
"vite-plugin-turbosnap": "^1.0.2",
"vitest": "^0.31.4",
"wait-on": "^7.0.1"
},
"packageManager": "pnpm@8.0.0",
"packageManager": "pnpm@8.6.0",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@babel/preset-env",
"babel-loader",
"jest-specific-snapshot",
"require-from-string",
"webpack"
],
"allowedVersions": {
"@storybook/addons": "7",
"@storybook/api": "7",
"@storybook/components": "7",
"@storybook/core-events": "7",
"@storybook/theming": "7",
"cypress": "11",
"react": "18",
"react-dom": "18"
"stylelint": "15"
}
},
"overrides": {
"@vitejs/plugin-react": "^2.2.0",
"vite": "^3.2.0"
}
},
"browserslist": [
Expand Down
2 changes: 1 addition & 1 deletion packages/alert/src/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Alert = ({
icon={<Close size="small" />}
kind="close"
onClick={() => setDismissedState(true)}
data-test-id={testId ? `${testId}-dismiss-button` : undefined}
data-test-id={`${testId}-dismiss-button`}
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/alert/stories/Alert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
description: 'Actions trigger alerts based on user interaction.',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__ALERT,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__ALERT,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/avatar/stories/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
description: 'An element that represents a user visually.',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__AVATAR,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__AVATAR,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/banner/src/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Banner = ({
size="small"
onClick={onDismiss}
kind="close"
data-test-id={testId ? `${testId}-dismiss-button` : undefined}
data-test-id={`${testId}-dismiss-button`}
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/banner/stories/Banner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
description: 'Banners contain a system-wide message or status.',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__BANNER,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__BANNER,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/button/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
decorators: [buttonTemplateWithStates],
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__BUTTON,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__BUTTON,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/button/stories/ButtonGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
decorators: [buttonTemplateWithStates],
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__BUTTON,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__BUTTON,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/button/stories/IconButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
decorators: [buttonTemplateWithStates],
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__BUTTON,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__BUTTON,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/button/stories/UploadButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
description: 'UploadButtons trigger a native file upload experience.',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__BUTTON,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__BUTTON,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/chip/stories/Chip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
description: 'Chips can be used as visual indicators for tags.',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__CHIP,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__CHIP,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/clipboard/stories/CopyToClipboard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
description: 'Clipboards copy text to the clipboard.',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__CLIPBOARD,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__CLIPBOARD,
},
},
argTypes: {
Expand Down
2 changes: 1 addition & 1 deletion packages/collapsible/stories/Collapsible.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
'A progressive disclosure component that allows the user to to click a trigger to show more content',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__COLLAPSIBLE,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__COLLAPSIBLE,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion packages/counter/stories/Counter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
description: 'Indicates the count value of a resource.',
parameters: {
status: {
type: import.meta.env.PACKAGE_STATUS__COUNTER,
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__COUNTER,
},
},
argTypes: {
Expand Down
Loading