@finos/legend-lego 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/DocumentationLink.d.ts.map +1 -1
- package/lib/application/DocumentationLink.js +2 -2
- package/lib/application/DocumentationLink.js.map +1 -1
- package/lib/application/TabManager.js +1 -1
- package/lib/application/TabManager.js.map +1 -1
- package/lib/index.css +1 -1
- package/package.json +6 -6
- package/src/application/DocumentationLink.tsx +4 -2
- package/src/application/TabManager.tsx +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DocumentationLink.d.ts","sourceRoot":"","sources":["../../src/application/DocumentationLink.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAQH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAgCA,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,
|
1
|
+
{"version":3,"file":"DocumentationLink.d.ts","sourceRoot":"","sources":["../../src/application/DocumentationLink.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAQH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAgCA,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAoBA,CAAC"}
|
@@ -38,9 +38,9 @@ export const DocumentationPreview = (props) => {
|
|
38
38
|
const applicationStore = useApplicationStore();
|
39
39
|
const documentationEntry = applicationStore.documentationService.getDocEntry(documentationKey);
|
40
40
|
const textContent = text ?? documentationEntry?.text;
|
41
|
-
if (!
|
41
|
+
if (!textContent) {
|
42
42
|
return null;
|
43
43
|
}
|
44
|
-
return (_jsxs("div", { className: clsx('documentation-preview', className), children: [_jsx("div", { className: "documentation-preview__text", children: textContent }), _jsx("div", { className: "documentation-preview__hint", children: _jsx(DocumentationLink, { documentationKey: documentationKey }) })] }));
|
44
|
+
return (_jsxs("div", { className: clsx('documentation-preview', className), children: [_jsx("div", { className: "documentation-preview__text", children: textContent }), _jsx("div", { className: "documentation-preview__hint", children: documentationEntry && (_jsx(DocumentationLink, { documentationKey: documentationKey })) })] }));
|
45
45
|
};
|
46
46
|
//# sourceMappingURL=DocumentationLink.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DocumentationLink.js","sourceRoot":"","sources":["../../src/application/DocumentationLink.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,+CAA+C,EAC/C,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAKzB,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,kBAAkB,GACtB,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACtE,MAAM,WAAW,GAA4C,CAC3D,KAAK,EACC,EAAE;QACR,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,gBAAgB,CAAC,gBAAgB,CAAC,0BAA0B,CAC1D,gBAAgB,CACjB,CAAC;IACJ,CAAC,CAAC;IAEF,IACE,CAAC,kBAAkB;QACnB,CAAC,CAAC,kBAAkB,CAAC,GAAG;YACtB,CAAC,+CAA+C,CAAC,kBAAkB,CAAC,CAAC,EACvE;QACA,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CACL,cACE,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,IAAI,4BAA4B,EAC5C,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,EAAE;YAC/C,4BAA4B,EAAE,MAAM;SACrC,CAAC,YAEF,KAAC,kBAAkB,KAAG,GAClB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAI5B,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACpD,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,kBAAkB,GACtB,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACtE,MAAM,WAAW,GAAG,IAAI,IAAI,kBAAkB,EAAE,IAAI,CAAC;IAErD,IAAI,CAAC,
|
1
|
+
{"version":3,"file":"DocumentationLink.js","sourceRoot":"","sources":["../../src/application/DocumentationLink.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,+CAA+C,EAC/C,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,IAAI,EA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D,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CACL,eAAK,SAAS,EAAE,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC,aACtD,cAAK,SAAS,EAAC,6BAA6B,YAAE,WAAW,GAAO,EAChE,cAAK,SAAS,EAAC,6BAA6B,YACzC,kBAAkB,IAAI,CACrB,KAAC,iBAAiB,IAAC,gBAAgB,EAAE,gBAAgB,GAAI,CAC1D,GACG,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
@@ -96,7 +96,7 @@ const Tab = observer((props) => {
|
|
96
96
|
return (_jsx("div", { ref: ref, "data-testid": TAB_MANAGER__TAB_TEST_ID, className: clsx('tab-manager__tab', {
|
97
97
|
'tab-manager__tab--active': tabState === tabManagerState.currentTab,
|
98
98
|
'tab-manager__tab--dragged': isBeingDragged,
|
99
|
-
}), onMouseUp: closeTabOnMiddleClick(tabState), children: _jsx(PanelEntryDropZonePlaceholder, {
|
99
|
+
}), onMouseUp: closeTabOnMiddleClick(tabState), children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: false, className: "tab-manager__tab__dnd__placeholder", children: _jsxs(ContextMenu, { content: _jsx(TabContextMenu, { tabState: tabState, managerTabState: tabManagerState }), className: "tab-manager__tab__content", children: [_jsx("button", { className: "tab-manager__tab__label", tabIndex: -1, onClick: () => tabManagerState.openTab(tabState), title: tabState.description, children: tabRenderer?.(tabState) ?? tabState.label }), _jsx("button", { className: "tab-manager__tab__close-btn", onClick: () => tabManagerState.closeTab(tabState), tabIndex: -1, title: "Close", children: _jsx(TimesIcon, {}) })] }) }) }));
|
100
100
|
});
|
101
101
|
const TabMenu = observer((props) => {
|
102
102
|
const { managerTabState } = props;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabManager.js","sourceRoot":"","sources":["../../src/application/TabManager.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,eAAe,EACf,IAAI,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AAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAC5D,KAAK,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,GAChC,IACE,EACN,KAAC,OAAO,IAAC,eAAe,EAAE,eAAe,GAAI,IACzC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/lib/index.css
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-lego",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.4",
|
4
4
|
"description": "Legend shared advanced application components and building blocks",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -51,9 +51,9 @@
|
|
51
51
|
"@ag-grid-community/core": "30.0.2",
|
52
52
|
"@ag-grid-community/react": "30.0.2",
|
53
53
|
"@ag-grid-community/styles": "30.0.2",
|
54
|
-
"@finos/legend-application": "15.0.
|
55
|
-
"@finos/legend-art": "7.0.
|
56
|
-
"@finos/legend-graph": "30.0.
|
54
|
+
"@finos/legend-application": "15.0.27",
|
55
|
+
"@finos/legend-art": "7.0.27",
|
56
|
+
"@finos/legend-graph": "30.0.12",
|
57
57
|
"@finos/legend-shared": "10.0.15",
|
58
58
|
"@types/css-font-loading-module": "0.0.8",
|
59
59
|
"@types/react": "18.2.13",
|
@@ -66,14 +66,14 @@
|
|
66
66
|
"react-dom": "18.2.0"
|
67
67
|
},
|
68
68
|
"devDependencies": {
|
69
|
-
"@finos/legend-dev-utils": "2.0.
|
69
|
+
"@finos/legend-dev-utils": "2.0.70",
|
70
70
|
"@jest/globals": "29.5.0",
|
71
71
|
"cross-env": "7.0.3",
|
72
72
|
"eslint": "8.43.0",
|
73
73
|
"jest": "29.5.0",
|
74
74
|
"npm-run-all": "4.1.5",
|
75
75
|
"rimraf": "5.0.1",
|
76
|
-
"sass": "1.63.
|
76
|
+
"sass": "1.63.6",
|
77
77
|
"typescript": "5.1.3"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
@@ -70,14 +70,16 @@ export const DocumentationPreview: React.FC<{
|
|
70
70
|
applicationStore.documentationService.getDocEntry(documentationKey);
|
71
71
|
const textContent = text ?? documentationEntry?.text;
|
72
72
|
|
73
|
-
if (!
|
73
|
+
if (!textContent) {
|
74
74
|
return null;
|
75
75
|
}
|
76
76
|
return (
|
77
77
|
<div className={clsx('documentation-preview', className)}>
|
78
78
|
<div className="documentation-preview__text">{textContent}</div>
|
79
79
|
<div className="documentation-preview__hint">
|
80
|
-
|
80
|
+
{documentationEntry && (
|
81
|
+
<DocumentationLink documentationKey={documentationKey} />
|
82
|
+
)}
|
81
83
|
</div>
|
82
84
|
</div>
|
83
85
|
);
|