next-box 2.1.55 → 2.1.57

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.
@@ -0,0 +1,39 @@
1
+ import { Lang } from './base';
2
+ export type SettingLang = string | Lang | null;
3
+ export declare enum SettingControlType {
4
+ Text = "text",
5
+ String = "string",
6
+ Number = "number",
7
+ ConnectionChoose = "connection_choose"
8
+ }
9
+ export interface Setting {
10
+ title?: SettingLang;
11
+ name?: string;
12
+ fields: SettingField[];
13
+ }
14
+ export interface SettingField {
15
+ name: string;
16
+ value: any;
17
+ label?: SettingLang;
18
+ help?: SettingLang;
19
+ placeholder?: SettingLang;
20
+ view?: SettingFieldView;
21
+ control: {
22
+ type: SettingControlType;
23
+ filter?: Record<string, any>;
24
+ };
25
+ }
26
+ export type SettingFieldView = SettingViewConnectionChoose | any;
27
+ export interface SettingViewConnectionChoose {
28
+ id: number;
29
+ name: string;
30
+ owner_id: number;
31
+ }
32
+ export interface SettingValueField {
33
+ name: string;
34
+ value: any;
35
+ }
36
+ export interface SettingValue {
37
+ name: string;
38
+ fields: SettingValueField[];
39
+ }
@@ -1,4 +1,5 @@
1
1
  import { ExtensionType, FileInfo, Lang } from './base';
2
+ import { SettingValue } from './setting';
2
3
  import { StorageRoot } from './storage-element';
3
4
  export declare enum ViewState {
4
5
  view = "view",
@@ -29,4 +30,5 @@ export interface AppState {
29
30
  path: string;
30
31
  info: FileInfo;
31
32
  };
33
+ setting?: SettingValue;
32
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-box",
3
- "version": "2.1.55",
3
+ "version": "2.1.57",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",