@webex/plugin-meetings 3.11.0-next.21 → 3.11.0-next.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/hashTree/types.js +3 -2
- package/dist/hashTree/types.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +22 -1
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/types/hashTree/types.d.ts +2 -0
- package/dist/types/locus-info/types.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +1 -1
- package/src/hashTree/types.ts +3 -0
- package/src/locus-info/index.ts +26 -0
- package/src/locus-info/types.ts +1 -0
- package/test/unit/spec/locus-info/index.js +85 -28
package/dist/breakouts/index.js
CHANGED
|
@@ -1109,7 +1109,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
|
1109
1109
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
|
1110
1110
|
}
|
|
1111
1111
|
},
|
|
1112
|
-
version: "3.11.0-next.
|
|
1112
|
+
version: "3.11.0-next.22"
|
|
1113
1113
|
});
|
|
1114
1114
|
var _default = exports.default = Breakouts;
|
|
1115
1115
|
//# sourceMappingURL=index.js.map
|
package/dist/hashTree/types.js
CHANGED
|
@@ -17,8 +17,9 @@ var ObjectType = exports.ObjectType = {
|
|
|
17
17
|
fullState: 'fullstate',
|
|
18
18
|
links: 'links',
|
|
19
19
|
control: 'controlentry',
|
|
20
|
-
metadata: 'metadata'
|
|
20
|
+
metadata: 'metadata',
|
|
21
|
+
embeddedApp: 'embeddedapp'
|
|
21
22
|
};
|
|
22
23
|
// mapping from ObjectType to top level LocusDTO keys
|
|
23
|
-
var ObjectTypeToLocusKeyMap = exports.ObjectTypeToLocusKeyMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ObjectType.links, 'links'), ObjectType.info, 'info'), ObjectType.fullState, 'fullState'), ObjectType.self, 'self'), ObjectType.participant, 'participants'), ObjectType.mediaShare, 'mediaShares'), ObjectType.control, 'controls');
|
|
24
|
+
var ObjectTypeToLocusKeyMap = exports.ObjectTypeToLocusKeyMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ObjectType.links, 'links'), ObjectType.info, 'info'), ObjectType.fullState, 'fullState'), ObjectType.self, 'self'), ObjectType.participant, 'participants'), ObjectType.mediaShare, 'mediaShares'), ObjectType.control, 'controls'), ObjectType.embeddedApp, 'embeddedApps');
|
|
24
25
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ObjectType","exports","participant","self","locus","mediaShare","info","fullState","links","control","metadata","ObjectTypeToLocusKeyMap","_defineProperty2","default"],"sources":["types.ts"],"sourcesContent":["import {Enum} from '../constants';\n\n// todo: Locus docs have now more types like EMBEDDED_APP - need to add support for them once Locus implements them\nexport const ObjectType = {\n participant: 'participant',\n self: 'self',\n locus: 'locus',\n mediaShare: 'mediashare',\n info: 'info',\n fullState: 'fullstate',\n links: 'links',\n control: 'controlentry',\n metadata: 'metadata',\n} as const;\n\nexport type ObjectType = Enum<typeof ObjectType>;\n\n// mapping from ObjectType to top level LocusDTO keys\nexport const ObjectTypeToLocusKeyMap = {\n [ObjectType.links]: 'links',\n [ObjectType.info]: 'info',\n [ObjectType.fullState]: 'fullState',\n [ObjectType.self]: 'self',\n [ObjectType.participant]: 'participants', // note: each object is a single participant in participants array\n [ObjectType.mediaShare]: 'mediaShares', // note: each object is a single mediaShare in mediaShares array\n [ObjectType.control]: 'controls', // note: each object is a single control entry in controls object\n};\nexport interface HtMeta {\n elementId: {\n type: ObjectType;\n id: number;\n version: number;\n };\n dataSetNames: string[];\n}\n\nexport interface HashTreeObject {\n htMeta: HtMeta;\n data: Record<string, any>;\n}\n"],"mappings":";;;;;;;;;AAEA;AACO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,WAAW,EAAE,aAAa;EAC1BC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE,YAAY;EACxBC,IAAI,EAAE,MAAM;EACZC,SAAS,EAAE,WAAW;EACtBC,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,cAAc;EACvBC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"names":["ObjectType","exports","participant","self","locus","mediaShare","info","fullState","links","control","metadata","embeddedApp","ObjectTypeToLocusKeyMap","_defineProperty2","default"],"sources":["types.ts"],"sourcesContent":["import {Enum} from '../constants';\n\n// todo: Locus docs have now more types like EMBEDDED_APP - need to add support for them once Locus implements them\nexport const ObjectType = {\n participant: 'participant',\n self: 'self',\n locus: 'locus',\n mediaShare: 'mediashare',\n info: 'info',\n fullState: 'fullstate',\n links: 'links',\n control: 'controlentry',\n metadata: 'metadata',\n embeddedApp: 'embeddedapp',\n} as const;\n\nexport type ObjectType = Enum<typeof ObjectType>;\n\n// mapping from ObjectType to top level LocusDTO keys\nexport const ObjectTypeToLocusKeyMap = {\n [ObjectType.links]: 'links',\n [ObjectType.info]: 'info',\n [ObjectType.fullState]: 'fullState',\n [ObjectType.self]: 'self',\n [ObjectType.participant]: 'participants', // note: each object is a single participant in participants array\n [ObjectType.mediaShare]: 'mediaShares', // note: each object is a single mediaShare in mediaShares array\n [ObjectType.control]: 'controls', // note: each object is a single control entry in controls object\n [ObjectType.embeddedApp]: 'embeddedApps', // note: each object is a single embedded app in embeddedApps array\n};\n\nexport interface HtMeta {\n elementId: {\n type: ObjectType;\n id: number;\n version: number;\n };\n dataSetNames: string[];\n}\n\nexport interface HashTreeObject {\n htMeta: HtMeta;\n data: Record<string, any>;\n}\n"],"mappings":";;;;;;;;;AAEA;AACO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,WAAW,EAAE,aAAa;EAC1BC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE,YAAY;EACxBC,IAAI,EAAE,MAAM;EACZC,SAAS,EAAE,WAAW;EACtBC,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,cAAc;EACvBC,QAAQ,EAAE,UAAU;EACpBC,WAAW,EAAE;AACf,CAAU;AAIV;AACO,IAAMC,uBAAuB,GAAAX,OAAA,CAAAW,uBAAA,OAAAC,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MACjCd,UAAU,CAACQ,KAAK,EAAG,OAAO,GAC1BR,UAAU,CAACM,IAAI,EAAG,MAAM,GACxBN,UAAU,CAACO,SAAS,EAAG,WAAW,GAClCP,UAAU,CAACG,IAAI,EAAG,MAAM,GACxBH,UAAU,CAACE,WAAW,EAAG,cAAc,GACvCF,UAAU,CAACK,UAAU,EAAG,aAAa,GACrCL,UAAU,CAACS,OAAO,EAAG,UAAU,GAC/BT,UAAU,CAACW,WAAW,EAAG,cAAc,CACzC","ignoreList":[]}
|
|
@@ -372,7 +372,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
|
|
|
372
372
|
throw error;
|
|
373
373
|
});
|
|
374
374
|
},
|
|
375
|
-
version: "3.11.0-next.
|
|
375
|
+
version: "3.11.0-next.22"
|
|
376
376
|
});
|
|
377
377
|
var _default = exports.default = SimultaneousInterpretation;
|
|
378
378
|
//# sourceMappingURL=index.js.map
|
|
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
|
|
|
18
18
|
languageCode: 'number',
|
|
19
19
|
languageName: 'string'
|
|
20
20
|
},
|
|
21
|
-
version: "3.11.0-next.
|
|
21
|
+
version: "3.11.0-next.22"
|
|
22
22
|
});
|
|
23
23
|
var _default = exports.default = SILanguage;
|
|
24
24
|
//# sourceMappingURL=siLanguage.js.map
|
package/dist/locus-info/index.js
CHANGED
|
@@ -59,7 +59,7 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
59
59
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
60
60
|
// list of top level keys in Locus DTO relevant for Hash Tree DTOs processing
|
|
61
61
|
// it does not contain fields specific to classic Locus DTOs like sequence or baseSequence
|
|
62
|
-
var LocusDtoTopLevelKeys = ['controls', 'fullState', 'host', 'info', 'links', 'mediaShares', 'meetings', 'participants', 'replaces', 'self', 'sequence', 'syncUrl', 'url', 'htMeta' // only exists when hash trees are used
|
|
62
|
+
var LocusDtoTopLevelKeys = ['controls', 'fullState', 'embeddedApps', 'host', 'info', 'links', 'mediaShares', 'meetings', 'participants', 'replaces', 'self', 'sequence', 'syncUrl', 'url', 'htMeta' // only exists when hash trees are used
|
|
63
63
|
];
|
|
64
64
|
var LocusObjectStateAfterUpdates = {
|
|
65
65
|
unchanged: 'unchanged',
|
|
@@ -540,6 +540,27 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
542
|
break;
|
|
543
|
+
case _types.ObjectType.embeddedApp:
|
|
544
|
+
if (object.data) {
|
|
545
|
+
var _locus$embeddedApps;
|
|
546
|
+
_loggerProxy.default.logger.info("Locus-info:index#updateLocusFromHashTreeObject --> embeddedApp id=".concat(object.htMeta.elementId.id, " url='").concat(object.data.url, "' updated version=").concat(object.htMeta.elementId.version, ":"), object.data);
|
|
547
|
+
var existingEmbeddedApp = (_locus$embeddedApps = locus.embeddedApps) === null || _locus$embeddedApps === void 0 ? void 0 : _locus$embeddedApps.find(function (ms) {
|
|
548
|
+
return ms.htMeta.elementId.id === object.htMeta.elementId.id;
|
|
549
|
+
});
|
|
550
|
+
if (existingEmbeddedApp) {
|
|
551
|
+
(0, _assign.default)(existingEmbeddedApp, object.data);
|
|
552
|
+
} else {
|
|
553
|
+
locus.embeddedApps = locus.embeddedApps || [];
|
|
554
|
+
locus.embeddedApps.push(object.data);
|
|
555
|
+
}
|
|
556
|
+
} else {
|
|
557
|
+
var _locus$embeddedApps2;
|
|
558
|
+
_loggerProxy.default.logger.info("Locus-info:index#updateLocusFromHashTreeObject --> embeddedApp id=".concat(object.htMeta.elementId.id, " removed, version=").concat(object.htMeta.elementId.version));
|
|
559
|
+
locus.embeddedApps = (_locus$embeddedApps2 = locus.embeddedApps) === null || _locus$embeddedApps2 === void 0 ? void 0 : _locus$embeddedApps2.filter(function (ms) {
|
|
560
|
+
return ms.htMeta.elementId.id !== object.htMeta.elementId.id;
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
break;
|
|
543
564
|
case _types.ObjectType.participant:
|
|
544
565
|
_loggerProxy.default.logger.info("Locus-info:index#updateLocusFromHashTreeObject --> participant id=".concat(object.htMeta.elementId.id, " ").concat(object.data ? 'updated' : 'removed', " version=").concat(object.htMeta.elementId.version));
|
|
545
566
|
if (object.data) {
|