@adobe/alloy 2.8.0-beta.0 → 2.9.0-alpha.0

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.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/libEs5/components/DataCollector/index.js +2 -4
  3. package/libEs5/components/DataCollector/validateUserEventOptions.js +2 -12
  4. package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +2 -2
  5. package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +3 -5
  6. package/libEs5/components/Personalization/constants/eventType.js +19 -0
  7. package/libEs5/components/Personalization/createCollect.js +3 -1
  8. package/libEs5/components/Personalization/createComponent.js +6 -0
  9. package/libEs5/components/Personalization/createOnClickHandler.js +3 -1
  10. package/libEs5/components/Personalization/createViewCollect.js +3 -1
  11. package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +3 -1
  12. package/libEs5/components/Personalization/dom-actions/images.js +3 -1
  13. package/libEs5/components/Personalization/dom-actions/scripts.js +5 -3
  14. package/libEs5/components/Personalization/dom-actions/swapImage.js +3 -3
  15. package/libEs5/components/Privacy/createConsentRequest.js +2 -2
  16. package/libEs5/components/Privacy/createConsentRequestPayload.js +2 -2
  17. package/libEs5/constants/elementAttribute.js +17 -0
  18. package/libEs5/constants/libraryVersion.js +1 -1
  19. package/libEs5/constants/shadowSeparator.js +17 -0
  20. package/libEs5/constants/tagName.js +1 -3
  21. package/libEs5/core/index.js +3 -5
  22. package/libEs5/utils/dom/index.js +17 -1
  23. package/libEs5/utils/dom/isShadowSelector.js +22 -0
  24. package/libEs5/{components/Personalization/dom-actions → utils}/dom/querySelectorAll.js +1 -1
  25. package/libEs5/utils/dom/selectNodes.js +5 -3
  26. package/libEs5/{components/Personalization/dom-actions → utils}/dom/selectNodesWithShadow.js +7 -13
  27. package/libEs5/{core/edgeNetwork/requests/contentModifiers → utils/request}/createAddIdentity.js +0 -0
  28. package/libEs5/{core/edgeNetwork/requests → utils/request}/createDataCollectionRequest.js +0 -0
  29. package/libEs5/{core/edgeNetwork/requests → utils/request}/createDataCollectionRequestPayload.js +1 -1
  30. package/libEs5/{core/edgeNetwork/requests → utils/request}/createRequest.js +2 -2
  31. package/libEs5/{core/edgeNetwork/requests → utils/request}/createRequestPayload.js +3 -3
  32. package/libEs5/utils/request/index.js +42 -0
  33. package/libEs6/components/DataCollector/index.js +2 -4
  34. package/libEs6/components/DataCollector/validateUserEventOptions.js +2 -14
  35. package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +1 -1
  36. package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +1 -2
  37. package/libEs6/components/Personalization/constants/eventType.js +13 -0
  38. package/libEs6/components/Personalization/createCollect.js +2 -1
  39. package/libEs6/components/Personalization/createComponent.js +5 -0
  40. package/libEs6/components/Personalization/createOnClickHandler.js +2 -1
  41. package/libEs6/components/Personalization/createViewCollect.js +2 -1
  42. package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +2 -1
  43. package/libEs6/components/Personalization/dom-actions/images.js +2 -1
  44. package/libEs6/components/Personalization/dom-actions/scripts.js +2 -1
  45. package/libEs6/components/Personalization/dom-actions/swapImage.js +1 -1
  46. package/libEs6/components/Privacy/createConsentRequest.js +1 -1
  47. package/libEs6/components/Privacy/createConsentRequestPayload.js +1 -1
  48. package/libEs6/constants/elementAttribute.js +12 -0
  49. package/libEs6/constants/libraryVersion.js +1 -1
  50. package/libEs6/constants/shadowSeparator.js +12 -0
  51. package/libEs6/constants/tagName.js +0 -1
  52. package/libEs6/core/index.js +1 -2
  53. package/libEs6/utils/dom/index.js +3 -1
  54. package/libEs6/utils/dom/isShadowSelector.js +13 -0
  55. package/libEs6/{components/Personalization/dom-actions → utils}/dom/querySelectorAll.js +1 -1
  56. package/libEs6/utils/dom/selectNodes.js +3 -2
  57. package/libEs6/{components/Personalization/dom-actions → utils}/dom/selectNodesWithShadow.js +2 -3
  58. package/libEs6/{core/edgeNetwork/requests/contentModifiers → utils/request}/createAddIdentity.js +0 -0
  59. package/libEs6/{core/edgeNetwork/requests → utils/request}/createDataCollectionRequest.js +0 -0
  60. package/libEs6/{core/edgeNetwork/requests → utils/request}/createDataCollectionRequestPayload.js +1 -1
  61. package/libEs6/{core/edgeNetwork/requests → utils/request}/createRequest.js +1 -1
  62. package/libEs6/{core/edgeNetwork/requests → utils/request}/createRequestPayload.js +1 -1
  63. package/libEs6/utils/request/index.js +16 -0
  64. package/package.json +2 -2
package/README.md CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  Alloy is the code name for the Adobe Experience Platform Web SDK. It allows for recording events into Adobe Experience Platform, syncing identities, personalizing content, and more.
6
6
 
7
- For documentation on how to use Alloy, please see the [user documentation](https://adobe.ly/36dGGp6).
7
+ For documentation on how to use Alloy, please see the [user documentation](https://experienceleague.adobe.com/docs/experience-platform/edge/home.html).
8
8
 
9
9
  For documentation on how to contribute to Alloy, please see the [developer documentation](https://github.com/adobe/alloy/wiki).
@@ -16,16 +16,14 @@ OF ANY KIND, either express or implied. See the License for the specific languag
16
16
  governing permissions and limitations under the License.
17
17
  */
18
18
  var createDataCollector = function createDataCollector(_ref) {
19
- var eventManager = _ref.eventManager,
20
- logger = _ref.logger;
19
+ var eventManager = _ref.eventManager;
21
20
  return {
22
21
  commands: {
23
22
  sendEvent: {
24
23
  documentationUri: "https://adobe.ly/2r0uUjh",
25
24
  optionsValidator: function optionsValidator(options) {
26
25
  return (0, _validateUserEventOptions.default)({
27
- options: options,
28
- logger: logger
26
+ options: options
29
27
  });
30
28
  },
31
29
  run: function run(options) {
@@ -21,12 +21,10 @@ governing permissions and limitations under the License.
21
21
  /**
22
22
  * Verifies user provided event options.
23
23
  * @param {*} options The user event options to validate
24
- * @param {*} logger
25
24
  * @returns {*} Validated options
26
25
  */
27
26
  var _default = function _default(_ref) {
28
- var options = _ref.options,
29
- logger = _ref.logger;
27
+ var options = _ref.options;
30
28
  var eventOptionsValidator = (0, _validation.objectOf)({
31
29
  type: (0, _validation.string)(),
32
30
  xdm: (0, _validation.objectOf)({
@@ -38,15 +36,7 @@ var _default = function _default(_ref) {
38
36
  decisionScopes: (0, _validation.arrayOf)((0, _validation.string)()),
39
37
  datasetId: (0, _validation.string)()
40
38
  }).required();
41
- var validatedOptions = eventOptionsValidator(options);
42
- var type = validatedOptions.type,
43
- xdm = validatedOptions.xdm;
44
-
45
- if (xdm && !xdm.eventType && !type) {
46
- logger.warn("No type or xdm.eventType specified.");
47
- }
48
-
49
- return validatedOptions;
39
+ return eventOptionsValidator(options);
50
40
  };
51
41
 
52
42
  exports.default = _default;
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _createRequest = require("../../../core/edgeNetwork/requests/createRequest");
5
+ var _request = require("../../../utils/request");
6
6
 
7
7
  /*
8
8
  Copyright 2020 Adobe. All rights reserved.
@@ -16,7 +16,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
16
16
  governing permissions and limitations under the License.
17
17
  */
18
18
  var _default = function _default(identityRequestPayload) {
19
- return (0, _createRequest.default)({
19
+ return (0, _request.createRequest)({
20
20
  payload: identityRequestPayload,
21
21
  getAction: function getAction() {
22
22
  return "identity/acquire";
@@ -2,9 +2,7 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _createRequestPayload = require("../../../core/edgeNetwork/requests/createRequestPayload");
6
-
7
- var _createAddIdentity = require("../../../core/edgeNetwork/requests/contentModifiers/createAddIdentity");
5
+ var _request = require("../../../utils/request");
8
6
 
9
7
  /*
10
8
  Copyright 2020 Adobe. All rights reserved.
@@ -25,9 +23,9 @@ var _default = function _default(namespaces) {
25
23
  }
26
24
  }
27
25
  };
28
- return (0, _createRequestPayload.default)({
26
+ return (0, _request.createRequestPayload)({
29
27
  content: content,
30
- addIdentity: (0, _createAddIdentity.default)(content)
28
+ addIdentity: (0, _request.createAddIdentity)(content)
31
29
  });
32
30
  };
33
31
 
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ exports.INTERACT = exports.DISPLAY = void 0;
4
+
5
+ /*
6
+ Copyright 2022 Adobe. All rights reserved.
7
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License. You may obtain a copy
9
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software distributed under
12
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
+ OF ANY KIND, either express or implied. See the License for the specific language
14
+ governing permissions and limitations under the License.
15
+ */
16
+ var DISPLAY = "decisioning.propositionDisplay";
17
+ exports.DISPLAY = DISPLAY;
18
+ var INTERACT = "decisioning.propositionInteract";
19
+ exports.INTERACT = INTERACT;
@@ -2,6 +2,8 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
+ var _eventType = require("./constants/eventType");
6
+
5
7
  /*
6
8
  Copyright 2020 Adobe. All rights reserved.
7
9
  This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -23,7 +25,7 @@ var _default = function _default(_ref) {
23
25
  documentMayUnload = _ref2$documentMayUnlo === void 0 ? false : _ref2$documentMayUnlo;
24
26
  var event = eventManager.createEvent();
25
27
  event.mergeXdm({
26
- eventType: "decisioning.propositionDisplay"
28
+ eventType: _eventType.DISPLAY
27
29
  });
28
30
  mergeDecisionsMeta(event, decisionsMeta);
29
31
 
@@ -38,6 +38,12 @@ var _default = function _default(_ref) {
38
38
  onResponse = _ref2$onResponse === void 0 ? _utils.noop : _ref2$onResponse,
39
39
  _ref2$onRequestFailur = _ref2.onRequestFailure,
40
40
  onRequestFailure = _ref2$onRequestFailur === void 0 ? _utils.noop : _ref2$onRequestFailur;
41
+ // Include proositions on all responses, overridden with data as needed
42
+ onResponse(function () {
43
+ return {
44
+ propositions: []
45
+ };
46
+ });
41
47
 
42
48
  if (isAuthoringModeEnabled()) {
43
49
  logger.warn(_loggerMessage.AUTHORING_ENABLED); // If we are in authoring mode we disable personalization
@@ -4,6 +4,8 @@ exports.default = void 0;
4
4
 
5
5
  var _utils = require("../../utils");
6
6
 
7
+ var _eventType = require("./constants/eventType");
8
+
7
9
  /*
8
10
  Copyright 2020 Adobe. All rights reserved.
9
11
  This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -31,7 +33,7 @@ var _default = function _default(_ref) {
31
33
 
32
34
  if ((0, _utils.isNonEmptyArray)(decisionsMeta)) {
33
35
  event.mergeXdm({
34
- eventType: "decisioning.propositionInteract"
36
+ eventType: _eventType.INTERACT
35
37
  });
36
38
  mergeDecisionsMeta(event, decisionsMeta);
37
39
  }
@@ -4,6 +4,8 @@ exports.default = void 0;
4
4
 
5
5
  var _utils = require("../../utils");
6
6
 
7
+ var _eventType = require("./constants/eventType");
8
+
7
9
  /*
8
10
  Copyright 2020 Adobe. All rights reserved.
9
11
  This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -23,7 +25,7 @@ var _default = function _default(_ref) {
23
25
  var decisionsMeta = _ref2.decisionsMeta,
24
26
  xdm = _ref2.xdm;
25
27
  var data = {
26
- eventType: "decisioning.propositionDisplay"
28
+ eventType: _eventType.DISPLAY
27
29
  };
28
30
  var event = eventManager.createEvent();
29
31
 
@@ -6,6 +6,8 @@ var _dom = require("../../../utils/dom");
6
6
 
7
7
  var _tagName = require("../../../constants/tagName");
8
8
 
9
+ var _elementAttribute = require("../../../constants/elementAttribute");
10
+
9
11
  var _dom2 = require("./dom");
10
12
 
11
13
  /*
@@ -24,7 +26,7 @@ var is = function is(element, tagName) {
24
26
  };
25
27
 
26
28
  var isInlineStyleElement = function isInlineStyleElement(element) {
27
- return is(element, _tagName.STYLE) && !(0, _dom2.getAttribute)(element, _tagName.SRC);
29
+ return is(element, _tagName.STYLE) && !(0, _dom2.getAttribute)(element, _elementAttribute.SRC);
28
30
  };
29
31
 
30
32
  var _default = function _default(fragment) {
@@ -6,6 +6,8 @@ var _dom = require("../../../utils/dom");
6
6
 
7
7
  var _tagName = require("../../../constants/tagName");
8
8
 
9
+ var _elementAttribute = require("../../../constants/elementAttribute");
10
+
9
11
  var _dom2 = require("./dom");
10
12
 
11
13
  /*
@@ -36,7 +38,7 @@ exports.loadImage = loadImage;
36
38
  var loadImages = function loadImages(fragment) {
37
39
  var images = (0, _dom.selectNodes)(_tagName.IMG, fragment);
38
40
  images.forEach(function (image) {
39
- var url = (0, _dom2.getAttribute)(image, _tagName.SRC);
41
+ var url = (0, _dom2.getAttribute)(image, _elementAttribute.SRC);
40
42
 
41
43
  if (url) {
42
44
  loadImage(url);
@@ -8,6 +8,8 @@ var _dom = require("../../../utils/dom");
8
8
 
9
9
  var _tagName = require("../../../constants/tagName");
10
10
 
11
+ var _elementAttribute = require("../../../constants/elementAttribute");
12
+
11
13
  var _dom2 = require("./dom");
12
14
 
13
15
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -23,11 +25,11 @@ var is = function is(element, tagName) {
23
25
  exports.is = is;
24
26
 
25
27
  var isInlineScript = function isInlineScript(element) {
26
- return is(element, _tagName.SCRIPT) && !(0, _dom2.getAttribute)(element, _tagName.SRC);
28
+ return is(element, _tagName.SCRIPT) && !(0, _dom2.getAttribute)(element, _elementAttribute.SRC);
27
29
  };
28
30
 
29
31
  var isRemoteScript = function isRemoteScript(element) {
30
- return is(element, _tagName.SCRIPT) && (0, _dom2.getAttribute)(element, _tagName.SRC);
32
+ return is(element, _tagName.SCRIPT) && (0, _dom2.getAttribute)(element, _elementAttribute.SRC);
31
33
  };
32
34
 
33
35
  var getInlineScripts = function getInlineScripts(fragment) {
@@ -80,7 +82,7 @@ var getRemoteScriptsUrls = function getRemoteScriptsUrls(fragment) {
80
82
  continue;
81
83
  }
82
84
 
83
- var url = (0, _dom2.getAttribute)(element, _tagName.SRC);
85
+ var url = (0, _dom2.getAttribute)(element, _elementAttribute.SRC);
84
86
 
85
87
  if (!url) {
86
88
  continue;
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _tagName = require("../../../constants/tagName");
5
+ var _elementAttribute = require("../../../constants/elementAttribute");
6
6
 
7
7
  var _dom = require("./dom");
8
8
 
@@ -27,9 +27,9 @@ var _default = function _default(container, url) {
27
27
 
28
28
  (0, _images.loadImage)(url); // Remove "src" so there is no flicker
29
29
 
30
- (0, _dom.removeAttribute)(container, _tagName.SRC); // Replace the image "src"
30
+ (0, _dom.removeAttribute)(container, _elementAttribute.SRC); // Replace the image "src"
31
31
 
32
- (0, _dom.setAttribute)(container, _tagName.SRC, url);
32
+ (0, _dom.setAttribute)(container, _elementAttribute.SRC, url);
33
33
  };
34
34
 
35
35
  exports.default = _default;
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _createRequest = require("../../core/edgeNetwork/requests/createRequest");
5
+ var _request = require("../../utils/request");
6
6
 
7
7
  /*
8
8
  Copyright 2020 Adobe. All rights reserved.
@@ -16,7 +16,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
16
16
  governing permissions and limitations under the License.
17
17
  */
18
18
  var _default = function _default(consentRequestPayload) {
19
- return (0, _createRequest.default)({
19
+ return (0, _request.createRequest)({
20
20
  payload: consentRequestPayload,
21
21
  getAction: function getAction() {
22
22
  return "privacy/set-consent";
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _createRequestPayload = require("../../core/edgeNetwork/requests/createRequestPayload");
5
+ var _request = require("../../utils/request");
6
6
 
7
7
  /*
8
8
  Copyright 2019 Adobe. All rights reserved.
@@ -17,7 +17,7 @@ governing permissions and limitations under the License.
17
17
  */
18
18
  var _default = function _default() {
19
19
  var content = {};
20
- var payload = (0, _createRequestPayload.default)({
20
+ var payload = (0, _request.createRequestPayload)({
21
21
  content: content,
22
22
  addIdentity: function addIdentity(namespaceCode, identity) {
23
23
  content.identityMap = content.identityMap || {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ exports.SRC = void 0;
4
+
5
+ /*
6
+ Copyright 2022 Adobe. All rights reserved.
7
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License. You may obtain a copy
9
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software distributed under
12
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
+ OF ANY KIND, either express or implied. See the License for the specific language
14
+ governing permissions and limitations under the License.
15
+ */
16
+ var SRC = "src";
17
+ exports.SRC = SRC;
@@ -15,5 +15,5 @@ governing permissions and limitations under the License.
15
15
  */
16
16
  // The __VERSION__ keyword will be replace at alloy build time with the package.json version.
17
17
  // see babel-plugin-version
18
- var _default = "2.8.0-beta.0";
18
+ var _default = "2.9.0-alpha.0";
19
19
  exports.default = _default;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ exports.default = void 0;
4
+
5
+ /*
6
+ Copyright 2022 Adobe. All rights reserved.
7
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License. You may obtain a copy
9
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software distributed under
12
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
+ OF ANY KIND, either express or implied. See the License for the specific language
14
+ governing permissions and limitations under the License.
15
+ */
16
+ var _default = ":shadow";
17
+ exports.default = _default;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- exports.STYLE = exports.SRC = exports.SCRIPT = exports.IMG = exports.IFRAME = exports.HEAD = exports.DIV = exports.BODY = void 0;
3
+ exports.STYLE = exports.SCRIPT = exports.IMG = exports.IFRAME = exports.HEAD = exports.DIV = exports.BODY = void 0;
4
4
 
5
5
  /*
6
6
  Copyright 2019 Adobe. All rights reserved.
@@ -25,7 +25,5 @@ var STYLE = "STYLE";
25
25
  exports.STYLE = STYLE;
26
26
  var SCRIPT = "SCRIPT";
27
27
  exports.SCRIPT = SCRIPT;
28
- var SRC = "src";
29
- exports.SRC = SRC;
30
28
  var HEAD = "HEAD";
31
29
  exports.HEAD = HEAD;
@@ -52,9 +52,7 @@ var _createEventManager = require("./createEventManager");
52
52
 
53
53
  var _createCookieTransfer = require("./createCookieTransfer");
54
54
 
55
- var _createDataCollectionRequestPayload = require("./edgeNetwork/requests/createDataCollectionRequestPayload");
56
-
57
- var _createDataCollectionRequest = require("./edgeNetwork/requests/createDataCollectionRequest");
55
+ var _request = require("../utils/request");
58
56
 
59
57
  var _injectSendEdgeNetworkRequest = require("./edgeNetwork/injectSendEdgeNetworkRequest");
60
58
 
@@ -168,8 +166,8 @@ var createExecuteCommand = function createExecuteCommand(_ref) {
168
166
  lifecycle: lifecycle,
169
167
  consent: consent,
170
168
  createEvent: _createEvent.default,
171
- createDataCollectionRequestPayload: _createDataCollectionRequestPayload.default,
172
- createDataCollectionRequest: _createDataCollectionRequest.default,
169
+ createDataCollectionRequestPayload: _request.createDataCollectionRequestPayload,
170
+ createDataCollectionRequest: _request.createDataCollectionRequest,
173
171
  sendEdgeNetworkRequest: sendEdgeNetworkRequest
174
172
  });
175
173
  return (0, _initializeComponents.default)({
@@ -24,6 +24,12 @@ Object.defineProperty(exports, "matchesSelector", {
24
24
  return _matchesSelector.default;
25
25
  }
26
26
  });
27
+ Object.defineProperty(exports, "querySelectorAll", {
28
+ enumerable: true,
29
+ get: function get() {
30
+ return _querySelectorAll.default;
31
+ }
32
+ });
27
33
  Object.defineProperty(exports, "removeNode", {
28
34
  enumerable: true,
29
35
  get: function get() {
@@ -36,6 +42,12 @@ Object.defineProperty(exports, "selectNodes", {
36
42
  return _selectNodes.default;
37
43
  }
38
44
  });
45
+ Object.defineProperty(exports, "selectNodesWithShadow", {
46
+ enumerable: true,
47
+ get: function get() {
48
+ return _selectNodesWithShadow.default;
49
+ }
50
+ });
39
51
 
40
52
  var _awaitSelector = require("./awaitSelector");
41
53
 
@@ -45,6 +57,10 @@ var _createNode = require("./createNode");
45
57
 
46
58
  var _matchesSelector = require("./matchesSelector");
47
59
 
60
+ var _querySelectorAll = require("./querySelectorAll");
61
+
48
62
  var _removeNode = require("./removeNode");
49
63
 
50
- var _selectNodes = require("./selectNodes");
64
+ var _selectNodes = require("./selectNodes");
65
+
66
+ var _selectNodesWithShadow = require("./selectNodesWithShadow");
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ exports.default = void 0;
4
+
5
+ var _shadowSeparator = require("../../constants/shadowSeparator");
6
+
7
+ /*
8
+ Copyright 2022 Adobe. All rights reserved.
9
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
10
+ you may not use this file except in compliance with the License. You may obtain a copy
11
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software distributed under
14
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
15
+ OF ANY KIND, either express or implied. See the License for the specific language
16
+ governing permissions and limitations under the License.
17
+ */
18
+ var _default = function _default(str) {
19
+ return str.indexOf(_shadowSeparator.default) !== -1;
20
+ };
21
+
22
+ exports.default = _default;
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _toArray = require("../../../../utils/toArray");
5
+ var _toArray = require("../toArray");
6
6
 
7
7
  /*
8
8
  Copyright 2021 Adobe. All rights reserved.
@@ -2,9 +2,11 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _querySelectorAll = require("../../components/Personalization/dom-actions/dom/querySelectorAll");
5
+ var _querySelectorAll = require("./querySelectorAll");
6
6
 
7
- var _selectNodesWithShadow = require("../../components/Personalization/dom-actions/dom/selectNodesWithShadow");
7
+ var _selectNodesWithShadow = require("./selectNodesWithShadow");
8
+
9
+ var _isShadowSelector = require("./isShadowSelector");
8
10
 
9
11
  /*
10
12
  Copyright 2019 Adobe. All rights reserved.
@@ -27,7 +29,7 @@ governing permissions and limitations under the License.
27
29
  var _default = function _default(selector) {
28
30
  var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
29
31
 
30
- if (!(0, _selectNodesWithShadow.isShadowSelector)(selector)) {
32
+ if (!(0, _isShadowSelector.default)(selector)) {
31
33
  return (0, _querySelectorAll.default)(context, selector);
32
34
  }
33
35
 
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
 
3
- exports.isShadowSelector = exports.default = void 0;
3
+ exports.default = void 0;
4
4
 
5
5
  var _querySelectorAll = require("./querySelectorAll");
6
6
 
7
- var _utils = require("../../../../utils");
7
+ var _startsWith = require("../startsWith");
8
+
9
+ var _shadowSeparator = require("../../constants/shadowSeparator");
8
10
 
9
11
  /*
10
12
  Copyright 2021 Adobe. All rights reserved.
@@ -17,15 +19,13 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
17
19
  OF ANY KIND, either express or implied. See the License for the specific language
18
20
  governing permissions and limitations under the License.
19
21
  */
20
- var SHADOW_SEPARATOR = ":shadow";
21
-
22
22
  var splitWithShadow = function splitWithShadow(selector) {
23
- return selector.split(SHADOW_SEPARATOR);
23
+ return selector.split(_shadowSeparator.default);
24
24
  };
25
25
 
26
26
  var transformPrefix = function transformPrefix(parent, selector) {
27
27
  var result = selector.trim();
28
- var hasChildCombinatorPrefix = (0, _utils.startsWith)(result, ">");
28
+ var hasChildCombinatorPrefix = (0, _startsWith.default)(result, ">");
29
29
 
30
30
  if (!hasChildCombinatorPrefix) {
31
31
  return result;
@@ -41,16 +41,10 @@ var transformPrefix = function transformPrefix(parent, selector) {
41
41
  return prefix + " " + result;
42
42
  };
43
43
 
44
- var isShadowSelector = function isShadowSelector(str) {
45
- return str.indexOf(SHADOW_SEPARATOR) !== -1;
46
- };
47
-
48
- exports.isShadowSelector = isShadowSelector;
49
-
50
44
  var _default = function _default(context, selector) {
51
45
  // Shadow DOM should be supported
52
46
  if (!window.document.documentElement.attachShadow) {
53
- return (0, _querySelectorAll.default)(context, selector.replace(SHADOW_SEPARATOR, ""));
47
+ return (0, _querySelectorAll.default)(context, selector.replace(_shadowSeparator.default, ""));
54
48
  }
55
49
 
56
50
  var parts = splitWithShadow(selector);
@@ -4,7 +4,7 @@ exports.default = void 0;
4
4
 
5
5
  var _createRequestPayload = require("./createRequestPayload");
6
6
 
7
- var _createAddIdentity = require("./contentModifiers/createAddIdentity");
7
+ var _createAddIdentity = require("./createAddIdentity");
8
8
 
9
9
  /*
10
10
  Copyright 2019 Adobe. All rights reserved.
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _utils = require("../../../utils");
5
+ var _ = require("..");
6
6
 
7
7
  /*
8
8
  Copyright 2020 Adobe. All rights reserved.
@@ -20,7 +20,7 @@ var _default = function _default(options) {
20
20
  var payload = options.payload,
21
21
  _getAction = options.getAction,
22
22
  _getUseSendBeacon = options.getUseSendBeacon;
23
- var id = (0, _utils.uuid)();
23
+ var id = (0, _.uuid)();
24
24
  var shouldUseThirdPartyDomain = false;
25
25
  var isIdentityEstablished = false;
26
26
  return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports.default = void 0;
4
4
 
5
- var _utils = require("../../../utils");
5
+ var _ = require("..");
6
6
 
7
7
  /*
8
8
  Copyright 2019 Adobe. All rights reserved.
@@ -21,8 +21,8 @@ var _default = function _default(options) {
21
21
  var content = options.content,
22
22
  addIdentity = options.addIdentity;
23
23
  return {
24
- mergeState: (0, _utils.createMerger)(content, "meta.state"),
25
- mergeQuery: (0, _utils.createMerger)(content, "query"),
24
+ mergeState: (0, _.createMerger)(content, "meta.state"),
25
+ mergeQuery: (0, _.createMerger)(content, "query"),
26
26
  addIdentity: addIdentity,
27
27
  toJSON: function toJSON() {
28
28
  return content;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "createAddIdentity", {
4
+ enumerable: true,
5
+ get: function get() {
6
+ return _createAddIdentity.default;
7
+ }
8
+ });
9
+ Object.defineProperty(exports, "createDataCollectionRequest", {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _createDataCollectionRequest.default;
13
+ }
14
+ });
15
+ Object.defineProperty(exports, "createDataCollectionRequestPayload", {
16
+ enumerable: true,
17
+ get: function get() {
18
+ return _createDataCollectionRequestPayload.default;
19
+ }
20
+ });
21
+ Object.defineProperty(exports, "createRequest", {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _createRequest.default;
25
+ }
26
+ });
27
+ Object.defineProperty(exports, "createRequestPayload", {
28
+ enumerable: true,
29
+ get: function get() {
30
+ return _createRequestPayload.default;
31
+ }
32
+ });
33
+
34
+ var _createAddIdentity = require("./createAddIdentity");
35
+
36
+ var _createDataCollectionRequest = require("./createDataCollectionRequest");
37
+
38
+ var _createDataCollectionRequestPayload = require("./createDataCollectionRequestPayload");
39
+
40
+ var _createRequest = require("./createRequest");
41
+
42
+ var _createRequestPayload = require("./createRequestPayload");
@@ -12,8 +12,7 @@ governing permissions and limitations under the License.
12
12
  import validateUserEventOptions from "./validateUserEventOptions";
13
13
 
14
14
  const createDataCollector = ({
15
- eventManager,
16
- logger
15
+ eventManager
17
16
  }) => {
18
17
  return {
19
18
  commands: {
@@ -21,8 +20,7 @@ const createDataCollector = ({
21
20
  documentationUri: "https://adobe.ly/2r0uUjh",
22
21
  optionsValidator: options => {
23
22
  return validateUserEventOptions({
24
- options,
25
- logger
23
+ options
26
24
  });
27
25
  },
28
26
  run: options => {
@@ -14,13 +14,11 @@ import { validateIdentityMap } from "../../utils";
14
14
  /**
15
15
  * Verifies user provided event options.
16
16
  * @param {*} options The user event options to validate
17
- * @param {*} logger
18
17
  * @returns {*} Validated options
19
18
  */
20
19
 
21
20
  export default (({
22
- options,
23
- logger
21
+ options
24
22
  }) => {
25
23
  const eventOptionsValidator = objectOf({
26
24
  type: string(),
@@ -33,15 +31,5 @@ export default (({
33
31
  decisionScopes: arrayOf(string()),
34
32
  datasetId: string()
35
33
  }).required();
36
- const validatedOptions = eventOptionsValidator(options);
37
- const {
38
- type,
39
- xdm
40
- } = validatedOptions;
41
-
42
- if (xdm && !xdm.eventType && !type) {
43
- logger.warn("No type or xdm.eventType specified.");
44
- }
45
-
46
- return validatedOptions;
34
+ return eventOptionsValidator(options);
47
35
  });
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import createRequest from "../../../core/edgeNetwork/requests/createRequest";
12
+ import { createRequest } from "../../../utils/request";
13
13
  export default (identityRequestPayload => {
14
14
  return createRequest({
15
15
  payload: identityRequestPayload,
@@ -9,8 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import createRequestPayload from "../../../core/edgeNetwork/requests/createRequestPayload";
13
- import createAddIdentity from "../../../core/edgeNetwork/requests/contentModifiers/createAddIdentity";
12
+ import { createAddIdentity, createRequestPayload } from "../../../utils/request";
14
13
  export default (namespaces => {
15
14
  const content = {
16
15
  query: {
@@ -0,0 +1,13 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ export const DISPLAY = "decisioning.propositionDisplay";
13
+ export const INTERACT = "decisioning.propositionInteract";
@@ -9,6 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
+ import { DISPLAY } from "./constants/eventType";
12
13
  export default (({
13
14
  eventManager,
14
15
  mergeDecisionsMeta
@@ -20,7 +21,7 @@ export default (({
20
21
  }) => {
21
22
  const event = eventManager.createEvent();
22
23
  event.mergeXdm({
23
- eventType: "decisioning.propositionDisplay"
24
+ eventType: DISPLAY
24
25
  });
25
26
  mergeDecisionsMeta(event, decisionsMeta);
26
27
 
@@ -30,6 +30,11 @@ export default (({
30
30
  onResponse = noop,
31
31
  onRequestFailure = noop
32
32
  }) {
33
+ // Include proositions on all responses, overridden with data as needed
34
+ onResponse(() => ({
35
+ propositions: []
36
+ }));
37
+
33
38
  if (isAuthoringModeEnabled()) {
34
39
  logger.warn(AUTHORING_ENABLED); // If we are in authoring mode we disable personalization
35
40
 
@@ -10,6 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
  import { isNonEmptyArray } from "../../utils";
13
+ import { INTERACT } from "./constants/eventType";
13
14
  export default (({
14
15
  mergeDecisionsMeta,
15
16
  collectClicks,
@@ -28,7 +29,7 @@ export default (({
28
29
 
29
30
  if (isNonEmptyArray(decisionsMeta)) {
30
31
  event.mergeXdm({
31
- eventType: "decisioning.propositionInteract"
32
+ eventType: INTERACT
32
33
  });
33
34
  mergeDecisionsMeta(event, decisionsMeta);
34
35
  }
@@ -10,6 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
  import { isNonEmptyArray } from "../../utils";
13
+ import { DISPLAY } from "./constants/eventType";
13
14
  export default (({
14
15
  eventManager,
15
16
  mergeDecisionsMeta
@@ -20,7 +21,7 @@ export default (({
20
21
  xdm
21
22
  }) => {
22
23
  const data = {
23
- eventType: "decisioning.propositionDisplay"
24
+ eventType: DISPLAY
24
25
  };
25
26
  const event = eventManager.createEvent();
26
27
 
@@ -10,7 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
  import { selectNodes } from "../../../utils/dom";
13
- import { SRC, STYLE } from "../../../constants/tagName";
13
+ import { STYLE } from "../../../constants/tagName";
14
+ import { SRC } from "../../../constants/elementAttribute";
14
15
  import { getAttribute, getNonce } from "./dom";
15
16
 
16
17
  const is = (element, tagName) => element.tagName === tagName;
@@ -10,7 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
  import { createNode, selectNodes } from "../../../utils/dom";
13
- import { IMG, SRC } from "../../../constants/tagName";
13
+ import { IMG } from "../../../constants/tagName";
14
+ import { SRC } from "../../../constants/elementAttribute";
14
15
  import { getAttribute } from "./dom";
15
16
  export const isImage = element => element.tagName === IMG;
16
17
  export const loadImage = url => {
@@ -11,7 +11,8 @@ governing permissions and limitations under the License.
11
11
  */
12
12
  import loadScript from "@adobe/reactor-load-script";
13
13
  import { selectNodes, createNode } from "../../../utils/dom";
14
- import { SRC, SCRIPT } from "../../../constants/tagName";
14
+ import { SCRIPT } from "../../../constants/tagName";
15
+ import { SRC } from "../../../constants/elementAttribute";
15
16
  import { getAttribute, getNonce } from "./dom";
16
17
  export const is = (element, tagName) => !!element && element.tagName === tagName;
17
18
 
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { SRC } from "../../../constants/tagName";
12
+ import { SRC } from "../../../constants/elementAttribute";
13
13
  import { setAttribute, removeAttribute } from "./dom";
14
14
  import { isImage, loadImage } from "./images";
15
15
  export default ((container, url) => {
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import createRequest from "../../core/edgeNetwork/requests/createRequest";
12
+ import { createRequest } from "../../utils/request";
13
13
  export default (consentRequestPayload => {
14
14
  return createRequest({
15
15
  payload: consentRequestPayload,
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import createRequestPayload from "../../core/edgeNetwork/requests/createRequestPayload";
12
+ import { createRequestPayload } from "../../utils/request";
13
13
  export default (() => {
14
14
  const content = {};
15
15
  const payload = createRequestPayload({
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ export const SRC = "src";
@@ -11,4 +11,4 @@ governing permissions and limitations under the License.
11
11
  */
12
12
  // The __VERSION__ keyword will be replace at alloy build time with the package.json version.
13
13
  // see babel-plugin-version
14
- export default "2.8.0-beta.0";
14
+ export default "2.9.0-alpha.0";
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ export default ":shadow";
@@ -15,5 +15,4 @@ export const IMG = "IMG";
15
15
  export const DIV = "DIV";
16
16
  export const STYLE = "STYLE";
17
17
  export const SCRIPT = "SCRIPT";
18
- export const SRC = "src";
19
18
  export const HEAD = "HEAD";
@@ -34,8 +34,7 @@ import injectSendBeaconRequest from "./network/requestMethods/injectSendBeaconRe
34
34
  import createLogger from "./createLogger";
35
35
  import createEventManager from "./createEventManager";
36
36
  import createCookieTransfer from "./createCookieTransfer";
37
- import createDataCollectionRequestPayload from "./edgeNetwork/requests/createDataCollectionRequestPayload";
38
- import createDataCollectionRequest from "./edgeNetwork/requests/createDataCollectionRequest";
37
+ import { createDataCollectionRequest, createDataCollectionRequestPayload } from "../utils/request";
39
38
  import injectSendEdgeNetworkRequest from "./edgeNetwork/injectSendEdgeNetworkRequest";
40
39
  import injectProcessWarningsAndErrors from "./edgeNetwork/injectProcessWarningsAndErrors";
41
40
  import isRequestRetryable from "./network/isRequestRetryable";
@@ -13,5 +13,7 @@ export { default as awaitSelector } from "./awaitSelector";
13
13
  export { default as appendNode } from "./appendNode";
14
14
  export { default as createNode } from "./createNode";
15
15
  export { default as matchesSelector } from "./matchesSelector";
16
+ export { default as querySelectorAll } from "./querySelectorAll";
16
17
  export { default as removeNode } from "./removeNode";
17
- export { default as selectNodes } from "./selectNodes";
18
+ export { default as selectNodes } from "./selectNodes";
19
+ export { default as selectNodesWithShadow } from "./selectNodesWithShadow";
@@ -0,0 +1,13 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import SHADOW_SEPARATOR from "../../constants/shadowSeparator";
13
+ export default (str => str.indexOf(SHADOW_SEPARATOR) !== -1);
@@ -9,5 +9,5 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import toArray from "../../../../utils/toArray";
12
+ import toArray from "../toArray";
13
13
  export default ((context, selector) => toArray(context.querySelectorAll(selector)));
@@ -9,8 +9,9 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import querySelectorAll from "../../components/Personalization/dom-actions/dom/querySelectorAll";
13
- import selectNodesWithShadow, { isShadowSelector } from "../../components/Personalization/dom-actions/dom/selectNodesWithShadow";
12
+ import querySelectorAll from "./querySelectorAll";
13
+ import selectNodesWithShadow from "./selectNodesWithShadow";
14
+ import isShadowSelector from "./isShadowSelector";
14
15
  /**
15
16
  * Returns an array of matched DOM nodes.
16
17
  * @param {String} selector
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
  import querySelectorAll from "./querySelectorAll";
13
- import { startsWith } from "../../../../utils";
14
- const SHADOW_SEPARATOR = ":shadow";
13
+ import startsWith from "../startsWith";
14
+ import SHADOW_SEPARATOR from "../../constants/shadowSeparator";
15
15
 
16
16
  const splitWithShadow = selector => {
17
17
  return selector.split(SHADOW_SEPARATOR);
@@ -35,7 +35,6 @@ const transformPrefix = (parent, selector) => {
35
35
  return `${prefix} ${result}`;
36
36
  };
37
37
 
38
- export const isShadowSelector = str => str.indexOf(SHADOW_SEPARATOR) !== -1;
39
38
  export default ((context, selector) => {
40
39
  // Shadow DOM should be supported
41
40
  if (!window.document.documentElement.attachShadow) {
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
  import createRequestPayload from "./createRequestPayload";
13
- import createAddIdentity from "./contentModifiers/createAddIdentity";
13
+ import createAddIdentity from "./createAddIdentity";
14
14
  export default (() => {
15
15
  const content = {};
16
16
  const payload = createRequestPayload({
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { uuid } from "../../../utils"; // This provides the base functionality that all types of requests share.
12
+ import { uuid } from ".."; // This provides the base functionality that all types of requests share.
13
13
 
14
14
  export default (options => {
15
15
  const {
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { createMerger } from "../../../utils"; // This provides the base functionality that all types of
12
+ import { createMerger } from ".."; // This provides the base functionality that all types of
13
13
  // request payloads share.
14
14
 
15
15
  export default (options => {
@@ -0,0 +1,16 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ export { default as createAddIdentity } from "./createAddIdentity";
13
+ export { default as createDataCollectionRequest } from "./createDataCollectionRequest";
14
+ export { default as createDataCollectionRequestPayload } from "./createDataCollectionRequestPayload";
15
+ export { default as createRequest } from "./createRequest";
16
+ export { default as createRequestPayload } from "./createRequestPayload";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.8.0-beta.0",
3
+ "version": "2.9.0-alpha.0",
4
4
  "description": "Adobe Experience Platform Web SDK",
5
5
  "main": "libEs5/index.js",
6
6
  "module": "libEs6/index.js",
@@ -64,7 +64,7 @@
64
64
  "uuid": "^3.3.2"
65
65
  },
66
66
  "devDependencies": {
67
- "@adobe/alloy": "^2.7.0",
67
+ "@adobe/alloy": "^2.8.0",
68
68
  "@babel/cli": "^7.12.8",
69
69
  "@babel/core": "^7.2.2",
70
70
  "@babel/plugin-proposal-object-rest-spread": "^7.3.2",