@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.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.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.js
CHANGED
|
@@ -1092,7 +1092,7 @@ function _instruct(client, httpRequest, request) {
|
|
|
1092
1092
|
const dataset2 = hasDataset(client.config());
|
|
1093
1093
|
return _request(client, httpRequest, {
|
|
1094
1094
|
method: "POST",
|
|
1095
|
-
uri: `/
|
|
1095
|
+
uri: `/instruct/${dataset2}`,
|
|
1096
1096
|
body: request
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
@@ -1533,7 +1533,7 @@ function defineDeprecatedCreateClient(createClient2) {
|
|
|
1533
1533
|
return printNoDefaultExport(), createClient2(config);
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
var name = "@sanity/client", version = "6.28.3-instruct.
|
|
1536
|
+
var name = "@sanity/client", version = "6.28.3-instruct.4";
|
|
1537
1537
|
const middleware = [
|
|
1538
1538
|
debug({ verbose: !0, namespace: "sanity:client" }),
|
|
1539
1539
|
headers({ "User-Agent": `${name} ${version}` }),
|