@marketrix.ai/widget 3.8.606 → 4.0.96

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,7 +1,8 @@
1
1
  {
2
2
  "name": "@marketrix.ai/widget",
3
- "version": "3.8.606",
3
+ "version": "4.0.96",
4
4
  "type": "module",
5
+ "packageManager": "bun@1.4.2",
5
6
  "sideEffects": false,
6
7
  "main": "./dist/widget.mjs",
7
8
  "module": "./dist/widget.mjs",
@@ -22,19 +23,15 @@
22
23
  "tag": "bash scripts/release.sh",
23
24
  "start": "vite",
24
25
  "build": "vite build",
25
- "ci": "npm run type-check && npm run lint:check && npm run build && npm run format:check && npm run test && npm run bundle:check",
26
+ "ci": "bun run code:check && bun run test && bun run build && bun run bundle:check",
26
27
  "lint": "eslint . --max-warnings 200 --fix",
27
- "lint:check": "eslint . --max-warnings 0",
28
- "check": "tsc --noEmit",
29
28
  "type-check": "tsc --noEmit",
30
- "test": "vitest run",
31
- "test:watch": "vitest",
32
- "test:coverage": "vitest run --coverage",
33
- "format": "prettier --write .",
34
- "format:check": "prettier --check .",
35
- "bundle:check": "node scripts/bundle-check.mjs",
29
+ "test": "bun test --isolate",
30
+ "test:watch": "bun test --watch --isolate",
31
+ "test:coverage": "bun test --coverage --isolate",
32
+ "bundle:check": "bun scripts/bundle-check.mjs",
36
33
  "code:fix": "eslint . --fix && prettier --write .",
37
- "code:check": "tsc --noEmit && eslint . && prettier --check ."
34
+ "code:check": "tsc --noEmit && eslint . --max-warnings 0 && prettier --check ."
38
35
  },
39
36
  "dependencies": {
40
37
  "@base-ui/react": "^1.8.0",
@@ -52,13 +49,15 @@
52
49
  "@rrweb/types": "^2.0.0-alpha.20",
53
50
  "@testing-library/jest-dom": "^7.0.1",
54
51
  "@testing-library/react": "^16.3.3",
52
+ "@types/jsdom": "^30.0.0",
55
53
  "@types/node": "^26.4.1",
56
54
  "@types/react": "^19.2.18",
57
55
  "@types/react-dom": "^19.2.7",
58
56
  "@typescript-eslint/eslint-plugin": "^8.69.0",
59
57
  "@typescript-eslint/parser": "^8.59.0",
60
58
  "@vitejs/plugin-react": "^6.1.1",
61
- "@vitest/coverage-v8": "^5.0.0",
59
+ "axe-core": "^4.13.0",
60
+ "bun-types": "1.4.2",
62
61
  "eslint": "^10.10.0",
63
62
  "eslint-config-prettier": "^10.1.8",
64
63
  "eslint-plugin-import-x": "^4.17.1",
@@ -71,8 +70,6 @@
71
70
  "react-dom": "^19.2.8",
72
71
  "terser": "^5.51.2",
73
72
  "typescript": "^6.0.3",
74
- "vite": "^8.2.2",
75
- "vitest": "^5.0.0",
76
- "vitest-axe": "^0.1.0"
73
+ "vite": "^8.2.2"
77
74
  }
78
75
  }
@@ -1,542 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const ApplicationCreateSchema: z.ZodObject<{
3
- id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4
- created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
5
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
6
- workspace_id: z.ZodOptional<z.ZodNumber>;
7
- slug: z.ZodOptional<z.ZodString>;
8
- username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9
- password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
10
- type: z.ZodEnum<{
11
- app: "app";
12
- website: "website";
13
- }>;
14
- name: z.ZodString;
15
- url: z.ZodString;
16
- allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
17
- }, z.core.$strip>;
18
- export type ApplicationCreateData = z.infer<typeof ApplicationCreateSchema>;
19
- export declare const ApplicationUpdateSchema: z.ZodObject<{
20
- id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
21
- created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
22
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
23
- slug: z.ZodOptional<z.ZodString>;
24
- type: z.ZodOptional<z.ZodEnum<{
25
- app: "app";
26
- website: "website";
27
- }>>;
28
- name: z.ZodOptional<z.ZodString>;
29
- url: z.ZodOptional<z.ZodString>;
30
- password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
31
- username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
32
- allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
33
- }, z.core.$strip>;
34
- export type ApplicationUpdateData = z.infer<typeof ApplicationUpdateSchema>;
35
- export declare const applicationCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
36
- id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
37
- created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
38
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
39
- workspace_id: z.ZodOptional<z.ZodNumber>;
40
- slug: z.ZodOptional<z.ZodString>;
41
- username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
42
- password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
43
- type: z.ZodEnum<{
44
- app: "app";
45
- website: "website";
46
- }>;
47
- name: z.ZodString;
48
- url: z.ZodString;
49
- allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
50
- }, z.core.$strip>, z.ZodObject<{
51
- id: z.ZodOptional<z.ZodNumber>;
52
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
53
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
54
- slug: z.ZodString;
55
- type: z.ZodEnum<{
56
- app: "app";
57
- website: "website";
58
- }>;
59
- name: z.ZodString;
60
- url: z.ZodString;
61
- workspace_id: z.ZodNumber;
62
- username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
- allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
64
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
65
- export declare const applicationSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
66
- type: z.ZodOptional<z.ZodEnum<{
67
- app: "app";
68
- website: "website";
69
- }>>;
70
- include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
71
- widgets: "widgets";
72
- }>>>;
73
- limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
74
- offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
75
- }, z.core.$strip>, z.ZodObject<{
76
- items: z.ZodArray<z.ZodObject<{
77
- id: z.ZodOptional<z.ZodNumber>;
78
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
79
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
80
- slug: z.ZodString;
81
- type: z.ZodEnum<{
82
- app: "app";
83
- website: "website";
84
- }>;
85
- name: z.ZodString;
86
- url: z.ZodString;
87
- workspace_id: z.ZodNumber;
88
- username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
- allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
90
- widgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
- id: z.ZodOptional<z.ZodNumber>;
92
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
93
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
94
- application_id: z.ZodNumber;
95
- type: z.ZodEnum<{
96
- widget: "widget";
97
- }>;
98
- settings: z.ZodObject<{
99
- widget_enabled: z.ZodBoolean;
100
- widget_appearance: z.ZodEnum<{
101
- default: "default";
102
- hidden: "hidden";
103
- }>;
104
- widget_position: z.ZodEnum<{
105
- bottom_left: "bottom_left";
106
- bottom_right: "bottom_right";
107
- top_left: "top_left";
108
- top_right: "top_right";
109
- }>;
110
- widget_header: z.ZodString;
111
- widget_body: z.ZodString;
112
- widget_greeting: z.ZodString;
113
- widget_greeting_toast: z.ZodBoolean;
114
- widget_recording: z.ZodBoolean;
115
- widget_feature_tell: z.ZodBoolean;
116
- widget_feature_show: z.ZodBoolean;
117
- widget_feature_do: z.ZodBoolean;
118
- widget_background_color: z.ZodString;
119
- widget_text_color: z.ZodString;
120
- widget_border_color: z.ZodString;
121
- widget_accent_color: z.ZodString;
122
- widget_secondary_color: z.ZodString;
123
- widget_border_radius: z.ZodString;
124
- widget_font_size: z.ZodString;
125
- widget_width: z.ZodString;
126
- widget_height: z.ZodString;
127
- widget_animation_duration: z.ZodString;
128
- widget_fade_duration: z.ZodString;
129
- widget_chips: z.ZodArray<z.ZodObject<{
130
- chip_mode: z.ZodEnum<{
131
- tell: "tell";
132
- show: "show";
133
- do: "do";
134
- }>;
135
- chip_text: z.ZodString;
136
- }, z.core.$strip>>;
137
- }, z.core.$strip>;
138
- status: z.ZodEnum<{
139
- created: "created";
140
- active: "active";
141
- suspended: "suspended";
142
- }>;
143
- marketrix_id: z.ZodString;
144
- marketrix_key: z.ZodString;
145
- snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
- }, z.core.$strip>>>;
147
- }, z.core.$strip>>;
148
- total: z.ZodNumber;
149
- limit: z.ZodNumber;
150
- offset: z.ZodNumber;
151
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
152
- export declare const applicationGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
153
- application_id: z.ZodCoercedNumber<unknown>;
154
- }, z.core.$strip>, z.ZodObject<{
155
- id: z.ZodOptional<z.ZodNumber>;
156
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
157
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
158
- slug: z.ZodString;
159
- type: z.ZodEnum<{
160
- app: "app";
161
- website: "website";
162
- }>;
163
- name: z.ZodString;
164
- url: z.ZodString;
165
- workspace_id: z.ZodNumber;
166
- username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
- allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
168
- widgets: z.ZodArray<z.ZodObject<{
169
- id: z.ZodOptional<z.ZodNumber>;
170
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
171
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
172
- application_id: z.ZodNumber;
173
- type: z.ZodEnum<{
174
- widget: "widget";
175
- }>;
176
- settings: z.ZodObject<{
177
- widget_enabled: z.ZodBoolean;
178
- widget_appearance: z.ZodEnum<{
179
- default: "default";
180
- hidden: "hidden";
181
- }>;
182
- widget_position: z.ZodEnum<{
183
- bottom_left: "bottom_left";
184
- bottom_right: "bottom_right";
185
- top_left: "top_left";
186
- top_right: "top_right";
187
- }>;
188
- widget_header: z.ZodString;
189
- widget_body: z.ZodString;
190
- widget_greeting: z.ZodString;
191
- widget_greeting_toast: z.ZodBoolean;
192
- widget_recording: z.ZodBoolean;
193
- widget_feature_tell: z.ZodBoolean;
194
- widget_feature_show: z.ZodBoolean;
195
- widget_feature_do: z.ZodBoolean;
196
- widget_background_color: z.ZodString;
197
- widget_text_color: z.ZodString;
198
- widget_border_color: z.ZodString;
199
- widget_accent_color: z.ZodString;
200
- widget_secondary_color: z.ZodString;
201
- widget_border_radius: z.ZodString;
202
- widget_font_size: z.ZodString;
203
- widget_width: z.ZodString;
204
- widget_height: z.ZodString;
205
- widget_animation_duration: z.ZodString;
206
- widget_fade_duration: z.ZodString;
207
- widget_chips: z.ZodArray<z.ZodObject<{
208
- chip_mode: z.ZodEnum<{
209
- tell: "tell";
210
- show: "show";
211
- do: "do";
212
- }>;
213
- chip_text: z.ZodString;
214
- }, z.core.$strip>>;
215
- }, z.core.$strip>;
216
- status: z.ZodEnum<{
217
- created: "created";
218
- active: "active";
219
- suspended: "suspended";
220
- }>;
221
- marketrix_id: z.ZodString;
222
- marketrix_key: z.ZodString;
223
- snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
- }, z.core.$strip>>;
225
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
226
- export declare const applicationGraphGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
227
- application_id: z.ZodCoercedNumber<unknown>;
228
- }, z.core.$strip>, z.ZodObject<{
229
- nodes: z.ZodArray<z.ZodObject<{
230
- id: z.ZodString;
231
- title: z.ZodString;
232
- url: z.ZodString;
233
- summary: z.ZodDefault<z.ZodString>;
234
- screenshot: z.ZodDefault<z.ZodString>;
235
- sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
236
- id: z.ZodString;
237
- label: z.ZodString;
238
- purpose: z.ZodString;
239
- elements: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
240
- bbox: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
- screenshot: z.ZodDefault<z.ZodString>;
242
- embedding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
243
- }, z.core.$loose>>>;
244
- sequence_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
245
- embedding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
246
- }, z.core.$loose>>;
247
- edges: z.ZodArray<z.ZodObject<{
248
- start: z.ZodString;
249
- end: z.ZodString;
250
- action: z.ZodString;
251
- }, z.core.$loose>>;
252
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
253
- export declare const applicationUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
254
- id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
255
- created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
256
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
257
- slug: z.ZodOptional<z.ZodString>;
258
- type: z.ZodOptional<z.ZodEnum<{
259
- app: "app";
260
- website: "website";
261
- }>>;
262
- name: z.ZodOptional<z.ZodString>;
263
- url: z.ZodOptional<z.ZodString>;
264
- password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
265
- username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
266
- allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
267
- application_id: z.ZodCoercedNumber<unknown>;
268
- }, z.core.$strip>, z.ZodObject<{
269
- id: z.ZodOptional<z.ZodNumber>;
270
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
271
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
272
- slug: z.ZodString;
273
- type: z.ZodEnum<{
274
- app: "app";
275
- website: "website";
276
- }>;
277
- name: z.ZodString;
278
- url: z.ZodString;
279
- workspace_id: z.ZodNumber;
280
- username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
- allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
282
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
283
- export declare const applicationDelete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
284
- application_id: z.ZodCoercedNumber<unknown>;
285
- }, z.core.$strip>, z.ZodObject<{
286
- success: z.ZodLiteral<true>;
287
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
288
- export declare const applicationRoutes: {
289
- applicationCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
290
- id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
291
- created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
292
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
293
- workspace_id: z.ZodOptional<z.ZodNumber>;
294
- slug: z.ZodOptional<z.ZodString>;
295
- username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
296
- password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
297
- type: z.ZodEnum<{
298
- app: "app";
299
- website: "website";
300
- }>;
301
- name: z.ZodString;
302
- url: z.ZodString;
303
- allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
304
- }, z.core.$strip>, z.ZodObject<{
305
- id: z.ZodOptional<z.ZodNumber>;
306
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
307
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
308
- slug: z.ZodString;
309
- type: z.ZodEnum<{
310
- app: "app";
311
- website: "website";
312
- }>;
313
- name: z.ZodString;
314
- url: z.ZodString;
315
- workspace_id: z.ZodNumber;
316
- username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
- allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
318
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
319
- applicationSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
320
- type: z.ZodOptional<z.ZodEnum<{
321
- app: "app";
322
- website: "website";
323
- }>>;
324
- include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
325
- widgets: "widgets";
326
- }>>>;
327
- limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
328
- offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
329
- }, z.core.$strip>, z.ZodObject<{
330
- items: z.ZodArray<z.ZodObject<{
331
- id: z.ZodOptional<z.ZodNumber>;
332
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
333
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
334
- slug: z.ZodString;
335
- type: z.ZodEnum<{
336
- app: "app";
337
- website: "website";
338
- }>;
339
- name: z.ZodString;
340
- url: z.ZodString;
341
- workspace_id: z.ZodNumber;
342
- username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
- allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
344
- widgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
- id: z.ZodOptional<z.ZodNumber>;
346
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
347
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
348
- application_id: z.ZodNumber;
349
- type: z.ZodEnum<{
350
- widget: "widget";
351
- }>;
352
- settings: z.ZodObject<{
353
- widget_enabled: z.ZodBoolean;
354
- widget_appearance: z.ZodEnum<{
355
- default: "default";
356
- hidden: "hidden";
357
- }>;
358
- widget_position: z.ZodEnum<{
359
- bottom_left: "bottom_left";
360
- bottom_right: "bottom_right";
361
- top_left: "top_left";
362
- top_right: "top_right";
363
- }>;
364
- widget_header: z.ZodString;
365
- widget_body: z.ZodString;
366
- widget_greeting: z.ZodString;
367
- widget_greeting_toast: z.ZodBoolean;
368
- widget_recording: z.ZodBoolean;
369
- widget_feature_tell: z.ZodBoolean;
370
- widget_feature_show: z.ZodBoolean;
371
- widget_feature_do: z.ZodBoolean;
372
- widget_background_color: z.ZodString;
373
- widget_text_color: z.ZodString;
374
- widget_border_color: z.ZodString;
375
- widget_accent_color: z.ZodString;
376
- widget_secondary_color: z.ZodString;
377
- widget_border_radius: z.ZodString;
378
- widget_font_size: z.ZodString;
379
- widget_width: z.ZodString;
380
- widget_height: z.ZodString;
381
- widget_animation_duration: z.ZodString;
382
- widget_fade_duration: z.ZodString;
383
- widget_chips: z.ZodArray<z.ZodObject<{
384
- chip_mode: z.ZodEnum<{
385
- tell: "tell";
386
- show: "show";
387
- do: "do";
388
- }>;
389
- chip_text: z.ZodString;
390
- }, z.core.$strip>>;
391
- }, z.core.$strip>;
392
- status: z.ZodEnum<{
393
- created: "created";
394
- active: "active";
395
- suspended: "suspended";
396
- }>;
397
- marketrix_id: z.ZodString;
398
- marketrix_key: z.ZodString;
399
- snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
- }, z.core.$strip>>>;
401
- }, z.core.$strip>>;
402
- total: z.ZodNumber;
403
- limit: z.ZodNumber;
404
- offset: z.ZodNumber;
405
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
406
- applicationGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
407
- application_id: z.ZodCoercedNumber<unknown>;
408
- }, z.core.$strip>, z.ZodObject<{
409
- id: z.ZodOptional<z.ZodNumber>;
410
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
411
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
412
- slug: z.ZodString;
413
- type: z.ZodEnum<{
414
- app: "app";
415
- website: "website";
416
- }>;
417
- name: z.ZodString;
418
- url: z.ZodString;
419
- workspace_id: z.ZodNumber;
420
- username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
- allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
422
- widgets: z.ZodArray<z.ZodObject<{
423
- id: z.ZodOptional<z.ZodNumber>;
424
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
425
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
426
- application_id: z.ZodNumber;
427
- type: z.ZodEnum<{
428
- widget: "widget";
429
- }>;
430
- settings: z.ZodObject<{
431
- widget_enabled: z.ZodBoolean;
432
- widget_appearance: z.ZodEnum<{
433
- default: "default";
434
- hidden: "hidden";
435
- }>;
436
- widget_position: z.ZodEnum<{
437
- bottom_left: "bottom_left";
438
- bottom_right: "bottom_right";
439
- top_left: "top_left";
440
- top_right: "top_right";
441
- }>;
442
- widget_header: z.ZodString;
443
- widget_body: z.ZodString;
444
- widget_greeting: z.ZodString;
445
- widget_greeting_toast: z.ZodBoolean;
446
- widget_recording: z.ZodBoolean;
447
- widget_feature_tell: z.ZodBoolean;
448
- widget_feature_show: z.ZodBoolean;
449
- widget_feature_do: z.ZodBoolean;
450
- widget_background_color: z.ZodString;
451
- widget_text_color: z.ZodString;
452
- widget_border_color: z.ZodString;
453
- widget_accent_color: z.ZodString;
454
- widget_secondary_color: z.ZodString;
455
- widget_border_radius: z.ZodString;
456
- widget_font_size: z.ZodString;
457
- widget_width: z.ZodString;
458
- widget_height: z.ZodString;
459
- widget_animation_duration: z.ZodString;
460
- widget_fade_duration: z.ZodString;
461
- widget_chips: z.ZodArray<z.ZodObject<{
462
- chip_mode: z.ZodEnum<{
463
- tell: "tell";
464
- show: "show";
465
- do: "do";
466
- }>;
467
- chip_text: z.ZodString;
468
- }, z.core.$strip>>;
469
- }, z.core.$strip>;
470
- status: z.ZodEnum<{
471
- created: "created";
472
- active: "active";
473
- suspended: "suspended";
474
- }>;
475
- marketrix_id: z.ZodString;
476
- marketrix_key: z.ZodString;
477
- snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
478
- }, z.core.$strip>>;
479
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
480
- applicationGraphGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
481
- application_id: z.ZodCoercedNumber<unknown>;
482
- }, z.core.$strip>, z.ZodObject<{
483
- nodes: z.ZodArray<z.ZodObject<{
484
- id: z.ZodString;
485
- title: z.ZodString;
486
- url: z.ZodString;
487
- summary: z.ZodDefault<z.ZodString>;
488
- screenshot: z.ZodDefault<z.ZodString>;
489
- sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
490
- id: z.ZodString;
491
- label: z.ZodString;
492
- purpose: z.ZodString;
493
- elements: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
494
- bbox: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
495
- screenshot: z.ZodDefault<z.ZodString>;
496
- embedding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
497
- }, z.core.$loose>>>;
498
- sequence_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
499
- embedding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
500
- }, z.core.$loose>>;
501
- edges: z.ZodArray<z.ZodObject<{
502
- start: z.ZodString;
503
- end: z.ZodString;
504
- action: z.ZodString;
505
- }, z.core.$loose>>;
506
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
507
- applicationUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
508
- id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
509
- created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
510
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
511
- slug: z.ZodOptional<z.ZodString>;
512
- type: z.ZodOptional<z.ZodEnum<{
513
- app: "app";
514
- website: "website";
515
- }>>;
516
- name: z.ZodOptional<z.ZodString>;
517
- url: z.ZodOptional<z.ZodString>;
518
- password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
519
- username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
520
- allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
521
- application_id: z.ZodCoercedNumber<unknown>;
522
- }, z.core.$strip>, z.ZodObject<{
523
- id: z.ZodOptional<z.ZodNumber>;
524
- created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
525
- updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
526
- slug: z.ZodString;
527
- type: z.ZodEnum<{
528
- app: "app";
529
- website: "website";
530
- }>;
531
- name: z.ZodString;
532
- url: z.ZodString;
533
- workspace_id: z.ZodNumber;
534
- username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
- allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
536
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
537
- applicationDelete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
538
- application_id: z.ZodCoercedNumber<unknown>;
539
- }, z.core.$strip>, z.ZodObject<{
540
- success: z.ZodLiteral<true>;
541
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
542
- };
@@ -1,20 +0,0 @@
1
- /**
2
- * Vitest global setup (`setupFiles` in `vitest.config.ts`), run once per test file before any suite:
3
- * registers the jest-dom matchers and fills the three browser globals jsdom does not usably provide here.
4
- *
5
- * `localStorage` — a Map-backed `Storage` (getItem/setItem/removeItem/clear/length/key). jsdom defines it
6
- * on the prototype, and that does not transfer to vitest's `globalThis`, leaving `StorageService` — the one
7
- * door to it in `src/` — an object with no `setItem`; hence the guard probes for the method, not the property.
8
- * `matchMedia` — a never-matching `MediaQueryList` with inert listener registration, required by
9
- * `useScrollLock`. `ResizeObserver` — an inert observe/unobserve/disconnect class, required by
10
- * `useDragSnap`.
11
- *
12
- * Every fill is conditional, so a real implementation — a future jsdom, or a per-test override
13
- * installed before this file — wins.
14
- *
15
- * `resetDom` is the shared body-clearing helper for tests that mount outside Testing Library's own
16
- * render tree (so RTL's automatic per-test cleanup does not reach them) — `replaceChildren()` over
17
- * `innerHTML = ''` avoids re-parsing a fresh, empty document fragment on every reset.
18
- */
19
- import '@testing-library/jest-dom/vitest';
20
- export declare function resetDom(): void;