@choiceform/os-client-core 3.4.1 → 3.4.5
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 +24 -0
- package/dist/core.js +1 -1
- package/dist/web-core.js +1 -1
- package/index.d.ts +14 -23
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -603,10 +603,6 @@ interface CFEnvOptions {
|
|
|
603
603
|
* 服务配置信息
|
|
604
604
|
*/
|
|
605
605
|
interface CFHostConfig {
|
|
606
|
-
/**
|
|
607
|
-
* 错误统计服务key
|
|
608
|
-
*/
|
|
609
|
-
readonly sentryKey: string;
|
|
610
606
|
/**
|
|
611
607
|
* 操作记录接口地址
|
|
612
608
|
*/
|
|
@@ -1509,27 +1505,27 @@ declare const enum RICH_NODE_NAME {
|
|
|
1509
1505
|
/**
|
|
1510
1506
|
* span
|
|
1511
1507
|
*/
|
|
1512
|
-
SPAN = '
|
|
1508
|
+
SPAN = 'SPAN',
|
|
1513
1509
|
/**
|
|
1514
1510
|
* div
|
|
1515
1511
|
*/
|
|
1516
|
-
DIV = '
|
|
1512
|
+
DIV = 'DIV',
|
|
1517
1513
|
/**
|
|
1518
1514
|
* script
|
|
1519
1515
|
*/
|
|
1520
|
-
SCRIPT = '
|
|
1516
|
+
SCRIPT = 'SCRIPT',
|
|
1521
1517
|
/**
|
|
1522
1518
|
* ol
|
|
1523
1519
|
*/
|
|
1524
|
-
OL = '
|
|
1520
|
+
OL = 'OL',
|
|
1525
1521
|
/**
|
|
1526
1522
|
* ul
|
|
1527
1523
|
*/
|
|
1528
|
-
UL = '
|
|
1524
|
+
UL = 'UL',
|
|
1529
1525
|
/**
|
|
1530
1526
|
* br
|
|
1531
1527
|
*/
|
|
1532
|
-
BR = '
|
|
1528
|
+
BR = 'BR',
|
|
1533
1529
|
}
|
|
1534
1530
|
|
|
1535
1531
|
/**
|
|
@@ -6854,17 +6850,6 @@ interface ICFRandomHub extends ICFRandomNode, CFQuestion {
|
|
|
6854
6850
|
readonly origin: ICFRandomNode;
|
|
6855
6851
|
}
|
|
6856
6852
|
|
|
6857
|
-
/**
|
|
6858
|
-
* 虚拟奖励问题
|
|
6859
|
-
* @ignore
|
|
6860
|
-
*/
|
|
6861
|
-
interface ICFGiftHub extends ICFGiftNode, CFQuestion {
|
|
6862
|
-
/**
|
|
6863
|
-
* 是否获取短信失败
|
|
6864
|
-
*/
|
|
6865
|
-
readonly messageGetFailed: boolean;
|
|
6866
|
-
}
|
|
6867
|
-
|
|
6868
6853
|
/**
|
|
6869
6854
|
* @ignore
|
|
6870
6855
|
* 虚拟逻辑题
|
|
@@ -7571,6 +7556,7 @@ interface ICFRewardInfo extends ICFGiftNode, ICFLotteryResult, ICFCustomLogo {
|
|
|
7571
7556
|
* 渲染奖励信息
|
|
7572
7557
|
*/
|
|
7573
7558
|
interface CFRewardState extends ICFRewardInfo, CFStateBase {
|
|
7559
|
+
readonly renderId: string;
|
|
7574
7560
|
/**
|
|
7575
7561
|
* 奖励类型,包含以下两种类型
|
|
7576
7562
|
* 需要根据该类型渲染不同的内容.
|
|
@@ -7629,6 +7615,10 @@ interface CFRewardState extends ICFRewardInfo, CFStateBase {
|
|
|
7629
7615
|
* @ignore 该属性只在此核心项目中编程时使用,不会包含到发布后的包中
|
|
7630
7616
|
*/
|
|
7631
7617
|
readonly language: string;
|
|
7618
|
+
/**
|
|
7619
|
+
* 是否获取短信失败
|
|
7620
|
+
*/
|
|
7621
|
+
readonly messageGetFailed?: boolean;
|
|
7632
7622
|
}
|
|
7633
7623
|
|
|
7634
7624
|
|
|
@@ -9387,9 +9377,10 @@ interface CFUIEventHandler {
|
|
|
9387
9377
|
/**
|
|
9388
9378
|
* 获取验证码按钮点击回调,适用题目,验证节点,奖励节点
|
|
9389
9379
|
* 回调中逻辑层会去获取短信验证码或者图片验证码
|
|
9390
|
-
*
|
|
9380
|
+
* 当发送成功会返回Promise<true>,否则返回Promise<false>
|
|
9381
|
+
* @param target 使用短信的对象
|
|
9391
9382
|
*/
|
|
9392
|
-
handleGetCodeClick?(
|
|
9383
|
+
handleGetCodeClick?(target: CFVerifyQuestion | CFRewardState): Promise<boolean>;
|
|
9393
9384
|
|
|
9394
9385
|
/**
|
|
9395
9386
|
* 选项输入回调函数:适用题目填空题,打分题,数值分配题,连续评价题,上传题,输入方式排序或挑选方式排序的排序题以及有其他选项需要输入的题型
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choiceform/os-client-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "choice form survey client core",
|
|
5
5
|
"main": "./dist/core.js",
|
|
6
6
|
"repository": "https://github.com/choice-form/os-client-core",
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
"webpack-cli": "^4.8.0",
|
|
73
73
|
"webpack-dev-server": "^4.1.1"
|
|
74
74
|
}
|
|
75
|
-
}
|
|
75
|
+
}
|