@industry-theme/principal-view-panels 0.12.22 → 0.12.23

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasEditorPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CanvasEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAI5D,OAAO,KAAK,EAAyE,gBAAgB,EAAoC,MAAM,mCAAmC,CAAC;AAKnL,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AA8BrE;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;IACzE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC,CAAC;IAEH;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAslC9D,CAAC"}
1
+ {"version":3,"file":"CanvasEditorPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CanvasEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAI5D,OAAO,KAAK,EAAyE,gBAAgB,EAAoC,MAAM,mCAAmC,CAAC;AAKnL,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AA8BrE;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;IACzE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC,CAAC;IAEH;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAunC9D,CAAC"}
@@ -94555,6 +94555,7 @@ const CanvasEditorPanel = ({
94555
94555
  return ((_a2 = slice == null ? void 0 : slice.data) == null ? void 0 : _a2.sha) || null;
94556
94556
  }, [context2]);
94557
94557
  const [pathCopied, setPathCopied] = useState(false);
94558
+ const [copiedNodesCount, setCopiedNodesCount] = useState(null);
94558
94559
  const loadConfiguration = useCallback(async () => {
94559
94560
  if (!canvasPath) {
94560
94561
  setState((prev) => ({ ...prev, canvas: null, library: null, loading: false, error: null }));
@@ -94671,7 +94672,8 @@ const CanvasEditorPanel = ({
94671
94672
  ...edges.length > 0 && { edges }
94672
94673
  };
94673
94674
  navigator.clipboard.writeText(JSON.stringify(copyContext, null, 2)).then(() => {
94674
- console.log(`[CanvasEditorPanel] Copied ${nodes.length} node(s) to clipboard`);
94675
+ setCopiedNodesCount(nodes.length);
94676
+ setTimeout(() => setCopiedNodesCount(null), 2e3);
94675
94677
  }).catch((err) => {
94676
94678
  console.error("[CanvasEditorPanel] Failed to copy nodes:", err);
94677
94679
  });
@@ -95339,6 +95341,35 @@ const CanvasEditorPanel = ({
95339
95341
  color: theme2.colors.textMuted,
95340
95342
  fontStyle: "italic"
95341
95343
  }, children: "No edge types defined" })
95344
+ ] }),
95345
+ copiedNodesCount !== null && /* @__PURE__ */ jsxs("div", { style: {
95346
+ position: "absolute",
95347
+ bottom: 16,
95348
+ left: "50%",
95349
+ transform: "translateX(-50%)",
95350
+ display: "flex",
95351
+ alignItems: "center",
95352
+ gap: theme2.space[2],
95353
+ padding: `${theme2.space[2]} ${theme2.space[3]}`,
95354
+ backgroundColor: theme2.colors.backgroundSecondary,
95355
+ border: `1px solid ${theme2.colors.border}`,
95356
+ borderRadius: theme2.radii[1],
95357
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.15)",
95358
+ zIndex: 50,
95359
+ animation: "fadeIn 0.15s ease-out"
95360
+ }, children: [
95361
+ /* @__PURE__ */ jsx(Check, { size: 14, style: { color: theme2.colors.success || "#22c55e" } }),
95362
+ /* @__PURE__ */ jsxs("span", { style: {
95363
+ fontSize: theme2.fontSizes[1],
95364
+ color: theme2.colors.text,
95365
+ whiteSpace: "nowrap"
95366
+ }, children: [
95367
+ "Copied ",
95368
+ copiedNodesCount,
95369
+ " node",
95370
+ copiedNodesCount !== 1 ? "s" : "",
95371
+ " to clipboard"
95372
+ ] })
95342
95373
  ] })
95343
95374
  ] }),
95344
95375
  state.selectedScenario && /* @__PURE__ */ jsx(