@mjhls/mjh-framework 1.0.279 → 1.0.281

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 (47) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{ADInfeed-f560c2f9.js → ADInfeed-f0bf34d7.js} +1 -1
  3. package/dist/cjs/{AdSlot-f69a31ec.js → AdSlot-9660e9aa.js} +3 -4
  4. package/dist/cjs/DeckContent.js +10 -11
  5. package/dist/cjs/DeckQueue.js +8 -9
  6. package/dist/cjs/{Dfp-7a5533f9.js → Dfp-36d51c84.js} +3 -4
  7. package/dist/cjs/{Figure-fe3e9705.js → Figure-a7cd5161.js} +2 -2
  8. package/dist/cjs/{GridContent-8d5a738c.js → GridContent-4b4bbe7f.js} +13 -14
  9. package/dist/cjs/GridContent.js +7 -8
  10. package/dist/cjs/IssueContentDeck.js +4 -4
  11. package/dist/cjs/IssueDeck.js +5 -5
  12. package/dist/cjs/MasterDeck.js +4 -5
  13. package/dist/cjs/{Normal-7ed9eee9.js → Normal-f3765beb.js} +5 -5
  14. package/dist/cjs/PublicationDeck.js +4 -4
  15. package/dist/cjs/QueueDeckExpanded.js +47 -12
  16. package/dist/cjs/{TaxonomyCard-b5074d6e.js → TaxonomyCard-cf5bbc07.js} +5 -5
  17. package/dist/cjs/TaxonomyCard.js +1 -1
  18. package/dist/cjs/TemplateNormal.js +5 -6
  19. package/dist/cjs/ThumbnailCard.js +4 -4
  20. package/dist/cjs/VideoSeriesListing.js +4 -5
  21. package/dist/cjs/{YoutubeGroup-78e6bcc3.js → YoutubeGroup-1ec66294.js} +3 -3
  22. package/dist/cjs/YoutubeGroup.js +1 -1
  23. package/dist/cjs/{index-fa3cec70.js → debounce-fbfce522.js} +483 -0
  24. package/dist/cjs/{get-1f91592f.js → get-858530c2.js} +1 -1
  25. package/dist/cjs/index.js +36 -37
  26. package/dist/cjs/{inherits-9898af5a.js → inherits-3fbaa008.js} +1 -1
  27. package/dist/cjs/{promise-b96c61f8.js → promise-ea10b9c8.js} +1 -1
  28. package/dist/esm/{ADInfeed-a77b2850.js → ADInfeed-cc019fcb.js} +1 -1
  29. package/dist/esm/{AdSlot-69bf3195.js → AdSlot-1f20130d.js} +2 -3
  30. package/dist/esm/DeckContent.js +5 -6
  31. package/dist/esm/DeckQueue.js +3 -4
  32. package/dist/esm/{Dfp-71879c9d.js → Dfp-85f00c9b.js} +1 -2
  33. package/dist/esm/{GridContent-b8b5f361.js → GridContent-1292ff20.js} +5 -6
  34. package/dist/esm/GridContent.js +7 -8
  35. package/dist/esm/MasterDeck.js +3 -4
  36. package/dist/esm/{Normal-21cfb458.js → Normal-c46eeac5.js} +5 -5
  37. package/dist/esm/QueueDeckExpanded.js +40 -5
  38. package/dist/esm/TemplateNormal.js +5 -6
  39. package/dist/esm/VideoSeriesListing.js +2 -3
  40. package/dist/esm/{index-fa84ea96.js → debounce-d15d4a31.js} +478 -2
  41. package/dist/esm/{get-b2201dc8.js → get-a0244443.js} +1 -1
  42. package/dist/esm/index.js +10 -11
  43. package/dist/esm/{inherits-a75c8a1c.js → inherits-1d7657b5.js} +1 -1
  44. package/dist/esm/{promise-683a9c54.js → promise-eabb7f7e.js} +1 -1
  45. package/package.json +1 -1
  46. package/dist/cjs/debounce-783eb233.js +0 -487
  47. package/dist/esm/debounce-806f886b.js +0 -479
@@ -1,487 +0,0 @@
1
- 'use strict';
2
-
3
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
-
5
- var _library = true;
6
-
7
- /**
8
- * Checks if `value` is the
9
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
10
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
11
- *
12
- * @static
13
- * @memberOf _
14
- * @since 0.1.0
15
- * @category Lang
16
- * @param {*} value The value to check.
17
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
18
- * @example
19
- *
20
- * _.isObject({});
21
- * // => true
22
- *
23
- * _.isObject([1, 2, 3]);
24
- * // => true
25
- *
26
- * _.isObject(_.noop);
27
- * // => true
28
- *
29
- * _.isObject(null);
30
- * // => false
31
- */
32
- function isObject(value) {
33
- var type = typeof value;
34
- return value != null && (type == 'object' || type == 'function');
35
- }
36
-
37
- var isObject_1 = isObject;
38
-
39
- /** Detect free variable `global` from Node.js. */
40
- var freeGlobal = typeof _commonjsHelpers.commonjsGlobal == 'object' && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
41
-
42
- var _freeGlobal = freeGlobal;
43
-
44
- /** Detect free variable `self`. */
45
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
46
-
47
- /** Used as a reference to the global object. */
48
- var root = _freeGlobal || freeSelf || Function('return this')();
49
-
50
- var _root = root;
51
-
52
- /**
53
- * Gets the timestamp of the number of milliseconds that have elapsed since
54
- * the Unix epoch (1 January 1970 00:00:00 UTC).
55
- *
56
- * @static
57
- * @memberOf _
58
- * @since 2.4.0
59
- * @category Date
60
- * @returns {number} Returns the timestamp.
61
- * @example
62
- *
63
- * _.defer(function(stamp) {
64
- * console.log(_.now() - stamp);
65
- * }, _.now());
66
- * // => Logs the number of milliseconds it took for the deferred invocation.
67
- */
68
- var now = function() {
69
- return _root.Date.now();
70
- };
71
-
72
- var now_1 = now;
73
-
74
- /** Built-in value references. */
75
- var Symbol = _root.Symbol;
76
-
77
- var _Symbol = Symbol;
78
-
79
- /** Used for built-in method references. */
80
- var objectProto = Object.prototype;
81
-
82
- /** Used to check objects for own properties. */
83
- var hasOwnProperty = objectProto.hasOwnProperty;
84
-
85
- /**
86
- * Used to resolve the
87
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
88
- * of values.
89
- */
90
- var nativeObjectToString = objectProto.toString;
91
-
92
- /** Built-in value references. */
93
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
94
-
95
- /**
96
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
97
- *
98
- * @private
99
- * @param {*} value The value to query.
100
- * @returns {string} Returns the raw `toStringTag`.
101
- */
102
- function getRawTag(value) {
103
- var isOwn = hasOwnProperty.call(value, symToStringTag),
104
- tag = value[symToStringTag];
105
-
106
- try {
107
- value[symToStringTag] = undefined;
108
- var unmasked = true;
109
- } catch (e) {}
110
-
111
- var result = nativeObjectToString.call(value);
112
- if (unmasked) {
113
- if (isOwn) {
114
- value[symToStringTag] = tag;
115
- } else {
116
- delete value[symToStringTag];
117
- }
118
- }
119
- return result;
120
- }
121
-
122
- var _getRawTag = getRawTag;
123
-
124
- /** Used for built-in method references. */
125
- var objectProto$1 = Object.prototype;
126
-
127
- /**
128
- * Used to resolve the
129
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
130
- * of values.
131
- */
132
- var nativeObjectToString$1 = objectProto$1.toString;
133
-
134
- /**
135
- * Converts `value` to a string using `Object.prototype.toString`.
136
- *
137
- * @private
138
- * @param {*} value The value to convert.
139
- * @returns {string} Returns the converted string.
140
- */
141
- function objectToString(value) {
142
- return nativeObjectToString$1.call(value);
143
- }
144
-
145
- var _objectToString = objectToString;
146
-
147
- /** `Object#toString` result references. */
148
- var nullTag = '[object Null]',
149
- undefinedTag = '[object Undefined]';
150
-
151
- /** Built-in value references. */
152
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
153
-
154
- /**
155
- * The base implementation of `getTag` without fallbacks for buggy environments.
156
- *
157
- * @private
158
- * @param {*} value The value to query.
159
- * @returns {string} Returns the `toStringTag`.
160
- */
161
- function baseGetTag(value) {
162
- if (value == null) {
163
- return value === undefined ? undefinedTag : nullTag;
164
- }
165
- return (symToStringTag$1 && symToStringTag$1 in Object(value))
166
- ? _getRawTag(value)
167
- : _objectToString(value);
168
- }
169
-
170
- var _baseGetTag = baseGetTag;
171
-
172
- /**
173
- * Checks if `value` is object-like. A value is object-like if it's not `null`
174
- * and has a `typeof` result of "object".
175
- *
176
- * @static
177
- * @memberOf _
178
- * @since 4.0.0
179
- * @category Lang
180
- * @param {*} value The value to check.
181
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
182
- * @example
183
- *
184
- * _.isObjectLike({});
185
- * // => true
186
- *
187
- * _.isObjectLike([1, 2, 3]);
188
- * // => true
189
- *
190
- * _.isObjectLike(_.noop);
191
- * // => false
192
- *
193
- * _.isObjectLike(null);
194
- * // => false
195
- */
196
- function isObjectLike(value) {
197
- return value != null && typeof value == 'object';
198
- }
199
-
200
- var isObjectLike_1 = isObjectLike;
201
-
202
- /** `Object#toString` result references. */
203
- var symbolTag = '[object Symbol]';
204
-
205
- /**
206
- * Checks if `value` is classified as a `Symbol` primitive or object.
207
- *
208
- * @static
209
- * @memberOf _
210
- * @since 4.0.0
211
- * @category Lang
212
- * @param {*} value The value to check.
213
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
214
- * @example
215
- *
216
- * _.isSymbol(Symbol.iterator);
217
- * // => true
218
- *
219
- * _.isSymbol('abc');
220
- * // => false
221
- */
222
- function isSymbol(value) {
223
- return typeof value == 'symbol' ||
224
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
225
- }
226
-
227
- var isSymbol_1 = isSymbol;
228
-
229
- /** Used as references for various `Number` constants. */
230
- var NAN = 0 / 0;
231
-
232
- /** Used to match leading and trailing whitespace. */
233
- var reTrim = /^\s+|\s+$/g;
234
-
235
- /** Used to detect bad signed hexadecimal string values. */
236
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
237
-
238
- /** Used to detect binary string values. */
239
- var reIsBinary = /^0b[01]+$/i;
240
-
241
- /** Used to detect octal string values. */
242
- var reIsOctal = /^0o[0-7]+$/i;
243
-
244
- /** Built-in method references without a dependency on `root`. */
245
- var freeParseInt = parseInt;
246
-
247
- /**
248
- * Converts `value` to a number.
249
- *
250
- * @static
251
- * @memberOf _
252
- * @since 4.0.0
253
- * @category Lang
254
- * @param {*} value The value to process.
255
- * @returns {number} Returns the number.
256
- * @example
257
- *
258
- * _.toNumber(3.2);
259
- * // => 3.2
260
- *
261
- * _.toNumber(Number.MIN_VALUE);
262
- * // => 5e-324
263
- *
264
- * _.toNumber(Infinity);
265
- * // => Infinity
266
- *
267
- * _.toNumber('3.2');
268
- * // => 3.2
269
- */
270
- function toNumber(value) {
271
- if (typeof value == 'number') {
272
- return value;
273
- }
274
- if (isSymbol_1(value)) {
275
- return NAN;
276
- }
277
- if (isObject_1(value)) {
278
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
279
- value = isObject_1(other) ? (other + '') : other;
280
- }
281
- if (typeof value != 'string') {
282
- return value === 0 ? value : +value;
283
- }
284
- value = value.replace(reTrim, '');
285
- var isBinary = reIsBinary.test(value);
286
- return (isBinary || reIsOctal.test(value))
287
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
288
- : (reIsBadHex.test(value) ? NAN : +value);
289
- }
290
-
291
- var toNumber_1 = toNumber;
292
-
293
- /** Error message constants. */
294
- var FUNC_ERROR_TEXT = 'Expected a function';
295
-
296
- /* Built-in method references for those with the same name as other `lodash` methods. */
297
- var nativeMax = Math.max,
298
- nativeMin = Math.min;
299
-
300
- /**
301
- * Creates a debounced function that delays invoking `func` until after `wait`
302
- * milliseconds have elapsed since the last time the debounced function was
303
- * invoked. The debounced function comes with a `cancel` method to cancel
304
- * delayed `func` invocations and a `flush` method to immediately invoke them.
305
- * Provide `options` to indicate whether `func` should be invoked on the
306
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
307
- * with the last arguments provided to the debounced function. Subsequent
308
- * calls to the debounced function return the result of the last `func`
309
- * invocation.
310
- *
311
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
312
- * invoked on the trailing edge of the timeout only if the debounced function
313
- * is invoked more than once during the `wait` timeout.
314
- *
315
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
316
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
317
- *
318
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
319
- * for details over the differences between `_.debounce` and `_.throttle`.
320
- *
321
- * @static
322
- * @memberOf _
323
- * @since 0.1.0
324
- * @category Function
325
- * @param {Function} func The function to debounce.
326
- * @param {number} [wait=0] The number of milliseconds to delay.
327
- * @param {Object} [options={}] The options object.
328
- * @param {boolean} [options.leading=false]
329
- * Specify invoking on the leading edge of the timeout.
330
- * @param {number} [options.maxWait]
331
- * The maximum time `func` is allowed to be delayed before it's invoked.
332
- * @param {boolean} [options.trailing=true]
333
- * Specify invoking on the trailing edge of the timeout.
334
- * @returns {Function} Returns the new debounced function.
335
- * @example
336
- *
337
- * // Avoid costly calculations while the window size is in flux.
338
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
339
- *
340
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
341
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
342
- * 'leading': true,
343
- * 'trailing': false
344
- * }));
345
- *
346
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
347
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
348
- * var source = new EventSource('/stream');
349
- * jQuery(source).on('message', debounced);
350
- *
351
- * // Cancel the trailing debounced invocation.
352
- * jQuery(window).on('popstate', debounced.cancel);
353
- */
354
- function debounce(func, wait, options) {
355
- var lastArgs,
356
- lastThis,
357
- maxWait,
358
- result,
359
- timerId,
360
- lastCallTime,
361
- lastInvokeTime = 0,
362
- leading = false,
363
- maxing = false,
364
- trailing = true;
365
-
366
- if (typeof func != 'function') {
367
- throw new TypeError(FUNC_ERROR_TEXT);
368
- }
369
- wait = toNumber_1(wait) || 0;
370
- if (isObject_1(options)) {
371
- leading = !!options.leading;
372
- maxing = 'maxWait' in options;
373
- maxWait = maxing ? nativeMax(toNumber_1(options.maxWait) || 0, wait) : maxWait;
374
- trailing = 'trailing' in options ? !!options.trailing : trailing;
375
- }
376
-
377
- function invokeFunc(time) {
378
- var args = lastArgs,
379
- thisArg = lastThis;
380
-
381
- lastArgs = lastThis = undefined;
382
- lastInvokeTime = time;
383
- result = func.apply(thisArg, args);
384
- return result;
385
- }
386
-
387
- function leadingEdge(time) {
388
- // Reset any `maxWait` timer.
389
- lastInvokeTime = time;
390
- // Start the timer for the trailing edge.
391
- timerId = setTimeout(timerExpired, wait);
392
- // Invoke the leading edge.
393
- return leading ? invokeFunc(time) : result;
394
- }
395
-
396
- function remainingWait(time) {
397
- var timeSinceLastCall = time - lastCallTime,
398
- timeSinceLastInvoke = time - lastInvokeTime,
399
- timeWaiting = wait - timeSinceLastCall;
400
-
401
- return maxing
402
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
403
- : timeWaiting;
404
- }
405
-
406
- function shouldInvoke(time) {
407
- var timeSinceLastCall = time - lastCallTime,
408
- timeSinceLastInvoke = time - lastInvokeTime;
409
-
410
- // Either this is the first call, activity has stopped and we're at the
411
- // trailing edge, the system time has gone backwards and we're treating
412
- // it as the trailing edge, or we've hit the `maxWait` limit.
413
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
414
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
415
- }
416
-
417
- function timerExpired() {
418
- var time = now_1();
419
- if (shouldInvoke(time)) {
420
- return trailingEdge(time);
421
- }
422
- // Restart the timer.
423
- timerId = setTimeout(timerExpired, remainingWait(time));
424
- }
425
-
426
- function trailingEdge(time) {
427
- timerId = undefined;
428
-
429
- // Only invoke if we have `lastArgs` which means `func` has been
430
- // debounced at least once.
431
- if (trailing && lastArgs) {
432
- return invokeFunc(time);
433
- }
434
- lastArgs = lastThis = undefined;
435
- return result;
436
- }
437
-
438
- function cancel() {
439
- if (timerId !== undefined) {
440
- clearTimeout(timerId);
441
- }
442
- lastInvokeTime = 0;
443
- lastArgs = lastCallTime = lastThis = timerId = undefined;
444
- }
445
-
446
- function flush() {
447
- return timerId === undefined ? result : trailingEdge(now_1());
448
- }
449
-
450
- function debounced() {
451
- var time = now_1(),
452
- isInvoking = shouldInvoke(time);
453
-
454
- lastArgs = arguments;
455
- lastThis = this;
456
- lastCallTime = time;
457
-
458
- if (isInvoking) {
459
- if (timerId === undefined) {
460
- return leadingEdge(lastCallTime);
461
- }
462
- if (maxing) {
463
- // Handle invocations in a tight loop.
464
- clearTimeout(timerId);
465
- timerId = setTimeout(timerExpired, wait);
466
- return invokeFunc(lastCallTime);
467
- }
468
- }
469
- if (timerId === undefined) {
470
- timerId = setTimeout(timerExpired, wait);
471
- }
472
- return result;
473
- }
474
- debounced.cancel = cancel;
475
- debounced.flush = flush;
476
- return debounced;
477
- }
478
-
479
- var debounce_1 = debounce;
480
-
481
- exports._Symbol = _Symbol;
482
- exports._baseGetTag = _baseGetTag;
483
- exports._library = _library;
484
- exports._root = _root;
485
- exports.debounce_1 = debounce_1;
486
- exports.isObject_1 = isObject_1;
487
- exports.isSymbol_1 = isSymbol_1;