@mercurjs/dashboard-shared 2.2.0-canary.11 → 2.2.0-canary.12
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.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9729,6 +9729,7 @@ var REFERENCE_FIELDS = [
|
|
|
9729
9729
|
"tags"
|
|
9730
9730
|
];
|
|
9731
9731
|
var isReferenceField = (field) => REFERENCE_FIELDS.includes(field);
|
|
9732
|
+
var NON_EDITABLE_VARIANT_FIELDS = /* @__PURE__ */ new Set(["manage_inventory"]);
|
|
9732
9733
|
var isImageList = (value) => Array.isArray(value) && value.length > 0 && value.every(
|
|
9733
9734
|
(entry) => typeof entry === "object" && entry !== null && "url" in entry && typeof entry.url === "string"
|
|
9734
9735
|
);
|
|
@@ -9796,6 +9797,7 @@ var partitionProductChangeActions = (actions) => {
|
|
|
9796
9797
|
const previousFields = details.previous_fields ?? {};
|
|
9797
9798
|
const variantId = details.variant_id !== void 0 && details.variant_id !== null ? String(details.variant_id) : void 0;
|
|
9798
9799
|
for (const [field, value] of Object.entries(fields)) {
|
|
9800
|
+
if (NON_EDITABLE_VARIANT_FIELDS.has(field)) continue;
|
|
9799
9801
|
updated.push({
|
|
9800
9802
|
field,
|
|
9801
9803
|
previous: previousFields[field],
|