@mjhls/mjh-framework 1.0.817-image-crop-test-v2 → 1.0.817-image-crop-test-v4

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.
Files changed (91) hide show
  1. package/dist/cjs/AlgoliaSearch.js +2 -2
  2. package/dist/cjs/ArticleCarousel.js +1 -1
  3. package/dist/cjs/ArticleProgramLandingPage.js +2 -2
  4. package/dist/cjs/ArticleSeriesListing.js +1 -1
  5. package/dist/cjs/ConferenceArticleCard.js +2 -2
  6. package/dist/cjs/DeckContent.js +2 -2
  7. package/dist/cjs/DeckQueue.js +2 -2
  8. package/dist/cjs/ExternalResources.js +2 -2
  9. package/dist/cjs/Feature.js +2 -2
  10. package/dist/cjs/ForbesHero.js +4 -4
  11. package/dist/cjs/GridContent.js +2 -2
  12. package/dist/cjs/GridHero.js +8 -6
  13. package/dist/cjs/GroupDeck.js +3 -3
  14. package/dist/cjs/Hero.js +2 -2
  15. package/dist/cjs/HorizontalArticleListing.js +2 -2
  16. package/dist/cjs/HorizontalHero.js +2 -2
  17. package/dist/cjs/IssueContentDeck.js +3 -3
  18. package/dist/cjs/IssueDeck.js +2 -2
  19. package/dist/cjs/IssueLanding.js +2 -2
  20. package/dist/cjs/MediaSeriesLanding.js +3 -3
  21. package/dist/cjs/OncliveHero.js +2 -2
  22. package/dist/cjs/OncliveLargeHero.js +5 -5
  23. package/dist/cjs/PartnerDetailListing.js +5 -5
  24. package/dist/cjs/PubSection.js +1 -1
  25. package/dist/cjs/PublicationDeck.js +2 -2
  26. package/dist/cjs/QueueDeckExpanded.js +2 -2
  27. package/dist/cjs/RelatedContent.js +2 -2
  28. package/dist/cjs/SeriesListingDeck.js +2 -2
  29. package/dist/cjs/{SeriesSlider-8c157166.js → SeriesSlider-d54fa925.js} +2 -2
  30. package/dist/cjs/TaxonomyCard.js +2 -2
  31. package/dist/cjs/TaxonomyDescription.js +2 -2
  32. package/dist/cjs/ThumbnailCard.js +2 -2
  33. package/dist/cjs/VerticalHero.js +2 -2
  34. package/dist/cjs/VideoProgramLandingPage.js +2 -2
  35. package/dist/cjs/VideoSeriesCard.js +2 -2
  36. package/dist/cjs/VideoSeriesLandingPage.js +1 -1
  37. package/dist/cjs/VideoSeriesListing.js +2 -2
  38. package/dist/cjs/View.js +10 -10
  39. package/dist/cjs/YahooHero.js +4 -4
  40. package/dist/cjs/YoutubeGroup.js +3 -3
  41. package/dist/cjs/getSerializers.js +2 -2
  42. package/dist/cjs/{index-8543a68a.js → index-55c6de08.js} +23 -23
  43. package/dist/cjs/index.js +5 -5
  44. package/dist/cjs/urlFor.js +34 -2
  45. package/dist/esm/AlgoliaSearch.js +1 -1
  46. package/dist/esm/ArticleCarousel.js +1 -1
  47. package/dist/esm/ArticleProgramLandingPage.js +2 -2
  48. package/dist/esm/ArticleSeriesListing.js +1 -1
  49. package/dist/esm/ConferenceArticleCard.js +1 -1
  50. package/dist/esm/DeckContent.js +1 -1
  51. package/dist/esm/DeckQueue.js +1 -1
  52. package/dist/esm/ExternalResources.js +2 -2
  53. package/dist/esm/Feature.js +1 -1
  54. package/dist/esm/ForbesHero.js +2 -2
  55. package/dist/esm/GridContent.js +1 -1
  56. package/dist/esm/GridHero.js +7 -5
  57. package/dist/esm/GroupDeck.js +1 -1
  58. package/dist/esm/Hero.js +1 -1
  59. package/dist/esm/HorizontalArticleListing.js +2 -2
  60. package/dist/esm/HorizontalHero.js +1 -1
  61. package/dist/esm/IssueContentDeck.js +1 -1
  62. package/dist/esm/IssueDeck.js +1 -1
  63. package/dist/esm/IssueLanding.js +2 -2
  64. package/dist/esm/MediaSeriesLanding.js +2 -2
  65. package/dist/esm/OncliveHero.js +1 -1
  66. package/dist/esm/OncliveLargeHero.js +1 -1
  67. package/dist/esm/PartnerDetailListing.js +2 -2
  68. package/dist/esm/PubSection.js +1 -1
  69. package/dist/esm/PublicationDeck.js +1 -1
  70. package/dist/esm/QueueDeckExpanded.js +1 -1
  71. package/dist/esm/RelatedContent.js +1 -1
  72. package/dist/esm/SeriesListingDeck.js +2 -2
  73. package/dist/esm/{SeriesSlider-bfd7299d.js → SeriesSlider-8f2aca58.js} +1 -1
  74. package/dist/esm/TaxonomyCard.js +1 -1
  75. package/dist/esm/TaxonomyDescription.js +2 -2
  76. package/dist/esm/ThumbnailCard.js +1 -1
  77. package/dist/esm/VerticalHero.js +1 -1
  78. package/dist/esm/VideoProgramLandingPage.js +2 -2
  79. package/dist/esm/VideoSeriesCard.js +1 -1
  80. package/dist/esm/VideoSeriesLandingPage.js +1 -1
  81. package/dist/esm/VideoSeriesListing.js +2 -2
  82. package/dist/esm/View.js +4 -4
  83. package/dist/esm/YahooHero.js +2 -2
  84. package/dist/esm/YoutubeGroup.js +1 -1
  85. package/dist/esm/getSerializers.js +2 -2
  86. package/dist/esm/{index-d1638f9e.js → index-e8c6a892.js} +1 -1
  87. package/dist/esm/index.js +4 -4
  88. package/dist/esm/urlFor.js +34 -2
  89. package/package.json +1 -1
  90. package/dist/cjs/urlForV2.js +0 -35
  91. package/dist/esm/urlForV2.js +0 -33
@@ -29,7 +29,7 @@ import './core.get-iterator-method-133dfacd.js';
29
29
  import './index-c7e2ac95.js';
30
30
  import './index-35bdcc81.js';
31
31
  import './smoothscroll-fa4e3f8c.js';
32
- import './urlForV2.js';
32
+ import './urlFor.js';
33
33
  import './index-0dbff1d1.js';
34
34
  import './main-b5c5aac1.js';
35
35
  import './isSymbol-a7e9aafe.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './index-0dbff1d1.js';
6
6
 
@@ -12,7 +12,7 @@ import { withRouter } from 'next/router';
12
12
  import { d as debounce_1 } from './debounce-533d9748.js';
13
13
  import { I as InfiniteScroll } from './index.es-c6222053.js';
14
14
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
15
- import urlFor from './urlForV2.js';
15
+ import urlFor from './urlFor.js';
16
16
  import { L as LazyLoad } from './index-35bdcc81.js';
17
17
  import { m as main_43 } from './main-b5c5aac1.js';
18
18
  import { c as clean_html_1 } from './entities-932b50cf.js';
@@ -14,7 +14,7 @@ import { L as LazyLoad } from './index-35bdcc81.js';
14
14
  import { g as get_1 } from './get-3c308da4.js';
15
15
  import { d as debounce_1 } from './debounce-533d9748.js';
16
16
  import { I as InfiniteScroll } from './index.es-c6222053.js';
17
- import urlFor from './urlForV2.js';
17
+ import urlFor from './urlFor.js';
18
18
  import { m as main_43 } from './main-b5c5aac1.js';
19
19
  import { c as clean_html_1 } from './entities-932b50cf.js';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-60e0e1c6.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
5
- import { g as getSerializers } from './index-d1638f9e.js';
5
+ import { g as getSerializers } from './index-e8c6a892.js';
6
6
  import { m as momentTimezone } from './index-79cfd25c.js';
7
7
  import { useRouter } from 'next/router';
8
8
  import Button from 'react-bootstrap/Button';
@@ -15,7 +15,7 @@ import './core.get-iterator-method-133dfacd.js';
15
15
  import 'prop-types';
16
16
  import './index-0dbff1d1.js';
17
17
  import 'react-bootstrap';
18
- import './urlForV2.js';
18
+ import './urlFor.js';
19
19
  import './index-2446af28.js';
20
20
  import './events-6c3a7a63.js';
21
21
  import './index-c7e2ac95.js';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import urlFor from './urlForV2.js';
2
+ import urlFor from './urlFor.js';
3
3
  import { m as main_43 } from './main-b5c5aac1.js';
4
4
  import Carousel from 'react-bootstrap/Carousel';
5
5
  import './index-0dbff1d1.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
5
5
  import { L as LazyLoad } from './index-35bdcc81.js';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
@@ -125,7 +125,7 @@ var fbsHero = function fbsHero(props) {
125
125
  React.createElement(
126
126
  'style',
127
127
  { jsx: 'true' },
128
- '\n .author-wrapper {\n text-align: center;\n }\n .article-hero {\n margin-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n padding-bottom: 0.5rem;\n }\n .fbs-top-article {\n width: 100%;\n margin-bottom: 1rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n }\n .fbs-top-article img {\n width: 100%;\n\n max-height: 300px;\n min-height: 275px;\n object-fit: cover;\n }\n\n .fbs-top-article--body {\n }\n .fbs-top-article--body h1 {\n color: #252525 !important;\n font-size: 1.6rem;\n font-weight: bold;\n text-align: center;\n margin-top: 1rem;\n }\n .fbs-top-article--body p {\n text-align: center;\n margin-bottom: 0;\n color: #252525;\n }\n .fbs-top-article--body p:first-of-type {\n font-size: 0.9rem;\n }\n .fbs-sub-article-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n padding-top: 1.75rem;\n margin-left: -1rem;\n margin-rigth: -1rem;\n }\n .fbs-sub-article {\n width: calc(50% - 2rem);\n min-width: 350px;\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n margin: 0 1rem 1.75rem;\n }\n .fbs-sub-article img {\n margin-right: 1rem;\n width: 145px;\n min-width: 145px;\n max-height: 100px;\n object-fit: cover;\n }\n .fbs-sub-article p {\n margin-bottom: 0;\n font-size: 0.8rem;\n color: #252525;\n }\n .fbs-sub-article .fbs-sub-article--title {\n font-weight: bold;\n font-size: 1rem;\n color: #252525;\n }\n '
128
+ '\n .author-wrapper {\n text-align: center;\n }\n .article-hero {\n margin-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n padding-bottom: 0.5rem;\n }\n .fbs-top-article {\n width: 100%;\n margin-bottom: 1rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n }\n .fbs-top-article img {\n width: 100%;\n\n max-height: 400px;\n min-height: 275px;\n object-fit: cover;\n }\n\n .fbs-top-article--body {\n }\n .fbs-top-article--body h1 {\n color: #252525 !important;\n font-size: 1.6rem;\n font-weight: bold;\n text-align: center;\n margin-top: 1rem;\n }\n .fbs-top-article--body p {\n text-align: center;\n margin-bottom: 0;\n color: #252525;\n }\n .fbs-top-article--body p:first-of-type {\n font-size: 0.9rem;\n }\n .fbs-sub-article-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n padding-top: 1.75rem;\n margin-left: -1rem;\n margin-rigth: -1rem;\n }\n .fbs-sub-article {\n width: calc(50% - 2rem);\n min-width: 350px;\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n margin: 0 1rem 1.75rem;\n }\n .fbs-sub-article img {\n margin-right: 1rem;\n width: 145px;\n min-width: 145px;\n max-height: 100px;\n object-fit: cover;\n }\n .fbs-sub-article p {\n margin-bottom: 0;\n font-size: 0.8rem;\n color: #252525;\n }\n .fbs-sub-article .fbs-sub-article--title {\n font-weight: bold;\n font-size: 1rem;\n color: #252525;\n }\n '
129
129
  )
130
130
  );
131
131
  };
@@ -19,7 +19,7 @@ import { g as getContentCategory } from './getContentCategory-15dcc413.js';
19
19
  import { g as get_1 } from './get-3c308da4.js';
20
20
  import { d as debounce_1 } from './debounce-533d9748.js';
21
21
  import { I as InfiniteScroll } from './index.es-c6222053.js';
22
- import urlFor from './urlForV2.js';
22
+ import urlFor from './urlFor.js';
23
23
  import { m as main_43 } from './main-b5c5aac1.js';
24
24
  import './AD.js';
25
25
  import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import { c as clean_html_1 } from './entities-932b50cf.js';
5
5
  import { L as LazyLoad } from './index-35bdcc81.js';
6
6
  import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
@@ -20,9 +20,11 @@ var GridHero = function GridHero(props) {
20
20
 
21
21
  var client = props.client,
22
22
  _props$topWidth = props.topWidth,
23
- topWidth = _props$topWidth === undefined ? 600 : _props$topWidth;
24
- props.subWidth;
25
- props.subHeight;
23
+ topWidth = _props$topWidth === undefined ? 600 : _props$topWidth,
24
+ _props$subWidth = props.subWidth,
25
+ subWidth = _props$subWidth === undefined ? 480 : _props$subWidth,
26
+ _props$subHeight = props.subHeight,
27
+ subHeight = _props$subHeight === undefined ? 270 : _props$subHeight;
26
28
 
27
29
 
28
30
  var topArticleThumbnail = '';
@@ -85,7 +87,7 @@ var GridHero = function GridHero(props) {
85
87
  var articleThumbnail = '';
86
88
  var articleAltText = article.title;
87
89
  if (article.thumbnail && article.thumbnail.asset) {
88
- articleThumbnail = urlFor(article.thumbnail.asset);
90
+ articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: subWidth, imageHeight: subHeight });
89
91
  articleAltText = article.thumbnail.asset.originalFileName;
90
92
  } else if (props.thumbnail) {
91
93
  articleThumbnail = props.thumbnail;
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
3
3
  import React, { useRef, useState, useEffect } from 'react';
4
4
  import { g as getYoutubeId } from './index-c7e2ac95.js';
5
5
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
6
- import urlFor from './urlForV2.js';
6
+ import urlFor from './urlFor.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './es6.string.iterator-bc33758b.js';
9
9
  import './_to-object-b50e61c3.js';
package/dist/esm/Hero.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Card } from 'react-bootstrap';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import { c as clean_html_1 } from './entities-932b50cf.js';
5
5
  import './index-0dbff1d1.js';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import ArticleCarousel from './ArticleCarousel.js';
4
4
  import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
5
5
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
6
- import { g as getSerializers } from './index-d1638f9e.js';
6
+ import { g as getSerializers } from './index-e8c6a892.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './_to-object-b50e61c3.js';
9
9
  import './_object-pie-133f504a.js';
@@ -20,7 +20,7 @@ import './index-35bdcc81.js';
20
20
  import 'react-dom';
21
21
  import 'prop-types';
22
22
  import './smoothscroll-fa4e3f8c.js';
23
- import './urlForV2.js';
23
+ import './urlFor.js';
24
24
  import './index-0dbff1d1.js';
25
25
  import './main-b5c5aac1.js';
26
26
  import './iconBase-602d52fe.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './moment-bc12cb97.js';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
5
5
  import './_commonjsHelpers-0c4b6f40.js';
6
6
  import './index-0dbff1d1.js';
@@ -4,7 +4,7 @@ import Col from 'react-bootstrap/Col';
4
4
  import Card from 'react-bootstrap/Card';
5
5
  import Badge from 'react-bootstrap/Badge';
6
6
  import { L as LazyLoad } from './index-35bdcc81.js';
7
- import urlFor from './urlForV2.js';
7
+ import urlFor from './urlFor.js';
8
8
  import { m as moment } from './moment-bc12cb97.js';
9
9
  import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
@@ -7,7 +7,7 @@ import Col from 'react-bootstrap/Col';
7
7
  import Button from 'react-bootstrap/Button';
8
8
  import Card from 'react-bootstrap/Card';
9
9
  import { L as LazyLoad } from './index-35bdcc81.js';
10
- import urlFor from './urlForV2.js';
10
+ import urlFor from './urlFor.js';
11
11
  import { I as InfiniteScroll } from './index.es-c6222053.js';
12
12
  import './_commonjsHelpers-0c4b6f40.js';
13
13
  import './es6.string.iterator-bc33758b.js';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import QueueDeckExpanded from './QueueDeckExpanded.js';
4
4
  import Breadcrumbs from './Breadcrumbs.js';
5
5
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
6
- import { g as getSerializers } from './index-d1638f9e.js';
6
+ import { g as getSerializers } from './index-e8c6a892.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './_to-object-b50e61c3.js';
9
9
  import './_object-pie-133f504a.js';
@@ -14,7 +14,7 @@ import './core.get-iterator-method-133dfacd.js';
14
14
  import './toConsumableArray-6d9a4616.js';
15
15
  import './_iter-detect-7e5e5ce2.js';
16
16
  import 'react-bootstrap';
17
- import './urlForV2.js';
17
+ import './urlFor.js';
18
18
  import './index-0dbff1d1.js';
19
19
  import './index.es-c6222053.js';
20
20
  import './moment-bc12cb97.js';
@@ -11,11 +11,11 @@ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelper
11
11
  import Link from 'next/link';
12
12
  import MasterDeck from './MasterDeck.js';
13
13
  import { L as LazyLoad } from './index-35bdcc81.js';
14
- import urlFor from './urlForV2.js';
14
+ import urlFor from './urlFor.js';
15
15
  import { m as moment } from './moment-bc12cb97.js';
16
16
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
17
17
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
18
- import { g as getSerializers } from './index-d1638f9e.js';
18
+ import { g as getSerializers } from './index-e8c6a892.js';
19
19
  import './define-property-fe54dc9f.js';
20
20
  import './_to-object-b50e61c3.js';
21
21
  import './es6.string.iterator-bc33758b.js';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import urlFor from './urlForV2.js';
2
+ import urlFor from './urlFor.js';
3
3
  import 'react-bootstrap/Badge';
4
4
  import './iconBase-602d52fe.js';
5
5
  import { m as moment } from './moment-bc12cb97.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import { c as clean_html_1 } from './entities-932b50cf.js';
5
5
  import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
6
6
  import { L as LazyLoad } from './index-35bdcc81.js';
@@ -4,12 +4,12 @@ import { _ as _extends } from './extends-60e0e1c6.js';
4
4
  import React, { useRef, useState, useEffect } from 'react';
5
5
  import { TwitterTimelineEmbed } from 'react-twitter-embed';
6
6
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
7
- import urlFor from './urlForV2.js';
7
+ import urlFor from './urlFor.js';
8
8
  import { m as moment } from './moment-bc12cb97.js';
9
9
  import QueueDeckExpanded from './QueueDeckExpanded.js';
10
10
  import Breadcrumbs from './Breadcrumbs.js';
11
11
  import Feature from './Feature.js';
12
- import { g as getSerializers } from './index-d1638f9e.js';
12
+ import { g as getSerializers } from './index-e8c6a892.js';
13
13
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
14
14
  import './_commonjsHelpers-0c4b6f40.js';
15
15
  import './es6.string.iterator-bc33758b.js';
@@ -13,7 +13,7 @@ import './_iter-detect-7e5e5ce2.js';
13
13
  import './_object-pie-133f504a.js';
14
14
  import './toConsumableArray-6d9a4616.js';
15
15
  import 'react-bootstrap';
16
- import './urlForV2.js';
16
+ import './urlFor.js';
17
17
  import './index-0dbff1d1.js';
18
18
  import './index.es-c6222053.js';
19
19
  import './moment-bc12cb97.js';
@@ -4,7 +4,7 @@ import Col from 'react-bootstrap/Col';
4
4
  import Button from 'react-bootstrap/Button';
5
5
  import Card from 'react-bootstrap/Card';
6
6
  import { L as LazyLoad } from './index-35bdcc81.js';
7
- import urlFor from './urlForV2.js';
7
+ import urlFor from './urlFor.js';
8
8
  import { l as lodash } from './lodash-f97fd99a.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import 'react-dom';
@@ -3,7 +3,7 @@ import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
3
3
  import { _ as _extends } from './extends-60e0e1c6.js';
4
4
  import React, { useEffect, useState, useRef } from 'react';
5
5
  import { Container, Media } from 'react-bootstrap';
6
- import urlFor from './urlForV2.js';
6
+ import urlFor from './urlFor.js';
7
7
  import { I as InfiniteScroll } from './index.es-c6222053.js';
8
8
  import { m as moment } from './moment-bc12cb97.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
3
  import 'react-bootstrap/Media';
4
- import urlFor from './urlForV2.js';
4
+ import urlFor from './urlFor.js';
5
5
  import { L as LazyLoad } from './index-35bdcc81.js';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
7
7
  import './index-0dbff1d1.js';
@@ -5,7 +5,7 @@ import React, { useState, useEffect, useRef } from 'react';
5
5
  import { useRouter } from 'next/router';
6
6
  import { l as lib_3 } from './index-2446af28.js';
7
7
  import { I as InfiniteScroll } from './index.es-c6222053.js';
8
- import { S as SeriesSlider } from './SeriesSlider-bfd7299d.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-8f2aca58.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './es6.string.iterator-bc33758b.js';
@@ -20,7 +20,7 @@ import './index-c7e2ac95.js';
20
20
  import './index-35bdcc81.js';
21
21
  import 'react-dom';
22
22
  import './smoothscroll-fa4e3f8c.js';
23
- import './urlForV2.js';
23
+ import './urlFor.js';
24
24
  import './index-0dbff1d1.js';
25
25
  import './main-b5c5aac1.js';
26
26
 
@@ -3,7 +3,7 @@ import React, { useRef, useState, useEffect } from 'react';
3
3
  import { g as getYoutubeId } from './index-c7e2ac95.js';
4
4
  import { L as LazyLoad } from './index-35bdcc81.js';
5
5
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
6
- import urlFor from './urlForV2.js';
6
+ import urlFor from './urlFor.js';
7
7
  import { m as main_43, a as main_49, b as main_42 } from './main-b5c5aac1.js';
8
8
 
9
9
  /*
@@ -5,7 +5,7 @@ import Container from 'react-bootstrap/Container';
5
5
  import Row from 'react-bootstrap/Row';
6
6
  import Col from 'react-bootstrap/Col';
7
7
  import Card from 'react-bootstrap/Card';
8
- import urlFor from './urlForV2.js';
8
+ import urlFor from './urlFor.js';
9
9
  import { L as LazyLoad } from './index-35bdcc81.js';
10
10
  import { r as reactSocialIcons_1 } from './react-social-icons-91f9716f.js';
11
11
  import './_commonjsHelpers-0c4b6f40.js';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { useRouter } from 'next/router';
5
5
  import Head from 'next/head';
6
6
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
7
- import { g as getSerializers } from './index-d1638f9e.js';
7
+ import { g as getSerializers } from './index-e8c6a892.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './es6.string.iterator-bc33758b.js';
10
10
  import './_to-object-b50e61c3.js';
@@ -17,7 +17,7 @@ import 'prop-types';
17
17
  import './index-0dbff1d1.js';
18
18
  import './slicedToArray-be2f7a22.js';
19
19
  import 'react-bootstrap';
20
- import './urlForV2.js';
20
+ import './urlFor.js';
21
21
  import './index-2446af28.js';
22
22
  import './events-6c3a7a63.js';
23
23
  import './index-c7e2ac95.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Media from 'react-bootstrap/Media';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import { L as LazyLoad } from './index-35bdcc81.js';
5
5
  import { c as clean_html_1 } from './entities-932b50cf.js';
6
6
  import './index-0dbff1d1.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './moment-bc12cb97.js';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './index-0dbff1d1.js';
6
6
 
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-52cf21c5.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-d1638f9e.js';
8
+ import { g as getSerializers } from './index-e8c6a892.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './es6.string.iterator-bc33758b.js';
@@ -19,7 +19,7 @@ import 'prop-types';
19
19
  import './index-0dbff1d1.js';
20
20
  import './slicedToArray-be2f7a22.js';
21
21
  import 'react-bootstrap';
22
- import './urlForV2.js';
22
+ import './urlFor.js';
23
23
  import './index-2446af28.js';
24
24
  import './events-6c3a7a63.js';
25
25
  import 'next/router';
@@ -1,7 +1,7 @@
1
1
  import { _ as _typeof } from './typeof-a286cf0c.js';
2
2
  import React from 'react';
3
3
  import { L as LazyLoad } from './index-35bdcc81.js';
4
- import urlFor from './urlForV2.js';
4
+ import urlFor from './urlFor.js';
5
5
  import { m as moment } from './moment-bc12cb97.js';
6
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
7
  import 'prop-types';
@@ -46,7 +46,7 @@ import './Segment.js';
46
46
  import './main-b5c5aac1.js';
47
47
  import './ADInfeed-7aaa47e1.js';
48
48
  import './index-35bdcc81.js';
49
- import './urlForV2.js';
49
+ import './urlFor.js';
50
50
  import './style-inject.es-1f59c1d0.js';
51
51
 
52
52
  var _this = undefined;
@@ -29,7 +29,7 @@ import './core.get-iterator-method-133dfacd.js';
29
29
  import './index-c7e2ac95.js';
30
30
  import './index-35bdcc81.js';
31
31
  import './smoothscroll-fa4e3f8c.js';
32
- import './urlForV2.js';
32
+ import './urlFor.js';
33
33
  import './index-0dbff1d1.js';
34
34
  import './main-b5c5aac1.js';
35
35
  import './isSymbol-a7e9aafe.js';
@@ -254,7 +254,7 @@ var VideoSeriesListing = function (_React$Component) {
254
254
  _createClass(VideoSeriesListing, [{
255
255
  key: 'componentDidMount',
256
256
  value: function componentDidMount() {
257
- console.log(this.state);
257
+ // console.log(this.state)
258
258
  }
259
259
  }, {
260
260
  key: 'render',
package/dist/esm/View.js CHANGED
@@ -15,12 +15,12 @@ import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
17
17
  import SocialShare from './SocialShare.js';
18
- import { r as renderAuthor, g as getSerializers } from './index-d1638f9e.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-e8c6a892.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { S as SeriesSlider } from './SeriesSlider-bfd7299d.js';
20
+ import { S as SeriesSlider } from './SeriesSlider-8f2aca58.js';
21
21
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-68291ce9.js';
22
22
  import getKeywords from './getKeywords.js';
23
- import urlFor from './urlForV2.js';
23
+ import urlFor from './urlFor.js';
24
24
  import { _ as _typeof } from './typeof-a286cf0c.js';
25
25
  import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
26
26
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
@@ -235,7 +235,7 @@ var ISI = function ISI(props) {
235
235
  var article_body = document.getElementById('article__block');
236
236
  var isi = document.getElementById('isi');
237
237
  var articleBottomPosition = article_body.getBoundingClientRect().bottom - window.innerHeight;
238
- console.log(articleBottomPosition, bottomOfArticle);
238
+ // console.log(articleBottomPosition, bottomOfArticle)
239
239
  if (articleBottomPosition < 30 && !isi.classList.contains('in-view')) {
240
240
  setbottomOfArticle(true);
241
241
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
- import urlFor from './urlForV2.js';
3
+ import urlFor from './urlFor.js';
4
4
  import { c as clean_html_1 } from './entities-932b50cf.js';
5
5
  import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
6
6
  import { L as LazyLoad } from './index-35bdcc81.js';
@@ -114,7 +114,7 @@ var YahooHero = function YahooHero(props) {
114
114
  React.createElement(
115
115
  'style',
116
116
  { jsx: 'true' },
117
- '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 315px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
117
+ '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 615px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n max-height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
118
118
  )
119
119
  );
120
120
  };
@@ -4,7 +4,7 @@ import React, { useRef, useState, useEffect } from 'react';
4
4
  import { g as getYoutubeId } from './index-c7e2ac95.js';
5
5
  import { L as LazyLoad } from './index-35bdcc81.js';
6
6
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
7
- import urlFor from './urlForV2.js';
7
+ import urlFor from './urlFor.js';
8
8
  import { m as main_43, a as main_49, b as main_42 } from './main-b5c5aac1.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './es6.string.iterator-bc33758b.js';
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { g as default } from './index-d1638f9e.js';
2
+ export { g as default } from './index-e8c6a892.js';
3
3
  import './BlockContent-52cf21c5.js';
4
4
  import './entities-932b50cf.js';
5
5
  import './slicedToArray-be2f7a22.js';
@@ -9,7 +9,7 @@ import './es6.string.iterator-bc33758b.js';
9
9
  import './_to-object-b50e61c3.js';
10
10
  import './core.get-iterator-method-133dfacd.js';
11
11
  import 'react-bootstrap';
12
- import './urlForV2.js';
12
+ import './urlFor.js';
13
13
  import './index-0dbff1d1.js';
14
14
  import './index-2446af28.js';
15
15
  import './events-6c3a7a63.js';
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
2
2
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
3
3
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
4
- import urlFor from './urlForV2.js';
4
+ import urlFor from './urlFor.js';
5
5
  import { l as lib_3 } from './index-2446af28.js';
6
6
  import Router, { useRouter } from 'next/router';
7
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
package/dist/esm/index.js CHANGED
@@ -49,8 +49,8 @@ export { default as ADSkyscraper } from './ADSkyscraper.js';
49
49
  export { default as Search } from './Search.js';
50
50
  export { default as Feature } from './Feature.js';
51
51
  import React from 'react';
52
- import urlFor from './urlForV2.js';
53
- export { default as urlFor } from './urlForV2.js';
52
+ import urlFor from './urlFor.js';
53
+ export { default as urlFor } from './urlFor.js';
54
54
  import Row from 'react-bootstrap/Row';
55
55
  import Col from 'react-bootstrap/Col';
56
56
  import 'react-bootstrap/Badge';
@@ -80,7 +80,7 @@ export { default as VerticalHero } from './VerticalHero.js';
80
80
  export { default as YahooHero } from './YahooHero.js';
81
81
  export { default as GridHero } from './GridHero.js';
82
82
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
83
- export { g as getSerializers } from './index-d1638f9e.js';
83
+ export { g as getSerializers } from './index-e8c6a892.js';
84
84
  export { default as Beam } from './Beam.js';
85
85
  export { default as Segment } from './Segment.js';
86
86
  export { default as KMTracker } from './KMTracker.js';
@@ -186,7 +186,7 @@ import 'swr';
186
186
  import 'passport-local';
187
187
  import 'mysql';
188
188
  import './md5-4e42248e.js';
189
- import './SeriesSlider-bfd7299d.js';
189
+ import './SeriesSlider-8f2aca58.js';
190
190
  import './style-inject.es-1f59c1d0.js';
191
191
  import 'disqus-react';
192
192
  import 'react-twitter-embed';
@@ -2,8 +2,40 @@ import { i as imageUrlBuilder } from './index-0dbff1d1.js';
2
2
  import './_commonjsHelpers-0c4b6f40.js';
3
3
 
4
4
  // Sanity image auto formating
5
- function urlFor(client, source) {
6
- return imageUrlBuilder(client).image(source).auto('format');
5
+
6
+ function urlFor(_ref) {
7
+ var client = _ref.client,
8
+ source = _ref.source,
9
+ _ref$imageWidth = _ref.imageWidth,
10
+ imageWidth = _ref$imageWidth === undefined ? null : _ref$imageWidth,
11
+ _ref$imageHeight = _ref.imageHeight,
12
+ imageHeight = _ref$imageHeight === undefined ? null : _ref$imageHeight,
13
+ _ref$imageMaxHeight = _ref.imageMaxHeight,
14
+ imageMaxHeight = _ref$imageMaxHeight === undefined ? null : _ref$imageMaxHeight,
15
+ _ref$imageFit = _ref.imageFit,
16
+ imageFit = _ref$imageFit === undefined ? null : _ref$imageFit;
17
+
18
+
19
+ //checks for old usage so it wont break view pages
20
+ //All view pages are using urlFor(client, thumbnail.asset).url()
21
+ //will need to update to urlFor({client, source: thumbnail.asset})
22
+ //All framework components are using new format
23
+ if (arguments[1] && arguments[1]._ref) {
24
+ return imageUrlBuilder(client).image(source).auto('format');
25
+ }
26
+
27
+ if (imageWidth && imageHeight) {
28
+ imageMaxHeight = imageHeight;
29
+ imageHeight = null;
30
+ }
31
+
32
+ var builder = imageUrlBuilder(client);
33
+ var url = builder.image(source);
34
+ if (imageWidth) url = url.width(imageWidth);
35
+ if (imageHeight) url = url.height(imageHeight);
36
+ if (imageMaxHeight) url = url.maxHeight(imageMaxHeight);
37
+ if (imageFit) url = url.fit(imageFit);
38
+ return url.auto('format').url();
7
39
  }
8
40
 
9
41
  export default urlFor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.817-image-crop-test-v2",
3
+ "version": "1.0.817-image-crop-test-v4",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",