@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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@redacto.io/consent-sdk-react": patch
3
+ ---
4
+
5
+ Added base url as prop
@@ -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
+ CLI Building entry: {"index":"src/index.ts"}
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.4.0
9
+ CLI Using tsup config: /Users/abhishekashyap/Documents/redacto/consent-sdk/packages/consent-sdk-react/tsup.config.ts
10
+ CLI Target: es2019
11
+ CLI Cleaning output folder
12
+ ESM Build start
13
+ CJS Build start
14
+ ESM dist/index.mjs 68.11 KB
15
+ ESM ⚡️ Build success in 13ms
16
+ CJS dist/index.js 70.90 KB
17
+ CJS ⚡️ 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 };