@marketrix.ai/widget 3.8.498 → 3.8.500

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.
@@ -136,7 +136,7 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
136
136
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
137
137
  export declare const activityLogSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
138
138
  workspace_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
139
- type: z.ZodOptional<z.ZodEnum<{
139
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
140
140
  user_login: "user_login";
141
141
  url_visit: "url_visit";
142
142
  update_workspace: "update_workspace";
@@ -180,7 +180,7 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
180
180
  archive_form: "archive_form";
181
181
  submit_form_response: "submit_form_response";
182
182
  delete_form_response: "delete_form_response";
183
- }>>;
183
+ }>>>;
184
184
  application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
185
185
  mine: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
186
186
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
@@ -387,7 +387,7 @@ export declare const activityLogRoutes: {
387
387
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
388
388
  activityLogSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
389
389
  workspace_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
390
- type: z.ZodOptional<z.ZodEnum<{
390
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
391
391
  user_login: "user_login";
392
392
  url_visit: "url_visit";
393
393
  update_workspace: "update_workspace";
@@ -431,7 +431,7 @@ export declare const activityLogRoutes: {
431
431
  archive_form: "archive_form";
432
432
  submit_form_response: "submit_form_response";
433
433
  delete_form_response: "delete_form_response";
434
- }>>;
434
+ }>>>;
435
435
  application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
436
436
  mine: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
437
437
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
@@ -45,7 +45,6 @@ export declare const UserEntitySchema: z.ZodObject<{
45
45
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
46
  first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
- password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
48
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
49
  last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
51
50
  auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marketrix.ai/widget",
3
- "version": "3.8.498",
3
+ "version": "3.8.500",
4
4
  "type": "module",
5
5
  "packageManager": "bun@1.3.14",
6
6
  "sideEffects": false,
@@ -23,19 +23,15 @@
23
23
  "tag": "bash scripts/release.sh",
24
24
  "start": "vite",
25
25
  "build": "vite build",
26
- "ci": "bun run type-check && bun run lint:check && bun run build && bun run format:check && bun run test && bun run bundle:check",
26
+ "ci": "bun run code:check && bun run test && bun run build && bun run bundle:check",
27
27
  "lint": "eslint . --max-warnings 200 --fix",
28
- "lint:check": "eslint . --max-warnings 0",
29
- "check": "tsc --noEmit",
30
28
  "type-check": "tsc --noEmit",
31
- "test": "vitest run",
32
- "test:watch": "vitest",
33
- "test:coverage": "vitest run --coverage",
34
- "format": "prettier --write .",
35
- "format:check": "prettier --check .",
29
+ "test": "bun test --isolate",
30
+ "test:watch": "bun test --watch --isolate",
31
+ "test:coverage": "bun test --coverage --isolate",
36
32
  "bundle:check": "bun scripts/bundle-check.mjs",
37
33
  "code:fix": "eslint . --fix && prettier --write .",
38
- "code:check": "tsc --noEmit && eslint . && prettier --check ."
34
+ "code:check": "tsc --noEmit && eslint . --max-warnings 0 && prettier --check ."
39
35
  },
40
36
  "dependencies": {
41
37
  "@base-ui/react": "^1.8.0",
@@ -53,13 +49,15 @@
53
49
  "@rrweb/types": "^2.0.0-alpha.20",
54
50
  "@testing-library/jest-dom": "^7.0.1",
55
51
  "@testing-library/react": "^16.3.3",
52
+ "@types/jsdom": "^30.0.0",
56
53
  "@types/node": "^26.4.1",
57
54
  "@types/react": "^19.2.18",
58
55
  "@types/react-dom": "^19.2.7",
59
56
  "@typescript-eslint/eslint-plugin": "^8.69.0",
60
57
  "@typescript-eslint/parser": "^8.59.0",
61
58
  "@vitejs/plugin-react": "^6.1.1",
62
- "@vitest/coverage-v8": "^5.0.0",
59
+ "axe-core": "^4.13.0",
60
+ "bun-types": "1.3.14",
63
61
  "eslint": "^10.10.0",
64
62
  "eslint-config-prettier": "^10.1.8",
65
63
  "eslint-plugin-import-x": "^4.17.1",
@@ -72,11 +70,6 @@
72
70
  "react-dom": "^19.2.8",
73
71
  "terser": "^5.51.2",
74
72
  "typescript": "^6.0.3",
75
- "vite": "^8.2.2",
76
- "vitest": "^5.0.0",
77
- "vitest-axe": "^0.1.0"
78
- },
79
- "trustedDependencies": [
80
- "unrs-resolver"
81
- ]
73
+ "vite": "^8.2.2"
74
+ }
82
75
  }
@@ -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;