@sanity/vision 6.7.0-next.36 → 6.7.0-next.5
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/SanityVision.js +2328 -0
- package/lib/_chunks-es/SanityVision.js.map +1 -0
- package/lib/_chunks-es/index.js +36 -0
- package/lib/_chunks-es/index.js.map +1 -0
- package/lib/_chunks-es/resources.js +136 -0
- package/lib/_chunks-es/resources.js.map +1 -0
- package/lib/bundle-css.d.ts +2 -1
- package/lib/bundle-css.js +2 -4
- package/lib/bundle.css +2 -1
- package/lib/bundle.css.map +1 -0
- package/lib/index.d.ts +16 -3
- package/lib/index.js +5 -24
- package/lib/index.js.map +1 -1
- package/package.json +16 -13
- package/lib/SanityVision-BKf_KyD3.js +0 -2771
- package/lib/SanityVision-BKf_KyD3.js.map +0 -1
- package/lib/i18n-DWd7qwtK.js +0 -14
- package/lib/i18n-DWd7qwtK.js.map +0 -1
- package/lib/resources-CGIw9x5R.js +0 -140
- package/lib/resources-CGIw9x5R.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EyeOpenIcon } from "@sanity/icons/EyeOpen";
|
|
2
|
+
import { lazy } from "react";
|
|
3
|
+
import { defineLocaleResourceBundle, definePlugin } from "sanity";
|
|
4
|
+
import { route } from "sanity/router";
|
|
5
|
+
const visionLocaleNamespace = "vision", visionUsEnglishLocaleBundle = defineLocaleResourceBundle({
|
|
6
|
+
locale: "en-US",
|
|
7
|
+
namespace: visionLocaleNamespace,
|
|
8
|
+
resources: () => import("./resources.js")
|
|
9
|
+
}), visionTool = definePlugin((options) => {
|
|
10
|
+
const {
|
|
11
|
+
name,
|
|
12
|
+
title,
|
|
13
|
+
icon,
|
|
14
|
+
...config
|
|
15
|
+
} = options || {};
|
|
16
|
+
return {
|
|
17
|
+
name: "@sanity/vision",
|
|
18
|
+
tools: [{
|
|
19
|
+
name: name || "vision",
|
|
20
|
+
title: title || "Vision",
|
|
21
|
+
icon: icon || EyeOpenIcon,
|
|
22
|
+
component: lazy(() => import("./SanityVision.js")),
|
|
23
|
+
options: config,
|
|
24
|
+
router: route.create("/*"),
|
|
25
|
+
__internalApplicationType: "sanity/vision"
|
|
26
|
+
}],
|
|
27
|
+
i18n: {
|
|
28
|
+
bundles: [visionUsEnglishLocaleBundle]
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
visionLocaleNamespace,
|
|
34
|
+
visionTool
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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","// oxlint-disable-next-line no-unassigned-import -- style import is effectful\nimport './styles.css'\n\nimport {EyeOpenIcon} from '@sanity/icons/EyeOpen'\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;"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { defineLocalesResources } from "sanity";
|
|
2
|
+
const visionLocaleStrings = defineLocalesResources("vision", {
|
|
3
|
+
/** Label for action "Copy to clipboard", tied to the "Query URL" field. Also used for accessibility purposes on button */
|
|
4
|
+
"action.copy-url-to-clipboard": "Copy to clipboard",
|
|
5
|
+
/** Label for deleting a query */
|
|
6
|
+
"action.delete": "Delete",
|
|
7
|
+
/** Label for editing a query's title */
|
|
8
|
+
"action.edit-title": "Edit title",
|
|
9
|
+
/** Label for stopping an ongoing listen operation */
|
|
10
|
+
"action.listen-cancel": "Stop",
|
|
11
|
+
/** Label for setting up a listener */
|
|
12
|
+
"action.listen-execute": "Listen",
|
|
13
|
+
/** Label for query loading table */
|
|
14
|
+
"action.load-queries": "Load queries",
|
|
15
|
+
/** Label for loading a query */
|
|
16
|
+
"action.load-query": "Load query",
|
|
17
|
+
/** Label for cancelling an ongoing query */
|
|
18
|
+
"action.query-cancel": "Cancel",
|
|
19
|
+
/** Label for executing the query, eg doing a fetch */
|
|
20
|
+
"action.query-execute": "Fetch",
|
|
21
|
+
/** Label for saving a query */
|
|
22
|
+
"action.save-personal-copy": "Save personal copy",
|
|
23
|
+
/** Label for saving a personal query */
|
|
24
|
+
"action.save-personal-query": "Save as personal",
|
|
25
|
+
/** Label for saving a query */
|
|
26
|
+
"action.save-query": "Save query",
|
|
27
|
+
/** Label for saving a shared query */
|
|
28
|
+
"action.save-shared-query": "Save as shared",
|
|
29
|
+
/** Label for unsharing a query */
|
|
30
|
+
"action.unshare": "Unshare",
|
|
31
|
+
/** Label for updating a query */
|
|
32
|
+
"action.update": "Update",
|
|
33
|
+
/** Label for actions user can take */
|
|
34
|
+
"label.actions": "Actions",
|
|
35
|
+
/** Label for all saved queries */
|
|
36
|
+
"label.all": "All",
|
|
37
|
+
/** Label for saved queries that have been edited */
|
|
38
|
+
"label.edited": "Edited",
|
|
39
|
+
/**
|
|
40
|
+
* Some features has a "New" label indicating that the feature was recently introduced.
|
|
41
|
+
* This defines what the text of that label is. Keep it short and sweet.
|
|
42
|
+
*/
|
|
43
|
+
"label.new": "New",
|
|
44
|
+
/** Label for query type "personal" */
|
|
45
|
+
"label.personal": "Personal",
|
|
46
|
+
/** Label for savedAt date */
|
|
47
|
+
"label.saved-at": "Saved at",
|
|
48
|
+
/** Saved queries */
|
|
49
|
+
"label.saved-queries": "Saved queries",
|
|
50
|
+
/** Search queries */
|
|
51
|
+
"label.search-queries": "Search queries",
|
|
52
|
+
/** Share query */
|
|
53
|
+
"label.share": "Share",
|
|
54
|
+
/** Label for query type "shared" */
|
|
55
|
+
"label.shared": "Shared",
|
|
56
|
+
/** Label for saved query type "team" */
|
|
57
|
+
"label.team": "Team",
|
|
58
|
+
/** Label for untitled query fallback */
|
|
59
|
+
"label.untitled-query": "Untitled",
|
|
60
|
+
/** Error message for when the "Params" input are not a valid json */
|
|
61
|
+
"params.error.params-invalid-json": "Parameters are not valid JSON",
|
|
62
|
+
/** Label for "Params" (parameters) editor/input */
|
|
63
|
+
"params.label": "Params",
|
|
64
|
+
/** Label for 'Column' indicator when there is an error within the query */
|
|
65
|
+
"query.error.column": "Column",
|
|
66
|
+
/** Label for 'Line' indicator when there is an error within the query */
|
|
67
|
+
"query.error.line": "Line",
|
|
68
|
+
/** Label for "Query" editor/input */
|
|
69
|
+
"query.label": "Query",
|
|
70
|
+
/** Label for the "Query URL" field, shown after executing a query, and allows for copying */
|
|
71
|
+
"query.url": "Query URL",
|
|
72
|
+
/** Label for "End to End time" information of the fetched query */
|
|
73
|
+
"result.end-to-end-time-label": "End-to-end",
|
|
74
|
+
/** Label for "Execution time" information of the fetched query */
|
|
75
|
+
"result.execution-time-label": "Execution",
|
|
76
|
+
/** Label for "Result" explorer/view */
|
|
77
|
+
"result.label": "Result",
|
|
78
|
+
/** Tooltip text shown when the query result is not encodable as CSV */
|
|
79
|
+
"result.save-result-as-csv.not-csv-encodable": "Result cannot be encoded as CSV",
|
|
80
|
+
/** Label for "Save result as" result action */
|
|
81
|
+
"result.save-result-as-format": "Save result as <SaveResultButtons/>",
|
|
82
|
+
/**
|
|
83
|
+
* "Not applicable" message for when there is no Execution time or End to End time information
|
|
84
|
+
* available for the query (eg when the query has not been executed, or errored)
|
|
85
|
+
*/
|
|
86
|
+
"result.timing-not-applicable": "n/a",
|
|
87
|
+
/** Query already saved error label */
|
|
88
|
+
"save-query.already-saved": "Query already saved",
|
|
89
|
+
/** Save error label */
|
|
90
|
+
"save-query.error": "Error saving query",
|
|
91
|
+
/** Save personal copy success label */
|
|
92
|
+
"save-query.personal-copy-success": "Personal copy saved",
|
|
93
|
+
/** Warning displayed before sharing a query */
|
|
94
|
+
"save-query.share-warning": "Shared queries are stored as documents in your dataset and count toward your document quota.",
|
|
95
|
+
/** Save shared query success label */
|
|
96
|
+
"save-query.shared-success": "Shared query saved",
|
|
97
|
+
/** Save success label */
|
|
98
|
+
"save-query.success": "Query saved",
|
|
99
|
+
/** Save unshared query success label */
|
|
100
|
+
"save-query.unshared-success": "Query moved to personal",
|
|
101
|
+
/** Label for the "API version" dropdown in settings */
|
|
102
|
+
"settings.api-version-label": "API version",
|
|
103
|
+
/** Label for the "Custom API version" input in settings, shown when "other" is chosen as API version */
|
|
104
|
+
"settings.custom-api-version-label": "Custom API version",
|
|
105
|
+
/** Label for the "Dataset" dropdown in vision settings */
|
|
106
|
+
"settings.dataset-label": "Dataset",
|
|
107
|
+
/** Error label for when the API version in 'Custom API version' input is invalid */
|
|
108
|
+
"settings.error.invalid-api-version": "Invalid API version",
|
|
109
|
+
/** Label for the "other" versions within the "API version" dropdown */
|
|
110
|
+
"settings.other-api-version-label": "Other",
|
|
111
|
+
/**
|
|
112
|
+
* Label for the "Perspective" dropdown in vision settings
|
|
113
|
+
* @see {@link https://www.sanity.io/docs/perspectives}
|
|
114
|
+
*/
|
|
115
|
+
"settings.perspective-label": "Perspective",
|
|
116
|
+
/** Notification about previewDrafts to drafts rename */
|
|
117
|
+
"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).',
|
|
118
|
+
/** Call to action to read the docs related to "Perspectives" */
|
|
119
|
+
"settings.perspectives.action.docs-link": "Read docs",
|
|
120
|
+
/** Option for selecting default perspective */
|
|
121
|
+
"settings.perspectives.default": "No perspective (API default)",
|
|
122
|
+
/** Description for popover that explains what "Perspectives" are */
|
|
123
|
+
"settings.perspectives.description": 'Perspectives allow your query to run against different "views" of the content in your dataset',
|
|
124
|
+
/** Description for upcoming default perspective change */
|
|
125
|
+
"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.',
|
|
126
|
+
/** Label for the pinned release perspective */
|
|
127
|
+
"settings.perspectives.pinned-release-label": "Pinned release",
|
|
128
|
+
/** Label for the scheduled drafts perspective */
|
|
129
|
+
"settings.perspectives.scheduled-drafts": "Scheduled drafts",
|
|
130
|
+
/** Title for popover that explains what "Perspectives" are */
|
|
131
|
+
"settings.perspectives.title": "Perspectives"
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
visionLocaleStrings as default
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sources":["../../src/i18n/resources.ts"],"sourcesContent":["/* eslint sort-keys: \"error\" */\nimport {defineLocalesResources} from 'sanity'\n\n/**\n * Defined locale strings for the vision tool, in US English.\n *\n * @internal\n */\nconst visionLocaleStrings = defineLocalesResources('vision', {\n /** Label for action \"Copy to clipboard\", tied to the \"Query URL\" field. Also used for accessibility purposes on button */\n 'action.copy-url-to-clipboard': 'Copy to clipboard',\n /** Label for deleting a query */\n 'action.delete': 'Delete',\n /** Label for editing a query's title */\n 'action.edit-title': 'Edit title',\n /** Label for stopping an ongoing listen operation */\n 'action.listen-cancel': 'Stop',\n /** Label for setting up a listener */\n 'action.listen-execute': 'Listen',\n /** Label for query loading table */\n 'action.load-queries': 'Load queries',\n /** Label for loading a query */\n 'action.load-query': 'Load query',\n /** Label for cancelling an ongoing query */\n 'action.query-cancel': 'Cancel',\n /** Label for executing the query, eg doing a fetch */\n 'action.query-execute': 'Fetch',\n /** Label for saving a query */\n 'action.save-personal-copy': 'Save personal copy',\n /** Label for saving a personal query */\n 'action.save-personal-query': 'Save as personal',\n /** Label for saving a query */\n 'action.save-query': 'Save query',\n /** Label for saving a shared query */\n 'action.save-shared-query': 'Save as shared',\n /** Label for unsharing a query */\n 'action.unshare': 'Unshare',\n /** Label for updating a query */\n 'action.update': 'Update',\n\n /** Label for actions user can take */\n 'label.actions': 'Actions',\n /** Label for all saved queries */\n 'label.all': 'All',\n /** Label for saved queries that have been edited */\n 'label.edited': 'Edited',\n\n /**\n * Some features has a \"New\" label indicating that the feature was recently introduced.\n * This defines what the text of that label is. Keep it short and sweet.\n */\n 'label.new': 'New',\n /** Label for query type \"personal\" */\n 'label.personal': 'Personal',\n /** Label for savedAt date */\n 'label.saved-at': 'Saved at',\n /** Saved queries */\n 'label.saved-queries': 'Saved queries',\n /** Search queries */\n 'label.search-queries': 'Search queries',\n /** Share query */\n 'label.share': 'Share',\n /** Label for query type \"shared\" */\n 'label.shared': 'Shared',\n /** Label for saved query type \"team\" */\n 'label.team': 'Team',\n /** Label for untitled query fallback */\n 'label.untitled-query': 'Untitled',\n\n /** Error message for when the \"Params\" input are not a valid json */\n 'params.error.params-invalid-json': 'Parameters are not valid JSON',\n /** Label for \"Params\" (parameters) editor/input */\n 'params.label': 'Params',\n\n /** Label for 'Column' indicator when there is an error within the query */\n 'query.error.column': 'Column',\n /** Label for 'Line' indicator when there is an error within the query */\n 'query.error.line': 'Line',\n /** Label for \"Query\" editor/input */\n 'query.label': 'Query',\n /** Label for the \"Query URL\" field, shown after executing a query, and allows for copying */\n 'query.url': 'Query URL',\n\n /** Label for \"End to End time\" information of the fetched query */\n 'result.end-to-end-time-label': 'End-to-end',\n /** Label for \"Execution time\" information of the fetched query */\n 'result.execution-time-label': 'Execution',\n /** Label for \"Result\" explorer/view */\n 'result.label': 'Result',\n /** Tooltip text shown when the query result is not encodable as CSV */\n 'result.save-result-as-csv.not-csv-encodable': 'Result cannot be encoded as CSV',\n /** Label for \"Save result as\" result action */\n 'result.save-result-as-format': 'Save result as <SaveResultButtons/>',\n /**\n * \"Not applicable\" message for when there is no Execution time or End to End time information\n * available for the query (eg when the query has not been executed, or errored)\n */\n 'result.timing-not-applicable': 'n/a',\n\n /** Query already saved error label */\n 'save-query.already-saved': 'Query already saved',\n /** Save error label */\n 'save-query.error': 'Error saving query',\n /** Save personal copy success label */\n 'save-query.personal-copy-success': 'Personal copy saved',\n /** Warning displayed before sharing a query */\n 'save-query.share-warning':\n 'Shared queries are stored as documents in your dataset and count toward your document quota.',\n /** Save shared query success label */\n 'save-query.shared-success': 'Shared query saved',\n /** Save success label */\n 'save-query.success': 'Query saved',\n /** Save unshared query success label */\n 'save-query.unshared-success': 'Query moved to personal',\n\n /** Label for the \"API version\" dropdown in settings */\n 'settings.api-version-label': 'API version',\n /** Label for the \"Custom API version\" input in settings, shown when \"other\" is chosen as API version */\n 'settings.custom-api-version-label': 'Custom API version',\n /** Label for the \"Dataset\" dropdown in vision settings */\n 'settings.dataset-label': 'Dataset',\n /** Error label for when the API version in 'Custom API version' input is invalid */\n 'settings.error.invalid-api-version': 'Invalid API version',\n /** Label for the \"other\" versions within the \"API version\" dropdown */\n 'settings.other-api-version-label': 'Other',\n /**\n * Label for the \"Perspective\" dropdown in vision settings\n * @see {@link https://www.sanity.io/docs/perspectives}\n */\n 'settings.perspective-label': 'Perspective',\n /** Notification about previewDrafts to drafts rename */\n 'settings.perspective.preview-drafts-renamed-to-drafts.description':\n '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).',\n /** Call to action to read the docs related to \"Perspectives\" */\n 'settings.perspectives.action.docs-link': 'Read docs',\n /** Option for selecting default perspective */\n 'settings.perspectives.default': 'No perspective (API default)',\n /** Description for popover that explains what \"Perspectives\" are */\n 'settings.perspectives.description':\n 'Perspectives allow your query to run against different \"views\" of the content in your dataset',\n /** Description for upcoming default perspective change */\n 'settings.perspectives.new-default.description':\n 'The default perspective will change from \"<code>raw</code>\" to \"<code>published</code>\" in an upcoming API version. Please consult docs for more details.',\n /** Label for the pinned release perspective */\n 'settings.perspectives.pinned-release-label': 'Pinned release',\n /** Label for the scheduled drafts perspective */\n 'settings.perspectives.scheduled-drafts': 'Scheduled drafts',\n /** Title for popover that explains what \"Perspectives\" are */\n 'settings.perspectives.title': 'Perspectives',\n} as const)\n\n/**\n * @alpha\n */\nexport type VisionLocaleResourceKeys = keyof typeof visionLocaleStrings\n\nexport default visionLocaleStrings\n"],"names":["visionLocaleStrings","defineLocalesResources"],"mappings":";AAQA,MAAMA,sBAAsBC,uBAAuB,UAAU;AAAA;AAAA,EAE3D,gCAAgC;AAAA;AAAA,EAEhC,iBAAiB;AAAA;AAAA,EAEjB,qBAAqB;AAAA;AAAA,EAErB,wBAAwB;AAAA;AAAA,EAExB,yBAAyB;AAAA;AAAA,EAEzB,uBAAuB;AAAA;AAAA,EAEvB,qBAAqB;AAAA;AAAA,EAErB,uBAAuB;AAAA;AAAA,EAEvB,wBAAwB;AAAA;AAAA,EAExB,6BAA6B;AAAA;AAAA,EAE7B,8BAA8B;AAAA;AAAA,EAE9B,qBAAqB;AAAA;AAAA,EAErB,4BAA4B;AAAA;AAAA,EAE5B,kBAAkB;AAAA;AAAA,EAElB,iBAAiB;AAAA;AAAA,EAGjB,iBAAiB;AAAA;AAAA,EAEjB,aAAa;AAAA;AAAA,EAEb,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,aAAa;AAAA;AAAA,EAEb,kBAAkB;AAAA;AAAA,EAElB,kBAAkB;AAAA;AAAA,EAElB,uBAAuB;AAAA;AAAA,EAEvB,wBAAwB;AAAA;AAAA,EAExB,eAAe;AAAA;AAAA,EAEf,gBAAgB;AAAA;AAAA,EAEhB,cAAc;AAAA;AAAA,EAEd,wBAAwB;AAAA;AAAA,EAGxB,oCAAoC;AAAA;AAAA,EAEpC,gBAAgB;AAAA;AAAA,EAGhB,sBAAsB;AAAA;AAAA,EAEtB,oBAAoB;AAAA;AAAA,EAEpB,eAAe;AAAA;AAAA,EAEf,aAAa;AAAA;AAAA,EAGb,gCAAgC;AAAA;AAAA,EAEhC,+BAA+B;AAAA;AAAA,EAE/B,gBAAgB;AAAA;AAAA,EAEhB,+CAA+C;AAAA;AAAA,EAE/C,gCAAgC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhC,gCAAgC;AAAA;AAAA,EAGhC,4BAA4B;AAAA;AAAA,EAE5B,oBAAoB;AAAA;AAAA,EAEpB,oCAAoC;AAAA;AAAA,EAEpC,4BACE;AAAA;AAAA,EAEF,6BAA6B;AAAA;AAAA,EAE7B,sBAAsB;AAAA;AAAA,EAEtB,+BAA+B;AAAA;AAAA,EAG/B,8BAA8B;AAAA;AAAA,EAE9B,qCAAqC;AAAA;AAAA,EAErC,0BAA0B;AAAA;AAAA,EAE1B,sCAAsC;AAAA;AAAA,EAEtC,oCAAoC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpC,8BAA8B;AAAA;AAAA,EAE9B,qEACE;AAAA;AAAA,EAEF,0CAA0C;AAAA;AAAA,EAE1C,iCAAiC;AAAA;AAAA,EAEjC,qCACE;AAAA;AAAA,EAEF,iDACE;AAAA;AAAA,EAEF,8CAA8C;AAAA;AAAA,EAE9C,0CAA0C;AAAA;AAAA,EAE1C,+BAA+B;AACjC,CAAU;"}
|
package/lib/bundle-css.d.ts
CHANGED
package/lib/bundle-css.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
// No-op shim for `bundle.css
|
|
2
|
-
|
|
3
|
-
// load `.css` files. Intentionally has no JS syntax: it parses as both CommonJS and an ES
|
|
4
|
-
// module, regardless of the package `type`.
|
|
1
|
+
// No-op shim for `bundle.css` in runtimes that cannot import `.css` files directly.
|
|
2
|
+
export default ""
|
package/lib/bundle.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
#sanity{--static-css-file-loaded-vision:true}._116kdfx3{box-sizing:border-box;width:100%;height:100%;display:flex;position:relative;overflow:clip}._116kdfx3 .cm-theme{width:100%}._116kdfx3 .cm-editor{height:100%;font-size:16px;line-height:21px}._116kdfx3 .cm-line{padding-left:var(--_116kdfx0)}._116kdfx3 .cm-content{padding-top:var(--_116kdfx2);border-right-width:var(--_116kdfx1)!important}.
|
|
1
|
+
#sanity{--static-css-file-loaded-vision:true}._116kdfx3{box-sizing:border-box;width:100%;height:100%;display:flex;position:relative;overflow:clip}._116kdfx3 .cm-theme{width:100%}._116kdfx3 .cm-editor{height:100%;font-size:16px;line-height:21px}._116kdfx3 .cm-line{padding-left:var(--_116kdfx0)}._116kdfx3 .cm-content{padding-top:var(--_116kdfx2);border-right-width:var(--_116kdfx1)!important}._15lckbo0{background:var(--card-bg-color);z-index:1;flex-shrink:0}._15lckbo1{width:100%;min-width:0;min-height:0}._15lckbo2{min-height:0}._1i6jn8t0{max-width:240px}._1i6jn8t1{cursor:pointer;margin-right:auto}._1i6jn8t2{width:4px;height:4px;box-shadow:0 0 0 1px var(--card-bg-color);border-radius:3px}.vgszcp0.vgszcp0{color:var(--card-muted-fg-color)}._1rvgehc .json-inspector,._1rvgehc .json-inspector .json-inspector__selection{font-family:var(--_1rvgeh0);font-size:var(--_1rvgeh1);line-height:var(--_1rvgeh2);color:var(--card-code-fg-color)}._1rvgehc .json-inspector .json-inspector__leaf{padding-left:var(--_1rvgeh5)}._1rvgehc .json-inspector .json-inspector__leaf.json-inspector__leaf_root{padding-top:var(--_1rvgeh3);padding-left:0}._1rvgehc .json-inspector>.json-inspector__leaf_root>.json-inspector__line>.json-inspector__key{display:none}._1rvgehc .json-inspector .json-inspector__line{cursor:default;display:block;position:relative}._1rvgehc .json-inspector .json-inspector__line:after{content:"";z-index:-1;pointer-events:none;position:absolute;inset:0 -50px 0 -200px}._1rvgehc .json-inspector .json-inspector__line:hover:after{background:var(--card-code-bg-color)}._1rvgehc .json-inspector .json-inspector__leaf_composite>.json-inspector__line{cursor:pointer}._1rvgehc .json-inspector .json-inspector__leaf_composite>.json-inspector__line:before{content:"▸ ";margin-left:calc(0px - var(--_1rvgeh5));font-size:var(--_1rvgeh1);line-height:var(--_1rvgeh2)}._1rvgehc .json-inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite>.json-inspector__line:before{content:"▾ ";font-size:var(--_1rvgeh1);line-height:var(--_1rvgeh2)}._1rvgehc .json-inspector .json-inspector__radio,._1rvgehc .json-inspector .json-inspector__flatpath{display:none}._1rvgehc .json-inspector .json-inspector__value{margin-left:var(--_1rvgeh6)}._1rvgehc .json-inspector>.json-inspector__leaf_root>.json-inspector__line>.json-inspector__key+.json-inspector__value{margin:0}._1rvgehc .json-inspector .json-inspector__key{color:var(--_1rvgeh7)}._1rvgehc .json-inspector .json-inspector__value_helper,._1rvgehc .json-inspector .json-inspector__value_null{color:var(--_1rvgeh8)}._1rvgehc .json-inspector .json-inspector__not-found{padding-top:var(--_1rvgeh4)}._1rvgehc .json-inspector .json-inspector__value_string{color:var(--_1rvgeh9);word-break:break-word}._1rvgehc .json-inspector .json-inspector__value_boolean{color:var(--_1rvgeha)}._1rvgehc .json-inspector .json-inspector__value_number{color:var(--_1rvgehb)}._1rvgehc .json-inspector .json-inspector__show-original{cursor:pointer;padding:0 6px;display:inline-block}._1rvgehc .json-inspector .json-inspector__show-original:hover{color:inherit}._1rvgehc .json-inspector .json-inspector__show-original:before{content:"↔"}._1rvgehc .json-inspector .json-inspector__show-original:hover:after{content:" expand"}.ior2o00 .sidebarPanes .Pane{overflow:hidden auto}.ior2o01{position:absolute;inset:0}.ior2o02{min-height:0}.ior2o00 .Resizer{background:var(--card-border-color);opacity:1;z-index:1;box-sizing:border-box;background-clip:padding-box;border:solid #0000}.ior2o00 .Resizer:hover{border-color:var(--card-shadow-ambient-color)}.ior2o00 .Resizer.horizontal{cursor:row-resize;z-index:4;border-width:5px 0;width:100%;height:11px;margin:-5px 0}.ior2o00 .Resizer.vertical{cursor:col-resize;z-index:2;border-width:0 5px;width:11px;margin:0 -5px}.ior2o00 .Resizer.disabled{cursor:not-allowed}.ior2o00 .Resizer.disabled:hover{border-color:#0000}.ior2o03{z-index:6;border-bottom:1px solid var(--card-border-color);flex-shrink:0;position:relative;overflow:visible}.ior2o03.ior2o03{background:var(--card-bg-color)}.ior2o04{flex:1}.ior2o05{z-index:1;min-height:0;position:relative}.ior2o06{cursor:pointer;margin-right:auto}.ior2o07{z-index:10;margin:0;padding:0;position:absolute;top:1rem;left:0;right:0}.ior2o07 .ior2o04{-webkit-user-select:none;user-select:none}.ior2o08{left:33px}.ior2o09{flex-direction:column;width:100%;height:100%;position:relative}.ior2o0a{height:100%}.ior2o0b{position:relative}.ior2o0c{width:100%;max-width:100%;height:100%;position:absolute}.ior2o0d.ior2o0d:after{content:"";background-color:var(--card-bg-color);width:100%;position:absolute;top:0;bottom:0;left:0}.ior2o0e{z-index:20;width:100%;height:100%;position:relative}.ior2o0f{border-top:1px solid var(--card-border-color);flex-wrap:wrap}.ior2o0g{position:relative}.ior2o0i{height:100%;min-height:var(--ior2o0h)}.ior2o0j{position:relative}.ior2o0l.ior2o0l{transform:initial}.ior2o0l.ior2o0l:before,.ior2o0l.ior2o0l:after{content:none}.ior2o0l>span{gap:var(--ior2o0k);flex-wrap:wrap;align-items:center;display:flex!important}.ior2o0m{border-top:1px solid var(--card-border-color)}
|
|
2
|
+
/*# sourceMappingURL=bundle.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":null,"mappings":"ACAA,6CCAA,qGASA,gCAGA,kEAKA,kDAGA,kGCpBA,mEAKA,+CAKA,wBCVA,2BAGA,4CAIA,4FCPA,kDCAA,iMAMA,6EAGA,qHAIA,6GAGA,+FAKA,yIAUA,iGAGA,+FAGA,oMAMA,0LAKA,kHAGA,6EAGA,gIAGA,qEAGA,oIAGA,iFAGA,oGAIA,+EAGA,8EAGA,2GAKA,6EAGA,8EAGA,uFCvFA,kDAIA,mCAOA,sBAGA,+IAQA,sEAGA,iHAQA,mGAOA,8CAGA,oDAGA,qHAOA,iDAGA,gBAGA,kDAKA,0CAIA,iFASA,4DAGA,mBAGA,wEAMA,qBAGA,2BAGA,iEAMA,2HASA,6DAMA,sEAIA,2BAGA,+CAIA,2BAGA,mCAGA,4DAMA,0FAMA","sources":["bundle.css","src/styles.css.ts.vanilla.css","src/codemirror/VisionCodeMirror.css.ts.vanilla.css","src/components/QueryRecall.css.ts.vanilla.css","src/components/PerspectivePopover.css.ts.vanilla.css","src/components/QueryErrorDialog.css.ts.vanilla.css","src/components/ResultView.css.ts.vanilla.css","src/components/VisionGui.css.ts.vanilla.css"],"sourcesContent":["#sanity {\n --static-css-file-loaded-vision: true;\n}\n._116kdfx3 {\n width: 100%;\n box-sizing: border-box;\n height: 100%;\n overflow: hidden;\n overflow: clip;\n position: relative;\n display: flex;\n}\n._116kdfx3 .cm-theme {\n width: 100%;\n}\n._116kdfx3 .cm-editor {\n height: 100%;\n font-size: 16px;\n line-height: 21px;\n}\n._116kdfx3 .cm-line {\n padding-left: var(--_116kdfx0);\n}\n._116kdfx3 .cm-content {\n border-right-width: var(--_116kdfx1) !important;\n padding-top: var(--_116kdfx2);\n}\n._15lckbo0 {\n flex-shrink: 0;\n background: var(--card-bg-color);\n z-index: 1;\n}\n._15lckbo1 {\n min-height: 0;\n width: 100%;\n min-width: 0;\n}\n._15lckbo2 {\n min-height: 0;\n}\n._1i6jn8t0 {\n max-width: 240px;\n}\n._1i6jn8t1 {\n cursor: pointer;\n margin-right: auto;\n}\n._1i6jn8t2 {\n width: 4px;\n height: 4px;\n border-radius: 3px;\n box-shadow: 0 0 0 1px var(--card-bg-color);\n}\n.vgszcp0.vgszcp0 {\n color: var(--card-muted-fg-color);\n}\n._1rvgehc .json-inspector, ._1rvgehc .json-inspector .json-inspector__selection {\n font-family: var(--_1rvgeh0);\n font-size: var(--_1rvgeh1);\n line-height: var(--_1rvgeh2);\n color: var(--card-code-fg-color);\n}\n._1rvgehc .json-inspector .json-inspector__leaf {\n padding-left: var(--_1rvgeh5);\n}\n._1rvgehc .json-inspector .json-inspector__leaf.json-inspector__leaf_root {\n padding-top: var(--_1rvgeh3);\n padding-left: 0;\n}\n._1rvgehc .json-inspector > .json-inspector__leaf_root > .json-inspector__line > .json-inspector__key {\n display: none;\n}\n._1rvgehc .json-inspector .json-inspector__line {\n display: block;\n position: relative;\n cursor: default;\n}\n._1rvgehc .json-inspector .json-inspector__line::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: -200px;\n right: -50px;\n bottom: 0;\n z-index: -1;\n pointer-events: none;\n}\n._1rvgehc .json-inspector .json-inspector__line:hover::after {\n background: var(--card-code-bg-color);\n}\n._1rvgehc .json-inspector .json-inspector__leaf_composite > .json-inspector__line {\n cursor: pointer;\n}\n._1rvgehc .json-inspector .json-inspector__leaf_composite > .json-inspector__line::before {\n content: '▸ ';\n margin-left: calc(0px - var(--_1rvgeh5));\n font-size: var(--_1rvgeh1);\n line-height: var(--_1rvgeh2);\n}\n._1rvgehc .json-inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite > .json-inspector__line::before {\n content: '▾ ';\n font-size: var(--_1rvgeh1);\n line-height: var(--_1rvgeh2);\n}\n._1rvgehc .json-inspector .json-inspector__radio, ._1rvgehc .json-inspector .json-inspector__flatpath {\n display: none;\n}\n._1rvgehc .json-inspector .json-inspector__value {\n margin-left: var(--_1rvgeh6);\n}\n._1rvgehc .json-inspector > .json-inspector__leaf_root > .json-inspector__line > .json-inspector__key + .json-inspector__value {\n margin: 0;\n}\n._1rvgehc .json-inspector .json-inspector__key {\n color: var(--_1rvgeh7);\n}\n._1rvgehc .json-inspector .json-inspector__value_helper, ._1rvgehc .json-inspector .json-inspector__value_null {\n color: var(--_1rvgeh8);\n}\n._1rvgehc .json-inspector .json-inspector__not-found {\n padding-top: var(--_1rvgeh4);\n}\n._1rvgehc .json-inspector .json-inspector__value_string {\n color: var(--_1rvgeh9);\n word-break: break-word;\n}\n._1rvgehc .json-inspector .json-inspector__value_boolean {\n color: var(--_1rvgeha);\n}\n._1rvgehc .json-inspector .json-inspector__value_number {\n color: var(--_1rvgehb);\n}\n._1rvgehc .json-inspector .json-inspector__show-original {\n display: inline-block;\n padding: 0 6px;\n cursor: pointer;\n}\n._1rvgehc .json-inspector .json-inspector__show-original:hover {\n color: inherit;\n}\n._1rvgehc .json-inspector .json-inspector__show-original::before {\n content: '↔';\n}\n._1rvgehc .json-inspector .json-inspector__show-original:hover::after {\n content: ' expand';\n}\n.ior2o00 .sidebarPanes .Pane {\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ior2o01 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.ior2o02 {\n min-height: 0;\n}\n.ior2o00 .Resizer {\n background: var(--card-border-color);\n opacity: 1;\n z-index: 1;\n box-sizing: border-box;\n background-clip: padding-box;\n border: solid transparent;\n}\n.ior2o00 .Resizer:hover {\n border-color: var(--card-shadow-ambient-color);\n}\n.ior2o00 .Resizer.horizontal {\n height: 11px;\n margin: -5px 0;\n border-width: 5px 0;\n cursor: row-resize;\n width: 100%;\n z-index: 4;\n}\n.ior2o00 .Resizer.vertical {\n width: 11px;\n margin: 0 -5px;\n border-width: 0 5px;\n cursor: col-resize;\n z-index: 2;\n}\n.ior2o00 .Resizer.disabled {\n cursor: not-allowed;\n}\n.ior2o00 .Resizer.disabled:hover {\n border-color: transparent;\n}\n.ior2o03 {\n position: relative;\n flex-shrink: 0;\n z-index: 6;\n overflow: visible;\n border-bottom: 1px solid var(--card-border-color);\n}\n.ior2o03.ior2o03 {\n background: var(--card-bg-color);\n}\n.ior2o04 {\n flex: 1;\n}\n.ior2o05 {\n position: relative;\n min-height: 0;\n z-index: 1;\n}\n.ior2o06 {\n cursor: pointer;\n margin-right: auto;\n}\n.ior2o07 {\n position: absolute;\n top: 1rem;\n left: 0;\n padding: 0;\n margin: 0;\n z-index: 10;\n right: 0;\n}\n.ior2o07 .ior2o04 {\n user-select: none;\n}\n.ior2o08 {\n left: 33px;\n}\n.ior2o09 {\n width: 100%;\n height: 100%;\n position: relative;\n flex-direction: column;\n}\n.ior2o0a {\n height: 100%;\n}\n.ior2o0b {\n position: relative;\n}\n.ior2o0c {\n height: 100%;\n width: 100%;\n position: absolute;\n max-width: 100%;\n}\n.ior2o0d.ior2o0d::after {\n content: \"\";\n background-color: var(--card-bg-color);\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n.ior2o0e {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 20;\n}\n.ior2o0f {\n border-top: 1px solid var(--card-border-color);\n flex-wrap: wrap;\n}\n.ior2o0g {\n position: relative;\n}\n.ior2o0i {\n height: 100%;\n min-height: var(--ior2o0h);\n}\n.ior2o0j {\n position: relative;\n}\n.ior2o0l.ior2o0l {\n transform: initial;\n}\n.ior2o0l.ior2o0l::before {\n content: none;\n}\n.ior2o0l.ior2o0l::after {\n content: none;\n}\n.ior2o0l > span {\n display: flex !important;\n flex-wrap: wrap;\n gap: var(--ior2o0k);\n align-items: center;\n}\n.ior2o0m {\n border-top: 1px solid var(--card-border-color);\n}","#sanity {\n --static-css-file-loaded-vision: true;\n}","._116kdfx3 {\n width: 100%;\n box-sizing: border-box;\n height: 100%;\n overflow: hidden;\n overflow: clip;\n position: relative;\n display: flex;\n}\n._116kdfx3 .cm-theme {\n width: 100%;\n}\n._116kdfx3 .cm-editor {\n height: 100%;\n font-size: 16px;\n line-height: 21px;\n}\n._116kdfx3 .cm-line {\n padding-left: var(--_116kdfx0);\n}\n._116kdfx3 .cm-content {\n border-right-width: var(--_116kdfx1) !important;\n padding-top: var(--_116kdfx2);\n}","._15lckbo0 {\n flex-shrink: 0;\n background: var(--card-bg-color);\n z-index: 1;\n}\n._15lckbo1 {\n min-height: 0;\n width: 100%;\n min-width: 0;\n}\n._15lckbo2 {\n min-height: 0;\n}","._1i6jn8t0 {\n max-width: 240px;\n}\n._1i6jn8t1 {\n cursor: pointer;\n margin-right: auto;\n}\n._1i6jn8t2 {\n width: 4px;\n height: 4px;\n border-radius: 3px;\n box-shadow: 0 0 0 1px var(--card-bg-color);\n}",".vgszcp0.vgszcp0 {\n color: var(--card-muted-fg-color);\n}","._1rvgehc .json-inspector, ._1rvgehc .json-inspector .json-inspector__selection {\n font-family: var(--_1rvgeh0);\n font-size: var(--_1rvgeh1);\n line-height: var(--_1rvgeh2);\n color: var(--card-code-fg-color);\n}\n._1rvgehc .json-inspector .json-inspector__leaf {\n padding-left: var(--_1rvgeh5);\n}\n._1rvgehc .json-inspector .json-inspector__leaf.json-inspector__leaf_root {\n padding-top: var(--_1rvgeh3);\n padding-left: 0;\n}\n._1rvgehc .json-inspector > .json-inspector__leaf_root > .json-inspector__line > .json-inspector__key {\n display: none;\n}\n._1rvgehc .json-inspector .json-inspector__line {\n display: block;\n position: relative;\n cursor: default;\n}\n._1rvgehc .json-inspector .json-inspector__line::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: -200px;\n right: -50px;\n bottom: 0;\n z-index: -1;\n pointer-events: none;\n}\n._1rvgehc .json-inspector .json-inspector__line:hover::after {\n background: var(--card-code-bg-color);\n}\n._1rvgehc .json-inspector .json-inspector__leaf_composite > .json-inspector__line {\n cursor: pointer;\n}\n._1rvgehc .json-inspector .json-inspector__leaf_composite > .json-inspector__line::before {\n content: '▸ ';\n margin-left: calc(0px - var(--_1rvgeh5));\n font-size: var(--_1rvgeh1);\n line-height: var(--_1rvgeh2);\n}\n._1rvgehc .json-inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite > .json-inspector__line::before {\n content: '▾ ';\n font-size: var(--_1rvgeh1);\n line-height: var(--_1rvgeh2);\n}\n._1rvgehc .json-inspector .json-inspector__radio, ._1rvgehc .json-inspector .json-inspector__flatpath {\n display: none;\n}\n._1rvgehc .json-inspector .json-inspector__value {\n margin-left: var(--_1rvgeh6);\n}\n._1rvgehc .json-inspector > .json-inspector__leaf_root > .json-inspector__line > .json-inspector__key + .json-inspector__value {\n margin: 0;\n}\n._1rvgehc .json-inspector .json-inspector__key {\n color: var(--_1rvgeh7);\n}\n._1rvgehc .json-inspector .json-inspector__value_helper, ._1rvgehc .json-inspector .json-inspector__value_null {\n color: var(--_1rvgeh8);\n}\n._1rvgehc .json-inspector .json-inspector__not-found {\n padding-top: var(--_1rvgeh4);\n}\n._1rvgehc .json-inspector .json-inspector__value_string {\n color: var(--_1rvgeh9);\n word-break: break-word;\n}\n._1rvgehc .json-inspector .json-inspector__value_boolean {\n color: var(--_1rvgeha);\n}\n._1rvgehc .json-inspector .json-inspector__value_number {\n color: var(--_1rvgehb);\n}\n._1rvgehc .json-inspector .json-inspector__show-original {\n display: inline-block;\n padding: 0 6px;\n cursor: pointer;\n}\n._1rvgehc .json-inspector .json-inspector__show-original:hover {\n color: inherit;\n}\n._1rvgehc .json-inspector .json-inspector__show-original::before {\n content: '↔';\n}\n._1rvgehc .json-inspector .json-inspector__show-original:hover::after {\n content: ' expand';\n}",".ior2o00 .sidebarPanes .Pane {\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ior2o01 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.ior2o02 {\n min-height: 0;\n}\n.ior2o00 .Resizer {\n background: var(--card-border-color);\n opacity: 1;\n z-index: 1;\n box-sizing: border-box;\n background-clip: padding-box;\n border: solid transparent;\n}\n.ior2o00 .Resizer:hover {\n border-color: var(--card-shadow-ambient-color);\n}\n.ior2o00 .Resizer.horizontal {\n height: 11px;\n margin: -5px 0;\n border-width: 5px 0;\n cursor: row-resize;\n width: 100%;\n z-index: 4;\n}\n.ior2o00 .Resizer.vertical {\n width: 11px;\n margin: 0 -5px;\n border-width: 0 5px;\n cursor: col-resize;\n z-index: 2;\n}\n.ior2o00 .Resizer.disabled {\n cursor: not-allowed;\n}\n.ior2o00 .Resizer.disabled:hover {\n border-color: transparent;\n}\n.ior2o03 {\n position: relative;\n flex-shrink: 0;\n z-index: 6;\n overflow: visible;\n border-bottom: 1px solid var(--card-border-color);\n}\n.ior2o03.ior2o03 {\n background: var(--card-bg-color);\n}\n.ior2o04 {\n flex: 1;\n}\n.ior2o05 {\n position: relative;\n min-height: 0;\n z-index: 1;\n}\n.ior2o06 {\n cursor: pointer;\n margin-right: auto;\n}\n.ior2o07 {\n position: absolute;\n top: 1rem;\n left: 0;\n padding: 0;\n margin: 0;\n z-index: 10;\n right: 0;\n}\n.ior2o07 .ior2o04 {\n user-select: none;\n}\n.ior2o08 {\n left: 33px;\n}\n.ior2o09 {\n width: 100%;\n height: 100%;\n position: relative;\n flex-direction: column;\n}\n.ior2o0a {\n height: 100%;\n}\n.ior2o0b {\n position: relative;\n}\n.ior2o0c {\n height: 100%;\n width: 100%;\n position: absolute;\n max-width: 100%;\n}\n.ior2o0d.ior2o0d::after {\n content: \"\";\n background-color: var(--card-bg-color);\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n.ior2o0e {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 20;\n}\n.ior2o0f {\n border-top: 1px solid var(--card-border-color);\n flex-wrap: wrap;\n}\n.ior2o0g {\n position: relative;\n}\n.ior2o0i {\n height: 100%;\n min-height: var(--ior2o0h);\n}\n.ior2o0j {\n position: relative;\n}\n.ior2o0l.ior2o0l {\n transform: initial;\n}\n.ior2o0l.ior2o0l::before {\n content: none;\n}\n.ior2o0l.ior2o0l::after {\n content: none;\n}\n.ior2o0l > span {\n display: flex !important;\n flex-wrap: wrap;\n gap: var(--ior2o0k);\n align-items: center;\n}\n.ior2o0m {\n border-top: 1px solid var(--card-border-color);\n}"],"names":[]}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
import "get-it";
|
|
2
|
+
import "rxjs";
|
|
1
3
|
import { ComponentType } from "react";
|
|
2
|
-
|
|
4
|
+
/** @public */
|
|
5
|
+
declare type DatasetAclMode = 'public' | 'private' | 'custom';
|
|
6
|
+
/** @public */
|
|
7
|
+
declare type DatasetsResponse = {
|
|
8
|
+
name: string;
|
|
9
|
+
aclMode: DatasetAclMode;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
createdByUserId: string;
|
|
12
|
+
addonFor: string | null;
|
|
13
|
+
datasetProfile: string;
|
|
14
|
+
features: string[];
|
|
15
|
+
tags: string[];
|
|
16
|
+
}[];
|
|
3
17
|
/**
|
|
4
18
|
* Defined locale strings for the vision tool, in US English.
|
|
5
19
|
*
|
|
@@ -151,5 +165,4 @@ interface VisionToolConfig extends Partial<VisionConfig> {
|
|
|
151
165
|
icon?: ComponentType;
|
|
152
166
|
}
|
|
153
167
|
declare const visionTool: import("sanity").Plugin<void | VisionToolConfig>;
|
|
154
|
-
export { type VisionLocaleResourceKeys, type VisionToolConfig, visionTool };
|
|
155
|
-
//# sourceMappingURL=index.d.ts.map
|
|
168
|
+
export { type VisionLocaleResourceKeys, type VisionToolConfig, visionTool };
|
package/lib/index.js
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
import "@sanity/vision/bundle.css";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const visionTool = definePlugin((options) => {
|
|
8
|
-
let { name, title, icon, ...config } = options || {};
|
|
9
|
-
return {
|
|
10
|
-
name: "@sanity/vision",
|
|
11
|
-
tools: [{
|
|
12
|
-
name: name || "vision",
|
|
13
|
-
title: title || "Vision",
|
|
14
|
-
icon: icon || EyeOpenIcon,
|
|
15
|
-
component: lazy(() => import("./SanityVision-BKf_KyD3.js")),
|
|
16
|
-
options: config,
|
|
17
|
-
router: route.create("/*"),
|
|
18
|
-
__internalApplicationType: "sanity/vision"
|
|
19
|
-
}],
|
|
20
|
-
i18n: { bundles: [visionUsEnglishLocaleBundle] }
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
|
-
export { visionTool };
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
import { visionTool } from "./_chunks-es/index.js";
|
|
3
|
+
export {
|
|
4
|
+
visionTool
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
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": "6.7.0-next.
|
|
3
|
+
"version": "6.7.0-next.5",
|
|
4
4
|
"description": "Sanity plugin for running/debugging GROQ-queries against Sanity datasets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"admin",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"lib"
|
|
29
29
|
],
|
|
30
30
|
"type": "module",
|
|
31
|
+
"main": "./lib/index.js",
|
|
31
32
|
"types": "./lib/index.d.ts",
|
|
32
33
|
"exports": {
|
|
33
34
|
".": "./lib/index.js",
|
|
@@ -51,11 +52,10 @@
|
|
|
51
52
|
"@lezer/highlight": "^1.2.3",
|
|
52
53
|
"@rexxars/react-json-inspector": "^9.0.1",
|
|
53
54
|
"@rexxars/react-split-pane": "^1.0.0",
|
|
54
|
-
"@sanity/client": "^7.24.0",
|
|
55
55
|
"@sanity/color": "^3.0.6",
|
|
56
|
-
"@sanity/icons": "^5.2.
|
|
56
|
+
"@sanity/icons": "^5.2.0",
|
|
57
57
|
"@sanity/lezer-groq": "^1.0.4",
|
|
58
|
-
"@sanity/ui": "^3.4.
|
|
58
|
+
"@sanity/ui": "^3.4.0",
|
|
59
59
|
"@sanity/uuid": "^3.0.3",
|
|
60
60
|
"@uiw/react-codemirror": "^4.25.11",
|
|
61
61
|
"@vanilla-extract/dynamic": "^2.1.5",
|
|
@@ -69,26 +69,28 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rolldown/plugin-babel": "^0.2.3",
|
|
72
|
-
"@sanity/
|
|
72
|
+
"@sanity/client": "^7.24.0",
|
|
73
|
+
"@sanity/pkg-utils": "^11.0.13",
|
|
73
74
|
"@testing-library/react": "^16.3.2",
|
|
74
75
|
"@types/lodash-es": "^4.17.12",
|
|
75
76
|
"@types/react": "^19.2.17",
|
|
76
77
|
"@typescript/native-preview": "beta",
|
|
77
78
|
"@vanilla-extract/css": "^1.21.1",
|
|
79
|
+
"@vanilla-extract/vite-plugin": "^5.2.5",
|
|
78
80
|
"@vitejs/plugin-react": "^6.0.3",
|
|
79
81
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
80
82
|
"jsdom": "^29.1.1",
|
|
81
83
|
"react": "^19.2.7",
|
|
82
84
|
"react-dom": "^19.2.7",
|
|
85
|
+
"rimraf": "^6.1.3",
|
|
83
86
|
"styled-components": "^6.4.4",
|
|
84
|
-
"tsdown": "^0.22.13",
|
|
85
87
|
"vite": "^8.1.5",
|
|
86
88
|
"vitest": "^4.1.10",
|
|
87
|
-
"@repo/package.bundle": "6.7.0-next.
|
|
88
|
-
"@repo/
|
|
89
|
-
"@repo/
|
|
90
|
-
"
|
|
91
|
-
"
|
|
89
|
+
"@repo/package.bundle": "6.7.0-next.5+376f81defc",
|
|
90
|
+
"@repo/package.config": "6.7.0-next.5+376f81defc",
|
|
91
|
+
"@repo/test-config": "6.7.0-next.5+376f81defc",
|
|
92
|
+
"sanity": "6.7.0-next.5+376f81defc",
|
|
93
|
+
"@repo/tsconfig": "6.7.0-next.5+376f81defc"
|
|
92
94
|
},
|
|
93
95
|
"peerDependencies": {
|
|
94
96
|
"react": "^19.2.2",
|
|
@@ -99,10 +101,11 @@
|
|
|
99
101
|
"baseline 2024"
|
|
100
102
|
],
|
|
101
103
|
"scripts": {
|
|
102
|
-
"build": "
|
|
104
|
+
"build": "pkg-utils build --strict --check --clean",
|
|
103
105
|
"build:bundle": "vite build --configLoader runner --config package.bundle.ts",
|
|
104
106
|
"check:types": "(cd ../../.. && tsgo --project packages/@sanity/vision/tsconfig.lib.json --erasableSyntaxOnly)",
|
|
107
|
+
"clean": "rimraf lib",
|
|
105
108
|
"test": "vitest",
|
|
106
|
-
"watch": "
|
|
109
|
+
"watch": "pkg-utils watch"
|
|
107
110
|
}
|
|
108
111
|
}
|