@pisell/private-materials 6.12.276 → 6.12.277
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/bigSale/templates/HDLKiosk/HDLKioskIdentityAuthPanel.js +2 -2
- package/es/components/bigSale/templates/HDLKiosk/hooks/useHDLKioskH5AuthModule.js +2 -2
- package/lib/components/bigSale/templates/HDLKiosk/HDLKioskIdentityAuthPanel.js +2 -2
- package/lib/components/bigSale/templates/HDLKiosk/hooks/useHDLKioskH5AuthModule.js +2 -2
- package/package.json +3 -3
|
@@ -11,11 +11,11 @@ import "./HDLKioskIdentityAuthPanel.less";
|
|
|
11
11
|
* 运行机制:归一化认证结果或按账号搜索客户,暂存客户对象并只向 Core 返回 customerId。
|
|
12
12
|
* 边界:本组件不调用 customer.select;订单客户写入和重报价统一由 identity.sync 完成。
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
14
|
+
const KIOSK_AUTH_CHANNEL = "kiosk";
|
|
15
15
|
const DEFAULT_PHONE_COUNTRY = "AU";
|
|
16
16
|
function buildLoginConfig() {
|
|
17
17
|
return {
|
|
18
|
-
channel:
|
|
18
|
+
channel: KIOSK_AUTH_CHANNEL,
|
|
19
19
|
defaultPhoneCountry: DEFAULT_PHONE_COUNTRY,
|
|
20
20
|
loginMethods: [{
|
|
21
21
|
type: "phone",
|
|
@@ -6,7 +6,7 @@ import { useEffect, useMemo, useRef } from "react";
|
|
|
6
6
|
* 只清理由本 Hook 创建的模块。
|
|
7
7
|
* 边界:不渲染登录 UI,也不读取或写入订单客户。
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
9
|
+
const KIOSK_AUTH_CHANNEL = "kiosk";
|
|
10
10
|
const FALLBACK_MODULE_KEY = "hdlKiosk";
|
|
11
11
|
function resolveModuleKey(sales) {
|
|
12
12
|
const osKey = sales.osKey || FALLBACK_MODULE_KEY;
|
|
@@ -27,7 +27,7 @@ function useHDLKioskH5AuthModule(engineContext, sales) {
|
|
|
27
27
|
const module = new RegisterAndLoginClass(moduleName);
|
|
28
28
|
createdModuleRef.current = module;
|
|
29
29
|
pisellos.registerModule(module, { otherParams: {
|
|
30
|
-
channel:
|
|
30
|
+
channel: KIOSK_AUTH_CHANNEL,
|
|
31
31
|
platform: "h5",
|
|
32
32
|
fatherModule: moduleKey
|
|
33
33
|
} });
|
|
@@ -13,11 +13,11 @@ require("./HDLKioskIdentityAuthPanel.less");
|
|
|
13
13
|
* 运行机制:归一化认证结果或按账号搜索客户,暂存客户对象并只向 Core 返回 customerId。
|
|
14
14
|
* 边界:本组件不调用 customer.select;订单客户写入和重报价统一由 identity.sync 完成。
|
|
15
15
|
*/
|
|
16
|
-
const
|
|
16
|
+
const KIOSK_AUTH_CHANNEL = "kiosk";
|
|
17
17
|
const DEFAULT_PHONE_COUNTRY = "AU";
|
|
18
18
|
function buildLoginConfig() {
|
|
19
19
|
return {
|
|
20
|
-
channel:
|
|
20
|
+
channel: KIOSK_AUTH_CHANNEL,
|
|
21
21
|
defaultPhoneCountry: DEFAULT_PHONE_COUNTRY,
|
|
22
22
|
loginMethods: [{
|
|
23
23
|
type: "phone",
|
|
@@ -7,7 +7,7 @@ let react = require("react");
|
|
|
7
7
|
* 只清理由本 Hook 创建的模块。
|
|
8
8
|
* 边界:不渲染登录 UI,也不读取或写入订单客户。
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const KIOSK_AUTH_CHANNEL = "kiosk";
|
|
11
11
|
const FALLBACK_MODULE_KEY = "hdlKiosk";
|
|
12
12
|
function resolveModuleKey(sales) {
|
|
13
13
|
const osKey = sales.osKey || FALLBACK_MODULE_KEY;
|
|
@@ -28,7 +28,7 @@ function useHDLKioskH5AuthModule(engineContext, sales) {
|
|
|
28
28
|
const module = new RegisterAndLoginClass(moduleName);
|
|
29
29
|
createdModuleRef.current = module;
|
|
30
30
|
pisellos.registerModule(module, { otherParams: {
|
|
31
|
-
channel:
|
|
31
|
+
channel: KIOSK_AUTH_CHANNEL,
|
|
32
32
|
platform: "h5",
|
|
33
33
|
fatherModule: moduleKey
|
|
34
34
|
} });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.277",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"styled-components": "^6.0.0-rc.3",
|
|
73
73
|
"use-sync-external-store": "^1.6.0",
|
|
74
74
|
"@pisell/pi-payment-sdk": "0.0.3",
|
|
75
|
-
"@pisell/materials": "6.12.75",
|
|
76
|
-
"@pisell/utils": "3.0.7",
|
|
77
75
|
"@pisell/icon": "0.0.11",
|
|
76
|
+
"@pisell/utils": "3.0.7",
|
|
77
|
+
"@pisell/materials": "6.12.75",
|
|
78
78
|
"@pisell/date-picker": "3.0.12"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|