@choiceform/os-client-core 3.4.6 → 3.4.7
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 +8 -0
- package/dist/core.js +1 -1
- package/dist/web-core.js +1 -1
- package/index.d.ts +11 -15
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -237,16 +237,14 @@ interface CFEnvUi {
|
|
|
237
237
|
initNodeTemplate?(
|
|
238
238
|
template: CFNodeTemplate,
|
|
239
239
|
state: CFSurveyState,
|
|
240
|
-
loop: ICFLoop
|
|
241
240
|
): Promise<CFNodeTemplate>;
|
|
242
241
|
/**
|
|
243
|
-
*
|
|
242
|
+
* 预加载当前问卷所有使用到的额UI动态插件的方法
|
|
244
243
|
* 只有实现了动态模板机制的答题端需要配置这个方法
|
|
245
244
|
* 如果不配置则什么都不做
|
|
246
|
-
* @param theme 主题
|
|
247
245
|
* @param templates 模板列表
|
|
248
246
|
*/
|
|
249
|
-
|
|
247
|
+
loadUiEntryTemplates?(templates: string[]): Promise<void>;
|
|
250
248
|
}
|
|
251
249
|
|
|
252
250
|
/**
|
|
@@ -3147,12 +3145,7 @@ type ShouldSetDefault<T> = Required<Pick<T, OptionalKeys<T>>>;
|
|
|
3147
3145
|
* 动态UI组件类型
|
|
3148
3146
|
*/
|
|
3149
3147
|
interface CFUiComponent {
|
|
3150
|
-
|
|
3151
|
-
* 样式对象
|
|
3152
|
-
*/
|
|
3153
|
-
style: {
|
|
3154
|
-
toString(): string;
|
|
3155
|
-
};
|
|
3148
|
+
|
|
3156
3149
|
}
|
|
3157
3150
|
|
|
3158
3151
|
/**
|
|
@@ -6921,7 +6914,6 @@ interface ICFParsedSmallPayload {
|
|
|
6921
6914
|
readonly varStyles: CFVarStyleGroup;
|
|
6922
6915
|
readonly langs: ICFLang[];
|
|
6923
6916
|
readonly language: string;
|
|
6924
|
-
readonly langStore: any;
|
|
6925
6917
|
readonly langTable: CFLangTableItem[];
|
|
6926
6918
|
readonly langResume: boolean;
|
|
6927
6919
|
readonly testCases: ICFTestCase[];
|
|
@@ -7679,6 +7671,10 @@ interface ICFStartMiniState extends ICFCustomLogo {
|
|
|
7679
7671
|
* 挂载的自动提示数据
|
|
7680
7672
|
*/
|
|
7681
7673
|
readonly autoCpltGroups: ICFAutoCpltGroup[];
|
|
7674
|
+
/**
|
|
7675
|
+
* 自带的多语言翻译包,可以不需要请求大翻译包就实现开始页面的语言切换。
|
|
7676
|
+
*/
|
|
7677
|
+
readonly i18n?: any;
|
|
7682
7678
|
/**
|
|
7683
7679
|
* @ignore
|
|
7684
7680
|
* 自定义logo的图片内容
|
|
@@ -8008,10 +8004,6 @@ interface CFSurveyState
|
|
|
8008
8004
|
* @ignore
|
|
8009
8005
|
*/
|
|
8010
8006
|
readonly refreshing: boolean;
|
|
8011
|
-
/**
|
|
8012
|
-
* @ignore
|
|
8013
|
-
*/
|
|
8014
|
-
readonly needRegions: boolean;
|
|
8015
8007
|
/**
|
|
8016
8008
|
* @ignore
|
|
8017
8009
|
*/
|
|
@@ -9830,6 +9822,10 @@ interface ICFVarRaw {
|
|
|
9830
9822
|
readonly name?: string;
|
|
9831
9823
|
readonly uuid: string;
|
|
9832
9824
|
readonly request?: ICFRequest;
|
|
9825
|
+
/**
|
|
9826
|
+
* 自带的语言包,为开始页面使用的时候可以自行翻译,而无需去加载翻译大包
|
|
9827
|
+
*/
|
|
9828
|
+
readonly i18n?:any;
|
|
9833
9829
|
}
|
|
9834
9830
|
|
|
9835
9831
|
/**
|
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.7",
|
|
4
4
|
"description": "choiceform survey client core",
|
|
5
5
|
"main": "./dist/core.js",
|
|
6
6
|
"repository": "https://github.com/choice-form/os-client-core",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "^4.31.0",
|
|
47
47
|
"@typescript-eslint/parser": "^4.31.0",
|
|
48
48
|
"babel-loader": "^8.1.0",
|
|
49
|
-
"cf-auto": "^1.
|
|
49
|
+
"cf-auto": "^1.96.0",
|
|
50
50
|
"chokidar": "^3.0.2",
|
|
51
51
|
"clean-webpack-plugin": "^3.0.0",
|
|
52
52
|
"copy-webpack-plugin": "^6.0.3",
|