@ws-ui/shared 1.11.12-rc1 → 1.11.12-rc2
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/dist/declarations/datasources/datasource.d.ts +393 -393
- package/dist/declarations/datasources/methods.d.ts +110 -110
- package/dist/declarations/index.d.ts +11 -11
- package/dist/declarations/webform/webform.d.ts +302 -302
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/explorer.d.ts +26 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/settings.d.ts +28 -0
- package/package.json +1 -1
package/dist/types/explorer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FileFolderType } from './api';
|
|
1
2
|
export interface ICodeEditorConfig {
|
|
2
3
|
language: string;
|
|
3
4
|
theme: 'fd-dark' | 'vs-dark' | 'vs-light';
|
|
@@ -7,3 +8,28 @@ export interface IEditor {
|
|
|
7
8
|
key: 'editors:roles' | 'editors:webforms' | 'editors:code' | 'editors:code:method' | 'editors:unknown' | 'editors:debugger' | 'editors:img' | 'editors:model' | 'editors:settings' | 'editors:reports' | 'editors:http-handlers' | 'editors:localization' | 'editors:event-report';
|
|
8
9
|
config?: TEditorConfig;
|
|
9
10
|
}
|
|
11
|
+
export interface ITreeItem {
|
|
12
|
+
id?: string;
|
|
13
|
+
name: string;
|
|
14
|
+
path: string;
|
|
15
|
+
children?: ITreeItem[];
|
|
16
|
+
type: FileFolderType;
|
|
17
|
+
date?: string;
|
|
18
|
+
size?: number;
|
|
19
|
+
ext?: string;
|
|
20
|
+
error: null | {
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
flags: {
|
|
24
|
+
[key: string]: boolean;
|
|
25
|
+
};
|
|
26
|
+
tipKey?: string;
|
|
27
|
+
config: {
|
|
28
|
+
editor?: IEditor;
|
|
29
|
+
supportedEditors?: IEditor[];
|
|
30
|
+
};
|
|
31
|
+
isRoot?: boolean;
|
|
32
|
+
info?: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FileFolderType, IAppSettingsResponse } from './api';
|
|
2
|
+
import { ITreeItem } from './explorer';
|
|
3
|
+
export type TSettingPath = 'session' | 'project' | 'welcometour';
|
|
4
|
+
export interface ISettingsState {
|
|
5
|
+
session: {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
project: {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
server: IAppSettingsResponse;
|
|
12
|
+
welcometour: {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface ISetSettingPayload {
|
|
17
|
+
path: TSettingPath;
|
|
18
|
+
settingsKey: string;
|
|
19
|
+
value: unknown;
|
|
20
|
+
}
|
|
21
|
+
export interface ICreateNewFilePayload {
|
|
22
|
+
fileName: string;
|
|
23
|
+
type: FileFolderType;
|
|
24
|
+
path: string;
|
|
25
|
+
parentNode: ITreeItem;
|
|
26
|
+
content?: string;
|
|
27
|
+
qodly?: boolean;
|
|
28
|
+
}
|