@ws-ui/shared 0.1.27 → 0.1.29
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/index.cjs.js +19 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +510 -506
- package/dist/index.es.js.map +1 -1
- package/dist/types/api.d.ts +4 -1
- package/dist/types/explorer.d.ts +1 -1
- package/dist/types/webform-editor.d.ts +7 -0
- package/dist/utils/explorer.d.ts +1 -1
- package/package.json +2 -2
package/dist/types/api.d.ts
CHANGED
|
@@ -20,7 +20,8 @@ export declare enum FolderRootType {
|
|
|
20
20
|
CLASSES = "class",
|
|
21
21
|
WELCOME = "welcome",
|
|
22
22
|
SETTINGS = "settings",
|
|
23
|
-
ROOT = "root"
|
|
23
|
+
ROOT = "root",
|
|
24
|
+
REPORTS = "report"
|
|
24
25
|
}
|
|
25
26
|
export declare const FolderRootPath: {
|
|
26
27
|
CLASSES: string;
|
|
@@ -28,6 +29,7 @@ export declare const FolderRootPath: {
|
|
|
28
29
|
SHARED: string;
|
|
29
30
|
WEBFORMS: string;
|
|
30
31
|
CLASSES_FOLDER: string;
|
|
32
|
+
REPORTS: string;
|
|
31
33
|
};
|
|
32
34
|
/**
|
|
33
35
|
* Folder child type enumeration
|
|
@@ -41,6 +43,7 @@ export declare enum FileFolderType {
|
|
|
41
43
|
* Represent a WebForm
|
|
42
44
|
*/
|
|
43
45
|
WEBFORM = "webform",
|
|
46
|
+
REPORT = "report",
|
|
44
47
|
/**
|
|
45
48
|
* Represent a Method
|
|
46
49
|
*/
|
package/dist/types/explorer.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export interface ICodeEditorConfig {
|
|
|
4
4
|
}
|
|
5
5
|
export type TEditorConfig = Partial<ICodeEditorConfig>;
|
|
6
6
|
export interface IEditor {
|
|
7
|
-
key: 'editors:roles' | 'editors:webforms' | 'editors:code' | 'editors:code:method' | 'editors:unknown' | 'editors:debugger' | 'editors:img' | 'editors:model' | 'editors:settings';
|
|
7
|
+
key: 'editors:roles' | 'editors:webforms' | 'editors:code' | 'editors:code:method' | 'editors:unknown' | 'editors:debugger' | 'editors:img' | 'editors:model' | 'editors:settings' | 'editors:reports';
|
|
8
8
|
config?: TEditorConfig;
|
|
9
9
|
}
|
|
@@ -8,9 +8,15 @@ export type IWebFormMetadata = Partial<{
|
|
|
8
8
|
styles: IWebFormStyleClass[];
|
|
9
9
|
title: string;
|
|
10
10
|
}>;
|
|
11
|
+
interface IPage {
|
|
12
|
+
name: string;
|
|
13
|
+
id: string;
|
|
14
|
+
components: SerializedNodes;
|
|
15
|
+
}
|
|
11
16
|
export interface IWebFormContent {
|
|
12
17
|
components?: SerializedNodes;
|
|
13
18
|
metadata?: IWebFormMetadata;
|
|
19
|
+
pages?: IPage[];
|
|
14
20
|
}
|
|
15
21
|
export declare enum EWebFormStyleClassScope {
|
|
16
22
|
LOCAL = "local",
|
|
@@ -73,3 +79,4 @@ export interface IControlledFieldProps<T> {
|
|
|
73
79
|
defaultValue: T;
|
|
74
80
|
onChange: (value: T, error?: string) => any;
|
|
75
81
|
}
|
|
82
|
+
export {};
|
package/dist/utils/explorer.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export declare const ROLES_TAB_PATH = "roles.json";
|
|
|
3
3
|
export declare const SETTINGS_TAB_PATH = "qodlyApp.json";
|
|
4
4
|
export declare const MODEL_TAB_PATH = "model.4DModel";
|
|
5
5
|
export declare function getTypeFromExtension(path: string): FileFolderTypeWithContent;
|
|
6
|
-
export declare function getFileExtentionFromType(type: string, qodly?: boolean): "" | "WebForm" | "4dm" | "4qs" | "MForm";
|
|
6
|
+
export declare function getFileExtentionFromType(type: string, qodly?: boolean): "" | "WebForm" | "4dm" | "4qs" | "QoDoc" | "MForm";
|
|
7
7
|
export declare function extractWebformName(path: string, fallbackName?: string): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/shared",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.29",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@popperjs/core": "^2.9.2",
|
|
31
31
|
"@radix-ui/react-popover": "^0.1.6",
|
|
32
32
|
"@ws-ui/craftjs-core": "^0.2.1-beta.3",
|
|
33
|
-
"@ws-ui/icons": "^0.0.
|
|
33
|
+
"@ws-ui/icons": "^0.0.20",
|
|
34
34
|
"classnames": "^2.3.1",
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
36
|
"markdown-to-jsx": "^7.1.3",
|