@odigos/ui-kit 0.0.254 → 0.0.256

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 (60) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/docs/api-context.md +1 -1
  3. package/lib/chunks/{connections-scope-DDNmfpzA.js → connections-scope-D_2Q866B.js} +1 -1
  4. package/lib/chunks/consts-D6GCMJ6c.js +1 -0
  5. package/lib/chunks/{helpers-Cy9W3KCg.js → helpers-CUmUiA_l.js} +1 -1
  6. package/lib/chunks/index-hiRPXsEi.js +155 -0
  7. package/lib/chunks/{source-instrument-form-context-BJGS7jKX.js → source-instrument-form-context-DaQkZ03_.js} +1 -1
  8. package/lib/chunks/{ui-components-D_eeOuIL.js → ui-components-B1TCLO_N.js} +225 -233
  9. package/lib/chunks/{use-odigos-api-W15RTo5l.js → use-odigos-api-BMcghWbA.js} +2 -2
  10. package/lib/components/_v2/icon-group/index.d.ts +4 -3
  11. package/lib/components/_v2/no-data/index.d.ts +2 -2
  12. package/lib/components/v2.js +1 -1
  13. package/lib/components.js +1 -1
  14. package/lib/constants/strings/index.d.ts +1 -0
  15. package/lib/constants.js +1 -1
  16. package/lib/containers/service-map/helpers/build-edges.d.ts +1 -1
  17. package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -3
  18. package/lib/containers/service-map/helpers/consts.d.ts +1 -0
  19. package/lib/containers/service-map/helpers/elk-layout.d.ts +4 -3
  20. package/lib/containers/service-map/helpers/types.d.ts +21 -0
  21. package/lib/containers/service-map/index.d.ts +2 -10
  22. package/lib/containers/service-map/react-flow/edges/animated-traffic-edge.d.ts +6 -0
  23. package/lib/containers/service-map/react-flow/flow.d.ts +7 -0
  24. package/lib/containers/service-map/react-flow/index.d.ts +1 -0
  25. package/lib/containers/service-map/react-flow/nodes/map-item-node.d.ts +6 -0
  26. package/lib/containers/service-map/react-flow/nodes/no-data-node.d.ts +6 -0
  27. package/lib/containers/service-map/react-flow/search-and-select-nodes.d.ts +3 -0
  28. package/lib/containers/service-map/service-map-context.d.ts +24 -0
  29. package/lib/containers/v2.js +138 -138
  30. package/lib/containers.js +76 -20
  31. package/lib/contexts/odigos-api/capabilities.d.ts +1 -0
  32. package/lib/contexts/odigos-api/hooks/use-snapshots-api.d.ts +3 -0
  33. package/lib/contexts/odigos-api/index.d.ts +1 -1
  34. package/lib/contexts/odigos-api/types.d.ts +14 -4
  35. package/lib/contexts/odigos-api.js +1 -1
  36. package/lib/contexts.js +1 -1
  37. package/lib/functions/get-nearest-typography-size/index.d.ts +3 -0
  38. package/lib/functions/index.d.ts +1 -0
  39. package/lib/functions.js +1 -1
  40. package/lib/hooks.js +1 -1
  41. package/lib/snippets/index.d.ts +1 -1
  42. package/lib/snippets/v2.js +1 -1
  43. package/lib/snippets.js +1 -1
  44. package/lib/store/index.d.ts +0 -1
  45. package/lib/store/useDrawerStore.d.ts +2 -1
  46. package/lib/store.js +1 -1
  47. package/lib/theme.js +1 -1
  48. package/lib/types/index.d.ts +0 -1
  49. package/lib/types.js +1 -1
  50. package/lib/visuals.js +1 -1
  51. package/package.json +1 -1
  52. package/lib/chunks/flow-Bu1VbeQt.js +0 -49
  53. package/lib/chunks/index-D2nQHheF.js +0 -155
  54. package/lib/containers/service-map/service-map-drawer.d.ts +0 -17
  55. package/lib/snippets/react-flow/flow.d.ts +0 -17
  56. package/lib/snippets/react-flow/index.d.ts +0 -3
  57. package/lib/snippets/react-flow/nodes/map-item-node.d.ts +0 -13
  58. package/lib/snippets/react-flow/nodes/no-data-node.d.ts +0 -9
  59. package/lib/store/useActiveNodeStore.d.ts +0 -11
  60. package/lib/types/data-flow/index.d.ts +0 -21
@@ -1,155 +0,0 @@
1
- import{aA as e,ag as a,L as t,a9 as l,aa as r,dT as n,a5 as i,aN as s,ar as o,a7 as d,J as c,ab as u,an as p,dU as h,ae as g,af as m,dV as v,dW as f,V as b,Q as y,U as x,R as C,O as S,aw as $,au as k,b4 as T,c as w,n as A,F as P,a4 as M,ah as L,aJ as I,dX as O,dY as D,aU as z,dZ as N,f as X,d_ as R,ad as H,h as E,d$ as B,e0 as V,e1 as q,e2 as j,e3 as G,e4 as J,e5 as U,ak as K,e6 as F,e7 as W,e8 as Y,e9 as Q,ea as Z,bV as _,eb as ee,ec as ae,ed as te,ee as le,ef as re,eg as ne,eh as ie,ei as se,ej as oe,ek as de,el as ce,aK as ue,em as pe,en as he,eo as ge,ep as me,eq as ve,bI as fe,er as be,es as ye,et as xe,eu as Ce,ev as Se,ew as $e,ex as ke,ey as Te,ez as we,a_ as Ae,q as Pe,eA as Me,S as Le,eB as Ie,b5 as Oe,eC as De,eD as ze,eE as Ne,eF as Xe,by as Re,az as He,eG as Ee,eH as Be,eI as Ve,di as qe,eJ as je,eK as Ge,eL as Je,s as Ue,dg as Ke,a6 as Fe,eM as We,bk as Ye,aM as Qe,N as Ze,l as _e,aQ as ea,du as aa,bj as ta,bq as la,bi as ra,bY as na,eN as ia}from"./ui-components-D_eeOuIL.js";import{jsx as sa,jsxs as oa,Fragment as da}from"react/jsx-runtime";import{D as ca,C as ua,E as pa,u as ha,F as ga,h as ma,f as va,e as fa,G as ba,H as ya,I as xa,i as Ca,m as Sa}from"./helpers-Cy9W3KCg.js";import{EditIcon as $a,OdigosLogoTextCentral as ka,OdigosLogoTextEnterprise as Ta,OdigosLogoTextCommunity as wa,OdigosLogoTextColoredCentral as Aa,OdigosLogoTextColoredEnterprise as Pa,OdigosLogoTextColoredCommunity as Ma,ArrowLeftIcon as La,ArrowRightIcon as Ia,VSquareIcon as Oa,VIcon as Da,CopyIcon as za,YamlIcon as Na}from"../icons.js";import Xa,{useMemo as Ra,useCallback as Ha,useState as Ea,useRef as Ba,useEffect as Va,forwardRef as qa,useImperativeHandle as ja}from"react";import Ga,{useTheme as Ja}from"styled-components";const Ua=({isOpen:t,onClose:l,onDeny:r,onApprove:n})=>sa(e,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:t,onClose:l,denyButton:{label:"Keep editing",variant:a.Secondary,onClick:()=>{r?.(),l()}},approveButton:{label:"Discard changes",variant:a.Primary,onClick:()=>{n?.(),l()}}}),Ka=({isOpen:t,onClose:l,onDeny:r,onApprove:n,action:i="delete",target:s,description:o,overrideApproveButtonLabel:d,overrideDenyButtonLabel:c})=>{const u=i.charAt(0).toUpperCase()+i.substring(1),p=s?.endsWith("s")?"these":"this";return sa(e,{title:`${u}${s?` ${s}`:""}?`,description:o??`Are you sure you want to ${i}${s?` ${p} ${s}`:""}?`,isOpen:t,onClose:l,denyButton:{label:c??"Go back",variant:a.Secondary,onClick:()=>{r?.(),l()}},approveButton:{label:d??u,variant:a.Primary,onClick:()=>{n?.(),l()}}})},Fa=({componentType:e,inputType:a,name:g,label:m,tooltip:v,badge:f,placeholder:b,required:y,disabled:x,value:C,setValue:S,errorMessage:$,warnMessage:k,helpMessage:T,dropdownOptions:w,dropdownNoSearch:A,dropdownNoCheckbox:P,timeUnits:M,timeDefaultUnit:L})=>{switch(e){case t.Input:return sa(p,{name:g,type:a,label:m,tooltip:v,badge:f,placeholder:b,required:y,disabled:x,value:C??"",onChange:e=>{const t=e.target.value;S(a===h.Number?""===t?null:Number(t):t)},errorMessage:$,warnMessage:k,helpMessage:T},g);case t.MultiInput:return sa(u,{name:g,label:m,tooltip:v,badge:f,placeholder:b,required:y,disabled:x,values:Array.isArray(C)?C:c(C,[]),setValues:e=>S(e),errorMessage:$,warnMessage:k,helpMessage:T},g);case t.KeyValuePair:return sa(d,{name:g,label:m,tooltip:v,badge:f,required:y,disabled:x,limitFieldsPerRow:2,columns:[{keyName:"key",label:"Key",placeholder:"Key"},{keyName:"value",label:"Value",placeholder:"Value"}],values:Array.isArray(C)?C:c(C,[]),setValues:e=>S(e),errorMessage:$,warnMessage:k,helpMessage:T},g);case t.TextArea:return sa(o,{name:g,label:m,tooltip:v,badge:f,required:y,disabled:x,placeholder:b,value:C??"",onChange:e=>S(e.target.value),errorMessage:$,warnMessage:k,helpMessage:T},g);case t.Dropdown:return sa(s,{name:g,label:m,tooltip:v,badge:f,placeholder:b,required:y,disabled:x,withSearch:!A,options:w?.map(e=>({id:e.id||"",label:e.label||"",withCheckbox:!P}))||[],values:C?[String(C)]:[],setValues:e=>S(e[0]),errorMessage:$,warnMessage:k,helpMessage:T},g);case t.Checkbox:return sa(i,{name:g,label:m,tooltip:v,badge:f,value:!0===C||"true"===C,onChange:e=>S(e),disabled:x,errorMessage:$,warnMessage:k,helpMessage:T},g);case t.Time:return sa(n,{name:g,label:m,tooltip:v,badge:f,placeholder:b,required:y,disabled:x,value:C??"",setValue:e=>S(e),units:M,defaultUnit:L,errorMessage:$,warnMessage:k,helpMessage:T},g);case t.Toggle:return sa(l,{name:g,labelAlign:r.Right,label:m,tooltip:v,badge:f,value:!0===C||"true"===C,onChange:e=>S(e),disabled:x,errorMessage:$,warnMessage:k,helpMessage:T},g);default:return null}},Wa=Ga.div`
2
- display: flex;
3
- align-items: center;
4
- gap: 24px;
5
- padding: 8px 16px;
6
- border-radius: 12px;
7
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
8
- `,Ya=Ga.div`
9
- flex: 1;
10
- min-width: 0;
11
- white-space: pre;
12
- overflow-x: auto;
13
- `,Qa=({title:e,summary:t,onEdit:l,renderAction:r})=>{const n=Ra(()=>{const a=[];return e&&(a.push({text:e,variant:ca.Default}),a.push({text:" - ",variant:ca.Default})),a.push(...t),a},[e,t]);return oa(Wa,{children:[sa(Ya,{children:sa(ua,{parts:n})}),r&&r(),l&&sa(g,{"data-id":"sampling-btn-edit-auto-rule",label:v,rightIcon:$a,variant:a.Text,size:m.S,onClick:l})]})},Za={[$.HttpRequest]:"HTTP request",[$.HttpResponse]:"HTTP response",[$.DbQuery]:"DB query",[$.Messaging]:"messaging"};function _a(e,a,t){return 1===e?a:t??`${a}s`}function et(e,a){const t=[],l=e.slice(0,3),r=e.slice(3);return l.forEach((e,l)=>{l>0&&t.push({text:", ",variant:ca.Default}),t.push({text:e,variant:a})}),r.length>0&&t.push({text:` + ${r.length} more`,variant:ca.Default,tooltipItems:r}),t}function at(e,a){switch(e){case b.CodeAttributes:return function(e){const a=Object.values(k).filter(a=>!!e.codeAttributes?.[a]).map(e=>T(e).toLowerCase());return a.length?[{text:"Collect",variant:ca.Action},{text:" ",variant:ca.Default},...et(a,ca.Endpoint)]:null}(a);case b.PayloadCollection:return function(e){const a=Object.values($).filter(a=>null!=e.payloadCollection?.[a]).map(e=>Za[e]);return a.length?[{text:"Collect",variant:ca.Action},{text:" ",variant:ca.Default},...et(a,ca.Endpoint)]:null}(a);case b.HeadersCollection:return function(e){const a=(e.headersCollection?.[S.HeaderKeys]??[]).map(e=>e.trim()).filter(e=>e.length>0);if(!a.length)return null;const t=_a(a.length,"HTTP header");return[{text:`Collect ${a.length} ${t}`,variant:ca.Action},{text:"",variant:ca.Default,tooltipItems:a}]}(a);case b.CustomInstrumentation:return function(e){const a=(e.customInstrumentations?.[y.Java]??[]).map(e=>new x(e.className,e.methodName)).filter(e=>e.Verify()),t=(e.customInstrumentations?.[y.Golang]??[]).map(e=>new C(e.packageName,e.functionName,e.receiverName,e.receiverMethodName)).filter(e=>e.Verify());if(!(a.length+t.length))return null;const l=[];a.length&&l.push(`${a.length} Java ${_a(a.length,"probe")}`),t.length&&l.push(`${t.length} Go ${_a(t.length,"probe")}`);const r=[...a.map(e=>`Java: ${e.toString()}`),...t.map(e=>`Go: ${e.toString()}`)];return[{text:`Apply ${l.join(" + ")}`,variant:ca.Action},{text:"",variant:ca.Default,tooltipItems:r}]}(a);default:return null}}const tt=({option:e,formState:a,renderAction:t})=>{const l=Ra(()=>{const t=at(e?.type,a);return t?[...t,...pa(a.sourceScopes)]:[]},[e?.type,a]),r=0===l.length;return sa(Qa,{title:r?f:"Instrumentation Rule Preview",summary:l,renderAction:t})},lt=({size:e=200,central:a=!1,useInline:t=!1})=>{const{tier:l}=ha();if(t){if(a)return sa(ka,{size:e});switch(l){case w.Community:return sa(wa,{size:e});case w.Onprem:return sa(Ta,{size:e});default:return null}}if(a)return sa(Aa,{size:e});switch(l){case w.Community:return sa(Ma,{size:e});case w.Onprem:return sa(Pa,{size:e});default:return null}},rt=[{value:"50",label:"50%"},{value:"25",label:"25%"},{value:"10",label:"10%"},{value:"1",label:"1%"},{value:"custom",label:"Custom"}],nt=[{value:"10",label:"10%"},{value:"1",label:"1%"},{value:"0.5",label:"0.5%"},{value:"0.1",label:"0.1%"},{value:"custom",label:"Custom"}],it=[{value:"5000",label:"5s"},{value:"1000",label:"1s"},{value:"500",label:"500ms"},{value:"100",label:"100ms"},{value:"50",label:"50ms"},{value:"custom",label:"Custom"}],st=({description:e,options:a,selected:t,onSelect:l,customName:r,customLabel:n,customPlaceholder:i,customValue:s,onCustomChange:o,customInputType:d=h.Number,customMin:c,customMax:u})=>oa(A,{$gap:16,$alignItems:"flex-end",children:[oa(P,{$gap:6,children:[sa(M,{label:e}),sa(L,{options:a,selected:t,setSelected:l})]}),"custom"===t&&sa(p,{name:r,label:n,placeholder:i,type:d,value:s,onChange:o,width:160,min:c,max:u})]}),ot=()=>{},dt=e=>e.readOnly?sa(ct,{rule:e.rule}):sa(ut,{ruleType:e.ruleType,formState:e.formState,onChange:e.onChange}),ct=({rule:e})=>{const a=null!=e.durationAtLeastMs;return e.error?sa(I,{richTitle:{title:O},children:sa(l,{name:"sampling-view-toggle-keep-errors",onChange:ot,value:!0,size:z.S,label:D,labelAlign:r.Right})}):a?sa(I,{richTitle:{title:N},children:oa("div",{children:[sa(X,{size:E.XXXS,color:H.Secondary,children:R}),sa(X,{size:E.XS,children:`${e.durationAtLeastMs}ms`})]})}):null},ut=({ruleType:e,formState:a,onChange:t})=>{const n=Ha(e=>t({durationPreset:e}),[t]),i=Ha(e=>t({customDurationMs:e.target.value}),[t]);return"Error"===e?sa(I,{richTitle:{title:O,subTitle:B},children:sa(l,{name:"sampling-toggle-keep-errors",value:!0,onChange:ot,size:z.S,label:D,labelAlign:r.Right})}):"Duration"===e?sa(I,{richTitle:{title:N,subTitle:V},children:sa(st,{description:R,options:it,selected:a.durationPreset,onSelect:n,customName:"sampling-input-custom-duration",customLabel:q,customPlaceholder:"200ms",customValue:a.customDurationMs,onCustomChange:i})}):null},pt=Ga.div`
14
- display: flex;
15
- gap: 32px;
16
- `,ht=Ga.div`
17
- display: flex;
18
- flex-direction: column;
19
- gap: 4px;
20
- `,gt=Ga.div`
21
- display: flex;
22
- flex-wrap: wrap;
23
- align-items: flex-end;
24
- gap: 16px;
25
- `,mt=Ga.div`
26
- display: flex;
27
- align-items: flex-end;
28
- gap: 16px;
29
- padding: 12px 16px;
30
- border-radius: 8px;
31
- background-color: ${({theme:e})=>e.v2.colors.black[500]};
32
- `,vt=Ga.div`
33
- display: flex;
34
- align-items: flex-end;
35
- gap: 10px;
36
- flex: 1;
37
- `,ft=Ga.div`
38
- display: flex;
39
- align-items: center;
40
- height: 32px;
41
- `,bt=Ga.div`
42
- display: flex;
43
- align-items: flex-end;
44
- gap: 16px;
45
- margin-bottom: 12px;
46
- `,yt="Any",xt="Kafka topic",Ct=()=>sa("div",{style:{marginBottom:"8px"},children:sa(X,{size:E.XS,weight:500,children:"And"})}),St=[{value:"all",label:"All Operations"},{value:"httpServer",label:"HTTP Server"},{value:"httpClient",label:"HTTP Client"}],$t=[{value:"all",label:"All Operations"},{value:"httpServer",label:"HTTP Server"},{value:"kafkaConsumer",label:"Kafka Consumer"},{value:"kafkaProducer",label:"Kafka Producer"}],kt=[{id:"",label:yt},{id:"GET",label:"GET"},{id:"POST",label:"POST"},{id:"PUT",label:"PUT"},{id:"DELETE",label:"DELETE"},{id:"PATCH",label:"PATCH"}];const Tt=e=>e.readOnly?sa(wt,{data:e.data}):sa(At,{category:e.category,formState:e.formState,onChange:e.onChange}),wt=({data:e})=>{const a=Ra(()=>function(e){if("noisy"===e.category){const a=e.rule.operation;if(a?.httpServer)return[{id:"type",title:le,value:te},{id:"route",title:Y,value:a.httpServer.route||a.httpServer.routePrefix||re},{id:"method",title:ee,value:a.httpServer.method||yt}];if(a?.httpClient){const e=[{id:"type",title:le,value:ne}];return a.httpClient.serverAddress&&e.push({id:"serverAddress",title:"Server address",value:a.httpClient.serverAddress}),e.push({id:"route",title:Y,value:a.httpClient.templatedPath||a.httpClient.templatedPathPrefix||re}),e.push({id:"method",title:ee,value:a.httpClient.method||yt}),e}return[{id:"type",title:le,value:ie}]}const a=e.rule.operation;return a?.httpServer?[{id:"type",title:le,value:te},{id:"route",title:Y,value:a.httpServer.route||a.httpServer.routePrefix||re},{id:"method",title:ee,value:a.httpServer.method||yt}]:a?.kafkaConsumer?[{id:"type",title:le,value:se},{id:"topic",title:xt,value:a.kafkaConsumer.kafkaTopic||re}]:a?.kafkaProducer?[{id:"type",title:le,value:oe},{id:"topic",title:xt,value:a.kafkaProducer.kafkaTopic||re}]:[{id:"type",title:le,value:ie}]}(e),[e]);return sa(I,{richTitle:{title:j},children:sa(pt,{children:a.map(({id:e,title:a,value:t})=>oa(ht,{children:[sa(X,{size:E.XXXS,color:H.Secondary,nowrap:!0,children:a}),sa(X,{size:E.XS,nowrap:!0,children:t})]},e))})})},At=({category:e,formState:t,onChange:l})=>{const r=Ra(()=>"noisy"===e?St:$t,[e]),n=Ha(e=>l({operationType:e,route:"",serverAddress:"",method:"",kafkaTopic:""}),[l]),i=Ha(e=>a=>{a&&l({routeType:e,route:""})},[l]),s=Ha(e=>l({route:e.target.value}),[l]),o=Ha(e=>l({serverAddress:e.target.value}),[l]),d=Ha(e=>l({method:e[0]||""}),[l]),c=Ha(e=>l({kafkaTopic:e.target.value}),[l]),u="httpServer"===t.operationType||"httpClient"===t.operationType,h="kafkaConsumer"===t.operationType||"kafkaProducer"===t.operationType,g="httpClient"===t.operationType?W:Y,v="httpClient"===t.operationType?Q:Z;return oa(I,{richTitle:{title:`2. ${j}`,subTitle:G},children:[sa(P,{$alignItems:"flex-start",children:sa(L,{options:r,selected:t.operationType,setSelected:n})}),u&&oa(gt,{children:["httpClient"===t.operationType&&oa(bt,{children:[sa(p,{name:"sampling-input-server-address",label:U,placeholder:J,value:t.serverAddress,onChange:o}),sa(Ct,{})]}),oa(mt,{children:[oa(vt,{children:[sa(ft,{children:sa(K,{"data-id":"sampling-radio-route",value:"route"===t.routeType,onChange:i("route")})}),sa(p,{name:"sampling-input-route",label:g,placeholder:F,value:"route"===t.routeType?t.route:"",onChange:s,disabled:"route"!==t.routeType})]}),oa(vt,{children:[sa(ft,{children:sa(K,{"data-id":"sampling-radio-route-prefix",value:"routePrefix"===t.routeType,onChange:i("routePrefix")})}),sa(p,{name:"sampling-input-route-prefix",label:v,placeholder:F,value:"routePrefix"===t.routeType?t.route:"",onChange:s,disabled:"routePrefix"!==t.routeType})]})]}),oa(bt,{children:[sa(Ct,{}),sa(_,{label:ee,items:kt,selectedIds:[t.method||""],setSelectedIds:e=>d(e),buttonProps:{"data-id":"sampling-btn-method",label:kt.find(e=>e.id===t.method)?.label||yt,size:m.S,variant:a.Secondary}})]})]}),h&&sa(p,{name:"sampling-input-kafka-topic",label:ae,placeholder:"Type kafka topic",value:t.kafkaTopic,onChange:c,width:"320px"})]})},Pt=[{value:"all",label:"Drop All"},{value:"sample",label:"Sample"}],Mt=[{value:"all",label:"Keep All"},{value:"sample",label:"Sample"}];const Lt=e=>e.readOnly?sa(It,{data:e.data}):sa(Ot,{category:e.category,formState:e.formState,onChange:e.onChange}),It=({data:e})=>{const a=Ra(()=>function(e){switch(e.category){case"highlyRelevant":return null!=e.rule.percentageAtLeast?{title:ce,method:ge,description:pe,value:`${e.rule.percentageAtLeast}%`}:{title:ce,method:ve,description:null,value:null};case"noisy":return ga(e.rule.percentageAtMost)?{title:ce,method:me,description:null,value:null}:{title:ce,method:ge,description:he,value:`${e.rule.percentageAtMost}%`};case"costReduction":return{title:ce,method:ge,description:he,value:`${e.rule.percentageAtMost}%`}}}(e),[e]),t=[{id:"method",title:ee,value:a.method},...null!=a.description?[{id:"value",title:a.description,value:a.value}]:[]];return sa(I,{richTitle:{title:a.title},children:sa(pt,{children:t.map(({id:e,title:a,value:t})=>oa(ht,{children:[sa(X,{size:E.XXXS,color:H.Secondary,nowrap:!0,children:a}),sa(X,{size:E.XS,nowrap:!0,children:t})]},e))})})},Ot=({category:e,formState:a,onChange:t})=>{const l="highlyRelevant"===e,r=l?Mt:Pt,n=`${l?4:3}. ${ce}`,i=de[e],s=l?pe:he,o="noisy"===e?nt:rt,d=Ha(e=>t({percentageMode:e}),[t]),c=Ha(e=>t({percentagePreset:e}),[t]),u=Ha(e=>t({customPercentage:e.target.value}),[t]);return oa(I,{richTitle:{title:n,subTitle:i},children:["costReduction"!==e&&sa(P,{$alignItems:"flex-start",children:sa(L,{options:r,selected:a.percentageMode,setSelected:d})}),("costReduction"===e||"sample"===a.percentageMode)&&sa(st,{description:s,options:o,selected:a.percentagePreset,onSelect:c,customName:"sampling-input-custom-percentage",customLabel:ue,customPlaceholder:"5%",customValue:a.customPercentage,onCustomChange:u,customInputType:h.Decimal,customMin:0,customMax:100})]})},Dt=Ga.div`
47
- display: flex;
48
- align-items: flex-end;
49
- gap: 16px;
50
- `,zt=Ga.div`
51
- width: 280px;
52
- flex-shrink: 0;
53
- `,Nt=Ga.div`
54
- flex: 1;
55
- min-width: 0;
56
- `;function Xt(e){return"highlyRelevant"===e.category?e.rule.error?"Error":null!=e.rule.durationAtLeastMs?"Duration":"Relevance":ke[e.category]}const Rt=e=>e.readOnly?sa(Ht,{data:e.data}):sa(Et,{formState:e.formState,onChange:e.onChange}),Ht=({data:e})=>{const a=Ra(()=>[{id:"name",title:be,value:e.rule.name||fe},{id:"type",title:ye,value:Xt(e)}],[e]),t=e.rule.notes||re;return oa(I,{children:[sa(pt,{children:a.map(({id:e,title:a,value:t})=>oa(ht,{children:[sa(X,{size:E.XXXS,color:H.Secondary,nowrap:!0,children:a}),sa(X,{size:E.XS,nowrap:!0,children:t})]},e))}),oa(ht,{children:[sa(X,{size:E.XXXS,color:H.Secondary,children:xe}),sa(X,{size:E.XS,children:t})]})]})},Et=({formState:e,onChange:a})=>{const t=Ha(e=>a({name:e.target.value}),[a]),l=Ha(e=>a({notes:e.target.value}),[a]);return sa(I,{children:oa(Dt,{children:[sa(zt,{children:sa(p,{name:"sampling-input-rule-name",label:be,tooltip:"Optional. Give this rule a name for easier identification.",placeholder:Ce,value:e.name,onChange:t})}),sa(Nt,{children:sa(p,{name:"sampling-input-note",label:xe,tooltip:$e,placeholder:Se,value:e.notes,onChange:l})})]})})},Bt=[{value:"Relevance",label:"Relevance"},{value:"Error",label:"Error"},{value:"Duration",label:"Duration"}],Vt=({formState:e,onChange:a})=>{const t=Ha(e=>a({ruleType:e,keepErrors:"Error"===e}),[a]);return sa(I,{richTitle:{title:`3. ${ye}`,subTitle:Te},children:sa(P,{$alignItems:"flex-start",children:sa(L,{options:Bt,selected:e.ruleType,setSelected:t})})})},qt=e=>{const a=Ra(()=>{if(e.readOnly)return e.summary;switch(e.category){case"noisy":return fa(xa(e.formState));case"highlyRelevant":return va(ya(e.formState));case"costReduction":return ma(ba(e.formState))}},[e]);if(e.readOnly)return sa(Qa,{title:we,summary:a,renderAction:e.renderAction});const t=1===a.length&&"default"===a[0].variant;return sa(Qa,{title:t?f:we,summary:t?[]:a,renderAction:e.renderAction})},jt=Ga.div`
57
- display: flex;
58
- flex-wrap: wrap;
59
- gap: 8px;
60
- `,Gt=Ga.div`
61
- display: flex;
62
- align-items: center;
63
- gap: 8px;
64
- padding: 8px 12px;
65
- border-radius: 8px;
66
- cursor: pointer;
67
- background: ${({theme:e,$selected:a})=>a?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
68
- border: 1px solid ${({theme:e,$selected:a})=>a?e.v2.colors.silver[500]:e.v2.colors.silver[750]};
69
-
70
- &:hover {
71
- background: ${({theme:e})=>e.v2.colors.silver[700]};
72
- }
73
- `,Jt=Ga.div`
74
- display: flex;
75
- width: 32px;
76
- height: 32px;
77
- justify-content: center;
78
- align-items: center;
79
- flex-shrink: 0;
80
- `,Ut=Ga.div`
81
- display: flex;
82
- flex-direction: column;
83
- gap: 12px;
84
- `,Kt=Ga.div`
85
- display: flex;
86
- flex-wrap: wrap;
87
- gap: 6px;
88
- `,Ft=Ga.div`
89
- display: flex;
90
- align-items: center;
91
- gap: 8px;
92
- &::before,
93
- &::after {
94
- content: '';
95
- flex: 1;
96
- height: 1px;
97
- background-color: ${({theme:e})=>e.v2.colors.silver[700]};
98
- }
99
- `,Wt=Ga.div`
100
- padding: 2px 10px;
101
- border-radius: 999px;
102
- background-color: ${({theme:e})=>e.v2.colors.silver[700]};
103
- border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
104
- `,Yt={[Re.JavaScript]:"Node.js",[Re.DotNet]:".NET",[Re.Php]:"PHP",[Re.Java]:"Java",[Re.Go]:"Go",[Re.Python]:"Python",[Re.Ruby]:"Ruby",[Re.Rust]:"Rust"},Qt=[Re.Python,Re.Java,Re.JavaScript,Re.DotNet,Re.Php,Re.Ruby,Re.Go],Zt=[{value:"all",label:"Entire Cluster"},{value:"source",label:"Specific Source"},{value:"namespace",label:"Specific Namespace"},{value:"language",label:"Specific Programming Language"}];function _t(e){const a=Yt[e];return a||e.charAt(0).toUpperCase()+e.slice(1)}function el(e){return null!=e?`${e}. ${Je}`:Je}const al=({readOnly:e,...a})=>sa(e?rl:nl,{...a}),tl=({title:e,count:a,children:t})=>oa(P,{$gap:6,children:[oa(A,{$gap:8,$alignItems:"center",children:[sa(X,{size:E.XS,color:H.Primary,nowrap:!0,children:e}),a>1&&oa(X,{size:E.XXS,color:H.Secondary,nowrap:!0,children:["(",je,")"]})]}),sa(Kt,{children:t})]}),ll=()=>{const e=Ja();return sa(Ft,{children:sa(Wt,{children:sa(X,{size:E.XXS,color:e.v2.colors.white[500],nowrap:!0,children:Ge})})})},rl=({scopes:e,titleNumber:a})=>{const t=el(a);if(Ca(e))return sa(Ae,{bgTint:"900",richTitle:{title:t},withCollapse:!0,collapseIsDefaultOpen:!0,children:sa(Pe,{status:Le.Default,message:Me,fullWidth:!0})});const l=e.sources??[],r=e.namespaces??[],n=e.languages??[],i=[];return l.length&&i.push({kind:"sources",node:sa(tl,{title:Ie,count:l.length,children:l.map((e,a)=>{const t=[e.namespace,e.kind,e.name].filter(Boolean),l=t.length?t.join(" / "):De;return sa(Oe,{label:l},`src-${a}-${l}`)})})}),r.length&&i.push({kind:"namespaces",node:sa(tl,{title:ze,count:r.length,children:r.map((e,a)=>sa(Oe,{label:e},`ns-${a}-${e}`))})}),n.length&&i.push({kind:"languages",node:sa(tl,{title:Ne,count:n.length,children:n.map((e,a)=>{const t=He(e);return sa(Oe,{label:_t(e),leftIcon:t},`lang-${a}-${e}`)})})}),sa(Ae,{bgTint:"900",richTitle:{title:t,subTitle:i.length>1?Xe:void 0},withCollapse:!0,collapseIsDefaultOpen:!0,children:sa(Ae,{bgTint:"800",children:sa(Ut,{children:i.map((e,a)=>oa(Xa.Fragment,{children:[a>0&&sa(ll,{}),e.node]},e.kind))})})})},nl=({scopes:e,onChange:a,sourceOptions:t=[],namespaceOptions:l=[],supportedLanguages:r,titleNumber:n,dataIdPrefix:s="source-scope",slim:o})=>{const d=e??Sa(),[c,u]=Ea(()=>(e=>e.sources.length>0?"source":e.namespaces.length>0?"namespace":e.languages.length>0?"language":"all")(d)),{sources:p,namespaces:h,languages:g}=d,m=p.length>0||h.length>0||g.length>0,v=Ra(()=>Zt.map(e=>"language"===e.value&&0===r?.length?null:{...e,disabled:"all"===e.value&&m}).filter(Boolean),[m]),f=Ra(()=>p.map(e=>{return a=e.namespace,t=e.kind,l=e.name,`${a}/${t}/${l}`;var a,t,l}),[p]),b=Ra(()=>[...h],[h]),y=Ra(()=>new Set(g),[g]),x=Ha(e=>{u(e)},[]),C=Ha(e=>{const t=e.map(e=>function(e){const a=e.split("/");return 3!==a.length?null:{namespace:a[0],kind:a[1],name:a[2]}}(e)).filter(e=>null!=e).map(e=>({namespace:e.namespace,kind:e.kind,name:e.name}));a({...d,sources:t})},[d,a]),S=Ha(e=>{a({...d,namespaces:e})},[d,a]),$=Ha(e=>{const t=d.languages,l=t.includes(e)?t.filter(a=>a!==e):[...t,e];a({...d,languages:l})},[d,a]),k=!m&&"all"===c,T=(r||Qt).map(e=>({id:e,label:Yt[e]??e.charAt(0).toUpperCase()+e.slice(1),Icon:He(e)}));return oa(I,{richTitle:o?{title:el(n),titleSize:E.XS,titleColor:H.Secondary,tooltip:Ee}:{title:el(n),subTitle:Ee,subTitleWrap:!0},backgroundColor:o?"transparent":void 0,padding:o?0:void 0,children:[sa(Pe,k?{status:Le.Default,message:Me,fullWidth:!0,smallIcon:!0}:{status:Le.Info,message:Xe,fullWidth:!0,smallIcon:!0}),sa(P,{$alignItems:"flex-start",children:sa(L,{options:v,selected:c,setSelected:x})}),"source"===c&&sa(Be,{multiple:!0,"data-id":`${s}-autocomplete-source`,options:t,value:f,onSelect:C,placeholder:Ve}),"namespace"===c&&sa(Be,{multiple:!0,"data-id":`${s}-autocomplete-namespace`,options:l,value:b,onSelect:S,placeholder:"Search namespace"}),"language"===c&&T.length>0&&sa(jt,{children:T.map(({id:e,label:a,Icon:t})=>{const l=y.has(e);return oa(Gt,{$selected:l,onClick:()=>$(e),children:[sa(i,{name:`${s}-lang-${e}`,size:qe.S,value:l,onChange:()=>$(e)}),sa(Jt,{children:sa(t,{size:20})}),sa(X,{size:E.XS,nowrap:!0,children:a})]},e)})})]})},il=(e,a)=>!a?.length||!!a?.find(a=>a===e),sl=({title:e="Signals",required:a,errorMessage:t,allowedSignals:l,selectedSignals:r,setSelectedSignals:n,disabled:s})=>{const[o,d]=Ea(1===r.length),c=Ba(JSON.stringify(r));Va(()=>{let e=Ue(r).filter(e=>il(e,l));e.length||(e=Ke.filter(({id:e})=>il(e,l)).map(({id:e})=>e));const a=JSON.stringify(e);c.current!==a&&(c.current=a,n(e),d(1===e.length))},[l,r]);return oa(P,{$gap:12,children:[sa(M,{label:e,required:a}),sa(A,{$gap:12,children:Ke.map(e=>{const a=il(e.id,l),t=((e,a)=>!!a?.find(a=>a===e))(e.id,r);return a?sa(i,{label:e.value,disabled:s||!a||o&&t,value:t,onChange:a=>((e,a)=>{const t=e,l=a?[...r,t]:r.filter(e=>e!==t);n(l),d(1===l.length)})(e.id,a)},e.id):null})}),sa(Fe,{errorMessage:t})]})},ol=({minSupportedVersion:a,currentVersion:t})=>sa(e,{isOpen:!0,onClose:()=>{},relativeToParent:!0,visual:()=>sa(We,{scale:2.4,icon:()=>sa("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",children:sa("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: ${t}.`}),dl=Ga.div`
105
- display: flex;
106
- flex-direction: column;
107
- justify-content: flex-end;
108
- width: ${({$width:e})=>e};
109
- gap: ${({$columnHasHeader:e})=>e?"0":"12px"};
110
- `,cl=Ga.div`
111
- display: flex;
112
- align-items: center;
113
- min-height: 24px;
114
- padding: 12px;
115
- border-radius: 16px 16px 0 0;
116
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
117
- `,ul=Ga.div`
118
- display: flex;
119
- flex-direction: column;
120
- gap: ${({$gap:e})=>e}px;
121
- padding: 12px 12px 0 12px;
122
- width: 100%;
123
- height: ${({$heightOffset:e,$columnHasHeader:a})=>`calc(100vh - 180px - ${e}px ${a?"- 48px":""})`};
124
- border-radius: ${({$columnHasHeader:e,$isLeft:a,$isRight:t})=>e?a?"0 0 0 16px":t?"0 16px 0 0":"0":a?"16px 0 0 16px":t?"0 16px 16px 0":"16px"};
125
- background-color: ${({theme:e})=>e.v2.colors.silver[900]};
126
- overflow-y: auto;
127
- overflow-x: hidden;
128
- `,pl=({isLeft:e,isRight:a,heightOffset:t=0,width:l,header:r,list:n})=>oa(dl,{$width:l,$columnHasHeader:!!r,children:[r&&sa(cl,{children:r}),sa(ul,{$gap:8,$isLeft:e,$isRight:a,$heightOffset:t,$columnHasHeader:!!r,children:n.length?n.length>1?sa(Ye,{gap:8,elements:n}):sa(da,{children:n[0]}):sa(Qe,{$height:"100%",children:sa(Ze,{})})})]}),hl="75vw",gl=Ga.div`
129
- display: flex;
130
- flex-direction: column;
131
- border-radius: 16px;
132
- background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
133
- overflow: hidden;
134
- `,ml=Ga.div`
135
- display: flex;
136
- gap: 12px;
137
- padding: 16px 16px 0 16px;
138
- background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
139
- position: sticky;
140
- top: 0;
141
- `,vl=Ga.div`
142
- padding: 12px 12px 0 12px;
143
- `,fl=Ga.div`
144
- display: flex;
145
- gap: 12px;
146
- padding: 16px;
147
- `,bl=Ga.div`
148
- padding: 5vh 10vw;
149
- border-radius: 12px;
150
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
151
- `,yl=qa(({isOpen:t,withOverlay:l,disableAnimation:r,onClose:n,onBack:i,onNext:s,nextIsSkip:o,onSave:d,disableSave:c,connectionIds:u,header:p,subHeader:h,leftColumn:g,rightColumn:m,search:v,filters:f,errorMessage:b,isFormDirty:y,hideDirtyNote:x,isFetching:C,progress:S},$)=>{const[k,T]=Ea(!1),[w,A]=Ea(!1),[P,M]=Ea(void 0);ja($,()=>({clearErrors:()=>M(void 0)}));const L=w,I=Ha(()=>{y&&!k?T(!0):(T(!1),n?.())},[y,k,n]),O=c||w||"boolean"==typeof y&&!y,D=Ha(async()=>{A(!0);const e=await d();A(!1),!1!==e&&(e?.error?M(e.error):(u?.setValue([]),n?.()))},[d,u,n]),z=!!v||!!u||!!f,N=!!h,X=(z?48:0)+(N?50:0),R=Ra(()=>C?{status:Le.Info,message:"Fetching Data..."}:w&&!S?{status:Le.Info,message:"Saving Changes..."}:P||b?{status:Le.Error,message:P||b}:"boolean"==typeof y&&y&&!x?{status:Le.Info,message:'The values don\'t reflect the current configurations of the selected clusters.\n"Save" will override the current configurations.'}:"boolean"!=typeof y||y||x?void 0:{status:Le.Success,message:"The values reflect the current configuration of the selected cluster."},[C,w,S,P,b,y,x]),H=Ra(()=>i?{label:"Back",leftIcon:La,variant:a.Secondary,onClick:i}:{label:"Cancel",variant:a.Secondary,onClick:I,disabled:L},[i,I,L]),[B,V]=Ea(!1),q=Ra(()=>s?o?{"data-id":"wide-drawer-skip",label:"Skip",rightIcon:Ia,variant:a.Secondary,onClick:()=>V(!0)}:{"data-id":"wide-drawer-next",label:"Next",rightIcon:Ia,variant:a.Primary,onClick:s}:{"data-id":"wide-drawer-save",label:"Save",variant:a.Primary,onClick:D,disabled:O},[s,o,D,O]);return oa(_e,{width:hl,isOpen:t,disableAnimation:r,hideOverlay:!w&&!l,header:{...p,onClose:n?I:void 0,onCloseDisabled:L},footer:{note:R,actions:[H,q]},children:[w?sa(Qe,{$height:"calc(100vh - 136px)",children:sa(bl,{children:sa(ea,{titleSize:E.S,subTitleSize:E.XXXS,withGradient:!0,withSpinner:!0,...S})})}):oa(gl,{children:[z&&oa(ml,{children:[u&&sa(aa,{icon:Oa,title:"Selected Clusters",badge:{label:u.value.length}}),v&&sa(ta,{width:"100%",...v}),f]}),N&&sa(vl,{children:sa(aa,{icon:h.icon,title:h.title,subTitle:h.description,badge:h.badge})}),oa(fl,{children:[sa(pl,{isLeft:!0,heightOffset:X,...g}),sa(pl,{isRight:!0,heightOffset:X,...m})]})]}),sa(Ua,{isOpen:k,onClose:()=>T(!1),onApprove:I}),sa(e,{title:"Skip setup?",description:"Without completing setup, Odigos won't be able to collect and send your telemetry data. This may interrupt your data flow and limit the platform's ability to provide value.",isOpen:B,onClose:()=>V(!1),denyButton:{label:"Go Back",variant:a.Secondary,onClick:()=>V(!1)},approveButton:{label:"Skip",variant:a.Primary,onClick:()=>{s?.(),V(!1)}}})]})});yl.displayName=yl.name;const xl=Ga.div`
152
- padding: 0 24px;
153
- border-radius: 12px;
154
- background-color: ${({$codeBgColor:e})=>e||"transparent"};
155
- `,Cl=({title:e="YAML",yaml:t,defaultOpen:l,fullHeight:r,bgTint:n="1000",codeBgColor:i})=>{const{clickCopy:s,isCopied:o}=la(),d=Ra(()=>t?[{id:na(),type:ra.Button,buttonProps:{variant:a.Text,size:m.S,leftIcon:o?Da:za,onClick:()=>s(t||""),disabled:o}}]:[],[t,o]);return sa(Ae,{bgTint:n,richTitle:{icon:Na,title:e},actions:d,withCollapse:!0,collapseIsDefaultOpen:l,fullHeight:r,children:sa(xl,{$codeBgColor:i,children:t?sa(ia,{code:t,language:"yaml",theme:"duotoneDark"}):sa(Qe,{children:sa(Ze,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{Qa as A,Ua as C,Fa as D,tt as I,nt as N,Tt as O,st as P,Rt as R,sl as S,ol as U,yl as W,Cl as Y,al as a,rt as b,qt as c,Vt as d,dt as e,Lt as f,Ka as g,lt as h,hl as i,it as j};
@@ -1,17 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { AggregatedServiceMap } from '@/types';
3
- export type DrawerState = {
4
- type: 'node';
5
- graphKey: string;
6
- } | {
7
- type: 'edge';
8
- sourceKey: string;
9
- targetKey: string;
10
- } | null;
11
- interface Props {
12
- drawerState: DrawerState;
13
- aggregatedData: AggregatedServiceMap;
14
- onClose: () => void;
15
- }
16
- export declare const ServiceMapDrawer: FC<Props>;
17
- export {};
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import '@xyflow/react/dist/style.css';
3
- import { type Edge, type Node, type OnEdgesChange, type OnNodesChange } from '@xyflow/react';
4
- interface Props {
5
- nodes: Node[];
6
- edges: Edge[];
7
- onNodesChange: OnNodesChange<Node>;
8
- onEdgesChange: OnEdgesChange<Edge>;
9
- fitViewTrigger?: number;
10
- zoomOnScroll?: boolean;
11
- onEdgeClick?: (event: React.MouseEvent, edge: Edge) => void;
12
- onNodeMouseEnter?: (event: React.MouseEvent, node: Node) => void;
13
- onNodeMouseLeave?: (event: React.MouseEvent, node: Node) => void;
14
- onRefresh?: () => void;
15
- }
16
- export declare const Flow: React.FC<Props>;
17
- export {};
@@ -1,3 +0,0 @@
1
- export * from './flow';
2
- export * from './nodes/map-item-node';
3
- export * from './nodes/no-data-node';
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { type Node, type NodeProps } from '@xyflow/react';
3
- import { NodeTypes, type AggregatedService, StatusType, type SVG } from '@/types';
4
- type MapItemNodeProps = NodeProps<Node<{
5
- id: string;
6
- title: string;
7
- icons: SVG[];
8
- isVirtual?: boolean;
9
- status?: StatusType;
10
- aggService?: AggregatedService;
11
- }, NodeTypes.Base>>;
12
- declare const MapItemNode: React.FC<MapItemNodeProps>;
13
- export { MapItemNode, type MapItemNodeProps };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { NodeTypes } from '@/types';
3
- import { type Node, type NodeProps } from '@xyflow/react';
4
- type NoDataNodeProps = NodeProps<Node<{
5
- title?: string;
6
- subTitle?: string;
7
- }, NodeTypes.Base>>;
8
- declare const NoDataNode: React.FC<NoDataNodeProps>;
9
- export { NoDataNode, type NoDataNodeProps };
@@ -1,11 +0,0 @@
1
- import { NodeTypes } from '@/types';
2
- export interface ActiveNodeStoreState {
3
- activeNodeType: NodeTypes | null;
4
- activeNodeId: string | null;
5
- }
6
- interface ActiveNodeStoreStateSetters {
7
- setActiveNodeType: (value: ActiveNodeStoreState['activeNodeType']) => void;
8
- setActiveNodeId: (value: ActiveNodeStoreState['activeNodeId']) => void;
9
- }
10
- export declare const useActiveNodeStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ActiveNodeStoreState & ActiveNodeStoreStateSetters>>;
11
- export {};
@@ -1,21 +0,0 @@
1
- export declare enum NodeTypes {
2
- Header = "header",
3
- Add = "add",
4
- Base = "base",
5
- Edged = "edged",
6
- Frame = "frame",
7
- Scroll = "scroll",
8
- Skeleton = "skeleton",
9
- MapItem = "map-item",
10
- NoData = "no-data",
11
- OdiLogo = "odilogo"
12
- }
13
- export declare enum EdgeTypes {
14
- Labeled = "labeled"
15
- }
16
- export declare enum AddNodeTypes {
17
- AddRule = "addRule",
18
- AddSource = "addSource",
19
- AddAction = "addAction",
20
- AddDestination = "addDestination"
21
- }