@odigos/ui-kit 0.0.217 → 0.0.219
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/lib/chunks/{index-eGTPcqRB.js → index-YIqbBRyO.js} +1 -1
- package/lib/chunks/ui-components-Dj10kYlT.js +2469 -0
- package/lib/components/_v2/autocomplete/index.d.ts +1 -0
- package/lib/components/_v2/button/index.d.ts +2 -0
- package/lib/components/_v2/cards/section-card/index.d.ts +1 -1
- package/lib/components/_v2/drawer/footer/index.d.ts +9 -0
- package/lib/components/_v2/drawer/index.d.ts +2 -0
- package/lib/components/_v2/hover-actions/index.d.ts +2 -0
- package/lib/components/_v2/note/index.d.ts +1 -0
- package/lib/components/_v2/radio/index.d.ts +1 -0
- package/lib/components/_v2/search/index.d.ts +6 -1
- package/lib/components/_v2/segment/index.d.ts +2 -1
- package/lib/components/_v2/table/index.d.ts +3 -1
- package/lib/components/_v2/table/styled.d.ts +2 -0
- package/lib/components/_v2/table/table-rows/index.d.ts +2 -1
- package/lib/components/_v2/table/types.d.ts +2 -0
- package/lib/components/styled.d.ts +3 -0
- package/lib/components/tooltip/index.d.ts +7 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/sampling/index.d.ts +87 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/index.d.ts +18 -4
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/index.d.ts +7 -2
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/index.d.ts +7 -2
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/index.d.ts +6 -2
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/index.d.ts +2 -4
- package/lib/containers/_v2/_forms/create-sampling-rule-form/context.d.ts +34 -0
- package/lib/containers/_v2/_forms/create-sampling-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/duration-errors.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/operation.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/percentage.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/rule-info.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/sampling-preview.d.ts +1 -1
- package/lib/containers/_v2/_forms/create-sampling-rule-form/styled.d.ts +5 -0
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/types.d.ts +1 -1
- package/lib/containers/_v2/_forms/edit-auto-rule-form/context.d.ts +21 -0
- package/lib/containers/_v2/_forms/edit-auto-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/context.d.ts +21 -0
- package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/context.d.ts +14 -0
- package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/_forms/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/view-sampling-rule-form/context.d.ts +37 -0
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/footer.d.ts +3 -3
- package/lib/containers/_v2/_forms/view-sampling-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/reverse-converters.d.ts +2 -2
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/operation-details.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/percentage.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/rule-info.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/sampling-preview.d.ts +2 -2
- package/lib/containers/_v2/index.d.ts +1 -2
- package/lib/containers/_v2/sampling-rules/auto-rule-card/index.d.ts +8 -0
- package/lib/containers/_v2/{sampling-rules-list → sampling-rules}/helpers.d.ts +23 -5
- package/lib/containers/_v2/sampling-rules/index.d.ts +3 -0
- package/lib/containers/_v2/sampling-rules/rules-table/index.d.ts +13 -0
- package/lib/containers/_v2/{sampling-rules-list/toolbar.d.ts → sampling-rules/toolbar/index.d.ts} +1 -1
- package/lib/containers/_v2/sampling-rules/types.d.ts +72 -0
- package/lib/containers/source-drawer/index.d.ts +5 -0
- package/lib/containers/source-drawer/profiling/flame-graph-canvas.d.ts +10 -0
- package/lib/containers/source-drawer/profiling/flamebearer.d.ts +70 -0
- package/lib/containers/source-drawer/profiling/index.d.ts +34 -0
- package/lib/containers/source-drawer/profiling/symbol-table.d.ts +6 -0
- package/lib/containers/v2.js +148 -341
- package/lib/containers.js +168 -120
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/usePopup.d.ts +17 -1
- package/lib/hooks.js +1 -1
- package/lib/mock-data/index.d.ts +1 -0
- package/lib/mock-data/profiling/index.d.ts +10 -0
- package/lib/mock-data/service-map/index.d.ts +3 -1
- package/lib/snippets/_v2/colored-span/index.d.ts +16 -0
- package/lib/snippets/_v2/index.d.ts +1 -0
- package/lib/snippets/_v2/rich-title/index.d.ts +2 -2
- package/lib/snippets/v2.js +15 -17
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +13 -13
- package/lib/chunks/ui-components-DaRAAytB.js +0 -2422
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/constants.d.ts +0 -26
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/constants.d.ts +0 -10
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/types.d.ts +0 -8
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/constants.d.ts +0 -10
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/types.d.ts +0 -8
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/constants.d.ts +0 -6
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/types.d.ts +0 -6
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/constants.d.ts +0 -19
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/styled.d.ts +0 -4
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/types.d.ts +0 -1
- package/lib/containers/_v2/auto-rule-card/constants.d.ts +0 -1
- package/lib/containers/_v2/auto-rule-card/helpers.d.ts +0 -19
- package/lib/containers/_v2/auto-rule-card/index.d.ts +0 -5
- package/lib/containers/_v2/auto-rule-card/types.d.ts +0 -6
- package/lib/containers/_v2/sampling-rules-list/constants.d.ts +0 -23
- package/lib/containers/_v2/sampling-rules-list/index.d.ts +0 -6
- package/lib/containers/_v2/sampling-rules-list/rule-row.d.ts +0 -12
- package/lib/containers/_v2/sampling-rules-list/summary-span.d.ts +0 -10
- package/lib/containers/_v2/sampling-rules-list/types.d.ts +0 -47
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/converters.d.ts +0 -0
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/form-helpers.d.ts +0 -0
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/source-scope.d.ts +1 -1
- /package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/duration-errors.d.ts +0 -0
- /package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/source-scopes.d.ts +0 -0
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{f5 as OdigosProvider,f6 as StorybookProvider,bN as checkVersionSupport,a2 as useOdigos,f7 as useStorybook}from"./chunks/ui-components-Dj10kYlT.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dH as capitalizeFirstLetter,eE as cleanObjectEmptyStringsValues,z as compareCondition,v as deepClone,cW as filterActions,dl as filterDestinations,dj as filterDestinationsByStream,dk as filterSources,di as filterSourcesByStream,eF as flattenObjectKeys,dd as formatBytes,ef as formatDuration,g as generateId,cH as getActionIcon,cQ as getConditionsBooleans,e9 as getContainersIcons,ec as getContainersInstrumentedCount,eG as getDeepValue,bg as getDestinationIcon,eH as getDetectedLanguageIcons,d1 as getEntityIcon,cD as getEntityId,cY as getEntityLabel,eI as getIdFromSseTarget,de as getInstrumentationRuleIcon,eJ as getMainContainerLanguage,dL as getMetricForEntity,eK as getMonitorIcon,eL as getPlatformIcon,eM as getPlatformLabel,a1 as getProgrammingLanguageIcon,eh as getRecursiveValues,df as getSourceLanguageIcons,eN as getSseTargetFromId,eO as getStatusColor,bU as getStatusFromPodStatus,cU as getStatusIcon,d_ as getStatusTypeFromOdigosHealth,eP as getValueForRange,dU as getVirtualServiceIcon,dR as getWorkloadId,dG as getYamlFieldsForDestination,d$ as hasUnhealthyInstances,l as isEmpty,eQ as isLegalK8sLabel,bF as isOverTime,e4 as isStringABoolean,eR as isTimeElapsed,eS as isValidVersion,cT as mapConditions,dE as mapDestinationFieldsForDisplay,L as mapExportedSignals,H as mapSupportedSignals,eT as numbersOnly,e5 as parseBooleanFromString,eU as parseJsonStringToPrettyString,eV as removeEmptyValuesFromObject,M as safeJsonParse,eW as safeJsonStringify,eX as setDeepValue,d7 as sleep,dt as splitCamelString,eY as stringifyNonStringValues,cK as trimVersion}from"./chunks/ui-components-Dj10kYlT.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/hooks/usePopup.d.ts
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
|
+
type PopupPositionMode = 'viewport' | 'local';
|
|
1
2
|
interface UsePopupProps {
|
|
2
3
|
defaultClientHeight?: number;
|
|
3
4
|
defaultClientwidth?: number;
|
|
4
5
|
onClickOutside?: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* `viewport`: `clientX` / `clientY` are `MouseEvent`-style viewport coordinates. Flip/clamp vs the
|
|
8
|
+
* window; updates `arrowPlacement`. Use with `Popup asPortal` + `position: fixed` on the popup.
|
|
9
|
+
*
|
|
10
|
+
* `local`: coordinates are already relative to the popup’s offset parent (e.g. magic `0, 50` under
|
|
11
|
+
* a `position: relative` wrapper). No viewport flip or arrow updates — pass-through to `top`/`left`.
|
|
12
|
+
*/
|
|
13
|
+
positionMode?: PopupPositionMode;
|
|
5
14
|
}
|
|
6
15
|
interface Position {
|
|
7
16
|
top: number;
|
|
8
17
|
left: number;
|
|
9
18
|
}
|
|
10
|
-
|
|
19
|
+
/** Arrow on the tooltip shell; matches flip rules in handlePosition (viewport thirds for horizontal). */
|
|
20
|
+
export interface PopupArrowPlacement {
|
|
21
|
+
edge: 'top' | 'bottom';
|
|
22
|
+
align: 'left' | 'center' | 'right';
|
|
23
|
+
}
|
|
24
|
+
declare const usePopup: ({ defaultClientHeight, defaultClientwidth, onClickOutside, positionMode }?: UsePopupProps) => {
|
|
11
25
|
popupRef: import("react").RefObject<HTMLDivElement | null>;
|
|
12
26
|
popupOpen: boolean;
|
|
13
27
|
setPopupOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
14
28
|
popupPosition: Position;
|
|
29
|
+
arrowPlacement: PopupArrowPlacement;
|
|
15
30
|
handlePosition: (clientX: number, clientY: number) => void;
|
|
16
31
|
};
|
|
17
32
|
export { usePopup };
|
|
33
|
+
export type { PopupPositionMode };
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cC as useActionFormData,f8 as useBodyScroll,dm as useClickNode,dS as useClickNotification,dh as useContainerSize,u as useCopy,dy as useDataStreamFormData,dF as useDestinationFormData,t as useGenericForm,dO as useInstrumentationRuleFormData,bD as useKeyDown,ds as useOnClickOutside,dn as usePopup,dx as useSessionStorage,e6 as useSourceFormData,ea as useSourceSelectionFormData,bE as useTimeAgo}from"./chunks/ui-components-Dj10kYlT.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/mock-data/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './instrumentation-instances';
|
|
|
6
6
|
export * from './instrumentation-rules';
|
|
7
7
|
export * from './namespaces';
|
|
8
8
|
export * from './pipeline-collectors';
|
|
9
|
+
export * from './profiling';
|
|
9
10
|
export * from './service-map';
|
|
10
11
|
export * from './snapshot';
|
|
11
12
|
export * from './sources';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ProfilingProps } from '@/containers/source-drawer/profiling';
|
|
2
|
+
type ProfilingSlots = Awaited<ReturnType<ProfilingProps['fetchProfilingSlots']>>;
|
|
3
|
+
type EnableProfilingResult = Awaited<ReturnType<ProfilingProps['enableProfiling']>>;
|
|
4
|
+
type ReleaseProfilingResult = Awaited<ReturnType<ProfilingProps['releaseProfiling']>>;
|
|
5
|
+
type SourceProfilingResult = Awaited<ReturnType<ProfilingProps['fetchSourceProfiling']>>;
|
|
6
|
+
export declare const MOCK_PROFILING_SLOTS: ProfilingSlots;
|
|
7
|
+
export declare const MOCK_ENABLE_PROFILING_RESULT: EnableProfilingResult;
|
|
8
|
+
export declare const MOCK_RELEASE_PROFILING_RESULT: ReleaseProfilingResult;
|
|
9
|
+
export declare const MOCK_SOURCE_PROFILING_RESULT: SourceProfilingResult;
|
|
10
|
+
export {};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import type { ServiceMapSources } from '@/types';
|
|
1
|
+
import type { PeerSources, ServiceMapSources } from '@/types';
|
|
2
|
+
/** Peer graph for the default SourceDrawer story (`inventory` workload). */
|
|
3
|
+
export declare const MOCK_PEER_SOURCES: PeerSources;
|
|
2
4
|
export declare const MOCK_SERVICE_MAP: ServiceMapSources;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export declare enum ColoredSpanVariant {
|
|
3
|
+
Default = "default",
|
|
4
|
+
Action = "action",
|
|
5
|
+
Endpoint = "endpoint",
|
|
6
|
+
Scope = "scope",
|
|
7
|
+
Duration = "duration"
|
|
8
|
+
}
|
|
9
|
+
export interface ColoredSpanPart {
|
|
10
|
+
text: string;
|
|
11
|
+
variant: ColoredSpanVariant;
|
|
12
|
+
}
|
|
13
|
+
export interface ColoredSpanProps {
|
|
14
|
+
parts: ColoredSpanPart[];
|
|
15
|
+
}
|
|
16
|
+
export declare const ColoredSpan: FC<ColoredSpanProps>;
|
|
@@ -2,8 +2,8 @@ import { ReactNode, type FC } from 'react';
|
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
3
|
import { type BadgeProps } from '@/components/_v2/badge';
|
|
4
4
|
export interface RichTitleProps {
|
|
5
|
-
icon
|
|
6
|
-
title
|
|
5
|
+
icon?: SVG;
|
|
6
|
+
title?: string;
|
|
7
7
|
subTitle?: string;
|
|
8
8
|
withCopy?: boolean;
|
|
9
9
|
badge?: BadgeProps;
|
package/lib/snippets/v2.js
CHANGED
|
@@ -1,55 +1,53 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cc as e,r as a,n as r,o as s,d as i,bh as t,y as n,m as o,M as l,p as d,I as c,k as p,a2 as u,a8 as h,v as g,dv as v,F as m,i as b,c as f,j as x,ej as y,dc as w,b as $,N as C,Q as M,a as L,bp as S,be as k,e as O,bY as D,dZ as I}from"../chunks/ui-components-Dj10kYlT.js";export{A as ActionType,bZ as Actions}from"../chunks/ui-components-Dj10kYlT.js";import{jsx as H,Fragment as N,jsxs as T}from"react/jsx-runtime";import j from"styled-components";import{OdigosLogoTextEnterprise as q,OdigosLogoTextCommunity as V,ArrowLeftIcon as z,ArrowRightIcon as R,VSquareIcon as E}from"../icons.js";import{useState as F,useRef as P,useEffect as Z,forwardRef as B,useImperativeHandle as K,useCallback as X,useMemo as G}from"react";export{Y as YamlSectionCard}from"../chunks/index-YIqbBRyO.js";import"zustand";import"javascript-time-ago";import"../chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";const J=({isOpen:a,onClose:r,onDeny:s,onApprove:i})=>H(e,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:a,onClose:r,onDeny:s,denyLabel:"Keep editing",onApprove:i,approveLabel:"Discard changes"});var U;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(U||(U={}));const _=[U.Action,U.Endpoint,U.Scope,U.Duration],Q=j.span`
|
|
2
|
+
font-family: ${({theme:e,$isMono:a})=>a?e.font_family.secondary:e.font_family.primary};
|
|
3
|
+
font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
|
|
4
|
+
line-height: 20px;
|
|
5
|
+
color: ${({theme:e,$variant:a})=>{const r=e.v2.colors;switch(a){case"action":return r.green[400];case"endpoint":return r.purple[300];case"scope":return r.yellow[400];case"duration":return r.orange[600];default:return r.white[500]}}};
|
|
6
|
+
`,W=({parts:e})=>H(N,{children:e.map((e,a)=>H(Q,{$variant:e.variant,$isMono:_.includes(e.variant),children:e.text},a))}),ee=({isOpen:a,onClose:r,onDeny:s,onApprove:i,action:t="delete",target:n})=>{const o=t.charAt(0).toUpperCase()+t.substring(1),l=n?.endsWith("s")?"these":"this";return H(e,{title:`${o}${n?` ${n}`:""}?`,description:`Are you sure you want to ${t}${n?` ${l} ${n}`:""}?`,isOpen:a,onClose:r,onDeny:s,denyLabel:"Go back",onApprove:i,approveLabel:o})},ae=({componentType:e,inputType:u,name:h,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,value:y,setValue:w,errorMessage:$,warnMessage:C,helpMessage:M,dropdownOptions:L})=>{switch(e){case a.Input:return H(c,{name:h,type:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,value:y??"",onChange:e=>{const a=e.target.value;w(u===p.Number?""===a?null:Number(a):a)},errorMessage:$,warnMessage:C,helpMessage:M},h);case a.MultiInput:return H(d,{name:h,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,values:Array.isArray(y)?y:l(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:M},h);case a.KeyValuePair:return H(o,{name:h,label:g,tooltip:v,badge:m,required:f,disabled:x,limitFieldsPerRow:2,columns:[{keyName:"key",label:"Key"},{keyName:"value",label:"Value"}],values:Array.isArray(y)?y:l(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:M},h);case a.TextArea:return H(n,{name:h,label:g,tooltip:v,badge:m,required:f,disabled:x,placeholder:b,value:y??"",onChange:e=>w(e.target.value),errorMessage:$,warnMessage:C,helpMessage:M},h);case a.Dropdown:return H(t,{name:h,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,withSearch:!0,options:L?.map(e=>({id:e.id||"",label:e.value||""}))||[],values:y?[String(y)]:[],setValues:e=>w(e[0]),errorMessage:$,warnMessage:C,helpMessage:M},h);case a.Checkbox:return H(i,{name:h,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:M},h);case a.Toggle:return H(r,{name:h,labelAlign:s.Right,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:M},h);default:return null}},re=({size:e=200})=>{const{tier:a}=u();return a===h.Onprem?H(q,{size:e}):H(V,{size:e})},se=(e,a)=>!a?.length||!!a?.find(a=>a===e),ie=({title:e="Signals",required:a,errorMessage:r,allowedSignals:s,selectedSignals:t,setSelectedSignals:n,disabled:o})=>{const[l,d]=F(1===t.length),c=P(JSON.stringify(t));Z(()=>{const e=g(t);e.length||v.forEach(({id:a})=>{se(a,s)&&e.push(a)});const a=JSON.stringify(e);c.current!==a&&(c.current=a,n(e),d(1===e.length))},[s,t]);return T(m,{$gap:12,children:[H(b,{label:e,required:a}),H(f,{$gap:12,children:v.map(e=>{const a=se(e.id,s),r=((e,a)=>!!a?.find(a=>a===e))(e.id,t);return a?H(i,{label:e.value,disabled:o||!a||l&&r,value:r,onChange:a=>((e,a)=>{const r=e,s=a?[...t,r]:t.filter(e=>e!==r);n(s),d(1===s.length)})(e.id,a)},e.id):null})}),H(x,{errorMessage:r})]})},te=({minSupportedVersion:a,currentVersion:r})=>H(e,{isOpen:!0,onClose:()=>{},relativeToParent:!0,visual:()=>H(y,{scale:2.4,icon:()=>H("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",children:H("path",{fill:"#151618",d:"M9.4844 0.730003C9.99694 -0.243259 11.4076 -0.24341 11.92 0.730003L11.9685 0.831353L14.3039 6.22012L20.153 6.77755C21.3553 6.89211 21.841 8.38683 20.9358 9.18621L16.5314 13.0731L17.8091 18.8079C18.0716 19.9868 16.8005 20.9109 15.7605 20.2969L10.7017 17.3093L5.64282 20.2969C4.60289 20.9104 3.33173 19.9866 3.59427 18.8079L4.87192 13.0741L0.468608 9.18621C-0.43662 8.38693 0.0482932 6.8924 1.25029 6.77755L7.09837 6.22012L9.43588 0.831353L9.4844 0.730003ZM8.55284 7.02876C8.35287 7.48992 7.9179 7.80589 7.41751 7.85357L2.03952 8.36571L6.09027 11.941C6.46691 12.2737 6.63296 12.7852 6.5237 13.2758L5.34956 18.5459L10.0008 15.8009L10.1669 15.7179C10.5087 15.574 10.8945 15.5741 11.2364 15.7179L11.4036 15.8009L16.0538 18.5459L14.8807 13.2758C14.7714 12.7851 14.9374 12.2737 15.3141 11.941L19.3627 8.36571L13.9858 7.85357C13.4855 7.80587 13.0505 7.4899 12.8505 7.02876L10.7017 2.07342L8.55284 7.02876Z"})})}),title:"Upgrade Required",description:`To use this feature, please upgrade to Odigos v${a} or later.\nCurrent version: ${r}.`}),ne=j.div`
|
|
2
7
|
display: flex;
|
|
3
8
|
flex-direction: column;
|
|
4
9
|
justify-content: flex-end;
|
|
5
10
|
width: ${({$width:e})=>e};
|
|
6
11
|
gap: ${({$columnHasHeader:e})=>e?"0":"12px"};
|
|
7
|
-
`,
|
|
12
|
+
`,oe=j.div`
|
|
8
13
|
display: flex;
|
|
9
14
|
align-items: center;
|
|
10
15
|
min-height: 24px;
|
|
11
16
|
padding: 12px;
|
|
12
17
|
border-radius: 16px 16px 0 0;
|
|
13
18
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
14
|
-
`,
|
|
19
|
+
`,le=j.div`
|
|
15
20
|
display: flex;
|
|
16
21
|
flex-direction: column;
|
|
17
22
|
gap: ${({$gap:e})=>e}px;
|
|
18
23
|
padding: 12px 12px 0 12px;
|
|
19
24
|
width: calc(100% - 24px);
|
|
20
25
|
height: ${({$heightOffset:e,$columnHasHeader:a})=>`calc(100vh - 180px - ${e}px ${a?"- 48px":""})`};
|
|
21
|
-
border-radius: ${({$columnHasHeader:e,$isLeft:a,$isRight:
|
|
26
|
+
border-radius: ${({$columnHasHeader:e,$isLeft:a,$isRight:r})=>e?a?"0 0 0 16px":r?"0 16px 0 0":"0":a?"16px 0 0 16px":r?"0 16px 16px 0":"16px"};
|
|
22
27
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
23
28
|
overflow-y: auto;
|
|
24
29
|
overflow-x: hidden;
|
|
25
|
-
`,
|
|
30
|
+
`,de=({isLeft:e,isRight:a,heightOffset:r=0,width:s,header:i,list:t})=>T(ne,{$width:s,$columnHasHeader:!!i,children:[i&&H(oe,{children:i}),H(le,{$gap:8,$isLeft:e,$isRight:a,$heightOffset:r,$columnHasHeader:!!i,children:t.length?t.length>1?H(w,{gap:8,elements:t}):H(N,{children:t[0]}):H($,{$height:"100%",children:H(C,{})})})]}),ce="75vw",pe=j.div`
|
|
26
31
|
display: flex;
|
|
27
32
|
flex-direction: column;
|
|
28
33
|
border-radius: 16px;
|
|
29
34
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
30
35
|
overflow: hidden;
|
|
31
|
-
`,
|
|
36
|
+
`,ue=j.div`
|
|
32
37
|
display: flex;
|
|
33
38
|
gap: 12px;
|
|
34
39
|
padding: 16px 16px 0 16px;
|
|
35
40
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
36
41
|
position: sticky;
|
|
37
42
|
top: 0;
|
|
38
|
-
`,
|
|
43
|
+
`,he=j.div`
|
|
39
44
|
padding: 12px 12px 0 12px;
|
|
40
|
-
`,
|
|
45
|
+
`,ge=j.div`
|
|
41
46
|
display: flex;
|
|
42
47
|
gap: 12px;
|
|
43
48
|
padding: 16px;
|
|
44
|
-
`,
|
|
49
|
+
`,ve=j.div`
|
|
45
50
|
padding: 5vh 10vw;
|
|
46
51
|
border-radius: 12px;
|
|
47
52
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
48
|
-
`,ue=J
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: flex-end;
|
|
52
|
-
gap: 16px;
|
|
53
|
-
padding: 0 12px;
|
|
54
|
-
margin-top: auto;
|
|
55
|
-
`,ge=E(({isOpen:e,withOverlay:a,disableAnimation:i,onClose:r,onBack:t,onNext:s,nextIsSkip:l,onSave:n,disableSave:o,connectionIds:d,header:c,subHeader:p,leftColumn:h,rightColumn:u,search:g,filters:v,errorMessage:m,isFormDirty:b,hideDirtyNote:x,isFetching:y,progress:w},C)=>{const[A,I]=F(!1),[V,W]=F(!1),[G,B]=F(void 0);K(C,()=>({clearErrors:()=>B(void 0)}));const E=V,Y=()=>{b&&!A?I(!0):(I(!1),r?.())},J=o||V||"boolean"==typeof b&&!b,U=!!g||!!d||!!v,Z=!!p,_=(U?48:0)+(Z?50:0);return q(S,{width:ne,isOpen:e,disableAnimation:i,hideOverlay:!V&&!a,header:{...c,onClose:r?Y:void 0,onCloseDisabled:E},children:[V?j($,{$height:"calc(100vh - 136px)",children:j(he,{children:j(L,{titleSize:M.S,subTitleSize:M.XXXS,withGradient:!0,withSpinner:!0,...w})})}):q(oe,{children:[U&&q(de,{children:[d&&j(k,{icon:z,title:"Selected Clusters",badge:{label:d.value.length}}),g&&j(O,{width:"100%",...g}),v]}),Z&&j(ce,{children:j(k,{icon:p.icon,title:p.title,subTitle:p.description,badge:p.badge})}),q(pe,{children:[j(le,{isLeft:!0,heightOffset:_,...h}),j(le,{isRight:!0,heightOffset:_,...u})]})]}),q(ue,{children:[y?j(L,{icon:X,title:"Fetching Data...",titleSize:M.XXS,withGradient:!0}):V?w?null:j(L,{icon:X,title:"Saving Changes...",titleSize:M.XXS,withGradient:!0}):G||m?j(D,{fullWidth:!0,status:H.Error,message:G||m}):"boolean"==typeof b&&b&&!x?j(D,{fullWidth:!0,status:H.Info,message:'The values don\'t reflect the current configurations of the selected clusters.\n"Save" will override the current configurations.'}):"boolean"!=typeof b||b||x?null:j(D,{fullWidth:!0,status:H.Success,message:"The values reflect the current configuration of the selected cluster."}),q(f,{$gap:8,children:[j("div",t?{style:{width:"150px"},children:j(N,{"data-id":"wide-drawer-back",fullWidth:!0,variant:T.Secondary,label:"Back",leftIcon:P,onClick:t})}:{style:{width:"150px"},children:j(N,{"data-id":"wide-drawer-cancel",fullWidth:!0,variant:T.Secondary,label:"Cancel",onClick:Y,disabled:E})}),j("div",s?{style:{width:"150px"},children:j(N,l?{"data-id":"wide-drawer-skip",fullWidth:!0,variant:T.Secondary,label:"Skip",rightIcon:R,onClick:s}:{"data-id":"wide-drawer-next",fullWidth:!0,variant:T.Primary,label:"Next",rightIcon:R,onClick:s})}:{style:{width:"150px"},children:j(N,{"data-id":"wide-drawer-save",fullWidth:!0,variant:T.Primary,label:"Save",onClick:async()=>{W(!0);const e=await n();W(!1),e?.error?B(e.error):(d?.setValue([]),r?.())},disabled:J})})]})]}),j(Q,{isOpen:A,onClose:()=>I(!1),onApprove:Y})]})});ge.displayName=ge.name;export{Q as CancelModal,U as DeleteModal,Z as DynamicField,_ as OdigosLogoTextByTier,k as RichTitle,ae as SignalsCheckboxList,ie as UpgradeModal,ne as WIDE_DRAWER_WIDTH,ge as WideDrawer};
|
|
53
|
+
`,me=B(({isOpen:e,withOverlay:a,disableAnimation:r,onClose:s,onBack:i,onNext:t,nextIsSkip:n,onSave:o,disableSave:l,connectionIds:d,header:c,subHeader:p,leftColumn:u,rightColumn:h,search:g,filters:v,errorMessage:m,isFormDirty:b,hideDirtyNote:f,isFetching:x,progress:y},w)=>{const[C,A]=F(!1),[N,j]=F(!1),[q,V]=F(void 0);K(w,()=>({clearErrors:()=>V(void 0)}));const P=N,Y=X(()=>{b&&!C?A(!0):(A(!1),s?.())},[b,C,s]),Z=l||N||"boolean"==typeof b&&!b,B=X(async()=>{j(!0);const e=await o();j(!1),e?.error?V(e.error):(d?.setValue([]),s?.())},[o,d,s]),U=!!g||!!d||!!v,_=!!p,Q=(U?48:0)+(_?50:0),W=G(()=>x?{status:M.Info,message:"Fetching Data..."}:N&&!y?{status:M.Info,message:"Saving Changes..."}:q||m?{status:M.Error,message:q||m}:"boolean"==typeof b&&b&&!f?{status:M.Info,message:'The values don\'t reflect the current configurations of the selected clusters.\n"Save" will override the current configurations.'}:"boolean"!=typeof b||b||f?void 0:{status:M.Success,message:"The values reflect the current configuration of the selected cluster."},[x,N,y,q,m,b,f]),ee=G(()=>i?{label:"Back",leftIcon:z,variant:L.Secondary,onClick:i}:{label:"Cancel",variant:L.Secondary,onClick:Y,disabled:P},[i,Y,P]),ae=G(()=>t?n?{"data-id":"wide-drawer-skip",label:"Skip",rightIcon:R,variant:L.Secondary,onClick:t}:{"data-id":"wide-drawer-next",label:"Next",rightIcon:R,variant:L.Primary,onClick:t}:{"data-id":"wide-drawer-save",label:"Save",variant:L.Primary,onClick:B,disabled:Z},[t,n,B,Z]);return T(S,{width:ce,isOpen:e,disableAnimation:r,hideOverlay:!N&&!a,header:{...c,onClose:s?Y:void 0,onCloseDisabled:P},footer:{note:W,actions:[ee,ae]},children:[N?H($,{$height:"calc(100vh - 136px)",children:H(ve,{children:H(k,{titleSize:O.S,subTitleSize:O.XXXS,withGradient:!0,withSpinner:!0,...y})})}):T(pe,{children:[U&&T(ue,{children:[d&&H(D,{icon:E,title:"Selected Clusters",badge:{label:d.value.length}}),g&&H(I,{width:"100%",...g}),v]}),_&&H(he,{children:H(D,{icon:p.icon,title:p.title,subTitle:p.description,badge:p.badge})}),T(ge,{children:[H(de,{isLeft:!0,heightOffset:Q,...u}),H(de,{isRight:!0,heightOffset:Q,...h})]})]}),H(J,{isOpen:C,onClose:()=>A(!1),onApprove:Y})]})});me.displayName=me.name;export{J as CancelModal,W as ColoredSpan,U as ColoredSpanVariant,ee as DeleteModal,ae as DynamicField,re as OdigosLogoTextByTier,D as RichTitle,ie as SignalsCheckboxList,te as UpgradeModal,ce as WIDE_DRAWER_WIDTH,me as WideDrawer};
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cr as AddButton,e0 as CopyText,dX as EditButton,dW as Flow,f9 as MapItemNode,fa as NoDataNode,dC as NoteBackToSummary,e2 as PodContainer,e8 as SourceContainer}from"./chunks/ui-components-Dj10kYlT.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bo as ProgressKeys,dV as useActiveNodeStore,ee as useDarkMode,E as useDataStreamStore,cy as useDrawerStore,bi as useEntityStore,cV as useFilterStore,cJ as useModalStore,dN as useNotificationStore,bn as useProgressStore,d9 as useSelectedStore,dz as useSetupStore}from"./chunks/ui-components-Dj10kYlT.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{f1 as Provider,f2 as animations,f3 as opacity,f4 as palettes}from"./chunks/ui-components-Dj10kYlT.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{ek as ActionCategory,f as ActionKeyTypes,s as ActionType,el as AddNodeTypes,em as BooleanOperation,R as CodeAttributesKeyTypes,cI as Crud,Z as CustomInstrumentationsKeyTypes,db as DesiredStateProgress,en as DestinationTypes,eo as EdgeTypes,a9 as EntityTypes,r as FieldTypes,X as GolangCustomProbe,V as HeadersCollectionKeyTypes,k as InputTypes,ep as InstallationMethod,_ as InstrumentationRuleType,eq as IntrumentationStatus,Y as JavaCustomProbe,er as JsonOperation,K as K8sAttributesFrom,e7 as K8sResourceKind,es as ListDirection,dT as NodeTypes,et as NumberOperation,eu as OtelDistroName,dD as OtherEntityTypes,cS as OtherStatus,bk as OtherStatusType,W as PayloadCollectionKeyTypes,ev as PlatformType,ew as PodContainerLifecycleStatus,ex as PodContainerStatus,ey as PodPhase,ez as Profile,aG as ProgrammingLanguages,eA as SIGNAL_KEY_TO_TYPE,dI as SIGNAL_TYPE_TO_KEY,eB as SignalKey,J as SignalType,eC as SortDirection,Q as StatusType,eD as StringOperation,a8 as Tier,c0 as WorkloadRolloutStatus}from"./chunks/ui-components-Dj10kYlT.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/visuals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{fn as VISUAL_ODIGOS_LOGO_HEIGHT,fo as VISUAL_ODIGOS_LOGO_WIDTH,ej as VisualGreenRings,fp as VisualOdigosLogo}from"./chunks/ui-components-Dj10kYlT.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odigos/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.219",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"react": "19.2.
|
|
107
|
-
"react-dom": "19.2.
|
|
106
|
+
"react": "19.2.5",
|
|
107
|
+
"react-dom": "19.2.5",
|
|
108
108
|
"styled-components": "6.3.12"
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
"javascript-time-ago": "^2.6.4",
|
|
114
114
|
"lottie-react": "^2.4.1",
|
|
115
115
|
"prism-react-renderer": "^2.4.1",
|
|
116
|
-
"react": "19.2.
|
|
117
|
-
"react-dom": "19.2.
|
|
116
|
+
"react": "19.2.5",
|
|
117
|
+
"react-dom": "19.2.5",
|
|
118
118
|
"react-error-boundary": "^6.1.1",
|
|
119
119
|
"styled-components": "6.3.12",
|
|
120
|
-
"virtua": "^0.49.
|
|
120
|
+
"virtua": "^0.49.1",
|
|
121
121
|
"zustand": "^5.0.12"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
@@ -132,23 +132,23 @@
|
|
|
132
132
|
"@rollup/plugin-terser": "^1.0.0",
|
|
133
133
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
134
134
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
135
|
-
"@storybook/react-webpack5": "10.3.
|
|
136
|
-
"@types/node": "^25.
|
|
135
|
+
"@storybook/react-webpack5": "10.3.5",
|
|
136
|
+
"@types/node": "^25.6.0",
|
|
137
137
|
"@types/react": "^19.2.14",
|
|
138
138
|
"@types/react-dom": "^19.2.3",
|
|
139
|
-
"@typescript-eslint/eslint-plugin": "^8.58.
|
|
140
|
-
"@typescript-eslint/parser": "^8.58.
|
|
139
|
+
"@typescript-eslint/eslint-plugin": "^8.58.1",
|
|
140
|
+
"@typescript-eslint/parser": "^8.58.1",
|
|
141
141
|
"babel-loader": "^10.1.1",
|
|
142
142
|
"babel-plugin-styled-components": "^2.1.4",
|
|
143
143
|
"eslint": "^9.39.4",
|
|
144
144
|
"eslint-plugin-react": "^7.37.5",
|
|
145
|
-
"eslint-plugin-storybook": "10.3.
|
|
146
|
-
"postcss": "^8.5.
|
|
145
|
+
"eslint-plugin-storybook": "10.3.5",
|
|
146
|
+
"postcss": "^8.5.9",
|
|
147
147
|
"rollup": "^4.60.1",
|
|
148
148
|
"rollup-plugin-filesize": "^10.0.0",
|
|
149
149
|
"rollup-plugin-postcss": "^4.0.2",
|
|
150
150
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
151
|
-
"storybook": "10.3.
|
|
151
|
+
"storybook": "10.3.5",
|
|
152
152
|
"typescript": "^5.9.3"
|
|
153
153
|
}
|
|
154
154
|
}
|