@gisce/react-ooui 2.0.0-alpha.49 → 2.0.0-alpha.50

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":"ActionView.d.ts","sourceRoot":"","sources":["../../src/views/ActionView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAIf,OAAO,EAIL,eAAe,EAGf,QAAQ,EACT,MAAM,eAAe,CAAC;AAoBvB,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,WAAW,EAAE,eAAe,CAAC;IAC7B,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;;AAkdF,wBAAsC"}
1
+ {"version":3,"file":"ActionView.d.ts","sourceRoot":"","sources":["../../src/views/ActionView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAIf,OAAO,EAIL,eAAe,EAGf,QAAQ,EACT,MAAM,eAAe,CAAC;AAoBvB,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,WAAW,EAAE,eAAe,CAAC;IAC7B,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;;AAsdF,wBAAsC"}
@@ -1,6 +1,7 @@
1
1
  import { DashboardProps } from '../../*/types';
2
2
  export type DashboardActionViewProps = {
3
3
  dashboardData: DashboardProps;
4
+ visible: boolean;
4
5
  };
5
6
  export declare const DashboardActionView: (props: DashboardActionViewProps) => import("react/jsx-runtime").JSX.Element | null;
6
7
  //# sourceMappingURL=DashboardActionView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardActionView.d.ts","sourceRoot":"","sources":["../../../src/views/actionViews/DashboardActionView.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,cAAc,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,wBAAwB,mDA+BlE,CAAC"}
1
+ {"version":3,"file":"DashboardActionView.d.ts","sourceRoot":"","sources":["../../../src/views/actionViews/DashboardActionView.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,cAAc,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,wBAAwB,mDAmClE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "2.0.0-alpha.49",
3
+ "version": "2.0.0-alpha.50",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
@@ -452,6 +452,10 @@ function ActionView(props: Props, ref: any) {
452
452
  <DashboardActionView
453
453
  key={`${view.type}-${view.view_id}`}
454
454
  dashboardData={view as DashboardView}
455
+ visible={
456
+ currentView!.type === view.type &&
457
+ currentView!.view_id === view.view_id
458
+ }
455
459
  />
456
460
  );
457
461
  }
@@ -11,10 +11,11 @@ import { DashboardProps } from "@/types";
11
11
 
12
12
  export type DashboardActionViewProps = {
13
13
  dashboardData: DashboardProps;
14
+ visible: boolean;
14
15
  };
15
16
 
16
17
  export const DashboardActionView = (props: DashboardActionViewProps) => {
17
- const { dashboardData } = props;
18
+ const { dashboardData, visible } = props;
18
19
  const dashboardRef = useRef();
19
20
  const tabManagerContext = useContext(
20
21
  TabManagerContext,
@@ -25,6 +26,10 @@ export const DashboardActionView = (props: DashboardActionViewProps) => {
25
26
  return null;
26
27
  }
27
28
 
29
+ if (!visible) {
30
+ return null;
31
+ }
32
+
28
33
  return (
29
34
  <DashboardActionProvider
30
35
  dashboardRef={dashboardRef}