@adobe/alloy 2.30.1-beta.13 → 2.30.1-beta.14

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.
@@ -27,7 +27,8 @@ var _default = ({
27
27
  cookieTransfer,
28
28
  createResponse,
29
29
  decodeKndctrCookie,
30
- lifecycle
30
+ lifecycle,
31
+ consent
31
32
  }) => {
32
33
  const {
33
34
  edgeDomain,
@@ -63,6 +64,14 @@ var _default = ({
63
64
  }
64
65
  });
65
66
  }
67
+ const {
68
+ state
69
+ } = consent.current();
70
+ event.mergeMeta({
71
+ consent: {
72
+ state: state
73
+ }
74
+ });
66
75
  const ecid = decodeKndctrCookie();
67
76
  event.mergeXdm({
68
77
  identityMap: {
@@ -14,4 +14,4 @@ governing permissions and limitations under the License.
14
14
  */
15
15
  // The __VERSION__ keyword will be replace at alloy build time with the package.json version.
16
16
  // see babel-plugin-version
17
- var _default = exports.default = "2.30.1-beta.13";
17
+ var _default = exports.default = "2.30.1-beta.14";
@@ -24,7 +24,8 @@ export default ({
24
24
  cookieTransfer,
25
25
  createResponse,
26
26
  decodeKndctrCookie,
27
- lifecycle
27
+ lifecycle,
28
+ consent
28
29
  }) => {
29
30
  const {
30
31
  edgeDomain,
@@ -60,6 +61,14 @@ export default ({
60
61
  }
61
62
  });
62
63
  }
64
+ const {
65
+ state
66
+ } = consent.current();
67
+ event.mergeMeta({
68
+ consent: {
69
+ state: state
70
+ }
71
+ });
63
72
  const ecid = decodeKndctrCookie();
64
73
  event.mergeXdm({
65
74
  identityMap: {
@@ -13,4 +13,4 @@ governing permissions and limitations under the License.
13
13
  // The __VERSION__ keyword will be replace at alloy build time with the package.json version.
14
14
  // see babel-plugin-version
15
15
 
16
- export default "2.30.1-beta.13";
16
+ export default "2.30.1-beta.14";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.30.1-beta.13",
3
+ "version": "2.30.1-beta.14",
4
4
  "description": "Adobe Experience Platform Web SDK",
5
5
  "type": "module",
6
6
  "main": "libEs5/index.js",
@@ -1,4 +1,4 @@
1
- declare function _default({ eventManager, loggingCookieJar, config, logger, sendConversationServiceRequest, buildEndpointUrl, cookieTransfer, createResponse, decodeKndctrCookie, lifecycle, }: {
1
+ declare function _default({ eventManager, loggingCookieJar, config, logger, sendConversationServiceRequest, buildEndpointUrl, cookieTransfer, createResponse, decodeKndctrCookie, lifecycle, consent, }: {
2
2
  eventManager: any;
3
3
  loggingCookieJar: any;
4
4
  config: any;
@@ -9,6 +9,7 @@ declare function _default({ eventManager, loggingCookieJar, config, logger, send
9
9
  createResponse: any;
10
10
  decodeKndctrCookie: any;
11
11
  lifecycle: any;
12
+ consent: any;
12
13
  }): (options: any) => any;
13
14
  export default _default;
14
15
  //# sourceMappingURL=createSendConversationEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createSendConversationEvent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/createSendConversationEvent.js"],"names":[],"mappings":"AAiBe;;;;;;;;;;;KAcL,YAAO,SAgGhB"}
1
+ {"version":3,"file":"createSendConversationEvent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/createSendConversationEvent.js"],"names":[],"mappings":"AAiBe;;;;;;;;;;;;KAeL,YAAO,SAuGhB"}