@wavoip/wavoip-webphone 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/index.d.ts +18 -5
- package/dist/index.es.js +7954 -7869
- package/dist/index.umd.js +46 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,3 +4,13 @@ Essa biblioteca foi feita com o intuito de facilitar a realização de ligaçõe
|
|
|
4
4
|
|
|
5
5
|
[Documentação disponível aqui](https://wavoip.gitbook.io/api/webphone)
|
|
6
6
|
|
|
7
|
+
# Alterando as cores do Webphone
|
|
8
|
+
As cores do webphone podem ser alteradas manualmente.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
O arquivo a ser editado para customização das cores está em src/assets/index.css.
|
|
12
|
+
<img width="452" height="258" alt="image" src="https://github.com/user-attachments/assets/16012193-65ed-44e7-9fd0-102cb0008403" />
|
|
13
|
+
Variáveis separadas para tema claro e escuro.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Cada variável altera uma série de componentes, como a variável “--background” que altera o plano de fundo de todo o webphone e “--foreground” que altera a cor do texto em cima deste fundo.
|
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export default webphone;
|
|
|
48
48
|
|
|
49
49
|
declare type WebphoneAPI = {
|
|
50
50
|
call: {
|
|
51
|
-
startCall
|
|
51
|
+
startCall: (to: string, fromTokens: string[] | null) => Promise<{
|
|
52
52
|
err: {
|
|
53
53
|
message: string;
|
|
54
54
|
devices: {
|
|
@@ -59,10 +59,10 @@ declare type WebphoneAPI = {
|
|
|
59
59
|
} | {
|
|
60
60
|
err: null;
|
|
61
61
|
}>;
|
|
62
|
-
getCallActive
|
|
63
|
-
getCallOutgoing
|
|
64
|
-
getOffers
|
|
65
|
-
setInput
|
|
62
|
+
getCallActive: () => CallActiveProps | undefined;
|
|
63
|
+
getCallOutgoing: () => CallOutgoingProps | undefined;
|
|
64
|
+
getOffers: () => CallOfferProps[];
|
|
65
|
+
setInput: (number: string) => void;
|
|
66
66
|
};
|
|
67
67
|
device: {
|
|
68
68
|
getDevices: () => DeviceState[];
|
|
@@ -93,6 +93,13 @@ declare type WebphoneAPI = {
|
|
|
93
93
|
open: () => void;
|
|
94
94
|
close: () => void;
|
|
95
95
|
toggle: () => void;
|
|
96
|
+
buttonPosition: {
|
|
97
|
+
value: {
|
|
98
|
+
x: number;
|
|
99
|
+
y: number;
|
|
100
|
+
};
|
|
101
|
+
set: (position: WidgetButtonPosition) => void;
|
|
102
|
+
};
|
|
96
103
|
};
|
|
97
104
|
theme: {
|
|
98
105
|
value: Theme;
|
|
@@ -142,6 +149,12 @@ declare type WebphoneSettings = {
|
|
|
142
149
|
settingsMenu?: Partial<SettingsMenuSettings>;
|
|
143
150
|
widget?: Partial<WidgetSettings>;
|
|
144
151
|
position?: WebphonePosition;
|
|
152
|
+
buttonPosition?: WidgetButtonPosition;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
declare type WidgetButtonPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right" | {
|
|
156
|
+
x: number;
|
|
157
|
+
y: number;
|
|
145
158
|
};
|
|
146
159
|
|
|
147
160
|
declare type WidgetSettings = {
|