@choiceform/os-client-core 3.4.5 → 3.4.6
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 +12 -0
- package/dist/core.js +1 -1
- package/dist/web-core.js +1 -1
- package/index.d.ts +15 -4
- package/package.json +4 -3
package/index.d.ts
CHANGED
|
@@ -382,6 +382,13 @@ 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;
|
|
385
392
|
}
|
|
386
393
|
/**
|
|
387
394
|
* 授权相关的配置,不同的运行平台有不同的账户系统,所以授权方式也不一样。
|
|
@@ -5798,10 +5805,6 @@ interface CFQuestion extends ICFNode, ICFTypeInfo {
|
|
|
5798
5805
|
* 前一道题
|
|
5799
5806
|
*/
|
|
5800
5807
|
readonly prev: CFQuestion;
|
|
5801
|
-
/**
|
|
5802
|
-
* 后一道题
|
|
5803
|
-
*/
|
|
5804
|
-
readonly next: CFQuestion;
|
|
5805
5808
|
/**
|
|
5806
5809
|
* 编号,该题的唯一代号
|
|
5807
5810
|
* 如果有该属性,UI要渲染
|
|
@@ -7724,6 +7727,14 @@ interface ICFStartMiniState extends ICFCustomLogo {
|
|
|
7724
7727
|
*/
|
|
7725
7728
|
interface CFStartState extends ICFTranMiniState, ICFStartMiniIntro, CFStateBase, ICFCustomLogo {
|
|
7726
7729
|
readonly core?: CFCore;
|
|
7730
|
+
/**
|
|
7731
|
+
* 开始节点的类型
|
|
7732
|
+
*/
|
|
7733
|
+
readonly type: NODE_TYPE;
|
|
7734
|
+
/**
|
|
7735
|
+
* 开始节点的名称
|
|
7736
|
+
*/
|
|
7737
|
+
readonly nodeName:string;
|
|
7727
7738
|
/**
|
|
7728
7739
|
* 开始节点的布局设置
|
|
7729
7740
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choiceform/os-client-core",
|
|
3
|
-
"version": "3.4.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.4.6",
|
|
4
|
+
"description": "choiceform survey client core",
|
|
5
5
|
"main": "./dist/core.js",
|
|
6
6
|
"repository": "https://github.com/choice-form/os-client-core",
|
|
7
7
|
"author": "fenyiwudian <laiq@cform.io>",
|
|
@@ -42,6 +42,7 @@
|
|
|
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",
|
|
45
46
|
"@typescript-eslint/eslint-plugin": "^4.31.0",
|
|
46
47
|
"@typescript-eslint/parser": "^4.31.0",
|
|
47
48
|
"babel-loader": "^8.1.0",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"messageformat": "^2.3.0",
|
|
61
62
|
"node-fetch": "^2.6.1",
|
|
62
63
|
"pako": "^1.0.10",
|
|
63
|
-
"phoenix": "^1.
|
|
64
|
+
"phoenix": "^1.6.2",
|
|
64
65
|
"prettier": "^2.3.2",
|
|
65
66
|
"typedoc": "^0.15.0",
|
|
66
67
|
"ua-parser-js": "^0.7.20"
|