dfh-ui-library 1.13.128 → 1.13.129

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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AccountPopoverMenuItem } from '../../shared/models/components/common.model';
2
+ import { AccountPopoverMenuItem, Environment } from '../../shared/models/components/common.model';
3
3
  interface ArrowDropdownProps {
4
4
  username?: string;
5
5
  themeColor?: string;
@@ -10,25 +10,10 @@ interface ArrowDropdownProps {
10
10
  app?: string;
11
11
  env?: string;
12
12
  } | null;
13
- environmentList?: {
14
- name: string;
15
- tag?: string;
16
- version?: string;
17
- id: string;
18
- }[];
19
- selectedEnvironment?: {
20
- name: string;
21
- tag?: string;
22
- version?: string;
23
- id: string;
24
- };
13
+ environmentList?: Environment[];
14
+ selectedEnvironment?: Environment;
25
15
  showRestore?: boolean;
26
- handleEnvironmentChange?: (environment: {
27
- name: string;
28
- tag: string;
29
- version: string;
30
- id: string;
31
- }) => void;
16
+ handleEnvironmentChange?: (environment: Environment) => void;
32
17
  handleRestore?: () => void;
33
18
  }
34
19
  declare const ArrowDropdown: React.FC<ArrowDropdownProps>;
@@ -1,24 +1,10 @@
1
1
  import React from 'react';
2
+ import { Environment } from '../../shared/models/components/common.model';
2
3
  declare function EnvironmentSelector({ showRestore, environmentList, selectedEnvironment, handleEnvironmentChange, handleRestore }: {
3
4
  showRestore: boolean;
4
- environmentList?: {
5
- name: string;
6
- tag?: string;
7
- version?: string;
8
- id: string;
9
- }[] | [];
10
- selectedEnvironment?: {
11
- name: string;
12
- tag?: string;
13
- version?: string;
14
- id: string;
15
- };
16
- handleEnvironmentChange?: (environment: {
17
- name: string;
18
- tag: string;
19
- version: string;
20
- id: string;
21
- }) => void;
5
+ environmentList?: Environment[] | [];
6
+ selectedEnvironment?: Environment;
7
+ handleEnvironmentChange?: (environment: Environment) => void;
22
8
  handleRestore?: () => void;
23
9
  }): React.JSX.Element;
24
10
  export default EnvironmentSelector;
@@ -104,6 +104,12 @@ export interface AccountPopoverMenuItem {
104
104
  additionalClasses?: string;
105
105
  hidePopover?: boolean;
106
106
  }
107
+ export interface Environment {
108
+ environment: string;
109
+ tag?: string;
110
+ version?: string;
111
+ id: string;
112
+ }
107
113
  export interface TabNavigationProps extends AdditionalClassesProp {
108
114
  navigationData: any[];
109
115
  navItemClick?: (url?: string) => void;
@@ -115,30 +121,10 @@ export interface TabNavigationProps extends AdditionalClassesProp {
115
121
  app?: string;
116
122
  env?: string;
117
123
  } | null;
118
- environmentList?: {
119
- name: string;
120
- tag?: string;
121
- version?: string;
122
- id: string;
123
- }[];
124
- selectedEnvironment?: {
125
- name: string;
126
- tag?: string;
127
- version?: string;
128
- id: string;
129
- };
130
- currentEnvironment?: {
131
- name: string;
132
- tag?: string;
133
- version?: string;
134
- id: string;
135
- };
136
- handleEnvironmentChange?: (environment: {
137
- name: string;
138
- tag: string;
139
- version: string;
140
- id: string;
141
- }) => void;
124
+ environmentList?: Environment[];
125
+ selectedEnvironment?: Environment;
126
+ currentEnvironment?: Environment;
127
+ handleEnvironmentChange?: (environment: Environment) => void;
142
128
  }
143
129
  export interface TabNavItemProps {
144
130
  isActive: boolean;
package/dist/index.d.ts CHANGED
@@ -91,6 +91,12 @@ interface AccountPopoverMenuItem {
91
91
  additionalClasses?: string;
92
92
  hidePopover?: boolean;
93
93
  }
94
+ interface Environment {
95
+ environment: string;
96
+ tag?: string;
97
+ version?: string;
98
+ id: string;
99
+ }
94
100
  interface TabNavigationProps extends AdditionalClassesProp$1 {
95
101
  navigationData: any[];
96
102
  navItemClick?: (url?: string) => void;
@@ -102,30 +108,10 @@ interface TabNavigationProps extends AdditionalClassesProp$1 {
102
108
  app?: string;
103
109
  env?: string;
104
110
  } | null;
105
- environmentList?: {
106
- name: string;
107
- tag?: string;
108
- version?: string;
109
- id: string;
110
- }[];
111
- selectedEnvironment?: {
112
- name: string;
113
- tag?: string;
114
- version?: string;
115
- id: string;
116
- };
117
- currentEnvironment?: {
118
- name: string;
119
- tag?: string;
120
- version?: string;
121
- id: string;
122
- };
123
- handleEnvironmentChange?: (environment: {
124
- name: string;
125
- tag: string;
126
- version: string;
127
- id: string;
128
- }) => void;
111
+ environmentList?: Environment[];
112
+ selectedEnvironment?: Environment;
113
+ currentEnvironment?: Environment;
114
+ handleEnvironmentChange?: (environment: Environment) => void;
129
115
  }
130
116
  interface MessageProps {
131
117
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.13.128",
3
+ "version": "1.13.129",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",