@decocms/apps-salesforce 7.64.3 → 7.65.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/apps-salesforce",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.65.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Deco commerce app: Salesforce Commerce Cloud integration",
|
|
6
6
|
"repository": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"lint:unused": "knip"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@decocms/blocks": "7.
|
|
26
|
-
"@decocms/apps-commerce": "7.
|
|
25
|
+
"@decocms/blocks": "7.65.0",
|
|
26
|
+
"@decocms/apps-commerce": "7.65.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@tanstack/react-start": ">=1.0.0",
|
|
@@ -150,17 +150,17 @@ describe("createProductTransformer", () => {
|
|
|
150
150
|
});
|
|
151
151
|
|
|
152
152
|
it("custom propertyMapper sees site-specific extras via index signature", () => {
|
|
153
|
-
const
|
|
153
|
+
const acmeMapper: PropertyMapper = (product) => [
|
|
154
154
|
{ "@type": "PropertyValue", name: "marca", value: String(product.Marca ?? "") },
|
|
155
155
|
{ "@type": "PropertyValue", name: "volume", value: String(product.Volume ?? "") },
|
|
156
156
|
];
|
|
157
|
-
const transform = createProductTransformer({ propertyMapper:
|
|
157
|
+
const transform = createProductTransformer({ propertyMapper: acmeMapper });
|
|
158
158
|
const out = transform({
|
|
159
|
-
product: baseProduct({ Marca: "
|
|
159
|
+
product: baseProduct({ Marca: "Acme", Volume: "200ml" }),
|
|
160
160
|
options: { currencyCode: "BRL" },
|
|
161
161
|
});
|
|
162
162
|
expect(out.additionalProperty).toEqual([
|
|
163
|
-
{ "@type": "PropertyValue", name: "marca", value: "
|
|
163
|
+
{ "@type": "PropertyValue", name: "marca", value: "Acme" },
|
|
164
164
|
{ "@type": "PropertyValue", name: "volume", value: "200ml" },
|
|
165
165
|
]);
|
|
166
166
|
});
|
|
@@ -50,7 +50,7 @@ export interface SalesforceListCartProps {
|
|
|
50
50
|
/**
|
|
51
51
|
* @title Fallback Title
|
|
52
52
|
* @description Shown when the campaign payload has no `headerText`
|
|
53
|
-
* (e.g.
|
|
53
|
+
* (e.g. a production Salesforce storefront uses the configured `label` from the CMS block).
|
|
54
54
|
*/
|
|
55
55
|
title?: string;
|
|
56
56
|
/** Custom property mapper. */
|