@choiceform/os-client-core 3.4.52 → 3.4.53

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
@@ -639,26 +639,12 @@ interface CFHostConfig {
639
639
  */
640
640
  interface CFSetupOptions {
641
641
  /**
642
- * 所代表的的客户端名称
643
- * 当我们有多个答题客户端时,在设计端发布问卷之前,可以选择使用哪个答题端来渲染问卷。
644
- * 一般选好以后,按需求这份问卷就只能使用这个客户端来渲染,因为如果不限制仅能在该客户端渲染,
645
- * 可能会导致不知不觉中误用其他客户端来访问这份文件的情况,
646
- * 这样就会:
647
- * 一方面:不是所有的客户端都实现了所有题型,用错客户端可能导致有些题目无法渲染。
648
- * 另一方面,不同客户端对相同题型渲染方式不同,用错客户端可能导致渲染出来的样子不是客户需要的样子。
649
- *
650
- * 但事实上默认情况下,是所有客户端都能访问该问卷的
651
- *
652
- * 为了避免上面的两个错误出现,我们可以通过这个属性为每个客户端设置一个唯一的名称。
653
- *
654
- * 访问某份问卷前核心包会检查当前客户端名字是否和该问卷在设计端选择的客户端名字相同,只有相同才能访问。
655
- *
656
- * 如果名称为ALL则表示这个客户端能访问所有问卷
657
- *
658
- * 默认值:ALL
659
- *
642
+ * 答题程序所在的根据路由位置,
643
+ * 一般用location.origin即可
644
+ * 但是如果程序是深层路由中,则一定要指定具体的位置,
645
+ * 核心包需要依赖此进行路由跳转时避免跑到上层路径中
660
646
  */
661
- clientName?: CFPDClientId;
647
+ appRoot: string;
662
648
  /**
663
649
  * 指定该客户端是不是动态加载模板的
664
650
  * 对支持动态加载的客户端,核心会尝试去动态模板服务器上加载动态的模板。
@@ -14711,13 +14697,6 @@ interface CFPDThemeStyle {
14711
14697
  */
14712
14698
  optFontWeight: FONT_WEIGHT;
14713
14699
  }
14714
- /**
14715
- * 答题组件的类别
14716
- * 1、Legacy 是老式UI
14717
- * 2、Live 是目前使用动态模版渲染的UI
14718
- * 3、ALL 只用于测试
14719
- */
14720
- type CFPDClientId = "Live" | "Legacy" | "ALL";
14721
14700
 
14722
14701
  /**
14723
14702
  * 全局主题通用属性
@@ -14743,22 +14722,10 @@ interface CFPDGlobalThemeCommon extends CFPDThemeStyle {
14743
14722
  * 按钮颜色
14744
14723
  */
14745
14724
  button: string;
14746
- /**
14747
- * 答题端应用程序名
14748
- */
14749
- client?: CFPDClientId;
14750
- /**
14751
- * 客户端地址
14752
- */
14753
- clientHost?: string;
14754
14725
  /**
14755
14726
  * 反色
14756
14727
  */
14757
14728
  contrast: string;
14758
- /**
14759
- * 是否为动态组件加载的主题
14760
- */
14761
- dynamic?: boolean;
14762
14729
  /**
14763
14730
  * 操作效果
14764
14731
  */
@@ -14808,6 +14775,10 @@ interface CFPDTheme {
14808
14775
  * 正在使用的主题信息
14809
14776
  */
14810
14777
  usingTheme: CFPDGlobalThemeBack;
14778
+ /**
14779
+ * 代理客户端地址
14780
+ */
14781
+ proxyClientHost?: string;
14811
14782
  }
14812
14783
 
14813
14784
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.4.52",
3
+ "version": "3.4.53",
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.20",
71
+ "@choiceform/os-cfpd": "^3.1.21",
72
72
  "ts-loader": "^9.2.5",
73
73
  "typescript": "^4.4.2",
74
74
  "webpack": "^5.52.0",