@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.86 → 0.0.1-alpha.87

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.
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ export declare const ArrayOfObjectsToKeyValues: FC<{
4
+ data: TDynamicComponentsAppTypeMap['ArrayOfObjectsToKeyValues'];
5
+ children?: any;
6
+ }>;
@@ -0,0 +1 @@
1
+ export * from './ArrayOfObjectsToKeyValues';
@@ -0,0 +1,5 @@
1
+ export declare const unknownToString: (value: unknown) => string;
2
+ export declare const parseArrayOfAny: (value: any[]) => {
3
+ data?: Record<string, unknown>[];
4
+ error?: string;
5
+ };
@@ -22,3 +22,4 @@ export * from './NodeTerminal';
22
22
  export * from './PodLogs';
23
23
  export * from './YamlEditorSingleton';
24
24
  export * from './VisibilityContainer';
25
+ export * from './ArrayOfObjectsToKeyValues';
@@ -6,51 +6,51 @@ import { TContentCardProps, TSpacerProps } from '../../atoms';
6
6
  import { TManageableSidebarWithDataProviderProps, TEnrichedTableProviderProps } from '../../molecules';
7
7
  export type TDynamicComponentsAppTypeMap = {
8
8
  DefaultDiv: {
9
- id: number;
9
+ id: number | string;
10
10
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
11
11
  antdText: {
12
- id: number;
12
+ id: number | string;
13
13
  text: string;
14
14
  } & Omit<TextProps, 'id' | 'children'>;
15
15
  antdLink: {
16
- id: number;
16
+ id: number | string;
17
17
  text: string;
18
18
  href: string;
19
19
  } & Omit<LinkProps, 'id' | 'children' | 'href'>;
20
20
  antdCard: {
21
- id: number;
21
+ id: number | string;
22
22
  } & Omit<CardProps, 'id'>;
23
23
  antdFlex: {
24
- id: number;
24
+ id: number | string;
25
25
  } & Omit<FlexProps, 'id' | 'children'>;
26
26
  antdRow: {
27
- id: number;
27
+ id: number | string;
28
28
  } & Omit<RowProps, 'id' | 'children'>;
29
29
  antdCol: {
30
- id: number;
30
+ id: number | string;
31
31
  } & Omit<ColProps, 'id' | 'children'>;
32
32
  antdTabs: {
33
- id: number;
33
+ id: number | string;
34
34
  } & Omit<TabsProps, 'id' | 'children'>;
35
35
  antdButton: {
36
- id: number;
36
+ id: number | string;
37
37
  text: string;
38
38
  } & Omit<ButtonProps, 'id' | 'children'>;
39
39
  partsOfUrl: {
40
- id: number;
40
+ id: number | string;
41
41
  text: string;
42
42
  };
43
43
  multiQuery: {
44
- id: number;
44
+ id: number | string;
45
45
  text: string;
46
46
  };
47
47
  parsedText: {
48
- id: number;
48
+ id: number | string;
49
49
  text: string;
50
50
  style?: CSSProperties;
51
51
  };
52
52
  ProjectInfoCard: {
53
- id: number;
53
+ id: number | string;
54
54
  clusterNamePartOfUrl: string;
55
55
  namespacePartOfUrl: string;
56
56
  baseApiGroup: string;
@@ -63,7 +63,7 @@ export type TDynamicComponentsAppTypeMap = {
63
63
  baseprefix?: string;
64
64
  };
65
65
  MarketplaceCard: {
66
- id: number;
66
+ id: number | string;
67
67
  clusterNamePartOfUrl: string;
68
68
  namespacePartOfUrl: string;
69
69
  baseApiGroup: string;
@@ -74,13 +74,13 @@ export type TDynamicComponentsAppTypeMap = {
74
74
  standalone?: boolean;
75
75
  };
76
76
  ContentCard: {
77
- id: number;
77
+ id: number | string;
78
78
  } & TContentCardProps;
79
79
  Spacer: {
80
- id: number;
80
+ id: number | string;
81
81
  } & TSpacerProps;
82
82
  StatusText: {
83
- id: number;
83
+ id: number | string;
84
84
  value: string;
85
85
  criteria: 'equals' | 'notEquals';
86
86
  valueToCompare: unknown;
@@ -88,10 +88,10 @@ export type TDynamicComponentsAppTypeMap = {
88
88
  errorText: string;
89
89
  } & Omit<TextProps, 'id' | 'children'>;
90
90
  SidebarProvider: {
91
- id: number;
91
+ id: number | string;
92
92
  } & Omit<TManageableSidebarWithDataProviderProps, 'replaceValues'>;
93
93
  EnrichedTable: {
94
- id: number;
94
+ id: number | string;
95
95
  fetchUrl: string;
96
96
  pathToItems: string[];
97
97
  clusterNamePartOfUrl: string;
@@ -106,27 +106,27 @@ export type TDynamicComponentsAppTypeMap = {
106
106
  };
107
107
  } & Omit<TEnrichedTableProviderProps, 'tableMappingsReplaceValues' | 'cluster' | 'theme' | 'tableProps' | 'dataItems' | 'withoutControls'>;
108
108
  PodTerminal: {
109
- id: number;
109
+ id: number | string;
110
110
  cluster: string;
111
111
  namespace: string;
112
112
  podName: string;
113
113
  substractHeight?: number;
114
114
  };
115
115
  NodeTerminal: {
116
- id: number;
116
+ id: number | string;
117
117
  cluster: string;
118
118
  nodeName: string;
119
119
  substractHeight?: number;
120
120
  };
121
121
  PodLogs: {
122
- id: number;
122
+ id: number | string;
123
123
  cluster: string;
124
124
  namespace: string;
125
125
  podName: string;
126
126
  substractHeight?: number;
127
127
  };
128
128
  YamlEditorSingleton: {
129
- id: number;
129
+ id: number | string;
130
130
  cluster: string;
131
131
  isNameSpaced: boolean;
132
132
  type: 'builtin' | 'apis';
@@ -137,7 +137,19 @@ export type TDynamicComponentsAppTypeMap = {
137
137
  substractHeight?: number;
138
138
  };
139
139
  VisibilityContainer: {
140
- id: number;
140
+ id: number | string;
141
141
  value: string;
142
142
  };
143
+ ArrayOfObjectsToKeyValues: {
144
+ id: number | string;
145
+ reqIndex: string;
146
+ jsonPathToArray: string;
147
+ keyFieldName: string;
148
+ valueFieldName: string;
149
+ separator?: string;
150
+ containerStyle?: CSSProperties;
151
+ rowStyle?: CSSProperties;
152
+ keyFieldStyle?: CSSProperties;
153
+ valueFieldStyle?: CSSProperties;
154
+ };
143
155
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "0.0.1-alpha.86",
3
+ "version": "0.0.1-alpha.87",
4
4
  "description": "ProRobotech OpenAPI k8s tools",
5
5
  "main": "dist/openapi-k8s-toolkit.cjs.js",
6
6
  "module": "dist/openapi-k8s-toolkit.es.js",