You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,21 @@
2
2
3
3
# `@s-group/react-usercentrics`
4
4
5
-
React utils for interacting with the [Usercentrics Browser CMP](https://docs.usercentrics.com/#/browser-cmp).
5
+
React utils for interacting with the [Usercentrics Web CMP](https://usercentrics.com/docs/web/intro/).
6
6
7
7
```
8
8
npm install --save @s-group/react-usercentrics
9
9
```
10
10
11
11
## Motivation
12
12
13
-
While the official `@usercentrics/cmp-browser-sdk` npm module is very useful, it is unnecessarily large and would still require some utility functions built around it to be really useful when working in a React application. It has 10 dependencies and an unpacked filesize size of 1.7 MB.
13
+
While the official `@usercentrics/cmp-browser-sdk` npm module is very useful, it is unnecessarily large and would still require some utility functions built around it to be really useful when working in a React application. This package aims to be tiny and simple, and have zero dependencies.
14
14
15
-
This package aims to be tiny and simple, and has 0 dependencies and an unpacked filesize of 47.2 kB KB.
15
+
## Usercentrics Web CMP Version Support
16
+
17
+
The current major version `@s-group/react-usercentrics@2` (and previous v1) only supports the [Usercentrics Web CMP v2 (legacy)](https://usercentrics.com/docs/web/v2/).
18
+
19
+
The next major version `@s-group/react-usercentrics@3` will only support [Usercentrics Web CMP v3](https://usercentrics.com/docs/web/v3/).
16
20
17
21
## Setup
18
22
@@ -304,9 +308,9 @@ Returns basic info for specific Usercentrics service, or null if not found.
304
308
305
309
The typing is _not complete_ and contains only the info used internally:
306
310
307
-
-`id` of the service, autogenerated by Usercentrics
308
-
-`name` of the service, configured in the admin interface
309
-
-`consent.status` of the service
311
+
-`id` of the service, autogenerated by Usercentrics
312
+
-`name` of the service, configured in the admin interface
313
+
-`consent.status` of the service
310
314
311
315
See also https://docs.usercentrics.com/#/cmp-v2-ui-api?id=getservicesbaseinfo
312
316
@@ -331,10 +335,10 @@ This triggers an extra API call and also returns `null` while loading.
331
335
332
336
The typing is _not complete_ and contains only the info used internally:
333
337
334
-
-`id` of the service, autogenerated by Usercentrics
335
-
-`name` of the service, configured in the admin interface
336
-
-`consent.status` of the service
337
-
-`description` text of the service
338
+
-`id` of the service, autogenerated by Usercentrics
339
+
-`name` of the service, configured in the admin interface
340
+
-`consent.status` of the service
341
+
-`description` text of the service
338
342
339
343
See also https://docs.usercentrics.com/#/cmp-v2-ui-api?id=getservicesfullinfo
0 commit comments