@odigos/ui-kit 0.0.215 → 0.0.217
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 +19 -0
- package/lib/chunks/index-eGTPcqRB.js +3 -0
- package/lib/chunks/{ui-components-CICeYnUU.js → ui-components-DaRAAytB.js} +471 -479
- package/lib/components/_v2/drawer/index.d.ts +1 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +1 -0
- package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +4 -1
- package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +1 -0
- package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +2 -0
- package/lib/containers/_v2/_forms/add-destination-form/context.d.ts +3 -3
- package/lib/containers/_v2/central-connections/index.d.ts +2 -1
- package/lib/containers/_v2/index.d.ts +1 -1
- package/lib/containers/_v2/onboarding/index.d.ts +2 -1
- package/lib/containers/_v2/onboarding/summary/index.d.ts +1 -0
- package/lib/containers/_v2/settings/index.d.ts +13 -0
- package/lib/containers/v2.js +102 -156
- package/lib/containers.js +1 -1
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/destinations/aws-api-gateway-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-bedrock-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-dynamodb-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-ec2-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-eventbridge-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-kinesis-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-lambda-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-secrets-manager-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-sns-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-sqs-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-step-functions-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-sts-logo/index.d.ts +2 -0
- package/lib/icons/destinations/index.d.ts +12 -0
- package/lib/icons.js +1 -1
- package/lib/mock-data/config/index.d.ts +3 -0
- package/lib/snippets/_v2/dynamic-field/index.d.ts +19 -0
- package/lib/snippets/_v2/index.d.ts +1 -0
- package/lib/snippets/_v2/wide-drawer/index.d.ts +2 -0
- package/lib/snippets/v2.js +55 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/config/index.d.ts +78 -0
- package/lib/types/destinations/index.d.ts +5 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +10 -5
- package/lib/chunks/index-DHTlCrf6.js +0 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { DropdownProps } from '@/components';
|
|
3
|
+
import { FieldTypes, InputTypes } from '@/types';
|
|
4
|
+
import { type FieldMessageProps, type BadgeProps } from '@/components/_v2';
|
|
5
|
+
export interface DynamicFieldProps extends FieldMessageProps {
|
|
6
|
+
componentType: FieldTypes;
|
|
7
|
+
inputType?: InputTypes;
|
|
8
|
+
name: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
badge?: BadgeProps;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
value: any;
|
|
16
|
+
setValue: (value: any) => void;
|
|
17
|
+
dropdownOptions?: DropdownProps['options'];
|
|
18
|
+
}
|
|
19
|
+
export declare const DynamicField: FC<DynamicFieldProps>;
|
|
@@ -5,6 +5,8 @@ import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
|
5
5
|
import { type DrawerProps, type LoaderProps, type SearchProps, BadgeProps } from '@/components/_v2';
|
|
6
6
|
export interface WideDrawerProps {
|
|
7
7
|
isOpen: DrawerProps['isOpen'];
|
|
8
|
+
withOverlay?: boolean;
|
|
9
|
+
disableAnimation?: DrawerProps['disableAnimation'];
|
|
8
10
|
onClose?: HeaderProps['onClose'];
|
|
9
11
|
onBack?: () => void;
|
|
10
12
|
onNext?: () => void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import{cW as e,r as a,n as i,o as r,d as t,ai as s,y as l,m as n,M as o,p as d,I as c,k as p,a2 as h,a8 as u,v as g,c8 as v,F as m,i as b,c as f,j as x,cX as y,bS as w,b as $,N as C,ax as S,af as L,e as M,aP as k,aV as O,P as D,Q as H,q as N,a as T}from"../chunks/ui-components-DaRAAytB.js";export{A as ActionType,aQ as Actions}from"../chunks/ui-components-DaRAAytB.js";import{jsx as j,jsxs as q,Fragment as I}from"react/jsx-runtime";import{OdigosLogoTextEnterprise as V,OdigosLogoTextCommunity as W,VSquareIcon as z,OdigosLogo as X,ArrowLeftIcon as P,ArrowRightIcon as R}from"../icons.js";import{useState as F,useRef as G,useEffect as B,forwardRef as E,useImperativeHandle as K}from"react";import J from"styled-components";export{Y as YamlSectionCard}from"../chunks/index-eGTPcqRB.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 Q=({isOpen:a,onClose:i,onDeny:r,onApprove:t})=>j(e,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:a,onClose:i,onDeny:r,denyLabel:"Keep editing",onApprove:t,approveLabel:"Discard changes"}),U=({isOpen:a,onClose:i,onDeny:r,onApprove:t,action:s="delete",target:l})=>{const n=s.charAt(0).toUpperCase()+s.substring(1),o=l?.endsWith("s")?"these":"this";return j(e,{title:`${n}${l?` ${l}`:""}?`,description:`Are you sure you want to ${s}${l?` ${o} ${l}`:""}?`,isOpen:a,onClose:i,onDeny:r,denyLabel:"Go back",onApprove:t,approveLabel:n})},Z=({componentType:e,inputType:h,name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,value:y,setValue:w,errorMessage:$,warnMessage:C,helpMessage:S,dropdownOptions:L})=>{switch(e){case a.Input:return j(c,{name:u,type:h,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,value:y??"",onChange:e=>{const a=e.target.value;w(h===p.Number?""===a?null:Number(a):a)},errorMessage:$,warnMessage:C,helpMessage:S},u);case a.MultiInput:return j(d,{name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,values:Array.isArray(y)?y:o(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:S},u);case a.KeyValuePair:return j(n,{name:u,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:o(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:S},u);case a.TextArea:return j(l,{name:u,label:g,tooltip:v,badge:m,required:f,disabled:x,placeholder:b,value:y??"",onChange:e=>w(e.target.value),errorMessage:$,warnMessage:C,helpMessage:S},u);case a.Dropdown:return j(s,{name:u,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:S},u);case a.Checkbox:return j(t,{name:u,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:S},u);case a.Toggle:return j(i,{name:u,labelAlign:r.Right,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:S},u);default:return null}},_=({size:e=200})=>{const{tier:a}=h();return a===u.Onprem?j(V,{size:e}):j(W,{size:e})},ee=(e,a)=>!a?.length||!!a?.find(a=>a===e),ae=({title:e="Signals",required:a,errorMessage:i,allowedSignals:r,selectedSignals:s,setSelectedSignals:l,disabled:n})=>{const[o,d]=F(1===s.length),c=G(JSON.stringify(s));B(()=>{const e=g(s);e.length||v.forEach(({id:a})=>{ee(a,r)&&e.push(a)});const a=JSON.stringify(e);c.current!==a&&(c.current=a,l(e),d(1===e.length))},[r,s]);return q(m,{$gap:12,children:[j(b,{label:e,required:a}),j(f,{$gap:12,children:v.map(e=>{const a=ee(e.id,r),i=((e,a)=>!!a?.find(a=>a===e))(e.id,s);return a?j(t,{label:e.value,disabled:n||!a||o&&i,value:i,onChange:a=>((e,a)=>{const i=e,r=a?[...s,i]:s.filter(e=>e!==i);l(r),d(1===r.length)})(e.id,a)},e.id):null})}),j(x,{errorMessage:i})]})},ie=({minSupportedVersion:a,currentVersion:i})=>j(e,{isOpen:!0,onClose:()=>{},relativeToParent:!0,visual:()=>j(y,{scale:2.4,icon:()=>j("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",children:j("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: ${i}.`}),re=J.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: flex-end;
|
|
5
|
+
width: ${({$width:e})=>e};
|
|
6
|
+
gap: ${({$columnHasHeader:e})=>e?"0":"12px"};
|
|
7
|
+
`,te=J.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
min-height: 24px;
|
|
11
|
+
padding: 12px;
|
|
12
|
+
border-radius: 16px 16px 0 0;
|
|
13
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
14
|
+
`,se=J.div`
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: ${({$gap:e})=>e}px;
|
|
18
|
+
padding: 12px 12px 0 12px;
|
|
19
|
+
width: calc(100% - 24px);
|
|
20
|
+
height: ${({$heightOffset:e,$columnHasHeader:a})=>`calc(100vh - 180px - ${e}px ${a?"- 48px":""})`};
|
|
21
|
+
border-radius: ${({$columnHasHeader:e,$isLeft:a,$isRight:i})=>e?a?"0 0 0 16px":i?"0 16px 0 0":"0":a?"16px 0 0 16px":i?"0 16px 16px 0":"16px"};
|
|
22
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
overflow-x: hidden;
|
|
25
|
+
`,le=({isLeft:e,isRight:a,heightOffset:i=0,width:r,header:t,list:s})=>q(re,{$width:r,$columnHasHeader:!!t,children:[t&&j(te,{children:t}),j(se,{$gap:8,$isLeft:e,$isRight:a,$heightOffset:i,$columnHasHeader:!!t,children:s.length?s.length>1?j(w,{gap:8,elements:s}):j(I,{children:s[0]}):j($,{$height:"100%",children:j(C,{})})})]}),ne="75vw",oe=J.div`
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
border-radius: 16px;
|
|
29
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
`,de=J.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
gap: 12px;
|
|
34
|
+
padding: 16px 16px 0 16px;
|
|
35
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
36
|
+
position: sticky;
|
|
37
|
+
top: 0;
|
|
38
|
+
`,ce=J.div`
|
|
39
|
+
padding: 12px 12px 0 12px;
|
|
40
|
+
`,pe=J.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: 12px;
|
|
43
|
+
padding: 16px;
|
|
44
|
+
`,he=J.div`
|
|
45
|
+
padding: 5vh 10vw;
|
|
46
|
+
border-radius: 12px;
|
|
47
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
48
|
+
`,ue=J.div`
|
|
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};
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{b5 as AddButton,cE as CopyText,cA as EditButton,cz as Flow,dN as MapItemNode,dO as NoDataNode,cf as NoteBackToSummary,cG as PodContainer,cL as SourceContainer}from"./chunks/ui-components-DaRAAytB.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{ar as ProgressKeys,cy as useActiveNodeStore,cR as useDarkMode,E as useDataStreamStore,bc as useDrawerStore,ak as useEntityStore,bz as useFilterStore,bn as useModalStore,cq as useNotificationStore,aq as useProgressStore,bP as useSelectedStore,cc as useSetupStore}from"./chunks/ui-components-DaRAAytB.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{dF as Provider,dG as animations,dH as opacity,dI as palettes}from"./chunks/ui-components-
|
|
1
|
+
export{dF as Provider,dG as animations,dH as opacity,dI as palettes}from"./chunks/ui-components-DaRAAytB.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";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { FieldTypes } from '../common';
|
|
2
|
+
export interface ConfigYamlField {
|
|
3
|
+
displayName: string;
|
|
4
|
+
componentType: FieldTypes;
|
|
5
|
+
isHelmOnly: boolean;
|
|
6
|
+
description: string;
|
|
7
|
+
helmValuePath: string;
|
|
8
|
+
docsLink?: string | null;
|
|
9
|
+
componentProps?: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface ConfigYaml {
|
|
12
|
+
name: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
fields: ConfigYamlField[];
|
|
15
|
+
}
|
|
16
|
+
export interface LocalUiConfigRolloutInput {
|
|
17
|
+
automaticRolloutDisabled?: boolean;
|
|
18
|
+
maxConcurrentRollouts?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface LocalUiConfigAutoRollbackInput {
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
graceTime?: string;
|
|
23
|
+
stabilityWindowTime?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface LocalUiConfigInstrumentorInput {
|
|
26
|
+
agentEnvVarsInjectionMethod?: string;
|
|
27
|
+
checkDeviceHealthBeforeInjection?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface LocalUiConfigAllowConcurrentAgentsInput {
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface LocalUiConfigWaspInput {
|
|
33
|
+
enabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface LocalUiConfigSpanSamplingAttributesInput {
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
samplingCategoryDisabled?: boolean;
|
|
38
|
+
traceDecidingRuleDisabled?: boolean;
|
|
39
|
+
spanDecisionAttributesDisabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface LocalUiConfigSamplingInput {
|
|
42
|
+
dryRun?: boolean;
|
|
43
|
+
spanSamplingAttributes?: LocalUiConfigSpanSamplingAttributesInput;
|
|
44
|
+
tailSampling?: {
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
traceAggregationWaitDuration?: string;
|
|
47
|
+
};
|
|
48
|
+
k8sHealthProbesSampling?: {
|
|
49
|
+
enabled?: boolean;
|
|
50
|
+
keepPercentage?: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface LocalUiConfigComponentLogLevelsInput {
|
|
54
|
+
default?: string;
|
|
55
|
+
autoscaler?: string;
|
|
56
|
+
scheduler?: string;
|
|
57
|
+
instrumentor?: string;
|
|
58
|
+
odiglet?: string;
|
|
59
|
+
deviceplugin?: string;
|
|
60
|
+
ui?: string;
|
|
61
|
+
collector?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface LocalUiConfigInput {
|
|
64
|
+
telemetryEnabled?: boolean;
|
|
65
|
+
ignoredNamespaces?: string[];
|
|
66
|
+
ignoredContainers?: string[];
|
|
67
|
+
ignoreOdigosNamespace?: boolean;
|
|
68
|
+
clusterName?: string;
|
|
69
|
+
instrumentor?: LocalUiConfigInstrumentorInput;
|
|
70
|
+
allowConcurrentAgents?: LocalUiConfigAllowConcurrentAgentsInput;
|
|
71
|
+
wasp?: LocalUiConfigWaspInput;
|
|
72
|
+
rollout?: LocalUiConfigRolloutInput;
|
|
73
|
+
autoRollback?: LocalUiConfigAutoRollbackInput;
|
|
74
|
+
goAutoOffsetsCron?: string;
|
|
75
|
+
goAutoOffsetsMode?: string;
|
|
76
|
+
sampling?: LocalUiConfigSamplingInput;
|
|
77
|
+
componentLogLevels?: LocalUiConfigComponentLogLevelsInput;
|
|
78
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DropdownProps } from '@/components';
|
|
2
|
-
import { type Condition, FieldTypes, SVG } from '../common';
|
|
2
|
+
import { type Condition, FieldTypes, SVG, InputTypes } from '../common';
|
|
3
3
|
export declare enum DestinationTypes {
|
|
4
4
|
Alauda = "alauda",
|
|
5
5
|
AlibabaCloud = "alibabacloud",
|
|
@@ -137,7 +137,7 @@ export interface DestinationDynamicField {
|
|
|
137
137
|
title: DestinationYamlProperties['displayName'];
|
|
138
138
|
value: DestinationYamlProperties['initialValue'];
|
|
139
139
|
renderCondition?: DestinationYamlProperties['renderCondition'];
|
|
140
|
-
type?:
|
|
140
|
+
type?: InputTypes;
|
|
141
141
|
required?: boolean;
|
|
142
142
|
tooltip?: string;
|
|
143
143
|
placeholder?: string;
|
|
@@ -170,6 +170,9 @@ export interface DestinationFormData {
|
|
|
170
170
|
export type CreateDestinationFunc = (payload: DestinationFormData, connectionIds?: string[]) => Promise<{
|
|
171
171
|
error?: string;
|
|
172
172
|
} | undefined>;
|
|
173
|
+
export type UpdateDestinationFunc = (id: string, payload: DestinationFormData, connectionIds?: string[]) => Promise<{
|
|
174
|
+
error?: string;
|
|
175
|
+
} | undefined>;
|
|
173
176
|
export interface TestConnectionResponse {
|
|
174
177
|
destinationType: DestinationTypes;
|
|
175
178
|
statusCode: number;
|
package/lib/types/index.d.ts
CHANGED
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cY as ActionCategory,
|
|
1
|
+
export{cY as ActionCategory,f as ActionKeyTypes,s as ActionType,cZ as AddNodeTypes,c_ as BooleanOperation,R as CodeAttributesKeyTypes,bm as Crud,Z as CustomInstrumentationsKeyTypes,bR as DesiredStateProgress,c$ as DestinationTypes,d0 as EdgeTypes,a9 as EntityTypes,r as FieldTypes,X as GolangCustomProbe,V as HeadersCollectionKeyTypes,k as InputTypes,d1 as InstallationMethod,_ as InstrumentationRuleType,d2 as IntrumentationStatus,Y as JavaCustomProbe,d3 as JsonOperation,K as K8sAttributesFrom,cK as K8sResourceKind,d4 as ListDirection,cw as NodeTypes,d5 as NumberOperation,d6 as OtelDistroName,cg as OtherEntityTypes,bw as OtherStatus,am as OtherStatusType,W as PayloadCollectionKeyTypes,d7 as PlatformType,d8 as PodContainerLifecycleStatus,d9 as PodContainerStatus,da as PodPhase,db as Profile,au as ProgrammingLanguages,dc as SIGNAL_KEY_TO_TYPE,cl as SIGNAL_TYPE_TO_KEY,dd as SignalKey,J as SignalType,de as SortDirection,Q as StatusType,df as StringOperation,a8 as Tier,aT as WorkloadRolloutStatus}from"./chunks/ui-components-DaRAAytB.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{d$ as VISUAL_ODIGOS_LOGO_HEIGHT,e0 as VISUAL_ODIGOS_LOGO_WIDTH,
|
|
1
|
+
export{d$ as VISUAL_ODIGOS_LOGO_HEIGHT,e0 as VISUAL_ODIGOS_LOGO_WIDTH,cX as VisualGreenRings,e1 as VisualOdigosLogo}from"./chunks/ui-components-DaRAAytB.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.217",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,6 +36,11 @@
|
|
|
36
36
|
"import": "./lib/containers/v2.js",
|
|
37
37
|
"require": "./lib/containers/v2.js"
|
|
38
38
|
},
|
|
39
|
+
"./snippets/v2": {
|
|
40
|
+
"types": "./lib/snippets/_v2/index.d.ts",
|
|
41
|
+
"import": "./lib/snippets/v2.js",
|
|
42
|
+
"require": "./lib/snippets/v2.js"
|
|
43
|
+
},
|
|
39
44
|
"./components": {
|
|
40
45
|
"types": "./lib/components/index.d.ts",
|
|
41
46
|
"import": "./lib/components.js",
|
|
@@ -127,8 +132,8 @@
|
|
|
127
132
|
"@rollup/plugin-terser": "^1.0.0",
|
|
128
133
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
129
134
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
130
|
-
"@storybook/react-webpack5": "10.3.
|
|
131
|
-
"@types/node": "^25.5.
|
|
135
|
+
"@storybook/react-webpack5": "10.3.4",
|
|
136
|
+
"@types/node": "^25.5.2",
|
|
132
137
|
"@types/react": "^19.2.14",
|
|
133
138
|
"@types/react-dom": "^19.2.3",
|
|
134
139
|
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
@@ -137,13 +142,13 @@
|
|
|
137
142
|
"babel-plugin-styled-components": "^2.1.4",
|
|
138
143
|
"eslint": "^9.39.4",
|
|
139
144
|
"eslint-plugin-react": "^7.37.5",
|
|
140
|
-
"eslint-plugin-storybook": "10.3.
|
|
145
|
+
"eslint-plugin-storybook": "10.3.4",
|
|
141
146
|
"postcss": "^8.5.8",
|
|
142
147
|
"rollup": "^4.60.1",
|
|
143
148
|
"rollup-plugin-filesize": "^10.0.0",
|
|
144
149
|
"rollup-plugin-postcss": "^4.0.2",
|
|
145
150
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
146
|
-
"storybook": "10.3.
|
|
151
|
+
"storybook": "10.3.4",
|
|
147
152
|
"typescript": "^5.9.3"
|
|
148
153
|
}
|
|
149
154
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{ay as a,t as n,j as r,aJ as s,aH as l,aC as c,cX as d,e as p,N as m}from"./ui-components-CICeYnUU.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const g=i.div`
|
|
2
|
-
padding: 0 12px;
|
|
3
|
-
`,C=({title:i="YAML",yaml:C,defaultOpen:j,fullHeight:k})=>{const{clickCopy:v,isCopied:S}=a(),[Y,x]=o(j??!1),A=e(()=>C?[{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:S?u:f,onClick:()=>v(C||""),disabled:S}},{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:Y?h:y,onClick:()=>x(t=>!t)}}]:[],[C,S,Y]);return t(c,{richTitle:{icon:b,title:i},actions:A,fullHeight:k,children:Y&&t(g,{children:C?t(d,{code:C,language:"yaml",theme:"duotoneDark"}):t(p,{children:t(m,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{C as Y};
|