@marketrix.ai/widget 3.8.497 → 3.8.499

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.497",
3
+ "version": "3.8.499",
4
4
  "type": "module",
5
+ "packageManager": "bun@1.3.14",
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.3.14",
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,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;