@arquimedes.co/eureka-forms 3.0.28-test → 3.0.30-test

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.
@@ -115,12 +115,26 @@ export const useSetupApp = (isEmbedded, props) => {
115
115
  useEffect(() => {
116
116
  void loadData();
117
117
  // eslint-disable-next-line no-console
118
- console.log('Changed!');
118
+ console.log('Form props Changed!');
119
119
  return () => {
120
120
  dispatch({ type: 'CLEAR' });
121
121
  };
122
122
  // eslint-disable-next-line react-hooks/exhaustive-deps
123
- }, [props.formData, props.valuesData]);
123
+ }, [
124
+ dispatch,
125
+ preview,
126
+ internal,
127
+ postview,
128
+ partial,
129
+ editable,
130
+ handleConfirmed,
131
+ customSteps,
132
+ valuesData,
133
+ apiKey,
134
+ formData,
135
+ classifiers,
136
+ idCurrentAgent,
137
+ ]);
124
138
  const reload = useCallback(() => {
125
139
  if (!form)
126
140
  return;
@@ -137,7 +151,7 @@ export const useSetupApp = (isEmbedded, props) => {
137
151
  return {
138
152
  form,
139
153
  organization,
140
- branding: organization?.customBrandings ? (form?.branding ?? organization.branding) : organization?.branding,
154
+ branding: organization?.customBrandings ? form?.branding ?? organization.branding : organization?.branding,
141
155
  reload,
142
156
  };
143
157
  };
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../@ErkIcon';
2
+ declare function WorkIcon(props: IconProps): JSX.Element;
3
+ export default WorkIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useIconProps } from '../@ErkIcon';
3
+ function WorkIcon(props) {
4
+ const iconProps = useIconProps(props);
5
+ return (_jsx("svg", { ...iconProps, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z" }) }));
6
+ }
7
+ export default WorkIcon;
@@ -10,6 +10,7 @@ import CheckListIcon from '../../Icons/Entities/CheckListIcon';
10
10
  import GenericEntityIcon from '../../Icons/Entities/GenericEntityIcon';
11
11
  import HandShakeIcon from '../../Icons/Entities/HandshakeIcon';
12
12
  import SupplierIcon from '../../Icons/Entities/SupplierIcon';
13
+ import WorkIcon from '../../Icons/Entities/WorkIcon';
13
14
  import LocationIcon from '../../Icons/LocationIcon';
14
15
  import PersonIcon from '../../Icons/PersonIcon';
15
16
  function InputIcon({ icon, ...others }) {
@@ -34,6 +35,8 @@ function InputIcon({ icon, ...others }) {
34
35
  return _jsx(SupplierIcon, { size: 24, ...others });
35
36
  case ErkIconTypes.CALENDAR:
36
37
  return _jsx(CalendarIcon, { size: 23, ...others });
38
+ case ErkIconTypes.WORK:
39
+ return _jsx(WorkIcon, { size: 23, ...others });
37
40
  case ErkIconTypes.LOCATION:
38
41
  return _jsx(LocationIcon, { size: 23, ...others });
39
42
  case ErkIconTypes.GENERIC:
@@ -10,5 +10,6 @@ export declare enum ErkIconTypes {
10
10
  SUPPLIER = "SUPPLIER",
11
11
  GENERIC = "GENERIC",
12
12
  LOCATION = "LOCATION",
13
- CALENDAR = "CALENDAR"
13
+ CALENDAR = "CALENDAR",
14
+ WORK = "WORK"
14
15
  }
@@ -12,4 +12,5 @@ export var ErkIconTypes;
12
12
  ErkIconTypes["GENERIC"] = "GENERIC";
13
13
  ErkIconTypes["LOCATION"] = "LOCATION";
14
14
  ErkIconTypes["CALENDAR"] = "CALENDAR";
15
+ ErkIconTypes["WORK"] = "WORK";
15
16
  })(ErkIconTypes || (ErkIconTypes = {}));
package/dist/main.js CHANGED
@@ -16,8 +16,10 @@ if (values) {
16
16
  console.error('Invalid data-values JSON', error);
17
17
  }
18
18
  }
19
- ReactDOM.createRoot(document.getElementById('eureka-root')).render(_jsx("div", { className: styles.eurekaForm, children: _jsx(App, { isWidget: false, idOrganization: urlParams.get('idOrganization') ?? undefined, apiKey: window.location.pathname.replace('/', ''), valuesData: dataValues, scrollToTop: () => {
20
- location.href = '#';
21
- location.href = '#eureka-root';
22
- location.href = '#';
23
- } }) }));
19
+ const idOrganization = urlParams.get('idOrganization') ?? undefined;
20
+ const scrollToTop = () => {
21
+ location.href = '#';
22
+ location.href = '#eureka-root';
23
+ location.href = '#';
24
+ };
25
+ ReactDOM.createRoot(document.getElementById('eureka-root')).render(_jsx("div", { className: styles.eurekaForm, children: _jsx(App, { isWidget: false, idOrganization: idOrganization, apiKey: window.location.pathname.replace('/', ''), valuesData: dataValues, scrollToTop: scrollToTop }) }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version":"3.0.28-test",
4
+ "version":"3.0.30-test",
5
5
  "scripts": {
6
6
  "watch": "tsc --noEmit --watch --project tsconfig.app.json",
7
7
  "start": "vite",