obi-sdk 0.1.2 → 0.1.3
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 +58 -65
- package/dist/modular/chunks/{index-634e0df5.js → obi-widget-9c0306f4.js} +2151 -146
- package/dist/modular/chunks/obi-widget-9c0306f4.js.map +1 -0
- package/dist/modular/chunks/{session-e208b5bb.js → session-37970ed1.js} +18 -18
- package/dist/modular/chunks/session-37970ed1.js.map +1 -0
- package/dist/modular/core.js +34 -3
- package/dist/modular/core.js.map +1 -1
- package/dist/modular/index.js +122 -119
- package/dist/modular/index.js.map +1 -1
- package/dist/modular/ui.js +29 -1992
- package/dist/modular/ui.js.map +1 -1
- package/dist/obi-loader.iife.js +1 -1
- package/dist/obi-loader.iife.js.map +1 -1
- package/dist/obi-loader.js +36 -33
- package/dist/obi-loader.js.map +1 -1
- package/dist/obi-loader.umd.cjs +1 -1
- package/dist/obi-loader.umd.cjs.map +1 -1
- package/dist/obi-sdk.es.js +1183 -1142
- package/dist/obi-sdk.standalone.iife.js +76 -47
- package/dist/obi-sdk.standalone.iife.js.map +1 -1
- package/dist/obi-sdk.umd.js +88 -59
- package/package.json +2 -2
- package/dist/modular/chunks/index-634e0df5.js.map +0 -1
- package/dist/modular/chunks/session-e208b5bb.js.map +0 -1
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import { S as SDKState, z } from "./
|
|
2
|
-
function mitt(n) {
|
|
3
|
-
return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e2) {
|
|
4
|
-
var i = n.get(t);
|
|
5
|
-
i ? i.push(e2) : n.set(t, [e2]);
|
|
6
|
-
}, off: function(t, e2) {
|
|
7
|
-
var i = n.get(t);
|
|
8
|
-
i && (e2 ? i.splice(i.indexOf(e2) >>> 0, 1) : n.set(t, []));
|
|
9
|
-
}, emit: function(t, e2) {
|
|
10
|
-
var i = n.get(t);
|
|
11
|
-
i && i.slice().map(function(n2) {
|
|
12
|
-
n2(e2);
|
|
13
|
-
}), (i = n.get("*")) && i.slice().map(function(n2) {
|
|
14
|
-
n2(t, e2);
|
|
15
|
-
});
|
|
16
|
-
} };
|
|
17
|
-
}
|
|
1
|
+
import { S as SDKState, z } from "./obi-widget-9c0306f4.js";
|
|
18
2
|
function _mergeNamespaces(n, m) {
|
|
19
3
|
m.forEach(function(e2) {
|
|
20
4
|
e2 && typeof e2 !== "string" && !Array.isArray(e2) && Object.keys(e2).forEach(function(k) {
|
|
@@ -21867,6 +21851,22 @@ class ConnectionCheck extends eventsExports.EventEmitter {
|
|
|
21867
21851
|
});
|
|
21868
21852
|
}
|
|
21869
21853
|
}
|
|
21854
|
+
function mitt(n) {
|
|
21855
|
+
return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e2) {
|
|
21856
|
+
var i = n.get(t);
|
|
21857
|
+
i ? i.push(e2) : n.set(t, [e2]);
|
|
21858
|
+
}, off: function(t, e2) {
|
|
21859
|
+
var i = n.get(t);
|
|
21860
|
+
i && (e2 ? i.splice(i.indexOf(e2) >>> 0, 1) : n.set(t, []));
|
|
21861
|
+
}, emit: function(t, e2) {
|
|
21862
|
+
var i = n.get(t);
|
|
21863
|
+
i && i.slice().map(function(n2) {
|
|
21864
|
+
n2(e2);
|
|
21865
|
+
}), (i = n.get("*")) && i.slice().map(function(n2) {
|
|
21866
|
+
n2(t, e2);
|
|
21867
|
+
});
|
|
21868
|
+
} };
|
|
21869
|
+
}
|
|
21870
21870
|
class ObiSession {
|
|
21871
21871
|
constructor(options = {}) {
|
|
21872
21872
|
this.currentState = SDKState.READY;
|
|
@@ -22165,4 +22165,4 @@ export {
|
|
|
22165
22165
|
mitt as m,
|
|
22166
22166
|
session as s
|
|
22167
22167
|
};
|
|
22168
|
-
//# sourceMappingURL=session-
|
|
22168
|
+
//# sourceMappingURL=session-37970ed1.js.map
|