arky-sdk 0.7.128 → 0.7.129
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/dist/{admin-0rOB-o2E.d.ts → admin-CKVQJu8y.d.ts} +1 -1
- package/dist/{admin-DXfc0gEH.d.cts → admin-Cgqo1TcB.d.cts} +1 -1
- package/dist/admin.cjs +2 -4
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.d.cts +1 -1
- package/dist/admin.d.ts +1 -1
- package/dist/admin.js +2 -4
- package/dist/admin.js.map +1 -1
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/storefront-store.cjs +190 -189
- package/dist/storefront-store.cjs.map +1 -1
- package/dist/storefront-store.d.cts +2 -2
- package/dist/storefront-store.d.ts +2 -2
- package/dist/storefront-store.js +190 -189
- package/dist/storefront-store.js.map +1 -1
- package/dist/storefront.cjs +190 -189
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +94 -94
- package/dist/storefront.d.ts +94 -94
- package/dist/storefront.js +190 -189
- package/dist/storefront.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -137,8 +137,7 @@ var getImageUrl = (imageBlock, isBlock = true) => {
|
|
|
137
137
|
function normalizeOrderQuoteItems(items) {
|
|
138
138
|
return items.map((item) => {
|
|
139
139
|
if ("type" in item) {
|
|
140
|
-
|
|
141
|
-
return type === "booking" ? { ...item, type: "service" } : item;
|
|
140
|
+
return item;
|
|
142
141
|
}
|
|
143
142
|
if ("product_id" in item) {
|
|
144
143
|
return { type: "product", ...item };
|
|
@@ -149,8 +148,7 @@ function normalizeOrderQuoteItems(items) {
|
|
|
149
148
|
function normalizeOrderCheckoutItems(items) {
|
|
150
149
|
return items.map((item) => {
|
|
151
150
|
if ("type" in item) {
|
|
152
|
-
|
|
153
|
-
return type === "booking" ? { ...item, type: "service" } : item;
|
|
151
|
+
return item;
|
|
154
152
|
}
|
|
155
153
|
if ("product_id" in item) {
|
|
156
154
|
return { type: "product", ...item };
|
|
@@ -2799,7 +2797,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
|
|
|
2799
2797
|
}
|
|
2800
2798
|
|
|
2801
2799
|
// src/index.ts
|
|
2802
|
-
var SDK_VERSION = "0.7.
|
|
2800
|
+
var SDK_VERSION = "0.7.129";
|
|
2803
2801
|
var SUPPORTED_FRAMEWORKS = [
|
|
2804
2802
|
"astro",
|
|
2805
2803
|
"react",
|