webex 3.0.0-beta.15 → 3.0.0-beta.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/_setup.js +2 -7
- package/dist/_setup.js.map +1 -1
- package/dist/config-storage.js +0 -4
- package/dist/config-storage.js.map +1 -1
- package/dist/config-storage.shim.js +0 -6
- package/dist/config-storage.shim.js.map +1 -1
- package/dist/config.js +0 -5
- package/dist/config.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/webex.js +9 -26
- package/dist/webex.js.map +1 -1
- package/package.json +26 -25
- package/src/webex.js +1 -0
- package/umd/webex.min.js +2 -2
- package/umd/webex.min.js.map +1 -1
package/README.md
CHANGED
|
@@ -65,15 +65,13 @@ webex.rooms.create({ title: `My First Room` }).then(room => {
|
|
|
65
65
|
|
|
66
66
|
#### _A note on browser usage_
|
|
67
67
|
|
|
68
|
-
We provide a built, minified version of the SDK, that includes `window.Webex`. You can access it via [unpkg](https://unpkg.com/)
|
|
68
|
+
We provide a built, minified version of the SDK, that includes `window.Webex`. You can access it via [unpkg](https://unpkg.com/) or [jsdelivr](https://jsdelivr.com/).
|
|
69
69
|
|
|
70
70
|
```html
|
|
71
71
|
<!-- unpkg -->
|
|
72
72
|
<script src="https://unpkg.com/webex/umd/webex.min.js"></script>
|
|
73
73
|
<!-- jsdelivr -->
|
|
74
74
|
<script src="https://cdn.jsdelivr.net/npm/webex/umd/webex.min.js"></script>
|
|
75
|
-
<!-- gitcdn -->
|
|
76
|
-
<script src="https://gitcdn.xyz/repo/webex/webex-js-sdk/master/packages/node_modules/webex/umd/webex.min.js"></script>
|
|
77
75
|
```
|
|
78
76
|
|
|
79
77
|
If you're already using a bundler (like [Webpack](https://webpack.js.org/)) you can simply import/require the package and use the above snippet and assign the initialized `webex` variable to `window.webex`.
|
package/dist/_setup.js
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
6
|
-
|
|
7
5
|
/*!
|
|
8
6
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
9
7
|
*/
|
|
10
|
-
// Disable eslint because this file needs to be es5 compatible
|
|
11
8
|
|
|
9
|
+
// Disable eslint because this file needs to be es5 compatible
|
|
12
10
|
/* eslint-disable */
|
|
13
|
-
var testUsers = require('@webex/test-helper-test-users');
|
|
14
11
|
|
|
12
|
+
var testUsers = require('@webex/test-helper-test-users');
|
|
15
13
|
var Webex = require("webex");
|
|
16
|
-
|
|
17
14
|
before(function () {
|
|
18
15
|
this.timeout(60000);
|
|
19
|
-
|
|
20
16
|
if (global.webex) {
|
|
21
17
|
return _promise.default.resolve();
|
|
22
18
|
}
|
|
23
|
-
|
|
24
19
|
return testUsers.create({
|
|
25
20
|
count: 1
|
|
26
21
|
}).then(function (users) {
|
package/dist/_setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["testUsers","require","Webex","before","timeout","global","webex","resolve","create","count","then","users","credentials","token"],"sources":["_setup.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n// Disable eslint because this file needs to be es5 compatible\n/* eslint-disable */\n\nvar testUsers = require('@webex/test-helper-test-users');\nvar Webex = require(`webex`);\n\nbefore(function () {\n this.timeout(60000);\n\n if (global.webex) {\n return Promise.resolve();\n }\n\n return testUsers.create({count: 1}).then(function (users) {\n /* eslint camelcase: [0] */\n global.webex = new Webex({credentials: users[0].token});\n });\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["testUsers","require","Webex","before","timeout","global","webex","resolve","create","count","then","users","credentials","token"],"sources":["_setup.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n// Disable eslint because this file needs to be es5 compatible\n/* eslint-disable */\n\nvar testUsers = require('@webex/test-helper-test-users');\nvar Webex = require(`webex`);\n\nbefore(function () {\n this.timeout(60000);\n\n if (global.webex) {\n return Promise.resolve();\n }\n\n return testUsers.create({count: 1}).then(function (users) {\n /* eslint camelcase: [0] */\n global.webex = new Webex({credentials: users[0].token});\n });\n});\n"],"mappings":";;;;AAAA;AACA;AACA;;AAEA;AACA;;AAEA,IAAIA,SAAS,GAAGC,OAAO,CAAC,+BAA+B,CAAC;AACxD,IAAIC,KAAK,GAAGD,OAAO,SAAS;AAE5BE,MAAM,CAAC,YAAY;EACjB,IAAI,CAACC,OAAO,CAAC,KAAK,CAAC;EAEnB,IAAIC,MAAM,CAACC,KAAK,EAAE;IAChB,OAAO,iBAAQC,OAAO,EAAE;EAC1B;EAEA,OAAOP,SAAS,CAACQ,MAAM,CAAC;IAACC,KAAK,EAAE;EAAC,CAAC,CAAC,CAACC,IAAI,CAAC,UAAUC,KAAK,EAAE;IACxD;IACAN,MAAM,CAACC,KAAK,GAAG,IAAIJ,KAAK,CAAC;MAACU,WAAW,EAAED,KAAK,CAAC,CAAC,CAAC,CAACE;IAAK,CAAC,CAAC;EACzD,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/config-storage.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
|
-
|
|
9
7
|
exports.default = void 0;
|
|
10
|
-
|
|
11
8
|
var _webexCore = require("@webex/webex-core");
|
|
12
|
-
|
|
13
9
|
/*!
|
|
14
10
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
15
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["boundedAdapter","MemoryStoreAdapter","unboundedAdapter"],"sources":["config-storage.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {MemoryStoreAdapter} from '@webex/webex-core';\n\nexport default {\n boundedAdapter: MemoryStoreAdapter,\n unboundedAdapter: MemoryStoreAdapter,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["boundedAdapter","MemoryStoreAdapter","unboundedAdapter"],"sources":["config-storage.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {MemoryStoreAdapter} from '@webex/webex-core';\n\nexport default {\n boundedAdapter: MemoryStoreAdapter,\n unboundedAdapter: MemoryStoreAdapter,\n};\n"],"mappings":";;;;;;;AAIA;AAJA;AACA;AACA;AAFA,eAMe;EACbA,cAAc,EAAEC,6BAAkB;EAClCC,gBAAgB,EAAED;AACpB,CAAC;AAAA"}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.default = void 0;
|
|
12
|
-
|
|
13
9
|
var _webexCore = require("@webex/webex-core");
|
|
14
|
-
|
|
15
10
|
var _storageAdapterLocalStorage = _interopRequireDefault(require("@webex/storage-adapter-local-storage"));
|
|
16
|
-
|
|
17
11
|
/*!
|
|
18
12
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
19
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["boundedAdapter","LocalStorageStoreAdapter","unboundedAdapter","MemoryStoreAdapter"],"sources":["config-storage.shim.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {MemoryStoreAdapter} from '@webex/webex-core';\nimport LocalStorageStoreAdapter from '@webex/storage-adapter-local-storage';\n\nexport default {\n boundedAdapter: new LocalStorageStoreAdapter('webex'),\n unboundedAdapter: MemoryStoreAdapter,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["boundedAdapter","LocalStorageStoreAdapter","unboundedAdapter","MemoryStoreAdapter"],"sources":["config-storage.shim.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {MemoryStoreAdapter} from '@webex/webex-core';\nimport LocalStorageStoreAdapter from '@webex/storage-adapter-local-storage';\n\nexport default {\n boundedAdapter: new LocalStorageStoreAdapter('webex'),\n unboundedAdapter: MemoryStoreAdapter,\n};\n"],"mappings":";;;;;;;;AAIA;AACA;AALA;AACA;AACA;AAFA,eAOe;EACbA,cAAc,EAAE,IAAIC,mCAAwB,CAAC,OAAO,CAAC;EACrDC,gBAAgB,EAAEC;AACpB,CAAC;AAAA"}
|
package/dist/config.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.default = void 0;
|
|
12
|
-
|
|
13
9
|
var _configStorage = _interopRequireDefault(require("./config-storage"));
|
|
14
|
-
|
|
15
10
|
/*!
|
|
16
11
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
17
12
|
*/
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["hydra","process","env","HYDRA_SERVICE_URL","hydraServiceUrl","credentials","clientType","device","validateDomains","ephemeral","storage","boundedAdapter","storageConfig","unboundedAdapter"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport storageConfig from './config-storage';\n\nexport default {\n hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n credentials: {\n clientType: 'confidential',\n },\n device: {\n validateDomains: true,\n ephemeral: true,\n },\n storage: {\n boundedAdapter: storageConfig,\n unboundedAdapter: storageConfig,\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["hydra","process","env","HYDRA_SERVICE_URL","hydraServiceUrl","credentials","clientType","device","validateDomains","ephemeral","storage","boundedAdapter","storageConfig","unboundedAdapter"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport storageConfig from './config-storage';\n\nexport default {\n hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',\n credentials: {\n clientType: 'confidential',\n },\n device: {\n validateDomains: true,\n ephemeral: true,\n },\n storage: {\n boundedAdapter: storageConfig,\n unboundedAdapter: storageConfig,\n },\n};\n"],"mappings":";;;;;;;;AAIA;AAJA;AACA;AACA;AAFA,eAMe;EACbA,KAAK,EAAEC,OAAO,CAACC,GAAG,CAACC,iBAAiB,IAAI,+BAA+B;EACvEC,eAAe,EAAEH,OAAO,CAACC,GAAG,CAACC,iBAAiB,IAAI,+BAA+B;EACjFE,WAAW,EAAE;IACXC,UAAU,EAAE;EACd,CAAC;EACDC,MAAM,EAAE;IACNC,eAAe,EAAE,IAAI;IACrBC,SAAS,EAAE;EACb,CAAC;EACDC,OAAO,EAAE;IACPC,cAAc,EAAEC,sBAAa;IAC7BC,gBAAgB,EAAED;EACpB;AACF,CAAC;AAAA"}
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ if (!global._babelPolyfill) {
|
|
|
9
9
|
/* eslint global-require: [0] */
|
|
10
10
|
require('@babel/polyfill');
|
|
11
11
|
}
|
|
12
|
-
|
|
13
12
|
module.exports = require('./webex');
|
|
13
|
+
|
|
14
14
|
/**
|
|
15
15
|
* The date and time, specified in ISO 8601 extended offset date/time
|
|
16
16
|
* format (e.g. `2015-10-18T14:26:16+00:00`).
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["global","_babelPolyfill","require","module","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* istanbul ignore else */\nif (!global._babelPolyfill) {\n /* eslint global-require: [0] */\n require('@babel/polyfill');\n}\n\nmodule.exports = require('./webex');\n\n/**\n * The date and time, specified in ISO 8601 extended offset date/time\n * format (e.g. `2015-10-18T14:26:16+00:00`).\n *\n * @typedef {string} isoDate\n */\n\n/**\n * An email address, as a string.\n * @typedef {string} email\n */\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA,IAAI,CAACA,MAAM,CAACC,
|
|
1
|
+
{"version":3,"names":["global","_babelPolyfill","require","module","exports"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* istanbul ignore else */\nif (!global._babelPolyfill) {\n /* eslint global-require: [0] */\n require('@babel/polyfill');\n}\n\nmodule.exports = require('./webex');\n\n/**\n * The date and time, specified in ISO 8601 extended offset date/time\n * format (e.g. `2015-10-18T14:26:16+00:00`).\n *\n * @typedef {string} isoDate\n */\n\n/**\n * An email address, as a string.\n * @typedef {string} email\n */\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA,IAAI,CAACA,MAAM,CAACC,cAAc,EAAE;EAC1B;EACAC,OAAO,CAAC,iBAAiB,CAAC;AAC5B;AAEAC,MAAM,CAACC,OAAO,GAAGF,OAAO,CAAC,SAAS,CAAC;;AAEnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA"}
|
package/dist/webex.js
CHANGED
|
@@ -3,52 +3,38 @@
|
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
// Note: this file is written using commonjs instead of import/export to
|
|
7
8
|
// simplify consumption by those less familiar with the current state of
|
|
8
9
|
// JavaScript modularization
|
|
9
10
|
|
|
10
11
|
/* eslint camelcase: [0] */
|
|
11
|
-
require('@webex/plugin-authorization'); // explicitly load wdm, since we're relying on preDiscoveryServices and the
|
|
12
|
-
// url interceptor
|
|
13
|
-
|
|
14
12
|
|
|
13
|
+
require('@webex/plugin-authorization');
|
|
14
|
+
// explicitly load wdm, since we're relying on preDiscoveryServices and the
|
|
15
|
+
// url interceptor
|
|
15
16
|
require('@webex/internal-plugin-calendar');
|
|
16
|
-
|
|
17
17
|
require('@webex/internal-plugin-device');
|
|
18
|
-
|
|
19
18
|
require('@webex/internal-plugin-presence');
|
|
20
|
-
|
|
21
19
|
require('@webex/internal-plugin-support');
|
|
22
|
-
|
|
20
|
+
require('@webex/internal-plugin-llm');
|
|
23
21
|
require('@webex/plugin-attachment-actions');
|
|
24
|
-
|
|
25
22
|
require('@webex/plugin-device-manager');
|
|
26
|
-
|
|
27
23
|
require('@webex/plugin-logger');
|
|
28
|
-
|
|
29
24
|
require('@webex/plugin-meetings');
|
|
30
|
-
|
|
31
25
|
require('@webex/plugin-messages');
|
|
32
|
-
|
|
33
26
|
require('@webex/plugin-memberships');
|
|
34
|
-
|
|
35
27
|
require('@webex/plugin-people');
|
|
36
|
-
|
|
37
28
|
require('@webex/plugin-rooms');
|
|
38
|
-
|
|
39
29
|
require('@webex/plugin-teams');
|
|
40
|
-
|
|
41
30
|
require('@webex/plugin-team-memberships');
|
|
42
|
-
|
|
43
31
|
require('@webex/plugin-webhooks');
|
|
44
|
-
|
|
45
32
|
var merge = require('lodash/merge');
|
|
46
|
-
|
|
47
33
|
var WebexCore = require('@webex/webex-core').default;
|
|
34
|
+
var config = require('./config');
|
|
48
35
|
|
|
49
|
-
|
|
36
|
+
// documentation.js puts hashes in relative urls, so need to specify full urls
|
|
50
37
|
// here
|
|
51
|
-
|
|
52
38
|
/**
|
|
53
39
|
* See {@link https://webex.github.io/webex-js-sdk/example/browsers|Browser Guide} and
|
|
54
40
|
* {@link https://webex.github.io/webex-js-sdk/example/servers|Server Guide}
|
|
@@ -56,12 +42,11 @@ var config = require('./config'); // documentation.js puts hashes in relative ur
|
|
|
56
42
|
* @see {@link /example/servers|Server Guide}
|
|
57
43
|
* @class Webex
|
|
58
44
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
45
|
var Webex = WebexCore.extend({
|
|
62
46
|
webex: true,
|
|
63
|
-
version: "3.0.0-beta.
|
|
47
|
+
version: "3.0.0-beta.151"
|
|
64
48
|
});
|
|
49
|
+
|
|
65
50
|
/**
|
|
66
51
|
* Create a new {@link Webex} instance
|
|
67
52
|
*
|
|
@@ -87,13 +72,11 @@ var Webex = WebexCore.extend({
|
|
|
87
72
|
* @memberof Webex
|
|
88
73
|
* @returns {Webex}
|
|
89
74
|
*/
|
|
90
|
-
|
|
91
75
|
Webex.init = function init() {
|
|
92
76
|
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
93
77
|
attrs.config = merge({}, config, attrs.config); // eslint-disable-line no-param-reassign
|
|
94
78
|
|
|
95
79
|
return new Webex(attrs);
|
|
96
80
|
};
|
|
97
|
-
|
|
98
81
|
module.exports = Webex;
|
|
99
82
|
//# sourceMappingURL=webex.js.map
|
package/dist/webex.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require","merge","WebexCore","default","config","Webex","extend","webex","version","init","attrs","module","exports"],"sources":["webex.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n// Note: this file is written using commonjs instead of import/export to\n// simplify consumption by those less familiar with the current state of\n// JavaScript modularization\n\n/* eslint camelcase: [0] */\n\nrequire('@webex/plugin-authorization');\n// explicitly load wdm, since we're relying on preDiscoveryServices and the\n// url interceptor\nrequire('@webex/internal-plugin-calendar');\nrequire('@webex/internal-plugin-device');\nrequire('@webex/internal-plugin-presence');\nrequire('@webex/internal-plugin-support');\nrequire('@webex/plugin-attachment-actions');\nrequire('@webex/plugin-device-manager');\nrequire('@webex/plugin-logger');\nrequire('@webex/plugin-meetings');\nrequire('@webex/plugin-messages');\nrequire('@webex/plugin-memberships');\nrequire('@webex/plugin-people');\nrequire('@webex/plugin-rooms');\nrequire('@webex/plugin-teams');\nrequire('@webex/plugin-team-memberships');\nrequire('@webex/plugin-webhooks');\n\nconst merge = require('lodash/merge');\nconst WebexCore = require('@webex/webex-core').default;\n\nconst config = require('./config');\n\n// documentation.js puts hashes in relative urls, so need to specify full urls\n// here\n/**\n * See {@link https://webex.github.io/webex-js-sdk/example/browsers|Browser Guide} and\n * {@link https://webex.github.io/webex-js-sdk/example/servers|Server Guide}\n * @see {@link /example/browsers|Browser Guide}\n * @see {@link /example/servers|Server Guide}\n * @class Webex\n */\nconst Webex = WebexCore.extend({\n webex: true,\n version: PACKAGE_VERSION,\n});\n\n/**\n * Create a new {@link Webex} instance\n *\n * @example\n * <caption>Create a new Webex instance configured for your OAuth client</caption>\n * const webex = Webex.init({\n * config: {\n * credentials: {\n * authorizationString: `<AUTHORIZATION URL FROM DEVELOPER PORTAL>`\n * }\n * }\n * });\n *\n * @example\n * <caption>Create a new Webex instance configured for a Bot</caption>\n * const webex = Webex.init({\n * credentials: `<BOT TOKEN FROM DEVELOPER PORTAL>`\n * });\n *\n *\n * @param {Object} attrs\n * @param {Object} attrs.config (optional)\n * @memberof Webex\n * @returns {Webex}\n */\nWebex.init = function init(attrs = {}) {\n attrs.config = merge({}, config, attrs.config); // eslint-disable-line no-param-reassign\n\n return new Webex(attrs);\n};\n\nmodule.exports = Webex;\n"],"mappings":";;AAAA;AACA;AACA
|
|
1
|
+
{"version":3,"names":["require","merge","WebexCore","default","config","Webex","extend","webex","version","init","attrs","module","exports"],"sources":["webex.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n// Note: this file is written using commonjs instead of import/export to\n// simplify consumption by those less familiar with the current state of\n// JavaScript modularization\n\n/* eslint camelcase: [0] */\n\nrequire('@webex/plugin-authorization');\n// explicitly load wdm, since we're relying on preDiscoveryServices and the\n// url interceptor\nrequire('@webex/internal-plugin-calendar');\nrequire('@webex/internal-plugin-device');\nrequire('@webex/internal-plugin-presence');\nrequire('@webex/internal-plugin-support');\nrequire('@webex/internal-plugin-llm');\nrequire('@webex/plugin-attachment-actions');\nrequire('@webex/plugin-device-manager');\nrequire('@webex/plugin-logger');\nrequire('@webex/plugin-meetings');\nrequire('@webex/plugin-messages');\nrequire('@webex/plugin-memberships');\nrequire('@webex/plugin-people');\nrequire('@webex/plugin-rooms');\nrequire('@webex/plugin-teams');\nrequire('@webex/plugin-team-memberships');\nrequire('@webex/plugin-webhooks');\n\nconst merge = require('lodash/merge');\nconst WebexCore = require('@webex/webex-core').default;\n\nconst config = require('./config');\n\n// documentation.js puts hashes in relative urls, so need to specify full urls\n// here\n/**\n * See {@link https://webex.github.io/webex-js-sdk/example/browsers|Browser Guide} and\n * {@link https://webex.github.io/webex-js-sdk/example/servers|Server Guide}\n * @see {@link /example/browsers|Browser Guide}\n * @see {@link /example/servers|Server Guide}\n * @class Webex\n */\nconst Webex = WebexCore.extend({\n webex: true,\n version: PACKAGE_VERSION,\n});\n\n/**\n * Create a new {@link Webex} instance\n *\n * @example\n * <caption>Create a new Webex instance configured for your OAuth client</caption>\n * const webex = Webex.init({\n * config: {\n * credentials: {\n * authorizationString: `<AUTHORIZATION URL FROM DEVELOPER PORTAL>`\n * }\n * }\n * });\n *\n * @example\n * <caption>Create a new Webex instance configured for a Bot</caption>\n * const webex = Webex.init({\n * credentials: `<BOT TOKEN FROM DEVELOPER PORTAL>`\n * });\n *\n *\n * @param {Object} attrs\n * @param {Object} attrs.config (optional)\n * @memberof Webex\n * @returns {Webex}\n */\nWebex.init = function init(attrs = {}) {\n attrs.config = merge({}, config, attrs.config); // eslint-disable-line no-param-reassign\n\n return new Webex(attrs);\n};\n\nmodule.exports = Webex;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEAA,OAAO,CAAC,6BAA6B,CAAC;AACtC;AACA;AACAA,OAAO,CAAC,iCAAiC,CAAC;AAC1CA,OAAO,CAAC,+BAA+B,CAAC;AACxCA,OAAO,CAAC,iCAAiC,CAAC;AAC1CA,OAAO,CAAC,gCAAgC,CAAC;AACzCA,OAAO,CAAC,4BAA4B,CAAC;AACrCA,OAAO,CAAC,kCAAkC,CAAC;AAC3CA,OAAO,CAAC,8BAA8B,CAAC;AACvCA,OAAO,CAAC,sBAAsB,CAAC;AAC/BA,OAAO,CAAC,wBAAwB,CAAC;AACjCA,OAAO,CAAC,wBAAwB,CAAC;AACjCA,OAAO,CAAC,2BAA2B,CAAC;AACpCA,OAAO,CAAC,sBAAsB,CAAC;AAC/BA,OAAO,CAAC,qBAAqB,CAAC;AAC9BA,OAAO,CAAC,qBAAqB,CAAC;AAC9BA,OAAO,CAAC,gCAAgC,CAAC;AACzCA,OAAO,CAAC,wBAAwB,CAAC;AAEjC,IAAMC,KAAK,GAAGD,OAAO,CAAC,cAAc,CAAC;AACrC,IAAME,SAAS,GAAGF,OAAO,CAAC,mBAAmB,CAAC,CAACG,OAAO;AAEtD,IAAMC,MAAM,GAAGJ,OAAO,CAAC,UAAU,CAAC;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMK,KAAK,GAAGH,SAAS,CAACI,MAAM,CAAC;EAC7BC,KAAK,EAAE,IAAI;EACXC,OAAO;AACT,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACAH,KAAK,CAACI,IAAI,GAAG,SAASA,IAAI,GAAa;EAAA,IAAZC,KAAK,uEAAG,CAAC,CAAC;EACnCA,KAAK,CAACN,MAAM,GAAGH,KAAK,CAAC,CAAC,CAAC,EAAEG,MAAM,EAAEM,KAAK,CAACN,MAAM,CAAC,CAAC,CAAC;;EAEhD,OAAO,IAAIC,KAAK,CAACK,KAAK,CAAC;AACzB,CAAC;AAEDC,MAAM,CAACC,OAAO,GAAGP,KAAK"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webex",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.151",
|
|
4
4
|
"description": "SDK for Cisco Webex",
|
|
5
5
|
"license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
|
|
6
6
|
"contributors": [
|
|
@@ -34,34 +34,35 @@
|
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@webex/plugin-authorization": "3.0.0-beta.
|
|
38
|
-
"@webex/test-helper-chai": "3.0.0-beta.
|
|
39
|
-
"@webex/test-helper-mocha": "3.0.0-beta.
|
|
40
|
-
"@webex/test-helper-test-users": "3.0.0-beta.
|
|
37
|
+
"@webex/plugin-authorization": "3.0.0-beta.151",
|
|
38
|
+
"@webex/test-helper-chai": "3.0.0-beta.151",
|
|
39
|
+
"@webex/test-helper-mocha": "3.0.0-beta.151",
|
|
40
|
+
"@webex/test-helper-test-users": "3.0.0-beta.151",
|
|
41
41
|
"sinon": "^9.2.4",
|
|
42
|
-
"webex": "3.0.0-beta.
|
|
42
|
+
"webex": "3.0.0-beta.151"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/polyfill": "^7.12.1",
|
|
46
|
-
"@webex/common": "3.0.0-beta.
|
|
47
|
-
"@webex/internal-plugin-calendar": "3.0.0-beta.
|
|
48
|
-
"@webex/internal-plugin-device": "3.0.0-beta.
|
|
49
|
-
"@webex/internal-plugin-
|
|
50
|
-
"@webex/internal-plugin-
|
|
51
|
-
"@webex/plugin-
|
|
52
|
-
"@webex/plugin-
|
|
53
|
-
"@webex/plugin-
|
|
54
|
-
"@webex/plugin-
|
|
55
|
-
"@webex/plugin-
|
|
56
|
-
"@webex/plugin-
|
|
57
|
-
"@webex/plugin-
|
|
58
|
-
"@webex/plugin-
|
|
59
|
-
"@webex/plugin-
|
|
60
|
-
"@webex/plugin-
|
|
61
|
-
"@webex/plugin-
|
|
62
|
-
"@webex/plugin-
|
|
63
|
-
"@webex/
|
|
64
|
-
"@webex/
|
|
46
|
+
"@webex/common": "3.0.0-beta.151",
|
|
47
|
+
"@webex/internal-plugin-calendar": "3.0.0-beta.151",
|
|
48
|
+
"@webex/internal-plugin-device": "3.0.0-beta.151",
|
|
49
|
+
"@webex/internal-plugin-llm": "3.0.0-beta.151",
|
|
50
|
+
"@webex/internal-plugin-presence": "3.0.0-beta.151",
|
|
51
|
+
"@webex/internal-plugin-support": "3.0.0-beta.151",
|
|
52
|
+
"@webex/plugin-attachment-actions": "3.0.0-beta.151",
|
|
53
|
+
"@webex/plugin-authorization": "3.0.0-beta.151",
|
|
54
|
+
"@webex/plugin-device-manager": "3.0.0-beta.151",
|
|
55
|
+
"@webex/plugin-logger": "3.0.0-beta.151",
|
|
56
|
+
"@webex/plugin-meetings": "3.0.0-beta.151",
|
|
57
|
+
"@webex/plugin-memberships": "3.0.0-beta.151",
|
|
58
|
+
"@webex/plugin-messages": "3.0.0-beta.151",
|
|
59
|
+
"@webex/plugin-people": "3.0.0-beta.151",
|
|
60
|
+
"@webex/plugin-rooms": "3.0.0-beta.151",
|
|
61
|
+
"@webex/plugin-team-memberships": "3.0.0-beta.151",
|
|
62
|
+
"@webex/plugin-teams": "3.0.0-beta.151",
|
|
63
|
+
"@webex/plugin-webhooks": "3.0.0-beta.151",
|
|
64
|
+
"@webex/storage-adapter-local-storage": "3.0.0-beta.151",
|
|
65
|
+
"@webex/webex-core": "3.0.0-beta.151",
|
|
65
66
|
"lodash": "^4.17.21"
|
|
66
67
|
}
|
|
67
68
|
}
|
package/src/webex.js
CHANGED
|
@@ -15,6 +15,7 @@ require('@webex/internal-plugin-calendar');
|
|
|
15
15
|
require('@webex/internal-plugin-device');
|
|
16
16
|
require('@webex/internal-plugin-presence');
|
|
17
17
|
require('@webex/internal-plugin-support');
|
|
18
|
+
require('@webex/internal-plugin-llm');
|
|
18
19
|
require('@webex/plugin-attachment-actions');
|
|
19
20
|
require('@webex/plugin-device-manager');
|
|
20
21
|
require('@webex/plugin-logger');
|