Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

[FE-2075] feat(studio): bump graphiql to v5 and use prebuilt component (#45404)

Alaister Youngf8cc6c21bd98
diff --git a/apps/studio/components/interfaces/App/MonacoThemeProvider.tsx b/apps/studio/components/interfaces/App/MonacoThemeProvider.tsx
index 92b9fb6e0f8..5c693fc449e 100644
--- a/apps/studio/components/interfaces/App/MonacoThemeProvider.tsx
+++ b/apps/studio/components/interfaces/App/MonacoThemeProvider.tsx
@@ -2,7 +2,7 @@ import { useMonaco } from '@monaco-editor/react'
import { useTheme } from 'next-themes'
import { useMemo } from 'react'
-const getTheme = (theme: string) => {
+export const getTheme = (theme: string) => {
const isDarkMode = theme.includes('dark')
// [TODO] Probably need better theming for light mode
return {
diff --git a/apps/studio/components/interfaces/GraphQL/GraphiQL.tsx b/apps/studio/components/interfaces/GraphQL/GraphiQL.tsx
deleted file mode 100644
index 5039cb49713..00000000000
--- a/apps/studio/components/interfaces/GraphQL/GraphiQL.tsx
+++ /dev/null
@@ -1,489 +0,0 @@
-/* Based on https://github.com/graphql/graphiql/blob/main/packages/graphiql/src/components/GraphiQL.tsx */
-
-import {
- ChevronDownIcon,
- ChevronUpIcon,
- CopyIcon,
- ExecuteButton,
- GraphiQLProvider,
- HeaderEditor,
- MergeIcon,
- PlusIcon,
- PrettifyIcon,
- QueryEditor,
- ReloadIcon,
- ResponseEditor,
- Spinner,
- Tab,
- Tabs,
- ToolbarButton,
- Tooltip,
- UnStyledButton,
- useCopyQuery,
- useDragResize,
- useEditorContext,
- useExecutionContext,
- useMergeQuery,
- usePluginContext,
- usePrettifyEditors,
- useSchemaContext,
- useTheme,
- VariableEditor,
-} from '@graphiql/react'
-import { Fetcher } from '@graphiql/toolkit'
-import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { LOCAL_STORAGE_KEYS } from 'common'
-import { AlertTriangle, XIcon } from 'lucide-react'
-import { MouseEventHandler, useCallback, useEffect, useState } from 'react'
-import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Button, cn } from 'ui'
-
-import { RoleImpersonationSelector } from '../RoleImpersonationSelector'
-import styles from './graphiql.module.css'
-import { useAsyncCheckPermissions } from '@/hooks/misc/useCheckPermissions'
-import { useLocalStorage } from '@/hooks/misc/useLocalStorage'
-
-export interface GraphiQLProps {
- fetcher: Fetcher
- theme?: 'dark' | 'light'
-}
-
-export default function GraphiQL({ fetcher, theme = 'dark' }: GraphiQLProps) {
- // Ensure props are correct
- if (typeof fetcher !== 'function') {
- throw new TypeError(
- 'The `GraphiQL` component requires a `fetcher` function to be passed as prop.'
- )
- }
-
- return (
- <GraphiQLProvider fetcher={fetcher}>
- <GraphiQLInterface theme={theme} />
- </GraphiQLProvider>
- )
-}
-
-interface GraphiQLInterfaceProps {
- theme: 'dark' | 'light'
-}
-
-const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
- const editorContext = useEditorContext({ nonNull: true })
- const executionContext = useExecutionContext({ nonNull: true })
- const schemaContext = useSchemaContext({ nonNull: true })
- const pluginContext = usePluginContext()
-
- const copy = useCopyQuery()
- const merge = useMergeQuery()
- const prettify = usePrettifyEditors()
-
- const { can: canReadJWTSecret } = useAsyncCheckPermissions(
- PermissionAction.READ,
- 'field.jwt_secret'
- )
-
- const [rlsBypassedWarningDismissed, setRlsBypassedWarningDismissed] = useLocalStorage(
- LOCAL_STORAGE_KEYS.GRAPHIQL_RLS_BYPASS_WARNING,
- false
- )
-
- const { setTheme } = useTheme()
- useEffect(() => {
- setTheme(theme)
- }, [theme])
-
- const PluginContent = pluginContext?.visiblePlugin?.content
-
- const pluginResize = useDragResize({
- defaultSizeRelation: 1 / 3,
- direction: 'horizontal',
- initiallyHidden: pluginContext?.visiblePlugin ? undefined : 'second',
- onHiddenElementChange: (resizableElement) => {
- if (resizableElement === 'second') {
- pluginContext?.setVisiblePlugin(null)
- }
- },
- sizeThresholdSecond: 200,
- storageKey: 'docExplorerFlex',
- })
- const editorResize = useDragResize({
- direction: 'horizontal',
- storageKey: 'editorFlex',
- })
- const editorToolsResize = useDragResize({
- defaultSizeRelation: 3,
- direction: 'vertical',
- initiallyHidden: (() => {
- return editorContext.initialVariables || editorContext.initialHeaders ? undefined : 'second'
- })(),
- sizeThresholdSecond: 60,
- storageKey: 'secondaryEditorFlex',
- })
-
- const [activeSecondaryEditor, setActiveSecondaryEditor] = useState<
- 'variables' | 'headers' | 'role-impersonation'
- >(() => {
- return !editorContext.initialVariables && editorContext.initialHeaders ? 'headers' : 'variables'
- })
-
- const toolbar = (
- <>
- <ToolbarButton onClick={prettify} label="Prettify query (Shift-Ctrl-P)">
- <PrettifyIcon className="graphiql-toolbar-icon" aria-hidden="true" />
- </ToolbarButton>
- <ToolbarButton onClick={merge} label="Merge fragments into query (Shift-Ctrl-M)">
- <MergeIcon className="graphiql-toolbar-icon" aria-hidden="true" />
- </ToolbarButton>
- <ToolbarButton onClick={copy} label="Copy query (Shift-Ctrl-C)">
- <CopyIcon className="graphiql-toolbar-icon" aria-hidden="true" />
- </ToolbarButton>
- </>
- )
-
- const onClickReference = useCallback(() => {
- if (pluginResize.hiddenElement === 'second') {
- pluginResize.setHiddenElement(null)
- }
- }, [pluginResize])
-
- const handleAddTab = editorContext.addTab
- const handleRefetchSchema = schemaContext.introspect
- const handleReorder = editorContext.moveTab
-
- const handlePluginClick: MouseEventHandler<HTMLButtonElement> = useCallback(
- (e) => {
- const context = pluginContext!
- const pluginIndex = Number(e.currentTarget.dataset.index!)
- const plugin = context.plugins.find((_, index) => pluginIndex === index)!
- const isVisible = plugin === context.visiblePlugin
- if (isVisible) {
- context.setVisiblePlugin(null)
- pluginResize.setHiddenElement('second')
- } else {
- context.setVisiblePlugin(plugin)
- pluginResize.setHiddenElement(null)
- }
- },
- [pluginContext, pluginResize]
- )
-
- const handleToolsTabClick: MouseEventHandler<HTMLButtonElement> = useCallback(
- (event) => {
- if (editorToolsResize.hiddenElement === 'second') {
- editorToolsResize.setHiddenElement(null)
- }
- setActiveSecondaryEditor(
- event.currentTarget.dataset.name as 'variables' | 'headers' | 'role-impersonation'
- )
- },
- [editorToolsResize]
- )
-
- const toggleEditorTools: MouseEventHandler<HTMLButtonElement> = useCallback(() => {
- editorToolsResize.setHiddenElement(
- editorToolsResize.hiddenElement === 'second' ? null : 'second'
- )
- }, [editorToolsResize])
-
- const addTab = (
- <Tooltip label="Add tab">
- <UnStyledButton
- type="button"
- className="graphiql-tab-add text-sm"
- onClick={handleAddTab}
- aria-label="Add tab"
- >
- <PlusIcon aria-hidden="true" />
- </UnStyledButton>
- </Tooltip>
- )
-
- const hasSingleTab = editorContext.tabs.length === 1
-
- return (
- <Tooltip.Provider>
- <div className={cn('graphiql-container', styles.graphiqlContainer)}>
- <div className="graphiql-main">
- <div
- ref={pluginResize.firstRef}
- style={{ minWidth: '750px' }}
- className={cn('graphiql-sessions', styles.graphiqlSessions)}
- >
- <div
- className={cn(
- 'graphiql-session-header',
- !hasSingleTab && styles.graphiqlSessionHeader
- )}
- >
- <Tabs
- values={editorContext.tabs}
- onReorder={handleReorder}
- aria-label="Select active operation"
- >
- {editorContext.tabs.length > 1 && (
- <>
- {editorContext.tabs.map((tab, index) => (
- <Tab
- key={tab.id}
- value={tab}
- isActive={index === editorContext.activeTabIndex}
- >
- <Tab.Button
- aria-controls="graphiql-session"
- id={`graphiql-session-tab-${index}`}
- onClick={() => {
- executionContext.stop()
- editorContext.changeTab(index)
- }}
- >
- {tab.title}
- </Tab.Button>
- <Tab.Close
- onClick={() => {
- if (editorContext.activeTabIndex === index) {
- executionContext.stop()
- }
- editorContext.closeTab(index)
- }}
- />
- </Tab>
- ))}
- {addTab}
- </>
- )}
- </Tabs>
- <div className="graphiql-session-header-right">
- {hasSingleTab && <div className={styles.graphiqlAddTabWrapper}>{addTab}</div>}
- </div>
- </div>
- <div
- role="tabpanel"
- id="graphiql-session"
- className={cn('graphiql-session', styles.graphiqlSession)}
- aria-labelledby={`graphiql-session-tab-${editorContext.activeTabIndex}`}
- >
- <div ref={editorResize.firstRef}>
- <div
- className={cn(
- 'graphiql-editors',
- styles.graphiqlEditors,
- hasSingleTab && 'full-height'
- )}
- >
- <div ref={editorToolsResize.firstRef}>
- <section
- className={cn('graphiql-query-editor text-sm', styles.graphiqlQueryEditor)}
- aria-label="Query Editor"
- >
- <QueryEditor onClickReference={onClickReference} />
- <div className="graphiql-toolbar" role="toolbar" aria-label="Editor Commands">
- <ExecuteButton />
- {toolbar}
- </div>
- </section>
- </div>
-
- <div ref={editorToolsResize.dragBarRef}>
- <div className="graphiql-editor-tools">
- <UnStyledButton
- type="button"
- className={
- activeSecondaryEditor === 'variables' &&
- editorToolsResize.hiddenElement !== 'second'
- ? 'active !text-sm'
- : '!text-sm'
- }
- onClick={handleToolsTabClick}
- data-name="variables"
- >
- Variables
- </UnStyledButton>
-
- <UnStyledButton
- type="button"
- className={
- activeSecondaryEditor === 'headers' &&
- editorToolsResize.hiddenElement !== 'second'
- ? 'active !text-sm'
- : '!text-sm'
- }
- onClick={handleToolsTabClick}
- data-name="headers"
- >
- Headers
- </UnStyledButton>
-
- {canReadJWTSecret && (
- <UnStyledButton
- type="button"
- className={
- activeSecondaryEditor === 'role-impersonation' &&
- editorToolsResize.hiddenElement !== 'second'
- ? 'active !text-sm'
- : '!text-sm'
- }
- onClick={handleToolsTabClick}
- data-name="role-impersonation"
- >
- Role Impersonation
- </UnStyledButton>
- )}
-
- <Tooltip
- label={
- editorToolsResize.hiddenElement === 'second'
- ? 'Show editor tools'
- : 'Hide editor tools'
- }
- >
- <UnStyledButton
- type="button"
- onClick={toggleEditorTools}
- aria-label={
- editorToolsResize.hiddenElement === 'second'
- ? 'Show editor tools'
- : 'Hide editor tools'
- }
- className="graphiql-toggle-editor-tools text-sm"
- >
- {editorToolsResize.hiddenElement === 'second' ? (
- <ChevronUpIcon className="graphiql-chevron-icon" aria-hidden="true" />
- ) : (
- <ChevronDownIcon className="graphiql-chevron-icon" aria-hidden="true" />
- )}
- </UnStyledButton>
- </Tooltip>
- </div>
- </div>
-
- <div ref={editorToolsResize.secondRef}>
- <section
- className={cn(
- 'graphiql-editor-tool !text-sm',
- activeSecondaryEditor === 'role-impersonation' ? '!p-0' : '!pt-0'
- )}
- aria-label={activeSecondaryEditor === 'variables' ? 'Variables' : 'Headers'}
- >
- <VariableEditor
- isHidden={activeSecondaryEditor !== 'variables'}
- onClickReference={onClickReference}
- />
-
- <HeaderEditor isHidden={activeSecondaryEditor !== 'headers'} />
-
- {canReadJWTSecret && (
- <div
- className={cn(
- 'graphiql-editor',
- activeSecondaryEditor !== 'role-impersonation' ? 'px-1 hidden' : ''
- )}
- >
- <RoleImpersonationSelector />
- </div>
- )}
- </section>
- </div>
- </div>
- </div>
-
- <div
- className={cn('graphiql-horizontal-drag-bar', styles.graphiqlHorizontalDragBar)}
- ref={editorResize.dragBarRef}
- />
-
- <div ref={editorResize.secondRef}>
- <div
- className={cn(
- 'graphiql-response text-sm relative',
- hasSingleTab
- ? styles.graphiqlResponseSingleTab
- : styles.graphiqlResponseMultiTab
- )}
- >
- {executionContext.isFetching ? <Spinner /> : null}
- <ResponseEditor />
-
- {!rlsBypassedWarningDismissed && (
- <Alert_Shadcn_ variant="warning" className="absolute bottom-[5px] right-[5px]">
- <AlertTriangle strokeWidth={2} />
- <AlertTitle_Shadcn_ className="leading-5 text-foreground">
- Please note that queries and mutations run in GraphiQL now use the service
- role key by default.
- <br />
- <span className="text-amber-900">RLS will be bypassed.</span>
- </AlertTitle_Shadcn_>
- <AlertDescription_Shadcn_>
- You can send queries as a specific role/user by using the role impersonation
- tab.
- </AlertDescription_Shadcn_>
- <Button
- type="outline"
- aria-label="Dismiss"
- className="absolute top-2 right-2 p-1 pl-1!"
- onClick={() => {
- setRlsBypassedWarningDismissed(true)
- }}
- >
- <XIcon width={14} height={14} />
- </Button>
- </Alert_Shadcn_>
- )}
- </div>
- </div>
- </div>
- </div>
- {pluginContext?.visiblePlugin && (
- <div className="graphiql-horizontal-drag-bar" ref={pluginResize.dragBarRef} />
- )}
- <div
- ref={pluginResize.secondRef}
- style={{
- // Make sure the container shrinks when containing long
- // non-breaking texts
- minWidth: '200px',
- }}
- >
- <div className="graphiql-plugin">{PluginContent ? <PluginContent /> : null}</div>
- </div>
- </div>
- <div className={cn('graphiql-sidebar', styles.graphiqlSidebar)}>
- <div className="graphiql-sidebar-section">
- {pluginContext?.plugins.map((plugin, index) => {
- const isVisible = plugin === pluginContext.visiblePlugin
- const label = `${isVisible ? 'Hide' : 'Show'} ${plugin.title}`
- const Icon = plugin.icon
- return (
- <Tooltip key={plugin.title} label={label}>
- <UnStyledButton
- type="button"
- className={isVisible ? 'active text-sm' : 'text-sm'}
- onClick={handlePluginClick}
- data-index={index}
- aria-label={label}
- >
- <Icon aria-hidden="true" />
- </UnStyledButton>
- </Tooltip>
- )
- })}
- </div>
- <div className="graphiql-sidebar-section">
- <Tooltip label="Re-fetch GraphQL schema">
- <UnStyledButton
- type="button"
- className="text-sm"
- disabled={schemaContext.isFetching}
- onClick={handleRefetchSchema}
- aria-label="Re-fetch GraphQL schema"
- >
- <ReloadIcon
- className={schemaContext.isFetching ? 'graphiql-spin' : ''}
- aria-hidden="true"
- />
- </UnStyledButton>
- </Tooltip>
- </div>
- </div>
- </div>
- </Tooltip.Provider>
- )
-}
diff --git a/apps/studio/components/interfaces/GraphQL/graphiql.module.css b/apps/studio/components/interfaces/GraphQL/graphiql.module.css
deleted file mode 100644
index 11a08708240..00000000000
--- a/apps/studio/components/interfaces/GraphQL/graphiql.module.css
+++ /dev/null
@@ -1,65 +0,0 @@
-@reference "../../../styles/main.css";
-
-.graphiqlContainer .graphiqlSessions {
- margin: 0;
- border-radius: 0;
-}
-
-.graphiqlContainer .graphiqlSession {
- padding: 0;
-}
-
-.graphiqlContainer .graphiqlEditors {
- border-radius: 0;
-}
-
-.graphiqlContainer .graphiqlEditors:global(.full-height) {
- margin-top: calc(0px - var(--session-header-height));
-}
-
-.graphiqlContainer .graphiqlQueryEditor {
- @apply border-b border-default;
-}
-
-.graphiqlContainer .graphiqlSessionHeader {
- background-color: hsl(var(--color-base));
- @apply border-b border-default;
-}
-
-.graphiqlContainer .graphiqlResponseSingleTab {
- margin-top: calc(24px - var(--session-header-height));
-}
-
-.graphiqlContainer .graphiqlResponseMultiTab {
- padding-top: 16px;
-}
-
-.graphiqlContainer .graphiqlSidebar {
- @apply border-l border-default;
-}
-
-.graphiqlHorizontalDragBar {
- @apply border-l border-default;
-}
-
-.graphiqlAddTabWrapper {
- padding: var(--px-12);
- @apply z-10;
-}
-
-/* Variables */
-
-:global(body.graphiql-dark) .graphiqlContainer {
- --color-base: 0, 0%, 11%;
- --color-primary: 153, 50%, 50%;
-}
-
-:global(body.graphiql-light) .graphiqlContainer {
- --color-base: 210, 17%, 98%;
- --color-primary: 153, 50%, 50%;
-}
-
-.graphiqlContainer {
- --font-family: theme(fontFamily.sans);
- --font-family-mono: theme(fontFamily.mono);
-}
diff --git a/apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx b/apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx
index 882d7b9afbf..4f353b8700b 100644
--- a/apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx
@@ -1,19 +1,59 @@
-import '@graphiql/react/dist/style.css'
+import 'graphiql/style.css'
+import 'graphiql/setup-workers/webpack'
+import { useMonaco, type GraphiQLPlugin } from '@graphiql/react'
import { createGraphiQLFetcher, Fetcher } from '@graphiql/toolkit'
+import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
+import { GraphiQL, HISTORY_PLUGIN } from 'graphiql'
+import { User as IconUser } from 'lucide-react'
import { useTheme } from 'next-themes'
-import { useMemo } from 'react'
+import { useEffect, useMemo } from 'react'
import { toast } from 'sonner'
import { LogoLoader } from 'ui'
-import GraphiQL from '@/components/interfaces/GraphQL/GraphiQL'
+import styles from './graphiql.module.css'
+import { getTheme } from '@/components/interfaces/App/MonacoThemeProvider'
+import { RoleImpersonationSelector } from '@/components/interfaces/RoleImpersonationSelector'
import { useSessionAccessTokenQuery } from '@/data/auth/session-access-token-query'
import { useProjectPostgrestConfigQuery } from '@/data/config/project-postgrest-config-query'
+import { useAsyncCheckPermissions } from '@/hooks/misc/useCheckPermissions'
import { API_URL, IS_PLATFORM } from '@/lib/constants'
import { getRoleImpersonationJWT } from '@/lib/role-impersonation'
import { useGetImpersonatedRoleState } from '@/state/role-impersonation-state'
+const ROLE_IMPERSONATION_PLUGIN: GraphiQLPlugin = {
+ title: 'Role Impersonation',
+ icon: () => <IconUser />,
+ content: () => <RoleImpersonationSelector orientation="vertical" />,
+}
+
+const MONACO_THEME = { dark: 'supabase-graphql-dark', light: 'supabase-graphql-light' }
+
+const GraphiQLMonacoTheme = ({ resolvedTheme }: { resolvedTheme: 'dark' | 'light' }) => {
+ const { monaco } = useMonaco()
+
+ useEffect(() => {
+ if (!monaco) return
+ const dark = getTheme('dark')
+ const light = getTheme('light')
+ monaco.editor.defineTheme(MONACO_THEME.dark, {
+ ...dark,
+ rules: [...dark.rules, { token: 'argument.identifier.gql', foreground: '908aff' }],
+ })
+ monaco.editor.defineTheme(MONACO_THEME.light, {
+ ...light,
+ rules: [...light.rules, { token: 'argument.identifier.gql', foreground: '6c69ce' }],
+ // Match the dashboard's bg-default in light mode so the editor doesn't read
+ // as a darker square against the surrounding UI.
+ colors: { ...light.colors, 'editor.background': '#fcfcfc' },
+ })
+ monaco.editor.setTheme(MONACO_THEME[resolvedTheme])
+ }, [monaco, resolvedTheme])
+
+ return null
+}
+
export const GraphiQLTab = () => {
const { resolvedTheme } = useTheme()
const { ref: projectRef } = useParams()
@@ -25,6 +65,16 @@ export const GraphiQLTab = () => {
const getImpersonatedRoleState = useGetImpersonatedRoleState()
+ const { can: canReadJWTSecret } = useAsyncCheckPermissions(
+ PermissionAction.READ,
+ 'field.jwt_secret'
+ )
+
+ const plugins = useMemo<GraphiQLPlugin[]>(
+ () => (canReadJWTSecret ? [HISTORY_PLUGIN, ROLE_IMPERSONATION_PLUGIN] : [HISTORY_PLUGIN]),
+ [canReadJWTSecret]
+ )
+
const fetcher = useMemo(() => {
const fetcherFn = createGraphiQLFetcher({
// [Joshen] Opting to hard code /platform for local to match the routes, so that it's clear what's happening
@@ -72,5 +122,16 @@ export const GraphiQLTab = () => {
return <LogoLoader />
}
- return <GraphiQL fetcher={fetcher} theme={currentTheme} />
+ return (
+ <>
+ <GraphiQLMonacoTheme resolvedTheme={currentTheme} />
+ <GraphiQL
+ fetcher={fetcher}
+ forcedTheme={currentTheme}
+ editorTheme={MONACO_THEME}
+ className={styles.root}
+ plugins={plugins}
+ />
+ </>
+ )
}
diff --git a/apps/studio/components/interfaces/Integrations/GraphQL/graphiql.module.css b/apps/studio/components/interfaces/Integrations/GraphQL/graphiql.module.css
new file mode 100644
index 00000000000..e6c351cf871
--- /dev/null
+++ b/apps/studio/components/interfaces/Integrations/GraphQL/graphiql.module.css
@@ -0,0 +1,104 @@
+@reference "../../../../styles/main.css";
+
+.root :global(.graphiql-sidebar) {
+ @apply border-r border-default;
+ overflow-x: hidden;
+}
+
+.root :global(.graphiql-sidebar [data-value='settings']),
+.root :global(.graphiql-sidebar [data-value='short-keys']) {
+ display: none;
+}
+
+.root :global(.graphiql-sessions) {
+ @apply m-0;
+}
+
+.root :global(#graphiql-session) {
+ @apply p-0;
+}
+
+.root :global(.graphiql-session-header) {
+ display: none;
+}
+
+.root :global(.graphiql-horizontal-drag-bar) {
+ @apply border-l border-default;
+}
+
+.root :global(.graphiql-horizontal-drag-bar:hover::after) {
+ @apply rounded-full;
+}
+
+.root :global(.graphiql-plugin) {
+ border-left: 0;
+}
+
+/* Lift the response panel above the editor surface so the two read as separate panes.
+ * The token differs per theme because the editor sits at a different baseline lightness
+ * in each (~12% L in dark, ~94% L in light), so a single surface token can't lift it
+ * meaningfully in both directions. */
+.root :global(.graphiql-response),
+.root :global(.graphiql-response .monaco-editor),
+.root :global(.graphiql-response .monaco-editor .margin),
+.root :global(.graphiql-response .monaco-editor .monaco-editor-background) {
+ background-color: var(--graphiql-response-bg) !important;
+}
+
+/* Editor-to-response drag bar: blend it into the response side so it doesn't read as
+ * a third color sandwiched between the two panes. The plugin-to-main drag bar is left
+ * alone — it sits next to the editor surface and our default border there is fine. */
+.root :global(.graphiql-editors + .graphiql-horizontal-drag-bar) {
+ background-color: var(--graphiql-response-bg);
+ border-left: 0;
+}
+
+.root :global(.graphiql-button),
+.root :global(button.graphiql-button),
+.root :global(.graphiql-un-styled),
+.root :global(button.graphiql-un-styled),
+.root :global(button.graphiql-execute-button) {
+ @apply rounded-md;
+}
+
+.root :global(.graphiql-button-group) {
+ @apply rounded-lg;
+}
+
+.root :global(.graphiql-doc-explorer-search),
+.root :global(.graphiql-doc-explorer-search-input) {
+ @apply rounded-md;
+}
+
+.root :global(.graphiql-doc-explorer-search [role='listbox']) {
+ @apply rounded-b-md;
+}
+
+/* Theme variable overrides */
+
+.root {
+ --font-family: theme(fontFamily.sans);
+ --font-family-mono: theme(fontFamily.mono);
+ --border-radius-2: 0;
+ --border-radius-4: 0;
+ --border-radius-8: 0;
+ --border-radius-12: 0;
+ --popover-box-shadow: none;
+}
+
+:global(body.graphiql-dark) .root {
+ /* HSL form of #1f1f1f, matches the editor.background returned by getTheme('dark') */
+ --color-base: 0, 0%, 12%;
+ --color-primary: 153, 50%, 50%;
+ --graphiql-response-bg: hsl(var(--background-surface-300));
+}
+
+:global(body.graphiql-light) .root {
+ /* HSL form of #fcfcfc, matches the dashboard bg-default and the editor.background
+ * we override to in GraphiQLTab.tsx so the editor reads as part of the surrounding UI. */
+ --color-base: 0, 0%, 98.8%;
+ --color-primary: 153, 50%, 50%;
+ /* Drop the response below the editor in light mode (inverse of dark) so it reads as
+ * the lower / "data" surface rather than the lifted one. */
+ --graphiql-response-bg: hsl(var(--background-surface-300));
+}
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationRadio.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationRadio.tsx
index e8ba1f0fb31..e176e4ccfb9 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationRadio.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationRadio.tsx
@@ -8,6 +8,7 @@ export interface RoleImpersonationRadioProps<T extends string> {
isSelected: boolean | 'partially'
onSelectedChange: (value: T) => void
icon?: React.ReactNode
+ fullWidth?: boolean
}
export function RoleImpersonationRadio<T extends string>({
@@ -17,11 +18,13 @@ export function RoleImpersonationRadio<T extends string>({
isSelected,
onSelectedChange,
icon,
+ fullWidth = false,
}: RoleImpersonationRadioProps<T>) {
return (
<label
className={cn(
- 'border border-default rounded-md bg-surface-200 hover:bg-overlay-hover hover:border-control px-4 py-3 w-44 cursor-pointer transition-colors',
+ 'border border-default rounded-md bg-surface-200 hover:bg-overlay-hover hover:border-control px-4 py-3 cursor-pointer transition-colors',
+ fullWidth ? 'w-full' : 'w-44',
isSelected && 'border-foreground-muted hover:border-foreground-muted bg-surface-300'
)}
tabIndex={0}
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/index.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/index.tsx
index ff2ece12ede..4a9c1ee64de 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/index.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/index.tsx
@@ -1,5 +1,5 @@
import { useState } from 'react'
-import { Badge, Card, CardContent, CardHeader, CardTitle } from 'ui'
+import { Badge, Card, CardContent, CardHeader, CardTitle, cn } from 'ui'
import { AnonIcon, AuthenticatedIcon, ServiceRoleIcon } from './Icons'
import { RoleImpersonationRadio } from './RoleImpersonationRadio'
@@ -14,13 +14,16 @@ export interface RoleImpersonationSelectorProps {
serviceRoleLabel?: string
disallowAuthenticatedOption?: boolean
title?: string
+ orientation?: 'horizontal' | 'vertical'
}
export const RoleImpersonationSelector = ({
header = 'Impersonate a database role',
serviceRoleLabel = 'Postgres',
disallowAuthenticatedOption = false,
+ orientation = 'horizontal',
}: RoleImpersonationSelectorProps) => {
+ const isVertical = orientation === 'vertical'
const state = useRoleImpersonationStateSnapshot()
const [selectedOption, setSelectedOption] = useState<PostgrestRole | undefined>(() => {
@@ -74,7 +77,7 @@ export const RoleImpersonationSelector = ({
e.preventDefault()
}}
>
- <fieldset className="flex gap-3">
+ <fieldset className={cn('flex gap-3', isVertical && 'flex-col gap-2')}>
<RoleImpersonationRadio
value="service_role"
isSelected={selectedOption === 'service_role'}
@@ -82,6 +85,7 @@ export const RoleImpersonationSelector = ({
label={serviceRoleLabel}
description="Superuser"
icon={<ServiceRoleIcon isSelected={selectedOption === 'service_role'} />}
+ fullWidth={isVertical}
/>
<RoleImpersonationRadio
@@ -91,6 +95,7 @@ export const RoleImpersonationSelector = ({
onSelectedChange={onSelectedChange}
description="Not logged in"
icon={<AnonIcon isSelected={selectedOption === 'anon'} />}
+ fullWidth={isVertical}
/>
{!disallowAuthenticatedOption && (
@@ -104,6 +109,7 @@ export const RoleImpersonationSelector = ({
onSelectedChange={onSelectedChange}
description="Specific logged in user"
icon={<AuthenticatedIcon isSelected={selectedOption === 'authenticated'} />}
+ fullWidth={isVertical}
/>
)}
</fieldset>
diff --git a/apps/studio/package.json b/apps/studio/package.json
index 8fc0b5ccd2e..e6d67f0e78f 100644
--- a/apps/studio/package.json
+++ b/apps/studio/package.json
@@ -43,8 +43,8 @@
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
- "@graphiql/react": "^0.19.4",
- "@graphiql/toolkit": "^0.9.1",
+ "@graphiql/react": "^0.37.3",
+ "@graphiql/toolkit": "^0.11.3",
"@hcaptcha/react-hcaptcha": "^1.12.0",
"@heroicons/react": "^2.1.3",
"@hookform/resolvers": "^3.1.1",
@@ -89,6 +89,7 @@
"file-saver": "^2.0.5",
"framer-motion": "^11.18.2",
"generate-password-browser": "^1.1.0",
+ "graphiql": "^5.2.2",
"html-to-image": "^1.11.13",
"http-status": "^2.1.0",
"icons": "workspace:*",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 184a2b27ed6..5f940acc6f0 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -887,11 +887,11 @@ importers:
specifier: ^3.2.2
version: 3.2.2([email protected])
'@graphiql/react':
- specifier: ^0.19.4
+ specifier: ^0.37.3
'@graphiql/toolkit':
- specifier: ^0.9.1
+ specifier: ^0.11.3
'@hcaptcha/react-hcaptcha':
specifier: ^1.12.0
@@ -918,7 +918,7 @@ importers:
'@sentry/nextjs':
specifier: 'catalog:'
'@std/path':
specifier: npm:@jsr/std__path@^1.0.8
version: '@jsr/[email protected]'
@@ -1024,6 +1024,9 @@ importers:
generate-password-browser:
specifier: ^1.1.0
version: 1.1.0
+ graphiql:
+ specifier: ^5.2.2
html-to-image:
specifier: ^1.11.13
version: 1.11.13
@@ -1071,7 +1074,7 @@ importers:
nuqs:
specifier: 2.7.1
openai:
specifier: ^4.104.0
@@ -3490,15 +3493,9 @@ packages:
'@emnapi/[email protected]':
resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==}
- '@emotion/[email protected]':
- resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==}
-
'@emotion/[email protected]':
resolution: {integrity: sha512-QgD4fyscGcbbKwJmqNvUMSE02OsHUa+lAWKdEUIJKgqe5IwRSKd7+KhibEWdaKwgjLj0DRSHA9biAIqGBk05lw==}
- '@emotion/[email protected]':
- resolution: {integrity: sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==}
-
'@emotion/[email protected]':
resolution: {integrity: sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==}
@@ -3805,18 +3802,28 @@ packages:
react: ^18 || ^19
react-dom: ^18 || ^19
+ '@graphiql/[email protected]':
+ resolution: {integrity: sha512-+ram1dDDGMqJn/f9n5I8E6grTvxcM9JZYt/HhtYLuCvkN8kERI6/E3zBHBshhIUnQZoXioZ03fAzXg7JOn0Kyg==}
+ peerDependencies:
+ '@graphiql/react': ^0.37.0
+ graphql: ^15.5.0 || ^16.0.0 || ^17.0.0
+ react: ^18 || ^19
+ react-compiler-runtime: 19.1.0-rc.1
+ react-dom: ^18 || ^19
+
'@graphiql/[email protected]':
resolution: {integrity: sha512-ab2og10SCWq5SDIZp+4PETIbwmClAmB1dZWwOG2vl0kqxZleSL9JTbteWfmDuvARhcg1MTkR5FqhpGRCTbl3jg==}
peerDependencies:
react: ^18 || ^19
react-dom: ^18 || ^19
- '@graphiql/[email protected]':
- resolution: {integrity: sha512-qg3N2Zeuq2+GDMZddz7K/ak1p5O56kKuLM/idOJZD+Lxbk2e8Eye3KWM24lJuuCi2gdvJuqPMfCdewLXrHhEkw==}
+ '@graphiql/[email protected]':
+ resolution: {integrity: sha512-UyGI/Nm5tzKNMB71li41p6TfkthLqHkmNi9CgHzAM1zKgPIrtSq7Q8WCWKHLOEB5n4/8X8sXFeyQfHgnGYTXYg==}
peerDependencies:
- graphql: ^15.5.0 || ^16.0.0
- react: ^16.8.0 || ^17 || ^18
- react-dom: ^16.8.0 || ^17 || ^18
+ '@graphiql/react': ^0.37.0
+ react: ^18 || ^19
+ react-compiler-runtime: 19.1.0-rc.1
+ react-dom: ^18 || ^19
'@graphiql/[email protected]':
resolution: {integrity: sha512-UAed+KKpjV4rba5xmRjQs498+OJ54xS+EPfzPz00Zoh9HN9/wg/LVGytBWp3VUCcfVdBMB3xlPII4Z7bf54TBA==}
@@ -3825,8 +3832,16 @@ packages:
react: ^18 || ^19
react-dom: ^18 || ^19
- '@graphiql/[email protected]':
- resolution: {integrity: sha512-C6O3f7KsLaoGjZHRT5jLjUmZeGUUewJtASbiAjPsJWeuONvQjLIxHnM+wjXYIVRqAVUVDtb4iadcZK0O9fzh0w==}
+ '@graphiql/[email protected]':
+ resolution: {integrity: sha512-rNJjwsYGhcZRdZ2FnyU6ss06xQaZ4UordyvOhp7+b/bEqQiEBpMOLJjuUr48Z6T7zEbZBnzCJpIJyXNqlcfQeA==}
+ peerDependencies:
+ graphql: ^15.5.0 || ^16.0.0 || ^17.0.0
+ react: ^18 || ^19
+ react-compiler-runtime: 19.1.0-rc.1
+ react-dom: ^18 || ^19
+
+ '@graphiql/[email protected]':
+ resolution: {integrity: sha512-Glf0fK1cdHLNq52UWPzfSrYIJuNxy8h4451Pw1ZVpJ7dtU+tm7GVVC64UjEDQ/v2j3fnG4cX8jvR75IvfL6nzQ==}
peerDependencies:
graphql: ^15.5.0 || ^16.0.0 || ^17.0.0
graphql-ws: '>= 4.5.0'
@@ -4104,13 +4119,6 @@ packages:
react: '>= 16.3.0'
react-dom: '>= 16.3.0'
- '@headlessui/[email protected]':
- resolution: {integrity: sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==}
- engines: {node: '>=10'}
- peerDependencies:
- react: ^16 || ^17 || ^18
- react-dom: ^16 || ^17 || ^18
-
'@headlessui/[email protected]':
resolution: {integrity: sha512-zbniWOYBQ8GHSUIOPY7BbdIn6PzUOq0z41RFrF30HbjsxG6Rrfk+6QulR8Kgf2Vwj2a/rE6i62q5vo+2gI5dJA==}
engines: {node: '>=10'}
@@ -4667,24 +4675,6 @@ packages:
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- '@motionone/[email protected]':
- resolution: {integrity: sha512-QUGWpLbMFLhyqKlngjZhjtxM8IqiJQjLK0DF+XOF6od9nhSvlaeEpOY/UMCRVcZn/9Tr2rZO22EkuCIjYdI74g==}
-
- '@motionone/[email protected]':
- resolution: {integrity: sha512-UdPTtLMAktHiqV0atOczNYyDd/d8Cf5fFsd1tua03PqTwwCe/6lwhLSQ8a7TbnQ5SN0gm44N1slBfj+ORIhrqw==}
-
- '@motionone/[email protected]':
- resolution: {integrity: sha512-HWTMZbTmZojzwEuKT/xCdvoMPXjYSyQvuVM6jmM0yoGU6BWzsmYMeB4bn38UFf618fJCNtP9XeC/zxtKWfbr0w==}
-
- '@motionone/[email protected]':
- resolution: {integrity: sha512-geFZ3w0Rm0ZXXpctWsSf3REGywmLLujEjxPYpBR0j+ymYwof0xbV6S5kGqqsDKgyWKVWpUInqQYvQfL6fRbXeg==}
-
- '@motionone/[email protected]':
- resolution: {integrity: sha512-W4jkEGFifDq73DlaZs3HUfamV2t1wM35zN/zX7Q79LfZ2sc6C0R1baUHZmqc/K5F3vSw3PavgQ6HyHLd/MXcWg==}
-
- '@motionone/[email protected]':
- resolution: {integrity: sha512-WNWDksJIxQkaI9p9Z9z0+K27xdqISGNFy1SsWVGaiedTHq0iaT6iZujby8fT/ZnZxj1EOaxJtSfUPCFNU5CRoA==}
-
resolution: {integrity: sha512-sURvQbbKsq5f8INV54YJgJEdk8oxBanqkTiXXd33rKmofFCwZLhLRszPduMZ9TA9b8/1CHc/IJmOlBHJk2Q5AQ==}
engines: {node: '>=18'}
@@ -9862,13 +9852,6 @@ packages:
resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==}
- resolution: {integrity: sha512-rC9NxibCsSzWtCQjHLfwKCkyYdGv2BT/BCgyDoKPrc/e7aGiyLyeT0fB60d+0imwlvhX3lIHncl6JMz2YxQ/jg==}
- peerDependencies:
- '@codemirror/language': 6.0.0
- codemirror: ^5.65.3
- graphql: ^15.5.0 || ^16.0.0
-
resolution: {integrity: sha512-//E1IjSVfScGBMpLgylfbMQNQnejpeqyP+Weqh/Kl45kr0XkSUiOCImsG5OL5Crm6waFbx4H7GAAI6KFXy27IQ==}
peerDependencies:
@@ -10809,9 +10792,6 @@ packages:
resolution: {integrity: sha512-otxSQPw4lkOZWkHpB3zaEQs6gWYEsmX4xQF68ElXC/TWvGxGMSGOvoNbaLXm6/cS/fSfHtsEdw90y20PCd+sCA==}
engines: {node: '>=10.13.0'}
- resolution: {integrity: sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==}
-
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
engines: {node: '>=0.12'}
@@ -11563,8 +11543,8 @@ packages:
react-dom:
optional: true
- resolution: {integrity: sha512-GeRN4aX3g+pdGVTLRU0yC5SYeKY1DigyrnJjcyST2dKp/OA9sNusW5DUImZF96S/eBnGW3mNGRt7PteDJuT4Bg==}
+ resolution: {integrity: sha512-rFYkY/pigbcswl1XQSb7q424kSTQ8q6eAC+YUsSKooHQYuLdzdHjrt6uxUC+PRAO++q5IS7+TamgIw1AphxR+g==}
peerDependencies:
'@emotion/is-prop-valid': '*'
react: ^18.0.0 || ^19.0.0
@@ -11577,14 +11557,19 @@ packages:
react-dom:
optional: true
- resolution: {integrity: sha512-o1BGqqposwi7cgDrtg0dNONhkmPsUFDaLcKXigzuTFC5x58mE8iyTazxSudFzmT6MEyJKfjjU8ItoMe3W+3fiw==}
+ resolution: {integrity: sha512-GeRN4aX3g+pdGVTLRU0yC5SYeKY1DigyrnJjcyST2dKp/OA9sNusW5DUImZF96S/eBnGW3mNGRt7PteDJuT4Bg==}
peerDependencies:
- react: '>=16.8 || ^17.0.0 || ^18.0.0'
- react-dom: '>=16.8 || ^17.0.0 || ^18.0.0'
-
- resolution: {integrity: sha512-fUY88kXvGiIItgNC7wcTOl0SNRCVXMKSWW2Yzfmn7EKNc+MpCzcz9DhdHcdjbrtN3c6R4H5dTY2jiCpPdysEjA==}
+ '@emotion/is-prop-valid': '*'
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@emotion/is-prop-valid':
+ optional: true
+ react:
+ optional: true
+ react-dom:
+ optional: true
resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==}
@@ -11807,6 +11792,13 @@ packages:
react: ^18 || ^19
react-dom: ^18 || ^19
+ resolution: {integrity: sha512-qYhw7e2QPLPEIdJXqlLa/XkZtEu2SVYyD71abOpPnrzmJzTdB+QsEswFIMg9u1WGkEtp/wi8epCsuKeA/chRcg==}
+ peerDependencies:
+ graphql: ^15.5.0 || ^16.0.0 || ^17.0.0
+ react: ^18 || ^19
+ react-dom: ^18 || ^19
+
resolution: {integrity: sha512-ObdBeL3ycddHrNbFvhGZ12pK8jUzWvvyN2A+6ij3XrtLH/KrkXt+BboEAEgXmeUrTcD5RjJnz8IZu3Cgc/oX/w==}
engines: {node: '>= 16.0.0'}
@@ -11817,14 +11809,14 @@ packages:
cosmiconfig-toml-loader:
optional: true
- resolution: {integrity: sha512-o/ZgTS0pBxWm3hSF4+6GwiV1//DxzoLWEbS38+jqpzzy1d/QXBidwQuVYTOksclbtOJZ3KR/tZ8fi/tI6VpVMg==}
+ resolution: {integrity: sha512-6u/f6rxQ6sgNfHwHYGsFiR+zYP93uFEStNO0j9WexoOVd2hQK7BPsNyBz/WsB8URHPAjoVhSKs1wkAqUrcxj1g==}
hasBin: true
peerDependencies:
- graphql: ^15.5.0 || ^16.0.0
+ graphql: ^15.5.0 || ^16.0.0 || ^17.0.0
- resolution: {integrity: sha512-6u/f6rxQ6sgNfHwHYGsFiR+zYP93uFEStNO0j9WexoOVd2hQK7BPsNyBz/WsB8URHPAjoVhSKs1wkAqUrcxj1g==}
+ resolution: {integrity: sha512-9EvWrLLkF6Y5e29/2cmFoAO6hBPPAZlCyjznmpR11iFtRydfkss+9m6x+htA8h7YznGam+TtJwS6JuwoWWgb2Q==}
hasBin: true
peerDependencies:
graphql: ^15.5.0 || ^16.0.0 || ^17.0.0
@@ -12044,9 +12036,6 @@ packages:
resolution: {integrity: sha512-Ox1pJVrDCyGHMG9CFg1tmrRUMRPRsAWYc/PinY0XzJU4K7y7vjNoLKIQ7BR5UJMCxNN8EM1MNDmHWA/B3aZUuw==}
engines: {node: '>=6'}
- resolution: {integrity: sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==}
-
resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==}
@@ -12837,6 +12826,9 @@ packages:
engines: {node: '>=6'}
hasBin: true
+ resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==}
+
resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
@@ -13033,9 +13025,6 @@ packages:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
- resolution: {integrity: sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==}
-
resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==}
@@ -13253,10 +13242,6 @@ packages:
resolution: {integrity: sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==}
engines: {node: '>=16'}
- resolution: {integrity: sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==}
- hasBin: true
-
resolution: {integrity: sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==}
hasBin: true
@@ -13419,9 +13404,6 @@ packages:
resolution: {integrity: sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==}
- resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==}
-
resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}
@@ -13900,6 +13882,13 @@ packages:
resolution: {integrity: sha512-jz4x+TJNFHwHtwuV9vA9rMujcZRb0CEilTEwG2rRSpe/A7Jdkuj8xPKttCgOh+v/lkHy7HsZ64oj+q3xoAFl9A==}
+ resolution: {integrity: sha512-6LAIcg/vT2NGLjHnT+5iIZONsZCaCuz2orbg7qD/u4Ry9R7rDotLh0HAzIF/yKdzEA5fTZC+TofSx2O+Zi+0ow==}
+ peerDependencies:
+ graphql: ^15.5.0 || ^16.0.0 || ^17.0.0
+ monaco-editor: '>= 0.20.0 < 0.53'
+ prettier: ^2.8.0 || ^3.0.0
+
resolution: {integrity: sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==}
@@ -13910,12 +13899,18 @@ packages:
resolution: {integrity: sha512-g76KvA001z+atjfxczdRtw/RXOM3OMSdd1f4DL77qCTF/+avrRJiawSG4yDibEQ215sr9kpinSlX2pCTJ9zbhw==}
+ resolution: {integrity: sha512-pdkHLD8QYRp8VfiNLb8xIBJis1byQ9gPT3Jnh2jqfFtAsWUA3dEepDlsWe/xMpO8McV+VdpKVcp+E+TGJEtOoA==}
+
resolution: {integrity: sha512-25TWkQPj5I18m+qVjXGtCsxboY11DaRC5HMjd29tHKExazW4Zf4XtAagBdLpyKsVuAxEQ6cx5/E4AB21PFpLnQ==}
resolution: {integrity: sha512-49Kt+HKjtbJKLtgO/LKj9Ld+6vw9BjH5d9sc40R/kVyH8GLAXgT42M2NnuPcJNuA3s9ZfZBUcwIgpmZWGEE+hA==}
+ resolution: {integrity: sha512-eHWisygbiwVvf6PZ1vhaHCLamvkSbPIeAYxWUuL3a2PD/TROgE7FvfHWTIH4vMl798QLfMw15nRqIaRDXTlYRg==}
+
resolution: {integrity: sha512-BW3I65zeM76CMsfh3kHid9ansEJk9Qvl+K5cu4DVHKGsI52n76OJ4z2CUJUV+Mn3uEP9k1JJA3tClG0ggSrRcg==}
@@ -14793,6 +14788,10 @@ packages:
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+ resolution: {integrity: sha512-0ypsOQt9D4e3hziV8O4elD9uN0z/jtUEfxVRtNaAAtXIyUx9m/SzlO020i8YNL2aL/E6blOvvHQcin6HZlFy/w==}
+ engines: {node: '>=8.6'}
+
resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}
engines: {node: '>=8.6'}
@@ -14848,9 +14847,6 @@ packages:
resolution: {integrity: sha512-OBatVyC/N7SCW/FaDHrSd+vn0o5cS855TOmYi4OkdWUMSJCET/xip//ch8xGUvtr3i44X9LVyWwQlRMTN3pwSA==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-Y55FLdj3UxkR7Vl3s7Qr4e9m0onSnP8W7d/xQLsoJM40vs6UKHFdygs6SWryasTZYqugMjm3BepCF4CWXDiHgA==}
-
resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==}
engines: {node: '>= 0.4'}
@@ -16517,9 +16513,6 @@ packages:
resolution: {integrity: sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==}
- resolution: {integrity: sha512-08yq36Ikn4kx4YU6RD7jWEv27v4V+PUsOGa4n/as8Et3CuODMJQ00ENeAVXAeydX4Z2j1XHZF1K2sX4mGl18fA==}
-
resolution: {integrity: sha512-J72R4ltw0UBVUlEjTzI0gg2STOqlI9JBhQOL4Dxt7aJOnnSesy0qJDn4PYfMCafk9cWOaVg129Pesl5o+DIh0Q==}
engines: {node: '>= 16'}
@@ -16966,9 +16959,6 @@ packages:
resolution: {integrity: sha512-z6PJ8Lml+v3ichVojCiB8toQJBuwR42ySM4ezjXIqXK3M0HczmKQ3LF4rhU55PfD99KEEXQG6yb7iOMyvYuHew==}
hasBin: true
- resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==}
-
resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==}
@@ -18030,6 +18020,24 @@ packages:
react:
optional: true
+ resolution: {integrity: sha512-i77ae3aZq4dhMlRhJVCYgMLKuSiZAaUPAct2AksxQ+gOtimhGMdXljRT21P5BNpeT4kXlLIckvkPM029OljD7g==}
+ engines: {node: '>=12.20.0'}
+ peerDependencies:
+ '@types/react': '>=18.0.0'
+ immer: '>=9.0.6'
+ react: '>=18.0.0'
+ use-sync-external-store: '>=1.2.0'
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ immer:
+ optional: true
+ react:
+ optional: true
+ use-sync-external-store:
+ optional: true
+
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
@@ -19535,18 +19543,10 @@ snapshots:
tslib: 2.8.1
optional: true
- '@emotion/[email protected]':
- dependencies:
- '@emotion/memoize': 0.7.4
- optional: true
-
'@emotion/[email protected]':
dependencies:
'@emotion/memoize': 0.9.0
- '@emotion/[email protected]':
- optional: true
-
'@emotion/[email protected]': {}
'@emotion/[email protected]': {}
@@ -19807,10 +19807,24 @@ snapshots:
- '@types/react-dom'
- graphql-ws
+ dependencies:
+ graphql: 16.11.0
+ react: 18.3.1
+ react-compiler-runtime: 19.1.0-rc.1([email protected])
+ react-dom: 18.3.1([email protected])
+ transitivePeerDependencies:
+ - '@types/react'
+ - immer
+ - use-sync-external-store
+
dependencies:
react: 18.3.1
react-compiler-runtime: 19.1.0-rc.1([email protected])
react-dom: 18.3.1([email protected])
@@ -19823,10 +19837,25 @@ snapshots:
- graphql
- graphql-ws
dependencies:
+ react: 18.3.1
+ react-compiler-runtime: 19.1.0-rc.1([email protected])
+ react-dom: 18.3.1([email protected])
+ transitivePeerDependencies:
+ - '@types/node'
+ - '@types/react'
+ - graphql
+ - graphql-ws
+ - immer
+ - use-sync-external-store
+
+ dependencies:
'@radix-ui/react-dropdown-menu': 2.1.16(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
@@ -19834,68 +19863,73 @@ snapshots:
'@types/codemirror': 5.60.10
clsx: 1.2.1
codemirror: 5.65.15
- codemirror-graphql: 2.0.10(@codemirror/[email protected])([email protected])([email protected])
+ codemirror-graphql: 2.2.1(@codemirror/[email protected])([email protected])([email protected])
copy-to-clipboard: 3.3.3
+ get-value: 3.0.1
graphql: 16.11.0
- graphql-language-service: 5.2.0([email protected])
- markdown-it: 12.3.2
+ graphql-language-service: 5.3.1([email protected])
+ markdown-it: 14.1.1
react: 18.3.1
+ react-compiler-runtime: 19.1.0-rc.1([email protected])
react-dom: 18.3.1([email protected])
set-value: 4.1.0
transitivePeerDependencies:
- '@codemirror/language'
+ - '@emotion/is-prop-valid'
- '@types/node'
- '@types/react'
- '@types/react-dom'
- graphql-ws
dependencies:
'@radix-ui/react-dropdown-menu': 2.1.16(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
'@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
- '@types/codemirror': 5.60.10
clsx: 1.2.1
- codemirror: 5.65.15
- codemirror-graphql: 2.2.1(@codemirror/[email protected])([email protected])([email protected])
- copy-to-clipboard: 3.3.3
get-value: 3.0.1
graphql: 16.11.0
- graphql-language-service: 5.3.1([email protected])
+ graphql-language-service: 5.5.0([email protected])
+ jsonc-parser: 3.3.1
markdown-it: 14.1.1
+ monaco-editor: 0.52.2
+ prettier: 3.8.1
react: 18.3.1
react-compiler-runtime: 19.1.0-rc.1([email protected])
react-dom: 18.3.1([email protected])
set-value: 4.1.0
transitivePeerDependencies:
- - '@codemirror/language'
- '@emotion/is-prop-valid'
- '@types/node'
- '@types/react'
- '@types/react-dom'
- graphql-ws
+ - immer
+ - use-sync-external-store
dependencies:
'@n1ru4l/push-pull-async-iterable-iterator': 3.2.0
graphql: 16.11.0
meros: 1.3.0(@types/[email protected])
optionalDependencies:
+ graphql-ws: 5.14.1([email protected])
transitivePeerDependencies:
- '@types/node'
dependencies:
'@n1ru4l/push-pull-async-iterable-iterator': 3.2.0
graphql: 16.11.0
meros: 1.3.0(@types/[email protected])
optionalDependencies:
- graphql-ws: 5.14.1([email protected])
transitivePeerDependencies:
- '@types/node'
@@ -20398,12 +20432,6 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
- dependencies:
- client-only: 0.0.1
- react: 18.3.1
- react-dom: 18.3.1([email protected])
-
dependencies:
'@floating-ui/react': 0.26.28([email protected]([email protected]))([email protected])
@@ -20993,41 +21021,6 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
- '@motionone/[email protected]':
- dependencies:
- '@motionone/easing': 10.16.3
- '@motionone/types': 10.16.3
- '@motionone/utils': 10.16.3
- tslib: 2.8.1
-
- '@motionone/[email protected]':
- dependencies:
- '@motionone/animation': 10.16.3
- '@motionone/generators': 10.16.4
- '@motionone/types': 10.16.3
- '@motionone/utils': 10.16.3
- hey-listen: 1.0.8
- tslib: 2.8.1
-
- '@motionone/[email protected]':
- dependencies:
- '@motionone/utils': 10.16.3
- tslib: 2.8.1
-
- '@motionone/[email protected]':
- dependencies:
- '@motionone/types': 10.16.3
- '@motionone/utils': 10.16.3
- tslib: 2.8.1
-
- '@motionone/[email protected]': {}
-
- '@motionone/[email protected]':
- dependencies:
- '@motionone/types': 10.16.3
- hey-listen: 1.0.8
- tslib: 2.8.1
-
dependencies:
'@open-draft/deferred-promise': 2.2.0
@@ -23887,7 +23880,7 @@ snapshots:
- supports-color
- webpack
dependencies:
'@opentelemetry/api': 1.9.0
'@opentelemetry/semantic-conventions': 1.38.0
@@ -25203,11 +25196,11 @@ snapshots:
dependencies:
'@types/eslint': 9.6.1
- '@types/estree': 1.0.8
+ '@types/estree': 1.0.5
dependencies:
- '@types/estree': 1.0.8
+ '@types/estree': 1.0.5
'@types/json-schema': 7.0.15
@@ -25318,6 +25311,7 @@ snapshots:
dependencies:
undici-types: 7.19.2
+ optional: true
dependencies:
@@ -26069,9 +26063,9 @@ snapshots:
optionalDependencies:
ajv: 8.20.0
dependencies:
- ajv: 6.14.0
+ ajv: 6.15.0
dependencies:
@@ -26947,14 +26941,6 @@ snapshots:
- dependencies:
- '@codemirror/language': 6.11.0
- '@types/codemirror': 0.0.90
- codemirror: 5.65.15
- graphql: 16.11.0
- graphql-language-service: 5.2.0([email protected])
-
dependencies:
'@codemirror/language': 6.11.0
@@ -27900,8 +27886,6 @@ snapshots:
graceful-fs: 4.2.11
tapable: 2.3.3
-
@@ -28896,32 +28880,25 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
- motion-dom: 12.9.4
- motion-utils: 12.9.4
+ motion-dom: 12.38.0
+ motion-utils: 12.36.0
tslib: 2.8.1
optionalDependencies:
'@emotion/is-prop-valid': 1.4.0
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
- '@motionone/dom': 10.12.0
- framesync: 6.0.1
- hey-listen: 1.0.8
- popmotion: 11.0.3
- react: 18.3.1
- react-dom: 18.3.1([email protected])
- style-value-types: 5.0.0
+ motion-dom: 12.9.4
+ motion-utils: 12.9.4
tslib: 2.8.1
optionalDependencies:
- '@emotion/is-prop-valid': 0.8.8
-
- dependencies:
- tslib: 2.8.1
+ '@emotion/is-prop-valid': 1.4.0
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
@@ -29174,6 +29151,24 @@ snapshots:
- '@types/react-dom'
- graphql-ws
+ dependencies:
+ graphql: 16.11.0
+ react: 18.3.1
+ react-compiler-runtime: 19.1.0-rc.1([email protected])
+ react-dom: 18.3.1([email protected])
+ transitivePeerDependencies:
+ - '@emotion/is-prop-valid'
+ - '@types/node'
+ - '@types/react'
+ - '@types/react-dom'
+ - graphql-ws
+ - immer
+ - use-sync-external-store
+
dependencies:
'@graphql-tools/graphql-file-loader': 8.0.19([email protected])
@@ -29196,13 +29191,14 @@ snapshots:
- uWebSockets.js
- utf-8-validate
dependencies:
+ debounce-promise: 3.1.2
graphql: 16.11.0
nullthrows: 1.1.1
vscode-languageserver-types: 3.17.5
dependencies:
debounce-promise: 3.1.2
graphql: 16.11.0
@@ -29522,8 +29518,6 @@ snapshots:
-
@@ -30124,7 +30118,7 @@ snapshots:
dependencies:
- '@types/node': 25.6.0
+ '@types/node': 22.13.14
merge-stream: 2.0.0
supports-color: 8.1.1
@@ -30255,6 +30249,8 @@ snapshots:
+
dependencies:
universalify: 2.0.0
@@ -30427,10 +30423,6 @@ snapshots:
- dependencies:
- uc.micro: 1.0.6
-
dependencies:
uc.micro: 2.1.0
@@ -30687,14 +30679,6 @@ snapshots:
- dependencies:
- argparse: 2.0.1
- entities: 2.1.0
- linkify-it: 3.0.3
- mdurl: 1.0.1
- uc.micro: 1.0.6
-
dependencies:
argparse: 2.0.1
@@ -31090,8 +31074,6 @@ snapshots:
-
@@ -31890,6 +31872,14 @@ snapshots:
dompurify: 3.4.0
marked: 14.0.0
+ dependencies:
+ graphql: 16.11.0
+ graphql-language-service: 5.5.0([email protected])
+ monaco-editor: 0.52.2
+ picomatch-browser: 2.2.6
+ prettier: 3.8.1
+
@@ -31906,12 +31896,18 @@ snapshots:
dependencies:
motion-utils: 11.18.1
+ dependencies:
+ motion-utils: 12.36.0
+
dependencies:
motion-utils: 12.9.4
+
@@ -32386,7 +32382,7 @@ snapshots:
mitt: 3.0.1
dependencies:
'@standard-schema/spec': 1.0.0
react: 18.3.1
@@ -33149,6 +33145,8 @@ snapshots:
+
@@ -33194,13 +33192,6 @@ snapshots:
dependencies:
'@babel/runtime': 7.26.10
- dependencies:
- framesync: 6.0.1
- hey-listen: 1.0.8
- style-value-types: 5.0.0
- tslib: 2.8.1
-
@@ -34546,8 +34537,8 @@ snapshots:
dependencies:
'@types/json-schema': 7.0.15
- ajv: 6.14.0
- ajv-keywords: 3.5.2([email protected])
+ ajv: 6.15.0
+ ajv-keywords: 3.5.2([email protected])
dependencies:
@@ -35312,11 +35303,6 @@ snapshots:
dependencies:
inline-style-parser: 0.2.4
- dependencies:
- hey-listen: 1.0.8
- tslib: 2.8.1
-
dependencies:
'@emotion/is-prop-valid': 1.4.0
@@ -35759,8 +35745,6 @@ snapshots:
-
@@ -35798,7 +35782,8 @@ snapshots:
+ optional: true
@@ -36969,6 +36954,13 @@ snapshots:
immer: 10.1.1
react: 18.3.1
+ optionalDependencies:
+ '@types/react': 18.3.3
+ immer: 10.1.1
+ react: 18.3.1
+ use-sync-external-store: 1.6.0([email protected])
+