@ic-pay/icpay-widget 1.2.19 → 1.2.51

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": "@ic-pay/icpay-widget",
3
- "version": "1.2.19",
3
+ "version": "1.2.51",
4
4
  "description": "ICPay embeddable payment widgets as framework-agnostic Web Components",
5
5
  "homepage": "https://github.com/icpay/icpay-widget#readme",
6
6
  "bugs": {
@@ -29,23 +29,42 @@
29
29
  "dist"
30
30
  ],
31
31
  "scripts": {
32
- "build": "tsup src/index.ts src/react/index.ts --format esm --dts --minify --sourcemap --clean --external @ic-pay/icpay-sdk,react,react-dom && pnpm build:css",
32
+ "build": "tsup && pnpm build:css && pnpm copy:wc",
33
33
  "build:css": "tailwindcss -i src/styles/tailwind.css -o dist/tailwind.css --minify",
34
- "dev": "tsup src/index.ts --watch --format esm,iife --global-name ICPayWidget --dts --external @ic-pay/icpay-sdk",
35
- "build:embed": "tsup src/index.ts --format iife --global-name ICPayWidget --minify --sourcemap --no-splitting --platform=browser && node -e \"const fs=require('fs');if(fs.existsSync('dist/index.global.js')){fs.renameSync('dist/index.global.js','dist/index.embed.js');if(fs.existsSync('dist/index.global.js.map'))fs.renameSync('dist/index.global.js.map','dist/index.embed.js.map');}\"",
34
+ "dev": "tsup --watch --format esm,iife --global-name ICPayWidget --dts",
35
+ "build:embed": "tsup --format iife --global-name ICPayWidget --minify --sourcemap --no-splitting --platform=browser && node -e \"const fs=require('fs');if(fs.existsSync('dist/index.global.js')){fs.renameSync('dist/index.global.js','dist/index.embed.js');if(fs.existsSync('dist/index.global.js.map'))fs.renameSync('dist/index.global.js.map','dist/index.embed.js.map');}\" && pnpm copy:wc",
36
+ "copy:wc": "node scripts/copy-wc-umd.cjs",
36
37
  "prepare": "pnpm build"
37
38
  },
39
+ "tsup": {
40
+ "entry": [
41
+ "src/index.ts",
42
+ "src/react/index.ts"
43
+ ],
44
+ "format": [
45
+ "esm"
46
+ ],
47
+ "dts": true,
48
+ "sourcemap": true,
49
+ "clean": true,
50
+ "minify": true,
51
+ "external": [
52
+ "@ic-pay/icpay-sdk",
53
+ "react",
54
+ "react-dom"
55
+ ],
56
+ "noExternal": []
57
+ },
38
58
  "dependencies": {
39
- "@dfinity/agent": "^3.4.2",
40
- "@dfinity/auth-client": "^3.4.2",
41
- "@dfinity/candid": "^3.4.2",
42
- "@dfinity/identity": "^3.4.2",
43
- "@dfinity/principal": "^3.4.2",
44
- "@ic-pay/icpay-sdk": "^1.4.13",
59
+ "@dfinity/agent": "^3.4.3",
60
+ "@dfinity/auth-client": "^3.4.3",
61
+ "@dfinity/candid": "^3.4.3",
62
+ "@dfinity/identity": "^3.4.3",
63
+ "@dfinity/principal": "^3.4.3",
64
+ "@ic-pay/icpay-sdk": "^1.4.18",
45
65
  "@slide-computer/signer": "^4.0.0",
46
66
  "@slide-computer/signer-agent": "^4.0.0",
47
67
  "@slide-computer/signer-web": "^4.0.0",
48
- "@walletconnect/ethereum-provider": "^2.23.0",
49
68
  "lit": "^3.3.1",
50
69
  "qrcode": "^1.5.4"
51
70
  },