From 261f3bdb77799009344aab4a60686b7186ebd3b0 Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Fri, 24 Apr 2026 14:17:38 -0700 Subject: Implement v0.4 subscriptions + v0.5 theming and plugin slots - SSE and WebSocket fetchers via graphql-sse and graphql-ws, returning AsyncIterable results - SessionStore.run consumes AsyncIterable streams with subscriptionMode "append" (timestamped) or "replace" and honors an AbortSignal for cancellation - Chrome CSS variables documented in styles/theme.scss with prefers-color-scheme light/dark gating and .graphiql-light override - Svelte 5 snippet slots on GraphiQL: toolbarExtras, tabExtras, resultFooter --- source/library/GraphiQL.svelte | 30 ++++++-- source/library/components/ResultViewer.svelte | 16 ++++- source/library/components/TabBar.svelte | 6 +- source/library/components/Toolbar.svelte | 4 ++ source/library/fetcher/sse.ts | 100 +++++++++++++++++++++++--- source/library/fetcher/websocket.ts | 97 ++++++++++++++++++++++--- source/library/index.ts | 9 ++- source/library/state/session.svelte.ts | 53 +++++++++++++- source/library/styles/theme.scss | 47 ++++++++++++ 9 files changed, 334 insertions(+), 28 deletions(-) create mode 100644 source/library/styles/theme.scss (limited to 'source') diff --git a/source/library/GraphiQL.svelte b/source/library/GraphiQL.svelte index 0a8f01a..329dd6f 100644 --- a/source/library/GraphiQL.svelte +++ b/source/library/GraphiQL.svelte @@ -1,7 +1,7 @@ @@ -15,7 +17,7 @@
Response
+ {#if footer} + + {/if}
diff --git a/source/library/components/TabBar.svelte b/source/library/components/TabBar.svelte index d87449d..9c34f20 100644 --- a/source/library/components/TabBar.svelte +++ b/source/library/components/TabBar.svelte @@ -1,9 +1,10 @@