@sanity/client 7.17.0 → 7.19.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 +50 -0
- package/dist/index.browser.d.ts +50 -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 +50 -0
- package/dist/index.d.ts +50 -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 +53 -1
- package/dist/media-library.d.ts +53 -1
- package/dist/media-library.js.map +1 -1
- package/dist/stega.browser.d.cts +50 -0
- package/dist/stega.browser.d.ts +50 -0
- package/dist/stega.d.cts +50 -0
- package/dist/stega.d.ts +50 -0
- package/package.json +2 -2
- package/src/media-library.ts +3 -0
- package/src/stega/stegaEncodeSourceMap.ts +4 -3
- package/src/types.ts +53 -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,12 @@ 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,
|
|
6567
|
+
S extends VideoSubtitleInfo = T extends VideoPlaybackInfoItemSigned
|
|
6568
|
+
? VideoSubtitleInfoSigned
|
|
6569
|
+
: VideoSubtitleInfo,
|
|
6564
6570
|
> {
|
|
6565
6571
|
id: string
|
|
6566
6572
|
thumbnail: T
|
|
@@ -6569,6 +6575,8 @@ export declare interface VideoPlaybackInfo<
|
|
|
6569
6575
|
stream: T
|
|
6570
6576
|
duration: number
|
|
6571
6577
|
aspectRatio: number
|
|
6578
|
+
renditions?: R[]
|
|
6579
|
+
subtitles?: S[]
|
|
6572
6580
|
}
|
|
6573
6581
|
|
|
6574
6582
|
/** @public */
|
|
@@ -6600,6 +6608,48 @@ export declare interface VideoPlaybackTokens {
|
|
|
6600
6608
|
animated?: string
|
|
6601
6609
|
}
|
|
6602
6610
|
|
|
6611
|
+
/** @public */
|
|
6612
|
+
export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
|
|
6613
|
+
|
|
6614
|
+
/** @public */
|
|
6615
|
+
export declare interface VideoRenditionInfoPublic {
|
|
6616
|
+
/** URL to the MP4 rendition (redirects to CDN) */
|
|
6617
|
+
url: string
|
|
6618
|
+
/** Resolution identifier, e.g. "1080p", "480p", "270p" */
|
|
6619
|
+
resolution: '1080p' | '480p' | '270p' | (string & {})
|
|
6620
|
+
}
|
|
6621
|
+
|
|
6622
|
+
/** @public */
|
|
6623
|
+
export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
|
|
6624
|
+
/** Authentication token for signed playback */
|
|
6625
|
+
token: string
|
|
6626
|
+
/** Token expiration time in ISO 8601 format */
|
|
6627
|
+
expiresAt: string
|
|
6628
|
+
}
|
|
6629
|
+
|
|
6630
|
+
/** @public */
|
|
6631
|
+
export declare type VideoSubtitleInfo = VideoSubtitleInfoPublic | VideoSubtitleInfoSigned
|
|
6632
|
+
|
|
6633
|
+
/** @public */
|
|
6634
|
+
export declare interface VideoSubtitleInfoPublic {
|
|
6635
|
+
/** Subtitle track identifier */
|
|
6636
|
+
trackId: string
|
|
6637
|
+
/** ISO 639-1 language code */
|
|
6638
|
+
languageCode: string
|
|
6639
|
+
/** URL to the subtitle file */
|
|
6640
|
+
url: string
|
|
6641
|
+
/** Whether this track contains closed captions */
|
|
6642
|
+
closedCaptions: boolean
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
/** @public */
|
|
6646
|
+
export declare interface VideoSubtitleInfoSigned extends VideoSubtitleInfoPublic {
|
|
6647
|
+
/** Authentication token for signed playback */
|
|
6648
|
+
token: string
|
|
6649
|
+
/** Token expiration time in ISO 8601 format */
|
|
6650
|
+
expiresAt: string
|
|
6651
|
+
}
|
|
6652
|
+
|
|
6603
6653
|
/**
|
|
6604
6654
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6605
6655
|
* its previous position.
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -6561,6 +6561,12 @@ 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,
|
|
6567
|
+
S extends VideoSubtitleInfo = T extends VideoPlaybackInfoItemSigned
|
|
6568
|
+
? VideoSubtitleInfoSigned
|
|
6569
|
+
: VideoSubtitleInfo,
|
|
6564
6570
|
> {
|
|
6565
6571
|
id: string
|
|
6566
6572
|
thumbnail: T
|
|
@@ -6569,6 +6575,8 @@ export declare interface VideoPlaybackInfo<
|
|
|
6569
6575
|
stream: T
|
|
6570
6576
|
duration: number
|
|
6571
6577
|
aspectRatio: number
|
|
6578
|
+
renditions?: R[]
|
|
6579
|
+
subtitles?: S[]
|
|
6572
6580
|
}
|
|
6573
6581
|
|
|
6574
6582
|
/** @public */
|
|
@@ -6600,6 +6608,48 @@ export declare interface VideoPlaybackTokens {
|
|
|
6600
6608
|
animated?: string
|
|
6601
6609
|
}
|
|
6602
6610
|
|
|
6611
|
+
/** @public */
|
|
6612
|
+
export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
|
|
6613
|
+
|
|
6614
|
+
/** @public */
|
|
6615
|
+
export declare interface VideoRenditionInfoPublic {
|
|
6616
|
+
/** URL to the MP4 rendition (redirects to CDN) */
|
|
6617
|
+
url: string
|
|
6618
|
+
/** Resolution identifier, e.g. "1080p", "480p", "270p" */
|
|
6619
|
+
resolution: '1080p' | '480p' | '270p' | (string & {})
|
|
6620
|
+
}
|
|
6621
|
+
|
|
6622
|
+
/** @public */
|
|
6623
|
+
export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
|
|
6624
|
+
/** Authentication token for signed playback */
|
|
6625
|
+
token: string
|
|
6626
|
+
/** Token expiration time in ISO 8601 format */
|
|
6627
|
+
expiresAt: string
|
|
6628
|
+
}
|
|
6629
|
+
|
|
6630
|
+
/** @public */
|
|
6631
|
+
export declare type VideoSubtitleInfo = VideoSubtitleInfoPublic | VideoSubtitleInfoSigned
|
|
6632
|
+
|
|
6633
|
+
/** @public */
|
|
6634
|
+
export declare interface VideoSubtitleInfoPublic {
|
|
6635
|
+
/** Subtitle track identifier */
|
|
6636
|
+
trackId: string
|
|
6637
|
+
/** ISO 639-1 language code */
|
|
6638
|
+
languageCode: string
|
|
6639
|
+
/** URL to the subtitle file */
|
|
6640
|
+
url: string
|
|
6641
|
+
/** Whether this track contains closed captions */
|
|
6642
|
+
closedCaptions: boolean
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
/** @public */
|
|
6646
|
+
export declare interface VideoSubtitleInfoSigned extends VideoSubtitleInfoPublic {
|
|
6647
|
+
/** Authentication token for signed playback */
|
|
6648
|
+
token: string
|
|
6649
|
+
/** Token expiration time in ISO 8601 format */
|
|
6650
|
+
expiresAt: string
|
|
6651
|
+
}
|
|
6652
|
+
|
|
6603
6653
|
/**
|
|
6604
6654
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6605
6655
|
* its previous position.
|