@soyio/soyio-widget 2.25.2 → 2.26.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 +2 -0
- package/dist/index.js +492 -491
- package/dist/index.umd.cjs +27 -27
- package/package.json +12 -2
- package/src/schemas/config.schema.json +4 -0
package/README.md
CHANGED
|
@@ -129,7 +129,7 @@ The `onEvent` follows the following format:
|
|
|
129
129
|
- **`appearance`**: Customize the appearance of the iframe. [Learn more](https://docs.soyio.id/docs/integration-guide/modules/consent).
|
|
130
130
|
- **`actionToken`**: In case of losing the state of the consent (i.e. page reload), you can use a previously generated `actionToken` to restore the state of the consent.
|
|
131
131
|
- **`entityId`**: Identifier of the `entity` associated with a `ConsentAction`. If provided and a consent was previously granted by this entity, the UI will display a message indicating that consent has already been given.
|
|
132
|
-
- **`
|
|
132
|
+
- **`origin`**: Additional information that will be saved with the consent. Useful when you want to track the consent from a specific origin.
|
|
133
133
|
- **`onReady`**: Optional callback that executes when the consent box is ready to use. You can use this to handle logic when the iframe is not mounted yet.
|
|
134
134
|
- **`optionalReconsentBehavior`**: What should happen when the consent is initialized with an `entityId` that has already given consent on an optional category.
|
|
135
135
|
- `notice` will show a message letting the user know that they have already given consent,
|
package/dist/index.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ declare type ConsentConfig = BaseConfig & {
|
|
|
81
81
|
consentTemplateId: `constpl_${string}`;
|
|
82
82
|
actionToken?: string;
|
|
83
83
|
entityId?: `ent_${string}`;
|
|
84
|
+
origin?: string;
|
|
85
|
+
/** @deprecated Use `origin` instead. */
|
|
84
86
|
context?: string;
|
|
85
87
|
optionalReconsentBehavior?: 'notice' | 'askAgain' | 'hide';
|
|
86
88
|
mandatoryReconsentBehavior?: 'notice' | 'askAgain';
|