diff --git a/apps/nextjs13-approuter/package.json b/apps/nextjs13-approuter/package.json index 7f3aa2929..3852a66bf 100644 --- a/apps/nextjs13-approuter/package.json +++ b/apps/nextjs13-approuter/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@washingtonpost/wpds-kitchen-sink": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "next": "13.5.6", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/apps/nextjs13-pagerouter/package.json b/apps/nextjs13-pagerouter/package.json index 7d1126d2e..a6c721197 100644 --- a/apps/nextjs13-pagerouter/package.json +++ b/apps/nextjs13-pagerouter/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@washingtonpost/wpds-kitchen-sink": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "next": "13.5.6", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/apps/nextjs14-approuter/package.json b/apps/nextjs14-approuter/package.json index 3e154e03b..b255e287a 100644 --- a/apps/nextjs14-approuter/package.json +++ b/apps/nextjs14-approuter/package.json @@ -9,8 +9,8 @@ "lint": "next lint" }, "dependencies": { - "@washingtonpost/wpds-kitchen-sink": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-kitchen-sink": "npm:wpds-kitchen-sink@*", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "next": "14.0.3", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/apps/nextjs14-pagerouter/package.json b/apps/nextjs14-pagerouter/package.json index 6d2a2eacc..09aa172b3 100644 --- a/apps/nextjs14-pagerouter/package.json +++ b/apps/nextjs14-pagerouter/package.json @@ -4,13 +4,13 @@ "private": true, "scripts": { "dev": "next dev", - "build-no": "next build", + "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { - "@washingtonpost/wpds-kitchen-sink": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-kitchen-sink": "^2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "next": "14.0.3", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/build.washingtonpost.com/next.config.js b/build.washingtonpost.com/next.config.js index f9784b0ff..37a9900aa 100644 --- a/build.washingtonpost.com/next.config.js +++ b/build.washingtonpost.com/next.config.js @@ -102,4 +102,12 @@ module.exports = withBundleAnalyzer({ }, ]; }, + experimental: { + bundlePagesExternals: true, + optimizePackageImports: [ + "@washingtonpost/wpds-ui-kit", + "@washingtonpost/wpds-assets", + "@washingtonpost/media-components", + ], + }, }); diff --git a/build.washingtonpost.com/package.json b/build.washingtonpost.com/package.json index 50ec50af7..d0f81442d 100644 --- a/build.washingtonpost.com/package.json +++ b/build.washingtonpost.com/package.json @@ -30,7 +30,7 @@ "@washingtonpost/wpds-kitchen-sink": "2.0.0", "@washingtonpost/wpds-tailwind-theme": "2.0.0", "@washingtonpost/wpds-tokens": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "fuse.js": "^6.6.2", "gray-matter": "^4.0.2", "lz-string": "^1.4.4", diff --git a/package-lock.json b/package-lock.json index ae72b02b8..c47a2f3a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -70,18 +70,21 @@ "playwright": "^1.40.1", "plop": "^3.0.5", "prettier": "^2.5.1", + "publint": "^0.2.7", "react": "^18.2.0", "react-docgen-typescript": "^2.2.2", "react-dom": "^18.2.0", "storybook": "^7.6.3", "storybook-dark-mode": "^3.0.3", "ts-jest": "^29.1.1", - "tsup": "5.11.13", + "tsup": "8.0.2", "turbo": "^1.11.1", "typescript": "4.5.5", "webpack": "^5.88.2" }, "optionalDependencies": { + "@esbuild/linux-x64": "^0.20.2", + "@rollup/rollup-linux-x64-gnu": "^4.17.2", "esbuild-android-64": "0.14.25", "esbuild-android-arm64": "0.15.5", "esbuild-darwin-64": "0.14.25", @@ -114,7 +117,7 @@ "version": "2.0.0", "dependencies": { "@washingtonpost/wpds-kitchen-sink": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "next": "13.5.6", "react": "^18.2.0", "react-dom": "^18.2.0" @@ -124,18 +127,39 @@ "version": "13.5.6", "license": "MIT" }, - "apps/nextjs13-approuter/node_modules/@next/swc-darwin-x64": { - "version": "13.5.6", - "cpu": [ - "x64" - ], + "apps/nextjs13-approuter/node_modules/@washingtonpost/wpds-ui-kit": { + "version": "2.0.0", "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" + "dependencies": { + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" } }, "apps/nextjs13-approuter/node_modules/next": { @@ -212,7 +236,7 @@ "version": "2.0.0", "dependencies": { "@washingtonpost/wpds-kitchen-sink": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "next": "13.5.6", "react": "^18.2.0", "react-dom": "^18.2.0" @@ -222,18 +246,39 @@ "version": "13.5.6", "license": "MIT" }, - "apps/nextjs13-pagerouter/node_modules/@next/swc-darwin-x64": { - "version": "13.5.6", - "cpu": [ - "x64" - ], + "apps/nextjs13-pagerouter/node_modules/@washingtonpost/wpds-ui-kit": { + "version": "2.0.0", "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" + "dependencies": { + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" } }, "apps/nextjs13-pagerouter/node_modules/next": { @@ -309,54 +354,63 @@ "apps/nextjs14-approuter": { "version": "2.0.0", "dependencies": { - "@washingtonpost/wpds-kitchen-sink": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-kitchen-sink": "npm:wpds-kitchen-sink@*", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "next": "14.0.3", "react": "^18.2.0", "react-dom": "^18.2.0" } }, - "apps/nextjs14-pagerouter": { + "apps/nextjs14-approuter/node_modules/@washingtonpost/wpds-ui-kit": { "version": "2.0.0", + "license": "MIT", "dependencies": { - "@washingtonpost/wpds-kitchen-sink": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", - "next": "14.0.3", + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" } }, - "apps/vite-project": { - "version": "1.24.0", - "extraneous": true, + "apps/nextjs14-pagerouter": { + "version": "2.0.0", "dependencies": { - "@washingtonpost/wpds-kitchen-sink": "1.24.0", - "@washingtonpost/wpds-ui-kit": "1.24.0", + "@washingtonpost/wpds-kitchen-sink": "^2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", + "next": "14.0.3", "react": "^18.2.0", "react-dom": "^18.2.0" - }, - "devDependencies": { - "@types/react": "^18.0.27", - "@types/react-dom": "^18.0.10", - "@vitejs/plugin-react": "^3.1.0", - "vite": "^4.1.0" } }, - "apps/vite-v2-project": { - "version": "1.24.0", - "extraneous": true, - "dependencies": { - "@washingtonpost/wpds-kitchen-sink": "1.24.0", - "@washingtonpost/wpds-ui-kit": "1.24.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, - "devDependencies": { - "@types/react": "^18.0.0", - "@types/react-dom": "^18.0.0", - "@vitejs/plugin-react": "^1.3.0", - "vite": "^2.9.15" - } + "apps/wpds-kitchen-sink": { + "extraneous": true + }, + "apps/wpds-ui-kit": { + "extraneous": true }, "build.washingtonpost.com": { "name": "@washingtonpost/wpds-docs", @@ -381,7 +435,7 @@ "@washingtonpost/wpds-kitchen-sink": "2.0.0", "@washingtonpost/wpds-tailwind-theme": "2.0.0", "@washingtonpost/wpds-tokens": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "fuse.js": "^6.6.2", "gray-matter": "^4.0.2", "lz-string": "^1.4.4", @@ -429,6 +483,41 @@ "dev": true, "license": "MIT" }, + "build.washingtonpost.com/node_modules/@washingtonpost/wpds-ui-kit": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, "build.washingtonpost.com/node_modules/eslint": { "version": "8.9.0", "dev": true, @@ -2932,6 +3021,22 @@ "react": ">=16.8.0" } }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", + "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/android-arm": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", @@ -2982,12 +3087,11 @@ }, "node_modules/@esbuild/darwin-arm64": { "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", - "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -2998,11 +3102,12 @@ }, "node_modules/@esbuild/darwin-x64": { "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -3091,6 +3196,22 @@ "node": ">=12" } }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/linux-mips64el": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", @@ -3156,13 +3277,12 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", - "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz", + "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==", "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -5754,11 +5874,10 @@ }, "node_modules/@next/swc-darwin-arm64": { "version": "14.0.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.0.3.tgz", - "integrity": "sha512-64JbSvi3nbbcEtyitNn2LEDS/hcleAFpHdykpcnrstITFlzFgB/bW0ER5/SJJwUPj+ZPY+z3e+1jAfcczRLVGw==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "darwin" @@ -5769,10 +5888,11 @@ }, "node_modules/@next/swc-darwin-x64": { "version": "14.0.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.0.3.tgz", + "integrity": "sha512-RkTf+KbAD0SgYdVn1XzqE/+sIxYGB7NLMZRn9I4Z24afrhUpVJx6L8hsRnIwxz3ERE2NFURNliPjJ2QNfnWicQ==", "cpu": [ "x64" ], - "license": "MIT", "optional": true, "os": [ "darwin" @@ -6763,7 +6883,8 @@ }, "node_modules/@radix-ui/react-avatar": { "version": "1.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.0.4.tgz", + "integrity": "sha512-kVK2K7ZD3wwj3qhle0ElXhOjbezIgyl2hVvgwfIdexL3rN6zJmy5AqqIf+D31lxVppdzV8CjAfZ6PklkmInZLw==", "dependencies": { "@babel/runtime": "^7.13.10", "@radix-ui/react-context": "1.0.1", @@ -8285,7 +8406,8 @@ }, "node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-roving-focus": { "version": "1.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.4.tgz", + "integrity": "sha512-2mUg5Mgcu001VkGy+FfzZyzbmuUWzgWkj3rvv4yu+mLw03+mTzbxZHvfcGyFp2b8EkQeMkpRQ5FiA2Vr2O6TeQ==", "dependencies": { "@babel/runtime": "^7.13.10", "@radix-ui/primitive": "1.0.1", @@ -8843,6 +8965,30 @@ "react": ">=16.8" } }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.17.2", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.17.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.17.2.tgz", + "integrity": "sha512-Hy7pLwByUOuyaFC6mAr7m+oMC+V7qyifzs/nW2OJfC8H4hbCzOX07Ov0VFk/zP3kBsELWNFi7rJtgbKYsav9QQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, "node_modules/@rushstack/eslint-patch": { "version": "1.10.1", "dev": true, @@ -9219,12 +9365,12 @@ "url": "https://opencollective.com/storybook" } }, - "node_modules/@storybook/builder-manager/node_modules/@esbuild/linux-loong64": { + "node_modules/@storybook/builder-manager/node_modules/@esbuild/linux-x64": { "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", "cpu": [ - "loong64" + "x64" ], "dev": true, "optional": true, @@ -9744,12 +9890,12 @@ "url": "https://opencollective.com/storybook" } }, - "node_modules/@storybook/core-common/node_modules/@esbuild/linux-loong64": { + "node_modules/@storybook/core-common/node_modules/@esbuild/linux-x64": { "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", "cpu": [ - "loong64" + "x64" ], "dev": true, "optional": true, @@ -10958,21 +11104,6 @@ } } }, - "node_modules/@swc/core-darwin-x64": { - "version": "1.4.13", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } - }, "node_modules/@swc/counter": { "version": "0.1.3", "dev": true, @@ -11030,9 +11161,9 @@ } }, "node_modules/@testing-library/dom": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.0.0.tgz", - "integrity": "sha512-PmJPnogldqoVFf+EwbHvbBJ98MmqASV8kLrBYgsDNxQcFMeIS7JFL48sfyXvuMtgmWO/wMhh25odr+8VhDmn4g==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.1.0.tgz", + "integrity": "sha512-wdsYKy5zupPyLCW2Je5DLHSxSfbIp6h80WoHOQc+RPtmPGA52O9x5MJEkv92Sjonpq+poOAtUKhh1kBGAXBrNA==", "dev": true, "dependencies": { "@babel/code-frame": "^7.10.4", @@ -11049,9 +11180,9 @@ } }, "node_modules/@testing-library/jest-dom": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.4.2.tgz", - "integrity": "sha512-CzqH0AFymEMG48CpzXFriYYkOjk6ZGPCLMhW9e9jg3KMCn5OfJecF8GtGW7yGfR/IgCe3SX8BSwjdzI6BBbZLw==", + "version": "6.4.5", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.4.5.tgz", + "integrity": "sha512-AguB9yvTXmCnySBP1lWjfNNUwpbElsaQ567lt2VdGqAdHtpieLgjmcVyv1q7PMIvLbgpDdkWV5Ydv3FEejyp2A==", "dev": true, "dependencies": { "@adobe/css-tools": "^4.3.2", @@ -11060,7 +11191,7 @@ "chalk": "^3.0.0", "css.escape": "^1.5.1", "dom-accessibility-api": "^0.6.3", - "lodash": "^4.17.15", + "lodash": "^4.17.21", "redent": "^3.0.0" }, "engines": { @@ -11111,21 +11242,27 @@ "license": "MIT" }, "node_modules/@testing-library/react": { - "version": "14.3.0", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-14.3.0.tgz", - "integrity": "sha512-AYJGvNFMbCa5vt1UtDCa/dcaABrXq8gph6VN+cffIx0UeA0qiGqS+sT60+sb+Gjc8tGXdECWYQgaF0khf8b+Lg==", + "version": "15.0.6", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-15.0.6.tgz", + "integrity": "sha512-UlbazRtEpQClFOiYp+1BapMT+xyqWMnE+hh9tn5DQ6gmlE7AIZWcGpzZukmDZuFk3By01oiqOf8lRedLS4k6xQ==", "dev": true, "dependencies": { "@babel/runtime": "^7.12.5", - "@testing-library/dom": "^9.0.0", + "@testing-library/dom": "^10.0.0", "@types/react-dom": "^18.0.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { + "@types/react": "^18.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, "node_modules/@testing-library/react-hooks": { @@ -11158,32 +11295,6 @@ } } }, - "node_modules/@testing-library/react/node_modules/@testing-library/dom": { - "version": "9.3.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "5.1.3", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.5.0", - "pretty-format": "^27.0.2" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@testing-library/react/node_modules/aria-query": { - "version": "5.1.3", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "deep-equal": "^2.0.5" - } - }, "node_modules/@testing-library/user-event": { "version": "14.5.2", "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.5.2.tgz", @@ -12083,6 +12194,42 @@ "react-dom": "^18.2.0" } }, + "node_modules/@washingtonpost/site-footer/node_modules/@washingtonpost/wpds-ui-kit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-ui-kit/-/wpds-ui-kit-2.0.0.tgz", + "integrity": "sha512-fdZ1AIF/YLFzMjCxMLRrm9Zm4uavj1U3Foisppdmt8DhkG4X5TQPhg4o8zfuOlH/aptTQbJbzPK2szxt9Jnvow==", + "dependencies": { + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, "node_modules/@washingtonpost/site-user-data": { "version": "0.6.2-alpha.2", "dependencies": { @@ -12252,8 +12399,7 @@ }, "node_modules/@washingtonpost/wpds-accordion/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12284,8 +12430,7 @@ }, "node_modules/@washingtonpost/wpds-action-menu/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12319,8 +12464,7 @@ }, "node_modules/@washingtonpost/wpds-alert-banner/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12344,8 +12488,7 @@ }, "node_modules/@washingtonpost/wpds-assets": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-2.0.0.tgz", - "integrity": "sha512-ZYXOv5rEEq3A+BT3izaJdTTf/x1rMkRSKjVS6jwJ+YGVifp1fUPTB9fGPRxCxEnWTRjo0a+xXIe0tUK36YvjEw==", + "license": "ISC", "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" @@ -12428,8 +12571,7 @@ }, "node_modules/@washingtonpost/wpds-carousel/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12465,8 +12607,7 @@ }, "node_modules/@washingtonpost/wpds-checkbox/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12507,8 +12648,7 @@ }, "node_modules/@washingtonpost/wpds-dialog/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12557,8 +12697,7 @@ }, "node_modules/@washingtonpost/wpds-drawer/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12646,8 +12785,7 @@ }, "node_modules/@washingtonpost/wpds-input-password/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12681,8 +12819,7 @@ }, "node_modules/@washingtonpost/wpds-input-search/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12735,8 +12872,7 @@ }, "node_modules/@washingtonpost/wpds-input-text/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12815,8 +12951,7 @@ }, "node_modules/@washingtonpost/wpds-popover/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12886,8 +13021,7 @@ }, "node_modules/@washingtonpost/wpds-select/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -12931,8 +13065,7 @@ }, "node_modules/@washingtonpost/wpds-tabs/node_modules/@washingtonpost/wpds-assets": { "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-1.25.0.tgz", - "integrity": "sha512-g9JxI8HpuewHeJ75snMEo5JQwEH1ZC3GBEUshcUiKUoRjoL9+0XCvhKbW3zpcJHAnWF4nyt3S3t+/oDczGmJ8g==", + "license": "ISC", "dependencies": { "react": "^16.0.1 || ^17.0.2", "react-dom": "^16.0.1 || ^17.0.2" @@ -15179,17 +15312,17 @@ "license": "ISC" }, "node_modules/bundle-require": { - "version": "3.1.2", + "version": "4.1.0", "dev": true, "license": "MIT", "dependencies": { - "load-tsconfig": "^0.2.0" + "load-tsconfig": "^0.2.3" }, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "peerDependencies": { - "esbuild": ">=0.13" + "esbuild": ">=0.17" } }, "node_modules/busboy": { @@ -18147,10 +18280,11 @@ }, "node_modules/esbuild-darwin-64": { "version": "0.14.25", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.25.tgz", + "integrity": "sha512-TGp8tuudIxOyWd1+8aYPxQmC1ZQyvij/AfNBa35RubixD0zJ1vkKHVAzo0Zao1zcG6pNqiSyzfPto8vmg0s7oA==", "cpu": [ "x64" ], - "license": "MIT", "optional": true, "os": [ "darwin" @@ -18161,11 +18295,10 @@ }, "node_modules/esbuild-darwin-arm64": { "version": "0.14.25", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.25.tgz", - "integrity": "sha512-oTcDgdm0MDVEmw2DWu8BV68pYuImpFgvWREPErBZmNA4MYKGuBRaCiJqq6jZmBR1x+3y1DWCjez+5uLtuAm6mw==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "darwin" @@ -31184,6 +31317,25 @@ "dev": true, "license": "MIT" }, + "node_modules/publint": { + "version": "0.2.7", + "dev": true, + "license": "MIT", + "dependencies": { + "npm-packlist": "^5.1.3", + "picocolors": "^1.0.0", + "sade": "^1.8.1" + }, + "bin": { + "publint": "lib/cli.js" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://bjornlu.com/sponsor" + } + }, "node_modules/pug": { "version": "2.0.4", "dev": true, @@ -33333,19 +33485,44 @@ } }, "node_modules/rollup": { - "version": "2.79.1", + "version": "4.17.2", "dev": true, "license": "MIT", + "dependencies": { + "@types/estree": "1.0.5" + }, "bin": { "rollup": "dist/bin/rollup" }, "engines": { - "node": ">=10.0.0" + "node": ">=18.0.0", + "npm": ">=8.0.0" }, "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.17.2", + "@rollup/rollup-android-arm64": "4.17.2", + "@rollup/rollup-darwin-arm64": "4.17.2", + "@rollup/rollup-darwin-x64": "4.17.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.17.2", + "@rollup/rollup-linux-arm-musleabihf": "4.17.2", + "@rollup/rollup-linux-arm64-gnu": "4.17.2", + "@rollup/rollup-linux-arm64-musl": "4.17.2", + "@rollup/rollup-linux-powerpc64le-gnu": "4.17.2", + "@rollup/rollup-linux-riscv64-gnu": "4.17.2", + "@rollup/rollup-linux-s390x-gnu": "4.17.2", + "@rollup/rollup-linux-x64-gnu": "4.17.2", + "@rollup/rollup-linux-x64-musl": "4.17.2", + "@rollup/rollup-win32-arm64-msvc": "4.17.2", + "@rollup/rollup-win32-ia32-msvc": "4.17.2", + "@rollup/rollup-win32-x64-msvc": "4.17.2", "fsevents": "~2.3.2" } }, + "node_modules/rollup/node_modules/@types/estree": { + "version": "1.0.5", + "dev": true, + "license": "MIT" + }, "node_modules/rst-selector-parser": { "version": "2.2.3", "dev": true, @@ -35492,22 +35669,22 @@ "license": "0BSD" }, "node_modules/tsup": { - "version": "5.11.13", + "version": "8.0.2", "dev": true, "license": "MIT", "dependencies": { - "bundle-require": "^3.0.2", + "bundle-require": "^4.0.0", "cac": "^6.7.12", "chokidar": "^3.5.1", "debug": "^4.3.1", - "esbuild": "^0.14.2", + "esbuild": "^0.19.2", "execa": "^5.0.0", "globby": "^11.0.3", "joycon": "^3.0.1", - "postcss-load-config": "^3.0.1", + "postcss-load-config": "^4.0.1", "resolve-from": "^5.0.0", - "rollup": "^2.60.0", - "source-map": "^0.7.3", + "rollup": "^4.0.2", + "source-map": "0.8.0-beta.0", "sucrase": "^3.20.3", "tree-kill": "^1.2.2" }, @@ -35515,41 +35692,427 @@ "tsup": "dist/cli-default.js", "tsup-node": "dist/cli-node.js" }, + "engines": { + "node": ">=18" + }, "peerDependencies": { - "typescript": "^4.1.0" + "@microsoft/api-extractor": "^7.36.0", + "@swc/core": "^1", + "postcss": "^8.4.12", + "typescript": ">=4.5.0" }, "peerDependenciesMeta": { + "@microsoft/api-extractor": { + "optional": true + }, + "@swc/core": { + "optional": true + }, + "postcss": { + "optional": true + }, "typescript": { "optional": true } } }, - "node_modules/tsup/node_modules/postcss-load-config": { - "version": "3.1.4", + "node_modules/tsup/node_modules/@esbuild/android-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz", + "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/android-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz", + "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/android-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz", + "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/darwin-arm64": { + "version": "0.19.12", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", - "dependencies": { - "lilconfig": "^2.0.5", - "yaml": "^1.10.2" - }, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">= 10" + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/darwin-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz", + "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz", + "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/freebsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz", + "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz", + "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz", + "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz", + "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-loong64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz", + "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-mips64el": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz", + "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz", + "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-riscv64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz", + "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-s390x": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz", + "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/linux-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz", + "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/netbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz", + "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/openbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz", + "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/sunos-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz", + "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/win32-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz", + "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/win32-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz", + "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/@esbuild/win32-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz", + "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsup/node_modules/esbuild": { + "version": "0.19.12", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" + "engines": { + "node": ">=12" }, - "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.19.12", + "@esbuild/android-arm": "0.19.12", + "@esbuild/android-arm64": "0.19.12", + "@esbuild/android-x64": "0.19.12", + "@esbuild/darwin-arm64": "0.19.12", + "@esbuild/darwin-x64": "0.19.12", + "@esbuild/freebsd-arm64": "0.19.12", + "@esbuild/freebsd-x64": "0.19.12", + "@esbuild/linux-arm": "0.19.12", + "@esbuild/linux-arm64": "0.19.12", + "@esbuild/linux-ia32": "0.19.12", + "@esbuild/linux-loong64": "0.19.12", + "@esbuild/linux-mips64el": "0.19.12", + "@esbuild/linux-ppc64": "0.19.12", + "@esbuild/linux-riscv64": "0.19.12", + "@esbuild/linux-s390x": "0.19.12", + "@esbuild/linux-x64": "0.19.12", + "@esbuild/netbsd-x64": "0.19.12", + "@esbuild/openbsd-x64": "0.19.12", + "@esbuild/sunos-x64": "0.19.12", + "@esbuild/win32-arm64": "0.19.12", + "@esbuild/win32-ia32": "0.19.12", + "@esbuild/win32-x64": "0.19.12" + } + }, + "node_modules/tsup/node_modules/source-map": { + "version": "0.8.0-beta.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "whatwg-url": "^7.0.0" }, - "peerDependenciesMeta": { - "postcss": { - "optional": true - }, - "ts-node": { - "optional": true - } + "engines": { + "node": ">= 8" } }, "node_modules/tsutils": { @@ -35605,10 +36168,11 @@ }, "node_modules/turbo-darwin-64": { "version": "1.11.1", + "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.11.1.tgz", + "integrity": "sha512-JmwL8kcfxncDf2SZFioSa6dUvpMq/HbMcurh9mGm6BxWLQoB0d3fP/q3HizgCSbOE4ihScXoQ+c/C2xhl6Ngjg==", "cpu": [ "x64" ], - "license": "MPL-2.0", "optional": true, "os": [ "darwin" @@ -35616,11 +36180,10 @@ }, "node_modules/turbo-darwin-arm64": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.11.1.tgz", - "integrity": "sha512-lIpT7nPkU0xmpkI8VOGQcgoQKmUATRMpRhTDclz6j/Px7Qtxjc+2PitKHKfR3aCnseoRMGkgMzPEJTPUwCpnlQ==", "cpu": [ "arm64" ], + "license": "MPL-2.0", "optional": true, "os": [ "darwin" @@ -35676,11 +36239,12 @@ }, "node_modules/turbo/node_modules/turbo-darwin-64": { "version": "1.13.2", + "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.13.2.tgz", + "integrity": "sha512-CCSuD8CfmtncpohCuIgq7eAzUas0IwSbHfI8/Q3vKObTdXyN8vAo01gwqXjDGpzG9bTEVedD0GmLbD23dR0MLA==", "cpu": [ "x64" ], "dev": true, - "license": "MPL-2.0", "optional": true, "os": [ "darwin" @@ -35688,12 +36252,11 @@ }, "node_modules/turbo/node_modules/turbo-darwin-arm64": { "version": "1.13.2", - "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.13.2.tgz", - "integrity": "sha512-0HySm06/D2N91rJJ89FbiI/AodmY8B3WDSFTVEpu2+8spUw7hOJ8okWOT0e5iGlyayUP9gr31eOeL3VFZkpfCw==", "cpu": [ "arm64" ], "dev": true, + "license": "MPL-2.0", "optional": true, "os": [ "darwin" @@ -36684,12 +37247,12 @@ } } }, - "node_modules/vite/node_modules/@esbuild/linux-loong64": { + "node_modules/vite/node_modules/@esbuild/linux-x64": { "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", "cpu": [ - "loong64" + "x64" ], "dev": true, "optional": true, @@ -38059,6 +38622,41 @@ "@sinonjs/commons": "^1.7.0" } }, + "packages/eslint-plugin/node_modules/@washingtonpost/wpds-ui-kit": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, "packages/eslint-plugin/node_modules/ansi-styles": { "version": "5.2.0", "dev": true, @@ -38767,12 +39365,11 @@ "@washingtonpost/wpds-assets": "2.0.0", "match-sorter": "6.3.1", "nanoid": "^3.3.4", - "react": "^18.2.0", "react-swipeable": "^7.0.0", "react-transition-group": "^4.4.5" }, "devDependencies": { - "tsup": "5.11.13", + "tsup": "8.0.2", "typescript": "4.5.5" }, "peerDependencies": { @@ -38786,19 +39383,54 @@ "license": "MIT", "dependencies": { "@washingtonpost/wpds-assets": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "nanoid": "^3.3.4" }, "devDependencies": { - "tsup": "5.11.13", + "tsup": "8.0.2", "typescript": "4.5.5" }, "peerDependencies": { "@washingtonpost/wpds-assets": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0-alpha.10", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "react": "^18.2.0" } }, + "packages/kitchen-sink/node_modules/@washingtonpost/wpds-ui-kit": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, "packages/tailwind-theme": { "name": "@washingtonpost/wpds-tailwind-theme", "version": "2.0.0", @@ -38816,6 +39448,41 @@ "@washingtonpost/wpds-ui-kit": "2.0.0-alpha.10" } }, + "packages/tailwind-theme/node_modules/@washingtonpost/wpds-ui-kit": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, "packages/tokens": { "name": "@washingtonpost/wpds-tokens", "version": "2.0.0", @@ -38825,6 +39492,42 @@ "react": "^18.2.0", "react-dom": "^18.2.0" } + }, + "packages/tokens/node_modules/@washingtonpost/wpds-ui-kit": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "latest", + "@radix-ui/react-checkbox": "^1.0.0", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "2.0.3", + "@radix-ui/react-focus-scope": "^1.0.0", + "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-popover": "^1.0.2", + "@radix-ui/react-primitive": "^1.0.2", + "@radix-ui/react-radio-group": "^1.0.0", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.0", + "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-tabs": "latest", + "@radix-ui/react-tooltip": "^1.0.0", + "@radix-ui/react-use-controllable-state": "^1.0.1", + "@reach/combobox": "^0.18.0", + "@reach/popover": "^0.18.0", + "@stitches/react": "^1.2.8", + "@washingtonpost/wpds-assets": "2.0.0", + "match-sorter": "6.3.1", + "nanoid": "^3.3.4", + "react": "^18.2.0", + "react-swipeable": "^7.0.0", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } } } } diff --git a/package.json b/package.json index ab37d0e98..a8f03a2b7 100644 --- a/package.json +++ b/package.json @@ -56,18 +56,21 @@ "playwright": "^1.40.1", "plop": "^3.0.5", "prettier": "^2.5.1", + "publint": "^0.2.7", "react": "^18.2.0", "react-docgen-typescript": "^2.2.2", "react-dom": "^18.2.0", "storybook": "^7.6.3", "storybook-dark-mode": "^3.0.3", "ts-jest": "^29.1.1", - "tsup": "5.11.13", + "tsup": "8.0.2", "turbo": "^1.11.1", "typescript": "4.5.5", "webpack": "^5.88.2" }, "optionalDependencies": { + "@esbuild/linux-x64": "^0.20.2", + "@rollup/rollup-linux-x64-gnu": "^4.17.2", "esbuild-android-64": "0.14.25", "esbuild-android-arm64": "0.15.5", "esbuild-darwin-64": "0.14.25", diff --git a/packages/kit/package.json b/packages/kit/package.json index 917cc8d88..83deebff7 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -26,8 +26,9 @@ "build:transform": "node src/theme/build/transform.js", "build:createHex": "node src/theme/build/modules/createHex.js", "test": "echo \"Error: run tests from root\" && exit 1", - "build": "npm run build:transform && tsup src/index.ts --minify --format esm,cjs --dts --sourcemap --external react --legacy-output", - "dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react --legacy-output", + "build": "npm run build:transform && tsup && npm run build-types", + "build-types": "tsup src/index.ts --dts-only", + "dev": "tsup --watch", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" }, "bugs": { @@ -56,17 +57,30 @@ "@washingtonpost/wpds-assets": "2.0.0", "match-sorter": "6.3.1", "nanoid": "^3.3.4", - "react": "^18.2.0", "react-swipeable": "^7.0.0", "react-transition-group": "^4.4.5" }, "devDependencies": { - "tsup": "5.11.13", + "tsup": "8.0.2", "typescript": "4.5.5" }, "peerDependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" }, + "exports": { + ".": { + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, + "./src/theme/wpds.tokens.json": "./src/theme/wpds.tokens.json", + "./src/input-search/cities.json": "./src/input-search/cities.json" + }, "gitHead": "31c56dc13e81f793df44d9edd16420c7163b7163" } diff --git a/packages/kit/tsup.config.ts b/packages/kit/tsup.config.ts new file mode 100644 index 000000000..9e0c9d3b9 --- /dev/null +++ b/packages/kit/tsup.config.ts @@ -0,0 +1,19 @@ +import { defineConfig } from "tsup"; + +export default defineConfig({ + entry: [ + "src/**/*@(ts|tsx)", + "!src/**/*.test.(ts|tsx)", + "!src/**/*.stories.(ts|tsx)", + ], + legacyOutput: true, + clean: true, + format: ["cjs", "esm"], + outDir: "dist", + bundle: true, + minify: true, + sourcemap: true, + splitting: true, + target: "esnext", + treeshake: true, +}); diff --git a/packages/kitchen-sink/package.json b/packages/kitchen-sink/package.json index 6d7b6c3a3..30c5e72f2 100644 --- a/packages/kitchen-sink/package.json +++ b/packages/kitchen-sink/package.json @@ -32,17 +32,17 @@ "url": "https://github.com/washingtonpost/wpds-ui-kit/issues" }, "devDependencies": { - "tsup": "5.11.13", + "tsup": "8.0.2", "typescript": "4.5.5" }, "peerDependencies": { "@washingtonpost/wpds-assets": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0-alpha.10", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "react": "^18.2.0" }, "dependencies": { "@washingtonpost/wpds-assets": "2.0.0", - "@washingtonpost/wpds-ui-kit": "2.0.0", + "@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*", "nanoid": "^3.3.4" }, "gitHead": "31c56dc13e81f793df44d9edd16420c7163b7163" diff --git a/packages/tokens/scripts/build.mjs b/packages/tokens/scripts/build.mjs index a2dfb74cb..150697647 100644 --- a/packages/tokens/scripts/build.mjs +++ b/packages/tokens/scripts/build.mjs @@ -1,5 +1,5 @@ import React from "react"; -import { renderToString } from 'react-dom/server'; +import { renderToString } from "react-dom/server"; import { getCssText, darkTheme } from "@washingtonpost/wpds-ui-kit"; import fs from "fs"; diff --git a/templates/component-with-subcomponents/package.json.hbs b/templates/component-with-subcomponents/package.json.hbs index 45e6f1b16..10b0ea5d7 100644 --- a/templates/component-with-subcomponents/package.json.hbs +++ b/templates/component-with-subcomponents/package.json.hbs @@ -32,7 +32,7 @@ "url": "https://github.com/washingtonpost/wpds-ui-kit/issues" }, "devDependencies": { - "tsup": "5.11.13", + "tsup": "8.0.2", "typescript": "4.5.5" }, "peerDependencies": { diff --git a/templates/component/package.json.hbs b/templates/component/package.json.hbs index 45e6f1b16..10b0ea5d7 100644 --- a/templates/component/package.json.hbs +++ b/templates/component/package.json.hbs @@ -32,7 +32,7 @@ "url": "https://github.com/washingtonpost/wpds-ui-kit/issues" }, "devDependencies": { - "tsup": "5.11.13", + "tsup": "8.0.2", "typescript": "4.5.5" }, "peerDependencies": { diff --git a/tsconfig.base.json b/tsconfig.base.json index 9edf37dc8..318e930e7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,6 +1,5 @@ { "include": [ - "ui", "types", "scripts", "build.washingtonpost.com",