@invect/ui 0.0.5 → 0.0.6
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/dist/{Invect-CUR_K7mH.js → Invect-BndIqK9R.js} +11 -11
- package/dist/Invect.d.ts +1 -13
- package/dist/api/node-data.api.d.ts +1 -1
- package/dist/demo.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/Invect.tsx +3 -18
|
@@ -93418,21 +93418,21 @@ var nTe = t.memo(({ client: e, apiBaseUrl: t, apiClient: n, basePath: r, plugins
|
|
|
93418
93418
|
});
|
|
93419
93419
|
});
|
|
93420
93420
|
nTe.displayName = "InvectRoutes";
|
|
93421
|
-
var Kk = t.memo(({ reactQueryClient: e, apiPath: t, frontendPath: n, useMemoryRouter: r = !1, plugins: i, apiClient: a
|
|
93422
|
-
let
|
|
93423
|
-
client:
|
|
93424
|
-
apiBaseUrl:
|
|
93421
|
+
var Kk = t.memo(({ reactQueryClient: e, apiPath: t, frontendPath: n, useMemoryRouter: r = !1, plugins: i, apiClient: a }) => {
|
|
93422
|
+
let o = t ?? "http://localhost:3000/invect", s = n ?? "/invect", c = i, l = e || eTe(), u = tTe(), d = /* @__PURE__ */ E(nTe, {
|
|
93423
|
+
client: l,
|
|
93424
|
+
apiBaseUrl: o,
|
|
93425
93425
|
apiClient: a,
|
|
93426
|
-
basePath:
|
|
93427
|
-
plugins:
|
|
93426
|
+
basePath: s,
|
|
93427
|
+
plugins: c
|
|
93428
93428
|
});
|
|
93429
|
-
return
|
|
93430
|
-
initialEntries: [
|
|
93431
|
-
children:
|
|
93432
|
-
}) : /* @__PURE__ */ E(b, { children:
|
|
93429
|
+
return u ? d : r ? /* @__PURE__ */ E(S, {
|
|
93430
|
+
initialEntries: [s],
|
|
93431
|
+
children: d
|
|
93432
|
+
}) : /* @__PURE__ */ E(b, { children: d });
|
|
93433
93433
|
});
|
|
93434
93434
|
Kk.displayName = "Invect";
|
|
93435
93435
|
//#endregion
|
|
93436
93436
|
export { Yne as $, ate as $t, jf as A, Ete as At, na as B, fte as Bt, Yf as C, Tte as Ct, Af as D, wn as Dt, Of as E, Ste as Et, zu as F, vn as Ft, Ci as G, dn as Gt, Yi as H, mn as Ht, Zc as I, gn as It, Gne as J, ute as Jt, yi as K, cn as Kt, Da as L, gte as Lt, Df as M, xn as Mt, Nf as N, vte as Nt, Pf as O, Cte as Ot, Ef as P, bn as Pt, Xne as Q, nn as Qt, oae as R, pte as Rt, Jf as S, Ote as St, Tf as T, Dte as Tt, Ti as U, mte as Ut, ra as V, hn as Vt, ire as W, pn as Wt, Jne as X, ote as Xt, Wne as Y, on as Yt, Kne as Z, ste as Zt, $f as _, Nte as _t, CE as a, hne as at, ep as b, Tn as bt, nxe as c, qn as ct, Qbe as d, Ln as dt, en, Une as et, qf as f, Mn as ft, tfe as g, Nn as gt, Kf as h, Fn as ht, SO as i, cr as it, kf as j, kte as jt, Mf as k, Cn as kt, txe as l, Fte as lt, $de as m, Pn as mt, Wk as n, qne as nt, pxe as o, ar as ot, Qde as p, jn as pt, gi as q, sn as qt, YCe as r, ci as rt, mE as s, Jn as st, Kk as t, rte as tn, ui as tt, dE as u, In as ut, Zf as v, Pte as vt, efe as w, xte as wt, Qf as x, wte as xt, Xf as y, Rn as yt, wa as z, hte as zt };
|
|
93437
93437
|
|
|
93438
|
-
//# sourceMappingURL=Invect-
|
|
93438
|
+
//# sourceMappingURL=Invect-BndIqK9R.js.map
|
package/dist/Invect.d.ts
CHANGED
|
@@ -11,18 +11,6 @@ export interface InvectProps {
|
|
|
11
11
|
plugins?: InvectFrontendPlugin[];
|
|
12
12
|
/** Pre-configured API client instance (e.g. for demo mode). When provided, apiPath is ignored. */
|
|
13
13
|
apiClient?: ApiClient;
|
|
14
|
-
/**
|
|
15
|
-
* Invect configuration object (from defineConfig).
|
|
16
|
-
* When provided, `apiPath` and `frontendPath` are read from the config
|
|
17
|
-
* unless explicitly overridden by the individual props.
|
|
18
|
-
*/
|
|
19
|
-
config?: {
|
|
20
|
-
apiPath?: string;
|
|
21
|
-
frontendPath?: string;
|
|
22
|
-
plugins?: Array<{
|
|
23
|
-
frontend?: InvectFrontendPlugin;
|
|
24
|
-
}>;
|
|
25
|
-
};
|
|
26
14
|
}
|
|
27
15
|
/**
|
|
28
16
|
* Complete Invect component with internal routing
|
|
@@ -34,4 +22,4 @@ export interface InvectProps {
|
|
|
34
22
|
*
|
|
35
23
|
* For integration into existing React Router apps, use createInvectRoutes instead
|
|
36
24
|
*/
|
|
37
|
-
export declare const Invect: React.MemoExoticComponent<({ reactQueryClient, apiPath: apiPathProp, frontendPath: frontendPathProp, useMemoryRouter, plugins, apiClient,
|
|
25
|
+
export declare const Invect: React.MemoExoticComponent<({ reactQueryClient, apiPath: apiPathProp, frontendPath: frontendPathProp, useMemoryRouter, plugins, apiClient, }: InvectProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SubmitSQLQueryRequest } from '@invect/core/types';
|
|
2
2
|
export declare function useListQueryDatabases(): import('@tanstack/react-query').UseQueryResult<{
|
|
3
3
|
connectionString: string;
|
|
4
|
-
type: "
|
|
4
|
+
type: "mysql" | "sqlite" | "postgresql";
|
|
5
5
|
name?: string | undefined;
|
|
6
6
|
driver?: "pg" | "postgres" | "neon-serverless" | "better-sqlite3" | "libsql" | "mysql2" | undefined;
|
|
7
7
|
}[], Error>;
|
package/dist/demo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { B as e, Ft as t, Gt as n, H as r, Jt as i, L as a, Nt as o, R as s, V as c, Xt as l, Yt as u, a as d, o as f, t as p, tn as m, z as h } from "./Invect-
|
|
2
|
+
import { B as e, Ft as t, Gt as n, H as r, Jt as i, L as a, Nt as o, R as s, V as c, Xt as l, Yt as u, a as d, o as f, t as p, tn as m, z as h } from "./Invect-BndIqK9R.js";
|
|
3
3
|
import { useCallback as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
4
4
|
import { QueryClient as x, QueryClientProvider as S } from "@tanstack/react-query";
|
|
5
5
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as e, $t as t, A as n, At as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, G as f, Ht as p, I as m, It as h, J as g, Jt as _, K as v, Kt as y, Lt as ee, M as te, Mt as ne, N as re, O as ie, Ot as ae, P as oe, Pt as se, Q as ce, Qt as b, Rt as le, S as ue, St as de, T as fe, Tt as pe, U as me, Ut as he, Vt as ge, W as _e, Wt as ve, X as ye, Xt as be, Y as xe, Z as Se, Zt as Ce, _ as we, _t as Te, at as Ee, b as De, bt as x, c as Oe, ct as ke, d as Ae, dt as je, en as Me, et as Ne, f as Pe, ft as Fe, g as Ie, gt as Le, h as Re, ht as ze, i as Be, it as Ve, j as He, jt as Ue, k as We, kt as Ge, l as Ke, lt as qe, m as Je, mt as Ye, n as Xe, nt as Ze, ot as Qe, p as $e, pt as et, q as S, qt as C, r as tt, rt as nt, s as rt, st as it, t as at, tt as ot, u as st, ut as ct, v as lt, vt as ut, w as dt, wt as ft, x as pt, xt as mt, y as ht, yt as gt, zt as _t } from "./Invect-
|
|
2
|
+
import { $ as e, $t as t, A as n, At as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, G as f, Ht as p, I as m, It as h, J as g, Jt as _, K as v, Kt as y, Lt as ee, M as te, Mt as ne, N as re, O as ie, Ot as ae, P as oe, Pt as se, Q as ce, Qt as b, Rt as le, S as ue, St as de, T as fe, Tt as pe, U as me, Ut as he, Vt as ge, W as _e, Wt as ve, X as ye, Xt as be, Y as xe, Z as Se, Zt as Ce, _ as we, _t as Te, at as Ee, b as De, bt as x, c as Oe, ct as ke, d as Ae, dt as je, en as Me, et as Ne, f as Pe, ft as Fe, g as Ie, gt as Le, h as Re, ht as ze, i as Be, it as Ve, j as He, jt as Ue, k as We, kt as Ge, l as Ke, lt as qe, m as Je, mt as Ye, n as Xe, nt as Ze, ot as Qe, p as $e, pt as et, q as S, qt as C, r as tt, rt as nt, s as rt, st as it, t as at, tt as ot, u as st, ut as ct, v as lt, vt as ut, w as dt, wt as ft, x as pt, xt as mt, y as ht, yt as gt, zt as _t } from "./Invect-BndIqK9R.js";
|
|
3
3
|
import w from "react";
|
|
4
4
|
import { useMutation as T, useQuery as E, useQueryClient as D } from "@tanstack/react-query";
|
|
5
5
|
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invect/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Complete React components and routes for Invect workflow management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"remark-gfm": "^4.0.1",
|
|
96
96
|
"tailwind-merge": "^3.3.1",
|
|
97
97
|
"zustand": "^5.0.9",
|
|
98
|
-
"@invect/layouts": "0.0.
|
|
98
|
+
"@invect/layouts": "0.0.6"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@tailwindcss/postcss": "^4.1.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"vite": "^8.0.0",
|
|
114
114
|
"vite-plugin-dts": "^4.5.4",
|
|
115
115
|
"vitest": "^3.2.4",
|
|
116
|
-
"@invect/core": "0.0.
|
|
116
|
+
"@invect/core": "0.0.6"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"react": "^18.3.1 || ^19.0.0",
|
package/src/Invect.tsx
CHANGED
|
@@ -33,16 +33,6 @@ export interface InvectProps {
|
|
|
33
33
|
plugins?: InvectFrontendPlugin[];
|
|
34
34
|
/** Pre-configured API client instance (e.g. for demo mode). When provided, apiPath is ignored. */
|
|
35
35
|
apiClient?: ApiClient;
|
|
36
|
-
/**
|
|
37
|
-
* Invect configuration object (from defineConfig).
|
|
38
|
-
* When provided, `apiPath` and `frontendPath` are read from the config
|
|
39
|
-
* unless explicitly overridden by the individual props.
|
|
40
|
-
*/
|
|
41
|
-
config?: {
|
|
42
|
-
apiPath?: string;
|
|
43
|
-
frontendPath?: string;
|
|
44
|
-
plugins?: Array<{ frontend?: InvectFrontendPlugin }>;
|
|
45
|
-
};
|
|
46
36
|
}
|
|
47
37
|
|
|
48
38
|
// Create a default QueryClient if none is provided
|
|
@@ -208,15 +198,10 @@ export const Invect = React.memo(
|
|
|
208
198
|
useMemoryRouter = false,
|
|
209
199
|
plugins,
|
|
210
200
|
apiClient,
|
|
211
|
-
config,
|
|
212
201
|
}: InvectProps) => {
|
|
213
|
-
const apiBaseUrl = apiPathProp ??
|
|
214
|
-
const basePath = frontendPathProp ??
|
|
215
|
-
const resolvedPlugins =
|
|
216
|
-
plugins ??
|
|
217
|
-
config?.plugins
|
|
218
|
-
?.map((p) => p.frontend)
|
|
219
|
-
.filter((p): p is InvectFrontendPlugin => p !== null && p !== undefined);
|
|
202
|
+
const apiBaseUrl = apiPathProp ?? 'http://localhost:3000/invect';
|
|
203
|
+
const basePath = frontendPathProp ?? '/invect';
|
|
204
|
+
const resolvedPlugins = plugins;
|
|
220
205
|
const client = reactQueryClient || createDefaultQueryClient();
|
|
221
206
|
const hasRouter = useHasRouterContext();
|
|
222
207
|
|