@soyio/soyio-widget 2.19.0 → 2.20.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 +21 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +527 -506
- package/dist/index.umd.cjs +14 -14
- package/package.json +1 -1
- package/src/schemas/config.schema.json +28 -0
package/README.md
CHANGED
|
@@ -182,6 +182,12 @@ The `PrivacyCenterBox` lets you embed the Privacy Center inside your page. You c
|
|
|
182
182
|
maxFileSize: 5 * 1024 * 1024, // 5MB
|
|
183
183
|
},
|
|
184
184
|
|
|
185
|
+
// Redec operation options (optional unless "redec" is in enabledRights)
|
|
186
|
+
redecOperationIds: [
|
|
187
|
+
{ id: "op_update", label: "Update" },
|
|
188
|
+
{ id: "op_rectification", label: "Rectification" },
|
|
189
|
+
],
|
|
190
|
+
|
|
185
191
|
// Common options
|
|
186
192
|
onEvent: (event) => console.log(event),
|
|
187
193
|
onReady: () => console.log("PrivacyCenterBox is ready"), // Optional
|
|
@@ -208,6 +214,7 @@ The `PrivacyCenterBox` lets you embed the Privacy Center inside your page. You c
|
|
|
208
214
|
- `fileRequisites`: Optional object to configure file upload constraints.
|
|
209
215
|
- `allowedExtensions`: Array of allowed file extensions (e.g. `['pdf', 'jpg']`). Default: `['pdf', 'png', 'jpeg', 'jpg']`.
|
|
210
216
|
- `maxFileSize`: Maximum file size in bytes. Default: `5 * 1024 * 1024` (5MB).
|
|
217
|
+
- `redecOperationIds`: Optional array of `{ id, label }` values for the Redec operation select. Required if `redec` right is included in `enabledRights` param.
|
|
211
218
|
- `isSandbox`: Whether to use the sandbox environment. Defaults to `false`.
|
|
212
219
|
- `appearance`: Customize the iframe appearance. See Appearance section below.
|
|
213
220
|
- `onEvent`: Callback that receives events from the iframe.
|
|
@@ -1125,6 +1132,20 @@ VITE_CONSENT_URL=http://localhost:5173
|
|
|
1125
1132
|
VITE_CONSENT_TEMPLATE_ID=constpl_test
|
|
1126
1133
|
```
|
|
1127
1134
|
|
|
1135
|
+
To test DSR rights in the Privacy Center tab, add these parameters to the JSON config in the editor:
|
|
1136
|
+
|
|
1137
|
+
```json
|
|
1138
|
+
{
|
|
1139
|
+
"enabledRights": ["arsop", "redec"],
|
|
1140
|
+
"redecOperationIds": [
|
|
1141
|
+
{ "id": "op_update", "label": "Update" },
|
|
1142
|
+
{ "id": "op_rectification", "label": "Rectification" }
|
|
1143
|
+
]
|
|
1144
|
+
}
|
|
1145
|
+
```
|
|
1146
|
+
|
|
1147
|
+
`redecOperationIds` is required when `redec` is included in `enabledRights`.
|
|
1148
|
+
|
|
1128
1149
|
### Presets Management
|
|
1129
1150
|
|
|
1130
1151
|
The smoke test includes preset management functionality that allows you to save, load, and share widget configurations:
|
package/dist/index.d.ts
CHANGED
|
@@ -250,6 +250,7 @@ export declare class PrivacyCenterBox extends BaseIframeBox<PrivacyCenterConfig>
|
|
|
250
250
|
protected readonly _uniqueIdentifier = "privacy-center";
|
|
251
251
|
readonly defaultIframeCSSConfig: IframeCSSConfig;
|
|
252
252
|
get uniqueIdentifier(): string;
|
|
253
|
+
protected handleIframeReady(): Promise<void>;
|
|
253
254
|
iframeUrl(): string;
|
|
254
255
|
}
|
|
255
256
|
|
|
@@ -263,6 +264,7 @@ declare type PrivacyCenterConfig = BaseConfig & {
|
|
|
263
264
|
allowedExtensions?: string[];
|
|
264
265
|
maxFileSize?: number;
|
|
265
266
|
};
|
|
267
|
+
redecOperationIds?: RedecOperationId[];
|
|
266
268
|
} & ({
|
|
267
269
|
companyId: `com_${string}`;
|
|
268
270
|
sessionToken?: never;
|
|
@@ -275,6 +277,11 @@ declare type PrivacyCenterRight = 'arsop' | 'redec';
|
|
|
275
277
|
|
|
276
278
|
declare type PrivacyManagerFeature = 'DataSubjectRequest' | 'ConsentManagement' | 'RequestTracking';
|
|
277
279
|
|
|
280
|
+
declare type RedecOperationId = {
|
|
281
|
+
id: string;
|
|
282
|
+
label: string;
|
|
283
|
+
};
|
|
284
|
+
|
|
278
285
|
declare type Request_2 = 'disclosure' | 'signature' | 'authentication';
|
|
279
286
|
|
|
280
287
|
declare type RequestConfig = DisclosureRequestConfig | SignatureRequestConfig | AuthRequestConfig;
|