strapi-plugin-bulk-updater 1.3.9 → 1.3.11
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/_chunks/{BulkUpdater-DPEJQYYa.js → BulkUpdater-DRHQBZZV.js} +20 -4
- package/dist/_chunks/BulkUpdater-DRHQBZZV.js.map +1 -0
- package/dist/_chunks/{BulkUpdater-CtEymixf.mjs → BulkUpdater-J21ZgJWx.mjs} +20 -4
- package/dist/_chunks/BulkUpdater-J21ZgJWx.mjs.map +1 -0
- package/dist/_chunks/{ScopedQuotaSelectInput-CyGlYa9x.js → ScopedQuotaSelectInput-BsBpmwun.js} +79 -11
- package/dist/_chunks/ScopedQuotaSelectInput-BsBpmwun.js.map +1 -0
- package/dist/_chunks/{ScopedQuotaSelectInput-Cy3eEj9-.mjs → ScopedQuotaSelectInput-YKdQgrPt.mjs} +79 -11
- package/dist/_chunks/ScopedQuotaSelectInput-YKdQgrPt.mjs.map +1 -0
- package/dist/_chunks/{SettingsPage-DLCYx2s4.mjs → SettingsPage-BDObdCIY.mjs} +2 -2
- package/dist/_chunks/{SettingsPage-DLCYx2s4.mjs.map → SettingsPage-BDObdCIY.mjs.map} +1 -1
- package/dist/_chunks/{SettingsPage-BM8B-uUz.js → SettingsPage-M-HQ8Jtr.js} +2 -2
- package/dist/_chunks/{SettingsPage-BM8B-uUz.js.map → SettingsPage-M-HQ8Jtr.js.map} +1 -1
- package/dist/_chunks/{ValidationRulesTab-vr-y8ntX.js → ValidationRulesTab-DuvL-K4F.js} +3 -3
- package/dist/_chunks/ValidationRulesTab-DuvL-K4F.js.map +1 -0
- package/dist/_chunks/{ValidationRulesTab-tT4HIeey.mjs → ValidationRulesTab-VeRr-vxa.mjs} +3 -3
- package/dist/_chunks/ValidationRulesTab-VeRr-vxa.mjs.map +1 -0
- package/dist/admin/index.js +99 -5
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +99 -5
- package/dist/admin/index.mjs.map +1 -1
- package/dist/server/index.js +590 -29807
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +590 -29797
- package/dist/server/index.mjs.map +1 -1
- package/package.json +2 -1
- package/dist/_chunks/BulkUpdater-CtEymixf.mjs.map +0 -1
- package/dist/_chunks/BulkUpdater-DPEJQYYa.js.map +0 -1
- package/dist/_chunks/ScopedQuotaSelectInput-Cy3eEj9-.mjs.map +0 -1
- package/dist/_chunks/ScopedQuotaSelectInput-CyGlYa9x.js.map +0 -1
- package/dist/_chunks/ValidationRulesTab-tT4HIeey.mjs.map +0 -1
- 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-
|
|
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
|
-
|
|
1514
|
-
|
|
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-
|
|
4991
|
+
//# sourceMappingURL=BulkUpdater-J21ZgJWx.mjs.map
|