@sanity/vision 5.8.0 → 5.8.1-next.10

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 (2) hide show
  1. package/lib/index.d.ts +71 -71
  2. package/package.json +21 -21
package/lib/index.d.ts CHANGED
@@ -1,31 +1,31 @@
1
- import {ComponentType} from 'react'
2
- import {Plugin as Plugin_2} from 'sanity'
1
+ import { ComponentType } from "react";
2
+ import { Plugin as Plugin_2 } from "sanity";
3
3
 
4
4
  /** @public */
5
- declare type DatasetAclMode = 'public' | 'private' | 'custom'
5
+ declare type DatasetAclMode = "public" | "private" | "custom";
6
6
 
7
7
  /** @public */
8
8
  declare type DatasetsResponse = {
9
- name: string
10
- aclMode: DatasetAclMode
11
- createdAt: string
12
- createdByUserId: string
13
- addonFor: string | null
14
- datasetProfile: string
15
- features: string[]
16
- tags: string[]
17
- }[]
9
+ name: string;
10
+ aclMode: DatasetAclMode;
11
+ createdAt: string;
12
+ createdByUserId: string;
13
+ addonFor: string | null;
14
+ datasetProfile: string;
15
+ features: string[];
16
+ tags: string[];
17
+ }[];
18
18
 
19
19
  declare interface VisionConfig {
20
- datasets?: string[] | ((datasets: DatasetsResponse) => DatasetsResponse)
21
- defaultApiVersion: string
22
- defaultDataset?: string
20
+ datasets?: string[] | ((datasets: DatasetsResponse) => DatasetsResponse);
21
+ defaultApiVersion: string;
22
+ defaultDataset?: string;
23
23
  }
24
24
 
25
25
  /**
26
26
  * @alpha
27
27
  */
28
- export declare type VisionLocaleResourceKeys = keyof typeof visionLocaleStrings
28
+ export declare type VisionLocaleResourceKeys = keyof typeof visionLocaleStrings;
29
29
 
30
30
  /**
31
31
  * Defined locale strings for the vision tool, in US English.
@@ -34,120 +34,120 @@ export declare type VisionLocaleResourceKeys = keyof typeof visionLocaleStrings
34
34
  */
35
35
  declare const visionLocaleStrings: {
36
36
  /** Label for action "Copy to clipboard", tied to the "Query URL" field. Also used for accessibility purposes on button */
37
- readonly 'action.copy-url-to-clipboard': 'Copy to clipboard'
37
+ readonly "action.copy-url-to-clipboard": "Copy to clipboard";
38
38
  /** Label for deleting a query */
39
- readonly 'action.delete': 'Delete'
39
+ readonly "action.delete": "Delete";
40
40
  /** Label for editing a query's title */
41
- readonly 'action.edit-title': 'Edit title'
41
+ readonly "action.edit-title": "Edit title";
42
42
  /** Label for stopping an ongoing listen operation */
43
- readonly 'action.listen-cancel': 'Stop'
43
+ readonly "action.listen-cancel": "Stop";
44
44
  /** Label for setting up a listener */
45
- readonly 'action.listen-execute': 'Listen'
45
+ readonly "action.listen-execute": "Listen";
46
46
  /** Label for query loading table */
47
- readonly 'action.load-queries': 'Load queries'
47
+ readonly "action.load-queries": "Load queries";
48
48
  /** Label for loading a query */
49
- readonly 'action.load-query': 'Load query'
49
+ readonly "action.load-query": "Load query";
50
50
  /** Label for cancelling an ongoing query */
51
- readonly 'action.query-cancel': 'Cancel'
51
+ readonly "action.query-cancel": "Cancel";
52
52
  /** Label for executing the query, eg doing a fetch */
53
- readonly 'action.query-execute': 'Fetch'
53
+ readonly "action.query-execute": "Fetch";
54
54
  /** Label for saving a query */
55
- readonly 'action.save-query': 'Save query'
55
+ readonly "action.save-query": "Save query";
56
56
  /** Label for updating a query */
57
- readonly 'action.update': 'Update'
57
+ readonly "action.update": "Update";
58
58
  /** Label for actions user can take */
59
- readonly 'label.actions': 'Actions'
59
+ readonly "label.actions": "Actions";
60
60
  /** Label for saved queries that have been edited */
61
- readonly 'label.edited': 'Edited'
61
+ readonly "label.edited": "Edited";
62
62
  /**
63
63
  * Some features has a "New" label indicating that the feature was recently introduced.
64
64
  * This defines what the text of that label is. Keep it short and sweet.
65
65
  */
66
- readonly 'label.new': 'New'
66
+ readonly "label.new": "New";
67
67
  /** Label for query type "personal" */
68
- readonly 'label.personal': 'Personal'
68
+ readonly "label.personal": "Personal";
69
69
  /** Label for savedAt date */
70
- readonly 'label.saved-at': 'Saved at'
70
+ readonly "label.saved-at": "Saved at";
71
71
  /** Saved queries */
72
- readonly 'label.saved-queries': 'Saved queries'
72
+ readonly "label.saved-queries": "Saved queries";
73
73
  /** Search queries */
74
- readonly 'label.search-queries': 'Search queries'
74
+ readonly "label.search-queries": "Search queries";
75
75
  /** Share query */
76
- readonly 'label.share': 'Share'
76
+ readonly "label.share": "Share";
77
77
  /** Label for saved query type "team" */
78
- readonly 'label.team': 'Team'
78
+ readonly "label.team": "Team";
79
79
  /** Error message for when the "Params" input are not a valid json */
80
- readonly 'params.error.params-invalid-json': 'Parameters are not valid JSON'
80
+ readonly "params.error.params-invalid-json": "Parameters are not valid JSON";
81
81
  /** Label for "Params" (parameters) editor/input */
82
- readonly 'params.label': 'Params'
82
+ readonly "params.label": "Params";
83
83
  /** Label for 'Column' indicator when there is an error within the query */
84
- readonly 'query.error.column': 'Column'
84
+ readonly "query.error.column": "Column";
85
85
  /** Label for 'Line' indicator when there is an error within the query */
86
- readonly 'query.error.line': 'Line'
86
+ readonly "query.error.line": "Line";
87
87
  /** Label for "Query" editor/input */
88
- readonly 'query.label': 'Query'
88
+ readonly "query.label": "Query";
89
89
  /** Label for the "Query URL" field, shown after executing a query, and allows for copying */
90
- readonly 'query.url': 'Query URL'
90
+ readonly "query.url": "Query URL";
91
91
  /** Label for "End to End time" information of the fetched query */
92
- readonly 'result.end-to-end-time-label': 'End-to-end'
92
+ readonly "result.end-to-end-time-label": "End-to-end";
93
93
  /** Label for "Execution time" information of the fetched query */
94
- readonly 'result.execution-time-label': 'Execution'
94
+ readonly "result.execution-time-label": "Execution";
95
95
  /** Label for "Result" explorer/view */
96
- readonly 'result.label': 'Result'
96
+ readonly "result.label": "Result";
97
97
  /** Tooltip text shown when the query result is not encodable as CSV */
98
- readonly 'result.save-result-as-csv.not-csv-encodable': 'Result cannot be encoded as CSV'
98
+ readonly "result.save-result-as-csv.not-csv-encodable": "Result cannot be encoded as CSV";
99
99
  /** Label for "Save result as" result action */
100
- readonly 'result.save-result-as-format': 'Save result as <SaveResultButtons/>'
100
+ readonly "result.save-result-as-format": "Save result as <SaveResultButtons/>";
101
101
  /**
102
102
  * "Not applicable" message for when there is no Execution time or End to End time information
103
103
  * available for the query (eg when the query has not been executed, or errored)
104
104
  */
105
- readonly 'result.timing-not-applicable': 'n/a'
105
+ readonly "result.timing-not-applicable": "n/a";
106
106
  /** Query already saved error label */
107
- readonly 'save-query.already-saved': 'Query already saved'
107
+ readonly "save-query.already-saved": "Query already saved";
108
108
  /** Save error label */
109
- readonly 'save-query.error': 'Error saving query'
109
+ readonly "save-query.error": "Error saving query";
110
110
  /** Save success label */
111
- readonly 'save-query.success': 'Query saved'
111
+ readonly "save-query.success": "Query saved";
112
112
  /** Label for the "API version" dropdown in settings */
113
- readonly 'settings.api-version-label': 'API version'
113
+ readonly "settings.api-version-label": "API version";
114
114
  /** Label for the "Custom API version" input in settings, shown when "other" is chosen as API version */
115
- readonly 'settings.custom-api-version-label': 'Custom API version'
115
+ readonly "settings.custom-api-version-label": "Custom API version";
116
116
  /** Label for the "Dataset" dropdown in vision settings */
117
- readonly 'settings.dataset-label': 'Dataset'
117
+ readonly "settings.dataset-label": "Dataset";
118
118
  /** Error label for when the API version in 'Custom API version' input is invalid */
119
- readonly 'settings.error.invalid-api-version': 'Invalid API version'
119
+ readonly "settings.error.invalid-api-version": "Invalid API version";
120
120
  /** Label for the "other" versions within the "API version" dropdown */
121
- readonly 'settings.other-api-version-label': 'Other'
121
+ readonly "settings.other-api-version-label": "Other";
122
122
  /**
123
123
  * Label for the "Perspective" dropdown in vision settings
124
124
  * @see {@link https://www.sanity.io/docs/perspectives}
125
125
  */
126
- readonly 'settings.perspective-label': 'Perspective'
126
+ readonly "settings.perspective-label": "Perspective";
127
127
  /** Notification about previewDrafts to drafts rename */
128
- readonly 'settings.perspective.preview-drafts-renamed-to-drafts.description': 'The "<code>previewDrafts</code>" perspective has been renamed to "<code>drafts</code>" and is now deprecated. This change is effective for all versions with perspective support (>= v2021-03-25).'
128
+ readonly "settings.perspective.preview-drafts-renamed-to-drafts.description": 'The "<code>previewDrafts</code>" perspective has been renamed to "<code>drafts</code>" and is now deprecated. This change is effective for all versions with perspective support (>= v2021-03-25).';
129
129
  /** Call to action to read the docs related to "Perspectives" */
130
- readonly 'settings.perspectives.action.docs-link': 'Read docs'
130
+ readonly "settings.perspectives.action.docs-link": "Read docs";
131
131
  /** Option for selecting default perspective */
132
- readonly 'settings.perspectives.default': 'No perspective (API default)'
132
+ readonly "settings.perspectives.default": "No perspective (API default)";
133
133
  /** Description for popover that explains what "Perspectives" are */
134
- readonly 'settings.perspectives.description': 'Perspectives allow your query to run against different "views" of the content in your dataset'
134
+ readonly "settings.perspectives.description": 'Perspectives allow your query to run against different "views" of the content in your dataset';
135
135
  /** Description for upcoming default perspective change */
136
- readonly 'settings.perspectives.new-default.description': 'The default perspective will change from "<code>raw</code>" to "<code>published</code>" in an upcoming API version. Please consult docs for more details.'
136
+ readonly "settings.perspectives.new-default.description": 'The default perspective will change from "<code>raw</code>" to "<code>published</code>" in an upcoming API version. Please consult docs for more details.';
137
137
  /** Label for the pinned release perspective */
138
- readonly 'settings.perspectives.pinned-release-label': 'Pinned release'
138
+ readonly "settings.perspectives.pinned-release-label": "Pinned release";
139
139
  /** Label for the scheduled drafts perspective */
140
- readonly 'settings.perspectives.scheduled-drafts': 'Scheduled drafts'
140
+ readonly "settings.perspectives.scheduled-drafts": "Scheduled drafts";
141
141
  /** Title for popover that explains what "Perspectives" are */
142
- readonly 'settings.perspectives.title': 'Perspectives'
143
- }
142
+ readonly "settings.perspectives.title": "Perspectives";
143
+ };
144
144
 
145
- export declare const visionTool: Plugin_2<void | VisionToolConfig>
145
+ export declare const visionTool: Plugin_2<void | VisionToolConfig>;
146
146
 
147
147
  export declare interface VisionToolConfig extends Partial<VisionConfig> {
148
- name?: string
149
- title?: string
150
- icon?: ComponentType
148
+ name?: string;
149
+ title?: string;
150
+ icon?: ComponentType;
151
151
  }
152
152
 
153
- export {}
153
+ export {};
package/package.json CHANGED
@@ -1,40 +1,40 @@
1
1
  {
2
2
  "name": "@sanity/vision",
3
- "version": "5.8.0",
3
+ "version": "5.8.1-next.10+8618f8476b",
4
4
  "description": "Sanity plugin for running/debugging GROQ-queries against Sanity datasets",
5
5
  "keywords": [
6
- "sanity",
6
+ "admin",
7
7
  "cms",
8
+ "content",
9
+ "gui",
8
10
  "headless",
9
11
  "realtime",
10
- "content",
11
- "vision",
12
+ "sanity",
12
13
  "sanity-plugin",
13
- "gui",
14
- "admin"
14
+ "vision"
15
15
  ],
16
16
  "homepage": "https://www.sanity.io/",
17
17
  "bugs": {
18
18
  "url": "https://github.com/sanity-io/sanity/issues"
19
19
  },
20
+ "license": "MIT",
21
+ "author": "Sanity.io <hello@sanity.io>",
20
22
  "repository": {
21
23
  "type": "git",
22
24
  "url": "git+https://github.com/sanity-io/sanity.git",
23
25
  "directory": "packages/@sanity/vision"
24
26
  },
25
- "license": "MIT",
26
- "author": "Sanity.io <hello@sanity.io>",
27
- "sideEffects": false,
27
+ "files": [
28
+ "lib"
29
+ ],
28
30
  "type": "module",
31
+ "sideEffects": false,
32
+ "main": "./lib/index.js",
33
+ "types": "./lib/index.d.ts",
29
34
  "exports": {
30
35
  ".": "./lib/index.js",
31
36
  "./package.json": "./package.json"
32
37
  },
33
- "main": "./lib/index.js",
34
- "types": "./lib/index.d.ts",
35
- "files": [
36
- "lib"
37
- ],
38
38
  "dependencies": {
39
39
  "@codemirror/autocomplete": "^6.20.0",
40
40
  "@codemirror/commands": "^6.10.1",
@@ -64,7 +64,7 @@
64
64
  "devDependencies": {
65
65
  "@sanity/client": "^7.14.1",
66
66
  "@sanity/eslint-config-i18n": "^2.0.0",
67
- "@sanity/pkg-utils": "^10.4.3",
67
+ "@sanity/pkg-utils": "^10.4.4",
68
68
  "@testing-library/react": "^16.3.1",
69
69
  "@types/lodash-es": "^4.17.12",
70
70
  "@types/react": "^19.2.7",
@@ -76,15 +76,15 @@
76
76
  "react": "^19.2.3",
77
77
  "react-dom": "^19.2.3",
78
78
  "rimraf": "^5.0.10",
79
- "sanity": "^5.8.0",
79
+ "sanity": "5.8.1-next.0",
80
80
  "styled-components": "npm:@sanity/styled-components@^6.1.24",
81
81
  "vite": "^7.3.1",
82
82
  "vitest": "^4.0.18",
83
- "@repo/eslint-config": "5.8.0",
84
- "@repo/package.config": "5.8.0",
85
- "@repo/test-config": "5.8.0",
86
- "@repo/tsconfig": "5.8.0",
87
- "@repo/package.bundle": "5.8.0"
83
+ "@repo/eslint-config": "5.8.1-next.10+8618f8476b",
84
+ "@repo/package.bundle": "5.8.1-next.10+8618f8476b",
85
+ "@repo/package.config": "5.8.1-next.10+8618f8476b",
86
+ "@repo/test-config": "5.8.1-next.10+8618f8476b",
87
+ "@repo/tsconfig": "5.8.1-next.10+8618f8476b"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "react": "^19.2.2",