@voplus/morpho-workspace 5.0.18 → 5.0.19

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.
@@ -5,5 +5,6 @@ declare const NodeLink: (props: {
5
5
  name: string;
6
6
  };
7
7
  url: string;
8
+ onClick?: ((id?: string) => void) | undefined;
8
9
  }) => React.JSX.Element;
9
10
  export default NodeLink;
@@ -4,7 +4,7 @@ import ToolBar2 from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
4
4
  const NodeLink = (props) => {
5
5
  const { node, url } = props;
6
6
  return (React.createElement(React.Fragment, null,
7
- React.createElement("span", { style: { color: "#374151" } }, node === null || node === void 0 ? void 0 : node.name),
7
+ React.createElement("span", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, node.id); }, style: { color: "#374151" } }, node === null || node === void 0 ? void 0 : node.name),
8
8
  (node === null || node === void 0 ? void 0 : node.id) && (React.createElement(ToolBar2, { id: node.id, showMenu: false },
9
9
  React.createElement(Open, { url: url })))));
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/NodeLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,QAAQ,MAAM,sDAAsD,CAAC;AAE5E,MAAM,QAAQ,GAAG,CAAC,KAA0D,EAAE,EAAE;IAC/E,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACN,oBAAC,KAAK,CAAC,QAAQ;QACd,8BAAM,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAQ;QACrD,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CACZ,oBAAC,QAAQ,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;YACrC,oBAAC,IAAI,IAAC,GAAG,EAAE,GAAG,GAAI,CACR,CACX,CACe,CACjB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/NodeLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,QAAQ,MAAM,sDAAsD,CAAC;AAE5E,MAAM,QAAQ,GAAG,CAAC,KAIjB,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,CACN,oBAAC,KAAK,CAAC,QAAQ;QACd,8BAAM,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,OAAO,sDAAG,IAAI,CAAC,EAAE,CAAC,CAAA,EAAA,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IACxE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CACL;QACN,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CACZ,oBAAC,QAAQ,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;YACrC,oBAAC,IAAI,IAAC,GAAG,EAAE,GAAG,GAAI,CACR,CACX,CACe,CACjB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "5.0.18",
3
+ "version": "5.0.19",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",