@soyio/soyio-widget 2.11.3 → 2.13.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/README.md +1 -1
- package/dist/index.d.ts +15 -2
- package/dist/index.js +322 -326
- package/dist/index.umd.cjs +17 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -253,7 +253,7 @@ The **`auth_request`** is a process where, using a previously created `auth_requ
|
|
|
253
253
|
|
|
254
254
|
// Widget configuration
|
|
255
255
|
const widgetConfig = {
|
|
256
|
-
request: "
|
|
256
|
+
request: "authentication_request",
|
|
257
257
|
configProps: {
|
|
258
258
|
authRequestId: "<auth request id>",
|
|
259
259
|
customColor: "<custom color>",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare type AuthRequestConfig = {
|
|
2
|
-
request: '
|
|
2
|
+
request: 'authentication_request';
|
|
3
3
|
configProps: AuthRequestProps;
|
|
4
4
|
onEvent: (data: EventData) => void;
|
|
5
5
|
isSandbox?: boolean;
|
|
@@ -211,11 +211,24 @@ export declare class PrivacyCenterBox extends BaseIframeBox<PrivacyCenterConfig>
|
|
|
211
211
|
iframeUrl(): string;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
declare type PrivacyCenterConfig =
|
|
214
|
+
declare type PrivacyCenterConfig = PrivacyCenterConfigWithSessionToken | PrivacyCenterConfigWithoutSessionToken;
|
|
215
|
+
|
|
216
|
+
declare type PrivacyCenterConfigWithoutSessionToken = BaseConfig & {
|
|
217
|
+
sessionToken?: never;
|
|
218
|
+
enabledFeatures?: PrivacyManagerFeature[];
|
|
215
219
|
companyId: `com_${string}`;
|
|
216
220
|
subjectId?: `ent_${string}`;
|
|
217
221
|
};
|
|
218
222
|
|
|
223
|
+
declare type PrivacyCenterConfigWithSessionToken = BaseConfig & {
|
|
224
|
+
sessionToken: string;
|
|
225
|
+
enabledFeatures?: PrivacyManagerFeature[];
|
|
226
|
+
companyId?: never;
|
|
227
|
+
subjectId?: never;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
declare type PrivacyManagerFeature = 'DataSubjectRequest' | 'ConsentManagement';
|
|
231
|
+
|
|
219
232
|
declare type Request_2 = 'disclosure' | 'signature' | 'authentication';
|
|
220
233
|
|
|
221
234
|
declare type RequestConfig = DisclosureRequestConfig | SignatureRequestConfig | AuthRequestConfig;
|