@odigos/ui-kit 0.0.283 → 0.0.284
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 +7 -0
- package/lib/chunks/{helpers-BfXS2wve.js → helpers-DqYXvhEu.js} +1 -1
- package/lib/chunks/{index--HGLHoM2.js → index-DxXpZafj.js} +1 -1
- package/lib/chunks/{source-instrument-form-context-CNsR2QcD.js → source-instrument-form-context-BPXm6ufr.js} +1 -1
- package/lib/chunks/{ui-components-DLU_wMXv.js → ui-components-M0c3qdR2.js} +207 -207
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_modals/sampling-onboarding-modal/common/chrome.d.ts +10 -6
- package/lib/containers/_modals/sampling-onboarding-modal/common/section.d.ts +3 -3
- package/lib/containers.js +134 -134
- package/lib/contexts.js +1 -1
- package/lib/functions/index.d.ts +0 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/sampling-rule-form-sections/styled.d.ts +2 -2
- 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 +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.284](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.283...ui-kit-v0.0.284) (2026-08-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* bump UI deps (PLAT-1377) ([#1162](https://github.com/odigos-io/ui-kit/issues/1162)) ([61f3ce1](https://github.com/odigos-io/ui-kit/commit/61f3ce110064806b3f1d2fc8997953b77df87a56))
|
|
9
|
+
|
|
3
10
|
## [0.0.283](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.282...ui-kit-v0.0.283) (2026-08-04)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -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-M0c3qdR2.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 a,Fragment as t}from"react/jsx-runtime";import{D as l,c as r,F as n,d as i,e as o,f as s,g as c,h as d,B as u,i as p,j as h,k as g,W as m,l as v,m as b,V as f,n as y,o as x,p as C,q as k,r as S,C as T,s as $,u as w,I as M,v as A,w as O,x as L,y as P,z as E,N as I,E as R,S as N,G as V,H as D,U as z,J as X,K as H,L as _,M as B,O as q,Q as j,X as K,Y as U,Z as G,_ as F,$ as W,a0 as J,a1 as Y,a2 as Z,a3 as Q,a4 as ee,T as ae,a5 as te,a6 as le,a7 as re,a8 as ne,a9 as ie,aa as oe,ab as se,ac as ce,ad as de,ae as ue,af as pe,ag as he,ah as ge,b as me,ai as ve,aj as be,ak as fe,al as ye,am as xe,an as Ce,ao as ke,ap as Se,aq as Te,ar as $e,as as we,at as Me,au as Ae,av as Oe,aw as Le,ax as Pe,ay as Ee,az as Ie,aA as Re,aB as Ne,aC as Ve,aD as De,aE as ze,aF as Xe,aG as He,aH as _e,aI as Be,aJ as qe,aK as je,aL as Ke,aM as Ue,aN as Ge,aO as Fe,aP as We,aQ as Je,aR as Ye,aS as Ze,aT as Qe,aU as ea,aV as aa,aW as ta,aX as la,aY as ra,aZ as na,a_ as ia,a$ as oa,b0 as sa,b1 as ca,b2 as da,R as ua,b3 as pa,b4 as ha,A as ga,b5 as ma,b6 as va}from"./ui-components-
|
|
1
|
+
import{jsx as e,jsxs as a,Fragment as t}from"react/jsx-runtime";import{D as l,c as r,F as n,d as i,e as o,f as s,g as c,h as d,B as u,i as p,j as h,k as g,W as m,l as v,m as b,V as f,n as y,o as x,p as C,q as k,r as S,C as T,s as $,u as w,I as M,v as A,w as O,x as L,y as P,z as E,N as I,E as R,S as N,G as V,H as D,U as z,J as X,K as H,L as _,M as B,O as q,Q as j,X as K,Y as U,Z as G,_ as F,$ as W,a0 as J,a1 as Y,a2 as Z,a3 as Q,a4 as ee,T as ae,a5 as te,a6 as le,a7 as re,a8 as ne,a9 as ie,aa as oe,ab as se,ac as ce,ad as de,ae as ue,af as pe,ag as he,ah as ge,b as me,ai as ve,aj as be,ak as fe,al as ye,am as xe,an as Ce,ao as ke,ap as Se,aq as Te,ar as $e,as as we,at as Me,au as Ae,av as Oe,aw as Le,ax as Pe,ay as Ee,az as Ie,aA as Re,aB as Ne,aC as Ve,aD as De,aE as ze,aF as Xe,aG as He,aH as _e,aI as Be,aJ as qe,aK as je,aL as Ke,aM as Ue,aN as Ge,aO as Fe,aP as We,aQ as Je,aR as Ye,aS as Ze,aT as Qe,aU as ea,aV as aa,aW as ta,aX as la,aY as ra,aZ as na,a_ as ia,a$ as oa,b0 as sa,b1 as ca,b2 as da,R as ua,b3 as pa,b4 as ha,A as ga,b5 as ma,b6 as va}from"./ui-components-M0c3qdR2.js";import{VIcon as ba,TrashIcon as fa,PlusIcon as ya,VSquareIcon as xa,XSquareIcon as Ca,EditIcon as ka,OdigosLogoTextCentral as Sa,OdigosLogoTextEnterprise as Ta,OdigosLogoTextCommunity as $a,OdigosLogoTextColoredCentral as wa,OdigosLogoTextColoredEnterprise as Ma,OdigosLogoTextColoredCommunity as Aa,ArrowLeftIcon as Oa,ArrowRightIcon as La,CopyIcon as Pa,YamlIcon as Ea}from"../icons.js";import Ia,{useMemo as Ra,useRef as Na,useCallback as Va,useState as Da,useEffect as za,Fragment as Xa,forwardRef as Ha,useImperativeHandle as _a}from"react";import Ba,{css as qa,useTheme as ja}from"styled-components";import{i as Ka,m as Ua,u as Ga,n as Fa,a as Wa,C as Ja,b as Ya,d as Za,e as Qa,f as et,g as at,h as tt,j as lt,k as rt}from"./helpers-DqYXvhEu.js";const nt=/^[a-zA-Z]$/,it=new Set(["*","+","?"]),ot=new Set(["^","$"]),st={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"},ct=Ba.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}from"react/jsx-runtime";import{useMemo as t,useContext as r,createContext as a,useCallback as n,useState as o,useEffect as s,useRef as i}from"react";import{t as c,b7 as l,b8 as d,m as u,S as m,b9 as p,ba as f,bb as E,P as y,bc as h,bd as S,be as T,bf as g,bg as _,bh as I,bi as A,bj as R,bk as v,bl as C,bm as N,aZ as O,bn as D,bo as b,n as w,bp as P,bq as L,br as k,bs as F,bt as G,bu as U,v as M,bv as x,bw as H,ae as K,aa as W,ac as $,ab as V,ad as Y,a9 as j,bx as q,b as B}from"./ui-components-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useMemo as t,useContext as r,createContext as a,useCallback as n,useState as o,useEffect as s,useRef as i}from"react";import{t as c,b7 as l,b8 as d,m as u,S as m,b9 as p,ba as f,bb as E,P as y,bc as h,bd as S,be as T,bf as g,bg as _,bh as I,bi as A,bj as R,bk as v,bl as C,bm as N,aZ as O,bn as D,bo as b,n as w,bp as P,bq as L,br as k,bs as F,bt as G,bu as U,v as M,bv as x,bw as H,ae as K,aa as W,ac as $,ab as V,ad as Y,a9 as j,bx as q,b as B}from"./ui-components-M0c3qdR2.js";import{i as Q,n as z,m as J,l as X,o as Z,p as ee,v as te,q as re,u as ae}from"./helpers-DqYXvhEu.js";import{ApolloProvider as ne,useLazyQuery as oe,useApolloClient as se,useQuery as ie}from"@apollo/client/react";import{ErrorLink as ce}from"@apollo/client/link/error";import{SetContextLink as le}from"@apollo/client/link/context";import{getMainDefinition as de}from"@apollo/client/utilities";import{CombinedGraphQLErrors as ue,ServerError as me}from"@apollo/client/errors";import{HttpLink as pe,ApolloLink as fe,ApolloClient as Ee,InMemoryCache as ye,gql as he}from"@apollo/client";const Se=e=>{if(!e)return!1;const t=e.toLowerCase();return t.includes("authentication required")||t.includes("authentication expired")||t.includes("http 401")},Te=a(null),ge=()=>{const e=r(Te);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},_e=({apolloConfig:r,operations:a,context:n,children:o})=>{const s=t(()=>(e=>{const t=new pe({uri:e.httpUrl,credentials:e.credentials??"same-origin"}),r=new ce(({error:t})=>{ue.is(t)?t.errors.some(e=>Se(e.message))&&e.onAuthError?.():(me.is(t)&&401===t.statusCode||Se(t.message))&&e.onAuthError?.()}),a=new le(async t=>{const r={...t.headers};if(e.authHeader){const t=await e.authHeader();Object.assign(r,t)}return e.csrfHeader&&Object.assign(r,e.csrfHeader()),{headers:r}}),n=[];e.additionalLinks?.length&&n.push(...e.additionalLinks),n.push(a,r,t);let o=fe.from(n);e.wsLink&&(o=fe.split(({query:e})=>{const t=de(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},e.wsLink,o));const s=e.defaultFetchPolicies;return new Ee({link:o,cache:new ye({typePolicies:e.cacheTypePolicies}),defaultOptions:{watchQuery:{fetchPolicy:s?.watchQuery??"cache-and-network"},query:{fetchPolicy:s?.query??"cache-first"},mutate:{fetchPolicy:s?.mutate??"network-only"}}})})(r),[r.httpUrl,r.wsLink,r.credentials,r.clientKey]),i=t(()=>({operations:a,context:n,apolloConfig:r}),[a,n,r]);return e(ne,{client:s,children:e(Te.Provider,{value:i,children:o})})},Ie=Te,Ae=e=>e.map(e=>`${e.id}:${e.odigosVersion}:${e.type}`).join(","),Re=(e,t,r)=>{const a=t.length?t.map(e=>e.id):r??[],n={...e,connectionIds:a};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}},ve=({connections:r,connectionIds:a,children:n})=>{const o=ge(),s=t(()=>({operations:o.operations,context:Re(o.context,r,a),apolloConfig:o.apolloConfig}),[o.operations,o.context,o.apolloConfig,Ae(r),a?.join(",")]);return e(Ie.Provider,{value:s,children:n})},Ce=(e,t)=>{if(e)return"string"==typeof e?e:p(e,t)},Ne=e=>{const{addNotification:t}=l(),r=(r,a,n,o,s)=>t({type:r,title:a,message:n,crdType:e,target:Ce(o,e),hideFromHistory:s});return{notify:r,notifyError:(e,t,a)=>r(m.Error,e,t,a),notifySuccess:(e,t,a)=>r(m.Success,e,t,a),notifyPending:(e,t)=>r(m.Default,"Pending",e,t,!0),notifyReadonly:()=>{t({type:m.Warning,title:u.READONLY,message:d.READONLY_WARNING,hideFromHistory:!0})}}},Oe=e=>{e({type:m.Warning,title:u.READONLY,message:d.READONLY_WARNING,hideFromHistory:!0})},De=e=>({error:e,results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:0}),be=(e,t)=>{if(e)return"function"==typeof e?e(t):e},we=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)},Pe=(e,t)=>e.client??t,Le=async(e,t,r,a,n)=>{if(!t)return{error:"Query operation not configured"};if(t.canRun&&!t.canRun(a))return{data:void 0};if(t.run)try{return await t.run(Pe(t,e),r,a)}catch(e){return{error:we(e)}}const o=be(t.document,a);if(!o)return{error:"Query operation not supported in this context"};const s=t.transformVariables?t.transformVariables(r,a):r,i=Pe(t,e);try{const e=await i.query({query:o,variables:s,fetchPolicy:n??"network-only"});return{data:t.transformResult?t.transformResult(e.data,a):e.data,error:e.error?we(e.error):void 0}}catch(e){return{error:we(e)}}},ke=async(e,t,r,a)=>{if(!t)return{error:"Mutation operation not configured"};if(t.canRun&&!t.canRun(a))return{error:"Mutation operation not supported in this context"};if(t.run)try{return await t.run(Pe(t,e),r,a)}catch(e){return{error:we(e)}}const n=be(t.document,a);if(!n)return{error:"Mutation operation not supported in this context"};const o=t.transformVariables?t.transformVariables(r,a):r,s=Pe(t,e);try{const e=await s.mutate({mutation:n,variables:o});return{data:t.transformResult?t.transformResult(e.data,a):e.data,error:void 0}}catch(e){return{error:we(e)}}},Fe=async(e,t,r,a,n)=>{if(!t)return De("Multi fetch operation not configured");if(!r.length)return De("No proxy ids supplied for multi fetch");const o=Pe(t,e);if(t.transformVariablesMulti&&(t.documentMulti||t.document)){const e=t.transformVariablesMulti(r,a,n),s=[];for(const r of e)try{const e=await o.query({query:r.document,variables:r.variables,fetchPolicy:"network-only"});t.transformMultiResult?t.transformMultiResult(e.data,n).forEach(e=>s.push(e)):r.proxyIDs.forEach(t=>{s.push({proxyID:t,success:!e.error,data:e.data,error:e.error?.message})})}catch(e){const t=we(e);r.proxyIDs.forEach(e=>s.push({proxyID:e,success:!1,error:t}))}const i=s.filter(e=>e.success).length,c=s.length-i,l=Array.from(new Set(s.filter(e=>!!e.error).map(e=>e.error)));return{results:s,allSucceeded:0===c,anySucceeded:i>0,successCount:i,failureCount:c,error:l.length?l.join(", "):void 0}}const s=await Promise.all(r.map(async r=>{const o={...n,proxyID:r},s=await Le(e,t,a,o);return{proxyID:r,success:!s.error,data:s.data,error:s.error}})),i=s.filter(e=>e.success).length,c=s.length-i,l=Array.from(new Set(s.filter(e=>!!e.error).map(e=>e.error)));return{results:s,allSucceeded:0===c,anySucceeded:i>0,successCount:i,failureCount:c,error:l.length?l.join(", "):void 0}},Ge=he`
|
|
2
2
|
query OdigosApiNoop {
|
|
3
3
|
__typename
|
|
4
4
|
}
|