@choiceform/os-client-core 3.4.0 → 3.4.4

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
@@ -382,13 +382,6 @@ interface CFEnvNetWork {
382
382
  * 默认行为:什么也不做
383
383
  */
384
384
  closeSocket?(): void;
385
- /**
386
- * 推动socket消息的方法
387
- * 默认行为:什么也不做
388
- * @param message 消息名
389
- * @param payload 附带的数据
390
- */
391
- pushSocket?(message:string, payload: object): void;
392
385
  }
393
386
  /**
394
387
  * 授权相关的配置,不同的运行平台有不同的账户系统,所以授权方式也不一样。
@@ -1516,27 +1509,27 @@ declare const enum RICH_NODE_NAME {
1516
1509
  /**
1517
1510
  * span
1518
1511
  */
1519
- SPAN = 'span',
1512
+ SPAN = 'SPAN',
1520
1513
  /**
1521
1514
  * div
1522
1515
  */
1523
- DIV = 'div',
1516
+ DIV = 'DIV',
1524
1517
  /**
1525
1518
  * script
1526
1519
  */
1527
- SCRIPT = 'script',
1520
+ SCRIPT = 'SCRIPT',
1528
1521
  /**
1529
1522
  * ol
1530
1523
  */
1531
- OL = 'ol',
1524
+ OL = 'OL',
1532
1525
  /**
1533
1526
  * ul
1534
1527
  */
1535
- UL = 'ul',
1528
+ UL = 'UL',
1536
1529
  /**
1537
1530
  * br
1538
1531
  */
1539
- BR = 'br',
1532
+ BR = 'BR',
1540
1533
  }
1541
1534
 
1542
1535
  /**
@@ -5809,6 +5802,10 @@ interface CFQuestion extends ICFNode, ICFTypeInfo {
5809
5802
  * 前一道题
5810
5803
  */
5811
5804
  readonly prev: CFQuestion;
5805
+ /**
5806
+ * 后一道题
5807
+ */
5808
+ readonly next: CFQuestion;
5812
5809
  /**
5813
5810
  * 编号,该题的唯一代号
5814
5811
  * 如果有该属性,UI要渲染
@@ -6857,17 +6854,6 @@ interface ICFRandomHub extends ICFRandomNode, CFQuestion {
6857
6854
  readonly origin: ICFRandomNode;
6858
6855
  }
6859
6856
 
6860
- /**
6861
- * 虚拟奖励问题
6862
- * @ignore
6863
- */
6864
- interface ICFGiftHub extends ICFGiftNode, CFQuestion {
6865
- /**
6866
- * 是否获取短信失败
6867
- */
6868
- readonly messageGetFailed: boolean;
6869
- }
6870
-
6871
6857
  /**
6872
6858
  * @ignore
6873
6859
  * 虚拟逻辑题
@@ -7574,6 +7560,7 @@ interface ICFRewardInfo extends ICFGiftNode, ICFLotteryResult, ICFCustomLogo {
7574
7560
  * 渲染奖励信息
7575
7561
  */
7576
7562
  interface CFRewardState extends ICFRewardInfo, CFStateBase {
7563
+ readonly renderId: string;
7577
7564
  /**
7578
7565
  * 奖励类型,包含以下两种类型
7579
7566
  * 需要根据该类型渲染不同的内容.
@@ -7632,6 +7619,10 @@ interface CFRewardState extends ICFRewardInfo, CFStateBase {
7632
7619
  * @ignore 该属性只在此核心项目中编程时使用,不会包含到发布后的包中
7633
7620
  */
7634
7621
  readonly language: string;
7622
+ /**
7623
+ * 是否获取短信失败
7624
+ */
7625
+ readonly messageGetFailed?: boolean;
7635
7626
  }
7636
7627
 
7637
7628
 
@@ -9390,9 +9381,10 @@ interface CFUIEventHandler {
9390
9381
  /**
9391
9382
  * 获取验证码按钮点击回调,适用题目,验证节点,奖励节点
9392
9383
  * 回调中逻辑层会去获取短信验证码或者图片验证码
9393
- * @param question 所在题目
9384
+ * 当发送成功会返回Promise<true>,否则返回Promise<false>
9385
+ * @param target 使用短信的对象
9394
9386
  */
9395
- handleGetCodeClick?(question: CFQuestion): Promise<void>;
9387
+ handleGetCodeClick?(target: CFVerifyQuestion | CFRewardState): Promise<boolean>;
9396
9388
 
9397
9389
  /**
9398
9390
  * 选项输入回调函数:适用题目填空题,打分题,数值分配题,连续评价题,上传题,输入方式排序或挑选方式排序的排序题以及有其他选项需要输入的题型
@@ -10208,7 +10200,7 @@ interface IRawVarIdentity {
10208
10200
  * 如果是`LOOP_ALL_ROUND`,则是所有次循环
10209
10201
  * 如果是某个循环选项的8位短id,则是该循环选项的这次循环
10210
10202
  */
10211
- readonly loopRoundId?: VAR_CONST.LOOP_ALL_ROUND | string;
10203
+ readonly loopRoundId?: string;
10212
10204
  /**
10213
10205
  * 同上,但针对内层循环
10214
10206
  */
@@ -10216,7 +10208,7 @@ interface IRawVarIdentity {
10216
10208
  /**
10217
10209
  * 同上,但针对内层循环
10218
10210
  */
10219
- readonly innerLoopRoundId?: VAR_CONST.LOOP_ALL_ROUND | string;
10211
+ readonly innerLoopRoundId?: string;
10220
10212
  }
10221
10213
 
10222
10214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.4.0",
3
+ "version": "3.4.4",
4
4
  "description": "choice form survey client core",
5
5
  "main": "./dist/core.js",
6
6
  "repository": "https://github.com/choice-form/os-client-core",
@@ -42,7 +42,6 @@
42
42
  "@babel/preset-env": "^7.10.4",
43
43
  "@babel/runtime": "^7.12.1",
44
44
  "@types/node-fetch": "^2.5.8",
45
- "@types/phoenix": "^1.5.3",
46
45
  "@typescript-eslint/eslint-plugin": "^4.31.0",
47
46
  "@typescript-eslint/parser": "^4.31.0",
48
47
  "babel-loader": "^8.1.0",
@@ -61,7 +60,7 @@
61
60
  "messageformat": "^2.3.0",
62
61
  "node-fetch": "^2.6.1",
63
62
  "pako": "^1.0.10",
64
- "phoenix": "^1.6.2",
63
+ "phoenix": "^1.5.3",
65
64
  "prettier": "^2.3.2",
66
65
  "typedoc": "^0.15.0",
67
66
  "ua-parser-js": "^0.7.20"
@@ -73,4 +72,4 @@
73
72
  "webpack-cli": "^4.8.0",
74
73
  "webpack-dev-server": "^4.1.1"
75
74
  }
76
- }
75
+ }