bitsnap-react 1.5.0 → 1.6.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/README.md +474 -0
- package/dist/chunk-O4ICBP4G.mjs +2 -0
- package/dist/chunk-O4ICBP4G.mjs.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +85 -3
- package/dist/index.d.ts +85 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +361 -0
- package/dist/models.d.ts +361 -0
- package/dist/models.js +1 -1
- package/dist/models.js.map +1 -1
- package/dist/models.mjs +1 -1
- package/dist/models.mjs.map +1 -1
- package/dist/returns.d.mts +417 -0
- package/dist/returns.d.ts +417 -0
- package/dist/returns.js +2 -0
- package/dist/returns.js.map +1 -0
- package/dist/returns.mjs +2 -0
- package/dist/returns.mjs.map +1 -0
- package/package.json +40 -8
package/package.json
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitsnap-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "This is Bitsnap React library for easy integration with any website which is using React framework",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsup",
|
|
10
|
+
"test:returns-ssr": "pnpm build && node --test test/returns-widget.ssr.test.cjs",
|
|
10
11
|
"build:publish": "pnpm build --env.publish",
|
|
11
12
|
"clean": "rimraf ./dist",
|
|
12
13
|
"dev": "tsup --watch",
|
|
13
|
-
"dev:publish": "pnpm dev --env.publish"
|
|
14
|
+
"dev:publish": "pnpm dev --env.publish",
|
|
15
|
+
"test": "tsup src/components/checkout/appearance.test.ts src/components/checkout/texts.test.ts src/lib/appearance-core.test.ts src/lib/texts.test.ts src/components/returns/appearance.test.ts src/components/returns/texts.test.ts src/components/returns/errors.test.ts src/components/returns/money.test.ts src/components/returns/session-storage.test.ts src/components/returns/state-machine.test.ts src/components/returns/selection.test.ts src/components/returns/legacy.test.ts src/panel/returns-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"
|
|
14
18
|
},
|
|
15
19
|
"repository": {
|
|
16
20
|
"type": "git",
|
|
17
21
|
"url": "git+https://github.com/emmems/bitsnap-react.git"
|
|
18
22
|
},
|
|
19
|
-
"keywords": [
|
|
23
|
+
"keywords": [
|
|
24
|
+
"bitsnap",
|
|
25
|
+
"checkout",
|
|
26
|
+
"shop",
|
|
27
|
+
"ecommerce"
|
|
28
|
+
],
|
|
20
29
|
"author": "Piotr Michalik",
|
|
21
30
|
"license": "SEE LICENSE IN LICENSE file",
|
|
22
31
|
"bugs": {
|
|
23
32
|
"url": "https://github.com/emmems/bitsnap-react/issues"
|
|
24
33
|
},
|
|
25
|
-
"sideEffects": [
|
|
26
|
-
|
|
34
|
+
"sideEffects": [
|
|
35
|
+
"*.css"
|
|
36
|
+
],
|
|
37
|
+
"files": [
|
|
38
|
+
"dist"
|
|
39
|
+
],
|
|
27
40
|
"types": "./dist/index.d.ts",
|
|
28
41
|
"homepage": "https://github.com/emmems/bitsnap-react#readme",
|
|
29
42
|
"devDependencies": {
|
|
@@ -130,13 +143,32 @@
|
|
|
130
143
|
"default": "./dist/errors.js"
|
|
131
144
|
}
|
|
132
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
|
+
},
|
|
133
156
|
"./package.json": "./package.json"
|
|
134
157
|
},
|
|
135
158
|
"typesVersions": {
|
|
136
159
|
"*": {
|
|
137
|
-
"models": [
|
|
138
|
-
|
|
139
|
-
|
|
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
|
+
]
|
|
140
172
|
}
|
|
141
173
|
}
|
|
142
174
|
}
|