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