@nethesis/phone-island 0.7.71 → 0.7.73
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/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/components/AlertGuard.js +1 -1
- package/dist/components/AlertGuard.js.map +1 -1
- package/dist/components/AlertView/Alert.js +1 -1
- package/dist/components/AlertView/Alert.js.map +1 -1
- package/dist/components/AlertView/index.js +1 -1
- package/dist/components/AlertView/index.js.map +1 -1
- package/dist/components/AudioBars.d.ts +9 -8
- package/dist/components/AudioBars.js +1 -1
- package/dist/components/AudioBars.js.map +1 -1
- package/dist/components/AudioPlayerView/Avatar.d.ts +6 -0
- package/dist/components/AudioPlayerView/Avatar.js +2 -0
- package/dist/components/AudioPlayerView/Avatar.js.map +1 -0
- package/dist/components/AudioPlayerView/Progress.d.ts +5 -0
- package/dist/components/AudioPlayerView/Progress.js +2 -0
- package/dist/components/AudioPlayerView/Progress.js.map +1 -0
- package/dist/components/AudioPlayerView/index.d.ts +5 -0
- package/dist/components/AudioPlayerView/index.js +2 -0
- package/dist/components/AudioPlayerView/index.js.map +1 -0
- package/dist/components/CallView/Actions.js +1 -1
- package/dist/components/CallView/Actions.js.map +1 -1
- package/dist/components/CallView/Avatar.js +1 -1
- package/dist/components/CallView/Avatar.js.map +1 -1
- package/dist/components/CallView/index.js +1 -1
- package/dist/components/Close.d.ts +3 -0
- package/dist/components/Close.js +2 -0
- package/dist/components/Close.js.map +1 -0
- package/dist/components/Events.js +1 -1
- package/dist/components/Events.js.map +1 -1
- package/dist/components/Island.d.ts +0 -1
- package/dist/components/Island.js +1 -1
- package/dist/components/Island.js.map +1 -1
- package/dist/components/IslandDrag.d.ts +7 -0
- package/dist/components/IslandDrag.js +2 -0
- package/dist/components/IslandDrag.js.map +1 -0
- package/dist/components/IslandMotion.d.ts +6 -0
- package/dist/components/IslandMotion.js +2 -0
- package/dist/components/IslandMotion.js.map +1 -0
- package/dist/components/KeypadView/Actions.js +1 -1
- package/dist/components/KeypadView/Actions.js.map +1 -1
- package/dist/components/Socket.js +1 -1
- package/dist/components/Socket.js.map +1 -1
- package/dist/components/TransferView/TransferActions.js +1 -1
- package/dist/components/TransferView/TransferActions.js.map +1 -1
- package/dist/components/TransferView/TransferList.js +1 -1
- package/dist/components/TransferView/TransferList.js.map +1 -1
- package/dist/components/WebRTC.js +1 -1
- package/dist/components/WebRTC.js.map +1 -1
- package/dist/events/CallEvents.js +1 -1
- package/dist/events/CallEvents.js.map +1 -1
- package/dist/events/PlayerEvents.d.ts +6 -0
- package/dist/events/PlayerEvents.js +2 -0
- package/dist/events/PlayerEvents.js.map +1 -0
- package/dist/events/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/lib/phone/audio.js +1 -1
- package/dist/lib/phone/audio.js.map +1 -1
- package/dist/lib/phone/call.js +1 -1
- package/dist/lib/phone/call.js.map +1 -1
- package/dist/lib/player/audio.d.ts +16 -0
- package/dist/lib/player/audio.js +2 -0
- package/dist/lib/player/audio.js.map +1 -0
- package/dist/models/audioBars.d.ts +46 -0
- package/dist/models/audioBars.js +2 -0
- package/dist/models/audioBars.js.map +1 -0
- package/dist/models/currentCall.d.ts +1 -1
- package/dist/models/currentCall.js +1 -1
- package/dist/models/currentCall.js.map +1 -1
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/island.d.ts +8 -8
- package/dist/models/island.js +1 -1
- package/dist/models/island.js.map +1 -1
- package/dist/models/motions.d.ts +280 -0
- package/dist/models/motions.js +2 -0
- package/dist/models/motions.js.map +1 -0
- package/dist/models/player.d.ts +131 -29
- package/dist/models/player.js +1 -1
- package/dist/models/player.js.map +1 -1
- package/dist/node_modules/@nethesis/nethesis-light-svg-icons/index.mjs.js +1 -1
- package/dist/node_modules/@nethesis/nethesis-light-svg-icons/index.mjs.js.map +1 -1
- package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js +1 -1
- package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js.map +1 -1
- package/dist/services/history_call.d.ts +8 -0
- package/dist/services/history_call.js +2 -0
- package/dist/services/history_call.js.map +1 -0
- package/dist/services/offhour.d.ts +9 -0
- package/dist/services/offhour.js +2 -0
- package/dist/services/offhour.js.map +1 -0
- package/dist/static/icons/PhoneKeypadLight.js +1 -1
- package/dist/static/icons/PhoneKeypadLight.js.map +1 -1
- package/dist/static/icons/PhoneKeypadSolid.js +1 -1
- package/dist/static/icons/PhoneKeypadSolid.js.map +1 -1
- package/dist/styles/Island.styles.js +1 -1
- package/dist/styles/Island.styles.js.map +1 -1
- package/dist/types/announcements.d.ts +8 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/player.d.ts +7 -0
- package/dist/utils/genericFunctions/player.d.ts +1 -0
- package/dist/utils/genericFunctions/player.js +2 -0
- package/dist/utils/genericFunctions/player.js.map +1 -0
- package/package.json +1 -1
- package/dist/models/animations.d.ts +0 -476
- package/dist/models/animations.js +0 -2
- package/dist/models/animations.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../node_modules/tslib/tslib.es6.js"),t=require("../store/index.js");exports.getCallRecording=function(r){return e.__awaiter(this,void 0,void 0,(function(){var s,n,a,o,c;return e.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),s=t.store.getState().fetchDefaults,n=s.baseURL,a=s.headers,[4,fetch("".concat(n,"/historycall/listen_callrec/").concat(r),{headers:e.__assign({},a)})];case 1:if(!(o=i.sent()).ok)throw new Error(o.statusText);return[4,o.json()];case 2:return[2,i.sent()];case 3:throw c=i.sent(),new Error(c);case 4:return[2]}}))}))},exports.getRecordingFileName=function(r){return e.__awaiter(this,void 0,void 0,(function(){var s,n,a,o,c;return e.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),s=t.store.getState().fetchDefaults,n=s.baseURL,a=s.headers,[4,fetch("".concat(n,"/historycall/down_callrec/").concat(r),{headers:e.__assign({},a)})];case 1:if(!(o=i.sent()).ok)throw new Error(o.statusText);return[4,o.json()];case 2:return[2,i.sent()];case 3:throw c=i.sent(),new Error(c);case 4:return[2]}}))}))};
|
|
2
|
+
//# sourceMappingURL=history_call.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history_call.js","sources":["../../src/services/history_call.ts"],"sourcesContent":["// Copyright (C) 2022 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { store } from '../store'\n\n/**\n * Get the call recording in base64 format\n */\nexport async function getCallRecording(id: string): Promise<string> {\n try {\n const { baseURL, headers } = store.getState().fetchDefaults\n const response = await fetch(`${baseURL}/historycall/listen_callrec/${id}`, {\n headers: { ...headers },\n })\n if (!response.ok) {\n throw new Error(response.statusText)\n }\n const data = await response.json()\n return data\n } catch (error: any) {\n throw new Error(error)\n }\n}\n\n/**\n * Returns the file name of the recording\n */\nexport async function getRecordingFileName(id: string): Promise<string> {\n try {\n const { baseURL, headers } = store.getState().fetchDefaults\n const response = await fetch(`${baseURL}/historycall/down_callrec/${id}`, {\n headers: { ...headers },\n })\n if (!response.ok) {\n throw new Error(response.statusText)\n }\n const data = await response.json()\n return data\n } catch (error: any) {\n throw new Error(error)\n }\n}\n"],"names":["id","_a","store","getState","fetchDefaults","baseURL","headers","fetch","concat","__assign","response","_b","sent","ok","Error","statusText","json","error_1","error_2"],"mappings":"gLAQM,SAAiCA,iIAGlB,6BADXC,EAAuBC,EAAKA,MAACC,WAAWC,cAAtCC,EAAOJ,EAAAI,QAAEC,EAAOL,EAAAK,QACP,CAAA,EAAMC,MAAM,GAAAC,OAAGH,EAAsC,gCAAAG,OAAAR,GAAM,CAC1EM,QAAOG,EAAAA,SAAA,CAAA,EAAOH,aAEhB,KAHMI,EAAWC,EAEfC,QACYC,GACZ,MAAM,IAAIC,MAAMJ,EAASK,YAEd,MAAA,CAAA,EAAML,EAASM,eAC5B,MAAA,CAAA,EADaL,EAAqBC,eAGlC,iBAAM,IAAIE,MAAMG,0BAEnB,+BAKK,SAAqCjB,iIAGtB,6BADXC,EAAuBC,EAAKA,MAACC,WAAWC,cAAtCC,EAAOJ,EAAAI,QAAEC,EAAOL,EAAAK,QACP,CAAA,EAAMC,MAAM,GAAAC,OAAGH,EAAoC,8BAAAG,OAAAR,GAAM,CACxEM,QAAOG,EAAAA,SAAA,CAAA,EAAOH,aAEhB,KAHMI,EAAWC,EAEfC,QACYC,GACZ,MAAM,IAAIC,MAAMJ,EAASK,YAEd,MAAA,CAAA,EAAML,EAASM,eAC5B,MAAA,CAAA,EADaL,EAAqBC,eAGlC,iBAAM,IAAIE,MAAMI,0BAEnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AnnouncementInfoTypes } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get announcement in base64 format
|
|
4
|
+
*/
|
|
5
|
+
export declare function getAnnouncement(id: string): Promise<string>;
|
|
6
|
+
/**
|
|
7
|
+
* Get the info of an announcement
|
|
8
|
+
*/
|
|
9
|
+
export declare function getAllAnnouncementsInfo(): Promise<AnnouncementInfoTypes[]>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../node_modules/tslib/tslib.es6.js"),t=require("../store/index.js");exports.getAllAnnouncementsInfo=function(){return e.__awaiter(this,void 0,void 0,(function(){var r,n,s,o,a;return e.__generator(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),r=t.store.getState().fetchDefaults,n=r.baseURL,s=r.headers,[4,fetch("".concat(n,"/offhour/list_announcement"),{headers:e.__assign({},s)})];case 1:if(!(o=u.sent()).ok)throw new Error(o.statusText);return[4,o.json()];case 2:return[2,u.sent()];case 3:throw a=u.sent(),new Error(a);case 4:return[2]}}))}))},exports.getAnnouncement=function(r){return e.__awaiter(this,void 0,void 0,(function(){var n,s,o,a,u;return e.__generator(this,(function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),n=t.store.getState().fetchDefaults,s=n.baseURL,o=n.headers,[4,fetch("".concat(s,"/offhour/listen_announcement/").concat(r),{headers:e.__assign({},o)})];case 1:if(!(a=c.sent()).ok)throw new Error(a.statusText);return[4,a.json()];case 2:return[2,c.sent()];case 3:throw u=c.sent(),new Error(u);case 4:return[2]}}))}))};
|
|
2
|
+
//# sourceMappingURL=offhour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offhour.js","sources":["../../src/services/offhour.ts"],"sourcesContent":["// Copyright (C) 2022 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { store } from '../store'\nimport type { AnnouncementInfoTypes } from '../types'\n\n/**\n * Get announcement in base64 format\n */\nexport async function getAnnouncement(id: string): Promise<string> {\n try {\n const { baseURL, headers } = store.getState().fetchDefaults\n const response = await fetch(`${baseURL}/offhour/listen_announcement/${id}`, {\n headers: { ...headers },\n })\n if (!response.ok) {\n throw new Error(response.statusText)\n }\n const data = await response.json()\n return data\n } catch (error: any) {\n throw new Error(error)\n }\n}\n\n/**\n * Get the info of an announcement\n */\nexport async function getAllAnnouncementsInfo(): Promise<AnnouncementInfoTypes[]> {\n try {\n const { baseURL, headers } = store.getState().fetchDefaults\n const response = await fetch(`${baseURL}/offhour/list_announcement`, {\n headers: { ...headers },\n })\n if (!response.ok) {\n throw new Error(response.statusText)\n }\n const data = await response.json()\n return data\n } catch (error: any) {\n throw new Error(error)\n }\n}\n"],"names":["_a","store","getState","fetchDefaults","baseURL","headers","fetch","concat","__assign","response","_b","sent","ok","Error","statusText","json","error_2","id","error_1"],"mappings":"gUA+BqB,6BADXA,EAAuBC,EAAKA,MAACC,WAAWC,cAAtCC,EAAOJ,EAAAI,QAAEC,EAAOL,EAAAK,QACP,CAAA,EAAMC,MAAM,GAAGC,OAAAH,gCAAqC,CACnEC,QAAOG,EAAAA,SAAA,CAAA,EAAOH,aAEhB,KAHMI,EAAWC,EAEfC,QACYC,GACZ,MAAM,IAAIC,MAAMJ,EAASK,YAEd,MAAA,CAAA,EAAML,EAASM,eAC5B,MAAA,CAAA,EADaL,EAAqBC,eAGlC,iBAAM,IAAIE,MAAMG,0BAEnB,0BAjCK,SAAgCC,iIAGjB,6BADXjB,EAAuBC,EAAKA,MAACC,WAAWC,cAAtCC,EAAOJ,EAAAI,QAAEC,EAAOL,EAAAK,QACP,CAAA,EAAMC,MAAM,GAAAC,OAAGH,EAAuC,iCAAAG,OAAAU,GAAM,CAC3EZ,QAAOG,EAAAA,SAAA,CAAA,EAAOH,aAEhB,KAHMI,EAAWC,EAEfC,QACYC,GACZ,MAAM,IAAIC,MAAMJ,EAASK,YAEd,MAAA,CAAA,EAAML,EAASM,eAC5B,MAAA,CAAA,EADaL,EAAqBC,eAGlC,iBAAM,IAAIE,MAAMK,0BAEnB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js");function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var a=t(require("react"));exports.default=function(t){return a.createElement("svg",e.__assign({"aria-hidden":"true",focusable:"false",width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("g",{clipPath:"url(#a)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},a.createElement("path",{d:"M3 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM3 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM3 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js");function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var a=t(require("react"));exports.default=function(t){return a.createElement("svg",e.__assign({className:"pi-pointer-events-none","aria-hidden":"true",focusable:"false",width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("g",{clipPath:"url(#a)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"},a.createElement("path",{d:"M3 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM3 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM3 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})))};
|
|
2
2
|
//# sourceMappingURL=PhoneKeypadLight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneKeypadLight.js","sources":["../../../src/static/icons/PhoneKeypadLight.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"PhoneKeypadLight.js","sources":["../../../src/static/icons/PhoneKeypadLight.tsx"],"sourcesContent":["// Copyright (C) 2022 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport * as React from 'react'\n\nconst PhoneKeyboardLight = (props) => (\n <svg\n className='pi-pointer-events-none'\n aria-hidden='true'\n focusable='false'\n width={22}\n height={22}\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n {...props}\n >\n <g clipPath='url(#a)' fillRule='evenodd' clipRule='evenodd' fill='#fff'>\n <path d='M3 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM3 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM3 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM11 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM19 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z' />\n </g>\n </svg>\n)\n\nexport default PhoneKeyboardLight\n"],"names":["props","React","createElement","__assign","className","focusable","width","height","fill","xmlns","clipPath","fillRule","clipRule","d"],"mappings":"ocAK2B,SAACA,GAAU,OACpCC,EACEC,cAAA,MAAAC,WAAA,CAAAC,UAAU,yBAAwB,cACtB,OACZC,UAAU,QACVC,MAAO,GACPC,OAAQ,GACRC,KAAK,OACLC,MAAM,8BACFT,GAEJC,EAAAC,cAAA,IAAA,CAAGQ,SAAS,UAAUC,SAAS,UAAUC,SAAS,UAAUJ,KAAK,QAC/DP,EAAMC,cAAA,OAAA,CAAAW,EAAE,omBAZwB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js");function r(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(c){if("default"!==c){var t=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(r,c,t.get?t:{enumerable:!0,get:function(){return e[c]}})}})),r.default=e,Object.freeze(r)}var c=r(require("react"));exports.default=function(r){return c.createElement("svg",e.__assign({"aria-hidden":"true",focusable:"false",width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.createElement("g",{clipPath:"url(#a)",fill:"#fff"},c.createElement("circle",{cx:3,cy:3,r:3}),c.createElement("circle",{cx:19,cy:3,r:3}),c.createElement("circle",{cx:11,cy:3,r:3}),c.createElement("circle",{cx:3,cy:11,r:3}),c.createElement("circle",{cx:19,cy:11,r:3}),c.createElement("circle",{cx:11,cy:11,r:3}),c.createElement("circle",{cx:3,cy:19,r:3}),c.createElement("circle",{cx:19,cy:19,r:3}),c.createElement("circle",{cx:11,cy:19,r:3})))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js");function r(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(c){if("default"!==c){var t=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(r,c,t.get?t:{enumerable:!0,get:function(){return e[c]}})}})),r.default=e,Object.freeze(r)}var c=r(require("react"));exports.default=function(r){return c.createElement("svg",e.__assign({className:"pi-pointer-events-none","aria-hidden":"true",focusable:"false",width:22,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.createElement("g",{clipPath:"url(#a)",fill:"#fff"},c.createElement("circle",{cx:3,cy:3,r:3}),c.createElement("circle",{cx:19,cy:3,r:3}),c.createElement("circle",{cx:11,cy:3,r:3}),c.createElement("circle",{cx:3,cy:11,r:3}),c.createElement("circle",{cx:19,cy:11,r:3}),c.createElement("circle",{cx:11,cy:11,r:3}),c.createElement("circle",{cx:3,cy:19,r:3}),c.createElement("circle",{cx:19,cy:19,r:3}),c.createElement("circle",{cx:11,cy:19,r:3})))};
|
|
2
2
|
//# sourceMappingURL=PhoneKeypadSolid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneKeypadSolid.js","sources":["../../../src/static/icons/PhoneKeypadSolid.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"PhoneKeypadSolid.js","sources":["../../../src/static/icons/PhoneKeypadSolid.tsx"],"sourcesContent":["// Copyright (C) 2022 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport * as React from 'react'\n\nconst PhoneKeyboardSolid = (props) => (\n <svg\n className='pi-pointer-events-none'\n aria-hidden='true'\n focusable='false'\n width={22}\n height={22}\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n {...props}\n >\n <g clipPath='url(#a)' fill='#fff'>\n <circle cx={3} cy={3} r={3} />\n <circle cx={19} cy={3} r={3} />\n <circle cx={11} cy={3} r={3} />\n <circle cx={3} cy={11} r={3} />\n <circle cx={19} cy={11} r={3} />\n <circle cx={11} cy={11} r={3} />\n <circle cx={3} cy={19} r={3} />\n <circle cx={19} cy={19} r={3} />\n <circle cx={11} cy={19} r={3} />\n </g>\n </svg>\n)\n\nexport default PhoneKeyboardSolid\n"],"names":["props","React","createElement","__assign","className","focusable","width","height","fill","xmlns","clipPath","cx","cy","r"],"mappings":"ocAK2B,SAACA,GAAU,OACpCC,EACEC,cAAA,MAAAC,WAAA,CAAAC,UAAU,yBAAwB,cACtB,OACZC,UAAU,QACVC,MAAO,GACPC,OAAQ,GACRC,KAAK,OACLC,MAAM,8BACFT,GAEJC,EAAAC,cAAA,IAAA,CAAGQ,SAAS,UAAUF,KAAK,QACzBP,EAAQC,cAAA,SAAA,CAAAS,GAAI,EAAGC,GAAI,EAAGC,EAAG,IACzBZ,EAAQC,cAAA,SAAA,CAAAS,GAAI,GAAIC,GAAI,EAAGC,EAAG,IAC1BZ,EAAQC,cAAA,SAAA,CAAAS,GAAI,GAAIC,GAAI,EAAGC,EAAG,IAC1BZ,EAAQC,cAAA,SAAA,CAAAS,GAAI,EAAGC,GAAI,GAAIC,EAAG,IAC1BZ,EAAQC,cAAA,SAAA,CAAAS,GAAI,GAAIC,GAAI,GAAIC,EAAG,IAC3BZ,EAAQC,cAAA,SAAA,CAAAS,GAAI,GAAIC,GAAI,GAAIC,EAAG,IAC3BZ,EAAQC,cAAA,SAAA,CAAAS,GAAI,EAAGC,GAAI,GAAIC,EAAG,IAC1BZ,EAAQC,cAAA,SAAA,CAAAS,GAAI,GAAIC,GAAI,GAAIC,EAAG,IAC3BZ,EAAAC,cAAA,SAAA,CAAQS,GAAI,GAAIC,GAAI,GAAIC,EAAG,KAGhC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../node_modules/tslib/tslib.es6.js"),n=require("../node_modules/styled-components/dist/styled-components.browser.esm.js"),t=n.default.div(l||(l=e.__makeTemplateObject(["\n display: grid;\n align-items: ",";\n ","\n"],["\n display: grid;\n align-items: ",";\n ","\n"])),(function(e){return e.isOpen?"flex-start":"center"}),(function(t){var i=t.isOpen,l=t.accepted,o=t.incoming,s=t.outgoing;return i&&l?n.css(r||(r=e.__makeTemplateObject(["\n grid-template-rows: 72px 1fr;\n "],["\n grid-template-rows: 72px 1fr;\n "]))):i&&o?n.css(p||(p=e.__makeTemplateObject(["\n grid-template-columns: 256px 114px;\n "],["\n grid-template-columns: 256px 114px;\n "]))):i&&s&&n.css(a||(a=e.__makeTemplateObject(["\n grid-template-columns: 1fr 84px;\n "],["\n grid-template-columns: 1fr 84px;\n "])))})),i=n.default.div(o||(o=e.__makeTemplateObject(["\n display: grid;\n grid-template-columns: ",";\n grid-gap: ",";\n align-items: ",";\n justify-content: center;\n width: 100%;\n"],["\n display: grid;\n grid-template-columns: ",";\n grid-gap: ",";\n align-items: ",";\n justify-content: center;\n width: 100%;\n"])),(function(e){var n=e.isOpen,t=e.incoming,i=e.accepted,r=e.outgoing;return n&&!i&&r?"48px 1fr":n&&!i&&t?"48px 1fr 1px":n&&i?"48px 164px 48px":n||i?"24px 66px 24px":"24px 102px"}),(function(e){return e.isOpen?"20px":"12px"}),(function(e){return e.isOpen?"flex-start":"center"}));n.default.div(s||(s=e.__makeTemplateObject(["\n object-fit: cover;\n"],["\n object-fit: cover;\n"])));var r,p,a,l,o,s,m,f,c,d,g=n.default.div(m||(m=e.__makeTemplateObject(["\n display: grid;\n align-self: center;\n grid-template-columns: 1fr;\n grid-template-rows: repeat(2, 24px);\n"],["\n display: grid;\n align-self: center;\n grid-template-columns: 1fr;\n grid-template-rows: repeat(2, 24px);\n"]))),x=n.default.div(f||(f=e.__makeTemplateObject(["\n ",";\n max-height: 24px;\n font-weight: 200;\n color: #fff;\n letter-spacing: 0.5px;\n max-width: fit-content;\n"],["\n ",";\n max-height: 24px;\n font-weight: 200;\n color: #fff;\n letter-spacing: 0.5px;\n max-width: fit-content;\n"])),(function(e){var n=e.isOpen;return"large"===e.size?n?"font-size: 1.25rem":"font-size: 1.2rem":"font-size: 1rem"})),u=n.default.div(c||(c=e.__makeTemplateObject(["\n font-size: ","};\n max-height: 24px;\n font-weight: 200;\n color: #fff;\n letter-spacing: 0.5px;\n max-width: fit-content;\n"],["\n font-size: ","};\n max-height: 24px;\n font-weight: 200;\n color: #fff;\n letter-spacing: 0.5px;\n max-width: fit-content;\n"])),(function(e){return e.isOpen?"1.25rem":"1.2rem"})),_=n.default.div(d||(d=e.__makeTemplateObject(["\n font-size: 1rem;\n font-weight: 700;\n color: #fff;\n"],["\n font-size: 1rem;\n font-weight: 700;\n color: #fff;\n"])));exports.StyledCallView=t,exports.StyledDetails=g,exports.StyledName=_,exports.StyledNumber=u,exports.StyledTimer=x,exports.StyledTopContent=i;
|
|
2
2
|
//# sourceMappingURL=Island.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Island.styles.js","sources":["../../src/styles/Island.styles.ts"],"sourcesContent":["// Copyright (C) 2022 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport styled, { css } from 'styled-components'\n\nexport const StyledCallView = styled.div<StyledCallViewProps>`\n display: grid;\n align-items: ${({ isOpen }) => (isOpen ? 'flex-start' : 'center')};\n ${({ isOpen, accepted, incoming, outgoing }) =>\n isOpen && accepted\n ? css`\n grid-template-rows: 72px 1fr;\n `\n : isOpen && incoming\n ? css`\n grid-template-columns: 256px 114px;\n `\n : isOpen &&\n outgoing &&\n css`\n grid-template-columns: 1fr 84px;\n `}\n`\n\nexport const StyledTopContent = styled.div<StyledTopContentProps>`\n display: grid;\n grid-template-columns: ${({ isOpen, incoming, accepted, outgoing }) =>\n isOpen && !accepted && outgoing\n ? '48px 1fr'\n : isOpen && !accepted && incoming\n ? '48px 1fr 1px'\n : isOpen && accepted\n ? '48px 164px 48px'\n : !isOpen && !accepted\n ? '24px 102px'\n : '24px 66px 24px'};\n grid-gap: ${({ isOpen }) => (isOpen ? '20px' : '12px')};\n align-items: ${({ isOpen }) => (isOpen ? 'flex-start' : 'center')};\n justify-content: center;\n width: 100%;\n`\n\nexport const StyledAvatar = styled.div`\n object-fit: cover;\n`\n\nexport const StyledDetails = styled.div<StyledDetailsProps>`\n display: grid;\n align-self: center;\n grid-template-columns: 1fr;\n grid-template-rows: repeat(2, 24px);\n`\n\nexport const StyledTimer = styled.div<StyledTimerProps>`\n ${({ isOpen, size }) =>\n size === 'large' ? (isOpen ? 'font-size: 1.25rem' : 'font-size: 1.2rem') : 'font-size: 1rem'};\n max-height: 24px;\n font-weight: 200;\n color: #fff;\n letter-spacing: 0.5px;\n max-width: fit-content;\n`\n\nexport const StyledNumber = styled.div<StyledNumberProps>`\n font-size: ${({ isOpen }) => (isOpen ? '1.25rem' : '1.2rem')}};\n max-height: 24px;\n font-weight: 200;\n color: #fff;\n letter-spacing: 0.5px;\n max-width: fit-content;\n`\n\nexport const StyledName = styled.div`\n font-size: 1rem;\n font-weight: 700;\n color: #fff;\n`\n\ninterface StyledCallViewProps {\n isOpen?: boolean\n incoming?: boolean\n openedIslandPadding?: number\n accepted?: boolean\n outgoing?: boolean\n}\n\ninterface StyledTopContentProps {\n isOpen: boolean\n incoming: boolean\n accepted: boolean\n outgoing: boolean\n}\n\ninterface StyledDetailsProps {\n numberExists?: boolean\n}\n\ninterface StyledTimerProps {\n isOpen: boolean\n size: 'small' | 'large'\n}\n\ninterface StyledNumberProps {\n isOpen: boolean\n}\n"],"names":["StyledCallView","styled","div","templateObject_4","__makeTemplateObject","_a","isOpen","accepted","incoming","outgoing","css","templateObject_1","templateObject_2","templateObject_3","StyledTopContent","templateObject_5","
|
|
1
|
+
{"version":3,"file":"Island.styles.js","sources":["../../src/styles/Island.styles.ts"],"sourcesContent":["// Copyright (C) 2022 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport styled, { css } from 'styled-components'\n\nexport const StyledCallView = styled.div<StyledCallViewProps>`\n display: grid;\n align-items: ${({ isOpen }) => (isOpen ? 'flex-start' : 'center')};\n ${({ isOpen, accepted, incoming, outgoing }) =>\n isOpen && accepted\n ? css`\n grid-template-rows: 72px 1fr;\n `\n : isOpen && incoming\n ? css`\n grid-template-columns: 256px 114px;\n `\n : isOpen &&\n outgoing &&\n css`\n grid-template-columns: 1fr 84px;\n `}\n`\n\nexport const StyledTopContent = styled.div<StyledTopContentProps>`\n display: grid;\n grid-template-columns: ${({ isOpen, incoming, accepted, outgoing }) =>\n isOpen && !accepted && outgoing\n ? '48px 1fr'\n : isOpen && !accepted && incoming\n ? '48px 1fr 1px'\n : isOpen && accepted\n ? '48px 164px 48px'\n : !isOpen && !accepted\n ? '24px 102px'\n : '24px 66px 24px'};\n grid-gap: ${({ isOpen }) => (isOpen ? '20px' : '12px')};\n align-items: ${({ isOpen }) => (isOpen ? 'flex-start' : 'center')};\n justify-content: center;\n width: 100%;\n`\n\nexport const StyledAvatar = styled.div`\n object-fit: cover;\n`\n\nexport const StyledDetails = styled.div<StyledDetailsProps>`\n display: grid;\n align-self: center;\n grid-template-columns: 1fr;\n grid-template-rows: repeat(2, 24px);\n`\n\nexport const StyledTimer = styled.div<StyledTimerProps>`\n ${({ isOpen, size }) =>\n size === 'large' ? (isOpen ? 'font-size: 1.25rem' : 'font-size: 1.2rem') : 'font-size: 1rem'};\n max-height: 24px;\n font-weight: 200;\n color: #fff;\n letter-spacing: 0.5px;\n max-width: fit-content;\n`\n\nexport const StyledNumber = styled.div<StyledNumberProps>`\n font-size: ${({ isOpen }) => (isOpen ? '1.25rem' : '1.2rem')}};\n max-height: 24px;\n font-weight: 200;\n color: #fff;\n letter-spacing: 0.5px;\n max-width: fit-content;\n`\n\nexport const StyledName = styled.div`\n font-size: 1rem;\n font-weight: 700;\n color: #fff;\n`\n\ninterface StyledCallViewProps {\n isOpen?: boolean\n incoming?: boolean\n openedIslandPadding?: number\n accepted?: boolean\n outgoing?: boolean\n}\n\ninterface StyledTopContentProps {\n isOpen: boolean\n incoming: boolean\n accepted: boolean\n outgoing: boolean\n}\n\ninterface StyledDetailsProps {\n numberExists?: boolean\n}\n\ninterface StyledTimerProps {\n isOpen: boolean\n size: 'small' | 'large'\n}\n\ninterface StyledNumberProps {\n isOpen: boolean\n}\n"],"names":["StyledCallView","styled","div","templateObject_4","__makeTemplateObject","_a","isOpen","accepted","incoming","outgoing","css","templateObject_1","templateObject_2","templateObject_3","StyledTopContent","templateObject_5","templateObject_6","StyledDetails","templateObject_7","StyledTimer","templateObject_8","size","StyledNumber","templateObject_9","StyledName","templateObject_10"],"mappings":"6MAKaA,EAAiBC,EAAM,QAACC,IAAwBC,IAAAA,EAAAC,EAAAA,qBAAA,CAAA,sCAAA,QAAA,MAAA,CAAA,sCAEM,QAc1D,SAdQ,SAACC,GAAe,OAAPA,EAAAC,OAAiB,aAAe,QAAzB,IAC7B,SAACD,OAAEC,EAAMD,EAAAC,OAAEC,EAAQF,EAAAE,SAAEC,EAAQH,EAAAG,SAAEC,EAAQJ,EAAAI,SACvC,OAAAH,GAAUC,EACNG,EAAAA,IAAGC,IAAAA,EAAAP,EAAAA,qBAAA,CAAA,uDAAA,CAAA,0DAGHE,GAAUE,EACVE,MAAGE,IAAAA,EAAAR,uBAAA,CAAA,6DAAA,CAAA,gEAGHE,GACAG,GACAC,EAAGA,IAAAG,IAAAA,EAAAT,EAAAA,qBAAA,CAAA,0DAAA,CAAA,4DAVP,IAeSU,EAAmBb,EAAAA,QAAOC,IAAGa,IAAAA,EAAAX,uBAAA,CAAA,gDAAA,kBAAA,qBAAA,mDAAA,CAAuB,gDAWzC,kBACgC,qBACW,sDAXxC,SAACC,OAAEC,EAAMD,EAAAC,OAAEE,EAAQH,EAAAG,SAAED,EAAQF,EAAAE,SAAEE,EAAQJ,EAAAI,SAC9D,OAAAH,IAAWC,GAAYE,EACnB,WACAH,IAAWC,GAAYC,EACvB,eACAF,GAAUC,EACV,kBACCD,GAAWC,EAEZ,iBADA,YAPJ,IASU,SAACF,GAAe,OAAPA,EAAAC,OAAiB,OAAS,MAAnB,IACb,SAACD,GAAe,OAAPA,EAAAC,OAAiB,aAAe,QAAzB,IAKLL,EAAAA,QAAOC,IAAGc,IAAAA,EAAAZ,EAAAA,qBAAA,CAAA,4BAAA,CAAA,+BAIzB,wBAAAa,EAAgBhB,EAAM,QAACC,IAAGgB,IAAAA,EAAAd,uBAAA,CAAA,sHAAA,CAAoB,yHAO9Ce,EAAclB,EAAM,QAACC,IAAGkB,IAAAA,EAAAhB,EAAAA,qBAAA,CAAA,OAAA,sHAAA,CAAkB,OAEyC,yHAD5F,SAACC,OAAEC,EAAMD,EAAAC,OACT,MAAS,UADMD,EAAAgB,KACKf,EAAS,qBAAuB,oBAAuB,iBAA3E,IAQSgB,EAAerB,EAAM,QAACC,IAAGqB,IAAAA,EAAAnB,EAAAA,qBAAA,CAAA,kBAAA,uHAAA,CAAmB,kBACK,0HAA/C,SAACC,GAAe,OAAPA,EAAAC,OAAiB,UAAY,QAAtB,IAQlBkB,EAAavB,EAAM,QAACC,IAAGuB,IAAAA,EAAArB,uBAAA,CAAA,+DAAA,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatTime: (time: any) => string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.formatTime=function(t){if(t&&!isNaN(t)){var o=Math.floor(t/60),c=o<10?"0".concat(o):"".concat(o),e=Math.floor(t%60),r=e<10?"0".concat(e):"".concat(e);return"".concat(c,":").concat(r)}return"00:00"};
|
|
2
|
+
//# sourceMappingURL=player.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player.js","sources":["../../../src/utils/genericFunctions/player.ts"],"sourcesContent":["// Copyright (C) 2022 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nexport const formatTime = (time) => {\n if (time && !isNaN(time)) {\n const minutes = Math.floor(time / 60)\n const formatMinutes = minutes < 10 ? `0${minutes}` : `${minutes}`\n const seconds = Math.floor(time % 60)\n const formatSeconds = seconds < 10 ? `0${seconds}` : `${seconds}`\n return `${formatMinutes}:${formatSeconds}`\n }\n return '00:00'\n}\n"],"names":["time","isNaN","minutes","Math","floor","formatMinutes","concat","seconds","formatSeconds"],"mappings":"uFAG0B,SAACA,GACzB,GAAIA,IAASC,MAAMD,GAAO,CACxB,IAAME,EAAUC,KAAKC,MAAMJ,EAAO,IAC5BK,EAAgBH,EAAU,GAAK,IAAII,OAAAJ,GAAY,GAAGI,OAAAJ,GAClDK,EAAUJ,KAAKC,MAAMJ,EAAO,IAC5BQ,EAAgBD,EAAU,GAAK,IAAID,OAAAC,GAAY,GAAGD,OAAAC,GACxD,MAAO,GAAGD,OAAAD,EAAiB,KAAAC,OAAAE,EAC5B,CACD,MAAO,OACT"}
|