Skip to content

Commit

Permalink
Feat: Export all types of vanilla cookie consent
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Mar 18, 2024
1 parent 452d7ae commit 7bb36d2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/types/vanilla-cookieconsent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export namespace VanillaCookieConsent {
SETTINGS = 'settings',
}

interface ModalPrimaryButton {
export interface ModalPrimaryButton {
text?: string;
role?: PrimaryButtonRole;
}
Expand All @@ -53,7 +53,7 @@ export namespace VanillaCookieConsent {
role?: SecondaryButtonRole;
}

interface ModalBlockToggle {
export interface ModalBlockToggle {
value?: string;
enabled?: boolean;
readonly?: boolean;
Expand All @@ -66,21 +66,21 @@ export namespace VanillaCookieConsent {
[key: string]: string | boolean | undefined;
}

interface ModalBlock {
export interface ModalBlock {
title?: string;
description?: string;
toggle?: ModalBlockToggle;
cookie_table?: CookieTableItem[];
}

interface ConsentModal {
export interface ConsentModal {
title?: string;
description?: string;
primary_btn?: ModalPrimaryButton;
secondary_btn?: ModalSecondaryButton;
}

interface SettingsModal {
export interface SettingsModal {
title?: string;
accept_all_btn?: string;
reject_all_btn?: string;
Expand Down Expand Up @@ -127,20 +127,20 @@ export namespace VanillaCookieConsent {
ZOOM = 'zoom',
}

interface GuiConsentModal {
export interface GuiConsentModal {
layout: GuiConsentLayout;
position: GuiConsentPosition;
transition?: Transition;
swap_buttons: boolean;
}

interface GuiSettingsModal {
export interface GuiSettingsModal {
layout: GuiSettingsLayout;
position?: GuiSettingsPosition;
transition?: Transition;
}

interface GuiOptions {
export interface GuiOptions {
consent_modal?: GuiConsentModal;
settings_modal?: GuiSettingsModal;
}
Expand Down

0 comments on commit 7bb36d2

Please sign in to comment.