@misiki/gocommerce-connector 0.14.0 → 0.15.0
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/README.md +2 -1
- package/dist/{index-C0CR05Q4.d.cts → index-GdjWgh5b.d.cts} +12 -6
- package/dist/{index-C0CR05Q4.d.ts → index-GdjWgh5b.d.ts} +12 -6
- package/dist/index.cjs +18 -1
- 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 +18 -1
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +18 -1
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +18 -1
- package/dist/services/index.js.map +1 -1
- package/package.json +1 -1
package/dist/services/index.cjs
CHANGED
|
@@ -3027,6 +3027,12 @@ var StoreService = class extends BaseService {
|
|
|
3027
3027
|
...profile?.name ? { name: profile.name } : {},
|
|
3028
3028
|
...profile?.email ? { businessEmail: profile.email } : {},
|
|
3029
3029
|
...profile?.phone ? { businessPhone: profile.phone } : {},
|
|
3030
|
+
// The store's pictures (D148), the same: one it has not chosen keeps the static one.
|
|
3031
|
+
// Its own logo also replaces the static dark logo, which would be the deployment's
|
|
3032
|
+
// mark beside this store's; without a dark one of its own, its logo is the fallback.
|
|
3033
|
+
...profile?.logo_url ? { logo: mediaUrl(profile.logo_url), logoDark: void 0 } : {},
|
|
3034
|
+
...profile?.logo_dark_url ? { logoDark: mediaUrl(profile.logo_dark_url) } : {},
|
|
3035
|
+
...profile?.icon_url ? { favicon: mediaUrl(profile.icon_url) } : {},
|
|
3030
3036
|
currencyCode: code,
|
|
3031
3037
|
currencySymbol: sameCurrency ? base.currencySymbol ?? symbolFor(code) : symbolFor(code),
|
|
3032
3038
|
currency: {
|
|
@@ -3049,7 +3055,18 @@ var StoreService = class extends BaseService {
|
|
|
3049
3055
|
newsletter: { ...basePlugins.newsletter, ...flag(plugins.has("newsletter")) },
|
|
3050
3056
|
// Discount codes are core: every GoCommerce store takes them, so
|
|
3051
3057
|
// the code box is shown whatever the static record says.
|
|
3052
|
-
isDiscountCoupons: { ...basePlugins.isDiscountCoupons, active: true }
|
|
3058
|
+
isDiscountCoupons: { ...basePlugins.isDiscountCoupons, active: true },
|
|
3059
|
+
// The engine resizes the store's own pictures in Cloudflare's URL shape
|
|
3060
|
+
// (D139), so the storefront's srcset asks it for each width. Its public
|
|
3061
|
+
// origin, not the proxy path: an <img> needs no CORS, and the proxy would
|
|
3062
|
+
// put every picture through the storefront's server.
|
|
3063
|
+
...profile?.images_path && this.creds.apiUrl ? {
|
|
3064
|
+
imageCdn: {
|
|
3065
|
+
provider: "cloudflare",
|
|
3066
|
+
url: this.creds.apiUrl.trim().replace(/\/+$/, "") + profile.images_path,
|
|
3067
|
+
active: true
|
|
3068
|
+
}
|
|
3069
|
+
} : {}
|
|
3053
3070
|
},
|
|
3054
3071
|
...menus?.length ? { menu: menus } : {},
|
|
3055
3072
|
...deliverable(base, ships),
|