@epam/ai-dial-react-file-manager 0.3.0-dev.19 → 0.3.0-dev.20

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.
@@ -4283,15 +4283,7 @@ const Li = () => {
4283
4283
  icon: /* @__PURE__ */ a(na, { ...A, className: "text-secondary" }),
4284
4284
  onClick: () => N?.(C.path)
4285
4285
  });
4286
- const _ = !C.permissions || C.permissions.includes(jt.WRITE);
4287
- e[y.Delete] && _ && T.push({
4288
- key: y.Delete,
4289
- label: e[y.Delete],
4290
- icon: /* @__PURE__ */ a(ra, { ...A }),
4291
- danger: !0,
4292
- onClick: () => i(C, C.parentPath ?? "")
4293
- });
4294
- const V = C.nodeType === O.FOLDER || C.nodeType === O.ITEM && x;
4286
+ const _ = !C.permissions || C.permissions.includes(jt.WRITE), V = C.nodeType === O.FOLDER || C.nodeType === O.ITEM && x;
4295
4287
  return e[y.Rename] && V && _ && T.push({
4296
4288
  key: y.Rename,
4297
4289
  label: e[y.Rename],
@@ -4337,6 +4329,12 @@ const Li = () => {
4337
4329
  }
4338
4330
  ),
4339
4331
  onClick: () => v(C)
4332
+ }), e[y.Delete] && _ && T.push({
4333
+ key: y.Delete,
4334
+ label: e[y.Delete],
4335
+ icon: /* @__PURE__ */ a(ra, { ...A }),
4336
+ danger: !0,
4337
+ onClick: () => i(C, C.parentPath ?? "")
4340
4338
  }), T;
4341
4339
  }, [
4342
4340
  e,
@@ -4701,12 +4699,6 @@ const Li = () => {
4701
4699
  }
4702
4700
  ),
4703
4701
  onClick: () => At?.(w.path)
4704
- }), n.actionLabels[y.Delete] && w.permissions?.includes(jt.WRITE) && !He && me.push({
4705
- key: "delete",
4706
- label: n.actionLabels[y.Delete],
4707
- icon: /* @__PURE__ */ a(ra, { ...A }),
4708
- danger: !0,
4709
- onClick: () => Ie([w], w.parentPath ?? "")
4710
4702
  }), n.actionLabels[y.Rename] && !He && me.push({
4711
4703
  key: "rename",
4712
4704
  label: n.actionLabels[y.Rename],
@@ -4741,6 +4733,12 @@ const Li = () => {
4741
4733
  }
4742
4734
  ),
4743
4735
  onClick: () => Ze?.([w])
4736
+ }), n.actionLabels[y.Delete] && w.permissions?.includes(jt.WRITE) && !He && me.push({
4737
+ key: "delete",
4738
+ label: n.actionLabels[y.Delete],
4739
+ icon: /* @__PURE__ */ a(ra, { ...A }),
4740
+ danger: !0,
4741
+ onClick: () => Ie([w], w.parentPath ?? "")
4744
4742
  })), ie.length ? me.length === 0 ? ie : ie.length === 0 ? me : [
4745
4743
  ...ie,
4746
4744
  { key: "divider", type: ha.Divider },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-react-file-manager",
3
- "version": "0.3.0-dev.19",
3
+ "version": "0.3.0-dev.20",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "React file manager package for AI DIAL interfaces",