@mjhls/mjh-framework 1.0.691-beta.4 → 1.0.691-beta.6
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/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +2 -2
- package/dist/cjs/AD300x250x600.js +2 -2
- package/dist/cjs/AD728x90.js +2 -2
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +3 -3
- package/dist/cjs/{ADInfeed-24664851.js → ADInfeed-fd8c792f.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +3 -3
- package/dist/cjs/ADSponsoredResources.js +6 -4
- package/dist/cjs/ADWebcast.js +3 -3
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/{ADlgInfeed-c417a192.js → ADlgInfeed-40259fe0.js} +1 -1
- package/dist/cjs/AdSlot.js +7 -12
- package/dist/cjs/AdSlotsProvider.js +7 -4
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/Auth.js +5 -5
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-80b15fac.js} +1 -1
- package/dist/cjs/BrowseVideosListing.js +1 -1
- package/dist/cjs/CMEDeck.js +2 -2
- package/dist/cjs/Column3.js +2 -2
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/DeckContent.js +6 -5
- package/dist/cjs/DeckQueue.js +3 -3
- package/dist/cjs/{Dfp-f6a18ed2.js → Dfp-390337bf.js} +1 -1
- package/dist/cjs/EventsDeck.js +1 -1
- package/dist/cjs/ExternalResources.js +5 -5
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +10 -8
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +2 -2
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +6 -6
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +10 -8
- package/dist/cjs/NavMagazine.js +2 -2
- package/dist/cjs/NavNative.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +15 -15
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +10 -8
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/{SocialSearchComponent-9cd24578.js → SocialSearchComponent-56d49a1a.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +35 -33
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getRelatedArticle.js +1 -1
- package/dist/cjs/getSerializers.js +5 -5
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-fa8ed292.js → index-099d45ae.js} +30 -21
- package/dist/cjs/{index-d80358aa.js → index-1735f801.js} +452 -440
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-a4cb15bb.js → main-03ffa84c.js} +1 -0
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -2
- package/dist/esm/AD300x250x600.js +2 -2
- package/dist/esm/AD728x90.js +2 -2
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +3 -3
- package/dist/esm/{ADInfeed-ffcb5391.js → ADInfeed-af6b0616.js} +1 -1
- package/dist/esm/ADSkyscraper.js +3 -3
- package/dist/esm/ADSponsoredResources.js +6 -4
- package/dist/esm/ADWebcast.js +3 -3
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/{ADlgInfeed-6df5151e.js → ADlgInfeed-27ba8238.js} +1 -1
- package/dist/esm/AdSlot.js +7 -12
- package/dist/esm/AdSlotsProvider.js +7 -4
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/Auth.js +2 -2
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c409aca5.js} +1 -1
- package/dist/esm/BrowseVideosListing.js +1 -1
- package/dist/esm/CMEDeck.js +2 -2
- package/dist/esm/Column3.js +2 -2
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/DeckContent.js +6 -5
- package/dist/esm/DeckQueue.js +3 -3
- package/dist/esm/{Dfp-96b49def.js → Dfp-741c01be.js} +1 -1
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +10 -8
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +6 -6
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +10 -8
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +2 -2
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +13 -13
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +10 -8
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/{SocialSearchComponent-93233334.js → SocialSearchComponent-677ed3bd.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +12 -10
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getSerializers.js +5 -5
- package/dist/esm/{index-1ee3baee.js → index-273cc821.js} +452 -440
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/{index-0e45a0b2.js → index-3f4dd6f2.js} +30 -21
- package/dist/esm/index.js +9 -9
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-5d1e4bd3.js → main-35ff7b4f.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
|
@@ -375,7 +375,8 @@ function urlBuilder(options) {
|
|
|
375
375
|
var client = options;
|
|
376
376
|
if (isSanityClient(client)) {
|
|
377
377
|
// Inherit config from client
|
|
378
|
-
var _a = client.clientConfig,
|
|
378
|
+
var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
379
|
+
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
379
380
|
return new ImageUrlBuilder(null, {
|
|
380
381
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
381
382
|
projectId: projectId,
|
|
@@ -722,6 +722,8 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
722
722
|
|
|
723
723
|
return new Promise(function (resolve) {
|
|
724
724
|
_this3.getGoogletag().then(function (googletag) {
|
|
725
|
+
_this3.configureInitialOptions(googletag);
|
|
726
|
+
|
|
725
727
|
slotsToInitialize.forEach(function (currentSlotId) {
|
|
726
728
|
registeredSlots[currentSlotId].loading = false;
|
|
727
729
|
googletag.cmd.push(function () {
|
|
@@ -785,14 +787,25 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
785
787
|
});
|
|
786
788
|
});
|
|
787
789
|
},
|
|
788
|
-
|
|
790
|
+
// configure those gpt parameters that need to be set before pubsads service
|
|
791
|
+
// initialization.
|
|
792
|
+
configureInitialOptions: function configureInitialOptions(googletag) {
|
|
789
793
|
var _this4 = this;
|
|
790
794
|
|
|
795
|
+
googletag.cmd.push(function () {
|
|
796
|
+
if (_this4.disableInitialLoadIsEnabled()) {
|
|
797
|
+
googletag.pubads().disableInitialLoad();
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
},
|
|
801
|
+
configureOptions: function configureOptions(googletag) {
|
|
802
|
+
var _this5 = this;
|
|
803
|
+
|
|
791
804
|
googletag.cmd.push(function () {
|
|
792
805
|
var pubadsService = googletag.pubads();
|
|
793
|
-
pubadsService.setRequestNonPersonalizedAds(
|
|
806
|
+
pubadsService.setRequestNonPersonalizedAds(_this5.personalizedAdsEnabled() ? 0 : 1);
|
|
794
807
|
|
|
795
|
-
var targetingArguments =
|
|
808
|
+
var targetingArguments = _this5.getTargetingArguments(); // set global targetting arguments
|
|
796
809
|
|
|
797
810
|
|
|
798
811
|
Object.keys(targetingArguments).forEach(function (varName) {
|
|
@@ -801,16 +814,16 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
801
814
|
}
|
|
802
815
|
}); // set global adSense attributes
|
|
803
816
|
|
|
804
|
-
var adSenseAttributes =
|
|
817
|
+
var adSenseAttributes = _this5.getAdSenseAttributes();
|
|
805
818
|
|
|
806
819
|
Object.keys(adSenseAttributes).forEach(function (key) {
|
|
807
820
|
pubadsService.set(key, adSenseAttributes[key]);
|
|
808
821
|
});
|
|
809
822
|
|
|
810
|
-
if (
|
|
823
|
+
if (_this5.lazyLoadIsEnabled()) {
|
|
811
824
|
var args = [];
|
|
812
825
|
|
|
813
|
-
var config =
|
|
826
|
+
var config = _this5.getLazyLoadConfig();
|
|
814
827
|
|
|
815
828
|
if (config !== null) {
|
|
816
829
|
args.push(config);
|
|
@@ -819,16 +832,12 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
819
832
|
pubadsService.enableLazyLoad.call(args);
|
|
820
833
|
}
|
|
821
834
|
|
|
822
|
-
if (
|
|
835
|
+
if (_this5.singleRequestIsEnabled()) {
|
|
823
836
|
pubadsService.enableSingleRequest();
|
|
824
837
|
}
|
|
825
838
|
|
|
826
|
-
if (
|
|
827
|
-
pubadsService.
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
if (_this4.collapseEmptyDivs === true || _this4.collapseEmptyDivs === false) {
|
|
831
|
-
pubadsService.collapseEmptyDivs(_this4.collapseEmptyDivs);
|
|
839
|
+
if (_this5.collapseEmptyDivs === true || _this5.collapseEmptyDivs === false) {
|
|
840
|
+
pubadsService.collapseEmptyDivs(_this5.collapseEmptyDivs);
|
|
832
841
|
}
|
|
833
842
|
});
|
|
834
843
|
},
|
|
@@ -870,10 +879,10 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
870
879
|
}
|
|
871
880
|
},
|
|
872
881
|
gptRefreshAds: function gptRefreshAds(slots) {
|
|
873
|
-
var
|
|
882
|
+
var _this6 = this;
|
|
874
883
|
|
|
875
884
|
return this.getGoogletag().then(function (googletag) {
|
|
876
|
-
|
|
885
|
+
_this6.configureOptions(googletag);
|
|
877
886
|
|
|
878
887
|
googletag.cmd.push(function () {
|
|
879
888
|
var pubadsService = googletag.pubads();
|
|
@@ -884,14 +893,14 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
884
893
|
});
|
|
885
894
|
},
|
|
886
895
|
reload: function reload() {
|
|
887
|
-
var
|
|
896
|
+
var _this7 = this;
|
|
888
897
|
|
|
889
898
|
return this.destroyGPTSlots.apply(this, arguments).then(function () {
|
|
890
|
-
return
|
|
899
|
+
return _this7.load();
|
|
891
900
|
});
|
|
892
901
|
},
|
|
893
902
|
destroyGPTSlots: function destroyGPTSlots() {
|
|
894
|
-
var
|
|
903
|
+
var _this8 = this;
|
|
895
904
|
|
|
896
905
|
for (var _len4 = arguments.length, slotsToDestroy = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
897
906
|
slotsToDestroy[_key4] = arguments[_key4];
|
|
@@ -911,7 +920,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
911
920
|
slots.push(slot);
|
|
912
921
|
}
|
|
913
922
|
|
|
914
|
-
|
|
923
|
+
_this8.getGoogletag().then(function (googletag) {
|
|
915
924
|
googletag.cmd.push(function () {
|
|
916
925
|
if (managerAlreadyInitialized === true) {
|
|
917
926
|
if (slotsToDestroy.length > 0) {
|
|
@@ -934,7 +943,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
934
943
|
});
|
|
935
944
|
},
|
|
936
945
|
registerSlot: function registerSlot(_ref) {
|
|
937
|
-
var
|
|
946
|
+
var _this9 = this;
|
|
938
947
|
|
|
939
948
|
var slotId = _ref.slotId,
|
|
940
949
|
dfpNetworkId = _ref.dfpNetworkId,
|
|
@@ -973,7 +982,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
973
982
|
gptSlot = slot.gptSlot;
|
|
974
983
|
|
|
975
984
|
if (loading === false && !gptSlot) {
|
|
976
|
-
|
|
985
|
+
_this9.load(slotId);
|
|
977
986
|
}
|
|
978
987
|
}
|
|
979
988
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
14
14
|
import './typeof-08f2c380.js';
|
|
15
15
|
import './_is-array-49698029.js';
|
|
16
16
|
import 'react';
|
|
17
|
-
import './index-
|
|
17
|
+
import './index-3f4dd6f2.js';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
import 'react-bootstrap/Container';
|
|
20
20
|
import 'react-bootstrap/Row';
|
|
@@ -27,9 +27,9 @@ import './debounce-1a993acf.js';
|
|
|
27
27
|
import './index.es-29c1cef5.js';
|
|
28
28
|
import 'react-dom';
|
|
29
29
|
import './visibility-sensor-0baa4eea.js';
|
|
30
|
-
import './index-
|
|
30
|
+
import './index-3849e3fe.js';
|
|
31
31
|
import './index-5f9f807a.js';
|
|
32
|
-
import './main-
|
|
32
|
+
import './main-35ff7b4f.js';
|
|
33
33
|
import './entities-7cc3bf45.js';
|
|
34
34
|
import './stringify-008c8802.js';
|
|
35
35
|
import './slicedToArray-7021e5df.js';
|
|
@@ -38,10 +38,10 @@ import './_set-species-cede29f8.js';
|
|
|
38
38
|
export { default as Segment } from './Segment.js';
|
|
39
39
|
export { default as Beam } from './Beam.js';
|
|
40
40
|
export { default as AdSlot } from './AdSlot.js';
|
|
41
|
-
import './ADInfeed-
|
|
41
|
+
import './ADInfeed-af6b0616.js';
|
|
42
42
|
export { default as DeckContent } from './DeckContent.js';
|
|
43
|
-
import './lodash-
|
|
44
|
-
import './ADlgInfeed-
|
|
43
|
+
import './lodash-ec8c6b48.js';
|
|
44
|
+
import './ADlgInfeed-27ba8238.js';
|
|
45
45
|
import './getContentCategory-15dcc413.js';
|
|
46
46
|
import './get-5ee14cda.js';
|
|
47
47
|
export { default as AD } from './AD.js';
|
|
@@ -50,7 +50,7 @@ export { default as GridContent } from './GridContent.js';
|
|
|
50
50
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
51
51
|
import 'react-bootstrap/Media';
|
|
52
52
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
53
|
-
import './BlockContent-
|
|
53
|
+
import './BlockContent-c409aca5.js';
|
|
54
54
|
import './react-social-icons-a7d5c5c7.js';
|
|
55
55
|
export { default as TaxonomyCard } from './TaxonomyCard.js';
|
|
56
56
|
export { default as RolesDeck } from './RolesDeck.js';
|
|
@@ -79,7 +79,7 @@ import 'react-bootstrap/Form';
|
|
|
79
79
|
import './index-ef6d5dcf.js';
|
|
80
80
|
import './js.cookie-6874175c.js';
|
|
81
81
|
export { default as CMEDeck } from './CMEDeck.js';
|
|
82
|
-
export { g as getSerializers } from './index-
|
|
82
|
+
export { g as getSerializers } from './index-273cc821.js';
|
|
83
83
|
import './util-7700fc59.js';
|
|
84
84
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
85
85
|
import 'react-bootstrap/Pagination';
|
|
@@ -110,7 +110,7 @@ import './NavFooter-e27bd93b.js';
|
|
|
110
110
|
import './index.esm-fd746768.js';
|
|
111
111
|
export { default as SocialIcons } from './SocialIcons.js';
|
|
112
112
|
import 'react-bootstrap/FormControl';
|
|
113
|
-
import './SocialSearchComponent-
|
|
113
|
+
import './SocialSearchComponent-677ed3bd.js';
|
|
114
114
|
export { default as NavMagazine } from './NavMagazine.js';
|
|
115
115
|
export { NavNative } from './NavNative.js';
|
|
116
116
|
export { default as Search } from './Search.js';
|
|
@@ -7,7 +7,7 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
7
7
|
var undefined$1;
|
|
8
8
|
|
|
9
9
|
/** Used as the semantic version number. */
|
|
10
|
-
var VERSION = '4.17.
|
|
10
|
+
var VERSION = '4.17.20';
|
|
11
11
|
|
|
12
12
|
/** Used as the size to enable large array optimizations. */
|
|
13
13
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -3714,8 +3714,21 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
3714
3714
|
* @returns {Array} Returns the new sorted array.
|
|
3715
3715
|
*/
|
|
3716
3716
|
function baseOrderBy(collection, iteratees, orders) {
|
|
3717
|
+
if (iteratees.length) {
|
|
3718
|
+
iteratees = arrayMap(iteratees, function(iteratee) {
|
|
3719
|
+
if (isArray(iteratee)) {
|
|
3720
|
+
return function(value) {
|
|
3721
|
+
return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
return iteratee;
|
|
3725
|
+
});
|
|
3726
|
+
} else {
|
|
3727
|
+
iteratees = [identity];
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3717
3730
|
var index = -1;
|
|
3718
|
-
iteratees = arrayMap(iteratees
|
|
3731
|
+
iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
|
|
3719
3732
|
|
|
3720
3733
|
var result = baseMap(collection, function(value, key, collection) {
|
|
3721
3734
|
var criteria = arrayMap(iteratees, function(iteratee) {
|
|
@@ -3972,6 +3985,10 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
3972
3985
|
var key = toKey(path[index]),
|
|
3973
3986
|
newValue = value;
|
|
3974
3987
|
|
|
3988
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
3989
|
+
return object;
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3975
3992
|
if (index != lastIndex) {
|
|
3976
3993
|
var objValue = nested[key];
|
|
3977
3994
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
@@ -4124,11 +4141,14 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
4124
4141
|
* into `array`.
|
|
4125
4142
|
*/
|
|
4126
4143
|
function baseSortedIndexBy(array, value, iteratee, retHighest) {
|
|
4127
|
-
value = iteratee(value);
|
|
4128
|
-
|
|
4129
4144
|
var low = 0,
|
|
4130
|
-
high = array == null ? 0 : array.length
|
|
4131
|
-
|
|
4145
|
+
high = array == null ? 0 : array.length;
|
|
4146
|
+
if (high === 0) {
|
|
4147
|
+
return 0;
|
|
4148
|
+
}
|
|
4149
|
+
|
|
4150
|
+
value = iteratee(value);
|
|
4151
|
+
var valIsNaN = value !== value,
|
|
4132
4152
|
valIsNull = value === null,
|
|
4133
4153
|
valIsSymbol = isSymbol(value),
|
|
4134
4154
|
valIsUndefined = value === undefined$1;
|
|
@@ -5613,10 +5633,11 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
5613
5633
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
5614
5634
|
return false;
|
|
5615
5635
|
}
|
|
5616
|
-
//
|
|
5617
|
-
var
|
|
5618
|
-
|
|
5619
|
-
|
|
5636
|
+
// Check that cyclic values are equal.
|
|
5637
|
+
var arrStacked = stack.get(array);
|
|
5638
|
+
var othStacked = stack.get(other);
|
|
5639
|
+
if (arrStacked && othStacked) {
|
|
5640
|
+
return arrStacked == other && othStacked == array;
|
|
5620
5641
|
}
|
|
5621
5642
|
var index = -1,
|
|
5622
5643
|
result = true,
|
|
@@ -5778,10 +5799,11 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
5778
5799
|
return false;
|
|
5779
5800
|
}
|
|
5780
5801
|
}
|
|
5781
|
-
//
|
|
5782
|
-
var
|
|
5783
|
-
|
|
5784
|
-
|
|
5802
|
+
// Check that cyclic values are equal.
|
|
5803
|
+
var objStacked = stack.get(object);
|
|
5804
|
+
var othStacked = stack.get(other);
|
|
5805
|
+
if (objStacked && othStacked) {
|
|
5806
|
+
return objStacked == other && othStacked == object;
|
|
5785
5807
|
}
|
|
5786
5808
|
var result = true;
|
|
5787
5809
|
stack.set(object, other);
|
|
@@ -9162,6 +9184,10 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
9162
9184
|
* // The `_.property` iteratee shorthand.
|
|
9163
9185
|
* _.filter(users, 'active');
|
|
9164
9186
|
* // => objects for ['barney']
|
|
9187
|
+
*
|
|
9188
|
+
* // Combining several predicates using `_.overEvery` or `_.overSome`.
|
|
9189
|
+
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
|
|
9190
|
+
* // => objects for ['fred', 'barney']
|
|
9165
9191
|
*/
|
|
9166
9192
|
function filter(collection, predicate) {
|
|
9167
9193
|
var func = isArray(collection) ? arrayFilter : baseFilter;
|
|
@@ -9911,15 +9937,15 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
9911
9937
|
* var users = [
|
|
9912
9938
|
* { 'user': 'fred', 'age': 48 },
|
|
9913
9939
|
* { 'user': 'barney', 'age': 36 },
|
|
9914
|
-
* { 'user': 'fred', 'age':
|
|
9940
|
+
* { 'user': 'fred', 'age': 30 },
|
|
9915
9941
|
* { 'user': 'barney', 'age': 34 }
|
|
9916
9942
|
* ];
|
|
9917
9943
|
*
|
|
9918
9944
|
* _.sortBy(users, [function(o) { return o.user; }]);
|
|
9919
|
-
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred',
|
|
9945
|
+
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
|
|
9920
9946
|
*
|
|
9921
9947
|
* _.sortBy(users, ['user', 'age']);
|
|
9922
|
-
* // => objects for [['barney', 34], ['barney', 36], ['fred',
|
|
9948
|
+
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
|
|
9923
9949
|
*/
|
|
9924
9950
|
var sortBy = baseRest(function(collection, iteratees) {
|
|
9925
9951
|
if (collection == null) {
|
|
@@ -14794,11 +14820,11 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
14794
14820
|
|
|
14795
14821
|
// Use a sourceURL for easier debugging.
|
|
14796
14822
|
// The sourceURL gets injected into the source that's eval-ed, so be careful
|
|
14797
|
-
//
|
|
14798
|
-
//
|
|
14823
|
+
// to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
|
|
14824
|
+
// and escape the comment, thus injecting code that gets evaled.
|
|
14799
14825
|
var sourceURL = '//# sourceURL=' +
|
|
14800
14826
|
(hasOwnProperty.call(options, 'sourceURL')
|
|
14801
|
-
? (options.sourceURL + '').replace(/
|
|
14827
|
+
? (options.sourceURL + '').replace(/\s/g, ' ')
|
|
14802
14828
|
: ('lodash.templateSources[' + (++templateCounter) + ']')
|
|
14803
14829
|
) + '\n';
|
|
14804
14830
|
|
|
@@ -14831,8 +14857,6 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
14831
14857
|
|
|
14832
14858
|
// If `variable` is not specified wrap a with-statement around the generated
|
|
14833
14859
|
// code to add the data object to the top of the scope chain.
|
|
14834
|
-
// Like with sourceURL, we take care to not check the option's prototype,
|
|
14835
|
-
// as this configuration is a code injection vector.
|
|
14836
14860
|
var variable = hasOwnProperty.call(options, 'variable') && options.variable;
|
|
14837
14861
|
if (!variable) {
|
|
14838
14862
|
source = 'with (obj) {\n' + source + '\n}\n';
|
|
@@ -15539,6 +15563,9 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
15539
15563
|
* values against any array or object value, respectively. See `_.isEqual`
|
|
15540
15564
|
* for a list of supported value comparisons.
|
|
15541
15565
|
*
|
|
15566
|
+
* **Note:** Multiple values can be checked by combining several matchers
|
|
15567
|
+
* using `_.overSome`
|
|
15568
|
+
*
|
|
15542
15569
|
* @static
|
|
15543
15570
|
* @memberOf _
|
|
15544
15571
|
* @since 3.0.0
|
|
@@ -15554,6 +15581,10 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
15554
15581
|
*
|
|
15555
15582
|
* _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
|
|
15556
15583
|
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
|
|
15584
|
+
*
|
|
15585
|
+
* // Checking for several possible values
|
|
15586
|
+
* _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
|
|
15587
|
+
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
|
|
15557
15588
|
*/
|
|
15558
15589
|
function matches(source) {
|
|
15559
15590
|
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
|
|
@@ -15568,6 +15599,9 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
15568
15599
|
* `srcValue` values against any array or object value, respectively. See
|
|
15569
15600
|
* `_.isEqual` for a list of supported value comparisons.
|
|
15570
15601
|
*
|
|
15602
|
+
* **Note:** Multiple values can be checked by combining several matchers
|
|
15603
|
+
* using `_.overSome`
|
|
15604
|
+
*
|
|
15571
15605
|
* @static
|
|
15572
15606
|
* @memberOf _
|
|
15573
15607
|
* @since 3.2.0
|
|
@@ -15584,6 +15618,10 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
15584
15618
|
*
|
|
15585
15619
|
* _.find(objects, _.matchesProperty('a', 4));
|
|
15586
15620
|
* // => { 'a': 4, 'b': 5, 'c': 6 }
|
|
15621
|
+
*
|
|
15622
|
+
* // Checking for several possible values
|
|
15623
|
+
* _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
|
|
15624
|
+
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
|
|
15587
15625
|
*/
|
|
15588
15626
|
function matchesProperty(path, srcValue) {
|
|
15589
15627
|
return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
@@ -15807,6 +15845,10 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
15807
15845
|
* Creates a function that checks if **all** of the `predicates` return
|
|
15808
15846
|
* truthy when invoked with the arguments it receives.
|
|
15809
15847
|
*
|
|
15848
|
+
* Following shorthands are possible for providing predicates.
|
|
15849
|
+
* Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
|
|
15850
|
+
* Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
|
|
15851
|
+
*
|
|
15810
15852
|
* @static
|
|
15811
15853
|
* @memberOf _
|
|
15812
15854
|
* @since 4.0.0
|
|
@@ -15833,6 +15875,10 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
15833
15875
|
* Creates a function that checks if **any** of the `predicates` return
|
|
15834
15876
|
* truthy when invoked with the arguments it receives.
|
|
15835
15877
|
*
|
|
15878
|
+
* Following shorthands are possible for providing predicates.
|
|
15879
|
+
* Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
|
|
15880
|
+
* Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
|
|
15881
|
+
*
|
|
15836
15882
|
* @static
|
|
15837
15883
|
* @memberOf _
|
|
15838
15884
|
* @since 4.0.0
|
|
@@ -15852,6 +15898,9 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
15852
15898
|
*
|
|
15853
15899
|
* func(NaN);
|
|
15854
15900
|
* // => false
|
|
15901
|
+
*
|
|
15902
|
+
* var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
|
|
15903
|
+
* var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
|
|
15855
15904
|
*/
|
|
15856
15905
|
var overSome = createOver(arraySome);
|
|
15857
15906
|
|
|
@@ -848,4 +848,4 @@ var main_47 = main.osName;
|
|
|
848
848
|
var main_48 = main.osVersion;
|
|
849
849
|
var main_49 = main.withOrientationChange;
|
|
850
850
|
|
|
851
|
-
export { main_37 as a, main_16 as b,
|
|
851
|
+
export { main_37 as a, main_16 as b, main_22 as c, main_35 as d, main_30 as e, main_36 as m };
|
package/dist/esm/urlFor.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mjhls/mjh-framework",
|
|
3
|
-
"version": "1.0.691-beta.
|
|
3
|
+
"version": "1.0.691-beta.6",
|
|
4
4
|
"description": "Foundation Framework",
|
|
5
5
|
"author": "mjh-framework",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"test:watch": "react-scripts test --env=jsdom",
|
|
21
21
|
"build": "npm run clean && rollup -c",
|
|
22
22
|
"start": "npm run clean && rollup -c -w",
|
|
23
|
-
"prepare": "
|
|
24
|
-
"predeploy": "cd example &&
|
|
23
|
+
"prepare": "npm run build",
|
|
24
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
25
25
|
"deploy": "gh-pages -d example/build"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|