@gallop.software/studio 1.2.6 → 1.2.7

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.
@@ -4750,16 +4750,24 @@ function StudioDetailView() {
4750
4750
  ] })
4751
4751
  ] }),
4752
4752
  /* @__PURE__ */ jsxs8("div", { css: styles8.actions, children: [
4753
- /* @__PURE__ */ jsxs8("button", { css: styles8.actionBtn, onClick: () => setShowRenameModal(true), children: [
4754
- /* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" }) }),
4755
- "Rename"
4756
- ] }),
4753
+ /* @__PURE__ */ jsxs8(
4754
+ "button",
4755
+ {
4756
+ css: styles8.actionBtn,
4757
+ onClick: () => setShowRenameModal(true),
4758
+ disabled: focusedItem.isProtected,
4759
+ children: [
4760
+ /* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" }) }),
4761
+ "Rename"
4762
+ ]
4763
+ }
4764
+ ),
4757
4765
  /* @__PURE__ */ jsxs8(
4758
4766
  "button",
4759
4767
  {
4760
4768
  css: styles8.actionBtn,
4761
4769
  onClick: () => setShowMoveModal(true),
4762
- disabled: moving,
4770
+ disabled: moving || focusedItem.isProtected,
4763
4771
  children: [
4764
4772
  /* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" }) }),
4765
4773
  moving ? "Moving..." : "Move"
@@ -4771,7 +4779,7 @@ function StudioDetailView() {
4771
4779
  {
4772
4780
  css: styles8.actionBtn,
4773
4781
  onClick: handleSync,
4774
- disabled: pushing || focusedItem.cdnPushed && !focusedItem.isRemote,
4782
+ disabled: pushing || focusedItem.isProtected || focusedItem.cdnPushed && !focusedItem.isRemote,
4775
4783
  title: focusedItem.cdnPushed && !focusedItem.isRemote ? "Already in R2" : void 0,
4776
4784
  children: [
4777
4785
  /* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" }) }),
@@ -4784,16 +4792,25 @@ function StudioDetailView() {
4784
4792
  {
4785
4793
  css: styles8.actionBtn,
4786
4794
  onClick: () => setShowProcessConfirm(true),
4795
+ disabled: focusedItem.isProtected,
4787
4796
  children: [
4788
4797
  /* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" }) }),
4789
4798
  "Process Image"
4790
4799
  ]
4791
4800
  }
4792
4801
  ),
4793
- /* @__PURE__ */ jsxs8("button", { css: [styles8.actionBtn, styles8.actionBtnDanger], onClick: () => setShowDeleteConfirm(true), children: [
4794
- /* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" }) }),
4795
- "Delete"
4796
- ] })
4802
+ /* @__PURE__ */ jsxs8(
4803
+ "button",
4804
+ {
4805
+ css: [styles8.actionBtn, styles8.actionBtnDanger],
4806
+ onClick: () => setShowDeleteConfirm(true),
4807
+ disabled: focusedItem.isProtected,
4808
+ children: [
4809
+ /* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" }) }),
4810
+ "Delete"
4811
+ ]
4812
+ }
4813
+ )
4797
4814
  ] })
4798
4815
  ] })
4799
4816
  ] })
@@ -5763,4 +5780,4 @@ export {
5763
5780
  StudioUI,
5764
5781
  StudioUI_default as default
5765
5782
  };
5766
- //# sourceMappingURL=StudioUI-2JFHZMRY.mjs.map
5783
+ //# sourceMappingURL=StudioUI-TZB57JJT.mjs.map