@solomei-ai/intent 2.0.5 → 2.1.0

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": "@solomei-ai/intent",
3
- "version": "2.0.5",
3
+ "version": "2.1.0",
4
4
  "description": "Lightweight browser SDK for intent events (client-only).",
5
5
  "type": "module",
6
6
  "module": "dist/esm/index.js",
@@ -16,6 +16,12 @@
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "import": "./dist/esm/index.debug.js",
18
18
  "default": "./dist/esm/index.debug.js"
19
+ },
20
+ "./native": {
21
+ "types": "./dist/types/native.d.ts",
22
+ "react-native": "./dist/esm/native.js",
23
+ "import": "./dist/esm/native.js",
24
+ "default": "./dist/esm/native.js"
19
25
  }
20
26
  },
21
27
  "unpkg": "dist/intent.umd.min.js",
@@ -39,12 +45,32 @@
39
45
  "clean": "rm -rf dist",
40
46
  "test": "vitest run",
41
47
  "test:watch": "vitest",
42
- "test:browser": "vitest run --config vitest.browser.config.ts"
48
+ "test:browser": "vitest run --config vitest.browser.config.ts",
49
+ "typecheck": "tsc -p tsconfig.json --noEmit",
50
+ "typecheck:core": "tsc -p tsconfig.core.json",
51
+ "build:perf": "rollup -c rollup.config.perf.js",
52
+ "build:native:dev": "rollup -c rollup.config.native-dev.js",
53
+ "pack:native:dev": "npm run build && npm run build:native:dev && mkdir -p /tmp/intent-tarballs && npm pack --pack-destination /tmp/intent-tarballs",
54
+ "perf:capture": "npm run build:perf && node tools/capture-perf.mjs",
55
+ "calibrate:segments": "node tools/segment-calibrate.mjs",
56
+ "inspect:digest": "npm run build:perf && node tools/digest-inspect.mjs"
43
57
  },
44
58
  "dependencies": {
45
- "html2canvas-pro": "^2.3.7",
59
+ "html2canvas-pro": "^2.3.9",
46
60
  "js-cookie": "3.0.8"
47
61
  },
62
+ "peerDependencies": {
63
+ "react": ">=18",
64
+ "react-native": ">=0.72"
65
+ },
66
+ "peerDependenciesMeta": {
67
+ "react": {
68
+ "optional": true
69
+ },
70
+ "react-native": {
71
+ "optional": true
72
+ }
73
+ },
48
74
  "devDependencies": {
49
75
  "@rollup/plugin-node-resolve": "^16.0.3",
50
76
  "@rollup/plugin-replace": "^6.0.3",
@@ -52,15 +78,17 @@
52
78
  "@rollup/plugin-typescript": "^12.3.0",
53
79
  "@tsconfig/recommended": "^1.0.13",
54
80
  "@types/js-cookie": "^3.0.6",
55
- "@vitest/browser-playwright": "^4.1.10",
56
- "@vitest/coverage-v8": "^4.1.10",
57
- "@vitest/ui": "^4.1.10",
81
+ "@types/react": "^19.2.17",
82
+ "@vitest/browser-playwright": "^4.1.11",
83
+ "@vitest/coverage-v8": "^4.1.11",
84
+ "@vitest/ui": "^4.1.11",
58
85
  "eslint-config-xo": "^1.0.0",
59
- "happy-dom": "^20.11.2",
60
- "rollup": "^4.62.4",
86
+ "happy-dom": "^20.11.6",
87
+ "react": "^19.2.8",
88
+ "rollup": "^4.62.5",
61
89
  "rollup-plugin-dts": "^6.5.1",
62
90
  "rollup-plugin-obfuscator": "^1.1.0",
63
91
  "typescript": "^6.0.3",
64
- "vitest": "^4.1.10"
92
+ "vitest": "^4.1.11"
65
93
  }
66
94
  }