@gurpreetmahi/easy.ui 0.0.0-stage → 0.2.1
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/README.md +72 -2
- package/dist/easy.ui.css +2 -0
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +1139 -0
- package/package.json +55 -4
package/README.md
CHANGED
|
@@ -1,3 +1,73 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Easy.UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React + TypeScript UI library with Office-style ribbons and Easy Connectors UI components.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Office-inspired ribbon tabs, groups, and command buttons
|
|
8
|
+
- Easy Connectors dashboard components for connector CRUD, status, and run history
|
|
9
|
+
- Typed component API for tabs, groups, and items
|
|
10
|
+
- Vite library-mode build with ESM and CJS outputs
|
|
11
|
+
- Storybook stories for interactive component development
|
|
12
|
+
|
|
13
|
+
## Easy Connectors UI
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { EasyConnectorsApp, EasyConnectorsProvider } from 'easy.ui';
|
|
17
|
+
|
|
18
|
+
export function ConnectorsPage() {
|
|
19
|
+
return (
|
|
20
|
+
<EasyConnectorsProvider baseUrl="http://localhost:5088">
|
|
21
|
+
<EasyConnectorsApp />
|
|
22
|
+
</EasyConnectorsProvider>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The package also exports EasyConnectorsClient, ConnectorBoard, ConnectorForm, and ConnectorRuns.
|
|
28
|
+
|
|
29
|
+
## Scripts
|
|
30
|
+
|
|
31
|
+
- `npm run dev`: local demo app
|
|
32
|
+
- `npm run build`: generate declaration files and bundle library to `dist/`
|
|
33
|
+
- `npm run storybook`: start Storybook at `http://localhost:6006`
|
|
34
|
+
- `npm run build-storybook`: static Storybook build
|
|
35
|
+
|
|
36
|
+
## Quick Usage
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
import { Ribbon, type RibbonTab, type RibbonGroup } from 'easy.ui';
|
|
40
|
+
import 'easy.ui/style.css';
|
|
41
|
+
|
|
42
|
+
const tabs: RibbonTab[] = [
|
|
43
|
+
{ id: 'home', label: 'Home' },
|
|
44
|
+
{ id: 'insert', label: 'Insert' }
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
const groups: RibbonGroup[] = [
|
|
48
|
+
{
|
|
49
|
+
id: 'clipboard',
|
|
50
|
+
title: 'Clipboard',
|
|
51
|
+
items: [
|
|
52
|
+
{ id: 'paste', label: 'Paste', icon: '📋', size: 'large' },
|
|
53
|
+
{ id: 'copy', label: 'Copy', icon: '📄' },
|
|
54
|
+
{
|
|
55
|
+
id: 'paste-special',
|
|
56
|
+
label: 'Paste Special',
|
|
57
|
+
options: [
|
|
58
|
+
{ id: 'keep-source', label: 'Keep Source Formatting' },
|
|
59
|
+
{ id: 'text-only', label: 'Text Only' }
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
|
|
66
|
+
<Ribbon
|
|
67
|
+
tabs={tabs}
|
|
68
|
+
groups={groups}
|
|
69
|
+
activeTabId="home"
|
|
70
|
+
onTabChange={(tabId) => console.log(tabId)}
|
|
71
|
+
onItemClick={(item, optionId) => console.log(item.id, optionId)}
|
|
72
|
+
/>;
|
|
73
|
+
```
|
package/dist/easy.ui.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
:root{--ribbon-line:#d7dde8;--ribbon-frame:#f3f6fc;--ribbon-tab-idle:#35557f;--ribbon-tab-active:#123f82;--ribbon-tab-active-bg:#fff;--ribbon-tab-idle-bg:#e8eef9;--ribbon-surface:#fbfdff;--ribbon-text:#173253;--ribbon-group-title:#4b6488;--ribbon-button-bg:#fff;--ribbon-button-bg-hover:#e6f0ff;--ribbon-button-border:#ced8ea;--ribbon-button-border-hover:#90aee0;--ribbon-shadow:0 8px 22px #0b264b1a}.ribbon{border:1px solid var(--ribbon-line);background:linear-gradient(180deg, var(--ribbon-frame) 0%, #eaf1fb 42%, #e0ebfa 100%);box-shadow:var(--ribbon-shadow);color:var(--ribbon-text);border-radius:10px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;overflow:visible}.ribbon__tabbar{border-bottom:1px solid var(--ribbon-line);background:linear-gradient(#f9fcff,#ebf2fc);gap:2px;padding:8px 8px 0;display:flex}.ribbon__tab{background:var(--ribbon-tab-idle-bg);color:var(--ribbon-tab-idle);cursor:pointer;border:1px solid #0000;border-bottom:none;border-radius:8px 8px 0 0;padding:8px 14px;font-size:13px;font-weight:600}.ribbon__tab:hover{filter:brightness(.97)}.ribbon__tab.is-active{background:var(--ribbon-tab-active-bg);color:var(--ribbon-tab-active);border-color:var(--ribbon-line)}.ribbon__surface{background:var(--ribbon-surface);align-items:stretch;gap:12px;padding:12px;display:flex;overflow:auto visible}.ribbon__group{border-right:1px solid var(--ribbon-line);flex-direction:column;gap:8px;min-width:170px;padding-right:12px;display:flex}.ribbon__group:last-child{border-right:0;padding-right:0}.ribbon__group-items{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:6px;display:grid}.ribbon__group-items:empty{display:none}.ribbon-carousel{flex-direction:column;gap:8px;min-width:310px;display:flex}.ribbon-carousel__parent-nav{grid-template-columns:24px minmax(0,1fr) 24px;align-items:stretch;gap:4px;display:grid}.ribbon-carousel__parent-arrow{border:1px solid var(--ribbon-button-border);color:var(--ribbon-tab-active);cursor:pointer;background:#fff;border-radius:6px;font-size:18px;line-height:1}.ribbon-carousel__parent-arrow:hover:not(:disabled){border-color:var(--ribbon-button-border-hover);background:var(--ribbon-button-bg-hover)}.ribbon-carousel__parent-arrow:disabled{color:#a8b5c7;cursor:not-allowed;opacity:.55}.ribbon-carousel__parents{border:1px solid var(--ribbon-line);background:#eef4fc;border-radius:7px;gap:4px;padding:3px;display:flex;overflow-x:auto}.ribbon-carousel__parent{color:var(--ribbon-tab-idle);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;flex:1 0 auto;justify-content:center;align-items:center;gap:5px;padding:5px 8px;font-size:11px;font-weight:600;display:inline-flex}.ribbon-carousel__parent:hover:not(:disabled){background:#fff}.ribbon-carousel__parent.is-active{border-color:var(--ribbon-button-border);color:var(--ribbon-tab-active);background:#fff;box-shadow:0 1px 3px #1830541f}.ribbon-carousel__parent:disabled{cursor:not-allowed;opacity:.5}.ribbon-carousel__items-row{grid-template-columns:28px minmax(0,1fr) 28px;align-items:stretch;gap:5px;display:grid}.ribbon-carousel__items{grid-auto-columns:minmax(74px,1fr);grid-auto-flow:column;gap:6px;min-width:0;display:grid}.ribbon-carousel__item{min-width:0}.ribbon-carousel__arrow{border:1px solid var(--ribbon-button-border);color:var(--ribbon-tab-active);cursor:pointer;background:#fff;border-radius:6px;font-size:24px;line-height:1}.ribbon-carousel__arrow:hover:not(:disabled){border-color:var(--ribbon-button-border-hover);background:var(--ribbon-button-bg-hover)}.ribbon-carousel__arrow:disabled{color:#a8b5c7;cursor:not-allowed;opacity:.55}.ribbon-carousel__status{color:var(--ribbon-group-title);text-align:center;font-size:10px}.ribbon-carousel__empty{color:var(--ribbon-group-title);text-align:center;align-self:center;margin:0;font-size:12px}.ribbon__group-title{text-align:center;letter-spacing:.04em;text-transform:uppercase;color:var(--ribbon-group-title);margin:auto 0 0;font-size:11px;font-weight:600}.ribbon-button{border:1px solid var(--ribbon-button-border);background:var(--ribbon-button-bg);color:var(--ribbon-text);cursor:pointer;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:60px;padding:6px;font-family:inherit;display:flex}.ribbon-button:hover:not(:disabled){background:var(--ribbon-button-bg-hover);border-color:var(--ribbon-button-border-hover)}.ribbon-button:disabled{opacity:.55;cursor:not-allowed}.ribbon-button--large{min-height:88px}.ribbon-button--compact{min-height:46px;padding:4px}.ribbon-button__icon{font-size:20px;line-height:1}.ribbon-button--compact .ribbon-button__icon{font-size:16px}.ribbon-button__label{text-align:center;font-size:12px;line-height:1.2}.ribbon-split-button{border:1px solid var(--ribbon-button-border);background:var(--ribbon-button-bg);border-radius:6px;grid-template-rows:1fr 1fr;min-height:60px;display:grid;overflow:hidden}.ribbon-split-button--large{min-height:88px}.ribbon-split-button--compact{min-height:46px}.ribbon-split-button__half{color:var(--ribbon-text);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:6px;padding:4px 6px;font-family:inherit;font-size:12px;display:flex}.ribbon-split-button__half--upper{border-bottom:1px solid var(--ribbon-button-border)}.ribbon-split-button__half:hover:not(:disabled){background:var(--ribbon-button-bg-hover)}.ribbon-split-button__half:focus-visible{outline:2px solid var(--ribbon-button-border-hover);outline-offset:-2px}.ribbon-split-button__half:disabled{opacity:.55;cursor:not-allowed}.ribbon-split-button__icon{font-size:14px;line-height:1}.ribbon-split-button__label{line-height:1.2}.ribbon-dropdown{position:relative}.ribbon-dropdown__trigger{justify-content:space-between;align-items:stretch;gap:4px;width:100%;min-width:0}.ribbon-dropdown__head{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;display:flex}.ribbon-dropdown--large,.ribbon-dropdown--compact{min-height:auto}.ribbon-dropdown__caret{align-self:flex-end;margin-top:auto;font-size:11px;line-height:1}.ribbon-dropdown__menu{border:1px solid var(--ribbon-button-border-hover);z-index:9999;background:#fff;border-radius:8px;min-width:170px;margin:0;padding:6px;list-style:none;position:fixed;box-shadow:0 10px 20px #1830542e}.ribbon-dropdown__menu-item+.ribbon-dropdown__menu-item{margin-top:4px}.ribbon-dropdown__option-button{width:100%;color:var(--ribbon-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;align-items:center;gap:8px;padding:6px;font-size:12px;display:flex}.ribbon-dropdown__option-button:hover{background:var(--ribbon-button-bg-hover);border-color:var(--ribbon-button-border-hover)}.ribbon-dropdown__option-icon{text-align:center;flex:0 0 16px;width:16px}.ribbon-dropdown__option-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (width<=700px){.ribbon__surface{gap:8px;padding:8px}.ribbon__group{min-width:145px}.ribbon-carousel{min-width:270px}}.ec-app{color:#163764;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:16px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;display:grid}.ec-app__left,.ec-app__right{background:#f8fbff;border:1px solid #ccdaf0;border-radius:10px;padding:12px}.ec-board__header,.ec-form__header,.ec-runs__header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.ec-board__header h2,.ec-form__header h3,.ec-runs__header h3{margin:0;font-size:18px}.ec-board__header-actions{gap:8px;display:flex}.ec-board__list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.ec-board__item{background:#fff;border:1px solid #c8d7ef;border-radius:8px;padding:8px}.ec-board__item.is-selected{border-color:#4e84d8;box-shadow:inset 0 0 0 1px #4e84d8}.ec-board__item-main{text-align:left;cursor:pointer;background:0 0;border:none;gap:4px;width:100%;padding:0;display:grid}.ec-board__name{color:#163764;font-weight:700}.ec-board__name-row{align-items:center;gap:6px;display:inline-flex}.ec-board__item-actions{gap:6px;margin-top:8px;display:flex}.ec-chip{border:1px solid #c8d7ef;border-radius:999px;width:fit-content;padding:2px 6px;font-size:11px;display:inline-block}.ec-chip--kind{align-items:center;gap:4px;display:inline-flex}.ec-flow{color:#2f527e;flex-wrap:wrap;align-items:center;gap:6px;font-size:11px;line-height:1;display:inline-flex}.ec-flow--compact{margin-top:2px}.ec-flow__node,.ec-flow__connector{background:#eef4ff;border:1px solid #c8d7ef;border-radius:999px;align-items:center;gap:4px;padding:3px 7px;display:inline-flex}.ec-flow__connector{background:#e5efff;border-color:#a9c4ea}.ec-flow__arrow{color:#6386b8;font-weight:700}.ec-kind-icon{color:#1c5eb6;flex:0 0 16px;width:16px;height:16px}.ec-kind-icon--chip{width:13px;height:13px}.ec-endpoint-icon{color:#2461b3;flex:0 0 14px;width:14px;height:14px}.ec-status{width:fit-content;font-size:12px;font-weight:600}.ec-status--running{color:#1754a8}.ec-status--idle{color:#2c5b29}.ec-status--failed{color:#9f2f25}.ec-status--disabled{color:#666b76}.ec-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.ec-grid--meta{margin-bottom:12px}.ec-endpoint-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.ec-endpoint-panel{background:#fff;border:1px solid #c9d8ef;border-radius:10px;padding:10px}.ec-endpoint-panel__header{align-items:center;gap:6px;margin-bottom:8px;display:inline-flex}.ec-endpoint-panel__header h4{color:#2d4f7a;margin:0;font-size:13px}.ec-grid--endpoint{grid-template-columns:1fr}.ec-grid label{gap:4px;font-size:12px;font-weight:600;display:grid}.ec-kind-preview{color:#345b88;align-items:center;gap:6px;font-size:12px;display:inline-flex}.ec-grid input,.ec-grid select{font:inherit;background:#fff;border:1px solid #b8cae7;border-radius:6px;padding:8px}.ec-grid__wide{grid-column:1/-1}.ec-form__fieldset{border:1px solid #c9d8ef;border-radius:8px;margin:12px 0 0}.ec-form__fieldset legend{padding:0 6px;font-size:12px;font-weight:700}.ec-check-row{flex-wrap:wrap;gap:10px;padding:8px;display:flex}.ec-check-row label{align-items:center;gap:6px;font-size:13px;display:inline-flex}.ec-check-row label input[type=checkbox]{margin:0}.ec-check-row label input:not([type=checkbox]){font:inherit;color:#163764;background:#fff;border:1px solid #b8cae7;border-radius:6px;padding:6px 8px}.ec-form__footer{margin-top:12px}.ec-table-wrap{overflow-x:auto}.ec-table{border-collapse:collapse;width:100%;font-size:13px}.ec-table th,.ec-table td{text-align:left;border-bottom:1px solid #d7e2f2;padding:6px}.ec-primary{color:#fff;background:#1f66c1;border:1px solid #1f66c1}button{color:#183861;font:inherit;cursor:pointer;background:#fff;border:1px solid #b7c8e4;border-radius:6px;padding:6px 10px}button:hover{filter:brightness(.98)}.ec-error{color:#9f2f25}.ec-success{color:#2c6a30}.ec-muted{color:#5f6f84}@media (width<=980px){.ec-app,.ec-grid,.ec-endpoint-grid{grid-template-columns:1fr}}
|
|
2
|
+
/*$vite$:1*/
|
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
|
package/dist/icons.svg
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<symbol id="bluesky-icon" viewBox="0 0 16 17">
|
|
3
|
+
<g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
|
|
4
|
+
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
|
|
5
|
+
</symbol>
|
|
6
|
+
<symbol id="discord-icon" viewBox="0 0 20 19">
|
|
7
|
+
<path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
|
|
8
|
+
</symbol>
|
|
9
|
+
<symbol id="documentation-icon" viewBox="0 0 21 20">
|
|
10
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
|
|
11
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
|
|
12
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
|
|
13
|
+
</symbol>
|
|
14
|
+
<symbol id="github-icon" viewBox="0 0 19 19">
|
|
15
|
+
<path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
|
|
16
|
+
</symbol>
|
|
17
|
+
<symbol id="social-icon" viewBox="0 0 20 20">
|
|
18
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
|
|
19
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
|
|
20
|
+
</symbol>
|
|
21
|
+
<symbol id="x-icon" viewBox="0 0 19 19">
|
|
22
|
+
<path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
|
|
23
|
+
</symbol>
|
|
24
|
+
</svg>
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react/jsx-runtime"),t=require("react"),n=require("react-dom");function r({label:t,icon:n,size:r=`regular`,className:i,...a}){return(0,e.jsxs)(`button`,{type:`button`,className:[`ribbon-button`,`ribbon-button--${r}`,i].filter(Boolean).join(` `),...a,children:[n?(0,e.jsx)(`span`,{className:`ribbon-button__icon`,"aria-hidden":`true`,children:n}):null,(0,e.jsx)(`span`,{className:`ribbon-button__label`,children:t})]})}function i({parents:n,activeParentId:i,defaultParentId:a,visibleItems:o=3,onParentChange:s,onItemClick:c}){let l=Math.max(1,Math.floor(o)),u=n.filter(e=>!e.disabled),d=n.find(e=>!e.disabled),f=n.some(e=>e.id===a&&!e.disabled)?a:d?.id,[p,m]=(0,t.useState)(f),[h,g]=(0,t.useState)({parentId:f,index:0}),_=i??p,v=n.find(e=>e.id===_&&!e.disabled)??d,y=u.findIndex(e=>e.id===v?.id),b=u.length>1,x=v?.children??[],S=Math.max(1,Math.ceil(x.length/l)),C=h.parentId===v?.id?Math.min(h.index,S-1):0,w=x.slice(C*l,(C+1)*l);function T(e){i===void 0&&m(e.id),g({parentId:e.id,index:0}),s?.(e.id)}function E(e){if(!b||y<0)return;let t=Math.min(u.length-1,Math.max(0,y+e)),n=u[t];n&&n.id!==v?.id&&T(n)}return n.length===0?(0,e.jsx)(`p`,{className:`ribbon-carousel__empty`,children:`No carousel parents available.`}):(0,e.jsxs)(`div`,{className:`ribbon-carousel`,children:[(0,e.jsxs)(`div`,{className:`ribbon-carousel__parent-nav`,children:[(0,e.jsx)(`button`,{type:`button`,className:`ribbon-carousel__parent-arrow`,disabled:!b||y<=0,"aria-label":`Previous parent group`,onClick:()=>E(-1),children:`‹`}),(0,e.jsx)(`div`,{className:`ribbon-carousel__parents`,role:`tablist`,"aria-label":`Carousel parents`,children:n.map(t=>(0,e.jsxs)(`button`,{type:`button`,role:`tab`,className:[`ribbon-carousel__parent`,t.id===v?.id?`is-active`:``].filter(Boolean).join(` `),disabled:t.disabled,"aria-selected":t.id===v?.id,onClick:()=>T(t),children:[t.icon?(0,e.jsx)(`span`,{"aria-hidden":`true`,children:t.icon}):null,(0,e.jsx)(`span`,{children:t.label})]},t.id))}),(0,e.jsx)(`button`,{type:`button`,className:`ribbon-carousel__parent-arrow`,disabled:!b||y<0||y>=u.length-1,"aria-label":`Next parent group`,onClick:()=>E(1),children:`›`})]}),(0,e.jsxs)(`div`,{className:`ribbon-carousel__items-row`,children:[(0,e.jsx)(`button`,{type:`button`,className:`ribbon-carousel__arrow`,disabled:C===0,"aria-label":`Previous carousel items`,onClick:()=>g({parentId:v?.id,index:Math.max(0,C-1)}),children:`‹`}),(0,e.jsxs)(`div`,{className:`ribbon-carousel__items`,role:`tabpanel`,"aria-live":`polite`,children:[w.map(t=>(0,e.jsx)(r,{className:`ribbon-carousel__item`,label:t.label,icon:t.icon,size:t.size??`compact`,disabled:t.disabled,onClick:()=>{t.onClick?.(t.id),v&&c?.(t,v.id)}},`${v?.id??`parent`}-${t.id}`)),w.length===0?(0,e.jsx)(`span`,{className:`ribbon-carousel__empty`,children:`No items for this parent.`}):null]}),(0,e.jsx)(`button`,{type:`button`,className:`ribbon-carousel__arrow`,disabled:C>=S-1,"aria-label":`Next carousel items`,onClick:()=>g({parentId:v?.id,index:Math.min(S-1,C+1)}),children:`›`})]}),(0,e.jsxs)(`div`,{className:`ribbon-carousel__status`,"aria-hidden":`true`,children:[C+1,` / `,S]})]})}function a({label:r,icon:i,size:a=`regular`,disabled:o,options:s,onSelect:c}){let[l,u]=(0,t.useState)(!1),d=(0,t.useRef)(null),f=(0,t.useRef)(null),p=(0,t.useRef)(null),[m,h]=(0,t.useState)({top:0,left:0,width:170}),g=(0,t.useId)();function _(){if(!f.current)return;let e=f.current.getBoundingClientRect(),t=Math.max(e.width,170),n=Math.max(44,s.length*38+12),r=window.innerHeight-e.bottom<n&&e.top>n?e.top-n-4:e.bottom+4;h({top:Math.max(8,r),left:Math.max(8,Math.min(e.left,window.innerWidth-t-8)),width:t})}return(0,t.useEffect)(()=>{function e(e){if(!d.current)return;let t=e.target,n=d.current.contains(t),r=p.current?.contains(t);!n&&!r&&u(!1)}function t(e){e.key===`Escape`&&u(!1)}return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[]),(0,t.useEffect)(()=>{if(!l)return;_();function e(){_()}return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[l,s.length]),(0,e.jsxs)(`div`,{ref:d,className:[`ribbon-dropdown`,`ribbon-dropdown--${a}`,l?`is-open`:``].filter(Boolean).join(` `),children:[(0,e.jsxs)(`button`,{ref:f,type:`button`,className:[`ribbon-button`,`ribbon-button--${a}`,`ribbon-dropdown__trigger`].filter(Boolean).join(` `),disabled:o,"aria-haspopup":`menu`,"aria-expanded":l,"aria-controls":g,onClick:()=>u(e=>!e),children:[(0,e.jsxs)(`span`,{className:`ribbon-dropdown__head`,children:[i?(0,e.jsx)(`span`,{className:`ribbon-button__icon`,"aria-hidden":`true`,children:i}):null,(0,e.jsx)(`span`,{className:`ribbon-button__label`,children:r})]}),(0,e.jsx)(`span`,{className:`ribbon-dropdown__caret`,"aria-hidden":`true`,children:`▾`})]}),l?(0,n.createPortal)((0,e.jsx)(`ul`,{id:g,ref:p,role:`menu`,className:`ribbon-dropdown__menu ribbon-dropdown__menu--portal`,"aria-label":`${r} options`,style:{top:`${m.top}px`,left:`${m.left}px`,width:`${m.width}px`},children:s.map(t=>(0,e.jsx)(`li`,{role:`none`,className:`ribbon-dropdown__menu-item`,children:(0,e.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ribbon-dropdown__option-button`,onClick:()=>{c(t.id),u(!1)},children:[(0,e.jsx)(`span`,{className:`ribbon-dropdown__option-icon`,"aria-hidden":`true`,children:t.icon??`•`}),(0,e.jsx)(`span`,{className:`ribbon-dropdown__option-label`,children:t.label})]})},t.id))}),document.body):null]})}function o({tabs:t,groups:n,activeTabId:o,onTabChange:s,onItemClick:c,className:l,ariaLabel:u=`Application ribbon`}){return(0,e.jsxs)(`section`,{className:[`ribbon`,l].filter(Boolean).join(` `),"aria-label":u,children:[(0,e.jsx)(`nav`,{className:`ribbon__tabbar`,"aria-label":`Ribbon tabs`,children:t.map(t=>(0,e.jsx)(`button`,{type:`button`,className:t.id===o?`ribbon__tab is-active`:`ribbon__tab`,onClick:()=>s(t.id),"aria-selected":t.id===o,role:`tab`,children:t.label},t.id))}),(0,e.jsx)(`div`,{className:`ribbon__surface`,role:`tabpanel`,"aria-label":`${o} commands`,children:n.map(t=>(0,e.jsxs)(`section`,{className:`ribbon__group`,"aria-label":t.title,children:[(0,e.jsx)(`div`,{className:`ribbon__group-items`,children:(t.items??[]).map(t=>t.options&&t.options.length>0?(0,e.jsx)(a,{label:t.label,icon:t.icon,size:t.size,disabled:t.disabled,options:t.options,onSelect:e=>{t.onClick?.(t.id),c?.(t,e)}},t.id):(0,e.jsx)(r,{label:t.label,icon:t.icon,size:t.size,disabled:t.disabled,onClick:()=>{t.onClick?.(t.id),c?.(t)}},t.id))}),t.carousel?(0,e.jsx)(i,{...t.carousel,onItemClick:(e,t)=>c?.(e,void 0,t)}):null,(0,e.jsx)(`h3`,{className:`ribbon__group-title`,children:t.title})]},t.id))})]})}function s({size:t=`regular`,className:n,upperLabel:r,upperIcon:i,upperButtonProps:a,lowerLabel:o,lowerIcon:s,lowerButtonProps:c}){return(0,e.jsxs)(`div`,{className:[`ribbon-split-button`,`ribbon-split-button--${t}`,n].filter(Boolean).join(` `),role:`group`,"aria-label":`${r} and ${o}`,children:[(0,e.jsxs)(`button`,{type:`button`,className:`ribbon-split-button__half ribbon-split-button__half--upper`,...a,children:[i?(0,e.jsx)(`span`,{className:`ribbon-split-button__icon`,"aria-hidden":`true`,children:i}):null,(0,e.jsx)(`span`,{className:`ribbon-split-button__label`,children:r})]}),(0,e.jsxs)(`button`,{type:`button`,className:`ribbon-split-button__half ribbon-split-button__half--lower`,...c,children:[s?(0,e.jsx)(`span`,{className:`ribbon-split-button__icon`,"aria-hidden":`true`,children:s}):null,(0,e.jsx)(`span`,{className:`ribbon-split-button__label`,children:o})]})]})}var c=class{baseUrl;apiKey;constructor(e,t){this.baseUrl=e,this.apiKey=t}async listConnectors(){return this.request(`/api/connectors`)}async getConnector(e){return this.request(`/api/connectors/${encodeURIComponent(e)}`)}async createConnector(e){return this.request(`/api/connectors`,{method:`POST`,body:JSON.stringify(e)})}async updateConnector(e,t){return this.request(`/api/connectors/${encodeURIComponent(e)}`,{method:`PUT`,body:JSON.stringify(t)})}async deleteConnector(e){await this.request(`/api/connectors/${encodeURIComponent(e)}`,{method:`DELETE`})}async enableConnector(e){await this.request(`/api/connectors/${encodeURIComponent(e)}/enable`,{method:`POST`})}async disableConnector(e){await this.request(`/api/connectors/${encodeURIComponent(e)}/disable`,{method:`POST`})}async runConnector(e){await this.request(`/api/connectors/${encodeURIComponent(e)}/run`,{method:`POST`})}async getRuns(e,t=20){return this.request(`/api/connectors/${encodeURIComponent(e)}/runs?take=${Math.min(100,Math.max(1,t))}`)}async request(e,t){let n=new Headers(t?.headers);n.set(`Accept`,`application/json`),t?.body&&n.set(`Content-Type`,`application/json`),this.apiKey&&n.set(`X-Api-Key`,this.apiKey);let r=await fetch(new URL(e,this.baseUrl),{...t,headers:n});if(!r.ok){let e=`${r.status} ${r.statusText}`;try{let t=await r.json();t.errors&&t.errors.length>0&&(e=t.errors.join(`; `))}catch{}throw Error(e)}if(r.status!==204)return await r.json()}},l=(0,t.createContext)(null);function u({baseUrl:n=`http://localhost:5088`,apiKey:r,client:i,children:a}){let o=(0,t.useMemo)(()=>({client:i??new c(n,r)}),[r,n,i]);return(0,e.jsx)(l.Provider,{value:o,children:a})}function d(){let e=(0,t.useContext)(l);if(!e)throw Error(`useEasyConnectors must be used within EasyConnectorsProvider.`);return e}function f(t){return(0,e.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t})}function p(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`path`,{d:`M3.5 8.2h6.1l1.5 1.8h9.4`}),(0,e.jsx)(`path`,{d:`M3.5 8.2v8.8a1.5 1.5 0 0 0 1.5 1.5h14a1.5 1.5 0 0 0 1.5-1.5V10a1.8 1.8 0 0 0-1.8-1.8H3.5Z`})]})}function m(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`rect`,{x:`4`,y:`5`,width:`16`,height:`14`,rx:`1.5`}),(0,e.jsx)(`path`,{d:`M4 10h16M9.5 5v14M14.5 5v14`})]})}function h(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`path`,{d:`M9 12h6`}),(0,e.jsx)(`path`,{d:`m13 9 3 3-3 3`})]})}function g(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`rect`,{x:`8`,y:`11`,width:`8`,height:`7`,rx:`1.2`}),(0,e.jsx)(`path`,{d:`M10 11V9a2 2 0 1 1 4 0v2`})]})}function _({kind:t,className:n,...r}){return(0,e.jsxs)(f,{className:[`ec-kind-icon`,n].filter(Boolean).join(` `),...r,children:[t===`FolderToFolder`?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(h,{})]}):null,t===`FolderToTable`?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(h,{}),(0,e.jsx)(`path`,{d:`M17 6.5h3`}),(0,e.jsx)(`path`,{d:`M18.5 5v3`})]}):null,t===`TableToFolder`?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsx)(`path`,{d:`M7 12h10`}),(0,e.jsx)(`path`,{d:`m11 9-3 3 3 3`}),(0,e.jsx)(p,{})]}):null,t===`FolderToSftp`?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(h,{}),(0,e.jsx)(g,{})]}):null,t===`SftpToFolder`?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(`path`,{d:`M8 12h6`}),(0,e.jsx)(`path`,{d:`m11 9-3 3 3 3`}),(0,e.jsx)(p,{})]}):null]})}function v(t){return(0,e.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t})}function y(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`path`,{d:`M3.5 8.2h6.1l1.5 1.8h9.4`}),(0,e.jsx)(`path`,{d:`M3.5 8.2v8.8a1.5 1.5 0 0 0 1.5 1.5h14a1.5 1.5 0 0 0 1.5-1.5V10a1.8 1.8 0 0 0-1.8-1.8H3.5Z`})]})}function b(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`rect`,{x:`4`,y:`5`,width:`16`,height:`14`,rx:`1.5`}),(0,e.jsx)(`path`,{d:`M4 10h16M9.5 5v14M14.5 5v14`})]})}function x(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`rect`,{x:`8`,y:`11`,width:`8`,height:`7`,rx:`1.2`}),(0,e.jsx)(`path`,{d:`M10 11V9a2 2 0 1 1 4 0v2`}),(0,e.jsx)(`path`,{d:`M3 17h3`}),(0,e.jsx)(`path`,{d:`M18 17h3`})]})}function S({endpoint:t,className:n,...r}){return(0,e.jsxs)(v,{className:[`ec-endpoint-icon`,n].filter(Boolean).join(` `),...r,children:[t===`Folder`?(0,e.jsx)(y,{}):null,t===`Table`?(0,e.jsx)(b,{}):null,t===`Sftp`?(0,e.jsx)(x,{}):null]})}function C(e){switch(e){case`FolderToFolder`:return{source:`Folder`,destination:`Folder`};case`FolderToTable`:return{source:`Folder`,destination:`Table`};case`TableToFolder`:return{source:`Table`,destination:`Folder`};case`FolderToSftp`:return{source:`Folder`,destination:`Sftp`};case`SftpToFolder`:return{source:`Sftp`,destination:`Folder`};default:return{source:`Folder`,destination:`Folder`}}}function w({selectedConnectorId:n,refreshToken:r,onSelect:i,onCreate:a}){let{client:o}=d(),[s,c]=(0,t.useState)([]),[l,u]=(0,t.useState)(!1),[f,p]=(0,t.useState)(null),m=(0,t.useCallback)(async()=>{u(!0),p(null);try{c(await o.listConnectors())}catch(e){p(e instanceof Error?e.message:`Failed to load connectors.`)}finally{u(!1)}},[o]);(0,t.useEffect)(()=>{m()},[m,r]);async function h(e){p(null);try{await e(),await m()}catch(e){p(e instanceof Error?e.message:`Action failed.`)}}return(0,e.jsxs)(`section`,{className:`ec-board`,children:[(0,e.jsxs)(`header`,{className:`ec-board__header`,children:[(0,e.jsx)(`h2`,{children:`Connectors`}),(0,e.jsxs)(`div`,{className:`ec-board__header-actions`,children:[(0,e.jsx)(`button`,{type:`button`,onClick:m,children:`Refresh`}),(0,e.jsx)(`button`,{type:`button`,className:`ec-primary`,onClick:a,children:`New`})]})]}),f?(0,e.jsx)(`p`,{className:`ec-error`,children:f}):null,l?(0,e.jsx)(`p`,{className:`ec-muted`,children:`Loading...`}):null,(0,e.jsx)(`ul`,{className:`ec-board__list`,children:s.map(t=>(()=>{let r=C(t.kind);return(0,e.jsxs)(`li`,{className:[`ec-board__item`,n===t.id?`is-selected`:``].filter(Boolean).join(` `),children:[(0,e.jsxs)(`button`,{type:`button`,className:`ec-board__item-main`,onClick:()=>t.id&&i?.(t.id),children:[(0,e.jsxs)(`span`,{className:`ec-board__name-row`,children:[(0,e.jsx)(_,{kind:t.kind}),(0,e.jsx)(`span`,{className:`ec-board__name`,children:t.name})]}),(0,e.jsxs)(`span`,{className:`ec-flow`,"aria-label":`Flow ${r.source} to ${r.destination}`,children:[(0,e.jsxs)(`span`,{className:`ec-flow__node`,children:[(0,e.jsx)(S,{endpoint:r.source}),(0,e.jsx)(`span`,{children:r.source})]}),(0,e.jsx)(`span`,{className:`ec-flow__arrow`,"aria-hidden":`true`,children:`->`}),(0,e.jsxs)(`span`,{className:`ec-flow__connector`,children:[(0,e.jsx)(_,{kind:t.kind,className:`ec-kind-icon--chip`}),(0,e.jsx)(`span`,{children:`Connector`})]}),(0,e.jsx)(`span`,{className:`ec-flow__arrow`,"aria-hidden":`true`,children:`->`}),(0,e.jsxs)(`span`,{className:`ec-flow__node`,children:[(0,e.jsx)(S,{endpoint:r.destination}),(0,e.jsx)(`span`,{children:r.destination})]})]}),(0,e.jsx)(`span`,{className:`ec-status ec-status--${(t.status??`Idle`).toLowerCase()}`,children:t.status??`Idle`})]}),(0,e.jsxs)(`div`,{className:`ec-board__item-actions`,children:[(0,e.jsx)(`button`,{type:`button`,onClick:()=>t.id&&h(()=>o.runConnector(t.id)),children:`Run now`}),(0,e.jsx)(`button`,{type:`button`,onClick:()=>t.id&&h(()=>t.status===`Disabled`?o.enableConnector(t.id):o.disableConnector(t.id)),children:t.status===`Disabled`?`Enable`:`Disable`})]})]},t.id)})())}),s.length===0&&!l?(0,e.jsx)(`p`,{className:`ec-muted`,children:`No connectors yet. Create one to start transferring.`}):null]})}var T=[`FolderToFolder`,`FolderToTable`,`TableToFolder`,`FolderToSftp`,`SftpToFolder`],E=[`Copy`,`Move`],D=[`Manual`,`Interval`,`Daily`,`OnCreated`,`OnUpdated`],O=[`Sqlite`,`SqlServer`];function k(){return{name:`New connector`,kind:`FolderToFolder`,mode:`Copy`,triggers:[`Manual`],sourcePath:``,destinationPath:``,recursive:!0,overwrite:!0,skipEmptyFiles:!0,continueOnError:!0,intervalMinutes:15,provider:`SqlServer`,tableName:``}}function A({connectorId:n,onSaved:r}){let{client:i}=d(),[a,o]=(0,t.useState)(k()),[s,c]=(0,t.useState)(``),[l,u]=(0,t.useState)(!1),[f,p]=(0,t.useState)(!1),[m,h]=(0,t.useState)(null),[g,v]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(!n){o(k()),c(``),h(null),v(null);return}let e=!1;return u(!0),h(null),i.getConnector(n).then(t=>{e||(o(t),c((t.keyColumns??[]).join(`, `)))}).catch(t=>{e||h(t instanceof Error?t.message:`Failed to load connector.`)}).finally(()=>{e||u(!1)}),()=>{e=!0}},[i,n]);let y=(0,t.useMemo)(()=>C(a.kind),[a.kind]);function b(e,t){o(n=>({...n,[e]:t}))}function x(e){o(t=>{let n=t.triggers.includes(e)?t.triggers.filter(t=>t!==e):[...t.triggers,e];return{...t,triggers:n}})}async function w(){p(!0),h(null),v(null);let e={...a,keyColumns:s.split(`,`).map(e=>e.trim()).filter(Boolean)};try{let t=n?await i.updateConnector(n,e):await i.createConnector(e);o(t),c((t.keyColumns??[]).join(`, `)),v(`Connector saved.`),r?.(t)}catch(e){h(e instanceof Error?e.message:`Save failed.`)}finally{p(!1)}}function A(t){return t===`source`?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`label`,{children:[`Source path`,(0,e.jsx)(`input`,{value:a.sourcePath??``,onChange:e=>b(`sourcePath`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[`Pattern`,(0,e.jsx)(`input`,{value:a.pattern??``,onChange:e=>b(`pattern`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`span`,{children:`Recursive`}),(0,e.jsx)(`input`,{type:`checkbox`,checked:a.recursive??!1,onChange:e=>b(`recursive`,e.target.checked)})]})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`label`,{children:[`Destination path`,(0,e.jsx)(`input`,{value:a.destinationPath??``,onChange:e=>b(`destinationPath`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`span`,{children:`Overwrite`}),(0,e.jsx)(`input`,{type:`checkbox`,checked:a.overwrite??!1,onChange:e=>b(`overwrite`,e.target.checked)})]})]})}function j(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`label`,{children:[`Provider`,(0,e.jsx)(`select`,{value:a.provider??`SqlServer`,onChange:e=>b(`provider`,e.target.value),children:O.map(t=>(0,e.jsx)(`option`,{value:t,children:t},t))})]}),(0,e.jsxs)(`label`,{children:[`Table name`,(0,e.jsx)(`input`,{value:a.tableName??``,onChange:e=>b(`tableName`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[`Schema`,(0,e.jsx)(`input`,{value:a.schema??``,onChange:e=>b(`schema`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[`Key columns (comma separated)`,(0,e.jsx)(`input`,{value:s,onChange:e=>c(e.target.value)})]}),(0,e.jsxs)(`label`,{className:`ec-grid__wide`,children:[`Connection string`,(0,e.jsx)(`input`,{value:a.connectionString??``,onChange:e=>b(`connectionString`,e.target.value)})]}),(0,e.jsxs)(`label`,{className:`ec-grid__wide`,children:[`Where clause`,(0,e.jsx)(`input`,{value:a.whereClause??``,onChange:e=>b(`whereClause`,e.target.value)})]})]})}function M(t){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`label`,{children:[`SFTP host`,(0,e.jsx)(`input`,{value:a.sftpHost??``,onChange:e=>b(`sftpHost`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[`Port`,(0,e.jsx)(`input`,{type:`number`,min:1,value:a.sftpPort??22,onChange:e=>b(`sftpPort`,Number(e.target.value)||22)})]}),(0,e.jsxs)(`label`,{children:[`Remote path`,(0,e.jsx)(`input`,{value:a.remotePath??``,onChange:e=>b(`remotePath`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[`Username`,(0,e.jsx)(`input`,{value:a.sftpUsername??``,onChange:e=>b(`sftpUsername`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[`Password`,(0,e.jsx)(`input`,{type:`password`,value:a.sftpPassword??``,onChange:e=>b(`sftpPassword`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[`Private key path`,(0,e.jsx)(`input`,{value:a.privateKeyPath??``,onChange:e=>b(`privateKeyPath`,e.target.value)})]}),(0,e.jsxs)(`label`,{className:`ec-grid__wide`,children:[`Host key SHA256`,(0,e.jsx)(`input`,{value:a.hostKeySha256??``,onChange:e=>b(`hostKeySha256`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`span`,{children:`Accept any host key`}),(0,e.jsx)(`input`,{type:`checkbox`,checked:a.acceptAnyHostKey??!1,onChange:e=>b(`acceptAnyHostKey`,e.target.checked)})]}),t===`destination`?(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`span`,{children:`Overwrite`}),(0,e.jsx)(`input`,{type:`checkbox`,checked:a.overwrite??!1,onChange:e=>b(`overwrite`,e.target.checked)})]}):null]})}function N(e,t){return e===`Folder`?A(t):e===`Table`?j():M(t)}function P(e){return e===`Sftp`?`SFTP`:e}return(0,e.jsxs)(`section`,{className:`ec-form`,children:[(0,e.jsx)(`header`,{className:`ec-form__header`,children:(0,e.jsx)(`h3`,{children:n?`Edit connector`:`Create connector`})}),l?(0,e.jsx)(`p`,{className:`ec-muted`,children:`Loading connector...`}):null,m?(0,e.jsx)(`p`,{className:`ec-error`,children:m}):null,g?(0,e.jsx)(`p`,{className:`ec-success`,children:g}):null,(0,e.jsxs)(`div`,{className:`ec-grid ec-grid--meta`,children:[(0,e.jsxs)(`label`,{children:[`Name`,(0,e.jsx)(`input`,{value:a.name,onChange:e=>b(`name`,e.target.value)})]}),(0,e.jsxs)(`label`,{children:[`Kind`,(0,e.jsx)(`select`,{value:a.kind,onChange:e=>b(`kind`,e.target.value),children:T.map(t=>(0,e.jsx)(`option`,{value:t,children:t},t))}),(0,e.jsxs)(`span`,{className:`ec-kind-preview`,children:[(0,e.jsx)(_,{kind:a.kind}),a.kind]}),(0,e.jsxs)(`span`,{className:`ec-flow ec-flow--compact`,"aria-label":`Flow ${y.source} to ${y.destination}`,children:[(0,e.jsxs)(`span`,{className:`ec-flow__node`,children:[(0,e.jsx)(S,{endpoint:y.source}),(0,e.jsx)(`span`,{children:y.source})]}),(0,e.jsx)(`span`,{className:`ec-flow__arrow`,"aria-hidden":`true`,children:`->`}),(0,e.jsxs)(`span`,{className:`ec-flow__connector`,children:[(0,e.jsx)(_,{kind:a.kind,className:`ec-kind-icon--chip`}),(0,e.jsx)(`span`,{children:`Connector`})]}),(0,e.jsx)(`span`,{className:`ec-flow__arrow`,"aria-hidden":`true`,children:`->`}),(0,e.jsxs)(`span`,{className:`ec-flow__node`,children:[(0,e.jsx)(S,{endpoint:y.destination}),(0,e.jsx)(`span`,{children:y.destination})]})]})]}),(0,e.jsxs)(`label`,{children:[`Mode`,(0,e.jsx)(`select`,{value:a.mode,onChange:e=>b(`mode`,e.target.value),children:E.map(t=>(0,e.jsx)(`option`,{value:t,children:t},t))})]})]}),(0,e.jsxs)(`div`,{className:`ec-endpoint-grid`,children:[(0,e.jsxs)(`section`,{className:`ec-endpoint-panel`,children:[(0,e.jsxs)(`header`,{className:`ec-endpoint-panel__header`,children:[(0,e.jsx)(S,{endpoint:y.source}),(0,e.jsxs)(`h4`,{children:[`Source config (`,P(y.source),`)`]})]}),(0,e.jsx)(`div`,{className:`ec-grid ec-grid--endpoint`,children:N(y.source,`source`)})]}),(0,e.jsxs)(`section`,{className:`ec-endpoint-panel`,children:[(0,e.jsxs)(`header`,{className:`ec-endpoint-panel__header`,children:[(0,e.jsx)(S,{endpoint:y.destination}),(0,e.jsxs)(`h4`,{children:[`Destination config (`,P(y.destination),`)`]})]}),(0,e.jsx)(`div`,{className:`ec-grid ec-grid--endpoint`,children:N(y.destination,`destination`)})]})]}),(0,e.jsxs)(`fieldset`,{className:`ec-form__fieldset`,children:[(0,e.jsx)(`legend`,{children:`Triggers`}),(0,e.jsx)(`div`,{className:`ec-check-row`,children:D.map(t=>(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`input`,{type:`checkbox`,checked:a.triggers.includes(t),onChange:()=>x(t)}),t]},t))})]}),(0,e.jsxs)(`fieldset`,{className:`ec-form__fieldset`,children:[(0,e.jsx)(`legend`,{children:`Options`}),(0,e.jsxs)(`div`,{className:`ec-check-row`,children:[(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`input`,{type:`checkbox`,checked:a.skipEmptyFiles??!1,onChange:e=>b(`skipEmptyFiles`,e.target.checked)}),`Skip empty files`]}),(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`input`,{type:`checkbox`,checked:a.continueOnError??!1,onChange:e=>b(`continueOnError`,e.target.checked)}),`Continue on error`]}),(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`input`,{type:`number`,min:1,value:a.intervalMinutes??15,onChange:e=>b(`intervalMinutes`,Number(e.target.value)||1)}),`Interval minutes`]}),(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`input`,{type:`time`,value:a.dailyTimeLocal??``,onChange:e=>b(`dailyTimeLocal`,e.target.value)}),`Daily time (local)`]})]})]}),(0,e.jsx)(`footer`,{className:`ec-form__footer`,children:(0,e.jsx)(`button`,{type:`button`,className:`ec-primary`,onClick:w,disabled:f,children:f?`Saving...`:`Save connector`})})]})}function j({connectorId:n,take:r=20}){let{client:i}=d(),[a,o]=(0,t.useState)([]),[s,c]=(0,t.useState)(null),[l,u]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(!n){o([]);return}let e=!1;return u(!0),c(null),i.getRuns(n,r).then(t=>{e||o(t)}).catch(t=>{e||c(t instanceof Error?t.message:`Failed to load runs.`)}).finally(()=>{e||u(!1)}),()=>{e=!0}},[i,n,r]),(0,e.jsxs)(`section`,{className:`ec-runs`,children:[(0,e.jsx)(`header`,{className:`ec-runs__header`,children:(0,e.jsx)(`h3`,{children:`Recent runs`})}),n?null:(0,e.jsx)(`p`,{className:`ec-muted`,children:`Select a connector to view run history.`}),l?(0,e.jsx)(`p`,{className:`ec-muted`,children:`Loading runs...`}):null,s?(0,e.jsx)(`p`,{className:`ec-error`,children:s}):null,n&&a.length>0?(0,e.jsx)(`div`,{className:`ec-table-wrap`,children:(0,e.jsxs)(`table`,{className:`ec-table`,children:[(0,e.jsx)(`thead`,{children:(0,e.jsxs)(`tr`,{children:[(0,e.jsx)(`th`,{children:`Status`}),(0,e.jsx)(`th`,{children:`Started`}),(0,e.jsx)(`th`,{children:`Transferred`}),(0,e.jsx)(`th`,{children:`Skipped`}),(0,e.jsx)(`th`,{children:`Failed`})]})}),(0,e.jsx)(`tbody`,{children:a.map(t=>(0,e.jsxs)(`tr`,{children:[(0,e.jsx)(`td`,{children:t.status}),(0,e.jsx)(`td`,{children:new Date(t.startedUtc).toLocaleString()}),(0,e.jsx)(`td`,{children:t.transferred}),(0,e.jsx)(`td`,{children:t.skipped}),(0,e.jsx)(`td`,{children:t.failed})]},t.id))})]})}):null]})}function M({className:n}){let[r,i]=(0,t.useState)(void 0),[a,o]=(0,t.useState)(0);return(0,e.jsxs)(`section`,{className:[`ec-app`,n].filter(Boolean).join(` `),children:[(0,e.jsx)(`div`,{className:`ec-app__left`,children:(0,e.jsx)(w,{selectedConnectorId:r,onSelect:i,onCreate:()=>i(void 0),refreshToken:a})}),(0,e.jsxs)(`div`,{className:`ec-app__right`,children:[(0,e.jsx)(A,{connectorId:r,onSaved:e=>{i(e.id),o(e=>e+1)}}),(0,e.jsx)(j,{connectorId:r})]})]})}exports.ConnectorBoard=w,exports.ConnectorForm=A,exports.ConnectorKindIcon=_,exports.ConnectorRuns=j,exports.EasyConnectorsApp=M,exports.EasyConnectorsClient=c,exports.EasyConnectorsProvider=u,exports.EndpointKindIcon=S,exports.Ribbon=o,exports.RibbonButton=r,exports.RibbonCarousel=i,exports.RibbonDropdown=a,exports.RibbonSplitButton=s,exports.getConnectorFlow=C,exports.useEasyConnectors=d;
|