bitsnap-react 1.4.15 → 1.6.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,35 +1,50 @@
1
1
  {
2
2
  "name": "bitsnap-react",
3
- "version": "1.4.15",
3
+ "version": "1.6.0",
4
4
  "description": "This is Bitsnap React library for easy integration with any website which is using React framework",
5
- "main": "index.ts",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
6
7
  "type": "commonjs",
7
8
  "scripts": {
8
9
  "build": "tsup",
10
+ "test:returns-ssr": "pnpm build && node --test test/returns-widget.ssr.test.cjs",
9
11
  "build:publish": "pnpm build --env.publish",
10
12
  "clean": "rimraf ./dist",
11
13
  "dev": "tsup --watch",
12
- "dev:publish": "pnpm dev --env.publish"
14
+ "dev:publish": "pnpm dev --env.publish",
15
+ "test": "tsup src/components/checkout/appearance.test.ts --format esm --out-dir .test-dist --no-config --silent && node --test \".test-dist/**/*.test.mjs\"",
16
+ "test:types": "tsc -p test/consumer/tsconfig.json",
17
+ "test:package": "node test/consumer/verify-package.mjs"
13
18
  },
14
19
  "repository": {
15
20
  "type": "git",
16
21
  "url": "git+https://github.com/emmems/bitsnap-react.git"
17
22
  },
18
- "keywords": ["bitsnap", "checkout", "shop", "ecommerce"],
23
+ "keywords": [
24
+ "bitsnap",
25
+ "checkout",
26
+ "shop",
27
+ "ecommerce"
28
+ ],
19
29
  "author": "Piotr Michalik",
20
30
  "license": "SEE LICENSE IN LICENSE file",
21
31
  "bugs": {
22
32
  "url": "https://github.com/emmems/bitsnap-react/issues"
23
33
  },
24
- "sideEffects": ["*.css"],
25
- "files": ["dist", "internal", "errors", "backend"],
26
- "types": "dist/index.d.ts",
34
+ "sideEffects": [
35
+ "*.css"
36
+ ],
37
+ "files": [
38
+ "dist"
39
+ ],
40
+ "types": "./dist/index.d.ts",
27
41
  "homepage": "https://github.com/emmems/bitsnap-react#readme",
28
42
  "devDependencies": {
29
43
  "@bufbuild/protoc-gen-es": "^2.10.0",
30
44
  "@types/react": "^19.2.0",
31
45
  "@types/react-dom": "^19.2.0",
32
46
  "autoprefixer": "^10.4.20",
47
+ "postcss": "^8.5.3",
33
48
  "tsup": "^8.3.5",
34
49
  "typescript": "^5.6.3"
35
50
  },
@@ -128,6 +143,32 @@
128
143
  "default": "./dist/errors.js"
129
144
  }
130
145
  },
146
+ "./returns": {
147
+ "import": {
148
+ "types": "./dist/returns.d.mts",
149
+ "default": "./dist/returns.mjs"
150
+ },
151
+ "require": {
152
+ "types": "./dist/returns.d.ts",
153
+ "default": "./dist/returns.js"
154
+ }
155
+ },
131
156
  "./package.json": "./package.json"
157
+ },
158
+ "typesVersions": {
159
+ "*": {
160
+ "models": [
161
+ "./dist/models.d.ts"
162
+ ],
163
+ "internal": [
164
+ "./dist/internal.d.ts"
165
+ ],
166
+ "errors": [
167
+ "./dist/errors.d.ts"
168
+ ],
169
+ "returns": [
170
+ "./dist/returns.d.ts"
171
+ ]
172
+ }
132
173
  }
133
174
  }
@@ -1,2 +0,0 @@
1
- var k=Object.defineProperty,p=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var j=(b,a,c)=>a in b?k(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c,r=(b,a)=>{for(var c in a||(a={}))l.call(a,c)&&j(b,c,a[c]);if(f)for(var c of f(a))m.call(a,c)&&j(b,c,a[c]);return b},s=(b,a)=>p(b,q(a));var t=(b,a)=>{var c={};for(var d in b)l.call(b,d)&&a.indexOf(d)<0&&(c[d]=b[d]);if(b!=null&&f)for(var d of f(b))a.indexOf(d)<0&&m.call(b,d)&&(c[d]=b[d]);return c};var u=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),v=(b,a)=>{for(var c in a)k(b,c,{get:a[c],enumerable:!0})};var w=(b,a,c)=>new Promise((d,i)=>{var n=e=>{try{g(c.next(e))}catch(h){i(h)}},o=e=>{try{g(c.throw(e))}catch(h){i(h)}},g=e=>e.done?d(e.value):Promise.resolve(e.value).then(n,o);g((c=c.apply(b,a)).next())});export{r as a,s as b,t as c,u as d,v as e,w as f};
2
- //# sourceMappingURL=chunk-43KBVYBT.mjs.map