@redacto.io/consent-sdk-react 10.2.2-beta.1 → 10.2.2-beta.3

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/dist/index.d.mts CHANGED
@@ -101,6 +101,21 @@ type Props$1 = Readonly<{
101
101
  onAccept: () => void;
102
102
  onDecline: () => void;
103
103
  onError?: (error: Error) => void;
104
+ /**
105
+ * Holds submission behind a one-time code. When `required`, the first accept
106
+ * locks the notice and reveals an inline code panel instead of submitting;
107
+ * the stashed accept runs once `onVerify` resolves ok.
108
+ */
109
+ otpGate?: {
110
+ required: boolean;
111
+ onVerify: (code: string) => Promise<{
112
+ ok: boolean;
113
+ message?: string;
114
+ }>;
115
+ title?: string;
116
+ description?: string;
117
+ submitLabel?: string;
118
+ };
104
119
  applicationId?: string;
105
120
  validateAgainst?: "all" | "required";
106
121
  digilockerMode?: "popup" | "redirect";
@@ -135,7 +150,7 @@ type Props$1 = Readonly<{
135
150
  * to view and manage their consent preferences. Supports both initial consent
136
151
  * collection and reconsent flows.
137
152
  */
138
- declare const RedactoNoticeConsent: ({ noticeId, accessToken, refreshToken, token, email, mobile, ucic, organisationUuid, workspaceUuid, baseUrl, ledgerBaseUrl, language, blockUI, onAccept, onDecline, onError, settings, applicationId, validateAgainst, digilockerMode, digilockerCallbackUrl, includeFullyConsentedData, reviewModeButtonText, defaultOpenProducts, }: Props$1) => react__default.JSX.Element;
153
+ declare const RedactoNoticeConsent: ({ noticeId, accessToken, refreshToken, token, email, mobile, ucic, organisationUuid, workspaceUuid, baseUrl, ledgerBaseUrl, language, blockUI, onAccept, onDecline, onError, otpGate, settings, applicationId, validateAgainst, digilockerMode, digilockerCallbackUrl, includeFullyConsentedData, reviewModeButtonText, defaultOpenProducts, }: Props$1) => react__default.JSX.Element;
139
154
 
140
155
  type Settings = {
141
156
  button: {
package/dist/index.d.ts CHANGED
@@ -101,6 +101,21 @@ type Props$1 = Readonly<{
101
101
  onAccept: () => void;
102
102
  onDecline: () => void;
103
103
  onError?: (error: Error) => void;
104
+ /**
105
+ * Holds submission behind a one-time code. When `required`, the first accept
106
+ * locks the notice and reveals an inline code panel instead of submitting;
107
+ * the stashed accept runs once `onVerify` resolves ok.
108
+ */
109
+ otpGate?: {
110
+ required: boolean;
111
+ onVerify: (code: string) => Promise<{
112
+ ok: boolean;
113
+ message?: string;
114
+ }>;
115
+ title?: string;
116
+ description?: string;
117
+ submitLabel?: string;
118
+ };
104
119
  applicationId?: string;
105
120
  validateAgainst?: "all" | "required";
106
121
  digilockerMode?: "popup" | "redirect";
@@ -135,7 +150,7 @@ type Props$1 = Readonly<{
135
150
  * to view and manage their consent preferences. Supports both initial consent
136
151
  * collection and reconsent flows.
137
152
  */
138
- declare const RedactoNoticeConsent: ({ noticeId, accessToken, refreshToken, token, email, mobile, ucic, organisationUuid, workspaceUuid, baseUrl, ledgerBaseUrl, language, blockUI, onAccept, onDecline, onError, settings, applicationId, validateAgainst, digilockerMode, digilockerCallbackUrl, includeFullyConsentedData, reviewModeButtonText, defaultOpenProducts, }: Props$1) => react__default.JSX.Element;
153
+ declare const RedactoNoticeConsent: ({ noticeId, accessToken, refreshToken, token, email, mobile, ucic, organisationUuid, workspaceUuid, baseUrl, ledgerBaseUrl, language, blockUI, onAccept, onDecline, onError, otpGate, settings, applicationId, validateAgainst, digilockerMode, digilockerCallbackUrl, includeFullyConsentedData, reviewModeButtonText, defaultOpenProducts, }: Props$1) => react__default.JSX.Element;
139
154
 
140
155
  type Settings = {
141
156
  button: {