strapi-plugin-bulk-updater 1.3.8 → 1.3.10

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 (29) hide show
  1. package/dist/_chunks/{BulkUpdater-BosdSbGF.js → BulkUpdater-DRHQBZZV.js} +20 -4
  2. package/dist/_chunks/BulkUpdater-DRHQBZZV.js.map +1 -0
  3. package/dist/_chunks/{BulkUpdater-DUrmamj-.mjs → BulkUpdater-J21ZgJWx.mjs} +20 -4
  4. package/dist/_chunks/BulkUpdater-J21ZgJWx.mjs.map +1 -0
  5. package/dist/_chunks/{ScopedQuotaSelectInput-CyGlYa9x.js → ScopedQuotaSelectInput-BsBpmwun.js} +79 -11
  6. package/dist/_chunks/ScopedQuotaSelectInput-BsBpmwun.js.map +1 -0
  7. package/dist/_chunks/{ScopedQuotaSelectInput-Cy3eEj9-.mjs → ScopedQuotaSelectInput-YKdQgrPt.mjs} +79 -11
  8. package/dist/_chunks/ScopedQuotaSelectInput-YKdQgrPt.mjs.map +1 -0
  9. package/dist/_chunks/{SettingsPage-Bdse5MP4.mjs → SettingsPage-BDObdCIY.mjs} +2 -2
  10. package/dist/_chunks/{SettingsPage-Bdse5MP4.mjs.map → SettingsPage-BDObdCIY.mjs.map} +1 -1
  11. package/dist/_chunks/{SettingsPage-B6Ia7SVS.js → SettingsPage-M-HQ8Jtr.js} +2 -2
  12. package/dist/_chunks/{SettingsPage-B6Ia7SVS.js.map → SettingsPage-M-HQ8Jtr.js.map} +1 -1
  13. package/dist/_chunks/{ValidationRulesTab-BqGz1VLo.js → ValidationRulesTab-DuvL-K4F.js} +21 -8
  14. package/dist/_chunks/ValidationRulesTab-DuvL-K4F.js.map +1 -0
  15. package/dist/_chunks/{ValidationRulesTab-Dqkson67.mjs → ValidationRulesTab-VeRr-vxa.mjs} +21 -8
  16. package/dist/_chunks/ValidationRulesTab-VeRr-vxa.mjs.map +1 -0
  17. package/dist/admin/index.js +3 -3
  18. package/dist/admin/index.mjs +3 -3
  19. package/dist/server/index.js +223 -42
  20. package/dist/server/index.js.map +1 -1
  21. package/dist/server/index.mjs +223 -42
  22. package/dist/server/index.mjs.map +1 -1
  23. package/package.json +1 -1
  24. package/dist/_chunks/BulkUpdater-BosdSbGF.js.map +0 -1
  25. package/dist/_chunks/BulkUpdater-DUrmamj-.mjs.map +0 -1
  26. package/dist/_chunks/ScopedQuotaSelectInput-Cy3eEj9-.mjs.map +0 -1
  27. package/dist/_chunks/ScopedQuotaSelectInput-CyGlYa9x.js.map +0 -1
  28. package/dist/_chunks/ValidationRulesTab-BqGz1VLo.js.map +0 -1
  29. package/dist/_chunks/ValidationRulesTab-Dqkson67.mjs.map +0 -1
@@ -5,7 +5,7 @@ const React = require("react");
5
5
  const admin = require("@strapi/strapi/admin");
6
6
  const designSystem = require("@strapi/design-system");
7
7
  const icons = require("@strapi/icons");
8
- const ValidationRulesTab = require("./ValidationRulesTab-BqGz1VLo.js");
8
+ const ValidationRulesTab = require("./ValidationRulesTab-DuvL-K4F.js");
9
9
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
10
10
  const React__default = /* @__PURE__ */ _interopDefault(React);
11
11
  function parseCsvRows(csvText) {
@@ -1514,8 +1514,24 @@ const BulkUpdatePreviewModal = ({
1514
1514
  };
1515
1515
  function getNestedValue(obj, path) {
1516
1516
  if (!obj || !path) return void 0;
1517
- if (!path.includes(".")) return obj[path];
1518
- return path.split(".").reduce((acc, part) => acc && typeof acc === "object" ? acc[part] : void 0, obj);
1517
+ const parts = path.split(".");
1518
+ function extract(current, remainingParts) {
1519
+ if (current === void 0 || current === null) return void 0;
1520
+ if (remainingParts.length === 0) return current;
1521
+ const [head, ...tail] = remainingParts;
1522
+ if (Array.isArray(current)) {
1523
+ if (/^\d+$/.test(head)) {
1524
+ return extract(current[parseInt(head, 10)], tail);
1525
+ }
1526
+ for (const item of current) {
1527
+ const found = extract(item?.[head], tail);
1528
+ if (found !== void 0 && found !== null) return found;
1529
+ }
1530
+ return void 0;
1531
+ }
1532
+ return extract(current[head], tail);
1533
+ }
1534
+ return extract(obj, parts);
1519
1535
  }
1520
1536
  function getAvailableColumnsForCollection(col, selectedAttribute, searchAttribute) {
1521
1537
  const cols = [
@@ -4974,4 +4990,4 @@ exports.default = BulkUpdater;
4974
4990
  exports.formatDisplayValue = formatDisplayValue;
4975
4991
  exports.getAvailableColumnsForCollection = getAvailableColumnsForCollection;
4976
4992
  exports.getNestedValue = getNestedValue;
4977
- //# sourceMappingURL=BulkUpdater-BosdSbGF.js.map
4993
+ //# sourceMappingURL=BulkUpdater-DRHQBZZV.js.map