@forestadmin/forestadmin-client 1.28.0 → 1.30.0

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.
@@ -203,11 +203,19 @@ export type ForestServerActionFieldCheckboxGroup = ForestServerActionFieldCommon
203
203
  type ForestServerActionFormElementSeparator = {
204
204
  component: 'separator';
205
205
  };
206
- type ForestServerActionFormElementFieldReference = {
206
+ type ForestServerActionFormElementHtmlBlock = {
207
+ component: 'htmlBlock';
208
+ content: string;
209
+ };
210
+ type ForestServerActionFormElementRow = {
211
+ component: 'row';
212
+ fields: ForestServerActionFormElementFieldReference[];
213
+ };
214
+ export type ForestServerActionFormElementFieldReference = {
207
215
  component: 'input';
208
216
  fieldId: string;
209
217
  };
210
- export type ForestServerActionFormLayoutElement = ForestServerActionFormElementSeparator | ForestServerActionFormElementFieldReference;
218
+ export type ForestServerActionFormLayoutElement = ForestServerActionFormElementSeparator | ForestServerActionFormElementHtmlBlock | ForestServerActionFormElementRow | ForestServerActionFormElementFieldReference;
211
219
  export type ForestServerActionField = ForestServerActionFieldDropdown | ForestServerActionFieldRadioGroup | ForestServerActionFieldCheckboxGroup | ForestServerActionFieldBase | ForestServerActionFieldCommon<'Boolean', ForestServerActionFieldCheckboxOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextInputOptions> | ForestServerActionFieldCommon<'Date', ForestServerActionFieldDatePickerInputOptions> | ForestServerActionFieldCommon<['String'], ForestServerActionFieldTextInputListOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldTextAreaOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldUserDropdown> | ForestServerActionFieldCommon<'String', ForestServerActionFieldRichTextOptions> | ForestServerActionFieldCommon<'Time', ForestServerActionFieldTimePickerOptions> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldNumberInputOptions> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldCurrencyInputOptions> | ForestServerActionFieldCommon<['Number'], ForestServerActionFieldNumberInputListOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldColorPickerOptions> | ForestServerActionFieldCommon<'File' | ['File'], ForestServerActionFieldFilePickerOptions> | ForestServerActionFieldCommon<'Json', ForestServerActionFieldJsonEditorOptions> | ForestServerActionFieldCommon<'String', ForestServerActionFieldAddressAutocompleteOptions>;
212
220
  export type ForestServerField = Partial<{
213
221
  field: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forestadmin/forestadmin-client",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "GPL-3.0",
6
6
  "publishConfig": {
@@ -31,7 +31,7 @@
31
31
  "test": "jest"
32
32
  },
33
33
  "devDependencies": {
34
- "@forestadmin/datasource-toolkit": "1.35.0",
34
+ "@forestadmin/datasource-toolkit": "1.37.0",
35
35
  "@types/json-api-serializer": "^2.6.3",
36
36
  "@types/jsonwebtoken": "^9.0.1",
37
37
  "@types/superagent": "^4.1.16"