@odigos/ui-kit 0.0.114 → 0.0.115

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.115](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.114...ui-kit-v0.0.115) (2025-10-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * do not reset state on-click new stream ([f694463](https://github.com/odigos-io/ui-kit/commit/f694463db64c67bab6921618490af79d0cf50242))
9
+
3
10
  ## [0.0.114](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.113...ui-kit-v0.0.114) (2025-10-20)
4
11
 
5
12
 
package/lib/containers.js CHANGED
@@ -108,7 +108,7 @@ import e,{useState as t,useEffect as o,forwardRef as i,useRef as n,useImperative
108
108
  width: 100%;
109
109
  `,Fn=d.div`
110
110
  width: 100%;
111
- `,Rn=({onClickNewDataStream:o,updateDataStream:i,deleteDataStream:n})=>{const a=I.useTheme(),{dataStreams:r,selectedStreamName:s,setSelectedStreamName:c}=He(),{popupRef:d,popupOpen:u,setPopupOpen:p,popupPosition:m,handlePosition:h}=Je(),[g,y]=t(""),[v,f]=t(""),[b,C]=t(""),$=l(()=>r.filter(({name:e})=>!b||e.toLowerCase().includes(b.toLowerCase())).map(({name:t})=>e.createElement(An,{key:`stream-${t}`},e.createElement(Fn,null,e.createElement(Xe,{label:t,isSelected:s===t,onClick:()=>{c(t),p(!1)},color:"transparent",style:{width:"100%",justifyContent:"flex-start"}})),t!==ct&&e.createElement(dt,{onClick:()=>f(t),tooltip:K.DELETE},e.createElement(ko,null)),e.createElement(dt,{onClick:()=>y(t),tooltip:K.EDIT},e.createElement($o,null)))),[r,s,b]);return e.createElement(e.Fragment,null,e.createElement(In,null,e.createElement(En,{$gap:0},e.createElement(at,{variant:"tertiary",onClick:()=>{h(0,50),p(e=>!e)}},e.createElement(No,{fill:a.text.info}),e.createElement(On,null,"Data Stream: ",s),e.createElement(ut,{extend:u}),e.createElement(Te,{label:r.length})),e.createElement(le,{orientation:"vertical",length:"32px",thickness:2,margin:"0"}),e.createElement(pt,{onClick:()=>{c(""),o()},label:K.NEW})),e.createElement(Ye,{ref:d,isOpen:u,top:m.top,left:m.left,header:e.createElement(x,{placeholder:"Search...",icon:wo,value:b,onChange:e=>C(e.target.value)})},e.createElement(Mn,null,$))),e.createElement(z,{isOpen:""!==v,name:v,onApprove:()=>{n(v),f("")},onDeny:()=>{f("")}}),e.createElement(Tn,{isOpen:""!==g,onClose:()=>{y("")},dataStreamName:g,updateDataStream:i}))},Ln=d.div`
111
+ `,Rn=({onClickNewDataStream:o,updateDataStream:i,deleteDataStream:n})=>{const a=I.useTheme(),{dataStreams:r,selectedStreamName:s,setSelectedStreamName:c}=He(),{popupRef:d,popupOpen:u,setPopupOpen:p,popupPosition:m,handlePosition:h}=Je(),[g,y]=t(""),[v,f]=t(""),[b,C]=t(""),$=l(()=>r.filter(({name:e})=>!b||e.toLowerCase().includes(b.toLowerCase())).map(({name:t})=>e.createElement(An,{key:`stream-${t}`},e.createElement(Fn,null,e.createElement(Xe,{label:t,isSelected:s===t,onClick:()=>{c(t),p(!1)},color:"transparent",style:{width:"100%",justifyContent:"flex-start"}})),t!==ct&&e.createElement(dt,{onClick:()=>f(t),tooltip:K.DELETE},e.createElement(ko,null)),e.createElement(dt,{onClick:()=>y(t),tooltip:K.EDIT},e.createElement($o,null)))),[r,s,b]);return e.createElement(e.Fragment,null,e.createElement(In,null,e.createElement(En,{$gap:0},e.createElement(at,{variant:"tertiary",onClick:()=>{h(0,50),p(e=>!e)}},e.createElement(No,{fill:a.text.info}),e.createElement(On,null,"Data Stream: ",s),e.createElement(ut,{extend:u}),e.createElement(Te,{label:r.length})),e.createElement(le,{orientation:"vertical",length:"32px",thickness:2,margin:"0"}),e.createElement(pt,{onClick:()=>o(),label:K.NEW})),e.createElement(Ye,{ref:d,isOpen:u,top:m.top,left:m.left,header:e.createElement(x,{placeholder:"Search...",icon:wo,value:b,onChange:e=>C(e.target.value)})},e.createElement(Mn,null,$))),e.createElement(z,{isOpen:""!==v,name:v,onApprove:()=>{n(v),f("")},onDeny:()=>{f("")}}),e.createElement(Tn,{isOpen:""!==g,onClose:()=>{y("")},dataStreamName:g,updateDataStream:i}))},Ln=d.div`
112
112
  display: flex;
113
113
  align-items: center;
114
114
  margin: 20px 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odigos/ui-kit",
3
- "version": "0.0.114",
3
+ "version": "0.0.115",
4
4
  "author": "Odigos",
5
5
  "license": "MIT",
6
6
  "repository": {