@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.
Files changed (128) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/eslint.config.mjs +16 -2
  3. package/lib/components/data-card/data-card-fields/index.d.ts +3 -6
  4. package/lib/components/data-card/data-card.stories.d.ts +4 -4
  5. package/lib/components/data-finger/data-finger.stories.d.ts +9 -0
  6. package/lib/components/data-finger/index.d.ts +12 -0
  7. package/lib/components/error-boundary/error-boundary.stories.d.ts +3 -1
  8. package/lib/components/error-boundary/index.d.ts +1 -2
  9. package/lib/components/field-error/field-error.stories.d.ts +3 -1
  10. package/lib/components/field-error/index.d.ts +1 -2
  11. package/lib/components/icon-button/index.d.ts +2 -0
  12. package/lib/components/index.d.ts +5 -0
  13. package/lib/components/popup/index.d.ts +17 -0
  14. package/lib/components/popup/popup.stories.d.ts +9 -0
  15. package/lib/components/popup-form/index.d.ts +18 -0
  16. package/lib/components/popup-form/popup-form.stories.d.ts +10 -0
  17. package/lib/components/segment/index.d.ts +8 -7
  18. package/lib/components/styled.d.ts +5 -1
  19. package/lib/components/tag/index.d.ts +8 -0
  20. package/lib/components/tag/tag.stories.d.ts +13 -0
  21. package/lib/components.js +9 -9
  22. package/lib/constants.js +1 -1
  23. package/lib/containers/await-pipeline/await-pipeline.stories.d.ts +1 -1
  24. package/lib/containers/await-pipeline/index.d.ts +1 -2
  25. package/lib/containers/data-flow-actions-menu/add-entity/index.d.ts +2 -3
  26. package/lib/containers/data-flow-actions-menu/filters/index.d.ts +2 -3
  27. package/lib/containers/data-flow-actions-menu/search/index.d.ts +2 -3
  28. package/lib/containers/data-stream-modal/data-stream-modal.stories.d.ts +2 -2
  29. package/lib/containers/data-stream-modal/index.d.ts +1 -2
  30. package/lib/containers/index.d.ts +1 -0
  31. package/lib/containers/notification-manager/index.d.ts +1 -2
  32. package/lib/containers/notification-manager/notification-manager.stories.d.ts +1 -1
  33. package/lib/containers/service-map/helpers/build-edges.d.ts +10 -0
  34. package/lib/containers/service-map/helpers/build-map-nodes.d.ts +11 -0
  35. package/lib/containers/service-map/helpers/generate-dag-positions.d.ts +5 -0
  36. package/lib/containers/service-map/helpers/generate-spiral-grid-position.d.ts +2 -0
  37. package/lib/containers/service-map/index.d.ts +8 -0
  38. package/lib/containers/service-map/service-map.stories.d.ts +9 -0
  39. package/lib/containers/slack-invite/index.d.ts +1 -2
  40. package/lib/containers/slack-invite/slack-invite.stories.d.ts +1 -1
  41. package/lib/containers/system-overview/describe/index.d.ts +1 -1
  42. package/lib/containers/toast-list/index.d.ts +1 -2
  43. package/lib/containers/toast-list/toast-list.stories.d.ts +1 -1
  44. package/lib/containers/toggle-dark-mode/index.d.ts +1 -2
  45. package/lib/containers/toggle-dark-mode/toggle-dark-mode.stories.d.ts +1 -1
  46. package/lib/containers.js +468 -12672
  47. package/lib/functions/clean-object-empty-strings-values/index.d.ts +2 -1
  48. package/lib/functions/compare-condition/index.d.ts +1 -1
  49. package/lib/functions/flatten-object-keys/index.d.ts +2 -1
  50. package/lib/functions/get-entity-id/index.d.ts +2 -2
  51. package/lib/functions/get-entity-label/index.d.ts +2 -2
  52. package/lib/functions/has-unhealthy-instances/index.d.ts +2 -0
  53. package/lib/functions/index.d.ts +2 -0
  54. package/lib/functions/map-destination-fields-for-display/index.d.ts +1 -1
  55. package/lib/functions/remove-empty-values-from-object/index.d.ts +2 -1
  56. package/lib/functions/safe-json-parse/index.d.ts +2 -1
  57. package/lib/functions/safe-json-stringify/index.d.ts +2 -1
  58. package/lib/functions/stringify-non-string-values/index.d.ts +2 -1
  59. package/lib/functions.js +35 -9
  60. package/lib/hooks/index.d.ts +1 -0
  61. package/lib/hooks/useGenericForm.d.ts +2 -1
  62. package/lib/hooks/useInstrumentationRuleFormData.d.ts +1 -4
  63. package/lib/hooks/usePopup.d.ts +17 -0
  64. package/lib/hooks/useSessionStorage.d.ts +2 -2
  65. package/lib/hooks/useSourceFormData.d.ts +1 -4
  66. package/lib/hooks.js +4 -4
  67. package/lib/icons/common/avatar-icon/avatar-icon.stories.d.ts +8 -0
  68. package/lib/icons/common/avatar-icon/index.d.ts +2 -0
  69. package/lib/icons/common/index.d.ts +3 -0
  70. package/lib/icons/common/user-group-icon/index.d.ts +2 -0
  71. package/lib/icons/common/user-group-icon/user-group-icon.stories.d.ts +8 -0
  72. package/lib/icons/common/user-icon/index.d.ts +2 -0
  73. package/lib/icons/common/user-icon/user-icon.stories.d.ts +8 -0
  74. package/lib/icons/math/index.d.ts +2 -0
  75. package/lib/icons/math/minus-circled-icon/index.d.ts +2 -0
  76. package/lib/icons/math/minus-circled-icon/minus-circled-icon.stories.d.ts +8 -0
  77. package/lib/icons/math/plus-circled-icon/index.d.ts +2 -0
  78. package/lib/icons/math/plus-circled-icon/plus-circled-icon.stories.d.ts +8 -0
  79. package/lib/icons.js +35 -7
  80. package/lib/{index-Bw7RE2T2.js → index-BC03UmY5.js} +8 -1
  81. package/lib/{index-BV85P9UP.js → index-BnvrwbRB.js} +4 -0
  82. package/lib/{index-ZTzxu5fz.js → index-CMsBAVAn.js} +2 -2
  83. package/lib/{index-D_SG1Qp0.js → index-CPMIZB66.js} +19 -9
  84. package/lib/{index-DXBePB-r.js → index-CgdNGqvh.js} +12871 -441
  85. package/lib/{index-CkTdd3MS.js → index-CyHOJpMl.js} +1 -1
  86. package/lib/{index-CrXEzEGw.js → index-Dbs7YARA.js} +3 -3
  87. package/lib/{index-DHHUJe_a.js → index-DnhO-nLH.js} +2 -2
  88. package/lib/{index-DxR7e2Cq.js → index-H8TwBQHm.js} +1 -1
  89. package/lib/{index-BIYXaOIt.js → index-LgzkJ05H.js} +10 -2
  90. package/lib/{index-BWIOWlkS.js → index-r72g3gV5.js} +4 -4
  91. package/lib/mock-data/index.d.ts +1 -0
  92. package/lib/mock-data/service-map/index.d.ts +2 -0
  93. package/lib/snippets/copy-text/index.d.ts +6 -0
  94. package/lib/snippets/index.d.ts +6 -2
  95. package/lib/snippets/pod-container/index.d.ts +5 -0
  96. package/lib/{containers/data-flow → snippets/react-flow}/edges/labeled-edge.d.ts +4 -4
  97. package/lib/{containers/data-flow → snippets/react-flow}/flow.d.ts +2 -0
  98. package/lib/snippets/react-flow/index.d.ts +13 -0
  99. package/lib/{containers/data-flow → snippets/react-flow}/nodes/add-node.d.ts +4 -4
  100. package/lib/{containers/data-flow → snippets/react-flow}/nodes/base-node.d.ts +4 -4
  101. package/lib/{containers/data-flow → snippets/react-flow}/nodes/edged-node.d.ts +4 -4
  102. package/lib/{containers/data-flow → snippets/react-flow}/nodes/frame-node.d.ts +4 -4
  103. package/lib/{containers/data-flow → snippets/react-flow}/nodes/header-node.d.ts +4 -4
  104. package/lib/snippets/react-flow/nodes/map-item-node.d.ts +12 -0
  105. package/lib/snippets/react-flow/nodes/no-data-node.d.ts +9 -0
  106. package/lib/{containers/data-flow → snippets/react-flow}/nodes/scroll-node.d.ts +4 -4
  107. package/lib/snippets/react-flow/nodes/skeleton-node.d.ts +8 -0
  108. package/lib/snippets/source-container/index.d.ts +7 -0
  109. package/lib/snippets.js +8 -8
  110. package/lib/store/index.d.ts +1 -0
  111. package/lib/store/useActiveNodeStore.d.ts +11 -0
  112. package/lib/store.js +1 -1
  113. package/lib/theme.js +1 -1
  114. package/lib/types/common/index.d.ts +1 -0
  115. package/lib/types/data-flow/index.d.ts +3 -1
  116. package/lib/types/describe/index.d.ts +3 -3
  117. package/lib/types/index.d.ts +1 -0
  118. package/lib/types/service-map/index.d.ts +10 -0
  119. package/lib/types/sources/index.d.ts +10 -9
  120. package/lib/types.js +2 -0
  121. package/lib/{useSourceSelectionFormData-BP-O55O3.js → useSourceSelectionFormData-CwggurLH.js} +13 -48
  122. package/lib/{useTransition-DanOnTji.js → useTransition-DmHfJSEP.js} +75 -9
  123. package/package.json +3 -2
  124. package/lib/containers/data-flow/nodes/skeleton-node.d.ts +0 -8
  125. package/lib/containers/data-flow-actions-menu/search/recent-searches/index.d.ts +0 -2
  126. /package/lib/{containers/data-flow/helpers/get-main-container-language.d.ts → functions/get-main-container-language/index.d.ts} +0 -0
  127. /package/lib/{containers/data-flow/helpers → snippets/react-flow}/node-config.d.ts +0 -0
  128. /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 "eslint-plugin-storybook";
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
- const eslintConfig = [...extensions, ...config, ...storybook.configs["flat/recommended"]];
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
- DescribeRow = "describe-row",
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 | Record<string, any>;
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 Containers: StoryObj<DataCardProps>;
10
- export declare const FromChildren: StoryObj<DataCardProps>;
11
- export declare const DescribePod: StoryObj<DataCardProps>;
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<ErrorBoundaryProps>;
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
- interface ErrorBoundaryProps extends PropsWithChildren {
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<FieldErrorProps>;
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>;
@@ -1,5 +1,4 @@
1
1
  import { type FC, type PropsWithChildren } from 'react';
2
- interface FieldErrorProps extends PropsWithChildren {
3
- }
2
+ type FieldErrorProps = PropsWithChildren;
4
3
  declare const FieldError: FC<FieldErrorProps>;
5
4
  export { FieldError, type 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,8 @@
1
+ import { type FC } from 'react';
2
+ import { StatusType } from '@/types';
3
+ import { TextProps } from '../text';
4
+ interface TagProps extends TextProps {
5
+ type: StatusType;
6
+ }
7
+ declare const Tag: FC<TagProps>;
8
+ export { Tag, type TagProps };
@@ -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 { B as Button } from './index-DXBePB-r.js';
2
- export { a as AutocompleteInput, b as Badge, a1 as CenterThis, C as Checkbox, c as Code, d as ConditionDetails, D as DataCard, f as DataCardFieldTypes, e as DataCardFields, g as DataTab, h as Divider, i as DocsButton, j as Drawer, l as DrawerFooter, k as DrawerHeader, m as Dropdown, E as ExtendArrow, F as FadeLoader, n as FieldError, o as FieldLabel, a0 as FlexColumn, $ as FlexRow, H as Header, I as IconButton, p as IconGroup, q as IconTitleBadge, r as IconWrapped, s as IconsNav, t as ImageControlled, u as Input, v as InputList, w as InputTable, x as InteractiveTable, K as KeyValueInputsList, M as Modal, a4 as ModalBody, y as MonitorsCheckboxes, z as MonitorsIcons, N as NavigationButtons, G as NoDataFound, J as NotificationNote, a3 as Overlay, S as ScrollX, L as SectionTitle, O as Segment, P as SelectionButton, Q as SkeletonLoader, R as Status, U as Stepper, a5 as TableContainer, a6 as TableTitleWrap, a7 as TableWrap, V as Text, W as TextArea, X as Toggle, T as ToggleCodeComponent, Y as Tooltip, Z as TraceLoader, a2 as VerticalScroll, _ as WarningModal } from './index-DXBePB-r.js';
3
- export { C as CancelWarning, D as DeleteWarning } from './index-DHHUJe_a.js';
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-Bw7RE2T2.js';
5
+ import { T as Theme } from './index-BC03UmY5.js';
6
6
  import './types.js';
7
- import './index-CkTdd3MS.js';
8
- import './index-CrXEzEGw.js';
7
+ import './index-CyHOJpMl.js';
8
+ import './index-Dbs7YARA.js';
9
9
  import 'styled-components';
10
- import './index-DxR7e2Cq.js';
11
- import './index-BV85P9UP.js';
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, k as DEFAULT_DATA_STREAM_NAME, D as DISPLAY_LANGUAGES, l 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-Bw7RE2T2.js';
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<AwaitPipelineProps>;
6
+ component: React.FC<object>;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Default: StoryFn<AwaitPipelineProps>;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
- interface AwaitPipelineProps {
3
- }
2
+ type AwaitPipelineProps = object;
4
3
  declare const AwaitPipeline: FC<AwaitPipelineProps>;
5
4
  export { AwaitPipeline, type AwaitPipelineProps };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- interface Props {
3
- }
4
- export declare const AddEntity: React.FC<Props>;
2
+ type AddEntityProps = object;
3
+ export declare const AddEntity: React.FC<AddEntityProps>;
5
4
  export {};
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- interface Props {
3
- }
4
- export declare const Filters: React.FC<Props>;
2
+ type FiltersProps = object;
3
+ export declare const Filters: React.FC<FiltersProps>;
5
4
  export {};
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- interface Props {
3
- }
4
- export declare const Search: React.FC<Props>;
2
+ type SearchProps = object;
3
+ export declare const Search: React.FC<SearchProps>;
5
4
  export {};
@@ -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<DataStreamModalProps>;
6
+ component: React.FC<object>;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Default: StoryFn<DataStreamModalProps>;
@@ -1,5 +1,4 @@
1
1
  import { type FC } from 'react';
2
- interface DataStreamModalProps {
3
- }
2
+ type DataStreamModalProps = object;
4
3
  declare const DataStreamModal: FC<DataStreamModalProps>;
5
4
  export { DataStreamModal, type 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';
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- interface NotificationManagerProps {
3
- }
2
+ type NotificationManagerProps = object;
4
3
  declare const NotificationManager: React.FC<NotificationManagerProps>;
5
4
  export { NotificationManager, type NotificationManagerProps };
@@ -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<NotificationManagerProps>;
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,2 @@
1
+ import type { XYPosition } from '@xyflow/react';
2
+ export declare const generateSpiralGridPosition: (existingPositions: XYPosition[], containerWidth: number, containerHeight: number) => XYPosition;
@@ -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>;
@@ -1,5 +1,4 @@
1
1
  import { type FC } from 'react';
2
- interface SlackInviteProps {
3
- }
2
+ type SlackInviteProps = object;
4
3
  declare const SlackInvite: FC<SlackInviteProps>;
5
4
  export { SlackInvite, type SlackInviteProps };
@@ -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<SlackInviteProps>;
6
+ component: React.FC<object>;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Default: StoryFn<SlackInviteProps>;
@@ -1,5 +1,5 @@
1
1
  import { type FC } from 'react';
2
- import type { DescribeOdigos } from '@/types';
2
+ import { type DescribeOdigos } from '@/types';
3
3
  interface DescribeProps {
4
4
  fetchDescribeOdigos: () => Promise<{
5
5
  data?: {
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- interface ToastListProps {
3
- }
2
+ type ToastListProps = object;
4
3
  declare const ToastList: React.FC<ToastListProps>;
5
4
  export { ToastList, type ToastListProps };
@@ -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<ToastListProps>;
6
+ component: React.FC<object>;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Default: StoryObj<ToastListProps>;
@@ -1,5 +1,4 @@
1
1
  import { type FC } from 'react';
2
- interface ToggleDarkModeProps {
3
- }
2
+ type ToggleDarkModeProps = object;
4
3
  declare const ToggleDarkMode: FC<ToggleDarkModeProps>;
5
4
  export { ToggleDarkMode, type ToggleDarkModeProps };
@@ -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<ToggleDarkModeProps>;
6
+ component: React.FC<object>;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Default: StoryFn<ToggleDarkModeProps>;