@choiceform/os-client-core 3.4.47 → 3.4.50

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
@@ -1829,7 +1829,13 @@ interface ISinglePageGroupTableRowCell {
1829
1829
  // -------------- types/outer/flow/payload.d.ts ---------------
1830
1830
 
1831
1831
  interface ICFStartMeta {
1832
+ /**
1833
+ * 问卷概要原始数据
1834
+ */
1832
1835
  surveyMeta: ICFSurveyMeta;
1836
+ /**
1837
+ * 问卷设计原始数据
1838
+ */
1833
1839
  cfpd: ICFSurveyPayload;
1834
1840
  }
1835
1841
 
@@ -4200,14 +4206,6 @@ interface CFEndPage
4200
4206
  * @ignore
4201
4207
  */
4202
4208
  hasReward: boolean;
4203
- /**
4204
- * 自定义logo文字
4205
- */
4206
- logoText: string;
4207
- /**
4208
- * 自定义logo图片地址
4209
- */
4210
- logoImage: string;
4211
4209
  /**
4212
4210
  * 领奖二维码
4213
4211
  */
@@ -4255,7 +4253,7 @@ interface IFrontEndGiftI18n {
4255
4253
  * 由于后台接口中给到的奖励节点中的多语言属性被改成了后台命名风格的,
4256
4254
  * 所有前端的类型不能兼容,需要单独开一个类型,所以相关类型区分了前后端
4257
4255
  */
4258
- interface ICFGiftNodeFrontEnd extends Omit<ICFGiftNode, 'i18n'>, IOriginCustomLogo {
4256
+ interface ICFGiftNodeFrontEnd extends Omit<ICFGiftNode, 'i18n'>, CFPDCustomLogo {
4259
4257
  /**
4260
4258
  * 自带的多语言翻译包,可以不需要请求大翻译包就实现开始页面的语言切换。
4261
4259
  */
@@ -6331,7 +6329,7 @@ interface ICFSurveyMeta {
6331
6329
  * @ignore
6332
6330
  * todo 这里面只要包含一个cfpd对象就可以,不要把cfpd的每个属性都解开重新放到这里
6333
6331
  */
6334
- interface ICFParsedSurveyMeta {
6332
+ interface ICFParsedStartMeta {
6335
6333
  imageList: ICFImage[];
6336
6334
  videoList: CFVideo[];
6337
6335
  nodeList: ICFNode[];
@@ -6341,7 +6339,7 @@ interface ICFParsedSurveyMeta {
6341
6339
  surveyId: string;
6342
6340
  theme: ICFThemeConfig;
6343
6341
  variables: ICFVarRaw[];
6344
- basicConfig: ICFSurveyMeta;
6342
+ surveyMeta: ICFSurveyMeta;
6345
6343
  nodeGroups: CFPDNodeGroup[];
6346
6344
  embedApis: ICFEmbedApi[];
6347
6345
  varStyles: CFVarStyleGroup;
@@ -6717,11 +6715,27 @@ interface ICFWxShareState {
6717
6715
  interface ICFRealtimeNode extends Omit<ICFStartNode, 'i18n'>, Omit<ICFGiftNode, 'i18n'>, Pick<CFQuestion, 'noView'> {
6718
6716
  groupNodes?: CFQuestion[];
6719
6717
  group: CFPDNodeGroup;
6720
- /**
6721
- * 自定义logo文字
6722
- * 继承的两个接口,定义是相反的(一个正常属性,一个忽略的属性),所以这里取一个存在的值,避免TS错误。
6723
- */
6724
- logoText: string;
6718
+ }
6719
+
6720
+ interface ICFRealtimeGlobalSetting extends CFPDCustomLogo {
6721
+ theme: CFTheme;
6722
+ templates: string[];
6723
+ fakedServers: string[];
6724
+ progressBarRequired: boolean;
6725
+ limitTime: number;
6726
+ restTime: string;
6727
+ langTable: CFLangTableItem[];
6728
+ fullLangStore: any;
6729
+ autoCpltGroups: CFPDCpltGroup[];
6730
+ language: string;
6731
+ variables: ICFVarRaw[];
6732
+ imageList: ICFImage[];
6733
+ nodeList: CFQuestion[];
6734
+ nextBtnText: string;
6735
+ prevBtnText: string;
6736
+ varStyles: CFVarStyleGroup;
6737
+ embedApis: ICFEmbedApi[];
6738
+ presetRichStyles: CFPDPresetRichStyle[];
6725
6739
  }
6726
6740
 
6727
6741
  /**
@@ -6729,26 +6743,7 @@ interface ICFRealtimeNode extends Omit<ICFStartNode, 'i18n'>, Omit<ICFGiftNode,
6729
6743
  */
6730
6744
  interface ICFRealtimeContent {
6731
6745
  content: ICFRealtimeNode;
6732
- globalSetting: {
6733
- theme: CFTheme;
6734
- templates: string[];
6735
- fakedServers: string[];
6736
- progressBarRequired: boolean;
6737
- limitTime: number;
6738
- restTime: string;
6739
- langTable: CFLangTableItem[];
6740
- fullLangStore: any;
6741
- autoCpltGroups: CFPDCpltGroup[];
6742
- language: string;
6743
- variables: ICFVarRaw[];
6744
- imageList: ICFImage[];
6745
- nodeList: CFQuestion[];
6746
- nextBtnText: string;
6747
- prevBtnText: string;
6748
- varStyles: CFVarStyleGroup;
6749
- embedApis: ICFEmbedApi[];
6750
- presetRichStyles: CFPDPresetRichStyle[];
6751
- };
6746
+ globalSetting: ICFRealtimeGlobalSetting;
6752
6747
  regionList: ECProvince[];
6753
6748
  }
6754
6749
 
@@ -6827,32 +6822,8 @@ interface CFRealtimeState extends CFSurveyState, CFStartState {
6827
6822
 
6828
6823
  // -------------- types/outer/state/reward.d.ts ---------------
6829
6824
 
6830
- /**
6831
- * 自定义logo
6832
- * @ignore
6833
- */
6834
- interface ICFCustomLogoBase {
6835
- /**
6836
- * 是否使用自定义logo
6837
- * @ignore
6838
- */
6839
- useCustomLogo?: boolean;
6840
- }
6841
-
6842
- interface IOriginCustomLogo extends ICFCustomLogoBase {
6843
- logoText?: string;
6844
- logoImage?: CFImageInNode;
6845
- }
6846
-
6847
- interface ICFCustomLogo extends ICFCustomLogoBase {
6848
- /**
6849
- * 自定logo文字
6850
- */
6851
- customText: string;
6852
- /**
6853
- * 自定logo图片地址
6854
- */
6855
- customLogo: string;
6825
+ interface ICFCustomLogo extends Omit<CFPDCustomLogo, 'logoImage'> {
6826
+ logoImageUrl?: string;
6856
6827
  }
6857
6828
 
6858
6829
  /**
@@ -7062,7 +7033,7 @@ interface ICFMiniState {
7062
7033
  /**
7063
7034
  * @ignore
7064
7035
  */
7065
- parsedPayload: ICFParsedSurveyMeta;
7036
+ parsedPayload: ICFParsedStartMeta;
7066
7037
  /**
7067
7038
  * @ignore
7068
7039
  */
@@ -8388,6 +8359,11 @@ interface CFQueryParams {
8388
8359
  * @ignore
8389
8360
  */
8390
8361
  state?: string;
8362
+ /**
8363
+ * 授权回调链接中的授权appid
8364
+ * @ignore
8365
+ */
8366
+ appid?: string;
8391
8367
  /**
8392
8368
  * 启动的程序模式
8393
8369
  * @ignore
@@ -12898,7 +12874,6 @@ interface CFPDSlideRateNode extends CFPDSubjectNode, CFPDMFillableNode, CFPDSlid
12898
12874
 
12899
12875
  // -------------- node_modules/@choiceform/os-cfpd/types/node/start.d.ts ---------------
12900
12876
 
12901
-
12902
12877
  /**
12903
12878
  * url参数设置
12904
12879
  */
@@ -12909,171 +12884,184 @@ interface CFPDUrlParamItem {
12909
12884
  name: string;
12910
12885
  }
12911
12886
 
12912
- interface CFPDStartNodeBase {
12887
+ interface CFPDCustomLogo {
12913
12888
  /**
12914
- * url参数
12889
+ * 是否使用自定义logo
12915
12890
  */
12916
- urlParams: CFPDUrlParamItem[]
12917
-
12918
- /**
12919
- * 问卷答题页面开始时显示的标题,如果为空,则答题页会显示项目名称。
12891
+ useCustomLogo?: boolean;
12892
+ /**
12893
+ * logo文字
12920
12894
  */
12921
- startName: string;
12922
- /**
12923
- * logo文字
12924
- */
12925
- logoText: string;
12926
- /**
12927
- * 下一题按钮文字
12928
- */
12929
- nextBtnText: string;
12930
- /**
12931
- * 上一题按钮文字
12932
- */
12933
- prevBtnText: string;
12934
-
12935
- questionText: string;
12936
-
12937
- /**
12938
- * 开始按钮文字
12939
- */
12940
- startBtnText: string;
12941
-
12942
- /**
12943
- * 答题花费的时间太少时的提示文字
12944
- */
12945
- timeLessText: string;
12946
- /**
12947
- * 答题花费时间太多时的提示文字
12948
- */
12949
- timeoutText: string;
12950
- /**
12951
- * 项目名称,在问卷管理列表中显示的名字。
12952
- */
12953
- qsnrName: string;
12954
- /**
12955
- * 当前使用语言,完整版可以动态设置语言
12956
- */
12957
- currentLang: LANG_TYPE;
12958
-
12959
- /**
12960
- * 是否提示必答题
12961
- */
12962
- asterisksRequired: boolean;
12963
- /**
12964
- * 自动提示信息组
12965
- */
12966
- autoCpltGroups: CFPDCpltGroup[];
12967
- /**
12968
- * 伪造接口服务
12969
- */
12970
- fakedServers: string[];
12971
- /**
12972
- * 是否允许返回上一题
12973
- */
12974
- goBackEnabled: boolean;
12975
- /**
12976
- * 最大答题时间限制
12977
- */
12978
- limitTime: number;
12979
- /**
12980
- * logo图标
12981
- */
12982
- logoImage?: CFPDNodeImage;
12983
-
12984
- /**
12985
- * 时间统计表中是否排除最大最小时间
12986
- */
12987
- minMaxTimeExcluded: boolean;
12988
- /**
12989
- * 最小答题时间限制
12990
- * @deprecated 最小答题时间后续由结束节点的minTime字段控制,开始节点的minTime字段后续逐渐淘汰
12991
- */
12992
- minTime: number;
12993
-
12994
- /**
12995
- * 是否显示节点类型信息
12996
- */
12997
- nodeTypeInfoRequired: boolean;
12998
- /**
12999
- * 是否禁用微信分享
13000
- */
13001
- noWxShare: boolean;
13002
-
13003
- /**
13004
- * 是否允许隐藏在预览模式下显示
13005
- */
13006
- previewShadowNodes: boolean;
13007
- /**
13008
- * 预览模式下显示快速答题按钮
13009
- */
13010
- previewQuickAnswer: boolean;
13011
- /**
13012
- * 是否在初始页显示语言切换
13013
- */
13014
- showInitLangSelect?: boolean;
13015
- /**
13016
- * 是否显示答题进度条
13017
- */
13018
- progressBarRequired: boolean;
13019
- /**
13020
- * 是否显示题号
13021
- */
13022
- qNumberRequired: boolean;
13023
- /**
13024
- * 是否允许断点续答
13025
- */
13026
- resumeEnabled: boolean;
13027
- /**
13028
- * 是否自动
13029
- */
13030
- startAuto: boolean;
13031
-
13032
- /**
13033
- * 是否严格模式
13034
- * 严格模式下会进行更多的错误检查,如节点选项的标签等必须满足spss变量规范
13035
- * 其他的规则后续可能陆续加入
13036
- */
13037
- strictMode: boolean;
13038
- /**
13039
- * 本问卷使用到的动态渲染模板id列表
13040
- */
13041
- templates: string[];
13042
-
13043
- /**
13044
- * 是否使用自定义logo
13045
- */
13046
- useCustomLogo?: boolean;
13047
- /**
13048
- * 是否使用最大答题时间限制
13049
- */
13050
- useLimitTime: boolean;
13051
- /**
13052
- * 是否使用最小答题时间限制
13053
- */
13054
- useMinTime: boolean;
12895
+ logoText?: string;
12896
+ /**
12897
+ * 自定义logo图标
12898
+ */
12899
+ logoImage?: CFPDNodeImage;
13055
12900
  /**
13056
- * 开始页面内嵌地址
12901
+ * 强制要求自定义logo图标显示的宽度
12902
+ * 如果为falsy值(0,undefined等)则由UI端自行控制宽度
13057
12903
  */
13058
- welcomeUrl: string;
12904
+ logoImageShowWidth?: number;
13059
12905
  /**
13060
- * 开始节点独立携带的多语言包
12906
+ * 是否在所有页面都显示logo,如果开启了,每一页都显示这个自定义logo
12907
+ * 否则和以前一样,只在奖励页面和结束页面显示自定义logo
13061
12908
  */
13062
- i18n?: any;
12909
+ showLogoInEachPage?: boolean;
12910
+ }
12911
+
12912
+ interface CFPDStartNodeBase extends CFPDCustomLogo{
12913
+ /**
12914
+ * url参数
12915
+ */
12916
+ urlParams: CFPDUrlParamItem[];
12917
+
12918
+ /**
12919
+ * 问卷答题页面开始时显示的标题,如果为空,则答题页会显示项目名称。
12920
+ */
12921
+ startName: string;
12922
+
12923
+ /**
12924
+ * 下一题按钮文字
12925
+ */
12926
+ nextBtnText: string;
12927
+ /**
12928
+ * 上一题按钮文字
12929
+ */
12930
+ prevBtnText: string;
12931
+
12932
+ questionText: string;
12933
+
12934
+ /**
12935
+ * 开始按钮文字
12936
+ */
12937
+ startBtnText: string;
12938
+
12939
+ /**
12940
+ * 答题花费的时间太少时的提示文字
12941
+ */
12942
+ timeLessText: string;
12943
+ /**
12944
+ * 答题花费时间太多时的提示文字
12945
+ */
12946
+ timeoutText: string;
12947
+ /**
12948
+ * 项目名称,在问卷管理列表中显示的名字。
12949
+ */
12950
+ qsnrName: string;
12951
+ /**
12952
+ * 当前使用语言,完整版可以动态设置语言
12953
+ */
12954
+ currentLang: LANG_TYPE;
12955
+
12956
+ /**
12957
+ * 是否提示必答题
12958
+ */
12959
+ asterisksRequired: boolean;
12960
+ /**
12961
+ * 自动提示信息组
12962
+ */
12963
+ autoCpltGroups: CFPDCpltGroup[];
12964
+ /**
12965
+ * 伪造接口服务
12966
+ */
12967
+ fakedServers: string[];
12968
+ /**
12969
+ * 是否允许返回上一题
12970
+ */
12971
+ goBackEnabled: boolean;
12972
+ /**
12973
+ * 最大答题时间限制
12974
+ */
12975
+ limitTime: number;
12976
+
12977
+ /**
12978
+ * 时间统计表中是否排除最大最小时间
12979
+ */
12980
+ minMaxTimeExcluded: boolean;
12981
+ /**
12982
+ * 最小答题时间限制
12983
+ * @deprecated 最小答题时间后续由结束节点的minTime字段控制,开始节点的minTime字段后续逐渐淘汰
12984
+ */
12985
+ minTime: number;
12986
+
12987
+ /**
12988
+ * 是否显示节点类型信息
12989
+ */
12990
+ nodeTypeInfoRequired: boolean;
12991
+ /**
12992
+ * 是否禁用微信分享
12993
+ */
12994
+ noWxShare: boolean;
12995
+
12996
+ /**
12997
+ * 是否允许隐藏在预览模式下显示
12998
+ */
12999
+ previewShadowNodes: boolean;
13000
+ /**
13001
+ * 预览模式下显示快速答题按钮
13002
+ */
13003
+ previewQuickAnswer: boolean;
13004
+ /**
13005
+ * 是否在初始页显示语言切换
13006
+ */
13007
+ showInitLangSelect?: boolean;
13008
+ /**
13009
+ * 是否显示答题进度条
13010
+ */
13011
+ progressBarRequired: boolean;
13012
+ /**
13013
+ * 是否显示题号
13014
+ */
13015
+ qNumberRequired: boolean;
13016
+ /**
13017
+ * 是否允许断点续答
13018
+ */
13019
+ resumeEnabled: boolean;
13020
+ /**
13021
+ * 是否自动
13022
+ */
13023
+ startAuto: boolean;
13024
+
13025
+ /**
13026
+ * 是否严格模式
13027
+ * 严格模式下会进行更多的错误检查,如节点选项的标签等必须满足spss变量规范
13028
+ * 其他的规则后续可能陆续加入
13029
+ */
13030
+ strictMode: boolean;
13031
+ /**
13032
+ * 本问卷使用到的动态渲染模板id列表
13033
+ */
13034
+ templates: string[];
13035
+ /**
13036
+ * 是否使用最大答题时间限制
13037
+ */
13038
+ useLimitTime: boolean;
13039
+ /**
13040
+ * 是否使用最小答题时间限制
13041
+ */
13042
+ useMinTime: boolean;
13043
+ /**
13044
+ * 开始页面内嵌地址
13045
+ */
13046
+ welcomeUrl: string;
13047
+ /**
13048
+ * 开始节点独立携带的多语言包
13049
+ */
13050
+ i18n?: any;
13063
13051
  }
13052
+
13053
+
13064
13054
  /**
13065
13055
  * 开始节点JSON数据结构
13066
13056
  */
13067
13057
  interface CFPDStartNode
13068
13058
  extends CFPDNode,
13069
- CFPDStartNodeBase,
13070
- CFPDMCustomValidateNode,
13071
- CFPDMMediaNode,
13072
- CFPDMQuesNode,
13073
- CFPDMOutputNode,
13074
- CFPDMLayoutNode {
13075
-
13076
- }
13059
+ CFPDStartNodeBase,
13060
+ CFPDMCustomValidateNode,
13061
+ CFPDMMediaNode,
13062
+ CFPDMQuesNode,
13063
+ CFPDMOutputNode,
13064
+ CFPDMLayoutNode {}
13077
13065
 
13078
13066
 
13079
13067
  // -------------- node_modules/@choiceform/os-cfpd/types/node/support/client-template.d.ts ---------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.4.47",
3
+ "version": "3.4.50",
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.17",
71
+ "@choiceform/os-cfpd": "^3.1.18",
72
72
  "ts-loader": "^9.2.5",
73
73
  "typescript": "^4.4.2",
74
74
  "webpack": "^5.52.0",