From 8a59f92d031963e23ecc84b75feecf43eb4dd146 Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Fri, 24 Apr 2026 11:33:25 -0700 Subject: Initial commit: @eol/graphiql v0.3 Svelte 5 GraphiQL alternative for JSR. Covers: - HTTP fetcher with injectable fetch; SSE/WS stubs - Session store with tabs, auto-titling, persistence, rename - Operation detection via graphql parse(); Toolbar picker - CodeMirror 6 editor via cm6-graphql with theme prop - Light theme preset (hand-rolled EditorView.theme) - Doc explorer with breadcrumb nav and type guards - History panel with 100-entry cap, favorite pinning - Deno tests for operations, storage, and history eviction --- source/library/index.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 source/library/index.ts (limited to 'source/library/index.ts') diff --git a/source/library/index.ts b/source/library/index.ts new file mode 100644 index 0000000..5aecff1 --- /dev/null +++ b/source/library/index.ts @@ -0,0 +1,28 @@ + + + +/*** EXPORT ------------------------------------------- ***/ + +export { createHttpFetcher } from "./fetcher/http.ts"; +export { createLocalStorage, createMemoryStorage } from "./state/storage.ts"; +export { createSseFetcher } from "./fetcher/sse.ts"; +export { createWsFetcher } from "./fetcher/websocket.ts"; +export { default as GraphiQL } from "./GraphiQL.svelte"; +export { HistoryStore } from "./state/history.svelte.ts"; +export { lightTheme } from "./themes/light.ts"; +export { SchemaStore } from "./state/schema.svelte.ts"; +export { SessionStore } from "./state/session.svelte.ts"; + +export type { Extension } from "@codemirror/state"; + +export type { + Fetcher, + FetcherOptions, + FetcherRequest, + FetcherResult +} from "./fetcher/types.ts"; + +export type { HistoryEntry, HistoryInput } from "./state/history.svelte.ts"; +export type { OperationInfo } from "./graphql/operations.ts"; +export type { Storage } from "./state/storage.ts"; +export type { Tab, TabSeed } from "./state/session.svelte.ts"; -- cgit v1.2.3