@adobe/alloy 2.19.0-beta.4 → 2.19.0-beta.6

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.
@@ -35,6 +35,8 @@ var _default = function _default(_ref) {
35
35
  onResponse = _ref2.onResponse;
36
36
  if (personalizationDetails.isRenderDecisions()) {
37
37
  hideContainers(prehidingStyle);
38
+ } else {
39
+ showContainers();
38
40
  }
39
41
  mergeQuery(event, personalizationDetails.createQueryDetails());
40
42
  var handleNotifications;
@@ -22,12 +22,18 @@ var _default = function _default(_ref) {
22
22
  selector = _ref2.selector;
23
23
  if (!type) {
24
24
  logger.warn("Invalid DOM action data: missing type.", item.getData());
25
- return {};
25
+ return {
26
+ setRenderAttempted: false,
27
+ includeInNotification: false
28
+ };
26
29
  }
27
30
  if (type === "click") {
28
31
  if (!selector) {
29
32
  logger.warn("Invalid DOM action data: missing selector.", item.getData());
30
- return {};
33
+ return {
34
+ setRenderAttempted: false,
35
+ includeInNotification: false
36
+ };
31
37
  }
32
38
  storeClickMetrics({
33
39
  selector: selector,
@@ -40,7 +46,10 @@ var _default = function _default(_ref) {
40
46
  }
41
47
  if (!modules[type]) {
42
48
  logger.warn("Invalid DOM action data: unknown type.", item.getData());
43
- return {};
49
+ return {
50
+ setRenderAttempted: false,
51
+ includeInNotification: false
52
+ };
44
53
  }
45
54
  return {
46
55
  render: function render() {
@@ -20,11 +20,17 @@ var _default = function _default(_ref) {
20
20
  type = _ref2.type,
21
21
  selector = _ref2.selector;
22
22
  if (!selector || !type) {
23
- return {};
23
+ return {
24
+ setRenderAttempted: false,
25
+ includeInNotification: false
26
+ };
24
27
  }
25
28
  if (!modules[type]) {
26
29
  logger.warn("Invalid HTML content data", item.getData());
27
- return {};
30
+ return {
31
+ setRenderAttempted: false,
32
+ includeInNotification: false
33
+ };
28
34
  }
29
35
  return {
30
36
  render: function render() {
@@ -32,8 +32,8 @@ var _default = function _default(_ref) {
32
32
  if (logger.enabled) {
33
33
  var message = error.message,
34
34
  stack = error.stack;
35
- var errorMessage = "Failed to execute action " + item.toString() + ". " + message + " " + stack;
36
- logger.error(errorMessage);
35
+ var warning = "Failed to execute action " + item.toString() + ". " + message + " " + stack;
36
+ logger.warn(warning);
37
37
  }
38
38
  return false;
39
39
  });
@@ -14,5 +14,5 @@ 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 = "2.19.0-beta.4";
17
+ var _default = "2.19.0-beta.6";
18
18
  exports.default = _default;
@@ -29,6 +29,8 @@ export default (({
29
29
  }) => {
30
30
  if (personalizationDetails.isRenderDecisions()) {
31
31
  hideContainers(prehidingStyle);
32
+ } else {
33
+ showContainers();
32
34
  }
33
35
  mergeQuery(event, personalizationDetails.createQueryDetails());
34
36
  let handleNotifications;
@@ -20,12 +20,18 @@ export default (({
20
20
  } = item.getData() || {};
21
21
  if (!type) {
22
22
  logger.warn("Invalid DOM action data: missing type.", item.getData());
23
- return {};
23
+ return {
24
+ setRenderAttempted: false,
25
+ includeInNotification: false
26
+ };
24
27
  }
25
28
  if (type === "click") {
26
29
  if (!selector) {
27
30
  logger.warn("Invalid DOM action data: missing selector.", item.getData());
28
- return {};
31
+ return {
32
+ setRenderAttempted: false,
33
+ includeInNotification: false
34
+ };
29
35
  }
30
36
  storeClickMetrics({
31
37
  selector,
@@ -38,7 +44,10 @@ export default (({
38
44
  }
39
45
  if (!modules[type]) {
40
46
  logger.warn("Invalid DOM action data: unknown type.", item.getData());
41
- return {};
47
+ return {
48
+ setRenderAttempted: false,
49
+ includeInNotification: false
50
+ };
42
51
  }
43
52
  return {
44
53
  render: () => modules[type](item.getData()),
@@ -18,11 +18,17 @@ export default (({
18
18
  selector
19
19
  } = item.getData() || {};
20
20
  if (!selector || !type) {
21
- return {};
21
+ return {
22
+ setRenderAttempted: false,
23
+ includeInNotification: false
24
+ };
22
25
  }
23
26
  if (!modules[type]) {
24
27
  logger.warn("Invalid HTML content data", item.getData());
25
- return {};
28
+ return {
29
+ setRenderAttempted: false,
30
+ includeInNotification: false
31
+ };
26
32
  }
27
33
  return {
28
34
  render: () => {
@@ -26,8 +26,8 @@ export default (({
26
26
  message,
27
27
  stack
28
28
  } = error;
29
- const errorMessage = `Failed to execute action ${item.toString()}. ${message} ${stack}`;
30
- logger.error(errorMessage);
29
+ const warning = `Failed to execute action ${item.toString()}. ${message} ${stack}`;
30
+ logger.warn(warning);
31
31
  }
32
32
  return false;
33
33
  });
@@ -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.19.0-beta.4";
16
+ export default "2.19.0-beta.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.19.0-beta.4",
3
+ "version": "2.19.0-beta.6",
4
4
  "description": "Adobe Experience Platform Web SDK",
5
5
  "main": "libEs5/index.js",
6
6
  "module": "libEs6/index.js",
@@ -66,7 +66,7 @@
66
66
  "uuid": "^3.3.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@adobe/alloy": "^2.19.0-beta.3",
69
+ "@adobe/alloy": "^2.19.0-beta.5",
70
70
  "@babel/cli": "^7.12.8",
71
71
  "@babel/core": "^7.2.2",
72
72
  "@babel/plugin-proposal-object-rest-spread": "^7.3.2",