Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

add eslint

Oleg Isonen4db6e28a1f89
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000000..fc5bce80d2
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,30 @@
+{
+ "env": {
+ "browser": true,
+ "node": true,
+ "es2021": true
+ },
+ "extends": [
+ "eslint:recommended",
+ "plugin:react/recommended",
+ "plugin:@typescript-eslint/recommended"
+ ],
+ "parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ "ecmaFeatures": {
+ "jsx": true
+ },
+ "ecmaVersion": "latest",
+ "sourceType": "module"
+ },
+ "plugins": ["react", "@typescript-eslint"],
+ "rules": {
+ // It's too dumb to understand properly what's defined in ts
+ "react/prop-types": 0,
+ "@typescript-eslint/no-unused-vars": [
+ "error",
+ { "argsIgnorePattern": "^_" }
+ ],
+ "react/react-in-jsx-scope": 0
+ }
+}
diff --git a/app/canvas/wrapper-component/editable/use-content-editable.tsx b/app/canvas/wrapper-component/editable/use-content-editable.tsx
index 955c64be1f..8a07c4ff95 100644
--- a/app/canvas/wrapper-component/editable/use-content-editable.tsx
+++ b/app/canvas/wrapper-component/editable/use-content-editable.tsx
@@ -1,4 +1,4 @@
-import { useState, useRef, useEffect, useCallback } from "react";
+import { useState, useRef, useEffect } from "react";
import { useHotkeys } from "react-hotkeys-hook";
import useDebounce from "react-use/lib/useDebounce";
import ObjectId from "bson-objectid";
@@ -7,7 +7,7 @@ import { type OnChangeChildren } from "~/shared/tree-utils";
import { primitives } from "~/shared/component";
import { useSelectedInstance } from "~/canvas/nano-values";
import { useEditable, type Content } from "./use-editable";
-import { useToolbar, type Value as ToolbarValue } from "./use-toolbar";
+import { useToolbar } from "./use-toolbar";
type ContentItem = {
textContent: Node["textContent"];
@@ -17,7 +17,7 @@ type EditableContent = Content<ContentItem>;
// Converting DOM to a data structure
const serialize = (element: HTMLElement): EditableContent => {
- const queue: Node[] = [element.firstChild!];
+ const queue: Node[] = element.firstChild ? [element.firstChild] : [];
const items: Array<ContentItem> = [];
let node: Node | undefined;
while ((node = queue.pop())) {
@@ -155,7 +155,7 @@ export const useContentEditable = ({
const toggleDisable = (nextIsDisabled: boolean) => {
if (isContentEditable !== false && isDisabled !== nextIsDisabled) {
if (nextIsDisabled === false) {
- innerHtmlRef.current = { __html: ref.current!.innerHTML };
+ innerHtmlRef.current = { __html: ref.current?.innerHTML || "" };
} else {
innerHtmlRef.current = undefined;
}
diff --git a/app/canvas/wrapper-component/editable/use-editable.tsx b/app/canvas/wrapper-component/editable/use-editable.tsx
index 6deb471762..ffcc1f46fe 100644
--- a/app/canvas/wrapper-component/editable/use-editable.tsx
+++ b/app/canvas/wrapper-component/editable/use-editable.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-non-null-assertion */
// Copied from https://github.com/FormidableLabs/use-editable
// @todo create an issue there and if they agree - contribute
// @todo had too many bugs and had to resort to an uncontrolled mode over innerHTML. It totally defeats the idea behind this code
@@ -167,7 +168,7 @@ const serialize = () => {
throw new Error("Not implemented");
};
-export const useEditable = <Item extends unknown>(
+export const useEditable = <Item extends Record<string, unknown>>(
elementRef: { current: HTMLElement | undefined | null },
onChange: (content: Content<Item>, position: Position) => void,
opts: Options<Item> = { serialize }
@@ -175,7 +176,7 @@ export const useEditable = <Item extends unknown>(
const unblock = useState([])[1];
const state: State<Item> = useState(() => {
const state: State<Item> = {
- observer: null as any,
+ observer: null as unknown as MutationObserver,
disconnected: false,
onChange,
queue: [],
@@ -314,8 +315,9 @@ export const useEditable = <Item extends unknown>(
if (prevWhiteSpace !== "pre") element.style.whiteSpace = "pre-wrap";
if (opts!.indentation) {
- element.style.tabSize = (element.style as any).MozTabSize =
- "" + opts!.indentation;
+ element.style.tabSize = (
+ element.style as ElementCSSInlineStyle["style"] & { MozTabSize: string }
+ ).MozTabSize = "" + opts!.indentation;
}
const indentPattern = `${" ".repeat(opts!.indentation || 0)}`;
diff --git a/app/canvas/wrapper-component/editable/use-toolbar.tsx b/app/canvas/wrapper-component/editable/use-toolbar.tsx
index 68af563931..12eeb05a76 100644
--- a/app/canvas/wrapper-component/editable/use-toolbar.tsx
+++ b/app/canvas/wrapper-component/editable/use-toolbar.tsx
@@ -88,7 +88,7 @@ type UseToolbarProps<Item> = {
onInsert: (insert: { type: Value; text: string }) => void;
};
-export const useToolbar = <Item extends unknown>({
+export const useToolbar = <Item extends Record<string, unknown>>({
editable,
onInsert,
}: UseToolbarProps<Item>) => {
diff --git a/app/canvas/wrapper-component/use-css.tsx b/app/canvas/wrapper-component/use-css.tsx
index 5db74b6d14..bc8576a937 100644
--- a/app/canvas/wrapper-component/use-css.tsx
+++ b/app/canvas/wrapper-component/use-css.tsx
@@ -66,7 +66,7 @@ export const useCss = ({ id, component, css }: UseCssProps): string => {
if (dragData !== undefined) {
const primitive = primitives[component];
- if (dragData.id === id && primitive.canAcceptChild(dragData.component)) {
+ if (dragData.id === id && primitive.canAcceptChild()) {
overrides = dragOverOutlineStyle;
}
}
diff --git a/app/canvas/wrapper-component/wrapper-component.tsx b/app/canvas/wrapper-component/wrapper-component.tsx
index 371f4df34e..df33192b6f 100644
--- a/app/canvas/wrapper-component/wrapper-component.tsx
+++ b/app/canvas/wrapper-component/wrapper-component.tsx
@@ -70,7 +70,6 @@ export const WrapperComponentDev = ({
data-component={component}
data-label={primitives[component].label}
data-id={id}
- children={renderWrapperComponentChildren(contentEditableProps.children)}
ref={refCallback}
onClick={(event: MouseEvent) => {
if (component === "Link") {
@@ -86,7 +85,9 @@ export const WrapperComponentDev = ({
// Prevent submitting the form when clicking a button type submit
event.preventDefault();
}}
- />
+ >
+ {renderWrapperComponentChildren(contentEditableProps.children)}
+ </Component>
</>
);
};
diff --git a/app/designer/designer.tsx b/app/designer/designer.tsx
index c488db3749..0a2d93c69e 100644
--- a/app/designer/designer.tsx
+++ b/app/designer/designer.tsx
@@ -38,8 +38,6 @@ const useSubscribeRootInstance = () => {
type SidePanelProps = {
children: JSX.Element;
- width?: number;
- minWidth?: number;
isPreviewMode: boolean;
css?: CSS;
gridArea: "inspector" | "sidebar";
@@ -47,8 +45,6 @@ type SidePanelProps = {
const SidePanel = ({
children,
- width,
- minWidth,
isPreviewMode,
gridArea,
css,
diff --git a/app/designer/iframe/iframe.tsx b/app/designer/iframe/iframe.tsx
index 090ba8352c..58bd676a22 100644
--- a/app/designer/iframe/iframe.tsx
+++ b/app/designer/iframe/iframe.tsx
@@ -31,3 +31,5 @@ export const Iframe = forwardRef<HTMLIFrameElement, IframeProps>(
);
}
);
+
+Iframe.displayName = "Iframe";
diff --git a/app/designer/sidebar-left/custom-drag-layer.tsx b/app/designer/sidebar-left/custom-drag-layer.tsx
index b770e01a50..2379df82dc 100644
--- a/app/designer/sidebar-left/custom-drag-layer.tsx
+++ b/app/designer/sidebar-left/custom-drag-layer.tsx
@@ -1,6 +1,6 @@
import { useEffect } from "react";
import { createPortal } from "react-dom";
-import { useDragLayer, XYCoord } from "react-dnd";
+import { useDragLayer } from "react-dnd";
import { type Instance } from "@webstudio-is/sdk";
import type { InitialDragData } from "~/shared/component";
@@ -14,22 +14,6 @@ const layerStyles = {
height: "100%",
} as const;
-const getItemStyles = (
- initialOffset: XYCoord | null,
- currentOffset: XYCoord | null
-): { transform?: string; display?: "none" } => {
- if (!initialOffset || !currentOffset) {
- return {
- display: "none",
- };
- }
- let { x, y } = currentOffset;
- const transform = `translate(${x}px, ${y}px)`;
- return {
- transform,
- };
-};
-
export type CustomDragLayerProps = {
onDrag: (dragData: InitialDragData) => void;
};
@@ -63,12 +47,5 @@ export const CustomDragLayer = ({ onDrag }: CustomDragLayerProps) => {
if (isDragging === false) return null;
- return createPortal(
- <div style={layerStyles}>
- {
- //<div style={getItemStyles(initialOffset, currentOffset)}></div>
- }
- </div>,
- document.body
- );
+ return createPortal(<div style={layerStyles} />, document.body);
};
diff --git a/app/designer/sidebar-left/panels/components.tsx b/app/designer/sidebar-left/panels/components.tsx
index b7f1856792..539e7a2b16 100644
--- a/app/designer/sidebar-left/panels/components.tsx
+++ b/app/designer/sidebar-left/panels/components.tsx
@@ -29,12 +29,11 @@ const Component = ({
onClick,
}: ComponentProps) => {
const lastIsDragging = useRef<boolean | void>();
- const [{ isDragging, handlerId }, dragRef] = useDrag(
+ const [{ isDragging }, dragRef] = useDrag(
() => ({
type: component,
collect: (monitor) => ({
isDragging: monitor.isDragging(),
- handlerId: monitor.getHandlerId(),
}),
}),
[]
@@ -81,7 +80,6 @@ type ComponentsProps = {
export const TabContent = ({
onDragChange,
- iframeRef,
publish,
onSetActiveTab,
}: ComponentsProps) => {
diff --git a/app/designer/sidebar-left/sidebar-left.tsx b/app/designer/sidebar-left/sidebar-left.tsx
index f3a490c258..d738e8cf5d 100644
--- a/app/designer/sidebar-left/sidebar-left.tsx
+++ b/app/designer/sidebar-left/sidebar-left.tsx
@@ -5,7 +5,6 @@ import {
SidebarTabsContent,
SidebarTabsList,
SidebarTabsTrigger,
- Text,
} from "~/shared/design-system";
import { useSubscribe, type Publish } from "~/designer/iframe";
import type { SelectedInstanceData } from "~/shared/component";
diff --git a/app/designer/style-panel/autocomplete.tsx b/app/designer/style-panel/autocomplete.tsx
deleted file mode 100644
index 9da8eefa08..0000000000
--- a/app/designer/style-panel/autocomplete.tsx
+++ /dev/null
@@ -1,230 +0,0 @@
-import {
- useState,
- useRef,
- useCallback,
- useMemo,
- type ComponentProps,
- useEffect,
-} from "react";
-import useDebounce from "react-use/lib/useDebounce";
-import {
- TextField,
- MenuAnchor,
- Menu,
- MenuContent,
- MenuItem,
-} from "~/shared/design-system";
-
-type Items = Array<{ label: string }>;
-
-const findIndex = (
- items: Items,
- value: string,
- exact: boolean = false
-): number => {
- const item = items.find(({ label }) => {
- return exact ? label === value : label.includes(value);
- });
- if (item === undefined) return -1;
- return items.indexOf(item);
-};
-
-type AutocompleteProps = {
- items: Items;
- onChangeValue: (value: string) => void;
- value: string;
-} & ComponentProps<typeof TextField>;
-
-export const Autocomplete = ({
- items,
- onChangeValue,
- value,
- ...rest
-}: AutocompleteProps) => {
- const [debouncedValue, setDebouncedValue] = useState<string>();
- const [isOpen, setIsOpen] = useState<boolean>();
- const inputRef = useRef<HTMLInputElement>(null);
- const contentRef = useRef<HTMLDivElement>();
- const isMouseInRef = useRef<boolean>(false);
- const previousValueRef = useRef<string>(value);
- const contentRefCallback = useCallback(
- (contentElement) => {
- contentRef.current = contentElement;
- // When we open with an arrow
- // menu catches the key event and focuses the first item,
- // which triggers onFocus handler.
- // We need to prevent that handler from executing.
- cancelDebounce();
-
- if (contentElement && inputRef.current !== null) {
- inputRef.current.focus();
- }
- },
- [inputRef]
- );
-
- const currentIndex = useMemo(() => {
- // We try to match exact item first, then non-exact as a fallback.
- const exactMatchIndex = findIndex(items, value, true);
- const index =
- exactMatchIndex === -1 ? findIndex(items, value) : exactMatchIndex;
-
- return index;
- }, [items, value]);
-
- useEffect(() => {
- if (isOpen === false) return;
- if (currentIndex === -1) {
- close();
- return;
- }
-
- // We don't want to auto scroll when pointer is on the menu
- if (contentRef.current && isMouseInRef.current === false) {
- contentRef.current.children[currentIndex]?.scrollIntoView({
- block: "center",
- });
- }
- }, [currentIndex, isOpen, contentRef.current, isMouseInRef.current]);
-
- useEffect(() => {
- if (isOpen === false) {
- // Remember the value we had before opening autocomplete
- // so that when we press ESC we can restore it.
- previousValueRef.current = value;
- }
- }, [value, isOpen]);
-
- const [, cancelDebounce] = useDebounce(
- () => {
- if (debouncedValue !== undefined) {
- select(debouncedValue);
- }
- },
- 500,
- [debouncedValue]
- );
-
- const select = (nextValue?: string) => {
- cancelDebounce();
- if (nextValue !== undefined && nextValue !== value) {
- onChangeValue(nextValue);
- }
- };
-
- const open = () => {
- if (isOpen !== true && currentIndex !== -1) setIsOpen(true);
- };
-
- const close = () => {
- setDebouncedValue(undefined);
- cancelDebounce();
- setIsOpen(false);
- };
-
- const abort = () => {
- if (previousValueRef.current !== undefined) {
- select(previousValueRef.current);
- }
- close();
- };
-
- return (
- <Menu open={isOpen} modal={false}>
- <MenuAnchor asChild>
- <TextField
- {...rest}
- value={value}
- ref={inputRef}
- autoComplete="off"
- onClick={() => {
- open();
- }}
- onFocus={() => {
- inputRef.current?.select();
- if (isOpen === undefined) open();
- }}
- onChange={(event) => {
- const value = event.target.value.trim();
- select(value);
- open();
- onChangeValue(value);
- }}
- onKeyDown={(event) => {
- switch (event.key) {
- case "Escape":
- event.preventDefault();
- abort();
- break;
- case "Enter": {
- event.preventDefault();
- select(items[currentIndex]?.label);
- isOpen ? close() : open();
- break;
- }
- case "ArrowDown": {
- event.preventDefault();
- if (isOpen === false) {
- open();
- break;
- }
- const index = items[currentIndex + 1] ? currentIndex + 1 : 0;
- select(items[index]?.label);
- break;
- }
- case "ArrowUp": {
- event.preventDefault();
- if (isOpen === false) {
- open();
- break;
- }
- const index = items[currentIndex - 1]
- ? currentIndex - 1
- : items.length - 1;
- select(items[index]?.label);
- break;
- }
- }
- }}
- />
- </MenuAnchor>
- <MenuContent
- loop
- portalled
- css={{ maxHeight: 200, overflow: "auto" }}
- asChild
- onMouseEnter={() => {
- isMouseInRef.current = true;
- }}
- onMouseLeave={() => {
- isMouseInRef.current = false;
- }}
- onPointerDownOutside={() => {
- abort();
- }}
- >
- <div ref={contentRefCallback}>
- {items.map(({ label }, index) => {
- return (
- <MenuItem
- key={index}
- {...(index === currentIndex
- ? { "data-found": true }
- : undefined)}
- onSelect={() => {
- select(label);
- close();
- }}
- onFocus={(event) => {
- setDebouncedValue(items[index]?.label);
- }}
- >
- {label}
- </MenuItem>
- );
- })}
- </div>
- </MenuContent>
- </Menu>
- );
-};
diff --git a/app/designer/style-panel/color-picker.tsx b/app/designer/style-panel/color-picker.tsx
deleted file mode 100644
index 8421520697..0000000000
--- a/app/designer/style-panel/color-picker.tsx
+++ /dev/null
@@ -1,69 +0,0 @@
-import { useState } from "react";
-import { ColorResult, RGBColor, SketchPicker } from "react-color";
-import {
- Box,
- Flex,
- Popover,
- PopoverTrigger,
- PopoverContent,
- TextField,
-} from "~/shared/design-system";
-
-const stringifyRGBA = (color: RGBColor) => {
- const { r, g, b, a = 1 } = color;
-
- return `rgba(${r},${g},${b},${a})`;
-};
-
-type ColorPickerProps = {
- onChangeValue: (value: string) => void;
- value: string;
-};
-
-export const ColorPicker = ({ value, onChangeValue }: ColorPickerProps) => {
- const [displayColorPicker, setDisplayColorPicker] = useState(false);
-
- return (
- <Popover
- modal
- open={displayColorPicker}
- onOpenChange={setDisplayColorPicker}
- >
- <PopoverTrigger asChild aria-label="Open color picker">
- <Flex>
- <Box
- css={{
- width: "$5",
- height: "$5",
- background: value,
- }}
- />
- <TextField
- onChange={(e) => onChangeValue(e.target.value)}
- onClick={() => setDisplayColorPicker((shown) => !shown)}
- variant="ghost"
- value={value}
- />
- </Flex>
- </PopoverTrigger>
-
- <PopoverContent>
- <SketchPicker
- color={value}
- onChange={(color: ColorResult) =>
- onChangeValue(stringifyRGBA(color.rgb))
- }
- // @todo to remove both when we have preset colors
- presetColors={[]}
- styles={{
- default: {
- picker: {
- padding: 10,
- },
- },
- }}
- />
- </PopoverContent>
- </Popover>
- );
-};
diff --git a/app/designer/style-panel/component-info.tsx b/app/designer/style-panel/component-info.tsx
index 80a6d22800..c0655ade64 100644
--- a/app/designer/style-panel/component-info.tsx
+++ b/app/designer/style-panel/component-info.tsx
@@ -1,4 +1,4 @@
-import { Flex, Text, Card, Paragraph } from "~/shared/design-system";
+import { Flex, Text } from "~/shared/design-system";
import type { SelectedInstanceData } from "~/shared/component";
import { primitives } from "~/shared/component";
diff --git a/app/designer/style-panel/get-inherited-style.ts b/app/designer/style-panel/get-inherited-style.ts
index 6fecd9413f..06c4c1cda8 100644
--- a/app/designer/style-panel/get-inherited-style.ts
+++ b/app/designer/style-panel/get-inherited-style.ts
@@ -42,6 +42,7 @@ const findParents = (
break;
}
const foundParents = findParents(child, instanceId);
+ // eslint-disable-next-line prefer-spread
parents.push.apply(parents, foundParents);
}
return parents;
diff --git a/app/designer/style-panel/parse-value.ts b/app/designer/style-panel/parse-value.ts
index d2de74ea1a..a0a3d43a17 100644
--- a/app/designer/style-panel/parse-value.ts
+++ b/app/designer/style-panel/parse-value.ts
@@ -8,16 +8,13 @@ const isValid = (property: string, value: string): boolean => {
// Only browsers with houdini api will provide validation for now
// @todo add a polyfill maybe
if (
- // @ts-ignore TS types don't have this interface yet
typeof CSSStyleValue === "undefined" ||
- // @ts-ignore TS types don't have this interface yet
typeof CSSStyleValue.parse === "undefined"
) {
return true;
}
try {
- // @ts-ignore TS types don't have this interface yet
CSSStyleValue.parse(hyphenate(property), value);
} catch (error) {
return false;
diff --git a/app/designer/style-panel/render-property.tsx b/app/designer/style-panel/render-property.tsx
index 46aff4087a..5e4c2b3660 100644
--- a/app/designer/style-panel/render-property.tsx
+++ b/app/designer/style-panel/render-property.tsx
@@ -2,9 +2,9 @@ import { useId } from "@radix-ui/react-id";
import {
Flex,
Grid,
- ToggleGroup,
+ ToggleGroup as ToggleGroupPrimitive,
Label,
- Select,
+ Select as SelectPrimitive,
Text,
} from "~/shared/design-system";
import type { StyleConfig } from "~/shared/style-panel-configs";
@@ -17,13 +17,13 @@ import {
} from "@webstudio-is/sdk";
import type { SetProperty } from "./use-style-data";
import type { InheritedStyle } from "./get-inherited-style";
-import { Autocomplete } from "./autocomplete";
-import { ColorPicker } from "./color-picker";
+import { Autocomplete } from "./lib/autocomplete";
+import { ColorPicker } from "./lib/color-picker";
import {
SpacingWidget,
type SpacingProperty,
type SpacingStyles,
-} from "./spacing-widget";
+} from "./lib/spacing-widget";
const getFinalValue = ({
currentStyle,
@@ -50,16 +50,12 @@ type RendererProps = {
styleConfig: StyleConfig;
};
-const renderers: {
- [key: string]: (props: RendererProps) => JSX.Element | null;
-} = {};
-
-renderers.ColorField = ({
+const ColorField = ({
currentStyle,
inheritedStyle,
setProperty,
styleConfig,
-}) => {
+}: RendererProps) => {
if (styleConfig.ui !== "ColorField") return null;
// @todo show which instance we inherited the value from
const value = getFinalValue({
@@ -84,13 +80,13 @@ renderers.ColorField = ({
);
};
-renderers.SpacingWidget = ({
+const Spacing = ({
currentStyle,
inheritedStyle,
setProperty,
styleConfig,
-}) => {
- if (styleConfig.ui !== "SpacingWidget") return null;
+}: RendererProps) => {
+ if (styleConfig.ui !== "Spacing") return null;
const styles = categories.spacing.properties.reduce(
(acc: SpacingStyles, property: SpacingProperty): SpacingStyles => {
@@ -115,12 +111,12 @@ renderers.SpacingWidget = ({
return <SpacingWidget setProperty={setProperty} values={styles} />;
};
-renderers.ToggleGroup = ({
+const ToggleGroup = ({
currentStyle,
inheritedStyle,
setProperty,
styleConfig,
-}) => {
+}: RendererProps) => {
if (styleConfig.ui !== "ToggleGroup") return null;
// @todo show which instance we inherited the value from
const value = getFinalValue({
@@ -131,32 +127,32 @@ renderers.ToggleGroup = ({
if (value === undefined) return null;
return (
- <ToggleGroup.Root
+ <ToggleGroupPrimitive.Root
type="single"
value={value.value as string}
onValueChange={setProperty(styleConfig.property)}
>
{styleConfig.items.map(
({ name, label }: { name: string; label: string }) => (
- <ToggleGroup.Item
+ <ToggleGroupPrimitive.Item
css={{ fontSize: "$1", px: "$1" }}
value={name}
key={name}
>
{label}
- </ToggleGroup.Item>
+ </ToggleGroupPrimitive.Item>
)
)}
- </ToggleGroup.Root>
+ </ToggleGroupPrimitive.Root>
);
};
-renderers.Select = ({
+const Select = ({
currentStyle,
inheritedStyle,
setProperty,
styleConfig,
-}) => {
+}: RendererProps) => {
const id = useId();
if (styleConfig.ui !== "Select") return null;
@@ -174,7 +170,7 @@ renderers.Select = ({
<Label htmlFor={id} css={{ gridColumn: "1", fontSize: "$1" }}>
{styleConfig.label}
</Label>
- <Select
+ <SelectPrimitive
id={id}
css={{ gridColumn: "2/4" }}
value={value.value}
@@ -187,7 +183,7 @@ renderers.Select = ({
{name}
</option>
))}
- </Select>
+ </SelectPrimitive>
</Grid>
);
};
@@ -206,17 +202,17 @@ const Unit = ({ value }: { value: StyleValue }) => {
);
};
-const svgCursor =
- '<svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"><path d="M8.00012 1.5C8.00012 1.22386 7.77626 1 7.50012 1C7.22398 1 7.00012 1.22386 7.00012 1.5V13.5C7.00012 13.7761 7.22398 14 7.50012 14C7.77626 14 8.00012 13.7761 8.00012 13.5V1.5ZM3.31812 5.818C3.49386 5.64227 3.49386 5.35734 3.31812 5.18161C3.14239 5.00587 2.85746 5.00587 2.68173 5.18161L0.681729 7.18161C0.505993 7.35734 0.505993 7.64227 0.681729 7.818L2.68173 9.818C2.85746 9.99374 3.14239 9.99374 3.31812 9.818C3.49386 9.64227 3.49386 9.35734 3.31812 9.18161L2.08632 7.9498H5.50017C5.7487 7.9498 5.95017 7.74833 5.95017 7.4998C5.95017 7.25128 5.7487 7.0498 5.50017 7.0498H2.08632L3.31812 5.818ZM12.3181 5.18161C12.1424 5.00587 11.8575 5.00587 11.6817 5.18161C11.506 5.35734 11.506 5.64227 11.6817 5.818L12.9135 7.0498H9.50017C9.25164 7.0498 9.05017 7.25128 9.05017 7.4998C9.05017 7.74833 9.25164 7.9498 9.50017 7.9498H12.9135L11.6817 9.18161C11.506 9.35734 11.506 9.64227 11.6817 9.818C11.8575 9.99374 12.1424 9.99374 12.3181 9.818L14.3181 7.818C14.4939 7.64227 14.4939 7.35734 14.3181 7.18161L12.3181 5.18161Z" fill="#fff"></path></svg>';
+//const svgCursor =
+// '<svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"><path d="M8.00012 1.5C8.00012 1.22386 7.77626 1 7.50012 1C7.22398 1 7.00012 1.22386 7.00012 1.5V13.5C7.00012 13.7761 7.22398 14 7.50012 14C7.77626 14 8.00012 13.7761 8.00012 13.5V1.5ZM3.31812 5.818C3.49386 5.64227 3.49386 5.35734 3.31812 5.18161C3.14239 5.00587 2.85746 5.00587 2.68173 5.18161L0.681729 7.18161C0.505993 7.35734 0.505993 7.64227 0.681729 7.818L2.68173 9.818C2.85746 9.99374 3.14239 9.99374 3.31812 9.818C3.49386 9.64227 3.49386 9.35734 3.31812 9.18161L2.08632 7.9498H5.50017C5.7487 7.9498 5.95017 7.74833 5.95017 7.4998C5.95017 7.25128 5.7487 7.0498 5.50017 7.0498H2.08632L3.31812 5.818ZM12.3181 5.18161C12.1424 5.00587 11.8575 5.00587 11.6817 5.18161C11.506 5.35734 11.506 5.64227 11.6817 5.818L12.9135 7.0498H9.50017C9.25164 7.0498 9.05017 7.25128 9.05017 7.4998C9.05017 7.74833 9.25164 7.9498 9.50017 7.9498H12.9135L11.6817 9.18161C11.506 9.35734 11.506 9.64227 11.6817 9.818C11.8575 9.99374 12.1424 9.99374 12.3181 9.818L14.3181 7.818C14.4939 7.64227 14.4939 7.35734 14.3181 7.18161L12.3181 5.18161Z" fill="#fff"></path></svg>';
-const cursorUrl = `data:image/svg+xml;base64,${btoa(svgCursor)}`;
+//const cursorUrl = `data:image/svg+xml;base64,${btoa(svgCursor)}`;
-renderers.TextFieldWithAutocomplete = ({
+const TextFieldWithAutocomplete = ({
currentStyle,
inheritedStyle,
setProperty,
styleConfig,
-}) => {
+}: RendererProps) => {
if (styleConfig.ui !== "TextFieldWithAutocomplete") return null;
// @todo show which instance we inherited the value from
@@ -252,6 +248,16 @@ renderers.TextFieldWithAutocomplete = ({
);
};
+const renderers: {
+ [key: string]: (props: RendererProps) => JSX.Element | null;
+} = {
+ ColorField,
+ Spacing,
+ ToggleGroup,
+ Select,
+ TextFieldWithAutocomplete,
+};
+
type RenderPropertyProps = {
setProperty: SetProperty;
currentStyle: Style;
diff --git a/app/designer/style-panel/settings.tsx b/app/designer/style-panel/settings.tsx
index 530c897e11..e80377bde9 100644
--- a/app/designer/style-panel/settings.tsx
+++ b/app/designer/style-panel/settings.tsx
@@ -53,11 +53,7 @@ const ShowMore = ({ styleConfigs }: { styleConfigs: Array<JSX.Element> }) => {
);
};
-export const VisualSettings = ({
- selectedInstanceData,
- currentStyle,
- ...rest
-}: SectionProps) => {
+export const VisualSettings = ({ currentStyle, ...rest }: SectionProps) => {
const all = [];
let category: Category;
for (category in categories) {
diff --git a/app/designer/style-panel/spacing-widget.tsx b/app/designer/style-panel/spacing-widget.tsx
deleted file mode 100644
index 8be24717bd..0000000000
--- a/app/designer/style-panel/spacing-widget.tsx
+++ /dev/null
@@ -1,203 +0,0 @@
-import { Box } from "~/shared/design-system";
-import {
- buildCss,
- type StyleProperty,
- type StyleValue,
-} from "@webstudio-is/sdk";
-import { SetProperty } from "./use-style-data";
-
-type SpacingSingularStyle = { [property in SpacingProperty]?: StyleValue };
-
-export type SpacingStyles = {
- paddings: SpacingSingularStyle;
- margins: SpacingSingularStyle;
-};
-
-export type SpacingProperty = Margin | Padding;
-
-type Margin = "marginTop" | "marginRight" | "marginBottom" | "marginLeft";
-
-type Padding = "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft";
-
-const grid = {
- margin: {
- marginTop: "1 / 2 / 2 / 3",
- marginRight: "2 / 3 / 3 / 4",
- marginBottom: "3 / 2 / 4 / 3",
- marginLeft: "2 / 1 / 3 / 2",
- },
- padding: {
- paddingTop: "1 / 2 / 2 / 3",
- paddingRight: "2 / 3 / 3 / 4",
- paddingBottom: "3 / 2 / 4 / 3",
- paddingLeft: "2 / 1 / 3 / 2",
- },
-};
-
-const styles = {
- spacingEdit: {
- fontSize: "$1",
- // @todo use a color from design system
- color: "rgb(217, 217, 217)",
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- },
- wrapper: {
- display: "grid",
- height: 130,
- gridTemplateColumns: "$5 $1 $5 1fr $5 $1 $5",
- gridTemplateRows: "$5 $1 $5 1fr $5 $1 $5",
- },
- input: {
- fontSize: 10,
- fontWeight: 400,
- fontFamily: "inherit",
- display: "block",
- background: "transparent",
- color: "$hiContrast",
- zIndex: 99,
- margin: "auto",
- // @todo need to fit more chars
- width: 40,
- border: "none",
- textAlign: "center",
- outline: "none",
- },
- emptySpace: {
- gridArea: "2 / 2 / 3 / 2",
- background: "$loContrast",
- width: "$6",
- margin: "auto",
- height: "100%",
- borderRadius: "$1",
- },
- marginGrid: {
- gridArea: "1 / 1 / -1 / -1",
- display: "grid",
- gridTemplateColumns: "$5 1fr $5",
- gridTemplateRows: "$5 minmax($3, 1fr) $5",
- height: 130,
- backgroundColor: "$gray6",
- borderRadius: "$1",
- px: 2,
- },
- text: {
- fontWeight: "bold",
- color: "$gray12",
- fontSize: 8,
- margin: "$1",
- },
- paddingGrid: {
- gridArea: "3 / 3 / span 3 / span 3",
- display: "grid",
- gridTemplateColumns: "$5 1fr $5",
- gridTemplateRows: "$5 minmax($3, 1fr) $5",
- border: "2px solid",
- borderColor: "$loContrast",
- borderRadius: "$1",
- },
-};
-
-const cleanValueForCSS = (value: string) => {
- const isNum = /^\d+$/.test(value);
- const isOnlyText = /^[A-Za-z]+$/.test(value);
-
- if (isNum) return `${value.toString()}px`;
- if (isOnlyText) return "0px";
-
- return value;
-};
-
-type SpacingWidgetProps = {
- setProperty: SetProperty;
- values: SpacingStyles;
-};
-
-export const SpacingWidget = ({ setProperty, values }: SpacingWidgetProps) => {
- const margins = buildCss(values.margins);
- const paddings = buildCss(values.paddings);
-
- const updateSpacing = ({
- value,
- property,
- }: {
- value: string;
- property: StyleProperty;
- }) => {
- setProperty(property)(cleanValueForCSS(value));
- };
-
- return (
- <Box css={styles.wrapper}>
- <Box css={styles.marginGrid}>
- {(Object.keys(margins) as Array<Margin>).map((property: Margin) => (
- <Box
- key={property}
- css={{
- ...styles.spacingEdit,
- gridArea: grid.margin[property],
- }}
- >
- <Box
- as="input"
- name={property}
- aria-label={`${property} edit`}
- value={margins[property]?.toString()}
- onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
- updateSpacing({
- value: event.target.value,
- property,
- })
- }
- css={styles.input}
- />
- </Box>
- ))}
- </Box>
- <Box css={styles.paddingGrid}>
- {(Object.keys(paddings) as Array<Padding>).map((property: Padding) => (
- <Box
- key={property}
- css={{
- ...styles.spacingEdit,
- gridArea: grid.padding[property],
- }}
- >
- <Box
- as="input"
- name={property}
- aria-label={`${property} edit`}
- value={paddings[property]?.toString()}
- onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
- updateSpacing({
- value: event.target.value,
- property,
- })
- }
- css={styles.input}
- />
- </Box>
- ))}
- <Box css={styles.emptySpace} />
- </Box>
- <Box
- css={{
- ...styles.text,
- gridArea: "3 / 3 / span 3 / span 3",
- }}
- >
- PADDING
- </Box>
-
- <Box
- css={{
- ...styles.text,
- gridArea: "1 / 1 / -1 / -1",
- }}
- >
- MARGIN
- </Box>
- </Box>
- );
-};
diff --git a/app/designer/sync/use-sync.ts b/app/designer/sync/use-sync.ts
index 100906a4c6..4c2fae9a43 100644
--- a/app/designer/sync/use-sync.ts
+++ b/app/designer/sync/use-sync.ts
@@ -19,13 +19,7 @@ import { enqueue } from "./queue";
// because prisma can't do atomic updates yet with embeded documents
// and backend fetches and updates big objects, so if we send quickly,
// we end up overwriting things
-export const useSync = ({
- config,
- project,
-}: {
- config: Config;
- project: Project;
-}) => {
+export const useSync = ({ project }: { config: Config; project: Project }) => {
useSubscribe<"syncInstanceInsertion", InstanceInsertionSpec>(
"syncInstanceInsertion",
(instanceInsertionSpec) => {
diff --git a/app/routes/canvas/$projectId.tsx b/app/routes/canvas/$projectId.tsx
index 0112218714..b1c5c2cc03 100644
--- a/app/routes/canvas/$projectId.tsx
+++ b/app/routes/canvas/$projectId.tsx
@@ -27,7 +27,7 @@ export const loader: LoaderFunction = async ({
return { errors: "Unexpected error" };
};
-export default () => {
+const CanvasRoute = () => {
const data = useLoaderData<Data | ErrorData>();
// @todo how should we treat this kind of errors?
if ("errors" in data) {
@@ -35,3 +35,5 @@ export default () => {
}
return <Canvas data={data} />;
};
+
+export default CanvasRoute;
diff --git a/app/routes/dashboard/index.tsx b/app/routes/dashboard/index.tsx
index 368bbcea93..95fa540e4f 100644
--- a/app/routes/dashboard/index.tsx
+++ b/app/routes/dashboard/index.tsx
@@ -25,12 +25,14 @@ export const action: ActionFunction = async ({ request }) => {
return data;
};
-export const loader: LoaderFunction = async (request) => {
+export const loader: LoaderFunction = async () => {
const projects = await db.project.loadAll();
return { config, projects };
};
-export default () => {
+const DashboardRoute = () => {
const { config, projects } = useLoaderData();
return <Dashboard config={config} projects={projects} />;
};
+
+export default DashboardRoute;
diff --git a/app/routes/designer.tsx b/app/routes/designer.tsx
index 39ce711e59..76dd309d96 100644
--- a/app/routes/designer.tsx
+++ b/app/routes/designer.tsx
@@ -1,13 +1,13 @@
import { Links, LiveReload, Meta, Outlet, Scripts } from "remix";
import type { MetaFunction } from "remix";
import { CriticalCss } from "@webstudio-is/sdk";
-import { darkTheme, getCssText } from "~/shared/design-system";
+import { darkTheme } from "~/shared/design-system";
export const meta: MetaFunction = () => {
return { title: "Webstudio" };
};
-export default () => {
+const RootDesignerRoute = () => {
return (
<html lang="en">
<head>
@@ -25,3 +25,5 @@ export default () => {
</html>
);
};
+
+export default RootDesignerRoute;
diff --git a/app/routes/designer/$id.tsx b/app/routes/designer/$id.tsx
index bbcbc1ebde..497f460a42 100644
--- a/app/routes/designer/$id.tsx
+++ b/app/routes/designer/$id.tsx
@@ -17,7 +17,9 @@ type Data = {
project: Project;
};
-export default () => {
+const DesignerRoute = () => {
const { config, project } = useLoaderData<Data>();
return <Designer config={config} project={project} />;
};
+
+export default DesignerRoute;
diff --git a/app/routes/index.tsx b/app/routes/index.tsx
index 89cf668f2e..12584093ad 100644
--- a/app/routes/index.tsx
+++ b/app/routes/index.tsx
@@ -31,7 +31,7 @@ export const loader: LoaderFunction = async ({ request }) => {
return redirect(config.dashboardPath);
};
-export default () => {
+const Index = () => {
const data = useLoaderData();
if (data.errors) {
return <p>{data.errors}</p>;
@@ -43,3 +43,5 @@ export default () => {
}
return null;
};
+
+export default Index;
diff --git a/app/routes/preview/$projectId.tsx b/app/routes/preview/$projectId.tsx
index e3d747a6f0..dff565aeba 100644
--- a/app/routes/preview/$projectId.tsx
+++ b/app/routes/preview/$projectId.tsx
@@ -5,10 +5,12 @@ import { loader, type ErrorData } from "../canvas/$projectId";
export { loader };
-export default function Preview() {
+const PreviewRoute = () => {
const data = useLoaderData<Data | ErrorData>();
if ("errors" in data) {
return <p>{data.errors}</p>;
}
return <Root data={data} />;
-}
+};
+
+export default PreviewRoute;
diff --git a/app/routes/rest/delete-instance.$treeId.ts b/app/routes/rest/delete-instance.$treeId.ts
index ee21b94dc1..26d581afaf 100644
--- a/app/routes/rest/delete-instance.$treeId.ts
+++ b/app/routes/rest/delete-instance.$treeId.ts
@@ -1,4 +1,4 @@
-import { type ActionFunction, json } from "remix";
+import { type ActionFunction } from "remix";
import * as db from "~/shared/db";
export const action: ActionFunction = async ({ request, params }) => {
diff --git a/app/routes/rest/insert-instance.$treeId.ts b/app/routes/rest/insert-instance.$treeId.ts
index 067d29b76d..d614c970de 100644
--- a/app/routes/rest/insert-instance.$treeId.ts
+++ b/app/routes/rest/insert-instance.$treeId.ts
@@ -1,4 +1,4 @@
-import { type ActionFunction, json } from "remix";
+import { type ActionFunction } from "remix";
import * as db from "~/shared/db";
export const action: ActionFunction = async ({ request, params }) => {
diff --git a/app/routes/rest/props.delete-prop.ts b/app/routes/rest/props.delete-prop.ts
index 1f6eda8924..3a7995b4b9 100644
--- a/app/routes/rest/props.delete-prop.ts
+++ b/app/routes/rest/props.delete-prop.ts
@@ -1,7 +1,7 @@
import { type ActionFunction } from "remix";
import * as db from "~/shared/db";
-export const action: ActionFunction = async ({ request, params }) => {
+export const action: ActionFunction = async ({ request }) => {
const data = await request.json();
await db.props.deleteProp(data);
return { status: "ok" };
diff --git a/app/routes/rest/reparent-instance.$treeId.ts b/app/routes/rest/reparent-instance.$treeId.ts
index a1b7273a9e..e232bc1532 100644
--- a/app/routes/rest/reparent-instance.$treeId.ts
+++ b/app/routes/rest/reparent-instance.$treeId.ts
@@ -1,4 +1,4 @@
-import { type ActionFunction, json } from "remix";
+import { type ActionFunction } from "remix";
import * as db from "~/shared/db";
export const action: ActionFunction = async ({ request, params }) => {
diff --git a/app/shared/component/instance-data.ts b/app/shared/component/instance-data.ts
index a91963b2dc..d61b232ab4 100644
--- a/app/shared/component/instance-data.ts
+++ b/app/shared/component/instance-data.ts
@@ -4,7 +4,6 @@ import {
type Style,
type StyleProperty,
type StyleValue,
- type Tree,
} from "@webstudio-is/sdk";
export type SelectedInstanceData = {
diff --git a/app/shared/component/primitives/bold.tsx b/app/shared/component/primitives/bold.tsx
index 29565a30ca..3f93698ae4 100644
--- a/app/shared/component/primitives/bold.tsx
+++ b/app/shared/component/primitives/bold.tsx
@@ -1,7 +1,7 @@
-import { type Instance, components } from "@webstudio-is/sdk";
+import { components } from "@webstudio-is/sdk";
export { FontBoldIcon as Icon } from "~/shared/icons";
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return false;
};
diff --git a/app/shared/component/primitives/box.tsx b/app/shared/component/primitives/box.tsx
index 842005496a..84a531834f 100644
--- a/app/shared/component/primitives/box.tsx
+++ b/app/shared/component/primitives/box.tsx
@@ -1,4 +1,4 @@
-import { type Instance, type Style, components } from "@webstudio-is/sdk";
+import { type Style, components } from "@webstudio-is/sdk";
export { SquareIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
@@ -14,7 +14,7 @@ export const defaultStyle: Style = {
},
};
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return true;
};
diff --git a/app/shared/component/primitives/button.tsx b/app/shared/component/primitives/button.tsx
index 6c43266c14..0ef49526a4 100644
--- a/app/shared/component/primitives/button.tsx
+++ b/app/shared/component/primitives/button.tsx
@@ -1,10 +1,10 @@
-import { type Instance, type Style, components } from "@webstudio-is/sdk";
+import { type Style, components } from "@webstudio-is/sdk";
export { ButtonIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
export const defaultStyle: Style = {};
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
// @todo could accept an icon in the future
return false;
};
diff --git a/app/shared/component/primitives/form.tsx b/app/shared/component/primitives/form.tsx
index 7cb9b6c8a3..b27e4ca8a2 100644
--- a/app/shared/component/primitives/form.tsx
+++ b/app/shared/component/primitives/form.tsx
@@ -1,4 +1,4 @@
-import { type Instance, type Style, components } from "@webstudio-is/sdk";
+import { type Style, components } from "@webstudio-is/sdk";
export { FormIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
@@ -14,7 +14,7 @@ export const defaultStyle: Style = {
},
};
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return true;
};
diff --git a/app/shared/component/primitives/heading.tsx b/app/shared/component/primitives/heading.tsx
index 74b0c96d9c..c3adb29350 100644
--- a/app/shared/component/primitives/heading.tsx
+++ b/app/shared/component/primitives/heading.tsx
@@ -1,5 +1,4 @@
-import { forwardRef, type ElementRef, type ComponentProps } from "react";
-import { type Instance, type Style, components } from "@webstudio-is/sdk";
+import { type Style, components } from "@webstudio-is/sdk";
export { HeadingIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
@@ -13,7 +12,7 @@ export const defaultStyle: Style = {
export const children = ["Heading you can edit"];
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return false;
};
diff --git a/app/shared/component/primitives/input.tsx b/app/shared/component/primitives/input.tsx
index 6ea4388b25..fc6d396e26 100644
--- a/app/shared/component/primitives/input.tsx
+++ b/app/shared/component/primitives/input.tsx
@@ -1,10 +1,10 @@
-import { type Instance, type Style, components } from "@webstudio-is/sdk";
+import { type Style, components } from "@webstudio-is/sdk";
export { InputIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
export const defaultStyle: Style = {};
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return false;
};
diff --git a/app/shared/component/primitives/italic.tsx b/app/shared/component/primitives/italic.tsx
index 0c61e7e04b..56a89e6550 100644
--- a/app/shared/component/primitives/italic.tsx
+++ b/app/shared/component/primitives/italic.tsx
@@ -1,7 +1,7 @@
-import { type Instance, components } from "@webstudio-is/sdk";
+import { components } from "@webstudio-is/sdk";
export { FontBoldIcon as Icon } from "~/shared/icons";
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return false;
};
diff --git a/app/shared/component/primitives/link.tsx b/app/shared/component/primitives/link.tsx
index 4bdb0080a5..00de0fea8a 100644
--- a/app/shared/component/primitives/link.tsx
+++ b/app/shared/component/primitives/link.tsx
@@ -1,4 +1,4 @@
-import { type Instance, type Style, components } from "@webstudio-is/sdk";
+import { type Style, components } from "@webstudio-is/sdk";
export { Link2Icon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
@@ -16,7 +16,7 @@ export const defaultStyle: Style = {
export const children = ["Link text you can edit"];
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return false;
};
diff --git a/app/shared/component/primitives/paragraph.tsx b/app/shared/component/primitives/paragraph.tsx
index 3edfba87c8..c48b2b0539 100644
--- a/app/shared/component/primitives/paragraph.tsx
+++ b/app/shared/component/primitives/paragraph.tsx
@@ -1,4 +1,4 @@
-import { type Instance, type Style, components } from "@webstudio-is/sdk";
+import { type Style, components } from "@webstudio-is/sdk";
export { TextAlignLeftIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
@@ -12,7 +12,7 @@ export const defaultStyle: Style = {
export const children = ["Pragraph you can edit"];
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return false;
};
diff --git a/app/shared/component/primitives/text-block.tsx b/app/shared/component/primitives/text-block.tsx
index 9a37a39523..ab9a8c4fea 100644
--- a/app/shared/component/primitives/text-block.tsx
+++ b/app/shared/component/primitives/text-block.tsx
@@ -1,5 +1,4 @@
-import { forwardRef, type ElementRef, type ComponentProps } from "react";
-import { type Instance, type Style, components } from "@webstudio-is/sdk";
+import { type Style, components } from "@webstudio-is/sdk";
export { TextIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
@@ -13,7 +12,7 @@ export const defaultStyle: Style = {
export const children = ["Block of text you can edit"];
-export const canAcceptChild = (component: Instance["component"]): boolean => {
+export const canAcceptChild = (): boolean => {
return false;
};
diff --git a/app/shared/db/props.server.ts b/app/shared/db/props.server.ts
index c22f7994ae..33b4ab1883 100644
--- a/app/shared/db/props.server.ts
+++ b/app/shared/db/props.server.ts
@@ -117,7 +117,7 @@ export const publish = async ({
const props = await prisma.instanceProps.findMany({
where: { treeId: previousTreeId },
});
- const data = props.map(({ id, treeId, ...rest }) => ({
+ const data = props.map(({ id: _id, treeId: _treeId, ...rest }) => ({
...rest,
treeId: nextTreeId,
}));
diff --git a/app/shared/design-system/components/accordion.tsx b/app/shared/design-system/components/accordion.tsx
index ce2d0f6cf0..d3e671ba62 100644
--- a/app/shared/design-system/components/accordion.tsx
+++ b/app/shared/design-system/components/accordion.tsx
@@ -22,6 +22,7 @@ export const Accordion = React.forwardRef<
{children}
</StyledAccordion>
));
+Accordion.displayName = "Accordion";
const StyledItem = styled(AccordionPrimitive.Item, {
borderTop: "1px solid $colors$slate6",
@@ -91,6 +92,7 @@ export const AccordionTrigger = React.forwardRef<
</StyledTrigger>
</StyledHeader>
));
+AccordionTrigger.displayName = "AccordionTrigger";
const StyledContent = styled(AccordionPrimitive.Content, {
p: "$2",
diff --git a/app/shared/design-system/components/avatar.tsx b/app/shared/design-system/components/avatar.tsx
index dbb9cdd296..1197e0cc16 100644
--- a/app/shared/design-system/components/avatar.tsx
+++ b/app/shared/design-system/components/avatar.tsx
@@ -20,7 +20,7 @@ const StyledAvatar = styled(AvatarPrimitive.Root, {
margin: "0",
outline: "none",
padding: "0",
- fontWeight: "500" as any,
+ fontWeight: "500",
color: "$hiContrast",
"&::before": {
@@ -299,3 +299,5 @@ export const Avatar = React.forwardRef<
);
}
);
+
+Avatar.displayName = "Avatar";
diff --git a/app/shared/design-system/components/checkbox.tsx b/app/shared/design-system/components/checkbox.tsx
index d18b09194d..329226c167 100644
--- a/app/shared/design-system/components/checkbox.tsx
+++ b/app/shared/design-system/components/checkbox.tsx
@@ -81,3 +81,5 @@ export const Checkbox = React.forwardRef<
</StyledIndicator>
</StyledCheckbox>
));
+
+Checkbox.displayName = "Checkbox";
diff --git a/app/shared/design-system/components/context-menu.tsx b/app/shared/design-system/components/context-menu.tsx
index 2b55e21b3a..a8d27dbee8 100644
--- a/app/shared/design-system/components/context-menu.tsx
+++ b/app/shared/design-system/components/context-menu.tsx
@@ -64,6 +64,7 @@ export const ContextMenuRadioItem = React.forwardRef<
{children}
</StyledContextMenuRadioItem>
));
+ContextMenuRadioItem.displayName = "ContextMenuRadioItem";
const StyledContextMenuCheckboxItem = styled(
ContextMenuPrimitive.CheckboxItem,
@@ -91,6 +92,8 @@ export const ContextMenuCheckboxItem = React.forwardRef<
</StyledContextMenuCheckboxItem>
));
+ContextMenuCheckboxItem.displayName = "ContextMenuCheckboxItem";
+
export const ContextMenuLabel = styled(ContextMenuPrimitive.Label, labelCss);
export const ContextMenuRadioGroup = styled(
ContextMenuPrimitive.RadioGroup,
diff --git a/app/shared/design-system/components/dialog.tsx b/app/shared/design-system/components/dialog.tsx
index 126100dbe0..9ae2c8e6e1 100644
--- a/app/shared/design-system/components/dialog.tsx
+++ b/app/shared/design-system/components/dialog.tsx
@@ -71,6 +71,7 @@ export const DialogContent = React.forwardRef<
</StyledCloseButton>
</StyledContent>
));
+DialogContent.displayName = "DialogContent";
export const DialogTrigger = DialogPrimitive.Trigger;
export const DialogClose = DialogPrimitive.Close;
diff --git a/app/shared/design-system/components/dropdown-menu.tsx b/app/shared/design-system/components/dropdown-menu.tsx
index c94c4dc347..458e3975bc 100644
--- a/app/shared/design-system/components/dropdown-menu.tsx
+++ b/app/shared/design-system/components/dropdown-menu.tsx
@@ -1,4 +1,4 @@
-import React, { ReactText } from "react";
+import React from "react";
import { CheckIcon } from "~/shared/icons";
import { styled, CSS } from "../stitches.config";
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
@@ -65,6 +65,8 @@ export const DropdownMenuRadioItem = React.forwardRef<
</StyledDropdownMenuRadioItem>
));
+DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
+
const StyledDropdownMenuCheckboxItem = styled(
DropdownMenuPrimitive.CheckboxItem,
itemCss
@@ -91,6 +93,8 @@ export const DropdownMenuCheckboxItem = React.forwardRef<
</StyledDropdownMenuCheckboxItem>
));
+DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
+
export const DropdownMenuLabel = styled(DropdownMenuPrimitive.Label, labelCss);
export const DropdownMenuRadioGroup = styled(
DropdownMenuPrimitive.RadioGroup,
diff --git a/app/shared/design-system/components/heading.tsx b/app/shared/design-system/components/heading.tsx
index e5cce15587..b4ad3a3c46 100644
--- a/app/shared/design-system/components/heading.tsx
+++ b/app/shared/design-system/components/heading.tsx
@@ -12,7 +12,7 @@ type HeadingVariants = { size?: HeadingSizeVariants } & Omit<
"size"
>;
type HeadingProps = React.ComponentProps<typeof DEFAULT_TAG> &
- HeadingVariants & { css?: CSS; as?: any };
+ HeadingVariants & { css?: CSS; as?: string };
export const Heading = React.forwardRef<
React.ElementRef<typeof DEFAULT_TAG>,
@@ -49,3 +49,5 @@ export const Heading = React.forwardRef<
/>
);
});
+
+Heading.displayName = "Heading";
diff --git a/app/shared/design-system/components/menu.tsx b/app/shared/design-system/components/menu.tsx
index 55069dcdf6..5629a26777 100644
--- a/app/shared/design-system/components/menu.tsx
+++ b/app/shared/design-system/components/menu.tsx
@@ -93,6 +93,7 @@ export const MenuRadioItem = React.forwardRef<
{children}
</StyledMenuRadioItem>
));
+MenuRadioItem.displayName = "MenuRadioItem";
const StyledMenuCheckboxItem = styled(MenuPrimitive.CheckboxItem, itemCss);
@@ -114,6 +115,7 @@ export const MenuCheckboxItem = React.forwardRef<
{children}
</StyledMenuCheckboxItem>
));
+MenuCheckboxItem.displayName = "MenuCheckboxItem";
export const MenuLabel = styled(MenuPrimitive.Label, labelCss);
export const MenuRadioGroup = styled(MenuPrimitive.RadioGroup, {});
diff --git a/app/shared/design-system/components/paragraph.tsx b/app/shared/design-system/components/paragraph.tsx
index e766eb6f04..b03d992eb3 100644
--- a/app/shared/design-system/components/paragraph.tsx
+++ b/app/shared/design-system/components/paragraph.tsx
@@ -12,7 +12,7 @@ type ParagraphVariants = { size?: ParagraphSizeVariants } & Omit<
"size"
>;
type ParagraphProps = React.ComponentProps<typeof DEFAULT_TAG> &
- ParagraphVariants & { css?: CSS; as?: any };
+ ParagraphVariants & { css?: CSS; as?: string };
export const Paragraph = React.forwardRef<
React.ElementRef<typeof DEFAULT_TAG>,
@@ -48,3 +48,5 @@ export const Paragraph = React.forwardRef<
/>
);
});
+
+Paragraph.displayName = "Paragraph";
diff --git a/app/shared/design-system/components/popover.tsx b/app/shared/design-system/components/popover.tsx
index a104e9335e..ed142ccef8 100644
--- a/app/shared/design-system/components/popover.tsx
+++ b/app/shared/design-system/components/popover.tsx
@@ -48,6 +48,6 @@ export const PopoverContent = React.forwardRef<
)}
</StyledContent>
));
-
+PopoverContent.displayName = "PopoverContent";
export const PopoverTrigger = PopoverPrimitive.Trigger;
export const PopoverClose = PopoverPrimitive.Close;
diff --git a/app/shared/design-system/components/progress-bar.tsx b/app/shared/design-system/components/progress-bar.tsx
index 77b19ffb54..b44298b9c7 100644
--- a/app/shared/design-system/components/progress-bar.tsx
+++ b/app/shared/design-system/components/progress-bar.tsx
@@ -1,82 +1,85 @@
-import React from 'react';
-import { styled, keyframes, CSS, VariantProps } from '../stitches.config';
-import * as ProgressPrimitive from '@radix-ui/react-progress';
+import React from "react";
+import { styled, keyframes, CSS, VariantProps } from "../stitches.config";
+import * as ProgressPrimitive from "@radix-ui/react-progress";
const indeterminateProgress = keyframes({
- '0%': {
- transform: 'scaleX(1) translateX(-100%)',
- transformOrigin: 'left',
+ "0%": {
+ transform: "scaleX(1) translateX(-100%)",
+ transformOrigin: "left",
},
- '50%': {
- transform: 'scaleX(1) translateX(1000%)',
- transformOrigin: 'left',
+ "50%": {
+ transform: "scaleX(1) translateX(1000%)",
+ transformOrigin: "left",
},
- '100%': {
- transform: 'scaleX(1) translateX(2000%)',
- transformOrigin: 'left',
+ "100%": {
+ transform: "scaleX(1) translateX(2000%)",
+ transformOrigin: "left",
},
});
const StyledProgressBar = styled(ProgressPrimitive.Root, {
- boxSizing: 'border-box',
- position: 'relative',
- height: '$1',
- overflow: 'hidden',
- borderRadius: '$pill',
+ boxSizing: "border-box",
+ position: "relative",
+ height: "$1",
+ overflow: "hidden",
+ borderRadius: "$pill",
'&[data-state="indeterminate"]': {
- backgroundColor: '$slate4',
- '&::after': {
+ backgroundColor: "$slate4",
+ "&::after": {
animationName: indeterminateProgress,
- animationDuration: '1500ms',
- animationIterationCount: 'infinite',
- animationTimingFunction: 'cubic-bezier(0.65, 0, 0.35, 1)',
- backgroundColor: '$slate7',
- boxSizing: 'border-box',
- borderRadius: '$pill',
+ animationDuration: "1500ms",
+ animationIterationCount: "infinite",
+ animationTimingFunction: "cubic-bezier(0.65, 0, 0.35, 1)",
+ backgroundColor: "$slate7",
+ boxSizing: "border-box",
+ borderRadius: "$pill",
content: '""',
- position: 'absolute',
+ position: "absolute",
top: 0,
bottom: 0,
left: 0,
- width: '5%',
+ width: "5%",
},
},
variants: {
variant: {
gray: {
- background: '$slate8',
+ background: "$slate8",
},
blue: {
- backgroundColor: '$blue9',
+ backgroundColor: "$blue9",
},
gradient: {
backgroundImage:
- 'linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%)',
+ "linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%)",
},
},
},
defaultVariants: {
- variant: 'gray',
+ variant: "gray",
},
});
const ProgressBarIndicator = styled(ProgressPrimitive.Indicator, {
- boxSizing: 'border-box',
- position: 'absolute',
+ boxSizing: "border-box",
+ position: "absolute",
top: 0,
right: 0,
bottom: 0,
left: 0,
- width: '100%',
- backgroundColor: '$slate4',
- transition: 'transform 150ms cubic-bezier(0.65, 0, 0.35, 1)',
+ width: "100%",
+ backgroundColor: "$slate4",
+ transition: "transform 150ms cubic-bezier(0.65, 0, 0.35, 1)",
});
type ProgressBarVariants = VariantProps<typeof StyledProgressBar>;
-type ProgressBarPrimitiveProps = React.ComponentProps<typeof ProgressPrimitive.Root>;
-type ProgressBarProps = ProgressBarPrimitiveProps & ProgressBarVariants & { css?: CSS };
+type ProgressBarPrimitiveProps = React.ComponentProps<
+ typeof ProgressPrimitive.Root
+>;
+type ProgressBarProps = ProgressBarPrimitiveProps &
+ ProgressBarVariants & { css?: CSS };
export const ProgressBar = React.forwardRef<
React.ElementRef<typeof StyledProgressBar>,
@@ -86,7 +89,10 @@ export const ProgressBar = React.forwardRef<
return (
<StyledProgressBar {...props} ref={forwardedRef} value={value} max={max}>
- <ProgressBarIndicator style={{ transform: `translateX(${percentage}%)` }} />
+ <ProgressBarIndicator
+ style={{ transform: `translateX(${percentage}%)` }}
+ />
</StyledProgressBar>
);
});
+ProgressBar.displayName = "ProgressBar";
diff --git a/app/shared/design-system/components/radio-card.tsx b/app/shared/design-system/components/radio-card.tsx
index 2cf89be38e..eb9ac1ef13 100644
--- a/app/shared/design-system/components/radio-card.tsx
+++ b/app/shared/design-system/components/radio-card.tsx
@@ -1,69 +1,74 @@
-import React from 'react';
-import { styled, CSS } from '../stitches.config';
-import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
+import React from "react";
+import { styled, CSS } from "../stitches.config";
+import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
export const RadioCardGroup = styled(RadioGroupPrimitive.Root, {
- display: 'block',
+ display: "block",
});
-const StyledRadioButton = styled('div', {
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'center',
- borderRadius: '$round',
+const StyledRadioButton = styled("div", {
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ borderRadius: "$round",
width: 25,
height: 25,
- boxShadow: 'inset 0 0 0 1px $colors$slate7',
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
flexShrink: 0,
- mr: '$3',
+ mr: "$3",
});
-const StyledRadioIndicator = styled('div', {
- borderRadius: '$round',
+const StyledRadioIndicator = styled("div", {
+ borderRadius: "$round",
width: 15,
height: 15,
- backgroundColor: '$blue9',
- transform: 'scale(0)',
+ backgroundColor: "$blue9",
+ transform: "scale(0)",
});
const StyledRadio = styled(RadioGroupPrimitive.Item, {
- all: 'unset',
- boxSizing: 'border-box',
- userSelect: 'none',
- '&::before': {
- boxSizing: 'border-box',
+ all: "unset",
+ boxSizing: "border-box",
+ userSelect: "none",
+ "&::before": {
+ boxSizing: "border-box",
},
- '&::after': {
- boxSizing: 'border-box',
+ "&::after": {
+ boxSizing: "border-box",
},
- display: 'flex',
- alignItems: 'center',
- borderRadius: '$2',
- boxShadow: 'inset 0 0 0 1px $colors$slate7',
- p: '$3',
- '@hover': {
- '&:hover': {
- boxShadow: 'inset 0 0 0 1px $colors$slate8',
+ display: "flex",
+ alignItems: "center",
+ borderRadius: "$2",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
+ p: "$3",
+ "@hover": {
+ "&:hover": {
+ boxShadow: "inset 0 0 0 1px $colors$slate8",
},
},
'&[data-state="checked"]': {
- boxShadow: 'inset 0 0 0 1px $colors$blue8, 0 0 0 1px $colors$blue8 !important',
+ boxShadow:
+ "inset 0 0 0 1px $colors$blue8, 0 0 0 1px $colors$blue8 !important",
[`& ${StyledRadioIndicator}`]: {
- transform: 'scale(1)',
+ transform: "scale(1)",
},
},
});
-type RadioGroupItemPrimitiveProps = React.ComponentProps<typeof RadioGroupPrimitive.Item>;
+type RadioGroupItemPrimitiveProps = React.ComponentProps<
+ typeof RadioGroupPrimitive.Item
+>;
type RadioCardProps = RadioGroupItemPrimitiveProps & { css?: CSS };
-export const RadioCard = React.forwardRef<React.ElementRef<typeof StyledRadio>, RadioCardProps>(
- (props, forwardedRef) => (
- <StyledRadio {...props} ref={forwardedRef}>
- <StyledRadioButton>
- <StyledRadioIndicator />
- </StyledRadioButton>
- {props.children}
- </StyledRadio>
- )
-);
+export const RadioCard = React.forwardRef<
+ React.ElementRef<typeof StyledRadio>,
+ RadioCardProps
+>((props, forwardedRef) => (
+ <StyledRadio {...props} ref={forwardedRef}>
+ <StyledRadioButton>
+ <StyledRadioIndicator />
+ </StyledRadioButton>
+ {props.children}
+ </StyledRadio>
+));
+RadioCard.displayName = "RadioCard";
diff --git a/app/shared/design-system/components/radio.tsx b/app/shared/design-system/components/radio.tsx
index db7048892a..e5c1ec2532 100644
--- a/app/shared/design-system/components/radio.tsx
+++ b/app/shared/design-system/components/radio.tsx
@@ -1,96 +1,101 @@
-import React from 'react';
-import { styled, CSS, VariantProps } from '../stitches.config';
-import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
+import React from "react";
+import { styled, CSS, VariantProps } from "../stitches.config";
+import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
export const RadioGroup = styled(RadioGroupPrimitive.Root, {
- display: 'flex',
+ display: "flex",
});
const StyledIndicator = styled(RadioGroupPrimitive.Indicator, {
- alignItems: 'center',
- display: 'flex',
- height: '100%',
- justifyContent: 'center',
- width: '100%',
- position: 'relative',
- '&::after': {
+ alignItems: "center",
+ display: "flex",
+ height: "100%",
+ justifyContent: "center",
+ width: "100%",
+ position: "relative",
+ "&::after": {
content: '""',
- display: 'block',
- width: '7px',
- height: '7px',
- borderRadius: '50%',
- backgroundColor: '$blue9',
+ display: "block",
+ width: "7px",
+ height: "7px",
+ borderRadius: "50%",
+ backgroundColor: "$blue9",
},
});
const StyledRadio = styled(RadioGroupPrimitive.Item, {
- all: 'unset',
- boxSizing: 'border-box',
- userSelect: 'none',
- '&::before': {
- boxSizing: 'border-box',
+ all: "unset",
+ boxSizing: "border-box",
+ userSelect: "none",
+ "&::before": {
+ boxSizing: "border-box",
},
- '&::after': {
- boxSizing: 'border-box',
+ "&::after": {
+ boxSizing: "border-box",
},
- alignItems: 'center',
- appearance: 'none',
- display: 'inline-flex',
- justifyContent: 'center',
- lineHeight: '1',
- margin: '0',
- outline: 'none',
- padding: '0',
- textDecoration: 'none',
- WebkitTapHighlightColor: 'rgba(0,0,0,0)',
+ alignItems: "center",
+ appearance: "none",
+ display: "inline-flex",
+ justifyContent: "center",
+ lineHeight: "1",
+ margin: "0",
+ outline: "none",
+ padding: "0",
+ textDecoration: "none",
+ WebkitTapHighlightColor: "rgba(0,0,0,0)",
- borderRadius: '50%',
- color: '$hiContrast',
- boxShadow: 'inset 0 0 0 1px $colors$slate7',
- overflow: 'hidden',
- '@hover': {
- '&:hover': {
- boxShadow: 'inset 0 0 0 1px $colors$slate8',
+ borderRadius: "50%",
+ color: "$hiContrast",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
+ overflow: "hidden",
+ "@hover": {
+ "&:hover": {
+ boxShadow: "inset 0 0 0 1px $colors$slate8",
},
},
- '&:focus': {
- outline: 'none',
- borderColor: '$red7',
- boxShadow: 'inset 0 0 0 1px $colors$blue9, 0 0 0 1px $colors$blue9',
+ "&:focus": {
+ outline: "none",
+ borderColor: "$red7",
+ boxShadow: "inset 0 0 0 1px $colors$blue9, 0 0 0 1px $colors$blue9",
},
variants: {
size: {
- '1': {
- width: '$3',
- height: '$3',
+ "1": {
+ width: "$3",
+ height: "$3",
},
- '2': {
- width: '$5',
- height: '$5',
+ "2": {
+ width: "$5",
+ height: "$5",
[`& ${StyledIndicator}`]: {
- '&::after': {
- width: '$3',
- height: '$3',
+ "&::after": {
+ width: "$3",
+ height: "$3",
},
},
},
},
},
defaultVariants: {
- size: '1',
+ size: "1",
},
});
type RadioVariants = VariantProps<typeof StyledRadio>;
-type RadioGroupItemPrimitiveProps = React.ComponentProps<typeof RadioGroupPrimitive.Item>;
+type RadioGroupItemPrimitiveProps = React.ComponentProps<
+ typeof RadioGroupPrimitive.Item
+>;
type RadioProps = RadioGroupItemPrimitiveProps & RadioVariants & { css?: CSS };
-export const Radio = React.forwardRef<React.ElementRef<typeof StyledRadio>, RadioProps>(
- (props, forwardedRef) => (
- <StyledRadio {...props} ref={forwardedRef}>
- <StyledIndicator />
- </StyledRadio>
- )
-);
+export const Radio = React.forwardRef<
+ React.ElementRef<typeof StyledRadio>,
+ RadioProps
+>((props, forwardedRef) => (
+ <StyledRadio {...props} ref={forwardedRef}>
+ <StyledIndicator />
+ </StyledRadio>
+));
+
+Radio.displayName = "Radio";
diff --git a/app/shared/design-system/components/scrollbar.tsx b/app/shared/design-system/components/scrollbar.tsx
index d073415007..3a66b8adfd 100644
--- a/app/shared/design-system/components/scrollbar.tsx
+++ b/app/shared/design-system/components/scrollbar.tsx
@@ -14,7 +14,7 @@ type Vector = {
};
type ScrollAreaProps = {
- children: any;
+ children: JSX.Element;
};
export const ScrollArea = (props: ScrollAreaProps) => {
@@ -105,7 +105,7 @@ export const ScrollArea = (props: ScrollAreaProps) => {
}
/** Unwires the mouse listeners and pops the dragging class off the wrapper */
- function onDragEnd(e: MouseEvent) {
+ function onDragEnd() {
if (contentEl && thumbEl && wrapperEl) {
// Add the dragging class to keep the thumb visible
wrapperEl.classList.remove("is-dragging");
diff --git a/app/shared/design-system/components/select.tsx b/app/shared/design-system/components/select.tsx
index 03553fffa3..d64593ca0c 100644
--- a/app/shared/design-system/components/select.tsx
+++ b/app/shared/design-system/components/select.tsx
@@ -70,5 +70,5 @@ export const Select = React.forwardRef<
<StyledCaretSortIcon />
</SelectWrapper>
));
-
+Select.displayName = "Select";
Select.toString = () => `.${SelectWrapper.className}`;
diff --git a/app/shared/design-system/components/sheet.tsx b/app/shared/design-system/components/sheet.tsx
index fdabcb3fc3..eebf02bc5c 100644
--- a/app/shared/design-system/components/sheet.tsx
+++ b/app/shared/design-system/components/sheet.tsx
@@ -134,6 +134,7 @@ export const SheetContent = React.forwardRef<
</StyledCloseButton>
</StyledContent>
));
+SheetContent.displayName = "SheetContent";
export const SheetTrigger = DialogPrimitive.Trigger;
export const SheetClose = DialogPrimitive.Close;
diff --git a/app/shared/design-system/components/sidebar-tabs.tsx b/app/shared/design-system/components/sidebar-tabs.tsx
index 87ef84feab..66bfa3e450 100644
--- a/app/shared/design-system/components/sidebar-tabs.tsx
+++ b/app/shared/design-system/components/sidebar-tabs.tsx
@@ -63,6 +63,8 @@ export const SidebarTabsList = React.forwardRef<
</>
));
+SidebarTabsList.displayName = "SidebarTabsList";
+
export const SidebarTabsContent = styled(TabsPrimitive.Content, {
flexGrow: 1,
position: "absolute",
diff --git a/app/shared/design-system/components/slider.tsx b/app/shared/design-system/components/slider.tsx
index 4146dc32a9..b0db2ed15b 100644
--- a/app/shared/design-system/components/slider.tsx
+++ b/app/shared/design-system/components/slider.tsx
@@ -1,12 +1,12 @@
-import React from 'react';
-import { styled, CSS } from '../stitches.config';
-import * as SliderPrimitive from '@radix-ui/react-slider';
+import React from "react";
+import { styled, CSS } from "../stitches.config";
+import * as SliderPrimitive from "@radix-ui/react-slider";
const SliderTrack = styled(SliderPrimitive.Track, {
- position: 'relative',
+ position: "relative",
flexGrow: 1,
- backgroundColor: '$slate7',
- borderRadius: '$pill',
+ backgroundColor: "$slate7",
+ borderRadius: "$pill",
'&[data-orientation="horizontal"]': {
height: 2,
},
@@ -17,71 +17,71 @@ const SliderTrack = styled(SliderPrimitive.Track, {
});
const SliderRange = styled(SliderPrimitive.Range, {
- position: 'absolute',
- background: '$blue9',
- borderRadius: 'inherit',
+ position: "absolute",
+ background: "$blue9",
+ borderRadius: "inherit",
'&[data-orientation="horizontal"]': {
- height: '100%',
+ height: "100%",
},
'&[data-orientation="vertical"]': {
- width: '100%',
+ width: "100%",
},
});
const SliderThumb = styled(SliderPrimitive.Thumb, {
- position: 'relative',
- display: 'block',
+ position: "relative",
+ display: "block",
width: 15,
height: 15,
- outline: 'none',
- opacity: '0',
- backgroundColor: 'white',
- boxShadow: '0 0 1px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.15)',
- borderRadius: '$round',
+ outline: "none",
+ opacity: "0",
+ backgroundColor: "white",
+ boxShadow: "0 0 1px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.15)",
+ borderRadius: "$round",
- '&::after': {
+ "&::after": {
content: '""',
- position: 'absolute',
+ position: "absolute",
top: 0,
right: 0,
bottom: 0,
left: 0,
zIndex: -2,
- backgroundColor: 'hsla(0,0%,0%,.035)',
- transform: 'scale(1)',
- borderRadius: '$round',
- transition: 'transform 200ms cubic-bezier(0.22, 1, 0.36, 1)',
+ backgroundColor: "hsla(0,0%,0%,.035)",
+ transform: "scale(1)",
+ borderRadius: "$round",
+ transition: "transform 200ms cubic-bezier(0.22, 1, 0.36, 1)",
},
- '&:focus': {
- '&::after': {
- transform: 'scale(2)',
+ "&:focus": {
+ "&::after": {
+ transform: "scale(2)",
},
},
});
export const StyledSlider = styled(SliderPrimitive.Root, {
- position: 'relative',
- display: 'flex',
- alignItems: 'center',
+ position: "relative",
+ display: "flex",
+ alignItems: "center",
flexShrink: 0,
- userSelect: 'none',
- touchAction: 'none',
+ userSelect: "none",
+ touchAction: "none",
height: 15,
flexGrow: 1,
'&[data-orientation="vertical"]': {
- flexDirection: 'column',
+ flexDirection: "column",
width: 15,
},
- '@hover': {
- '&:hover': {
+ "@hover": {
+ "&:hover": {
[`& ${SliderTrack}`]: {
- backgroundColor: '$slate8',
+ backgroundColor: "$slate8",
},
[`& ${SliderThumb}`]: {
- opacity: '1',
+ opacity: "1",
},
},
},
@@ -90,22 +90,24 @@ export const StyledSlider = styled(SliderPrimitive.Root, {
type SliderPrimitiveProps = React.ComponentProps<typeof SliderPrimitive.Root>;
type SliderProps = SliderPrimitiveProps & { css?: CSS };
-export const Slider = React.forwardRef<React.ElementRef<typeof StyledSlider>, SliderProps>(
- (props, forwardedRef) => {
- const hasRange = Array.isArray(props.defaultValue || (props as any).value);
- const thumbsArray = hasRange
- ? props.defaultValue || (props as any).value
- : [props.defaultValue || (props as any).value];
+export const Slider = React.forwardRef<
+ React.ElementRef<typeof StyledSlider>,
+ SliderProps
+>((props, forwardedRef) => {
+ const hasRange = Array.isArray(props.defaultValue || props.value);
+ const thumbsArray = hasRange
+ ? props.defaultValue || props.value
+ : [props.defaultValue || props.value];
- return (
- <StyledSlider {...props} ref={forwardedRef}>
- <SliderTrack>
- <SliderRange />
- </SliderTrack>
- {thumbsArray.map((_: any, i: number) => (
- <SliderThumb key={i} />
- ))}
- </StyledSlider>
- );
- }
-);
+ return (
+ <StyledSlider {...props} ref={forwardedRef}>
+ <SliderTrack>
+ <SliderRange />
+ </SliderTrack>
+ {thumbsArray?.map((_, i: number) => (
+ <SliderThumb key={i} />
+ ))}
+ </StyledSlider>
+ );
+});
+Slider.displayName = "Slider";
diff --git a/app/shared/design-system/components/switch.tsx b/app/shared/design-system/components/switch.tsx
index 0c027dce0f..8840235949 100644
--- a/app/shared/design-system/components/switch.tsx
+++ b/app/shared/design-system/components/switch.tsx
@@ -1,80 +1,80 @@
-import React from 'react';
-import { styled, VariantProps, CSS } from '../stitches.config';
-import * as SwitchPrimitive from '@radix-ui/react-switch';
+import React from "react";
+import { styled, VariantProps, CSS } from "../stitches.config";
+import * as SwitchPrimitive from "@radix-ui/react-switch";
const StyledThumb = styled(SwitchPrimitive.Thumb, {
- position: 'absolute',
+ position: "absolute",
left: 0,
width: 13,
height: 13,
- backgroundColor: 'white',
- borderRadius: '$round',
- boxShadow: 'rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 1px 2px;',
- transition: 'transform 100ms cubic-bezier(0.22, 1, 0.36, 1)',
- transform: 'translateX(1px)',
- willChange: 'transform',
+ backgroundColor: "white",
+ borderRadius: "$round",
+ boxShadow: "rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 1px 2px;",
+ transition: "transform 100ms cubic-bezier(0.22, 1, 0.36, 1)",
+ transform: "translateX(1px)",
+ willChange: "transform",
'&[data-state="checked"]': {
- transform: 'translateX(11px)',
+ transform: "translateX(11px)",
},
});
const StyledSwitch = styled(SwitchPrimitive.Root, {
- all: 'unset',
- boxSizing: 'border-box',
- userSelect: 'none',
- '&::before': {
- boxSizing: 'border-box',
+ all: "unset",
+ boxSizing: "border-box",
+ userSelect: "none",
+ "&::before": {
+ boxSizing: "border-box",
},
- '&::after': {
- boxSizing: 'border-box',
+ "&::after": {
+ boxSizing: "border-box",
},
// Reset
- alignItems: 'center',
- display: 'inline-flex',
- justifyContent: 'center',
- lineHeight: '1',
- margin: '0',
- outline: 'none',
- WebkitTapHighlightColor: 'rgba(0,0,0,0)',
+ alignItems: "center",
+ display: "inline-flex",
+ justifyContent: "center",
+ lineHeight: "1",
+ margin: "0",
+ outline: "none",
+ WebkitTapHighlightColor: "rgba(0,0,0,0)",
- backgroundColor: '$slate5',
- borderRadius: '$pill',
- position: 'relative',
- '&:focus': {
- boxShadow: '0 0 0 2px $colors$slate8',
+ backgroundColor: "$slate5",
+ borderRadius: "$pill",
+ position: "relative",
+ "&:focus": {
+ boxShadow: "0 0 0 2px $colors$slate8",
},
'&[data-state="checked"]': {
- backgroundColor: '$blue9',
- '&:focus': {
- boxShadow: '0 0 0 2px $colors$blue8',
+ backgroundColor: "$blue9",
+ "&:focus": {
+ boxShadow: "0 0 0 2px $colors$blue8",
},
},
variants: {
size: {
- '1': {
- width: '$5',
- height: '$3',
+ "1": {
+ width: "$5",
+ height: "$3",
},
- '2': {
- width: '$7',
- height: '$5',
+ "2": {
+ width: "$7",
+ height: "$5",
[`& ${StyledThumb}`]: {
width: 21,
height: 21,
- transform: 'translateX(2px)',
+ transform: "translateX(2px)",
'&[data-state="checked"]': {
- transform: 'translateX(22px)',
+ transform: "translateX(22px)",
},
},
},
},
},
defaultVariants: {
- size: '1',
+ size: "1",
},
});
@@ -82,10 +82,13 @@ type SwitchVariants = VariantProps<typeof StyledSwitch>;
type SwitchPrimitiveProps = React.ComponentProps<typeof SwitchPrimitive.Root>;
type SwitchProps = SwitchPrimitiveProps & SwitchVariants & { css?: CSS };
-export const Switch = React.forwardRef<React.ElementRef<typeof StyledSwitch>, SwitchProps>(
- (props, forwardedRef) => (
- <StyledSwitch {...props} ref={forwardedRef}>
- <StyledThumb />
- </StyledSwitch>
- )
-);
+export const Switch = React.forwardRef<
+ React.ElementRef<typeof StyledSwitch>,
+ SwitchProps
+>((props, forwardedRef) => (
+ <StyledSwitch {...props} ref={forwardedRef}>
+ <StyledThumb />
+ </StyledSwitch>
+));
+
+Switch.displayName = "Switch";
diff --git a/app/shared/design-system/components/tabs.tsx b/app/shared/design-system/components/tabs.tsx
index 397895b854..8936b510ca 100644
--- a/app/shared/design-system/components/tabs.tsx
+++ b/app/shared/design-system/components/tabs.tsx
@@ -78,6 +78,8 @@ export const TabsList = React.forwardRef<
</>
));
+TabsList.displayName = "TabsList";
+
export const TabsContent = styled(TabsPrimitive.Content, {
flexGrow: 1,
"&:focus": {
diff --git a/app/shared/design-system/components/toggle-group.tsx b/app/shared/design-system/components/toggle-group.tsx
index 7b9aaaa0e4..d3b86afd09 100644
--- a/app/shared/design-system/components/toggle-group.tsx
+++ b/app/shared/design-system/components/toggle-group.tsx
@@ -1,5 +1,4 @@
import { styled } from "../stitches.config";
-import { violet, blackA, mauve } from "@radix-ui/colors";
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
export const Root = styled(ToggleGroupPrimitive.Root, {
diff --git a/app/shared/design-system/components/tooltip.tsx b/app/shared/design-system/components/tooltip.tsx
index c97e09fa91..c3086585a4 100644
--- a/app/shared/design-system/components/tooltip.tsx
+++ b/app/shared/design-system/components/tooltip.tsx
@@ -55,7 +55,7 @@ export const Tooltip = ({
as="p"
css={{
color: "$loContrast",
- lineHeight: multiline ? "20px" : (undefined as any),
+ lineHeight: multiline ? "20px" : undefined,
}}
>
{content}
diff --git a/app/shared/design-system/components/verified-badge.tsx b/app/shared/design-system/components/verified-badge.tsx
index dc5a14de97..31a5ad7ca0 100644
--- a/app/shared/design-system/components/verified-badge.tsx
+++ b/app/shared/design-system/components/verified-badge.tsx
@@ -26,3 +26,5 @@ export const VerifiedBadge = React.forwardRef<
<CheckIcon />
</StyledVerifiedBadge>
));
+
+VerifiedBadge.displayName = "VerifiedBadge";
diff --git a/app/shared/icons/brush.tsx b/app/shared/icons/brush.tsx
index e7e82b6047..089838dc9c 100644
--- a/app/shared/icons/brush.tsx
+++ b/app/shared/icons/brush.tsx
@@ -23,3 +23,5 @@ export const BrushIcon = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+
+BrushIcon.displayName = "BrushIcon";
diff --git a/app/shared/icons/form.tsx b/app/shared/icons/form.tsx
index 0adfd25588..1a72307296 100644
--- a/app/shared/icons/form.tsx
+++ b/app/shared/icons/form.tsx
@@ -23,3 +23,5 @@ export const FormIcon = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+
+FormIcon.displayName = "FormIcon";
diff --git a/app/shared/icons/list-nested.tsx b/app/shared/icons/list-nested.tsx
index 90c2b675ad..de7dae339a 100644
--- a/app/shared/icons/list-nested.tsx
+++ b/app/shared/icons/list-nested.tsx
@@ -23,3 +23,5 @@ export const ListNestedIcon = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+
+ListNestedIcon.displayName = "ListNestedIcon";
diff --git a/app/shared/style-panel-configs/configs.ts b/app/shared/style-panel-configs/configs.ts
index 464e9a1028..12b3eb757c 100644
--- a/app/shared/style-panel-configs/configs.ts
+++ b/app/shared/style-panel-configs/configs.ts
@@ -26,7 +26,7 @@ const getUiType = (property: StyleProperty): UiType => {
const spacing = categories.spacing
.properties as unknown as Array<StyleProperty>;
if (spacing.includes(property)) {
- return "SpacingWidget";
+ return "Spacing";
}
return "TextFieldWithAutocomplete";
diff --git a/app/shared/style-panel-configs/types.ts b/app/shared/style-panel-configs/types.ts
index 4d02551403..5cbf1d2728 100644
--- a/app/shared/style-panel-configs/types.ts
+++ b/app/shared/style-panel-configs/types.ts
@@ -7,7 +7,7 @@ type BaseStyleConfig = {
};
export type UiType =
- | "SpacingWidget"
+ | "Spacing"
| "Select"
| "ToggleGroup"
| "TextFieldWithAutocomplete"
diff --git a/package.json b/package.json
index 1bc85fc12f..1af7438b11 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
"dev": "node -r dotenv/config node_modules/.bin/remix dev",
"postinstall": "remix setup node",
"typecheck": "tsc -b",
+ "lint": "eslint . --ext .ts,.tsx",
"test": "jest"
},
"dependencies": {
@@ -81,11 +82,16 @@
"@types/react": "^17.0.24",
"@types/react-color": "^3.0.6",
"@types/react-dom": "^17.0.9",
+ "@types/w3c-css-typed-object-model-level-1": "^20180410.0.4",
+ "@typescript-eslint/eslint-plugin": "^5.15.0",
+ "@typescript-eslint/parser": "^5.15.0",
"css-tree": "^2.0.4",
"dotenv": "^16.0.0",
"esbuild-jest": "^0.5.0",
"esbuild-node-externals": "^1.4.1",
"esbuild-node-loader": "^0.8.0",
+ "eslint": "^8.11.0",
+ "eslint-plugin-react": "^7.29.4",
"jest": "^27.5.1",
"typescript": "^4.1.2"
},
diff --git a/yarn.lock b/yarn.lock
index 92f0198d82..8352d42c50 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -333,11 +333,40 @@
escape-string-regexp "^4.0.0"
rollup-plugin-node-polyfills "^0.2.1"
+"@eslint/eslintrc@^1.2.1":
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.2.1.tgz#8b5e1c49f4077235516bc9ec7d41378c0f69b8c6"
+ integrity sha512-bxvbYnBPN1Gibwyp6NrpnFzA3YtRL3BBAyEAFVIpNTm2Rn4Vy87GA5M4aSn3InRrlsbX5N0GW7XIx+U4SAEKdQ==
+ dependencies:
+ ajv "^6.12.4"
+ debug "^4.3.2"
+ espree "^9.3.1"
+ globals "^13.9.0"
+ ignore "^5.2.0"
+ import-fresh "^3.2.1"
+ js-yaml "^4.1.0"
+ minimatch "^3.0.4"
+ strip-json-comments "^3.1.1"
+
"@gar/promisify@^1.0.1":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.2.tgz#30aa825f11d438671d585bd44e7fd564535fc210"
integrity sha512-82cpyJyKRoQoRi+14ibCeGPu0CwypgtBAdBhq1WfvagpCZNKqwXbKwXllYSMG91DhmG4jt9gN8eP6lGOtozuaw==
+"@humanwhocodes/config-array@^0.9.2":
+ version "0.9.5"
+ resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.5.tgz#2cbaf9a89460da24b5ca6531b8bbfc23e1df50c7"
+ integrity sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==
+ dependencies:
+ "@humanwhocodes/object-schema" "^1.2.1"
+ debug "^4.1.1"
+ minimatch "^3.0.4"
+
+"@humanwhocodes/object-schema@^1.2.1":
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45"
+ integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
+
"@icons/material@^0.2.4":
version "0.2.4"
resolved "https://registry.yarnpkg.com/@icons/material/-/material-0.2.4.tgz#e90c9f71768b3736e76d7dd6783fc6c2afa88bc8"
@@ -578,6 +607,27 @@
"@jridgewell/resolve-uri" "^3.0.3"
"@jridgewell/sourcemap-codec" "^1.4.10"
+"@nodelib/[email protected]":
+ version "2.1.5"
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
+ integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==
+ dependencies:
+ "@nodelib/fs.stat" "2.0.5"
+ run-parallel "^1.1.9"
+
+"@nodelib/[email protected]", "@nodelib/fs.stat@^2.0.2":
+ version "2.0.5"
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b"
+ integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==
+
+"@nodelib/fs.walk@^1.2.3":
+ version "1.2.8"
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a"
+ integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==
+ dependencies:
+ "@nodelib/fs.scandir" "2.1.5"
+ fastq "^1.6.0"
+
"@npmcli/fs@^1.0.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-1.1.0.tgz#bec1d1b89c170d40e1b73ad6c943b0b75e7d2951"
@@ -1482,6 +1532,11 @@
resolved "https://registry.yarnpkg.com/@types/js-cookie/-/js-cookie-2.2.7.tgz#226a9e31680835a6188e887f3988e60c04d3f6a3"
integrity sha512-aLkWa0C0vO5b4Sr798E26QgOkss68Un0bLjs7u9qxzPT5CG+8DuNTffWES58YzJs3hrVAOs1wonycqEBqNJubA==
+"@types/json-schema@^7.0.9":
+ version "7.0.9"
+ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d"
+ integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==
+
"@types/keyv@*":
version "3.1.3"
resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.3.tgz#1c9aae32872ec1f20dcdaee89a9f3ba88f465e41"
@@ -1639,6 +1694,11 @@
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d"
integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==
+"@types/w3c-css-typed-object-model-level-1@^20180410.0.4":
+ version "20180410.0.4"
+ resolved "https://registry.yarnpkg.com/@types/w3c-css-typed-object-model-level-1/-/w3c-css-typed-object-model-level-1-20180410.0.4.tgz#76317f9c52140d731636d909830535b6484a3396"
+ integrity sha512-qyX4FlHFRsCvXdmrJGyWtV/10nOMsoHaIMqINtMf2bWaOLduHU5Y69NMQwP7hzJOduSBB7t50tCW6AA6VATfCQ==
+
"@types/yargs-parser@*":
version "20.2.1"
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-20.2.1.tgz#3b9ce2489919d9e4fea439b76916abc34b2df129"
@@ -1658,6 +1718,86 @@
dependencies:
"@types/yargs-parser" "*"
+"@typescript-eslint/eslint-plugin@^5.15.0":
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.15.0.tgz#c28ef7f2e688066db0b6a9d95fb74185c114fb9a"
+ integrity sha512-u6Db5JfF0Esn3tiAKELvoU5TpXVSkOpZ78cEGn/wXtT2RVqs2vkt4ge6N8cRCyw7YVKhmmLDbwI2pg92mlv7cA==
+ dependencies:
+ "@typescript-eslint/scope-manager" "5.15.0"
+ "@typescript-eslint/type-utils" "5.15.0"
+ "@typescript-eslint/utils" "5.15.0"
+ debug "^4.3.2"
+ functional-red-black-tree "^1.0.1"
+ ignore "^5.1.8"
+ regexpp "^3.2.0"
+ semver "^7.3.5"
+ tsutils "^3.21.0"
+
+"@typescript-eslint/parser@^5.15.0":
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.15.0.tgz#95f603f8fe6eca7952a99bfeef9b85992972e728"
+ integrity sha512-NGAYP/+RDM2sVfmKiKOCgJYPstAO40vPAgACoWPO/+yoYKSgAXIFaBKsV8P0Cc7fwKgvj27SjRNX4L7f4/jCKQ==
+ dependencies:
+ "@typescript-eslint/scope-manager" "5.15.0"
+ "@typescript-eslint/types" "5.15.0"
+ "@typescript-eslint/typescript-estree" "5.15.0"
+ debug "^4.3.2"
+
+"@typescript-eslint/[email protected]":
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.15.0.tgz#d97afab5e0abf4018d1289bd711be21676cdd0ee"
+ integrity sha512-EFiZcSKrHh4kWk0pZaa+YNJosvKE50EnmN4IfgjkA3bTHElPtYcd2U37QQkNTqwMCS7LXeDeZzEqnsOH8chjSg==
+ dependencies:
+ "@typescript-eslint/types" "5.15.0"
+ "@typescript-eslint/visitor-keys" "5.15.0"
+
+"@typescript-eslint/[email protected]":
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.15.0.tgz#d2c02eb2bdf54d0a645ba3a173ceda78346cf248"
+ integrity sha512-KGeDoEQ7gHieLydujGEFLyLofipe9PIzfvA/41urz4hv+xVxPEbmMQonKSynZ0Ks2xDhJQ4VYjB3DnRiywvKDA==
+ dependencies:
+ "@typescript-eslint/utils" "5.15.0"
+ debug "^4.3.2"
+ tsutils "^3.21.0"
+
+"@typescript-eslint/[email protected]":
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.15.0.tgz#c7bdd103843b1abae97b5518219d3e2a0d79a501"
+ integrity sha512-yEiTN4MDy23vvsIksrShjNwQl2vl6kJeG9YkVJXjXZnkJElzVK8nfPsWKYxcsGWG8GhurYXP4/KGj3aZAxbeOA==
+
+"@typescript-eslint/[email protected]":
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.15.0.tgz#81513a742a9c657587ad1ddbca88e76c6efb0aac"
+ integrity sha512-Hb0e3dGc35b75xLzixM3cSbG1sSbrTBQDfIScqdyvrfJZVEi4XWAT+UL/HMxEdrJNB8Yk28SKxPLtAhfCbBInA==
+ dependencies:
+ "@typescript-eslint/types" "5.15.0"
+ "@typescript-eslint/visitor-keys" "5.15.0"
+ debug "^4.3.2"
+ globby "^11.0.4"
+ is-glob "^4.0.3"
+ semver "^7.3.5"
+ tsutils "^3.21.0"
+
+"@typescript-eslint/[email protected]":
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.15.0.tgz#468510a0974d3ced8342f37e6c662778c277f136"
+ integrity sha512-081rWu2IPKOgTOhHUk/QfxuFog8m4wxW43sXNOMSCdh578tGJ1PAaWPsj42LOa7pguh173tNlMigsbrHvh/mtA==
+ dependencies:
+ "@types/json-schema" "^7.0.9"
+ "@typescript-eslint/scope-manager" "5.15.0"
+ "@typescript-eslint/types" "5.15.0"
+ "@typescript-eslint/typescript-estree" "5.15.0"
+ eslint-scope "^5.1.1"
+ eslint-utils "^3.0.0"
+
+"@typescript-eslint/[email protected]":
+ version "5.15.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.15.0.tgz#5669739fbf516df060f978be6a6dce75855a8027"
+ integrity sha512-+vX5FKtgvyHbmIJdxMJ2jKm9z2BIlXJiuewI8dsDYMp5LzPUcuTT78Ya5iwvQg3VqSVdmxyM8Anj1Jeq7733ZQ==
+ dependencies:
+ "@typescript-eslint/types" "5.15.0"
+ eslint-visitor-keys "^3.0.0"
+
"@web-std/blob@^3.0.3":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@web-std/blob/-/blob-3.0.3.tgz#9c54f106dd6bf5d48dc6f9019011be9437769509"
@@ -1729,7 +1869,7 @@ acorn-globals@^6.0.0:
acorn "^7.1.1"
acorn-walk "^7.1.1"
-acorn-jsx@^5.0.0:
+acorn-jsx@^5.0.0, acorn-jsx@^5.3.1:
version "5.3.2"
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
@@ -1744,7 +1884,7 @@ acorn@^7.1.1:
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
-acorn@^8.0.0, acorn@^8.2.4:
+acorn@^8.0.0, acorn@^8.2.4, acorn@^8.7.0:
version "8.7.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf"
integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==
@@ -1764,6 +1904,16 @@ aggregate-error@^3.0.0:
clean-stack "^2.0.0"
indent-string "^4.0.0"
+ajv@^6.10.0, ajv@^6.12.4:
+ version "6.12.6"
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
+ integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
+ dependencies:
+ fast-deep-equal "^3.1.1"
+ fast-json-stable-stringify "^2.0.0"
+ json-schema-traverse "^0.4.1"
+ uri-js "^4.2.2"
+
ansi-escapes@^4.2.1:
version "4.3.2"
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e"
@@ -1850,11 +2000,36 @@ [email protected]:
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=
+array-includes@^3.1.3, array-includes@^3.1.4:
+ version "3.1.4"
+ resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.4.tgz#f5b493162c760f3539631f005ba2bb46acb45ba9"
+ integrity sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+ get-intrinsic "^1.1.1"
+ is-string "^1.0.7"
+
+array-union@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"
+ integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==
+
array-unique@^0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428"
integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=
+array.prototype.flatmap@^1.2.5:
+ version "1.2.5"
+ resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.5.tgz#908dc82d8a406930fdf38598d51e7411d18d4446"
+ integrity sha512-08u6rVyi1Lj7oqWbS9nUxliETrtIROT4XGTA4D/LWGten6E3ocm7cy9SIrmNHOL5XVbVuckUp3X6Xyg8/zpvHA==
+ dependencies:
+ call-bind "^1.0.0"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.0"
+
arrify@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
@@ -2491,7 +2666,7 @@ cross-spawn@^6.0.0:
shebang-command "^1.2.0"
which "^1.2.9"
-cross-spawn@^7.0.3:
+cross-spawn@^7.0.2, cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
@@ -2575,7 +2750,7 @@ [email protected], debug@^2.2.0, debug@^2.3.3:
dependencies:
ms "2.0.0"
-debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1:
+debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2:
version "4.3.3"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664"
integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==
@@ -2624,7 +2799,7 @@ dedent@^0.7.0:
resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"
integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=
-deep-is@~0.1.3:
+deep-is@^0.1.3, deep-is@~0.1.3:
version "0.1.4"
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==
@@ -2720,6 +2895,13 @@ diff@^5.0.0:
resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b"
integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==
+dir-glob@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"
+ integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==
+ dependencies:
+ path-type "^4.0.0"
+
version "14.0.1"
resolved "https://registry.yarnpkg.com/dnd-core/-/dnd-core-14.0.1.tgz#76d000e41c494983210fb20a48b835f81a203c2e"
@@ -2738,6 +2920,20 @@ [email protected]:
"@react-dnd/invariant" "3.0.0"
redux "^4.1.1"
+doctrine@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
+ integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==
+ dependencies:
+ esutils "^2.0.2"
+
+doctrine@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961"
+ integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==
+ dependencies:
+ esutils "^2.0.2"
+
domexception@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304"
@@ -2801,7 +2997,7 @@ error-stack-parser@^2.0.6:
dependencies:
stackframe "^1.1.1"
-es-abstract@^1.18.5:
+es-abstract@^1.18.5, es-abstract@^1.19.0, es-abstract@^1.19.1:
version "1.19.1"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.19.1.tgz#d4885796876916959de78edaa0df456627115ec3"
integrity sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==
@@ -3145,12 +3341,134 @@ escodegen@^2.0.0:
optionalDependencies:
source-map "~0.6.1"
+eslint-plugin-react@^7.29.4:
+ version "7.29.4"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.29.4.tgz#4717de5227f55f3801a5fd51a16a4fa22b5914d2"
+ integrity sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ==
+ dependencies:
+ array-includes "^3.1.4"
+ array.prototype.flatmap "^1.2.5"
+ doctrine "^2.1.0"
+ estraverse "^5.3.0"
+ jsx-ast-utils "^2.4.1 || ^3.0.0"
+ minimatch "^3.1.2"
+ object.entries "^1.1.5"
+ object.fromentries "^2.0.5"
+ object.hasown "^1.1.0"
+ object.values "^1.1.5"
+ prop-types "^15.8.1"
+ resolve "^2.0.0-next.3"
+ semver "^6.3.0"
+ string.prototype.matchall "^4.0.6"
+
+eslint-scope@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
+ integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==
+ dependencies:
+ esrecurse "^4.3.0"
+ estraverse "^4.1.1"
+
+eslint-scope@^7.1.1:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642"
+ integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==
+ dependencies:
+ esrecurse "^4.3.0"
+ estraverse "^5.2.0"
+
+eslint-utils@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672"
+ integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==
+ dependencies:
+ eslint-visitor-keys "^2.0.0"
+
+eslint-visitor-keys@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
+ integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
+
+eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.3.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
+ integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
+
+eslint@^8.11.0:
+ version "8.11.0"
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.11.0.tgz#88b91cfba1356fc10bb9eb592958457dfe09fb37"
+ integrity sha512-/KRpd9mIRg2raGxHRGwW9ZywYNAClZrHjdueHcrVDuO3a6bj83eoTirCCk0M0yPwOjWYKHwRVRid+xK4F/GHgA==
+ dependencies:
+ "@eslint/eslintrc" "^1.2.1"
+ "@humanwhocodes/config-array" "^0.9.2"
+ ajv "^6.10.0"
+ chalk "^4.0.0"
+ cross-spawn "^7.0.2"
+ debug "^4.3.2"
+ doctrine "^3.0.0"
+ escape-string-regexp "^4.0.0"
+ eslint-scope "^7.1.1"
+ eslint-utils "^3.0.0"
+ eslint-visitor-keys "^3.3.0"
+ espree "^9.3.1"
+ esquery "^1.4.0"
+ esutils "^2.0.2"
+ fast-deep-equal "^3.1.3"
+ file-entry-cache "^6.0.1"
+ functional-red-black-tree "^1.0.1"
+ glob-parent "^6.0.1"
+ globals "^13.6.0"
+ ignore "^5.2.0"
+ import-fresh "^3.0.0"
+ imurmurhash "^0.1.4"
+ is-glob "^4.0.0"
+ js-yaml "^4.1.0"
+ json-stable-stringify-without-jsonify "^1.0.1"
+ levn "^0.4.1"
+ lodash.merge "^4.6.2"
+ minimatch "^3.0.4"
+ natural-compare "^1.4.0"
+ optionator "^0.9.1"
+ regexpp "^3.2.0"
+ strip-ansi "^6.0.1"
+ strip-json-comments "^3.1.0"
+ text-table "^0.2.0"
+ v8-compile-cache "^2.0.3"
+
+espree@^9.3.1:
+ version "9.3.1"
+ resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.1.tgz#8793b4bc27ea4c778c19908e0719e7b8f4115bcd"
+ integrity sha512-bvdyLmJMfwkV3NCRl5ZhJf22zBFo1y8bYh3VYb+bfzqNB4Je68P2sSuXyuFquzWLebHpNd2/d5uv7yoP9ISnGQ==
+ dependencies:
+ acorn "^8.7.0"
+ acorn-jsx "^5.3.1"
+ eslint-visitor-keys "^3.3.0"
+
esprima@^4.0.0, esprima@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
-estraverse@^5.2.0:
+esquery@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5"
+ integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==
+ dependencies:
+ estraverse "^5.1.0"
+
+esrecurse@^4.3.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921"
+ integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==
+ dependencies:
+ estraverse "^5.2.0"
+
+estraverse@^4.1.1:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
+ integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
+
+estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
@@ -3362,17 +3680,28 @@ extglob@^2.0.4:
snapdragon "^0.8.1"
to-regex "^3.0.1"
-fast-deep-equal@^3.1.3:
+fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
+fast-glob@^3.2.9:
+ version "3.2.11"
+ resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9"
+ integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==
+ dependencies:
+ "@nodelib/fs.stat" "^2.0.2"
+ "@nodelib/fs.walk" "^1.2.3"
+ glob-parent "^5.1.2"
+ merge2 "^1.3.0"
+ micromatch "^4.0.4"
+
fast-json-stable-stringify@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
-fast-levenshtein@~2.0.6:
+fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
@@ -3387,6 +3716,13 @@ fastest-stable-stringify@^2.0.2:
resolved "https://registry.yarnpkg.com/fastest-stable-stringify/-/fastest-stable-stringify-2.0.2.tgz#3757a6774f6ec8de40c4e86ec28ea02417214c76"
integrity sha512-bijHueCGd0LqqNK9b5oCMHc0MluJAx0cwqASgbWMvkO01lCYgIhacVRLcaDz3QnyYIRNJRDwMb41VuT6pHJ91Q==
+fastq@^1.6.0:
+ version "1.13.0"
+ resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c"
+ integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==
+ dependencies:
+ reusify "^1.0.4"
+
fault@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/fault/-/fault-2.0.1.tgz#d47ca9f37ca26e4bd38374a7c500b5a384755b6c"
@@ -3409,6 +3745,13 @@ fetch-blob@^3.1.2, fetch-blob@^3.1.4:
node-domexception "^1.0.0"
web-streams-polyfill "^3.0.3"
+file-entry-cache@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027"
+ integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==
+ dependencies:
+ flat-cache "^3.0.4"
+
version "1.0.0"
resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
@@ -3460,6 +3803,19 @@ find-up@^4.0.0, find-up@^4.1.0:
locate-path "^5.0.0"
path-exists "^4.0.0"
+flat-cache@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11"
+ integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==
+ dependencies:
+ flatted "^3.1.0"
+ rimraf "^3.0.2"
+
+flatted@^3.1.0:
+ version "3.2.5"
+ resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.5.tgz#76c8584f4fc843db64702a6bd04ab7a8bd666da3"
+ integrity sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==
+
for-in@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
@@ -3548,6 +3904,11 @@ function-bind@^1.1.1:
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
+functional-red-black-tree@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
+ integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
+
gensync@^1.0.0-beta.2:
version "1.0.0-beta.2"
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
@@ -3614,13 +3975,20 @@ get-value@^2.0.3, get-value@^2.0.6:
resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=
-glob-parent@~5.1.2:
+glob-parent@^5.1.2, glob-parent@~5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
dependencies:
is-glob "^4.0.1"
+glob-parent@^6.0.1:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
+ integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
+ dependencies:
+ is-glob "^4.0.3"
+
glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4:
version "7.2.0"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
@@ -3638,6 +4006,25 @@ globals@^11.1.0:
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
+globals@^13.6.0, globals@^13.9.0:
+ version "13.12.1"
+ resolved "https://registry.yarnpkg.com/globals/-/globals-13.12.1.tgz#ec206be932e6c77236677127577aa8e50bf1c5cb"
+ integrity sha512-317dFlgY2pdJZ9rspXDks7073GpDmXdfbM3vYYp0HAMKGDh1FfWPleI2ljVNLQX5M5lXcAslTcPTrOrMEFOjyw==
+ dependencies:
+ type-fest "^0.20.2"
+
+globby@^11.0.4:
+ version "11.1.0"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
+ integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
+ dependencies:
+ array-union "^2.1.0"
+ dir-glob "^3.0.1"
+ fast-glob "^3.2.9"
+ ignore "^5.2.0"
+ merge2 "^1.4.1"
+ slash "^3.0.0"
+
got@^11.0.0:
version "11.8.3"
resolved "https://registry.yarnpkg.com/got/-/got-11.8.3.tgz#f496c8fdda5d729a90b4905d2b07dbd148170770"
@@ -3856,11 +4243,24 @@ [email protected]:
dependencies:
safer-buffer ">= 2.1.2 < 3"
+ignore@^5.1.8, ignore@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a"
+ integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==
+
immer@^9.0.12:
version "9.0.12"
resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.12.tgz#2d33ddf3ee1d247deab9d707ca472c8c942a0f20"
integrity sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA==
+import-fresh@^3.0.0, import-fresh@^3.2.1:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
+ integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
+ dependencies:
+ parent-module "^1.0.0"
+ resolve-from "^4.0.0"
+
import-local@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4"
@@ -4014,7 +4414,7 @@ is-ci@^2.0.0:
dependencies:
ci-info "^2.0.0"
-is-core-module@^2.8.1:
+is-core-module@^2.2.0, is-core-module@^2.8.1:
version "2.8.1"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.1.tgz#f59fdfca701d5879d0a6b100a40aa1560ce27211"
integrity sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==
@@ -4099,7 +4499,7 @@ is-generator-function@^1.0.7:
dependencies:
has-tostringtag "^1.0.0"
-is-glob@^4.0.1, is-glob@~4.0.1:
+is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
version "4.0.3"
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
@@ -4776,7 +5176,7 @@ js-yaml@^3.13.1:
argparse "^1.0.7"
esprima "^4.0.0"
-js-yaml@^4.0.0:
+js-yaml@^4.0.0, js-yaml@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
@@ -4836,6 +5236,16 @@ json-parse-even-better-errors@^2.3.0:
resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d"
integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
+json-schema-traverse@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
+ integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
+
+json-stable-stringify-without-jsonify@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
+ integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=
+
json5@^2.1.2:
version "2.2.0"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3"
@@ -4852,6 +5262,14 @@ jsonfile@^6.0.1:
optionalDependencies:
graceful-fs "^4.1.6"
+"jsx-ast-utils@^2.4.1 || ^3.0.0":
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.1.tgz#720b97bfe7d901b927d87c3773637ae8ea48781b"
+ integrity sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA==
+ dependencies:
+ array-includes "^3.1.3"
+ object.assign "^4.1.2"
+
keyv@^4.0.0:
version "4.0.5"
resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.0.5.tgz#bb12b467aba372fab2a44d4420c00d3c4ebd484c"
@@ -4898,6 +5316,14 @@ leven@^3.1.0:
resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2"
integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==
+levn@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade"
+ integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==
+ dependencies:
+ prelude-ls "^1.2.1"
+ type-check "~0.4.0"
+
levn@~0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee"
@@ -5205,6 +5631,11 @@ merge-stream@^2.0.0:
resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"
integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==
+merge2@^1.3.0, merge2@^1.4.1:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
+ integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
+
methods@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
@@ -5574,6 +6005,13 @@ minimatch@^3.0.4:
dependencies:
brace-expansion "^1.1.7"
+minimatch@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
+ integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
+ dependencies:
+ brace-expansion "^1.1.7"
+
version "4.1.0"
resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619"
@@ -5847,6 +6285,32 @@ object.assign@^4.1.0, object.assign@^4.1.2:
has-symbols "^1.0.1"
object-keys "^1.1.1"
+object.entries@^1.1.5:
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861"
+ integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+
+object.fromentries@^2.0.5:
+ version "2.0.5"
+ resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251"
+ integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+
+object.hasown@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.0.tgz#7232ed266f34d197d15cac5880232f7a4790afe5"
+ integrity sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==
+ dependencies:
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+
object.pick@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747"
@@ -5854,6 +6318,15 @@ object.pick@^1.3.0:
dependencies:
isobject "^3.0.1"
+object.values@^1.1.5:
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac"
+ integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+
on-finished@~2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"
@@ -5892,6 +6365,18 @@ optionator@^0.8.1:
type-check "~0.3.2"
word-wrap "~1.2.3"
+optionator@^0.9.1:
+ version "0.9.1"
+ resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499"
+ integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==
+ dependencies:
+ deep-is "^0.1.3"
+ fast-levenshtein "^2.0.6"
+ levn "^0.4.1"
+ prelude-ls "^1.2.1"
+ type-check "^0.4.0"
+ word-wrap "^1.2.3"
+
p-cancelable@^2.0.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.1.tgz#aab7fbd416582fa32a3db49859c122487c5ed2cf"
@@ -5942,6 +6427,13 @@ p-try@^2.0.0:
resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
+parent-module@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
+ integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
+ dependencies:
+ callsites "^3.0.0"
+
parse-entities@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-4.0.0.tgz#f67c856d4e3fe19b1a445c3fabe78dcdc1053eeb"
@@ -6006,7 +6498,7 @@ path-key@^3.0.0, path-key@^3.1.0:
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
-path-parse@^1.0.7:
+path-parse@^1.0.6, path-parse@^1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
@@ -6016,6 +6508,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=
+path-type@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
+ integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
+
periscopic@^3.0.0:
version "3.0.4"
resolved "https://registry.yarnpkg.com/periscopic/-/periscopic-3.0.4.tgz#b3fbed0d1bc844976b977173ca2cd4a0ef4fa8d1"
@@ -6051,6 +6548,11 @@ posix-character-classes@^0.1.0:
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=
+prelude-ls@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
+ integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
+
prelude-ls@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
@@ -6092,7 +6594,7 @@ prompts@^2.0.1:
kleur "^3.0.3"
sisteransi "^1.0.5"
-prop-types@^15.5.10:
+prop-types@^15.5.10, prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
@@ -6127,7 +6629,7 @@ pump@^3.0.0:
end-of-stream "^1.1.0"
once "^1.3.1"
-punycode@^2.1.1:
+punycode@^2.1.0, punycode@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
@@ -6137,6 +6639,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.6.tgz#26ed3c8243a431b2924aca84cc90471f35d5a0ee"
integrity sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==
+queue-microtask@^1.2.2:
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
+ integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
+
quick-lru@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f"
@@ -6377,6 +6884,19 @@ regex-not@^1.0.0, regex-not@^1.0.2:
extend-shallow "^3.0.2"
safe-regex "^1.1.0"
+regexp.prototype.flags@^1.3.1:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz#b3f4c0059af9e47eca9f3f660e51d81307e72307"
+ integrity sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+
+regexpp@^3.2.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2"
+ integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==
+
remark-frontmatter@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/remark-frontmatter/-/remark-frontmatter-4.0.1.tgz#84560f7ccef114ef076d3d3735be6d69f8922309"
@@ -6460,6 +6980,11 @@ resolve-cwd@^3.0.0:
dependencies:
resolve-from "^5.0.0"
+resolve-from@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
+ integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
+
resolve-from@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69"
@@ -6484,6 +7009,14 @@ resolve@^1.10.0, resolve@^1.20.0:
path-parse "^1.0.7"
supports-preserve-symlinks-flag "^1.0.0"
+resolve@^2.0.0-next.3:
+ version "2.0.0-next.3"
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.3.tgz#d41016293d4a8586a39ca5d9b5f15cbea1f55e46"
+ integrity sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==
+ dependencies:
+ is-core-module "^2.2.0"
+ path-parse "^1.0.6"
+
responselike@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.0.tgz#26391bcc3174f750f9a79eacc40a12a5c42d7723"
@@ -6496,6 +7029,11 @@ ret@~0.1.10:
resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==
+reusify@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
+ integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
+
rimraf@^3.0.0, rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
@@ -6538,6 +7076,13 @@ rtl-css-js@^1.14.0:
dependencies:
"@babel/runtime" "^7.1.2"
+run-parallel@^1.1.9:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
+ integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==
+ dependencies:
+ queue-microtask "^1.2.2"
+
sade@^1.7.3:
version "1.8.1"
resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701"
@@ -6931,6 +7476,20 @@ string-width@^4.1.0, string-width@^4.2.0:
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"
+string.prototype.matchall@^4.0.6:
+ version "4.0.6"
+ resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.6.tgz#5abb5dabc94c7b0ea2380f65ba610b3a544b15fa"
+ integrity sha512-6WgDX8HmQqvEd7J+G6VtAahhsQIssiZ8zl7zKh1VDMFyL3hRTJP4FTNA3RbIp2TOQ9AYNDcc7e3fH0Qbup+DBg==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+ get-intrinsic "^1.1.1"
+ has-symbols "^1.0.2"
+ internal-slot "^1.0.3"
+ regexp.prototype.flags "^1.3.1"
+ side-channel "^1.0.4"
+
string.prototype.trimend@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80"
@@ -6984,7 +7543,7 @@ strip-indent@^3.0.0:
dependencies:
min-indent "^1.0.0"
-strip-json-comments@^3.1.1:
+strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
@@ -7069,6 +7628,11 @@ test-exclude@^6.0.0:
glob "^7.1.4"
minimatch "^3.0.4"
+text-table@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
+ integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=
+
throat@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.1.tgz#d514fedad95740c12c2d7fc70ea863eb51ade375"
@@ -7182,11 +7746,25 @@ [email protected], tslib@^2.1.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
-tslib@^1.0.0, tslib@^1.9.3:
+tslib@^1.0.0, tslib@^1.8.1, tslib@^1.9.3:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
+tsutils@^3.21.0:
+ version "3.21.0"
+ resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
+ integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
+ dependencies:
+ tslib "^1.8.1"
+
+type-check@^0.4.0, type-check@~0.4.0:
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"
+ integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==
+ dependencies:
+ prelude-ls "^1.2.1"
+
type-check@~0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"
@@ -7204,6 +7782,11 @@ type-fest@^0.13.1:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.13.1.tgz#0172cb5bce80b0bd542ea348db50c7e21834d934"
integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==
+type-fest@^0.20.2:
+ version "0.20.2"
+ resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
+ integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==
+
type-fest@^0.21.3:
version "0.21.3"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37"
@@ -7387,6 +7970,13 @@ unset-value@^1.0.0:
has-value "^0.3.1"
isobject "^3.0.0"
+uri-js@^4.2.2:
+ version "4.4.1"
+ resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
+ integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==
+ dependencies:
+ punycode "^2.1.0"
+
urix@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
@@ -7437,6 +8027,11 @@ uvu@^0.5.0:
kleur "^4.0.3"
sade "^1.7.3"
+v8-compile-cache@^2.0.3:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
+ integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==
+
v8-to-istanbul@^8.1.0:
version "8.1.1"
resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz#77b752fd3975e31bbcef938f85e9bd1c7a8d60ed"
@@ -7593,7 +8188,7 @@ which@^2.0.1:
dependencies:
isexe "^2.0.0"
-word-wrap@~1.2.3:
+word-wrap@^1.2.3, word-wrap@~1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==