Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
# Runs a single command using the runners shell
- run: npm install
- run: npm run build
- run: npm run test-ci
- run: npm run test-ci
6 changes: 3 additions & 3 deletions .github/workflows/publish-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_NEW }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_NEW }}
20 changes: 17 additions & 3 deletions dist/consent-banner.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
declare interface ILink {
text: string;
href: string;
}

declare interface IRichText {
message: string;
links?: ILink[];
}

declare interface IBannerContent extends IRichText { }

declare interface IPreferencesDialogContent extends IRichText { }

declare interface ITheme {
"close-button-color": string;
"secondary-button-disabled-opacity": string;
Expand Down Expand Up @@ -42,13 +56,13 @@ declare interface IThemes {
"high-contrast"?: ITheme;
}
declare interface ITextResources {
bannerMessageHtml?: string;
banner?: IBannerContent;
acceptAllLabel?: string;
rejectAllLabel?: string;
moreInfoLabel?: string;
preferencesDialogCloseLabel?: string;
preferencesDialogTitle?: string;
preferencesDialogDescHtml?: string;
preferencesDialog?: IPreferencesDialogContent;
acceptLabel?: string;
rejectLabel?: string;
saveLabel?: string;
Expand All @@ -63,7 +77,7 @@ declare interface IOptions {
declare interface ICookieCategory {
id: string;
name: string;
descHtml: string;
description: IRichText;
isUnswitchable?: boolean;
}
declare interface ICookieCategoriesPreferences {
Expand Down
Loading
Loading