@odigos/ui-kit 0.0.7 → 0.0.9
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.
- package/CHANGELOG.md +34 -0
- package/lib/components/data-card/index.d.ts +1 -0
- package/lib/components/dropdown/dropdown.stories.d.ts +3 -2
- package/lib/components/error-boundary/error-boundary.stories.d.ts +9 -0
- package/lib/components/error-boundary/index.d.ts +5 -0
- package/lib/components/icon-title-badge/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components.js +161 -10
- package/lib/constants.js +3 -3
- package/lib/containers/compute-platform-select/index.d.ts +4 -4
- package/lib/containers/compute-platforms/index.d.ts +3 -3
- package/lib/containers/compute-platforms-actions-menu/index.d.ts +2 -2
- package/lib/containers/data-flow/nodes/header-node.d.ts +2 -1
- package/lib/containers/dropdowns/connection-status-dropdown/index.d.ts +2 -2
- package/lib/containers/dropdowns/connection-type-dropdown/connection-type-dropdown.stories.d.ts +9 -0
- package/lib/containers/dropdowns/{platform-types-dropdown → connection-type-dropdown}/index.d.ts +5 -5
- package/lib/containers/dropdowns/index.d.ts +1 -1
- package/lib/containers.js +74 -67
- package/lib/data/sources/index.d.ts +1 -0
- package/lib/functions/get-containers-icons/index.d.ts +2 -2
- package/lib/functions/get-platform-icon/index.d.ts +1 -1
- package/lib/functions/get-platform-label/index.d.ts +1 -1
- package/lib/functions/get-programming-language-icon/index.d.ts +2 -2
- package/lib/functions.js +6 -6
- package/lib/hooks/useCopy.d.ts +1 -1
- package/lib/hooks.js +5 -5
- package/lib/icons/common/image-error-icon/image-error-icon.stories.d.ts +8 -0
- package/lib/icons/common/image-error-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/overview/connections-icon/connections-icon.stories.d.ts +8 -0
- package/lib/icons/overview/connections-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/programming-languages/c-plus-plus-logo/c-plus-plus-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/c-plus-plus-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/c-sharp-logo/c-sharp-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/c-sharp-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/dotnet-logo/dotnet-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/dotnet-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/elixir-logo/elixir-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/elixir-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/go-logo/go-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/go-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/index.d.ts +17 -0
- package/lib/icons/programming-languages/java-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/java-logo/java-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/kafka-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/kafka-logo/kafka-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/mysql-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/mysql-logo/mysql-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/nginx-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/nginx-logo/nginx-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/nodejs-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/nodejs-logo/nodejs-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/php-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/php-logo/php-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/postgres-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/postgres-logo/postgres-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/python-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/python-logo/python-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/redis-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/redis-logo/redis-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/ruby-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/ruby-logo/ruby-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/rust-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/rust-logo/rust-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/swift-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/swift-logo/swift-logo.stories.d.ts +8 -0
- package/lib/icons.js +11 -4
- package/lib/{index-4tCBQ2pl.js → index-Bc8gi9FH.js} +24 -26
- package/lib/{index-BhCi-TxF.js → index-BumPE6cF.js} +1 -1
- package/lib/{index-Byh3BO6S.js → index-CZe2VX28.js} +2 -2
- package/lib/{index-DRT_7tQl.js → index-DIcomki-.js} +12 -0
- package/lib/{index-BJxaoI0G.js → index-D_Qn2U89.js} +8 -1
- package/lib/{index-DUW6bkzG.js → index-g6Twdelv.js} +7 -3
- package/lib/index-ixs381n-.js +466 -0
- package/lib/{index-COMxdOJo.js → index-m62aT4IR.js} +28 -28
- package/lib/store/useEntityStore.d.ts +1 -0
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/{compute-platform → connection}/index.d.ts +3 -3
- package/lib/types/index.d.ts +1 -1
- package/lib/{useSourceSelectionFormData-ClorQ_WP.js → useSourceSelectionFormData-BY6B70Kf.js} +5 -4
- package/lib/{useTransition-5w3VnEhL.js → useTransition-Dfxjcy-C.js} +25 -4
- package/package.json +4 -1
- package/lib/containers/dropdowns/platform-types-dropdown/platform-types-dropdown.stories.d.ts +0 -9
- package/lib/index-DLKEpJJm.js +0 -53
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.9](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.8...ui-kit-v0.0.9) (2025-03-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add icon for connections ([#23](https://github.com/odigos-io/ui-kit/issues/23)) ([6f28052](https://github.com/odigos-io/ui-kit/commit/6f2805265b6b9dfbaf482decff87fb613bc5c15d))
|
|
9
|
+
* use source logos from SVG imports, not URL fetched ([#22](https://github.com/odigos-io/ui-kit/issues/22)) ([c37b564](https://github.com/odigos-io/ui-kit/commit/c37b564810e8cfb38d1cbd7fa4b4a31979149218))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* click area in data-card with expand ([#19](https://github.com/odigos-io/ui-kit/issues/19)) ([a2c661f](https://github.com/odigos-io/ui-kit/commit/a2c661f0d7798328e949bbfd5fa175284a33bc69))
|
|
15
|
+
* controlled-image fallback icon ([#21](https://github.com/odigos-io/ui-kit/issues/21)) ([cb15639](https://github.com/odigos-io/ui-kit/commit/cb15639311588d358b17fc75bb803f222d7f1bc6))
|
|
16
|
+
* no-data for describe source pods ([#20](https://github.com/odigos-io/ui-kit/issues/20)) ([65aa7cb](https://github.com/odigos-io/ui-kit/commit/65aa7cb4f068868cefdf8e9af81cd2424c61b5dc))
|
|
17
|
+
|
|
18
|
+
## [0.0.8](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.7...ui-kit-v0.0.8) (2025-03-16)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add error-boundary ([#13](https://github.com/odigos-io/ui-kit/issues/13)) ([8e8e7c8](https://github.com/odigos-io/ui-kit/commit/8e8e7c813a72da550f9d312bfb9f032c391e0aa9))
|
|
24
|
+
* add tooltip to filtered-count ([#16](https://github.com/odigos-io/ui-kit/issues/16)) ([9b7af73](https://github.com/odigos-io/ui-kit/commit/9b7af731cd73e9348dba1ed72ab2b34de28e102b))
|
|
25
|
+
* handle reset inside entity store ([#11](https://github.com/odigos-io/ui-kit/issues/11)) ([09ab02e](https://github.com/odigos-io/ui-kit/commit/09ab02e69d5534c15b0b0e9fa63f6d188c1b9da6))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* cannot read "writeText" of undefined ([#18](https://github.com/odigos-io/ui-kit/issues/18)) ([1382940](https://github.com/odigos-io/ui-kit/commit/13829401d5afdf2b51e2a597a52590ecfa3e7e7c))
|
|
31
|
+
* copy CLI command text overflowed ([#17](https://github.com/odigos-io/ui-kit/issues/17)) ([96a0d67](https://github.com/odigos-io/ui-kit/commit/96a0d67fbfec883739c1335a2b47dd797f69c98d))
|
|
32
|
+
* dropdown multi-option click area ([#9](https://github.com/odigos-io/ui-kit/issues/9)) ([43fb125](https://github.com/odigos-io/ui-kit/commit/43fb125cb3dd4c6dc53c8984917061fb51f7b9ea))
|
|
33
|
+
* icon size for CP select ([#8](https://github.com/odigos-io/ui-kit/issues/8)) ([d316e8b](https://github.com/odigos-io/ui-kit/commit/d316e8bdda5a75275e690e1bd4dbe15381a471fa))
|
|
34
|
+
* numberOfInstances in source selection ([#15](https://github.com/odigos-io/ui-kit/issues/15)) ([9b41658](https://github.com/odigos-io/ui-kit/commit/9b416583079839094a76c9be1992ab0b730fe81a))
|
|
35
|
+
* side-nav click area, and bigger icons ([#10](https://github.com/odigos-io/ui-kit/issues/10)) ([63b741a](https://github.com/odigos-io/ui-kit/commit/63b741abe28d8b8d9881109ce9459a4be9dd1215))
|
|
36
|
+
|
|
3
37
|
## [0.0.7](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.6...ui-kit-v0.0.7) (2025-03-13)
|
|
4
38
|
|
|
5
39
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
3
|
import { type DropdownProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: React.FC<DropdownProps>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
|
-
export declare const Default:
|
|
9
|
+
export declare const Default: StoryObj<DropdownProps>;
|
|
10
|
+
export declare const Multi: StoryObj<DropdownProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
|
3
|
+
import { type ErrorBoundaryProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<ErrorBoundaryProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<ErrorBoundaryProps>;
|
|
@@ -12,6 +12,7 @@ export * from './divider/index';
|
|
|
12
12
|
export * from './docs-button/index';
|
|
13
13
|
export * from './drawer/index';
|
|
14
14
|
export * from './dropdown/index';
|
|
15
|
+
export * from './error-boundary/index';
|
|
15
16
|
export * from './extend-arrow/index';
|
|
16
17
|
export * from './fade-loader/index';
|
|
17
18
|
export * from './field-error/index';
|
package/lib/components.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { B as Button } from './index-m62aT4IR.js';
|
|
2
|
+
export { A as AutocompleteInput, a as Badge, C as CancelWarning, a0 as CenterThis, b as Checkbox, c as Code, d as ConditionDetails, f as DATA_CARD_FIELD_TYPES, D as DataCard, e as DataCardFields, g as DataTab, h as DeleteWarning, i as Divider, j as DocsButton, k as Drawer, m as DrawerFooter, l as DrawerHeader, n as Dropdown, E as ExtendArrow, F as FadeLoader, o as FieldError, p as FieldLabel, $ as FlexColumn, _ as FlexRow, H as Header, I as IconButton, q as IconGroup, r as IconTitleBadge, s as IconWrapped, t as IconsNav, u as ImageControlled, v as Input, w as InputList, x as InputTable, y as InteractiveTable, K as KeyValueInputsList, M as Modal, a2 as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, a1 as Overlay, S as SectionTitle, O as Segment, P as SkeletonLoader, Q as Status, R as Stepper, U as Text, V as TextArea, W as Toggle, T as ToggleCodeComponent, X as Tooltip, Y as TraceLoader, Z as WarningModal } from './index-m62aT4IR.js';
|
|
3
|
+
import React, { Component, createElement, createContext } from 'react';
|
|
4
|
+
import Theme from './theme.js';
|
|
3
5
|
import './types.js';
|
|
4
|
-
import './index-
|
|
6
|
+
import './index-DIcomki-.js';
|
|
5
7
|
import 'styled-components';
|
|
6
|
-
import './
|
|
7
|
-
import './index-4tCBQ2pl.js';
|
|
8
|
-
import './index-DLKEpJJm.js';
|
|
8
|
+
import './index-Bc8gi9FH.js';
|
|
9
9
|
import './index-BGlk5VhF.js';
|
|
10
|
+
import './index-ixs381n-.js';
|
|
10
11
|
import './index-BZS1ijMm.js';
|
|
11
|
-
import './index-
|
|
12
|
-
import './index-
|
|
13
|
-
import './index-
|
|
14
|
-
import './useTransition-
|
|
12
|
+
import './index-D_Qn2U89.js';
|
|
13
|
+
import './index-CZe2VX28.js';
|
|
14
|
+
import './index-BumPE6cF.js';
|
|
15
|
+
import './useTransition-Dfxjcy-C.js';
|
|
15
16
|
import 'react-dom';
|
|
16
17
|
import 'babel-runtime/helpers/extends';
|
|
17
18
|
import 'babel-runtime/core-js/object/get-prototype-of';
|
|
@@ -20,3 +21,153 @@ import 'babel-runtime/helpers/createClass';
|
|
|
20
21
|
import 'babel-runtime/helpers/possibleConstructorReturn';
|
|
21
22
|
import 'babel-runtime/helpers/inherits';
|
|
22
23
|
import 'object-assign';
|
|
24
|
+
|
|
25
|
+
const ErrorBoundaryContext = createContext(null);
|
|
26
|
+
|
|
27
|
+
const initialState = {
|
|
28
|
+
didCatch: false,
|
|
29
|
+
error: null
|
|
30
|
+
};
|
|
31
|
+
let ErrorBoundary$1 = class ErrorBoundary extends Component {
|
|
32
|
+
constructor(props) {
|
|
33
|
+
super(props);
|
|
34
|
+
this.resetErrorBoundary = this.resetErrorBoundary.bind(this);
|
|
35
|
+
this.state = initialState;
|
|
36
|
+
}
|
|
37
|
+
static getDerivedStateFromError(error) {
|
|
38
|
+
return {
|
|
39
|
+
didCatch: true,
|
|
40
|
+
error
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
resetErrorBoundary() {
|
|
44
|
+
const {
|
|
45
|
+
error
|
|
46
|
+
} = this.state;
|
|
47
|
+
if (error !== null) {
|
|
48
|
+
var _this$props$onReset, _this$props;
|
|
49
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
50
|
+
args[_key] = arguments[_key];
|
|
51
|
+
}
|
|
52
|
+
(_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 ? void 0 : _this$props$onReset.call(_this$props, {
|
|
53
|
+
args,
|
|
54
|
+
reason: "imperative-api"
|
|
55
|
+
});
|
|
56
|
+
this.setState(initialState);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
componentDidCatch(error, info) {
|
|
60
|
+
var _this$props$onError, _this$props2;
|
|
61
|
+
(_this$props$onError = (_this$props2 = this.props).onError) === null || _this$props$onError === void 0 ? void 0 : _this$props$onError.call(_this$props2, error, info);
|
|
62
|
+
}
|
|
63
|
+
componentDidUpdate(prevProps, prevState) {
|
|
64
|
+
const {
|
|
65
|
+
didCatch
|
|
66
|
+
} = this.state;
|
|
67
|
+
const {
|
|
68
|
+
resetKeys
|
|
69
|
+
} = this.props;
|
|
70
|
+
|
|
71
|
+
// There's an edge case where if the thing that triggered the error happens to *also* be in the resetKeys array,
|
|
72
|
+
// we'd end up resetting the error boundary immediately.
|
|
73
|
+
// This would likely trigger a second error to be thrown.
|
|
74
|
+
// So we make sure that we don't check the resetKeys on the first call of cDU after the error is set.
|
|
75
|
+
|
|
76
|
+
if (didCatch && prevState.error !== null && hasArrayChanged(prevProps.resetKeys, resetKeys)) {
|
|
77
|
+
var _this$props$onReset2, _this$props3;
|
|
78
|
+
(_this$props$onReset2 = (_this$props3 = this.props).onReset) === null || _this$props$onReset2 === void 0 ? void 0 : _this$props$onReset2.call(_this$props3, {
|
|
79
|
+
next: resetKeys,
|
|
80
|
+
prev: prevProps.resetKeys,
|
|
81
|
+
reason: "keys"
|
|
82
|
+
});
|
|
83
|
+
this.setState(initialState);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
const {
|
|
88
|
+
children,
|
|
89
|
+
fallbackRender,
|
|
90
|
+
FallbackComponent,
|
|
91
|
+
fallback
|
|
92
|
+
} = this.props;
|
|
93
|
+
const {
|
|
94
|
+
didCatch,
|
|
95
|
+
error
|
|
96
|
+
} = this.state;
|
|
97
|
+
let childToRender = children;
|
|
98
|
+
if (didCatch) {
|
|
99
|
+
const props = {
|
|
100
|
+
error,
|
|
101
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
102
|
+
};
|
|
103
|
+
if (typeof fallbackRender === "function") {
|
|
104
|
+
childToRender = fallbackRender(props);
|
|
105
|
+
} else if (FallbackComponent) {
|
|
106
|
+
childToRender = createElement(FallbackComponent, props);
|
|
107
|
+
} else if (fallback !== undefined) {
|
|
108
|
+
childToRender = fallback;
|
|
109
|
+
} else {
|
|
110
|
+
throw error;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return createElement(ErrorBoundaryContext.Provider, {
|
|
114
|
+
value: {
|
|
115
|
+
didCatch,
|
|
116
|
+
error,
|
|
117
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
118
|
+
}
|
|
119
|
+
}, childToRender);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
function hasArrayChanged() {
|
|
123
|
+
let a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
124
|
+
let b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
125
|
+
return a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const ErrorFallback = ({ error }) => {
|
|
129
|
+
const theme = Theme.useTheme();
|
|
130
|
+
const styles = {
|
|
131
|
+
container: {
|
|
132
|
+
display: 'flex',
|
|
133
|
+
flexDirection: 'column',
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
textAlign: 'center',
|
|
136
|
+
color: theme.text.error,
|
|
137
|
+
fontFamily: theme.font_family.primary,
|
|
138
|
+
},
|
|
139
|
+
errorMessage: {
|
|
140
|
+
padding: 10,
|
|
141
|
+
borderRadius: 5,
|
|
142
|
+
whiteSpace: 'pre-wrap',
|
|
143
|
+
background: theme.colors.error,
|
|
144
|
+
},
|
|
145
|
+
errorStack: {
|
|
146
|
+
whiteSpace: 'pre-wrap',
|
|
147
|
+
fontSize: '12px',
|
|
148
|
+
},
|
|
149
|
+
errorStackWrapper: {
|
|
150
|
+
textAlign: 'left',
|
|
151
|
+
marginTop: 10,
|
|
152
|
+
},
|
|
153
|
+
infoText: {
|
|
154
|
+
marginTop: 100,
|
|
155
|
+
color: theme.text.secondary,
|
|
156
|
+
fontSize: '14px',
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
return (React.createElement("div", { style: styles.container },
|
|
160
|
+
React.createElement("h2", null, "Something went wrong!"),
|
|
161
|
+
React.createElement("pre", { style: styles.errorMessage }, error?.message || 'Unknown Error'),
|
|
162
|
+
React.createElement("details", { style: styles.errorStackWrapper },
|
|
163
|
+
React.createElement("summary", null, "Stack Trace"),
|
|
164
|
+
React.createElement("pre", { style: styles.errorStack }, error?.stack || 'Unknown Stack')),
|
|
165
|
+
React.createElement("p", { style: styles.infoText }, "Try refreshing the page or contact support"),
|
|
166
|
+
React.createElement(Button, { variant: 'secondary', onClick: () => window.location.reload(), style: { fontSize: '1rem' } }, "Reload")));
|
|
167
|
+
};
|
|
168
|
+
const ErrorBoundary = ({ children }) => {
|
|
169
|
+
return (React.createElement(ErrorBoundary$1, { FallbackComponent: (props) => (React.createElement(Theme.Provider, null,
|
|
170
|
+
React.createElement(ErrorFallback, { ...props }))) }, children));
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export { Button, ErrorBoundary };
|
package/lib/constants.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-
|
|
1
|
+
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-CZe2VX28.js';
|
|
2
2
|
export { D as DISPLAY_TITLES, F as FORM_ALERTS } from './index-Cu2uHOuh.js';
|
|
3
3
|
import './types.js';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-BumPE6cF.js';
|
|
5
5
|
import './index-BGlk5VhF.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import './theme.js';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-DIcomki-.js';
|
|
9
9
|
import 'styled-components';
|
|
10
10
|
|
|
11
11
|
const TOKEN_ABOUT_TO_EXPIRE = 604800000; // 7 days in milliseconds
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Connection } from '@/types';
|
|
3
3
|
interface ComputePlatformSelectProps {
|
|
4
|
-
|
|
5
|
-
selected?:
|
|
6
|
-
onSelect: (payload:
|
|
4
|
+
connections: Connection[];
|
|
5
|
+
selected?: Connection;
|
|
6
|
+
onSelect: (payload: Connection) => void;
|
|
7
7
|
onViewAll: () => void;
|
|
8
8
|
}
|
|
9
9
|
declare const ComputePlatformSelect: React.FC<ComputePlatformSelectProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Connection } from '@/types';
|
|
3
3
|
interface ComputePlatformsProps {
|
|
4
|
-
|
|
5
|
-
onSelect: (payload:
|
|
4
|
+
connections: Connection[];
|
|
5
|
+
onSelect: (payload: Connection) => void;
|
|
6
6
|
}
|
|
7
7
|
declare const ComputePlatforms: FC<ComputePlatformsProps>;
|
|
8
8
|
export { ComputePlatforms, type ComputePlatformsProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Connection } from '@/types';
|
|
3
3
|
interface ComputePlatformsActionsMenuProps {
|
|
4
|
-
|
|
4
|
+
connections: Connection[];
|
|
5
5
|
}
|
|
6
6
|
declare const ComputePlatformsActionsMenu: FC<ComputePlatformsActionsMenuProps>;
|
|
7
7
|
export { ComputePlatformsActionsMenu, type ComputePlatformsActionsMenuProps };
|
|
@@ -5,7 +5,8 @@ export interface HeaderNodeProps extends NodeProps<Node<{
|
|
|
5
5
|
nodeWidth: number;
|
|
6
6
|
icon: SVG;
|
|
7
7
|
title: string;
|
|
8
|
-
|
|
8
|
+
badge: string | number;
|
|
9
|
+
badgeTooltip?: string;
|
|
9
10
|
isFetching?: boolean;
|
|
10
11
|
sources?: Source[];
|
|
11
12
|
}, NODE_TYPES.HEADER>> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Connection } from '@/types';
|
|
3
3
|
import { type DropdownProps } from '@/components';
|
|
4
4
|
interface ConnectionStatusDropdownProps {
|
|
5
|
-
|
|
5
|
+
connections: Connection[];
|
|
6
6
|
title?: string;
|
|
7
7
|
value?: DropdownProps['options'];
|
|
8
8
|
onSelect: (val: DropdownProps['options'][0]) => void;
|
package/lib/containers/dropdowns/connection-type-dropdown/connection-type-dropdown.stories.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
|
3
|
+
import { type ConnectionTypeDropdownProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<ConnectionTypeDropdownProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<ConnectionTypeDropdownProps>;
|
package/lib/containers/dropdowns/{platform-types-dropdown → connection-type-dropdown}/index.d.ts
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Connection } from '@/types';
|
|
3
3
|
import { type DropdownProps } from '@/components';
|
|
4
|
-
interface
|
|
5
|
-
|
|
4
|
+
interface ConnectionTypeDropdownProps {
|
|
5
|
+
connections: Connection[];
|
|
6
6
|
title?: string;
|
|
7
7
|
value?: DropdownProps['options'];
|
|
8
8
|
onSelect: (val: DropdownProps['options'][0]) => void;
|
|
@@ -11,5 +11,5 @@ interface PlatformTypesDropdownProps {
|
|
|
11
11
|
required?: boolean;
|
|
12
12
|
showSearch?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
15
|
-
export {
|
|
14
|
+
declare const ConnectionTypeDropdown: FC<ConnectionTypeDropdownProps>;
|
|
15
|
+
export { ConnectionTypeDropdown, type ConnectionTypeDropdownProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './connection-status-dropdown/index';
|
|
2
|
+
export * from './connection-type-dropdown/index';
|
|
2
3
|
export * from './error-dropdown/index';
|
|
3
4
|
export * from './language-dropdown/index';
|
|
4
5
|
export * from './monitor-dropdown/index';
|
|
5
6
|
export * from './namespace-dropdown/index';
|
|
6
|
-
export * from './platform-types-dropdown/index';
|
|
7
7
|
export * from './kind-dropdown/index';
|