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.

feat: Add tooltips for individual properties in style panels by the descriptions generated by ai (#3964)

Jaya Krishna Namburu99851a40d62a
diff --git a/apps/builder/app/builder/features/style-panel/property-label.tsx b/apps/builder/app/builder/features/style-panel/property-label.tsx
index f42256aa7b..eb8d880f4d 100644
--- a/apps/builder/app/builder/features/style-panel/property-label.tsx
+++ b/apps/builder/app/builder/features/style-panel/property-label.tsx
@@ -320,13 +320,15 @@ export const PropertySectionLabel = ({
*/
export const PropertyInlineLabel = ({
label,
+ title,
description,
properties,
disabled,
}: {
label: string;
+ title?: string;
description: string;
- properties: [StyleProperty, ...StyleProperty[]];
+ properties?: [StyleProperty, ...StyleProperty[]];
disabled?: boolean;
}) => {
const [isOpen, setIsOpen] = useState(false);
@@ -347,15 +349,17 @@ export const PropertyInlineLabel = ({
gap="2"
css={{ maxWidth: theme.spacing[28] }}
>
- <Text variant="titles">{label}</Text>
- <Text
- variant="monoBold"
- color="moreSubtle"
- userSelect="text"
- css={{ whiteSpace: "break-spaces", cursor: "text" }}
- >
- {properties.map(hyphenateProperty).join("\n")}
- </Text>
+ <Text variant="titles">{title ?? label}</Text>
+ {properties && (
+ <Text
+ variant="monoBold"
+ color="moreSubtle"
+ userSelect="text"
+ css={{ whiteSpace: "break-spaces", cursor: "text" }}
+ >
+ {properties.map(hyphenateProperty).join("\n")}
+ </Text>
+ )}
<Text>{description}</Text>
</Flex>
</>
diff --git a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-and-perspective-origin.tsx b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-and-perspective-origin.tsx
index 871a3ced32..725f760f1b 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-and-perspective-origin.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-and-perspective-origin.tsx
@@ -1,12 +1,6 @@
-import { propertyDescriptions } from "@webstudio-is/css-data";
+import { propertyDescriptions, propertySyntaxes } from "@webstudio-is/css-data";
import type { SectionProps } from "../shared/section";
-import {
- Label,
- Flex,
- Grid,
- theme,
- PositionGrid,
-} from "@webstudio-is/design-system";
+import { Flex, Grid, theme, PositionGrid } from "@webstudio-is/design-system";
import {
KeywordValue,
StyleValue,
@@ -20,7 +14,7 @@ import { extractTransformOrPerspectiveOriginValues } from "./transform-extractor
import { CssValueInputContainer } from "../../shared/css-value-input";
import type { StyleUpdateOptions } from "../../shared/use-style-data";
import { calculatePositionFromOrigin } from "./transform-utils";
-import { PropertyLabel } from "../../property-label";
+import { PropertyInlineLabel, PropertyLabel } from "../../property-label";
// Fake properties to use in the CssValueInputContainer
// x, y axis takes length | percentage | keyword
@@ -141,14 +135,28 @@ export const TransformAndPerspectiveOrigin = (
properties={[property]}
/>
<Flex gap="6">
- <Grid css={{ gridTemplateColumns: "1fr 1fr" }} align="center" gapX="2">
+ <Grid css={{ gridTemplateColumns: "1fr 2fr" }} align="center" gapX="2">
<PositionGrid
selectedPosition={{ x: xInfo, y: yInfo }}
onSelect={handlePositionGridChange}
/>
<Flex gap="2" direction="column">
- <Flex gap="2" align="center">
- <Label>X</Label>
+ <Grid
+ gap="2"
+ align="center"
+ css={{ gridTemplateColumns: "auto 1fr" }}
+ >
+ <PropertyInlineLabel
+ label="X"
+ title={
+ property === "transformOrigin" ? "X Offset" : "X Position"
+ }
+ description={
+ property === "transformOrigin"
+ ? propertySyntaxes.transformOriginY
+ : propertySyntaxes.perspectiveOriginX
+ }
+ />
<CssValueInputContainer
value={origin.x}
keywords={xOriginKeywords}
@@ -159,9 +167,23 @@ export const TransformAndPerspectiveOrigin = (
handleValueChange(0, value, options)
}
/>
- </Flex>
- <Flex gap="2" align="center">
- <Label>Y</Label>
+ </Grid>
+ <Grid
+ gap="2"
+ align="center"
+ css={{ gridTemplateColumns: "auto 1fr" }}
+ >
+ <PropertyInlineLabel
+ label="Y"
+ title={
+ property === "transformOrigin" ? "Y Offset" : "Y Position"
+ }
+ description={
+ property === "transformOrigin"
+ ? propertySyntaxes.transformOriginY
+ : propertySyntaxes.perspectiveOriginY
+ }
+ />
<CssValueInputContainer
value={origin.y}
keywords={yOriginKeywords}
@@ -172,10 +194,18 @@ export const TransformAndPerspectiveOrigin = (
handleValueChange(1, value, options)
}
/>
- </Flex>
+ </Grid>
{property === "transformOrigin" && origin.z !== undefined && (
- <Flex gap="2" align="center">
- <Label>Z</Label>
+ <Grid
+ gap="2"
+ align="center"
+ css={{ gridTemplateColumns: "auto 1fr" }}
+ >
+ <PropertyInlineLabel
+ label="Z"
+ title="Z Offset"
+ description={propertySyntaxes.transformOriginZ}
+ />
<CssValueInputContainer
value={origin.z}
keywords={[]}
@@ -186,7 +216,7 @@ export const TransformAndPerspectiveOrigin = (
handleValueChange(2, value, options)
}
/>
- </Flex>
+ </Grid>
)}
</Flex>
</Grid>
diff --git a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-rotate.tsx b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-rotate.tsx
index 44dafcde57..9f8586fa3e 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-rotate.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-rotate.tsx
@@ -1,4 +1,4 @@
-import { Flex, Grid, Label } from "@webstudio-is/design-system";
+import { Flex, Grid } from "@webstudio-is/design-system";
import {
updateRotateOrSkewPropertyValue,
type TransformPanelProps,
@@ -16,8 +16,9 @@ import {
type StyleValue,
} from "@webstudio-is/css-engine";
import type { StyleUpdateOptions } from "../../shared/use-style-data";
-import { parseCssValue } from "@webstudio-is/css-data";
+import { parseCssValue, propertySyntaxes } from "@webstudio-is/css-data";
import { extractRotatePropertiesFromTransform } from "./transform-extractors";
+import { PropertyInlineLabel } from "../../property-label";
export const RotatePanelContent = (props: TransformPanelProps) => {
const { propertyValue, setProperty, currentStyle } = props;
@@ -69,7 +70,10 @@ export const RotatePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<XAxisRotateIcon />
- <Label> Rotate X</Label>
+ <PropertyInlineLabel
+ label="Rotate X"
+ description={propertySyntaxes.rotateX}
+ />
<CssValueInputContainer
key="rotateX"
styleSource="local"
@@ -91,7 +95,10 @@ export const RotatePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<YAxisRotateIcon />
- <Label> Rotate Y</Label>
+ <PropertyInlineLabel
+ label="Rotate Y"
+ description={propertySyntaxes.rotateY}
+ />
<CssValueInputContainer
key="rotateY"
styleSource="local"
@@ -113,7 +120,10 @@ export const RotatePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<ZAxisRotateIcon />
- <Label> Rotate Z</Label>
+ <PropertyInlineLabel
+ label="Rotate Z"
+ description={propertySyntaxes.rotateZ}
+ />
<CssValueInputContainer
key="rotateZ"
styleSource="local"
diff --git a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-scale.tsx b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-scale.tsx
index 160e1b89f9..25704054b2 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-scale.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-scale.tsx
@@ -3,7 +3,6 @@ import {
EnhancedTooltip,
Flex,
Grid,
- Label,
SmallToggleButton,
theme,
} from "@webstudio-is/design-system";
@@ -24,10 +23,11 @@ import {
Link2Icon,
Link2UnlinkedIcon,
} from "@webstudio-is/icons";
-import { parseCssValue } from "@webstudio-is/css-data";
+import { parseCssValue, propertySyntaxes } from "@webstudio-is/css-data";
import { useCallback, useState } from "react";
import type { StyleUpdateOptions } from "../../shared/use-style-data";
import type { IntermediateStyleValue } from "../../shared/css-value-input/css-value-input";
+import { PropertyInlineLabel } from "../../property-label";
const property: StyleProperty = "scale";
// When a scale shorthand proeprty is used, we can't set keywords.
@@ -175,7 +175,10 @@ export const ScalePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<XAxisIcon />
- <Label> Scale X</Label>
+ <PropertyInlineLabel
+ label="Scale X"
+ description={propertySyntaxes.scaleX}
+ />
<CssValueInput
key="scaleX"
styleSource="local"
@@ -215,7 +218,10 @@ export const ScalePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<YAxisIcon />
- <Label> Scale Y</Label>
+ <PropertyInlineLabel
+ label="Scale Y"
+ description={propertySyntaxes.scaleY}
+ />
<CssValueInput
key="scaleY"
styleSource="local"
@@ -255,7 +261,10 @@ export const ScalePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<ZAxisIcon />
- <Label> Scale Z</Label>
+ <PropertyInlineLabel
+ label="Scale Z"
+ description={propertySyntaxes.scaleZ}
+ />
<CssValueInput
key="scaleZ"
styleSource="local"
diff --git a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-skew.tsx b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-skew.tsx
index 21d6417244..270f9947e5 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-skew.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-skew.tsx
@@ -1,4 +1,4 @@
-import { Flex, Label, Grid } from "@webstudio-is/design-system";
+import { Flex, Grid } from "@webstudio-is/design-system";
import {
updateRotateOrSkewPropertyValue,
type TransformPanelProps,
@@ -13,7 +13,8 @@ import {
UnitValue,
type FunctionValue,
} from "@webstudio-is/css-engine";
-import { parseCssValue } from "@webstudio-is/css-data";
+import { parseCssValue, propertySyntaxes } from "@webstudio-is/css-data";
+import { PropertyInlineLabel } from "../../property-label";
// We use fakeProperty to pass for the CssValueInputContainer.
// https://developer.mozilla.org/en-US/docs/Web/CSS/rotate#formal_syntax
@@ -69,7 +70,10 @@ export const SkewPanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<XAxisIcon />
- <Label> Skew X</Label>
+ <PropertyInlineLabel
+ label="Skew X"
+ description={propertySyntaxes.skewX}
+ />
<CssValueInputContainer
key="skewX"
styleSource="local"
@@ -91,7 +95,10 @@ export const SkewPanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<YAxisIcon />
- <Label> Skew Y</Label>
+ <PropertyInlineLabel
+ label="Skew Y"
+ description={propertySyntaxes.skewY}
+ />
<CssValueInputContainer
key="skewY"
styleSource="local"
diff --git a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-translate.tsx b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-translate.tsx
index 6e0f9c50b7..04425666e0 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transforms/transform-translate.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transforms/transform-translate.tsx
@@ -1,4 +1,4 @@
-import { Flex, Grid, Label } from "@webstudio-is/design-system";
+import { Flex, Grid } from "@webstudio-is/design-system";
import {
StyleValue,
toValue,
@@ -12,7 +12,8 @@ import {
} from "./transform-utils";
import type { StyleUpdateOptions } from "../../shared/use-style-data";
import { XAxisIcon, YAxisIcon, ZAxisIcon } from "@webstudio-is/icons";
-import { parseCssValue } from "@webstudio-is/css-data";
+import { parseCssValue, propertySyntaxes } from "@webstudio-is/css-data";
+import { PropertyInlineLabel } from "../../property-label";
const property: StyleProperty = "translate";
@@ -61,7 +62,11 @@ export const TranslatePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 2fr 2fr" }}
>
<XAxisIcon />
- <Label> Translate X</Label>
+ <PropertyInlineLabel
+ label="Translate X"
+ description={propertySyntaxes.translateX}
+ />
+
<CssValueInputContainer
key="translateX"
styleSource="local"
@@ -79,7 +84,10 @@ export const TranslatePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 2fr 2fr" }}
>
<YAxisIcon />
- <Label> Translate Y</Label>
+ <PropertyInlineLabel
+ label="Translate Y"
+ description={propertySyntaxes.translateY}
+ />
<CssValueInputContainer
key="translateX"
styleSource="local"
@@ -97,7 +105,10 @@ export const TranslatePanelContent = (props: TransformPanelProps) => {
css={{ alignItems: "center", gridTemplateColumns: "auto 1fr 1fr" }}
>
<ZAxisIcon />
- <Label> Translate Z</Label>
+ <PropertyInlineLabel
+ label="Translate Z"
+ description={propertySyntaxes.translateZ}
+ />
<CssValueInputContainer
key="translateX"
styleSource="local"
diff --git a/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx b/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
index 3c4d15ad9d..e076ece897 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
@@ -90,6 +90,15 @@ export const Section = (props: SectionProps) => {
})
);
+ const isBackfaceVisibilityUsed = isTransformPanelPropertyUsed({
+ currentStyle,
+ panel: "backfaceVisibility",
+ });
+ const isPerspectiveOriginUsed = isTransformPanelPropertyUsed({
+ currentStyle,
+ panel: "perspective",
+ });
+
return (
<CollapsibleSectionRoot
fullWidth
@@ -160,9 +169,9 @@ export const Section = (props: SectionProps) => {
</CssValueListArrowFocus>
) : undefined}
- <BackfaceVisibility />
+ {isBackfaceVisibilityUsed && <BackfaceVisibility />}
<TransformAndPerspectiveOrigin property="transformOrigin" {...props} />
- <TransformPerspective />
+ {isPerspectiveOriginUsed && <TransformPerspective />}
<TransformAndPerspectiveOrigin property="perspectiveOrigin" {...props} />
</CollapsibleSectionRoot>
);
diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx
index 69d97d7030..0ebb026cde 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx
@@ -24,6 +24,7 @@ import {
import {
parseCssValue,
properties,
+ propertyDescriptions,
type ExtractedTransitionProperties,
} from "@webstudio-is/css-data";
import type {
@@ -182,7 +183,7 @@ export const TransitionContent = ({
<PropertyInlineLabel
label="Duration"
- description="Sets the length of time a transition animation should take to complete."
+ description={propertyDescriptions.transitionDuration}
properties={["transitionDuration"]}
/>
<CssValueInputContainer
@@ -210,7 +211,7 @@ export const TransitionContent = ({
<PropertyInlineLabel
label="Delay"
- description="Specify the duration to wait before the transition begins."
+ description={propertyDescriptions.transitionDelay}
properties={["transitionDelay"]}
/>
<CssValueInputContainer
diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-property.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-property.tsx
index 05925505e4..f73d3a6e78 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-property.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-property.tsx
@@ -3,6 +3,7 @@ import {
animatableProperties,
commonTransitionProperties,
isAnimatableProperty,
+ propertyDescriptions,
} from "@webstudio-is/css-data";
import {
InputField,
@@ -171,7 +172,7 @@ export const TransitionProperty = ({
<>
<PropertyInlineLabel
label="Property"
- description="Sets the CSS properties that will be affected by the transition."
+ description={propertyDescriptions.transitionProperty}
properties={["transitionProperty"]}
/>
<ComboboxRoot open={isOpen}>
diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-timing.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-timing.tsx
index 2e2daa4b41..41306156e2 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-timing.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-timing.tsx
@@ -5,7 +5,7 @@ import {
type FunctionValue,
type KeywordValue,
} from "@webstudio-is/css-engine";
-import { parseCssValue } from "@webstudio-is/css-data";
+import { parseCssValue, propertyDescriptions } from "@webstudio-is/css-data";
import {
Select,
SelectGroup,
@@ -75,7 +75,7 @@ export const TransitionTiming = ({
<>
<PropertyInlineLabel
label="Easing"
- description="Affects the look and feel of the animation by varying the speed of the transition at different points in its duration."
+ description={propertyDescriptions.transitionTimingFunction}
properties={["transitionTimingFunction"]}
/>
<Select options={options} value={value} onChange={handleTimingChange}>
diff --git a/apps/builder/app/builder/features/style-panel/shared/filter-content.tsx b/apps/builder/app/builder/features/style-panel/shared/filter-content.tsx
index 16194e9786..c5c2357fd9 100644
--- a/apps/builder/app/builder/features/style-panel/shared/filter-content.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/filter-content.tsx
@@ -226,7 +226,7 @@ export const FilterSectionContent = ({
{filterFunction === "drop-shadow" && layer.args.type === "tuple" ? (
<ShadowContent
index={index}
- property="textShadow"
+ property="dropShadow"
layer={layer.args}
tooltip={<></>}
propertyValue={toValue(layer.args)}
diff --git a/apps/builder/app/builder/features/style-panel/shared/shadow-content.tsx b/apps/builder/app/builder/features/style-panel/shared/shadow-content.tsx
index e6f91c50ce..637113767b 100644
--- a/apps/builder/app/builder/features/style-panel/shared/shadow-content.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/shadow-content.tsx
@@ -9,6 +9,7 @@ import {
} from "@webstudio-is/css-engine";
import {
extractShadowProperties,
+ propertySyntaxes,
type ExtractedShadowProperties,
} from "@webstudio-is/css-data";
import {
@@ -16,7 +17,6 @@ import {
Grid,
Label,
Separator,
- Text,
TextArea,
textVariants,
theme,
@@ -34,6 +34,7 @@ import type {
StyleUpdateOptions,
} from "../shared/use-style-data";
import { parseCssFragment } from "./parse-css-fragment";
+import { PropertyInlineLabel } from "../property-label";
import { styleConfigByName } from "./configs";
import { ColorPicker } from "./color-picker";
@@ -63,7 +64,7 @@ import { ColorPicker } from "./color-picker";
type ShadowContentProps = {
index: number;
- property: "boxShadow" | "textShadow";
+ property: "boxShadow" | "textShadow" | "dropShadow";
layer: TupleValue;
propertyValue: string;
tooltip: JSX.Element;
@@ -93,6 +94,29 @@ const boxShadowInsetValues = [
{ value: "inset", Icon: ShadowInsetIcon },
] as const;
+const shadowPropertySyntaxes = {
+ boxShadow: {
+ x: propertySyntaxes.boxShadowOffsetX,
+ y: propertySyntaxes.boxShadowOffsetY,
+ blur: propertySyntaxes.boxShadowBlurRadius,
+ spread: propertySyntaxes.boxShadowSpreadRadius,
+ color: propertySyntaxes.boxShadowColor,
+ position: propertySyntaxes.boxShadowPosition,
+ },
+ textShadow: {
+ x: propertySyntaxes.textShadowOffsetX,
+ y: propertySyntaxes.textShadowOffsetY,
+ blur: propertySyntaxes.textShadowBlurRadius,
+ color: propertySyntaxes.textShadowColor,
+ },
+ dropShadow: {
+ x: propertySyntaxes.dropShadowOffsetX,
+ y: propertySyntaxes.dropShadowOffsetY,
+ blur: propertySyntaxes.dropShadowBlurRadius,
+ color: propertySyntaxes.dropShadowColor,
+ },
+} as const;
+
export const ShadowContent = ({
layer,
index,
@@ -131,8 +155,18 @@ export const ShadowContent = ({
if (intermediateValue === undefined) {
return;
}
- const parsed = parseCssFragment(intermediateValue.value, property);
- const parsedValue = parsed.get(property);
+ // dropShadow is a function under the filter property.
+ // To parse the value correctly, we need to change the property to textShadow.
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/drop-shadow#formal_syntax
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow#formal_syntax
+ // Both share a similar syntax but the property name is different.
+ const parsed = parseCssFragment(
+ intermediateValue.value,
+ property === "dropShadow" ? "textShadow" : property
+ );
+ const parsedValue = parsed.get(
+ property === "dropShadow" ? "textShadow" : property
+ );
if (parsedValue?.type === "layers") {
onEditLayer(index, parsedValue, { isEphemeral: false });
return;
@@ -166,22 +200,12 @@ export const ShadowContent = ({
property === "boxShadow" ? "1fr 1fr" : "1fr 1fr 1fr",
}}
>
- <Flex direction="column">
- <Tooltip
- variant="wrapped"
- content={
- <Flex gap="2" direction="column">
- <Text variant="regularBold">X Offset</Text>
- <Text variant="monoBold">offset-x</Text>
- <Text>
- Sets the horizontal offset of the shadow. Negative values
- place the shadow to the left.
- </Text>
- </Flex>
- }
- >
- <Label css={{ width: "fit-content" }}>X</Label>
- </Tooltip>
+ <Flex direction="column" gap="1">
+ <PropertyInlineLabel
+ label="X"
+ title="Offset X"
+ description={shadowPropertySyntaxes[property].x}
+ />
<CssValueInputContainer
key="boxShadowOffsetX"
// outline-offset is a fake property for validating box-shadow's offsetX.
@@ -200,22 +224,12 @@ export const ShadowContent = ({
/>
</Flex>
- <Flex direction="column">
- <Tooltip
- variant="wrapped"
- content={
- <Flex gap="2" direction="column">
- <Text variant="regularBold">Y Offset</Text>
- <Text variant="monoBold">offset-y</Text>
- <Text>
- Sets the vertical offset of the shadow. Negative values place
- the shadow above.
- </Text>
- </Flex>
- }
- >
- <Label css={{ width: "fit-content" }}>Y</Label>
- </Tooltip>
+ <Flex direction="column" gap="1">
+ <PropertyInlineLabel
+ label="Y"
+ title="Offset Y"
+ description={shadowPropertySyntaxes[property].y}
+ />
<CssValueInputContainer
key="boxShadowOffsetY"
// outline-offset is a fake property for validating box-shadow's offsetY.
@@ -234,22 +248,12 @@ export const ShadowContent = ({
/>
</Flex>
- <Flex direction="column">
- <Tooltip
- variant="wrapped"
- content={
- <Flex gap="2" direction="column">
- <Text variant="regularBold">Blur Radius</Text>
- <Text variant="monoBold">blur-radius</Text>
- <Text>
- The larger this value, the bigger the blur, so the shadow
- becomes bigger and lighter.
- </Text>
- </Flex>
- }
- >
- <Label css={{ width: "fit-content" }}>Blur</Label>
- </Tooltip>
+ <Flex direction="column" gap="1">
+ <PropertyInlineLabel
+ label="Blur"
+ title="Blur Radius"
+ description={shadowPropertySyntaxes[property].blur}
+ />
<CssValueInputContainer
key="boxShadowBlur"
// border-top-width is a fake property for validating box-shadow's blur.
@@ -269,22 +273,12 @@ export const ShadowContent = ({
</Flex>
{property === "boxShadow" ? (
- <Flex direction="column">
- <Tooltip
- variant="wrapped"
- content={
- <Flex gap="2" direction="column">
- <Text variant="regularBold">Spread Radius</Text>
- <Text variant="monoBold">spread-radius</Text>
- <Text>
- Positive values will cause the shadow to expand and grow
- bigger, negative values will cause the shadow to shrink.
- </Text>
- </Flex>
- }
- >
- <Label css={{ width: "fit-content" }}>Spread</Label>
- </Tooltip>
+ <Flex direction="column" gap="1">
+ <PropertyInlineLabel
+ label="Spread"
+ title="Spread Radius"
+ description={shadowPropertySyntaxes.boxShadow.spread}
+ />
<CssValueInputContainer
key="boxShadowSpread"
// outline-offset is a fake property for validating box-shadow's spread.
@@ -314,19 +308,11 @@ export const ShadowContent = ({
...(property === "boxShadow" && { gridTemplateColumns: "3fr 1fr" }),
}}
>
- <Flex direction="column">
- <Tooltip
- variant="wrapped"
- content={
- <Flex gap="2" direction="column">
- <Text variant="regularBold">Color</Text>
- <Text variant="monoBold">color</Text>
- <Text>Sets the shadow color and opacity.</Text>
- </Flex>
- }
- >
- <Label css={{ width: "fit-content" }}>Color</Label>
- </Tooltip>
+ <Flex direction="column" gap="1">
+ <PropertyInlineLabel
+ label="Color"
+ description={shadowPropertySyntaxes[property].color}
+ />
<ColorPicker
property="color"
value={colorControlProp}
@@ -346,22 +332,11 @@ export const ShadowContent = ({
</Flex>
{property === "boxShadow" ? (
- <Flex direction="column">
- <Tooltip
- variant="wrapped"
- content={
- <Flex gap="2" direction="column">
- <Text variant="regularBold">Inset</Text>
- <Text variant="monoBold">inset</Text>
- <Text>
- Changes the shadow from an outer shadow (outset) to an inner
- shadow (inset).
- </Text>
- </Flex>
- }
- >
- <Label css={{ display: "inline" }}>Inset</Label>
- </Tooltip>
+ <Flex direction="column" gap="1">
+ <PropertyInlineLabel
+ label="Inset"
+ description={shadowPropertySyntaxes.boxShadow.position}
+ />
<ToggleGroup
type="single"
value={inset?.value ?? "normal"}
@@ -423,7 +398,10 @@ export const ShadowContent = ({
event.preventDefault();
}
- if (event.key === "Escape") {
+ // dropShadow is a function under the `filter` and `backdrop-filter` properties.
+ // which are managed using tupes. If we delete here. It delets the whole `filter` / `backdrop-filter` property.
+ // So, we avoid this ephermal operation for dropShadow.
+ if (event.key === "Escape" && property !== "dropShadow") {
deleteProperty(property, { isEphemeral: true });
setIntermediateValue(undefined);
event.preventDefault();
diff --git a/packages/css-data/bin/property-value-descriptions.ts b/packages/css-data/bin/property-value-descriptions.ts
index 84ad037e8d..c5e10c4de1 100755
--- a/packages/css-data/bin/property-value-descriptions.ts
+++ b/packages/css-data/bin/property-value-descriptions.ts
@@ -4,6 +4,8 @@ import * as path from "node:path";
import type { CreateChatCompletionResponse } from "openai";
import { keywordValues } from "../src/__generated__/keyword-values";
import warnOnce from "warn-once";
+import pRetry from "p-retry";
+import { customLonghandPropertyNames } from "../src/custom-data";
const propertiesPrompt = fs.readFileSync(
path.join(process.cwd(), "bin", "prompts", "properties.prompt.md"),
@@ -43,6 +45,7 @@ let propertiesGenerated: Record<string, string> = {};
let propertiesOverrides: Record<string, string> = {};
let declarationsGenerated: Record<string, string> = {};
let declarationsOverrides: Record<string, string> = {};
+let propertySyntaxesGenerated: Record<string, string> = {};
try {
({
@@ -50,6 +53,7 @@ try {
propertiesOverrides = {},
declarationsGenerated = {},
declarationsOverrides = {},
+ propertySyntaxesGenerated = {},
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore Fix this else it'll complain that we cannot use top-level await.
} = await import(path.join(targetPath, fileName)));
@@ -72,49 +76,84 @@ const newPropertiesNames = Object.keys(keywordValues)
typeof propertiesOverrides[property] !== "string")
);
-let retries = 0;
+const newPropertySyntaxes = customLonghandPropertyNames.filter(
+ (property) =>
+ forceRegenerate ||
+ (typeof propertySyntaxesGenerated[property] !== "string" &&
+ typeof propertySyntaxesGenerated[property] !== "string")
+);
+
+for (let index = 0; index < newPropertySyntaxes.length; ) {
+ const syntaxes = newPropertySyntaxes.slice(index, index + batchSize);
+
+ console.info(
+ `[${Math.floor(index / batchSize) + 1}/${Math.ceil(
+ newPropertySyntaxes.length / batchSize
+ )}] Generating property syntax descriptions.`
+ );
+
+ if (syntaxes.length === 0) {
+ index += batchSize;
+ continue;
+ }
+
+ const prompt = propertiesPrompt.replace(
+ "{properties}",
+ syntaxes.map((name) => `- ${name}`).join("\n")
+ );
+
+ const result = await generateWithRetry(prompt);
+ const descriptions = grabDescriptions(result);
+
+ if (syntaxes.length !== descriptions.length) {
+ console.info(
+ "❌ Error: the number of generated descriptions does not match the amount of inputs. Retrying..."
+ );
+
+ console.info({ input: syntaxes.join("\n"), output: result });
+ continue;
+ }
+
+ syntaxes.forEach((name, index) => {
+ propertySyntaxesGenerated[name] = (descriptions[index] ?? "")
+ .replace(new RegExp(`^\`?${name}\`?:`), "")
+ .trim();
+ });
+
+ writeFile({
+ propertiesGenerated,
+ propertiesOverrides,
+ propertySyntaxesGenerated,
+ properties: `{ ...propertiesGenerated, ...propertiesOverrides }`,
+ declarationsGenerated,
+ declarationsOverrides,
+ declarations: `{ ...declarationsGenerated, ...declarationsOverrides }`,
+ });
-const backoff = (num: number) => {
- return Math.floor(Math.pow(2, Math.min(num, 4)) * 1000);
-};
+ index += batchSize;
+}
+console.info("\n✅ Properties syntax description generated!\n");
-for (let i = 0; i < newPropertiesNames.length; ) {
- const properties = newPropertiesNames.slice(i, i + batchSize);
+for (let index = 0; index < newPropertiesNames.length; ) {
+ const properties = newPropertiesNames.slice(index, index + batchSize);
console.info(
- `[${Math.floor(i / batchSize) + 1}/${Math.ceil(
+ `[${Math.floor(index / batchSize) + 1}/${Math.ceil(
newPropertiesNames.length / batchSize
)}] Generating properties descriptions.`
);
if (properties.length === 0) {
- i += batchSize;
+ index += batchSize;
continue;
}
- const result = await generate(
+ const result = await generateWithRetry(
propertiesPrompt.replace(
"{properties}",
properties.map((name) => `- ${name}`).join("\n")
)
);
-
- if (Array.isArray(result)) {
- // Retry
- if (result[0] === 429) {
- console.info(
- `❌ Error: 429 ${result[1]}. Retrying after sleep ${backoff(
- retries
- )}...`
- );
- await new Promise((resolve) => setTimeout(resolve, backoff(retries)));
- retries++;
- continue;
- }
-
- throw new Error(`❌ Error: ${result[0]} ${result[1]}`);
- }
-
const descriptions = grabDescriptions(result);
if (properties.length !== descriptions.length) {
@@ -135,13 +174,14 @@ for (let i = 0; i < newPropertiesNames.length; ) {
writeFile({
propertiesGenerated,
propertiesOverrides,
+ propertySyntaxesGenerated,
properties: `{ ...propertiesGenerated, ...propertiesOverrides }`,
declarationsGenerated,
declarationsOverrides,
declarations: `{ ...declarationsGenerated, ...declarationsOverrides }`,
});
- i += batchSize;
+ index += batchSize;
}
console.info("\n✅ Properties description generated!\n");
@@ -211,35 +251,27 @@ const newDeclarationsDescriptionsEntries = Object.entries(
newDeclarationsDescriptions
);
-for (let i = 0; i < newDeclarationsDescriptionsEntries.length; ) {
- const batch = newDeclarationsDescriptionsEntries.slice(i, i + batchSize);
+for (let index = 0; index < newDeclarationsDescriptionsEntries.length; ) {
+ const batch = newDeclarationsDescriptionsEntries.slice(
+ index,
+ index + batchSize
+ );
const list = batch.map(
([_descriptionKey, declaration]) => `- ${declaration}`
);
console.info(
- `[${Math.floor(i / batchSize) + 1}/${Math.ceil(
+ `[${Math.floor(index / batchSize) + 1}/${Math.ceil(
newDeclarationsDescriptionsEntries.length / batchSize
)}] Generating declarations descriptions.`
);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore Fix this else it'll complain that we cannot use top-level await.
- const result = await generate(
+ const result = await generateWithRetry(
declarationsPrompt.replace("{declarations}", list.join("\n"))
);
-
- if (Array.isArray(result)) {
- // Retry
- if (result[0] === 429) {
- console.info(`❌ Error: 429 ${result[1]}. Retrying...`);
- continue;
- }
-
- throw new Error(`❌ Error: ${result[0]} ${result[1]}`);
- }
-
const descriptions = grabDescriptions(result);
if (list.length !== descriptions.length) {
@@ -276,13 +308,14 @@ for (let i = 0; i < newDeclarationsDescriptionsEntries.length; ) {
writeFile({
propertiesGenerated,
propertiesOverrides,
+ propertySyntaxesGenerated,
properties: `{ ...propertiesGenerated, ...propertiesOverrides }`,
declarationsGenerated,
declarationsOverrides,
declarations: `{ ...declarationsGenerated, ...declarationsOverrides }`,
});
- i += batchSize;
+ index += batchSize;
}
console.info("\n✅ Declarations description generated!\n");
@@ -305,6 +338,43 @@ function writeFile(descriptions: Record<string, unknown>) {
fs.writeFileSync(path.join(targetPath, fileName), content, "utf-8");
}
+async function generateWithRetry(message: string): Promise<string> {
+ return pRetry(
+ async (attempt) => {
+ const result = await generate(message);
+
+ // Check if result is an array (error response)
+ if (Array.isArray(result)) {
+ if (result[0] === 429) {
+ console.info(
+ `❌ Error: 429 ${result[1]}. Retrying attempt ${attempt}...`
+ );
+ throw new Error("Rate limit exceeded"); // Retry on rate limit exceeded
+ } else {
+ throw new Error(`❌ Error: ${result[0]} ${result[1]}`); // Retry on other errors
+ }
+ }
+
+ // If the result isn't a string, retry
+ if (typeof result !== "string") {
+ console.info(
+ `❌ Error: Unexpected result type. Retrying attempt ${attempt}...`
+ );
+ throw new Error("Unexpected result type");
+ }
+
+ // Return the result if it's a valid string
+ return result;
+ },
+ {
+ retries: 5, // Number of retries
+ factor: 2, // Exponential backoff factor
+ minTimeout: 1000, // Minimum wait between retries (1 second)
+ maxTimeout: 5000, // Maximum wait between retries (5 seconds)
+ }
+ );
+}
+
async function generate(message: string): Promise<string | [number, string]> {
const { OPENAI_ORG, OPENAI_KEY } = process.env;
@@ -315,7 +385,7 @@ async function generate(message: string): Promise<string | [number, string]> {
const headers: HeadersInit = {
"Content-Type": "application/json",
Accept: "application/json",
- Authorization: `Bearer ${process.env.OPENAI_KEY}`,
+ Authorization: `Bearer ${OPENAI_KEY}`,
};
if (OPENAI_ORG?.startsWith("org-")) {
diff --git a/packages/css-data/package.json b/packages/css-data/package.json
index 4062a1c07d..9301c3ef79 100644
--- a/packages/css-data/package.json
+++ b/packages/css-data/package.json
@@ -9,7 +9,7 @@
"typecheck": "tsc",
"build:html.css": "tsx ./bin/html.css.ts && prettier --write ./src/__generated__/html.ts",
"build:mdn-data": "tsx ./bin/mdn-data.ts ./src/__generated__ && prettier --write \"./src/__generated__/\" \"../css-engine/src/__generated__/\"",
- "build:descriptions": "tsx ./bin/property-value-descriptions.ts",
+ "build:descriptions": "tsx ./bin/property-value-descriptions.ts && prettier --write ./src/__generated__/property-value-descriptions.ts",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"bin": {
@@ -45,6 +45,7 @@
"colord": "^2.9.3",
"css-tree": "^2.3.1",
"openai": "^3.2.1",
+ "p-retry": "^6.2.0",
"warn-once": "^0.1.1"
}
}
diff --git a/packages/css-data/src/__generated__/property-value-descriptions.ts b/packages/css-data/src/__generated__/property-value-descriptions.ts
index 876f9fd5f3..0410d894d6 100644
--- a/packages/css-data/src/__generated__/property-value-descriptions.ts
+++ b/packages/css-data/src/__generated__/property-value-descriptions.ts
@@ -494,10 +494,58 @@ export const propertiesGenerated = {
viewTransitionName: "Sets a custom name for a transition effect",
whiteSpaceCollapse:
"Specifies how white space inside an element is collapsed",
+ "-webkit-box-orient":
+ "Controls the direction of flex items in a flex container.",
+ "-webkit-line-clamp":
+ "Truncates text to a specific number of lines in a container.",
+ "-webkit-overflow-scrolling":
+ "Controls whether or not touch events trigger overflow scrolling.",
+ "-webkit-tap-highlight-color":
+ "Sets the highlight color of links and form controls if tapped.",
+ fieldSizing:
+ "Controls the algorithm used to calculate the width of form controls.",
+ zoom: "Specifies the zoom level of a document.",
} as const;
export const propertiesOverrides = {} as const;
+export const propertySyntaxesGenerated = {
+ boxShadowOffsetX: "Controls the offset distance of the shadow on the X-axis.",
+ boxShadowOffsetY: "Controls the offset distance of the shadow on the Y-axis.",
+ boxShadowBlurRadius: "Controls the blur radius of the shadow.",
+ boxShadowSpreadRadius: "Controls the spread radius of the shadow.",
+ boxShadowColor: "Controls the color of the shadow.",
+ boxShadowPosition: "Controls the positioning of the shadow.",
+ textShadowOffsetX:
+ "Controls the offset distance of the text shadow on the X-axis.",
+ textShadowOffsetY:
+ "Controls the offset distance of the text shadow on the Y-axis.",
+ textShadowBlurRadius: "Controls the blur radius of the text shadow.",
+ textShadowColor: "Controls the color of the text shadow.",
+ dropShadowOffsetX:
+ "Controls the offset distance of the drop shadow on the X-axis.",
+ dropShadowOffsetY:
+ "Controls the offset distance of the drop shadow on the Y-axis.",
+ dropShadowBlurRadius: "Controls the blur radius of the drop shadow.",
+ dropShadowColor: "Controls the color of the drop shadow.",
+ translateX: "Controls the translation of an element on the X-axis.",
+ translateY: "Controls the translation of an element on the Y-axis.",
+ translateZ: "Specifies the position of the z axis within the 3D workspace.",
+ rotateX: "Applies a 3D rotation to an element around the x-axis.",
+ rotateY: "Applies a 3D rotation to an element around the y-axis.",
+ rotateZ: "Applies a 3D rotation to an element around the z-axis.",
+ scaleX: "Applies a scale transformation to an element on the x-axis.",
+ scaleY: "Applies a scale transformation to an element on the y-axis.",
+ scaleZ: "Applies a scale transformation to an element on the z-axis.",
+ skewX: "Skews an element in the horizontal direction.",
+ skewY: "Skews an element in the vertical direction.",
+ transformOriginX: "Sets the origin of transformation for the x-axis.",
+ transformOriginY: "Sets the origin of transformation for the y-axis.",
+ transformOriginZ: "Sets the origin of transformation for the z-axis.",
+ perspectiveOriginX: "Sets the origin of perspective for the x-axis.",
+ perspectiveOriginY: "Sets the origin of perspective for the y-axis.",
+} as const;
+
export const properties = {
...propertiesGenerated,
...propertiesOverrides,
@@ -4290,6 +4338,38 @@ export const declarationsGenerated = {
"Aligns the last line of text to the start of the line.",
"textDecorationLine:unset":
"Resets the text decoration line to its initial value.",
+ "-webkit-box-orient:horizontal":
+ "Specifies the box orientation as horizontal.",
+ "-webkit-box-orient:vertical": "Specifies the box orientation as vertical.",
+ "-webkit-line-clamp:none": "Limits the number of lines for text to none.",
+ "-webkit-line-clamp:initial":
+ "Resets the number of lines for text to its initial value.",
+ "-webkit-line-clamp:inherit":
+ "Sets the number of lines for text to inherit from the parent element.",
+ "-webkit-line-clamp:unset":
+ "Sets the number of lines for text to the initial value.",
+ "-webkit-overflow-scrolling:auto":
+ "Enables smooth scrolling with the overflow behavior auto.",
+ "-webkit-overflow-scrolling:touch":
+ "Enables smooth scrolling with the overflow behavior touch.",
+ "-webkit-overflow-scrolling:initial":
+ "Resets the overflow behavior to the initial value.",
+ "-webkit-overflow-scrolling:inherit":
+ "Sets the overflow behavior to inherit from the parent element.",
+ "-webkit-overflow-scrolling:unset":
+ "Sets the overflow behavior to the initial value.",
+ "fieldSizing:content": "Adjusts the sizing of form elements to content.",
+ "fieldSizing:fixed": "Adjusts the sizing of form elements to a fixed value.",
+ "fieldSizing:initial":
+ "Resets the sizing of form elements to the initial value.",
+ "fieldSizing:inherit":
+ "Sets the sizing of form elements to inherit from the parent element.",
+ "fieldSizing:unset": "Sets the sizing of form elements to the initial value.",
+ "zoom:normal": "Zooms the specified element to its initial size.",
+ "zoom:reset": "Resets the zoom level to the default value.",
+ "zoom:initial": "Sets the zoom level to the default value.",
+ "zoom:inherit": "Inherits the zoom level from the parent element.",
+ "zoom:unset": "Unsets the zoom level, allowing the browser to decide.",
} as const;
export const declarationsOverrides = {} as const;
diff --git a/packages/css-data/src/custom-data.ts b/packages/css-data/src/custom-data.ts
index ea55014b39..aa0ef3085e 100644
--- a/packages/css-data/src/custom-data.ts
+++ b/packages/css-data/src/custom-data.ts
@@ -87,3 +87,36 @@ keywordValues.listStyleType = [
"trad-chinese-informal",
"kannada",
];
+
+export const customLonghandPropertyNames = [
+ "boxShadowOffsetX",
+ "boxShadowOffsetY",
+ "boxShadowBlurRadius",
+ "boxShadowSpreadRadius",
+ "boxShadowColor",
+ "boxShadowPosition",
+ "textShadowOffsetX",
+ "textShadowOffsetY",
+ "textShadowBlurRadius",
+ "textShadowColor",
+ "dropShadowOffsetX",
+ "dropShadowOffsetY",
+ "dropShadowBlurRadius",
+ "dropShadowColor",
+ "translateX",
+ "translateY",
+ "translateZ",
+ "rotateX",
+ "rotateY",
+ "rotateZ",
+ "scaleX",
+ "scaleY",
+ "scaleZ",
+ "skewX",
+ "skewY",
+ "transformOriginX",
+ "transformOriginY",
+ "transformOriginZ",
+ "perspectiveOriginX",
+ "perspectiveOriginY",
+] as const;
diff --git a/packages/css-data/src/index.ts b/packages/css-data/src/index.ts
index 254cb94c97..ca4ec477b8 100644
--- a/packages/css-data/src/index.ts
+++ b/packages/css-data/src/index.ts
@@ -6,6 +6,7 @@ export * from "./__generated__/units";
export {
properties as propertyDescriptions,
declarations as declarationDescriptions,
+ propertySyntaxesGenerated as propertySyntaxes,
} from "./__generated__/property-value-descriptions";
export * from "./__generated__/animatable-properties";
export * from "./__generated__/pseudo-elements";
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3c2845a059..87941c095f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1192,6 +1192,9 @@ importers:
openai:
specifier: ^3.2.1
version: 3.2.1
+ p-retry:
+ specifier: ^6.2.0
+ version: 6.2.0
warn-once:
specifier: ^0.1.1
version: 0.1.1
@@ -5414,6 +5417,9 @@ packages:
resolution: {integrity: sha512-A4STmOXPhMUtHH+S6ymgE2GiBSMqf4oTvcQZMcHzokuTLVYzXTB8ttjcgxOVaAp2lGwEdzZ0J+cRbbeevQj1UQ==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==}
+
resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==}
@@ -7170,6 +7176,10 @@ packages:
resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==}
+ resolution: {integrity: sha512-tUdRRAnhT+OtCZR/LxZelH/C7QtjtFrTu5tXCA8pl55eTUElUHT+GPYV8MBMBvea/j+NxQqVt3LbWMRir7Gx9g==}
+ engines: {node: '>=16'}
+
resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==}
engines: {node: '>= 0.4'}
@@ -8276,6 +8286,10 @@ packages:
resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-JA6nkq6hKyWLLasXQXUrO4z8BUZGUt/LjlJxx8Gb2+2ntodU/SS63YZ8b0LUTbQ8ZB9iwOfhEPhg4ykKnn2KsA==}
+ engines: {node: '>=16.17'}
+
resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
engines: {node: '>=6'}
@@ -8952,6 +8966,10 @@ packages:
resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}
engines: {node: '>= 4'}
+ resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==}
+ engines: {node: '>= 4'}
+
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
@@ -13583,6 +13601,8 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]': {}
+
'@types/[email protected]': {}
@@ -15683,6 +15703,8 @@ snapshots:
+
dependencies:
has-tostringtag: 1.0.0
@@ -17346,6 +17368,12 @@ snapshots:
dependencies:
aggregate-error: 3.1.0
+ dependencies:
+ '@types/retry': 0.12.2
+ is-network-error: 1.1.0
+ retry: 0.13.1
+
@@ -18030,6 +18058,8 @@ snapshots:
+