From 0c326e87973c12031aad14accc1f16117c9d4dde Mon Sep 17 00:00:00 2001 From: winston Date: Mon, 30 Oct 2023 20:23:40 +0100 Subject: [PATCH] refactor: split ui options into files --- package.json | 6 +- src/hooks/generateThemes.ts | 4 +- src/hooks/tsconfig.json | 8 -- src/theme/extensions/error-lens.ts | 4 +- src/theme/extensions/gitlens.ts | 4 +- src/theme/extensions/index.ts | 2 +- src/theme/index.ts | 2 +- src/theme/semanticTokens.ts | 2 +- src/theme/tokenColors.ts | 2 +- src/theme/tokens/cpp.ts | 2 +- src/theme/tokens/cs.ts | 2 +- src/theme/tokens/css.ts | 2 +- src/theme/tokens/data.ts | 2 +- src/theme/tokens/diff.ts | 2 +- src/theme/tokens/dotenv.ts | 2 +- src/theme/tokens/gdscript.ts | 2 +- src/theme/tokens/golang.ts | 2 +- src/theme/tokens/graphql.ts | 2 +- src/theme/tokens/html.ts | 2 +- src/theme/tokens/index.ts | 2 +- src/theme/tokens/java.ts | 2 +- src/theme/tokens/javascript.ts | 2 +- src/theme/tokens/julia.ts | 2 +- src/theme/tokens/latex.ts | 2 +- src/theme/tokens/lua.ts | 2 +- src/theme/tokens/markdown.ts | 2 +- src/theme/tokens/nix.ts | 2 +- src/theme/tokens/php.ts | 2 +- src/theme/tokens/python.ts | 2 +- src/theme/tokens/rust.ts | 2 +- src/theme/tokens/shell.ts | 2 +- src/theme/ui/brackets.ts | 64 ++++++++++ src/theme/ui/customNames.ts | 59 +++++++++ src/theme/ui/index.ts | 15 +++ src/theme/ui/workbench.ts | 48 +++++++ src/theme/uiColors.ts | 169 +------------------------ tsconfig.json | 5 +- yarn-project.nix | 19 +-- yarn.lock | 193 ++++++----------------------- 39 files changed, 269 insertions(+), 381 deletions(-) delete mode 100644 src/hooks/tsconfig.json create mode 100644 src/theme/ui/brackets.ts create mode 100644 src/theme/ui/customNames.ts create mode 100644 src/theme/ui/index.ts create mode 100644 src/theme/ui/workbench.ts diff --git a/package.json b/package.json index de199009..81379df9 100644 --- a/package.json +++ b/package.json @@ -190,8 +190,8 @@ "react-dom": "^18.2.0", "shikiji": "^0.6.10", "storybook": "^7.5.1", - "ts-node": "^10.9.1", "tsup": "^7.2.0", + "tsx": "^3.14.0", "typescript": "^5.2.2", "vite": "^4.5.0" }, @@ -204,14 +204,14 @@ "build-storybook": "storybook build", "chromatic": "chromatic --exit-zero-on-changes --exit-once-uploaded --project-token chpt_e3cba49738d7554", "compile": "tsup", - "compile:theme": "ts-node src/hooks/generateThemes.ts", + "compile:theme": "tsx src/hooks/generateThemes.ts", "dev": "DEBUG=1 yarn build", "lint": "eslint . --ext .ts", "package": "vsce package --allow-star-activation --yarn", "postbuild": "prettier -w ./themes", "prepare": "husky install", "storybook": "storybook dev -p 6006", - "update-types": "ts-node src/hooks/updateVSCtypes.ts" + "update-types": "tsx src/hooks/updateVSCtypes.ts" }, "packageManager": "yarn@3.6.3" } diff --git a/src/hooks/generateThemes.ts b/src/hooks/generateThemes.ts index bec058a1..6a1b24f3 100644 --- a/src/hooks/generateThemes.ts +++ b/src/hooks/generateThemes.ts @@ -2,8 +2,8 @@ import * as fs from "fs/promises"; import * as path from "path"; import { variants } from "@catppuccin/palette"; -import { compileTheme, defaultOptions } from "../theme"; -import type { CatppuccinFlavor } from "../types"; +import { compileTheme, defaultOptions } from "@/theme"; +import type { CatppuccinFlavor } from "@/types"; const themeDir = path.join(__dirname, "../../themes"); const flavors = Object.keys(variants) as CatppuccinFlavor[]; diff --git a/src/hooks/tsconfig.json b/src/hooks/tsconfig.json deleted file mode 100644 index fe58700b..00000000 --- a/src/hooks/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "module": "NodeNext", - "strict": true, - "lib": ["es6"] - }, - "exclude": ["node_modules"] -} diff --git a/src/theme/extensions/error-lens.ts b/src/theme/extensions/error-lens.ts index e87590a0..122b6dab 100644 --- a/src/theme/extensions/error-lens.ts +++ b/src/theme/extensions/error-lens.ts @@ -1,5 +1,5 @@ -import type { ErrorLensColors, ThemeContext } from "../../types"; -import { opacity } from "../utils"; +import type { ErrorLensColors, ThemeContext } from "@/types"; +import { opacity } from "@/theme/utils"; export default function colors( context: ThemeContext, diff --git a/src/theme/extensions/gitlens.ts b/src/theme/extensions/gitlens.ts index ccb5eb52..0dcdfffa 100644 --- a/src/theme/extensions/gitlens.ts +++ b/src/theme/extensions/gitlens.ts @@ -1,5 +1,5 @@ -import type { GitLensColors, ThemeContext } from "../../types"; -import { opacity, shade, transparent } from "../utils"; +import type { GitLensColors, ThemeContext } from "@/types"; +import { opacity, shade, transparent } from "@/theme/utils"; export default function colors(context: ThemeContext): Partial { const { palette, options } = context; diff --git a/src/theme/extensions/index.ts b/src/theme/extensions/index.ts index 135e6467..9a2e49e3 100644 --- a/src/theme/extensions/index.ts +++ b/src/theme/extensions/index.ts @@ -1,4 +1,4 @@ -import type { ThemeContext } from "../../types"; +import type { ThemeContext } from "@/types"; import errorLens from "./error-lens"; import gitLens from "./gitlens"; diff --git a/src/theme/index.ts b/src/theme/index.ts index 7426c6c5..0d035fb4 100644 --- a/src/theme/index.ts +++ b/src/theme/index.ts @@ -5,7 +5,7 @@ import type { CatppuccinPalette, ThemeContext, ThemeOptions, -} from "../types"; +} from "@/types"; import { getTokenColors } from "./tokenColors"; import { getSemanticTokens } from "./semanticTokens"; import { getUiColors } from "./uiColors"; diff --git a/src/theme/semanticTokens.ts b/src/theme/semanticTokens.ts index 70bd54eb..6ebbf59d 100644 --- a/src/theme/semanticTokens.ts +++ b/src/theme/semanticTokens.ts @@ -1,4 +1,4 @@ -import type { SemanticTokens, ThemeContext } from "../types"; +import type { SemanticTokens, ThemeContext } from "@/types"; export const getSemanticTokens = (context: ThemeContext): SemanticTokens => { const { palette } = context; diff --git a/src/theme/tokenColors.ts b/src/theme/tokenColors.ts index b9d21e77..e3ce6c76 100644 --- a/src/theme/tokenColors.ts +++ b/src/theme/tokenColors.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../types"; +import type { TextmateColors, ThemeContext } from "@/types"; import tokens from "./tokens"; export const getTokenColors = (context: ThemeContext): TextmateColors => { diff --git a/src/theme/tokens/cpp.ts b/src/theme/tokens/cpp.ts index 2e783c34..b33426bc 100644 --- a/src/theme/tokens/cpp.ts +++ b/src/theme/tokens/cpp.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/cs.ts b/src/theme/tokens/cs.ts index ee828644..e6a4743e 100644 --- a/src/theme/tokens/cs.ts +++ b/src/theme/tokens/cs.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/css.ts b/src/theme/tokens/css.ts index a602277b..942b393e 100644 --- a/src/theme/tokens/css.ts +++ b/src/theme/tokens/css.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/data.ts b/src/theme/tokens/data.ts index cdac0c4d..5e36eb3d 100644 --- a/src/theme/tokens/data.ts +++ b/src/theme/tokens/data.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/diff.ts b/src/theme/tokens/diff.ts index 3276c78f..18280ad2 100644 --- a/src/theme/tokens/diff.ts +++ b/src/theme/tokens/diff.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/dotenv.ts b/src/theme/tokens/dotenv.ts index dad99d56..6af8241f 100644 --- a/src/theme/tokens/dotenv.ts +++ b/src/theme/tokens/dotenv.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/gdscript.ts b/src/theme/tokens/gdscript.ts index 1bd21b19..bbc14aa0 100644 --- a/src/theme/tokens/gdscript.ts +++ b/src/theme/tokens/gdscript.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/golang.ts b/src/theme/tokens/golang.ts index befdf90a..60d53edc 100644 --- a/src/theme/tokens/golang.ts +++ b/src/theme/tokens/golang.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/graphql.ts b/src/theme/tokens/graphql.ts index 65960ed6..16c91fb9 100644 --- a/src/theme/tokens/graphql.ts +++ b/src/theme/tokens/graphql.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/html.ts b/src/theme/tokens/html.ts index 7e600a19..658d179a 100644 --- a/src/theme/tokens/html.ts +++ b/src/theme/tokens/html.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/index.ts b/src/theme/tokens/index.ts index 46dcf4e9..4880811e 100644 --- a/src/theme/tokens/index.ts +++ b/src/theme/tokens/index.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; import cpp from "./cpp"; import cs from "./cs"; diff --git a/src/theme/tokens/java.ts b/src/theme/tokens/java.ts index 44fc8435..346dd74a 100644 --- a/src/theme/tokens/java.ts +++ b/src/theme/tokens/java.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/javascript.ts b/src/theme/tokens/javascript.ts index faffa0c7..529ce7d2 100644 --- a/src/theme/tokens/javascript.ts +++ b/src/theme/tokens/javascript.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/julia.ts b/src/theme/tokens/julia.ts index 8a4b484b..d46092a8 100644 --- a/src/theme/tokens/julia.ts +++ b/src/theme/tokens/julia.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/latex.ts b/src/theme/tokens/latex.ts index 4ad3da6b..945628ee 100644 --- a/src/theme/tokens/latex.ts +++ b/src/theme/tokens/latex.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/lua.ts b/src/theme/tokens/lua.ts index 1ed86148..89c6a034 100644 --- a/src/theme/tokens/lua.ts +++ b/src/theme/tokens/lua.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/markdown.ts b/src/theme/tokens/markdown.ts index d22b0339..50ffd3c7 100644 --- a/src/theme/tokens/markdown.ts +++ b/src/theme/tokens/markdown.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/nix.ts b/src/theme/tokens/nix.ts index caff76f3..d154aae1 100644 --- a/src/theme/tokens/nix.ts +++ b/src/theme/tokens/nix.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/php.ts b/src/theme/tokens/php.ts index e85fbd99..df1b79bf 100644 --- a/src/theme/tokens/php.ts +++ b/src/theme/tokens/php.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/python.ts b/src/theme/tokens/python.ts index 009517c2..44ddcb4e 100644 --- a/src/theme/tokens/python.ts +++ b/src/theme/tokens/python.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/rust.ts b/src/theme/tokens/rust.ts index f47a06a8..7d2d8f45 100644 --- a/src/theme/tokens/rust.ts +++ b/src/theme/tokens/rust.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/tokens/shell.ts b/src/theme/tokens/shell.ts index 6cefefd5..fa41c5f0 100644 --- a/src/theme/tokens/shell.ts +++ b/src/theme/tokens/shell.ts @@ -1,4 +1,4 @@ -import type { TextmateColors, ThemeContext } from "../../types"; +import type { TextmateColors, ThemeContext } from "@/types"; const tokens = (context: ThemeContext): TextmateColors => { const { palette } = context; diff --git a/src/theme/ui/brackets.ts b/src/theme/ui/brackets.ts new file mode 100644 index 00000000..6ae87591 --- /dev/null +++ b/src/theme/ui/brackets.ts @@ -0,0 +1,64 @@ +import { shade } from "@/theme/utils"; +import { ThemeContext, WorkbenchColors } from "@/types"; + +type PickStartsWith = { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + [K in keyof T as K extends `${S}${infer R}` ? K : never]: T[K]; +}; + +type BracketHLs = keyof PickStartsWith< + WorkbenchColors, + "editorBracketHighlight" +>; + +const brackets = (context: ThemeContext): Record => { + const { isLatte, options, palette } = context; + + // invert the shade if current theme is latte + const L = isLatte ? -1 : 1; + const styles = { + rainbow: { + "editorBracketHighlight.foreground1": palette.red, + "editorBracketHighlight.foreground2": palette.peach, + "editorBracketHighlight.foreground3": palette.yellow, + "editorBracketHighlight.foreground4": palette.green, + "editorBracketHighlight.foreground5": palette.sapphire, + "editorBracketHighlight.foreground6": palette.mauve, + "editorBracketHighlight.unexpectedBracket.foreground": palette.maroon, + }, + dimmed: { + "editorBracketHighlight.foreground1": shade(palette.red, -0.6 * L), + "editorBracketHighlight.foreground2": shade(palette.peach, -0.6 * L), + "editorBracketHighlight.foreground3": shade(palette.yellow, -0.6 * L), + "editorBracketHighlight.foreground4": shade(palette.green, -0.6 * L), + "editorBracketHighlight.foreground5": shade(palette.sapphire, -0.6 * L), + "editorBracketHighlight.foreground6": shade(palette.mauve, -0.6 * L), + "editorBracketHighlight.unexpectedBracket.foreground": shade( + palette.maroon, + -0.6 * L, + ), + }, + monochromatic: { + "editorBracketHighlight.foreground1": palette.subtext1, + "editorBracketHighlight.foreground2": palette.subtext0, + "editorBracketHighlight.foreground3": palette.overlay2, + "editorBracketHighlight.foreground4": palette.overlay1, + "editorBracketHighlight.foreground5": palette.overlay0, + "editorBracketHighlight.foreground6": palette.surface2, + "editorBracketHighlight.unexpectedBracket.foreground": palette.maroon, + }, + neovim: { + "editorBracketHighlight.foreground1": palette.red, + "editorBracketHighlight.foreground2": palette.teal, + "editorBracketHighlight.foreground3": palette.yellow, + "editorBracketHighlight.foreground4": palette.blue, + "editorBracketHighlight.foreground5": palette.pink, + "editorBracketHighlight.foreground6": palette.flamingo, + "editorBracketHighlight.unexpectedBracket.foreground": palette.maroon, + }, + }; + + return styles[options.bracketMode]; +}; + +export default brackets; diff --git a/src/theme/ui/customNames.ts b/src/theme/ui/customNames.ts new file mode 100644 index 00000000..4a63c913 --- /dev/null +++ b/src/theme/ui/customNames.ts @@ -0,0 +1,59 @@ +import { CatppuccinPalette, ThemeContext } from "@/types"; +import { opacity } from "@/theme/utils"; + +type CustomNamedColors = Record; + +const customNamedColors = (context: ThemeContext): CustomNamedColors => { + const { palette, options } = context; + const accent = palette[options.accent]; + + return { + ...Object.entries({ + // collect the options, overwrite the "all" config with the current palette config + ...options.customUIColors.all, + ...options.customUIColors[palette.name], + }) + .map(([k, v]) => { + // deal with accents + if (v.startsWith("accent")) { + const entry = v.split(" "); + if (entry.length !== 1) { + return { + [k]: opacity(accent, Number(entry[1])), + }; + } else { + return { + [k]: accent, + }; + } + } + + // allow custom hex colors + if (v.startsWith("#")) { + return { + [k]: v, + }; + } + + //check if the entry is a "color opacity" mapping + const entry = v.split(" "); + if (entry.length !== 1) { + // call the opacity function + v = opacity( + palette[entry[0] as keyof CatppuccinPalette], + Number(entry[1]), + ); + } else { + // resolve to the palette color + v = palette[v as keyof CatppuccinPalette]; + } + + return { + [k]: v, + }; + }) + .reduce((prev, cur) => ({ ...prev, ...cur }), {}), + }; +}; + +export default customNamedColors; diff --git a/src/theme/ui/index.ts b/src/theme/ui/index.ts new file mode 100644 index 00000000..dc848567 --- /dev/null +++ b/src/theme/ui/index.ts @@ -0,0 +1,15 @@ +import { ThemeContext } from "@/types"; +import brackets from "./brackets"; +import workbench from "./workbench"; + +import customNamedColors from "./customNames"; + +const uiCustomizations = (context: ThemeContext) => { + return { + ...brackets(context), + ...workbench(context), + ...customNamedColors(context), + }; +}; + +export default uiCustomizations; diff --git a/src/theme/ui/workbench.ts b/src/theme/ui/workbench.ts new file mode 100644 index 00000000..f1909622 --- /dev/null +++ b/src/theme/ui/workbench.ts @@ -0,0 +1,48 @@ +import { ThemeContext, WorkbenchColors } from "@/types"; +import { opacity } from "@/theme/utils"; + +type WorkbenchPartial = Partial>; + +const workbench = (context: ThemeContext): WorkbenchPartial => { + const { options, palette } = context; + + const styles = { + default: {}, + flat: { + "activityBar.background": palette.mantle, + "breadcrumb.background": palette.base, + "commandCenter.background": palette.mantle, + "debugToolBar.background": palette.mantle, + "editorGroupHeader.tabsBackground": palette.mantle, + "minimap.background": opacity(palette.base, 0.5), + "statusBar.background": palette.mantle, + "statusBar.noFolderBackground": palette.mantle, + "tab.border": palette.base, + "titleBar.activeBackground": palette.mantle, + "titleBar.inactiveBackground": palette.mantle, + "scrollbar.shadow": palette.mantle, + }, + minimal: { + "activityBar.background": palette.base, + "breadcrumb.background": palette.base, + "commandCenter.background": palette.base, + "debugToolBar.background": palette.base, + "editor.background": palette.base, + "editorWidget.background": palette.base, + "editorGroupHeader.tabsBackground": palette.base, + "minimap.background": opacity(palette.base, 0.5), + "statusBar.background": palette.base, + "statusBar.noFolderBackground": palette.base, + "sideBar.background": palette.base, + "sideBarSectionHeader.background": palette.base, + "tab.border": palette.base, + "tab.inactiveBackground": palette.base, + "titleBar.activeBackground": palette.base, + "titleBar.inactiveBackground": palette.base, + }, + }; + + return styles[options.workbenchMode]; +}; + +export default workbench; diff --git a/src/theme/uiColors.ts b/src/theme/uiColors.ts index dfbbdbf5..f327b370 100644 --- a/src/theme/uiColors.ts +++ b/src/theme/uiColors.ts @@ -1,117 +1,7 @@ -import type { - CatppuccinBracketMode, - CatppuccinPalette, - CatppuccinWorkbenchMode, - ThemeContext, - WorkbenchColors, -} from "../types"; +import type { ThemeContext, WorkbenchColors } from "@/types"; import { opacity, shade, transparent } from "./utils"; import extensions from "./extensions"; - -type PickStartsWith = { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - [K in keyof T as K extends `${S}${infer R}` ? K : never]: T[K]; -}; - -type BracketHLs = keyof PickStartsWith< - WorkbenchColors, - "editorBracketHighlight" ->; - -const getCustomizedColors = (context: ThemeContext) => { - const { palette, options, isLatte } = context; - - // invert the shade if current theme is latte - const L = isLatte ? -1 : 1; - const bracketsMap: Record< - CatppuccinBracketMode, - Record - > = { - rainbow: { - "editorBracketHighlight.foreground1": palette.red, - "editorBracketHighlight.foreground2": palette.peach, - "editorBracketHighlight.foreground3": palette.yellow, - "editorBracketHighlight.foreground4": palette.green, - "editorBracketHighlight.foreground5": palette.sapphire, - "editorBracketHighlight.foreground6": palette.mauve, - "editorBracketHighlight.unexpectedBracket.foreground": palette.maroon, - }, - dimmed: { - "editorBracketHighlight.foreground1": shade(palette.red, -0.6 * L), - "editorBracketHighlight.foreground2": shade(palette.peach, -0.6 * L), - "editorBracketHighlight.foreground3": shade(palette.yellow, -0.6 * L), - "editorBracketHighlight.foreground4": shade(palette.green, -0.6 * L), - "editorBracketHighlight.foreground5": shade(palette.sapphire, -0.6 * L), - "editorBracketHighlight.foreground6": shade(palette.mauve, -0.6 * L), - "editorBracketHighlight.unexpectedBracket.foreground": shade( - palette.maroon, - -0.6 * L, - ), - }, - monochromatic: { - "editorBracketHighlight.foreground1": palette.subtext1, - "editorBracketHighlight.foreground2": palette.subtext0, - "editorBracketHighlight.foreground3": palette.overlay2, - "editorBracketHighlight.foreground4": palette.overlay1, - "editorBracketHighlight.foreground5": palette.overlay0, - "editorBracketHighlight.foreground6": palette.surface2, - "editorBracketHighlight.unexpectedBracket.foreground": palette.maroon, - }, - neovim: { - "editorBracketHighlight.foreground1": palette.red, - "editorBracketHighlight.foreground2": palette.teal, - "editorBracketHighlight.foreground3": palette.yellow, - "editorBracketHighlight.foreground4": palette.blue, - "editorBracketHighlight.foreground5": palette.pink, - "editorBracketHighlight.foreground6": palette.flamingo, - "editorBracketHighlight.unexpectedBracket.foreground": palette.maroon, - }, - }; - - const workbenchMap: Record< - CatppuccinWorkbenchMode, - Partial> - > = { - default: {}, - flat: { - "activityBar.background": palette.mantle, - "breadcrumb.background": palette.base, - "commandCenter.background": palette.mantle, - "debugToolBar.background": palette.mantle, - "editorGroupHeader.tabsBackground": palette.mantle, - "minimap.background": opacity(palette.base, 0.5), - "statusBar.background": palette.mantle, - "statusBar.noFolderBackground": palette.mantle, - "tab.border": palette.base, - "titleBar.activeBackground": palette.mantle, - "titleBar.inactiveBackground": palette.mantle, - "scrollbar.shadow": palette.mantle, - }, - minimal: { - "activityBar.background": palette.base, - "breadcrumb.background": palette.base, - "commandCenter.background": palette.base, - "debugToolBar.background": palette.base, - "editor.background": palette.base, - "editorWidget.background": palette.base, - "editorGroupHeader.tabsBackground": palette.base, - "minimap.background": opacity(palette.base, 0.5), - "statusBar.background": palette.base, - "statusBar.noFolderBackground": palette.base, - "sideBar.background": palette.base, - "sideBarSectionHeader.background": palette.base, - "tab.border": palette.base, - "tab.inactiveBackground": palette.base, - "titleBar.activeBackground": palette.base, - "titleBar.inactiveBackground": palette.base, - }, - }; - - return { - ...bracketsMap[options.bracketMode], - ...workbenchMap[options.workbenchMode], - }; -}; +import uiCustomizations from "./ui"; export const getUiColors = ( context: ThemeContext, @@ -124,55 +14,6 @@ export const getUiColors = ( ? opacity(palette.overlay1, 0.15) : transparent; - // support for custom named colors - const customNamedColors = { - ...Object.entries({ - // collect the options, overwrite the "all" config with the current palette config - ...options.customUIColors.all, - ...options.customUIColors[palette.name], - }) - .map(([k, v]) => { - // deal with accents - if (v.startsWith("accent")) { - const entry = v.split(" "); - if (entry.length !== 1) { - return { - [k]: opacity(accent, Number(entry[1])), - }; - } else { - return { - [k]: accent, - }; - } - } - - // allow custom hex colors - if (v.startsWith("#")) { - return { - [k]: v, - }; - } - - //check if the entry is a "color opacity" mapping - const entry = v.split(" "); - if (entry.length !== 1) { - // call the opacity function - v = opacity( - palette[entry[0] as keyof CatppuccinPalette], - Number(entry[1]), - ); - } else { - // resolve to the palette color - v = palette[v as keyof CatppuccinPalette]; - } - - return { - [k]: v, - }; - }) - .reduce((prev, cur) => ({ ...prev, ...cur }), {}), - }; - // find the definitions here: // https://code.visualstudio.com/api/references/theme-color return { @@ -659,10 +500,6 @@ export const getUiColors = ( "charts.purple": palette.mauve, ...extensions(context), - - // workbench overrides - ...getCustomizedColors(context), - // custom named overrides - ...customNamedColors, + ...uiCustomizations(context), }; }; diff --git a/tsconfig.json b/tsconfig.json index 46b295a9..6e828629 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,10 @@ "outDir": "./dist", "sourceMap": false, "strict": true, - "lib": ["es6"] + "lib": ["es6"], + "paths": { + "@/*": ["./src/*"] + } }, "include": ["src", ".eslintrc.js"], "exclude": ["node_modules"] diff --git a/yarn-project.nix b/yarn-project.nix index c502d126..ca1ad7db 100644 --- a/yarn-project.nix +++ b/yarn-project.nix @@ -296,7 +296,6 @@ cacheEntries = { "@bcherny/json-schema-ref-parser@npm:10.0.5-fork" = { filename = "@bcherny-json-schema-ref-parser-npm-10.0.5-fork-2de1c30409-e90eb3655c.zip"; sha512 = "e90eb3655c4e15f54ebc5138baac98471d159e3a253b484416c03c2d43f5c3bc80a4d6fe18acd71f77bf2f95f7fbc36730abb21cbd1f9d80a6af630c554e6d62"; }; "@catppuccin/palette@npm:0.2.0" = { filename = "@catppuccin-palette-npm-0.2.0-eab27446a4-fa39801ad8.zip"; sha512 = "fa39801ad8b61b20878c6b7fe65a232cfda1244db344b8d3c94e9138f20e7dccd9ddddcc04bcf0d2edbbb76989e9fac4c25b975573b68d417fb778e814f0febf"; }; "@colors/colors@npm:1.5.0" = { filename = "@colors-colors-npm-1.5.0-875af3a8b4-d64d5260be.zip"; sha512 = "d64d5260bed1d5012ae3fc617d38d1afc0329fec05342f4e6b838f46998855ba56e0a73833f4a80fa8378c84810da254f76a8a19c39d038260dc06dc4e007425"; }; -"@cspotcode/source-map-support@npm:0.8.1" = { filename = "@cspotcode-source-map-support-npm-0.8.1-964f2de99d-5718f26708.zip"; sha512 = "5718f267085ed8edb3e7ef210137241775e607ee18b77d95aa5bd7514f47f5019aa2d82d96b3bf342ef7aa890a346fa1044532ff7cc3009e7d24fce3ce6200fa"; }; "@discoveryjs/json-ext@npm:0.5.7" = { filename = "@discoveryjs-json-ext-npm-0.5.7-fe04af1f31-2176d301cc.zip"; sha512 = "2176d301cc258ea5c2324402997cf8134ebb212469c0d397591636cea8d3c02f2b3cf9fd58dcb748c7a0dade77ebdc1b10284fa63e608c033a1db52fddc69918"; }; "@emotion/use-insertion-effect-with-fallbacks@npm:1.0.1" = { filename = "@emotion-use-insertion-effect-with-fallbacks-npm-1.0.1-730758c66c-700b6e5bbb.zip"; sha512 = "700b6e5bbb37a9231f203bb3af11295eed01d73b2293abece0bc2a2237015e944d7b5114d4887ad9a79776504aa51ed2a8b0ddbc117c54495dd01a6b22f93786"; }; "@esbuild/darwin-arm64@npm:0.18.20" = { filename = "@esbuild-darwin-arm64-npm-0.18.20-00b3504077-602064e0c7.zip"; sha512 = "602064e0c7a4d298dc969e78129e55449c3ad912ce77555a04e1047203ed17b12bf99a879f96b28bc5d75bde7d58fa3678a379f1a97a4f1daeb0dac551026652"; }; @@ -323,13 +322,11 @@ cacheEntries = { "@jest/types@npm:29.6.3" = { filename = "@jest-types-npm-29.6.3-a584ca999d-a0bcf15dbb.zip"; sha512 = "a0bcf15dbb0eca6bdd8ce61a3fb055349d40268622a7670a3b2eb3c3dbafe9eb26af59938366d520b86907b9505b0f9b29b85cec11579a9e580694b87cd90fcc"; }; "@joshwooding/vite-plugin-react-docgen-typescript@npm:0.3.0" = { filename = "@joshwooding-vite-plugin-react-docgen-typescript-npm-0.3.0-e20c4a4bd6-3fe2dc68dc.zip"; sha512 = "3fe2dc68dcb43920cc08bc5cc2937953bed1080e9c453dc3f513156b9a862fe6af0cda94b70272a4844a27964070129f8d0d31056211b1486a8fd9f6e1c20559"; }; "@jridgewell/gen-mapping@npm:0.3.3" = { filename = "@jridgewell-gen-mapping-npm-0.3.3-1815eba94c-4a74944bd3.zip"; sha512 = "4a74944bd31f22354fc01c3da32e83c19e519e3bbadafa114f6da4522ea77dd0c2842607e923a591d60a76699d819a2fbb6f3552e277efdb9b58b081390b60ab"; }; -"@jridgewell/resolve-uri@npm:3.1.0" = { filename = "@jridgewell-resolve-uri-npm-3.1.0-6ff2351e61-b5ceaaf9a1.zip"; sha512 = "b5ceaaf9a110fcb2780d1d8f8d4a0bfd216702f31c988d8042e5f8fbe353c55d9b0f55a1733afdc64806f8e79c485d2464680ac48a0d9fcadb9548ee6b81d267"; }; "@jridgewell/resolve-uri@npm:3.1.1" = { filename = "@jridgewell-resolve-uri-npm-3.1.1-aa2de3f210-f5b441fe79.zip"; sha512 = "f5b441fe7900eab4f9155b3b93f9800a916257f4e8563afbcd3b5a5337b55e52bd8ae6735453b1b745457d9f6cdb16d74cd6220bbdd98cf153239e13f6cbb653"; }; "@jridgewell/set-array@npm:1.1.2" = { filename = "@jridgewell-set-array-npm-1.1.2-45b82d7fb6-69a84d5980.zip"; sha512 = "69a84d5980385f396ff60a175f7177af0b8da4ddb81824cb7016a9ef914eee9806c72b6b65942003c63f7983d4f39a5c6c27185bbca88eb4690b62075602e28e"; }; "@jridgewell/sourcemap-codec@npm:1.4.14" = { filename = "@jridgewell-sourcemap-codec-npm-1.4.14-f5f0630788-61100637b6.zip"; sha512 = "61100637b6d173d3ba786a5dff019e1a74b1f394f323c1fee337ff390239f053b87266c7a948777f4b1ee68c01a8ad0ab61e5ff4abb5a012a0b091bec391ab97"; }; "@jridgewell/sourcemap-codec@npm:1.4.15" = { filename = "@jridgewell-sourcemap-codec-npm-1.4.15-a055fb62cf-b881c7e503.zip"; sha512 = "b881c7e503db3fc7f3c1f35a1dd2655a188cc51a3612d76efc8a6eb74728bef5606e6758ee77423e564092b4a518aba569bbb21c9bac5ab7a35b0c6ae7e344c8"; }; "@jridgewell/trace-mapping@npm:0.3.19" = { filename = "@jridgewell-trace-mapping-npm-0.3.19-9aa1a7e2fd-956a6f0f6f.zip"; sha512 = "956a6f0f6fec060fb48c6bf1f5ec2064e13cd38c8be3873877d4b92b4a27ba58289a34071752671262a3e3c202abcc3fa2aac64d8447b4b0fa1ba3c9047f1c20"; }; -"@jridgewell/trace-mapping@npm:0.3.9" = { filename = "@jridgewell-trace-mapping-npm-0.3.9-91625cd7fb-d89597752f.zip"; sha512 = "d89597752fd88d3f3480845691a05a44bd21faac18e2185b6f436c3b0fd0c5a859fbbd9aaa92050c4052caf325ad3e10e2e1d1b64327517471b7d51babc0ddef"; }; "@jsdevtools/ono@npm:7.1.3" = { filename = "@jsdevtools-ono-npm-7.1.3-cb2313543b-2297fcd472.zip"; sha512 = "2297fcd472ba810bffe8519d2249171132844c7174f3a16634f9260761c8c78bc0428a4190b5b6d72d45673c13918ab9844d706c3ed4ef8f62ab11a2627a08ad"; }; "@juggle/resize-observer@npm:3.4.0" = { filename = "@juggle-resize-observer-npm-3.4.0-659544c6b5-2505028c05.zip"; sha512 = "2505028c05cc2e17639fcad06218b1c4b60f932a4ebb4b41ab546ef8c157031ae377e3f560903801f6d01706dbefd4943b6c4704bf19ed86dfa1c62f1473a570"; }; "@mdx-js/react@npm:2.3.0" = { filename = "@mdx-js-react-npm-2.3.0-d5582a450b-f45fe77955.zip"; sha512 = "f45fe779556e6cd9a787f711274480e0638b63c460f192ebdcd77cc07ffa61e23c98cb46dd46e577093e1cb4997a232a848d1fb0ba850ae204422cf603add524"; }; @@ -430,10 +427,6 @@ cacheEntries = { "@storybook/types@npm:7.4.0" = { filename = "@storybook-types-npm-7.4.0-50f0aefa21-f36b054bc3.zip"; sha512 = "f36b054bc3d4c2fb2259fd23f0198ecdb9e86e1d05f251306d9c7c6e201df677217e8f28d7102d8733e0ad2e96e227e0f9c321fb664da316a74c95668a192c15"; }; "@storybook/types@npm:7.5.1" = { filename = "@storybook-types-npm-7.5.1-dcbb44ed9d-9134bd2887.zip"; sha512 = "9134bd288760df17c36b1d05fa856b86463460ba5de29817156230cef717a0bd836c8637a638d28a87124470919133a897b94278de00be92823d24088f63622c"; }; "@tootallnate/once@npm:2.0.0" = { filename = "@tootallnate-once-npm-2.0.0-e36cf4f140-ad87447820.zip"; sha512 = "ad87447820dd3f24825d2d947ebc03072b20a42bfc96cbafec16bff8bbda6c1a81fcb0be56d5b21968560c5359a0af4038a68ba150c3e1694fe4c109a063bed8"; }; -"@tsconfig/node10@npm:1.0.9" = { filename = "@tsconfig-node10-npm-1.0.9-f2e2d20feb-a33ae4dc2a.zip"; sha512 = "a33ae4dc2a621c0678ac8ac4bceb8e512ae75dac65417a2ad9b022d9b5411e863c4c198b6ba9ef659e14b9fb609bbec680841a2e84c1172df7a5ffcf076539df"; }; -"@tsconfig/node12@npm:1.0.11" = { filename = "@tsconfig-node12-npm-1.0.11-9710d1c61b-5ce29a41b1.zip"; sha512 = "5ce29a41b13e7897a58b8e2df11269c5395999e588b9a467386f99d1d26f6c77d1af2719e407621412520ea30517d718d5192a32403b8dfcc163bf33e40a338a"; }; -"@tsconfig/node14@npm:1.0.3" = { filename = "@tsconfig-node14-npm-1.0.3-15321421d2-19275fe80c.zip"; sha512 = "19275fe80c4c8d0ad0abed6a96dbf00642e88b220b090418609c4376e1cef81bf16237bf170ad1b341452feddb8115d8dd2e5acdfdea1b27422071163dc9ba9d"; }; -"@tsconfig/node16@npm:1.0.3" = { filename = "@tsconfig-node16-npm-1.0.3-6a4a30eda2-3a8b657dd0.zip"; sha512 = "3a8b657dd047495b7ad23437d6afd20297ce90380ff0bdee93fc7d39a900dbd8d9e26e53ff6b465e7967ce2adf0b218782590ce9013285121e6a5928fbd6819f"; }; "@types/babel__core@npm:7.20.1" = { filename = "@types-babel__core-npm-7.20.1-f44761b6b6-9fcd9691a3.zip"; sha512 = "9fcd9691a33074802d9057ff70b0e3ff3778f52470475b68698a0f6714fbe2ccb36c16b43dc924eb978cd8a81c1f845e5ff4699e7a47606043b539eb8c6331a8"; }; "@types/babel__core@npm:7.20.3" = { filename = "@types-babel__core-npm-7.20.3-12e735c935-8d14acc14d.zip"; sha512 = "8d14acc14d99b4b8bf36c00da368f6d597bd9ae3344aa7048f83f0f701b0463fa7c7bf2e50c3e4382fdbcfd1e4187b3452a0f0888b0f3ae8fad975591f7bdb94"; }; "@types/babel__generator@npm:7.6.4" = { filename = "@types-babel__generator-npm-7.6.4-03e776f956-20effbbb5f.zip"; sha512 = "20effbbb5f8a3a0211e95959d06ae70c097fb6191011b73b38fe86deebefad8e09ee014605e0fd3cdaedc73d158be555866810e9166e1f09e4cfd880b874dcb0"; }; @@ -514,10 +507,8 @@ cacheEntries = { "accepts@npm:1.3.8" = { filename = "accepts-npm-1.3.8-9a812371c9-50c43d32e7.zip"; sha512 = "50c43d32e7b50285ebe84b613ee4a3aa426715a7d131b65b786e2ead0fd76b6b60091b9916d3478a75f11f162628a2139991b6c03ab3f1d9ab7c86075dc8eab4"; }; "acorn-jsx@npm:5.3.2" = { filename = "acorn-jsx-npm-5.3.2-d7594599ea-c3d3b2a89c.zip"; sha512 = "c3d3b2a89c9a056b205b69530a37b972b404ee46ec8e5b341666f9513d3163e2a4f214a71f4dfc7370f5a9c07472d2fd1c11c91c3f03d093e37637d95da98950"; }; "acorn-walk@npm:7.2.0" = { filename = "acorn-walk-npm-7.2.0-5f8b515308-9252158a79.zip"; sha512 = "9252158a79b9d92f1bc0dd6acc0fcfb87a67339e84bcc301bb33d6078936d27e35d606b4d35626d2962cd43c256d6f27717e70cbe15c04fff999ab0b2260b21f"; }; -"acorn-walk@npm:8.2.0" = { filename = "acorn-walk-npm-8.2.0-2f2cac3177-1715e76c01.zip"; sha512 = "1715e76c01dd7b2d4ca472f9c58968516a4899378a63ad5b6c2d668bba8da21a71976c14ec5f5b75f887b6317c4ae0b897ab141c831d741dc76024d8745f1ad1"; }; "acorn@npm:7.4.1" = { filename = "acorn-npm-7.4.1-f450b4646c-1860f23c21.zip"; sha512 = "1860f23c2107c910c6177b7b7be71be350db9e1080d814493fae143ae37605189504152d1ba8743ba3178d0b37269ce1ffc42b101547fdc1827078f82671e407"; }; "acorn@npm:8.10.0" = { filename = "acorn-npm-8.10.0-2230c9e83e-538ba38af0.zip"; sha512 = "538ba38af0cc9e5ef983aee196c4b8b4d87c0c94532334fa7e065b2c8a1f85863467bb774231aae91613fcda5e68740c15d97b1967ae3394d20faddddd8af61d"; }; -"acorn@npm:8.8.1" = { filename = "acorn-npm-8.8.1-20e4aea981-4079b67283.zip"; sha512 = "4079b67283b94935157698831967642f24a075c52ce3feaaaafe095776dfbe15d86a1b33b1e53860fc0d062ed6c83f4284a5c87c85b9ad51853a01173da6097f"; }; "address@npm:1.2.2" = { filename = "address-npm-1.2.2-b88a43f43a-ace439960c.zip"; sha512 = "ace439960c1e3564d8f523aff23a841904bf33a2a7c2e064f7f60a064194075758b9690e65bd9785692a4ef698a998c57eb74d145881a1cecab8ba658ddb1607"; }; "adjust-sourcemap-loader@npm:4.0.0" = { filename = "adjust-sourcemap-loader-npm-4.0.0-c8b560af8c-d524ae2358.zip"; sha512 = "d524ae23582f41e2275af5d88faab7a9dc09770ed588244e0a76d3196d0d6a90bf02760c71bc6213dbfef3aef4a86232ac9521bfd629752c32b7af37bc74c660"; }; "agent-base@npm:5.1.1" = { filename = "agent-base-npm-5.1.1-d451a4ad62-61ae789f30.zip"; sha512 = "61ae789f3019f1dc10e8cba6d3ae9826949299a4e54aaa1cfa2fa37c95a108e70e95423b963bb987d7891a703fd9a5c383a506f4901819f3ee56f3147c0aa8ab"; }; @@ -536,7 +527,6 @@ cacheEntries = { "app-root-dir@npm:1.0.2" = { filename = "app-root-dir-npm-1.0.2-efb56c3049-d4b1653fc6.zip"; sha512 = "d4b1653fc60b6465b982bf5a88b12051ed2d807d70609386a809306e1c636496f53522d61fa30f9f98c71aaae34f34e1651889cf17d81a44e3dafd2859d495ad"; }; "aproba@npm:2.0.0" = { filename = "aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip"; sha512 = "5615cadcfb45289eea63f8afd064ab656006361020e1735112e346593856f87435e02d8dcc7ff0d11928bc7d425f27bc7c2a84f6c0b35ab0ff659c814c138a24"; }; "are-we-there-yet@npm:3.0.1" = { filename = "are-we-there-yet-npm-3.0.1-3395b1512f-52590c2486.zip"; sha512 = "52590c24860fa7173bedeb69a4c05fb573473e860197f618b9a28432ee4379049336727ae3a1f9c4cb083114601c1140cee578376164d0e651217a9843f9fe83"; }; -"arg@npm:4.1.3" = { filename = "arg-npm-4.1.3-1748b966a8-544af8dd3f.zip"; sha512 = "544af8dd3f60546d3e4aff084d451b96961d2267d668670199692f8d054f0415d86fc5497d0e641e91546f0aa920e7c29e5250e99fc89f5552a34b5d93b77f43"; }; "argparse@npm:1.0.10" = { filename = "argparse-npm-1.0.10-528934e59d-7ca6e45583.zip"; sha512 = "7ca6e45583a28de7258e39e13d81e925cfa25d7d4aacbf806a382d3c02fcb13403a07fb8aeef949f10a7cfe4a62da0e2e807b348a5980554cc28ee573ef95945"; }; "argparse@npm:2.0.1" = { filename = "argparse-npm-2.0.1-faff7999e6-83644b5649.zip"; sha512 = "83644b56493e89a254bae05702abf3a1101b4fa4d0ca31df1c9985275a5a5bd47b3c27b7fa0b71098d41114d8ca000e6ed90cad764b306f8a503665e4d517ced"; }; "aria-hidden@npm:1.2.3" = { filename = "aria-hidden-npm-1.2.3-02d72be80c-7d7d211629.zip"; sha512 = "7d7d211629eef315e94ed3b064c6823d13617e609d3f9afab1c2ed86399bb8e90405f9bdd358a85506802766f3ecb468af985c67c846045a34b973bcc0289db9"; }; @@ -634,7 +624,6 @@ cacheEntries = { "core-js-compat@npm:3.32.1" = { filename = "core-js-compat-npm-3.32.1-d74aca93d6-2ce0002d6d.zip"; sha512 = "2ce0002d6d2acabfc6f4c1ea32915683406a10051a186db354b761303cb6f5728f83887d070fb8d0072b5601bb16cb0d24555ee72bfa6df244f7b3ef74d61f76"; }; "core-util-is@npm:1.0.3" = { filename = "core-util-is-npm-1.0.3-ca74b76c90-9de8597363.zip"; sha512 = "9de8597363a8e9b9952491ebe18167e3b36e7707569eed0ebf14f8bba773611376466ae34575bca8cfe3c767890c859c74056084738f09d4e4a6f902b2ad7d99"; }; "cosmiconfig@npm:8.3.3" = { filename = "cosmiconfig-npm-8.3.3-7bbcadd1b9-d678cc8f0a.zip"; sha512 = "d678cc8f0aa68c9fc66966a409a15affda3338928edb9fc7ab9969d9a733bc7bf1396e11679d5d31f8a153d60b51faeccc91612e986137d8549f4230ab4368c9"; }; -"create-require@npm:1.1.1" = { filename = "create-require-npm-1.1.1-839884ca2e-a9a1503d43.zip"; sha512 = "a9a1503d4390d8b59ad86f4607de7870b39cad43d929813599a23714831e81c520bddf61bcdd1f8e30f05fd3a2b71ae8538e946eb2786dc65c2bbc520f692eff"; }; "cross-spawn@npm:7.0.3" = { filename = "cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip"; sha512 = "671cc7c7288c3a8406f3c69a3ae2fc85555c04169e9d611def9a675635472614f1c0ed0ef80955d5b6d4e724f6ced67f0ad1bb006c2ea643488fcfef994d7f52"; }; "crypto-random-string@npm:2.0.0" = { filename = "crypto-random-string-npm-2.0.0-8ab47992ef-0283879f55.zip"; sha512 = "0283879f55e7c16fdceacc181f87a0a65c53bc16ffe1d58b9d19a6277adcd71900d02bb2c4843dd55e78c51e30e89b0fec618a7f170ebcc95b33182c28f05fd6"; }; "css-loader@npm:6.8.1" = { filename = "css-loader-npm-6.8.1-30d84b4cf1-7c1784247b.zip"; sha512 = "7c1784247bdbe76dc5c55fb1ac84f1d4177a74c47259942c9cfdb7a8e6baef11967a0bc85ac285f26bd26d5059decb848af8154a03fdb4f4894f41212f45eef3"; }; @@ -667,7 +656,6 @@ cacheEntries = { "detect-package-manager@npm:2.0.1" = { filename = "detect-package-manager-npm-2.0.1-e5377363d9-e72b910182.zip"; sha512 = "e72b910182d5ad479198d4235be206ac64a479257b32201bb06f3c842cc34c65ea851d46f72cc1d4bf535bcc6c4b44b5b86bb29fe1192b8c9c07b46883672f28"; }; "detect-port@npm:1.5.1" = { filename = "detect-port-npm-1.5.1-fbb9694f69-b48da93404.zip"; sha512 = "b48da9340481742547263d5d985e65d078592557863402ecf538511735e83575867e94f91fe74405ea19b61351feb99efccae7e55de9a151d5654e3417cea05b"; }; "devlop@npm:1.1.0" = { filename = "devlop-npm-1.1.0-d4a98d724c-d2ff650bac.zip"; sha512 = "d2ff650bac0bb6ef08c48f3ba98640bb5fec5cce81e9957eb620408d1bab1204d382a45b785c6b3314dc867bb0684936b84c6867820da6db97cbb5d3c15dd185"; }; -"diff@npm:4.0.2" = { filename = "diff-npm-4.0.2-73133c7102-f2c09b0ce4.zip"; sha512 = "f2c09b0ce4e6b301c221addd83bf3f454c0bc00caa3dd837cf6c127d6edf7223aa2bbe3b688feea110b7f262adbfc845b757c44c8a9f8c0c5b15d8fa9ce9d20d"; }; "dir-glob@npm:3.0.1" = { filename = "dir-glob-npm-3.0.1-1aea628b1b-fa05e18324.zip"; sha512 = "fa05e18324510d7283f55862f3161c6759a3f2f8dbce491a2fc14c8324c498286c54282c1f0e933cb930da8419b30679389499b919122952a4f8592362ef4615"; }; "doctrine@npm:3.0.0" = { filename = "doctrine-npm-3.0.0-c6f1615f04-fd7673ca77.zip"; sha512 = "fd7673ca77fe26cd5cba38d816bc72d641f500f1f9b25b83e8ce28827fe2da7ad583a8da26ab6af85f834138cf8dae9f69b0cd6ab925f52ddab1754db44d99ce"; }; "dom-serializer@npm:2.0.0" = { filename = "dom-serializer-npm-2.0.0-378ebc7200-cd1810544f.zip"; sha512 = "cd1810544fd8cdfbd51fa2c0c1128ec3a13ba92f14e61b7650b5de421b88205fd2e3f0cc6ace82f13334114addb90ed1c2f23074a51770a8e9c1273acbc7f3e6"; }; @@ -783,6 +771,7 @@ cacheEntries = { "get-port@npm:5.1.1" = { filename = "get-port-npm-5.1.1-2f6074007a-0162663ffe.zip"; sha512 = "0162663ffe5c09e748cd79d97b74cd70e5a5c84b760a475ce5767b357fb2a57cb821cee412d646aa8a156ed39b78aab88974eddaa9e5ee926173c036c0713787"; }; "get-stdin@npm:8.0.0" = { filename = "get-stdin-npm-8.0.0-920f876bc2-40128b6cd2.zip"; sha512 = "40128b6cd25781ddbd233344f1a1e4006d4284906191ed0a7d55ec2c1a3e44d650f280b2c9eeab79c03ac3037da80257476c0e4e5af38ddfb902d6ff06282d77"; }; "get-stream@npm:6.0.1" = { filename = "get-stream-npm-6.0.1-83e51a4642-e04ecece32.zip"; sha512 = "e04ecece32c92eebf5b8c940f51468cd53554dcbb0ea725b2748be583c9523d00128137966afce410b9b051eb2ef16d657cd2b120ca8edafcf5a65e81af63cad"; }; +"get-tsconfig@npm:4.7.2" = { filename = "get-tsconfig-npm-4.7.2-8fbccd9fcf-1723589032.zip"; sha512 = "172358903250eff0103943f816e8a4e51d29b8e5449058bdf7266714a908a48239f6884308bd3a6ff28b09f692b9533dbebfd183ab63e4e14f073cda91f1bca9"; }; "giget@npm:1.1.2" = { filename = "giget-npm-1.1.2-5a01fa1d39-76ad0f7e79.zip"; sha512 = "76ad0f7e792ee95dd6c4e1096697fdcce61a2a3235a6c21761fc3e0d1053342074ce71c80059d6d4363fd34152e5d7b2e58221412f300c852ff7d4a12d0321fe"; }; "github-from-package@npm:0.0.0" = { filename = "github-from-package-npm-0.0.0-519f80c9a1-14e448192a.zip"; sha512 = "14e448192a35c1e42efee94c9d01a10f42fe790375891a24b25261246ce9336ab9df5d274585aedd4568f7922246c2a78b8a8cd2571bfe99c693a9718e7dd0e3"; }; "github-slugger@npm:1.5.0" = { filename = "github-slugger-npm-1.5.0-8a3622aa03-c709882245.zip"; sha512 = "c70988224578b3bdaa25df65973ffc8c24594a77a28550c3636e495e49d17aef5cdb04c04fa3f1744babef98c61eecc6a43299a13ea7f3cc33d680bf9053ffbe"; }; @@ -933,7 +922,6 @@ cacheEntries = { "magic-string@npm:0.30.3" = { filename = "magic-string-npm-0.30.3-65e96f1e9d-a5a9ddf9bd.zip"; sha512 = "a5a9ddf9bd3bf49a2de1048bf358464f1bda7b3cc1311550f4a0ba8f81a4070e25445d53a5ee28850161336f1bff3cf28aa3320c6b4aeff45ce3e689f300b2f3"; }; "make-dir@npm:2.1.0" = { filename = "make-dir-npm-2.1.0-1ddaf205e7-043548886b.zip"; sha512 = "043548886bfaf1820323c6a2997e6d2fa51ccc2586ac14e6f14634f7458b4db2daf15f8c310e2a0abd3e0cddc64df1890d8fc7263033602c47bb12cbfcf86aab"; }; "make-dir@npm:3.1.0" = { filename = "make-dir-npm-3.1.0-d1d7505142-484200020a.zip"; sha512 = "484200020ab5a1fdf12f393fe5f385fc8e4378824c940fba1729dcd198ae4ff24867bc7a5646331e50cead8abff5d9270c456314386e629acec6dff4b8016b78"; }; -"make-error@npm:1.3.6" = { filename = "make-error-npm-1.3.6-ccb85d9458-b86e5e0e25.zip"; sha512 = "b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402"; }; "make-fetch-happen@npm:11.1.1" = { filename = "make-fetch-happen-npm-11.1.1-f32b79aaaa-7268bf274a.zip"; sha512 = "7268bf274a0f6dcf0343829489a4506603ff34bd0649c12058753900b0eb29191dce5dba12680719a5d0a983d3e57810f594a12f3c18494e93a1fbc6348a4540"; }; "makeerror@npm:1.0.12" = { filename = "makeerror-npm-1.0.12-69abf085d7-b38a025a12.zip"; sha512 = "b38a025a12c8146d6eeea5a7f2bf27d51d8ad6064da8ca9405fcf7bf9b54acd43e3b30ddd7abb9b1bfa4ddb266019133313482570ddb207de568f71ecfcf6060"; }; "map-or-similar@npm:1.5.0" = { filename = "map-or-similar-npm-1.5.0-d3659cc111-f65c0d420e.zip"; sha512 = "f65c0d420e272d0fce4e24db35f6a08109218480bca1d61eaa442cbe6cf46270b840218d3b5e94e4bfcc2595f1d0a1fa5885df750b52aac9ab1d437b29dcce38"; }; @@ -1127,6 +1115,7 @@ cacheEntries = { "requireindex@npm:1.2.0" = { filename = "requireindex-npm-1.2.0-483c52ddaf-50d8b10a1f.zip"; sha512 = "50d8b10a1ff1fdf6aea7a1870bc7bd238b0fb1917d8d7ca17fd03afc38a65dcd7a8a4eddd031f89128b5f0065833d5c92c4fef67f2c04e8624057fe626c9cf94"; }; "resolve-from@npm:4.0.0" = { filename = "resolve-from-npm-4.0.0-f758ec21bf-f4ba0b8494.zip"; sha512 = "f4ba0b8494846a5066328ad33ef8ac173801a51739eb4d63408c847da9a2e1c1de1e6cbbf72699211f3d13f8fc1325648b169bd15eb7da35688e30a5fb0e4a7f"; }; "resolve-from@npm:5.0.0" = { filename = "resolve-from-npm-5.0.0-15c9db4d33-4ceeb9113e.zip"; sha512 = "4ceeb9113e1b1372d0cd969f3468fa042daa1dd9527b1b6bb88acb6ab55d8b9cd65dbf18819f9f9ddf0db804990901dcdaade80a215e7b2c23daae38e64f5bdf"; }; +"resolve-pkg-maps@npm:1.0.0" = { filename = "resolve-pkg-maps-npm-1.0.0-135b70c854-1012afc566.zip"; sha512 = "1012afc566b3fdb190a6309cc37ef3b2dcc35dff5fa6683a9d00cd25c3247edfbc4691b91078c97adc82a29b77a2660c30d791d65dab4fc78bfc473f60289977"; }; "resolve-url-loader@npm:5.0.0" = { filename = "resolve-url-loader-npm-5.0.0-9b441067c9-6d483733a4.zip"; sha512 = "6d483733a4c26f75ce930a61943113bf730b5ba33a7186791cf1ae9c2ca02c3e94610bc6484ca008a372ee9e31750eccea74856a89daf1a29b8437ff564d27f2"; }; "resolve@npm:1.22.4" = { filename = "resolve-npm-1.22.4-faa4f32bdd-23f25174c2.zip"; sha512 = "23f25174c2736ce24c6d918910e0d1f89b6b38fefa07a995dff864acd7863d59a7f049e691f93b4b2ee29696303390d921552b6d1b841ed4a8101f517e1d0124"; }; "resolve@npm:1.22.8" = { filename = "resolve-npm-1.22.8-098f379dfe-f8a26958aa.zip"; sha512 = "f8a26958aa572c9b064562750b52131a37c29d072478ea32e129063e2da7f83e31f7f11e7087a18225a8561cfe8d2f0df9dbea7c9d331a897571c0a2527dbb4c"; }; @@ -1240,11 +1229,11 @@ cacheEntries = { "ts-api-utils@npm:1.0.2" = { filename = "ts-api-utils-npm-1.0.2-0fe6a86036-6375e12ba9.zip"; sha512 = "6375e12ba90b6cbe73f564405248da14c52aa44b62b386e1cbbb1da2640265dd33e99d3e019688dffa874e365cf596b161ccd49351e90638be825c2639697640"; }; "ts-dedent@npm:2.2.0" = { filename = "ts-dedent-npm-2.2.0-00389a0e6b-93ed8f7878.zip"; sha512 = "93ed8f7878b6d5ed3c08d99b740010eede6bccfe64bce61c5a4da06a2c17d6ddbb80a8c49c2d15251de7594a4f93ffa21dd10e7be75ef66a4dc9951b4a94e2af"; }; "ts-interface-checker@npm:0.1.13" = { filename = "ts-interface-checker-npm-0.1.13-0c7b064494-20c29189c2.zip"; sha512 = "20c29189c2dd6067a8775e07823ddf8d59a33e2ffc47a1bd59a5cb28bb0121a2969a816d5e77eda2ed85b18171aa5d1c4005a6b88ae8499ec7cc49f78571cb5e"; }; -"ts-node@npm:10.9.1" = { filename = "ts-node-npm-10.9.1-6c268be7f4-090adff130.zip"; sha512 = "090adff1302ab20bd3486e6b4799e90f97726ed39e02b39e566f8ab674fd5bd5f727f43615debbfc580d33c6d9d1c6b1b3ce7d8e3cca3e20530a145ffa232c35"; }; "tslib@npm:1.14.1" = { filename = "tslib-npm-1.14.1-102499115e-dbe628ef87.zip"; sha512 = "dbe628ef87f66691d5d2959b3e41b9ca0045c3ee3c7c7b906cc1e328b39f199bb1ad9e671c39025bd56122ac57dfbf7385a94843b1cc07c60a4db74795829acd"; }; "tslib@npm:2.6.2" = { filename = "tslib-npm-2.6.2-4fc8c068d9-329ea56123.zip"; sha512 = "329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad"; }; "tsup@npm:7.2.0" = { filename = "tsup-npm-7.2.0-00dd3356bc-94feae12b0.zip"; sha512 = "94feae12b0a0dd0eaa3ed1c412d2bc51d7491ff91abc61e4198495dcb612a848a9fd346fbb668a63b98534fc6c2569ab3aba7ea95ad8db5eaf29c4a4885c2313"; }; "tsutils@npm:3.21.0" = { filename = "tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip"; sha512 = "1843f4c1b2e0f975e08c4c21caa4af4f7f65a12ac1b81b3b8489366826259323feb3fc7a243123453d2d1a02314205a7634e048d4a8009921da19f99755cdc48"; }; +"tsx@npm:3.14.0" = { filename = "tsx-npm-3.14.0-0e7fee0a4e-afcef5d9b9.zip"; sha512 = "afcef5d9b90b5800cf1ffb749e943f63042d78a4c0d9eef6e13e43f4ecab465d45e2c9812a2c515cbdc2ee913ff1cd01bf5c606a48013dd3ce2214a631b45557"; }; "tunnel-agent@npm:0.6.0" = { filename = "tunnel-agent-npm-0.6.0-64345ab7eb-05f6510358.zip"; sha512 = "05f6510358f8afc62a057b8b692f05d70c1782b70db86d6a1e0d5e28a32389e52fa6e7707b6c5ecccacc031462e4bc35af85ecfe4bbc341767917b7cf6965711"; }; "tunnel@npm:0.0.6" = { filename = "tunnel-npm-0.0.6-b1c0830ea4-c362948df9.zip"; sha512 = "c362948df9ad34b649b5585e54ce2838fa583aa3037091aaed66793c65b423a264e5229f0d7e9a95513a795ac2bd4cb72cda7e89a74313f182c1e9ae0b0994fa"; }; "type-check@npm:0.4.0" = { filename = "type-check-npm-0.4.0-60565800ce-ec688ebfc9.zip"; sha512 = "ec688ebfc9c45d0c30412e41ca9c0cdbd704580eb3a9ccf07b9b576094d7b86a012baebc95681999dd38f4f444afd28504cb3a89f2ef16b31d4ab61a0739025a"; }; @@ -1293,7 +1282,6 @@ cacheEntries = { "util@npm:0.12.5" = { filename = "util-npm-0.12.5-3668276f26-705e51f0de.zip"; sha512 = "705e51f0de5b446f4edec10739752ac25856541e0254ea1e7e45e5b9f9b0cb105bc4bd415736a6210edc68245a7f903bf085ffb08dd7deb8a0e847f60538a38a"; }; "utils-merge@npm:1.0.1" = { filename = "utils-merge-npm-1.0.1-363bbdfbca-c810954932.zip"; sha512 = "c81095493225ecfc28add49c106ca4f09cdf56bc66731aa8dabc2edbbccb1e1bfe2de6a115e5c6a380d3ea166d1636410b62ef216bb07b3feb1cfde1d95d5080"; }; "uuid@npm:9.0.0" = { filename = "uuid-npm-9.0.0-46c41e3e43-8dd2c83c43.zip"; sha512 = "8dd2c83c43ddc7e1c71e36b60aea40030a6505139af6bee0f382ebcd1a56f6cd3028f7f06ffb07f8cf6ced320b76aea275284b224b002b289f89fe89c389b028"; }; -"v8-compile-cache-lib@npm:3.0.1" = { filename = "v8-compile-cache-lib-npm-3.0.1-4886071ece-78089ad549.zip"; sha512 = "78089ad549e21bcdbfca10c08850022b22024cdcc2da9b168bcf5a73a6ed7bf01a9cebb9eac28e03cd23a684d81e0502797e88f3ccd27a32aeab1cfc44c39da0"; }; "validate-npm-package-license@npm:3.0.4" = { filename = "validate-npm-package-license-npm-3.0.4-7af8adc7a8-35703ac889.zip"; sha512 = "35703ac889d419cf2aceef63daeadbe4e77227c39ab6287eeb6c1b36a746b364f50ba22e88591f5d017bc54685d8137bc2d328d0a896e4d3fd22093c0f32a9ad"; }; "vary@npm:1.1.2" = { filename = "vary-npm-1.1.2-b49f70ae63-ae0123222c.zip"; sha512 = "ae0123222c6df65b437669d63dfa8c36cee20a504101b2fcd97b8bf76f91259c17f9f2b4d70a1e3c6bbcee7f51b28392833adb6b2770b23b01abec84e369660b"; }; "vfile-location@npm:5.0.2" = { filename = "vfile-location-npm-5.0.2-8b28eeaf35-b61c048ced.zip"; sha512 = "b61c048cedad3555b4f007f390412c6503f58a6a130b58badf4ee340c87e0d7421e9c86bbc1494c57dedfccadb60f5176cc60ba3098209d99fb3a3d8804e4c38"; }; @@ -1330,7 +1318,6 @@ cacheEntries = { "yaml@npm:2.3.2" = { filename = "yaml-npm-2.3.2-b844830a8b-acd80cc24d.zip"; sha512 = "acd80cc24df12c808c6dec8a0176d404ef9e6f08ad8786f746ecc9d8974968c53c6e8a67fdfabcc5f99f3dc59b6bb0994b95646ff03d18e9b1dcd59eccc02146"; }; "yauzl@npm:2.10.0" = { filename = "yauzl-npm-2.10.0-72e70ea021-7f21fe0bba.zip"; sha512 = "7f21fe0bbad6e2cb130044a5d1d0d5a0e5bf3d8d4f8c4e6ee12163ce798fee3de7388d22a7a0907f563ac5f9d40f8699a223d3d5c1718da90b0156da6904022b"; }; "yazl@npm:2.5.1" = { filename = "yazl-npm-2.5.1-07fc697bef-daec5154b5.zip"; sha512 = "daec5154b5485d8621bfea359e905ddca0b2f068430a4aa0a802bf5d67391157a383e0c2767acccbf5964264851da643bc740155a9458e2d8dce55b94c1cc2ed"; }; -"yn@npm:3.1.1" = { filename = "yn-npm-3.1.1-8ad4259784-2c487b0e14.zip"; sha512 = "2c487b0e149e746ef48cda9f8bad10fc83693cd69d7f9dcd8be4214e985de33a29c9e24f3c0d6bcf2288427040a8947406ab27f7af67ee9456e6b84854f02dd6"; }; "yocto-queue@npm:0.1.0" = { filename = "yocto-queue-npm-0.1.0-c6c9a7db29-f77b3d8d00.zip"; sha512 = "f77b3d8d00310def622123df93d4ee654fc6a0096182af8bd60679ddcdfb3474c56c6c7190817c84a2785648cdee9d721c0154eb45698c62176c322fb46fc700"; }; "zwitch@npm:2.0.4" = { filename = "zwitch-npm-2.0.4-13220031e2-f22ec5fc2d.zip"; sha512 = "f22ec5fc2d5f02c423c93d35cdfa83573a3a3bd98c66b927c368ea4d0e7252a500df2a90a6b45522be536a96a73404393c958e945fdba95e6832c200791702b6"; }; }; diff --git a/yarn.lock b/yarn.lock index 07f13d56..3d5a4d5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1642,15 +1642,6 @@ __metadata: languageName: node linkType: hard -"@cspotcode/source-map-support@npm:^0.8.0": - version: 0.8.1 - resolution: "@cspotcode/source-map-support@npm:0.8.1" - dependencies: - "@jridgewell/trace-mapping": 0.3.9 - checksum: 5718f267085ed8edb3e7ef210137241775e607ee18b77d95aa5bd7514f47f5019aa2d82d96b3bf342ef7aa890a346fa1044532ff7cc3009e7d24fce3ce6200fa - languageName: node - linkType: hard - "@discoveryjs/json-ext@npm:^0.5.3": version: 0.5.7 resolution: "@discoveryjs/json-ext@npm:0.5.7" @@ -2046,13 +2037,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/resolve-uri@npm:^3.0.3": - version: 3.1.0 - resolution: "@jridgewell/resolve-uri@npm:3.1.0" - checksum: b5ceaaf9a110fcb2780d1d8f8d4a0bfd216702f31c988d8042e5f8fbe353c55d9b0f55a1733afdc64806f8e79c485d2464680ac48a0d9fcadb9548ee6b81d267 - languageName: node - linkType: hard - "@jridgewell/resolve-uri@npm:^3.1.0": version: 3.1.1 resolution: "@jridgewell/resolve-uri@npm:3.1.1" @@ -2081,16 +2065,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/trace-mapping@npm:0.3.9": - version: 0.3.9 - resolution: "@jridgewell/trace-mapping@npm:0.3.9" - dependencies: - "@jridgewell/resolve-uri": ^3.0.3 - "@jridgewell/sourcemap-codec": ^1.4.10 - checksum: d89597752fd88d3f3480845691a05a44bd21faac18e2185b6f436c3b0fd0c5a859fbbd9aaa92050c4052caf325ad3e10e2e1d1b64327517471b7d51babc0ddef - languageName: node - linkType: hard - "@jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.18, @jridgewell/trace-mapping@npm:^0.3.9": version: 0.3.19 resolution: "@jridgewell/trace-mapping@npm:0.3.19" @@ -3895,34 +3869,6 @@ __metadata: languageName: node linkType: hard -"@tsconfig/node10@npm:^1.0.7": - version: 1.0.9 - resolution: "@tsconfig/node10@npm:1.0.9" - checksum: a33ae4dc2a621c0678ac8ac4bceb8e512ae75dac65417a2ad9b022d9b5411e863c4c198b6ba9ef659e14b9fb609bbec680841a2e84c1172df7a5ffcf076539df - languageName: node - linkType: hard - -"@tsconfig/node12@npm:^1.0.7": - version: 1.0.11 - resolution: "@tsconfig/node12@npm:1.0.11" - checksum: 5ce29a41b13e7897a58b8e2df11269c5395999e588b9a467386f99d1d26f6c77d1af2719e407621412520ea30517d718d5192a32403b8dfcc163bf33e40a338a - languageName: node - linkType: hard - -"@tsconfig/node14@npm:^1.0.0": - version: 1.0.3 - resolution: "@tsconfig/node14@npm:1.0.3" - checksum: 19275fe80c4c8d0ad0abed6a96dbf00642e88b220b090418609c4376e1cef81bf16237bf170ad1b341452feddb8115d8dd2e5acdfdea1b27422071163dc9ba9d - languageName: node - linkType: hard - -"@tsconfig/node16@npm:^1.0.2": - version: 1.0.3 - resolution: "@tsconfig/node16@npm:1.0.3" - checksum: 3a8b657dd047495b7ad23437d6afd20297ce90380ff0bdee93fc7d39a900dbd8d9e26e53ff6b465e7967ce2adf0b218782590ce9013285121e6a5928fbd6819f - languageName: node - linkType: hard - "@types/babel__core@npm:^7.0.0": version: 7.20.1 resolution: "@types/babel__core@npm:7.20.1" @@ -4698,13 +4644,6 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^8.1.1": - version: 8.2.0 - resolution: "acorn-walk@npm:8.2.0" - checksum: 1715e76c01dd7b2d4ca472f9c58968516a4899378a63ad5b6c2d668bba8da21a71976c14ec5f5b75f887b6317c4ae0b897ab141c831d741dc76024d8745f1ad1 - languageName: node - linkType: hard - "acorn@npm:^7.4.1": version: 7.4.1 resolution: "acorn@npm:7.4.1" @@ -4714,15 +4653,6 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.4.1": - version: 8.8.1 - resolution: "acorn@npm:8.8.1" - bin: - acorn: bin/acorn - checksum: 4079b67283b94935157698831967642f24a075c52ce3feaaaafe095776dfbe15d86a1b33b1e53860fc0d062ed6c83f4284a5c87c85b9ad51853a01173da6097f - languageName: node - linkType: hard - "acorn@npm:^8.9.0": version: 8.10.0 resolution: "acorn@npm:8.10.0" @@ -4885,13 +4815,6 @@ __metadata: languageName: node linkType: hard -"arg@npm:^4.1.0": - version: 4.1.3 - resolution: "arg@npm:4.1.3" - checksum: 544af8dd3f60546d3e4aff084d451b96961d2267d668670199692f8d054f0415d86fc5497d0e641e91546f0aa920e7c29e5250e99fc89f5552a34b5d93b77f43 - languageName: node - linkType: hard - "argparse@npm:^1.0.7": version: 1.0.10 resolution: "argparse@npm:1.0.10" @@ -5372,8 +5295,8 @@ __metadata: react-dom: ^18.2.0 shikiji: ^0.6.10 storybook: ^7.5.1 - ts-node: ^10.9.1 tsup: ^7.2.0 + tsx: ^3.14.0 typescript: ^5.2.2 vite: ^4.5.0 languageName: unknown @@ -5813,13 +5736,6 @@ __metadata: languageName: node linkType: hard -"create-require@npm:^1.1.0": - version: 1.1.1 - resolution: "create-require@npm:1.1.1" - checksum: a9a1503d4390d8b59ad86f4607de7870b39cad43d929813599a23714831e81c520bddf61bcdd1f8e30f05fd3a2b71ae8538e946eb2786dc65c2bbc520f692eff - languageName: node - linkType: hard - "cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" @@ -6111,13 +6027,6 @@ __metadata: languageName: node linkType: hard -"diff@npm:^4.0.1": - version: 4.0.2 - resolution: "diff@npm:4.0.2" - checksum: f2c09b0ce4e6b301c221addd83bf3f454c0bc00caa3dd837cf6c127d6edf7223aa2bbe3b688feea110b7f262adbfc845b757c44c8a9f8c0c5b15d8fa9ce9d20d - languageName: node - linkType: hard - "dir-glob@npm:^3.0.1": version: 3.0.1 resolution: "dir-glob@npm:3.0.1" @@ -6411,7 +6320,7 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.18.0, esbuild@npm:^0.18.10, esbuild@npm:^0.18.2": +"esbuild@npm:^0.18.0, esbuild@npm:^0.18.10, esbuild@npm:^0.18.2, esbuild@npm:~0.18.20": version: 0.18.20 resolution: "esbuild@npm:0.18.20" dependencies: @@ -7170,7 +7079,7 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:^2.3.2": +"fsevents@npm:^2.3.2, fsevents@npm:~2.3.3": version: 2.3.3 resolution: "fsevents@npm:2.3.3" dependencies: @@ -7190,7 +7099,7 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@^2.3.2#~builtin": +"fsevents@patch:fsevents@^2.3.2#~builtin, fsevents@patch:fsevents@~2.3.3#~builtin": version: 2.3.3 resolution: "fsevents@patch:fsevents@npm%3A2.3.3#~builtin::version=2.3.3&hash=df0bf1" dependencies: @@ -7303,6 +7212,15 @@ __metadata: languageName: node linkType: hard +"get-tsconfig@npm:^4.7.2": + version: 4.7.2 + resolution: "get-tsconfig@npm:4.7.2" + dependencies: + resolve-pkg-maps: ^1.0.0 + checksum: 172358903250eff0103943f816e8a4e51d29b8e5449058bdf7266714a908a48239f6884308bd3a6ff28b09f692b9533dbebfd183ab63e4e14f073cda91f1bca9 + languageName: node + linkType: hard + "giget@npm:^1.0.0": version: 1.1.2 resolution: "giget@npm:1.1.2" @@ -8744,13 +8662,6 @@ __metadata: languageName: node linkType: hard -"make-error@npm:^1.1.1": - version: 1.3.6 - resolution: "make-error@npm:1.3.6" - checksum: b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402 - languageName: node - linkType: hard - "make-fetch-happen@npm:^11.0.3": version: 11.1.1 resolution: "make-fetch-happen@npm:11.1.1" @@ -10574,6 +10485,13 @@ __metadata: languageName: node linkType: hard +"resolve-pkg-maps@npm:^1.0.0": + version: 1.0.0 + resolution: "resolve-pkg-maps@npm:1.0.0" + checksum: 1012afc566b3fdb190a6309cc37ef3b2dcc35dff5fa6683a9d00cd25c3247edfbc4691b91078c97adc82a29b77a2660c30d791d65dab4fc78bfc473f60289977 + languageName: node + linkType: hard + "resolve-url-loader@npm:^5.0.0": version: 5.0.0 resolution: "resolve-url-loader@npm:5.0.0" @@ -11061,7 +10979,7 @@ __metadata: languageName: node linkType: hard -"source-map-support@npm:^0.5.16": +"source-map-support@npm:^0.5.16, source-map-support@npm:^0.5.21": version: 0.5.21 resolution: "source-map-support@npm:0.5.21" dependencies: @@ -11621,44 +11539,6 @@ __metadata: languageName: node linkType: hard -"ts-node@npm:^10.9.1": - version: 10.9.1 - resolution: "ts-node@npm:10.9.1" - dependencies: - "@cspotcode/source-map-support": ^0.8.0 - "@tsconfig/node10": ^1.0.7 - "@tsconfig/node12": ^1.0.7 - "@tsconfig/node14": ^1.0.0 - "@tsconfig/node16": ^1.0.2 - acorn: ^8.4.1 - acorn-walk: ^8.1.1 - arg: ^4.1.0 - create-require: ^1.1.0 - diff: ^4.0.1 - make-error: ^1.1.1 - v8-compile-cache-lib: ^3.0.1 - yn: 3.1.1 - peerDependencies: - "@swc/core": ">=1.2.50" - "@swc/wasm": ">=1.2.50" - "@types/node": "*" - typescript: ">=2.7" - peerDependenciesMeta: - "@swc/core": - optional: true - "@swc/wasm": - optional: true - bin: - ts-node: dist/bin.js - ts-node-cwd: dist/bin-cwd.js - ts-node-esm: dist/bin-esm.js - ts-node-script: dist/bin-script.js - ts-node-transpile-only: dist/bin-transpile.js - ts-script: dist/bin-script-deprecated.js - checksum: 090adff1302ab20bd3486e6b4799e90f97726ed39e02b39e566f8ab674fd5bd5f727f43615debbfc580d33c6d9d1c6b1b3ce7d8e3cca3e20530a145ffa232c35 - languageName: node - linkType: hard - "tslib@npm:^1.13.0, tslib@npm:^1.8.1": version: 1.14.1 resolution: "tslib@npm:1.14.1" @@ -11720,6 +11600,23 @@ __metadata: languageName: node linkType: hard +"tsx@npm:^3.14.0": + version: 3.14.0 + resolution: "tsx@npm:3.14.0" + dependencies: + esbuild: ~0.18.20 + fsevents: ~2.3.3 + get-tsconfig: ^4.7.2 + source-map-support: ^0.5.21 + dependenciesMeta: + fsevents: + optional: true + bin: + tsx: dist/cli.mjs + checksum: afcef5d9b90b5800cf1ffb749e943f63042d78a4c0d9eef6e13e43f4ecab465d45e2c9812a2c515cbdc2ee913ff1cd01bf5c606a48013dd3ce2214a631b45557 + languageName: node + linkType: hard + "tunnel-agent@npm:^0.6.0": version: 0.6.0 resolution: "tunnel-agent@npm:0.6.0" @@ -12148,13 +12045,6 @@ __metadata: languageName: node linkType: hard -"v8-compile-cache-lib@npm:^3.0.1": - version: 3.0.1 - resolution: "v8-compile-cache-lib@npm:3.0.1" - checksum: 78089ad549e21bcdbfca10c08850022b22024cdcc2da9b168bcf5a73a6ed7bf01a9cebb9eac28e03cd23a684d81e0502797e88f3ccd27a32aeab1cfc44c39da0 - languageName: node - linkType: hard - "validate-npm-package-license@npm:^3.0.1": version: 3.0.4 resolution: "validate-npm-package-license@npm:3.0.4" @@ -12512,13 +12402,6 @@ __metadata: languageName: node linkType: hard -"yn@npm:3.1.1": - version: 3.1.1 - resolution: "yn@npm:3.1.1" - checksum: 2c487b0e149e746ef48cda9f8bad10fc83693cd69d7f9dcd8be4214e985de33a29c9e24f3c0d6bcf2288427040a8947406ab27f7af67ee9456e6b84854f02dd6 - languageName: node - linkType: hard - "yocto-queue@npm:^0.1.0": version: 0.1.0 resolution: "yocto-queue@npm:0.1.0"