@odigos/ui-kit 0.0.99 → 0.0.100
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/ui-components-bd79fd1d.js +1604 -0
- package/lib/chunks/vendor-1dea551d.js +1 -0
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers.js +3 -3
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets/add-button/index.d.ts +2 -1
- 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/package.json +1 -1
- package/bundle-analysis.html +0 -4949
- package/eslint.config.mjs +0 -34
- package/lib/chunks/ui-components-675457f7.js +0 -1604
- package/lib/chunks/vendor-56978108.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,o){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;const n=e=>null===e?null:JSON.parse(e,null==o?void 0:o.reviver),a=null!=(t=r.getItem(e))?t:null;return a instanceof Promise?a.then(n):n(a)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,null==o?void 0:o.replacer)),removeItem:e=>r.removeItem(e)}}const o=e=>r=>{try{const t=e(r);return t instanceof Promise?t:{then:e=>o(e)(t),catch(e){return this}}}catch(e){return{then(e){return this},catch:r=>o(r)(e)}}},r=(r,t)=>(n,a,l)=>{let c={storage:e(()=>localStorage),partialize:e=>e,version:0,merge:(e,o)=>({...o,...e}),...t},s=!1;const d=new Set,i=new Set;let u=c.storage;if(!u)return r((...e)=>{n(...e)},a,l);const f=()=>{const e=c.partialize({...a()});return u.setItem(c.name,{state:e,version:c.version})},b=l.setState;l.setState=(e,o)=>(b(e,o),f());const p=r((...e)=>(n(...e),f()),a,l);let _;l.getInitialState=()=>p;const x=()=>{var e,r;if(!u)return;s=!1,d.forEach(e=>{var o;return e(null!=(o=a())?o:p)});const t=(null==(r=c.onRehydrateStorage)?void 0:r.call(c,null!=(e=a())?e:p))||void 0;return o(u.getItem.bind(u))(c.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===c.version)return[!1,e.state];if(c.migrate){const o=c.migrate(e.state,e.version);return o instanceof Promise?o.then(e=>[!0,e]):[!0,o]}}return[!1,void 0]}).then(e=>{var o;const[r,t]=e;if(_=c.merge(t,null!=(o=a())?o:p),n(_,!0),r)return f()}).then(()=>{null==t||t(_,void 0),_=a(),s=!0,i.forEach(e=>e(_))}).catch(e=>{null==t||t(void 0,e)})};return l.persist={setOptions:e=>{c={...c,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>x(),hasHydrated:()=>s,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(i.add(e),()=>{i.delete(e)})},c.skipHydration||x(),_||p};function t(e,o){void 0===o&&(o={});var r=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var n={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}};t(".react-flow{--xy-edge-stroke-default:#b1b1b7;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#555;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:hsla(0,0%,100%,.5);--xy-minimap-background-color-default:#fff;--xy-minimap-mask-background-color-default:hsla(0,0%,94%,.6);--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#e2e2e2;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:transparent;--xy-background-pattern-dots-color-default:#91919a;--xy-background-pattern-lines-color-default:#eee;--xy-background-pattern-cross-color-default:#e2e2e2;--xy-node-color-default:inherit;--xy-node-border-default:1px solid #1a192b;--xy-node-background-color-default:#fff;--xy-node-group-background-color-default:hsla(0,0%,94%,.25);--xy-node-boxshadow-hover-default:0 1px 4px 1px rgba(0,0,0,.08);--xy-node-boxshadow-selected-default:0 0 0 0.5px #1a192b;--xy-node-border-radius-default:3px;--xy-handle-background-color-default:#1a192b;--xy-handle-border-color-default:#fff;--xy-selection-background-color-default:rgba(0,89,220,.08);--xy-selection-border-default:1px dotted rgba(0,89,220,.8);--xy-controls-button-background-color-default:#fefefe;--xy-controls-button-background-color-hover-default:#f4f4f4;--xy-controls-button-color-default:inherit;--xy-controls-button-color-hover-default:inherit;--xy-controls-button-border-color-default:#eee;--xy-controls-box-shadow-default:0 0 2px 1px rgba(0,0,0,.08);--xy-edge-label-background-color-default:#fff;--xy-edge-label-color-default:inherit;--xy-resize-background-color-default:#3367d9;background-color:var(--xy-background-color,var(--xy-background-color-default));direction:ltr}.react-flow.dark{--xy-edge-stroke-default:#3e3e3e;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#727272;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:hsla(0,0%,59%,.25);--xy-minimap-background-color-default:#141414;--xy-minimap-mask-background-color-default:rgba(60,60,60,.6);--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#2b2b2b;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:#141414;--xy-background-pattern-dots-color-default:#777;--xy-background-pattern-lines-color-default:#777;--xy-background-pattern-cross-color-default:#777;--xy-node-color-default:#f8f8f8;--xy-node-border-default:1px solid #3c3c3c;--xy-node-background-color-default:#1e1e1e;--xy-node-group-background-color-default:hsla(0,0%,94%,.25);--xy-node-boxshadow-hover-default:0 1px 4px 1px hsla(0,0%,100%,.08);--xy-node-boxshadow-selected-default:0 0 0 0.5px #999;--xy-handle-background-color-default:#bebebe;--xy-handle-border-color-default:#1e1e1e;--xy-selection-background-color-default:rgba(200,200,220,.08);--xy-selection-border-default:1px dotted rgba(200,200,220,.8);--xy-controls-button-background-color-default:#2b2b2b;--xy-controls-button-background-color-hover-default:#3e3e3e;--xy-controls-button-color-default:#f8f8f8;--xy-controls-button-color-hover-default:#fff;--xy-controls-button-border-color-default:#5b5b5b;--xy-controls-box-shadow-default:0 0 2px 1px rgba(0,0,0,.08);--xy-edge-label-background-color-default:#141414;--xy-edge-label-color-default:#f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props,var(--xy-background-color,var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{height:100%;left:0;position:absolute;top:0;width:100%}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{pointer-events:none;transform-origin:0 0;z-index:2}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width,var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke,var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width,var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;pointer-events:none;position:absolute}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path,.react-flow__edge.selected .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected,var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{overflow:visible;position:absolute;z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{box-sizing:border-box;cursor:default;pointer-events:all;position:absolute;transform-origin:0 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{pointer-events:none;transform-origin:left top;z-index:3}.react-flow__nodesselection-rect{cursor:grab;pointer-events:all;position:absolute}.react-flow__handle{background-color:var(--xy-handle-background-color,var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color,var(--xy-handle-border-color-default));border-radius:100%;height:6px;min-height:5px;min-width:5px;pointer-events:none;position:absolute;width:6px}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{cursor:crosshair;pointer-events:all}.react-flow__handle-bottom{bottom:0;left:50%;top:auto;transform:translate(-50%,50%)}.react-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.react-flow__handle-left{left:0;top:50%;transform:translate(-50%,-50%)}.react-flow__handle-right{right:0;top:50%;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{margin:15px;position:absolute;z-index:5}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.bottom.center,.react-flow__panel.top.center{left:50%;transform:translateX(-15px) translateX(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{background:var(--xy-attribution-background-color,var(--xy-attribution-background-color-default));font-size:10px;margin:0;padding:2px 3px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{pointer-events:none}.react-flow__edgelabel-renderer,.react-flow__viewport-portal{height:100%;left:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.react-flow__minimap{background:var(\n --xy-minimap-background-color-props,var(--xy-minimap-background-color,var(--xy-minimap-background-color-default))\n )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var(\n --xy-minimap-mask-background-color-props,var(--xy-minimap-mask-background-color,var(--xy-minimap-mask-background-color-default))\n );stroke:var(\n --xy-minimap-mask-stroke-color-props,var(--xy-minimap-mask-stroke-color,var(--xy-minimap-mask-stroke-color-default))\n );stroke-width:var(\n --xy-minimap-mask-stroke-width-props,var(--xy-minimap-mask-stroke-width,var(--xy-minimap-mask-stroke-width-default))\n )}.react-flow__minimap-node{fill:var(\n --xy-minimap-node-background-color-props,var(--xy-minimap-node-background-color,var(--xy-minimap-node-background-color-default))\n );stroke:var(\n --xy-minimap-node-stroke-color-props,var(--xy-minimap-node-stroke-color,var(--xy-minimap-node-stroke-color-default))\n );stroke-width:var(\n --xy-minimap-node-stroke-width-props,var(--xy-minimap-node-stroke-width,var(--xy-minimap-node-stroke-width-default))\n )}.react-flow__background-pattern.dots{fill:var(\n --xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-dots-color-default))\n )}.react-flow__background-pattern.lines{stroke:var(\n --xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-lines-color-default))\n )}.react-flow__background-pattern.cross{stroke:var(\n --xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-cross-color-default))\n )}.react-flow__controls{box-shadow:var(--xy-controls-box-shadow,var(--xy-controls-box-shadow-default));display:flex;flex-direction:column}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{align-items:center;background:var(--xy-controls-button-background-color,var(--xy-controls-button-background-color-default));border:none;border-bottom:1px solid var(\n --xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default))\n );color:var(\n --xy-controls-button-color-props,var(--xy-controls-button-color,var(--xy-controls-button-color-default))\n );cursor:pointer;display:flex;height:26px;justify-content:center;padding:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:26px}.react-flow__controls-button svg{fill:currentColor;max-height:12px;max-width:12px;width:100%}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-group,.react-flow__node-input,.react-flow__node-output{background-color:var(--xy-node-background-color,var(--xy-node-background-color-default));border:var(--xy-node-border,var(--xy-node-border-default));border-radius:var(--xy-node-border-radius,var(--xy-node-border-radius-default));color:var(--xy-node-color,var(--xy-node-color-default));font-size:12px;padding:10px;text-align:center;width:150px}.react-flow__node-default.selectable:hover,.react-flow__node-group.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover,var(--xy-node-boxshadow-hover-default))}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected,var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color,var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color,var(--xy-selection-background-color-default));border:var(--xy-selection-border,var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var(\n --xy-controls-button-background-color-hover-props,var(--xy-controls-button-background-color-hover,var(--xy-controls-button-background-color-hover-default))\n );color:var(\n --xy-controls-button-color-hover-props,var(--xy-controls-button-color-hover,var(--xy-controls-button-color-hover-default))\n )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var(\n --xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default))\n )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.bottom,.react-flow__resize-control.top{cursor:ns-resize}.react-flow__resize-control.bottom.right,.react-flow__resize-control.top.left{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border:1px solid #fff;border-radius:1px;height:5px;translate:-50% -50%;width:5px}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.bottom.left,.react-flow__resize-control.handle.top.left{left:0}.react-flow__resize-control.handle.bottom.right,.react-flow__resize-control.handle.top.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border-style:solid;border-width:0}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{height:100%;top:0;transform:translate(-50%);width:1px}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.bottom,.react-flow__resize-control.line.top{height:1px;left:0;transform:translateY(-50%);width:100%}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color,var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color,var(--xy-edge-label-color-default))}");export{e as c,n as e,r as p,t as s};
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{U as AutocompleteInput,af as Badge,aK as Button,s as CancelWarning,ac as CenterThis,C as Checkbox,co as Code,z as ConditionDetails,G as DataCard,a as DataCardFieldTypes,b4 as DataCardFields,cp as DataFinger,b0 as DataTab,r as DeleteWarning,bo as DescribeRow,V as Divider,l as DocsButton,q as Drawer,cr as DrawerFooter,cq as DrawerHeader,aH as Dropdown,cs as ErrorBoundary,aQ as ExtendArrow,aW as FadeLoader,b as FieldError,F as FieldLabel,J as FlexColumn,Y as FlexRow,ct as Header,aP as IconButton,bx as IconGroup,a8 as IconTitleBadge,a3 as IconWrapped,bl as IconsNav,cu as ImageControlled,I as Input,g as InputList,e as InputTable,ab as InteractiveTable,K as KeyValueInputsList,N as Modal,P as ModalBody,M as MonitorsCheckboxes,a5 as MonitorsIcons,O as NavigationButtons,ad as NoDataFound,Q as NotificationNote,cB as Overlay,aB as Popup,bC as PopupForm,bL as ScrollX,k as SectionTitle,S as Segment,aC as SelectionButton,cv as SkeletonLoader,X as Status,b3 as Stepper,cw as TabList,a6 as TableContainer,a7 as TableTitleWrap,aa as TableWrap,bb as Tag,j as Text,m as TextArea,f as Toggle,bJ as ToggleCodeComponent,_ as Tooltip,ae as TraceLoader,aD as VerticalScroll,cA as WarningModal,cx as getLinksFromText,cy as getStrongsFromText,cz as renderText}from"./chunks/ui-components-
|
|
1
|
+
export{U as AutocompleteInput,af as Badge,aK as Button,s as CancelWarning,ac as CenterThis,C as Checkbox,co as Code,z as ConditionDetails,G as DataCard,a as DataCardFieldTypes,b4 as DataCardFields,cp as DataFinger,b0 as DataTab,r as DeleteWarning,bo as DescribeRow,V as Divider,l as DocsButton,q as Drawer,cr as DrawerFooter,cq as DrawerHeader,aH as Dropdown,cs as ErrorBoundary,aQ as ExtendArrow,aW as FadeLoader,b as FieldError,F as FieldLabel,J as FlexColumn,Y as FlexRow,ct as Header,aP as IconButton,bx as IconGroup,a8 as IconTitleBadge,a3 as IconWrapped,bl as IconsNav,cu as ImageControlled,I as Input,g as InputList,e as InputTable,ab as InteractiveTable,K as KeyValueInputsList,N as Modal,P as ModalBody,M as MonitorsCheckboxes,a5 as MonitorsIcons,O as NavigationButtons,ad as NoDataFound,Q as NotificationNote,cB as Overlay,aB as Popup,bC as PopupForm,bL as ScrollX,k as SectionTitle,S as Segment,aC as SelectionButton,cv as SkeletonLoader,X as Status,b3 as Stepper,cw as TabList,a6 as TableContainer,a7 as TableTitleWrap,aa as TableWrap,bb as Tag,j as Text,m as TextArea,f as Toggle,bJ as ToggleCodeComponent,_ as Tooltip,ae as TraceLoader,aD as VerticalScroll,cA as WarningModal,cx as getLinksFromText,cy as getStrongsFromText,cz as renderText}from"./chunks/ui-components-bd79fd1d.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{x as ACTION_OPTIONS,B as BUTTON_TEXTS,aO as DEFAULT_DATA_STREAM_NAME,b1 as DESTINATION_CATEGORIES,aI as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,R as FORM_ALERTS,be as INSTRUMENTATION_RULE_OPTIONS,cb as LANGUAGE_OPTIONS,aJ as MONITORS_OPTIONS,aL as STORAGE_KEYS,cc as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-
|
|
1
|
+
export{x as ACTION_OPTIONS,B as BUTTON_TEXTS,aO as DEFAULT_DATA_STREAM_NAME,b1 as DESTINATION_CATEGORIES,aI as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,R as FORM_ALERTS,be as INSTRUMENTATION_RULE_OPTIONS,cb as LANGUAGE_OPTIONS,aJ as MONITORS_OPTIONS,aL as STORAGE_KEYS,cc as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-bd79fd1d.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/containers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as o,forwardRef as i,useRef as a,useImperativeHandle as n,useMemo as l,Fragment as r,useCallback as s,Children as c}from"react";import d,{css as u}from"styled-components";import{D as p,a as m,A as h,F as g,C as y,b as v,c as b,I as f,d as x,i as C,e as $,f as S,K as k,g as w,h as D,j as N,T,S as I,k as E,l as O,M,m as A,u as F,n as R,o as L,p as P,B as q,q as K,r as H,s as z,E as W,t as B,v as j,w as V,x as U,y as _,z as G,G as J,H as Y,J as X,L as Q,N as Z,O as ee,P as te,Q as oe,R as ie,U as ae,V as ne,W as le,X as re,Y as se,Z as ce,_ as de,$ as ue,a0 as pe,a1 as me,a2 as he,a3 as ge,a4 as ye,a5 as ve,a6 as be,a7 as fe,a8 as xe,a9 as Ce,aa as $e,ab as Se,ac as ke,ad as we,ae as De,af as Ne,ag as Te,ah as Ie,ai as Ee,aj as Oe,ak as Me,al as Ae,am as Fe,an as Re,ao as Le,ap as Pe,aq as qe,ar as Ke,as as He,at as ze,au as We,av as Be,aw as je,ax as Ve,ay as Ue,az as _e,aA as Ge,aB as Je,aC as Ye,aD as Xe,aE as Qe,aF as Ze,aG as et,aH as tt,aI as ot,aJ as it,aK as at,aL as nt,aM as lt,aN as rt,aO as st,aP as ct,aQ as dt,aR as ut,aS as pt,aT as mt,aU as ht,aV as gt,aW as yt,aX as vt,aY as bt,aZ as ft,a_ as xt,a$ as Ct,b0 as $t,b1 as St,b2 as kt,b3 as wt,b4 as Dt,b5 as Nt,b6 as Tt,b7 as It,b8 as Et,b9 as Ot,ba as Mt,bb as At,bc as Ft,bd as Rt,be as Lt,bf as Pt,bg as qt,bh as Kt,bi as Ht,bj as zt,bk as Wt,bl as Bt,bm as jt,bn as Vt,bo as Ut,bp as _t,bq as Gt,br as Jt,bs as Yt,bt as Xt,bu as Qt,bv as Zt,bw as eo,bx as to,by as oo,bz as io,bA as ao,bB as no,bC as lo,bD as ro,bE as so,bF as co,bG as uo,bH as po,bI as mo,bJ as ho,bK as go,bL as yo}from"./chunks/ui-components-
|
|
1
|
+
import e,{useState as t,useEffect as o,forwardRef as i,useRef as a,useImperativeHandle as n,useMemo as l,Fragment as r,useCallback as s,Children as c}from"react";import d,{css as u}from"styled-components";import{D as p,a as m,A as h,F as g,C as y,b as v,c as b,I as f,d as x,i as C,e as $,f as S,K as k,g as w,h as D,j as N,T,S as I,k as E,l as O,M,m as A,u as F,n as R,o as L,p as P,B as q,q as K,r as H,s as z,E as W,t as B,v as j,w as V,x as U,y as _,z as G,G as J,H as Y,J as X,L as Q,N as Z,O as ee,P as te,Q as oe,R as ie,U as ae,V as ne,W as le,X as re,Y as se,Z as ce,_ as de,$ as ue,a0 as pe,a1 as me,a2 as he,a3 as ge,a4 as ye,a5 as ve,a6 as be,a7 as fe,a8 as xe,a9 as Ce,aa as $e,ab as Se,ac as ke,ad as we,ae as De,af as Ne,ag as Te,ah as Ie,ai as Ee,aj as Oe,ak as Me,al as Ae,am as Fe,an as Re,ao as Le,ap as Pe,aq as qe,ar as Ke,as as He,at as ze,au as We,av as Be,aw as je,ax as Ve,ay as Ue,az as _e,aA as Ge,aB as Je,aC as Ye,aD as Xe,aE as Qe,aF as Ze,aG as et,aH as tt,aI as ot,aJ as it,aK as at,aL as nt,aM as lt,aN as rt,aO as st,aP as ct,aQ as dt,aR as ut,aS as pt,aT as mt,aU as ht,aV as gt,aW as yt,aX as vt,aY as bt,aZ as ft,a_ as xt,a$ as Ct,b0 as $t,b1 as St,b2 as kt,b3 as wt,b4 as Dt,b5 as Nt,b6 as Tt,b7 as It,b8 as Et,b9 as Ot,ba as Mt,bb as At,bc as Ft,bd as Rt,be as Lt,bf as Pt,bg as qt,bh as Kt,bi as Ht,bj as zt,bk as Wt,bl as Bt,bm as jt,bn as Vt,bo as Ut,bp as _t,bq as Gt,br as Jt,bs as Yt,bt as Xt,bu as Qt,bv as Zt,bw as eo,bx as to,by as oo,bz as io,bA as ao,bB as no,bC as lo,bD as ro,bE as so,bF as co,bG as uo,bH as po,bI as mo,bJ as ho,bK as go,bL as yo}from"./chunks/ui-components-bd79fd1d.js";import{CheckCircledIcon as vo,CrossCircledIcon as bo,EditIcon as fo,TrashIcon as xo,OdigosLogoText as Co,SearchIcon as $o,FilterIcon as So,DataStreamsIcon as ko,CheckIcon as wo,OdigosLogo as Do,ArrowIcon as No,PlusIcon as To,RefreshLeftArrowIcon as Io,NotificationIcon as Eo,UserIcon as Oo,ImageErrorIcon as Mo,OverviewIcon as Ao,RulesIcon as Fo,SourcesIcon as Ro,ActionsIcon as Lo,DestinationsIcon as Po,SlackLogo as qo,CopyIcon as Ko,KeyIcon as Ho,TerminalIcon as zo,GearIcon as Wo,WarningTriangleIcon as Bo,TraceViewIcon as jo,ErrorTriangleIcon as Vo}from"./icons.js";import{useNodesState as Uo,useEdgesState as _o,applyNodeChanges as Go,MarkerType as Jo}from"@xyflow/react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";const Yo=e=>{const{type:t,spec:{actionName:o,notes:i,signals:a,disabled:n,collectContainerAttributes:l,collectReplicaSetAttributes:r,collectWorkloadId:s,collectClusterId:c,labelsAttributes:d,annotationsAttributes:u,clusterAttributes:g,overwriteExistingValues:y,attributeNamesToDelete:v,renames:b,piiCategories:f,fallbackSamplingRatio:x,samplingPercentage:C,endpointsFilters:$,servicesNameFilters:S,attributeFilters:k}}=e,w=[{title:p.TYPE,value:t},{type:m.ActiveStatus,title:p.STATUS,value:String(!n)},{type:m.Monitors,title:p.SIGNALS_FOR_PROCESSING,value:a.map(e=>e.toLowerCase()).join(", ")},{title:p.NAME,value:o},{title:p.NOTES,value:i},{type:m.Divider}];if(t===h.K8sAttributes&&(w.push({title:"Collect Container Attributes",value:String(l)}),w.push({title:"Collect ReplicaSet Attributes",value:String(r)}),w.push({title:"Collect Workload ID",value:String(s)}),w.push({title:"Collect Cluster ID",value:String(c)}),d?.length&&w.push({type:m.Divider}),d?.forEach(({labelKey:e,attributeKey:t},o)=>{let i="";i+=`Label Key: ${e}\n`,i+=`Attribute Key: ${t}`,w.push({title:"Label"+(d.length>1?` #${o+1}`:""),value:i})}),u?.length&&w.push({type:m.Divider}),u?.forEach(({annotationKey:e,attributeKey:t},o)=>{let i="";i+=`Annotation Key: ${e}\n`,i+=`Attribute Key: ${t}`,w.push({title:"Annotation"+(u.length>1?` #${o+1}`:""),value:i})})),t===h.AddClusterInfo){w.push({title:"Overwrite Existing Values",value:String(y||!1)});let e="";g?.forEach(({attributeName:t,attributeStringValue:o},i)=>{e+=`${t}: ${o}`,i<g.length-1&&(e+=", ")}),w.push({title:"Attributes",value:e})}if(t===h.DeleteAttributes){let e="";v?.forEach((t,o)=>{e+=t,o<v.length-1&&(e+=", ")}),w.push({title:"Attributes",value:e})}if(t===h.RenameAttributes){let e="";const t=Object.entries(b||{});t.forEach(([o,i],a)=>{e+=`${o}: ${i}`,a<t.length-1&&(e+=", ")}),w.push({title:"Attributes",value:e})}if(t===h.PiiMasking){let e="";f?.forEach((t,o)=>{e+=t,o<f.length-1&&(e+=", ")}),w.push({title:"Categories",value:e})}return t===h.ErrorSampler&&w.push({title:"Sampling Ratio",value:String(x)}),t===h.ProbabilisticSampler&&w.push({title:"Sampling Percentage",value:String(C)}),t===h.LatencySampler&&$?.forEach(({serviceName:e,httpRoute:t,minimumLatencyThreshold:o,fallbackSamplingRatio:i},a)=>{let n="";n+=`Service Name: ${e}\n`,n+=`HTTP Route: ${t}\n`,n+=`Min. Latency: ${o}\n`,n+=`Fallback Sampling Ratio: ${i}`,w.push({title:"Endpoint"+($.length>1?` #${a+1}`:""),value:n})}),t===h.ServiceNameSampler&&S?.forEach(({serviceName:e,samplingRatio:t,fallbackSamplingRatio:o},i)=>{let a="";a+=`Service Name: ${e}\n`,a+=`Sampling Ratio: ${t}\n`,a+=`Fallback Sampling Ratio: ${o}`,w.push({title:"Filter"+(S.length>1?` #${i+1}`:""),value:a})}),t===h.SpanAttributeSampler&&k?.forEach(({serviceName:e,attributeKey:t,fallbackSamplingRatio:o,condition:i},a)=>{let n="";n+=`Service Name: ${e}\n`,n+=`Attribute Key: ${t}\n`,n+=`Fallback Sampling Ratio: ${o}\n`;const l=Object.keys(i)[0];n+=`Condition: ${l}\n`,n+=`Operation: ${i[l]?.operation}\n`,n+=`Expected Value: ${i[l]?.expectedValue}`,"jsonCondition"===l&&(n+=`\nJSON Path: ${i[l].jsonPath}`),w.push({title:"Filter"+(k.length>1?` #${a+1}`:""),value:n})}),w},Xo=b.PiiCategories,Qo=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
gap: 32px;
|
|
@@ -116,7 +116,7 @@ import e,{useState as t,useEffect as o,forwardRef as i,useRef as a,useImperative
|
|
|
116
116
|
gap: 8px;
|
|
117
117
|
`,Ma=d.div`
|
|
118
118
|
margin-left: auto;
|
|
119
|
-
`,Aa=({addEntity:t,preventSearchPopup:o,onClickNewDataStream:i,updateDataStream:a,deleteDataStream:n})=>{const{setCurrentModal:l}=Q();return e.createElement(Oa,null,e.createElement(Ea,{onClickNewDataStream:i,updateDataStream:a,deleteDataStream:n}),e.createElement(ra,{preventPopup:o}),e.createElement(fa,null),t&&e.createElement(Ma,null,e.createElement(ut,{"data-id":`add-${t}`,onClick:()=>l(t),label:`${q.ADD} ${t}`,variant:"primary"})))},Fa=i(({isModal:t,onClickSummary:o},i)=>{const{selectedStreamName:a}=Ke(),{formData:l,handleFormChange:r,formErrors:s,validateForm:c}=rt({name:a});return n(i,()=>({validateForm:c,getFormValues:()=>l})),e.createElement(te,{$isNotModal:!t},e.createElement(X,{$gap:24},o&&e.createElement(pt,{onClick:o}),e.createElement(E,{title:p.NAME_YOUR_STREAM,description:p.STREAM_DESCRIPTION}),e.createElement(Ca,{formData:l,handleFormChange:r,formErrors:s})))});Fa.displayName=Fa.name;const Ra=e=>Object.keys(e).filter(t=>e[t]).join(", "),La=(e,t)=>{const{destinationType:o,disabled:i,exportedSignals:a}=e,n=[{title:p.TYPE,value:o.type},{type:m.ActiveStatus,title:p.STATUS,value:String(!i)},{type:m.Monitors,title:p.MONITORS,value:Ra(a)},{title:p.NAME,value:o.displayName}],l=mt(e,t),r=l.map(e=>({name:e.key,value:e.value}));return l.map(({key:e,name:o,value:i})=>{const{secret:l,componentProperties:s,hideFromReadData:c,customReadDataLabels:d}=t.find(t=>t.name===e)||{};if(!c?.length||!ht(c,Pe(a),r)){const{type:e}=gt(s,{type:""}),t=(l||"password"===e)&&i.length?new Array(10).fill("•").join(""):"";n.push({type:m.Divider}),d?.length?d.forEach(({condition:e,...t})=>{e==i&&n.push({title:t.title,value:t.value})}):n.push({title:o,value:t||i})}}),n},Pa=({signals:t,fields:o,onChange:i,formErrors:a})=>o?.map(n=>{const{componentType:l,renderCondition:r,...s}=n;if(r&&!ht(r,t,o))return null;switch(l){case D.Input:return e.createElement(f,{key:n.name,...s,onChange:e=>i(n.name,e.target.value),errorMessage:a[n.name]});case D.Dropdown:return e.createElement(tt,{key:n.name,...s,showSearch:!0,value:{id:s.value||"",value:s.value||""},options:s.options||[],onSelect:e=>i(n.name,e.id),errorMessage:a[n.name]});case D.MultiInput:return e.createElement(w,{key:n.name,...s,value:"string"==typeof s.value?gt(s.value,[]):s.value,onChange:e=>i(n.name,JSON.stringify(e)),errorMessage:a[n.name]});case D.KeyValuePair:return e.createElement(k,{key:n.name,...s,value:"string"==typeof s.value?gt(s.value,[]):s.value,onChange:e=>i(n.name,JSON.stringify(e)),errorMessage:a[n.name]});case D.TextArea:return e.createElement(A,{key:n.name,...s,onChange:e=>i(n.name,e.target.value),errorMessage:a[n.name]});case D.Checkbox:return e.createElement(y,{key:n.name,...s,value:"true"==s.value,onChange:e=>i(n.name,String(e)),errorMessage:a[n.name]});default:return null}}),qa=d(at)`
|
|
119
|
+
`,Aa=({addEntity:t,preventSearchPopup:o,onClickNewDataStream:i,updateDataStream:a,deleteDataStream:n})=>{const{setCurrentModal:l}=Q();return e.createElement(Oa,null,e.createElement(Ea,{onClickNewDataStream:i,updateDataStream:a,deleteDataStream:n}),e.createElement(ra,{preventPopup:o}),e.createElement(fa,null),t&&e.createElement(Ma,null,e.createElement(ut,{"data-id":`add-${t}`,onClick:()=>l(t),label:`${q.ADD} ${et(t)}`,variant:"primary",textProps:{weight:900}})))},Fa=i(({isModal:t,onClickSummary:o},i)=>{const{selectedStreamName:a}=Ke(),{formData:l,handleFormChange:r,formErrors:s,validateForm:c}=rt({name:a});return n(i,()=>({validateForm:c,getFormValues:()=>l})),e.createElement(te,{$isNotModal:!t},e.createElement(X,{$gap:24},o&&e.createElement(pt,{onClick:o}),e.createElement(E,{title:p.NAME_YOUR_STREAM,description:p.STREAM_DESCRIPTION}),e.createElement(Ca,{formData:l,handleFormChange:r,formErrors:s})))});Fa.displayName=Fa.name;const Ra=e=>Object.keys(e).filter(t=>e[t]).join(", "),La=(e,t)=>{const{destinationType:o,disabled:i,exportedSignals:a}=e,n=[{title:p.TYPE,value:o.type},{type:m.ActiveStatus,title:p.STATUS,value:String(!i)},{type:m.Monitors,title:p.MONITORS,value:Ra(a)},{title:p.NAME,value:o.displayName}],l=mt(e,t),r=l.map(e=>({name:e.key,value:e.value}));return l.map(({key:e,name:o,value:i})=>{const{secret:l,componentProperties:s,hideFromReadData:c,customReadDataLabels:d}=t.find(t=>t.name===e)||{};if(!c?.length||!ht(c,Pe(a),r)){const{type:e}=gt(s,{type:""}),t=(l||"password"===e)&&i.length?new Array(10).fill("•").join(""):"";n.push({type:m.Divider}),d?.length?d.forEach(({condition:e,...t})=>{e==i&&n.push({title:t.title,value:t.value})}):n.push({title:o,value:t||i})}}),n},Pa=({signals:t,fields:o,onChange:i,formErrors:a})=>o?.map(n=>{const{componentType:l,renderCondition:r,...s}=n;if(r&&!ht(r,t,o))return null;switch(l){case D.Input:return e.createElement(f,{key:n.name,...s,onChange:e=>i(n.name,e.target.value),errorMessage:a[n.name]});case D.Dropdown:return e.createElement(tt,{key:n.name,...s,showSearch:!0,value:{id:s.value||"",value:s.value||""},options:s.options||[],onSelect:e=>i(n.name,e.id),errorMessage:a[n.name]});case D.MultiInput:return e.createElement(w,{key:n.name,...s,value:"string"==typeof s.value?gt(s.value,[]):s.value,onChange:e=>i(n.name,JSON.stringify(e)),errorMessage:a[n.name]});case D.KeyValuePair:return e.createElement(k,{key:n.name,...s,value:"string"==typeof s.value?gt(s.value,[]):s.value,onChange:e=>i(n.name,JSON.stringify(e)),errorMessage:a[n.name]});case D.TextArea:return e.createElement(A,{key:n.name,...s,onChange:e=>i(n.name,e.target.value),errorMessage:a[n.name]});case D.Checkbox:return e.createElement(y,{key:n.name,...s,value:"true"==s.value,onChange:e=>i(n.name,String(e)),errorMessage:a[n.name]});default:return null}}),qa=d(at)`
|
|
120
120
|
display: flex;
|
|
121
121
|
align-items: center;
|
|
122
122
|
gap: 8px;
|
|
@@ -314,7 +314,7 @@ import e,{useState as t,useEffect as o,forwardRef as i,useRef as a,useImperative
|
|
|
314
314
|
width: 100%;
|
|
315
315
|
height: ${({$heightToRemove:e})=>`calc(100vh - ${e}px)`};
|
|
316
316
|
position: relative;
|
|
317
|
-
`,al={namespace:"",name:"",kind:"",otelServiceName:"user",selected:!0,numberOfInstances:0,dataStreamNames:[],containers:[],conditions:[]},nl=({heightToRemove:t,serviceMap:i})=>{const a=T.useTheme(),{sources:n,sourcesLoading:l}=j(),{containerRef:r,containerHeight:s,containerWidth:c}=ze(),[d,u,m]=Uo([]),[h,g,y]=_o([]);return o(()=>{if(s&&c){const t=(({sources:e,serviceMap:t,containerHeight:o,containerWidth:i})=>{const a=[],n=new Map,l=((e,t)=>{const o=new Map,i=new Map,a=new Map,n=new Set;e.forEach(e=>{n.add(e.serviceName),e.services.forEach(e=>{n.add(e.serviceName)})}),n.forEach(e=>{i.set(e,[]),a.set(e,0)}),e.forEach(e=>{e.services.forEach(t=>{i.get(e.serviceName)?.push(t.serviceName);const o=a.get(t.serviceName)||0;a.set(t.serviceName,o+1)})});const l=[],r=[];for(n.forEach(e=>{0===(a.get(e)||0)&&r.push(e)});r.length>0;){const e=[],t=r.length;for(let o=0;o<t;o++){const t=r.shift();e.push(t),i.get(t)?.forEach(e=>{const t=a.get(e)||0;a.set(e,t-1),t-1==0&&r.push(e)})}e.length>0&&l.push(e)}return n.forEach(e=>{l.flat().includes(e)||(0===l.length?l.push([e]):l[l.length-1].push(e))}),l.forEach((e,i)=>{const a=100+150*i,n=150*(e.length-1),l=(t-n)/2;e.forEach((e,t)=>{const i=l+150*t,n=a;o.set(e,{x:i,y:n})})}),o})(t,i);if(t.length&&e.length){t.forEach(t=>{const o=t.serviceName;if(a.find(e=>e.id===`${W.Source}-${o}-${Ie.MapItem}`))return;const i=e.find(e=>o===e.otelServiceName||o===e.name);n.set(o,t),t.services.forEach(e=>n.set(e.serviceName,{serviceName:e.serviceName,services:[]})),a.push({id:`${W.Source}-${o}-${Ie.MapItem}`,type:Ie.MapItem,position:l.get(o),data:tl(t,i,ol(i))})}),n.forEach((t,o)=>{if(a.find(e=>e.id===`${W.Source}-${o}-${Ie.MapItem}`))return;const i=e.find(e=>o===e.otelServiceName||o===e.name);a.push({id:`${W.Source}-${o}-${Ie.MapItem}`,type:Ie.MapItem,position:l.get(o),data:tl(t,i,ol(i))})});let o=50;e.forEach(e=>{const t=e.otelServiceName||e.name;a.find(e=>e.id===`${W.Source}-${t}-${Ie.MapItem}`)||(a.push({id:`${W.Source}-${t}-${Ie.MapItem}`,type:Ie.MapItem,position:{x:o,y:10},data:tl(void 0,e,ol(e))}),o+=110)})}else a.push({id:`${W.Source}-${Ie.NoData}`,type:Ie.NoData,position:{x:i/2-150,y:o/
|
|
317
|
+
`,al={namespace:"",name:"",kind:"",otelServiceName:"user",selected:!0,numberOfInstances:0,dataStreamNames:[],containers:[],conditions:[]},nl=({heightToRemove:t,serviceMap:i})=>{const a=T.useTheme(),{sources:n,sourcesLoading:l}=j(),{containerRef:r,containerHeight:s,containerWidth:c}=ze(),[d,u,m]=Uo([]),[h,g,y]=_o([]);return o(()=>{if(s&&c){const t=(({sources:e,serviceMap:t,containerHeight:o,containerWidth:i})=>{const a=[],n=new Map,l=((e,t)=>{const o=new Map,i=new Map,a=new Map,n=new Set;e.forEach(e=>{n.add(e.serviceName),e.services.forEach(e=>{n.add(e.serviceName)})}),n.forEach(e=>{i.set(e,[]),a.set(e,0)}),e.forEach(e=>{e.services.forEach(t=>{i.get(e.serviceName)?.push(t.serviceName);const o=a.get(t.serviceName)||0;a.set(t.serviceName,o+1)})});const l=[],r=[];for(n.forEach(e=>{0===(a.get(e)||0)&&r.push(e)});r.length>0;){const e=[],t=r.length;for(let o=0;o<t;o++){const t=r.shift();e.push(t),i.get(t)?.forEach(e=>{const t=a.get(e)||0;a.set(e,t-1),t-1==0&&r.push(e)})}e.length>0&&l.push(e)}return n.forEach(e=>{l.flat().includes(e)||(0===l.length?l.push([e]):l[l.length-1].push(e))}),l.forEach((e,i)=>{const a=100+150*i,n=150*(e.length-1),l=(t-n)/2;e.forEach((e,t)=>{const i=l+150*t,n=a;o.set(e,{x:i,y:n})})}),o})(t,i);if(t.length&&e.length){t.forEach(t=>{const o=t.serviceName;if(a.find(e=>e.id===`${W.Source}-${o}-${Ie.MapItem}`))return;const i=e.find(e=>o===e.otelServiceName||o===e.name);n.set(o,t),t.services.forEach(e=>n.set(e.serviceName,{serviceName:e.serviceName,services:[]})),a.push({id:`${W.Source}-${o}-${Ie.MapItem}`,type:Ie.MapItem,position:l.get(o),data:tl(t,i,ol(i))})}),n.forEach((t,o)=>{if(a.find(e=>e.id===`${W.Source}-${o}-${Ie.MapItem}`))return;const i=e.find(e=>o===e.otelServiceName||o===e.name);a.push({id:`${W.Source}-${o}-${Ie.MapItem}`,type:Ie.MapItem,position:l.get(o),data:tl(t,i,ol(i))})});let o=50;e.forEach(e=>{const t=e.otelServiceName||e.name;a.find(e=>e.id===`${W.Source}-${t}-${Ie.MapItem}`)||(a.push({id:`${W.Source}-${t}-${Ie.MapItem}`,type:Ie.MapItem,position:{x:o,y:10},data:tl(void 0,e,ol(e))}),o+=110)})}else a.push({id:`${W.Source}-${Ie.NoData}`,type:Ie.NoData,position:{x:i/2-150,y:o/4},data:{subTitle:p.ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC}});return a})({serviceMap:i,sources:[al].concat(n),sourcesLoading:l,containerHeight:s,containerWidth:c});d.length>1?(e=t,u(t=>{const o=e.map(e=>{const o=t.find(t=>t.id===e.id);return e.position=o?.position||e.position,{id:e.id,item:e,type:o?"replace":"add"}});return t.find(e=>e.id===`${W.Source}-${Ie.NoData}`)&&o.push({id:`${W.Source}-${Ie.NoData}`,type:"remove"}),Go(o,t)})):u(t)}var e},[i,n,l,s,c]),o(()=>{g((({theme:e,nodes:t,serviceMap:o})=>{const i=[];return t.forEach(({id:t,data:{id:a,status:n}})=>{const{services:l}=o.find(e=>e.serviceName===a)||{services:[]};l.forEach(o=>{const a=t,l=`${W.Source}-${o.serviceName}-${Ie.MapItem}`,r=n===B.Error;i.push({id:`${a}-to-${l}`,source:a,target:l,markerEnd:{type:Jo.ArrowClosed},style:{stroke:r?e?.colors.dark_red:e?.colors.border}})})}),i})({theme:a,nodes:d,serviceMap:i}))},[a,d,i]),e.createElement(il,{ref:r,$heightToRemove:t},e.createElement(Ue,{nodes:d,edges:h,onNodesChange:m,onEdgesChange:y,zoomOnScroll:!0}))},ll=d.div`
|
|
318
318
|
display: flex;
|
|
319
319
|
flex-direction: column;
|
|
320
320
|
align-items: center;
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a$ as capitalizeFirstLetter,bX as cleanObjectEmptyStringsValues,aU as compareCondition,b2 as deepClone,a2 as filterActions,ax as filterDestinations,aw as filterDestinationsByStream,av as filterSources,au as filterSourcesByStream,bY as flattenObjectKeys,ai as formatBytes,bI as formatDuration,y as getActionIcon,W as getConditionsBooleans,an as getContainersIcons,by as getContainersInstrumentedCount,aq as getDestinationIcon,a9 as getEntityIcon,aE as getEntityId,a4 as getEntityLabel,bZ as getIdFromSseTarget,am as getInstrumentationRuleIcon,b_ as getMainContainerLanguage,b5 as getMetricForEntity,b$ as getMonitorIcon,c0 as getPlatformIcon,c1 as getPlatformLabel,bc as getProgrammingLanguageIcon,bK as getRecursiveValues,c2 as getSseTargetFromId,a0 as getStatusIcon,ao as getValueForRange,bh as getWorkloadId,aZ as getYamlFieldsForDestination,bm as hasUnhealthyInstances,i as isEmpty,c3 as isLegalK8sLabel,bz as isOverTime,bq as isStringABoolean,c4 as isTimeElapsed,c5 as isValidVersion,Z as mapConditions,aT as mapDestinationFieldsForDisplay,ap as mapExportedSignals,c6 as numbersOnly,br as parseBooleanFromString,c7 as parseJsonStringToPrettyString,c8 as removeEmptyValuesFromObject,aV as safeJsonParse,c9 as safeJsonStringify,ag as sleep,aG as splitCamelString,ca as stringifyNonStringValues}from"./chunks/ui-components-
|
|
1
|
+
export{a$ as capitalizeFirstLetter,bX as cleanObjectEmptyStringsValues,aU as compareCondition,b2 as deepClone,a2 as filterActions,ax as filterDestinations,aw as filterDestinationsByStream,av as filterSources,au as filterSourcesByStream,bY as flattenObjectKeys,ai as formatBytes,bI as formatDuration,y as getActionIcon,W as getConditionsBooleans,an as getContainersIcons,by as getContainersInstrumentedCount,aq as getDestinationIcon,a9 as getEntityIcon,aE as getEntityId,a4 as getEntityLabel,bZ as getIdFromSseTarget,am as getInstrumentationRuleIcon,b_ as getMainContainerLanguage,b5 as getMetricForEntity,b$ as getMonitorIcon,c0 as getPlatformIcon,c1 as getPlatformLabel,bc as getProgrammingLanguageIcon,bK as getRecursiveValues,c2 as getSseTargetFromId,a0 as getStatusIcon,ao as getValueForRange,bh as getWorkloadId,aZ as getYamlFieldsForDestination,bm as hasUnhealthyInstances,i as isEmpty,c3 as isLegalK8sLabel,bz as isOverTime,bq as isStringABoolean,c4 as isTimeElapsed,c5 as isValidVersion,Z as mapConditions,aT as mapDestinationFieldsForDisplay,ap as mapExportedSignals,c6 as numbersOnly,br as parseBooleanFromString,c7 as parseJsonStringToPrettyString,c8 as removeEmptyValuesFromObject,aV as safeJsonParse,c9 as safeJsonStringify,ag as sleep,aG as splitCamelString,ca as stringifyNonStringValues}from"./chunks/ui-components-bd79fd1d.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{w as useActionFormData,az as useClickNode,bj as useClickNotification,at as useContainerSize,bA as useCopy,aN as useDataStreamFormData,aY as useDestinationFormData,bB as useGenericForm,bd as useInstrumentationRuleFormData,p as useKeyDown,aF as useOnClickOutside,aA as usePopup,aM as useSessionStorage,bs as useSourceFormData,bw as useSourceSelectionFormData,bi as useTimeAgo,bf as useTransition}from"./chunks/ui-components-
|
|
1
|
+
export{w as useActionFormData,az as useClickNode,bj as useClickNotification,at as useContainerSize,bA as useCopy,aN as useDataStreamFormData,aY as useDestinationFormData,bB as useGenericForm,bd as useInstrumentationRuleFormData,p as useKeyDown,aF as useOnClickOutside,aA as usePopup,aM as useSessionStorage,bs as useSourceFormData,bw as useSourceSelectionFormData,bi as useTimeAgo,bf as useTransition}from"./chunks/ui-components-bd79fd1d.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|