@steedos-widgets/amis-lib 6.3.0-beta.16 → 6.3.0-beta.17

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.
@@ -1,10 +1,9 @@
1
- export function getAmisFileReadonlySchema(steedosField: any): {
1
+ export function getAmisFileReadonlySchema(steedosField: any, ctx: any): Promise<{
2
2
  type: any;
3
3
  defaultImage: string;
4
4
  enlargeAble: boolean;
5
5
  showToolbar: boolean;
6
6
  body?: undefined;
7
- tpl?: undefined;
8
7
  } | {
9
8
  type: string;
10
9
  body: {
@@ -23,20 +22,55 @@ export function getAmisFileReadonlySchema(steedosField: any): {
23
22
  weight: number;
24
23
  };
25
24
  };
25
+ labelClassName?: undefined;
26
+ label?: undefined;
26
27
  };
28
+ placeholder?: undefined;
29
+ source?: undefined;
27
30
  };
28
31
  defaultImage?: undefined;
29
32
  enlargeAble?: undefined;
30
33
  showToolbar?: undefined;
31
- tpl?: undefined;
32
34
  } | {
33
- type: any;
34
- tpl: string;
35
+ type: string;
36
+ body: {
37
+ type: string;
38
+ placeholder: string;
39
+ source: string;
40
+ items: {
41
+ type: string;
42
+ labelClassName: string;
43
+ label: boolean;
44
+ className: string;
45
+ tpl: string;
46
+ onEvent: {
47
+ click: {
48
+ actions: {
49
+ actionType: string;
50
+ drawer: {
51
+ type: string;
52
+ title: string;
53
+ headerClassName: string;
54
+ size: string;
55
+ bodyClassName: string;
56
+ closeOnEsc: boolean;
57
+ closeOnOutside: boolean;
58
+ resizable: boolean;
59
+ actions: any[];
60
+ body: any[];
61
+ className: string;
62
+ };
63
+ preventDefault: boolean;
64
+ }[];
65
+ };
66
+ };
67
+ };
68
+ name?: undefined;
69
+ };
35
70
  defaultImage?: undefined;
36
71
  enlargeAble?: undefined;
37
72
  showToolbar?: undefined;
38
- body?: undefined;
39
- };
73
+ }>;
40
74
  export function getAmisFileEditSchema(steedosField: any): {
41
75
  type: any;
42
76
  useChunk: boolean;
@@ -51,13 +85,12 @@ export function getAmisFileEditSchema(steedosField: any): {
51
85
  };
52
86
  };
53
87
  };
54
- export function getAmisFileSchema(steedosField: any, readonly: any): {
88
+ export function getAmisFileSchema(steedosField: any, readonly: any, ctx: any): Promise<{
55
89
  type: any;
56
90
  defaultImage: string;
57
91
  enlargeAble: boolean;
58
92
  showToolbar: boolean;
59
93
  body?: undefined;
60
- tpl?: undefined;
61
94
  } | {
62
95
  type: string;
63
96
  body: {
@@ -76,19 +109,54 @@ export function getAmisFileSchema(steedosField: any, readonly: any): {
76
109
  weight: number;
77
110
  };
78
111
  };
112
+ labelClassName?: undefined;
113
+ label?: undefined;
79
114
  };
115
+ placeholder?: undefined;
116
+ source?: undefined;
80
117
  };
81
118
  defaultImage?: undefined;
82
119
  enlargeAble?: undefined;
83
120
  showToolbar?: undefined;
84
- tpl?: undefined;
85
121
  } | {
86
- type: any;
87
- tpl: string;
122
+ type: string;
123
+ body: {
124
+ type: string;
125
+ placeholder: string;
126
+ source: string;
127
+ items: {
128
+ type: string;
129
+ labelClassName: string;
130
+ label: boolean;
131
+ className: string;
132
+ tpl: string;
133
+ onEvent: {
134
+ click: {
135
+ actions: {
136
+ actionType: string;
137
+ drawer: {
138
+ type: string;
139
+ title: string;
140
+ headerClassName: string;
141
+ size: string;
142
+ bodyClassName: string;
143
+ closeOnEsc: boolean;
144
+ closeOnOutside: boolean;
145
+ resizable: boolean;
146
+ actions: any[];
147
+ body: any[];
148
+ className: string;
149
+ };
150
+ preventDefault: boolean;
151
+ }[];
152
+ };
153
+ };
154
+ };
155
+ name?: undefined;
156
+ };
88
157
  defaultImage?: undefined;
89
158
  enlargeAble?: undefined;
90
159
  showToolbar?: undefined;
91
- body?: undefined;
92
160
  } | {
93
161
  type: any;
94
162
  useChunk: boolean;
@@ -102,4 +170,4 @@ export function getAmisFileSchema(steedosField: any, readonly: any): {
102
170
  Authorization: string;
103
171
  };
104
172
  };
105
- };
173
+ }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "6.3.0-beta.16",
4
+ "version": "6.3.0-beta.17",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -61,5 +61,5 @@
61
61
  "lodash": "^4.17.21",
62
62
  "react-i18next": "12.3.1"
63
63
  },
64
- "gitHead": "8867570e2d1836d14ef3eae384eecf0d20c4e9d4"
64
+ "gitHead": "dd25c4f945f423790ba2fd447daa5136e1d08b11"
65
65
  }