@dintero/checkout-web-sdk 0.6.6 → 0.7.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/{LISENCE → LICENSE} +2 -2
- package/dist/declarations/src/checkout.d.ts +112 -0
- package/dist/declarations/src/index.d.ts +61 -0
- package/dist/declarations/src/session.d.ts +937 -0
- package/dist/declarations/src/subscribe.d.ts +62 -0
- package/dist/dintero-checkout-web-sdk.cjs.dev.js +11 -8
- package/dist/dintero-checkout-web-sdk.cjs.prod.js +11 -8
- package/dist/dintero-checkout-web-sdk.esm.js +11 -8
- package/dist/dintero-checkout-web-sdk.umd.min.js +1 -1
- package/dist/dintero-checkout-web-sdk.umd.min.js.map +1 -1
- package/package.json +10 -7
- package/.babelrc +0 -3
- package/.github/CODEOWNERS +0 -4
- package/.github/dependabot.yml +0 -23
- package/.github/workflows/build.yml +0 -24
- package/.github/workflows/release.yml +0 -38
- package/.prettierrc.yml +0 -8
- package/.releaserc.json +0 -9
- package/CHANGELOG.md +0 -88
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dintero/checkout-web-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Dintero Checkout SDK for web frontends",
|
|
5
5
|
"main": "dist/dintero-checkout-web-sdk.cjs.js",
|
|
6
6
|
"module": "dist/dintero-checkout-web-sdk.esm.js",
|
|
7
7
|
"umd:main": "dist/dintero-checkout-web-sdk.umd.min.js",
|
|
8
8
|
"unpkg": "dist/dintero-checkout-web-sdk.umd.min.js",
|
|
9
9
|
"types": "dist/dintero-checkout-web-sdk.cjs.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
10
13
|
"preconstruct": {
|
|
11
14
|
"umdName": "dintero"
|
|
12
15
|
},
|
|
@@ -29,16 +32,16 @@
|
|
|
29
32
|
"url": "https://github.com/Dintero/Dintero.Checkout.Web.SDK/issues"
|
|
30
33
|
},
|
|
31
34
|
"devDependencies": {
|
|
32
|
-
"@babel/core": "7.23.
|
|
35
|
+
"@babel/core": "7.23.9",
|
|
33
36
|
"@babel/preset-typescript": "7.23.3",
|
|
34
37
|
"@preconstruct/cli": "2.8.3",
|
|
35
38
|
"@semantic-release/git": "10.0.1",
|
|
36
|
-
"@vitest/browser": "1.2.
|
|
37
|
-
"prettier": "3.2.
|
|
38
|
-
"semantic-release": "23.0.
|
|
39
|
+
"@vitest/browser": "1.2.2",
|
|
40
|
+
"prettier": "3.2.5",
|
|
41
|
+
"semantic-release": "23.0.2",
|
|
39
42
|
"typescript": "5.3.3",
|
|
40
|
-
"vitest": "1.2.
|
|
41
|
-
"webdriverio": "8.
|
|
43
|
+
"vitest": "1.2.2",
|
|
44
|
+
"webdriverio": "8.31.1"
|
|
42
45
|
},
|
|
43
46
|
"dependencies": {
|
|
44
47
|
"native-promise-only": "0.8.1"
|
package/.babelrc
DELETED
package/.github/CODEOWNERS
DELETED
package/.github/dependabot.yml
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: npm
|
|
4
|
-
directory: "/"
|
|
5
|
-
schedule:
|
|
6
|
-
interval: weekly
|
|
7
|
-
commit-message:
|
|
8
|
-
prefix: fix
|
|
9
|
-
prefix-development: chore
|
|
10
|
-
include: scope
|
|
11
|
-
groups:
|
|
12
|
-
babel:
|
|
13
|
-
patterns:
|
|
14
|
-
- "@babel/*"
|
|
15
|
-
semantic-release:
|
|
16
|
-
patterns:
|
|
17
|
-
- "@semantic-release/*"
|
|
18
|
-
- "semantic-release"
|
|
19
|
-
vitest-webdriverio:
|
|
20
|
-
patterns:
|
|
21
|
-
- "@vitest/*"
|
|
22
|
-
- "vitest"
|
|
23
|
-
- "webdriverio"
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches: [master]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v3
|
|
13
|
-
with:
|
|
14
|
-
fetch-depth: 0
|
|
15
|
-
- uses: actions/setup-node@v3
|
|
16
|
-
with:
|
|
17
|
-
node-version: "lts/*"
|
|
18
|
-
cache: npm
|
|
19
|
-
- name: yarn install, build, test and lint
|
|
20
|
-
run: |
|
|
21
|
-
yarn install --immutable
|
|
22
|
-
yarn run test
|
|
23
|
-
yarn run build
|
|
24
|
-
yarn run lint
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
release:
|
|
10
|
-
name: Release
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
permissions:
|
|
14
|
-
contents: write
|
|
15
|
-
packages: write
|
|
16
|
-
issues: write
|
|
17
|
-
pull-requests: write
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- name: Checkout
|
|
21
|
-
uses: actions/checkout@v3
|
|
22
|
-
with:
|
|
23
|
-
fetch-depth: 5
|
|
24
|
-
|
|
25
|
-
- name: Setup Node.js
|
|
26
|
-
uses: actions/setup-node@v3
|
|
27
|
-
with:
|
|
28
|
-
node-version: "lts/*"
|
|
29
|
-
- name: Install dependencies, test and lint
|
|
30
|
-
run: |
|
|
31
|
-
yarn install --immutable
|
|
32
|
-
yarn run test
|
|
33
|
-
yarn run lint
|
|
34
|
-
- name: Release
|
|
35
|
-
env:
|
|
36
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
37
|
-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
38
|
-
run: yarn run semantic-release
|
package/.prettierrc.yml
DELETED
package/.releaserc.json
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
## [0.6.0]
|
|
2
|
-
|
|
3
|
-
### Changed
|
|
4
|
-
|
|
5
|
-
- Changes iframe to also have `allow="payment"` property to support Apple Pay when embedded
|
|
6
|
-
|
|
7
|
-
## [0.4.0]
|
|
8
|
-
|
|
9
|
-
### Changed
|
|
10
|
-
|
|
11
|
-
- Changes `lockSession` to return a promise that resolves when the following `SessionLocked` event is returned from the checkout.
|
|
12
|
-
- Changes `refreshSession` to return a promise that resolves when the following `SessionUpdated` event is returned from the checkout.
|
|
13
|
-
|
|
14
|
-
## [0.3.1]
|
|
15
|
-
|
|
16
|
-
### Bug Fixes
|
|
17
|
-
|
|
18
|
-
- Add correct package version to url
|
|
19
|
-
|
|
20
|
-
## [0.3.0]
|
|
21
|
-
|
|
22
|
-
### Features
|
|
23
|
-
|
|
24
|
-
- **lock:** Add callback function to `onSessionLocked`
|
|
25
|
-
|
|
26
|
-
## [0.2.0]
|
|
27
|
-
|
|
28
|
-
### Features
|
|
29
|
-
|
|
30
|
-
- Handling of session validation when embedded
|
|
31
|
-
|
|
32
|
-
## [0.0.17]
|
|
33
|
-
|
|
34
|
-
### Changed
|
|
35
|
-
|
|
36
|
-
- Adds `onActivePaymentProductType` callback.
|
|
37
|
-
- Adds `setActivePaymentProductType` function.
|
|
38
|
-
|
|
39
|
-
## [0.0.16]
|
|
40
|
-
|
|
41
|
-
### Changed
|
|
42
|
-
|
|
43
|
-
- Changed build tool from microbundle to preconstruct, should fix exported types, updated/fixed documentation
|
|
44
|
-
|
|
45
|
-
## [0.0.15]
|
|
46
|
-
|
|
47
|
-
### Changed
|
|
48
|
-
|
|
49
|
-
- Added `lockSession` and `refreshSession` functions
|
|
50
|
-
|
|
51
|
-
## [0.0.14]
|
|
52
|
-
|
|
53
|
-
### Changed
|
|
54
|
-
|
|
55
|
-
- Added `onSessionLocked` and `onSessionLockFailed` callbacks
|
|
56
|
-
- Bumped dev dependencies to fix security issues with some of the
|
|
57
|
-
dev dependencies
|
|
58
|
-
|
|
59
|
-
## [0.0.13]
|
|
60
|
-
|
|
61
|
-
### Changed
|
|
62
|
-
|
|
63
|
-
-No changes but the build published to NPM for version `0.0.12` vas outdated.
|
|
64
|
-
|
|
65
|
-
## [0.0.12]
|
|
66
|
-
|
|
67
|
-
### Added
|
|
68
|
-
|
|
69
|
-
- Support embed with `onPayment` event handler.
|
|
70
|
-
- _Deprecate_ support for embed with `onPaymentAuthorized` event handler.
|
|
71
|
-
|
|
72
|
-
## [0.0.11]
|
|
73
|
-
|
|
74
|
-
### Added
|
|
75
|
-
|
|
76
|
-
- Support for language updates and embedResult page
|
|
77
|
-
|
|
78
|
-
## [0.0.10]
|
|
79
|
-
|
|
80
|
-
### Changed
|
|
81
|
-
|
|
82
|
-
- Use correct callback names in README examples
|
|
83
|
-
|
|
84
|
-
## [0.0.9]
|
|
85
|
-
|
|
86
|
-
### Added
|
|
87
|
-
|
|
88
|
-
- sdk version as url query parameter
|