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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
experimental: add command panel (#4367)
Bogdan Chadkin971ae9f10c9e
diff --git a/apps/builder/app/builder/builder.tsx b/apps/builder/app/builder/builder.tsxindex c1678ed53a..cb9feacb69 100644--- a/apps/builder/app/builder/builder.tsx+++ b/apps/builder/app/builder/builder.tsx@@ -58,6 +58,7 @@ import { migrateWebstudioDataMutable } from "~/shared/webstudio-data-migrator";import { Loading, LoadingBackground } from "./shared/loading";import { mergeRefs } from "@react-aria/utils";import { initCopyPaste } from "~/shared/copy-paste";+import { CommandPanel } from "./features/command-panel";registerContainers();@@ -437,6 +438,7 @@ export const Builder = ({</ChromeWrapper><Loading state={loadingState} /><BlockingAlerts />+ <CommandPanel /></div></TooltipProvider>);diff --git a/apps/builder/app/builder/features/command-panel/command-panel.stories.tsx b/apps/builder/app/builder/features/command-panel/command-panel.stories.tsxnew file mode 100644index 0000000000..e222a8dc46--- /dev/null+++ b/apps/builder/app/builder/features/command-panel/command-panel.stories.tsx@@ -0,0 +1,98 @@+import type { Meta, StoryFn } from "@storybook/react";+import { useEffect } from "react";+import { initialBreakpoints } from "@webstudio-is/sdk";+import { coreMetas } from "@webstudio-is/react-sdk";+import { createDefaultPages } from "@webstudio-is/project-build";+import * as baseComponentMetas from "@webstudio-is/sdk-components-react/metas";+import * as remixComponentMetas from "@webstudio-is/sdk-components-react-remix/metas";+import {+ $breakpoints,+ $pages,+ $registeredComponentMetas,+} from "~/shared/nano-states";+import { $awareness } from "~/shared/awareness";+import { registerContainers } from "~/shared/sync";+import {+ CommandPanel as CommandPanelComponent,+ openCommandPanel,+} from "./command-panel";++const meta: Meta = {+ title: "CommandPanel",+};+export default meta;++registerContainers();++$registeredComponentMetas.set(+ new Map(+ Object.entries({+ ...coreMetas,+ ...baseComponentMetas,+ ...remixComponentMetas,+ })+ )+);++$breakpoints.set(+ new Map(+ initialBreakpoints.map((breakpoint, index) => [+ index.toString(),+ { ...breakpoint, id: index.toString() },+ ])+ )+);++const pages = createDefaultPages({+ rootInstanceId: "",+ systemDataSourceId: "",+});+pages.pages.push({+ id: "page2",+ path: "",+ name: "Second Page",+ rootInstanceId: "",+ systemDataSourceId: "",+ title: "",+ meta: {},+});+pages.pages.push({+ id: "page3",+ path: "",+ name: "Thrid Page",+ rootInstanceId: "",+ systemDataSourceId: "",+ title: "",+ meta: {},+});+$pages.set(pages);+$awareness.set({ pageId: pages.homePage.id });++export const CommandPanel: StoryFn = () => {+ useEffect(() => {+ const controller = new AbortController();+ addEventListener(+ "keydown",+ (event) => {+ if ((event.metaKey || event.ctrlKey) && event.key === "k") {+ openCommandPanel();+ }+ },+ { signal: controller.signal }+ );+ return () => {+ controller.abort();+ };+ }, []);+ return (+ <>+ <button onClick={openCommandPanel}>Open command panel</button>+ <br />+ <input+ defaultValue="Press cmd+k to open command panel"+ style={{ width: 300 }}+ />+ <CommandPanelComponent />+ </>+ );+};diff --git a/apps/builder/app/builder/features/command-panel/command-panel.tsx b/apps/builder/app/builder/features/command-panel/command-panel.tsxnew file mode 100644index 0000000000..21aeea41c5--- /dev/null+++ b/apps/builder/app/builder/features/command-panel/command-panel.tsx@@ -0,0 +1,237 @@+import { atom, computed } from "nanostores";+import { useStore } from "@nanostores/react";+import {+ collectionComponent,+ componentCategories,+ WsComponentMeta,+} from "@webstudio-is/react-sdk";+import { isFeatureEnabled } from "@webstudio-is/feature-flags";+import {+ Kbd,+ Text,+ CommandDialog,+ CommandInput,+ CommandList,+ CommandGroup,+ CommandGroupHeading,+ CommandItem,+ CommandIcon,+ ScrollArea,+ Flex,+} from "@webstudio-is/design-system";+import { compareMedia } from "@webstudio-is/css-engine";+import type { Breakpoint } from "@webstudio-is/sdk";+import {+ $breakpoints,+ $pages,+ $registeredComponentMetas,+ $selectedBreakpoint,+ $selectedBreakpointId,+} from "~/shared/nano-states";+import { getInstanceLabel } from "~/shared/instance-utils";+import { humanizeString } from "~/shared/string-utils";+import { setCanvasWidth } from "~/builder/features/breakpoints";+import { insert as insertComponent } from "~/builder/features/components/insert";+import { $selectedPage, selectPage } from "~/shared/awareness";++const $commandPanel = atom<+ | undefined+ | {+ lastFocusedElement: null | HTMLElement;+ }+>();++export const openCommandPanel = () => {+ if (isFeatureEnabled("command") === false) {+ return;+ }+ const activeElement =+ document.activeElement instanceof HTMLElement+ ? document.activeElement+ : null;+ // store last focused element+ $commandPanel.set({+ lastFocusedElement: activeElement,+ });+};++const closeCommandPanel = ({+ restoreFocus = false,+}: { restoreFocus?: boolean } = {}) => {+ const commandPanel = $commandPanel.get();+ $commandPanel.set(undefined);+ // restore focus in the next frame+ if (restoreFocus && commandPanel?.lastFocusedElement) {+ requestAnimationFrame(() => {+ commandPanel.lastFocusedElement?.focus();+ });+ }+};++const getMetaScore = (meta: WsComponentMeta) => {+ const categoryScore = componentCategories.indexOf(meta.category ?? "hidden");+ const componentScore = meta.order ?? Number.MAX_SAFE_INTEGER;+ // shift category+ return categoryScore * 1000 + componentScore;+};++const $visibleMetas = computed(+ [$registeredComponentMetas, $selectedPage],+ (metas, selectedPage) => {+ const entries = Array.from(metas)+ .sort(+ ([_leftComponent, leftMeta], [_rightComponent, rightMeta]) =>+ getMetaScore(leftMeta) - getMetaScore(rightMeta)+ )+ .filter(([component, meta]) => {+ const category = meta.category ?? "hidden";+ if (category === "hidden" || category === "internal") {+ return false;+ }+ // show only xml category and collection component in xml documents+ if (selectedPage?.meta.documentType === "xml") {+ return category === "xml" || component === collectionComponent;+ }+ // show everything except xml category in html documents+ return category !== "xml";+ });+ return new Map(entries);+ }+);++const ComponentsGroup = () => {+ const metas = useStore($visibleMetas);+ return (+ <CommandGroup+ heading={<CommandGroupHeading>Components</CommandGroupHeading>}+ >+ {Array.from(metas).map(([component, meta]) => {+ return (+ <CommandItem+ key={component}+ keywords={["Components"]}+ onSelect={() => {+ closeCommandPanel();+ insertComponent(component);+ }}+ >+ <CommandIcon+ dangerouslySetInnerHTML={{ __html: meta.icon }}+ ></CommandIcon>+ <Text variant="labelsTitleCase">+ {getInstanceLabel({ component }, meta)}{" "}+ <Text as="span" color="moreSubtle">+ ({humanizeString(meta.category ?? "")})+ </Text>+ </Text>+ </CommandItem>+ );+ })}+ </CommandGroup>+ );+};++const getBreakpointLabel = (breakpoint: Breakpoint) => {+ let label = "All Sizes";+ if (breakpoint.minWidth !== undefined) {+ label = `≥ ${breakpoint.minWidth} PX`;+ }+ if (breakpoint.maxWidth !== undefined) {+ label = `≤ ${breakpoint.maxWidth} PX`;+ }+ return `${breakpoint.label}: ${label}`;+};++const BreakpointsGroup = () => {+ const breakpoints = useStore($breakpoints);+ const sortedBreakpoints = Array.from(breakpoints.values()).sort(compareMedia);+ const selectedBreakpoint = useStore($selectedBreakpoint);+ return (+ <CommandGroup+ heading={<CommandGroupHeading>Breakpoints</CommandGroupHeading>}+ >+ {sortedBreakpoints.map(+ (breakpoint, index) =>+ breakpoint.id !== selectedBreakpoint?.id && (+ <CommandItem+ key={breakpoint.id}+ keywords={["Breakpoints"]}+ onSelect={() => {+ closeCommandPanel({ restoreFocus: true });+ $selectedBreakpointId.set(breakpoint.id);+ setCanvasWidth(breakpoint.id);+ }}+ >+ <CommandIcon></CommandIcon>+ <Text variant="labelsTitleCase">+ {getBreakpointLabel(breakpoint)}+ </Text>+ <Kbd value={[(index + 1).toString()]} />+ </CommandItem>+ )+ )}+ </CommandGroup>+ );+};++const PagesGroup = () => {+ const pagesData = useStore($pages);+ const selectedPage = useStore($selectedPage);+ if (pagesData === undefined) {+ return;+ }+ const pages = [pagesData.homePage, ...pagesData.pages];+ return (+ <CommandGroup heading={<CommandGroupHeading>Pages</CommandGroupHeading>}>+ {pages.map(+ (page) =>+ page.id !== selectedPage?.id && (+ <CommandItem+ key={page.id}+ keywords={["pages"]}+ onSelect={() => {+ closeCommandPanel();+ selectPage(page.id);+ }}+ >+ <CommandIcon></CommandIcon>+ <Text variant="labelsTitleCase">{page.name}</Text>+ </CommandItem>+ )+ )}+ </CommandGroup>+ );+};++const CommandDialogContent = () => {+ return (+ <>+ <CommandInput />+ <Flex direction="column" css={{ maxHeight: 300 }}>+ <ScrollArea>+ <CommandList>+ <ComponentsGroup />+ <BreakpointsGroup />+ <PagesGroup />+ </CommandList>+ </ScrollArea>+ </Flex>+ </>+ );+};++export const CommandPanel = () => {+ const isOpen = useStore($commandPanel) !== undefined;++ if (isOpen === false) {+ return;+ }+ return (+ <CommandDialog+ open={isOpen}+ onOpenChange={() => closeCommandPanel({ restoreFocus: true })}+ >+ <CommandDialogContent />+ </CommandDialog>+ );+};diff --git a/apps/builder/app/builder/features/command-panel/index.ts b/apps/builder/app/builder/features/command-panel/index.tsnew file mode 100644index 0000000000..9338251328--- /dev/null+++ b/apps/builder/app/builder/features/command-panel/index.ts@@ -0,0 +1 @@+export * from "./command-panel";diff --git a/apps/builder/app/builder/features/components/components.tsx b/apps/builder/app/builder/features/components/components.tsxindex 519097f8ca..1bcbe2baf9 100644--- a/apps/builder/app/builder/features/components/components.tsx+++ b/apps/builder/app/builder/features/components/components.tsx@@ -3,6 +3,7 @@ import { useStore } from "@nanostores/react";import { CrossIcon } from "@webstudio-is/icons";import {type WsComponentMeta,+ collectionComponent,componentCategories,} from "@webstudio-is/react-sdk";import {@@ -111,7 +112,7 @@ const filterAndGroupComponents = ({}if (documentType === "xml" && meta.category === "data") {- return component === "ws:collection";+ return component === collectionComponent;}if (component === "RemixForm" && isFeatureEnabled("filters") === false) {diff --git a/apps/builder/app/builder/shared/commands.ts b/apps/builder/app/builder/shared/commands.tsindex 2ec3d98a0a..108c257a6c 100644--- a/apps/builder/app/builder/shared/commands.ts+++ b/apps/builder/app/builder/shared/commands.ts@@ -28,6 +28,7 @@ import {} from "./nano-states";import { toast } from "@webstudio-is/design-system";import { selectInstance } from "~/shared/awareness";+import { openCommandPanel } from "../features/command-panel";const makeBreakpointCommand = <CommandName extends string>(name: CommandName,@@ -293,5 +294,11 @@ export const { emitCommand, subscribeCommands } = createCommandsEmitter({serverSyncStore.redo();},},++ {+ name: "search",+ defaultHotkeys: ["meta+k", "ctrl+k"],+ handler: openCommandPanel,+ },],});diff --git a/packages/design-system/package.json b/packages/design-system/package.jsonindex c95adedf1e..62ce130527 100644--- a/packages/design-system/package.json+++ b/packages/design-system/package.json@@ -57,12 +57,14 @@"@radix-ui/react-toolbar": "^1.1.0","@radix-ui/react-tooltip": "^1.1.3","@radix-ui/react-use-controllable-state": "^1.1.0",+ "@radix-ui/react-visually-hidden": "^1.1.0","@react-aria/focus": "^3.18.4","@react-aria/interactions": "^3.22.4","@react-aria/utils": "^3.25.3","@stitches/react": "1.3.1-1","@webstudio-is/icons": "workspace:*","change-case": "^5.4.4",+ "cmdk": "^1.0.4","downshift": "^6.1.7","match-sorter": "^6.3.4","react-hot-toast": "^2.4.1",diff --git a/packages/design-system/src/components/command.stories.tsx b/packages/design-system/src/components/command.stories.tsxnew file mode 100644index 0000000000..244546ff0b--- /dev/null+++ b/packages/design-system/src/components/command.stories.tsx@@ -0,0 +1,75 @@+import type { Meta, StoryFn } from "@storybook/react";+import {+ Command as CommandComponent,+ CommandGroup,+ CommandGroupHeading,+ CommandIcon,+ CommandInput,+ CommandItem,+ CommandList,+} from "./command";+import { Text } from "./text";+import { InfoCircleIcon } from "@webstudio-is/icons";+import { Kbd } from "./kbd";++const meta: Meta = {+ title: "Library/Command",+};+export default meta;++export const Command: StoryFn = () => {+ return (+ <CommandComponent>+ <CommandInput />+ <CommandList>+ <CommandGroup+ heading={<CommandGroupHeading>Suggestions</CommandGroupHeading>}+ >+ <CommandItem>+ <CommandIcon>+ <InfoCircleIcon />+ </CommandIcon>+ <Text variant="labelsTitleCase">Calendar</Text>+ </CommandItem>+ <CommandItem>+ <CommandIcon>+ <InfoCircleIcon />+ </CommandIcon>+ <Text variant="labelsTitleCase">Search Emoji</Text>+ </CommandItem>+ <CommandItem>+ <CommandIcon>+ <InfoCircleIcon />+ </CommandIcon>+ <Text variant="labelsTitleCase">Calculator</Text>+ </CommandItem>+ </CommandGroup>+ <CommandGroup+ heading={<CommandGroupHeading>Settings</CommandGroupHeading>}+ >+ <CommandItem>+ <CommandIcon>+ <InfoCircleIcon />+ </CommandIcon>+ <Text variant="labelsTitleCase">Profile</Text>+ <Kbd value={["cmd", "p"]} />+ </CommandItem>+ <CommandItem>+ <CommandIcon>+ <InfoCircleIcon />+ </CommandIcon>+ <Text variant="labelsTitleCase">Billing</Text>+ <Kbd value={["cmd", "b"]} />+ </CommandItem>+ <CommandItem>+ <CommandIcon>+ <InfoCircleIcon />+ </CommandIcon>+ <Text variant="labelsTitleCase">Settings</Text>+ <Kbd value={["cmd", "s"]} />+ </CommandItem>+ </CommandGroup>+ </CommandList>+ </CommandComponent>+ );+};diff --git a/packages/design-system/src/components/command.tsx b/packages/design-system/src/components/command.tsxnew file mode 100644index 0000000000..3cf45e68a7--- /dev/null+++ b/packages/design-system/src/components/command.tsx@@ -0,0 +1,152 @@+import type { ComponentPropsWithoutRef } from "react";+import { Command as CommandPrimitive, defaultFilter } from "cmdk";+import { VisuallyHidden } from "@radix-ui/react-visually-hidden";+import {+ DialogTitle,+ Dialog,+ DialogPortal,+ DialogOverlay,+ DialogContent,+} from "@radix-ui/react-dialog";+import { MagnifyingGlassIcon } from "@webstudio-is/icons";+import { styled, theme } from "../stitches.config";+import { textVariants } from "./text";++const panelWidth = "400px";+const itemHeight = "32px";+const inputBorderBottomSize = "--command-input-border-bottom-width";++const StyledCommand = styled(CommandPrimitive, {+ boxSizing: "border-box",+ width: panelWidth,+ borderRadius: theme.borderRadius[4],+ boxShadow: theme.shadows.menuDropShadow,+ backgroundColor: theme.colors.backgroundControls,+ border: `1px solid ${theme.colors.borderMain}`,+ // clip selected item background+ overflow: "clip",+ // remove input border bottom when no command matches+ [inputBorderBottomSize]: "0px",+ "&:has([cmdk-group]:not([hidden]))": {+ [inputBorderBottomSize]: "1px",+ },+});++type CommandProps = ComponentPropsWithoutRef<typeof CommandPrimitive>;++// this will match "Box" when entered "box"+const lowerCasedFilter: CommandProps["filter"] = (+ string,+ abbreviation,+ aliases+) =>+ defaultFilter!(+ string.toLocaleLowerCase(),+ abbreviation.toLocaleLowerCase(),+ aliases+ );++export const Command = (props: CommandProps) => {+ return <StyledCommand loop={true} filter={lowerCasedFilter} {...props} />;+};++const CommandDialogContent = styled(DialogContent, {+ position: "absolute",+ top: 140,+ left: `calc(50% - ${panelWidth} / 2)`,+ width: panelWidth,+});++export const CommandDialog = ({+ children,+ ...props+}: ComponentPropsWithoutRef<typeof Dialog>) => {+ return (+ <Dialog {...props}>+ <DialogPortal>+ <DialogOverlay />+ <CommandDialogContent aria-describedby={undefined}>+ {/* title is required by radix dialog */}+ <VisuallyHidden asChild>+ <DialogTitle>Command Panel</DialogTitle>+ </VisuallyHidden>+ <Command>{children}</Command>+ </CommandDialogContent>+ </DialogPortal>+ </Dialog>+ );+};++const CommandInputContainer = styled("div", {+ display: "grid",+ gridTemplateColumns: `${itemHeight} 1fr`,+ height: itemHeight,+ borderBottom: `var(${inputBorderBottomSize}) solid ${theme.colors.borderMain}`,+});++const CommandInputIcon = styled(MagnifyingGlassIcon, {+ gridColumn: "1 / 2",+ gridRow: "1 / 2",+ placeSelf: "center",+ color: theme.colors.foregroundSubtle,+});++const CommandInputField = styled(CommandPrimitive.Input, {+ all: "unset",+ gridColumn: "1 / 3",+ gridRow: "1 / 2",+ // add space for icon+ paddingLeft: itemHeight,+ paddingRight: theme.spacing[2],+ color: theme.colors.foregroundMain,+ ...textVariants.regular,+ "&::placeholder": {+ color: theme.colors.foregroundSubtle,+ },+});++export const CommandInput = (+ props: ComponentPropsWithoutRef<typeof CommandPrimitive.Input>+) => {+ return (+ <CommandInputContainer>+ <CommandInputIcon />+ <CommandInputField+ autoFocus={true}+ placeholder="Type a command or search..."+ {...props}+ />+ </CommandInputContainer>+ );+};++export const CommandList = CommandPrimitive.List;++export const CommandGroup = CommandPrimitive.Group;++export const CommandGroupHeading = styled("div", {+ ...textVariants.titles,+ color: theme.colors.foregroundMoreSubtle,+ display: "flex",+ alignItems: "center",+ paddingInline: 8,+ height: itemHeight,+});++export const CommandItem = styled(CommandPrimitive.Item, {+ display: "grid",+ gridTemplateColumns: `${itemHeight} 1fr max-content`,+ alignItems: "center",+ minHeight: itemHeight,+ paddingRight: 16,+ "&[aria-selected=true]": {+ backgroundColor: theme.colors.backgroundHover,+ },+});++export const CommandIcon = styled("div", {+ width: 16,+ height: 16,+ placeSelf: "center",+ color: theme.colors.foregroundSubtle,+});diff --git a/packages/design-system/src/components/input-field.tsx b/packages/design-system/src/components/input-field.tsxindex 68a4350324..8f30a1a46b 100644--- a/packages/design-system/src/components/input-field.tsx+++ b/packages/design-system/src/components/input-field.tsx@@ -85,16 +85,14 @@ const containerStyle = css({border: `solid 1px ${theme.colors.borderMain}`,backgroundColor: theme.colors.backgroundControls,"&:focus-within": {- border: `solid 1px ${theme.colors.borderFocus}`,+ borderColor: theme.colors.borderFocus,},-"&:has([data-input-field-input][data-color=error])": {borderColor: theme.colors.borderDestructiveMain,},"&:focus-within:has([data-color=error])": {borderColor: theme.colors.borderDestructiveMain,},-"&:has([data-input-field-input]:is(:disabled, [aria-disabled=true]))": {backgroundColor: theme.colors.backgroundInputDisabled,},diff --git a/packages/design-system/src/index.ts b/packages/design-system/src/index.tsindex 561c10b5c9..9e85f60249 100644--- a/packages/design-system/src/index.ts+++ b/packages/design-system/src/index.ts@@ -46,6 +46,7 @@ export * from "./components/link";export * from "./components/panel-banner";export * from "./components/focus-ring";export * from "./components/tree";+export * from "./components/command";// Not aligneddiff --git a/packages/feature-flags/src/flags.ts b/packages/feature-flags/src/flags.tsindex 79dee0eccc..fd679692a4 100644--- a/packages/feature-flags/src/flags.ts+++ b/packages/feature-flags/src/flags.ts@@ -6,3 +6,4 @@ export const cms = false;export const filters = false;export const xmlElement = false;export const staticExport = false;+export const command = false;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 16ff92e319..d66437c1ba 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1378,6 +1378,9 @@ importers:'@radix-ui/react-use-controllable-state':specifier: ^1.1.0version: 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden':+ specifier: ^1.1.0+ version: 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])'@react-aria/focus':specifier: ^3.18.4version: 3.18.4([email protected])@@ -1396,6 +1399,9 @@ importers:change-case:specifier: ^5.4.4version: 5.4.4+ cmdk:+ specifier: ^1.0.4+ version: 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])downshift:specifier: ^6.1.7version: 6.1.7([email protected])@@ -5751,6 +5757,12 @@ packages:resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}engines: {node: '>=6'}+ resolution: {integrity: sha512-AnsjfHyHpQ/EFeAnG216WY7A5LiYCoZzCSygiLvfXC3H3LFGCprErteUcszaVluGOhuOTbJS3jWHrSDYPBBygg==}+ peerDependencies:+ react: 18.3.0-canary-14898b6a9-20240318+ react-dom: 18.3.0-canary-14898b6a9-20240318+resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==}engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'}@@ -9237,6 +9249,11 @@ packages:peerDependencies:react: 18.3.0-canary-14898b6a9-20240318+ resolution: {integrity: sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==}+ peerDependencies:+ react: 18.3.0-canary-14898b6a9-20240318+resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}@@ -13430,6 +13447,18 @@ snapshots:+ [email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-dialog': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 18.3.0-canary-14898b6a9-20240318+ react-dom: 18.3.0-canary-14898b6a9-20240318([email protected])+ use-sync-external-store: 1.2.2([email protected])+ transitivePeerDependencies:+ - '@types/react'+ - '@types/react-dom'+@@ -17708,6 +17737,10 @@ snapshots:dependencies:react: 18.3.0-canary-14898b6a9-20240318+ dependencies:+ react: 18.3.0-canary-14898b6a9-20240318+