@odigos/ui-kit 0.0.183 → 0.0.185
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 +0 -101
- package/README.md +12 -16
- package/lib/chunks/ui-components-DO2fZKs1.js +2286 -0
- package/lib/components/_v2/drop-data/index.d.ts +7 -9
- package/lib/components/_v2/input/index.d.ts +1 -3
- package/lib/components/_v2/loader/index.d.ts +1 -3
- package/lib/components/_v2/segment/index.d.ts +2 -1
- package/lib/components/_v2/table/styled.d.ts +18 -29
- package/lib/components/_v2/table/types.d.ts +0 -2
- package/lib/components/selection-button/index.d.ts +1 -1
- package/lib/components/styled.d.ts +50 -46
- package/lib/components/tab-list/index.d.ts +3 -4
- package/lib/components/text/index.d.ts +1 -1
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/sources/index.d.ts +1 -5
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/central-connections/config-drawer/index.d.ts +8 -6
- package/lib/containers/_v2/central-connections/index.d.ts +6 -5
- package/lib/containers/_v2/central-connections/source-drawer/index.d.ts +1 -1
- package/lib/containers/_v2/central-connections/source-drawer/styled.d.ts +15 -15
- package/lib/containers/_v2/index.d.ts +0 -1
- package/lib/containers/_v2/pipeline-collectors/pods-info/index.d.ts +1 -1
- package/lib/containers/data-flow/column/frame.d.ts +1 -0
- package/lib/containers/data-flow/column/index.d.ts +1 -0
- package/lib/containers/data-flow-actions-menu/search/search-results/builder.d.ts +1 -1
- package/lib/containers/data-flow-actions-menu/styled.d.ts +5 -9
- package/lib/containers/instrumentation-rule-modal/index.d.ts +1 -0
- package/lib/containers/source-drawer/describe/index.d.ts +1 -1
- package/lib/containers/source-drawer/odigos-health/index.d.ts +2 -1
- package/lib/containers/v2.js +20 -27
- package/lib/containers.js +130 -128
- package/lib/contexts/odigos-context.d.ts +9 -11
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useActionFormData.d.ts +1 -1
- package/lib/hooks/useConnection.d.ts +3 -0
- package/lib/hooks.js +1 -1
- package/lib/icons/auth/index.d.ts +0 -1
- package/lib/icons/common/index.d.ts +0 -1
- package/lib/icons.js +1 -1
- package/lib/mock-data/sources/index.d.ts +19 -2
- package/lib/snippets/_v2/yaml-section-card/index.d.ts +0 -2
- package/lib/snippets/add-button/index.d.ts +1 -1
- package/lib/snippets/source-container/index.d.ts +1 -1
- package/lib/snippets/source-container/override-runtime.d.ts +1 -2
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/animations/index.d.ts +22 -28
- package/lib/theme/index.d.ts +12 -3
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +1 -1
- package/lib/types/enum/index.d.ts +1 -23
- package/lib/types/index.d.ts +0 -1
- package/lib/types/instrumentation-instances/index.d.ts +0 -1
- package/lib/types/pipeline-collectors/index.d.ts +0 -9
- package/lib/types/sources/index.d.ts +2 -4
- package/lib/types.js +1 -1
- package/lib/visuals/index.d.ts +2 -1
- package/lib/visuals/visual-star/index.d.ts +2 -0
- package/lib/visuals/visual-success/index.d.ts +2 -0
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/ui-components-CYC_0_iY.js +0 -2296
- package/lib/containers/_v2/system-drawer/describe/index.d.ts +0 -10
- package/lib/containers/_v2/system-drawer/diagnose/index.d.ts +0 -6
- package/lib/containers/_v2/system-drawer/index.d.ts +0 -11
- package/lib/containers/_v2/system-drawer/tokens/index.d.ts +0 -7
- package/lib/containers/_v2/system-drawer/tokens/token-actions.d.ts +0 -12
- package/lib/containers/_v2/system-drawer/tokens/token-expires-at.d.ts +0 -6
- package/lib/containers/_v2/system-drawer/tokens/token-input.d.ts +0 -8
- package/lib/icons/auth/okta-icon/index.d.ts +0 -2
- package/lib/icons/common/diagnose-icon/index.d.ts +0 -2
- package/lib/types/diagnose/index.d.ts +0 -6
- package/lib/visuals/visual-green-rings/index.d.ts +0 -7
- /package/lib/theme/{palettes → palletes}/index.d.ts +0 -0
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { PlatformType, Tier } from '@/types';
|
|
3
3
|
interface ContextProps extends PropsWithChildren {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
tier?: Tier;
|
|
5
|
+
version?: string;
|
|
6
|
+
platformType?: PlatformType;
|
|
7
7
|
}
|
|
8
|
-
export declare const OdigosProvider: ({ children,
|
|
9
|
-
export declare const checkVersionSupport: (currentVersion: string, minSupportedVersion?: number) => boolean;
|
|
8
|
+
export declare const OdigosProvider: ({ children, tier, version, platformType }: ContextProps) => React.JSX.Element;
|
|
10
9
|
export declare const useOdigos: (minSupportedVersion?: number) => {
|
|
11
|
-
isVersionSupported: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
platformType
|
|
15
|
-
tier: Tier;
|
|
10
|
+
isVersionSupported: boolean | "" | undefined;
|
|
11
|
+
version?: string | undefined;
|
|
12
|
+
tier?: Tier | undefined;
|
|
13
|
+
platformType?: PlatformType | undefined;
|
|
16
14
|
};
|
|
17
15
|
export {};
|
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{d2 as OdigosProvider,_ as useOdigos}from"./chunks/ui-components-DO2fZKs1.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1oZp1FpB.js";import"react-dom";import"@xyflow/react";import"react-error-boundary";import"lottie-react";import"prism-react-renderer";
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bG as capitalizeFirstLetter,cI as cleanObjectEmptyStringsValues,bB as compareCondition,h as deepClone,aP as filterActions,bf as filterDestinations,bg as filterDestinationsByStream,bd as filterSources,be as filterSourcesByStream,cJ as flattenObjectKeys,b4 as formatBytes,cm as formatDuration,w as generateId,ax as getActionIcon,aJ as getConditionsBooleans,b8 as getContainersIcons,cg as getContainersInstrumentedCount,b7 as getDestinationIcon,aW as getEntityIcon,av as getEntityId,aR as getEntityLabel,cK as getIdFromSseTarget,b6 as getInstrumentationRuleIcon,cL as getMainContainerLanguage,bK as getMetricForEntity,cM as getMonitorIcon,cN as getPlatformIcon,cO as getPlatformLabel,bT as getProgrammingLanguageIcon,co as getRecursiveValues,cP as getSseTargetFromId,cQ as getStatusColor,H as getStatusFromPodStatus,aN as getStatusIcon,c2 as getStatusTypeFromOdigosHealth,cR as getValueForRange,bX as getWorkloadId,bF as getYamlFieldsForDestination,c3 as hasUnhealthyInstances,ab as isEmpty,cS as isLegalK8sLabel,ch as isOverTime,c8 as isStringABoolean,cT as isTimeElapsed,cU as isValidVersion,aM as mapConditions,bA as mapDestinationFieldsForDisplay,b3 as mapExportedSignals,cV as numbersOnly,c9 as parseBooleanFromString,cW as parseJsonStringToPrettyString,cX as removeEmptyValuesFromObject,bC as safeJsonParse,cY as safeJsonStringify,a$ as sleep,bn as splitCamelString,cZ as stringifyNonStringValues,c_ as trimVersion}from"./chunks/ui-components-DO2fZKs1.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1oZp1FpB.js";import"react-dom";import"@xyflow/react";import"react-error-boundary";import"lottie-react";import"prism-react-renderer";
|
package/lib/hooks/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './useActionFormData';
|
|
|
2
2
|
export * from './useBodyScroll';
|
|
3
3
|
export * from './useClickNode';
|
|
4
4
|
export * from './useClickNotification';
|
|
5
|
+
export * from './useConnection';
|
|
5
6
|
export * from './useContainerSize';
|
|
6
7
|
export * from './useCopy';
|
|
7
8
|
export * from './useDataStreamFormData';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Action, type ActionFormData } from '@/types';
|
|
2
2
|
export declare const useActionFormData: () => {
|
|
3
3
|
formData: ActionFormData;
|
|
4
|
-
formErrors: Partial<Record<"
|
|
4
|
+
formErrors: Partial<Record<"disabled" | "type" | "name" | "notes" | "signals" | "fields", string>>;
|
|
5
5
|
handleFormChange: (key?: string | undefined, val?: any, obj?: ActionFormData | undefined) => void;
|
|
6
6
|
resetFormData: (overrideForm?: ActionFormData | undefined) => void;
|
|
7
7
|
validateForm: (params?: {
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{au as useActionFormData,d3 as useBodyScroll,bh as useClickNode,bY as useClickNotification,bb as useConnection,bc as useContainerSize,ci as useCopy,bt as useDataStreamFormData,bE as useDestinationFormData,p as useGenericForm,d4 as useInfiniteScroll,bV as useInstrumentationRuleFormData,ao as useKeyDown,bm as useOnClickOutside,bi as usePopup,bs as useSessionStorage,ca as useSourceFormData,ce as useSourceSelectionFormData,r as useTimeAgo}from"./chunks/ui-components-DO2fZKs1.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1oZp1FpB.js";import"react-dom";import"@xyflow/react";import"react-error-boundary";import"lottie-react";import"prism-react-renderer";
|
|
@@ -6,7 +6,6 @@ export * from './code-icon';
|
|
|
6
6
|
export * from './command-icon';
|
|
7
7
|
export * from './copy-icon';
|
|
8
8
|
export * from './delete-icon';
|
|
9
|
-
export * from './diagnose-icon';
|
|
10
9
|
export * from './dot-icon';
|
|
11
10
|
export * from './dots-horizontal-icon';
|
|
12
11
|
export * from './dots-vertical-icon';
|