@oferitz/graphiq 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +210 -0
- package/dist/components/GraphiQ.d.ts +3 -0
- package/dist/components/GraphiQ.d.ts.map +1 -0
- package/dist/components/GraphiQProvider.d.ts +3 -0
- package/dist/components/GraphiQProvider.d.ts.map +1 -0
- package/dist/components/editor/HeadersEditor.d.ts +6 -0
- package/dist/components/editor/HeadersEditor.d.ts.map +1 -0
- package/dist/components/editor/QueryEditor.d.ts +6 -0
- package/dist/components/editor/QueryEditor.d.ts.map +1 -0
- package/dist/components/editor/ResponseViewer.d.ts +6 -0
- package/dist/components/editor/ResponseViewer.d.ts.map +1 -0
- package/dist/components/editor/VariablesEditor.d.ts +6 -0
- package/dist/components/editor/VariablesEditor.d.ts.map +1 -0
- package/dist/components/editor/use-codemirror.d.ts +15 -0
- package/dist/components/editor/use-codemirror.d.ts.map +1 -0
- package/dist/components/explorer/QueryExplorer.d.ts +6 -0
- package/dist/components/explorer/QueryExplorer.d.ts.map +1 -0
- package/dist/components/history/QueryHistory.d.ts +6 -0
- package/dist/components/history/QueryHistory.d.ts.map +1 -0
- package/dist/components/schema/SchemaExplorer.d.ts +6 -0
- package/dist/components/schema/SchemaExplorer.d.ts.map +1 -0
- package/dist/components/sidebar/Sidebar.d.ts +10 -0
- package/dist/components/sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/tabs/Tab.d.ts +10 -0
- package/dist/components/tabs/Tab.d.ts.map +1 -0
- package/dist/components/tabs/TabBar.d.ts +6 -0
- package/dist/components/tabs/TabBar.d.ts.map +1 -0
- package/dist/components/toolbar/ExecuteButton.d.ts +9 -0
- package/dist/components/toolbar/ExecuteButton.d.ts.map +1 -0
- package/dist/components/toolbar/PrettifyButton.d.ts +7 -0
- package/dist/components/toolbar/PrettifyButton.d.ts.map +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +7 -0
- package/dist/components/toolbar/Toolbar.d.ts.map +1 -0
- package/dist/components/ui/Resizable.d.ts +13 -0
- package/dist/components/ui/Resizable.d.ts.map +1 -0
- package/dist/graphiq.cjs +28 -0
- package/dist/graphiq.cjs.map +1 -0
- package/dist/graphiq.js +20903 -0
- package/dist/graphiq.js.map +1 -0
- package/dist/hooks/use-graphiq.d.ts +18 -0
- package/dist/hooks/use-graphiq.d.ts.map +1 -0
- package/dist/hooks/use-query.d.ts +8 -0
- package/dist/hooks/use-query.d.ts.map +1 -0
- package/dist/hooks/use-schema.d.ts +6 -0
- package/dist/hooks/use-schema.d.ts.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/fetcher.d.ts +3 -0
- package/dist/lib/fetcher.d.ts.map +1 -0
- package/dist/lib/formatter.d.ts +2 -0
- package/dist/lib/formatter.d.ts.map +1 -0
- package/dist/lib/introspection.d.ts +4 -0
- package/dist/lib/introspection.d.ts.map +1 -0
- package/dist/lib/storage.d.ts +3 -0
- package/dist/lib/storage.d.ts.map +1 -0
- package/dist/stores/create-store.d.ts +19 -0
- package/dist/stores/create-store.d.ts.map +1 -0
- package/dist/stores/editor-store.d.ts +11 -0
- package/dist/stores/editor-store.d.ts.map +1 -0
- package/dist/stores/execution-store.d.ts +12 -0
- package/dist/stores/execution-store.d.ts.map +1 -0
- package/dist/stores/history-store.d.ts +10 -0
- package/dist/stores/history-store.d.ts.map +1 -0
- package/dist/stores/schema-store.d.ts +11 -0
- package/dist/stores/schema-store.d.ts.map +1 -0
- package/dist/stores/tabs-store.d.ts +11 -0
- package/dist/stores/tabs-store.d.ts.map +1 -0
- package/dist/stores/ui-store.d.ts +8 -0
- package/dist/stores/ui-store.d.ts.map +1 -0
- package/dist/style.css +3 -0
- package/dist/styles/codemirror-theme.d.ts +8 -0
- package/dist/styles/codemirror-theme.d.ts.map +1 -0
- package/dist/styles/variants.d.ts +81 -0
- package/dist/styles/variants.d.ts.map +1 -0
- package/dist/types/fetcher.d.ts +22 -0
- package/dist/types/fetcher.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/plugin.d.ts +15 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/props.d.ts +50 -0
- package/dist/types/props.d.ts.map +1 -0
- package/dist/types/store.d.ts +23 -0
- package/dist/types/store.d.ts.map +1 -0
- package/package.json +100 -0
- package/src/styles/animations.css +35 -0
- package/src/styles/base.css +193 -0
- package/src/styles/codemirror-theme.ts +46 -0
- package/src/styles/variants.ts +25 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function useGraphiQ(): {
|
|
2
|
+
query: string;
|
|
3
|
+
variables: string;
|
|
4
|
+
headers: string;
|
|
5
|
+
setQuery: (query: string) => void;
|
|
6
|
+
setVariables: (variables: string) => void;
|
|
7
|
+
setHeaders: (headers: string) => void;
|
|
8
|
+
prettify: () => void;
|
|
9
|
+
schema: import("graphql").GraphQLSchema | null;
|
|
10
|
+
response: string | null;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
error: Error | null;
|
|
13
|
+
duration: number | null;
|
|
14
|
+
activeTab: import("..").TabType;
|
|
15
|
+
tabs: import("..").TabType[];
|
|
16
|
+
};
|
|
17
|
+
export declare function useExecute(endpoint: string, headers?: Record<string, string>): () => Promise<void>;
|
|
18
|
+
//# sourceMappingURL=use-graphiq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-graphiq.d.ts","sourceRoot":"","sources":["../../src/hooks/use-graphiq.ts"],"names":[],"mappings":"AAKA,wBAAgB,UAAU;;;;;;;;;;;;;;;EAuCzB;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,uBAkC5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-query.d.ts","sourceRoot":"","sources":["../../src/hooks/use-query.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ;;;;;;EAUvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-schema.d.ts","sourceRoot":"","sources":["../../src/hooks/use-schema.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS;;;;EAQxB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./styles/base.css";
|
|
2
|
+
import "./styles/animations.css";
|
|
3
|
+
export { GraphiQ } from "./components/GraphiQ";
|
|
4
|
+
export { GraphiQProvider } from "./components/GraphiQProvider";
|
|
5
|
+
export { QueryEditor } from "./components/editor/QueryEditor";
|
|
6
|
+
export { VariablesEditor } from "./components/editor/VariablesEditor";
|
|
7
|
+
export { HeadersEditor } from "./components/editor/HeadersEditor";
|
|
8
|
+
export { ResponseViewer } from "./components/editor/ResponseViewer";
|
|
9
|
+
export { QueryExplorer } from "./components/explorer/QueryExplorer";
|
|
10
|
+
export { SchemaExplorer } from "./components/schema/SchemaExplorer";
|
|
11
|
+
export { QueryHistory } from "./components/history/QueryHistory";
|
|
12
|
+
export { Toolbar } from "./components/toolbar/Toolbar";
|
|
13
|
+
export { ExecuteButton } from "./components/toolbar/ExecuteButton";
|
|
14
|
+
export { PrettifyButton } from "./components/toolbar/PrettifyButton";
|
|
15
|
+
export { TabBar } from "./components/tabs/TabBar";
|
|
16
|
+
export { Tab } from "./components/tabs/Tab";
|
|
17
|
+
export { Sidebar } from "./components/sidebar/Sidebar";
|
|
18
|
+
export { Resizable } from "./components/ui/Resizable";
|
|
19
|
+
export { useGraphiQ, useExecute } from "./hooks/use-graphiq";
|
|
20
|
+
export { useSchema } from "./hooks/use-schema";
|
|
21
|
+
export { useQuery } from "./hooks/use-query";
|
|
22
|
+
export { cn } from "./lib/cn";
|
|
23
|
+
export { graphiqVariants } from "./styles/variants";
|
|
24
|
+
export type { GraphiQProps, GraphiQProviderProps, GraphiQSlots, GraphiQFetcher, FetcherParams, FetcherResult, FetcherResponse, FetcherError, Plugin, PluginContext, Tab as TabType, StorageAPI, HistoryEntry, } from "./types";
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,YAAY,EACV,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EACf,YAAY,EACZ,MAAM,EACN,aAAa,EACb,GAAG,IAAI,OAAO,EACd,UAAU,EACV,YAAY,GACb,MAAM,SAAS,CAAC"}
|
package/dist/lib/cn.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/lib/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../src/lib/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkC,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACtC,cAAc,CA0BhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/lib/formatter.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspection.d.ts","sourceRoot":"","sources":["../../src/lib/introspection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAsB,MAAM,SAAS,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAsB,WAAW,CAC/B,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,aAAa,CAAC,CAaxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/lib/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAc9D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoreApi } from "zustand";
|
|
2
|
+
import type { EditorState } from "./editor-store";
|
|
3
|
+
import type { ExecutionState } from "./execution-store";
|
|
4
|
+
import type { HistoryState } from "./history-store";
|
|
5
|
+
import type { SchemaState } from "./schema-store";
|
|
6
|
+
import type { TabsState } from "./tabs-store";
|
|
7
|
+
import type { UIState } from "./ui-store";
|
|
8
|
+
export interface GraphiQStores {
|
|
9
|
+
editor: StoreApi<EditorState>;
|
|
10
|
+
schema: StoreApi<SchemaState>;
|
|
11
|
+
execution: StoreApi<ExecutionState>;
|
|
12
|
+
tabs: StoreApi<TabsState>;
|
|
13
|
+
history: StoreApi<HistoryState>;
|
|
14
|
+
ui: StoreApi<UIState>;
|
|
15
|
+
}
|
|
16
|
+
export declare const GraphiQContext: import("react").Context<GraphiQStores | null>;
|
|
17
|
+
export declare function useGraphiQContext(): GraphiQStores;
|
|
18
|
+
export declare function useGraphiQStore<T, U>(selector: (stores: GraphiQStores) => StoreApi<T>, storeSelector: (state: T) => U): U;
|
|
19
|
+
//# sourceMappingURL=create-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-store.d.ts","sourceRoot":"","sources":["../../src/stores/create-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC9B,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC9B,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IACpC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC1B,OAAO,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAChC,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,+CAA4C,CAAC;AAExE,wBAAgB,iBAAiB,IAAI,aAAa,CAQjD;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAClC,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,EAChD,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAC7B,CAAC,CAIH"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface EditorState {
|
|
2
|
+
query: string;
|
|
3
|
+
variables: string;
|
|
4
|
+
headers: string;
|
|
5
|
+
setQuery: (query: string) => void;
|
|
6
|
+
setVariables: (variables: string) => void;
|
|
7
|
+
setHeaders: (headers: string) => void;
|
|
8
|
+
prettify: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createEditorStore(defaultQuery?: string): import("zustand").StoreApi<EditorState>;
|
|
11
|
+
//# sourceMappingURL=editor-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-store.d.ts","sourceRoot":"","sources":["../../src/stores/editor-store.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,YAAY,CAAC,EAAE,MAAM,2CAWtD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FetcherParams, GraphiQFetcher } from "../types/fetcher";
|
|
2
|
+
export interface ExecutionState {
|
|
3
|
+
response: string | null;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error: Error | null;
|
|
6
|
+
duration: number | null;
|
|
7
|
+
abortController: AbortController | null;
|
|
8
|
+
execute: (fetcher: GraphiQFetcher, params: FetcherParams) => Promise<void>;
|
|
9
|
+
cancel: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function createExecutionStore(): import("zustand").StoreApi<ExecutionState>;
|
|
12
|
+
//# sourceMappingURL=execution-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-store.d.ts","sourceRoot":"","sources":["../../src/stores/execution-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAmB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvF,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,oBAAoB,+CA8CnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HistoryEntry } from "../types/store";
|
|
2
|
+
export interface HistoryState {
|
|
3
|
+
entries: HistoryEntry[];
|
|
4
|
+
addEntry: (entry: Omit<HistoryEntry, "id" | "timestamp" | "favorite">) => void;
|
|
5
|
+
removeEntry: (id: string) => void;
|
|
6
|
+
toggleFavorite: (id: string) => void;
|
|
7
|
+
clearHistory: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function createHistoryStore(): import("zustand").StoreApi<HistoryState>;
|
|
10
|
+
//# sourceMappingURL=history-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-store.d.ts","sourceRoot":"","sources":["../../src/stores/history-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC,KAAK,IAAI,CAAC;IAC/E,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAID,wBAAgB,kBAAkB,6CAiCjC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GraphQLSchema } from "graphql";
|
|
2
|
+
import type { GraphiQFetcher } from "../types/fetcher";
|
|
3
|
+
export interface SchemaState {
|
|
4
|
+
schema: GraphQLSchema | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
error: Error | null;
|
|
7
|
+
fetchSchema: (fetcher: GraphiQFetcher) => Promise<void>;
|
|
8
|
+
setSchema: (schema: GraphQLSchema) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createSchemaStore(initialSchema?: GraphQLSchema): import("zustand").StoreApi<SchemaState>;
|
|
11
|
+
//# sourceMappingURL=schema-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-store.d.ts","sourceRoot":"","sources":["../../src/stores/schema-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,SAAS,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,iBAAiB,CAAC,aAAa,CAAC,EAAE,aAAa,2CAmB9D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Tab } from "../types/store";
|
|
2
|
+
export interface TabsState {
|
|
3
|
+
tabs: Tab[];
|
|
4
|
+
activeTabId: string;
|
|
5
|
+
addTab: () => void;
|
|
6
|
+
removeTab: (id: string) => void;
|
|
7
|
+
setActiveTab: (id: string) => void;
|
|
8
|
+
updateTab: (id: string, patch: Partial<Tab>) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createTabsStore(defaultTabs?: Tab[]): import("zustand").StoreApi<TabsState>;
|
|
11
|
+
//# sourceMappingURL=tabs-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-store.d.ts","sourceRoot":"","sources":["../../src/stores/tabs-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;CACtD;AAgBD,wBAAgB,eAAe,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,yCAqClD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface UIState {
|
|
2
|
+
activeSidebarPanel: string | null;
|
|
3
|
+
editorToolsTab: "variables" | "headers";
|
|
4
|
+
toggleSidebarPanel: (panel: string) => void;
|
|
5
|
+
setEditorToolsTab: (tab: "variables" | "headers") => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function createUIStore(): import("zustand").StoreApi<UIState>;
|
|
8
|
+
//# sourceMappingURL=ui-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-store.d.ts","sourceRoot":"","sources":["../../src/stores/ui-store.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;IACxC,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iBAAiB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;CAC3D;AAED,wBAAgB,aAAa,wCAW5B"}
|
package/dist/style.css
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-indigo-400:#7d87ff;--color-indigo-500:#625fff;--color-zinc-800:#27272a;--color-zinc-900:#18181b;--color-zinc-950:#09090b;--color-black:#000;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--font-weight-medium:500;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-indigo-400:lab(59.866% 22.4834 -64.4485);--color-indigo-500:lab(48.295% 38.3129 -81.9673);--color-zinc-800:lab(15.7305% .613764 -2.16959);--color-zinc-900:lab(8.30603% .618205 -2.16572);--color-zinc-950:lab(2.51107% .242703 -.886115)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.top-1\/2{top:50%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.z-10{z-index:10}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-auto{margin-right:auto}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-auto{margin-left:auto}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline-flex{display:inline-flex}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-\[var\(--gq-toolbar-height\)\]{height:var(--gq-toolbar-height)}.h-full{height:100%}.h-px{height:1px}.w-1\/4{width:25%}.w-2{width:calc(var(--spacing) * 2)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-full{width:100%}.w-px{width:1px}.max-w-\[80px\]{max-width:80px}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-90{rotate:90deg}.animate-\[gq-shimmer_1s_ease-in-out_infinite\]{animation:1s ease-in-out infinite gq-shimmer}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-\[2px\]{border-radius:2px}.rounded-\[3px\]{border-radius:3px}.rounded-gq{border-radius:var(--gq-radius)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-gq-border{border-color:var(--gq-border)}.border-zinc-800{border-color:var(--color-zinc-800)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-gq-accent{background-color:var(--gq-accent)}.bg-gq-accent-subtle{background-color:var(--gq-accent-subtle)}.bg-gq-bg{background-color:var(--gq-bg)}.bg-gq-bg-secondary{background-color:var(--gq-bg-secondary)}.bg-gq-border{background-color:var(--gq-border)}.bg-gq-error{background-color:var(--gq-error)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-zinc-950{background-color:var(--color-zinc-950)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-3{padding:calc(var(--spacing) * 3)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-\[2px\]{padding-block:2px}.text-left{text-align:left}.font-gq-mono{font-family:var(--gq-font-mono)}.font-gq-sans{font-family:var(--gq-font-sans)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-gq-accent{color:var(--gq-accent)}.text-gq-bg{color:var(--gq-bg)}.text-gq-error{color:var(--gq-error)}.text-gq-info{color:var(--gq-info)}.text-gq-text{color:var(--gq-text)}.text-gq-text-secondary{color:var(--gq-text-secondary)}.text-gq-text-tertiary{color:var(--gq-text-tertiary)}.text-gq-warning{color:var(--gq-warning)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\!filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.group-hover\:flex:is(:where(.group):hover *){display:flex}.group-hover\:text-gq-text-secondary:is(:where(.group):hover *){color:var(--gq-text-secondary)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-gq-text-tertiary::placeholder{color:var(--gq-text-tertiary)}@media (hover:hover){.hover\:h-\[2px\]:hover{height:2px}.hover\:w-\[2px\]:hover{width:2px}.hover\:bg-gq-accent:hover{background-color:var(--gq-accent)}.hover\:bg-gq-accent-hover:hover{background-color:var(--gq-accent-hover)}.hover\:bg-gq-bg-elevated:hover{background-color:var(--gq-bg-elevated)}.hover\:bg-gq-error\/80:hover{background-color:var(--gq-error)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-gq-error\/80:hover{background-color:color-mix(in oklab, var(--gq-error) 80%, transparent)}}.hover\:bg-indigo-400:hover{background-color:var(--color-indigo-400)}.hover\:text-gq-error:hover{color:var(--gq-error)}.hover\:text-gq-text-secondary:hover{color:var(--gq-text-secondary)}.hover\:text-gq-warning:hover{color:var(--gq-warning)}}.focus\:border-gq-accent\/50:focus{border-color:var(--gq-accent)}@supports (color:color-mix(in lab, red, red)){.focus\:border-gq-accent\/50:focus{border-color:color-mix(in oklab, var(--gq-accent) 50%, transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:scale-\[0\.97\]:active{scale:.97}}:root{--gq-bg:#09090b;--gq-bg-secondary:#0f0f12;--gq-bg-tertiary:#18181b;--gq-bg-elevated:#1e1e23;--gq-text:#fafafa;--gq-text-secondary:#a1a1aa;--gq-text-tertiary:#52525b;--gq-accent:#2dd4bf;--gq-accent-hover:#5eead4;--gq-accent-muted:#134e4a;--gq-accent-subtle:#0d3330;--gq-success:#34d399;--gq-error:#f87171;--gq-warning:#fbbf24;--gq-info:#60a5fa;--gq-border:#1e1e23;--gq-border-active:#3f3f46;--gq-separator:#18181b;--gq-font-display:"DM Sans", system-ui, sans-serif;--gq-font-sans:"DM Sans", system-ui, sans-serif;--gq-font-mono:"Geist Mono", "JetBrains Mono", ui-monospace, monospace;--gq-panel-gap:1px;--gq-radius:4px;--gq-toolbar-height:36px;--gq-sidebar-width:40px;--gq-editor-font-size:13px;--gq-editor-line-height:1.6;--gq-syn-keyword:#2dd4bf;--gq-syn-type:#60a5fa;--gq-syn-field:#d4d4d8;--gq-syn-string:#a3e635;--gq-syn-number:#fbbf24;--gq-syn-comment:#3f3f46;--gq-syn-directive:#f472b6;--gq-syn-variable:#c084fc;--gq-syn-punctuation:#52525b;--gq-ease:cubic-bezier(.16, 1, .3, 1);--gq-duration-fast:.1s;--gq-duration-normal:.15s;--gq-duration-slow:.25s}.gq-root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.gq-root .cm-editor{background:var(--gq-bg-secondary);height:100%;color:var(--gq-text);font-size:var(--gq-editor-font-size)}.gq-root .cm-editor .cm-scroller{font-family:var(--gq-font-mono);line-height:var(--gq-editor-line-height)}.gq-root .cm-editor .cm-gutters{background:var(--gq-bg-secondary);border-right:1px solid var(--gq-border);color:var(--gq-text-tertiary);min-width:36px;font-size:11px}.gq-root .cm-editor .cm-activeLineGutter{color:var(--gq-text-secondary);background:0 0}.gq-root .cm-editor .cm-activeLine{background:#ffffff05}.gq-root .cm-editor .cm-cursor{border-left:1.5px solid var(--gq-accent)}.gq-root .cm-editor .cm-selectionBackground{background:var(--gq-accent-subtle)!important}.gq-root .cm-editor.cm-focused .cm-selectionBackground{background:var(--gq-accent-muted)!important}.gq-root .cm-editor .cm-tooltip{background:var(--gq-bg-elevated);border:1px solid var(--gq-border-active);border-radius:var(--gq-radius);color:var(--gq-text);font-size:12px;box-shadow:0 8px 24px #00000080}.gq-root .cm-editor .cm-tooltip-autocomplete ul li[aria-selected]{background:var(--gq-accent-subtle);color:var(--gq-accent)}.gq-root .cm-editor .cm-content{caret-color:var(--gq-accent);padding:8px 0}.gq-root .cm-editor .cm-line{padding:0 8px}.gq-root ::-webkit-scrollbar{width:6px;height:6px}.gq-root ::-webkit-scrollbar-track{background:0 0}.gq-root ::-webkit-scrollbar-thumb{background:var(--gq-border-active);border-radius:3px}.gq-root ::-webkit-scrollbar-thumb:hover{background:var(--gq-text-tertiary)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@keyframes gq-pulse{0%,to{opacity:1}50%{opacity:.7}}@keyframes gq-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes gq-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes gq-spin{to{transform:rotate(360deg)}}
|
|
3
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HighlightStyle } from "@codemirror/language";
|
|
2
|
+
/**
|
|
3
|
+
* GraphiQ syntax highlighting theme for CodeMirror 6.
|
|
4
|
+
* Uses CSS variables so consumers can customize colors.
|
|
5
|
+
*/
|
|
6
|
+
export declare const graphiqHighlightStyle: HighlightStyle;
|
|
7
|
+
export declare const graphiqSyntaxHighlighting: import("@codemirror/state").Extension;
|
|
8
|
+
//# sourceMappingURL=codemirror-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codemirror-theme.d.ts","sourceRoot":"","sources":["../../src/styles/codemirror-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAsB,MAAM,sBAAsB,CAAC;AAG1E;;;GAGG;AACH,eAAO,MAAM,qBAAqB,gBAoChC,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAA4C,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export declare const graphiqVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
4
|
+
response?: import("tailwind-merge").ClassNameValue;
|
|
5
|
+
tabs?: import("tailwind-merge").ClassNameValue;
|
|
6
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
7
|
+
sidebar?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
sidebarPanel?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
editor?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
toolbar?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
executeButton?: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
variablesEditor?: import("tailwind-merge").ClassNameValue;
|
|
13
|
+
headersEditor?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
[x: string]: {
|
|
18
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
19
|
+
response?: import("tailwind-merge").ClassNameValue;
|
|
20
|
+
tabs?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
22
|
+
sidebar?: import("tailwind-merge").ClassNameValue;
|
|
23
|
+
sidebarPanel?: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
editor?: import("tailwind-merge").ClassNameValue;
|
|
25
|
+
toolbar?: import("tailwind-merge").ClassNameValue;
|
|
26
|
+
executeButton?: import("tailwind-merge").ClassNameValue;
|
|
27
|
+
variablesEditor?: import("tailwind-merge").ClassNameValue;
|
|
28
|
+
headersEditor?: import("tailwind-merge").ClassNameValue;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
} | {}, {
|
|
32
|
+
root: string;
|
|
33
|
+
sidebar: string;
|
|
34
|
+
sidebarPanel: string;
|
|
35
|
+
editor: string;
|
|
36
|
+
toolbar: string;
|
|
37
|
+
response: string;
|
|
38
|
+
executeButton: string;
|
|
39
|
+
tabs: string;
|
|
40
|
+
variablesEditor: string;
|
|
41
|
+
headersEditor: string;
|
|
42
|
+
}, undefined, {
|
|
43
|
+
[key: string]: {
|
|
44
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
45
|
+
response?: import("tailwind-merge").ClassNameValue;
|
|
46
|
+
tabs?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
48
|
+
sidebar?: import("tailwind-merge").ClassNameValue;
|
|
49
|
+
sidebarPanel?: import("tailwind-merge").ClassNameValue;
|
|
50
|
+
editor?: import("tailwind-merge").ClassNameValue;
|
|
51
|
+
toolbar?: import("tailwind-merge").ClassNameValue;
|
|
52
|
+
executeButton?: import("tailwind-merge").ClassNameValue;
|
|
53
|
+
variablesEditor?: import("tailwind-merge").ClassNameValue;
|
|
54
|
+
headersEditor?: import("tailwind-merge").ClassNameValue;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
} | {}, {
|
|
58
|
+
root: string;
|
|
59
|
+
sidebar: string;
|
|
60
|
+
sidebarPanel: string;
|
|
61
|
+
editor: string;
|
|
62
|
+
toolbar: string;
|
|
63
|
+
response: string;
|
|
64
|
+
executeButton: string;
|
|
65
|
+
tabs: string;
|
|
66
|
+
variablesEditor: string;
|
|
67
|
+
headersEditor: string;
|
|
68
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
69
|
+
root: string;
|
|
70
|
+
sidebar: string;
|
|
71
|
+
sidebarPanel: string;
|
|
72
|
+
editor: string;
|
|
73
|
+
toolbar: string;
|
|
74
|
+
response: string;
|
|
75
|
+
executeButton: string;
|
|
76
|
+
tabs: string;
|
|
77
|
+
variablesEditor: string;
|
|
78
|
+
headersEditor: string;
|
|
79
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
80
|
+
export type GraphiQVariantSlots = keyof ReturnType<typeof graphiqVariants>;
|
|
81
|
+
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/styles/variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAoB1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface FetcherParams {
|
|
2
|
+
query: string;
|
|
3
|
+
variables?: Record<string, unknown>;
|
|
4
|
+
operationName?: string;
|
|
5
|
+
headers?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export interface FetcherError {
|
|
8
|
+
message: string;
|
|
9
|
+
locations?: Array<{
|
|
10
|
+
line: number;
|
|
11
|
+
column: number;
|
|
12
|
+
}>;
|
|
13
|
+
path?: Array<string | number>;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface FetcherResponse {
|
|
17
|
+
data?: unknown;
|
|
18
|
+
errors?: FetcherError[];
|
|
19
|
+
}
|
|
20
|
+
export type FetcherResult = FetcherResponse | AsyncIterableIterator<FetcherResponse>;
|
|
21
|
+
export type GraphiQFetcher = (params: FetcherParams, signal?: AbortSignal) => Promise<FetcherResult>;
|
|
22
|
+
//# sourceMappingURL=fetcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../src/types/fetcher.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpD,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GACrB,eAAe,GACf,qBAAqB,CAAC,eAAe,CAAC,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,CAC3B,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { FetcherParams, FetcherResult, GraphiQFetcher, FetcherError, FetcherResponse, } from "./fetcher";
|
|
2
|
+
export type { Plugin, PluginContext } from "./plugin";
|
|
3
|
+
export type { GraphiQProps, GraphiQProviderProps, GraphiQSlots, } from "./props";
|
|
4
|
+
export type { Tab, StorageAPI, HistoryEntry } from "./store";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,YAAY,EACZ,eAAe,GAChB,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,EACV,YAAY,EACZ,oBAAoB,EACpB,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GraphQLSchema } from "graphql";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export interface PluginContext {
|
|
4
|
+
schema: GraphQLSchema | null;
|
|
5
|
+
query: string;
|
|
6
|
+
variables: string;
|
|
7
|
+
execute: () => Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export interface Plugin {
|
|
10
|
+
name: string;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
title?: string;
|
|
13
|
+
content: (context: PluginContext) => React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/types/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,KAAK,CAAC,SAAS,CAAC;CACtD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { GraphQLSchema } from "graphql";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { GraphiQFetcher } from "./fetcher";
|
|
4
|
+
import type { Plugin } from "./plugin";
|
|
5
|
+
import type { StorageAPI, Tab } from "./store";
|
|
6
|
+
export interface GraphiQSlots {
|
|
7
|
+
root: string;
|
|
8
|
+
sidebar: string;
|
|
9
|
+
sidebarPanel: string;
|
|
10
|
+
editor: string;
|
|
11
|
+
toolbar: string;
|
|
12
|
+
response: string;
|
|
13
|
+
executeButton: string;
|
|
14
|
+
tabs: string;
|
|
15
|
+
variablesEditor: string;
|
|
16
|
+
headersEditor: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GraphiQProps {
|
|
19
|
+
endpoint: string;
|
|
20
|
+
headers?: Record<string, string>;
|
|
21
|
+
defaultQuery?: string;
|
|
22
|
+
schema?: GraphQLSchema;
|
|
23
|
+
fetcher?: GraphiQFetcher;
|
|
24
|
+
plugins?: Plugin[];
|
|
25
|
+
storage?: StorageAPI;
|
|
26
|
+
defaultTabs?: Tab[];
|
|
27
|
+
onEditQuery?: (query: string) => void;
|
|
28
|
+
onEditVariables?: (variables: string) => void;
|
|
29
|
+
onEditHeaders?: (headers: string) => void;
|
|
30
|
+
onExecute?: (params: {
|
|
31
|
+
query: string;
|
|
32
|
+
variables: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
showHistory?: boolean;
|
|
35
|
+
showSchemaExplorer?: boolean;
|
|
36
|
+
enableHeaders?: boolean;
|
|
37
|
+
classNames?: Partial<GraphiQSlots>;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface GraphiQProviderProps {
|
|
41
|
+
endpoint: string;
|
|
42
|
+
headers?: Record<string, string>;
|
|
43
|
+
defaultQuery?: string;
|
|
44
|
+
defaultTabs?: Tab[];
|
|
45
|
+
schema?: GraphQLSchema;
|
|
46
|
+
fetcher?: GraphiQFetcher;
|
|
47
|
+
storage?: StorageAPI;
|
|
48
|
+
children: React.ReactNode;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/types/props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface Tab {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
query: string;
|
|
5
|
+
variables: string;
|
|
6
|
+
headers: string;
|
|
7
|
+
response: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface StorageAPI {
|
|
10
|
+
getItem(key: string): string | null;
|
|
11
|
+
setItem(key: string, value: string): void;
|
|
12
|
+
removeItem(key: string): void;
|
|
13
|
+
}
|
|
14
|
+
export interface HistoryEntry {
|
|
15
|
+
id: string;
|
|
16
|
+
query: string;
|
|
17
|
+
variables: string;
|
|
18
|
+
headers: string;
|
|
19
|
+
operationName: string | null;
|
|
20
|
+
timestamp: number;
|
|
21
|
+
favorite: boolean;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/types/store.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|