@sanity/client 6.28.3-instruct.2 → 6.28.3-instruct.4
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/dist/index.browser.cjs +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +27 -0
- package/dist/index.browser.d.ts +27 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +27 -0
- package/dist/stega.browser.d.ts +27 -0
- package/dist/stega.d.cts +27 -0
- package/dist/stega.d.ts +27 -0
- package/package.json +1 -1
- package/src/instruct/instruct.ts +1 -1
- package/src/instruct/types.ts +29 -0
- package/umd/sanityClient.js +1 -1
- package/umd/sanityClient.min.js +1 -1
package/dist/index.browser.d.cts
CHANGED
|
@@ -1074,6 +1074,33 @@ declare interface InstructRequestBase {
|
|
|
1074
1074
|
hidden: boolean
|
|
1075
1075
|
}[]
|
|
1076
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1079
|
+
* Otherwise, such fields will be ignored.
|
|
1080
|
+
*/
|
|
1081
|
+
localeSettings?: {
|
|
1082
|
+
/**
|
|
1083
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1084
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1085
|
+
*
|
|
1086
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1087
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1088
|
+
*
|
|
1089
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1090
|
+
*/
|
|
1091
|
+
locale: string
|
|
1092
|
+
/**
|
|
1093
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1094
|
+
* date expressions to a specific point in time. Examples include
|
|
1095
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1096
|
+
*
|
|
1097
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1098
|
+
* based on the user's local time.
|
|
1099
|
+
*
|
|
1100
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1101
|
+
*/
|
|
1102
|
+
timeZone: string
|
|
1103
|
+
}
|
|
1077
1104
|
}
|
|
1078
1105
|
|
|
1079
1106
|
/** @beta */
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1074,6 +1074,33 @@ declare interface InstructRequestBase {
|
|
|
1074
1074
|
hidden: boolean
|
|
1075
1075
|
}[]
|
|
1076
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1079
|
+
* Otherwise, such fields will be ignored.
|
|
1080
|
+
*/
|
|
1081
|
+
localeSettings?: {
|
|
1082
|
+
/**
|
|
1083
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1084
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1085
|
+
*
|
|
1086
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1087
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1088
|
+
*
|
|
1089
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1090
|
+
*/
|
|
1091
|
+
locale: string
|
|
1092
|
+
/**
|
|
1093
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1094
|
+
* date expressions to a specific point in time. Examples include
|
|
1095
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1096
|
+
*
|
|
1097
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1098
|
+
* based on the user's local time.
|
|
1099
|
+
*
|
|
1100
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1101
|
+
*/
|
|
1102
|
+
timeZone: string
|
|
1103
|
+
}
|
|
1077
1104
|
}
|
|
1078
1105
|
|
|
1079
1106
|
/** @beta */
|
package/dist/index.browser.js
CHANGED
|
@@ -1229,7 +1229,7 @@ function _instruct(client, httpRequest, request) {
|
|
|
1229
1229
|
const dataset2 = hasDataset(client.config());
|
|
1230
1230
|
return _request(client, httpRequest, {
|
|
1231
1231
|
method: "POST",
|
|
1232
|
-
uri: `/
|
|
1232
|
+
uri: `/instruct/${dataset2}`,
|
|
1233
1233
|
body: request
|
|
1234
1234
|
});
|
|
1235
1235
|
}
|