@industry-theme/principal-view-panels 0.3.5 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CanvasDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAqB/E,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,WAAW,CAAC;AA8L3C;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AA8BD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAisC9D,CAAC"}
1
+ {"version":3,"file":"CanvasDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CanvasDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAqB/E,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,WAAW,CAAC;AA8L3C;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AA8BD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAusC9D,CAAC"}
@@ -52932,7 +52932,7 @@ const CanvasDetailPanel = ({
52932
52932
  if (!node) return prev;
52933
52933
  const nodePv = node.pv || ((_b2 = node.data) == null ? void 0 : _b2.pv);
52934
52934
  const sources = nodePv == null ? void 0 : nodePv.sources;
52935
- if (sources && sources.length > 0 && eventsRef.current) {
52935
+ if (sources && sources.length > 0) {
52936
52936
  const ctx = contextRef.current;
52937
52937
  const repositoryPath = ctx.repositoryPath;
52938
52938
  if (repositoryPath) {
@@ -52940,12 +52940,16 @@ const CanvasDetailPanel = ({
52940
52940
  const cleanPath = sourcePath.replace(/\*/g, "");
52941
52941
  const absolutePath = cleanPath.startsWith("/") ? cleanPath : `${repositoryPath}/${cleanPath}`;
52942
52942
  console.log("[CanvasDetailPanel] Shift+click - opening source:", absolutePath);
52943
- eventsRef.current.emit({
52944
- type: "file:opened",
52945
- source: "canvas-detail-panel",
52946
- timestamp: Date.now(),
52947
- payload: { filePath: absolutePath }
52948
- });
52943
+ if (actionsRef.current.openFile) {
52944
+ actionsRef.current.openFile(absolutePath);
52945
+ } else if (eventsRef.current) {
52946
+ eventsRef.current.emit({
52947
+ type: "file:open-in-editor",
52948
+ source: "canvas-detail-panel",
52949
+ timestamp: Date.now(),
52950
+ payload: { filePath: absolutePath }
52951
+ });
52952
+ }
52949
52953
  }
52950
52954
  }
52951
52955
  return prev;