@interopio/home-ui-react 2.1.6 → 2.2.0

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,4 +1,4 @@
1
- import { PopperChildrenProps } from "react-popper";
1
+ import { Placement, PositioningStrategy } from "@popperjs/core";
2
2
  import { ButtonIconProps, IconProps } from "@interopio/components-react";
3
3
  import { ActivationEvent } from "../../../helpers/a11y";
4
4
  import { ContextMenuAction } from "../types";
@@ -11,10 +11,12 @@ export interface DropdownButtonProps {
11
11
  isTabStop?: boolean;
12
12
  onActionItemClick: (event: ActivationEvent, action: ContextMenuAction) => void;
13
13
  buttonVariant?: ButtonIconProps["variant"];
14
- placement?: PopperChildrenProps["placement"];
14
+ placement?: Placement;
15
+ strategy?: PositioningStrategy;
15
16
  offset?: [number, number];
16
17
  shouldCloseOnOutsideScroll?: boolean;
17
18
  shouldCloseOnWindowBlur?: boolean;
19
+ shouldCloseOnWindowResize?: boolean;
18
20
  "data-testid"?: string;
19
21
  contextMenuDataTestId?: string;
20
22
  }
@@ -1,5 +1,5 @@
1
1
  import { PERMISSION_NAMES } from "./constants";
2
- export type PermissionName = typeof PERMISSION_NAMES[keyof typeof PERMISSION_NAMES];
2
+ export type PermissionName = (typeof PERMISSION_NAMES)[keyof typeof PERMISSION_NAMES];
3
3
  export type HomePermissionStatus = PermissionStatus & {
4
4
  stableName: PermissionName;
5
5
  };
@@ -2,5 +2,5 @@ import { DefaultSectionProps } from "../../common/types";
2
2
  import type { SectionType } from "../section/types";
3
3
  import type { Workspace } from "./types";
4
4
  export declare const getWorkspacesSectionConfig: (workspaces: Workspace[], runningInstances: {
5
- [appName: string]: string[];
5
+ [appName: string]: Set<string>;
6
6
  }, settings: DefaultSectionProps) => SectionType;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@interopio/home-ui-react",
3
3
  "description": "React components for building a Home App for io.Connect Browser.",
4
- "version": "2.1.6",
4
+ "version": "2.2.0",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -28,17 +28,17 @@
28
28
  "react-dom": ">=16.8.0"
29
29
  },
30
30
  "dependencies": {
31
- "@interopio/browser": "^4.1.6",
32
- "@interopio/components-react": "^0.8.2",
33
- "@interopio/search-api": "^3.1.3",
31
+ "@interopio/browser": "^4.2.0",
32
+ "@interopio/components-react": "^0.9.0",
33
+ "@interopio/search-api": "^3.2.0",
34
34
  "decoder-validate": "^0.0.2",
35
35
  "ua-parser-js": "^1.0.35"
36
36
  },
37
37
  "devDependencies": {
38
- "@interopio/browser-platform": "^4.1.6",
39
- "@interopio/react-hooks": "^4.1.6",
40
- "@interopio/theme": "^3.1.0",
41
- "@interopio/workspaces-ui-react": "^4.1.6"
38
+ "@interopio/browser-platform": "^4.2.0",
39
+ "@interopio/react-hooks": "^4.2.0",
40
+ "@interopio/theme": "^3.2.0",
41
+ "@interopio/workspaces-ui-react": "^4.2.0"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "react-dom": {
@@ -58,5 +58,5 @@
58
58
  "@interopio:registry": "https://registry.npmjs.org",
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "aa36610dd0de2a3c058d5f834c33a724ba741f45"
61
+ "gitHead": "1805933707f7317dc5e0ccb540c2eabd9225ccef"
62
62
  }