@redacto.io/consent-sdk-js 2.1.0 → 2.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/dist/redacto-privacy-center.global.js +1 -1
- package/dist/redacto-privacy-center.global.js.map +1 -1
- package/dist/redacto-privacy-center.js +5 -1
- package/dist/redacto-privacy-center.mjs +5 -1
- package/dist/redacto.d.mts +20 -1
- package/dist/redacto.d.ts +20 -1
- package/dist/redacto.global.js +76 -76
- package/dist/redacto.global.js.map +1 -1
- package/dist/redacto.js +914 -333
- package/dist/redacto.mjs +852 -333
- package/package.json +2 -2
|
@@ -21156,7 +21156,11 @@ var NOTICE_CHROME_EN = {
|
|
|
21156
21156
|
productPoliciesLabel: "Privacy policies:",
|
|
21157
21157
|
hintNothingChosen: "Select at least one purpose to confirm.",
|
|
21158
21158
|
hintNothingEngaged: "Select or change a purpose for the product you are consenting to.",
|
|
21159
|
-
hintRequiredOutstanding: "Accept the required purposes to confirm."
|
|
21159
|
+
hintRequiredOutstanding: "Accept the required purposes to confirm.",
|
|
21160
|
+
errorTitle: "Error Loading Consent Notice",
|
|
21161
|
+
errorMessage: "Failed to load consent notice. Please try again.",
|
|
21162
|
+
errorRefresh: "Refresh",
|
|
21163
|
+
errorClose: "Close error message"
|
|
21160
21164
|
};
|
|
21161
21165
|
|
|
21162
21166
|
// src/constants.ts
|
|
@@ -13422,7 +13422,11 @@ var NOTICE_CHROME_EN = {
|
|
|
13422
13422
|
productPoliciesLabel: "Privacy policies:",
|
|
13423
13423
|
hintNothingChosen: "Select at least one purpose to confirm.",
|
|
13424
13424
|
hintNothingEngaged: "Select or change a purpose for the product you are consenting to.",
|
|
13425
|
-
hintRequiredOutstanding: "Accept the required purposes to confirm."
|
|
13425
|
+
hintRequiredOutstanding: "Accept the required purposes to confirm.",
|
|
13426
|
+
errorTitle: "Error Loading Consent Notice",
|
|
13427
|
+
errorMessage: "Failed to load consent notice. Please try again.",
|
|
13428
|
+
errorRefresh: "Refresh",
|
|
13429
|
+
errorClose: "Close error message"
|
|
13426
13430
|
};
|
|
13427
13431
|
|
|
13428
13432
|
// src/constants.ts
|
package/dist/redacto.d.mts
CHANGED
|
@@ -323,6 +323,25 @@ declare class ApiError extends Error {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
/** Host-level webfont configuration, applied via `configureNoticeFonts`. */
|
|
327
|
+
type NoticeFontOptions = {
|
|
328
|
+
/**
|
|
329
|
+
* Skip webfont loading entirely; families resolve to their fallback stack,
|
|
330
|
+
* which is a same-genre face. Useful to avoid the per-family payload, or when
|
|
331
|
+
* a strict CSP omits `data:` from `font-src`.
|
|
332
|
+
*/
|
|
333
|
+
disabled?: boolean;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Configures notice webfont loading. Optional — the fonts ship inside this
|
|
338
|
+
* package and load automatically, so an integrator never has to call this.
|
|
339
|
+
*
|
|
340
|
+
* Pass `disabled: true` to skip loading entirely; families then render via their
|
|
341
|
+
* fallback stack, which is a same-genre face.
|
|
342
|
+
*/
|
|
343
|
+
declare const configureNoticeFonts: (options: NoticeFontOptions) => void;
|
|
344
|
+
|
|
326
345
|
/**
|
|
327
346
|
* Initialize a modal consent dialog.
|
|
328
347
|
* Renders a full-screen overlay with the consent form.
|
|
@@ -360,4 +379,4 @@ declare const RedactoConsent: {
|
|
|
360
379
|
version: string;
|
|
361
380
|
};
|
|
362
381
|
|
|
363
|
-
export { ApiError, type ApiErrorCode, type AssistedOptions, type DigiLockerCallbackOptions, type InlineOptions, type ModalOptions, type OtpGateOptions, type OtpVerifyResult, type PrivacyCenterHandle, type PrivacyCenterOptions, type Settings, assisted, RedactoConsent as default, destroy, digilockerCallback, init, inline, privacyCenter, updateToken };
|
|
382
|
+
export { ApiError, type ApiErrorCode, type AssistedOptions, type DigiLockerCallbackOptions, type InlineOptions, type ModalOptions, type NoticeFontOptions, type OtpGateOptions, type OtpVerifyResult, type PrivacyCenterHandle, type PrivacyCenterOptions, type Settings, assisted, configureNoticeFonts, RedactoConsent as default, destroy, digilockerCallback, init, inline, privacyCenter, updateToken };
|
package/dist/redacto.d.ts
CHANGED
|
@@ -323,6 +323,25 @@ declare class ApiError extends Error {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
/** Host-level webfont configuration, applied via `configureNoticeFonts`. */
|
|
327
|
+
type NoticeFontOptions = {
|
|
328
|
+
/**
|
|
329
|
+
* Skip webfont loading entirely; families resolve to their fallback stack,
|
|
330
|
+
* which is a same-genre face. Useful to avoid the per-family payload, or when
|
|
331
|
+
* a strict CSP omits `data:` from `font-src`.
|
|
332
|
+
*/
|
|
333
|
+
disabled?: boolean;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Configures notice webfont loading. Optional — the fonts ship inside this
|
|
338
|
+
* package and load automatically, so an integrator never has to call this.
|
|
339
|
+
*
|
|
340
|
+
* Pass `disabled: true` to skip loading entirely; families then render via their
|
|
341
|
+
* fallback stack, which is a same-genre face.
|
|
342
|
+
*/
|
|
343
|
+
declare const configureNoticeFonts: (options: NoticeFontOptions) => void;
|
|
344
|
+
|
|
326
345
|
/**
|
|
327
346
|
* Initialize a modal consent dialog.
|
|
328
347
|
* Renders a full-screen overlay with the consent form.
|
|
@@ -360,4 +379,4 @@ declare const RedactoConsent: {
|
|
|
360
379
|
version: string;
|
|
361
380
|
};
|
|
362
381
|
|
|
363
|
-
export { ApiError, type ApiErrorCode, type AssistedOptions, type DigiLockerCallbackOptions, type InlineOptions, type ModalOptions, type OtpGateOptions, type OtpVerifyResult, type PrivacyCenterHandle, type PrivacyCenterOptions, type Settings, assisted, RedactoConsent as default, destroy, digilockerCallback, init, inline, privacyCenter, updateToken };
|
|
382
|
+
export { ApiError, type ApiErrorCode, type AssistedOptions, type DigiLockerCallbackOptions, type InlineOptions, type ModalOptions, type NoticeFontOptions, type OtpGateOptions, type OtpVerifyResult, type PrivacyCenterHandle, type PrivacyCenterOptions, type Settings, assisted, configureNoticeFonts, RedactoConsent as default, destroy, digilockerCallback, init, inline, privacyCenter, updateToken };
|