@soyio/soyio-widget 3.0.0 → 3.2.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 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +566 -552
- package/dist/index.umd.cjs +32 -32
- package/package.json +1 -1
- package/src/schemas/config.schema.json +13 -0
package/README.md
CHANGED
|
@@ -193,6 +193,9 @@ The `PrivacyCenterBox` lets you embed the Privacy Center inside your page. You c
|
|
|
193
193
|
{ id: "op_rectification", label: "Rectification" },
|
|
194
194
|
],
|
|
195
195
|
|
|
196
|
+
// Override the "exercise your rights" link shown in consent-only mode (optional)
|
|
197
|
+
externalRightsExerciseUrl: "https://privacy.example.com/rights",
|
|
198
|
+
|
|
196
199
|
// Header and copy customization (optional)
|
|
197
200
|
content: {
|
|
198
201
|
header: {
|
|
@@ -268,6 +271,7 @@ The `PrivacyCenterBox` lets you embed the Privacy Center inside your page. You c
|
|
|
268
271
|
- `allowedExtensions`: Array of allowed file extensions (e.g. `['pdf', 'jpg']`). Default: `['pdf', 'png', 'jpeg', 'jpg']`.
|
|
269
272
|
- `maxFileSize`: Maximum file size in bytes. Default: `5 * 1024 * 1024` (5MB).
|
|
270
273
|
- `redecOperationIds`: Optional array of `{ id, label }` values for the Redec operation select. Required if `redec` right is included in `enabledRights` param.
|
|
274
|
+
- `externalRightsExerciseUrl`: Optional URL used by required consent alerts when users need to exercise their rights outside the embedded privacy center.
|
|
271
275
|
- `appearance.config.showHeader`: Optional boolean to show/hide the privacy center header (title and description).
|
|
272
276
|
- `content.header`: Optional object with `title` and `description` overrides for the privacy center header copy.
|
|
273
277
|
- `appearance.config.showConsentManagementHeader`: Optional boolean to show/hide the title and description in the consent management page.
|
|
@@ -290,7 +294,7 @@ The `PrivacyCenterBox` lets you embed the Privacy Center inside your page. You c
|
|
|
290
294
|
Note:
|
|
291
295
|
- When `sessionToken` is provided, do not pass `companyId`.
|
|
292
296
|
- `consentManagement.scopeGroups` is applied during initial iframe URL render and also synchronized through `SET_PRIVACY_CENTER_CONFIG` updates.
|
|
293
|
-
- `content.header`, `content.consentManagement.header`,
|
|
297
|
+
- `content.header`, `content.consentManagement.header`, `appearance.config.showConsentManagementHeader`, and `externalRightsExerciseUrl` are applied through `SET_PRIVACY_CENTER_CONFIG`; those overrides may briefly appear after the iframe is ready.
|
|
294
298
|
|
|
295
299
|
### Privacy Center Events
|
|
296
300
|
|
package/dist/index.d.ts
CHANGED
|
@@ -329,6 +329,8 @@ export declare class PrivacyCenterBox extends BaseIframeBox<Record<string, unkno
|
|
|
329
329
|
declare type PrivacyCenterConfig = BaseConfig & {
|
|
330
330
|
enabledFeatures?: PrivacyManagerFeature[];
|
|
331
331
|
enabledRights?: PrivacyCenterRight[];
|
|
332
|
+
/** @format uri @minLength 1 */
|
|
333
|
+
externalRightsExerciseUrl?: string;
|
|
332
334
|
dataSubjects?: DataSubject[];
|
|
333
335
|
requestReference?: string;
|
|
334
336
|
demo?: boolean;
|
|
@@ -359,6 +361,7 @@ declare type PrivacyCenterConsentManagementConfig = {
|
|
|
359
361
|
PrivacyCenterConsentManagementScopeGroupConfig,
|
|
360
362
|
...PrivacyCenterConsentManagementScopeGroupConfig[]
|
|
361
363
|
];
|
|
364
|
+
allowMultipleOpenScopeGroups?: boolean;
|
|
362
365
|
};
|
|
363
366
|
|
|
364
367
|
declare type PrivacyCenterConsentManagementCopyConfig = {
|