@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 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
- withCard, // boolean: ask the softphone to display a form during and after the call to log infornation (optional).
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