@unisphere/genie-types 1.22.0-tools.4 → 1.22.0
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/index.esm.js +297 -330
- package/package.json +1 -1
- package/src/index.d.ts +0 -1
- package/src/lib/avatar-runtime/{agent-visual-types.d.ts → floater-visual-types.d.ts} +2 -2
- package/src/lib/avatar-runtime/index.d.ts +1 -2
- package/src/lib/avatar-runtime/runtime-types.d.ts +2 -0
- package/src/lib/chat-runtime/shared-settings.d.ts +2 -0
- package/src/lib/shared/genie-runtime-name-resolver.d.ts +1 -0
- package/src/lib/shared/genie-widget-name-resolver.d.ts +4 -0
- package/src/lib/shared/index.d.ts +2 -0
- package/src/lib/avatar-runtime/lobby-visual-types.d.ts +0 -48
- package/src/lib/content-gallery-tool-runtime/avatar-visual-types.d.ts +0 -10
- package/src/lib/content-gallery-tool-runtime/genie-answer-visual-types.d.ts +0 -12
- package/src/lib/content-gallery-tool-runtime/index.d.ts +0 -4
- package/src/lib/content-gallery-tool-runtime/runtime-types.d.ts +0 -20
- package/src/lib/content-gallery-tool-runtime/shared-visual-types.d.ts +0 -30
package/index.esm.js
CHANGED
|
@@ -21,7 +21,7 @@ var globalThis_1 =
|
|
|
21
21
|
|
|
22
22
|
var objectGetOwnPropertyDescriptor = {};
|
|
23
23
|
|
|
24
|
-
var fails$
|
|
24
|
+
var fails$a = function (exec) {
|
|
25
25
|
try {
|
|
26
26
|
return !!exec();
|
|
27
27
|
} catch (error) {
|
|
@@ -29,17 +29,17 @@ var fails$9 = function (exec) {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
var fails$
|
|
32
|
+
var fails$9 = fails$a;
|
|
33
33
|
|
|
34
34
|
// Detect IE8's incomplete defineProperty implementation
|
|
35
|
-
var descriptors = !fails$
|
|
35
|
+
var descriptors = !fails$9(function () {
|
|
36
36
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
37
37
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
var fails$
|
|
40
|
+
var fails$8 = fails$a;
|
|
41
41
|
|
|
42
|
-
var functionBindNative = !fails$
|
|
42
|
+
var functionBindNative = !fails$8(function () {
|
|
43
43
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
44
44
|
var test = (function () { /* empty */ }).bind();
|
|
45
45
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -102,14 +102,14 @@ var classofRaw = function (it) {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
var uncurryThis$8 = functionUncurryThis;
|
|
105
|
-
var fails$
|
|
105
|
+
var fails$7 = fails$a;
|
|
106
106
|
var classof = classofRaw;
|
|
107
107
|
|
|
108
108
|
var $Object$2 = Object;
|
|
109
109
|
var split = uncurryThis$8(''.split);
|
|
110
110
|
|
|
111
111
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
112
|
-
var indexedObject = fails$
|
|
112
|
+
var indexedObject = fails$7(function () {
|
|
113
113
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
114
114
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
115
115
|
return !$Object$2('z').propertyIsEnumerable(0);
|
|
@@ -138,7 +138,7 @@ var requireObjectCoercible$2 = function (it) {
|
|
|
138
138
|
var IndexedObject$1 = indexedObject;
|
|
139
139
|
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
140
140
|
|
|
141
|
-
var toIndexedObject$
|
|
141
|
+
var toIndexedObject$4 = function (it) {
|
|
142
142
|
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
143
143
|
};
|
|
144
144
|
|
|
@@ -167,7 +167,7 @@ var aFunction = function (argument) {
|
|
|
167
167
|
return isCallable$8(argument) ? argument : undefined;
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
var getBuiltIn$
|
|
170
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
171
171
|
return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
|
|
172
172
|
};
|
|
173
173
|
|
|
@@ -212,13 +212,13 @@ var environmentV8Version = version;
|
|
|
212
212
|
|
|
213
213
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
214
214
|
var V8_VERSION = environmentV8Version;
|
|
215
|
-
var fails$
|
|
215
|
+
var fails$6 = fails$a;
|
|
216
216
|
var globalThis$8 = globalThis_1;
|
|
217
217
|
|
|
218
218
|
var $String$3 = globalThis$8.String;
|
|
219
219
|
|
|
220
220
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
221
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
221
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$6(function () {
|
|
222
222
|
var symbol = Symbol('symbol detection');
|
|
223
223
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
224
224
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -236,7 +236,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
|
|
|
236
236
|
!Symbol.sham &&
|
|
237
237
|
typeof Symbol.iterator == 'symbol';
|
|
238
238
|
|
|
239
|
-
var getBuiltIn$
|
|
239
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
240
240
|
var isCallable$7 = isCallable$a;
|
|
241
241
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
242
242
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
@@ -246,7 +246,7 @@ var $Object$1 = Object;
|
|
|
246
246
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
247
247
|
return typeof it == 'symbol';
|
|
248
248
|
} : function (it) {
|
|
249
|
-
var $Symbol = getBuiltIn$
|
|
249
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
|
250
250
|
return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
251
251
|
};
|
|
252
252
|
|
|
@@ -302,11 +302,11 @@ var sharedStore = {exports: {}};
|
|
|
302
302
|
var globalThis$7 = globalThis_1;
|
|
303
303
|
|
|
304
304
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
305
|
-
var defineProperty$
|
|
305
|
+
var defineProperty$3 = Object.defineProperty;
|
|
306
306
|
|
|
307
307
|
var defineGlobalProperty$3 = function (key, value) {
|
|
308
308
|
try {
|
|
309
|
-
defineProperty$
|
|
309
|
+
defineProperty$3(globalThis$7, key, { value: value, configurable: true, writable: true });
|
|
310
310
|
} catch (error) {
|
|
311
311
|
globalThis$7[key] = value;
|
|
312
312
|
} return value;
|
|
@@ -377,7 +377,7 @@ var Symbol$1 = globalThis$5.Symbol;
|
|
|
377
377
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
378
378
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
379
379
|
|
|
380
|
-
var wellKnownSymbol$
|
|
380
|
+
var wellKnownSymbol$2 = function (name) {
|
|
381
381
|
if (!hasOwn$6(WellKnownSymbolsStore, name)) {
|
|
382
382
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
|
|
383
383
|
? Symbol$1[name]
|
|
@@ -390,10 +390,10 @@ var isObject$2 = isObject$4;
|
|
|
390
390
|
var isSymbol$1 = isSymbol$2;
|
|
391
391
|
var getMethod = getMethod$1;
|
|
392
392
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
393
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
393
|
+
var wellKnownSymbol$1 = wellKnownSymbol$2;
|
|
394
394
|
|
|
395
395
|
var $TypeError$2 = TypeError;
|
|
396
|
-
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
396
|
+
var TO_PRIMITIVE = wellKnownSymbol$1('toPrimitive');
|
|
397
397
|
|
|
398
398
|
// `ToPrimitive` abstract operation
|
|
399
399
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
@@ -428,27 +428,27 @@ var document$1 = globalThis$4.document;
|
|
|
428
428
|
// typeof document.createElement is 'object' in old IE
|
|
429
429
|
var EXISTS$1 = isObject$1(document$1) && isObject$1(document$1.createElement);
|
|
430
430
|
|
|
431
|
-
var documentCreateElement = function (it) {
|
|
431
|
+
var documentCreateElement$1 = function (it) {
|
|
432
432
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
433
433
|
};
|
|
434
434
|
|
|
435
|
-
var DESCRIPTORS$
|
|
436
|
-
var fails$
|
|
437
|
-
var createElement = documentCreateElement;
|
|
435
|
+
var DESCRIPTORS$8 = descriptors;
|
|
436
|
+
var fails$5 = fails$a;
|
|
437
|
+
var createElement = documentCreateElement$1;
|
|
438
438
|
|
|
439
439
|
// Thanks to IE8 for its funny defineProperty
|
|
440
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
440
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
|
|
441
441
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
442
442
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
443
443
|
get: function () { return 7; }
|
|
444
444
|
}).a !== 7;
|
|
445
445
|
});
|
|
446
446
|
|
|
447
|
-
var DESCRIPTORS$
|
|
447
|
+
var DESCRIPTORS$7 = descriptors;
|
|
448
448
|
var call$1 = functionCall;
|
|
449
449
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
450
450
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
451
|
-
var toIndexedObject$
|
|
451
|
+
var toIndexedObject$3 = toIndexedObject$4;
|
|
452
452
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
453
453
|
var hasOwn$5 = hasOwnProperty_1;
|
|
454
454
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
@@ -458,8 +458,8 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
458
458
|
|
|
459
459
|
// `Object.getOwnPropertyDescriptor` method
|
|
460
460
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
461
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
462
|
-
O = toIndexedObject$
|
|
461
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
462
|
+
O = toIndexedObject$3(O);
|
|
463
463
|
P = toPropertyKey$1(P);
|
|
464
464
|
if (IE8_DOM_DEFINE$1) try {
|
|
465
465
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
@@ -469,12 +469,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 :
|
|
|
469
469
|
|
|
470
470
|
var objectDefineProperty = {};
|
|
471
471
|
|
|
472
|
-
var DESCRIPTORS$
|
|
473
|
-
var fails$
|
|
472
|
+
var DESCRIPTORS$6 = descriptors;
|
|
473
|
+
var fails$4 = fails$a;
|
|
474
474
|
|
|
475
475
|
// V8 ~ Chrome 36-
|
|
476
476
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
477
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
477
|
+
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$4(function () {
|
|
478
478
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
479
479
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
480
480
|
value: 42,
|
|
@@ -488,15 +488,15 @@ var $String$1 = String;
|
|
|
488
488
|
var $TypeError$1 = TypeError;
|
|
489
489
|
|
|
490
490
|
// `Assert: Type(argument) is Object`
|
|
491
|
-
var anObject$
|
|
491
|
+
var anObject$4 = function (argument) {
|
|
492
492
|
if (isObject(argument)) return argument;
|
|
493
493
|
throw new $TypeError$1($String$1(argument) + ' is not an object');
|
|
494
494
|
};
|
|
495
495
|
|
|
496
|
-
var DESCRIPTORS$
|
|
496
|
+
var DESCRIPTORS$5 = descriptors;
|
|
497
497
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
498
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
499
|
-
var anObject$
|
|
498
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
499
|
+
var anObject$3 = anObject$4;
|
|
500
500
|
var toPropertyKey = toPropertyKey$2;
|
|
501
501
|
|
|
502
502
|
var $TypeError = TypeError;
|
|
@@ -510,10 +510,10 @@ var WRITABLE = 'writable';
|
|
|
510
510
|
|
|
511
511
|
// `Object.defineProperty` method
|
|
512
512
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
513
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
514
|
-
anObject$
|
|
513
|
+
objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
514
|
+
anObject$3(O);
|
|
515
515
|
P = toPropertyKey(P);
|
|
516
|
-
anObject$
|
|
516
|
+
anObject$3(Attributes);
|
|
517
517
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
518
518
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
519
519
|
if (current && current[WRITABLE]) {
|
|
@@ -526,9 +526,9 @@ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
526
526
|
}
|
|
527
527
|
} return $defineProperty(O, P, Attributes);
|
|
528
528
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
529
|
-
anObject$
|
|
529
|
+
anObject$3(O);
|
|
530
530
|
P = toPropertyKey(P);
|
|
531
|
-
anObject$
|
|
531
|
+
anObject$3(Attributes);
|
|
532
532
|
if (IE8_DOM_DEFINE) try {
|
|
533
533
|
return $defineProperty(O, P, Attributes);
|
|
534
534
|
} catch (error) { /* empty */ }
|
|
@@ -537,12 +537,12 @@ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
537
537
|
return O;
|
|
538
538
|
};
|
|
539
539
|
|
|
540
|
-
var DESCRIPTORS$
|
|
541
|
-
var definePropertyModule$
|
|
540
|
+
var DESCRIPTORS$4 = descriptors;
|
|
541
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
542
542
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
543
543
|
|
|
544
|
-
var createNonEnumerableProperty$2 = DESCRIPTORS$
|
|
545
|
-
return definePropertyModule$
|
|
544
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
545
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
|
|
546
546
|
} : function (object, key, value) {
|
|
547
547
|
object[key] = value;
|
|
548
548
|
return object;
|
|
@@ -550,15 +550,15 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value
|
|
|
550
550
|
|
|
551
551
|
var makeBuiltIn$2 = {exports: {}};
|
|
552
552
|
|
|
553
|
-
var DESCRIPTORS$
|
|
553
|
+
var DESCRIPTORS$3 = descriptors;
|
|
554
554
|
var hasOwn$4 = hasOwnProperty_1;
|
|
555
555
|
|
|
556
556
|
var FunctionPrototype = Function.prototype;
|
|
557
557
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
558
|
-
var getDescriptor = DESCRIPTORS$
|
|
558
|
+
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
559
559
|
|
|
560
560
|
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
561
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
561
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
562
562
|
|
|
563
563
|
var functionName = {
|
|
564
564
|
CONFIGURABLE: CONFIGURABLE
|
|
@@ -591,19 +591,19 @@ var uid = uid$2;
|
|
|
591
591
|
|
|
592
592
|
var keys = shared$1('keys');
|
|
593
593
|
|
|
594
|
-
var sharedKey$
|
|
594
|
+
var sharedKey$2 = function (key) {
|
|
595
595
|
return keys[key] || (keys[key] = uid(key));
|
|
596
596
|
};
|
|
597
597
|
|
|
598
|
-
var hiddenKeys$
|
|
598
|
+
var hiddenKeys$4 = {};
|
|
599
599
|
|
|
600
600
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
601
601
|
var globalThis$2 = globalThis_1;
|
|
602
602
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
603
603
|
var hasOwn$3 = hasOwnProperty_1;
|
|
604
604
|
var shared = sharedStoreExports;
|
|
605
|
-
var sharedKey = sharedKey$
|
|
606
|
-
var hiddenKeys$
|
|
605
|
+
var sharedKey$1 = sharedKey$2;
|
|
606
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
607
607
|
|
|
608
608
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
609
609
|
var TypeError$1 = globalThis$2.TypeError;
|
|
@@ -634,8 +634,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
634
634
|
return store.has(it);
|
|
635
635
|
};
|
|
636
636
|
} else {
|
|
637
|
-
var STATE = sharedKey('state');
|
|
638
|
-
hiddenKeys$
|
|
637
|
+
var STATE = sharedKey$1('state');
|
|
638
|
+
hiddenKeys$3[STATE] = true;
|
|
639
639
|
set = function (it, metadata) {
|
|
640
640
|
if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
641
641
|
metadata.facade = it;
|
|
@@ -655,10 +655,10 @@ var internalState = {
|
|
|
655
655
|
enforce: enforce};
|
|
656
656
|
|
|
657
657
|
var uncurryThis$3 = functionUncurryThis;
|
|
658
|
-
var fails$
|
|
658
|
+
var fails$3 = fails$a;
|
|
659
659
|
var isCallable$2 = isCallable$a;
|
|
660
660
|
var hasOwn$2 = hasOwnProperty_1;
|
|
661
|
-
var DESCRIPTORS$
|
|
661
|
+
var DESCRIPTORS$2 = descriptors;
|
|
662
662
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
663
663
|
var inspectSource = inspectSource$1;
|
|
664
664
|
var InternalStateModule = internalState;
|
|
@@ -667,13 +667,13 @@ var enforceInternalState = InternalStateModule.enforce;
|
|
|
667
667
|
var getInternalState = InternalStateModule.get;
|
|
668
668
|
var $String = String;
|
|
669
669
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
670
|
-
var defineProperty$
|
|
670
|
+
var defineProperty$2 = Object.defineProperty;
|
|
671
671
|
var stringSlice = uncurryThis$3(''.slice);
|
|
672
672
|
var replace = uncurryThis$3(''.replace);
|
|
673
673
|
var join = uncurryThis$3([].join);
|
|
674
674
|
|
|
675
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
676
|
-
return defineProperty$
|
|
675
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$3(function () {
|
|
676
|
+
return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
677
677
|
});
|
|
678
678
|
|
|
679
679
|
var TEMPLATE = String(String).split('String');
|
|
@@ -685,15 +685,15 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
685
685
|
if (options && options.getter) name = 'get ' + name;
|
|
686
686
|
if (options && options.setter) name = 'set ' + name;
|
|
687
687
|
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
688
|
-
if (DESCRIPTORS$
|
|
688
|
+
if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
|
|
689
689
|
else value.name = name;
|
|
690
690
|
}
|
|
691
691
|
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
692
|
-
defineProperty$
|
|
692
|
+
defineProperty$2(value, 'length', { value: options.arity });
|
|
693
693
|
}
|
|
694
694
|
try {
|
|
695
695
|
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
696
|
-
if (DESCRIPTORS$
|
|
696
|
+
if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
|
|
697
697
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
698
698
|
} else if (value.prototype) value.prototype = undefined;
|
|
699
699
|
} catch (error) { /* empty */ }
|
|
@@ -712,7 +712,7 @@ Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
|
712
712
|
var makeBuiltInExports = makeBuiltIn$2.exports;
|
|
713
713
|
|
|
714
714
|
var isCallable$1 = isCallable$a;
|
|
715
|
-
var definePropertyModule$
|
|
715
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
716
716
|
var makeBuiltIn = makeBuiltInExports;
|
|
717
717
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
718
718
|
|
|
@@ -730,7 +730,7 @@ var defineBuiltIn$1 = function (O, key, value, options) {
|
|
|
730
730
|
else if (O[key]) simple = true;
|
|
731
731
|
} catch (error) { /* empty */ }
|
|
732
732
|
if (simple) O[key] = value;
|
|
733
|
-
else definePropertyModule$
|
|
733
|
+
else definePropertyModule$2.f(O, key, {
|
|
734
734
|
value: value,
|
|
735
735
|
enumerable: false,
|
|
736
736
|
configurable: !options.nonConfigurable,
|
|
@@ -794,14 +794,14 @@ var lengthOfArrayLike$1 = function (obj) {
|
|
|
794
794
|
return toLength(obj.length);
|
|
795
795
|
};
|
|
796
796
|
|
|
797
|
-
var toIndexedObject$
|
|
797
|
+
var toIndexedObject$2 = toIndexedObject$4;
|
|
798
798
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
799
799
|
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
800
800
|
|
|
801
801
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
802
802
|
var createMethod = function (IS_INCLUDES) {
|
|
803
803
|
return function ($this, el, fromIndex) {
|
|
804
|
-
var O = toIndexedObject$
|
|
804
|
+
var O = toIndexedObject$2($this);
|
|
805
805
|
var length = lengthOfArrayLike(O);
|
|
806
806
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
807
807
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
@@ -820,6 +820,9 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
820
820
|
};
|
|
821
821
|
|
|
822
822
|
var arrayIncludes = {
|
|
823
|
+
// `Array.prototype.includes` method
|
|
824
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
825
|
+
includes: createMethod(true),
|
|
823
826
|
// `Array.prototype.indexOf` method
|
|
824
827
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
825
828
|
indexOf: createMethod(false)
|
|
@@ -827,18 +830,18 @@ var arrayIncludes = {
|
|
|
827
830
|
|
|
828
831
|
var uncurryThis$2 = functionUncurryThis;
|
|
829
832
|
var hasOwn$1 = hasOwnProperty_1;
|
|
830
|
-
var toIndexedObject = toIndexedObject$
|
|
833
|
+
var toIndexedObject$1 = toIndexedObject$4;
|
|
831
834
|
var indexOf = arrayIncludes.indexOf;
|
|
832
|
-
var hiddenKeys$
|
|
835
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
833
836
|
|
|
834
837
|
var push = uncurryThis$2([].push);
|
|
835
838
|
|
|
836
839
|
var objectKeysInternal = function (object, names) {
|
|
837
|
-
var O = toIndexedObject(object);
|
|
840
|
+
var O = toIndexedObject$1(object);
|
|
838
841
|
var i = 0;
|
|
839
842
|
var result = [];
|
|
840
843
|
var key;
|
|
841
|
-
for (key in O) !hasOwn$1(hiddenKeys$
|
|
844
|
+
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push(result, key);
|
|
842
845
|
// Don't enum bug & hidden keys
|
|
843
846
|
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
844
847
|
~indexOf(result, key) || push(result, key);
|
|
@@ -847,7 +850,7 @@ var objectKeysInternal = function (object, names) {
|
|
|
847
850
|
};
|
|
848
851
|
|
|
849
852
|
// IE8- don't enum bug keys
|
|
850
|
-
var enumBugKeys$
|
|
853
|
+
var enumBugKeys$3 = [
|
|
851
854
|
'constructor',
|
|
852
855
|
'hasOwnProperty',
|
|
853
856
|
'isPrototypeOf',
|
|
@@ -858,15 +861,15 @@ var enumBugKeys$2 = [
|
|
|
858
861
|
];
|
|
859
862
|
|
|
860
863
|
var internalObjectKeys$1 = objectKeysInternal;
|
|
861
|
-
var enumBugKeys$
|
|
864
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
862
865
|
|
|
863
|
-
var hiddenKeys = enumBugKeys$
|
|
866
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
864
867
|
|
|
865
868
|
// `Object.getOwnPropertyNames` method
|
|
866
869
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
867
870
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
868
871
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
869
|
-
return internalObjectKeys$1(O, hiddenKeys);
|
|
872
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
870
873
|
};
|
|
871
874
|
|
|
872
875
|
var objectGetOwnPropertySymbols = {};
|
|
@@ -874,17 +877,17 @@ var objectGetOwnPropertySymbols = {};
|
|
|
874
877
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
875
878
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
876
879
|
|
|
877
|
-
var getBuiltIn = getBuiltIn$
|
|
880
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
878
881
|
var uncurryThis$1 = functionUncurryThis;
|
|
879
882
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
880
883
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
881
|
-
var anObject = anObject$
|
|
884
|
+
var anObject$2 = anObject$4;
|
|
882
885
|
|
|
883
886
|
var concat$1 = uncurryThis$1([].concat);
|
|
884
887
|
|
|
885
888
|
// all object keys, includes non-enumerable and symbols
|
|
886
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
887
|
-
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
889
|
+
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
890
|
+
var keys = getOwnPropertyNamesModule.f(anObject$2(it));
|
|
888
891
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
889
892
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
890
893
|
};
|
|
@@ -892,11 +895,11 @@ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
892
895
|
var hasOwn = hasOwnProperty_1;
|
|
893
896
|
var ownKeys = ownKeys$1;
|
|
894
897
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
895
|
-
var definePropertyModule = objectDefineProperty;
|
|
898
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
896
899
|
|
|
897
900
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
898
901
|
var keys = ownKeys(source);
|
|
899
|
-
var defineProperty = definePropertyModule.f;
|
|
902
|
+
var defineProperty = definePropertyModule$1.f;
|
|
900
903
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
901
904
|
for (var i = 0; i < keys.length; i++) {
|
|
902
905
|
var key = keys[i];
|
|
@@ -906,7 +909,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
906
909
|
}
|
|
907
910
|
};
|
|
908
911
|
|
|
909
|
-
var fails$
|
|
912
|
+
var fails$2 = fails$a;
|
|
910
913
|
var isCallable = isCallable$a;
|
|
911
914
|
|
|
912
915
|
var replacement = /#|\.prototype\./;
|
|
@@ -915,7 +918,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
915
918
|
var value = data[normalize(feature)];
|
|
916
919
|
return value === POLYFILL ? true
|
|
917
920
|
: value === NATIVE ? false
|
|
918
|
-
: isCallable(detection) ? fails$
|
|
921
|
+
: isCallable(detection) ? fails$2(detection)
|
|
919
922
|
: !!detection;
|
|
920
923
|
};
|
|
921
924
|
|
|
@@ -985,20 +988,20 @@ var _export = function (options, source) {
|
|
|
985
988
|
};
|
|
986
989
|
|
|
987
990
|
var internalObjectKeys = objectKeysInternal;
|
|
988
|
-
var enumBugKeys = enumBugKeys$
|
|
991
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
989
992
|
|
|
990
993
|
// `Object.keys` method
|
|
991
994
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
992
995
|
// eslint-disable-next-line es/no-object-keys -- safe
|
|
993
|
-
var objectKeys$
|
|
994
|
-
return internalObjectKeys(O, enumBugKeys);
|
|
996
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
|
997
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
995
998
|
};
|
|
996
999
|
|
|
997
|
-
var DESCRIPTORS = descriptors;
|
|
1000
|
+
var DESCRIPTORS$1 = descriptors;
|
|
998
1001
|
var uncurryThis = functionUncurryThis;
|
|
999
1002
|
var call = functionCall;
|
|
1000
|
-
var fails = fails$
|
|
1001
|
-
var objectKeys = objectKeys$
|
|
1003
|
+
var fails$1 = fails$a;
|
|
1004
|
+
var objectKeys$1 = objectKeys$2;
|
|
1002
1005
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1003
1006
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1004
1007
|
var toObject = toObject$2;
|
|
@@ -1007,17 +1010,17 @@ var IndexedObject = indexedObject;
|
|
|
1007
1010
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1008
1011
|
var $assign = Object.assign;
|
|
1009
1012
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1010
|
-
var defineProperty = Object.defineProperty;
|
|
1013
|
+
var defineProperty$1 = Object.defineProperty;
|
|
1011
1014
|
var concat = uncurryThis([].concat);
|
|
1012
1015
|
|
|
1013
1016
|
// `Object.assign` method
|
|
1014
1017
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1015
|
-
var objectAssign = !$assign || fails(function () {
|
|
1018
|
+
var objectAssign = !$assign || fails$1(function () {
|
|
1016
1019
|
// should have correct order of operations (Edge bug)
|
|
1017
|
-
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1020
|
+
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
|
|
1018
1021
|
enumerable: true,
|
|
1019
1022
|
get: function () {
|
|
1020
|
-
defineProperty(this, 'b', {
|
|
1023
|
+
defineProperty$1(this, 'b', {
|
|
1021
1024
|
value: 3,
|
|
1022
1025
|
enumerable: false
|
|
1023
1026
|
});
|
|
@@ -1032,7 +1035,7 @@ var objectAssign = !$assign || fails(function () {
|
|
|
1032
1035
|
A[symbol] = 7;
|
|
1033
1036
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1034
1037
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1035
|
-
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1038
|
+
return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
|
|
1036
1039
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1037
1040
|
var T = toObject(target);
|
|
1038
1041
|
var argumentsLength = arguments.length;
|
|
@@ -1041,24 +1044,24 @@ var objectAssign = !$assign || fails(function () {
|
|
|
1041
1044
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1042
1045
|
while (argumentsLength > index) {
|
|
1043
1046
|
var S = IndexedObject(arguments[index++]);
|
|
1044
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1047
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1045
1048
|
var length = keys.length;
|
|
1046
1049
|
var j = 0;
|
|
1047
1050
|
var key;
|
|
1048
1051
|
while (length > j) {
|
|
1049
1052
|
key = keys[j++];
|
|
1050
|
-
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1053
|
+
if (!DESCRIPTORS$1 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1051
1054
|
}
|
|
1052
1055
|
} return T;
|
|
1053
1056
|
} : $assign;
|
|
1054
1057
|
|
|
1055
|
-
var
|
|
1058
|
+
var $$1 = _export;
|
|
1056
1059
|
var assign = objectAssign;
|
|
1057
1060
|
|
|
1058
1061
|
// `Object.assign` method
|
|
1059
1062
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1060
1063
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1061
|
-
|
|
1064
|
+
$$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1062
1065
|
assign: assign
|
|
1063
1066
|
});
|
|
1064
1067
|
|
|
@@ -1819,6 +1822,198 @@ const popupVisualSettingsSchema = {
|
|
|
1819
1822
|
}
|
|
1820
1823
|
};
|
|
1821
1824
|
|
|
1825
|
+
var objectDefineProperties = {};
|
|
1826
|
+
|
|
1827
|
+
var DESCRIPTORS = descriptors;
|
|
1828
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1829
|
+
var definePropertyModule = objectDefineProperty;
|
|
1830
|
+
var anObject$1 = anObject$4;
|
|
1831
|
+
var toIndexedObject = toIndexedObject$4;
|
|
1832
|
+
var objectKeys = objectKeys$2;
|
|
1833
|
+
|
|
1834
|
+
// `Object.defineProperties` method
|
|
1835
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1836
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1837
|
+
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1838
|
+
anObject$1(O);
|
|
1839
|
+
var props = toIndexedObject(Properties);
|
|
1840
|
+
var keys = objectKeys(Properties);
|
|
1841
|
+
var length = keys.length;
|
|
1842
|
+
var index = 0;
|
|
1843
|
+
var key;
|
|
1844
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1845
|
+
return O;
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
var getBuiltIn = getBuiltIn$3;
|
|
1849
|
+
|
|
1850
|
+
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1851
|
+
|
|
1852
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1853
|
+
var anObject = anObject$4;
|
|
1854
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1855
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1856
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1857
|
+
var html = html$1;
|
|
1858
|
+
var documentCreateElement = documentCreateElement$1;
|
|
1859
|
+
var sharedKey = sharedKey$2;
|
|
1860
|
+
|
|
1861
|
+
var GT = '>';
|
|
1862
|
+
var LT = '<';
|
|
1863
|
+
var PROTOTYPE = 'prototype';
|
|
1864
|
+
var SCRIPT = 'script';
|
|
1865
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1866
|
+
|
|
1867
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
1868
|
+
|
|
1869
|
+
var scriptTag = function (content) {
|
|
1870
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1871
|
+
};
|
|
1872
|
+
|
|
1873
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1874
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1875
|
+
activeXDocument.write(scriptTag(''));
|
|
1876
|
+
activeXDocument.close();
|
|
1877
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
1878
|
+
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
1879
|
+
activeXDocument = null;
|
|
1880
|
+
return temp;
|
|
1881
|
+
};
|
|
1882
|
+
|
|
1883
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1884
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1885
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1886
|
+
var iframe = documentCreateElement('iframe');
|
|
1887
|
+
var JS = 'java' + SCRIPT + ':';
|
|
1888
|
+
var iframeDocument;
|
|
1889
|
+
iframe.style.display = 'none';
|
|
1890
|
+
html.appendChild(iframe);
|
|
1891
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1892
|
+
iframe.src = String(JS);
|
|
1893
|
+
iframeDocument = iframe.contentWindow.document;
|
|
1894
|
+
iframeDocument.open();
|
|
1895
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1896
|
+
iframeDocument.close();
|
|
1897
|
+
return iframeDocument.F;
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1900
|
+
// Check for document.domain and active x support
|
|
1901
|
+
// No need to use active x approach when document.domain is not set
|
|
1902
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1903
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1904
|
+
// avoid IE GC bug
|
|
1905
|
+
var activeXDocument;
|
|
1906
|
+
var NullProtoObject = function () {
|
|
1907
|
+
try {
|
|
1908
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1909
|
+
} catch (error) { /* ignore */ }
|
|
1910
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1911
|
+
? document.domain && activeXDocument
|
|
1912
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1913
|
+
: NullProtoObjectViaIFrame()
|
|
1914
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1915
|
+
var length = enumBugKeys.length;
|
|
1916
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1917
|
+
return NullProtoObject();
|
|
1918
|
+
};
|
|
1919
|
+
|
|
1920
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1921
|
+
|
|
1922
|
+
// `Object.create` method
|
|
1923
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1924
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1925
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
1926
|
+
var result;
|
|
1927
|
+
if (O !== null) {
|
|
1928
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1929
|
+
result = new EmptyConstructor();
|
|
1930
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1931
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1932
|
+
result[IE_PROTO] = O;
|
|
1933
|
+
} else result = NullProtoObject();
|
|
1934
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1937
|
+
var wellKnownSymbol = wellKnownSymbol$2;
|
|
1938
|
+
var create = objectCreate;
|
|
1939
|
+
var defineProperty = objectDefineProperty.f;
|
|
1940
|
+
|
|
1941
|
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
1942
|
+
var ArrayPrototype = Array.prototype;
|
|
1943
|
+
|
|
1944
|
+
// Array.prototype[@@unscopables]
|
|
1945
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1946
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1947
|
+
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
|
1948
|
+
configurable: true,
|
|
1949
|
+
value: create(null)
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1954
|
+
var addToUnscopables$1 = function (key) {
|
|
1955
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1956
|
+
};
|
|
1957
|
+
|
|
1958
|
+
var $ = _export;
|
|
1959
|
+
var $includes = arrayIncludes.includes;
|
|
1960
|
+
var fails = fails$a;
|
|
1961
|
+
var addToUnscopables = addToUnscopables$1;
|
|
1962
|
+
|
|
1963
|
+
// FF99+ bug
|
|
1964
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
|
1965
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1966
|
+
return !Array(1).includes();
|
|
1967
|
+
});
|
|
1968
|
+
|
|
1969
|
+
// `Array.prototype.includes` method
|
|
1970
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1971
|
+
$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1972
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1973
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1974
|
+
}
|
|
1975
|
+
});
|
|
1976
|
+
|
|
1977
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1978
|
+
addToUnscopables('includes');
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
This list is closed and SHOULD NOT be updates.
|
|
1982
|
+
it contains the tools that we had prior to moving them to new experience
|
|
1983
|
+
and since we have shared threads and history we should continue supporting
|
|
1984
|
+
them forever.
|
|
1985
|
+
new tools will automatically use their relevant widget names
|
|
1986
|
+
*/
|
|
1987
|
+
const GENIE_RUNTIMES = ['followups-tool', 'sources-tool', 'flashcards-tool', 'content-gallery-tool'];
|
|
1988
|
+
const GEN_UI_RUNTIMES = ['gen-ui-composer-tool', 'gen-ui-components-tool'];
|
|
1989
|
+
/* End of closed list */
|
|
1990
|
+
const getResolvedWidgetName = params => {
|
|
1991
|
+
if (params.widgetName === 'unisphere.widget.genie' && GENIE_RUNTIMES.includes(params.runtimeName)) {
|
|
1992
|
+
return 'unisphere.widget.genie-tools';
|
|
1993
|
+
}
|
|
1994
|
+
if (params.widgetName === 'unisphere.widget.genie' && GEN_UI_RUNTIMES.includes(params.runtimeName)) {
|
|
1995
|
+
return 'unisphere.widget.gen-ui';
|
|
1996
|
+
}
|
|
1997
|
+
return params.widgetName;
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
This list is closed and SHOULD NOT be updates.
|
|
2002
|
+
it contains the tools that we had prior to moving them to new experience
|
|
2003
|
+
and since we have shared threads and history we should continue supporting
|
|
2004
|
+
them forever.
|
|
2005
|
+
new tools will automatically use their relevant runtime names
|
|
2006
|
+
*/
|
|
2007
|
+
const RUNTIMES_MAP = {
|
|
2008
|
+
'gen-ui-components-tool': 'demo-tool',
|
|
2009
|
+
'gen-ui-composer-tool': 'composer-tool'
|
|
2010
|
+
};
|
|
2011
|
+
/* End of closed list */
|
|
2012
|
+
const getResolvedRuntimeName = runtimeName => {
|
|
2013
|
+
var _a;
|
|
2014
|
+
return (_a = RUNTIMES_MAP[runtimeName]) !== null && _a !== void 0 ? _a : runtimeName;
|
|
2015
|
+
};
|
|
2016
|
+
|
|
1822
2017
|
/** Runtime name constant for avatar experiences */
|
|
1823
2018
|
const AvatarRuntimeName = 'avatar';
|
|
1824
2019
|
const avatarRuntimeSettingsSchema = {
|
|
@@ -1895,6 +2090,11 @@ const avatarRuntimeSettingsSchema = {
|
|
|
1895
2090
|
value: 'string'
|
|
1896
2091
|
},
|
|
1897
2092
|
context: chatContextSchema,
|
|
2093
|
+
everywhere: {
|
|
2094
|
+
type: 'primitive',
|
|
2095
|
+
value: 'boolean',
|
|
2096
|
+
optional: true
|
|
2097
|
+
},
|
|
1898
2098
|
capabilities: {
|
|
1899
2099
|
type: 'object',
|
|
1900
2100
|
optional: true,
|
|
@@ -2045,65 +2245,7 @@ const avatarRuntimeContainedVisualSettingsSchema = {
|
|
|
2045
2245
|
}
|
|
2046
2246
|
};
|
|
2047
2247
|
|
|
2048
|
-
const
|
|
2049
|
-
type: 'object',
|
|
2050
|
-
properties: {
|
|
2051
|
-
schemaVersion: {
|
|
2052
|
-
type: 'literal',
|
|
2053
|
-
value: '1',
|
|
2054
|
-
optional: true
|
|
2055
|
-
},
|
|
2056
|
-
variant: {
|
|
2057
|
-
type: 'enum',
|
|
2058
|
-
values: ['agent'],
|
|
2059
|
-
optional: true
|
|
2060
|
-
},
|
|
2061
|
-
threadId: {
|
|
2062
|
-
type: 'primitive',
|
|
2063
|
-
value: 'string',
|
|
2064
|
-
optional: true
|
|
2065
|
-
},
|
|
2066
|
-
messageId: {
|
|
2067
|
-
type: 'primitive',
|
|
2068
|
-
value: 'string',
|
|
2069
|
-
optional: true
|
|
2070
|
-
},
|
|
2071
|
-
agentButtonLabel: {
|
|
2072
|
-
type: 'primitive',
|
|
2073
|
-
value: 'string',
|
|
2074
|
-
optional: true
|
|
2075
|
-
},
|
|
2076
|
-
agentSize: {
|
|
2077
|
-
type: 'primitive',
|
|
2078
|
-
value: 'string',
|
|
2079
|
-
optional: true
|
|
2080
|
-
},
|
|
2081
|
-
styles: {
|
|
2082
|
-
type: 'object',
|
|
2083
|
-
properties: {
|
|
2084
|
-
container: {
|
|
2085
|
-
type: 'object',
|
|
2086
|
-
properties: {},
|
|
2087
|
-
allowUnknownProperties: true,
|
|
2088
|
-
optional: true
|
|
2089
|
-
},
|
|
2090
|
-
wrapper: {
|
|
2091
|
-
type: 'object',
|
|
2092
|
-
properties: {},
|
|
2093
|
-
allowUnknownProperties: true,
|
|
2094
|
-
optional: true
|
|
2095
|
-
}
|
|
2096
|
-
},
|
|
2097
|
-
optional: true
|
|
2098
|
-
},
|
|
2099
|
-
onOpen: {
|
|
2100
|
-
type: 'function',
|
|
2101
|
-
optional: true
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
};
|
|
2105
|
-
|
|
2106
|
-
const avatarRuntimeAgentVisualSettingsSchema = {
|
|
2248
|
+
const avatarRuntimeFloaterVisualSettingsSchema = {
|
|
2107
2249
|
type: 'object',
|
|
2108
2250
|
properties: {
|
|
2109
2251
|
schemaVersion: {
|
|
@@ -2224,150 +2366,6 @@ const applicationRuntimeSettingsSchema = {
|
|
|
2224
2366
|
/** Runtime name constant for application-level experiences */
|
|
2225
2367
|
const ApplicationRuntimeName = 'application';
|
|
2226
2368
|
|
|
2227
|
-
const ContentGalleryToolRuntimeName = 'content-gallery-tool';
|
|
2228
|
-
const contentGalleryToolRuntimeSettingsSchema = {
|
|
2229
|
-
type: 'object',
|
|
2230
|
-
properties: {
|
|
2231
|
-
schemaVersion: {
|
|
2232
|
-
type: 'literal',
|
|
2233
|
-
value: '1',
|
|
2234
|
-
optional: true
|
|
2235
|
-
},
|
|
2236
|
-
kalturaServerURI: {
|
|
2237
|
-
type: 'primitive',
|
|
2238
|
-
value: 'string'
|
|
2239
|
-
},
|
|
2240
|
-
partnerId: {
|
|
2241
|
-
type: 'primitive',
|
|
2242
|
-
value: 'string'
|
|
2243
|
-
},
|
|
2244
|
-
uiConfId: {
|
|
2245
|
-
type: 'primitive',
|
|
2246
|
-
value: 'string'
|
|
2247
|
-
},
|
|
2248
|
-
ks: {
|
|
2249
|
-
type: 'primitive',
|
|
2250
|
-
value: 'string'
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
|
-
const clipSchema = {
|
|
2256
|
-
type: 'object',
|
|
2257
|
-
properties: {
|
|
2258
|
-
start_index: {
|
|
2259
|
-
type: 'primitive',
|
|
2260
|
-
value: 'number'
|
|
2261
|
-
},
|
|
2262
|
-
last_index: {
|
|
2263
|
-
type: 'primitive',
|
|
2264
|
-
value: 'number'
|
|
2265
|
-
},
|
|
2266
|
-
entry_id: {
|
|
2267
|
-
type: 'primitive',
|
|
2268
|
-
value: 'string',
|
|
2269
|
-
optional: true
|
|
2270
|
-
},
|
|
2271
|
-
start_time: {
|
|
2272
|
-
type: 'primitive',
|
|
2273
|
-
value: 'number'
|
|
2274
|
-
},
|
|
2275
|
-
end_time: {
|
|
2276
|
-
type: 'primitive',
|
|
2277
|
-
value: 'number'
|
|
2278
|
-
},
|
|
2279
|
-
type: {
|
|
2280
|
-
type: 'primitive',
|
|
2281
|
-
value: 'string',
|
|
2282
|
-
optional: true
|
|
2283
|
-
},
|
|
2284
|
-
thumbnail: {
|
|
2285
|
-
type: 'primitive',
|
|
2286
|
-
value: 'string',
|
|
2287
|
-
optional: true
|
|
2288
|
-
},
|
|
2289
|
-
video_link: {
|
|
2290
|
-
type: 'primitive',
|
|
2291
|
-
value: 'string',
|
|
2292
|
-
optional: true
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
};
|
|
2296
|
-
const videoSlideSchema = {
|
|
2297
|
-
type: 'object',
|
|
2298
|
-
properties: {
|
|
2299
|
-
slide_type: {
|
|
2300
|
-
type: 'literal',
|
|
2301
|
-
value: 'video'
|
|
2302
|
-
},
|
|
2303
|
-
text: {
|
|
2304
|
-
type: 'primitive',
|
|
2305
|
-
value: 'string',
|
|
2306
|
-
optional: true
|
|
2307
|
-
},
|
|
2308
|
-
citation: {
|
|
2309
|
-
type: 'object',
|
|
2310
|
-
properties: {
|
|
2311
|
-
clips: {
|
|
2312
|
-
type: 'array',
|
|
2313
|
-
items: clipSchema
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
}
|
|
2317
|
-
}
|
|
2318
|
-
};
|
|
2319
|
-
const textSlideSchema = {
|
|
2320
|
-
type: 'object',
|
|
2321
|
-
properties: {
|
|
2322
|
-
slide_type: {
|
|
2323
|
-
type: 'literal',
|
|
2324
|
-
value: 'text'
|
|
2325
|
-
},
|
|
2326
|
-
text: {
|
|
2327
|
-
type: 'primitive',
|
|
2328
|
-
value: 'string'
|
|
2329
|
-
},
|
|
2330
|
-
citation: {
|
|
2331
|
-
type: 'any',
|
|
2332
|
-
optional: true
|
|
2333
|
-
}
|
|
2334
|
-
}
|
|
2335
|
-
};
|
|
2336
|
-
const slideSchema = {
|
|
2337
|
-
type: 'or',
|
|
2338
|
-
properties: [videoSlideSchema, textSlideSchema]
|
|
2339
|
-
};
|
|
2340
|
-
|
|
2341
|
-
const contentGalleryToolRuntimeAvatarVisualSettingsSchema = {
|
|
2342
|
-
type: 'object',
|
|
2343
|
-
properties: {
|
|
2344
|
-
schemaVersion: {
|
|
2345
|
-
type: 'literal',
|
|
2346
|
-
value: '1',
|
|
2347
|
-
optional: true
|
|
2348
|
-
},
|
|
2349
|
-
slides: {
|
|
2350
|
-
type: 'array',
|
|
2351
|
-
items: slideSchema
|
|
2352
|
-
},
|
|
2353
|
-
autoplay: {
|
|
2354
|
-
type: 'primitive',
|
|
2355
|
-
value: 'boolean',
|
|
2356
|
-
optional: true
|
|
2357
|
-
},
|
|
2358
|
-
slideDuration: {
|
|
2359
|
-
type: 'primitive',
|
|
2360
|
-
value: 'number',
|
|
2361
|
-
optional: true
|
|
2362
|
-
},
|
|
2363
|
-
loop: {
|
|
2364
|
-
type: 'primitive',
|
|
2365
|
-
value: 'boolean',
|
|
2366
|
-
optional: true
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2369
|
-
};
|
|
2370
|
-
|
|
2371
2369
|
const blockVisualContextSchema = {
|
|
2372
2370
|
type: 'object',
|
|
2373
2371
|
optional: true,
|
|
@@ -2396,35 +2394,4 @@ const blockVisualContextSchema = {
|
|
|
2396
2394
|
}
|
|
2397
2395
|
};
|
|
2398
2396
|
|
|
2399
|
-
|
|
2400
|
-
type: 'object',
|
|
2401
|
-
properties: {
|
|
2402
|
-
schemaVersion: {
|
|
2403
|
-
type: 'literal',
|
|
2404
|
-
value: '1',
|
|
2405
|
-
optional: true
|
|
2406
|
-
},
|
|
2407
|
-
slides: {
|
|
2408
|
-
type: 'array',
|
|
2409
|
-
items: slideSchema
|
|
2410
|
-
},
|
|
2411
|
-
autoplay: {
|
|
2412
|
-
type: 'primitive',
|
|
2413
|
-
value: 'boolean',
|
|
2414
|
-
optional: true
|
|
2415
|
-
},
|
|
2416
|
-
slideDuration: {
|
|
2417
|
-
type: 'primitive',
|
|
2418
|
-
value: 'number',
|
|
2419
|
-
optional: true
|
|
2420
|
-
},
|
|
2421
|
-
loop: {
|
|
2422
|
-
type: 'primitive',
|
|
2423
|
-
value: 'boolean',
|
|
2424
|
-
optional: true
|
|
2425
|
-
},
|
|
2426
|
-
blockContext: blockVisualContextSchema
|
|
2427
|
-
}
|
|
2428
|
-
};
|
|
2429
|
-
|
|
2430
|
-
export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ContentGalleryToolRuntimeName, DeviceType, DisconnectReasons, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeAgentVisualSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeLobbyVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, containedVisualSettingsSchema, contentGalleryToolRuntimeAvatarVisualSettingsSchema, contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema, contentGalleryToolRuntimeSettingsSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, slideSchema, widgetName };
|
|
2397
|
+
export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, DeviceType, DisconnectReasons, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, containedVisualSettingsSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, widgetName };
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -6,6 +6,5 @@ export * from './lib/avatar-runtime';
|
|
|
6
6
|
export * from './lib/admin-runtime';
|
|
7
7
|
export * from './lib/admin-demo-runtime';
|
|
8
8
|
export * from './lib/application-runtime';
|
|
9
|
-
export * from './lib/content-gallery-tool-runtime';
|
|
10
9
|
export * from './lib/chat-customizations-types';
|
|
11
10
|
export * from './lib/general-visual-types';
|
|
@@ -9,10 +9,10 @@ import { ValidatorSchema } from '@unisphere/core';
|
|
|
9
9
|
* };
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
export interface
|
|
12
|
+
export interface AvatarRuntimeFloaterVisualSettings {
|
|
13
13
|
/** Settings schema version */
|
|
14
14
|
schemaVersion?: string;
|
|
15
15
|
/** Side of screen where agent panel appears */
|
|
16
16
|
panelSide?: 'left' | 'right';
|
|
17
17
|
}
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const avatarRuntimeFloaterVisualSettingsSchema: ValidatorSchema;
|
|
@@ -3,5 +3,4 @@ export * from './chat-visual-types';
|
|
|
3
3
|
export * from './chat-types';
|
|
4
4
|
export * from './avatar-service-types';
|
|
5
5
|
export * from './contained-visual-types';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './agent-visual-types';
|
|
6
|
+
export * from './floater-visual-types';
|
|
@@ -99,6 +99,8 @@ export interface AvatarRuntimeSettings {
|
|
|
99
99
|
ks: string;
|
|
100
100
|
/** Context for the avatar session */
|
|
101
101
|
context?: ChatContext;
|
|
102
|
+
/** Whether the avatar is running in everywhere mode */
|
|
103
|
+
everywhere?: boolean;
|
|
102
104
|
/** Genie capability overrides — defaults applied per API if absent */
|
|
103
105
|
capabilities?: GenieCapabilities;
|
|
104
106
|
/** Kaltura server URI */
|
|
@@ -127,6 +127,8 @@ export interface GlobalChatSettings {
|
|
|
127
127
|
ks: string;
|
|
128
128
|
/** Context for the chat session */
|
|
129
129
|
context?: ChatContext;
|
|
130
|
+
/** Whether running in everywhere mode */
|
|
131
|
+
everywhere?: boolean;
|
|
130
132
|
/** Genie capability overrides — defaults applied per API if absent */
|
|
131
133
|
capabilities?: GenieCapabilities;
|
|
132
134
|
/** Callback function to generate source URLs for an entry or category */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getResolvedRuntimeName: (runtimeName: string) => string;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
/**
|
|
3
|
-
* Visual settings for avatar lobby/waiting room display.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* Default lobby:
|
|
7
|
-
* ```typescript
|
|
8
|
-
* const settings: AvatarRuntimeLobbyVisualSettings = {
|
|
9
|
-
* variant: 'default'
|
|
10
|
-
* };
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* Agent variant with customization:
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const settings: AvatarRuntimeLobbyVisualSettings = {
|
|
17
|
-
* variant: 'agent',
|
|
18
|
-
* agentButtonLabel: 'Start Conversation',
|
|
19
|
-
* agentSize: '20rem',
|
|
20
|
-
* isTranslucent: true,
|
|
21
|
-
* threadId: 'thread-123'
|
|
22
|
-
* };
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export interface AvatarRuntimeLobbyVisualSettings {
|
|
26
|
-
/** Settings schema version */
|
|
27
|
-
schemaVersion?: string;
|
|
28
|
-
/** Display variant: 'agent' for agent-specific UI */
|
|
29
|
-
variant?: 'agent';
|
|
30
|
-
/** Thread identifier for resuming conversations */
|
|
31
|
-
threadId?: string;
|
|
32
|
-
/** Message identifier for context */
|
|
33
|
-
messageId?: string;
|
|
34
|
-
/** Agent variant only: label for the start button */
|
|
35
|
-
agentButtonLabel?: string;
|
|
36
|
-
/** Agent variant only: size (width and height) of the card, e.g. '15rem' */
|
|
37
|
-
agentSize?: string;
|
|
38
|
-
/** Inline styles applied to lobby elements */
|
|
39
|
-
styles?: {
|
|
40
|
-
/** Styles applied to the inner container (thumbnail/card) */
|
|
41
|
-
container?: Record<string, string | number>;
|
|
42
|
-
/** Styles applied to the outer wrapper (mini variant only) */
|
|
43
|
-
wrapper?: Record<string, string | number>;
|
|
44
|
-
};
|
|
45
|
-
/** When provided, overrides the default avatar launch behavior on click */
|
|
46
|
-
onOpen?: () => void;
|
|
47
|
-
}
|
|
48
|
-
export declare const avatarRuntimeLobbyVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { Slide } from './shared-visual-types';
|
|
3
|
-
export interface ContentGalleryToolRuntimeAvatarVisualSettings {
|
|
4
|
-
schemaVersion?: string;
|
|
5
|
-
slides: Slide[];
|
|
6
|
-
autoplay?: boolean;
|
|
7
|
-
slideDuration?: number;
|
|
8
|
-
loop?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const contentGalleryToolRuntimeAvatarVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { BlockVisualContext } from '../general-visual-types';
|
|
3
|
-
import { Slide } from './shared-visual-types';
|
|
4
|
-
export interface ContentGalleryToolRuntimeGenieAnswerVisualSettings {
|
|
5
|
-
schemaVersion?: string;
|
|
6
|
-
slides: Slide[];
|
|
7
|
-
autoplay?: boolean;
|
|
8
|
-
slideDuration?: number;
|
|
9
|
-
loop?: boolean;
|
|
10
|
-
blockContext?: BlockVisualContext;
|
|
11
|
-
}
|
|
12
|
-
export declare const contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
|
|
3
|
-
import { widgetName } from '../widget-types';
|
|
4
|
-
export declare const ContentGalleryToolRuntimeName: "content-gallery-tool";
|
|
5
|
-
export type ContentGalleryToolRuntime = UnisphereRuntimeBaseType<ContentGalleryToolRuntimeSettings> & {
|
|
6
|
-
readonly widgetName: typeof widgetName;
|
|
7
|
-
readonly runtimeName: typeof ContentGalleryToolRuntimeName;
|
|
8
|
-
};
|
|
9
|
-
export interface ContentGalleryToolRuntimeSettings {
|
|
10
|
-
schemaVersion?: string;
|
|
11
|
-
/** Kaltura server URI */
|
|
12
|
-
kalturaServerURI: string;
|
|
13
|
-
/** Kaltura partner ID */
|
|
14
|
-
partnerId: string;
|
|
15
|
-
/** UI configuration ID */
|
|
16
|
-
uiConfId: string;
|
|
17
|
-
/** Kaltura session token for authentication */
|
|
18
|
-
ks: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const contentGalleryToolRuntimeSettingsSchema: ValidatorSchema;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
export interface VideoClip {
|
|
3
|
-
start_index: number;
|
|
4
|
-
last_index: number;
|
|
5
|
-
entry_id?: string;
|
|
6
|
-
start_time: number;
|
|
7
|
-
end_time: number;
|
|
8
|
-
type?: string;
|
|
9
|
-
thumbnail?: string;
|
|
10
|
-
video_link?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface VideoSlide {
|
|
13
|
-
slide_type: 'video';
|
|
14
|
-
citation: {
|
|
15
|
-
clips: VideoClip[];
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export interface TextSlide {
|
|
19
|
-
slide_type: 'text';
|
|
20
|
-
text: string;
|
|
21
|
-
}
|
|
22
|
-
export type Slide = VideoSlide | TextSlide;
|
|
23
|
-
export type ContentGalleryToolVisualsBaseSettings = {
|
|
24
|
-
schemaVersion?: string;
|
|
25
|
-
slides: Slide[];
|
|
26
|
-
autoplay?: boolean;
|
|
27
|
-
slideDuration?: number;
|
|
28
|
-
loop?: boolean;
|
|
29
|
-
};
|
|
30
|
-
export declare const slideSchema: ValidatorSchema;
|