@transcend-io/airgap.js-types
Advanced tools
Comparing version 8.10.1 to 8.10.2
export * from './purpose'; | ||
export * from './privacyRegime'; | ||
export * from './viewState'; | ||
export * from './theme'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -16,3 +16,2 @@ "use strict"; | ||
__exportStar(require("./viewState"), exports); | ||
__exportStar(require("./theme"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -41,15 +41,5 @@ import * as t from 'io-ts'; | ||
/** | ||
* Custom styles | ||
*/ | ||
export declare const ConsentManagerThemeStyles: t.PartialC<{ | ||
p: t.StringC; | ||
primaryButton: t.StringC; | ||
secondaryButton: t.StringC; | ||
}>; | ||
/** Type override */ | ||
export declare type ConsentManagerThemeStyles = t.TypeOf<typeof ConsentManagerThemeStyles>; | ||
/** | ||
* Customer theming | ||
*/ | ||
export declare const ConsentManagerTheme: t.IntersectionC<[t.TypeC<{ | ||
export declare const ConsentManagerTheme: t.TypeC<{ | ||
/** Primary color */ | ||
@@ -59,10 +49,3 @@ primaryColor: t.StringC; | ||
fontColor: t.StringC; | ||
}>, t.PartialC<{ | ||
/** Custom CSS */ | ||
styles: t.PartialC<{ | ||
p: t.StringC; | ||
primaryButton: t.StringC; | ||
secondaryButton: t.StringC; | ||
}>; | ||
}>]>; | ||
}>; | ||
/** Type override */ | ||
@@ -161,3 +144,3 @@ export declare type ConsentManagerTheme = t.TypeOf<typeof ConsentManagerTheme>; | ||
/** Customer theming */ | ||
theme: t.IntersectionC<[t.TypeC<{ | ||
theme: t.TypeC<{ | ||
/** Primary color */ | ||
@@ -167,10 +150,3 @@ primaryColor: t.StringC; | ||
fontColor: t.StringC; | ||
}>, t.PartialC<{ | ||
/** Custom CSS */ | ||
styles: t.PartialC<{ | ||
p: t.StringC; | ||
primaryButton: t.StringC; | ||
secondaryButton: t.StringC; | ||
}>; | ||
}>]>; | ||
}>; | ||
/** A set of responsive breakpoints */ | ||
@@ -217,3 +193,3 @@ breakpoints: t.TypeC<{ | ||
/** Customer theming */ | ||
theme: t.IntersectionC<[t.TypeC<{ | ||
theme: t.TypeC<{ | ||
/** Primary color */ | ||
@@ -223,10 +199,3 @@ primaryColor: t.StringC; | ||
fontColor: t.StringC; | ||
}>, t.PartialC<{ | ||
/** Custom CSS */ | ||
styles: t.PartialC<{ | ||
p: t.StringC; | ||
primaryButton: t.StringC; | ||
secondaryButton: t.StringC; | ||
}>; | ||
}>]>; | ||
}>; | ||
/** A set of responsive breakpoints */ | ||
@@ -233,0 +202,0 @@ breakpoints: t.TypeC<{ |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME = exports.ConsentManagerConfigInput = exports.ConsentManagerConfig = exports.PrivacyRegimeToInitialViewState = exports.PrivacyRegimeToInitialViewStateInput = exports.ConsentManagerBreakpoints = exports.ConsentManagerTheme = exports.ConsentManagerThemeStyles = void 0; | ||
exports.DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME = exports.ConsentManagerConfigInput = exports.ConsentManagerConfig = exports.PrivacyRegimeToInitialViewState = exports.PrivacyRegimeToInitialViewStateInput = exports.ConsentManagerBreakpoints = exports.ConsentManagerTheme = void 0; | ||
// external | ||
@@ -31,20 +31,10 @@ const t = __importStar(require("io-ts")); | ||
/** | ||
* Custom styles | ||
*/ | ||
exports.ConsentManagerThemeStyles = t.partial((0, type_utils_1.applyEnum)(enums_1.CustomConsentManagerStyle, () => t.string)); | ||
/** | ||
* Customer theming | ||
*/ | ||
exports.ConsentManagerTheme = t.intersection([ | ||
t.type({ | ||
/** Primary color */ | ||
primaryColor: t.string, | ||
/** Font color */ | ||
fontColor: t.string, | ||
}), | ||
t.partial({ | ||
/** Custom CSS */ | ||
styles: exports.ConsentManagerThemeStyles, | ||
}), | ||
]); | ||
exports.ConsentManagerTheme = t.type({ | ||
/** Primary color */ | ||
primaryColor: t.string, | ||
/** Font color */ | ||
fontColor: t.string, | ||
}); | ||
/** | ||
@@ -51,0 +41,0 @@ * Mobile-first responsive breakpoints |
@@ -5,3 +5,3 @@ { | ||
"description": "TypeScript types for airgap.js interoperability with custom consent UIs", | ||
"version": "8.10.1", | ||
"version": "8.10.2", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114690
35
1127