tycho-components 0.11.0 → 0.11.2

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.
@@ -113,10 +113,10 @@ export default function TreeView({ struct, expression, selector = "canvas-tree",
113
113
  setInvalid(undefined);
114
114
  load();
115
115
  }, [struct]);
116
- if (invalid || !struct) {
116
+ if (!struct) {
117
117
  return (_jsx(AppPlaceholder, { text: placeholder || t("placeholder.sentence.notparsed") }));
118
118
  }
119
- return (_jsxs("div", { className: "tree-view-container", children: [_jsx("div", { className: "floating-buttons", children: cy &&
119
+ return (_jsxs("div", { className: "tree-view-container", children: [invalid && (_jsx("div", { className: "tree-placeholder-overlay", children: _jsx(AppPlaceholder, { text: placeholder || t("placeholder.sentence.notparsed") }) })), _jsx("div", { className: "floating-buttons", children: cy &&
120
120
  getButtons(generateImage, reset, onClickExpression || downloadPsd, toggleInfo, onExpand, expression, openSearchModal)
121
121
  .filter((btn) => btn.condition)
122
122
  .map((btn, i) => {
@@ -57,3 +57,13 @@
57
57
  }
58
58
  }
59
59
  }
60
+
61
+ .tree-placeholder-overlay {
62
+ position: absolute;
63
+ inset: 0;
64
+ z-index: 1000;
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ background-color: var(--background-default, #fff);
69
+ }
@@ -36,7 +36,7 @@ export type Github = {
36
36
  remote: string;
37
37
  path: string;
38
38
  branch: string;
39
- message: string;
39
+ commit: string;
40
40
  };
41
41
  export type RelatedPaper = {
42
42
  uid?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.11.0",
4
+ "version": "0.11.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {