@wavoip/wavoip-webphone 1.2.4 → 1.2.5

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 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
@@ -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 = {