@choiceform/os-client-core 3.5.1-ssr-beta → 3.5.1-ssr-beta4

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/index.d.ts CHANGED
@@ -217,9 +217,8 @@ interface CFEnvUi {
217
217
  * 只有实现了动态模板机制的答题端需要配置这个方法
218
218
  * 如果不配置则什么都不做
219
219
  * @param template 模板名称
220
- * @param state 答题状态
221
220
  */
222
- initNodeTemplate?(template: CFNodeTemplate, state: CFSurveyState): Promise<CFNodeTemplate>;
221
+ loadNodeComponent?(template: CFNodeTemplate): Promise<CFUiComponent>;
223
222
  /**
224
223
  * 预加载当前问卷所有使用到的额UI动态插件的方法
225
224
  * 只有实现了动态模板机制的答题端需要配置这个方法
@@ -930,12 +929,18 @@ interface CFUtil {
930
929
  * @param imageList
931
930
  */
932
931
  extendImageListGetter(imageList: ICFImage[]): void;
932
+ /**
933
+ * 加载fake脚本
934
+ * @param startState
935
+ */
936
+ loadFakeServers(startState: CFStartState): Promise<void>;
933
937
  }
934
938
 
935
939
  /**
936
940
  * 核心对象
937
941
  */
938
942
  interface CFCore extends CFSetupOptions {
943
+ customStore: Record<string, any>;
939
944
  /**
940
945
  * 发布的版本号
941
946
  */
@@ -1084,7 +1089,7 @@ interface CFCore extends CFSetupOptions {
1084
1089
  /**
1085
1090
  * 获取主题
1086
1091
  */
1087
- getTheme(): CFTheme;
1092
+ theme: CFTheme;
1088
1093
  /**
1089
1094
  * 初始化实时预览
1090
1095
  */
@@ -7125,6 +7130,7 @@ interface ICFStartMiniState extends ICFCustomLogo {
7125
7130
  * 开始按钮点击后应该调用[[CFUIEventHandler.handleNextClick]]方法
7126
7131
  */
7127
7132
  interface CFStartState extends ICFTranMiniState, ICFMiniState, CFStateBase, ICFCustomLogo, IVarRelatedDependency {
7133
+ embedApis: ICFEmbedApi[];
7128
7134
  nodeGroups: ICFNodeGroup[];
7129
7135
  core?: CFCore;
7130
7136
  /**
@@ -7283,6 +7289,7 @@ interface IVarRelatedDependency {
7283
7289
  * 使用[[CFSurveyState.nodes]]来渲染当前需要渲染的题目
7284
7290
  */
7285
7291
  interface CFSurveyState extends ICFTranMiniState, ICFStartMiniState, ICFMiniState, CFStateBase, IVarRelatedDependency {
7292
+ embedApis: ICFEmbedApi[];
7286
7293
  nodeGroups: ICFNodeGroup[];
7287
7294
  /**
7288
7295
  * 进入问卷的模式
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.5.1-ssr-beta",
3
+ "version": "3.5.1-ssr-beta4",
4
4
  "description": "choiceform survey client core",
5
5
  "main": "./dist/core.js",
6
6
  "repository": "https://github.com/choice-form/os-client-core",