@choiceform/os-client-core 3.4.33 → 3.4.37
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 +14 -1
- package/dist/core.js +1 -1
- package/dist/web-core.js +1 -1
- package/index.d.ts +28 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -899,6 +899,11 @@ interface CFUtil {
|
|
|
899
899
|
* 获取当前答题任务已完成的概要信息
|
|
900
900
|
*/
|
|
901
901
|
getTaskInfo(): Promise<CFTaskInfo>;
|
|
902
|
+
/**
|
|
903
|
+
* 获取一道题目的答案
|
|
904
|
+
* @param question 题目
|
|
905
|
+
*/
|
|
906
|
+
getAnswer(question: CFQuestion): ICFAnswer;
|
|
902
907
|
}
|
|
903
908
|
|
|
904
909
|
/**
|
|
@@ -3519,6 +3524,10 @@ interface ICFRewardItem {
|
|
|
3519
3524
|
* @ignore
|
|
3520
3525
|
*/
|
|
3521
3526
|
interface ICFStartNode extends ICFNode, ICFStartMiniState, ICFOutputNodeMixin, CFMediaNodeMixin {
|
|
3527
|
+
/**
|
|
3528
|
+
* url参数
|
|
3529
|
+
*/
|
|
3530
|
+
urlParames: CFPDUrlParamItem[];
|
|
3522
3531
|
/**
|
|
3523
3532
|
* 问卷中包含使用的模板id列表
|
|
3524
3533
|
*/
|
|
@@ -6705,6 +6714,11 @@ interface ICFStartMiniState extends ICFCustomLogo {
|
|
|
6705
6714
|
* 自带的多语言翻译包,可以不需要请求大翻译包就实现开始页面的语言切换。
|
|
6706
6715
|
*/
|
|
6707
6716
|
i18n?: any;
|
|
6717
|
+
|
|
6718
|
+
/**
|
|
6719
|
+
* 预览模式下是否显示快速答题按钮
|
|
6720
|
+
*/
|
|
6721
|
+
previewQuickAnswer: boolean;
|
|
6708
6722
|
/**
|
|
6709
6723
|
* 是否显示题目编号
|
|
6710
6724
|
*/
|
|
@@ -8038,7 +8052,11 @@ interface ICFResumeHolder {
|
|
|
8038
8052
|
/**
|
|
8039
8053
|
* 缓存的数据
|
|
8040
8054
|
*/
|
|
8041
|
-
data:
|
|
8055
|
+
data: ICFResumeData;
|
|
8056
|
+
/**
|
|
8057
|
+
* 缓存的错误状态
|
|
8058
|
+
*/
|
|
8059
|
+
error: ICFResumeError;
|
|
8042
8060
|
/**
|
|
8043
8061
|
* 需要回复到的位置
|
|
8044
8062
|
*/
|
|
@@ -8150,10 +8168,18 @@ interface ICFMaxDiffTaskCache {
|
|
|
8150
8168
|
/**
|
|
8151
8169
|
* @ignore
|
|
8152
8170
|
*/
|
|
8153
|
-
interface
|
|
8171
|
+
interface ICFResumeData {
|
|
8154
8172
|
[key: string]: ICFQuestionCache;
|
|
8155
8173
|
}
|
|
8156
8174
|
|
|
8175
|
+
interface ICFResumeQuesError {
|
|
8176
|
+
error: string;
|
|
8177
|
+
options: { [key: string]: string };
|
|
8178
|
+
}
|
|
8179
|
+
interface ICFResumeError {
|
|
8180
|
+
[key: string]: ICFResumeQuesError;
|
|
8181
|
+
}
|
|
8182
|
+
|
|
8157
8183
|
/**
|
|
8158
8184
|
* 题目答题状态缓存,混合了各个题目的内容,但是针对单个题目只会包含这里面的部分内容。
|
|
8159
8185
|
* 简化类型定义混合到了一起。
|
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.37",
|
|
4
4
|
"description": "choiceform survey client core",
|
|
5
5
|
"main": "./dist/core.js",
|
|
6
6
|
"repository": "https://github.com/choice-form/os-client-core",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"ua-parser-js": "^0.7.20"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@choiceform/os-cfpd": "^3.1.
|
|
71
|
+
"@choiceform/os-cfpd": "^3.1.14",
|
|
72
72
|
"ts-loader": "^9.2.5",
|
|
73
73
|
"typescript": "^4.4.2",
|
|
74
74
|
"webpack": "^5.52.0",
|