@kachingappz/bundles-js 0.3.7 → 1.0.1

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,45 +1,105 @@
1
1
  {
2
2
  "name": "@kachingappz/bundles-js",
3
- "version": "0.3.7",
3
+ "version": "1.0.1",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/kachingappz/bundles.git",
7
+ "directory": "bundles-js"
8
+ },
9
+ "publishConfig": {
10
+ "registry": "https://registry.npmjs.org",
11
+ "access": "public"
12
+ },
4
13
  "type": "module",
5
- "main": "./dist/bundles-js.js",
6
- "module": "./dist/bundles-js.js",
14
+ "main": "./dist/index.js",
15
+ "module": "./dist/index.js",
7
16
  "types": "./dist/index.d.ts",
17
+ "unpkg": "./dist/bundles-js.iife.js",
18
+ "jsdelivr": "./dist/bundles-js.iife.js",
8
19
  "exports": {
9
20
  ".": {
10
21
  "types": "./dist/index.d.ts",
11
- "import": "./dist/bundles-js.js",
12
- "require": "./dist/bundles-js.iife.js"
22
+ "import": "./dist/index.js"
23
+ },
24
+ "./kaching-bundle-component": {
25
+ "types": "./dist/kaching-bundle-component/index.d.ts",
26
+ "import": "./dist/kaching-bundle-component/index.js"
27
+ },
28
+ "./react": {
29
+ "types": "./dist/react/index.d.ts",
30
+ "import": "./dist/react/index.js",
31
+ "require": "./dist/react/index.cjs"
32
+ }
33
+ },
34
+ "typesVersions": {
35
+ "*": {
36
+ "react": [
37
+ "./dist/react/index.d.ts"
38
+ ],
39
+ "kaching-bundle-component": [
40
+ "./dist/kaching-bundle-component/index.d.ts"
41
+ ]
13
42
  }
14
43
  },
44
+ "sideEffects": [
45
+ "./dist/kaching-bundle-component/index.js",
46
+ "./dist/bundles-js.iife.js"
47
+ ],
15
48
  "files": [
16
49
  "dist",
17
50
  "README.md"
18
51
  ],
19
52
  "devDependencies": {
20
53
  "@eslint/js": "^9.21.0",
54
+ "@microsoft/api-extractor": "^7.57.7",
55
+ "@testing-library/react": "^16.3.3",
21
56
  "@types/node": "^20.11.24",
57
+ "@types/react": "^18.2.0",
58
+ "@types/react-dom": "^18.2.0",
59
+ "@vitejs/plugin-react": "^4.3.4",
22
60
  "eslint": "^9.21.0",
61
+ "eslint-plugin-react-hooks": "^5.1.0",
62
+ "eslint-plugin-react-refresh": "^0.4.19",
23
63
  "globals": "^15.15.0",
64
+ "hex-rgb": "^5.0.0",
65
+ "jsdom": "^29.1.1",
66
+ "react": "^18.2.0",
67
+ "react-19": "npm:react@^19.2.0",
68
+ "react-dom": "^18.2.0",
69
+ "react-dom-19": "npm:react-dom@^19.2.0",
24
70
  "typescript": "~5.7.2",
25
71
  "typescript-eslint": "^8.24.1",
26
72
  "vite": "^6.2.0",
27
73
  "vite-plugin-dts": "^4.5.3",
74
+ "vitest": "^3.2.7",
75
+ "@kachingappz/bundles-types": "^0.1.0",
28
76
  "@kachingappz/bundles-storefront-api": "^0.1.0",
29
- "@kachingappz/kaching-bundles-block": "^1.0.0",
30
- "@kachingappz/bundles-types": "^0.1.0"
77
+ "@kachingappz/kaching-bundles-block": "^1.0.0"
78
+ },
79
+ "peerDependencies": {
80
+ "react": "^18.2.0 || ^19.0.0",
81
+ "react-dom": "^18.2.0 || ^19.0.0"
82
+ },
83
+ "peerDependenciesMeta": {
84
+ "react": {
85
+ "optional": true
86
+ },
87
+ "react-dom": {
88
+ "optional": true
89
+ }
31
90
  },
32
- "description": "A vanilla JavaScript web component for integrating Kaching Bundles into any Shopify storefront.",
91
+ "description": "A web component and a React component for integrating Kaching Bundles into any Shopify storefront.",
33
92
  "author": "Donatas Stundys",
34
93
  "license": "ISC",
35
94
  "homepage": "https://apps.shopify.com/bundle-deals?utm_source=npm&utm_medium=bundles-js",
36
95
  "scripts": {
37
96
  "dev": "vite",
38
- "build": "vite build",
39
- "watch": "vite build --watch",
97
+ "build": "rm -rf dist && vite build && vite build -c vite.config.kaching-bundle-component.ts && vite build -c vite.config.react.ts",
98
+ "watch": "vite build --watch & vite build -c vite.config.kaching-bundle-component.ts --watch & vite build -c vite.config.react.ts --watch",
40
99
  "lint": "eslint .",
41
100
  "typecheck": "tsc --noEmit",
42
101
  "prettier:check": "prettier --check . --ignore-path ../.prettierignore",
43
- "prettier:fix": "prettier --write . --ignore-path ../.prettierignore"
102
+ "prettier:fix": "prettier --write . --ignore-path ../.prettierignore",
103
+ "test": "vitest run"
44
104
  }
45
105
  }