@nu-art/work-hub-frontend 0.401.5 → 0.401.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.
@@ -9,6 +9,7 @@ type Props = {
9
9
  type State = {
10
10
  tab: WorkHubTab;
11
11
  item: WorkHubItem<any>;
12
+ renderArgs: any;
12
13
  };
13
14
  export declare class Component_WorkHub_TabContent extends ComponentSync<Props, State> implements OnWorkHubTabs {
14
15
  private ref;
@@ -15,6 +15,7 @@ export class Component_WorkHub_TabContent extends ComponentSync {
15
15
  deriveStateFromProps(nextProps, state) {
16
16
  state.tab = nextProps.tab;
17
17
  state.item = ModuleFE_WorkHub.workHubItem.getByKey(state.tab.itemKey);
18
+ state.renderArgs = { ...state.tab.renderArgs };
18
19
  return state;
19
20
  }
20
21
  componentDidMount() {
@@ -36,7 +37,6 @@ export class Component_WorkHub_TabContent extends ComponentSync {
36
37
  };
37
38
  renderSync = () => {
38
39
  const item = this.state.item;
39
- const tab = this.state.tab;
40
- return _jsx("div", { className: 'c__work-hub-tab-content', ref: this.ref, tabIndex: 0, children: _jsx(TS_ErrorBoundary, { children: item.renderer(item, tab.id, tab.renderArgs) }) });
40
+ return _jsx("div", { className: 'c__work-hub-tab-content', ref: this.ref, tabIndex: 0, children: _jsx(TS_ErrorBoundary, { children: item.renderer(item, this.state.tab.id, this.state.renderArgs) }) });
41
41
  };
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/work-hub-frontend",
3
- "version": "0.401.5",
3
+ "version": "0.401.7",
4
4
  "description": "TS WorkHub Frontend",
5
5
  "keywords": [
6
6
  "TacB0sS",
@@ -21,11 +21,11 @@
21
21
  "linkDirectory": true
22
22
  },
23
23
  "dependencies": {
24
- "@nu-art/work-hub-shared": "0.401.5",
25
- "@nu-art/ts-common": "0.401.5",
26
- "@nu-art/ts-styles": "0.401.5",
27
- "@nu-art/thunderstorm-shared": "0.401.5",
28
- "@nu-art/thunderstorm-frontend": "0.401.5",
24
+ "@nu-art/work-hub-shared": "0.401.7",
25
+ "@nu-art/ts-common": "0.401.7",
26
+ "@nu-art/ts-styles": "0.401.7",
27
+ "@nu-art/thunderstorm-shared": "0.401.7",
28
+ "@nu-art/thunderstorm-frontend": "0.401.7",
29
29
  "react": "^18.0.0"
30
30
  },
31
31
  "devDependencies": {