@adobe/alloy 2.19.0-beta.16 → 2.19.0-beta.17

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.
@@ -14,7 +14,12 @@ governing permissions and limitations under the License.
14
14
  */
15
15
  var _default = function _default(window) {
16
16
  return function (url) {
17
- window.location.replace(url);
17
+ var preserveHistory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
18
+ if (preserveHistory) {
19
+ window.location.href = url;
20
+ } else {
21
+ window.location.replace(url);
22
+ }
18
23
  // Return a promise that never resolves because redirects never complete
19
24
  // within the current page.
20
25
  return new Promise(function () {
@@ -53,7 +53,7 @@ var createIframeClickHandler = function createIframeClickHandler(interact) {
53
53
  dismissMessage();
54
54
  }
55
55
  if ((0, _utils2.isNonEmptyString)(link) && link.length > 0) {
56
- navigateToUrl(link);
56
+ navigateToUrl(link, true);
57
57
  }
58
58
  };
59
59
  };
@@ -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.16";
17
+ var _default = "2.19.0-beta.17";
18
18
  exports.default = _default;
@@ -10,8 +10,12 @@ 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
 
13
- export default (window => url => {
14
- window.location.replace(url);
13
+ export default (window => (url, preserveHistory = false) => {
14
+ if (preserveHistory) {
15
+ window.location.href = url;
16
+ } else {
17
+ window.location.replace(url);
18
+ }
15
19
  // Return a promise that never resolves because redirects never complete
16
20
  // within the current page.
17
21
  return new Promise(() => undefined);
@@ -51,7 +51,7 @@ export const createIframeClickHandler = (interact, navigateToUrl = createRedirec
51
51
  dismissMessage();
52
52
  }
53
53
  if (isNonEmptyString(link) && link.length > 0) {
54
- navigateToUrl(link);
54
+ navigateToUrl(link, true);
55
55
  }
56
56
  };
57
57
  };
@@ -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.16";
16
+ export default "2.19.0-beta.17";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.19.0-beta.16",
3
+ "version": "2.19.0-beta.17",
4
4
  "description": "Adobe Experience Platform Web SDK",
5
5
  "main": "libEs5/index.js",
6
6
  "module": "libEs6/index.js",
@@ -70,7 +70,7 @@
70
70
  "uuid": "^3.3.2"
71
71
  },
72
72
  "devDependencies": {
73
- "@adobe/alloy": "^2.19.0-beta.15",
73
+ "@adobe/alloy": "^2.19.0-beta.16",
74
74
  "@babel/cli": "^7.12.8",
75
75
  "@babel/core": "^7.2.2",
76
76
  "@babel/plugin-proposal-object-rest-spread": "^7.3.2",