@choiceform/os-client-core 3.1.0 → 3.1.1
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 +41 -0
- package/dist/core.js +1 -1
- package/dist/web-core.js +1 -1
- package/index.d.ts +13 -5
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -890,6 +890,14 @@ interface CFUtil {
|
|
|
890
890
|
* 核心对象
|
|
891
891
|
*/
|
|
892
892
|
interface CFCore extends CFSetupOptions {
|
|
893
|
+
/**
|
|
894
|
+
* 发布的版本号
|
|
895
|
+
*/
|
|
896
|
+
readonly releaseVersion: string;
|
|
897
|
+
/**
|
|
898
|
+
* 发布日期
|
|
899
|
+
*/
|
|
900
|
+
readonly releaseDate: string;
|
|
893
901
|
/**
|
|
894
902
|
* 主题是否已经更新为何服务器上的一致,还未更新好时,APP页面渲染但是不要显示,可以控制透明度或display。
|
|
895
903
|
* 等稍后改属性准备好后再显示出来。
|
|
@@ -2709,7 +2717,7 @@ interface ICFOptDisplayInfo {
|
|
|
2709
2717
|
readonly option_ids: string[];
|
|
2710
2718
|
}
|
|
2711
2719
|
|
|
2712
|
-
type
|
|
2720
|
+
type IOptionAnswerValue = number | string | ICoords | CFMaxDiffRecord[];
|
|
2713
2721
|
|
|
2714
2722
|
/**
|
|
2715
2723
|
* 一般与选项一一对应答案项数据结构
|
|
@@ -2719,7 +2727,7 @@ interface ICFAnswerItem {
|
|
|
2719
2727
|
/**
|
|
2720
2728
|
* 输入值
|
|
2721
2729
|
*/
|
|
2722
|
-
readonly value:
|
|
2730
|
+
readonly value: IOptionAnswerValue;
|
|
2723
2731
|
/**
|
|
2724
2732
|
* 是否为其他选项
|
|
2725
2733
|
*/
|
|
@@ -5145,9 +5153,9 @@ interface CFSelectImageOption extends CFOption {
|
|
|
5145
5153
|
*/
|
|
5146
5154
|
interface ICFUploadResult {
|
|
5147
5155
|
/**
|
|
5148
|
-
*
|
|
5156
|
+
* 上传后的在服务器上的文件路径
|
|
5149
5157
|
*/
|
|
5150
|
-
readonly
|
|
5158
|
+
readonly filePath: string;
|
|
5151
5159
|
/**
|
|
5152
5160
|
* 上传后的文件内容
|
|
5153
5161
|
* 如果是图片则是图片的base64内容
|
|
@@ -8952,7 +8960,7 @@ interface ICFOptionCache {
|
|
|
8952
8960
|
readonly records: CFMaxDiffRecord[];
|
|
8953
8961
|
readonly sortNo: number;
|
|
8954
8962
|
readonly value: string | number;
|
|
8955
|
-
readonly
|
|
8963
|
+
readonly filePath: string;
|
|
8956
8964
|
readonly fileName: string;
|
|
8957
8965
|
readonly isImage: boolean;
|
|
8958
8966
|
readonly fileType: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choiceform/os-client-core",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
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",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"prepublishOnly": "npm run prod && node ./tool/pre-publish-only",
|
|
19
19
|
"postpublish": "node ./tool/post-publish",
|
|
20
20
|
"infer-serve": "node ./tool/infer-serve",
|
|
21
|
+
"release": "node tool/release.js",
|
|
21
22
|
"prepare": "husky install"
|
|
22
23
|
},
|
|
23
24
|
"files": [
|
|
@@ -70,4 +71,4 @@
|
|
|
70
71
|
"webpack-cli": "^4.8.0",
|
|
71
72
|
"webpack-dev-server": "^4.1.1"
|
|
72
73
|
}
|
|
73
|
-
}
|
|
74
|
+
}
|