@mjhls/mjh-framework 1.0.287 → 1.0.288
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 +171 -171
- package/dist/cjs/DeckContent.js +9 -9
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{Figure-8789df2d.js → Figure-a7cd5161.js} +1 -1
- package/dist/cjs/{GridContent-fa2e1b56.js → GridContent-02acbd72.js} +2 -2
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +9 -9
- package/dist/cjs/{Normal-39da6300.js → Normal-c1e96654.js} +31 -31
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-7ba4a872.js → TaxonomyCard-cf5bbc07.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/{YoutubeGroup-39eba427.js → YoutubeGroup-98ffbc57.js} +4 -4
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/index.js +548 -536
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Figure-b5847ea2.js → Figure-d6e22818.js} +1 -1
- package/dist/esm/{GridContent-88ed988c.js → GridContent-96716e42.js} +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/{Normal-246ae27e.js → Normal-1dd0edc6.js} +31 -31
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-2d0ab635.js → TaxonomyCard-ee1a22ae.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/{YoutubeGroup-f59297bb.js → YoutubeGroup-562ed456.js} +4 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/index.js +551 -539
- package/package.json +103 -103
|
@@ -492,10 +492,10 @@ var smoothscroll_1 = smoothscroll.polyfill;
|
|
|
492
492
|
|
|
493
493
|
// kick off the polyfill!
|
|
494
494
|
|
|
495
|
-
/*
|
|
496
|
-
GROQ query -
|
|
497
|
-
accepts an array of title, URL
|
|
498
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
495
|
+
/*
|
|
496
|
+
GROQ query -
|
|
497
|
+
accepts an array of title, URL
|
|
498
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
499
499
|
*/
|
|
500
500
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
501
501
|
// Props should be an array of objects containing Thumbnail, title, and URL
|
package/dist/cjs/YoutubeGroup.js
CHANGED
|
@@ -377,7 +377,8 @@ function urlBuilder(options) {
|
|
|
377
377
|
var client = options;
|
|
378
378
|
if (isSanityClient(client)) {
|
|
379
379
|
// Inherit config from client
|
|
380
|
-
var _a = client.clientConfig,
|
|
380
|
+
var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
381
|
+
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
381
382
|
return new ImageUrlBuilder(null, {
|
|
382
383
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
383
384
|
projectId: projectId,
|