@jctrans-materials/shared 1.0.37-beta.1 → 1.0.37-beta.11
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/dist/index.cjs.js +1 -6
- package/dist/index.d.ts +18 -6
- package/dist/index.esm.js +1850 -3545
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -532,12 +532,14 @@ export declare interface GioPageProps {
|
|
|
532
532
|
export declare type GioTimerId = string;
|
|
533
533
|
|
|
534
534
|
declare class GioTracker {
|
|
535
|
+
private hasInitCalled;
|
|
536
|
+
private dispatcher;
|
|
537
|
+
private dispatcherLoading;
|
|
538
|
+
private pendingActions;
|
|
535
539
|
private get shouldValidateAttributes();
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
*/
|
|
540
|
-
private get gdp();
|
|
540
|
+
private flushPendingActions;
|
|
541
|
+
private ensureDispatcher;
|
|
542
|
+
private dispatch;
|
|
541
543
|
/**
|
|
542
544
|
* 检查 SDK 是否已初始化
|
|
543
545
|
* 在 SSR 环境下返回 false
|
|
@@ -612,10 +614,20 @@ declare class GioTracker {
|
|
|
612
614
|
/**
|
|
613
615
|
* 设置登录用户 ID
|
|
614
616
|
* 需要在初始化时设置 idMapping: true
|
|
617
|
+
* 调用方式:
|
|
618
|
+
* - setUserId(userId, callback?)
|
|
619
|
+
* - setUserId(userId, userKey, callback?)
|
|
615
620
|
* @param userId 用户 ID,长度 0 < length ≤ 1000
|
|
621
|
+
*/
|
|
622
|
+
/**
|
|
623
|
+
* 设置登录用户 ID(无 userKey 场景)
|
|
624
|
+
*/
|
|
625
|
+
setUserId(userId: string | number, callback?: GioCallback): void;
|
|
626
|
+
/**
|
|
627
|
+
* 设置登录用户 ID(ID-MAPPING 场景)
|
|
616
628
|
* @param userKey 用户 ID 类型标识(用于 ID-MAPPING)
|
|
617
629
|
*/
|
|
618
|
-
setUserId(userId: string | number, userKey
|
|
630
|
+
setUserId(userId: string | number, userKey: string | number, callback?: GioCallback): void;
|
|
619
631
|
/**
|
|
620
632
|
* 清除登录用户 ID(登出时调用)
|
|
621
633
|
*/
|