@choiceform/os-client-core 3.1.1 → 3.1.2

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
@@ -1669,10 +1669,6 @@ declare const enum OPT_MARK {
1669
1669
  * 块状选项
1670
1670
  */
1671
1671
  BLOCK = 'block',
1672
- /**
1673
- * 只有级联题使用,展示成tab嵌套选择
1674
- */
1675
- TABS = 'tabs',
1676
1672
  /**
1677
1673
  * 只有级联题使用,
1678
1674
  * 展示成下拉列表嵌套选择
@@ -4871,7 +4867,7 @@ interface CFOption extends ICFPort {
4871
4867
  * 内容根据用户的输入变化而变化
4872
4868
  * 对于包含输入内容的选项,UI需要渲染该项
4873
4869
  */
4874
- readonly value: string | number;
4870
+ readonly value: string;
4875
4871
  /**
4876
4872
  * @ignore
4877
4873
  */
@@ -4927,7 +4923,7 @@ interface CFOption extends ICFPort {
4927
4923
  /**
4928
4924
  * @ignore
4929
4925
  */
4930
- readonly cachedValue: number | string;
4926
+ readonly cachedValue: string;
4931
4927
  /**
4932
4928
  * 是否为其他选项
4933
4929
  */
@@ -5162,7 +5158,7 @@ interface ICFUploadResult {
5162
5158
  * 如果是其他文件,则是原始文件名绘制成canvas后的base64内容
5163
5159
  * UI需要渲染该内容为一个图片
5164
5160
  */
5165
- readonly value: string | number;
5161
+ readonly value: string;
5166
5162
  /**
5167
5163
  * 被压缩后的内容,适用于缓存,
5168
5164
  * 因为原始内容可能非常大会撑爆浏览器缓存,
@@ -8474,12 +8470,12 @@ interface CFPreviewBookmark {
8474
8470
  * @param item 预览历史项
8475
8471
  * @param event 时间参数
8476
8472
  */
8477
- deleteBookmark(item: CFPreviewBookmarkData): void;
8473
+ deleteBookmark(item: CFPreviewBookmarkData): Promise<void>;
8478
8474
  /**
8479
8475
  * 点击保存当前预览记录为历史项的按钮时的回调
8480
8476
  * @param name 用户填入的项目名
8481
8477
  */
8482
- saveBookmarks(name: string): void;
8478
+ saveBookmarks(name: string): Promise<void>;
8483
8479
  /**
8484
8480
  * 选择从文件系统上传导入书签
8485
8481
  */
@@ -8487,7 +8483,7 @@ interface CFPreviewBookmark {
8487
8483
  /**
8488
8484
  * 导出某个书签下载到为文件系统
8489
8485
  */
8490
- downloadBookmark(item: CFPreviewBookmarkData): void;
8486
+ downloadBookmark(item: CFPreviewBookmarkData): Promise<void>;
8491
8487
  }
8492
8488
 
8493
8489
  /**
@@ -8959,7 +8955,7 @@ interface ICFOptionCache {
8959
8955
  readonly point: ICoords;
8960
8956
  readonly records: CFMaxDiffRecord[];
8961
8957
  readonly sortNo: number;
8962
- readonly value: string | number;
8958
+ readonly value: string;
8963
8959
  readonly filePath: string;
8964
8960
  readonly fileName: string;
8965
8961
  readonly isImage: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
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",
@@ -13,7 +13,7 @@
13
13
  "staging": "webpack --env NODE_ENV=staging --mode=production",
14
14
  "local": "webpack --env NODE_ENV=local --mode=development",
15
15
  "pretypedoc": "node ./tool/pre-doc",
16
- "typedoc": "node_modules/.bin/typedoc --out os-package-doc/client-core/ ./index.d.ts",
16
+ "typedoc": "node_modules/.bin/typedoc --out docs/content ./index.d.ts",
17
17
  "posttypedoc": "node ./tool/post-doc",
18
18
  "prepublishOnly": "npm run prod && node ./tool/pre-publish-only",
19
19
  "postpublish": "node ./tool/post-publish",
@@ -71,4 +71,4 @@
71
71
  "webpack-cli": "^4.8.0",
72
72
  "webpack-dev-server": "^4.1.1"
73
73
  }
74
- }
74
+ }