@alipay/ams-checkout 0.0.1779094014-dev.20 → 0.0.1779094014-dev.21

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.
@@ -296,6 +296,6 @@ export var LogConfig = {
296
296
  version: 'iteration/20231021',
297
297
  mdata: {
298
298
  firstLogTime: Date.now(),
299
- sdkVersion: "0.0.1779094014-dev.20"
299
+ sdkVersion: "0.0.1779094014-dev.21"
300
300
  }
301
301
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1779094014-dev.20",
3
+ "version": "0.0.1779094014-dev.21",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "type": "module",
@@ -37,16 +37,15 @@
37
37
  "README.md"
38
38
  ],
39
39
  "scripts": {
40
- "build": "opensdk update && npm run build:father:pre && npm run extract && npm run build:father && npm run build:father:umd && npm run build:father:tools && npm run build:react",
40
+ "build": "opensdk update && npm run build:father:pre && npm run extract && npm run build:father:umd && npm run build:father:tools && npm run build:react",
41
41
  "build:analyze": "ANALYZE=1 father build",
42
- "build:father": "FATHER_TSCONFIG_NAME=tsconfig.build.json father build",
43
- "build:father:local": "STAGE_NAME=LOCAL FATHER_TSCONFIG_NAME=tsconfig.build.json father build",
44
- "build:father:pre": "FATHER_BUILD_TYPE=prebuild father build",
42
+ "build:father:pre": "father build",
43
+ "build:father:pre:local": "STAGE_NAME=LOCAL father build",
45
44
  "build:father:tools": "FATHER_BUILD_TYPE=only-umd-tools father build --no-clean",
46
45
  "build:father:tools:local": "STAGE_NAME=LOCAL FATHER_BUILD_TYPE=only-umd-tools father build --no-clean",
47
46
  "build:father:umd": "FATHER_BUILD_TYPE=only-umd father build",
48
47
  "build:father:umd:local": "STAGE_NAME=LOCAL FATHER_BUILD_TYPE=only-umd father build",
49
- "build:local": "opensdk update && npm run build:father:pre && npm run extract && npm run build:father:local && npm run build:father:umd:local && npm run build:father:tools:local && npm run build:react",
48
+ "build:local": "opensdk update && npm run build:father:pre && npm run extract && npm run build:father:umd:local && npm run build:father:tools:local && npm run build:react",
50
49
  "build:react": "tsc --project tsconfig.cjs.json && mv react-js.js react-js.cjs && tsc --project tsconfig.esm.json",
51
50
  "build:type": "dts-bundle-generator -o ./types/antom-web-sdk.d.ts ./src/index.ts --no-banner --silent --no-check",
52
51
  "build:w": "FATHER_BUILD_TYPE=only-umd STAGE_NAME=LOCAL father dev",
@@ -56,7 +55,7 @@
56
55
  "e2e": "nyc playwright test",
57
56
  "e2e:create": "node scripts/e2e-create.js",
58
57
  "e2e:ui": "playwright test --ui",
59
- "extract": "opensdk extract -p esm/modern/sdk",
58
+ "extract": "opensdk extract && tspc -p tsconfig.build.json && rm -rf esm/modern/sdk",
60
59
  "format": "prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"",
61
60
  "generateApi": "intl-oneapi generate && prettier --write src/modern/sdk/oneapi",
62
61
  "lint": "eslint ./src",
@@ -88,7 +87,6 @@
88
87
  ]
89
88
  },
90
89
  "dependencies": {
91
- "@antglobal/create-sdk-loader": "^1.0.5",
92
90
  "axios": "^1.3.4",
93
91
  "proxy-polyfill": "^0.3.2",
94
92
  "uuid": "^9.0.0"
@@ -97,6 +95,7 @@
97
95
  "name": "Antom"
98
96
  },
99
97
  "devDependencies": {
98
+ "@antglobal/create-sdk-loader": "^1.0.5",
100
99
  "@babel/core": "^7.20.7",
101
100
  "@babel/preset-env": "^7.20.2",
102
101
  "@commitlint/cli": "^17.3.0",
@@ -128,7 +127,9 @@
128
127
  "serve": "^14.2.5",
129
128
  "ts-jest": "^29.0.3",
130
129
  "ts-node": "^10.9.1",
131
- "typescript": "^5.x"
130
+ "ts-patch": "^3.3.0",
131
+ "typescript": "^5.x",
132
+ "typescript-transform-paths": "^3.5.6"
132
133
  },
133
134
  "engines": {
134
135
  "install-node": "20"
package/types.d.ts CHANGED
@@ -3280,6 +3280,9 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
3280
3280
  * Only effective via `updateConfig({ amount })` at runtime.
3281
3281
  * Passing amount at creation time is ignored — the initial amount
3282
3282
  * comes from the server-side sdkQuery result (renderData.paymentAmount).
3283
+ *
3284
+ * `value` must be a positive integer string in **minor currency units** (ISO 4217).
3285
+ * Examples: USD $1.00 → "100", JPY ¥1 → "1", EUR €9.99 → "999"
3283
3286
  */
3284
3287
  amount?: {
3285
3288
  currency: string;
@@ -3691,6 +3691,9 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
3691
3691
  * Only effective via `updateConfig({ amount })` at runtime.
3692
3692
  * Passing amount at creation time is ignored — the initial amount
3693
3693
  * comes from the server-side sdkQuery result (renderData.paymentAmount).
3694
+ *
3695
+ * `value` must be a positive integer string in **minor currency units** (ISO 4217).
3696
+ * Examples: USD $1.00 → "100", JPY ¥1 → "1", EUR €9.99 → "999"
3694
3697
  */
3695
3698
  amount?: {
3696
3699
  currency: string;
@@ -1,3 +0,0 @@
1
- type StageName = 'DEV' | 'PROD' | 'LOCAL';
2
- export declare const stageName: StageName;
3
- export {};
@@ -1 +0,0 @@
1
- export var stageName = true ? 'DEV' : false ? 'LOCAL' : 'PROD';
@@ -1,20 +0,0 @@
1
- /**
2
- * @description modern tools,提供给老sdk使用,所以必须使用umd打包方式,不要修改
3
- */
4
- export { buildPageUrl } from './sdk/tools/buildPageUrl';
5
- export { getDevReqConfig } from './sdk/tools/getDevReqConfig';
6
- export { getLocaleFromRenderData } from './sdk/tools/getLocaleFromRenderData';
7
- export { getMetaData, isElements2, adjustSessionData } from './sdk/tools/getMetaData';
8
- export { openModal } from './sdk/tools/openModal';
9
- export { awaitWrap } from './sdk/tools/awaitWrap';
10
- export { AntomSDKError } from './sdk/types';
11
- export { sdkQuery, oneAccountQuery } from './sdk/oneapi/iexpfront/PaymentSessionService';
12
- export type { AntomBridgeEventMap, SubmitResult, AntomTheme, AntomLayouts, AntomVariables } from './sdk/types';
13
- export type { PaymentSubmitResult, PaymentAppearance, PaymentAppConfig, ShippingInfo } from './sdk/elements/PaymentElement';
14
- export type { ErrorPayload, BaseBridgeEventMap, BridgeMode } from '@antintl/opensdk-core';
15
- export type { CashierSdkActionQueryResult } from './sdk/oneapi/iexpfront/definitions';
16
- export { MessageType } from '@antintl/opensdk-core';
17
- export { debugError, debug, OpenSDKError } from '@antintl/opensdk-core';
18
- export { request, parseHostSign, parseTrackerId } from '@antintl/antom-toolset';
19
- export { SDKBridge, generateId } from '@antintl/opensdk-bridge';
20
- export type { BaseOpenModalConfig } from '@antintl/opensdk-bridge';