🎥 Make videos programmatically with React
remotion z color package
Jonny Burger223b5996a2fc
diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 4b54f923ac..a93fdad300 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -62,6 +62,7 @@"@types/semver": "^7.3.4","@typescript-eslint/eslint-plugin": "5.18.0","@typescript-eslint/parser": "5.18.0",+ "@remotion/z-color": "workspace:*","eslint": "8.25.0","eslint-plugin-10x": "1.5.2","eslint-plugin-react": "7.29.4",diff --git a/packages/cli/src/color-math.ts b/packages/cli/src/color-math.tsindex 3569fba50a..27154e5551 100644--- a/packages/cli/src/color-math.ts+++ b/packages/cli/src/color-math.ts@@ -1,7 +1,7 @@-import {Internals} from 'remotion';+import {ZColorInternals} from '@remotion/z-color';export const colorWithNewOpacity = (color: string, opacity: number) => {- const {r, g, b} = Internals.parseColor(color);+ const {r, g, b} = ZColorInternals.parseColor(color);if (opacity >= 255) {return `#${r.toString(16)}${g.toString(16)}${b.toString(16)}`;}diff --git a/packages/cli/src/editor/components/RenderModal/RenderModalData.tsx b/packages/cli/src/editor/components/RenderModal/RenderModalData.tsxindex 375f400f3d..dc02dba2a2 100644--- a/packages/cli/src/editor/components/RenderModal/RenderModalData.tsx+++ b/packages/cli/src/editor/components/RenderModal/RenderModalData.tsx@@ -87,9 +87,6 @@ export const RenderModalData: React.FC<{}> = ({composition, inputProps, setInputProps, compact, mayShowSaveButton}) => {const [mode, setMode] = useState<Mode>('schema');const [valBeforeSafe, setValBeforeSafe] = useState<unknown>(inputProps);- const zodValidationResult = useMemo(() => {- return composition.schema.safeParse(inputProps);- }, [composition.schema, inputProps]);const cliProps = getInputProps();const [canSaveDefaultProps, setCanSaveDefaultProps] =@@ -101,6 +98,16 @@ export const RenderModalData: React.FC<{const z = useZodIfPossible();+ if (!z) {+ throw Error('expected zod to be installed');+ }++ const schema = composition.schema ?? z.any();++ const zodValidationResult = useMemo(() => {+ return schema.safeParse(inputProps);+ }, [inputProps, schema]);+const showSaveButton = mayShowSaveButton && canSaveDefaultProps.canUpdate;// TODO: Update if root file is updated@@ -181,11 +188,7 @@ export const RenderModalData: React.FC<{);}- if (!z) {- throw Error('expected zod to be installed');- }-- const def: Zod.ZodTypeDef = composition.schema._def;+ const def: Zod.ZodTypeDef = schema._def;// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst typeName = (def as any).typeName as Zod.ZodFirstPartyTypeKind;@@ -236,7 +239,7 @@ export const RenderModalData: React.FC<{<SchemaEditorvalue={inputProps}setValue={setInputProps}- schema={composition.schema}+ schema={schema}zodValidationResult={zodValidationResult}compact={compact}defaultProps={composition.defaultProps}diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsxindex 058e8c9d33..c020985023 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx@@ -1,5 +1,5 @@+import {ZColorInternals} from '@remotion/z-color';import React, {useCallback, useMemo, useState} from 'react';-import {Internals} from 'remotion';import type {z} from 'zod';import {colorWithNewOpacity} from '../../../../color-math';import {useZodIfPossible} from '../../get-zod-if-possible';@@ -70,7 +70,7 @@ export const ZodColorEditor: React.FC<{);const {a, b, g, r} = localValue.zodValidation.success- ? Internals.parseColor(localValue.value)+ ? ZColorInternals.parseColor(localValue.value): {a: 1, b: 0, g: 0, r: 0};const onChange: React.ChangeEventHandler<HTMLInputElement> = useCallback(diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsxindex 4333959567..2a11b37688 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx@@ -1,5 +1,5 @@+import {ZColorInternals} from '@remotion/z-color';import React from 'react';-import {Internals} from 'remotion';import type {z} from 'zod';import {useZodIfPossible} from '../../get-zod-if-possible';import type {JSONPath} from './zod-types';@@ -220,7 +220,7 @@ export const ZodSwitch: React.FC<{}if (typeName === z.ZodFirstPartyTypeKind.ZodEffects) {- if (schema._def.description === Internals.REMOTION_COLOR_BRAND) {+ if (schema._def.description === ZColorInternals.REMOTION_COLOR_BRAND) {return (<ZodColorEditorvalue={value as string}diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/create-zod-values.ts b/packages/cli/src/editor/components/RenderModal/SchemaEditor/create-zod-values.tsindex 800c676991..d54554b7f9 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/create-zod-values.ts+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/create-zod-values.ts@@ -1,4 +1,4 @@-import {Internals} from 'remotion';+import {ZColorInternals} from '@remotion/z-color';import type {z} from 'zod';import type {ZodType} from '../../get-zod-if-possible';@@ -71,7 +71,7 @@ export const createZodValues = (}case zodRuntime.ZodFirstPartyTypeKind.ZodEffects: {- if (schema._def.description === Internals.REMOTION_COLOR_BRAND) {+ if (schema._def.description === ZColorInternals.REMOTION_COLOR_BRAND) {return '#ffffff';}diff --git a/packages/cli/src/editor/components/get-zod-if-possible.tsx b/packages/cli/src/editor/components/get-zod-if-possible.tsxindex 2be3df8b23..794e4902d1 100644--- a/packages/cli/src/editor/components/get-zod-if-possible.tsx+++ b/packages/cli/src/editor/components/get-zod-if-possible.tsx@@ -1,9 +1,19 @@-import React, {createContext, useContext, useEffect, useState} from 'react';+import React, {+ createContext,+ useContext,+ useEffect,+ useMemo,+ useState,+} from 'react';// eslint-disable-next-line @typescript-eslint/consistent-type-importsexport type ZodType = Awaited<typeof import('zod')>['z'];+export type ZodColorType = Awaited<+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports+ typeof import('@remotion/z-color')+>['zColor'];-export const getZodIfPossible = async (): Promise<ZodType | null> => {+const getZodIfPossible = async (): Promise<ZodType | null> => {try {const {z} = await import('zod');return z;@@ -12,21 +22,54 @@ export const getZodIfPossible = async (): Promise<ZodType | null> => {}};+const getZColorIfPossible = async (): Promise<ZodColorType | null> => {+ try {+ const {zColor} = await import('@remotion/z-color');+ return zColor;+ } catch (err) {+ return null;+ }+};+export const useZodIfPossible = () => {const context = useContext(ZodContext);- return context;+ return context?.zod ?? null;};-const ZodContext = createContext<ZodType | null>(null);+export const useZodColorIfPossible = () => {+ const context = useContext(ZodContext);+ return context?.zodColor ?? null;+};++type ContextType = {+ zod: ZodType | null;+ zodColor: ZodColorType | null;+};++const ZodContext = createContext<ContextType | null>(null);export const ZodProvider: React.FC<{children: React.ReactNode;}> = ({children}) => {const [zod, setZod] = useState<ZodType | null>(null);+ const [zodColor, setZodColor] = useState<ZodColorType | null>(null);useEffect(() => {getZodIfPossible().then((z) => setZod(z));}, []);- return <ZodContext.Provider value={zod}>{children}</ZodContext.Provider>;+ useEffect(() => {+ getZColorIfPossible().then((z) => setZodColor(z));+ }, []);++ const contextValue = useMemo(() => {+ return {+ zod,+ zodColor,+ };+ }, [zod, zodColor]);++ return (+ <ZodContext.Provider value={contextValue}>{children}</ZodContext.Provider>+ );};diff --git a/packages/cli/src/list-of-remotion-packages.ts b/packages/cli/src/list-of-remotion-packages.tsindex edb3a1b902..1836727c45 100644--- a/packages/cli/src/list-of-remotion-packages.ts+++ b/packages/cli/src/list-of-remotion-packages.ts@@ -20,5 +20,6 @@ export const listOfRemotionPackages = ['@remotion/rive','@remotion/gif','@remotion/shapes',+ '@remotion/z-color','remotion',];diff --git a/packages/cli/src/test/color-math.test.ts b/packages/cli/src/test/color-math.test.tsindex 62e4ec27a9..5bef6ebca9 100644--- a/packages/cli/src/test/color-math.test.ts+++ b/packages/cli/src/test/color-math.test.ts@@ -1,8 +1,8 @@-import {Internals} from 'remotion';+import {ZColorInternals} from '@remotion/z-color';import {expect, test} from 'vitest';test('Color math', () => {- expect(Internals.parseColor('rgba(255, 255, 255, 0.5)')).toEqual({+ expect(ZColorInternals.parseColor('rgba(255, 255, 255, 0.5)')).toEqual({a: 128,r: 255,b: 255,diff --git a/packages/cli/src/test/create-zod-values.test.ts b/packages/cli/src/test/create-zod-values.test.tsindex fd1e115ea9..de6f64ffcf 100644--- a/packages/cli/src/test/create-zod-values.test.ts+++ b/packages/cli/src/test/create-zod-values.test.ts@@ -1,4 +1,4 @@-import {zColor} from 'remotion';+import {zColor} from '@remotion/z-color';import {expect, test} from 'vitest';import {z} from 'zod';import {createZodValues} from '../editor/components/RenderModal/SchemaEditor/create-zod-values';diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex 9457004276..78f95124b8 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -100,7 +100,6 @@ export * from './use-video-config.js';export * from './version.js';export * from './video-config.js';export * from './video/index.js';-export {zColor} from './z-color.js';export const Experimental = {/**diff --git a/packages/core/src/internals.ts b/packages/core/src/internals.tsindex 5c8385136c..eaf5e5b7c8 100644--- a/packages/core/src/internals.ts+++ b/packages/core/src/internals.ts@@ -24,6 +24,7 @@ import {useRemotionEnvironment,} from './get-environment.js';import {getPreviewDomElement} from './get-preview-dom-element.js';+import {processColor} from './interpolate-colors.js';import {IsPlayerContextProvider, useIsPlayer} from './is-player.js';import {portalNode} from './portal-node.js';import {PrefetchProvider} from './prefetch-state.js';@@ -68,7 +69,6 @@ import {RemotionContextProvider,useRemotionContexts,} from './wrap-remotion-context.js';-import {parseColor, REMOTION_COLOR_BRAND} from './z-color.js';const Timeline = TimelinePosition;// Mark them as Internals so use don't assume this is public@@ -117,8 +117,7 @@ export const Internals = {EditorPropsProvider,EditorPropsContext,usePreload,- REMOTION_COLOR_BRAND,- parseColor,+ processColor,};export type {diff --git a/packages/create-video/src/list-of-remotion-packages.ts b/packages/create-video/src/list-of-remotion-packages.tsindex ba28caae3c..bf0c82d627 100644--- a/packages/create-video/src/list-of-remotion-packages.ts+++ b/packages/create-video/src/list-of-remotion-packages.ts@@ -20,5 +20,6 @@ export const listOfRemotionPackages = ['@remotion/rive','@remotion/gif','@remotion/shapes',+ '@remotion/z-color','remotion',];diff --git a/packages/example/package.json b/packages/example/package.jsonindex 0bd3a93a3e..fda72a67ef 100644--- a/packages/example/package.json+++ b/packages/example/package.json@@ -44,6 +44,7 @@"@remotion/shapes": "workspace:*","@remotion/skia": "workspace:*","@remotion/three": "workspace:*",+ "@remotion/z-color": "workspace:*","@types/express": "^4.17.11","@types/node": "^16.7.5","@types/opentype.js": "^1.3.4",diff --git a/packages/example/src/BetaText/index.tsx b/packages/example/src/BetaText/index.tsxindex 34d5d8b676..42c57337d1 100644--- a/packages/example/src/BetaText/index.tsx+++ b/packages/example/src/BetaText/index.tsx@@ -1,12 +1,7 @@+import {zColor} from '@remotion/z-color';import {mix} from 'polished';import React from 'react';-import {- interpolate,- spring,- useCurrentFrame,- useVideoConfig,- zColor,-} from 'remotion';+import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';import styled from 'styled-components';import {z} from 'zod';diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsxindex 310579152d..67f6e07908 100644--- a/packages/example/src/Video.tsx+++ b/packages/example/src/Video.tsx@@ -1,6 +1,7 @@+import {zColor} from '@remotion/z-color';import {alias} from 'lib/alias';import React from 'react';-import {Composition, Folder, getInputProps, Still, zColor} from 'remotion';+import {Composition, Folder, getInputProps, Still} from 'remotion';import {z} from 'zod';import {TwentyTwoKHzAudio} from './22KhzAudio';import BetaText, {betaTextSchema} from './BetaText';diff --git a/packages/z-color/.eslintrc b/packages/z-color/.eslintrcnew file mode 100644index 0000000000..d4cc0fb226--- /dev/null+++ b/packages/z-color/.eslintrc@@ -0,0 +1,3 @@+{+ "extends": "@jonny"+}diff --git a/packages/z-color/.npmignore b/packages/z-color/.npmignorenew file mode 100644index 0000000000..8105a5aaa9--- /dev/null+++ b/packages/z-color/.npmignore@@ -0,0 +1,12 @@+dist/test/**+src+.eslintrc+tsconfig.tsbuildinfo+vitest.config.ts+*.tgz+.turbo+tsconfig.json+.prettierrc.js+dist/tsconfig-esm.tsbuildinfo+.rollup.cache+tsconfig-esm.jsondiff --git a/packages/z-color/.prettierrc.js b/packages/z-color/.prettierrc.jsnew file mode 100644index 0000000000..32eb24f3bf--- /dev/null+++ b/packages/z-color/.prettierrc.js@@ -0,0 +1,14 @@+module.exports = {+ singleQuote: true,+ bracketSpacing: false,+ useTabs: true,+ overrides: [+ {+ files: ['*.yml'],+ options: {+ singleQuote: false,+ },+ },+ ],+ plugins: [require.resolve('prettier-plugin-organize-imports')],+};diff --git a/packages/z-color/package.json b/packages/z-color/package.jsonnew file mode 100644index 0000000000..cc309ef69b--- /dev/null+++ b/packages/z-color/package.json@@ -0,0 +1,56 @@+{+ "name": "@remotion/z-color",+ "version": "3.3.83",+ "description": "A color validator for Zod",+ "main": "dist/cjs/index.js",+ "types": "dist/cjs/index.d.ts",+ "module": "dist/esm/index.mjs",+ "sideEffects": false,+ "scripts": {+ "lint": "eslint src --ext ts,tsx",+ "watch": "tsc -w",+ "build": "rollup --config rollup.config.js && tsc -d"+ },+ "author": "Jonny Burger",+ "contributors": [],+ "license": "MIT",+ "repository": {+ "url": "https://github.com/remotion-dev/remotion"+ },+ "bugs": {+ "url": "https://github.com/remotion-dev/remotion/issues"+ },+ "dependencies": {+ "remotion": "workspace:*"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "devDependencies": {+ "@jonny/eslint-config": "3.0.266",+ "@rollup/plugin-typescript": "^8.2.0",+ "eslint": "8.25.0",+ "prettier": "^2.7.1",+ "prettier-plugin-organize-imports": "^2.3.4",+ "rollup": "^2.70.1",+ "typescript": "^4.7.0",+ "zod": "^3.0.0"+ },+ "keywords": [+ "zod",+ "color",+ "remotion"+ ],+ "publishConfig": {+ "access": "public"+ },+ "exports": {+ "./package.json": "./package.json",+ ".": {+ "types": "./dist/cjs/index.d.ts",+ "module": "./dist/esm/index.mjs",+ "import": "./dist/esm/index.mjs",+ "require": "./dist/cjs/index.js"+ }+ }+}diff --git a/packages/z-color/rollup.config.js b/packages/z-color/rollup.config.jsnew file mode 100644index 0000000000..0489482362--- /dev/null+++ b/packages/z-color/rollup.config.js@@ -0,0 +1,23 @@+// rollup.config.js+import typescript from '@rollup/plugin-typescript';++export default [+ {+ input: 'src/index.ts',+ output: [+ {+ file: 'dist/esm/index.mjs',+ format: 'es',+ sourcemap: false,+ },+ ],+ external: ['remotion', 'zod'],+ plugins: [+ typescript({+ tsconfig: 'tsconfig-esm.json',+ sourceMap: false,+ outputToFilesystem: true,+ }),+ ],+ },+];diff --git a/packages/z-color/src/index.ts b/packages/z-color/src/index.tsnew file mode 100644index 0000000000..0f14da5c6b--- /dev/null+++ b/packages/z-color/src/index.ts@@ -0,0 +1,8 @@+import {REMOTION_COLOR_BRAND, parseColor} from './z-color.js';++export {zColor} from './z-color.js';++export const ZColorInternals = {+ parseColor,+ REMOTION_COLOR_BRAND,+};diff --git a/packages/core/src/z-color.ts b/packages/z-color/src/z-color.tssimilarity index 83%rename from packages/core/src/z-color.tsrename to packages/z-color/src/z-color.tsindex 5ab08067c0..6819690ea0 100644--- a/packages/core/src/z-color.ts+++ b/packages/z-color/src/z-color.ts@@ -1,10 +1,10 @@import {z} from 'zod';-import {processColor} from './interpolate-colors.js';+import {Internals} from 'remotion';export const REMOTION_COLOR_BRAND = '__remotion-color';export const parseColor = (value: string) => {- const colored = processColor(value).toString(16).padStart(8, '0');+ const colored = Internals.processColor(value).toString(16).padStart(8, '0');const opacity = parseInt(colored.slice(0, 2), 16);diff --git a/packages/z-color/tsconfig-esm.json b/packages/z-color/tsconfig-esm.jsonnew file mode 100644index 0000000000..93ac160761--- /dev/null+++ b/packages/z-color/tsconfig-esm.json@@ -0,0 +1,13 @@+{+ "extends": "../tsconfig-esm.settings.json",+ "compilerOptions": {+ "composite": true,+ "rootDir": "./src",+ "outDir": "./dist/esm",+ "skipLibCheck": true,+ "jsx": "react-jsx",+ "moduleResolution": "node"+ },+ "references": [{"path": "../core"}],+ "include": ["./src"]+}diff --git a/packages/z-color/tsconfig.json b/packages/z-color/tsconfig.jsonnew file mode 100644index 0000000000..e4b8aba3bc--- /dev/null+++ b/packages/z-color/tsconfig.json@@ -0,0 +1,14 @@+{+ "extends": "../tsconfig.settings.json",+ "compilerOptions": {+ "composite": true,+ "rootDir": "src",+ "outDir": "./dist/cjs",+ "skipLibCheck": true+ },+ "references": [+ {+ "path": "../core"+ }+ ]+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 4851efdd15..15e515f658 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -140,6 +140,7 @@ importers:'@remotion/media-utils': workspace:*'@remotion/player': workspace:*'@remotion/renderer': workspace:*+ '@remotion/z-color': workspace:*'@types/minimist': ^1.2.2'@types/node': ^16.7.5'@types/prettier': ^2.7.2@@ -183,6 +184,7 @@ importers:source-map: 0.6.1devDependencies:'@jonny/eslint-config': 3.0.266_t54va6jeo5lf3vtqih5uiyrm5e+ '@remotion/z-color': link:../z-color'@types/minimist': 1.2.2'@types/node': 16.10.2'@types/prettier': 2.7.2@@ -507,6 +509,7 @@ importers:'@remotion/shapes': workspace:*'@remotion/skia': workspace:*'@remotion/three': workspace:*+ '@remotion/z-color': workspace:*'@types/babel__core': ^7.1.12'@types/babel__template': ^7.4.0'@types/express': ^4.17.11@@ -559,6 +562,7 @@ importers:'@remotion/shapes': link:../shapes'@remotion/skia': link:../skia'@remotion/three': link:../three+ '@remotion/z-color': link:../z-color'@types/express': 4.17.13'@types/node': 16.10.2'@types/opentype.js': 1.3.4@@ -1164,6 +1168,29 @@ importers:three: 0.145.0typescript: 4.7.2+ packages/z-color:+ specifiers:+ '@jonny/eslint-config': 3.0.266+ '@rollup/plugin-typescript': ^8.2.0+ eslint: 8.25.0+ prettier: ^2.7.1+ prettier-plugin-organize-imports: ^2.3.4+ remotion: workspace:*+ rollup: ^2.70.1+ typescript: ^4.7.0+ zod: ^3.0.0+ dependencies:+ remotion: link:../core+ devDependencies:+ '@jonny/eslint-config': 3.0.266_mx6jhvnay66odhn2yt7eqo2wou+ '@rollup/plugin-typescript': 8.5.0_fwpt2ygywzxjmp7kqug2rtl7qq+ eslint: 8.25.0+ prettier: 2.8.4+ prettier-plugin-organize-imports: 2.3.4_silln3pw57har7jydmecgzoypa+ rollup: 2.76.0+ typescript: 4.9.5+ zod: 3.21.4+packages:/@algolia/autocomplete-core/1.7.1:@@ -7371,7 +7398,7 @@ packages:ajv: 6.12.6debug: 4.3.4espree: 9.4.0- globals: 13.17.0+ globals: 13.20.0ignore: 5.2.0import-fresh: 3.3.0js-yaml: 4.1.0@@ -7488,6 +7515,20 @@ packages:'@types/yargs': 16.0.4chalk: 4.1.2+ /@jonny/eslint-config/3.0.266_mx6jhvnay66odhn2yt7eqo2wou:+ resolution: {integrity: sha512-jtrgDIHcM+arLaGxuUlSIh3FrJFSrSjMHEQAFtcSeA/4iNXYjJHRbN9Q0vc8H3wwMNPYYvbxrbmC1zycaEAStQ==}+ dependencies:+ '@typescript-eslint/eslint-plugin': 5.29.0_4yudac4qy4dz3wdiypqku2gk34+ '@typescript-eslint/parser': 5.29.0_mx6jhvnay66odhn2yt7eqo2wou+ eslint-plugin-10x: [email protected]+ eslint-plugin-react: [email protected]+ eslint-plugin-react-hooks: [email protected]+ transitivePeerDependencies:+ - eslint+ - supports-color+ - typescript+ dev: true+/@jonny/eslint-config/3.0.266_t54va6jeo5lf3vtqih5uiyrm5e:resolution: {integrity: sha512-jtrgDIHcM+arLaGxuUlSIh3FrJFSrSjMHEQAFtcSeA/4iNXYjJHRbN9Q0vc8H3wwMNPYYvbxrbmC1zycaEAStQ==}dependencies:@@ -9676,12 +9717,39 @@ packages:functional-red-black-tree: 1.0.1ignore: 5.2.0regexpp: 3.2.0- semver: 7.3.7+ semver: 7.3.8tsutils: [email protected]typescript: 4.7.2transitivePeerDependencies:- supports-color+ /@typescript-eslint/eslint-plugin/5.29.0_4yudac4qy4dz3wdiypqku2gk34:+ resolution: {integrity: sha512-kgTsISt9pM53yRFQmLZ4npj99yGl3x3Pl7z4eA66OuTzAGC4bQB5H5fuLwPnqTKU3yyrrg4MIhjF17UYnL4c0w==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ peerDependencies:+ '@typescript-eslint/parser': ^5.0.0+ eslint: ^6.0.0 || ^7.0.0 || ^8.0.0+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: true+ dependencies:+ '@typescript-eslint/parser': 5.29.0_mx6jhvnay66odhn2yt7eqo2wou+ '@typescript-eslint/scope-manager': 5.29.0+ '@typescript-eslint/type-utils': 5.29.0_mx6jhvnay66odhn2yt7eqo2wou+ '@typescript-eslint/utils': 5.29.0_mx6jhvnay66odhn2yt7eqo2wou+ debug: 4.3.4+ eslint: 8.25.0+ functional-red-black-tree: 1.0.1+ ignore: 5.2.0+ regexpp: 3.2.0+ semver: 7.3.8+ tsutils: [email protected]+ typescript: 4.9.5+ transitivePeerDependencies:+ - supports-color+ dev: true+/@typescript-eslint/eslint-plugin/5.46.0_k56qtvu5cr72d426lmpugttyca:resolution: {integrity: sha512-QrZqaIOzJAjv0sfjY4EjbXUi3ZOFpKfzntx22gPGr9pmFcTjcFw/1sS1LJhEubfAGwuLjNrPV0rH+D1/XZFy7Q==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -9776,6 +9844,26 @@ packages:- supports-colordev: false+ /@typescript-eslint/parser/5.29.0_mx6jhvnay66odhn2yt7eqo2wou:+ resolution: {integrity: sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ peerDependencies:+ eslint: ^6.0.0 || ^7.0.0 || ^8.0.0+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: true+ dependencies:+ '@typescript-eslint/scope-manager': 5.29.0+ '@typescript-eslint/types': 5.29.0+ '@typescript-eslint/typescript-estree': [email protected]+ debug: 4.3.4+ eslint: 8.25.0+ typescript: 4.9.5+ transitivePeerDependencies:+ - supports-color+ dev: true+/@typescript-eslint/parser/5.29.0_t54va6jeo5lf3vtqih5uiyrm5e:resolution: {integrity: sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -9912,6 +10000,25 @@ packages:- supports-colordev: false+ /@typescript-eslint/type-utils/5.29.0_mx6jhvnay66odhn2yt7eqo2wou:+ resolution: {integrity: sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ peerDependencies:+ eslint: '*'+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: true+ dependencies:+ '@typescript-eslint/utils': 5.29.0_mx6jhvnay66odhn2yt7eqo2wou+ debug: 4.3.4+ eslint: 8.25.0+ tsutils: [email protected]+ typescript: 4.9.5+ transitivePeerDependencies:+ - supports-color+ dev: true+/@typescript-eslint/type-utils/5.29.0_t54va6jeo5lf3vtqih5uiyrm5e:resolution: {integrity: sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -10050,12 +10157,33 @@ packages:debug: 4.3.4globby: 11.1.0is-glob: 4.0.3- semver: 7.3.7+ semver: 7.3.8tsutils: [email protected]typescript: 4.7.2transitivePeerDependencies:- supports-color+ /@typescript-eslint/typescript-estree/[email protected]:+ resolution: {integrity: sha512-mQvSUJ/JjGBdvo+1LwC+GY2XmSYjK1nAaVw2emp/E61wEVYEyibRHCqm1I1vEKbXCpUKuW4G7u9ZCaZhJbLoNQ==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ peerDependencies:+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: true+ dependencies:+ '@typescript-eslint/types': 5.29.0+ '@typescript-eslint/visitor-keys': 5.29.0+ debug: 4.3.4+ globby: 11.1.0+ is-glob: 4.0.3+ semver: 7.3.8+ tsutils: [email protected]+ typescript: 4.9.5+ transitivePeerDependencies:+ - supports-color+ dev: true+/@typescript-eslint/typescript-estree/[email protected]:resolution: {integrity: sha512-kDLNn/tQP+Yp8Ro2dUpyyVV0Ksn2rmpPpB0/3MO874RNmXtypMwSeazjEN/Q6CTp8D7ExXAAekPEcCEB/vtJkw==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -10176,6 +10304,24 @@ packages:- typescriptdev: false+ /@typescript-eslint/utils/5.29.0_mx6jhvnay66odhn2yt7eqo2wou:+ resolution: {integrity: sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ peerDependencies:+ eslint: ^6.0.0 || ^7.0.0 || ^8.0.0+ dependencies:+ '@types/json-schema': 7.0.9+ '@typescript-eslint/scope-manager': 5.29.0+ '@typescript-eslint/types': 5.29.0+ '@typescript-eslint/typescript-estree': [email protected]+ eslint: 8.25.0+ eslint-scope: 5.1.1+ eslint-utils: [email protected]+ transitivePeerDependencies:+ - supports-color+ - typescript+ dev: true+/@typescript-eslint/utils/5.29.0_t54va6jeo5lf3vtqih5uiyrm5e:resolution: {integrity: sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -10832,16 +10978,6 @@ packages:get-intrinsic: 1.1.1is-string: 1.0.7- /array-includes/3.1.5:- resolution: {integrity: sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.4- es-abstract: 1.20.1- get-intrinsic: 1.1.1- is-string: 1.0.7-/array-includes/3.1.6:resolution: {integrity: sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==}engines: {node: '>= 0.4'}@@ -10872,15 +11008,6 @@ packages:define-properties: 1.1.3es-abstract: 1.19.1- /array.prototype.flatmap/1.3.0:- resolution: {integrity: sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.4- es-abstract: 1.20.1- es-shim-unscopables: 1.0.0-/array.prototype.flatmap/1.3.1:resolution: {integrity: sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==}engines: {node: '>= 0.4'}@@ -10889,7 +11016,6 @@ packages:define-properties: 1.1.4es-abstract: 1.21.1es-shim-unscopables: 1.0.0- dev: true/array.prototype.tosorted/1.1.1:resolution: {integrity: sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==}@@ -14051,21 +14177,21 @@ packages:peerDependencies:eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8dependencies:- array-includes: 3.1.5- array.prototype.flatmap: 1.3.0+ array-includes: 3.1.6+ array.prototype.flatmap: 1.3.1doctrine: 2.1.0eslint: 8.25.0estraverse: 5.3.0jsx-ast-utils: 3.2.1minimatch: 3.1.2- object.entries: 1.1.5- object.fromentries: 2.0.5- object.hasown: 1.1.1- object.values: 1.1.5+ object.entries: 1.1.6+ object.fromentries: 2.0.6+ object.hasown: 1.1.2+ object.values: 1.1.6prop-types: 15.8.1resolve: 2.0.0-next.3semver: 6.3.0- string.prototype.matchall: 4.0.7+ string.prototype.matchall: 4.0.8/eslint-plugin-react/[email protected]:resolution: {integrity: sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==}@@ -14255,13 +14381,13 @@ packages:eslint-utils: [email protected]eslint-visitor-keys: 3.3.0espree: 9.4.0- esquery: 1.4.0+ esquery: 1.5.0esutils: 2.0.3fast-deep-equal: 3.1.3file-entry-cache: 6.0.1find-up: 5.0.0glob-parent: 6.0.2- globals: 13.17.0+ globals: 13.20.0globby: 11.1.0grapheme-splitter: 1.0.4ignore: 5.2.0@@ -14364,6 +14490,7 @@ packages:engines: {node: '>=0.10'}dependencies:estraverse: 5.3.0+ dev: false/esquery/1.5.0:resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==}@@ -15333,18 +15460,11 @@ packages:type-fest: 0.20.2dev: false- /globals/13.17.0:- resolution: {integrity: sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==}- engines: {node: '>=8'}- dependencies:- type-fest: 0.20.2-/globals/13.20.0:resolution: {integrity: sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==}engines: {node: '>=8'}dependencies:type-fest: 0.20.2- dev: true/globalthis/1.0.3:resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==}@@ -19223,7 +19343,6 @@ packages:call-bind: 1.0.2define-properties: 1.1.4es-abstract: 1.21.1- dev: true/object.fromentries/2.0.5:resolution: {integrity: sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==}@@ -19240,7 +19359,6 @@ packages:call-bind: 1.0.2define-properties: 1.1.4es-abstract: 1.21.1- dev: true/object.hasown/1.1.0:resolution: {integrity: sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==}@@ -19248,18 +19366,11 @@ packages:define-properties: 1.1.3es-abstract: 1.19.1- /object.hasown/1.1.1:- resolution: {integrity: sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A==}- dependencies:- define-properties: 1.1.4- es-abstract: 1.20.1-/object.hasown/1.1.2:resolution: {integrity: sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==}dependencies:define-properties: 1.1.4es-abstract: 1.21.1- dev: true/object.pick/1.3.0:resolution: {integrity: sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==}@@ -19282,7 +19393,6 @@ packages:call-bind: 1.0.2define-properties: 1.1.4es-abstract: 1.21.1- dev: true/obuf/1.1.2:resolution: {integrity: sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==}@@ -20468,6 +20578,16 @@ packages:typescript: 4.7.2dev: true+ /prettier-plugin-organize-imports/2.3.4_silln3pw57har7jydmecgzoypa:+ resolution: {integrity: sha512-R8o23sf5iVL/U71h9SFUdhdOEPsi3nm42FD/oDYIZ2PQa4TNWWuWecxln6jlIQzpZTDMUeO1NicJP6lLn2TtRw==}+ peerDependencies:+ prettier: '>=2.0'+ typescript: '>=2.9'+ dependencies:+ prettier: 2.8.4+ typescript: 4.9.5+ dev: true+/prettier/2.4.1:resolution: {integrity: sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==}engines: {node: '>=10.13.0'}@@ -22634,18 +22754,6 @@ packages:regexp.prototype.flags: 1.3.1side-channel: 1.0.4- /string.prototype.matchall/4.0.7:- resolution: {integrity: sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.4- es-abstract: 1.20.1- get-intrinsic: 1.1.1- has-symbols: 1.0.3- internal-slot: 1.0.3- regexp.prototype.flags: 1.4.3- side-channel: 1.0.4-/string.prototype.matchall/4.0.8:resolution: {integrity: sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==}dependencies:@@ -22657,7 +22765,6 @@ packages:internal-slot: 1.0.5regexp.prototype.flags: 1.4.3side-channel: 1.0.4- dev: true/string.prototype.trimend/1.0.4:resolution: {integrity: sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==}