@soyio/soyio-widget 3.7.2 → 3.8.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 +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +503 -502
- package/dist/index.umd.cjs +31 -31
- package/package.json +1 -1
- package/src/schemas/appearance.schema.json +3 -1
- package/src/schemas/config.schema.json +99 -0
package/README.md
CHANGED
|
@@ -231,6 +231,9 @@ The `PrivacyCenterBox` lets you embed the Privacy Center inside your page. You c
|
|
|
231
231
|
rightExamples: {
|
|
232
232
|
access: 'Example: "I want to know what data you store about me."',
|
|
233
233
|
},
|
|
234
|
+
rightDescriptions: {
|
|
235
|
+
access: 'Custom description explaining the access right to end users.',
|
|
236
|
+
},
|
|
234
237
|
},
|
|
235
238
|
|
|
236
239
|
// Consent management grouping customization (optional)
|
|
@@ -309,8 +312,10 @@ The `PrivacyCenterBox` lets you embed the Privacy Center inside your page. You c
|
|
|
309
312
|
- `appearance.config.showConsentManagementHeader`: Optional boolean to show/hide the title and description in the consent management page.
|
|
310
313
|
- `content.consentManagement.header`: Optional object with `title` and `description` overrides for the consent management header copy.
|
|
311
314
|
- `content.rightExamples`: Optional object to override DSR right examples. Supported keys: `access`, `opposition`, `rectification`, `suppression`, `portability`, `redec_update`, `redec_rectification`, `redec_complementation`, `redec_cancellation`.
|
|
315
|
+
- `content.rightDescriptions`: Optional object to override DSR right descriptions. Supported keys: `access`, `opposition`, `rectification`, `suppression`, `portability`, `redec_update`, `redec_rectification`, `redec_complementation`, `redec_cancellation`.
|
|
312
316
|
- `header`: Optional legacy alias for `content.header`.
|
|
313
317
|
- `rightExamples`: Optional legacy alias for `content.rightExamples`.
|
|
318
|
+
- `rightDescriptions`: Optional legacy alias for `content.rightDescriptions`.
|
|
314
319
|
- `isSandbox`: Whether to use the sandbox environment. Defaults to `false`.
|
|
315
320
|
- `consentControl`: Optional, controls the visual interaction for consent toggles. Values: `'switch'` (default) or `'checkbox'`.
|
|
316
321
|
- `consentMode`: Optional, controls how consent changes are committed. Values: `'immediate'` (default) or `'batch'` (save multiple changes at once).
|
package/dist/index.d.ts
CHANGED
|
@@ -437,6 +437,7 @@ declare type PrivacyCenterConfig = BaseConfig<PrivacyCenterEvent> & {
|
|
|
437
437
|
content?: PrivacyCenterContentConfig;
|
|
438
438
|
header?: PrivacyCenterHeaderCopyConfig;
|
|
439
439
|
rightExamples?: PrivacyCenterContentConfig['rightExamples'];
|
|
440
|
+
rightDescriptions?: PrivacyCenterContentConfig['rightDescriptions'];
|
|
440
441
|
origin?: string;
|
|
441
442
|
metadata?: Record<string, unknown>;
|
|
442
443
|
} & ({
|
|
@@ -470,6 +471,7 @@ declare type PrivacyCenterContentConfig = {
|
|
|
470
471
|
header?: PrivacyCenterHeaderCopyConfig;
|
|
471
472
|
consentManagement?: PrivacyCenterConsentManagementCopyConfig;
|
|
472
473
|
rightExamples?: Partial<Record<DataSubjectRequestKind, string>>;
|
|
474
|
+
rightDescriptions?: Partial<Record<DataSubjectRequestKind, string>>;
|
|
473
475
|
};
|
|
474
476
|
|
|
475
477
|
declare type PrivacyCenterEvent = RequestSubmittedEvent | RequestSubmissionFailedEvent | ValidationSuccessfulEvent | ValidationFailedEvent | ConsentUpdatedEvent | ConsentUpdateFailedEvent | ConsentBatchUpdatedEvent | ConsentBatchUpdateFailedEvent | UnexpectedErrorEvent;
|