@mercurjs/dashboard-shared 2.2.0-canary.11 → 2.2.0-canary.13

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. 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],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/dashboard-shared",
3
- "version": "2.2.0-canary.11",
3
+ "version": "2.2.0-canary.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",