sanity-plugin-graph-view 5.0.1 → 5.0.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Sanity.io
3
+ Copyright (c) 2026 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import * as sanity0 from "sanity";
1
+ import { Plugin } from "sanity";
2
2
  interface GraphViewConfig {
3
3
  query?: string;
4
4
  }
5
- declare const contentGraphView: sanity0.Plugin<void | GraphViewConfig>;
5
+ declare const contentGraphView: Plugin<void | GraphViewConfig>;
6
6
  export { type GraphViewConfig, contentGraphView };
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["GraphViewConfig","contentGraphView","sanity0","Plugin"],"sources":["../src/plugin.d.ts"],"sourcesContent":["export interface GraphViewConfig {\n query?: string;\n}\nexport declare const contentGraphView: import(\"sanity\").Plugin<void | GraphViewConfig>;\n//# sourceMappingURL=plugin.d.ts.map"],"mappings":";UAAiBA,eAAAA;;AAAjB;AAGqBC,cAAAA,gBAAiDD,EAAeE,OAAAA,CAA7BC,MAAAA,CAAAA,IAAM,GAAQH,eAAR,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":["contentGraphView: Plugin<void | GraphViewConfig>"],"sources":["../src/plugin.tsx"],"sourcesContent":[],"mappings":";UAMiB,eAAA;EAAjB,KAAiB,CAAA,EAAA,MAAA;AAMjB;cAAaA,kBAAkB,cAAc"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/tool/GraphViewIcon.tsx","../src/plugin.tsx"],"sourcesContent":["/**\n * Couple of things to note:\n * - width and height is set to 1em\n * - fill is `currentColor` - this will ensure that the icon looks uniform and\n * that the hover/active state works. You can of course render anything you\n * would like here, but for plugins that are to be used in more than one\n * studio, we suggest these rules are followed\n **/\nexport function GraphViewIcon(): React.JSX.Element {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 46.063 46.063\">\n <path\n fill=\"currentColor\"\n d=\"M18.022 38.676v2.813h-1.21q-4.864 0-6.525-1.447-1.64-1.445-1.64-5.762v-4.666q0-2.95-1.055-4.083-1.055-1.13-3.828-1.13h-1.19v-2.794h1.19q2.793 0 3.828-1.114 1.055-1.132 1.055-4.043V11.76q0-4.316 1.64-5.742 1.66-1.446 6.524-1.446h1.212v2.793h-1.328q-2.754 0-3.594.86-.84.86-.84 3.613v4.844q0 3.066-.898 4.453-.88 1.387-3.028 1.875 2.168.527 3.047 1.914.88 1.387.88 4.434v4.843q0 2.754.84 3.614.84.86 3.594.86h1.328zM28.04 38.676h1.368q2.735 0 3.555-.84.84-.84.84-3.633V29.36q0-3.047.88-4.434.878-1.387 3.046-1.914-2.17-.488-3.048-1.875-.88-1.387-.88-4.453V11.84q0-2.773-.84-3.613-.82-.86-3.554-.86H28.04V4.574h1.232q4.863 0 6.484 1.446 1.64 1.426 1.64 5.742v4.687q0 2.91 1.055 4.042 1.056 1.114 3.83 1.114h1.21V24.4h-1.21q-2.774 0-3.83 1.13-1.053 1.134-1.053 4.084v4.667q0 4.318-1.64 5.763-1.622 1.446-6.485 1.446h-1.23v-2.814z\"\n />\n </svg>\n )\n}\n","import {lazy} from 'react'\nimport {definePlugin} from 'sanity'\nimport {route} from 'sanity/router'\n\nimport {GraphViewIcon} from './tool/GraphViewIcon'\n\nexport interface GraphViewConfig {\n query?: string\n}\n\nconst GraphView = lazy(() => import('./tool/GraphView'))\n\nexport const contentGraphView = definePlugin<void | GraphViewConfig>(\n (config: GraphViewConfig = {}) => {\n return {\n name: '@sanity/content-graph-view',\n\n tools: [\n {\n name: 'graph-your-content',\n title: 'Graph',\n icon: GraphViewIcon,\n component: GraphView,\n options: config,\n router: route.create('/:selectedDocumentId'),\n },\n ],\n }\n },\n)\n"],"names":["GraphViewIcon","$","_c","t0","Symbol","for","GraphView","lazy","contentGraphView","definePlugin","config","name","tools","title","icon","component","options","router","route","create"],"mappings":";;;;;AAQO,SAAAA,gBAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,EAAA,CAAA,MAAAG,uBAAAC,IAAA,2BAAA,KAEHF,KAAA,oBAAA,OAAA,EAAW,OAAA,8BAAmC,OAAA,OAAa,QAAA,OAAc,SAAA,qBACvE,UAAA,oBAAA,QAAA,EACO,MAAA,gBACH,GAAA,4zBAAA,CAA2zB,EAAA,CAEj0B,GAAMF,OAAAE,MAAAA,KAAAF,EAAA,CAAA,GALNE;AAKM;ACLV,MAAMG,YAAYC,KAAK,MAAM,OAAO,2BAAkB,CAAC,GAE1CC,mBAAmBC,aAC9B,CAACC,SAA0B,QAClB;AAAA,EACLC,MAAM;AAAA,EAENC,OAAO,CACL;AAAA,IACED,MAAM;AAAA,IACNE,OAAO;AAAA,IACPC,MAAMd;AAAAA,IACNe,WAAWT;AAAAA,IACXU,SAASN;AAAAA,IACTO,QAAQC,MAAMC,OAAO,sBAAsB;AAAA,EAAA,CAC5C;AAEL,EAEJ;"}
1
+ {"version":3,"file":"index.js","sources":["../src/tool/GraphViewIcon.tsx","../src/plugin.tsx"],"sourcesContent":["/**\n * Couple of things to note:\n * - width and height is set to 1em\n * - fill is `currentColor` - this will ensure that the icon looks uniform and\n * that the hover/active state works. You can of course render anything you\n * would like here, but for plugins that are to be used in more than one\n * studio, we suggest these rules are followed\n **/\nexport function GraphViewIcon(): React.JSX.Element {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 46.063 46.063\">\n <path\n fill=\"currentColor\"\n d=\"M18.022 38.676v2.813h-1.21q-4.864 0-6.525-1.447-1.64-1.445-1.64-5.762v-4.666q0-2.95-1.055-4.083-1.055-1.13-3.828-1.13h-1.19v-2.794h1.19q2.793 0 3.828-1.114 1.055-1.132 1.055-4.043V11.76q0-4.316 1.64-5.742 1.66-1.446 6.524-1.446h1.212v2.793h-1.328q-2.754 0-3.594.86-.84.86-.84 3.613v4.844q0 3.066-.898 4.453-.88 1.387-3.028 1.875 2.168.527 3.047 1.914.88 1.387.88 4.434v4.843q0 2.754.84 3.614.84.86 3.594.86h1.328zM28.04 38.676h1.368q2.735 0 3.555-.84.84-.84.84-3.633V29.36q0-3.047.88-4.434.878-1.387 3.046-1.914-2.17-.488-3.048-1.875-.88-1.387-.88-4.453V11.84q0-2.773-.84-3.613-.82-.86-3.554-.86H28.04V4.574h1.232q4.863 0 6.484 1.446 1.64 1.426 1.64 5.742v4.687q0 2.91 1.055 4.042 1.056 1.114 3.83 1.114h1.21V24.4h-1.21q-2.774 0-3.83 1.13-1.053 1.134-1.053 4.084v4.667q0 4.318-1.64 5.763-1.622 1.446-6.485 1.446h-1.23v-2.814z\"\n />\n </svg>\n )\n}\n","import {lazy} from 'react'\nimport {definePlugin, type Plugin} from 'sanity'\nimport {route} from 'sanity/router'\n\nimport {GraphViewIcon} from './tool/GraphViewIcon'\n\nexport interface GraphViewConfig {\n query?: string\n}\n\nconst GraphView = lazy(() => import('./tool/GraphView'))\n\nexport const contentGraphView: Plugin<void | GraphViewConfig> =\n definePlugin<void | GraphViewConfig>((config: GraphViewConfig = {}) => {\n return {\n name: '@sanity/content-graph-view',\n\n tools: [\n {\n name: 'graph-your-content',\n title: 'Graph',\n icon: GraphViewIcon,\n component: GraphView,\n options: config,\n router: route.create('/:selectedDocumentId'),\n },\n ],\n }\n })\n"],"names":["GraphViewIcon","$","_c","t0","Symbol","for","GraphView","lazy","contentGraphView","definePlugin","config","name","tools","title","icon","component","options","router","route","create"],"mappings":";;;;;AAQO,SAAAA,gBAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,EAAA,CAAA,MAAAG,uBAAAC,IAAA,2BAAA,KAEHF,KAAA,oBAAA,OAAA,EAAW,OAAA,8BAAmC,OAAA,OAAa,QAAA,OAAc,SAAA,qBACvE,UAAA,oBAAA,QAAA,EACO,MAAA,gBACH,GAAA,4zBAAA,CAA2zB,EAAA,CAEj0B,GAAMF,OAAAE,MAAAA,KAAAF,EAAA,CAAA,GALNE;AAKM;ACLV,MAAMG,YAAYC,KAAK,MAAM,OAAO,2BAAkB,CAAC,GAE1CC,mBACXC,aAAqC,CAACC,SAA0B,QACvD;AAAA,EACLC,MAAM;AAAA,EAENC,OAAO,CACL;AAAA,IACED,MAAM;AAAA,IACNE,OAAO;AAAA,IACPC,MAAMd;AAAAA,IACNe,WAAWT;AAAAA,IACXU,SAASN;AAAAA,IACTO,QAAQC,MAAMC,OAAO,sBAAsB;AAAA,EAAA,CAC5C;AAEL,EACD;"}
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "sanity-plugin-graph-view",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/sanity-io/plugins/tree/main/plugins/sanity-plugin-graph-view#readme",
6
6
  "bugs": {
7
7
  "url": "https://github.com/sanity-io/plugins/issues"
8
8
  },
9
+ "license": "MIT",
10
+ "author": "Sanity.io <hello@sanity.io>",
9
11
  "repository": {
10
12
  "type": "git",
11
13
  "url": "git+ssh://git@github.com/sanity-io/plugins.git",
12
14
  "directory": "plugins/sanity-plugin-graph-view"
13
15
  },
14
- "author": "Sanity.io <hello@sanity.io>",
15
- "license": "MIT",
16
+ "files": [
17
+ "dist"
18
+ ],
16
19
  "type": "module",
20
+ "types": "./dist/index.d.ts",
17
21
  "exports": {
18
22
  ".": "./dist/index.js",
19
23
  "./package.json": "./package.json"
20
24
  },
21
- "types": "./dist/index.d.ts",
22
- "files": [
23
- "dist"
24
- ],
25
25
  "dependencies": {
26
26
  "@sanity/color": "^3.0.6",
27
27
  "@sanity/ui": "^3.1.11",
@@ -32,24 +32,22 @@
32
32
  "uuid": "^13.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@sanity/pkg-utils": "^10.2.1",
35
+ "@sanity/pkg-utils": "^10.2.5",
36
36
  "@types/deep-equal": "^1.0.4",
37
37
  "@types/react": "^19.2.7",
38
- "@typescript/native-preview": "7.0.0-dev.20251216.1",
39
38
  "babel-plugin-react-compiler": "^1.0.0",
40
39
  "babel-plugin-styled-components": "^2.1.4",
41
40
  "eslint": "^9.39.2",
42
41
  "react": "^19.2.3",
43
- "sanity": "^5.0.0",
42
+ "sanity": "^5.1.0",
44
43
  "styled-components": "^6.1.19",
45
- "typescript": "5.9.3",
46
- "@repo/eslint-config": "0.0.7",
44
+ "@repo/eslint-config": "0.0.0",
47
45
  "@repo/package.config": "0.0.0",
48
- "@repo/tsconfig": "1.0.0"
46
+ "@repo/tsconfig": "0.0.0"
49
47
  },
50
48
  "peerDependencies": {
51
49
  "react": "^19.2",
52
- "sanity": "^5.0.0-0",
50
+ "sanity": "^5",
53
51
  "styled-components": "^6.1"
54
52
  },
55
53
  "engines": {