@ututrust/web-components 1.2.2 → 1.2.4

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/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # UTU Trust SDK Changelog
2
+
3
+ ## v1.0.1 (20 April 2021)
4
+ * Initial release supporting feedbac summary, badges, star rating and text
5
+ review
6
+
7
+ ## v1.1.0 (7 September 2021)
8
+ * Added video reviews as feedback component
9
+ * Various design improvements
10
+ * Cleaned up repository to include README, CHANGELOG and LICENSE in the
11
+ utu-web-components sub-package of the utu-trust-sdk workspace
12
+
13
+ ## v1.1.1 (7 September 2021)
14
+ * Include README.md, CHANGELOG.md and LICENSE.TXT
15
+
16
+ ## v1.1.2 (7 September 2021)
17
+ * Re-publish as production build
18
+
19
+ ## v1.1.3 (7 September 2021)
20
+ * Remove explicit including of README.md, CHANGELOG.md and LICENSE.TXT
21
+ because this happens automatically
22
+
23
+
package/README.md CHANGED
@@ -22,6 +22,19 @@ Find the [repository here](https://bitbucket.org/utu-technologies/utu-trust-sdk)
22
22
  $ npm install @ututrust/web-components
23
23
  ```
24
24
 
25
+ ## Configuration options
26
+
27
+ The SDK can be configured by dispatching an `utuConfig` event. It
28
+ currently supports only one element: `production` (`boolean`).
29
+
30
+ If set to `true`, the SDK will connect to UTU's production API services.
31
+ Otherwise (default), it will connect to UTU API testing services.
32
+
33
+ Use it like so, after the SDK has been loaded:
34
+ ```
35
+ window.dispatchEvent(new CustomEvent("utuConfig", { detail: { production: true } }));
36
+ ```
37
+
25
38
  ## Examples
26
39
 
27
40
  You can find [some working examples in the repository](https://bitbucket.org/utu-technologies/utu-trust-sdk/src/dev/packages/examples.)