@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.browser.d.cts
CHANGED
|
@@ -6561,6 +6561,9 @@ export declare type VersionAction =
|
|
|
6561
6561
|
/** @public */
|
|
6562
6562
|
export declare interface VideoPlaybackInfo<
|
|
6563
6563
|
T extends VideoPlaybackInfoItem = VideoPlaybackInfoItem,
|
|
6564
|
+
R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
|
|
6565
|
+
? VideoRenditionInfoSigned
|
|
6566
|
+
: VideoRenditionInfo,
|
|
6564
6567
|
> {
|
|
6565
6568
|
id: string
|
|
6566
6569
|
thumbnail: T
|
|
@@ -6569,6 +6572,7 @@ export declare interface VideoPlaybackInfo<
|
|
|
6569
6572
|
stream: T
|
|
6570
6573
|
duration: number
|
|
6571
6574
|
aspectRatio: number
|
|
6575
|
+
renditions?: R[]
|
|
6572
6576
|
}
|
|
6573
6577
|
|
|
6574
6578
|
/** @public */
|
|
@@ -6600,6 +6604,25 @@ export declare interface VideoPlaybackTokens {
|
|
|
6600
6604
|
animated?: string
|
|
6601
6605
|
}
|
|
6602
6606
|
|
|
6607
|
+
/** @public */
|
|
6608
|
+
export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
|
|
6609
|
+
|
|
6610
|
+
/** @public */
|
|
6611
|
+
export declare interface VideoRenditionInfoPublic {
|
|
6612
|
+
/** URL to the MP4 rendition (redirects to CDN) */
|
|
6613
|
+
url: string
|
|
6614
|
+
/** Resolution identifier, e.g. "1080p", "480p", "270p" */
|
|
6615
|
+
resolution: '1080p' | '480p' | '270p' | (string & {})
|
|
6616
|
+
}
|
|
6617
|
+
|
|
6618
|
+
/** @public */
|
|
6619
|
+
export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
|
|
6620
|
+
/** Authentication token for signed playback */
|
|
6621
|
+
token: string
|
|
6622
|
+
/** Token expiration time in ISO 8601 format */
|
|
6623
|
+
expiresAt: string
|
|
6624
|
+
}
|
|
6625
|
+
|
|
6603
6626
|
/**
|
|
6604
6627
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6605
6628
|
* its previous position.
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -6561,6 +6561,9 @@ export declare type VersionAction =
|
|
|
6561
6561
|
/** @public */
|
|
6562
6562
|
export declare interface VideoPlaybackInfo<
|
|
6563
6563
|
T extends VideoPlaybackInfoItem = VideoPlaybackInfoItem,
|
|
6564
|
+
R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
|
|
6565
|
+
? VideoRenditionInfoSigned
|
|
6566
|
+
: VideoRenditionInfo,
|
|
6564
6567
|
> {
|
|
6565
6568
|
id: string
|
|
6566
6569
|
thumbnail: T
|
|
@@ -6569,6 +6572,7 @@ export declare interface VideoPlaybackInfo<
|
|
|
6569
6572
|
stream: T
|
|
6570
6573
|
duration: number
|
|
6571
6574
|
aspectRatio: number
|
|
6575
|
+
renditions?: R[]
|
|
6572
6576
|
}
|
|
6573
6577
|
|
|
6574
6578
|
/** @public */
|
|
@@ -6600,6 +6604,25 @@ export declare interface VideoPlaybackTokens {
|
|
|
6600
6604
|
animated?: string
|
|
6601
6605
|
}
|
|
6602
6606
|
|
|
6607
|
+
/** @public */
|
|
6608
|
+
export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
|
|
6609
|
+
|
|
6610
|
+
/** @public */
|
|
6611
|
+
export declare interface VideoRenditionInfoPublic {
|
|
6612
|
+
/** URL to the MP4 rendition (redirects to CDN) */
|
|
6613
|
+
url: string
|
|
6614
|
+
/** Resolution identifier, e.g. "1080p", "480p", "270p" */
|
|
6615
|
+
resolution: '1080p' | '480p' | '270p' | (string & {})
|
|
6616
|
+
}
|
|
6617
|
+
|
|
6618
|
+
/** @public */
|
|
6619
|
+
export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
|
|
6620
|
+
/** Authentication token for signed playback */
|
|
6621
|
+
token: string
|
|
6622
|
+
/** Token expiration time in ISO 8601 format */
|
|
6623
|
+
expiresAt: string
|
|
6624
|
+
}
|
|
6625
|
+
|
|
6603
6626
|
/**
|
|
6604
6627
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6605
6628
|
* its previous position.
|