Skip to content

🎥 Make videos programmatically with React

recast codemods

Jonny Burger11482ad3123b
diff --git a/packages/studio-server/package.json b/packages/studio-server/package.json
index 5812d61ef0..1e4fecba93 100644
--- a/packages/studio-server/package.json
+++ b/packages/studio-server/package.json
@@ -24,8 +24,10 @@
"access": "public"
},
"dependencies": {
+ "@babel/parser": "7.24.1",
"semver": "7.5.3",
"remotion": "workspace:*",
+ "recast": "0.23.6",
"@remotion/bundler": "workspace:*",
"@remotion/renderer": "workspace:*",
"@remotion/studio-shared": "workspace:*",
@@ -38,6 +40,7 @@
"@jonny/eslint-config": "3.0.276",
"@types/node": "18.14.6",
"@types/react": "18.2.48",
+ "@babel/types": "7.24.0",
"eslint": "8.42.0",
"eslint-plugin-10x": "1.5.2",
"eslint-plugin-react": "7.32.2",
diff --git a/packages/studio-server/src/codemods/duplicate-composition.ts b/packages/studio-server/src/codemods/duplicate-composition.ts
new file mode 100644
index 0000000000..0b576f7ad7
--- /dev/null
+++ b/packages/studio-server/src/codemods/duplicate-composition.ts
@@ -0,0 +1,58 @@
+import type {File} from '@babel/types';
+import * as recast from 'recast';
+import tsParser from 'recast/parsers/babel-ts';
+import type {RecastCodemod} from './recast-mods';
+import {applyCodemod} from './recast-mods';
+
+const getPrettier = async () => {
+ try {
+ return await import('prettier');
+ } catch (err) {
+ throw new Error('Prettier cannot be found in the current project.');
+ }
+};
+
+export const parseAndApplyCodemod = async ({
+ input,
+ codeMod,
+}: {
+ input: string;
+ codeMod: RecastCodemod;
+}): Promise<string> => {
+ const ast = recast.parse(input, {
+ parser: tsParser,
+ }) as File;
+
+ const newAst = applyCodemod({
+ file: ast,
+ codeMod,
+ });
+
+ const output = recast.print(newAst, {
+ parser: tsParser,
+ }).code;
+
+ const prettier = await getPrettier();
+
+ const {format, resolveConfig, resolveConfigFile} = prettier;
+
+ const configFilePath = await resolveConfigFile();
+ if (!configFilePath) {
+ throw new Error('The Prettier config file was not found');
+ }
+
+ const prettierConfig = await resolveConfig(configFilePath);
+ if (!prettierConfig) {
+ throw new Error(
+ `The Prettier config at ${configFilePath} could not be read`,
+ );
+ }
+
+ const prettified = await format(output, {
+ ...prettierConfig,
+ filepath: 'test.tsx',
+ plugins: [],
+ endOfLine: 'auto',
+ });
+ return prettified;
+};
diff --git a/packages/studio-server/src/codemods/recast-mods.ts b/packages/studio-server/src/codemods/recast-mods.ts
new file mode 100644
index 0000000000..b8577de534
--- /dev/null
+++ b/packages/studio-server/src/codemods/recast-mods.ts
@@ -0,0 +1,300 @@
+import type {
+ ArrowFunctionExpression,
+ Declaration,
+ Expression,
+ File,
+ JSXFragment,
+ Statement,
+ VariableDeclarator,
+} from '@babel/types';
+
+export type RecastCodemod =
+ | {
+ type: 'duplicate-composition';
+ idToDuplicate: string;
+ newId: string;
+ }
+ | {
+ type: 'rename-composition';
+ idToRename: string;
+ newId: string;
+ }
+ | {
+ type: 'delete-composition';
+ idToDelete: string;
+ };
+
+export const applyCodemod = ({
+ file,
+ codeMod,
+}: {
+ file: File;
+ codeMod: RecastCodemod;
+}): File => {
+ const body = file.program.body.map((node) => {
+ return mapTopLevlNode(node, codeMod);
+ });
+
+ return {
+ ...file,
+ program: {
+ ...file.program,
+ body,
+ },
+ };
+};
+
+const mapTopLevlNode = (
+ node: Statement,
+ transformation: RecastCodemod,
+): Statement => {
+ if (
+ // TODO: could also be a default export
+ node.type !== 'ExportNamedDeclaration'
+ ) {
+ return node;
+ }
+
+ if (!node.declaration) {
+ return node;
+ }
+
+ // TODO: Could also be an anonymous function etc?
+ if (node.declaration.type !== 'VariableDeclaration') {
+ return node;
+ }
+
+ return {
+ ...node,
+ declaration: mapDeclaration(node.declaration, transformation),
+ };
+};
+
+const mapDeclaration = (
+ declaration: Declaration,
+ transformation: RecastCodemod,
+): Declaration => {
+ if (declaration.type !== 'VariableDeclaration') {
+ return declaration;
+ }
+
+ const declarations = declaration.declarations.map((d) => {
+ return mapVariableDeclarator(d, transformation);
+ });
+ return {...declaration, declarations};
+};
+
+const mapVariableDeclarator = (
+ variableDeclarator: VariableDeclarator,
+ transformation: RecastCodemod,
+): VariableDeclarator => {
+ return {
+ ...variableDeclarator,
+ init: variableDeclarator.init
+ ? mapExpression(variableDeclarator.init, transformation)
+ : variableDeclarator.init,
+ };
+};
+
+const mapExpression = (
+ expression: Expression,
+ transformation: RecastCodemod,
+) => {
+ // TODO: This could definitely be a different type
+ if (expression.type !== 'ArrowFunctionExpression') {
+ return expression;
+ }
+
+ return mapArrowFunctionExpression(expression, transformation);
+};
+
+const mapArrowFunctionExpression = (
+ arrowFunctionExpression: ArrowFunctionExpression,
+ transformation: RecastCodemod,
+): ArrowFunctionExpression => {
+ const {body} = arrowFunctionExpression;
+
+ if (body.type !== 'BlockStatement') {
+ return arrowFunctionExpression;
+ }
+
+ return {
+ ...arrowFunctionExpression,
+ body: {
+ ...body,
+ body: body.body.map((a) => {
+ return mapBodyStatement(a, transformation);
+ }),
+ },
+ };
+};
+
+const mapBodyStatement = (
+ statement: Statement,
+ transformation: RecastCodemod,
+): Statement => {
+ if (statement.type !== 'ReturnStatement') {
+ return statement;
+ }
+
+ const argument = statement.argument as Expression;
+ if (argument.type !== 'JSXFragment') {
+ return statement;
+ }
+
+ return {
+ ...statement,
+ argument: mapJsxFragment(argument, transformation),
+ };
+};
+
+const mapJsxFragment = (
+ jsxFragment: JSXFragment,
+ transformation: RecastCodemod,
+): JSXFragment => {
+ return {
+ ...jsxFragment,
+ children: jsxFragment.children
+ .map((c) => {
+ const compId = getCompositionIdFromJSXElement(c);
+ if (
+ transformation.type === 'duplicate-composition' &&
+ compId === transformation.idToDuplicate
+ ) {
+ return [
+ mapJsxChild(c),
+ changeCompositionIdInJSXElement(c, transformation.newId),
+ ];
+ }
+
+ if (
+ transformation.type === 'rename-composition' &&
+ compId === transformation.idToRename
+ ) {
+ return [changeCompositionIdInJSXElement(c, transformation.newId)];
+ }
+
+ if (
+ transformation.type === 'delete-composition' &&
+ compId === transformation.idToDelete
+ ) {
+ return [];
+ }
+
+ return [mapJsxChild(c)];
+ })
+ .flat(1),
+ };
+};
+
+const mapJsxChild = (
+ jsxChild: JSXFragment['children'][number],
+): JSXFragment['children'][number] => {
+ return jsxChild;
+};
+
+const getCompositionIdFromJSXElement = (
+ jsxElement: JSXFragment['children'][number],
+) => {
+ if (jsxElement.type !== 'JSXElement') {
+ return null;
+ }
+
+ const {openingElement} = jsxElement;
+ const {name} = openingElement;
+ // TODO: There is also JSXMemberExpression | JSXNamespacedName,
+ // could these be in a composition as well
+ if (name.type !== 'JSXIdentifier') {
+ return null;
+ }
+
+ if (name.name !== 'Composition') {
+ return null;
+ }
+
+ const id = openingElement.attributes
+ .map((attribute) => {
+ if (attribute.type === 'JSXSpreadAttribute') {
+ return null;
+ }
+
+ if (attribute.name.type === 'JSXNamespacedName') {
+ return null;
+ }
+
+ if (attribute.name.name !== 'id') {
+ return null;
+ }
+
+ if (!attribute.value) {
+ return null;
+ }
+
+ // TODO: At least JSX
+ if (attribute.value.type === 'StringLiteral') {
+ return attribute.value.value;
+ }
+
+ return null;
+ })
+ .filter(Boolean);
+
+ return id[0];
+};
+
+const changeCompositionIdInJSXElement = (
+ jsxElement: JSXFragment['children'][number],
+ newCompositionId: string,
+): JSXFragment['children'][number] => {
+ if (jsxElement.type !== 'JSXElement') {
+ return jsxElement;
+ }
+
+ const {openingElement} = jsxElement;
+ const {name} = openingElement;
+ // TODO: There is also JSXMemberExpression | JSXNamespacedName,
+ // could these be in a composition as well
+ if (name.type !== 'JSXIdentifier') {
+ return jsxElement;
+ }
+
+ if (name.name !== 'Composition') {
+ return jsxElement;
+ }
+
+ const attributes = openingElement.attributes.map((attribute) => {
+ if (attribute.type === 'JSXSpreadAttribute') {
+ return attribute;
+ }
+
+ if (attribute.name.type === 'JSXNamespacedName') {
+ return attribute;
+ }
+
+ if (attribute.name.name !== 'id') {
+ return attribute;
+ }
+
+ if (!attribute.value) {
+ return attribute;
+ }
+
+ // TODO: At least JSX
+ if (attribute.value.type === 'StringLiteral') {
+ return {
+ ...attribute,
+ value: {...attribute.value, value: newCompositionId},
+ };
+ }
+
+ return attribute;
+ });
+
+ return {
+ ...jsxElement,
+ openingElement: {
+ ...jsxElement.openingElement,
+ attributes,
+ },
+ };
+};
diff --git a/packages/studio-server/src/codemods/update-default-props.ts b/packages/studio-server/src/codemods/update-default-props.ts
index b6fdd42536..8a406af618 100644
--- a/packages/studio-server/src/codemods/update-default-props.ts
+++ b/packages/studio-server/src/codemods/update-default-props.ts
@@ -164,7 +164,7 @@ export const updateDefaultProps = async ({
);
}
- const prettified = format(newFile, {
+ const prettified = await format(newFile, {
...prettierConfig,
rangeStart: startPos,
rangeEnd: endPos,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a18639c194..ce8ab68c13 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1958,6 +1958,9 @@ importers:
packages/studio-server:
dependencies:
+ '@babel/parser':
+ specifier: 7.24.1
+ version: 7.24.1
'@remotion/bundler':
specifier: workspace:*
version: link:../bundler
@@ -1973,6 +1976,9 @@ importers:
open:
specifier: ^8.4.2
version: 8.4.2
+ recast:
+ specifier: 0.23.6
+ version: 0.23.6
remotion:
specifier: workspace:*
version: link:../core
@@ -1983,6 +1989,9 @@ importers:
specifier: 0.7.3
version: 0.7.3
devDependencies:
+ '@babel/types':
+ specifier: 7.24.0
+ version: 7.24.0
'@jonny/eslint-config':
specifier: 3.0.276
@@ -3636,10 +3645,10 @@ packages:
'@babel/generator': 7.19.0
'@babel/helper-module-transforms': 7.19.0
'@babel/helpers': 7.18.6
- '@babel/parser': 7.21.1
+ '@babel/parser': 7.24.1
'@babel/template': 7.18.10
'@babel/traverse': 7.19.1([email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
convert-source-map: 1.8.0
debug: 4.3.4([email protected])
gensync: 1.0.0-beta.2
@@ -3685,10 +3694,10 @@ packages:
'@babel/helper-compilation-targets': 7.19.1(@babel/[email protected])
'@babel/helper-module-transforms': 7.19.0
'@babel/helpers': 7.18.6
- '@babel/parser': 7.19.1
+ '@babel/parser': 7.24.1
'@babel/template': 7.18.10
'@babel/traverse': 7.19.1([email protected])
- '@babel/types': 7.19.0
+ '@babel/types': 7.24.0
convert-source-map: 1.8.0
debug: 4.3.4([email protected])
gensync: 1.0.0-beta.2
@@ -3708,10 +3717,10 @@ packages:
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
'@babel/helpers': 7.23.8
- '@babel/parser': 7.23.6
+ '@babel/parser': 7.24.1
'@babel/template': 7.22.15
'@babel/traverse': 7.23.7
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
convert-source-map: 2.0.0
debug: 4.3.4([email protected])
gensync: 1.0.0-beta.2
@@ -3725,7 +3734,7 @@ packages:
resolution: {integrity: sha512-d3itta0tu+UayjEORPNz6e1T3FtvWlP5N4V5M+lhp/CxT4oAA7/NcScnpRyspUMLK6tu9MNHmQHxRykuN2R7hw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.15.6
+ '@babel/types': 7.24.0
jsesc: 2.5.2
source-map: 0.5.7
dev: false
@@ -3734,7 +3743,7 @@ packages:
resolution: {integrity: sha512-S1ahxf1gZ2dpoiFgA+ohK9DIpz50bJ0CWs7Zlzb54Z4sG8qmdIrGrVqmy1sAtTVRb+9CU6U8VqT9L0Zj7hxHVg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.19.0
+ '@babel/types': 7.24.0
'@jridgewell/gen-mapping': 0.3.2
jsesc: 2.5.2
dev: false
@@ -3743,7 +3752,7 @@ packages:
resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
'@jridgewell/gen-mapping': 0.3.2
'@jridgewell/trace-mapping': 0.3.18
jsesc: 2.5.2
@@ -3753,28 +3762,28 @@ packages:
resolution: {integrity: sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
resolution: {integrity: sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-explode-assignable-expression': 7.15.4
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
@@ -3782,7 +3791,7 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-explode-assignable-expression': 7.18.6
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
@@ -3940,14 +3949,14 @@ packages:
resolution: {integrity: sha512-J14f/vq8+hdC2KoWLIQSsGrC9EFBKE4NFts8pfMpymfApds+fPqR30AOUWc4tyr56h9l/GA1Sxv2q3dLZWbQ/g==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
@@ -3956,7 +3965,7 @@ packages:
dependencies:
'@babel/helper-get-function-arity': 7.15.4
'@babel/template': 7.18.10
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
@@ -3964,7 +3973,7 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/template': 7.18.10
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
dev: false
@@ -3972,70 +3981,70 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/template': 7.22.15
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
dev: true
resolution: {integrity: sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
dev: true
resolution: {integrity: sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-jeAHZbzUwdW/xHgHQ3QmWR4Jg6j15q4w/gCfwZvtqOxoo5DKtLHk8Bsf4c5RZRC7NmLEs+ohkdq8jFefuvIxAA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
resolution: {integrity: sha512-ZNqjjQG/AuFfekFTY+7nY4RgBSklgTu970c7Rj3m/JOhIu5KPBUuTA9AY6zaKcUvk4g6EbDXdBnhi35FAssdSw==}
@@ -4048,7 +4057,7 @@ packages:
'@babel/helper-validator-identifier': 7.15.7
'@babel/template': 7.15.4
'@babel/traverse': 7.15.4
- '@babel/types': 7.15.6
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4061,10 +4070,10 @@ packages:
'@babel/helper-module-imports': 7.18.6
'@babel/helper-simple-access': 7.18.6
'@babel/helper-split-export-declaration': 7.18.6
- '@babel/helper-validator-identifier': 7.19.1
+ '@babel/helper-validator-identifier': 7.22.20
'@babel/template': 7.18.10
'@babel/traverse': 7.19.1([email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4087,14 +4096,14 @@ packages:
resolution: {integrity: sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
@@ -4121,7 +4130,7 @@ packages:
dependencies:
'@babel/helper-annotate-as-pure': 7.18.6
'@babel/helper-wrap-function': 7.15.4
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4136,7 +4145,7 @@ packages:
'@babel/helper-annotate-as-pure': 7.18.6
'@babel/helper-environment-visitor': 7.18.9
'@babel/helper-wrap-function': 7.19.0
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4148,7 +4157,7 @@ packages:
'@babel/helper-member-expression-to-functions': 7.15.4
'@babel/helper-optimise-call-expression': 7.15.4
'@babel/traverse': 7.19.1([email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4161,7 +4170,7 @@ packages:
'@babel/helper-member-expression-to-functions': 7.18.9
'@babel/helper-optimise-call-expression': 7.18.6
'@babel/traverse': 7.19.1([email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4170,56 +4179,56 @@ packages:
resolution: {integrity: sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
dev: true
resolution: {integrity: sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-imytd2gHi3cJPsybLRbmFrF7u5BIEuI2cNheyKi3/iOBC63kNn3q8Crn2xVuESli0aM4KYsyEqKyS7lFL8YVtw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
dev: true
@@ -4227,11 +4236,6 @@ packages:
engines: {node: '>=6.9.0'}
dev: false
- resolution: {integrity: sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==}
- engines: {node: '>=6.9.0'}
- dev: false
-
resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==}
engines: {node: '>=6.9.0'}
@@ -4246,10 +4250,6 @@ packages:
engines: {node: '>=6.9.0'}
dev: false
- resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==}
- engines: {node: '>=6.9.0'}
-
resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==}
engines: {node: '>=6.9.0'}
@@ -4276,7 +4276,7 @@ packages:
'@babel/helper-function-name': 7.19.0
'@babel/template': 7.18.10
'@babel/traverse': 7.19.1([email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4288,7 +4288,7 @@ packages:
'@babel/helper-function-name': 7.19.0
'@babel/template': 7.18.10
'@babel/traverse': 7.19.1([email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4299,7 +4299,7 @@ packages:
dependencies:
'@babel/template': 7.15.4
'@babel/traverse': 7.15.4
- '@babel/types': 7.15.6
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4310,7 +4310,7 @@ packages:
dependencies:
'@babel/template': 7.18.10
'@babel/traverse': 7.19.1([email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: false
@@ -4321,7 +4321,7 @@ packages:
dependencies:
'@babel/template': 7.22.15
'@babel/traverse': 7.23.7
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
transitivePeerDependencies:
- supports-color
dev: true
@@ -4330,7 +4330,7 @@ packages:
resolution: {integrity: sha512-t8MH41kUQylBtu2+4IQA3atqevA2lRgqA2wyVB/YiWmsDSuylZZuXOUy9ric30hfzauEFfdsuk/eXTRrGrfd0g==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/helper-validator-identifier': 7.19.1
+ '@babel/helper-validator-identifier': 7.22.20
chalk: 2.4.2
js-tokens: 4.0.0
dev: false
@@ -4339,7 +4339,7 @@ packages:
resolution: {integrity: sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/helper-validator-identifier': 7.19.1
+ '@babel/helper-validator-identifier': 7.22.20
chalk: 2.4.2
js-tokens: 4.0.0
@@ -4357,7 +4357,7 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
- '@babel/types': 7.17.0
+ '@babel/types': 7.24.0
dev: false
@@ -4365,24 +4365,15 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
- '@babel/types': 7.19.0
+ '@babel/types': 7.24.0
dev: false
- resolution: {integrity: sha512-JzhBFpkuhBNYUY7qs+wTzNmyCWUHEaAFpQQD2YfU1rPL38/L43Wvid0fFkiOCnHvsGncRZgEPyGnltABLcVDTg==}
+ resolution: {integrity: sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==}
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
- '@babel/types': 7.21.0
- dev: false
-
- resolution: {integrity: sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==}
- engines: {node: '>=6.0.0'}
- hasBin: true
- dependencies:
- '@babel/types': 7.23.6
- dev: true
+ '@babel/types': 7.24.0
/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6(@babel/[email protected]):
resolution: {integrity: sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==}
@@ -5549,7 +5540,7 @@ packages:
'@babel/helper-hoist-variables': 7.18.6
'@babel/helper-module-transforms': 7.19.0
'@babel/helper-plugin-utils': 7.19.0
- '@babel/helper-validator-identifier': 7.19.1
+ '@babel/helper-validator-identifier': 7.22.20
babel-plugin-dynamic-import-node: 2.3.3
transitivePeerDependencies:
- supports-color
@@ -5789,7 +5780,7 @@ packages:
'@babel/helper-module-imports': 7.15.4
'@babel/helper-plugin-utils': 7.14.5
'@babel/plugin-syntax-jsx': 7.14.5(@babel/[email protected])
- '@babel/types': 7.15.6
+ '@babel/types': 7.24.0
dev: false
@@ -5803,7 +5794,7 @@ packages:
'@babel/helper-module-imports': 7.18.6
'@babel/helper-plugin-utils': 7.19.0
'@babel/plugin-syntax-jsx': 7.18.6(@babel/[email protected])
- '@babel/types': 7.19.0
+ '@babel/types': 7.24.0
dev: false
@@ -5817,7 +5808,7 @@ packages:
'@babel/helper-module-imports': 7.18.6
'@babel/helper-plugin-utils': 7.19.0
'@babel/plugin-syntax-jsx': 7.18.6(@babel/[email protected])
- '@babel/types': 7.19.0
+ '@babel/types': 7.24.0
dev: false
@@ -5831,7 +5822,7 @@ packages:
'@babel/helper-module-imports': 7.22.15
'@babel/helper-plugin-utils': 7.22.5
'@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
dev: false
@@ -5845,7 +5836,7 @@ packages:
'@babel/helper-module-imports': 7.22.15
'@babel/helper-plugin-utils': 7.22.5
'@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])
- '@babel/types': 7.23.6
+ '@babel/types': 7.24.0
dev: true
@@ -6260,7 +6251,7 @@ packages:
'@babel/plugin-transform-unicode-escapes': 7.18.10(@babel/[email protected])
'@babel/plugin-transform-unicode-regex': 7.18.6(@babel/[email protected])
'@babel/preset-modules': 0.1.5(@babel/[email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
babel-plugin-polyfill-corejs2: 0.3.3(@babel/[email protected])
babel-plugin-polyfill-corejs3: 0.6.0(@babel/[email protected])
babel-plugin-polyfill-regenerator: 0.4.1(@babel/[email protected])
@@ -6279,7 +6270,7 @@ packages:
'@babel/helper-plugin-utils': 7.19.0
'@babel/plugin-proposal-unicode-property-regex': 7.14.5(@babel/[email protected])
'@babel/plugin-transform-dotall-regex': 7.14.5(@babel/[email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
esutils: 2.0.3
dev: false
@@ -6292,7 +6283,7 @@ packages:
'@babel/helper-plugin-utils': 7.19.0
'@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/[email protected])
'@babel/plugin-transform-dotall-regex': 7.18.6(@babel/[email protected])
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
esutils: 2.0.3
dev: false
@@ -6387,8 +6378,8 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.16.0
- '@babel/parser': 7.15.7
- '@babel/types': 7.15.6
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
dev: false
@@ -6396,8 +6387,8 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.18.6
- '@babel/parser': 7.21.1
- '@babel/types': 7.21.0
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
dev: false
@@ -6405,8 +6396,8 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.23.5
- '@babel/parser': 7.23.6
- '@babel/types': 7.23.6
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
dev: true
@@ -6418,8 +6409,8 @@ packages:
'@babel/helper-function-name': 7.15.4
'@babel/helper-hoist-variables': 7.15.4
'@babel/helper-split-export-declaration': 7.15.4
- '@babel/parser': 7.21.1
- '@babel/types': 7.21.0
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
debug: 4.3.4([email protected])
globals: 11.12.0
transitivePeerDependencies:
@@ -6436,8 +6427,8 @@ packages:
'@babel/helper-function-name': 7.19.0
'@babel/helper-hoist-variables': 7.18.6
'@babel/helper-split-export-declaration': 7.18.6
- '@babel/parser': 7.21.1
- '@babel/types': 7.21.0
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
debug: 4.3.4([email protected])
globals: 11.12.0
transitivePeerDependencies:
@@ -6454,8 +6445,8 @@ packages:
'@babel/helper-function-name': 7.23.0
'@babel/helper-hoist-variables': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
- '@babel/parser': 7.23.6
- '@babel/types': 7.23.6
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
debug: 4.3.4([email protected])
globals: 11.12.0
transitivePeerDependencies:
@@ -6470,14 +6461,6 @@ packages:
to-fast-properties: 2.0.0
dev: false
- resolution: {integrity: sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/helper-validator-identifier': 7.19.1
- to-fast-properties: 2.0.0
- dev: false
-
resolution: {integrity: sha512-YuGopBq3ke25BVSiS6fgF49Ul9gH1x70Bcr6bqRLjWCkcX8Hre1/5+z+IiWOIerRMSSEfGZVB9z9kyq7wVs9YA==}
engines: {node: '>=6.9.0'}
@@ -6487,17 +6470,8 @@ packages:
to-fast-properties: 2.0.0
dev: false
- resolution: {integrity: sha512-uR7NWq2VNFnDi7EYqiRz2Jv/VQIu38tu64Zy8TX2nQFQ6etJ9V/Rr2msW8BS132mum2rL645qpDrLtAJtVpuow==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/helper-string-parser': 7.19.4
- '@babel/helper-validator-identifier': 7.19.1
- to-fast-properties: 2.0.0
- dev: false
-
- resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==}
+ resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-string-parser': 7.23.4
@@ -6990,7 +6964,7 @@ packages:
react: ^16.8.4 || ^17.0.0
react-dom: ^16.8.4 || ^17.0.0
dependencies:
- '@babel/parser': 7.21.1
+ '@babel/parser': 7.24.1
'@babel/traverse': 7.19.1([email protected])
'@docusaurus/logger': 2.4.1
'@docusaurus/utils': 2.4.1(@docusaurus/[email protected])(@swc/[email protected])
@@ -9529,7 +9503,7 @@ packages:
resolution: {integrity: sha512-pt7MMkQFDlWJVy9ULJ1h+hZBDGFfSCwlBNW1HkLnVi7jUhyEXUaGYWi1x6bM2IXuAR9l265khBT4Av4lPmaNLQ==}
engines: {node: '>=10'}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
entities: 3.0.1
dev: false
@@ -9843,8 +9817,8 @@ packages:
resolution: {integrity: sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==}
dependencies:
- '@babel/parser': 7.21.1
- '@babel/types': 7.21.0
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
'@types/babel__generator': 7.6.3
'@types/babel__template': 7.4.1
'@types/babel__traverse': 7.14.2
@@ -9853,20 +9827,20 @@ packages:
resolution: {integrity: sha512-/GWCmzJWqV7diQW54smJZzWbSFf4QYtF71WCKhcx6Ru/tFyQIY2eiiITcCAeuPbNSvT9YCGkVMqqvSk2Z0mXiA==}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==}
dependencies:
- '@babel/parser': 7.21.1
- '@babel/types': 7.21.0
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
dev: false
resolution: {integrity: sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==}
dependencies:
- '@babel/types': 7.21.0
+ '@babel/types': 7.24.0
dev: false
@@ -11456,6 +11430,13 @@ packages:
'@mdn/browser-compat-data': 5.2.58
dev: true
+ resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}
+ engines: {node: '>=4'}
+ dependencies:
+ tslib: 2.5.0
+ dev: false
+
resolution: {integrity: sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==}
hasBin: true
@@ -16230,7 +16211,7 @@ packages:
engines: {node: '>=12.0.0'}
hasBin: true
dependencies:
- '@babel/parser': 7.21.1
+ '@babel/parser': 7.24.1
'@jsdoc/salty': 0.2.5
'@types/markdown-it': 12.2.3
bluebird: 3.7.2
@@ -19883,6 +19864,17 @@ packages:
resolution: {integrity: sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==}
dev: false
+ resolution: {integrity: sha512-9FHoNjX1yjuesMwuthAmPKabxYQdOgihFYmT5ebXfYGBcnqXZf3WOVz+5foEZ8Y83P4ZY6yQD5GMmtV+pgCCAQ==}
+ engines: {node: '>= 4'}
+ dependencies:
+ ast-types: 0.16.1
+ esprima: 4.0.1
+ source-map: 0.6.1
+ tiny-invariant: 1.3.3
+ tslib: 2.5.0
+ dev: false
+
resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==}
engines: {node: '>= 0.10'}
@@ -21645,6 +21637,10 @@ packages:
resolution: {integrity: sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw==}
dev: false
+ resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
+ dev: false
+
resolution: {integrity: sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==}
dev: false