@graphiql/plugin-doc-explorer 0.4.3-alpha.1 → 1.0.0-beta.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.
Files changed (48) hide show
  1. package/dist/components/arguments-list.d.ts +12 -0
  2. package/dist/components/arguments-list.js +248 -0
  3. package/dist/components/arguments-list.js.map +1 -0
  4. package/dist/components/breadcrumb.d.ts +8 -0
  5. package/dist/components/breadcrumb.js +54 -0
  6. package/dist/components/breadcrumb.js.map +1 -0
  7. package/dist/components/doc-explorer.js +172 -123
  8. package/dist/components/doc-explorer.js.map +1 -1
  9. package/dist/components/field-card.d.ts +7 -0
  10. package/dist/components/field-card.js +102 -0
  11. package/dist/components/field-card.js.map +1 -0
  12. package/dist/components/field-documentation.js +76 -110
  13. package/dist/components/field-documentation.js.map +1 -1
  14. package/dist/components/fields-list.d.ts +8 -0
  15. package/dist/components/fields-list.js +235 -0
  16. package/dist/components/fields-list.js.map +1 -0
  17. package/dist/components/index.d.ts +6 -0
  18. package/dist/components/schema-documentation.js +168 -125
  19. package/dist/components/schema-documentation.js.map +1 -1
  20. package/dist/components/search-row.d.ts +2 -0
  21. package/dist/components/search-row.js +282 -0
  22. package/dist/components/search-row.js.map +1 -0
  23. package/dist/components/search.js +81 -50
  24. package/dist/components/search.js.map +1 -1
  25. package/dist/components/section.js +1 -1
  26. package/dist/components/section.js.map +1 -1
  27. package/dist/components/type-card.d.ts +7 -0
  28. package/dist/components/type-card.js +112 -0
  29. package/dist/components/type-card.js.map +1 -0
  30. package/dist/components/type-documentation.d.ts +6 -0
  31. package/dist/components/type-documentation.js +11 -9
  32. package/dist/components/type-documentation.js.map +1 -1
  33. package/dist/components/type-link.js +2 -1
  34. package/dist/components/type-link.js.map +1 -1
  35. package/dist/context.js +60 -40
  36. package/dist/context.js.map +1 -1
  37. package/dist/index.d.ts +0 -1
  38. package/dist/index.js +13 -3
  39. package/dist/index.js.map +1 -1
  40. package/dist/schema-reference.d.ts +2 -2
  41. package/dist/schema-reference.js +5 -4
  42. package/dist/schema-reference.js.map +1 -1
  43. package/dist/stories/doc-explorer.stories.d.ts +12 -0
  44. package/dist/style.css +691 -131
  45. package/package.json +12 -6
  46. package/dist/deprecated.d.ts +0 -11
  47. package/dist/deprecated.js +0 -24
  48. package/dist/deprecated.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphiql/plugin-doc-explorer",
3
- "version": "0.4.3-alpha.1",
3
+ "version": "1.0.0-beta.0",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -35,30 +35,36 @@
35
35
  "types:check": "tsgo --noEmit",
36
36
  "dev": "vite build --watch --emptyOutDir=false",
37
37
  "build": "vite build",
38
+ "build-storybook": "storybook build",
39
+ "storybook": "storybook dev -p 6007",
38
40
  "test": "vitest run"
39
41
  },
40
42
  "peerDependencies": {
41
- "@graphiql/react": "^0.37.6-alpha.0",
43
+ "@graphiql/react": "^1.0.0-beta.0",
42
44
  "graphql": "^15.5.0 || ^16.0.0 || ^17.0.0",
43
45
  "react": "^18 || ^19",
44
- "react-compiler-runtime": "19.1.0-rc.1",
45
46
  "react-dom": "^18 || ^19"
46
47
  },
47
48
  "dependencies": {
48
49
  "@headlessui/react": "^2.2",
50
+ "react-compiler-runtime": "19.1.0-rc.1",
49
51
  "zustand": "^5"
50
52
  },
51
53
  "devDependencies": {
52
- "@graphiql/react": "^0.37.6-alpha.2",
54
+ "@graphiql/react": "^1.0.0-beta.0",
55
+ "@storybook/addon-a11y": "^10.3.6",
56
+ "@storybook/addon-vitest": "^10.3.6",
57
+ "@storybook/react-vite": "^10.3.6",
53
58
  "@testing-library/dom": "^10.4.0",
54
59
  "@testing-library/jest-dom": "^6.6.3",
55
60
  "@testing-library/react": "^16.3.0",
56
61
  "@vitejs/plugin-react": "^4.4.1",
57
- "babel-plugin-react-compiler": "19.1.0-rc.1",
62
+ "babel-plugin-react-compiler": "19.1.0-rc.3",
58
63
  "graphql": "^16.9.0",
59
64
  "react": "^19.1.0",
60
65
  "react-dom": "^19.1.0",
61
- "vite": "^6.3.4",
66
+ "storybook": "^10.3.6",
67
+ "vite": "^6.4.3",
62
68
  "vite-plugin-dts": "^4.5.3"
63
69
  }
64
70
  }
@@ -1,11 +0,0 @@
1
- /**
2
- * @deprecated Use `useDocExplorerActions` and `useDocExplorer` hooks instead.
3
- */
4
- export declare function useExplorerContext(): {
5
- explorerNavStack: import('./context').DocExplorerNavStack;
6
- push(item: import('./context').DocExplorerNavStackItem): void;
7
- pop(): void;
8
- reset(): void;
9
- resolveSchemaReferenceToNavItem(schemaReference: import('@graphiql/react').SchemaReference | null): void;
10
- rebuildNavStackWithSchema(schema: import('graphql').GraphQLSchema): void;
11
- };
@@ -1,24 +0,0 @@
1
- import { c } from "react-compiler-runtime";
2
- import { useDocExplorerActions, useDocExplorer } from "./context.js";
3
- function useExplorerContext() {
4
- const $ = c(3);
5
- const actions = useDocExplorerActions();
6
- const explorerNavStack = useDocExplorer();
7
- let t0;
8
- if ($[0] !== actions || $[1] !== explorerNavStack) {
9
- t0 = {
10
- ...actions,
11
- explorerNavStack
12
- };
13
- $[0] = actions;
14
- $[1] = explorerNavStack;
15
- $[2] = t0;
16
- } else {
17
- t0 = $[2];
18
- }
19
- return t0;
20
- }
21
- export {
22
- useExplorerContext
23
- };
24
- //# sourceMappingURL=deprecated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deprecated.js","sources":["../src/deprecated.ts"],"sourcesContent":["import { useDocExplorer, useDocExplorerActions } from './context';\n\n/**\n * @deprecated Use `useDocExplorerActions` and `useDocExplorer` hooks instead.\n */\nexport function useExplorerContext() {\n const actions = useDocExplorerActions();\n const explorerNavStack = useDocExplorer();\n return {\n ...actions,\n explorerNavStack,\n };\n}\n"],"names":["useExplorerContext","$","_c","actions","useDocExplorerActions","explorerNavStack","useDocExplorer","t0"],"mappings":";;AAKO,SAAAA,qBAAA;AAAAC,QAAAA,IAAAC,EAAA,CAAA;AACL,QAAAC,UAAgBC,sBAAsB;AACtC,QAAAC,mBAAyBC,eAAe;AAAEC,MAAAA;AAAA,MAAAN,EAAAE,CAAAA,MAAAA,WAAAF,SAAAI,kBAAA;AACnC,SAAA;AAAA,MAAA,GACFF;AAAAA,MAAOE;AAAAA,IAAA;AAEXJ,WAAAE;AAAAF,WAAAI;AAAAJ,WAAAM;AAAAA,EAAAA,OAAA;AAAAA,SAAAN,EAAA,CAAA;AAAA,EAAA;AAHMM,SAAAA;AAGN;"}