@evoke-platform/ui-components 1.0.0-dev.236 → 1.0.0-dev.238

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,5 +1,5 @@
1
1
  import { useApp, useAuthenticationContext, } from '@evoke-platform/context';
2
- import { Components, Form as FormIO } from '@formio/react';
2
+ import { Components, Form as FormIO, Utils } from '@formio/react';
3
3
  import { flatten } from 'flat';
4
4
  import { isEqual, toPairs } from 'lodash';
5
5
  import React, { useEffect, useRef, useState } from 'react';
@@ -15,6 +15,7 @@ const usePrevious = (value) => {
15
15
  });
16
16
  return ref.current;
17
17
  };
18
+ Utils.Evaluator.noeval = true;
18
19
  export function Form(props) {
19
20
  const { clearable, closeModal, onSave, submitButtonLabel, instance, object, objectInputCommonProps, actionId, actionType, associatedObject, onAutoSave, apiServices, navigateTo, document, queryAddresses, user, isReadOnly, fieldHeight, richTextEditor, } = props;
20
21
  const [formKey, setFormKey] = useState();
@@ -78,7 +78,7 @@ export const ActionDialog = (props) => {
78
78
  React.createElement(IconButton, { sx: styles.closeIcon, onClick: onClose },
79
79
  React.createElement(Close, { fontSize: "small" })),
80
80
  action && hasAccess && !loading ? action?.name : ''),
81
- React.createElement(DialogContent, null, hasAccess ? (React.createElement(Box, { sx: { width: '100%', marginTop: '10px' } }, (updatedObject || isDeleteAction) && (React.createElement(Form, { actionId: action.id, actionType: action.type, apiServices: objectInputCommonProps.apiServices, object: !isDeleteAction ? updatedObject : object, instance: instanceInput, onSave: async (data, setSubmitting) => handleSubmit(action.type, data, instanceId, setSubmitting), objectInputCommonProps: objectInputCommonProps, closeModal: onClose, queryAddresses: queryAddresses, user: user })))) : (React.createElement(React.Fragment, null, loading ? (React.createElement(React.Fragment, null,
81
+ React.createElement(DialogContent, null, hasAccess ? (React.createElement(Box, { sx: { width: '100%', marginTop: '10px' } }, (updatedObject || isDeleteAction) && (React.createElement(Form, { actionId: action.id, actionType: action.type, apiServices: objectInputCommonProps.apiServices, object: !isDeleteAction ? updatedObject : object, instance: instanceInput, onSave: async (data, setSubmitting) => handleSubmit(action.type, data, instanceId, setSubmitting), objectInputCommonProps: objectInputCommonProps, closeModal: onClose, queryAddresses: queryAddresses, user: user, submitButtonLabel: isDeleteAction ? 'Delete' : undefined })))) : (React.createElement(React.Fragment, null, loading ? (React.createElement(React.Fragment, null,
82
82
  React.createElement(Skeleton, { height: '30px', animation: 'wave' }),
83
83
  React.createElement(Skeleton, { height: '30px', animation: 'wave' }),
84
84
  React.createElement(Skeleton, { height: '30px', animation: 'wave' }))) : (React.createElement(ErrorComponent, { code: 'AccessDenied', message: 'You do not have permission to perform this action.', styles: { boxShadow: 'none' } })))))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.0-dev.236",
3
+ "version": "1.0.0-dev.238",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",