@mjhls/mjh-framework 1.0.322 → 1.0.323
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 +1 -1
- package/dist/cjs/{ADInfeed-a7a5e9f3.js → ADInfeed-b042a194.js} +1 -1
- package/dist/cjs/{AdSlot-fef815e9.js → AdSlot-c5bff604.js} +3 -3
- package/dist/cjs/DeckContent.js +8 -9
- package/dist/cjs/DeckQueue.js +4 -5
- package/dist/cjs/{Dfp-f5e04360.js → Dfp-9ede68c7.js} +2 -3
- package/dist/cjs/{Figure-36e6957e.js → Figure-a47ec3a7.js} +2 -3
- package/dist/cjs/{GridContent-98e9ab78.js → GridContent-139bbe70.js} +5 -5
- package/dist/cjs/GridContent.js +9 -10
- package/dist/cjs/GroupDeck.js +119 -21
- package/dist/cjs/MasterDeck.js +5 -6
- package/dist/cjs/{Normal-ead4243d.js → Normal-e7423a52.js} +3 -3
- package/dist/cjs/QueueDeckExpanded.js +7 -8
- package/dist/cjs/TemplateNormal.js +6 -7
- package/dist/cjs/{Ustream-3a3c56b8.js → Ustream-f5f53782.js} +1 -1
- package/dist/cjs/Ustream.js +3 -4
- package/dist/cjs/VideoSeriesListing.js +6 -4
- package/dist/cjs/YoutubeGroup.js +244 -4
- package/dist/cjs/index.js +19 -19
- package/dist/cjs/{inherits-be59e8ae.js → inherits-37d5840f.js} +1 -1
- package/dist/cjs/{main-753fb093.js → main-987c23c6.js} +1 -1
- package/dist/cjs/{promise-e50b2d19.js → promise-3b44b2a3.js} +4 -5
- package/dist/cjs/{slicedToArray-bed4d943.js → slicedToArray-879ab2fb.js} +3 -4
- package/dist/cjs/smoothscroll-95231a70.js +488 -0
- package/dist/cjs/{toConsumableArray-18281c61.js → toConsumableArray-34b5e9a7.js} +3 -4
- package/dist/cjs/{web.dom.iterable-0998bdc3.js → web.dom.iterable-8b02d65e.js} +34 -0
- package/dist/esm/{ADInfeed-2aaf8622.js → ADInfeed-aadcfc25.js} +1 -1
- package/dist/esm/{AdSlot-028b040f.js → AdSlot-8946358f.js} +3 -3
- package/dist/esm/DeckContent.js +8 -9
- package/dist/esm/DeckQueue.js +4 -5
- package/dist/esm/{Dfp-f518314c.js → Dfp-9293acfb.js} +2 -3
- package/dist/esm/{Figure-af6a1f2d.js → Figure-584ac0c8.js} +2 -3
- package/dist/esm/{GridContent-dd8fe8d1.js → GridContent-ceb53300.js} +5 -5
- package/dist/esm/GridContent.js +9 -10
- package/dist/esm/GroupDeck.js +120 -22
- package/dist/esm/MasterDeck.js +5 -6
- package/dist/esm/{Normal-252dd706.js → Normal-ff7a10ab.js} +3 -3
- package/dist/esm/QueueDeckExpanded.js +7 -8
- package/dist/esm/TemplateNormal.js +6 -7
- package/dist/esm/{Ustream-c153a835.js → Ustream-d8cc3cbd.js} +1 -1
- package/dist/esm/Ustream.js +3 -4
- package/dist/esm/VideoSeriesListing.js +5 -3
- package/dist/esm/YoutubeGroup.js +244 -3
- package/dist/esm/index.js +17 -18
- package/dist/esm/{inherits-9d26445c.js → inherits-cb536901.js} +1 -1
- package/dist/esm/{main-d550db5e.js → main-cb86f95d.js} +1 -1
- package/dist/esm/{promise-8fc46e97.js → promise-86cb8313.js} +2 -3
- package/dist/esm/{slicedToArray-d1db3163.js → slicedToArray-a47a84a4.js} +1 -2
- package/dist/esm/smoothscroll-4b699764.js +485 -0
- package/dist/esm/{toConsumableArray-a096ca06.js → toConsumableArray-2718dc16.js} +2 -3
- package/dist/esm/{web.dom.iterable-3be50d6c.js → web.dom.iterable-7e9bebf9.js} +34 -2
- package/package.json +1 -1
- package/dist/cjs/YoutubeGroup-24ec8af9.js +0 -693
- package/dist/cjs/core.get-iterator-method-e049ca4a.js +0 -39
- package/dist/esm/YoutubeGroup-13d88f43.js +0 -687
- package/dist/esm/core.get-iterator-method-31c1fb1a.js +0 -36
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
+
|
|
5
|
+
var getYoutubeId = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6
|
+
(function (root, factory) {
|
|
7
|
+
{
|
|
8
|
+
module.exports = factory();
|
|
9
|
+
}
|
|
10
|
+
}(_commonjsHelpers.commonjsGlobal, function (exports) {
|
|
11
|
+
|
|
12
|
+
return function (url, opts) {
|
|
13
|
+
if (opts == undefined) {
|
|
14
|
+
opts = {fuzzy: true};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (/youtu\.?be/.test(url)) {
|
|
18
|
+
|
|
19
|
+
// Look first for known patterns
|
|
20
|
+
var i;
|
|
21
|
+
var patterns = [
|
|
22
|
+
/youtu\.be\/([^#\&\?]{11})/, // youtu.be/<id>
|
|
23
|
+
/\?v=([^#\&\?]{11})/, // ?v=<id>
|
|
24
|
+
/\&v=([^#\&\?]{11})/, // &v=<id>
|
|
25
|
+
/embed\/([^#\&\?]{11})/, // embed/<id>
|
|
26
|
+
/\/v\/([^#\&\?]{11})/ // /v/<id>
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
// If any pattern matches, return the ID
|
|
30
|
+
for (i = 0; i < patterns.length; ++i) {
|
|
31
|
+
if (patterns[i].test(url)) {
|
|
32
|
+
return patterns[i].exec(url)[1];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (opts.fuzzy) {
|
|
37
|
+
// If that fails, break it apart by certain characters and look
|
|
38
|
+
// for the 11 character key
|
|
39
|
+
var tokens = url.split(/[\/\&\?=#\.\s]/g);
|
|
40
|
+
for (i = 0; i < tokens.length; ++i) {
|
|
41
|
+
if (/^[^#\&\?]{11}$/.test(tokens[i])) {
|
|
42
|
+
return tokens[i];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return null;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
}));
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
var smoothscroll = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
55
|
+
/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
|
|
56
|
+
(function () {
|
|
57
|
+
|
|
58
|
+
// polyfill
|
|
59
|
+
function polyfill() {
|
|
60
|
+
// aliases
|
|
61
|
+
var w = window;
|
|
62
|
+
var d = document;
|
|
63
|
+
|
|
64
|
+
// return if scroll behavior is supported and polyfill is not forced
|
|
65
|
+
if (
|
|
66
|
+
'scrollBehavior' in d.documentElement.style &&
|
|
67
|
+
w.__forceSmoothScrollPolyfill__ !== true
|
|
68
|
+
) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// globals
|
|
73
|
+
var Element = w.HTMLElement || w.Element;
|
|
74
|
+
var SCROLL_TIME = 468;
|
|
75
|
+
|
|
76
|
+
// object gathering original scroll methods
|
|
77
|
+
var original = {
|
|
78
|
+
scroll: w.scroll || w.scrollTo,
|
|
79
|
+
scrollBy: w.scrollBy,
|
|
80
|
+
elementScroll: Element.prototype.scroll || scrollElement,
|
|
81
|
+
scrollIntoView: Element.prototype.scrollIntoView
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// define timing method
|
|
85
|
+
var now =
|
|
86
|
+
w.performance && w.performance.now
|
|
87
|
+
? w.performance.now.bind(w.performance)
|
|
88
|
+
: Date.now;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* indicates if a the current browser is made by Microsoft
|
|
92
|
+
* @method isMicrosoftBrowser
|
|
93
|
+
* @param {String} userAgent
|
|
94
|
+
* @returns {Boolean}
|
|
95
|
+
*/
|
|
96
|
+
function isMicrosoftBrowser(userAgent) {
|
|
97
|
+
var userAgentPatterns = ['MSIE ', 'Trident/', 'Edge/'];
|
|
98
|
+
|
|
99
|
+
return new RegExp(userAgentPatterns.join('|')).test(userAgent);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/*
|
|
103
|
+
* IE has rounding bug rounding down clientHeight and clientWidth and
|
|
104
|
+
* rounding up scrollHeight and scrollWidth causing false positives
|
|
105
|
+
* on hasScrollableSpace
|
|
106
|
+
*/
|
|
107
|
+
var ROUNDING_TOLERANCE = isMicrosoftBrowser(w.navigator.userAgent) ? 1 : 0;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* changes scroll position inside an element
|
|
111
|
+
* @method scrollElement
|
|
112
|
+
* @param {Number} x
|
|
113
|
+
* @param {Number} y
|
|
114
|
+
* @returns {undefined}
|
|
115
|
+
*/
|
|
116
|
+
function scrollElement(x, y) {
|
|
117
|
+
this.scrollLeft = x;
|
|
118
|
+
this.scrollTop = y;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* returns result of applying ease math function to a number
|
|
123
|
+
* @method ease
|
|
124
|
+
* @param {Number} k
|
|
125
|
+
* @returns {Number}
|
|
126
|
+
*/
|
|
127
|
+
function ease(k) {
|
|
128
|
+
return 0.5 * (1 - Math.cos(Math.PI * k));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* indicates if a smooth behavior should be applied
|
|
133
|
+
* @method shouldBailOut
|
|
134
|
+
* @param {Number|Object} firstArg
|
|
135
|
+
* @returns {Boolean}
|
|
136
|
+
*/
|
|
137
|
+
function shouldBailOut(firstArg) {
|
|
138
|
+
if (
|
|
139
|
+
firstArg === null ||
|
|
140
|
+
typeof firstArg !== 'object' ||
|
|
141
|
+
firstArg.behavior === undefined ||
|
|
142
|
+
firstArg.behavior === 'auto' ||
|
|
143
|
+
firstArg.behavior === 'instant'
|
|
144
|
+
) {
|
|
145
|
+
// first argument is not an object/null
|
|
146
|
+
// or behavior is auto, instant or undefined
|
|
147
|
+
return true;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (typeof firstArg === 'object' && firstArg.behavior === 'smooth') {
|
|
151
|
+
// first argument is an object and behavior is smooth
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// throw error when behavior is not supported
|
|
156
|
+
throw new TypeError(
|
|
157
|
+
'behavior member of ScrollOptions ' +
|
|
158
|
+
firstArg.behavior +
|
|
159
|
+
' is not a valid value for enumeration ScrollBehavior.'
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* indicates if an element has scrollable space in the provided axis
|
|
165
|
+
* @method hasScrollableSpace
|
|
166
|
+
* @param {Node} el
|
|
167
|
+
* @param {String} axis
|
|
168
|
+
* @returns {Boolean}
|
|
169
|
+
*/
|
|
170
|
+
function hasScrollableSpace(el, axis) {
|
|
171
|
+
if (axis === 'Y') {
|
|
172
|
+
return el.clientHeight + ROUNDING_TOLERANCE < el.scrollHeight;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (axis === 'X') {
|
|
176
|
+
return el.clientWidth + ROUNDING_TOLERANCE < el.scrollWidth;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* indicates if an element has a scrollable overflow property in the axis
|
|
182
|
+
* @method canOverflow
|
|
183
|
+
* @param {Node} el
|
|
184
|
+
* @param {String} axis
|
|
185
|
+
* @returns {Boolean}
|
|
186
|
+
*/
|
|
187
|
+
function canOverflow(el, axis) {
|
|
188
|
+
var overflowValue = w.getComputedStyle(el, null)['overflow' + axis];
|
|
189
|
+
|
|
190
|
+
return overflowValue === 'auto' || overflowValue === 'scroll';
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* indicates if an element can be scrolled in either axis
|
|
195
|
+
* @method isScrollable
|
|
196
|
+
* @param {Node} el
|
|
197
|
+
* @param {String} axis
|
|
198
|
+
* @returns {Boolean}
|
|
199
|
+
*/
|
|
200
|
+
function isScrollable(el) {
|
|
201
|
+
var isScrollableY = hasScrollableSpace(el, 'Y') && canOverflow(el, 'Y');
|
|
202
|
+
var isScrollableX = hasScrollableSpace(el, 'X') && canOverflow(el, 'X');
|
|
203
|
+
|
|
204
|
+
return isScrollableY || isScrollableX;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* finds scrollable parent of an element
|
|
209
|
+
* @method findScrollableParent
|
|
210
|
+
* @param {Node} el
|
|
211
|
+
* @returns {Node} el
|
|
212
|
+
*/
|
|
213
|
+
function findScrollableParent(el) {
|
|
214
|
+
while (el !== d.body && isScrollable(el) === false) {
|
|
215
|
+
el = el.parentNode || el.host;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return el;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* self invoked function that, given a context, steps through scrolling
|
|
223
|
+
* @method step
|
|
224
|
+
* @param {Object} context
|
|
225
|
+
* @returns {undefined}
|
|
226
|
+
*/
|
|
227
|
+
function step(context) {
|
|
228
|
+
var time = now();
|
|
229
|
+
var value;
|
|
230
|
+
var currentX;
|
|
231
|
+
var currentY;
|
|
232
|
+
var elapsed = (time - context.startTime) / SCROLL_TIME;
|
|
233
|
+
|
|
234
|
+
// avoid elapsed times higher than one
|
|
235
|
+
elapsed = elapsed > 1 ? 1 : elapsed;
|
|
236
|
+
|
|
237
|
+
// apply easing to elapsed time
|
|
238
|
+
value = ease(elapsed);
|
|
239
|
+
|
|
240
|
+
currentX = context.startX + (context.x - context.startX) * value;
|
|
241
|
+
currentY = context.startY + (context.y - context.startY) * value;
|
|
242
|
+
|
|
243
|
+
context.method.call(context.scrollable, currentX, currentY);
|
|
244
|
+
|
|
245
|
+
// scroll more if we have not reached our destination
|
|
246
|
+
if (currentX !== context.x || currentY !== context.y) {
|
|
247
|
+
w.requestAnimationFrame(step.bind(w, context));
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* scrolls window or element with a smooth behavior
|
|
253
|
+
* @method smoothScroll
|
|
254
|
+
* @param {Object|Node} el
|
|
255
|
+
* @param {Number} x
|
|
256
|
+
* @param {Number} y
|
|
257
|
+
* @returns {undefined}
|
|
258
|
+
*/
|
|
259
|
+
function smoothScroll(el, x, y) {
|
|
260
|
+
var scrollable;
|
|
261
|
+
var startX;
|
|
262
|
+
var startY;
|
|
263
|
+
var method;
|
|
264
|
+
var startTime = now();
|
|
265
|
+
|
|
266
|
+
// define scroll context
|
|
267
|
+
if (el === d.body) {
|
|
268
|
+
scrollable = w;
|
|
269
|
+
startX = w.scrollX || w.pageXOffset;
|
|
270
|
+
startY = w.scrollY || w.pageYOffset;
|
|
271
|
+
method = original.scroll;
|
|
272
|
+
} else {
|
|
273
|
+
scrollable = el;
|
|
274
|
+
startX = el.scrollLeft;
|
|
275
|
+
startY = el.scrollTop;
|
|
276
|
+
method = scrollElement;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// scroll looping over a frame
|
|
280
|
+
step({
|
|
281
|
+
scrollable: scrollable,
|
|
282
|
+
method: method,
|
|
283
|
+
startTime: startTime,
|
|
284
|
+
startX: startX,
|
|
285
|
+
startY: startY,
|
|
286
|
+
x: x,
|
|
287
|
+
y: y
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// ORIGINAL METHODS OVERRIDES
|
|
292
|
+
// w.scroll and w.scrollTo
|
|
293
|
+
w.scroll = w.scrollTo = function() {
|
|
294
|
+
// avoid action when no arguments are passed
|
|
295
|
+
if (arguments[0] === undefined) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// avoid smooth behavior if not required
|
|
300
|
+
if (shouldBailOut(arguments[0]) === true) {
|
|
301
|
+
original.scroll.call(
|
|
302
|
+
w,
|
|
303
|
+
arguments[0].left !== undefined
|
|
304
|
+
? arguments[0].left
|
|
305
|
+
: typeof arguments[0] !== 'object'
|
|
306
|
+
? arguments[0]
|
|
307
|
+
: w.scrollX || w.pageXOffset,
|
|
308
|
+
// use top prop, second argument if present or fallback to scrollY
|
|
309
|
+
arguments[0].top !== undefined
|
|
310
|
+
? arguments[0].top
|
|
311
|
+
: arguments[1] !== undefined
|
|
312
|
+
? arguments[1]
|
|
313
|
+
: w.scrollY || w.pageYOffset
|
|
314
|
+
);
|
|
315
|
+
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// LET THE SMOOTHNESS BEGIN!
|
|
320
|
+
smoothScroll.call(
|
|
321
|
+
w,
|
|
322
|
+
d.body,
|
|
323
|
+
arguments[0].left !== undefined
|
|
324
|
+
? ~~arguments[0].left
|
|
325
|
+
: w.scrollX || w.pageXOffset,
|
|
326
|
+
arguments[0].top !== undefined
|
|
327
|
+
? ~~arguments[0].top
|
|
328
|
+
: w.scrollY || w.pageYOffset
|
|
329
|
+
);
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
// w.scrollBy
|
|
333
|
+
w.scrollBy = function() {
|
|
334
|
+
// avoid action when no arguments are passed
|
|
335
|
+
if (arguments[0] === undefined) {
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// avoid smooth behavior if not required
|
|
340
|
+
if (shouldBailOut(arguments[0])) {
|
|
341
|
+
original.scrollBy.call(
|
|
342
|
+
w,
|
|
343
|
+
arguments[0].left !== undefined
|
|
344
|
+
? arguments[0].left
|
|
345
|
+
: typeof arguments[0] !== 'object' ? arguments[0] : 0,
|
|
346
|
+
arguments[0].top !== undefined
|
|
347
|
+
? arguments[0].top
|
|
348
|
+
: arguments[1] !== undefined ? arguments[1] : 0
|
|
349
|
+
);
|
|
350
|
+
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// LET THE SMOOTHNESS BEGIN!
|
|
355
|
+
smoothScroll.call(
|
|
356
|
+
w,
|
|
357
|
+
d.body,
|
|
358
|
+
~~arguments[0].left + (w.scrollX || w.pageXOffset),
|
|
359
|
+
~~arguments[0].top + (w.scrollY || w.pageYOffset)
|
|
360
|
+
);
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
// Element.prototype.scroll and Element.prototype.scrollTo
|
|
364
|
+
Element.prototype.scroll = Element.prototype.scrollTo = function() {
|
|
365
|
+
// avoid action when no arguments are passed
|
|
366
|
+
if (arguments[0] === undefined) {
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
// avoid smooth behavior if not required
|
|
371
|
+
if (shouldBailOut(arguments[0]) === true) {
|
|
372
|
+
// if one number is passed, throw error to match Firefox implementation
|
|
373
|
+
if (typeof arguments[0] === 'number' && arguments[1] === undefined) {
|
|
374
|
+
throw new SyntaxError('Value could not be converted');
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
original.elementScroll.call(
|
|
378
|
+
this,
|
|
379
|
+
// use left prop, first number argument or fallback to scrollLeft
|
|
380
|
+
arguments[0].left !== undefined
|
|
381
|
+
? ~~arguments[0].left
|
|
382
|
+
: typeof arguments[0] !== 'object' ? ~~arguments[0] : this.scrollLeft,
|
|
383
|
+
// use top prop, second argument or fallback to scrollTop
|
|
384
|
+
arguments[0].top !== undefined
|
|
385
|
+
? ~~arguments[0].top
|
|
386
|
+
: arguments[1] !== undefined ? ~~arguments[1] : this.scrollTop
|
|
387
|
+
);
|
|
388
|
+
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
var left = arguments[0].left;
|
|
393
|
+
var top = arguments[0].top;
|
|
394
|
+
|
|
395
|
+
// LET THE SMOOTHNESS BEGIN!
|
|
396
|
+
smoothScroll.call(
|
|
397
|
+
this,
|
|
398
|
+
this,
|
|
399
|
+
typeof left === 'undefined' ? this.scrollLeft : ~~left,
|
|
400
|
+
typeof top === 'undefined' ? this.scrollTop : ~~top
|
|
401
|
+
);
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
// Element.prototype.scrollBy
|
|
405
|
+
Element.prototype.scrollBy = function() {
|
|
406
|
+
// avoid action when no arguments are passed
|
|
407
|
+
if (arguments[0] === undefined) {
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// avoid smooth behavior if not required
|
|
412
|
+
if (shouldBailOut(arguments[0]) === true) {
|
|
413
|
+
original.elementScroll.call(
|
|
414
|
+
this,
|
|
415
|
+
arguments[0].left !== undefined
|
|
416
|
+
? ~~arguments[0].left + this.scrollLeft
|
|
417
|
+
: ~~arguments[0] + this.scrollLeft,
|
|
418
|
+
arguments[0].top !== undefined
|
|
419
|
+
? ~~arguments[0].top + this.scrollTop
|
|
420
|
+
: ~~arguments[1] + this.scrollTop
|
|
421
|
+
);
|
|
422
|
+
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
this.scroll({
|
|
427
|
+
left: ~~arguments[0].left + this.scrollLeft,
|
|
428
|
+
top: ~~arguments[0].top + this.scrollTop,
|
|
429
|
+
behavior: arguments[0].behavior
|
|
430
|
+
});
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
// Element.prototype.scrollIntoView
|
|
434
|
+
Element.prototype.scrollIntoView = function() {
|
|
435
|
+
// avoid smooth behavior if not required
|
|
436
|
+
if (shouldBailOut(arguments[0]) === true) {
|
|
437
|
+
original.scrollIntoView.call(
|
|
438
|
+
this,
|
|
439
|
+
arguments[0] === undefined ? true : arguments[0]
|
|
440
|
+
);
|
|
441
|
+
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// LET THE SMOOTHNESS BEGIN!
|
|
446
|
+
var scrollableParent = findScrollableParent(this);
|
|
447
|
+
var parentRects = scrollableParent.getBoundingClientRect();
|
|
448
|
+
var clientRects = this.getBoundingClientRect();
|
|
449
|
+
|
|
450
|
+
if (scrollableParent !== d.body) {
|
|
451
|
+
// reveal element inside parent
|
|
452
|
+
smoothScroll.call(
|
|
453
|
+
this,
|
|
454
|
+
scrollableParent,
|
|
455
|
+
scrollableParent.scrollLeft + clientRects.left - parentRects.left,
|
|
456
|
+
scrollableParent.scrollTop + clientRects.top - parentRects.top
|
|
457
|
+
);
|
|
458
|
+
|
|
459
|
+
// reveal parent in viewport unless is fixed
|
|
460
|
+
if (w.getComputedStyle(scrollableParent).position !== 'fixed') {
|
|
461
|
+
w.scrollBy({
|
|
462
|
+
left: parentRects.left,
|
|
463
|
+
top: parentRects.top,
|
|
464
|
+
behavior: 'smooth'
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
} else {
|
|
468
|
+
// reveal element in viewport
|
|
469
|
+
w.scrollBy({
|
|
470
|
+
left: clientRects.left,
|
|
471
|
+
top: clientRects.top,
|
|
472
|
+
behavior: 'smooth'
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
{
|
|
479
|
+
// commonjs
|
|
480
|
+
module.exports = { polyfill: polyfill };
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
}());
|
|
484
|
+
});
|
|
485
|
+
var smoothscroll_1 = smoothscroll.polyfill;
|
|
486
|
+
|
|
487
|
+
exports.getYoutubeId = getYoutubeId;
|
|
488
|
+
exports.smoothscroll = smoothscroll;
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
4
|
var _toObject = require('./_to-object-329a650b.js');
|
|
5
|
-
require('./web.dom.iterable-
|
|
6
|
-
var main = require('./main-
|
|
7
|
-
var core_getIteratorMethod = require('./core.get-iterator-method-e049ca4a.js');
|
|
5
|
+
var web_dom_iterable = require('./web.dom.iterable-8b02d65e.js');
|
|
6
|
+
var main = require('./main-987c23c6.js');
|
|
8
7
|
|
|
9
8
|
var _createProperty = function (object, index, value) {
|
|
10
9
|
if (index in object) _toObject._objectDp.f(object, index, _toObject._propertyDesc(0, value));
|
|
@@ -20,7 +19,7 @@ _toObject._export(_toObject._export.S + _toObject._export.F * !main._iterDetect(
|
|
|
20
19
|
var mapfn = aLen > 1 ? arguments[1] : undefined;
|
|
21
20
|
var mapping = mapfn !== undefined;
|
|
22
21
|
var index = 0;
|
|
23
|
-
var iterFn =
|
|
22
|
+
var iterFn = web_dom_iterable.core_getIteratorMethod(O);
|
|
24
23
|
var length, result, step, iterator;
|
|
25
24
|
if (mapping) mapfn = _toObject._ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
|
|
26
25
|
// if object isn't iterable or it's array with default iterator - use simple case
|
|
@@ -200,6 +200,38 @@ _iterDefine(String, 'String', function (iterated) {
|
|
|
200
200
|
return { value: point, done: false };
|
|
201
201
|
});
|
|
202
202
|
|
|
203
|
+
// getting tag from 19.1.3.6 Object.prototype.toString()
|
|
204
|
+
|
|
205
|
+
var TAG$1 = _wks('toStringTag');
|
|
206
|
+
// ES3 wrong here
|
|
207
|
+
var ARG = _toObject._cof(function () { return arguments; }()) == 'Arguments';
|
|
208
|
+
|
|
209
|
+
// fallback for IE11 Script Access Denied error
|
|
210
|
+
var tryGet = function (it, key) {
|
|
211
|
+
try {
|
|
212
|
+
return it[key];
|
|
213
|
+
} catch (e) { /* empty */ }
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
var _classof = function (it) {
|
|
217
|
+
var O, T, B;
|
|
218
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
219
|
+
// @@toStringTag case
|
|
220
|
+
: typeof (T = tryGet(O = Object(it), TAG$1)) == 'string' ? T
|
|
221
|
+
// builtinTag case
|
|
222
|
+
: ARG ? _toObject._cof(O)
|
|
223
|
+
// ES3 arguments fallback
|
|
224
|
+
: (B = _toObject._cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
var ITERATOR$1 = _wks('iterator');
|
|
228
|
+
|
|
229
|
+
var core_getIteratorMethod = _toObject._core.getIteratorMethod = function (it) {
|
|
230
|
+
if (it != undefined) return it[ITERATOR$1]
|
|
231
|
+
|| it['@@iterator']
|
|
232
|
+
|| _iterators[_classof(it)];
|
|
233
|
+
};
|
|
234
|
+
|
|
203
235
|
var _iterStep = function (done, value) {
|
|
204
236
|
return { value: value, done: !!done };
|
|
205
237
|
};
|
|
@@ -245,6 +277,7 @@ for (var i = 0; i < DOMIterables.length; i++) {
|
|
|
245
277
|
_iterators[NAME] = _iterators.Array;
|
|
246
278
|
}
|
|
247
279
|
|
|
280
|
+
exports._classof = _classof;
|
|
248
281
|
exports._html = _html;
|
|
249
282
|
exports._iterators = _iterators;
|
|
250
283
|
exports._objectCreate = _objectCreate;
|
|
@@ -252,3 +285,4 @@ exports._objectGpo = _objectGpo;
|
|
|
252
285
|
exports._redefine = _redefine;
|
|
253
286
|
exports._setToStringTag = _setToStringTag;
|
|
254
287
|
exports._wks = _wks;
|
|
288
|
+
exports.core_getIteratorMethod = core_getIteratorMethod;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { u as unwrapExports, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { b as _core } from './_to-object-b9b796ec.js';
|
|
3
3
|
import { d as debounce_1, e as lib_2 } from './debounce-702eb224.js';
|
|
4
|
-
import { a as main_16 } from './main-
|
|
4
|
+
import { a as main_16 } from './main-cb86f95d.js';
|
|
5
5
|
import React__default, { useState } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
8
|
-
import { p as promise } from './promise-
|
|
7
|
+
import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
|
|
8
|
+
import { p as promise } from './promise-86cb8313.js';
|
|
9
9
|
|
|
10
10
|
var $JSON = _core.JSON || (_core.JSON = { stringify: JSON.stringify });
|
|
11
11
|
var stringify = function stringify(it) { // eslint-disable-line no-unused-vars
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-b9b796ec.js';
|
|
3
|
-
import './web.dom.iterable-
|
|
3
|
+
import './web.dom.iterable-7e9bebf9.js';
|
|
4
4
|
import { d as debounce_1, l as lib_3 } from './debounce-702eb224.js';
|
|
5
|
-
import { m as main_39 } from './main-
|
|
6
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
7
|
-
import './core.get-iterator-method-31c1fb1a.js';
|
|
5
|
+
import { m as main_39 } from './main-cb86f95d.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-2718dc16.js';
|
|
8
7
|
import { _ as _extends } from './extends-dbbe308d.js';
|
|
9
|
-
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-
|
|
8
|
+
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cb536901.js';
|
|
10
9
|
import React__default from 'react';
|
|
11
10
|
import 'prop-types';
|
|
12
11
|
import Container from 'react-bootstrap/Container';
|
|
@@ -20,10 +19,10 @@ import 'react-dom';
|
|
|
20
19
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
21
20
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
22
21
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
23
|
-
import './slicedToArray-
|
|
24
|
-
import './AdSlot-
|
|
25
|
-
import './promise-
|
|
26
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
22
|
+
import './slicedToArray-a47a84a4.js';
|
|
23
|
+
import './AdSlot-8946358f.js';
|
|
24
|
+
import './promise-86cb8313.js';
|
|
25
|
+
import { A as ADInfeed } from './ADInfeed-aadcfc25.js';
|
|
27
26
|
|
|
28
27
|
var DeckContent = function (_React$Component) {
|
|
29
28
|
_inherits(DeckContent, _React$Component);
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-b9b796ec.js';
|
|
3
|
-
import './web.dom.iterable-
|
|
3
|
+
import './web.dom.iterable-7e9bebf9.js';
|
|
4
4
|
import { d as debounce_1, l as lib_3 } from './debounce-702eb224.js';
|
|
5
|
-
import { m as main_39 } from './main-
|
|
6
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
7
|
-
import './core.get-iterator-method-31c1fb1a.js';
|
|
5
|
+
import { m as main_39 } from './main-cb86f95d.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-2718dc16.js';
|
|
8
7
|
import { _ as _extends } from './extends-dbbe308d.js';
|
|
9
|
-
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-
|
|
8
|
+
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cb536901.js';
|
|
10
9
|
import React__default from 'react';
|
|
11
10
|
import 'prop-types';
|
|
12
11
|
import Container from 'react-bootstrap/Container';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-b9b796ec.js';
|
|
3
|
-
import './web.dom.iterable-
|
|
3
|
+
import './web.dom.iterable-7e9bebf9.js';
|
|
4
4
|
import { d as debounce_1, a as lib_1, e as lib_2 } from './debounce-702eb224.js';
|
|
5
|
-
import './core.get-iterator-method-31c1fb1a.js';
|
|
6
5
|
import React__default, { useState } from 'react';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
8
7
|
import { V as VisibilitySensor } from './visibility-sensor-3cea5efb.js';
|
|
9
8
|
import 'react-dom';
|
|
10
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
9
|
+
import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
|
|
11
10
|
|
|
12
11
|
var AD = function AD(_ref) {
|
|
13
12
|
var networkID = _ref.networkID,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-b9b796ec.js';
|
|
3
|
-
import './web.dom.iterable-
|
|
4
|
-
import './core.get-iterator-method-31c1fb1a.js';
|
|
3
|
+
import './web.dom.iterable-7e9bebf9.js';
|
|
5
4
|
import React__default, { useState } from 'react';
|
|
6
5
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
7
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
6
|
+
import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
|
|
8
7
|
import { Figure as Figure$1 } from 'react-bootstrap';
|
|
9
8
|
|
|
10
9
|
var urlFor = function urlFor(source, client) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as debounce_1, l as lib_3 } from './debounce-702eb224.js';
|
|
2
|
-
import { m as main_39 } from './main-
|
|
3
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
+
import { m as main_39 } from './main-cb86f95d.js';
|
|
3
|
+
import { _ as _toConsumableArray } from './toConsumableArray-2718dc16.js';
|
|
4
4
|
import { _ as _extends } from './extends-dbbe308d.js';
|
|
5
|
-
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-
|
|
5
|
+
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cb536901.js';
|
|
6
6
|
import React__default, { Suspense } from 'react';
|
|
7
7
|
import Container from 'react-bootstrap/Container';
|
|
8
8
|
import Row from 'react-bootstrap/Row';
|
|
@@ -14,11 +14,11 @@ import { withRouter } from 'next/router';
|
|
|
14
14
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
15
15
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
16
16
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
17
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
17
|
+
import { A as ADInfeed } from './ADInfeed-aadcfc25.js';
|
|
18
18
|
import { g as get_1 } from './get-36d03764.js';
|
|
19
19
|
|
|
20
20
|
var Dfp = React__default.lazy(function () {
|
|
21
|
-
return import('./Dfp-
|
|
21
|
+
return import('./Dfp-9293acfb.js');
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
var AD = function AD(props) {
|