@ikas/storefront 0.0.167-alpha.3 → 0.0.167-alpha.5
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 +12 -8
- package/build/index.js +12 -8
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -11446,12 +11446,15 @@ var IkasOrderLineVariant = /** @class */ (function () {
|
|
|
11446
11446
|
get: function () {
|
|
11447
11447
|
if (!this.slug)
|
|
11448
11448
|
return;
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11449
|
+
var variantParams = this.variantValues
|
|
11450
|
+
.map(function (vv) {
|
|
11451
|
+
return vv.variantTypeSlug + "=" + vv.variantNameSlug;
|
|
11452
|
+
})
|
|
11453
|
+
.join("&");
|
|
11454
|
+
if (variantParams)
|
|
11455
|
+
return "/" + this.slug + "?" + variantParams;
|
|
11456
|
+
else
|
|
11457
|
+
return "/" + this.slug;
|
|
11455
11458
|
},
|
|
11456
11459
|
enumerable: false,
|
|
11457
11460
|
configurable: true
|
|
@@ -41467,7 +41470,7 @@ var IkasPage = observer(function (_a) {
|
|
|
41467
41470
|
IkasStorefrontConfig.initWithJson(configJson);
|
|
41468
41471
|
var store = IkasStorefrontConfig.store;
|
|
41469
41472
|
var router = useRouter();
|
|
41470
|
-
var _b = useState(false)
|
|
41473
|
+
var _b = useState(false); _b[0]; var setMounted = _b[1];
|
|
41471
41474
|
var _c = useState(false), isBrowser = _c[0], setIsBrowser = _c[1];
|
|
41472
41475
|
var settings = useState(new IkasThemeSettings(JSON.parse(settingsStr)))[0];
|
|
41473
41476
|
var _d = useState(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr)), propValues = _d[0], setPropValues = _d[1];
|
|
@@ -41492,7 +41495,7 @@ var IkasPage = observer(function (_a) {
|
|
|
41492
41495
|
var footerComponentPropValue = propValues.find(function (pv) { return pv.component.isFooter; });
|
|
41493
41496
|
var others = propValues.filter(function (pv) { return !pv.component.isHeader && !pv.component.isFooter; }) || [];
|
|
41494
41497
|
var pageStyle = {
|
|
41495
|
-
visibility:
|
|
41498
|
+
visibility: "visible",
|
|
41496
41499
|
position: "relative",
|
|
41497
41500
|
minHeight: "100vh",
|
|
41498
41501
|
display: "flex",
|
|
@@ -69918,6 +69921,7 @@ var ThemeEditorComponent = observer(function (_a) {
|
|
|
69918
69921
|
}),
|
|
69919
69922
|
}),
|
|
69920
69923
|
checkoutSettings: new IkasCheckoutSettings(),
|
|
69924
|
+
merchantSettings: null,
|
|
69921
69925
|
customizationProps: __assign({}, propValues),
|
|
69922
69926
|
returnPolicy: "",
|
|
69923
69927
|
privacyPolicy: "",
|
package/build/index.js
CHANGED
|
@@ -11462,12 +11462,15 @@ var IkasOrderLineVariant = /** @class */ (function () {
|
|
|
11462
11462
|
get: function () {
|
|
11463
11463
|
if (!this.slug)
|
|
11464
11464
|
return;
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11470
|
-
|
|
11465
|
+
var variantParams = this.variantValues
|
|
11466
|
+
.map(function (vv) {
|
|
11467
|
+
return vv.variantTypeSlug + "=" + vv.variantNameSlug;
|
|
11468
|
+
})
|
|
11469
|
+
.join("&");
|
|
11470
|
+
if (variantParams)
|
|
11471
|
+
return "/" + this.slug + "?" + variantParams;
|
|
11472
|
+
else
|
|
11473
|
+
return "/" + this.slug;
|
|
11471
11474
|
},
|
|
11472
11475
|
enumerable: false,
|
|
11473
11476
|
configurable: true
|
|
@@ -41447,7 +41450,7 @@ var IkasPage = mobxReactLite.observer(function (_a) {
|
|
|
41447
41450
|
IkasStorefrontConfig.initWithJson(configJson);
|
|
41448
41451
|
var store = IkasStorefrontConfig.store;
|
|
41449
41452
|
var router$1 = router.useRouter();
|
|
41450
|
-
var _b = React.useState(false)
|
|
41453
|
+
var _b = React.useState(false); _b[0]; var setMounted = _b[1];
|
|
41451
41454
|
var _c = React.useState(false), isBrowser = _c[0], setIsBrowser = _c[1];
|
|
41452
41455
|
var settings = React.useState(new IkasThemeSettings(JSON.parse(settingsStr)))[0];
|
|
41453
41456
|
var _d = React.useState(IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr)), propValues = _d[0], setPropValues = _d[1];
|
|
@@ -41472,7 +41475,7 @@ var IkasPage = mobxReactLite.observer(function (_a) {
|
|
|
41472
41475
|
var footerComponentPropValue = propValues.find(function (pv) { return pv.component.isFooter; });
|
|
41473
41476
|
var others = propValues.filter(function (pv) { return !pv.component.isHeader && !pv.component.isFooter; }) || [];
|
|
41474
41477
|
var pageStyle = {
|
|
41475
|
-
visibility:
|
|
41478
|
+
visibility: "visible",
|
|
41476
41479
|
position: "relative",
|
|
41477
41480
|
minHeight: "100vh",
|
|
41478
41481
|
display: "flex",
|
|
@@ -69897,6 +69900,7 @@ var ThemeEditorComponent = mobxReactLite.observer(function (_a) {
|
|
|
69897
69900
|
}),
|
|
69898
69901
|
}),
|
|
69899
69902
|
checkoutSettings: new IkasCheckoutSettings(),
|
|
69903
|
+
merchantSettings: null,
|
|
69900
69904
|
customizationProps: __assign({}, propValues),
|
|
69901
69905
|
returnPolicy: "",
|
|
69902
69906
|
privacyPolicy: "",
|