@spiffcommerce/core 26.22.1 → 26.23.0-beta.cb0254e3-a5e6-5c89-9781-1c7679ab35a7
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/index.d.ts +3 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4602,6 +4602,7 @@ const X = new li(), vn = y`
|
|
|
4602
4602
|
width
|
|
4603
4603
|
index
|
|
4604
4604
|
name
|
|
4605
|
+
title
|
|
4605
4606
|
useEditableArea
|
|
4606
4607
|
transparentBackground
|
|
4607
4608
|
previewRegion {
|
|
@@ -4633,6 +4634,7 @@ const X = new li(), vn = y`
|
|
|
4633
4634
|
stepTitle
|
|
4634
4635
|
helpText
|
|
4635
4636
|
mandatory
|
|
4637
|
+
relevantPanelName
|
|
4636
4638
|
silent
|
|
4637
4639
|
conditions {
|
|
4638
4640
|
requiredVariantSelections
|
|
@@ -13831,14 +13833,14 @@ class qo {
|
|
|
13831
13833
|
getProducts() {
|
|
13832
13834
|
if (!this.collection.productCollectionProducts)
|
|
13833
13835
|
throw new Error("Failed to find products on collection. Ensure you fetch them first!");
|
|
13834
|
-
return this.collection.productCollectionProducts.map((t) => new se(t));
|
|
13836
|
+
return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new se(t));
|
|
13835
13837
|
}
|
|
13836
13838
|
/**
|
|
13837
13839
|
* A list of products in this collections with useful helpers for interacting with them.
|
|
13838
13840
|
*/
|
|
13839
13841
|
async fetchProducts(t) {
|
|
13840
13842
|
if (this.fullFetched)
|
|
13841
|
-
return this.collection.productCollectionProducts.map((a) => new se(a));
|
|
13843
|
+
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
|
|
13842
13844
|
const e = await b.getShadowGraphqlClient().query({
|
|
13843
13845
|
query: Ms,
|
|
13844
13846
|
variables: {
|
|
@@ -13847,7 +13849,7 @@ class qo {
|
|
|
13847
13849
|
},
|
|
13848
13850
|
errorPolicy: "all"
|
|
13849
13851
|
});
|
|
13850
|
-
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.map((a) => new se(a));
|
|
13852
|
+
return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
|
|
13851
13853
|
}
|
|
13852
13854
|
/**
|
|
13853
13855
|
* Returns a list of collections products matching the associated metafield filters.
|
|
@@ -13903,7 +13905,7 @@ class qo {
|
|
|
13903
13905
|
errorPolicy: "all"
|
|
13904
13906
|
});
|
|
13905
13907
|
return {
|
|
13906
|
-
items: ((l = (o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.productCollections) == null ? void 0 : o[0].productCollectionProductsFeed) == null ? void 0 : l.items.map((u) => new se(u))) || [],
|
|
13908
|
+
items: ((l = (o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.productCollections) == null ? void 0 : o[0].productCollectionProductsFeed) == null ? void 0 : l.items.filter((u) => !!u.product).map((u) => new se(u))) || [],
|
|
13907
13909
|
total: ((A = (d = (c = n == null ? void 0 : n.data) == null ? void 0 : c.productCollections) == null ? void 0 : d[0].productCollectionProductsFeed) == null ? void 0 : A.total) ?? 0
|
|
13908
13910
|
};
|
|
13909
13911
|
}
|
|
@@ -15191,6 +15193,7 @@ const Ya = y`
|
|
|
15191
15193
|
id: Q(),
|
|
15192
15194
|
panelId: t.name,
|
|
15193
15195
|
name: t.name,
|
|
15196
|
+
title: t.title,
|
|
15194
15197
|
index: t.index,
|
|
15195
15198
|
createdAt: /* @__PURE__ */ new Date(),
|
|
15196
15199
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
@@ -15215,7 +15218,7 @@ class kc {
|
|
|
15215
15218
|
} catch (a) {
|
|
15216
15219
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15217
15220
|
}
|
|
15218
|
-
}, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
15221
|
+
}, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.23.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15219
15222
|
}
|
|
15220
15223
|
configure(t) {
|
|
15221
15224
|
wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|