Skip to content

Commit

Permalink
Merge pull request #4 from onyourmarks-agency/feature/deny-all
Browse files Browse the repository at this point in the history
Add deny all cookies option
  • Loading branch information
johnvanhulsen authored Feb 21, 2025
2 parents d34154a + 1bb2fc1 commit ca98de6
Show file tree
Hide file tree
Showing 16 changed files with 2,753 additions and 2,189 deletions.
18 changes: 16 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*Current version: 3.1.0*
*Current version: 3.2.0*

# Install

Expand Down Expand Up @@ -71,6 +71,7 @@ const options = {
},
],
manageable: true,
denyable: true,
renderSelector: '[data-oymcc-render]',
style: 'bar',
language: 'nl',
Expand All @@ -93,6 +94,7 @@ All possible options:
* [exceptionUrls](#exceptionUrls)
* [language](#language)
* [manageable](#manageable)
* [denyable](#denyable)
* [renderSelector](#renderSelector)
* [style](#style)
* [version](#version)
Expand Down Expand Up @@ -212,9 +214,21 @@ const options = {
};
```
When you didn't have consentOptions. You can use this package to tell yourvisiters that cookies are being used.
When you didn't have consentOptions. You can use this package to tell your visiters that cookies are being used.
The manage button are not rendered. No chooses can be made expect 'accept'.
### denyable
*Optional*
```es6
const options = {
denyable: true // Default: false
};
```
When denyable is set to true, a button will be shown to deny all cookies except the essential ones.
### renderSelector
*Optional*
Expand Down
2 changes: 1 addition & 1 deletion dist/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/types/_types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type ConfigType = {
explanationAnchors: ConfigExplanationAnchorType[] | [];
language: string;
manageable: boolean;
denyable: boolean;
renderSelector: string;
style: ConfigStyleType;
version: string;
Expand Down
2 changes: 2 additions & 0 deletions dist/types/_types/content.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type ContentManageType = {
};
buttons: {
all: string;
none: string;
save: string;
};
error: string;
Expand All @@ -23,6 +24,7 @@ export type ContentStartType = {
buttons: {
manage: string;
accept: string;
deny: string;
};
};
export type ContentPermissionsType = {
Expand Down
1 change: 1 addition & 0 deletions dist/types/services/PermissionService.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export declare const getCurrentPermissions: () => CookieAcceptedType;
export declare const setPermissions: () => void;
export declare const savePermissions: (permissions: any) => void;
export declare const saveAllPermissions: () => void;
export declare const saveNoPermissions: () => void;
export declare const checkPermission: (arr: string[] | string) => boolean;
Loading

0 comments on commit ca98de6

Please sign in to comment.