@sanity/client 7.17.0 → 7.18.0
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/README.md +46 -2
- package/dist/_chunks-cjs/stegaClean.cjs +34 -12
- package/dist/_chunks-cjs/stegaClean.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs +2 -56
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs.map +1 -1
- package/dist/_chunks-es/stegaClean.js +35 -13
- package/dist/_chunks-es/stegaClean.js.map +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js +3 -57
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +23 -0
- package/dist/index.browser.d.ts +23 -0
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/media-library.cjs.map +1 -1
- package/dist/media-library.d.cts +26 -1
- package/dist/media-library.d.ts +26 -1
- package/dist/media-library.js.map +1 -1
- package/dist/stega.browser.d.cts +23 -0
- package/dist/stega.browser.d.ts +23 -0
- package/dist/stega.d.cts +23 -0
- package/dist/stega.d.ts +23 -0
- package/package.json +2 -2
- package/src/media-library.ts +2 -0
- package/src/stega/stegaEncodeSourceMap.ts +4 -3
- package/src/types.ts +26 -1
- package/umd/sanityClient.js +44 -77
- package/umd/sanityClient.min.js +2 -2
- package/src/stega/stega.ts +0 -163
package/dist/index.d.cts
CHANGED
|
@@ -6550,6 +6550,9 @@ export declare type VersionAction =
|
|
|
6550
6550
|
/** @public */
|
|
6551
6551
|
export declare interface VideoPlaybackInfo<
|
|
6552
6552
|
T extends VideoPlaybackInfoItem = VideoPlaybackInfoItem,
|
|
6553
|
+
R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
|
|
6554
|
+
? VideoRenditionInfoSigned
|
|
6555
|
+
: VideoRenditionInfo,
|
|
6553
6556
|
> {
|
|
6554
6557
|
id: string
|
|
6555
6558
|
thumbnail: T
|
|
@@ -6558,6 +6561,7 @@ export declare interface VideoPlaybackInfo<
|
|
|
6558
6561
|
stream: T
|
|
6559
6562
|
duration: number
|
|
6560
6563
|
aspectRatio: number
|
|
6564
|
+
renditions?: R[]
|
|
6561
6565
|
}
|
|
6562
6566
|
|
|
6563
6567
|
/** @public */
|
|
@@ -6589,6 +6593,25 @@ export declare interface VideoPlaybackTokens {
|
|
|
6589
6593
|
animated?: string
|
|
6590
6594
|
}
|
|
6591
6595
|
|
|
6596
|
+
/** @public */
|
|
6597
|
+
export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
|
|
6598
|
+
|
|
6599
|
+
/** @public */
|
|
6600
|
+
export declare interface VideoRenditionInfoPublic {
|
|
6601
|
+
/** URL to the MP4 rendition (redirects to CDN) */
|
|
6602
|
+
url: string
|
|
6603
|
+
/** Resolution identifier, e.g. "1080p", "480p", "270p" */
|
|
6604
|
+
resolution: '1080p' | '480p' | '270p' | (string & {})
|
|
6605
|
+
}
|
|
6606
|
+
|
|
6607
|
+
/** @public */
|
|
6608
|
+
export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
|
|
6609
|
+
/** Authentication token for signed playback */
|
|
6610
|
+
token: string
|
|
6611
|
+
/** Token expiration time in ISO 8601 format */
|
|
6612
|
+
expiresAt: string
|
|
6613
|
+
}
|
|
6614
|
+
|
|
6592
6615
|
/**
|
|
6593
6616
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6594
6617
|
* its previous position.
|
package/dist/index.d.ts
CHANGED
|
@@ -6550,6 +6550,9 @@ export declare type VersionAction =
|
|
|
6550
6550
|
/** @public */
|
|
6551
6551
|
export declare interface VideoPlaybackInfo<
|
|
6552
6552
|
T extends VideoPlaybackInfoItem = VideoPlaybackInfoItem,
|
|
6553
|
+
R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
|
|
6554
|
+
? VideoRenditionInfoSigned
|
|
6555
|
+
: VideoRenditionInfo,
|
|
6553
6556
|
> {
|
|
6554
6557
|
id: string
|
|
6555
6558
|
thumbnail: T
|
|
@@ -6558,6 +6561,7 @@ export declare interface VideoPlaybackInfo<
|
|
|
6558
6561
|
stream: T
|
|
6559
6562
|
duration: number
|
|
6560
6563
|
aspectRatio: number
|
|
6564
|
+
renditions?: R[]
|
|
6561
6565
|
}
|
|
6562
6566
|
|
|
6563
6567
|
/** @public */
|
|
@@ -6589,6 +6593,25 @@ export declare interface VideoPlaybackTokens {
|
|
|
6589
6593
|
animated?: string
|
|
6590
6594
|
}
|
|
6591
6595
|
|
|
6596
|
+
/** @public */
|
|
6597
|
+
export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
|
|
6598
|
+
|
|
6599
|
+
/** @public */
|
|
6600
|
+
export declare interface VideoRenditionInfoPublic {
|
|
6601
|
+
/** URL to the MP4 rendition (redirects to CDN) */
|
|
6602
|
+
url: string
|
|
6603
|
+
/** Resolution identifier, e.g. "1080p", "480p", "270p" */
|
|
6604
|
+
resolution: '1080p' | '480p' | '270p' | (string & {})
|
|
6605
|
+
}
|
|
6606
|
+
|
|
6607
|
+
/** @public */
|
|
6608
|
+
export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
|
|
6609
|
+
/** Authentication token for signed playback */
|
|
6610
|
+
token: string
|
|
6611
|
+
/** Token expiration time in ISO 8601 format */
|
|
6612
|
+
expiresAt: string
|
|
6613
|
+
}
|
|
6614
|
+
|
|
6592
6615
|
/**
|
|
6593
6616
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6594
6617
|
* its previous position.
|
package/dist/index.js
CHANGED
|
@@ -2735,7 +2735,7 @@ function defineDeprecatedCreateClient(createClient2) {
|
|
|
2735
2735
|
return printNoDefaultExport(), createClient2(config);
|
|
2736
2736
|
};
|
|
2737
2737
|
}
|
|
2738
|
-
var name = "@sanity/client", version = "7.
|
|
2738
|
+
var name = "@sanity/client", version = "7.18.0";
|
|
2739
2739
|
const middleware = [
|
|
2740
2740
|
debug({ verbose: !0, namespace: "sanity:client" }),
|
|
2741
2741
|
headers({ "User-Agent": `${name} ${version}` }),
|