@elizaos/plugin-phone 2.0.3-beta.2 → 2.0.3-beta.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/dist/companion/components/Chat.d.ts +14 -0
- package/dist/companion/components/Chat.d.ts.map +1 -0
- package/dist/companion/components/Chat.js +195 -0
- package/dist/companion/components/Chat.js.map +1 -0
- package/dist/companion/components/Pairing.d.ts +9 -0
- package/dist/companion/components/Pairing.d.ts.map +1 -0
- package/dist/companion/components/Pairing.js +175 -0
- package/dist/companion/components/Pairing.js.map +1 -0
- package/dist/companion/components/PhoneCompanionApp.d.ts +9 -0
- package/dist/companion/components/PhoneCompanionApp.d.ts.map +1 -0
- package/dist/companion/components/PhoneCompanionApp.js +174 -0
- package/dist/companion/components/PhoneCompanionApp.js.map +1 -0
- package/dist/companion/components/RemoteSession.d.ts +9 -0
- package/dist/companion/components/RemoteSession.d.ts.map +1 -0
- package/dist/companion/components/RemoteSession.js +382 -0
- package/dist/companion/components/RemoteSession.js.map +1 -0
- package/dist/companion/components/index.d.ts +5 -0
- package/dist/companion/components/index.d.ts.map +1 -0
- package/dist/companion/components/index.js +11 -0
- package/dist/companion/components/index.js.map +1 -0
- package/dist/companion/index.d.ts +14 -0
- package/dist/companion/index.d.ts.map +1 -0
- package/dist/companion/index.js +12 -0
- package/dist/companion/index.js.map +1 -0
- package/dist/companion/services/eliza-intent.d.ts +63 -0
- package/dist/companion/services/eliza-intent.d.ts.map +1 -0
- package/dist/companion/services/eliza-intent.js +52 -0
- package/dist/companion/services/eliza-intent.js.map +1 -0
- package/dist/companion/services/env.d.ts +11 -0
- package/dist/companion/services/env.d.ts.map +1 -0
- package/dist/companion/services/env.js +20 -0
- package/dist/companion/services/env.js.map +1 -0
- package/dist/companion/services/index.d.ts +14 -0
- package/dist/companion/services/index.d.ts.map +1 -0
- package/dist/companion/services/index.js +29 -0
- package/dist/companion/services/index.js.map +1 -0
- package/dist/companion/services/intent-bridge.d.ts +11 -0
- package/dist/companion/services/intent-bridge.d.ts.map +1 -0
- package/dist/companion/services/intent-bridge.js +15 -0
- package/dist/companion/services/intent-bridge.js.map +1 -0
- package/dist/companion/services/logger.d.ts +14 -0
- package/dist/companion/services/logger.d.ts.map +1 -0
- package/dist/companion/services/logger.js +50 -0
- package/dist/companion/services/logger.js.map +1 -0
- package/dist/companion/services/navigation.d.ts +17 -0
- package/dist/companion/services/navigation.d.ts.map +1 -0
- package/dist/companion/services/navigation.js +104 -0
- package/dist/companion/services/navigation.js.map +1 -0
- package/dist/companion/services/push.d.ts +27 -0
- package/dist/companion/services/push.d.ts.map +1 -0
- package/dist/companion/services/push.js +101 -0
- package/dist/companion/services/push.js.map +1 -0
- package/dist/companion/services/session-client.d.ts +114 -0
- package/dist/companion/services/session-client.d.ts.map +1 -0
- package/dist/companion/services/session-client.js +197 -0
- package/dist/companion/services/session-client.js.map +1 -0
- package/dist/components/PhoneAppView.d.ts +18 -0
- package/dist/components/PhoneAppView.d.ts.map +1 -0
- package/dist/components/PhoneAppView.helpers.d.ts +12 -0
- package/dist/components/PhoneAppView.helpers.d.ts.map +1 -0
- package/dist/components/PhoneAppView.helpers.js +44 -0
- package/dist/components/PhoneAppView.helpers.js.map +1 -0
- package/dist/components/PhoneAppView.interact.d.ts +2 -0
- package/dist/components/PhoneAppView.interact.d.ts.map +1 -0
- package/dist/components/PhoneAppView.interact.js +63 -0
- package/dist/components/PhoneAppView.interact.js.map +1 -0
- package/dist/components/PhoneAppView.js +566 -0
- package/dist/components/PhoneAppView.js.map +1 -0
- package/dist/components/PhoneSpatialView.d.ts +43 -0
- package/dist/components/PhoneSpatialView.d.ts.map +1 -0
- package/dist/components/PhoneSpatialView.js +180 -0
- package/dist/components/PhoneSpatialView.js.map +1 -0
- package/dist/components/PhoneView.d.ts +13 -0
- package/dist/components/PhoneView.d.ts.map +1 -0
- package/dist/components/PhoneView.js +161 -0
- package/dist/components/PhoneView.js.map +1 -0
- package/dist/components/phone-app.d.ts +13 -0
- package/dist/components/phone-app.d.ts.map +1 -0
- package/dist/components/phone-app.js +20 -0
- package/dist/components/phone-app.js.map +1 -0
- package/dist/components/phone-view-bundle.d.ts +3 -0
- package/dist/components/phone-view-bundle.d.ts.map +1 -0
- package/dist/components/phone-view-bundle.js +7 -0
- package/dist/components/phone-view-bundle.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin.d.ts +17 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +48 -0
- package/dist/plugin.js.map +1 -0
- package/dist/providers/call-log.d.ts +11 -0
- package/dist/providers/call-log.d.ts.map +1 -0
- package/dist/providers/call-log.js +66 -0
- package/dist/providers/call-log.js.map +1 -0
- package/dist/register-companion-page.d.ts +13 -0
- package/dist/register-companion-page.d.ts.map +1 -0
- package/dist/register-companion-page.js +12 -0
- package/dist/register-companion-page.js.map +1 -0
- package/dist/register-terminal-view.d.ts +15 -0
- package/dist/register-terminal-view.d.ts.map +1 -0
- package/dist/register-terminal-view.js +21 -0
- package/dist/register-terminal-view.js.map +1 -0
- package/dist/register.d.ts +9 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/register.js +11 -0
- package/dist/register.js.map +1 -0
- package/dist/twilio.d.ts +33 -0
- package/dist/twilio.d.ts.map +1 -0
- package/dist/twilio.js +238 -0
- package/dist/twilio.js.map +1 -0
- package/dist/ui.d.ts +8 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +23 -0
- package/dist/ui.js.map +1 -0
- package/dist/views/bundle.js +407 -0
- package/dist/views/bundle.js.map +1 -0
- package/dist/views/dist-Cd2YtKy4.js +270 -0
- package/dist/views/dist-Cd2YtKy4.js.map +1 -0
- package/dist/views/web-TGRkTsa8.js +58 -0
- package/dist/views/web-TGRkTsa8.js.map +1 -0
- package/package.json +9 -8
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
//#region ../../node_modules/.bun/@capacitor+core@8.4.0/node_modules/@capacitor/core/dist/index.js
|
|
2
|
+
var e;
|
|
3
|
+
(function(e) {
|
|
4
|
+
e.Unimplemented = "UNIMPLEMENTED", e.Unavailable = "UNAVAILABLE";
|
|
5
|
+
})(e ||= {});
|
|
6
|
+
var t = class extends Error {
|
|
7
|
+
constructor(e, t, n) {
|
|
8
|
+
super(e), this.message = e, this.code = t, this.data = n;
|
|
9
|
+
}
|
|
10
|
+
}, n = (e) => e?.androidBridge ? "android" : e?.webkit?.messageHandlers?.bridge ? "ios" : "web", r = (r) => {
|
|
11
|
+
let i = r.CapacitorCustomPlatform || null, a = r.Capacitor || {}, o = a.Plugins = a.Plugins || {}, s = () => i === null ? n(r) : i.name, c = () => s() !== "web", l = (e) => !!(f.get(e)?.platforms.has(s()) || u(e)), u = (e) => a.PluginHeaders?.find((t) => t.name === e), d = (e) => r.console.error(e), f = /* @__PURE__ */ new Map();
|
|
12
|
+
return a.convertFileSrc ||= (e) => e, a.getPlatform = s, a.handleError = d, a.isNativePlatform = c, a.isPluginAvailable = l, a.registerPlugin = (n, r = {}) => {
|
|
13
|
+
let c = f.get(n);
|
|
14
|
+
if (c) return console.warn(`Capacitor plugin "${n}" already registered. Cannot register plugins twice.`), c.proxy;
|
|
15
|
+
let l = s(), d = u(n), p, m = async () => (!p && l in r ? p = p = typeof r[l] == "function" ? await r[l]() : r[l] : i !== null && !p && "web" in r && (p = p = typeof r.web == "function" ? await r.web() : r.web), p), h = (r, i) => {
|
|
16
|
+
if (d) {
|
|
17
|
+
let e = d?.methods.find((e) => i === e.name);
|
|
18
|
+
if (e) return e.rtype === "promise" ? (e) => a.nativePromise(n, i.toString(), e) : (e, t) => a.nativeCallback(n, i.toString(), e, t);
|
|
19
|
+
if (r) return r[i]?.bind(r);
|
|
20
|
+
} else if (r) return r[i]?.bind(r);
|
|
21
|
+
else throw new t(`"${n}" plugin is not implemented on ${l}`, e.Unimplemented);
|
|
22
|
+
}, g = (r) => {
|
|
23
|
+
let i, a = (...a) => {
|
|
24
|
+
let o = m().then((o) => {
|
|
25
|
+
let s = h(o, r);
|
|
26
|
+
if (s) {
|
|
27
|
+
let e = s(...a);
|
|
28
|
+
return i = e?.remove, e;
|
|
29
|
+
} else throw new t(`"${n}.${r}()" is not implemented on ${l}`, e.Unimplemented);
|
|
30
|
+
});
|
|
31
|
+
return r === "addListener" && (o.remove = async () => i()), o;
|
|
32
|
+
};
|
|
33
|
+
return a.toString = () => `${r.toString()}() { [capacitor code] }`, Object.defineProperty(a, "name", {
|
|
34
|
+
value: r,
|
|
35
|
+
writable: !1,
|
|
36
|
+
configurable: !1
|
|
37
|
+
}), a;
|
|
38
|
+
}, _ = g("addListener"), v = g("removeListener"), y = (e, t) => {
|
|
39
|
+
let n = _({ eventName: e }, t), r = async () => {
|
|
40
|
+
v({
|
|
41
|
+
eventName: e,
|
|
42
|
+
callbackId: await n
|
|
43
|
+
}, t);
|
|
44
|
+
}, i = new Promise((e) => n.then(() => e({ remove: r })));
|
|
45
|
+
return i.remove = async () => {
|
|
46
|
+
console.warn("Using addListener() without 'await' is deprecated."), await r();
|
|
47
|
+
}, i;
|
|
48
|
+
}, b = new Proxy({}, { get(e, t) {
|
|
49
|
+
switch (t) {
|
|
50
|
+
case "$$typeof": return;
|
|
51
|
+
case "toJSON": return () => ({});
|
|
52
|
+
case "addListener": return d ? y : _;
|
|
53
|
+
case "removeListener": return v;
|
|
54
|
+
default: return g(t);
|
|
55
|
+
}
|
|
56
|
+
} });
|
|
57
|
+
return o[n] = b, f.set(n, {
|
|
58
|
+
name: n,
|
|
59
|
+
proxy: b,
|
|
60
|
+
platforms: new Set([...Object.keys(r), ...d ? [l] : []])
|
|
61
|
+
}), b;
|
|
62
|
+
}, a.Exception = t, a.DEBUG = !!a.DEBUG, a.isLoggingEnabled = !!a.isLoggingEnabled, a;
|
|
63
|
+
}, i = /*#__PURE__*/ ((e) => e.Capacitor = r(e))(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), a = i.registerPlugin, o = class {
|
|
64
|
+
constructor() {
|
|
65
|
+
this.listeners = {}, this.retainedEventArguments = {}, this.windowListeners = {};
|
|
66
|
+
}
|
|
67
|
+
addListener(e, t) {
|
|
68
|
+
let n = !1;
|
|
69
|
+
this.listeners[e] || (this.listeners[e] = [], n = !0), this.listeners[e].push(t);
|
|
70
|
+
let r = this.windowListeners[e];
|
|
71
|
+
return r && !r.registered && this.addWindowListener(r), n && this.sendRetainedArgumentsForEvent(e), Promise.resolve({ remove: async () => this.removeListener(e, t) });
|
|
72
|
+
}
|
|
73
|
+
async removeAllListeners() {
|
|
74
|
+
this.listeners = {};
|
|
75
|
+
for (let e in this.windowListeners) this.removeWindowListener(this.windowListeners[e]);
|
|
76
|
+
this.windowListeners = {};
|
|
77
|
+
}
|
|
78
|
+
notifyListeners(e, t, n) {
|
|
79
|
+
let r = this.listeners[e];
|
|
80
|
+
if (!r) {
|
|
81
|
+
if (n) {
|
|
82
|
+
let n = this.retainedEventArguments[e];
|
|
83
|
+
n ||= [], n.push(t), this.retainedEventArguments[e] = n;
|
|
84
|
+
}
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
r.forEach((e) => e(t));
|
|
88
|
+
}
|
|
89
|
+
hasListeners(e) {
|
|
90
|
+
return !!this.listeners[e]?.length;
|
|
91
|
+
}
|
|
92
|
+
registerWindowListener(e, t) {
|
|
93
|
+
this.windowListeners[t] = {
|
|
94
|
+
registered: !1,
|
|
95
|
+
windowEventName: e,
|
|
96
|
+
pluginEventName: t,
|
|
97
|
+
handler: (e) => {
|
|
98
|
+
this.notifyListeners(t, e);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
unimplemented(t = "not implemented") {
|
|
103
|
+
return new i.Exception(t, e.Unimplemented);
|
|
104
|
+
}
|
|
105
|
+
unavailable(t = "not available") {
|
|
106
|
+
return new i.Exception(t, e.Unavailable);
|
|
107
|
+
}
|
|
108
|
+
async removeListener(e, t) {
|
|
109
|
+
let n = this.listeners[e];
|
|
110
|
+
if (!n) return;
|
|
111
|
+
let r = n.indexOf(t);
|
|
112
|
+
this.listeners[e].splice(r, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
|
|
113
|
+
}
|
|
114
|
+
addWindowListener(e) {
|
|
115
|
+
window.addEventListener(e.windowEventName, e.handler), e.registered = !0;
|
|
116
|
+
}
|
|
117
|
+
removeWindowListener(e) {
|
|
118
|
+
e && (window.removeEventListener(e.windowEventName, e.handler), e.registered = !1);
|
|
119
|
+
}
|
|
120
|
+
sendRetainedArgumentsForEvent(e) {
|
|
121
|
+
let t = this.retainedEventArguments[e];
|
|
122
|
+
t && (delete this.retainedEventArguments[e], t.forEach((t) => {
|
|
123
|
+
this.notifyListeners(e, t);
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
}, s = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), c = (e) => e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent), l = class extends o {
|
|
127
|
+
async getCookies() {
|
|
128
|
+
let e = document.cookie, t = {};
|
|
129
|
+
return e.split(";").forEach((e) => {
|
|
130
|
+
if (e.length <= 0) return;
|
|
131
|
+
let [n, r] = e.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
|
|
132
|
+
n = c(n).trim(), r = c(r).trim(), t[n] = r;
|
|
133
|
+
}), t;
|
|
134
|
+
}
|
|
135
|
+
async setCookie(e) {
|
|
136
|
+
try {
|
|
137
|
+
let t = s(e.key), n = s(e.value), r = e.expires ? `; expires=${e.expires.replace("expires=", "")}` : "", i = (e.path || "/").replace("path=", ""), a = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
|
|
138
|
+
document.cookie = `${t}=${n || ""}${r}; path=${i}; ${a};`;
|
|
139
|
+
} catch (e) {
|
|
140
|
+
return Promise.reject(e);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
async deleteCookie(e) {
|
|
144
|
+
try {
|
|
145
|
+
document.cookie = `${e.key}=; Max-Age=0`;
|
|
146
|
+
} catch (e) {
|
|
147
|
+
return Promise.reject(e);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
async clearCookies() {
|
|
151
|
+
try {
|
|
152
|
+
let e = document.cookie.split(";") || [];
|
|
153
|
+
for (let t of e) document.cookie = t.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
|
|
154
|
+
} catch (e) {
|
|
155
|
+
return Promise.reject(e);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
async clearAllCookies() {
|
|
159
|
+
try {
|
|
160
|
+
await this.clearCookies();
|
|
161
|
+
} catch (e) {
|
|
162
|
+
return Promise.reject(e);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
a("CapacitorCookies", { web: () => new l() });
|
|
167
|
+
var u = async (e) => new Promise((t, n) => {
|
|
168
|
+
let r = new FileReader();
|
|
169
|
+
r.onload = () => {
|
|
170
|
+
let e = r.result;
|
|
171
|
+
t(e.indexOf(",") >= 0 ? e.split(",")[1] : e);
|
|
172
|
+
}, r.onerror = (e) => n(e), r.readAsDataURL(e);
|
|
173
|
+
}), d = (e = {}) => {
|
|
174
|
+
let t = Object.keys(e);
|
|
175
|
+
return Object.keys(e).map((e) => e.toLocaleLowerCase()).reduce((n, r, i) => (n[r] = e[t[i]], n), {});
|
|
176
|
+
}, f = (e, t = !0) => e ? Object.entries(e).reduce((e, n) => {
|
|
177
|
+
let [r, i] = n, a, o;
|
|
178
|
+
return Array.isArray(i) ? (o = "", i.forEach((e) => {
|
|
179
|
+
a = t ? encodeURIComponent(e) : e, o += `${r}=${a}&`;
|
|
180
|
+
}), o.slice(0, -1)) : (a = t ? encodeURIComponent(i) : i, o = `${r}=${a}`), `${e}&${o}`;
|
|
181
|
+
}, "").substr(1) : null, p = (e, t = {}) => {
|
|
182
|
+
let n = Object.assign({
|
|
183
|
+
method: e.method || "GET",
|
|
184
|
+
headers: e.headers
|
|
185
|
+
}, t), r = d(e.headers)["content-type"] || "";
|
|
186
|
+
if (typeof e.data == "string") n.body = e.data;
|
|
187
|
+
else if (r.includes("application/x-www-form-urlencoded")) {
|
|
188
|
+
let t = new URLSearchParams();
|
|
189
|
+
for (let [n, r] of Object.entries(e.data || {})) t.set(n, r);
|
|
190
|
+
n.body = t.toString();
|
|
191
|
+
} else if (r.includes("multipart/form-data") || e.data instanceof FormData) {
|
|
192
|
+
let t = new FormData();
|
|
193
|
+
if (e.data instanceof FormData) e.data.forEach((e, n) => {
|
|
194
|
+
t.append(n, e);
|
|
195
|
+
});
|
|
196
|
+
else for (let n of Object.keys(e.data)) t.append(n, e.data[n]);
|
|
197
|
+
n.body = t;
|
|
198
|
+
let r = new Headers(n.headers);
|
|
199
|
+
r.delete("content-type"), n.headers = r;
|
|
200
|
+
} else (r.includes("application/json") || typeof e.data == "object") && (n.body = JSON.stringify(e.data));
|
|
201
|
+
return n;
|
|
202
|
+
}, m = class extends o {
|
|
203
|
+
async request(e) {
|
|
204
|
+
let t = p(e, e.webFetchExtra), n = f(e.params, e.shouldEncodeUrlParams), r = n ? `${e.url}?${n}` : e.url, i = await fetch(r, t), a = i.headers.get("content-type") || "", { responseType: o = "text" } = i.ok ? e : {};
|
|
205
|
+
a.includes("application/json") && (o = "json");
|
|
206
|
+
let s, c;
|
|
207
|
+
switch (o) {
|
|
208
|
+
case "arraybuffer":
|
|
209
|
+
case "blob":
|
|
210
|
+
c = await i.blob(), s = await u(c);
|
|
211
|
+
break;
|
|
212
|
+
case "json":
|
|
213
|
+
s = await i.json();
|
|
214
|
+
break;
|
|
215
|
+
default: s = await i.text();
|
|
216
|
+
}
|
|
217
|
+
let l = {};
|
|
218
|
+
return i.headers.forEach((e, t) => {
|
|
219
|
+
l[t] = e;
|
|
220
|
+
}), {
|
|
221
|
+
data: s,
|
|
222
|
+
headers: l,
|
|
223
|
+
status: i.status,
|
|
224
|
+
url: i.url
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
async get(e) {
|
|
228
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "GET" }));
|
|
229
|
+
}
|
|
230
|
+
async post(e) {
|
|
231
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "POST" }));
|
|
232
|
+
}
|
|
233
|
+
async put(e) {
|
|
234
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "PUT" }));
|
|
235
|
+
}
|
|
236
|
+
async patch(e) {
|
|
237
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "PATCH" }));
|
|
238
|
+
}
|
|
239
|
+
async delete(e) {
|
|
240
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "DELETE" }));
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
a("CapacitorHttp", { web: () => new m() });
|
|
244
|
+
var h;
|
|
245
|
+
(function(e) {
|
|
246
|
+
e.Dark = "DARK", e.Light = "LIGHT", e.Default = "DEFAULT";
|
|
247
|
+
})(h ||= {});
|
|
248
|
+
var g;
|
|
249
|
+
(function(e) {
|
|
250
|
+
e.StatusBar = "StatusBar", e.NavigationBar = "NavigationBar";
|
|
251
|
+
})(g ||= {});
|
|
252
|
+
var _ = class extends o {
|
|
253
|
+
async setStyle() {
|
|
254
|
+
this.unavailable("not available for web");
|
|
255
|
+
}
|
|
256
|
+
async setAnimation() {
|
|
257
|
+
this.unavailable("not available for web");
|
|
258
|
+
}
|
|
259
|
+
async show() {
|
|
260
|
+
this.unavailable("not available for web");
|
|
261
|
+
}
|
|
262
|
+
async hide() {
|
|
263
|
+
this.unavailable("not available for web");
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
a("SystemBars", { web: () => new _() });
|
|
267
|
+
//#endregion
|
|
268
|
+
export { a as n, o as t };
|
|
269
|
+
|
|
270
|
+
//# sourceMappingURL=dist-Cd2YtKy4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-Cd2YtKy4.js","names":[],"sources":["../../../../node_modules/.bun/@capacitor+core@8.4.0/node_modules/@capacitor/core/dist/index.js"],"sourcesContent":["/*! Capacitor: https://capacitorjs.com/ - MIT License */\nvar ExceptionCode;\n(function (ExceptionCode) {\n /**\n * API is not implemented.\n *\n * This usually means the API can't be used because it is not implemented for\n * the current platform.\n */\n ExceptionCode[\"Unimplemented\"] = \"UNIMPLEMENTED\";\n /**\n * API is not available.\n *\n * This means the API can't be used right now because:\n * - it is currently missing a prerequisite, such as network connectivity\n * - it requires a particular platform or browser version\n */\n ExceptionCode[\"Unavailable\"] = \"UNAVAILABLE\";\n})(ExceptionCode || (ExceptionCode = {}));\nclass CapacitorException extends Error {\n constructor(message, code, data) {\n super(message);\n this.message = message;\n this.code = code;\n this.data = data;\n }\n}\nconst getPlatformId = (win) => {\n var _a, _b;\n if (win === null || win === void 0 ? void 0 : win.androidBridge) {\n return 'android';\n }\n else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) {\n return 'ios';\n }\n else {\n return 'web';\n }\n};\n\nconst createCapacitor = (win) => {\n const capCustomPlatform = win.CapacitorCustomPlatform || null;\n const cap = win.Capacitor || {};\n const Plugins = (cap.Plugins = cap.Plugins || {});\n const getPlatform = () => {\n return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);\n };\n const isNativePlatform = () => getPlatform() !== 'web';\n const isPluginAvailable = (pluginName) => {\n const plugin = registeredPlugins.get(pluginName);\n if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {\n // JS implementation available for the current platform.\n return true;\n }\n if (getPluginHeader(pluginName)) {\n // Native implementation available.\n return true;\n }\n return false;\n };\n const getPluginHeader = (pluginName) => { var _a; return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find((h) => h.name === pluginName); };\n const handleError = (err) => win.console.error(err);\n const registeredPlugins = new Map();\n const registerPlugin = (pluginName, jsImplementations = {}) => {\n const registeredPlugin = registeredPlugins.get(pluginName);\n if (registeredPlugin) {\n console.warn(`Capacitor plugin \"${pluginName}\" already registered. Cannot register plugins twice.`);\n return registeredPlugin.proxy;\n }\n const platform = getPlatform();\n const pluginHeader = getPluginHeader(pluginName);\n let jsImplementation;\n const loadPluginImplementation = async () => {\n if (!jsImplementation && platform in jsImplementations) {\n jsImplementation =\n typeof jsImplementations[platform] === 'function'\n ? (jsImplementation = await jsImplementations[platform]())\n : (jsImplementation = jsImplementations[platform]);\n }\n else if (capCustomPlatform !== null && !jsImplementation && 'web' in jsImplementations) {\n jsImplementation =\n typeof jsImplementations['web'] === 'function'\n ? (jsImplementation = await jsImplementations['web']())\n : (jsImplementation = jsImplementations['web']);\n }\n return jsImplementation;\n };\n const createPluginMethod = (impl, prop) => {\n var _a, _b;\n if (pluginHeader) {\n const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find((m) => prop === m.name);\n if (methodHeader) {\n if (methodHeader.rtype === 'promise') {\n return (options) => cap.nativePromise(pluginName, prop.toString(), options);\n }\n else {\n return (options, callback) => cap.nativeCallback(pluginName, prop.toString(), options, callback);\n }\n }\n else if (impl) {\n return (_a = impl[prop]) === null || _a === void 0 ? void 0 : _a.bind(impl);\n }\n }\n else if (impl) {\n return (_b = impl[prop]) === null || _b === void 0 ? void 0 : _b.bind(impl);\n }\n else {\n throw new CapacitorException(`\"${pluginName}\" plugin is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n };\n const createPluginMethodWrapper = (prop) => {\n let remove;\n const wrapper = (...args) => {\n const p = loadPluginImplementation().then((impl) => {\n const fn = createPluginMethod(impl, prop);\n if (fn) {\n const p = fn(...args);\n remove = p === null || p === void 0 ? void 0 : p.remove;\n return p;\n }\n else {\n throw new CapacitorException(`\"${pluginName}.${prop}()\" is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n });\n if (prop === 'addListener') {\n p.remove = async () => remove();\n }\n return p;\n };\n // Some flair ✨\n wrapper.toString = () => `${prop.toString()}() { [capacitor code] }`;\n Object.defineProperty(wrapper, 'name', {\n value: prop,\n writable: false,\n configurable: false,\n });\n return wrapper;\n };\n const addListener = createPluginMethodWrapper('addListener');\n const removeListener = createPluginMethodWrapper('removeListener');\n const addListenerNative = (eventName, callback) => {\n const call = addListener({ eventName }, callback);\n const remove = async () => {\n const callbackId = await call;\n removeListener({\n eventName,\n callbackId,\n }, callback);\n };\n const p = new Promise((resolve) => call.then(() => resolve({ remove })));\n p.remove = async () => {\n console.warn(`Using addListener() without 'await' is deprecated.`);\n await remove();\n };\n return p;\n };\n const proxy = new Proxy({}, {\n get(_, prop) {\n switch (prop) {\n // https://github.com/facebook/react/issues/20030\n case '$$typeof':\n return undefined;\n case 'toJSON':\n return () => ({});\n case 'addListener':\n return pluginHeader ? addListenerNative : addListener;\n case 'removeListener':\n return removeListener;\n default:\n return createPluginMethodWrapper(prop);\n }\n },\n });\n Plugins[pluginName] = proxy;\n registeredPlugins.set(pluginName, {\n name: pluginName,\n proxy,\n platforms: new Set([...Object.keys(jsImplementations), ...(pluginHeader ? [platform] : [])]),\n });\n return proxy;\n };\n // Add in convertFileSrc for web, it will already be available in native context\n if (!cap.convertFileSrc) {\n cap.convertFileSrc = (filePath) => filePath;\n }\n cap.getPlatform = getPlatform;\n cap.handleError = handleError;\n cap.isNativePlatform = isNativePlatform;\n cap.isPluginAvailable = isPluginAvailable;\n cap.registerPlugin = registerPlugin;\n cap.Exception = CapacitorException;\n cap.DEBUG = !!cap.DEBUG;\n cap.isLoggingEnabled = !!cap.isLoggingEnabled;\n return cap;\n};\nconst initCapacitorGlobal = (win) => (win.Capacitor = createCapacitor(win));\n\nconst Capacitor = /*#__PURE__*/ initCapacitorGlobal(typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {});\nconst registerPlugin = Capacitor.registerPlugin;\n\n/**\n * Base class web plugins should extend.\n */\nclass WebPlugin {\n constructor() {\n this.listeners = {};\n this.retainedEventArguments = {};\n this.windowListeners = {};\n }\n addListener(eventName, listenerFunc) {\n let firstListener = false;\n const listeners = this.listeners[eventName];\n if (!listeners) {\n this.listeners[eventName] = [];\n firstListener = true;\n }\n this.listeners[eventName].push(listenerFunc);\n // If we haven't added a window listener for this event and it requires one,\n // go ahead and add it\n const windowListener = this.windowListeners[eventName];\n if (windowListener && !windowListener.registered) {\n this.addWindowListener(windowListener);\n }\n if (firstListener) {\n this.sendRetainedArgumentsForEvent(eventName);\n }\n const remove = async () => this.removeListener(eventName, listenerFunc);\n const p = Promise.resolve({ remove });\n return p;\n }\n async removeAllListeners() {\n this.listeners = {};\n for (const listener in this.windowListeners) {\n this.removeWindowListener(this.windowListeners[listener]);\n }\n this.windowListeners = {};\n }\n notifyListeners(eventName, data, retainUntilConsumed) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n if (retainUntilConsumed) {\n let args = this.retainedEventArguments[eventName];\n if (!args) {\n args = [];\n }\n args.push(data);\n this.retainedEventArguments[eventName] = args;\n }\n return;\n }\n listeners.forEach((listener) => listener(data));\n }\n hasListeners(eventName) {\n var _a;\n return !!((_a = this.listeners[eventName]) === null || _a === void 0 ? void 0 : _a.length);\n }\n registerWindowListener(windowEventName, pluginEventName) {\n this.windowListeners[pluginEventName] = {\n registered: false,\n windowEventName,\n pluginEventName,\n handler: (event) => {\n this.notifyListeners(pluginEventName, event);\n },\n };\n }\n unimplemented(msg = 'not implemented') {\n return new Capacitor.Exception(msg, ExceptionCode.Unimplemented);\n }\n unavailable(msg = 'not available') {\n return new Capacitor.Exception(msg, ExceptionCode.Unavailable);\n }\n async removeListener(eventName, listenerFunc) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n return;\n }\n const index = listeners.indexOf(listenerFunc);\n this.listeners[eventName].splice(index, 1);\n // If there are no more listeners for this type of event,\n // remove the window listener\n if (!this.listeners[eventName].length) {\n this.removeWindowListener(this.windowListeners[eventName]);\n }\n }\n addWindowListener(handle) {\n window.addEventListener(handle.windowEventName, handle.handler);\n handle.registered = true;\n }\n removeWindowListener(handle) {\n if (!handle) {\n return;\n }\n window.removeEventListener(handle.windowEventName, handle.handler);\n handle.registered = false;\n }\n sendRetainedArgumentsForEvent(eventName) {\n const args = this.retainedEventArguments[eventName];\n if (!args) {\n return;\n }\n delete this.retainedEventArguments[eventName];\n args.forEach((arg) => {\n this.notifyListeners(eventName, arg);\n });\n }\n}\n\nconst WebView = /*#__PURE__*/ registerPlugin('WebView');\n/******** END WEB VIEW PLUGIN ********/\n/******** COOKIES PLUGIN ********/\n/**\n * Safely web encode a string value (inspired by js-cookie)\n * @param str The string value to encode\n */\nconst encode = (str) => encodeURIComponent(str)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n/**\n * Safely web decode a string value (inspired by js-cookie)\n * @param str The string value to decode\n */\nconst decode = (str) => str.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent);\nclass CapacitorCookiesPluginWeb extends WebPlugin {\n async getCookies() {\n const cookies = document.cookie;\n const cookieMap = {};\n cookies.split(';').forEach((cookie) => {\n if (cookie.length <= 0)\n return;\n // Replace first \"=\" with CAP_COOKIE to prevent splitting on additional \"=\"\n let [key, value] = cookie.replace(/=/, 'CAP_COOKIE').split('CAP_COOKIE');\n key = decode(key).trim();\n value = decode(value).trim();\n cookieMap[key] = value;\n });\n return cookieMap;\n }\n async setCookie(options) {\n try {\n // Safely Encoded Key/Value\n const encodedKey = encode(options.key);\n const encodedValue = encode(options.value);\n // Clean & sanitize options\n const expires = options.expires ? `; expires=${options.expires.replace('expires=', '')}` : '';\n const path = (options.path || '/').replace('path=', ''); // Default is \"path=/\"\n const domain = options.url != null && options.url.length > 0 ? `domain=${options.url}` : '';\n document.cookie = `${encodedKey}=${encodedValue || ''}${expires}; path=${path}; ${domain};`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async deleteCookie(options) {\n try {\n document.cookie = `${options.key}=; Max-Age=0`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearCookies() {\n try {\n const cookies = document.cookie.split(';') || [];\n for (const cookie of cookies) {\n document.cookie = cookie.replace(/^ +/, '').replace(/=.*/, `=;expires=${new Date().toUTCString()};path=/`);\n }\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearAllCookies() {\n try {\n await this.clearCookies();\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n}\nconst CapacitorCookies = registerPlugin('CapacitorCookies', {\n web: () => new CapacitorCookiesPluginWeb(),\n});\n// UTILITY FUNCTIONS\n/**\n * Read in a Blob value and return it as a base64 string\n * @param blob The blob value to convert to a base64 string\n */\nconst readBlobAsBase64 = async (blob) => new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n const base64String = reader.result;\n // remove prefix \"data:application/pdf;base64,\"\n resolve(base64String.indexOf(',') >= 0 ? base64String.split(',')[1] : base64String);\n };\n reader.onerror = (error) => reject(error);\n reader.readAsDataURL(blob);\n});\n/**\n * Normalize an HttpHeaders map by lowercasing all of the values\n * @param headers The HttpHeaders object to normalize\n */\nconst normalizeHttpHeaders = (headers = {}) => {\n const originalKeys = Object.keys(headers);\n const loweredKeys = Object.keys(headers).map((k) => k.toLocaleLowerCase());\n const normalized = loweredKeys.reduce((acc, key, index) => {\n acc[key] = headers[originalKeys[index]];\n return acc;\n }, {});\n return normalized;\n};\n/**\n * Builds a string of url parameters that\n * @param params A map of url parameters\n * @param shouldEncode true if you should encodeURIComponent() the values (true by default)\n */\nconst buildUrlParams = (params, shouldEncode = true) => {\n if (!params)\n return null;\n const output = Object.entries(params).reduce((accumulator, entry) => {\n const [key, value] = entry;\n let encodedValue;\n let item;\n if (Array.isArray(value)) {\n item = '';\n value.forEach((str) => {\n encodedValue = shouldEncode ? encodeURIComponent(str) : str;\n item += `${key}=${encodedValue}&`;\n });\n // last character will always be \"&\" so slice it off\n item.slice(0, -1);\n }\n else {\n encodedValue = shouldEncode ? encodeURIComponent(value) : value;\n item = `${key}=${encodedValue}`;\n }\n return `${accumulator}&${item}`;\n }, '');\n // Remove initial \"&\" from the reduce\n return output.substr(1);\n};\n/**\n * Build the RequestInit object based on the options passed into the initial request\n * @param options The Http plugin options\n * @param extra Any extra RequestInit values\n */\nconst buildRequestInit = (options, extra = {}) => {\n const output = Object.assign({ method: options.method || 'GET', headers: options.headers }, extra);\n // Get the content-type\n const headers = normalizeHttpHeaders(options.headers);\n const type = headers['content-type'] || '';\n // If body is already a string, then pass it through as-is.\n if (typeof options.data === 'string') {\n output.body = options.data;\n }\n // Build request initializers based off of content-type\n else if (type.includes('application/x-www-form-urlencoded')) {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(options.data || {})) {\n params.set(key, value);\n }\n output.body = params.toString();\n }\n else if (type.includes('multipart/form-data') || options.data instanceof FormData) {\n const form = new FormData();\n if (options.data instanceof FormData) {\n options.data.forEach((value, key) => {\n form.append(key, value);\n });\n }\n else {\n for (const key of Object.keys(options.data)) {\n form.append(key, options.data[key]);\n }\n }\n output.body = form;\n const headers = new Headers(output.headers);\n headers.delete('content-type'); // content-type will be set by `window.fetch` to includy boundary\n output.headers = headers;\n }\n else if (type.includes('application/json') || typeof options.data === 'object') {\n output.body = JSON.stringify(options.data);\n }\n return output;\n};\n// WEB IMPLEMENTATION\nclass CapacitorHttpPluginWeb extends WebPlugin {\n /**\n * Perform an Http request given a set of options\n * @param options Options to build the HTTP request\n */\n async request(options) {\n const requestInit = buildRequestInit(options, options.webFetchExtra);\n const urlParams = buildUrlParams(options.params, options.shouldEncodeUrlParams);\n const url = urlParams ? `${options.url}?${urlParams}` : options.url;\n const response = await fetch(url, requestInit);\n const contentType = response.headers.get('content-type') || '';\n // Default to 'text' responseType so no parsing happens\n let { responseType = 'text' } = response.ok ? options : {};\n // If the response content-type is json, force the response to be json\n if (contentType.includes('application/json')) {\n responseType = 'json';\n }\n let data;\n let blob;\n switch (responseType) {\n case 'arraybuffer':\n case 'blob':\n blob = await response.blob();\n data = await readBlobAsBase64(blob);\n break;\n case 'json':\n data = await response.json();\n break;\n case 'document':\n case 'text':\n default:\n data = await response.text();\n }\n // Convert fetch headers to Capacitor HttpHeaders\n const headers = {};\n response.headers.forEach((value, key) => {\n headers[key] = value;\n });\n return {\n data,\n headers,\n status: response.status,\n url: response.url,\n };\n }\n /**\n * Perform an Http GET request given a set of options\n * @param options Options to build the HTTP request\n */\n async get(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));\n }\n /**\n * Perform an Http POST request given a set of options\n * @param options Options to build the HTTP request\n */\n async post(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));\n }\n /**\n * Perform an Http PUT request given a set of options\n * @param options Options to build the HTTP request\n */\n async put(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));\n }\n /**\n * Perform an Http PATCH request given a set of options\n * @param options Options to build the HTTP request\n */\n async patch(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));\n }\n /**\n * Perform an Http DELETE request given a set of options\n * @param options Options to build the HTTP request\n */\n async delete(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));\n }\n}\nconst CapacitorHttp = registerPlugin('CapacitorHttp', {\n web: () => new CapacitorHttpPluginWeb(),\n});\n/******** END HTTP PLUGIN ********/\n/******** SYSTEM BARS PLUGIN ********/\n/**\n * Available status bar styles.\n */\nvar SystemBarsStyle;\n(function (SystemBarsStyle) {\n /**\n * Light system bar content on a dark background.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Dark\"] = \"DARK\";\n /**\n * For dark system bar content on a light background.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Light\"] = \"LIGHT\";\n /**\n * The style is based on the device appearance or the underlying content.\n * If the device is using Dark mode, the system bars content will be light.\n * If the device is using Light mode, the system bars content will be dark.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Default\"] = \"DEFAULT\";\n})(SystemBarsStyle || (SystemBarsStyle = {}));\n/**\n * Available system bar types.\n */\nvar SystemBarType;\n(function (SystemBarType) {\n /**\n * The top status bar on both Android and iOS.\n *\n * @since 8.0.0\n */\n SystemBarType[\"StatusBar\"] = \"StatusBar\";\n /**\n * The navigation bar (or gesture bar on iOS) on both Android and iOS.\n *\n * @since 8.0.0\n */\n SystemBarType[\"NavigationBar\"] = \"NavigationBar\";\n})(SystemBarType || (SystemBarType = {}));\nclass SystemBarsPluginWeb extends WebPlugin {\n async setStyle() {\n this.unavailable('not available for web');\n }\n async setAnimation() {\n this.unavailable('not available for web');\n }\n async show() {\n this.unavailable('not available for web');\n }\n async hide() {\n this.unavailable('not available for web');\n }\n}\nconst SystemBars = registerPlugin('SystemBars', {\n web: () => new SystemBarsPluginWeb(),\n});\n/******** END SYSTEM BARS PLUGIN ********/\n\nexport { Capacitor, CapacitorCookies, CapacitorException, CapacitorHttp, ExceptionCode, SystemBarType, SystemBars, SystemBarsStyle, WebPlugin, WebView, buildRequestInit, registerPlugin };\n//# sourceMappingURL=index.js.map\n"],"x_google_ignoreList":[0],"mappings":";AACA,IAAI;CACH,SAAU,GAAe;CAetB,AARA,EAAc,gBAAmB,iBAQjC,EAAc,cAAiB;AACnC,GAAG,AAAkB,MAAgB,CAAC,CAAE;AACxC,IAAM,IAAN,cAAiC,MAAM;CACnC,YAAY,GAAS,GAAM,GAAM;EAI7B,AAHA,MAAM,CAAO,GACb,KAAK,UAAU,GACf,KAAK,OAAO,GACZ,KAAK,OAAO;CAChB;AACJ,GACM,KAAiB,MAEf,GAA8C,gBACvC,YAEU,GAA8C,QAAgD,iBAAyD,SACjK,QAGA,OAIT,KAAmB,MAAQ;CAC7B,IAAM,IAAoB,EAAI,2BAA2B,MACnD,IAAM,EAAI,aAAa,CAAC,GACxB,IAAW,EAAI,UAAU,EAAI,WAAW,CAAC,GACzC,UAC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GAAiB;CAoBxB,AAdA,EAAgB,OAAU,QAM1B,EAAgB,QAAW,SAQ3B,EAAgB,UAAa;AACjC,GAAG,AAAoB,MAAkB,CAAC,CAAE;AAI5C,IAAI;CACH,SAAU,GAAe;CAYtB,AANA,EAAc,YAAe,aAM7B,EAAc,gBAAmB;AACrC,GAAG,AAAkB,MAAgB,CAAC,CAAE;AACxC,IAAM,IAAN,cAAkC,EAAU;CACxC,MAAM,WAAW;EACb,KAAK,YAAY,uBAAuB;CAC5C;CACA,MAAM,eAAe;EACjB,KAAK,YAAY,uBAAuB;CAC5C;CACA,MAAM,OAAO;EACT,KAAK,YAAY,uBAAuB;CAC5C;CACA,MAAM,OAAO;EACT,KAAK,YAAY,uBAAuB;CAC5C;AACJ;AACmB,EAAe,cAAc,EAC5C,WAAW,IAAI,EAAoB,EACvC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as e } from "./dist-Cd2YtKy4.js";
|
|
2
|
+
//#region ../plugin-native-phone/dist/esm/web.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
return typeof e == "string" ? e.trim() : "";
|
|
5
|
+
}
|
|
6
|
+
function n(e) {
|
|
7
|
+
return typeof e == "object" && !!e;
|
|
8
|
+
}
|
|
9
|
+
function r(e, { requireNumber: r }) {
|
|
10
|
+
if (!n(e)) {
|
|
11
|
+
if (r) throw Error("number is required");
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (r && e.number === void 0 || e.number !== void 0 && !t(e.number)) throw Error("number is required");
|
|
15
|
+
}
|
|
16
|
+
function i(e) {
|
|
17
|
+
if (e !== void 0) {
|
|
18
|
+
if (!n(e)) throw Error("options must be an object");
|
|
19
|
+
if (e.limit !== void 0 && (typeof e.limit != "number" || !Number.isFinite(e.limit) || e.limit < 1 || e.limit > 500)) throw Error("limit must be between 1 and 500");
|
|
20
|
+
if (e.number !== void 0 && !t(e.number)) throw Error("number must be a non-empty string");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function a(e) {
|
|
24
|
+
if (!n(e) || !t(e.callId)) throw Error("callId is required");
|
|
25
|
+
if (!t(e.transcript)) throw Error("transcript is required");
|
|
26
|
+
}
|
|
27
|
+
var o = class extends e {
|
|
28
|
+
async getStatus() {
|
|
29
|
+
return {
|
|
30
|
+
hasTelecom: !1,
|
|
31
|
+
canPlaceCalls: !1,
|
|
32
|
+
isDefaultDialer: !1,
|
|
33
|
+
defaultDialerPackage: null
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
async placeCall(e) {
|
|
37
|
+
throw r(e, { requireNumber: !0 }), Error("Phone calls are only available on Android.");
|
|
38
|
+
}
|
|
39
|
+
async openDialer(e) {
|
|
40
|
+
throw r(e, { requireNumber: !1 }), Error("Phone dialer is only available on Android.");
|
|
41
|
+
}
|
|
42
|
+
async listRecentCalls(e) {
|
|
43
|
+
return i(e), { calls: [] };
|
|
44
|
+
}
|
|
45
|
+
async saveCallTranscript(e) {
|
|
46
|
+
throw a(e), Error("Call transcripts are only available on Android.");
|
|
47
|
+
}
|
|
48
|
+
async checkPermissions() {
|
|
49
|
+
return { phone: "granted" };
|
|
50
|
+
}
|
|
51
|
+
async requestPermissions() {
|
|
52
|
+
return { phone: "granted" };
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
export { o as PhoneWeb };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=web-TGRkTsa8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-TGRkTsa8.js","names":[],"sources":["../../../plugin-native-phone/dist/esm/web.js"],"sourcesContent":["import { WebPlugin } from \"@capacitor/core\";\nfunction nonEmptyString(value) {\n return typeof value === \"string\" ? value.trim() : \"\";\n}\nfunction isRecord(value) {\n return typeof value === \"object\" && value !== null;\n}\nfunction validateCallTarget(options, { requireNumber }) {\n if (!isRecord(options)) {\n if (requireNumber) {\n throw new Error(\"number is required\");\n }\n return;\n }\n if ((requireNumber && options.number === undefined) ||\n (options.number !== undefined && !nonEmptyString(options.number))) {\n throw new Error(\"number is required\");\n }\n}\nfunction validateRecentCallsOptions(options) {\n if (options === undefined) {\n return;\n }\n if (!isRecord(options)) {\n throw new Error(\"options must be an object\");\n }\n if (options.limit !== undefined) {\n if (typeof options.limit !== \"number\" ||\n !Number.isFinite(options.limit) ||\n options.limit < 1 ||\n options.limit > 500) {\n throw new Error(\"limit must be between 1 and 500\");\n }\n }\n if (options.number !== undefined && !nonEmptyString(options.number)) {\n throw new Error(\"number must be a non-empty string\");\n }\n}\nfunction validateTranscriptOptions(options) {\n if (!isRecord(options) || !nonEmptyString(options.callId)) {\n throw new Error(\"callId is required\");\n }\n if (!nonEmptyString(options.transcript)) {\n throw new Error(\"transcript is required\");\n }\n}\nexport class PhoneWeb extends WebPlugin {\n async getStatus() {\n return {\n hasTelecom: false,\n canPlaceCalls: false,\n isDefaultDialer: false,\n defaultDialerPackage: null,\n };\n }\n async placeCall(options) {\n validateCallTarget(options, { requireNumber: true });\n throw new Error(\"Phone calls are only available on Android.\");\n }\n async openDialer(options) {\n validateCallTarget(options, { requireNumber: false });\n throw new Error(\"Phone dialer is only available on Android.\");\n }\n async listRecentCalls(options) {\n validateRecentCallsOptions(options);\n return { calls: [] };\n }\n async saveCallTranscript(options) {\n validateTranscriptOptions(options);\n throw new Error(\"Call transcripts are only available on Android.\");\n }\n // Web has no phone permission model; report granted so the shared view flow\n // proceeds (call placement / call-log throw or return empty on web anyway).\n async checkPermissions() {\n return { phone: \"granted\" };\n }\n async requestPermissions() {\n return { phone: \"granted\" };\n }\n}\n//# sourceMappingURL=web.js.map"],"mappings":";;AACA,SAAS,EAAe,GAAO;CAC3B,OAAO,OAAO,KAAU,WAAW,EAAM,KAAK,IAAI;AACtD;AACA,SAAS,EAAS,GAAO;CACrB,OAAO,OAAO,KAAU,cAAY;AACxC;AACA,SAAS,EAAmB,GAAS,EAAE,oBAAiB;CACpD,IAAI,CAAC,EAAS,CAAO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BAAmB;EACrB,OAAO,EAAE,OAAO,UAAU;CAC9B;CACA,MAAM,qBAAqB;EACvB,OAAO,EAAE,OAAO,UAAU;CAC9B;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/plugin-phone",
|
|
3
|
-
"version": "2.0.3-beta.
|
|
3
|
+
"version": "2.0.3-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Phone app for Eliza — Android dialer/call-log overlay (@elizaos/capacitor-phone) and the iOS Phone Companion (pairing, chat-mirror, remote-session).",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"@capacitor/haptics": "8.0.2",
|
|
55
55
|
"@capacitor/preferences": "^8.0.1",
|
|
56
56
|
"@capacitor/push-notifications": "^8.0.0",
|
|
57
|
-
"@elizaos/capacitor-phone": "2.0.3-beta.
|
|
58
|
-
"@elizaos/core": "2.0.3-beta.
|
|
59
|
-
"@elizaos/plugin-browser": "2.0.3-beta.
|
|
60
|
-
"@elizaos/shared": "2.0.3-beta.
|
|
61
|
-
"@elizaos/ui": "2.0.3-beta.
|
|
57
|
+
"@elizaos/capacitor-phone": "2.0.3-beta.3",
|
|
58
|
+
"@elizaos/core": "2.0.3-beta.3",
|
|
59
|
+
"@elizaos/plugin-browser": "2.0.3-beta.3",
|
|
60
|
+
"@elizaos/shared": "2.0.3-beta.3",
|
|
61
|
+
"@elizaos/ui": "2.0.3-beta.3",
|
|
62
62
|
"lucide-react": "^1.0.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"category": "system",
|
|
72
72
|
"androidOnly": true,
|
|
73
73
|
"heroImage": "assets/hero.png"
|
|
74
|
-
}
|
|
74
|
+
},
|
|
75
|
+
"appRegister": "register"
|
|
75
76
|
},
|
|
76
77
|
"publishConfig": {
|
|
77
78
|
"access": "public"
|
|
@@ -93,5 +94,5 @@
|
|
|
93
94
|
"vite": "^8.0.0",
|
|
94
95
|
"vitest": "^4.0.17"
|
|
95
96
|
},
|
|
96
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "f54b0f4eaed317d59fa7dbcdce20f4cdb0734420"
|
|
97
98
|
}
|