strapi-plugin-bulk-updater 1.3.9 → 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-DPEJQYYa.js → BulkUpdater-DRHQBZZV.js} +20 -4
  2. package/dist/_chunks/BulkUpdater-DRHQBZZV.js.map +1 -0
  3. package/dist/_chunks/{BulkUpdater-CtEymixf.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-DLCYx2s4.mjs → SettingsPage-BDObdCIY.mjs} +2 -2
  10. package/dist/_chunks/{SettingsPage-DLCYx2s4.mjs.map → SettingsPage-BDObdCIY.mjs.map} +1 -1
  11. package/dist/_chunks/{SettingsPage-BM8B-uUz.js → SettingsPage-M-HQ8Jtr.js} +2 -2
  12. package/dist/_chunks/{SettingsPage-BM8B-uUz.js.map → SettingsPage-M-HQ8Jtr.js.map} +1 -1
  13. package/dist/_chunks/{ValidationRulesTab-vr-y8ntX.js → ValidationRulesTab-DuvL-K4F.js} +3 -3
  14. package/dist/_chunks/ValidationRulesTab-DuvL-K4F.js.map +1 -0
  15. package/dist/_chunks/{ValidationRulesTab-tT4HIeey.mjs → ValidationRulesTab-VeRr-vxa.mjs} +3 -3
  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 +204 -35
  20. package/dist/server/index.js.map +1 -1
  21. package/dist/server/index.mjs +204 -35
  22. package/dist/server/index.mjs.map +1 -1
  23. package/package.json +1 -1
  24. package/dist/_chunks/BulkUpdater-CtEymixf.mjs.map +0 -1
  25. package/dist/_chunks/BulkUpdater-DPEJQYYa.js.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-tT4HIeey.mjs.map +0 -1
  29. package/dist/_chunks/ValidationRulesTab-vr-y8ntX.js.map +0 -1
@@ -3,7 +3,7 @@ import React__default, { useState, useEffect, useMemo, useRef } from "react";
3
3
  import { useFetchClient, useNotification } from "@strapi/strapi/admin";
4
4
  import { Box, Flex, Typography, Button, SingleSelect, SingleSelectOption, Badge, Checkbox, Alert, Table, Thead, Tr, Th, Tbody, Td, Loader, TextInput, ComboboxOption, Field, Combobox } from "@strapi/design-system";
5
5
  import { ArrowClockwise, Download, Upload, Check, Eye, Play, Cog } from "@strapi/icons";
6
- import { V as ValidationRulesTab } from "./ValidationRulesTab-tT4HIeey.mjs";
6
+ import { V as ValidationRulesTab } from "./ValidationRulesTab-VeRr-vxa.mjs";
7
7
  function parseCsvRows(csvText) {
8
8
  if (!csvText) return [];
9
9
  let text = csvText;
@@ -1510,8 +1510,24 @@ const BulkUpdatePreviewModal = ({
1510
1510
  };
1511
1511
  function getNestedValue(obj, path) {
1512
1512
  if (!obj || !path) return void 0;
1513
- if (!path.includes(".")) return obj[path];
1514
- return path.split(".").reduce((acc, part) => acc && typeof acc === "object" ? acc[part] : void 0, obj);
1513
+ const parts = path.split(".");
1514
+ function extract(current, remainingParts) {
1515
+ if (current === void 0 || current === null) return void 0;
1516
+ if (remainingParts.length === 0) return current;
1517
+ const [head, ...tail] = remainingParts;
1518
+ if (Array.isArray(current)) {
1519
+ if (/^\d+$/.test(head)) {
1520
+ return extract(current[parseInt(head, 10)], tail);
1521
+ }
1522
+ for (const item of current) {
1523
+ const found = extract(item?.[head], tail);
1524
+ if (found !== void 0 && found !== null) return found;
1525
+ }
1526
+ return void 0;
1527
+ }
1528
+ return extract(current[head], tail);
1529
+ }
1530
+ return extract(obj, parts);
1515
1531
  }
1516
1532
  function getAvailableColumnsForCollection(col, selectedAttribute, searchAttribute) {
1517
1533
  const cols = [
@@ -4972,4 +4988,4 @@ export {
4972
4988
  getAvailableColumnsForCollection,
4973
4989
  getNestedValue
4974
4990
  };
4975
- //# sourceMappingURL=BulkUpdater-CtEymixf.mjs.map
4991
+ //# sourceMappingURL=BulkUpdater-J21ZgJWx.mjs.map