@nethesis/phone-island 0.7.72 → 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/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
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
import type { RootModel } from '.';
|
|
2
|
-
declare const defaultState: {
|
|
3
|
-
variants: {
|
|
4
|
-
callView: {
|
|
5
|
-
expandedIncoming: {
|
|
6
|
-
width: string;
|
|
7
|
-
height: string;
|
|
8
|
-
borderRadius: string;
|
|
9
|
-
padding: string;
|
|
10
|
-
};
|
|
11
|
-
expandedIncomingWithAlerts: {
|
|
12
|
-
width: string;
|
|
13
|
-
height: string;
|
|
14
|
-
borderRadius: string;
|
|
15
|
-
padding: string;
|
|
16
|
-
};
|
|
17
|
-
expandedAccepted: {
|
|
18
|
-
width: string;
|
|
19
|
-
height: string;
|
|
20
|
-
borderRadius: string;
|
|
21
|
-
padding: string;
|
|
22
|
-
};
|
|
23
|
-
expandedAcceptedWithAlerts: {
|
|
24
|
-
width: string;
|
|
25
|
-
height: string;
|
|
26
|
-
borderRadius: string;
|
|
27
|
-
padding: string;
|
|
28
|
-
};
|
|
29
|
-
collapsed: {
|
|
30
|
-
width: string;
|
|
31
|
-
height: string;
|
|
32
|
-
borderRadius: string;
|
|
33
|
-
padding: string;
|
|
34
|
-
};
|
|
35
|
-
transfer: {
|
|
36
|
-
expanded: {
|
|
37
|
-
width: string;
|
|
38
|
-
height: string;
|
|
39
|
-
borderRadius: string;
|
|
40
|
-
padding: string;
|
|
41
|
-
};
|
|
42
|
-
expandedWithAlerts: {
|
|
43
|
-
width: string;
|
|
44
|
-
height: string;
|
|
45
|
-
borderRadius: string;
|
|
46
|
-
padding: string;
|
|
47
|
-
};
|
|
48
|
-
collapsed: {
|
|
49
|
-
width: string;
|
|
50
|
-
height: string;
|
|
51
|
-
borderRadius: string;
|
|
52
|
-
padding: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
keypadView: {
|
|
57
|
-
expandedWithAlerts: {
|
|
58
|
-
width: string;
|
|
59
|
-
height: string;
|
|
60
|
-
borderRadius: string;
|
|
61
|
-
padding: string;
|
|
62
|
-
};
|
|
63
|
-
expanded: {
|
|
64
|
-
width: string;
|
|
65
|
-
height: string;
|
|
66
|
-
borderRadius: string;
|
|
67
|
-
padding: string;
|
|
68
|
-
};
|
|
69
|
-
collapsed: {
|
|
70
|
-
width: string;
|
|
71
|
-
height: string;
|
|
72
|
-
borderRadius: string;
|
|
73
|
-
padding: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
transferListView: {
|
|
77
|
-
expandedWithAlerts: {
|
|
78
|
-
width: string;
|
|
79
|
-
height: string;
|
|
80
|
-
borderRadius: string;
|
|
81
|
-
padding: string;
|
|
82
|
-
};
|
|
83
|
-
expanded: {
|
|
84
|
-
width: string;
|
|
85
|
-
height: string;
|
|
86
|
-
borderRadius: string;
|
|
87
|
-
padding: string;
|
|
88
|
-
};
|
|
89
|
-
collapsed: {
|
|
90
|
-
width: string;
|
|
91
|
-
height: string;
|
|
92
|
-
borderRadius: string;
|
|
93
|
-
padding: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
transferActionsView: {
|
|
97
|
-
expanded: {
|
|
98
|
-
width: string;
|
|
99
|
-
height: string;
|
|
100
|
-
borderRadius: string;
|
|
101
|
-
padding: string;
|
|
102
|
-
};
|
|
103
|
-
collapsed: {
|
|
104
|
-
width: string;
|
|
105
|
-
height: string;
|
|
106
|
-
borderRadius: string;
|
|
107
|
-
padding: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
expandedWithAlerts: {
|
|
111
|
-
width: string;
|
|
112
|
-
height: string;
|
|
113
|
-
borderRadius: string;
|
|
114
|
-
padding: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
export declare const animations: {
|
|
119
|
-
name?: string | undefined;
|
|
120
|
-
state: {
|
|
121
|
-
variants: {
|
|
122
|
-
callView: {
|
|
123
|
-
expandedIncoming: {
|
|
124
|
-
width: string;
|
|
125
|
-
height: string;
|
|
126
|
-
borderRadius: string;
|
|
127
|
-
padding: string;
|
|
128
|
-
};
|
|
129
|
-
expandedIncomingWithAlerts: {
|
|
130
|
-
width: string;
|
|
131
|
-
height: string;
|
|
132
|
-
borderRadius: string;
|
|
133
|
-
padding: string;
|
|
134
|
-
};
|
|
135
|
-
expandedAccepted: {
|
|
136
|
-
width: string;
|
|
137
|
-
height: string;
|
|
138
|
-
borderRadius: string;
|
|
139
|
-
padding: string;
|
|
140
|
-
};
|
|
141
|
-
expandedAcceptedWithAlerts: {
|
|
142
|
-
width: string;
|
|
143
|
-
height: string;
|
|
144
|
-
borderRadius: string;
|
|
145
|
-
padding: string;
|
|
146
|
-
};
|
|
147
|
-
collapsed: {
|
|
148
|
-
width: string;
|
|
149
|
-
height: string;
|
|
150
|
-
borderRadius: string;
|
|
151
|
-
padding: string;
|
|
152
|
-
};
|
|
153
|
-
transfer: {
|
|
154
|
-
expanded: {
|
|
155
|
-
width: string;
|
|
156
|
-
height: string;
|
|
157
|
-
borderRadius: string;
|
|
158
|
-
padding: string;
|
|
159
|
-
};
|
|
160
|
-
expandedWithAlerts: {
|
|
161
|
-
width: string;
|
|
162
|
-
height: string;
|
|
163
|
-
borderRadius: string;
|
|
164
|
-
padding: string;
|
|
165
|
-
};
|
|
166
|
-
collapsed: {
|
|
167
|
-
width: string;
|
|
168
|
-
height: string;
|
|
169
|
-
borderRadius: string;
|
|
170
|
-
padding: string;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
keypadView: {
|
|
175
|
-
expandedWithAlerts: {
|
|
176
|
-
width: string;
|
|
177
|
-
height: string;
|
|
178
|
-
borderRadius: string;
|
|
179
|
-
padding: string;
|
|
180
|
-
};
|
|
181
|
-
expanded: {
|
|
182
|
-
width: string;
|
|
183
|
-
height: string;
|
|
184
|
-
borderRadius: string;
|
|
185
|
-
padding: string;
|
|
186
|
-
};
|
|
187
|
-
collapsed: {
|
|
188
|
-
width: string;
|
|
189
|
-
height: string;
|
|
190
|
-
borderRadius: string;
|
|
191
|
-
padding: string;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
transferListView: {
|
|
195
|
-
expandedWithAlerts: {
|
|
196
|
-
width: string;
|
|
197
|
-
height: string;
|
|
198
|
-
borderRadius: string;
|
|
199
|
-
padding: string;
|
|
200
|
-
};
|
|
201
|
-
expanded: {
|
|
202
|
-
width: string;
|
|
203
|
-
height: string;
|
|
204
|
-
borderRadius: string;
|
|
205
|
-
padding: string;
|
|
206
|
-
};
|
|
207
|
-
collapsed: {
|
|
208
|
-
width: string;
|
|
209
|
-
height: string;
|
|
210
|
-
borderRadius: string;
|
|
211
|
-
padding: string;
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
transferActionsView: {
|
|
215
|
-
expanded: {
|
|
216
|
-
width: string;
|
|
217
|
-
height: string;
|
|
218
|
-
borderRadius: string;
|
|
219
|
-
padding: string;
|
|
220
|
-
};
|
|
221
|
-
collapsed: {
|
|
222
|
-
width: string;
|
|
223
|
-
height: string;
|
|
224
|
-
borderRadius: string;
|
|
225
|
-
padding: string;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
expandedWithAlerts: {
|
|
229
|
-
width: string;
|
|
230
|
-
height: string;
|
|
231
|
-
borderRadius: string;
|
|
232
|
-
padding: string;
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
} & ({} | {
|
|
237
|
-
effects: import("@rematch/core").ModelEffects<RootModel>;
|
|
238
|
-
} | {
|
|
239
|
-
effects: import("@rematch/core").ModelEffectsCreator<RootModel>;
|
|
240
|
-
}) & ({} | {
|
|
241
|
-
reducers: import("@rematch/core").ModelReducers<{
|
|
242
|
-
variants: {
|
|
243
|
-
callView: {
|
|
244
|
-
expandedIncoming: {
|
|
245
|
-
width: string;
|
|
246
|
-
height: string;
|
|
247
|
-
borderRadius: string;
|
|
248
|
-
padding: string;
|
|
249
|
-
};
|
|
250
|
-
expandedIncomingWithAlerts: {
|
|
251
|
-
width: string;
|
|
252
|
-
height: string;
|
|
253
|
-
borderRadius: string;
|
|
254
|
-
padding: string;
|
|
255
|
-
};
|
|
256
|
-
expandedAccepted: {
|
|
257
|
-
width: string;
|
|
258
|
-
height: string;
|
|
259
|
-
borderRadius: string;
|
|
260
|
-
padding: string;
|
|
261
|
-
};
|
|
262
|
-
expandedAcceptedWithAlerts: {
|
|
263
|
-
width: string;
|
|
264
|
-
height: string;
|
|
265
|
-
borderRadius: string;
|
|
266
|
-
padding: string;
|
|
267
|
-
};
|
|
268
|
-
collapsed: {
|
|
269
|
-
width: string;
|
|
270
|
-
height: string;
|
|
271
|
-
borderRadius: string;
|
|
272
|
-
padding: string;
|
|
273
|
-
};
|
|
274
|
-
transfer: {
|
|
275
|
-
expanded: {
|
|
276
|
-
width: string;
|
|
277
|
-
height: string;
|
|
278
|
-
borderRadius: string;
|
|
279
|
-
padding: string;
|
|
280
|
-
};
|
|
281
|
-
expandedWithAlerts: {
|
|
282
|
-
width: string;
|
|
283
|
-
height: string;
|
|
284
|
-
borderRadius: string;
|
|
285
|
-
padding: string;
|
|
286
|
-
};
|
|
287
|
-
collapsed: {
|
|
288
|
-
width: string;
|
|
289
|
-
height: string;
|
|
290
|
-
borderRadius: string;
|
|
291
|
-
padding: string;
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
keypadView: {
|
|
296
|
-
expandedWithAlerts: {
|
|
297
|
-
width: string;
|
|
298
|
-
height: string;
|
|
299
|
-
borderRadius: string;
|
|
300
|
-
padding: string;
|
|
301
|
-
};
|
|
302
|
-
expanded: {
|
|
303
|
-
width: string;
|
|
304
|
-
height: string;
|
|
305
|
-
borderRadius: string;
|
|
306
|
-
padding: string;
|
|
307
|
-
};
|
|
308
|
-
collapsed: {
|
|
309
|
-
width: string;
|
|
310
|
-
height: string;
|
|
311
|
-
borderRadius: string;
|
|
312
|
-
padding: string;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
transferListView: {
|
|
316
|
-
expandedWithAlerts: {
|
|
317
|
-
width: string;
|
|
318
|
-
height: string;
|
|
319
|
-
borderRadius: string;
|
|
320
|
-
padding: string;
|
|
321
|
-
};
|
|
322
|
-
expanded: {
|
|
323
|
-
width: string;
|
|
324
|
-
height: string;
|
|
325
|
-
borderRadius: string;
|
|
326
|
-
padding: string;
|
|
327
|
-
};
|
|
328
|
-
collapsed: {
|
|
329
|
-
width: string;
|
|
330
|
-
height: string;
|
|
331
|
-
borderRadius: string;
|
|
332
|
-
padding: string;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
transferActionsView: {
|
|
336
|
-
expanded: {
|
|
337
|
-
width: string;
|
|
338
|
-
height: string;
|
|
339
|
-
borderRadius: string;
|
|
340
|
-
padding: string;
|
|
341
|
-
};
|
|
342
|
-
collapsed: {
|
|
343
|
-
width: string;
|
|
344
|
-
height: string;
|
|
345
|
-
borderRadius: string;
|
|
346
|
-
padding: string;
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
expandedWithAlerts: {
|
|
350
|
-
width: string;
|
|
351
|
-
height: string;
|
|
352
|
-
borderRadius: string;
|
|
353
|
-
padding: string;
|
|
354
|
-
};
|
|
355
|
-
};
|
|
356
|
-
}>;
|
|
357
|
-
}) & ({} | {
|
|
358
|
-
baseReducer: import("redux").Reducer<{
|
|
359
|
-
variants: {
|
|
360
|
-
callView: {
|
|
361
|
-
expandedIncoming: {
|
|
362
|
-
width: string;
|
|
363
|
-
height: string;
|
|
364
|
-
borderRadius: string;
|
|
365
|
-
padding: string;
|
|
366
|
-
};
|
|
367
|
-
expandedIncomingWithAlerts: {
|
|
368
|
-
width: string;
|
|
369
|
-
height: string;
|
|
370
|
-
borderRadius: string;
|
|
371
|
-
padding: string;
|
|
372
|
-
};
|
|
373
|
-
expandedAccepted: {
|
|
374
|
-
width: string;
|
|
375
|
-
height: string;
|
|
376
|
-
borderRadius: string;
|
|
377
|
-
padding: string;
|
|
378
|
-
};
|
|
379
|
-
expandedAcceptedWithAlerts: {
|
|
380
|
-
width: string;
|
|
381
|
-
height: string;
|
|
382
|
-
borderRadius: string;
|
|
383
|
-
padding: string;
|
|
384
|
-
};
|
|
385
|
-
collapsed: {
|
|
386
|
-
width: string;
|
|
387
|
-
height: string;
|
|
388
|
-
borderRadius: string;
|
|
389
|
-
padding: string;
|
|
390
|
-
};
|
|
391
|
-
transfer: {
|
|
392
|
-
expanded: {
|
|
393
|
-
width: string;
|
|
394
|
-
height: string;
|
|
395
|
-
borderRadius: string;
|
|
396
|
-
padding: string;
|
|
397
|
-
};
|
|
398
|
-
expandedWithAlerts: {
|
|
399
|
-
width: string;
|
|
400
|
-
height: string;
|
|
401
|
-
borderRadius: string;
|
|
402
|
-
padding: string;
|
|
403
|
-
};
|
|
404
|
-
collapsed: {
|
|
405
|
-
width: string;
|
|
406
|
-
height: string;
|
|
407
|
-
borderRadius: string;
|
|
408
|
-
padding: string;
|
|
409
|
-
};
|
|
410
|
-
};
|
|
411
|
-
};
|
|
412
|
-
keypadView: {
|
|
413
|
-
expandedWithAlerts: {
|
|
414
|
-
width: string;
|
|
415
|
-
height: string;
|
|
416
|
-
borderRadius: string;
|
|
417
|
-
padding: string;
|
|
418
|
-
};
|
|
419
|
-
expanded: {
|
|
420
|
-
width: string;
|
|
421
|
-
height: string;
|
|
422
|
-
borderRadius: string;
|
|
423
|
-
padding: string;
|
|
424
|
-
};
|
|
425
|
-
collapsed: {
|
|
426
|
-
width: string;
|
|
427
|
-
height: string;
|
|
428
|
-
borderRadius: string;
|
|
429
|
-
padding: string;
|
|
430
|
-
};
|
|
431
|
-
};
|
|
432
|
-
transferListView: {
|
|
433
|
-
expandedWithAlerts: {
|
|
434
|
-
width: string;
|
|
435
|
-
height: string;
|
|
436
|
-
borderRadius: string;
|
|
437
|
-
padding: string;
|
|
438
|
-
};
|
|
439
|
-
expanded: {
|
|
440
|
-
width: string;
|
|
441
|
-
height: string;
|
|
442
|
-
borderRadius: string;
|
|
443
|
-
padding: string;
|
|
444
|
-
};
|
|
445
|
-
collapsed: {
|
|
446
|
-
width: string;
|
|
447
|
-
height: string;
|
|
448
|
-
borderRadius: string;
|
|
449
|
-
padding: string;
|
|
450
|
-
};
|
|
451
|
-
};
|
|
452
|
-
transferActionsView: {
|
|
453
|
-
expanded: {
|
|
454
|
-
width: string;
|
|
455
|
-
height: string;
|
|
456
|
-
borderRadius: string;
|
|
457
|
-
padding: string;
|
|
458
|
-
};
|
|
459
|
-
collapsed: {
|
|
460
|
-
width: string;
|
|
461
|
-
height: string;
|
|
462
|
-
borderRadius: string;
|
|
463
|
-
padding: string;
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
expandedWithAlerts: {
|
|
467
|
-
width: string;
|
|
468
|
-
height: string;
|
|
469
|
-
borderRadius: string;
|
|
470
|
-
padding: string;
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
}, import("redux").AnyAction>;
|
|
474
|
-
});
|
|
475
|
-
export type AnimationsTypes = typeof defaultState;
|
|
476
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var d={variants:{callView:{expandedIncoming:{width:"418px",height:"96px",borderRadius:"20px",padding:"24px"},expandedIncomingWithAlerts:{width:"418px",height:"224px",borderRadius:"20px",padding:"24px"},expandedAccepted:{width:"348px",height:"236px",borderRadius:"20px",padding:"24px"},expandedAcceptedWithAlerts:{width:"348px",height:"364px",borderRadius:"20px",padding:"24px"},collapsed:{width:"168px",height:"40px",borderRadius:"99px",padding:"8px 16px"},transfer:{expanded:{width:"348px",height:"304px",borderRadius:"20px",padding:"24px"},expandedWithAlerts:{width:"348px",height:"336px",borderRadius:"20px",padding:"24px"},collapsed:{width:"348px",height:"336px",borderRadius:"99px",padding:"8px 16px"}}},keypadView:{expandedWithAlerts:{width:"338px",height:"590px",borderRadius:"20px",padding:"24px"},expanded:{width:"338px",height:"462px",borderRadius:"20px",padding:"24px"},collapsed:{width:"168px",height:"40px",borderRadius:"99px",padding:"8px 16px"}},transferListView:{expandedWithAlerts:{width:"408px",height:"600px",borderRadius:"20px",padding:"24px"},expanded:{width:"408px",height:"472px",borderRadius:"20px",padding:"24px"},collapsed:{width:"168px",height:"40px",borderRadius:"99px",padding:"8px 16px"}},transferActionsView:{expanded:{width:"398px",height:"462px",borderRadius:"20px",padding:"24px"},collapsed:{width:"168px",height:"40px",borderRadius:"99px",padding:"8px 16px"}},expandedWithAlerts:{width:"418px",height:"152px",borderRadius:"20px",padding:"24px"}}},p=require("../node_modules/@rematch/core/dist/core.esm.js").createModel()({state:d});exports.animations=p;
|
|
2
|
-
//# sourceMappingURL=animations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animations.js","sources":["../../src/models/animations.ts"],"sourcesContent":["// Copyright (C) 2022 Nethesis S.r.l.\n// SPDX-License-Identifier: AGPL-3.0-or-later\n\nimport { createModel } from '@rematch/core'\nimport type { RootModel } from '.'\n\nconst EXPANDED_PADDING = '24px'\nconst COLLAPSED_PADDING = '8px 16px'\nconst BORDER_RADIUS_EXPANDED = '20px'\nconst BORDER_RADIUS_COLLAPSED = '99px'\n\nconst defaultState = {\n variants: {\n // The animation variants for CallView\n callView: {\n // When there is and incoming call and the island is expanded\n expandedIncoming: {\n width: '418px',\n height: '96px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n // When there is and incoming call and the island is expanded\n expandedIncomingWithAlerts: {\n width: '418px',\n height: '224px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n // When there is an accepted call and the island is expanded\n expandedAccepted: {\n width: '348px',\n height: '236px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n // When there is an accepted call and the island is expanded\n expandedAcceptedWithAlerts: {\n width: '348px',\n height: '364px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n // When the island is collapsed\n collapsed: {\n width: '168px',\n height: '40px',\n borderRadius: BORDER_RADIUS_COLLAPSED,\n padding: COLLAPSED_PADDING,\n },\n // When there is a transfer\n transfer: {\n expanded: {\n width: '348px',\n height: '304px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n expandedWithAlerts: {\n width: '348px',\n height: '336px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n collapsed: {\n width: '348px',\n height: '336px',\n borderRadius: BORDER_RADIUS_COLLAPSED,\n padding: COLLAPSED_PADDING,\n },\n },\n },\n // The animation variant for keypadView\n keypadView: {\n expandedWithAlerts: {\n width: '338px',\n height: '590px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n expanded: {\n width: '338px',\n height: '462px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n collapsed: {\n width: '168px',\n height: '40px',\n borderRadius: BORDER_RADIUS_COLLAPSED,\n padding: COLLAPSED_PADDING,\n },\n },\n // The animation variant for transferListView\n transferListView: {\n expandedWithAlerts: {\n width: '408px',\n height: '600px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n expanded: {\n width: '408px',\n height: '472px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n collapsed: {\n width: '168px',\n height: '40px',\n borderRadius: BORDER_RADIUS_COLLAPSED,\n padding: COLLAPSED_PADDING,\n },\n },\n // The animation variant for transferActionsView\n transferActionsView: {\n expanded: {\n width: '398px',\n height: '462px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n collapsed: {\n width: '168px',\n height: '40px',\n borderRadius: BORDER_RADIUS_COLLAPSED,\n padding: COLLAPSED_PADDING,\n },\n },\n // When theare aren't calls but there are alerts\n expandedWithAlerts: {\n width: '418px',\n height: '152px',\n borderRadius: BORDER_RADIUS_EXPANDED,\n padding: EXPANDED_PADDING,\n },\n },\n}\n\nexport const animations = createModel<RootModel>()({\n state: defaultState,\n})\n\nexport type AnimationsTypes = typeof defaultState"],"names":["defaultState","variants","callView","expandedIncoming","width","height","borderRadius","padding","expandedIncomingWithAlerts","expandedAccepted","expandedAcceptedWithAlerts","collapsed","transfer","expanded","expandedWithAlerts","keypadView","transferListView","transferActionsView","animations","createModel","state"],"mappings":"wEAWMA,EAAe,CACnBC,SAAU,CAERC,SAAU,CAERC,iBAAkB,CAChBC,MAAO,QACPC,OAAQ,OACRC,aAXuB,OAYvBC,QAdiB,QAiBnBC,2BAA4B,CAC1BJ,MAAO,QACPC,OAAQ,QACRC,aAlBuB,OAmBvBC,QArBiB,QAwBnBE,iBAAkB,CAChBL,MAAO,QACPC,OAAQ,QACRC,aAzBuB,OA0BvBC,QA5BiB,QA+BnBG,2BAA4B,CAC1BN,MAAO,QACPC,OAAQ,QACRC,aAhCuB,OAiCvBC,QAnCiB,QAsCnBI,UAAW,CACTP,MAAO,QACPC,OAAQ,OACRC,aAtCwB,OAuCxBC,QAzCkB,YA4CpBK,SAAU,CACRC,SAAU,CACRT,MAAO,QACPC,OAAQ,QACRC,aA/CqB,OAgDrBC,QAlDe,QAoDjBO,mBAAoB,CAClBV,MAAO,QACPC,OAAQ,QACRC,aArDqB,OAsDrBC,QAxDe,QA0DjBI,UAAW,CACTP,MAAO,QACPC,OAAQ,QACRC,aA1DsB,OA2DtBC,QA7DgB,cAkEtBQ,WAAY,CACVD,mBAAoB,CAClBV,MAAO,QACPC,OAAQ,QACRC,aArEuB,OAsEvBC,QAxEiB,QA0EnBM,SAAU,CACRT,MAAO,QACPC,OAAQ,QACRC,aA3EuB,OA4EvBC,QA9EiB,QAgFnBI,UAAW,CACTP,MAAO,QACPC,OAAQ,OACRC,aAhFwB,OAiFxBC,QAnFkB,aAuFtBS,iBAAkB,CAChBF,mBAAoB,CAClBV,MAAO,QACPC,OAAQ,QACRC,aA1FuB,OA2FvBC,QA7FiB,QA+FnBM,SAAU,CACRT,MAAO,QACPC,OAAQ,QACRC,aAhGuB,OAiGvBC,QAnGiB,QAqGnBI,UAAW,CACTP,MAAO,QACPC,OAAQ,OACRC,aArGwB,OAsGxBC,QAxGkB,aA4GtBU,oBAAqB,CACnBJ,SAAU,CACRT,MAAO,QACPC,OAAQ,QACRC,aA/GuB,OAgHvBC,QAlHiB,QAoHnBI,UAAW,CACTP,MAAO,QACPC,OAAQ,OACRC,aApHwB,OAqHxBC,QAvHkB,aA2HtBO,mBAAoB,CAClBV,MAAO,QACPC,OAAQ,QACRC,aA7HyB,OA8HzBC,QAhImB,UAqIZW,4DAAwBC,aAAXA,CAAyB,CACjDC,MAAOpB"}
|