@redacto.io/consent-sdk-react 1.1.0 → 1.3.0
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 +12 -0
- package/README.md +705 -20
- package/dist/index.d.mts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +427 -413
- package/dist/index.mjs +428 -421
- package/package.json +1 -1
- package/src/RedactoNoticeConsent/RedactoNoticeConsent.test.tsx +137 -50
- package/src/RedactoNoticeConsent/RedactoNoticeConsent.tsx +3 -3
- package/src/RedactoNoticeConsent/api/index.ts +7 -7
- package/src/RedactoNoticeConsent/api/types.ts +1 -1
- package/src/RedactoNoticeConsent/types.ts +1 -1
- package/src/RedactoNoticeConsentInline/RedactoNoticeConsentInline.tsx +489 -477
- package/src/RedactoNoticeConsentInline/api/index.ts +1 -3
- package/.turbo/turbo-build.log +0 -21
|
@@ -75,10 +75,8 @@ export const submitConsentEvent = async ({
|
|
|
75
75
|
}: SubmitConsentEventParams): Promise<void> => {
|
|
76
76
|
try {
|
|
77
77
|
const primaryEmail = localStorage.getItem("userEmail");
|
|
78
|
-
const primaryMobile = localStorage.getItem("userMobile");
|
|
79
78
|
const payload: ConsentEventPayload = {
|
|
80
79
|
primary_email: primaryEmail || undefined,
|
|
81
|
-
primary_mobile: primaryMobile || undefined,
|
|
82
80
|
notice_uuid: noticeUuid,
|
|
83
81
|
source: "WEB",
|
|
84
82
|
declined,
|
|
@@ -104,7 +102,7 @@ export const submitConsentEvent = async ({
|
|
|
104
102
|
const apiBaseUrl = baseUrl || BASE_URL;
|
|
105
103
|
|
|
106
104
|
const response = await fetch(
|
|
107
|
-
`${apiBaseUrl}/public/organisations/${org_uuid}/workspaces/${workspace_uuid}/
|
|
105
|
+
`${apiBaseUrl}/public/organisations/${org_uuid}/workspaces/${workspace_uuid}/submit-consent`,
|
|
108
106
|
{
|
|
109
107
|
method: "POST",
|
|
110
108
|
headers: {
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> @redacto.io/consent-sdk-react@0.0.3 build /Users/abhishekashyap/Documents/redacto/consent-sdk/packages/consent-sdk-react
|
|
4
|
-
> tsup
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m Building entry: {"index":"src/index.ts"}
|
|
7
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
-
[34mCLI[39m tsup v8.4.0
|
|
9
|
-
[34mCLI[39m Using tsup config: /Users/abhishekashyap/Documents/redacto/consent-sdk/packages/consent-sdk-react/tsup.config.ts
|
|
10
|
-
[34mCLI[39m Target: es2019
|
|
11
|
-
[34mCLI[39m Cleaning output folder
|
|
12
|
-
[34mESM[39m Build start
|
|
13
|
-
[34mCJS[39m Build start
|
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[32m103.01 KB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in 14ms
|
|
16
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m99.59 KB[39m
|
|
17
|
-
[32mESM[39m ⚡️ Build success in 14ms
|
|
18
|
-
DTS Build start
|
|
19
|
-
DTS ⚡️ Build success in 645ms
|
|
20
|
-
DTS dist/index.d.mts 2.40 KB
|
|
21
|
-
DTS dist/index.d.ts 2.40 KB
|