@graphiql/plugin-history 0.1.0 → 0.1.1-canary-5d447953.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/dist/context.js CHANGED
@@ -3,7 +3,7 @@ import { c } from "react-compiler-runtime";
3
3
  import { useRef, useEffect, createContext, useContext } from "react";
4
4
  import { createStore, useStore } from "zustand";
5
5
  import { HistoryStore, StorageAPI } from "@graphiql/toolkit";
6
- import { useStorageContext, useExecutionContext, useEditorContext } from "@graphiql/react";
6
+ import { useStorage, useExecutionContext, useEditorContext } from "@graphiql/react";
7
7
  function createHistoryStore(storage, maxHistoryLength) {
8
8
  const historyStore = (
9
9
  // Fall back to a noop storage when the StorageContext is empty
@@ -52,7 +52,7 @@ const HistoryContextProvider = (t0) => {
52
52
  children
53
53
  } = t0;
54
54
  const maxHistoryLength = t1 === void 0 ? 20 : t1;
55
- const storage = useStorageContext();
55
+ const storage = useStorage();
56
56
  let t2;
57
57
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
58
58
  t2 = {
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../src/context.tsx"],"sourcesContent":["import {\n createContext,\n FC,\n ReactNode,\n RefObject,\n useContext,\n useEffect,\n useRef,\n} from 'react';\nimport { createStore, StoreApi, useStore } from 'zustand';\nimport { HistoryStore, QueryStoreItem, StorageAPI } from '@graphiql/toolkit';\nimport {\n useStorageContext,\n useExecutionContext,\n useEditorContext,\n} from '@graphiql/react';\n\nfunction createHistoryStore(\n storage: StorageAPI | null,\n maxHistoryLength: number,\n) {\n const historyStore =\n // Fall back to a noop storage when the StorageContext is empty\n new HistoryStore(storage || new StorageAPI(null), maxHistoryLength);\n\n return createStore<HistoryContextType>(set => ({\n items: historyStore.queries,\n actions: {\n addToHistory(operation) {\n historyStore.updateHistory(operation);\n const items = historyStore.queries;\n set({ items });\n },\n editLabel(operation, index) {\n historyStore.editLabel(operation, index);\n const items = historyStore.queries;\n set({ items });\n },\n toggleFavorite(operation) {\n historyStore.toggleFavorite(operation);\n const items = historyStore.queries;\n set({ items });\n },\n setActive: item => item,\n deleteFromHistory(item, clearFavorites) {\n historyStore.deleteHistory(item, clearFavorites);\n const items = historyStore.queries;\n set({ items });\n },\n },\n }));\n}\n\ntype HistoryContextType = {\n /**\n * The list of history items.\n */\n items: readonly QueryStoreItem[];\n actions: {\n /**\n * Add an operation to the history.\n * @param operation The operation that was executed, consisting of the query,\n * variables, headers, and operation name.\n */\n addToHistory(operation: {\n query?: string;\n variables?: string;\n headers?: string;\n operationName?: string;\n }): void;\n /**\n * Change the custom label of an item from the history.\n * @param args An object containing the label (`undefined` if it should be\n * unset) and properties that identify the history item that the label should\n * be applied to. (This can result in the label being applied to multiple\n * history items.)\n * @param index Index to edit. Without it, will look for the first index matching the\n * operation, which may lead to misleading results if multiple items have the same label\n */\n editLabel(\n args: {\n query?: string;\n variables?: string;\n headers?: string;\n operationName?: string;\n label?: string;\n favorite?: boolean;\n },\n index?: number,\n ): void;\n /**\n * Toggle the favorite state of an item from the history.\n * @param args An object containing the favorite state (`undefined` if it\n * should be unset) and properties that identify the history item that the\n * label should be applied to. (This can result in the label being applied\n * to multiple history items.)\n */\n toggleFavorite(args: {\n query?: string;\n variables?: string;\n headers?: string;\n operationName?: string;\n label?: string;\n favorite?: boolean;\n }): void;\n /**\n * Delete an operation from the history.\n * @param args The operation that was executed, consisting of the query,\n * variables, headers, and operation name.\n * @param clearFavorites This is only if you press the 'clear' button\n */\n deleteFromHistory(args: QueryStoreItem, clearFavorites?: boolean): void;\n /**\n * If you need to know when an item in history is set as active to customize\n * your application.\n */\n setActive(args: QueryStoreItem): void;\n };\n};\n\nconst HistoryContext = createContext<RefObject<\n StoreApi<HistoryContextType>\n> | null>(null);\n\ntype HistoryContextProviderProps = {\n children: ReactNode;\n /**\n * The maximum number of executed operations to store.\n * @default 20\n */\n maxHistoryLength?: number;\n};\n\n/**\n * The functions send the entire operation so users can customize their own application with\n * <HistoryContext.Provider value={customizedFunctions} /> and get access to the operation plus\n * any additional props they added for their needs (i.e., build their own functions that may save\n * to a backend instead of localStorage and might need an id property added to the QueryStoreItem)\n */\nexport const HistoryContextProvider: FC<HistoryContextProviderProps> = ({\n maxHistoryLength = 20,\n children,\n}) => {\n const storage = useStorageContext();\n const { isFetching } = useExecutionContext({ nonNull: true });\n const { tabs, activeTabIndex } = useEditorContext({ nonNull: true });\n const activeTab = tabs[activeTabIndex];\n const storeRef = useRef<StoreApi<HistoryContextType>>(null!);\n\n if (storeRef.current === null) {\n storeRef.current = createHistoryStore(storage, maxHistoryLength);\n }\n\n useEffect(() => {\n if (!isFetching) {\n return;\n }\n const { addToHistory } = storeRef.current.getState().actions;\n addToHistory({\n query: activeTab.query ?? undefined,\n variables: activeTab.variables ?? undefined,\n headers: activeTab.headers ?? undefined,\n operationName: activeTab.operationName ?? undefined,\n });\n }, [isFetching, activeTab]);\n\n return (\n <HistoryContext.Provider value={storeRef}>\n {children}\n </HistoryContext.Provider>\n );\n};\n\nfunction useHistoryStore<T>(selector: (state: HistoryContextType) => T): T {\n const store = useContext(HistoryContext);\n if (!store) {\n throw new Error('Missing `HistoryContextProvider` in the tree');\n }\n return useStore(store.current, selector);\n}\n\nexport const useHistory = () => useHistoryStore(state => state.items);\nexport const useHistoryActions = () => useHistoryStore(state => state.actions);\n"],"names":["createHistoryStore","storage","maxHistoryLength","historyStore","HistoryStore","StorageAPI","createStore","set","items","queries","actions","addToHistory","operation","updateHistory","editLabel","index","toggleFavorite","setActive","item","deleteFromHistory","clearFavorites","deleteHistory","HistoryContext","createContext","HistoryContextProvider","t0","$","_c","t1","children","undefined","useStorageContext","t2","Symbol","for","nonNull","isFetching","useExecutionContext","t3","tabs","activeTabIndex","useEditorContext","activeTab","storeRef","useRef","current","t4","t5","getState","query","variables","headers","operationName","useEffect","t6","useHistoryStore","selector","store","useContext","Error","useStore","useHistory","_temp","useHistoryActions","_temp2","state"],"mappings":";;;;;;AAiBA,SAASA,mBACPC,S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ChB,WAAAgB;AAAAhB,WAAAU;AAAAV,WAAAoB;AAAApB,WAAAqB;AAAAA,EAAAA,OAAA;AAAAD,SAAApB,EAAA,CAAA;AAAAqB,SAAArB,EAAA,CAAA;AAAA,EAAA;AAX1B2B,YAAUP,IAWPC,EAAuB;AAACO,MAAAA;AAAA5B,MAAAA,SAAAG,UAAA;AAGzByB,6BAAA,eAAA,UAAA,EAAgCX,OAAAA,UAC7Bd,UACH;AAA0BH,WAAAG;AAAAH,YAAA4B;AAAAA,EAAAA,OAAA;AAAAA,SAAA5B,EAAA,EAAA;AAAA,EAAA;AAF1B4B,SAAAA;AAE0B;AAI9B,SAAAC,gBAAAC,UAAA;AACEC,QAAAA,QAAcC,WAAApC,cAAyB;AAAE,MAAA,CACpCmC,OAAK;AAAAE,UAAAA,IAAAA,MACQ,8CAA8C;AAAA,EAAA;AAEzDC,SAAAA,SAASH,MAAKZ,SAAUW,QAAQ;AAAC;AAGnC,MAAMK,aAAaA,MAAA;AAAA,SAAMN,gBAAAO,KAAoC;AAAC;AAC9D,MAAMC,oBAAoBA,MAAA;AAAA,SAAMR,gBAAAS,MAAsC;AAAC;AADpD,SAAAF,MAAAG,OAAA;AAAA,SAA+BA,MAAKzD;AAAA;AAC7B,SAAAwD,OAAAC,OAAA;AAAA,SAA+BA,MAAKvD;AAAA;"}
1
+ {"version":3,"file":"context.js","sources":["../src/context.tsx"],"sourcesContent":["import {\n createContext,\n FC,\n ReactNode,\n RefObject,\n useContext,\n useEffect,\n useRef,\n} from 'react';\nimport { createStore, StoreApi, useStore } from 'zustand';\nimport { HistoryStore, QueryStoreItem, StorageAPI } from '@graphiql/toolkit';\nimport {\n useStorage,\n useExecutionContext,\n useEditorContext,\n} from '@graphiql/react';\n\nfunction createHistoryStore(\n storage: StorageAPI | null,\n maxHistoryLength: number,\n) {\n const historyStore =\n // Fall back to a noop storage when the StorageContext is empty\n new HistoryStore(storage || new StorageAPI(null), maxHistoryLength);\n\n return createStore<HistoryContextType>(set => ({\n items: historyStore.queries,\n actions: {\n addToHistory(operation) {\n historyStore.updateHistory(operation);\n const items = historyStore.queries;\n set({ items });\n },\n editLabel(operation, index) {\n historyStore.editLabel(operation, index);\n const items = historyStore.queries;\n set({ items });\n },\n toggleFavorite(operation) {\n historyStore.toggleFavorite(operation);\n const items = historyStore.queries;\n set({ items });\n },\n setActive: item => item,\n deleteFromHistory(item, clearFavorites) {\n historyStore.deleteHistory(item, clearFavorites);\n const items = historyStore.queries;\n set({ items });\n },\n },\n }));\n}\n\ntype HistoryContextType = {\n /**\n * The list of history items.\n */\n items: readonly QueryStoreItem[];\n actions: {\n /**\n * Add an operation to the history.\n * @param operation The operation that was executed, consisting of the query,\n * variables, headers, and operation name.\n */\n addToHistory(operation: {\n query?: string;\n variables?: string;\n headers?: string;\n operationName?: string;\n }): void;\n /**\n * Change the custom label of an item from the history.\n * @param args An object containing the label (`undefined` if it should be\n * unset) and properties that identify the history item that the label should\n * be applied to. (This can result in the label being applied to multiple\n * history items.)\n * @param index Index to edit. Without it, will look for the first index matching the\n * operation, which may lead to misleading results if multiple items have the same label\n */\n editLabel(\n args: {\n query?: string;\n variables?: string;\n headers?: string;\n operationName?: string;\n label?: string;\n favorite?: boolean;\n },\n index?: number,\n ): void;\n /**\n * Toggle the favorite state of an item from the history.\n * @param args An object containing the favorite state (`undefined` if it\n * should be unset) and properties that identify the history item that the\n * label should be applied to. (This can result in the label being applied\n * to multiple history items.)\n */\n toggleFavorite(args: {\n query?: string;\n variables?: string;\n headers?: string;\n operationName?: string;\n label?: string;\n favorite?: boolean;\n }): void;\n /**\n * Delete an operation from the history.\n * @param args The operation that was executed, consisting of the query,\n * variables, headers, and operation name.\n * @param clearFavorites This is only if you press the 'clear' button\n */\n deleteFromHistory(args: QueryStoreItem, clearFavorites?: boolean): void;\n /**\n * If you need to know when an item in history is set as active to customize\n * your application.\n */\n setActive(args: QueryStoreItem): void;\n };\n};\n\nconst HistoryContext = createContext<RefObject<\n StoreApi<HistoryContextType>\n> | null>(null);\n\ntype HistoryContextProviderProps = {\n children: ReactNode;\n /**\n * The maximum number of executed operations to store.\n * @default 20\n */\n maxHistoryLength?: number;\n};\n\n/**\n * The functions send the entire operation so users can customize their own application with\n * <HistoryContext.Provider value={customizedFunctions} /> and get access to the operation plus\n * any additional props they added for their needs (i.e., build their own functions that may save\n * to a backend instead of localStorage and might need an id property added to the QueryStoreItem)\n */\nexport const HistoryContextProvider: FC<HistoryContextProviderProps> = ({\n maxHistoryLength = 20,\n children,\n}) => {\n const storage = useStorage();\n const { isFetching } = useExecutionContext({ nonNull: true });\n const { tabs, activeTabIndex } = useEditorContext({ nonNull: true });\n const activeTab = tabs[activeTabIndex];\n const storeRef = useRef<StoreApi<HistoryContextType>>(null!);\n\n if (storeRef.current === null) {\n storeRef.current = createHistoryStore(storage, maxHistoryLength);\n }\n\n useEffect(() => {\n if (!isFetching) {\n return;\n }\n const { addToHistory } = storeRef.current.getState().actions;\n addToHistory({\n query: activeTab.query ?? undefined,\n variables: activeTab.variables ?? undefined,\n headers: activeTab.headers ?? undefined,\n operationName: activeTab.operationName ?? undefined,\n });\n }, [isFetching, activeTab]);\n\n return (\n <HistoryContext.Provider value={storeRef}>\n {children}\n </HistoryContext.Provider>\n );\n};\n\nfunction useHistoryStore<T>(selector: (state: HistoryContextType) => T): T {\n const store = useContext(HistoryContext);\n if (!store) {\n throw new Error('Missing `HistoryContextProvider` in the tree');\n }\n return useStore(store.current, selector);\n}\n\nexport const useHistory = () => useHistoryStore(state => state.items);\nexport const useHistoryActions = () => useHistoryStore(state => state.actions);\n"],"names":["createHistoryStore","storage","maxHistoryLength","historyStore","HistoryStore","StorageAPI","createStore","set","items","queries","actions","addToHistory","operation","updateHistory","editLabel","index","toggleFavorite","setActive","item","deleteFromHistory","clearFavorites","deleteHistory","HistoryContext","createContext","HistoryContextProvider","t0","$","_c","t1","children","undefined","useStorage","t2","Symbol","for","nonNull","isFetching","useExecutionContext","t3","tabs","activeTabIndex","useEditorContext","activeTab","storeRef","useRef","current","t4","t5","getState","query","variables","headers","operationName","useEffect","t6","useHistoryStore","selector","store","useContext","Error","useStore","useHistory","_temp","useHistoryActions","_temp2","state"],"mappings":";;;;;;AAiBA,SAASA,mBACPC,SACAC,kBACA;AACMC,QAAAA;AAAAA;AAAAA,IAEJ,IAAIC,aAAaH,WAAW,IAAII,WAAW,IAAI,GAAGH,gBAAgB;AAAA;AAEpE,SAAOI,YAAgCC,CAAQ,SAAA;AAAA,IAC7CC,OAAOL,aAAaM;AAAAA,IACpBC,SAAS;AAAA,MACPC,aAAaC,WAAW;AACtBT,qBAAaU,cAAcD,SAAS;AACpC,cAAMJ,QAAQL,aAAaM;AACvB,YAAA;AAAA,UAAED;AAAAA,QAAAA,CAAO;AAAA,MACf;AAAA,MACAM,UAAUF,WAAWG,OAAO;AACbD,qBAAAA,UAAUF,WAAWG,KAAK;AACvC,cAAMP,QAAQL,aAAaM;AACvB,YAAA;AAAA,UAAED;AAAAA,QAAAA,CAAO;AAAA,MACf;AAAA,MACAQ,eAAeJ,WAAW;AACxBT,qBAAaa,eAAeJ,SAAS;AACrC,cAAMJ,QAAQL,aAAaM;AACvB,YAAA;AAAA,UAAED;AAAAA,QAAAA,CAAO;AAAA,MACf;AAAA,MACAS,WAAWC,CAAQA,SAAAA;AAAAA,MACnBC,kBAAkBD,MAAME,gBAAgB;AACzBC,qBAAAA,cAAcH,MAAME,cAAc;AAC/C,cAAMZ,QAAQL,aAAaM;AACvB,YAAA;AAAA,UAAED;AAAAA,QAAAA,CAAO;AAAA,MAAA;AAAA,IACf;AAAA,EACF,EACA;AACJ;AAqEA,MAAMc,iBAAiBC,cAEb,IAAI;AAiBP,MAAMC,yBAA0DC,CAAA,OAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA;AAAC,QAAA;AAAA,IAAAzB,kBAAA0B;AAAAA,IAAAC;AAAAA,EAAAA,IAAAJ;AACtEvB,QAAAA,mBAAA0B,OAAqBE,cAArBF;AAGA,QAAA3B,UAAgB8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AA,QAAuBqB,SAClCT,UAASS,WAAArB;AAAAA,QAAqBsB,eACxBV,UAASU,iBAAAtB;AAAAA,MAAAA,CACzB;AAAA,IAAC;AACD,SAAA,CAACM,YAAYM,SAAS;AAAChB,WAAAgB;AAAAhB,WAAAU;AAAAV,WAAAoB;AAAApB,WAAAqB;AAAAA,EAAAA,OAAA;AAAAD,SAAApB,EAAA,CAAA;AAAAqB,SAAArB,EAAA,CAAA;AAAA,EAAA;AAX1B2B,YAAUP,IAWPC,EAAuB;AAACO,MAAAA;AAAA5B,MAAAA,SAAAG,UAAA;AAGzByB,6BAAA,eAAA,UAAA,EAAgCX,OAAAA,UAC7Bd,UACH;AAA0BH,WAAAG;AAAAH,YAAA4B;AAAAA,EAAAA,OAAA;AAAAA,SAAA5B,EAAA,EAAA;AAAA,EAAA;AAF1B4B,SAAAA;AAE0B;AAI9B,SAAAC,gBAAAC,UAAA;AACEC,QAAAA,QAAcC,WAAApC,cAAyB;AAAE,MAAA,CACpCmC,OAAK;AAAAE,UAAAA,IAAAA,MACQ,8CAA8C;AAAA,EAAA;AAEzDC,SAAAA,SAASH,MAAKZ,SAAUW,QAAQ;AAAC;AAGnC,MAAMK,aAAaA,MAAA;AAAA,SAAMN,gBAAAO,KAAoC;AAAC;AAC9D,MAAMC,oBAAoBA,MAAA;AAAA,SAAMR,gBAAAS,MAAsC;AAAC;AADpD,SAAAF,MAAAG,OAAA;AAAA,SAA+BA,MAAKzD;AAAA;AAC7B,SAAAwD,OAAAC,OAAA;AAAA,SAA+BA,MAAKvD;AAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphiql/plugin-history",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-canary-5d447953.0",
4
4
  "sideEffects": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "react-compiler-runtime": "19.1.0-rc.1",
43
43
  "@graphiql/toolkit": "^0.11.2",
44
- "@graphiql/react": "^0.32.2",
44
+ "@graphiql/react": "^0.33.0-canary-5d447953.0",
45
45
  "zustand": "^5"
46
46
  },
47
47
  "devDependencies": {