@redacto.io/consent-sdk-react 0.0.1 → 0.0.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/.changeset/fifty-candies-drop.md +5 -0
- package/.turbo/turbo-build.log +21 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +595 -239
- package/dist/index.mjs +596 -240
- package/package.json +1 -1
- package/src/RedactoNoticeConsent/RedactoNoticeConsent.tsx +395 -71
- package/src/RedactoNoticeConsent/api/index.ts +32 -42
- package/src/RedactoNoticeConsent/api/types.ts +14 -7
- package/src/RedactoNoticeConsent/styles.ts +86 -49
- package/src/RedactoNoticeConsent/types.ts +2 -0
- package/tests/mocks.ts +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @redacto.io/consent-sdk-react@0.0.1 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
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m68.11 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 13ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m70.90 KB[39m
|
|
17
|
+
[32mCJS[39m ⚡️ Build success in 13ms
|
|
18
|
+
DTS Build start
|
|
19
|
+
DTS ⚡️ Build success in 818ms
|
|
20
|
+
DTS dist/index.d.mts 1.13 KB
|
|
21
|
+
DTS dist/index.d.ts 1.13 KB
|
package/dist/index.d.mts
CHANGED
|
@@ -17,9 +17,7 @@ type Settings = {
|
|
|
17
17
|
selectedTextColor?: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
link:
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
20
|
+
link: string;
|
|
23
21
|
borderRadius?: string;
|
|
24
22
|
backgroundColor?: string;
|
|
25
23
|
headingColor?: string;
|
|
@@ -31,14 +29,16 @@ type Props = Readonly<{
|
|
|
31
29
|
noticeId: string;
|
|
32
30
|
accessToken: string;
|
|
33
31
|
refreshToken: string;
|
|
32
|
+
baseUrl?: string;
|
|
34
33
|
settings?: Partial<Settings>;
|
|
35
34
|
language?: string;
|
|
36
35
|
blockUI?: boolean;
|
|
37
36
|
onAccept: () => void;
|
|
38
37
|
onDecline: () => void;
|
|
39
38
|
onError?: (error: Error) => void;
|
|
39
|
+
applicationId?: string;
|
|
40
40
|
}>;
|
|
41
41
|
|
|
42
|
-
declare const RedactoNoticeConsent: ({ noticeId, accessToken, refreshToken, language, blockUI, onAccept, onDecline, onError, settings, }: Props) => react_jsx_runtime.JSX.Element;
|
|
42
|
+
declare const RedactoNoticeConsent: ({ noticeId, accessToken, refreshToken, baseUrl, language, blockUI, onAccept, onDecline, onError, settings, applicationId, }: Props) => react_jsx_runtime.JSX.Element;
|
|
43
43
|
|
|
44
44
|
export { RedactoNoticeConsent };
|
package/dist/index.d.ts
CHANGED
|
@@ -17,9 +17,7 @@ type Settings = {
|
|
|
17
17
|
selectedTextColor?: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
link:
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
20
|
+
link: string;
|
|
23
21
|
borderRadius?: string;
|
|
24
22
|
backgroundColor?: string;
|
|
25
23
|
headingColor?: string;
|
|
@@ -31,14 +29,16 @@ type Props = Readonly<{
|
|
|
31
29
|
noticeId: string;
|
|
32
30
|
accessToken: string;
|
|
33
31
|
refreshToken: string;
|
|
32
|
+
baseUrl?: string;
|
|
34
33
|
settings?: Partial<Settings>;
|
|
35
34
|
language?: string;
|
|
36
35
|
blockUI?: boolean;
|
|
37
36
|
onAccept: () => void;
|
|
38
37
|
onDecline: () => void;
|
|
39
38
|
onError?: (error: Error) => void;
|
|
39
|
+
applicationId?: string;
|
|
40
40
|
}>;
|
|
41
41
|
|
|
42
|
-
declare const RedactoNoticeConsent: ({ noticeId, accessToken, refreshToken, language, blockUI, onAccept, onDecline, onError, settings, }: Props) => react_jsx_runtime.JSX.Element;
|
|
42
|
+
declare const RedactoNoticeConsent: ({ noticeId, accessToken, refreshToken, baseUrl, language, blockUI, onAccept, onDecline, onError, settings, applicationId, }: Props) => react_jsx_runtime.JSX.Element;
|
|
43
43
|
|
|
44
44
|
export { RedactoNoticeConsent };
|