Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@transcend-io/airgap.js-types

Package Overview
Dependencies
Maintainers
7
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transcend-io/airgap.js-types - npm Package Compare versions

Comparing version 10.5.5 to 10.6.0

2

build/core.d.ts

@@ -441,2 +441,3 @@ import * as t from 'io-ts';

viewState: t.KeyofC<{
TCFEU: unknown;
QuickOptions: unknown;

@@ -462,3 +463,2 @@ QuickOptions3: unknown;

Closed: unknown;
TCF_EU: unknown;
}>;

@@ -465,0 +465,0 @@ /** Airgap Version */

/**
* Consent Manager view state for the Interactive Advertising Bureau
*/
export declare const IABViewState: {
TCFEU: "TCFEU";
};
/**
* View States for Transcend's Consent Manager UI
*/
export declare const InitialTranscendViewState: {
QuickOptions: "QuickOptions";
QuickOptions3: "QuickOptions3";
AcceptAll: "AcceptAll";
AcceptAllRejectAllToggle: "AcceptAllRejectAllToggle";
AcceptAllOrMoreChoices: "AcceptAllOrMoreChoices";
AcceptOrRejectAll: "AcceptOrRejectAll";
AcceptOrRejectAllOrMoreChoices: "AcceptOrRejectAllOrMoreChoices";
AcceptOrRejectAnalytics: "AcceptOrRejectAnalytics";
AcceptOrRejectAdvertising: "AcceptOrRejectAdvertising";
NoticeAndDoNotSell: "NoticeAndDoNotSell";
DoNotSellExplainer: "DoNotSellExplainer";
PrivacyPolicyNotice: "PrivacyPolicyNotice";
CompleteOptions: "CompleteOptions";
CompleteOptionsInverted: "CompleteOptionsInverted";
Hidden: "Hidden";
};
/**
* Type override
*/
export declare type InitialTranscendViewState = typeof InitialTranscendViewState[keyof typeof InitialTranscendViewState];
/**
* Consent Manager view states that can be used at launch
*/
export declare const InitialViewState: {
TCFEU: "TCFEU";
QuickOptions: "QuickOptions";

@@ -58,12 +89,5 @@ QuickOptions3: "QuickOptions3";

/**
* Consent Manager view state for the Interactive Advertising Bureau
*/
export declare const IABViewState: {
TCF_EU: "TCF_EU";
};
/**
* All possible view states of the Consent Manager
*/
export declare const ViewState: {
TCF_EU: "TCF_EU";
Collapsed: "Collapsed";

@@ -74,2 +98,3 @@ Closed: "Closed";

OptOutDisclosure: "OptOutDisclosure";
TCFEU: "TCFEU";
QuickOptions: "QuickOptions";

@@ -76,0 +101,0 @@ QuickOptions3: "QuickOptions3";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ViewState = exports.IABViewState = exports.DismissedViewState = exports.DeepViewState = exports.ResponseViewState = exports.InitialViewState = void 0;
exports.ViewState = exports.DismissedViewState = exports.DeepViewState = exports.ResponseViewState = exports.InitialViewState = exports.InitialTranscendViewState = exports.IABViewState = void 0;
// main
const type_utils_1 = require("@transcend-io/type-utils");
/**
* Consent Manager view states that can be used at launch
* Consent Manager view state for the Interactive Advertising Bureau
*/
exports.InitialViewState = (0, type_utils_1.makeEnum)({
exports.IABViewState = (0, type_utils_1.makeEnum)({
/* Transparency and Consent Framework for Europe */
TCFEU: 'TCFEU',
});
/**
* View States for Transcend's Consent Manager UI
*/
exports.InitialTranscendViewState = (0, type_utils_1.makeEnum)({
/* expanded and showing quick select options */

@@ -42,2 +49,11 @@ QuickOptions: 'QuickOptions',

/**
* Consent Manager view states that can be used at launch
*/
exports.InitialViewState = (0, type_utils_1.makeEnum)({
/** View States for Transcend's Consent Manager UI */
...exports.InitialTranscendViewState,
/** View States for IAB Frameworks */
...exports.IABViewState,
});
/**
* View states that are displayed in response to a user request (e.g. transcend.doNotSell() or )

@@ -68,9 +84,2 @@ */

/**
* Consent Manager view state for the Interactive Advertising Bureau
*/
exports.IABViewState = (0, type_utils_1.makeEnum)({
/* Transparency and Consent Framework for Europe */
TCF_EU: 'TCF_EU',
});
/**
* All possible view states of the Consent Manager

@@ -83,4 +92,3 @@ */

...exports.DismissedViewState,
...exports.IABViewState,
});
//# sourceMappingURL=viewState.js.map

@@ -80,2 +80,7 @@ import * as t from 'io-ts';

export declare type ConsentManagerBreakpoints = t.TypeOf<typeof ConsentManagerBreakpoints>;
/**
* TODO: https://transcend.height.app/T-19149 - remove
*
* @deprecated
*/
export declare const PrivacyRegimeToInitialViewStateInput: t.PartialC<{

@@ -219,4 +224,13 @@ Unknown: t.KeyofC<{

}>;
/** type overload */
/**
* TODO: https://transcend.height.app/T-19149 - remove
*
* @deprecated
*/
export declare type PrivacyRegimeToInitialViewStateInput = t.TypeOf<typeof PrivacyRegimeToInitialViewStateInput>;
/**
* TODO: https://transcend.height.app/T-19149 - remove
*
* @deprecated
*/
export declare const PrivacyRegimeToInitialViewState: t.RecordC<t.KeyofC<{

@@ -248,4 +262,28 @@ Unknown: unknown;

}>>;
/**
* TODO: https://transcend.height.app/T-19149 - remove
*
* @deprecated
*/
export declare type PrivacyRegimeToInitialViewState = t.TypeOf<typeof PrivacyRegimeToInitialViewState>;
export declare const ExperienceToInitialViewState: t.RecordC<t.StringC, t.KeyofC<{
TCFEU: unknown;
QuickOptions: unknown;
QuickOptions3: unknown;
AcceptAll: unknown;
AcceptAllRejectAllToggle: unknown;
AcceptAllOrMoreChoices: unknown;
AcceptOrRejectAll: unknown;
AcceptOrRejectAllOrMoreChoices: unknown;
AcceptOrRejectAnalytics: unknown;
AcceptOrRejectAdvertising: unknown;
NoticeAndDoNotSell: unknown;
DoNotSellExplainer: unknown;
PrivacyPolicyNotice: unknown;
CompleteOptions: unknown;
CompleteOptionsInverted: unknown;
Hidden: unknown;
}>>;
/** type overload */
export declare type PrivacyRegimeToInitialViewState = t.TypeOf<typeof PrivacyRegimeToInitialViewState>;
export declare type ExperienceToInitialViewState = t.TypeOf<typeof ExperienceToInitialViewState>;
export declare const RequiredConsentManagerConfig: t.TypeC<{

@@ -275,12 +313,4 @@ /** Customer theming */

/** What state the consent manager should launch in */
initialViewStateByPrivacyRegime: t.RecordC<t.KeyofC<{
Unknown: unknown;
CPRA: unknown;
GDPR: unknown;
LGPD: unknown;
CDPA: unknown;
CPA: unknown;
NEVADA_SB220: unknown;
nFADP: unknown;
}>, t.KeyofC<{
initialViewStateByPrivacyRegime: t.RecordC<t.StringC, t.KeyofC<{
TCFEU: unknown;
QuickOptions: unknown;

@@ -341,12 +371,4 @@ QuickOptions3: unknown;

/** What state the consent manager should launch in */
initialViewStateByPrivacyRegime: t.RecordC<t.KeyofC<{
Unknown: unknown;
CPRA: unknown;
GDPR: unknown;
LGPD: unknown;
CDPA: unknown;
CPA: unknown;
NEVADA_SB220: unknown;
nFADP: unknown;
}>, t.KeyofC<{
initialViewStateByPrivacyRegime: t.RecordC<t.StringC, t.KeyofC<{
TCFEU: unknown;
QuickOptions: unknown;

@@ -404,12 +426,4 @@ QuickOptions3: unknown;

/** What state the consent manager should launch in */
initialViewStateByPrivacyRegime: t.RecordC<t.KeyofC<{
Unknown: unknown;
CPRA: unknown;
GDPR: unknown;
LGPD: unknown;
CDPA: unknown;
CPA: unknown;
NEVADA_SB220: unknown;
nFADP: unknown;
}>, t.KeyofC<{
initialViewStateByPrivacyRegime: t.RecordC<t.StringC, t.KeyofC<{
TCFEU: unknown;
QuickOptions: unknown;

@@ -469,3 +483,3 @@ QuickOptions3: unknown;

};
export declare const DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME: PrivacyRegimeToInitialViewState;
export declare const DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME: ExperienceToInitialViewState;
//# sourceMappingURL=ui.d.ts.map

@@ -22,3 +22,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME = exports.TCFConfigInput = exports.TCFConfig = exports.ConsentManagerConfigInput = exports.ConsentManagerConfig = exports.OptionalConsentManagerConfig = exports.RequiredConsentManagerConfig = exports.PrivacyRegimeToInitialViewState = exports.PrivacyRegimeToInitialViewStateInput = exports.ConsentManagerBreakpoints = exports.ConsentManagerTheme = void 0;
exports.DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME = exports.TCFConfigInput = exports.TCFConfig = exports.ConsentManagerConfigInput = exports.ConsentManagerConfig = exports.OptionalConsentManagerConfig = exports.RequiredConsentManagerConfig = exports.ExperienceToInitialViewState = exports.PrivacyRegimeToInitialViewState = exports.PrivacyRegimeToInitialViewStateInput = exports.ConsentManagerBreakpoints = exports.ConsentManagerTheme = void 0;
// external

@@ -49,4 +49,15 @@ const t = __importStar(require("io-ts"));

});
exports.PrivacyRegimeToInitialViewStateInput = t.partial((0, type_utils_1.applyEnum)(enums_1.PrivacyRegimeEnum, () => (0, type_utils_1.valuesOf)(enums_1.InitialViewState)));
exports.PrivacyRegimeToInitialViewState = t.record((0, type_utils_1.valuesOf)(enums_1.PrivacyRegimeEnum), (0, type_utils_1.valuesOf)(enums_1.InitialViewState));
/**
* TODO: https://transcend.height.app/T-19149 - remove
*
* @deprecated
*/
exports.PrivacyRegimeToInitialViewStateInput = t.partial((0, type_utils_1.applyEnum)(enums_1.PrivacyRegimeEnum, () => (0, type_utils_1.valuesOf)(enums_1.InitialTranscendViewState)));
/**
* TODO: https://transcend.height.app/T-19149 - remove
*
* @deprecated
*/
exports.PrivacyRegimeToInitialViewState = t.record((0, type_utils_1.valuesOf)(enums_1.PrivacyRegimeEnum), (0, type_utils_1.valuesOf)(enums_1.InitialTranscendViewState));
exports.ExperienceToInitialViewState = t.record(t.string, (0, type_utils_1.valuesOf)(enums_1.InitialViewState));
exports.RequiredConsentManagerConfig = t.type({

@@ -66,3 +77,3 @@ /** Customer theming */

/** What state the consent manager should launch in */
initialViewStateByPrivacyRegime: exports.PrivacyRegimeToInitialViewState,
initialViewStateByPrivacyRegime: exports.ExperienceToInitialViewState,
/** What state the consent manager should go to when dismissed */

@@ -69,0 +80,0 @@ dismissedViewState: (0, type_utils_1.valuesOf)(enums_1.DismissedViewState),

@@ -5,3 +5,3 @@ {

"description": "TypeScript types for airgap.js interoperability with custom consent UIs",
"version": "10.5.5",
"version": "10.6.0",
"homepage": "https://github.com/transcend-io/airgap.js-types",

@@ -8,0 +8,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc