@interopio/home-ui-react 1.1.0 → 1.1.1

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,4 @@
1
- export declare const PERMISSION_NAMES: readonly ["window-management", "notifications"];
1
+ export declare const PERMISSION_NAMES: {
2
+ readonly WINDOW_MANAGEMENT: "window-management";
3
+ readonly NOTIFICATIONS: "notifications";
4
+ };
@@ -1,4 +1,5 @@
1
- import { PermissionNames } from '../permissions-setup/types';
1
+ import { PERMISSION_NAMES } from './constants';
2
+ export type PermissionNames = (typeof PERMISSION_NAMES)[keyof typeof PERMISSION_NAMES];
2
3
  export type HomePermissionStatus = PermissionStatus & {
3
- name: PermissionNames;
4
+ stableName: PermissionNames;
4
5
  };
@@ -1,4 +1,5 @@
1
- import type { PermissionNames, PermissionStep } from './types';
1
+ import type { PermissionNames } from '../io-connect-home-provider/types';
2
+ import type { PermissionStep } from './types';
2
3
  export declare const PERMISSION_STEPS: Record<PermissionNames, PermissionStep>;
3
4
  export declare const DEFAULT_SETTINGS: {
4
5
  edgeNotificationsPermissionTimeout: number;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { PERMISSION_NAMES } from '../io-connect-home-provider/constants';
3
2
  export interface PermissionStep {
4
3
  heading: string;
5
4
  description: string;
@@ -11,4 +10,3 @@ export interface PermissionStep {
11
10
  handlePermissionsPromptClose: () => void;
12
11
  }) => void;
13
12
  }
14
- export type PermissionNames = (typeof PERMISSION_NAMES)[number];
@@ -1,4 +1,4 @@
1
- import type { PermissionNames } from './types';
1
+ import type { PermissionNames } from '../io-connect-home-provider/types';
2
2
  interface UnsuccessfulSetupProps {
3
3
  deniedPermissionName?: PermissionNames;
4
4
  }
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": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
7
7
  "types": "./index.d.ts",