diff --git a/.pnp.cjs b/.pnp.cjs index 340527ac8..2e188a847 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -5956,7 +5956,7 @@ const RAW_RUNTIME_STATE = ["@types/react", "npm:18.2.42"],\ ["@types/react-dom", "npm:18.2.17"],\ ["@yarnpkg/pnpify", "npm:4.0.1"],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["acorn-jsx", "virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2"],\ ["eslint", "npm:8.55.0"],\ ["eslint-config-next", "virtual:c4e1b5de3c2221b63a822911bcf0be057e450c9772904486db938942efc684c035d907717e21ec2b40cde01712fe1164bb28cd81903edc8b86d34febd372a71c#npm:14.0.3"],\ @@ -9567,8 +9567,8 @@ const RAW_RUNTIME_STATE = ["@types/react", null],\ ["@types/react-dom", null],\ ["@types/typescript", null],\ - ["acorn", "npm:7.4.1"],\ - ["acorn-jsx", "virtual:386ab2791d3837b85271a556c915f3963b5d7c540dd309f3aef40fdb074e905793b5bf0bb73adbc70cf914081e1b9782c1e6bdfc4ce628ebbee749b1ac206e25#npm:5.3.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ + ["acorn-jsx", "virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2"],\ ["acorn-walk", "npm:7.2.0"],\ ["escodegen", "npm:2.1.0"],\ ["html-tags", "npm:3.3.1"],\ @@ -9609,8 +9609,8 @@ const RAW_RUNTIME_STATE = ["@types/react", "npm:18.2.42"],\ ["@types/react-dom", "npm:18.2.17"],\ ["@types/typescript", null],\ - ["acorn", "npm:7.4.1"],\ - ["acorn-jsx", "virtual:386ab2791d3837b85271a556c915f3963b5d7c540dd309f3aef40fdb074e905793b5bf0bb73adbc70cf914081e1b9782c1e6bdfc4ce628ebbee749b1ac206e25#npm:5.3.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ + ["acorn-jsx", "virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2"],\ ["acorn-walk", "npm:7.2.0"],\ ["escodegen", "npm:2.1.0"],\ ["html-tags", "npm:3.3.1"],\ @@ -9651,8 +9651,8 @@ const RAW_RUNTIME_STATE = ["@types/react", "npm:18.2.42"],\ ["@types/react-dom", "npm:18.2.17"],\ ["@types/typescript", null],\ - ["acorn", "npm:7.4.1"],\ - ["acorn-jsx", "virtual:386ab2791d3837b85271a556c915f3963b5d7c540dd309f3aef40fdb074e905793b5bf0bb73adbc70cf914081e1b9782c1e6bdfc4ce628ebbee749b1ac206e25#npm:5.3.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ + ["acorn-jsx", "virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2"],\ ["acorn-walk", "npm:7.2.0"],\ ["escodegen", "npm:2.1.0"],\ ["html-tags", "npm:3.3.1"],\ @@ -11748,17 +11748,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["acorn", [\ - ["npm:7.4.1", {\ - "packageLocation": "./.yarn/cache/acorn-npm-7.4.1-f450b4646c-bd0b2c2b0f.zip/node_modules/acorn/",\ - "packageDependencies": [\ - ["acorn", "npm:7.4.1"]\ - ],\ - "linkType": "HARD"\ - }],\ - ["npm:8.11.2", {\ - "packageLocation": "./.yarn/cache/acorn-npm-8.11.2-a470f49bb6-a3ed76c761.zip/node_modules/acorn/",\ + ["patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067", {\ + "packageLocation": "./.yarn/cache/acorn-patch-68739978fd-becd7f0f6c.zip/node_modules/acorn/",\ "packageDependencies": [\ - ["acorn", "npm:8.11.2"]\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"]\ ],\ "linkType": "HARD"\ }]\ @@ -11776,7 +11769,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["acorn-import-assertions", "virtual:1d6ec9529ad6b48bacd7d45ab158214f5100b1a7c472835731ba2f44686da67da929fcd12798a4219c9db017a119409f16d66b20660a911c36f8e753c5ffae61#npm:1.9.0"],\ ["@types/acorn", null],\ - ["acorn", "npm:8.11.2"]\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"]\ ],\ "packagePeers": [\ "@types/acorn",\ @@ -11793,25 +11786,12 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "SOFT"\ }],\ - ["virtual:386ab2791d3837b85271a556c915f3963b5d7c540dd309f3aef40fdb074e905793b5bf0bb73adbc70cf914081e1b9782c1e6bdfc4ce628ebbee749b1ac206e25#npm:5.3.2", {\ - "packageLocation": "./.yarn/__virtual__/acorn-jsx-virtual-032fe9ebb0/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-4c54868fbe.zip/node_modules/acorn-jsx/",\ - "packageDependencies": [\ - ["acorn-jsx", "virtual:386ab2791d3837b85271a556c915f3963b5d7c540dd309f3aef40fdb074e905793b5bf0bb73adbc70cf914081e1b9782c1e6bdfc4ce628ebbee749b1ac206e25#npm:5.3.2"],\ - ["@types/acorn", null],\ - ["acorn", "npm:7.4.1"]\ - ],\ - "packagePeers": [\ - "@types/acorn",\ - "acorn"\ - ],\ - "linkType": "HARD"\ - }],\ ["virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2", {\ "packageLocation": "./.yarn/__virtual__/acorn-jsx-virtual-834321b202/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-4c54868fbe.zip/node_modules/acorn-jsx/",\ "packageDependencies": [\ ["acorn-jsx", "virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2"],\ ["@types/acorn", null],\ - ["acorn", "npm:8.11.2"]\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"]\ ],\ "packagePeers": [\ "@types/acorn",\ @@ -15609,7 +15589,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/espree-npm-9.6.1-a50722a5a9-1a2e9b4699.zip/node_modules/espree/",\ "packageDependencies": [\ ["espree", "npm:9.6.1"],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["acorn-jsx", "virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2"],\ ["eslint-visitor-keys", "npm:3.4.3"]\ ],\ @@ -19993,7 +19973,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/micromark-extension-mdxjs-npm-3.0.0-c1ee8da220-fd84f036dd.zip/node_modules/micromark-extension-mdxjs/",\ "packageDependencies": [\ ["micromark-extension-mdxjs", "npm:3.0.0"],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["acorn-jsx", "virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2"],\ ["micromark-extension-mdx-expression", "npm:3.0.0"],\ ["micromark-extension-mdx-jsx", "npm:3.0.0"],\ @@ -21766,7 +21746,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/parse-es-import-npm-0.6.0-97b0d9b50c-3ca1348528.zip/node_modules/parse-es-import/",\ "packageDependencies": [\ ["parse-es-import", "npm:0.6.0"],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["acorn-jsx", "virtual:a50722a5a9326b6a5f12350c494c4db3aa0f4caeac45e3e9e5fe071da20014ecfe738fe2ebe2c9c98abae81a4ea86b42f56d776b3bd5ec37f9ad3670c242b242#npm:5.3.2"]\ ],\ "linkType": "HARD"\ @@ -24936,7 +24916,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["terser", "npm:5.25.0"],\ ["@jridgewell/source-map", "npm:0.3.5"],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["commander", "npm:2.20.3"],\ ["source-map-support", "npm:0.5.21"]\ ],\ @@ -25332,7 +25312,7 @@ const RAW_RUNTIME_STATE = ["@types/swc__core", null],\ ["@types/swc__wasm", null],\ ["@types/typescript", null],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["acorn-walk", "npm:8.3.0"],\ ["arg", "npm:4.1.3"],\ ["create-require", "npm:1.1.1"],\ @@ -25368,7 +25348,7 @@ const RAW_RUNTIME_STATE = ["@types/swc__core", null],\ ["@types/swc__wasm", null],\ ["@types/typescript", null],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["acorn-walk", "npm:8.3.0"],\ ["arg", "npm:4.1.3"],\ ["create-require", "npm:1.1.1"],\ @@ -25947,7 +25927,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/unplugin-npm-1.5.1-3f9b064f5e-08cee7d100.zip/node_modules/unplugin/",\ "packageDependencies": [\ ["unplugin", "npm:1.5.1"],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["chokidar", "npm:3.5.3"],\ ["webpack-sources", "npm:3.2.3"],\ ["webpack-virtual-modules", "npm:0.6.1"]\ @@ -26535,7 +26515,7 @@ const RAW_RUNTIME_STATE = ["@webassemblyjs/ast", "npm:1.11.6"],\ ["@webassemblyjs/wasm-edit", "npm:1.11.6"],\ ["@webassemblyjs/wasm-parser", "npm:1.11.6"],\ - ["acorn", "npm:8.11.2"],\ + ["acorn", "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch::version=8.11.2&hash=eac067"],\ ["acorn-import-assertions", "virtual:1d6ec9529ad6b48bacd7d45ab158214f5100b1a7c472835731ba2f44686da67da929fcd12798a4219c9db017a119409f16d66b20660a911c36f8e753c5ffae61#npm:1.9.0"],\ ["browserslist", "npm:4.22.2"],\ ["chrome-trace-event", "npm:1.0.3"],\ diff --git a/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch b/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch new file mode 100644 index 000000000..3034d7c7a --- /dev/null +++ b/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch @@ -0,0 +1,45 @@ +diff --git a/dist/acorn.d.mts b/dist/acorn.d.mts +index 6ad58121195c96dab6b6c704ae0c0a31fefc2778..386631c03128490856cf493d968f187def49e2bb 100644 +--- a/dist/acorn.d.mts ++++ b/dist/acorn.d.mts +@@ -519,6 +519,9 @@ export type Declaration = + | FunctionDeclaration + | VariableDeclaration + | ClassDeclaration ++export interface JSXElement extends Node { ++ type: "JSXElement" ++} + + export type Expression = + | Identifier +@@ -547,6 +550,7 @@ export type Expression = + | ChainExpression + | ImportExpression + | ParenthesizedExpression ++| JSXElement + + export type Pattern = + | Identifier +diff --git a/dist/acorn.d.ts b/dist/acorn.d.ts +index 6ad58121195c96dab6b6c704ae0c0a31fefc2778..b2321be5483ddcd8826086b9a22d228238f5e3bd 100644 +--- a/dist/acorn.d.ts ++++ b/dist/acorn.d.ts +@@ -520,6 +520,10 @@ export type Declaration = + | VariableDeclaration + | ClassDeclaration + ++export interface JSXElement extends Node { ++ type: "JSXElement" ++} ++ + export type Expression = + | Identifier + | Literal +@@ -547,6 +551,7 @@ export type Expression = + | ChainExpression + | ImportExpression + | ParenthesizedExpression ++| JSXElement + + export type Pattern = + | Identifier diff --git a/package.json b/package.json index 50c8f5363..a57ebe2d6 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,14 @@ "typescript": "^5.3.2" }, "resolutions": { - "@vitejs/plugin-react": "^4.2.0" + "@vitejs/plugin-react": "^4.2.0", + "acorn@npm:^8.9.0": "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch", + "acorn@npm:^8.4.1": "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch", + "acorn@npm:^8.7.1": "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch", + "acorn@npm:^7.4.1": "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch", + "acorn@npm:^8.8.2": "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch", + "acorn@npm:^8.11.2": "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch", + "acorn@npm:^8.0.0": "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch" }, "dependenciesMeta": { "@types/react": { diff --git a/packages/docs/package.json b/packages/docs/package.json index 2794b9ff8..8b80642ce 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -31,7 +31,7 @@ "@types/react": "^18.2.42", "@types/react-dom": "^18.2.17", "@yarnpkg/pnpify": "^4.0.1", - "acorn": "^8.11.2", + "acorn": "patch:acorn@npm%3A8.11.2#~/.yarn/patches/acorn-npm-8.11.2-a470f49bb6.patch", "acorn-jsx": "^5.3.2", "eslint": "^8.55.0", "eslint-config-next": "14.0.3", diff --git a/packages/docs/src/app/button/_examples/Default.tsx b/packages/docs/src/app/button/_examples/Default.tsx index 9d5afb5ab..12c10ca0d 100644 --- a/packages/docs/src/app/button/_examples/Default.tsx +++ b/packages/docs/src/app/button/_examples/Default.tsx @@ -1,3 +1,3 @@ import { Button } from "@mittwald/flow-components/Button"; -