@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.d.cts
CHANGED
|
@@ -6550,6 +6550,12 @@ 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,
|
|
6556
|
+
S extends VideoSubtitleInfo = T extends VideoPlaybackInfoItemSigned
|
|
6557
|
+
? VideoSubtitleInfoSigned
|
|
6558
|
+
: VideoSubtitleInfo,
|
|
6553
6559
|
> {
|
|
6554
6560
|
id: string
|
|
6555
6561
|
thumbnail: T
|
|
@@ -6558,6 +6564,8 @@ export declare interface VideoPlaybackInfo<
|
|
|
6558
6564
|
stream: T
|
|
6559
6565
|
duration: number
|
|
6560
6566
|
aspectRatio: number
|
|
6567
|
+
renditions?: R[]
|
|
6568
|
+
subtitles?: S[]
|
|
6561
6569
|
}
|
|
6562
6570
|
|
|
6563
6571
|
/** @public */
|
|
@@ -6589,6 +6597,48 @@ export declare interface VideoPlaybackTokens {
|
|
|
6589
6597
|
animated?: string
|
|
6590
6598
|
}
|
|
6591
6599
|
|
|
6600
|
+
/** @public */
|
|
6601
|
+
export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
|
|
6602
|
+
|
|
6603
|
+
/** @public */
|
|
6604
|
+
export declare interface VideoRenditionInfoPublic {
|
|
6605
|
+
/** URL to the MP4 rendition (redirects to CDN) */
|
|
6606
|
+
url: string
|
|
6607
|
+
/** Resolution identifier, e.g. "1080p", "480p", "270p" */
|
|
6608
|
+
resolution: '1080p' | '480p' | '270p' | (string & {})
|
|
6609
|
+
}
|
|
6610
|
+
|
|
6611
|
+
/** @public */
|
|
6612
|
+
export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
|
|
6613
|
+
/** Authentication token for signed playback */
|
|
6614
|
+
token: string
|
|
6615
|
+
/** Token expiration time in ISO 8601 format */
|
|
6616
|
+
expiresAt: string
|
|
6617
|
+
}
|
|
6618
|
+
|
|
6619
|
+
/** @public */
|
|
6620
|
+
export declare type VideoSubtitleInfo = VideoSubtitleInfoPublic | VideoSubtitleInfoSigned
|
|
6621
|
+
|
|
6622
|
+
/** @public */
|
|
6623
|
+
export declare interface VideoSubtitleInfoPublic {
|
|
6624
|
+
/** Subtitle track identifier */
|
|
6625
|
+
trackId: string
|
|
6626
|
+
/** ISO 639-1 language code */
|
|
6627
|
+
languageCode: string
|
|
6628
|
+
/** URL to the subtitle file */
|
|
6629
|
+
url: string
|
|
6630
|
+
/** Whether this track contains closed captions */
|
|
6631
|
+
closedCaptions: boolean
|
|
6632
|
+
}
|
|
6633
|
+
|
|
6634
|
+
/** @public */
|
|
6635
|
+
export declare interface VideoSubtitleInfoSigned extends VideoSubtitleInfoPublic {
|
|
6636
|
+
/** Authentication token for signed playback */
|
|
6637
|
+
token: string
|
|
6638
|
+
/** Token expiration time in ISO 8601 format */
|
|
6639
|
+
expiresAt: string
|
|
6640
|
+
}
|
|
6641
|
+
|
|
6592
6642
|
/**
|
|
6593
6643
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6594
6644
|
* its previous position.
|
package/dist/index.d.ts
CHANGED
|
@@ -6550,6 +6550,12 @@ 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,
|
|
6556
|
+
S extends VideoSubtitleInfo = T extends VideoPlaybackInfoItemSigned
|
|
6557
|
+
? VideoSubtitleInfoSigned
|
|
6558
|
+
: VideoSubtitleInfo,
|
|
6553
6559
|
> {
|
|
6554
6560
|
id: string
|
|
6555
6561
|
thumbnail: T
|
|
@@ -6558,6 +6564,8 @@ export declare interface VideoPlaybackInfo<
|
|
|
6558
6564
|
stream: T
|
|
6559
6565
|
duration: number
|
|
6560
6566
|
aspectRatio: number
|
|
6567
|
+
renditions?: R[]
|
|
6568
|
+
subtitles?: S[]
|
|
6561
6569
|
}
|
|
6562
6570
|
|
|
6563
6571
|
/** @public */
|
|
@@ -6589,6 +6597,48 @@ export declare interface VideoPlaybackTokens {
|
|
|
6589
6597
|
animated?: string
|
|
6590
6598
|
}
|
|
6591
6599
|
|
|
6600
|
+
/** @public */
|
|
6601
|
+
export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
|
|
6602
|
+
|
|
6603
|
+
/** @public */
|
|
6604
|
+
export declare interface VideoRenditionInfoPublic {
|
|
6605
|
+
/** URL to the MP4 rendition (redirects to CDN) */
|
|
6606
|
+
url: string
|
|
6607
|
+
/** Resolution identifier, e.g. "1080p", "480p", "270p" */
|
|
6608
|
+
resolution: '1080p' | '480p' | '270p' | (string & {})
|
|
6609
|
+
}
|
|
6610
|
+
|
|
6611
|
+
/** @public */
|
|
6612
|
+
export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
|
|
6613
|
+
/** Authentication token for signed playback */
|
|
6614
|
+
token: string
|
|
6615
|
+
/** Token expiration time in ISO 8601 format */
|
|
6616
|
+
expiresAt: string
|
|
6617
|
+
}
|
|
6618
|
+
|
|
6619
|
+
/** @public */
|
|
6620
|
+
export declare type VideoSubtitleInfo = VideoSubtitleInfoPublic | VideoSubtitleInfoSigned
|
|
6621
|
+
|
|
6622
|
+
/** @public */
|
|
6623
|
+
export declare interface VideoSubtitleInfoPublic {
|
|
6624
|
+
/** Subtitle track identifier */
|
|
6625
|
+
trackId: string
|
|
6626
|
+
/** ISO 639-1 language code */
|
|
6627
|
+
languageCode: string
|
|
6628
|
+
/** URL to the subtitle file */
|
|
6629
|
+
url: string
|
|
6630
|
+
/** Whether this track contains closed captions */
|
|
6631
|
+
closedCaptions: boolean
|
|
6632
|
+
}
|
|
6633
|
+
|
|
6634
|
+
/** @public */
|
|
6635
|
+
export declare interface VideoSubtitleInfoSigned extends VideoSubtitleInfoPublic {
|
|
6636
|
+
/** Authentication token for signed playback */
|
|
6637
|
+
token: string
|
|
6638
|
+
/** Token expiration time in ISO 8601 format */
|
|
6639
|
+
expiresAt: string
|
|
6640
|
+
}
|
|
6641
|
+
|
|
6592
6642
|
/**
|
|
6593
6643
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6594
6644
|
* 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.19.0";
|
|
2739
2739
|
const middleware = [
|
|
2740
2740
|
debug({ verbose: !0, namespace: "sanity:client" }),
|
|
2741
2741
|
headers({ "User-Agent": `${name} ${version}` }),
|