@kudashi/kds-api 2.14.3-rc-1 → 2.14.4-rc-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.
Files changed (2) hide show
  1. package/api.d.ts +55 -3
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // version: 2.13.36
1
+ // version: 2.14.4
2
2
 
3
3
  declare global {
4
4
  /**
@@ -321,6 +321,50 @@ declare global {
321
321
  * Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
322
322
  */
323
323
 
324
+ /**
325
+ *
326
+ * 目前支持的单位
327
+ *
328
+ * supported unit currently
329
+ */
330
+ enum KLengthUnit {
331
+ mm = 0,
332
+ m = 1,
333
+ inch = 2,
334
+ ftAndInch = 3,
335
+ sqM = 4,
336
+ sqFt = 5,
337
+ sqMm = 6,
338
+ mats = 7,
339
+ tsubo = 8,
340
+ sqIn = 9
341
+ }
342
+
343
+ /**
344
+ *
345
+ * 主题风格
346
+ *
347
+ * the theme style
348
+ */
349
+ enum KTheme {
350
+ dark = "dark",
351
+ light = ""
352
+ }
353
+
354
+ /**
355
+ *
356
+ * 全局环境设置
357
+ *
358
+ * global environment settings
359
+ */
360
+ interface EnvironmentSetting {
361
+ designId?: string;
362
+ lng?: string;
363
+ globalUnit?: KLengthUnit;
364
+ theme?: KTheme;
365
+ hostAppName?: string | null;
366
+ }
367
+
324
368
  /**
325
369
  * KApplication 是使用酷大师前端 Plugin API 的起点。
326
370
  *
@@ -546,6 +590,14 @@ declare global {
546
590
  * @returns true if message handler has registered and has been removed, or false if the message handler hasn't registered.
547
591
  */
548
592
  unRegisterMessageHandler(handerId: string): boolean;
593
+
594
+ /**
595
+ *
596
+ * 获取当前环境设置
597
+ *
598
+ * get current environment settings
599
+ */
600
+ getEnvironmentSettings(): EnvironmentSetting;
549
601
  }
550
602
 
551
603
  /*
@@ -4636,8 +4688,8 @@ declare global {
4636
4688
 
4637
4689
  /**
4638
4690
  * view是否使用最大高度 将会覆盖size.y
4639
- * @param viewId
4640
- * @param useMaxHeight
4691
+ * @param viewId
4692
+ * @param useMaxHeight
4641
4693
  */
4642
4694
  pluginViewUseMaxHeight(viewId: string, useMaxHeight: boolean): void;
4643
4695
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kudashi/kds-api",
3
- "version": "2.14.3-rc-1",
3
+ "version": "2.14.4-rc-1",
4
4
  "description": "kds api",
5
5
  "main": "api.d.ts",
6
6
  "scripts": {