@steedos-widgets/amis-lib 6.10.22 → 6.10.24

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,3 +1 @@
1
- import i18n from "i18next";
2
1
  export function getUserLanguage(): any;
3
- export { i18n as i18next };
@@ -28,7 +28,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
28
28
  name: string;
29
29
  value: string;
30
30
  options: {
31
- label: any;
31
+ label: string;
32
32
  value: string;
33
33
  }[];
34
34
  id: string;
@@ -63,7 +63,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
63
63
  columns: ({
64
64
  body: {
65
65
  type: string;
66
- tpl: any;
66
+ tpl: string;
67
67
  inline: boolean;
68
68
  wrapperComponent: string;
69
69
  id: string;
@@ -117,7 +117,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
117
117
  columns: ({
118
118
  body: {
119
119
  type: string;
120
- tpl: any;
120
+ tpl: string;
121
121
  inline: boolean;
122
122
  wrapperComponent: string;
123
123
  id: string;
@@ -130,6 +130,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
130
130
  type: string;
131
131
  label: string;
132
132
  name: string;
133
+ id: string;
133
134
  hiddenOn: string;
134
135
  required: boolean;
135
136
  onEvent: {
@@ -139,7 +140,6 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
139
140
  };
140
141
  };
141
142
  multiple?: undefined;
142
- id?: undefined;
143
143
  source?: undefined;
144
144
  labelField?: undefined;
145
145
  valueField?: undefined;
@@ -150,6 +150,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
150
150
  type: string;
151
151
  label: string;
152
152
  name: string;
153
+ id: string;
153
154
  hiddenOn: string;
154
155
  required: boolean;
155
156
  multiple: boolean;
@@ -159,7 +160,6 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
159
160
  actions: any[];
160
161
  };
161
162
  };
162
- id?: undefined;
163
163
  source?: undefined;
164
164
  labelField?: undefined;
165
165
  valueField?: undefined;
@@ -228,7 +228,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
228
228
  id: string;
229
229
  minRows: number;
230
230
  maxRows: number;
231
- placeholder: any;
231
+ placeholder: string;
232
232
  requiredOn: string;
233
233
  value: any;
234
234
  })[];
@@ -5,7 +5,7 @@ export function getAttachments(instance: any): Promise<{
5
5
  bodyClassName: string;
6
6
  title: ({
7
7
  type: string;
8
- tpl: any;
8
+ tpl: string;
9
9
  title?: undefined;
10
10
  body?: undefined;
11
11
  id?: undefined;
@@ -17,11 +17,11 @@ export function getAttachments(instance: any): Promise<{
17
17
  type: string;
18
18
  labelClassName: string;
19
19
  className: string;
20
- label: any;
20
+ label: string;
21
21
  mode: string;
22
22
  name: string;
23
23
  id: string;
24
- btnLabel: any;
24
+ btnLabel: string;
25
25
  btnClassName: string;
26
26
  multiple: boolean;
27
27
  maxLength: number;
@@ -64,7 +64,7 @@ export function getAttachments(instance: any): Promise<{
64
64
  position: string;
65
65
  closeButton: boolean;
66
66
  showIcon: boolean;
67
- msg: any;
67
+ msg: string;
68
68
  };
69
69
  actionType: string;
70
70
  })[];
@@ -106,7 +106,7 @@ export function getAttachments(instance: any): Promise<{
106
106
  }>;
107
107
  export function getAttachmentUploadInput(instance: any): Promise<{
108
108
  type: string;
109
- tpl: any;
109
+ tpl: string;
110
110
  title?: undefined;
111
111
  body?: undefined;
112
112
  id?: undefined;
@@ -118,11 +118,11 @@ export function getAttachmentUploadInput(instance: any): Promise<{
118
118
  type: string;
119
119
  labelClassName: string;
120
120
  className: string;
121
- label: any;
121
+ label: string;
122
122
  mode: string;
123
123
  name: string;
124
124
  id: string;
125
- btnLabel: any;
125
+ btnLabel: string;
126
126
  btnClassName: string;
127
127
  multiple: boolean;
128
128
  maxLength: number;
@@ -165,7 +165,7 @@ export function getAttachmentUploadInput(instance: any): Promise<{
165
165
  position: string;
166
166
  closeButton: boolean;
167
167
  showIcon: boolean;
168
- msg: any;
168
+ msg: string;
169
169
  };
170
170
  actionType: string;
171
171
  })[];
@@ -56,7 +56,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
56
56
  bodyClassName: string;
57
57
  title: ({
58
58
  type: string;
59
- tpl: any;
59
+ tpl: string;
60
60
  title?: undefined;
61
61
  body?: undefined;
62
62
  id?: undefined;
@@ -68,11 +68,11 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
68
68
  type: string;
69
69
  labelClassName: string;
70
70
  className: string;
71
- label: any;
71
+ label: string;
72
72
  mode: string;
73
73
  name: string;
74
74
  id: string;
75
- btnLabel: any;
75
+ btnLabel: string;
76
76
  btnClassName: string;
77
77
  multiple: boolean;
78
78
  maxLength: number;
@@ -115,7 +115,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
115
115
  position: string;
116
116
  closeButton: boolean;
117
117
  showIcon: boolean;
118
- msg: any;
118
+ msg: string;
119
119
  };
120
120
  actionType: string;
121
121
  })[];
@@ -161,7 +161,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
161
161
  type: string;
162
162
  name: string;
163
163
  source: string;
164
- title: any;
164
+ title: string;
165
165
  listItem: {
166
166
  body: {
167
167
  type: string;
@@ -175,7 +175,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
175
175
  } | {
176
176
  type: string;
177
177
  headerClassName: string;
178
- title: any;
178
+ title: string;
179
179
  source: string;
180
180
  className: string;
181
181
  columnsTogglable: boolean;
@@ -203,7 +203,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
203
203
  })[];
204
204
  } | {
205
205
  type: string;
206
- label: any;
206
+ label: string;
207
207
  onEvent: {
208
208
  click: {
209
209
  actions: {
@@ -240,7 +240,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
240
240
  name: string;
241
241
  value: string;
242
242
  options: {
243
- label: any;
243
+ label: string;
244
244
  value: string;
245
245
  }[];
246
246
  id: string;
@@ -275,7 +275,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
275
275
  columns: ({
276
276
  body: {
277
277
  type: string;
278
- tpl: any;
278
+ tpl: string;
279
279
  inline: boolean;
280
280
  wrapperComponent: string;
281
281
  id: string;
@@ -329,7 +329,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
329
329
  columns: ({
330
330
  body: {
331
331
  type: string;
332
- tpl: any;
332
+ tpl: string;
333
333
  inline: boolean;
334
334
  wrapperComponent: string;
335
335
  id: string;
@@ -342,6 +342,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
342
342
  type: string;
343
343
  label: string;
344
344
  name: string;
345
+ id: string;
345
346
  hiddenOn: string;
346
347
  required: boolean;
347
348
  onEvent: {
@@ -351,7 +352,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
351
352
  };
352
353
  };
353
354
  multiple?: undefined;
354
- id?: undefined;
355
355
  source?: undefined;
356
356
  labelField?: undefined;
357
357
  valueField?: undefined;
@@ -362,6 +362,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
362
362
  type: string;
363
363
  label: string;
364
364
  name: string;
365
+ id: string;
365
366
  hiddenOn: string;
366
367
  required: boolean;
367
368
  multiple: boolean;
@@ -371,7 +372,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
371
372
  actions: any[];
372
373
  };
373
374
  };
374
- id?: undefined;
375
375
  source?: undefined;
376
376
  labelField?: undefined;
377
377
  valueField?: undefined;
@@ -440,7 +440,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
440
440
  id: string;
441
441
  minRows: number;
442
442
  maxRows: number;
443
- placeholder: any;
443
+ placeholder: string;
444
444
  requiredOn: string;
445
445
  value: any;
446
446
  })[];
@@ -1,7 +1,7 @@
1
1
  export function getInstanceApprovalHistory(): Promise<{
2
2
  type: string;
3
3
  headerClassName: string;
4
- title: any;
4
+ title: string;
5
5
  source: string;
6
6
  className: string;
7
7
  columnsTogglable: boolean;
@@ -12,7 +12,7 @@ export function getInstanceInfo(props: any): Promise<{
12
12
  approveValues: any;
13
13
  title: any;
14
14
  name: any;
15
- fields: any[];
15
+ fields: any;
16
16
  flowVersion: any;
17
17
  formVersion: any;
18
18
  step: any;
@@ -6,7 +6,7 @@ export function getRelatedInstances(instance: any): Promise<{
6
6
  type: string;
7
7
  name: string;
8
8
  source: string;
9
- title: any;
9
+ title: string;
10
10
  listItem: {
11
11
  body: {
12
12
  type: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "6.10.22",
4
+ "version": "6.10.24",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -25,13 +25,13 @@
25
25
  "devDependencies": {
26
26
  "@babel/core": "^7.18.13",
27
27
  "@rollup/plugin-babel": "^5.3.1",
28
- "@rollup/plugin-commonjs": "^22.0.0",
28
+ "@rollup/plugin-commonjs": "^29.0.0",
29
29
  "@rollup/plugin-node-resolve": "^13.1.3",
30
30
  "@rollup/plugin-typescript": "^8.4.0",
31
31
  "@types/lodash": "^4.14.184",
32
32
  "fast-glob": "^3.2.12",
33
33
  "rimraf": "3.0.2",
34
- "rollup": "^2.70.1",
34
+ "rollup": "^2.79.2",
35
35
  "rollup-plugin-alias": "^2.2.0",
36
36
  "rollup-plugin-commonjs": "^10.1.0",
37
37
  "rollup-plugin-external-globals": "^0.6.1",
@@ -57,9 +57,8 @@
57
57
  "uglify-js": "^3.17.0"
58
58
  },
59
59
  "dependencies": {
60
- "i18next": "22.5.1",
61
- "lodash": "^4.17.21",
62
- "react-i18next": "12.3.1"
60
+ "i18next": "24.2.2",
61
+ "lodash": "^4.17.21"
63
62
  },
64
- "gitHead": "ee0ee21013114202c09b0a459e518b8218e5f2a0"
63
+ "gitHead": "5d9649ff34f5b9e3f06129875d8005ca46ab7ab2"
65
64
  }