@invect/ui 0.0.4 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invect/ui",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Complete React components and routes for Invect workflow management",
5
5
  "keywords": [
6
6
  "components",
@@ -95,8 +95,7 @@
95
95
  "remark-gfm": "^4.0.1",
96
96
  "tailwind-merge": "^3.3.1",
97
97
  "zustand": "^5.0.9",
98
- "@invect/core": "0.0.4",
99
- "@invect/layouts": "0.0.4"
98
+ "@invect/layouts": "0.0.6"
100
99
  },
101
100
  "devDependencies": {
102
101
  "@tailwindcss/postcss": "^4.1.0",
@@ -113,7 +112,8 @@
113
112
  "typescript": "^5.8.3",
114
113
  "vite": "^8.0.0",
115
114
  "vite-plugin-dts": "^4.5.4",
116
- "vitest": "^3.2.4"
115
+ "vitest": "^3.2.4",
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 ?? config?.apiPath ?? 'http://localhost:3000/invect';
214
- const basePath = frontendPathProp ?? config?.frontendPath ?? '/invect';
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