@myparcel-dev/pdk-checkout 1.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/CHANGELOG.md +178 -0
- package/dist/index.d.ts +8 -0
- package/package.json +51 -0
- package/src/__tests__/__snapshots__/exports.spec.ts.snap +48 -0
- package/src/__tests__/exports.spec.ts +8 -0
- package/src/index.ts +48 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
<!-- MONOWEAVE:BELOW -->
|
|
4
|
+
|
|
5
|
+
## [1.7.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-checkout@1.6.0...@myparcel-dev/pdk-checkout@1.7.0) "@myparcel-dev/pdk-checkout" (2025-12-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* migrate to [@myparcel-dev](https://github.com/myparcel-dev) scope ([#289](https://github.com/myparcelnl/js-pdk/issues/289)) ([ca169be](https://github.com/myparcelnl/js-pdk/commit/ca169bec42dcf7174ce20b1bfb392ae620b6c7fd))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.6.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.5.0...@myparcel-pdk/checkout@1.6.0) "@myparcel-pdk/checkout" (2025-11-10)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [1.1.5](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.1.3...@myparcel-pdk/checkout@1.1.5) "@myparcel-pdk/checkout" (2024-10-24)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [1.1.3](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.1.2...@myparcel-pdk/checkout@1.1.3) "@myparcel-pdk/checkout" (2024-10-24)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [1.1.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.1.0...@myparcel-pdk/checkout@1.1.1) "@myparcel-pdk/checkout" (2024-10-04)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## [1.1.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.4...@myparcel-pdk/checkout@1.1.0) "@myparcel-pdk/checkout" (2024-09-26)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **checkout:** improve shipping logic and expose default methods ([#216](https://github.com/myparcelnl/js-pdk/issues/216)) ([e860ba2](https://github.com/myparcelnl/js-pdk/commit/e860ba2bf14dc3dbffd7fb599bad514087c4667e))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## [1.0.2](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.1...@myparcel-pdk/checkout@1.0.2) "@myparcel-pdk/checkout" (2024-07-03)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Bug Fixes
|
|
49
|
+
|
|
50
|
+
* **checkout:** correctly switch package type based on shipping methods ([#212](https://github.com/myparcelnl/js-pdk/issues/212)) ([f25ebed](https://github.com/myparcelnl/js-pdk/commit/f25ebedbb0f6e9d5601af3d4c46f995fc08019ef))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [1.0.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.1...@myparcel-pdk/checkout@1.0.0) "@myparcel-pdk/checkout" (2024-04-11)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### ⚠ BREAKING CHANGES
|
|
59
|
+
|
|
60
|
+
* update node requirement to 20
|
|
61
|
+
|
|
62
|
+
### Miscellaneous Chores
|
|
63
|
+
|
|
64
|
+
* update node requirement to 20 ([e3f867f](https://github.com/myparcelnl/js-pdk/commit/e3f867fd3e19245154748a6858dbad4b56673fa3))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [1.0.0-beta.3](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-beta.2...@myparcel-pdk/checkout@1.0.0-beta.3) "@myparcel-pdk/checkout" (2024-03-14)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## [1.0.0-beta.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-beta.0...@myparcel-pdk/checkout@1.0.0-beta.1) "@myparcel-pdk/checkout" (2024-03-13)
|
|
75
|
+
|
|
76
|
+
## [1.0.0-beta.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.1...@myparcel-pdk/checkout@1.0.0-beta.0) "@myparcel-pdk/checkout" (2024-03-06)
|
|
77
|
+
|
|
78
|
+
## [1.0.0-alpha.78](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.77...@myparcel-pdk/checkout@1.0.0-alpha.78) "@myparcel-pdk/checkout" (2023-11-08)
|
|
79
|
+
|
|
80
|
+
### Features
|
|
81
|
+
|
|
82
|
+
- **checkout:** export more variables and types ([c1b4d08](https://github.com/myparcelnl/js-pdk/commit/c1b4d08aede0a80b187b657e6b500d37f54da541))
|
|
83
|
+
|
|
84
|
+
## [1.0.0-alpha.77](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.76...@myparcel-pdk/checkout@1.0.0-alpha.77) "@myparcel-pdk/checkout" (2023-11-02)
|
|
85
|
+
|
|
86
|
+
## [1.0.0-alpha.74](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.73...@myparcel-pdk/checkout@1.0.0-alpha.74) "@myparcel-pdk/checkout" (2023-10-30)
|
|
87
|
+
|
|
88
|
+
## [1.0.0-alpha.73](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.72...@myparcel-pdk/checkout@1.0.0-alpha.73) "@myparcel-pdk/checkout" (2023-10-19)
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
- **checkout:** export more variables ([ce30661](https://github.com/myparcelnl/js-pdk/commit/ce306614d7a31f48ddb7a5f6a7ee32d993d24852))
|
|
93
|
+
|
|
94
|
+
## [1.0.0-alpha.71](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.70...@myparcel-pdk/checkout@1.0.0-alpha.71) "@myparcel-pdk/checkout" (2023-10-13)
|
|
95
|
+
|
|
96
|
+
## [1.0.0-alpha.68](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.67...@myparcel-pdk/checkout@1.0.0-alpha.68) "@myparcel-pdk/checkout" (2023-10-03)
|
|
97
|
+
|
|
98
|
+
### Bug Fixes
|
|
99
|
+
|
|
100
|
+
- **checkout:** export more values ([cc6721f](https://github.com/myparcelnl/js-pdk/commit/cc6721fb9a6f3552c0ab406959860c313de1adde))
|
|
101
|
+
|
|
102
|
+
## [1.0.0-alpha.67](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.66...@myparcel-pdk/checkout@1.0.0-alpha.67) "@myparcel-pdk/checkout" (2023-09-14)
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
- **checkout:** export more variables ([0314ce2](https://github.com/myparcelnl/js-pdk/commit/0314ce2afe60b02ea4371d1662abfe7b174bb562))
|
|
107
|
+
- **checkout:** update checkout ([bd5df9a](https://github.com/myparcelnl/js-pdk/commit/bd5df9a03377b01ac62c9cc50025e5e246627edf))
|
|
108
|
+
|
|
109
|
+
## [1.0.0-alpha.66](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.65...@myparcel-pdk/checkout@1.0.0-alpha.66) "@myparcel-pdk/checkout" (2023-09-13)
|
|
110
|
+
|
|
111
|
+
### Bug Fixes
|
|
112
|
+
|
|
113
|
+
- **checkout:** export more variables ([66f2ebc](https://github.com/myparcelnl/js-pdk/commit/66f2ebc90dca820af36f7ce0ae637e2ae4bf90e6))
|
|
114
|
+
|
|
115
|
+
## [1.0.0-alpha.63](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.62...@myparcel-pdk/checkout@1.0.0-alpha.63) "@myparcel-pdk/checkout" (2023-09-06)
|
|
116
|
+
|
|
117
|
+
## [1.0.0-alpha.58](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.57...@myparcel-pdk/checkout@1.0.0-alpha.58) "@myparcel-pdk/checkout" (2023-08-04)
|
|
118
|
+
|
|
119
|
+
## [1.0.0-alpha.56](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.55...@myparcel-pdk/checkout@1.0.0-alpha.56) "@myparcel-pdk/checkout" (2023-08-03)
|
|
120
|
+
|
|
121
|
+
## [1.0.0-alpha.54](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.53...@myparcel-pdk/checkout@1.0.0-alpha.54) "@myparcel-pdk/checkout" (2023-07-26)
|
|
122
|
+
|
|
123
|
+
### Bug Fixes
|
|
124
|
+
|
|
125
|
+
- **npm:** update repository field ([e940854](https://github.com/myparcelnl/js-pdk/commit/e940854ba1d99c0fcdada8b66f88a7c7e6060272))
|
|
126
|
+
|
|
127
|
+
## [1.0.0-alpha.52](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.51...@myparcel-pdk/checkout@1.0.0-alpha.52) "@myparcel-pdk/checkout" (2023-07-11)
|
|
128
|
+
|
|
129
|
+
## [1.0.0-alpha.50](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.49...@myparcel-pdk/checkout@1.0.0-alpha.50) "@myparcel-pdk/checkout" (2023-07-04)
|
|
130
|
+
|
|
131
|
+
## [1.0.0-alpha.46](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.45...@myparcel-pdk/checkout@1.0.0-alpha.46) "@myparcel-pdk/checkout" (2023-06-07)
|
|
132
|
+
|
|
133
|
+
## [1.0.0-alpha.45](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.44...@myparcel-pdk/checkout@1.0.0-alpha.45) "@myparcel-pdk/checkout" (2023-06-06)
|
|
134
|
+
|
|
135
|
+
## [1.0.0-alpha.41](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.40...@myparcel-pdk/checkout@1.0.0-alpha.41) "@myparcel-pdk/checkout" (2023-05-26)
|
|
136
|
+
|
|
137
|
+
### Bug Fixes
|
|
138
|
+
|
|
139
|
+
- restore missing types ([903cfb9](https://github/myparcelnl/js-pdk/commit/903cfb95f161bb5b49fbb91c4f96a7e44c524db8))
|
|
140
|
+
|
|
141
|
+
## [1.0.0-alpha.39](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.38...@myparcel-pdk/checkout@1.0.0-alpha.39) "@myparcel-pdk/checkout" (2023-05-25)
|
|
142
|
+
|
|
143
|
+
### ⚠ BREAKING CHANGES
|
|
144
|
+
|
|
145
|
+
- change all packages so imports don't need /src anymore
|
|
146
|
+
|
|
147
|
+
### Code Refactoring
|
|
148
|
+
|
|
149
|
+
- change all packages so imports don't need /src anymore ([892306b](https://github/myparcelnl/js-pdk/commit/892306bd3307fe8d5d011bbf6eb7654f7365347a))
|
|
150
|
+
|
|
151
|
+
## [1.0.0-alpha.34](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.33...@myparcel-pdk/checkout@1.0.0-alpha.34) "@myparcel-pdk/checkout" (2023-05-04)
|
|
152
|
+
|
|
153
|
+
### Features
|
|
154
|
+
|
|
155
|
+
- **checkout:** improve checkout logic ([fb2a8bd](https://github/myparcelnl/js-pdk/commit/fb2a8bd4b9404cac0fe600526d85465e3a1ee5f9))
|
|
156
|
+
|
|
157
|
+
## [1.0.0-alpha.32](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.31...@myparcel-pdk/checkout@1.0.0-alpha.32) "@myparcel-pdk/checkout" (2023-04-20)
|
|
158
|
+
|
|
159
|
+
## [1.0.0-alpha.31](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.30...@myparcel-pdk/checkout@1.0.0-alpha.31) "@myparcel-pdk/checkout" (2023-04-20)
|
|
160
|
+
|
|
161
|
+
## [1.0.0-alpha.30](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.29...@myparcel-pdk/checkout@1.0.0-alpha.30) "@myparcel-pdk/checkout" (2023-04-20)
|
|
162
|
+
|
|
163
|
+
### Features
|
|
164
|
+
|
|
165
|
+
- add checkout packages ([ad1d9e1](https://github/myparcelnl/js-pdk/commit/ad1d9e1f027af9e6124f8266f64edc0509e22a9d))
|
|
166
|
+
|
|
167
|
+
## [1.0.0-alpha.27](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.26...@myparcel-pdk/checkout@1.0.0-alpha.27) "@myparcel-pdk/checkout" (2023-04-12)
|
|
168
|
+
|
|
169
|
+
## [1.0.0-alpha.1](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/checkout@1.0.0-alpha.0...@myparcel-pdk/checkout@1.0.0-alpha.1) "@myparcel-pdk/checkout" (2023-02-22)
|
|
170
|
+
|
|
171
|
+
### Features
|
|
172
|
+
|
|
173
|
+
- add app for frontend delivery options ([577f5f5](https://github/myparcelnl/js-pdk/commit/577f5f5f4e0716717f76702c6f4b6a98b3bdb8bd))
|
|
174
|
+
- add checkout app ([ee2543b](https://github/myparcelnl/js-pdk/commit/ee2543bc90c643b14e668447a0d06ed173e5baae))
|
|
175
|
+
|
|
176
|
+
### Bug Fixes
|
|
177
|
+
|
|
178
|
+
- make split between backend and frontend endpoints ([ce5ab02](https://github/myparcelnl/js-pdk/commit/ce5ab0284ff41f1b920a8ad60af31b24c7faaa42))
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { AddressFields, CheckoutStoreState, FrontendEndpointData, FrontendEndpointDefinition, FrontendEndpointParameters, FrontendEndpointResponse, FrontendPdkEndpointObject, PdkCheckoutConfig, PdkCheckoutConfigInput, PdkCheckoutForm, PdkFormData, StoreCallbackUpdate, } from '@myparcel-dev/pdk-checkout-common';
|
|
2
|
+
export * from '@myparcel-dev/pdk-checkout-delivery-options';
|
|
3
|
+
export * from '@myparcel-dev/pdk-checkout-separate-address-fields';
|
|
4
|
+
export * from '@myparcel-dev/pdk-checkout-tax-fields';
|
|
5
|
+
export { AddressField, AddressType, PdkEvent, PdkField, PdkUtil, StoreListener,
|
|
6
|
+
/** @deprecated use PdkUtil */
|
|
7
|
+
PdkUtil as Util, globals as _, createPdkCheckout, getEnabledShippingMethods, useCheckoutStore, useEvent, usePdkCheckout, useSettings, useUtil, } from '@myparcel-dev/pdk-checkout-common';
|
|
8
|
+
export { HIDE_DELIVERY_OPTIONS as EVENT_HIDE_DELIVERY_OPTIONS, SHOW_DELIVERY_OPTIONS as EVENT_SHOW_DELIVERY_OPTIONS, UPDATED_ADDRESS as EVENT_UPDATED_ADDRESS, UPDATED_DELIVERY_OPTIONS as EVENT_UPDATED_DELIVERY_OPTIONS, UPDATE_CONFIG_IN as EVENT_UPDATE_CONFIG, UPDATE_DELIVERY_OPTIONS as EVENT_UPDATE_DELIVERY_OPTIONS, } from '@myparcel-dev/delivery-options';
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@myparcel-dev/pdk-checkout",
|
|
3
|
+
"version": "1.7.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/myparcelnl/js-pdk.git",
|
|
7
|
+
"directory": "apps/checkout"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": "./src/index.ts",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"files": [
|
|
15
|
+
"./src",
|
|
16
|
+
"./dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "run ws:ts:build \"$(pwd)\"",
|
|
20
|
+
"clean": "run ws:clean \"$(pwd)\"",
|
|
21
|
+
"emit": "run ws:ts:emit \"$(pwd)\"",
|
|
22
|
+
"lint": "run ws:lint \"$(pwd)\"",
|
|
23
|
+
"lint:fix": "run ws:lint:fix \"$(pwd)\"",
|
|
24
|
+
"test": "run ws:test \"$(pwd)\"",
|
|
25
|
+
"test:coverage": "run ws:test:coverage \"$(pwd)\"",
|
|
26
|
+
"test:run": "run ws:test:run \"$(pwd)\"",
|
|
27
|
+
"test:update": "run ws:test:update \"$(pwd)\"",
|
|
28
|
+
"typecheck": "run ws:ts:typecheck \"$(pwd)\""
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@myparcel-dev/pdk-checkout-common": "^1.7.0",
|
|
32
|
+
"@myparcel-dev/pdk-checkout-delivery-options": "^1.7.0",
|
|
33
|
+
"@myparcel-dev/pdk-checkout-separate-address-fields": "^1.7.0",
|
|
34
|
+
"@myparcel-dev/pdk-checkout-tax-fields": "^1.7.0",
|
|
35
|
+
"@myparcel-dev/pdk-common": "^1.11.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"typescript": "^5.2.2",
|
|
39
|
+
"vitest": "^2.1.3"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=20"
|
|
43
|
+
},
|
|
44
|
+
"volta": {
|
|
45
|
+
"extends": "../../package.json"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"deployGroup": "checkout"
|
|
51
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`exports > exports from index.ts 1`] = `
|
|
4
|
+
[
|
|
5
|
+
"AddressField",
|
|
6
|
+
"AddressType",
|
|
7
|
+
"DeliveryOptionsMode",
|
|
8
|
+
"EVENT_HIDE_DELIVERY_OPTIONS",
|
|
9
|
+
"EVENT_SHOW_DELIVERY_OPTIONS",
|
|
10
|
+
"EVENT_UPDATED_ADDRESS",
|
|
11
|
+
"EVENT_UPDATED_DELIVERY_OPTIONS",
|
|
12
|
+
"EVENT_UPDATE_CONFIG",
|
|
13
|
+
"EVENT_UPDATE_DELIVERY_OPTIONS",
|
|
14
|
+
"PdkDeliveryOptionsEvent",
|
|
15
|
+
"PdkEvent",
|
|
16
|
+
"PdkField",
|
|
17
|
+
"PdkUtil",
|
|
18
|
+
"SPLIT_STREET_REGEX",
|
|
19
|
+
"SeparateAddressField",
|
|
20
|
+
"StoreListener",
|
|
21
|
+
"TaxField",
|
|
22
|
+
"Util",
|
|
23
|
+
"_",
|
|
24
|
+
"createPdkCheckout",
|
|
25
|
+
"debounce",
|
|
26
|
+
"defaultGetPackageType",
|
|
27
|
+
"defaultUpdateDeliveryOptions",
|
|
28
|
+
"deliveryOptionsIsRendered",
|
|
29
|
+
"fetchCheckoutContext",
|
|
30
|
+
"getDeliveryOptionsAddress",
|
|
31
|
+
"getEnabledShippingMethods",
|
|
32
|
+
"getPackageTypeFromShippingMethod",
|
|
33
|
+
"getResolvedSettings",
|
|
34
|
+
"initializeCheckoutDeliveryOptions",
|
|
35
|
+
"initializeCheckoutSeparateAddressFields",
|
|
36
|
+
"initializeCheckoutTaxFields",
|
|
37
|
+
"shippingMethodHasDeliveryOptions",
|
|
38
|
+
"splitFullStreet",
|
|
39
|
+
"toggleDeliveryOptions",
|
|
40
|
+
"updateContext",
|
|
41
|
+
"useCheckoutStore",
|
|
42
|
+
"useDeliveryOptionsStore",
|
|
43
|
+
"useEvent",
|
|
44
|
+
"usePdkCheckout",
|
|
45
|
+
"useSettings",
|
|
46
|
+
"useUtil",
|
|
47
|
+
]
|
|
48
|
+
`;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
AddressFields,
|
|
3
|
+
CheckoutStoreState,
|
|
4
|
+
FrontendEndpointData,
|
|
5
|
+
FrontendEndpointDefinition,
|
|
6
|
+
FrontendEndpointParameters,
|
|
7
|
+
FrontendEndpointResponse,
|
|
8
|
+
FrontendPdkEndpointObject,
|
|
9
|
+
PdkCheckoutConfig,
|
|
10
|
+
PdkCheckoutConfigInput,
|
|
11
|
+
PdkCheckoutForm,
|
|
12
|
+
PdkFormData,
|
|
13
|
+
StoreCallbackUpdate,
|
|
14
|
+
} from '@myparcel-dev/pdk-checkout-common';
|
|
15
|
+
|
|
16
|
+
export * from '@myparcel-dev/pdk-checkout-delivery-options';
|
|
17
|
+
|
|
18
|
+
export * from '@myparcel-dev/pdk-checkout-separate-address-fields';
|
|
19
|
+
|
|
20
|
+
export * from '@myparcel-dev/pdk-checkout-tax-fields';
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
AddressField,
|
|
24
|
+
AddressType,
|
|
25
|
+
PdkEvent,
|
|
26
|
+
PdkField,
|
|
27
|
+
PdkUtil,
|
|
28
|
+
StoreListener,
|
|
29
|
+
/** @deprecated use PdkUtil */
|
|
30
|
+
PdkUtil as Util,
|
|
31
|
+
globals as _,
|
|
32
|
+
createPdkCheckout,
|
|
33
|
+
getEnabledShippingMethods,
|
|
34
|
+
useCheckoutStore,
|
|
35
|
+
useEvent,
|
|
36
|
+
usePdkCheckout,
|
|
37
|
+
useSettings,
|
|
38
|
+
useUtil,
|
|
39
|
+
} from '@myparcel-dev/pdk-checkout-common';
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
HIDE_DELIVERY_OPTIONS as EVENT_HIDE_DELIVERY_OPTIONS,
|
|
43
|
+
SHOW_DELIVERY_OPTIONS as EVENT_SHOW_DELIVERY_OPTIONS,
|
|
44
|
+
UPDATED_ADDRESS as EVENT_UPDATED_ADDRESS,
|
|
45
|
+
UPDATED_DELIVERY_OPTIONS as EVENT_UPDATED_DELIVERY_OPTIONS,
|
|
46
|
+
UPDATE_CONFIG_IN as EVENT_UPDATE_CONFIG,
|
|
47
|
+
UPDATE_DELIVERY_OPTIONS as EVENT_UPDATE_DELIVERY_OPTIONS,
|
|
48
|
+
} from '@myparcel-dev/delivery-options';
|