@odigos/ui-kit 0.0.300 → 0.0.302
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 +14 -0
- package/lib/chunks/{helpers-BwRnPdlh.js → helpers-Cmb73F-0.js} +1 -1
- package/lib/chunks/{index-nYW7_cdJ.js → index-qbo6uYzO.js} +1 -1
- package/lib/chunks/{source-instrument-form-context-Rz3TBYRM.js → source-instrument-form-context-BgWxz1X_.js} +1 -1
- package/lib/chunks/{ui-components-DObOt6F8.js → ui-components-Bf4VGszc.js} +52 -54
- package/lib/components/table/styled.d.ts +5 -0
- package/lib/components/table/table-columns/index.d.ts +1 -0
- package/lib/components/table/table-rows/index.d.ts +1 -0
- package/lib/components/table/types.d.ts +6 -0
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers.js +529 -531
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/insights/index.d.ts +2 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.302](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.301...ui-kit-v0.0.302) (2026-09-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **table:** lay rows out at the full column width ([#1316](https://github.com/odigos-io/ui-kit/issues/1316)) ([32f642f](https://github.com/odigos-io/ui-kit/commit/32f642f8fdcf9eb2f318f7b6fb9172a6848d278e))
|
|
9
|
+
|
|
10
|
+
## [0.0.301](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.300...ui-kit-v0.0.301) (2026-09-15)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **insights:** show finding summary in the findings list (PLAT-1503) ([#1314](https://github.com/odigos-io/ui-kit/issues/1314)) ([1f701fc](https://github.com/odigos-io/ui-kit/commit/1f701fc372239aadd4bd0ac35ea53f2595a98eb4))
|
|
16
|
+
|
|
3
17
|
## [0.0.300](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.299...ui-kit-v0.0.300) (2026-09-10)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{Fragment as n,useMemo as o,useContext as a,createContext as s}from"react";import{T as i,t as u,b as l,P as c}from"./ui-components-
|
|
1
|
+
import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{Fragment as n,useMemo as o,useContext as a,createContext as s}from"react";import{T as i,t as u,b as l,P as c}from"./ui-components-Bf4VGszc.js";import p from"styled-components";var d;(e=>{e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"})(d||(d={}));const f=[d.Action,d.Endpoint,d.Scope,d.Duration],h=p.span`
|
|
2
2
|
font-family: ${({theme:e,$isMono:t})=>t?e.font_family.secondary:e.font_family.primary};
|
|
3
3
|
font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
|
|
4
4
|
line-height: 20px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import o,{css as r,useTheme as s}from"styled-components";import l from"elkjs/lib/elk.bundled.js";import i,{useMemo as n,useRef as c,useCallback as p,useState as d,memo as u,useEffect as h,Fragment as g,forwardRef as m,useImperativeHandle as f}from"react";import{Handle as v,Position as y,useReactFlow as b,ReactFlowProvider as C,ReactFlow as x,Background as $,getSmoothStepPath as w,BaseEdge as S,EdgeLabelRenderer as k,MarkerType as F}from"@xyflow/react";import{D as T,c as O,F as M,d as B,e as P,f as L,g as A,h as _,B as E,i as I,j as N,k as R,u as V,l as z,m as X,C as D,N as H,n as U,W as j,o as G,p as q,q as K,r as W,s as Y,v as Z,w as J,x as Q,I as ee,y as te,z as ae,E as oe,G as re,H as se,J as le,K as ie,S as ne,L as ce,M as pe,U as de,O as ue,Q as he,V as ge,X as me,Y as fe,Z as ve,_ as ye,$ as be,a0 as Ce,a1 as xe,a2 as $e,a3 as we,a4 as Se,a5 as ke,a6 as Fe,a7 as Te,T as Oe,a8 as Me,a9 as Be,aa as Pe,ab as Le,ac as Ae,ad as _e,ae as Ee,af as Ie,ag as Ne,ah as Re,ai as Ve,aj as ze,ak as Xe,b as De,al as He,am as Ue,an as je,ao as Ge,ap as qe,aq as Ke,ar as We,as as Ye,at as Ze,au as Je,av as Qe,aw as et,ax as tt,ay as at,az as ot,aA as rt,aB as st,aC as lt,aD as it,aE as nt,aF as ct,aG as pt,aH as dt,aI as ut,aJ as ht,aK as gt,aL as mt,aM as ft,aN as vt,aO as yt,aP as bt,aQ as Ct,aR as xt,aS as $t,aT as wt,aU as St,aV as kt,aW as Ft,aX as Tt,aY as Ot,aZ as Mt,a_ as Bt,a$ as Pt,b0 as Lt,b1 as At,b2 as _t,b3 as Et,b4 as It,b5 as Nt,b6 as Rt,R as Vt,b7 as zt,b8 as Xt,b9 as Dt,A as Ht,ba as Ut,bb as jt,bc as Gt}from"./ui-components-
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import o,{css as r,useTheme as s}from"styled-components";import l from"elkjs/lib/elk.bundled.js";import i,{useMemo as n,useRef as c,useCallback as p,useState as d,memo as u,useEffect as h,Fragment as g,forwardRef as m,useImperativeHandle as f}from"react";import{Handle as v,Position as y,useReactFlow as b,ReactFlowProvider as C,ReactFlow as x,Background as $,getSmoothStepPath as w,BaseEdge as S,EdgeLabelRenderer as k,MarkerType as F}from"@xyflow/react";import{D as T,c as O,F as M,d as B,e as P,f as L,g as A,h as _,B as E,i as I,j as N,k as R,u as V,l as z,m as X,C as D,N as H,n as U,W as j,o as G,p as q,q as K,r as W,s as Y,v as Z,w as J,x as Q,I as ee,y as te,z as ae,E as oe,G as re,H as se,J as le,K as ie,S as ne,L as ce,M as pe,U as de,O as ue,Q as he,V as ge,X as me,Y as fe,Z as ve,_ as ye,$ as be,a0 as Ce,a1 as xe,a2 as $e,a3 as we,a4 as Se,a5 as ke,a6 as Fe,a7 as Te,T as Oe,a8 as Me,a9 as Be,aa as Pe,ab as Le,ac as Ae,ad as _e,ae as Ee,af as Ie,ag as Ne,ah as Re,ai as Ve,aj as ze,ak as Xe,b as De,al as He,am as Ue,an as je,ao as Ge,ap as qe,aq as Ke,ar as We,as as Ye,at as Ze,au as Je,av as Qe,aw as et,ax as tt,ay as at,az as ot,aA as rt,aB as st,aC as lt,aD as it,aE as nt,aF as ct,aG as pt,aH as dt,aI as ut,aJ as ht,aK as gt,aL as mt,aM as ft,aN as vt,aO as yt,aP as bt,aQ as Ct,aR as xt,aS as $t,aT as wt,aU as St,aV as kt,aW as Ft,aX as Tt,aY as Ot,aZ as Mt,a_ as Bt,a$ as Pt,b0 as Lt,b1 as At,b2 as _t,b3 as Et,b4 as It,b5 as Nt,b6 as Rt,R as Vt,b7 as zt,b8 as Xt,b9 as Dt,A as Ht,ba as Ut,bb as jt,bc as Gt}from"./ui-components-Bf4VGszc.js";import{UserIcon as qt,DestinationIcon as Kt,HomeIcon as Wt,TrashIcon as Yt,PlusIcon as Zt,VSquareIcon as Jt,XSquareIcon as Qt,EditIcon as ea,OdigosLogoTextCentral as ta,OdigosLogoTextEnterprise as aa,OdigosLogoTextCommunity as oa,OdigosLogoTextColoredCentral as ra,OdigosLogoTextColoredEnterprise as sa,OdigosLogoTextColoredCommunity as la,ArrowLeftIcon as ia,ArrowRightIcon as na,YamlIcon as ca}from"../icons.js";import"@xyflow/react/dist/style.css";import{i as pa,m as da,u as ua,n as ha,a as ga,C as ma,b as fa,d as va,e as ya,f as ba,g as Ca,h as xa,j as $a,k as wa}from"./helpers-Cmb73F-0.js";const Sa=/^[a-zA-Z]$/,ka=new Set(["*","+","?"]),Fa=new Set(["^","$"]),Ta={group:"rgba(102, 242, 102, 0.5)","anchor-quantifier":"rgba(102, 191, 255, 0.5)","class-bracket":"rgba(255, 153, 153, 0.5)","class-content":"rgba(178, 1, 1, 0.5)",alternation:"rgba(255, 153, 153, 0.5)",literal:"transparent"},Oa=o.div`
|
|
2
2
|
padding: 8px 16px;
|
|
3
3
|
border-radius: 6px;
|
|
4
4
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useMemo as a,useContext as r,createContext as n,useCallback as o,useState as s,useEffect as i,useRef as l}from"react";import{t as c,bd as d,be as u,b3 as m,S,bf as E,bg as p,bh as T,P as I,bi as f,bj as y,bk as _,bl as h,bm as N,bn as g,bo as v,bp as A,bq as R,br as O,bs as C,bt as D,bu as G,bv as b,bw as L,bx as w,by as P,bz as U,b1 as F,bA as k,bB as M,o as H,bC as x,bD as $,bE as K,bF as V,bG as Y,bH as B,y as W,bI as j,h as q,M as z,bJ as Q,T as X,bK as J,bL as Z,bM as ee,bN as te,bO as ae,bP as re,bQ as ne,bR as oe,bS as se,bT as ie,bU as le,bV as ce,bW as de,bX as ue,bY as me,bZ as Se,b_ as Ee,b$ as pe,c0 as Te,c1 as Ie,c2 as fe,ah as ye,ad as _e,af as he,ae as Ne,ag as ge,ac as ve,c3 as Ae,b as Re}from"./ui-components-
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useMemo as a,useContext as r,createContext as n,useCallback as o,useState as s,useEffect as i,useRef as l}from"react";import{t as c,bd as d,be as u,b3 as m,S,bf as E,bg as p,bh as T,P as I,bi as f,bj as y,bk as _,bl as h,bm as N,bn as g,bo as v,bp as A,bq as R,br as O,bs as C,bt as D,bu as G,bv as b,bw as L,bx as w,by as P,bz as U,b1 as F,bA as k,bB as M,o as H,bC as x,bD as $,bE as K,bF as V,bG as Y,bH as B,y as W,bI as j,h as q,M as z,bJ as Q,T as X,bK as J,bL as Z,bM as ee,bN as te,bO as ae,bP as re,bQ as ne,bR as oe,bS as se,bT as ie,bU as le,bV as ce,bW as de,bX as ue,bY as me,bZ as Se,b_ as Ee,b$ as pe,c0 as Te,c1 as Ie,c2 as fe,ah as ye,ad as _e,af as he,ae as Ne,ag as ge,ac as ve,c3 as Ae,b as Re}from"./ui-components-Bf4VGszc.js";import{i as Oe,n as Ce,m as De,l as Ge,o as be,p as Le,v as we,q as Pe,u as Ue}from"./helpers-Cmb73F-0.js";import{ApolloProvider as Fe,useLazyQuery as ke,useApolloClient as Me,useQuery as He}from"@apollo/client/react";import{ErrorLink as xe}from"@apollo/client/link/error";import{SetContextLink as $e}from"@apollo/client/link/context";import{getMainDefinition as Ke}from"@apollo/client/utilities";import{CombinedGraphQLErrors as Ve,ServerError as Ye}from"@apollo/client/errors";import{HttpLink as Be,ApolloLink as We,ApolloClient as je,InMemoryCache as qe,gql as ze}from"@apollo/client";const Qe=e=>{if(!e)return!1;const t=e.toLowerCase();return t.includes("authentication required")||t.includes("authentication expired")||t.includes("http 401")},Xe=n(null),Je=()=>{const e=r(Xe);if(!e)throw new Error("[ui-kit] useOdigosApi() / useXxxApi() called outside of <OdigosApiProvider>. Make sure the host app mounts the provider at its layout level.");return e},Ze=({apolloConfig:t,operations:r,context:n,children:o})=>{const s=a(()=>(e=>{const t=new Be({uri:e.httpUrl,credentials:e.credentials??"same-origin"}),a=new xe(({error:t})=>{Ve.is(t)?t.errors.some(e=>Qe(e.message))&&e.onAuthError?.():(Ye.is(t)&&401===t.statusCode||Qe(t.message))&&e.onAuthError?.()}),r=new $e(async t=>{const a={...t.headers};if(e.authHeader){const t=await e.authHeader();Object.assign(a,t)}return e.csrfHeader&&Object.assign(a,e.csrfHeader()),{headers:a}}),n=[];e.additionalLinks?.length&&n.push(...e.additionalLinks),n.push(r,a,t);let o=We.from(n);e.wsLink&&(o=We.split(({query:e})=>{const t=Ke(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},e.wsLink,o));const s=e.defaultFetchPolicies;return new je({link:o,cache:new qe({typePolicies:e.cacheTypePolicies}),defaultOptions:{watchQuery:{fetchPolicy:s?.watchQuery??"cache-and-network"},query:{fetchPolicy:s?.query??"cache-first"},mutate:{fetchPolicy:s?.mutate??"network-only"}}})})(t),[t.httpUrl,t.wsLink,t.credentials,t.clientKey]),i=a(()=>({operations:r,context:n,apolloConfig:t}),[r,n,t]);return e(Fe,{client:s,children:e(Xe.Provider,{value:i,children:o})})},et=Xe,tt=e=>e.map(e=>`${e.id}:${e.odigosVersion}:${e.type}`).join(","),at=(e,t,a)=>{const r=t.length?t.map(e=>e.id):a??[],n={...e,connectionIds:r};if(!t.length||c(e.version)>0)return n;const o=t[0];return{...n,version:o.odigosVersion||e.version,platformType:o.type??e.platformType}},rt=({connections:t,connectionIds:r,children:n})=>{const o=Je(),s=a(()=>({operations:o.operations,context:at(o.context,t,r),apolloConfig:o.apolloConfig}),[o.operations,o.context,o.apolloConfig,tt(t),r?.join(",")]);return e(et.Provider,{value:s,children:n})},nt=(e,t)=>{if(e)return"string"==typeof e?e:E(e,t)},ot=e=>{const{addNotification:t}=d(),a=(a,r,n,o,s)=>t({type:a,title:r,message:n,crdType:e,target:nt(o,e),hideFromHistory:s});return{notify:a,notifyError:(e,t,r)=>a(S.Error,e,t,r),notifySuccess:(e,t,r)=>a(S.Success,e,t,r),notifyPending:(e,t)=>a(S.Default,"Pending",e,t,!0),notifyReadonly:()=>{t({type:S.Warning,title:m.READONLY,message:u.READONLY_WARNING,hideFromHistory:!0})}}},st=e=>{e({type:S.Warning,title:m.READONLY,message:u.READONLY_WARNING,hideFromHistory:!0})},it=e=>({error:e,results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:0}),lt=(e,t)=>{if(e)return"function"==typeof e?e(t):e},ct=e=>{if(!e)return"Unknown error";if(e instanceof Error)return e.cause instanceof Error?e.cause.message:e.message;if("object"==typeof e){const t=e;return t.cause?.message||t.message||String(e)}return String(e)},dt=(e,t)=>e.client??t,ut=async(e,t,a,r,n)=>{if(!t)return{error:"Query operation not configured"};if(t.canRun&&!t.canRun(r))return{data:void 0};if(t.run)try{return await t.run(dt(t,e),a,r)}catch(e){return{error:ct(e)}}const o=lt(t.document,r);if(!o)return{error:"Query operation not supported in this context"};const s=t.transformVariables?t.transformVariables(a,r):a,i=dt(t,e);try{const e=await i.query({query:o,variables:s,fetchPolicy:n??"network-only"});return{data:t.transformResult?t.transformResult(e.data,r):e.data,error:e.error?ct(e.error):void 0}}catch(e){return{error:ct(e)}}},mt=async(e,t,a,r)=>{if(!t)return{error:"Mutation operation not configured"};if(t.canRun&&!t.canRun(r))return{error:"Mutation operation not supported in this context"};if(t.run)try{return await t.run(dt(t,e),a,r)}catch(e){return{error:ct(e)}}const n=lt(t.document,r);if(!n)return{error:"Mutation operation not supported in this context"};const o=t.transformVariables?t.transformVariables(a,r):a,s=dt(t,e);try{const e=await s.mutate({mutation:n,variables:o});return{data:t.transformResult?t.transformResult(e.data,r):e.data,error:void 0}}catch(e){return{error:ct(e)}}},St=async(e,t,a,r,n)=>{if(!t)return it("Multi fetch operation not configured");if(!a.length)return it("No proxy ids supplied for multi fetch");const o=dt(t,e);if(t.transformVariablesMulti&&(t.documentMulti||t.document)){const e=t.transformVariablesMulti(a,r,n),s=[];for(const a of e)try{const e=await o.query({query:a.document,variables:a.variables,fetchPolicy:"network-only"});t.transformMultiResult?t.transformMultiResult(e.data,n).forEach(e=>s.push(e)):a.proxyIDs.forEach(t=>{s.push({proxyID:t,success:!e.error,data:e.data,error:e.error?.message})})}catch(e){const t=ct(e);a.proxyIDs.forEach(e=>s.push({proxyID:e,success:!1,error:t}))}const i=s.filter(e=>e.success).length,l=s.length-i,c=Array.from(new Set(s.filter(e=>!!e.error).map(e=>e.error)));return{results:s,allSucceeded:0===l,anySucceeded:i>0,successCount:i,failureCount:l,error:c.length?c.join(", "):void 0}}const s=await Promise.all(a.map(async a=>{const o={...n,proxyID:a},s=await ut(e,t,r,o);return{proxyID:a,success:!s.error,data:s.data,error:s.error}})),i=s.filter(e=>e.success).length,l=s.length-i,c=Array.from(new Set(s.filter(e=>!!e.error).map(e=>e.error)));return{results:s,allSucceeded:0===l,anySucceeded:i>0,successCount:i,failureCount:l,error:c.length?c.join(", "):void 0}},Et=ze`
|
|
2
2
|
query OdigosApiNoop {
|
|
3
3
|
__typename
|
|
4
4
|
}
|