@magicx-eng/ai-autocomplete-react 0.1.42 → 0.1.44

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,27 +1,37 @@
1
1
  {
2
2
  "name": "@magicx-eng/ai-autocomplete-react",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "description": "AI Autocomplete React SDK — guided autocomplete with pill-based input and dropdown suggestions",
5
- "main": "./dist/index.cjs",
6
- "module": "./dist/index.js",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs"
10
+ "import": {
11
+ "types": "./dist/index.d.mts",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ }
13
18
  }
14
19
  },
15
20
  "files": [
16
21
  "dist"
17
22
  ],
18
23
  "sideEffects": false,
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
19
27
  "peerDependencies": {
20
28
  "react": ">=17.0.0",
21
29
  "react-dom": ">=17.0.0"
22
30
  },
31
+ "dependencies": {
32
+ "@magicx-eng/ai-autocomplete-vanilla": "0.1.20"
33
+ },
23
34
  "devDependencies": {
24
- "@biomejs/biome": "^2.4.5",
25
35
  "@testing-library/jest-dom": "^6.9.1",
26
36
  "@testing-library/react": "^12.1.5",
27
37
  "@testing-library/react-hooks": "^8.0.1",
@@ -36,7 +46,6 @@
36
46
  "react-dom": "^17.0.2",
37
47
  "tsup": "^8.5.1",
38
48
  "typescript": "^5.9.3",
39
- "vite": "^7.3.1",
40
49
  "vitest": "^4.0.18"
41
50
  },
42
51
  "keywords": [
@@ -46,22 +55,8 @@
46
55
  "typescript"
47
56
  ],
48
57
  "license": "MIT",
49
- "msw": {
50
- "workerDirectory": [
51
- "playground/public"
52
- ]
53
- },
54
58
  "scripts": {
55
- "dev": "pnpm build && vite playground",
56
- "dev:vanilla": "vite examples/vanilla",
57
59
  "build": "tsup",
58
- "build:core": "tsup --config tsup.config.core.ts && cp core-package.json dist-core/package.json",
59
- "build:all": "pnpm build && pnpm build:core",
60
- "publish:core": "pnpm build:core && cp npm-readme-vanilla.md dist-core/README.md && cp .npmrc dist-core/.npmrc && cd dist-core && npm publish --access public",
61
- "build:playground": "vite build playground --outDir dist --emptyOutDir",
62
- "lint": "biome check .",
63
- "lint:fix": "biome check --fix .",
64
- "format": "biome format --fix .",
65
60
  "test": "vitest run",
66
61
  "test:watch": "vitest",
67
62
  "test:coverage": "vitest run --coverage",