@ikas/storefront 0.0.167-alpha.10 → 0.0.167-alpha.12

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/build/index.es.js CHANGED
@@ -23602,15 +23602,27 @@ var CheckoutViewModel = /** @class */ (function () {
23602
23602
  _this.cardData.installmentCount = count;
23603
23603
  };
23604
23604
  this.changeStep = function (step) { return __awaiter(_this, void 0, void 0, function () {
23605
+ var _this = this;
23605
23606
  return __generator(this, function (_a) {
23606
- if (!isServer$1) {
23607
- window.location.replace("/checkout?id=" + this.checkout.id + "&step=" + step);
23608
- // await this.router.replace(
23609
- // `/checkout?id=${this.checkout.id}&step=${step}`
23610
- // );
23611
- // this.router.reload();
23607
+ switch (_a.label) {
23608
+ case 0:
23609
+ if (!!isServer$1) return [3 /*break*/, 2];
23610
+ // window.location.replace(`/checkout?id=${this.checkout.id}&step=${step}`);
23611
+ return [4 /*yield*/, this.router.replace("/checkout?id=" + this.checkout.id + "&step=" + step)];
23612
+ case 1:
23613
+ // window.location.replace(`/checkout?id=${this.checkout.id}&step=${step}`);
23614
+ _a.sent();
23615
+ console.log("OUT", window.location.href);
23616
+ requestAnimationFrame(function () {
23617
+ console.log("IN", window.location.href);
23618
+ _this.router.reload();
23619
+ });
23620
+ setInterval(function () {
23621
+ console.log("INT", window.location.href);
23622
+ }, 1000);
23623
+ _a.label = 2;
23624
+ case 2: return [2 /*return*/];
23612
23625
  }
23613
- return [2 /*return*/];
23614
23626
  });
23615
23627
  }); };
23616
23628
  this.logout = function () { return __awaiter(_this, void 0, void 0, function () {
package/build/index.js CHANGED
@@ -23610,15 +23610,27 @@ var CheckoutViewModel = /** @class */ (function () {
23610
23610
  _this.cardData.installmentCount = count;
23611
23611
  };
23612
23612
  this.changeStep = function (step) { return __awaiter(_this, void 0, void 0, function () {
23613
+ var _this = this;
23613
23614
  return __generator(this, function (_a) {
23614
- if (!isServer$1) {
23615
- window.location.replace("/checkout?id=" + this.checkout.id + "&step=" + step);
23616
- // await this.router.replace(
23617
- // `/checkout?id=${this.checkout.id}&step=${step}`
23618
- // );
23619
- // this.router.reload();
23615
+ switch (_a.label) {
23616
+ case 0:
23617
+ if (!!isServer$1) return [3 /*break*/, 2];
23618
+ // window.location.replace(`/checkout?id=${this.checkout.id}&step=${step}`);
23619
+ return [4 /*yield*/, this.router.replace("/checkout?id=" + this.checkout.id + "&step=" + step)];
23620
+ case 1:
23621
+ // window.location.replace(`/checkout?id=${this.checkout.id}&step=${step}`);
23622
+ _a.sent();
23623
+ console.log("OUT", window.location.href);
23624
+ requestAnimationFrame(function () {
23625
+ console.log("IN", window.location.href);
23626
+ _this.router.reload();
23627
+ });
23628
+ setInterval(function () {
23629
+ console.log("INT", window.location.href);
23630
+ }, 1000);
23631
+ _a.label = 2;
23632
+ case 2: return [2 /*return*/];
23620
23633
  }
23621
- return [2 /*return*/];
23622
23634
  });
23623
23635
  }); };
23624
23636
  this.logout = function () { return __awaiter(_this, void 0, void 0, function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.167-alpha.10",
3
+ "version": "0.0.167-alpha.12",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",