@sanity/vision 4.22.0-next.14 → 4.22.0-next.21
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/index.d.ts +2 -111
- package/package.json +9 -8
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {ComponentType} from 'react'
|
|
2
|
-
import {Plugin as Plugin_2} from 'sanity'
|
|
3
2
|
|
|
4
3
|
/** @public */
|
|
5
4
|
declare type DatasetAclMode = 'public' | 'private' | 'custom'
|
|
@@ -32,117 +31,9 @@ export declare type VisionLocaleResourceKeys = keyof typeof visionLocaleStrings
|
|
|
32
31
|
*
|
|
33
32
|
* @internal
|
|
34
33
|
*/
|
|
35
|
-
declare const visionLocaleStrings:
|
|
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'
|
|
38
|
-
/** Label for deleting a query */
|
|
39
|
-
readonly 'action.delete': 'Delete'
|
|
40
|
-
/** Label for editing a query's title */
|
|
41
|
-
readonly 'action.edit-title': 'Edit title'
|
|
42
|
-
/** Label for stopping an ongoing listen operation */
|
|
43
|
-
readonly 'action.listen-cancel': 'Stop'
|
|
44
|
-
/** Label for setting up a listener */
|
|
45
|
-
readonly 'action.listen-execute': 'Listen'
|
|
46
|
-
/** Label for query loading table */
|
|
47
|
-
readonly 'action.load-queries': 'Load queries'
|
|
48
|
-
/** Label for loading a query */
|
|
49
|
-
readonly 'action.load-query': 'Load query'
|
|
50
|
-
/** Label for cancelling an ongoing query */
|
|
51
|
-
readonly 'action.query-cancel': 'Cancel'
|
|
52
|
-
/** Label for executing the query, eg doing a fetch */
|
|
53
|
-
readonly 'action.query-execute': 'Fetch'
|
|
54
|
-
/** Label for saving a query */
|
|
55
|
-
readonly 'action.save-query': 'Save query'
|
|
56
|
-
/** Label for updating a query */
|
|
57
|
-
readonly 'action.update': 'Update'
|
|
58
|
-
/** Label for actions user can take */
|
|
59
|
-
readonly 'label.actions': 'Actions'
|
|
60
|
-
/** Label for saved queries that have been edited */
|
|
61
|
-
readonly 'label.edited': 'Edited'
|
|
62
|
-
/**
|
|
63
|
-
* Some features has a "New" label indicating that the feature was recently introduced.
|
|
64
|
-
* This defines what the text of that label is. Keep it short and sweet.
|
|
65
|
-
*/
|
|
66
|
-
readonly 'label.new': 'New'
|
|
67
|
-
/** Label for query type "personal" */
|
|
68
|
-
readonly 'label.personal': 'Personal'
|
|
69
|
-
/** Label for savedAt date */
|
|
70
|
-
readonly 'label.saved-at': 'Saved at'
|
|
71
|
-
/** Saved queries */
|
|
72
|
-
readonly 'label.saved-queries': 'Saved queries'
|
|
73
|
-
/** Search queries */
|
|
74
|
-
readonly 'label.search-queries': 'Search queries'
|
|
75
|
-
/** Share query */
|
|
76
|
-
readonly 'label.share': 'Share'
|
|
77
|
-
/** Label for saved query type "team" */
|
|
78
|
-
readonly 'label.team': 'Team'
|
|
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'
|
|
81
|
-
/** Label for "Params" (parameters) editor/input */
|
|
82
|
-
readonly 'params.label': 'Params'
|
|
83
|
-
/** Label for 'Column' indicator when there is an error within the query */
|
|
84
|
-
readonly 'query.error.column': 'Column'
|
|
85
|
-
/** Label for 'Line' indicator when there is an error within the query */
|
|
86
|
-
readonly 'query.error.line': 'Line'
|
|
87
|
-
/** Label for "Query" editor/input */
|
|
88
|
-
readonly 'query.label': 'Query'
|
|
89
|
-
/** Label for the "Query URL" field, shown after executing a query, and allows for copying */
|
|
90
|
-
readonly 'query.url': 'Query URL'
|
|
91
|
-
/** Label for "End to End time" information of the fetched query */
|
|
92
|
-
readonly 'result.end-to-end-time-label': 'End-to-end'
|
|
93
|
-
/** Label for "Execution time" information of the fetched query */
|
|
94
|
-
readonly 'result.execution-time-label': 'Execution'
|
|
95
|
-
/** Label for "Result" explorer/view */
|
|
96
|
-
readonly 'result.label': 'Result'
|
|
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'
|
|
99
|
-
/** Label for "Save result as" result action */
|
|
100
|
-
readonly 'result.save-result-as-format': 'Save result as <SaveResultButtons/>'
|
|
101
|
-
/**
|
|
102
|
-
* "Not applicable" message for when there is no Execution time or End to End time information
|
|
103
|
-
* available for the query (eg when the query has not been executed, or errored)
|
|
104
|
-
*/
|
|
105
|
-
readonly 'result.timing-not-applicable': 'n/a'
|
|
106
|
-
/** Query already saved error label */
|
|
107
|
-
readonly 'save-query.already-saved': 'Query already saved'
|
|
108
|
-
/** Save error label */
|
|
109
|
-
readonly 'save-query.error': 'Error saving query'
|
|
110
|
-
/** Save success label */
|
|
111
|
-
readonly 'save-query.success': 'Query saved'
|
|
112
|
-
/** Label for the "API version" dropdown in settings */
|
|
113
|
-
readonly 'settings.api-version-label': 'API version'
|
|
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'
|
|
116
|
-
/** Label for the "Dataset" dropdown in vision settings */
|
|
117
|
-
readonly 'settings.dataset-label': 'Dataset'
|
|
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'
|
|
120
|
-
/** Label for the "other" versions within the "API version" dropdown */
|
|
121
|
-
readonly 'settings.other-api-version-label': 'Other'
|
|
122
|
-
/**
|
|
123
|
-
* Label for the "Perspective" dropdown in vision settings
|
|
124
|
-
* @see {@link https://www.sanity.io/docs/perspectives}
|
|
125
|
-
*/
|
|
126
|
-
readonly 'settings.perspective-label': 'Perspective'
|
|
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).'
|
|
129
|
-
/** Call to action to read the docs related to "Perspectives" */
|
|
130
|
-
readonly 'settings.perspectives.action.docs-link': 'Read docs'
|
|
131
|
-
/** Option for selecting default perspective */
|
|
132
|
-
readonly 'settings.perspectives.default': 'No perspective (API default)'
|
|
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'
|
|
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.'
|
|
137
|
-
/** Label for the pinned release perspective */
|
|
138
|
-
readonly 'settings.perspectives.pinned-release-label': 'Pinned release'
|
|
139
|
-
/** Label for the scheduled drafts perspective */
|
|
140
|
-
readonly 'settings.perspectives.scheduled-drafts': 'Scheduled drafts'
|
|
141
|
-
/** Title for popover that explains what "Perspectives" are */
|
|
142
|
-
readonly 'settings.perspectives.title': 'Perspectives'
|
|
143
|
-
}
|
|
34
|
+
declare const visionLocaleStrings: any
|
|
144
35
|
|
|
145
|
-
export declare const visionTool:
|
|
36
|
+
export declare const visionTool: any
|
|
146
37
|
|
|
147
38
|
export declare interface VisionToolConfig extends Partial<VisionConfig> {
|
|
148
39
|
name?: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/vision",
|
|
3
|
-
"version": "4.22.0-next.
|
|
3
|
+
"version": "4.22.0-next.21+7f88db7212",
|
|
4
4
|
"description": "Sanity plugin for running/debugging GROQ-queries against Sanity datasets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@sanity/client": "^7.13.2",
|
|
71
71
|
"@sanity/eslint-config-i18n": "^2.0.0",
|
|
72
|
-
"@sanity/pkg-utils": "^10.
|
|
72
|
+
"@sanity/pkg-utils": "^10.2.0",
|
|
73
73
|
"@testing-library/react": "^16.3.0",
|
|
74
74
|
"@types/lodash": "^4.17.20",
|
|
75
75
|
"@types/react": "^19.2.7",
|
|
@@ -80,18 +80,19 @@
|
|
|
80
80
|
"react": "^19.2.3",
|
|
81
81
|
"react-dom": "^19.2.3",
|
|
82
82
|
"rimraf": "^5.0.10",
|
|
83
|
+
"sanity": "4.22.0-next.0",
|
|
83
84
|
"styled-components": "npm:@sanity/styled-components@^6.1.24",
|
|
84
85
|
"vite": "^7.2.6",
|
|
85
86
|
"vitest": "^3.2.4",
|
|
86
|
-
"@repo/
|
|
87
|
-
"@repo/package.
|
|
88
|
-
"@repo/
|
|
89
|
-
"@repo/
|
|
90
|
-
"@repo/
|
|
91
|
-
"sanity": "4.22.0-next.14+e88b4b7d96"
|
|
87
|
+
"@repo/package.bundle": "4.22.0-next.21+7f88db7212",
|
|
88
|
+
"@repo/package.config": "4.22.0-next.21+7f88db7212",
|
|
89
|
+
"@repo/tsconfig": "4.22.0-next.21+7f88db7212",
|
|
90
|
+
"@repo/eslint-config": "4.22.0-next.21+7f88db7212",
|
|
91
|
+
"@repo/test-config": "4.22.0-next.21+7f88db7212"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"react": "^18 || ^19.0.0",
|
|
95
|
+
"sanity": "^4.0.0-0 || ^5.0.0-0",
|
|
95
96
|
"styled-components": "^6.1.15"
|
|
96
97
|
},
|
|
97
98
|
"scripts": {
|