@arquimedes.co/eureka-forms 2.0.99 → 2.0.100

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.
@@ -69,10 +69,10 @@ import { iterateNestedSteps } from '../FormSteps/StepFunctions';
69
69
  import { createNextState } from '@reduxjs/toolkit';
70
70
  import { BaseConfirmationMessage } from '../Contexts/FormContext';
71
71
  export var useSetupApp = function (isEmbedded, _a) {
72
+ var _b;
72
73
  var preview = _a.preview, internal = _a.internal, postview = _a.postview, partial = _a.partial, editable = _a.editable, handleConfirmed = _a.handleConfirmed, customSteps = _a.customSteps, valuesData = _a.valuesData, apiKey = _a.apiKey, formData = _a.formData, classifiers = _a.classifiers, others = __rest(_a, ["preview", "internal", "postview", "partial", "editable", "handleConfirmed", "customSteps", "valuesData", "apiKey", "formData", "classifiers"]);
73
- var _b = useState(undefined), form = _b[0], setForm = _b[1];
74
- var _c = useState(undefined), organization = _c[0], setOrganization = _c[1];
75
- var _d = useState(), branding = _d[0], setBranding = _d[1];
74
+ var _c = useState(undefined), form = _c[0], setForm = _c[1];
75
+ var _d = useState(undefined), organization = _d[0], setOrganization = _d[1];
76
76
  var dispatch = useAppDispatch();
77
77
  var loadOrg = function (idOrganization) { return __awaiter(void 0, void 0, void 0, function () {
78
78
  var organization;
@@ -91,9 +91,6 @@ export var useSetupApp = function (isEmbedded, _a) {
91
91
  //TODO cambiar el color del navbar en movil
92
92
  // eslint-disable-next-line no-console
93
93
  }
94
- if (!organization.customBrandings) {
95
- setBranding(organization.branding);
96
- }
97
94
  }
98
95
  return [2 /*return*/, organization];
99
96
  }
@@ -106,8 +103,6 @@ export var useSetupApp = function (isEmbedded, _a) {
106
103
  case 0: return [4 /*yield*/, fetchForm(apiKey, idOrganization)];
107
104
  case 1:
108
105
  form = _a.sent();
109
- if (form && form.branding)
110
- setBranding(form.branding);
111
106
  return [2 /*return*/, form];
112
107
  }
113
108
  });
@@ -210,7 +205,14 @@ export var useSetupApp = function (isEmbedded, _a) {
210
205
  handleConfirmed();
211
206
  }
212
207
  }, [form]);
213
- return { form: form, organization: organization, branding: branding, reload: reload };
208
+ return {
209
+ form: form,
210
+ organization: organization,
211
+ branding: (organization === null || organization === void 0 ? void 0 : organization.customBrandings)
212
+ ? (_b = form === null || form === void 0 ? void 0 : form.branding) !== null && _b !== void 0 ? _b : organization.branding
213
+ : organization === null || organization === void 0 ? void 0 : organization.branding,
214
+ reload: reload,
215
+ };
214
216
  };
215
217
  export var useLogRocket = function (organization, form, _a) {
216
218
  var apiKey = _a.apiKey, internal = _a.internal, postview = _a.postview, preview = _a.preview;
@@ -66,7 +66,7 @@ function ConfirmationDialog(_a) {
66
66
  if (global.confirmation.showLink) {
67
67
  return (_jsxs(_Fragment, { children: [_jsx("div", __assign({ className: widthStats.isMobile
68
68
  ? styles.mobileLinkContainer
69
- : styles.linkContainer }, { children: "Puedes consultar el estado aqui:" })), _jsx("a", __assign({ className: styles.url, "data-testid": "ResUrl", target: "_blank", href: confirmation.url, style: {
69
+ : styles.linkContainer }, { children: "Puedes consultar el estado aqu\u00ED:" })), _jsx("a", __assign({ className: styles.url, "data-testid": "ResUrl", target: "_blank", href: confirmation.url, style: {
70
70
  color: '#293241',
71
71
  fontSize: widthStats.isMobile ? '1rem' : '1.2rem',
72
72
  } }, { children: confirmation.url }))] }));
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": "2.0.99",
4
+ "version": "2.0.100",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",