@wazo/sdk 0.38.1 → 0.38.2
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 +31 -3
- package/dist/wazo-sdk.js +1 -1
- package/esm/index.js +69 -38
- package/esm/simple/Auth.js +69 -38
- package/esm/simple/Configuration.js +69 -38
- package/esm/simple/Phone.js +69 -38
- package/esm/simple/Softphone.js +70 -39
- package/esm/simple/index.js +69 -38
- package/esm/simple/room/LocalParticipant.js +69 -38
- package/esm/simple/room/Participant.js +69 -38
- package/esm/simple/room/RemoteParticipant.js +69 -38
- package/esm/simple/room/Room.js +69 -38
- package/esm/simple/room/SipRoom.js +69 -38
- package/esm/simple/room/Stream.js +69 -38
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +69 -38
- package/esm/simple/utils.js +69 -38
- package/lib/index.js +69 -38
- package/lib/simple/Auth.js +69 -38
- package/lib/simple/Configuration.js +69 -38
- package/lib/simple/Phone.js +69 -38
- package/lib/simple/Softphone.js +70 -39
- package/lib/simple/index.js +69 -38
- package/lib/simple/room/LocalParticipant.js +69 -38
- package/lib/simple/room/Participant.js +69 -38
- package/lib/simple/room/RemoteParticipant.js +69 -38
- package/lib/simple/room/Room.js +69 -38
- package/lib/simple/room/SipRoom.js +69 -38
- package/lib/simple/room/Stream.js +69 -38
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +69 -38
- package/lib/simple/utils.js +69 -38
- package/package.json +1 -1
- package/src/simple/Softphone.js +70 -39
package/README.md
CHANGED
|
@@ -614,7 +614,7 @@ Wazo.Softphone.init({
|
|
|
614
614
|
language, // Softphone language (optional).
|
|
615
615
|
wrapUpDuration, // How long (in seconds) should the softphone display the card after the call (optional).
|
|
616
616
|
// When the user changes anything on the card, this timeout is canceled
|
|
617
|
-
|
|
617
|
+
enableAgent, // display the agent tab in the tab bar (defaults to true).
|
|
618
618
|
});
|
|
619
619
|
```
|
|
620
620
|
|
|
@@ -647,9 +647,37 @@ Wazo.Softphone.onOptionsResults(fieldId, results);
|
|
|
647
647
|
|
|
648
648
|
`onOptionsResults` is used to populate Autocomplete fields
|
|
649
649
|
|
|
650
|
+
#### Updating card value:
|
|
651
|
+
```js
|
|
652
|
+
Wazo.Softphone.setCardValue(field, value);
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
#### Customizing page style
|
|
656
|
+
```js
|
|
657
|
+
Wazo.Softphone.injectCss(`
|
|
658
|
+
body {
|
|
659
|
+
background-color: #eee;
|
|
660
|
+
}
|
|
661
|
+
`);
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
#### Override appearance
|
|
665
|
+
```js
|
|
666
|
+
Softphone.customizeAppearance({
|
|
667
|
+
// Theme
|
|
668
|
+
}, {
|
|
669
|
+
// Translation
|
|
670
|
+
}, {
|
|
671
|
+
// Assets
|
|
672
|
+
});
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
`onOptionsResults` is used to populate Autocomplete fields
|
|
676
|
+
|
|
650
677
|
#### Customizing card form
|
|
651
678
|
|
|
652
|
-
You can use [JSON schema](http://json-schema.org/) to customize the card form with `Softphone.setFormSchema(schema, uiSchema)
|
|
679
|
+
You can use [JSON schema](http://json-schema.org/) to customize the card form with `Softphone.setFormSchema(schema, uiSchema)`,
|
|
680
|
+
the Softphone uses [React Json schema form](https://react-jsonschema-form.readthedocs.io) internally to display card form :
|
|
653
681
|
|
|
654
682
|
```js
|
|
655
683
|
Softphone.setFormSchema({
|
|
@@ -744,7 +772,7 @@ Softphone.onAgentLoggedIn = () => {
|
|
|
744
772
|
// Invoked when the agent logs in
|
|
745
773
|
};
|
|
746
774
|
|
|
747
|
-
Softphone.onAgentLoggedOut = ) => {
|
|
775
|
+
Softphone.onAgentLoggedOut = () => {
|
|
748
776
|
// Invoked when the agent logs out
|
|
749
777
|
};
|
|
750
778
|
|