@muchbetteradventures/consent-manager 5.7.0 → 5.7.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commonjs/consent-manager/banner.js +20 -14
- package/commonjs/consent-manager/container.js +2 -2
- package/commonjs/consent-manager/index.js +5 -4
- package/esm/consent-manager/banner.js +20 -14
- package/esm/consent-manager/container.js +2 -2
- package/esm/consent-manager/index.js +5 -4
- package/package.json +4 -4
- package/standalone/consent-manager.js +2 -2
- package/standalone/consent-manager.js.map +1 -1
- package/types/consent-manager/banner.d.ts +2 -0
- package/types/consent-manager/container.d.ts +2 -1
- package/types/consent-manager/index.d.ts +1 -0
- package/types/types.d.ts +2 -0
- package/CHANGELOG.md +0 -62
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
2
|
import { CloseBehavior, CloseBehaviorFunction } from './container';
|
|
3
|
+
import { BannerMode } from '../types';
|
|
3
4
|
interface Props {
|
|
4
5
|
innerRef: (node: HTMLElement | null) => void;
|
|
5
6
|
onClose: (forceCloseBehaviour?: CloseBehavior | CloseBehaviorFunction) => void;
|
|
@@ -9,6 +10,7 @@ interface Props {
|
|
|
9
10
|
backgroundColor: string;
|
|
10
11
|
textColor: string;
|
|
11
12
|
showRejectAll: boolean;
|
|
13
|
+
bannerMode: BannerMode;
|
|
12
14
|
}
|
|
13
15
|
export default class Banner extends PureComponent<Props> {
|
|
14
16
|
static displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Destination, CategoryPreferences, CustomCategories, DefaultDestinationBehavior } from '../types';
|
|
2
|
+
import { Destination, CategoryPreferences, CustomCategories, DefaultDestinationBehavior, BannerMode } from '../types';
|
|
3
3
|
export declare function openDialog(): void;
|
|
4
4
|
export declare const enum CloseBehavior {
|
|
5
5
|
ACCEPT = "accept",
|
|
@@ -30,6 +30,7 @@ interface ContainerProps {
|
|
|
30
30
|
workspaceAddedNewDestinations?: boolean;
|
|
31
31
|
defaultDestinationBehavior?: DefaultDestinationBehavior;
|
|
32
32
|
showRejectAll: boolean;
|
|
33
|
+
bannerMode: BannerMode;
|
|
33
34
|
}
|
|
34
35
|
declare const Container: React.FC<ContainerProps>;
|
|
35
36
|
export default Container;
|
|
@@ -15,6 +15,7 @@ export default class ConsentManager extends PureComponent<ConsentManagerProps, {
|
|
|
15
15
|
preferencesDialogTitle: string;
|
|
16
16
|
defaultDestinationBehavior: string;
|
|
17
17
|
showRejectAll: boolean;
|
|
18
|
+
bannerMode: "blocking";
|
|
18
19
|
};
|
|
19
20
|
render(): JSX.Element;
|
|
20
21
|
getInitialPreferences: () => {};
|
package/types/types.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare type ConsentManagerInput = ConsentManagerProps & {
|
|
|
28
28
|
container: string;
|
|
29
29
|
};
|
|
30
30
|
export declare type DefaultDestinationBehavior = 'enable' | 'disable' | 'imply' | 'ask';
|
|
31
|
+
export declare type BannerMode = 'blocking' | 'floating';
|
|
31
32
|
interface StandaloneConsentManagerParams {
|
|
32
33
|
React: unknown;
|
|
33
34
|
version?: string;
|
|
@@ -81,5 +82,6 @@ export interface ConsentManagerProps {
|
|
|
81
82
|
defaultDestinationBehavior?: DefaultDestinationBehavior;
|
|
82
83
|
cdnHost?: string;
|
|
83
84
|
showRejectAll: boolean;
|
|
85
|
+
bannerMode?: BannerMode;
|
|
84
86
|
}
|
|
85
87
|
export {};
|
package/CHANGELOG.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 5.1.0(Nov 17, 2020)
|
|
4
|
-
|
|
5
|
-
- [#123](https://github.com/segmentio/consent-manager/pull/123) Fixed an issue where the react state wasn't being updated after the user updates the preferences via the `.savePreferences` API. This change also slightly changes how the Cancel confirmation modal is displayed.
|
|
6
|
-
|
|
7
|
-
## 5.0.2(Nov 9, 2020)
|
|
8
|
-
|
|
9
|
-
- [#111](https://github.com/segmentio/consent-manager/pull/111) Added missing TypeScript declarations in packaged output
|
|
10
|
-
|
|
11
|
-
### Added
|
|
12
|
-
|
|
13
|
-
- [#110](https://github.com/segmentio/consent-manager/pull/110) Added `cdnHost` property to allow using non-default CDN host
|
|
14
|
-
|
|
15
|
-
## 5.0.1(July 13, 2020)
|
|
16
|
-
|
|
17
|
-
### Added
|
|
18
|
-
|
|
19
|
-
- [#110](https://github.com/segmentio/consent-manager/pull/110) Added `cdnHost` property to allow using non-default CDN host
|
|
20
|
-
|
|
21
|
-
## 4.1.0(Dec 11, 2019)
|
|
22
|
-
|
|
23
|
-
### Added
|
|
24
|
-
|
|
25
|
-
- [#60](https://github.com/segmentio/consent-manager/pull/60) Add new `customCategories` option
|
|
26
|
-
|
|
27
|
-
## 4.0.1(Oct 10, 2019)
|
|
28
|
-
|
|
29
|
-
### Fixed
|
|
30
|
-
|
|
31
|
-
- Fix commonJS bundle
|
|
32
|
-
|
|
33
|
-
## 4.0.0(Oct 10, 2019)
|
|
34
|
-
|
|
35
|
-
### Breaking
|
|
36
|
-
|
|
37
|
-
- [#51](https://github.com/segmentio/consent-manager/pull/51) Deprecate data attributes and dataset
|
|
38
|
-
|
|
39
|
-
### Added
|
|
40
|
-
|
|
41
|
-
- [#48](https://github.com/segmentio/consent-manager/pull/48) Add new `closeBehavior` option
|
|
42
|
-
- [#49](https://github.com/segmentio/consent-manager/pull/49) Initial Preferences override
|
|
43
|
-
- [#52](https://github.com/segmentio/consent-manager/pull/52) Expose preferences manager
|
|
44
|
-
|
|
45
|
-
## 3.0.0(Oct 8, 2019)
|
|
46
|
-
|
|
47
|
-
### Breaking
|
|
48
|
-
|
|
49
|
-
- [#47](https://github.com/segmentio/consent-manager/pull/47) No longer imply consent on interaction
|
|
50
|
-
|
|
51
|
-
## 2.0.0
|
|
52
|
-
|
|
53
|
-
### Added
|
|
54
|
-
|
|
55
|
-
- [#46](https://github.com/segmentio/consent-manager/pull/46) ⚡️ Modernize
|
|
56
|
-
- [#47](https://github.com/segmentio/consent-manager/pull/47) 🙅🏻♀️No longer imply consent on interaction
|
|
57
|
-
|
|
58
|
-
## 1.3.1(Sep 24, 2019)
|
|
59
|
-
|
|
60
|
-
### Fixed
|
|
61
|
-
|
|
62
|
-
- [86387e6](https://github.com/segmentio/consent-manager/commit/86387e63f259fff9f34ee511b2fa6218341dfa17) Fix integrity hash
|