@odigos/ui-kit 0.0.48 → 0.0.50
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 +20 -0
- package/eslint.config.mjs +16 -2
- package/lib/components/data-card/data-card-fields/index.d.ts +3 -6
- package/lib/components/data-card/data-card.stories.d.ts +4 -4
- package/lib/components/data-finger/data-finger.stories.d.ts +9 -0
- package/lib/components/data-finger/index.d.ts +12 -0
- package/lib/components/error-boundary/error-boundary.stories.d.ts +3 -1
- package/lib/components/error-boundary/index.d.ts +1 -2
- package/lib/components/field-error/field-error.stories.d.ts +3 -1
- package/lib/components/field-error/index.d.ts +1 -2
- package/lib/components/icon-button/index.d.ts +2 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/popup/index.d.ts +17 -0
- package/lib/components/popup/popup.stories.d.ts +9 -0
- package/lib/components/popup-form/index.d.ts +18 -0
- package/lib/components/popup-form/popup-form.stories.d.ts +10 -0
- package/lib/components/segment/index.d.ts +8 -7
- package/lib/components/styled.d.ts +5 -1
- package/lib/components/tag/index.d.ts +8 -0
- package/lib/components/tag/tag.stories.d.ts +13 -0
- package/lib/components.js +9 -9
- package/lib/constants.js +1 -1
- package/lib/containers/await-pipeline/await-pipeline.stories.d.ts +1 -1
- package/lib/containers/await-pipeline/index.d.ts +1 -2
- package/lib/containers/data-flow-actions-menu/add-entity/index.d.ts +2 -3
- package/lib/containers/data-flow-actions-menu/filters/index.d.ts +2 -3
- package/lib/containers/data-flow-actions-menu/search/index.d.ts +2 -3
- package/lib/containers/data-stream-modal/data-stream-modal.stories.d.ts +2 -2
- package/lib/containers/data-stream-modal/index.d.ts +1 -2
- package/lib/containers/index.d.ts +1 -0
- package/lib/containers/notification-manager/index.d.ts +1 -2
- package/lib/containers/notification-manager/notification-manager.stories.d.ts +1 -1
- package/lib/containers/service-map/helpers/build-edges.d.ts +10 -0
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +11 -0
- package/lib/containers/service-map/helpers/generate-dag-positions.d.ts +5 -0
- package/lib/containers/service-map/helpers/generate-spiral-grid-position.d.ts +2 -0
- package/lib/containers/service-map/index.d.ts +8 -0
- package/lib/containers/service-map/service-map.stories.d.ts +9 -0
- package/lib/containers/slack-invite/index.d.ts +1 -2
- package/lib/containers/slack-invite/slack-invite.stories.d.ts +1 -1
- package/lib/containers/system-overview/describe/index.d.ts +1 -1
- package/lib/containers/toast-list/index.d.ts +1 -2
- package/lib/containers/toast-list/toast-list.stories.d.ts +1 -1
- package/lib/containers/toggle-dark-mode/index.d.ts +1 -2
- package/lib/containers/toggle-dark-mode/toggle-dark-mode.stories.d.ts +1 -1
- package/lib/containers.js +468 -12672
- package/lib/functions/clean-object-empty-strings-values/index.d.ts +2 -1
- package/lib/functions/compare-condition/index.d.ts +1 -1
- package/lib/functions/flatten-object-keys/index.d.ts +2 -1
- package/lib/functions/get-entity-id/index.d.ts +2 -2
- package/lib/functions/get-entity-label/index.d.ts +2 -2
- package/lib/functions/has-unhealthy-instances/index.d.ts +2 -0
- package/lib/functions/index.d.ts +2 -0
- package/lib/functions/map-destination-fields-for-display/index.d.ts +1 -1
- package/lib/functions/remove-empty-values-from-object/index.d.ts +2 -1
- package/lib/functions/safe-json-parse/index.d.ts +2 -1
- package/lib/functions/safe-json-stringify/index.d.ts +2 -1
- package/lib/functions/stringify-non-string-values/index.d.ts +2 -1
- package/lib/functions.js +35 -9
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useGenericForm.d.ts +2 -1
- package/lib/hooks/useInstrumentationRuleFormData.d.ts +1 -4
- package/lib/hooks/usePopup.d.ts +17 -0
- package/lib/hooks/useSessionStorage.d.ts +2 -2
- package/lib/hooks/useSourceFormData.d.ts +1 -4
- package/lib/hooks.js +4 -4
- package/lib/icons/common/avatar-icon/avatar-icon.stories.d.ts +8 -0
- package/lib/icons/common/avatar-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +3 -0
- package/lib/icons/common/user-group-icon/index.d.ts +2 -0
- package/lib/icons/common/user-group-icon/user-group-icon.stories.d.ts +8 -0
- package/lib/icons/common/user-icon/index.d.ts +2 -0
- package/lib/icons/common/user-icon/user-icon.stories.d.ts +8 -0
- package/lib/icons/math/index.d.ts +2 -0
- package/lib/icons/math/minus-circled-icon/index.d.ts +2 -0
- package/lib/icons/math/minus-circled-icon/minus-circled-icon.stories.d.ts +8 -0
- package/lib/icons/math/plus-circled-icon/index.d.ts +2 -0
- package/lib/icons/math/plus-circled-icon/plus-circled-icon.stories.d.ts +8 -0
- package/lib/icons.js +35 -7
- package/lib/{index-Bw7RE2T2.js → index-BC03UmY5.js} +8 -1
- package/lib/{index-BV85P9UP.js → index-BnvrwbRB.js} +4 -0
- package/lib/{index-ZTzxu5fz.js → index-CMsBAVAn.js} +2 -2
- package/lib/{index-D_SG1Qp0.js → index-CPMIZB66.js} +19 -9
- package/lib/{index-DXBePB-r.js → index-CgdNGqvh.js} +12871 -441
- package/lib/{index-CkTdd3MS.js → index-CyHOJpMl.js} +1 -1
- package/lib/{index-CrXEzEGw.js → index-Dbs7YARA.js} +3 -3
- package/lib/{index-DHHUJe_a.js → index-DnhO-nLH.js} +2 -2
- package/lib/{index-DxR7e2Cq.js → index-H8TwBQHm.js} +1 -1
- package/lib/{index-BIYXaOIt.js → index-LgzkJ05H.js} +10 -2
- package/lib/{index-BWIOWlkS.js → index-r72g3gV5.js} +4 -4
- package/lib/mock-data/index.d.ts +1 -0
- package/lib/mock-data/service-map/index.d.ts +2 -0
- package/lib/snippets/copy-text/index.d.ts +6 -0
- package/lib/snippets/index.d.ts +6 -2
- package/lib/snippets/pod-container/index.d.ts +5 -0
- package/lib/{containers/data-flow → snippets/react-flow}/edges/labeled-edge.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/flow.d.ts +2 -0
- package/lib/snippets/react-flow/index.d.ts +13 -0
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/add-node.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/base-node.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/edged-node.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/frame-node.d.ts +4 -4
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/header-node.d.ts +4 -4
- package/lib/snippets/react-flow/nodes/map-item-node.d.ts +12 -0
- package/lib/snippets/react-flow/nodes/no-data-node.d.ts +9 -0
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/scroll-node.d.ts +4 -4
- package/lib/snippets/react-flow/nodes/skeleton-node.d.ts +8 -0
- package/lib/snippets/source-container/index.d.ts +7 -0
- package/lib/snippets.js +8 -8
- package/lib/store/index.d.ts +1 -0
- package/lib/store/useActiveNodeStore.d.ts +11 -0
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/data-flow/index.d.ts +3 -1
- package/lib/types/describe/index.d.ts +3 -3
- package/lib/types/index.d.ts +1 -0
- package/lib/types/service-map/index.d.ts +10 -0
- package/lib/types/sources/index.d.ts +10 -9
- package/lib/types.js +2 -0
- package/lib/{useSourceSelectionFormData-BP-O55O3.js → useSourceSelectionFormData-CwggurLH.js} +13 -48
- package/lib/{useTransition-DanOnTji.js → useTransition-DmHfJSEP.js} +75 -9
- package/package.json +3 -2
- package/lib/containers/data-flow/nodes/skeleton-node.d.ts +0 -8
- package/lib/containers/data-flow-actions-menu/search/recent-searches/index.d.ts +0 -2
- /package/lib/{containers/data-flow/helpers/get-main-container-language.d.ts → functions/get-main-container-language/index.d.ts} +0 -0
- /package/lib/{containers/data-flow/helpers → snippets/react-flow}/node-config.d.ts +0 -0
- /package/lib/{components/data-card/data-card-fields → snippets/source-container}/override-runtime.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.50](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.49...ui-kit-v0.0.50) (2025-07-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add AvatarIcon & UserGroupIcon, update UserIcon ([#214](https://github.com/odigos-io/ui-kit/issues/214)) ([755e660](https://github.com/odigos-io/ui-kit/commit/755e6601cfa90a8fd8ca9cedddcb33d88883b86d))
|
|
9
|
+
* add DataFinger component ([#212](https://github.com/odigos-io/ui-kit/issues/212)) ([d0f328d](https://github.com/odigos-io/ui-kit/commit/d0f328dd486b0ac0437b1921d88482ddc622c77d))
|
|
10
|
+
* add Tag component ([#213](https://github.com/odigos-io/ui-kit/issues/213)) ([700031e](https://github.com/odigos-io/ui-kit/commit/700031ef09c824377c6f31d5fc207244cb51952b))
|
|
11
|
+
* refactor DataCardFields ([#211](https://github.com/odigos-io/ui-kit/issues/211)) ([9f446b3](https://github.com/odigos-io/ui-kit/commit/9f446b36dac4e008c79eba4ee2177f44b2743fef))
|
|
12
|
+
* refactor popups to be re-used ([#215](https://github.com/odigos-io/ui-kit/issues/215)) ([18e671e](https://github.com/odigos-io/ui-kit/commit/18e671e73b999f35e0ee4fc9e189a0194dcfde01))
|
|
13
|
+
* service map edits ([#216](https://github.com/odigos-io/ui-kit/issues/216)) ([eaa1526](https://github.com/odigos-io/ui-kit/commit/eaa15269ffb562e70ab8e6156c395187f1e121a8))
|
|
14
|
+
|
|
15
|
+
## [0.0.49](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.48...ui-kit-v0.0.49) (2025-07-01)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add ESLint workflow for pull requests ([#206](https://github.com/odigos-io/ui-kit/issues/206)) ([17e5036](https://github.com/odigos-io/ui-kit/commit/17e50361890a251748115326b0f3e63bda924b6d))
|
|
21
|
+
* service map ([#207](https://github.com/odigos-io/ui-kit/issues/207)) ([24637e0](https://github.com/odigos-io/ui-kit/commit/24637e01d75af8221b6fe20fde192ce55c072687))
|
|
22
|
+
|
|
3
23
|
## [0.0.48](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.47...ui-kit-v0.0.48) (2025-06-26)
|
|
4
24
|
|
|
5
25
|
|
package/eslint.config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
|
|
2
|
-
import storybook from
|
|
2
|
+
import storybook from 'eslint-plugin-storybook';
|
|
3
3
|
|
|
4
4
|
import { dirname } from 'path';
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
@@ -15,6 +15,20 @@ const compat = new FlatCompat({
|
|
|
15
15
|
const extensions = compat.extends('next/core-web-vitals', 'next/typescript');
|
|
16
16
|
const config = compat.config({});
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// Custom rule to allow unused variables that start with underscore
|
|
19
|
+
const customRules = {
|
|
20
|
+
rules: {
|
|
21
|
+
'@typescript-eslint/no-unused-vars': [
|
|
22
|
+
'error',
|
|
23
|
+
{
|
|
24
|
+
argsIgnorePattern: '^_',
|
|
25
|
+
varsIgnorePattern: '^_',
|
|
26
|
+
caughtErrorsIgnorePattern: '^_',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const eslintConfig = [...extensions, ...config, ...storybook.configs['flat/recommended'], customRules];
|
|
19
33
|
|
|
20
34
|
export default eslintConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
+
import { AnyObj } from '@/types';
|
|
2
3
|
declare enum DataCardFieldTypes {
|
|
3
4
|
Code = "code",
|
|
4
5
|
Table = "table",
|
|
@@ -7,17 +8,13 @@ declare enum DataCardFieldTypes {
|
|
|
7
8
|
Divider = "divider",
|
|
8
9
|
Monitors = "monitors",
|
|
9
10
|
CopyText = "copy-text",
|
|
10
|
-
|
|
11
|
-
ActiveStatus = "active-status",
|
|
12
|
-
PodContainer = "pod-container",
|
|
13
|
-
SourceContainer = "source-container"
|
|
11
|
+
ActiveStatus = "active-status"
|
|
14
12
|
}
|
|
15
13
|
interface DataCardField {
|
|
16
14
|
type?: DataCardFieldTypes;
|
|
17
15
|
title?: string;
|
|
18
16
|
tooltip?: string;
|
|
19
|
-
value?: string |
|
|
20
|
-
callback?: (payload: any) => void | Promise<void>;
|
|
17
|
+
value?: string | AnyObj;
|
|
21
18
|
}
|
|
22
19
|
interface DataCardFieldsProps {
|
|
23
20
|
data?: DataCardField[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StoryObj } from '@storybook/react-webpack5';
|
|
3
2
|
import { type DataCardProps } from '.';
|
|
3
|
+
import { StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: React.FC<DataCardProps>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
9
|
+
export declare const MixedCard: StoryObj<DataCardProps>;
|
|
10
|
+
export declare const SourceContainers: StoryObj<DataCardProps>;
|
|
11
|
+
export declare const SourceDescribe: StoryObj<DataCardProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DataFingerProps } from '.';
|
|
3
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<DataFingerProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryObj<DataFingerProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
import type { SVG } from '@/types';
|
|
3
|
+
interface DataFingerProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
subTitle?: string;
|
|
6
|
+
icons?: SVG[];
|
|
7
|
+
iconSrcs?: string[];
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
renderActions?: () => ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const DataFinger: FC<DataFingerProps>;
|
|
12
|
+
export { DataFinger, type DataFingerProps };
|
|
@@ -3,7 +3,9 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type ErrorBoundaryProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<{
|
|
7
|
+
children?: React.ReactNode | undefined;
|
|
8
|
+
}>;
|
|
7
9
|
};
|
|
8
10
|
export default _default;
|
|
9
11
|
export declare const Default: StoryFn<ErrorBoundaryProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type FC, type PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
type ErrorBoundaryProps = PropsWithChildren;
|
|
4
3
|
declare const ErrorBoundary: FC<ErrorBoundaryProps>;
|
|
5
4
|
export { ErrorBoundary, type ErrorBoundaryProps };
|
|
@@ -3,7 +3,9 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type FieldErrorProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<{
|
|
7
|
+
children?: React.ReactNode | undefined;
|
|
8
|
+
}>;
|
|
7
9
|
};
|
|
8
10
|
export default _default;
|
|
9
11
|
export declare const Default: StoryFn<FieldErrorProps>;
|
|
@@ -5,6 +5,8 @@ interface IconButtonProps extends PropsWithChildren {
|
|
|
5
5
|
size?: number;
|
|
6
6
|
withPing?: boolean;
|
|
7
7
|
pingColor?: CSSProperties['backgroundColor'];
|
|
8
|
+
withBorder?: boolean;
|
|
9
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
8
10
|
}
|
|
9
11
|
declare const IconButton: FC<IconButtonProps>;
|
|
10
12
|
export { IconButton, type IconButtonProps };
|
|
@@ -6,8 +6,10 @@ export * from './checkbox/index';
|
|
|
6
6
|
export * from './code/index';
|
|
7
7
|
export * from './condition-details/index';
|
|
8
8
|
export * from './data-card/index';
|
|
9
|
+
export * from './data-finger/index';
|
|
9
10
|
export * from './data-tab/index';
|
|
10
11
|
export * from './delete-warning/index';
|
|
12
|
+
export * from './describe-row/index';
|
|
11
13
|
export * from './divider/index';
|
|
12
14
|
export * from './docs-button/index';
|
|
13
15
|
export * from './drawer/index';
|
|
@@ -35,6 +37,8 @@ export * from './monitors-icons/index';
|
|
|
35
37
|
export * from './navigation-buttons/index';
|
|
36
38
|
export * from './no-data-found/index';
|
|
37
39
|
export * from './notification-note/index';
|
|
40
|
+
export * from './popup/index';
|
|
41
|
+
export * from './popup-form/index';
|
|
38
42
|
export * from './scroll-x/index';
|
|
39
43
|
export * from './section-title/index';
|
|
40
44
|
export * from './segment/index';
|
|
@@ -42,6 +46,7 @@ export * from './selection-button/index';
|
|
|
42
46
|
export * from './skeleton-loader/index';
|
|
43
47
|
export * from './status/index';
|
|
44
48
|
export * from './stepper/index';
|
|
49
|
+
export * from './tag/index';
|
|
45
50
|
export * from './text/index';
|
|
46
51
|
export * from './textarea/index';
|
|
47
52
|
export * from './toggle/index';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { CSSProperties, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
interface PopupProps extends PropsWithChildren {
|
|
3
|
+
header?: ReactNode;
|
|
4
|
+
footer?: ReactNode;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
asPortal?: boolean;
|
|
7
|
+
top?: number;
|
|
8
|
+
bottom?: number;
|
|
9
|
+
left?: number;
|
|
10
|
+
right?: number;
|
|
11
|
+
borderRadius?: CSSProperties['borderRadius'];
|
|
12
|
+
padding?: CSSProperties['padding'];
|
|
13
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
14
|
+
width?: CSSProperties['width'];
|
|
15
|
+
}
|
|
16
|
+
declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export { Popup, type PopupProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type StoryFn } from '@storybook/react-webpack5';
|
|
3
|
+
import { type PopupProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<PopupProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
interface PopupFormProps {
|
|
3
|
+
clientX?: number;
|
|
4
|
+
flipX?: boolean;
|
|
5
|
+
clientY?: number;
|
|
6
|
+
flipY?: boolean;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onSave: () => void;
|
|
10
|
+
withDelete?: boolean;
|
|
11
|
+
onDelete?: () => void;
|
|
12
|
+
title?: string;
|
|
13
|
+
titleTooltip?: string;
|
|
14
|
+
warning?: string;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare const PopupForm: FC<PopupFormProps>;
|
|
18
|
+
export { PopupForm, type PopupFormProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type StoryFn } from '@storybook/react-webpack5';
|
|
3
|
+
import { type PopupFormProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<PopupFormProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const OverrideRuntime: StoryFn<PopupFormProps>;
|
|
10
|
+
export declare const TokenUpdate: StoryFn<PopupFormProps>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type CSSProperties, type FC } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
3
|
type SelectedValue = any;
|
|
4
|
+
type Option = {
|
|
5
|
+
icon?: SVG;
|
|
6
|
+
label?: string;
|
|
7
|
+
value: SelectedValue;
|
|
8
|
+
selectedBgColor?: CSSProperties['backgroundColor'];
|
|
9
|
+
selectedTextColor?: CSSProperties['color'];
|
|
10
|
+
};
|
|
4
11
|
interface SegmentProps {
|
|
5
|
-
options:
|
|
6
|
-
icon?: SVG;
|
|
7
|
-
label?: string;
|
|
8
|
-
value: SelectedValue;
|
|
9
|
-
selectedBgColor?: CSSProperties['backgroundColor'];
|
|
10
|
-
selectedTextColor?: CSSProperties['color'];
|
|
11
|
-
}[];
|
|
12
|
+
options: Option[];
|
|
12
13
|
selected: SelectedValue;
|
|
13
14
|
setSelected: (value: SelectedValue) => void;
|
|
14
15
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type CSSProperties } from 'styled-components';
|
|
2
2
|
export declare const FlexRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
$gap?: number;
|
|
4
|
+
$alignItems?: CSSProperties["alignItems"];
|
|
5
|
+
$justifyContent?: CSSProperties["justifyContent"];
|
|
4
6
|
}>> & string;
|
|
5
7
|
export declare const FlexColumn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
8
|
$gap?: number;
|
|
@@ -19,8 +21,10 @@ export declare const TableContainer: import("styled-components/dist/types").ISty
|
|
|
19
21
|
}, {
|
|
20
22
|
$maxWidth: CSSProperties["maxWidth"];
|
|
21
23
|
}>> & string;
|
|
22
|
-
export declare const TableTitleWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$gap"> & {
|
|
24
|
+
export declare const TableTitleWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$gap" | "$alignItems" | "$justifyContent"> & {
|
|
23
25
|
$gap?: number;
|
|
26
|
+
$alignItems?: CSSProperties["alignItems"];
|
|
27
|
+
$justifyContent?: CSSProperties["justifyContent"];
|
|
24
28
|
}, never>> & string;
|
|
25
29
|
export declare const TableWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
26
30
|
$maxHeight: CSSProperties["maxHeight"];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { type TagProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<TagProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryObj<TagProps>;
|
|
10
|
+
export declare const Info: StoryObj<TagProps>;
|
|
11
|
+
export declare const Warning: StoryObj<TagProps>;
|
|
12
|
+
export declare const Error: StoryObj<TagProps>;
|
|
13
|
+
export declare const Success: StoryObj<TagProps>;
|
package/lib/components.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { C as CancelWarning, D as DeleteWarning } from './index-
|
|
1
|
+
import { e as Button } from './index-CgdNGqvh.js';
|
|
2
|
+
export { f as AutocompleteInput, g as Badge, al as CenterThis, h as Checkbox, i as Code, j as ConditionDetails, D as DataCard, l as DataCardFieldTypes, k as DataCardFields, m as DataFinger, o as DataTab, p as DescribeRow, q as Divider, r as DocsButton, s as Drawer, u as DrawerFooter, t as DrawerHeader, v as Dropdown, w as ExtendArrow, x as FadeLoader, y as FieldError, z as FieldLabel, ak as FlexColumn, aj as FlexRow, G as Header, I as IconButton, J as IconGroup, K as IconTitleBadge, O as IconWrapped, Q as IconsNav, R as ImageControlled, U as Input, V as InputList, W as InputTable, X as InteractiveTable, Y as KeyValueInputsList, Z as Modal, ao as ModalBody, _ as MonitorsCheckboxes, $ as MonitorsIcons, a0 as NavigationButtons, a1 as NoDataFound, a2 as NotificationNote, an as Overlay, a3 as Popup, a4 as PopupForm, a5 as ScrollX, a6 as SectionTitle, a7 as Segment, a8 as SelectionButton, a9 as SkeletonLoader, aa as Status, ab as Stepper, ap as TableContainer, aq as TableTitleWrap, ar as TableWrap, ac as Tag, ad as Text, ae as TextArea, af as Toggle, T as ToggleCodeComponent, ag as Tooltip, ah as TraceLoader, am as VerticalScroll, ai as WarningModal } from './index-CgdNGqvh.js';
|
|
3
|
+
export { C as CancelWarning, D as DeleteWarning } from './index-DnhO-nLH.js';
|
|
4
4
|
import React, { Component, createElement, createContext } from 'react';
|
|
5
|
-
import { T as Theme } from './index-
|
|
5
|
+
import { T as Theme } from './index-BC03UmY5.js';
|
|
6
6
|
import './types.js';
|
|
7
|
-
import './index-
|
|
8
|
-
import './index-
|
|
7
|
+
import './index-CyHOJpMl.js';
|
|
8
|
+
import './index-Dbs7YARA.js';
|
|
9
9
|
import 'styled-components';
|
|
10
|
-
import './index-
|
|
11
|
-
import './index-
|
|
12
|
-
import './useTransition-DanOnTji.js';
|
|
10
|
+
import './index-H8TwBQHm.js';
|
|
11
|
+
import './index-BnvrwbRB.js';
|
|
13
12
|
import 'react-dom';
|
|
13
|
+
import './useTransition-DmHfJSEP.js';
|
|
14
14
|
|
|
15
15
|
const ErrorBoundaryContext = createContext(null);
|
|
16
16
|
|
package/lib/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ACTION_OPTIONS, B as BUTTON_TEXTS,
|
|
1
|
+
export { A as ACTION_OPTIONS, B as BUTTON_TEXTS, l as DEFAULT_DATA_STREAM_NAME, D as DISPLAY_LANGUAGES, m as DISPLAY_TITLES, F as FORM_ALERTS, I as INSTRUMENTATION_RULE_OPTIONS, L as LANGUAGE_OPTIONS, M as MONITORS_OPTIONS, S as STORAGE_KEYS } from './index-BC03UmY5.js';
|
|
2
2
|
export { D as DESTINATION_CATEGORIES } from './index-Dqief9td.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './types.js';
|
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type AwaitPipelineProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<AwaitPipelineProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
2
|
+
import type { StoryFn } from '@storybook/react-webpack5';
|
|
3
3
|
import { type DataStreamModalProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<DataStreamModalProps>;
|
|
@@ -24,6 +24,7 @@ export * from './instrumentation-rule-table/index';
|
|
|
24
24
|
export * from './multi-source-control/index';
|
|
25
25
|
export * from './notification-manager/index';
|
|
26
26
|
export * from './overview-drawer/index';
|
|
27
|
+
export * from './service-map/index';
|
|
27
28
|
export * from './setup-summary/index';
|
|
28
29
|
export * from './side-nav/index';
|
|
29
30
|
export * from './slack-invite/index';
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type NotificationManagerProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryObj<NotificationManagerProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { type Edge, type Node } from '@xyflow/react';
|
|
3
|
+
import { type ServiceMapSources } from '@/types';
|
|
4
|
+
interface Params {
|
|
5
|
+
theme: DefaultTheme;
|
|
6
|
+
nodes: Node[];
|
|
7
|
+
serviceMap: ServiceMapSources;
|
|
8
|
+
}
|
|
9
|
+
export declare const buildEdges: ({ theme, nodes, serviceMap }: Params) => Edge[];
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Node } from '@xyflow/react';
|
|
2
|
+
import { type Source, type ServiceMapSources } from '@/types';
|
|
3
|
+
interface Params {
|
|
4
|
+
sources: Source[];
|
|
5
|
+
sourcesLoading: boolean;
|
|
6
|
+
serviceMap: ServiceMapSources;
|
|
7
|
+
containerHeight: number;
|
|
8
|
+
containerWidth: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const buildMapNodes: ({ sources, serviceMap, containerHeight, containerWidth }: Params) => Node[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { XYPosition } from '@xyflow/react';
|
|
2
|
+
import type { ServiceMapSources } from '@/types';
|
|
3
|
+
type PositionMap = Map<string, XYPosition>;
|
|
4
|
+
export declare const generateDAGPositions: (serviceMap: ServiceMapSources, containerWidth: number, containerHeight: number) => PositionMap;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { type CSSProperties } from 'react';
|
|
2
|
+
import type { ServiceMapSources } from '@/types';
|
|
3
|
+
interface ServiceMapProps {
|
|
4
|
+
heightToRemove: CSSProperties['height'];
|
|
5
|
+
serviceMap: ServiceMapSources;
|
|
6
|
+
}
|
|
7
|
+
declare const ServiceMap: React.FC<ServiceMapProps>;
|
|
8
|
+
export { ServiceMap, type ServiceMapProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { type ServiceMapProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<ServiceMapProps>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryObj<ServiceMapProps>;
|
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type SlackInviteProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<SlackInviteProps>;
|
|
@@ -3,7 +3,7 @@ import type { StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type ToastListProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryObj<ToastListProps>;
|
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { type ToggleDarkModeProps } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<
|
|
6
|
+
component: React.FC<object>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Default: StoryFn<ToggleDarkModeProps>;
|