@sanity/vision 5.23.0-workbench.20260424083608 → 5.23.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/lib/_chunks-es/index.js.map +1 -1
- package/lib/bundle.css +2 -0
- package/lib/bundle.css.map +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +13 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/i18n/index.ts","../../src/visionTool.ts"],"sourcesContent":["import {defineLocaleResourceBundle} from 'sanity'\n\n/**\n * The locale namespace for the vision tool\n *\n * @internal\n */\nexport const visionLocaleNamespace = 'vision' as const\n\n/**\n * The default locale bundle for the vision tool, which is US English.\n *\n * @internal\n */\nexport const visionUsEnglishLocaleBundle = defineLocaleResourceBundle({\n locale: 'en-US',\n namespace: visionLocaleNamespace,\n resources: () => import('./resources'),\n})\n","import {EyeOpenIcon} from '@sanity/icons'\nimport {lazy} from 'react'\nimport {definePlugin} from 'sanity'\nimport {route} from 'sanity/router'\n\nimport {visionUsEnglishLocaleBundle} from './i18n'\nimport {type VisionToolConfig} from './types'\n\nexport const visionTool = definePlugin<VisionToolConfig | void>((options) => {\n const {name, title, icon, ...config} = options || {}\n return {\n name: '@sanity/vision',\n tools: [\n {\n name: name || 'vision',\n title: title || 'Vision',\n icon: icon || EyeOpenIcon,\n component: lazy(() => import('./SanityVision')),\n options: config,\n router: route.create('/*'),\n __internalApplicationType: 'sanity/vision',\n },\n ],\n i18n: {\n bundles: [visionUsEnglishLocaleBundle],\n },\n }\n})\n"],"names":["visionLocaleNamespace","visionUsEnglishLocaleBundle","defineLocaleResourceBundle","locale","namespace","resources","visionTool","definePlugin","options","name","title","icon","config","tools","EyeOpenIcon","component","lazy","router","route","create","__internalApplicationType","i18n","bundles"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/i18n/index.ts","../../src/visionTool.ts"],"sourcesContent":["import {defineLocaleResourceBundle} from 'sanity'\n\n/**\n * The locale namespace for the vision tool\n *\n * @internal\n */\nexport const visionLocaleNamespace = 'vision' as const\n\n/**\n * The default locale bundle for the vision tool, which is US English.\n *\n * @internal\n */\nexport const visionUsEnglishLocaleBundle = defineLocaleResourceBundle({\n locale: 'en-US',\n namespace: visionLocaleNamespace,\n resources: () => import('./resources'),\n})\n","// oxlint-disable-next-line no-unassigned-import -- style import is effectful\nimport './styles.css'\n\nimport {EyeOpenIcon} from '@sanity/icons'\nimport {lazy} from 'react'\nimport {definePlugin} from 'sanity'\nimport {route} from 'sanity/router'\n\nimport {visionUsEnglishLocaleBundle} from './i18n'\nimport {type VisionToolConfig} from './types'\n\nexport const visionTool = definePlugin<VisionToolConfig | void>((options) => {\n const {name, title, icon, ...config} = options || {}\n return {\n name: '@sanity/vision',\n tools: [\n {\n name: name || 'vision',\n title: title || 'Vision',\n icon: icon || EyeOpenIcon,\n component: lazy(() => import('./SanityVision')),\n options: config,\n router: route.create('/*'),\n __internalApplicationType: 'sanity/vision',\n },\n ],\n i18n: {\n bundles: [visionUsEnglishLocaleBundle],\n },\n }\n})\n"],"names":["visionLocaleNamespace","visionUsEnglishLocaleBundle","defineLocaleResourceBundle","locale","namespace","resources","visionTool","definePlugin","options","name","title","icon","config","tools","EyeOpenIcon","component","lazy","router","route","create","__internalApplicationType","i18n","bundles"],"mappings":";;;;;AAOO,MAAMA,wBAAwB,UAOxBC,8BAA8BC,2BAA2B;AAAA,EACpEC,QAAQ;AAAA,EACRC,WAAWJ;AAAAA,EACXK,WAAWA,MAAM,OAAO,gBAAa;AACvC,CAAC,GCPYC,aAAaC,aAAuCC,CAAAA,YAAY;AAC3E,QAAM;AAAA,IAACC;AAAAA,IAAMC;AAAAA,IAAOC;AAAAA,IAAM,GAAGC;AAAAA,EAAAA,IAAUJ,WAAW,CAAA;AAClD,SAAO;AAAA,IACLC,MAAM;AAAA,IACNI,OAAO,CACL;AAAA,MACEJ,MAAMA,QAAQ;AAAA,MACdC,OAAOA,SAAS;AAAA,MAChBC,MAAMA,QAAQG;AAAAA,MACdC,WAAWC,KAAK,MAAM,OAAO,mBAAgB,CAAC;AAAA,MAC9CR,SAASI;AAAAA,MACTK,QAAQC,MAAMC,OAAO,IAAI;AAAA,MACzBC,2BAA2B;AAAA,IAAA,CAC5B;AAAA,IAEHC,MAAM;AAAA,MACJC,SAAS,CAACrB,2BAA2B;AAAA,IAAA;AAAA,EACvC;AAEJ,CAAC;"}
|
package/lib/bundle.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":null,"mappings":"ACAA","sources":["bundle.css","src/styles.css.ts.vanilla.css"],"sourcesContent":["#sanity {\n --static-css-file-loaded-vision: true;\n}","#sanity {\n --static-css-file-loaded-vision: true;\n}"],"names":[]}
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/vision",
|
|
3
|
-
"version": "5.23.0
|
|
3
|
+
"version": "5.23.0",
|
|
4
4
|
"description": "Sanity plugin for running/debugging GROQ-queries against Sanity datasets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"admin",
|
|
@@ -28,7 +28,10 @@
|
|
|
28
28
|
"lib"
|
|
29
29
|
],
|
|
30
30
|
"type": "module",
|
|
31
|
-
"sideEffects":
|
|
31
|
+
"sideEffects": [
|
|
32
|
+
"*.css",
|
|
33
|
+
"*.css.ts"
|
|
34
|
+
],
|
|
32
35
|
"main": "./lib/index.js",
|
|
33
36
|
"types": "./lib/index.d.ts",
|
|
34
37
|
"exports": {
|
|
@@ -68,6 +71,8 @@
|
|
|
68
71
|
"@types/lodash-es": "^4.17.12",
|
|
69
72
|
"@types/react": "^19.2.11",
|
|
70
73
|
"@typescript/native-preview": "beta",
|
|
74
|
+
"@vanilla-extract/css": "^1.19.0",
|
|
75
|
+
"@vanilla-extract/vite-plugin": "^5.2.0",
|
|
71
76
|
"@vitejs/plugin-react": "^5.1.2",
|
|
72
77
|
"babel-plugin-react-compiler": "1.0.0",
|
|
73
78
|
"babel-plugin-styled-components": "^2.1.4",
|
|
@@ -79,12 +84,12 @@
|
|
|
79
84
|
"styled-components": "npm:@sanity/styled-components@^6.1.24",
|
|
80
85
|
"vite": "^7.3.1",
|
|
81
86
|
"vitest": "^4.1.4",
|
|
82
|
-
"@repo/eslint-config": "5.23.0
|
|
83
|
-
"@repo/package.bundle": "5.23.0
|
|
84
|
-
"@repo/
|
|
85
|
-
"@repo/
|
|
86
|
-
"@repo/
|
|
87
|
-
"sanity": "5.23.0
|
|
87
|
+
"@repo/eslint-config": "5.23.0",
|
|
88
|
+
"@repo/package.bundle": "5.23.0",
|
|
89
|
+
"@repo/test-config": "5.23.0",
|
|
90
|
+
"@repo/package.config": "5.23.0",
|
|
91
|
+
"@repo/tsconfig": "5.23.0",
|
|
92
|
+
"sanity": "5.23.0"
|
|
88
93
|
},
|
|
89
94
|
"peerDependencies": {
|
|
90
95
|
"react": "^19.2.2",
|