@myparcel-dev/pdk-common 2.3.0 → 2.3.2-beta-oidc.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 +10 -0
- package/dist/types/php-pdk.types.d.ts +5 -0
- package/package.json +22 -20
- package/src/types/php-pdk.types.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- MONOWEAVE:BELOW -->
|
|
4
4
|
|
|
5
|
+
## [2.3.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-common@2.3.0...@myparcel-dev/pdk-common@2.3.1) "@myparcel-dev/pdk-common" (2026-10-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **checkout:** send each new cart weight to Delivery Options ([#454](https://github.com/myparcelnl/js-pdk/issues/454)) ([814f4b5](https://github.com/myparcelnl/js-pdk/commit/814f4b560adfe4ba098bc1795ee162a5f32b0f39)), closes [myparcelnl/prestashop#671](https://github.com/myparcelnl/prestashop/issues/671)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
5
15
|
## [2.3.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-common@2.2.1...@myparcel-dev/pdk-common@2.3.0) "@myparcel-dev/pdk-common" (2026-10-15)
|
|
6
16
|
|
|
7
17
|
|
|
@@ -268,6 +268,11 @@ export declare namespace Plugin {
|
|
|
268
268
|
carrierSettings: unknown[];
|
|
269
269
|
/** Whether the context was built for a business recipient. Decides which carriers it holds. */
|
|
270
270
|
isBusiness: boolean;
|
|
271
|
+
/** The cart weight. Missing or null when no deliverable line has a weight. */
|
|
272
|
+
physicalProperties?: {
|
|
273
|
+
/** Weight in grams. */
|
|
274
|
+
weight: number;
|
|
275
|
+
} | null;
|
|
271
276
|
};
|
|
272
277
|
type ModelContextCheckoutContextSettings = {
|
|
273
278
|
actions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myparcel-dev/pdk-common",
|
|
3
|
-
"version": "2.3.0",
|
|
3
|
+
"version": "2.3.2-beta-oidc.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/myparcelnl/js-pdk.git",
|
|
@@ -13,35 +13,37 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"files": [
|
|
15
15
|
"./src",
|
|
16
|
-
"./dist"
|
|
16
|
+
"./dist",
|
|
17
|
+
"CHANGELOG.md"
|
|
17
18
|
],
|
|
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
19
|
"dependencies": {
|
|
31
20
|
"@myparcel-dev/constants": "^2.7.0",
|
|
32
|
-
"@myparcel-dev/delivery-options": "^7.5.0"
|
|
21
|
+
"@myparcel-dev/delivery-options": "^7.5.0",
|
|
22
|
+
"@myparcel-dev/sdk": "^5.1.2"
|
|
33
23
|
},
|
|
34
24
|
"devDependencies": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
25
|
+
"@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",
|
|
26
|
+
"typescript": "^5.2.2"
|
|
37
27
|
},
|
|
38
28
|
"engines": {
|
|
39
29
|
"node": ">=20"
|
|
40
30
|
},
|
|
41
|
-
"volta": {
|
|
42
|
-
"extends": "../../package.json"
|
|
43
|
-
},
|
|
44
31
|
"publishConfig": {
|
|
45
32
|
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"nx": {
|
|
35
|
+
"targets": {
|
|
36
|
+
"clean": {},
|
|
37
|
+
"lint": {},
|
|
38
|
+
"lint:fix": {},
|
|
39
|
+
"test": {},
|
|
40
|
+
"test:coverage": {},
|
|
41
|
+
"test:run": {},
|
|
42
|
+
"test:update": {}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc --project tsconfig.base.json --noEmit false --declaration --emitDeclarationOnly --declarationDir dist",
|
|
47
|
+
"typecheck": "tsc --project tsconfig.base.json --noEmit"
|
|
46
48
|
}
|
|
47
49
|
}
|
|
@@ -326,6 +326,11 @@ export namespace Plugin {
|
|
|
326
326
|
carrierSettings: unknown[];
|
|
327
327
|
/** Whether the context was built for a business recipient. Decides which carriers it holds. */
|
|
328
328
|
isBusiness: boolean;
|
|
329
|
+
/** The cart weight. Missing or null when no deliverable line has a weight. */
|
|
330
|
+
physicalProperties?: {
|
|
331
|
+
/** Weight in grams. */
|
|
332
|
+
weight: number;
|
|
333
|
+
} | null;
|
|
329
334
|
};
|
|
330
335
|
|
|
331
336
|
export type ModelContextCheckoutContextSettings = {
|