@arquimedes.co/eureka-forms 0.2.8 → 0.2.9-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.
package/dist/App.js CHANGED
@@ -120,6 +120,7 @@ function App(_a) {
120
120
  }
121
121
  useEffect(function () {
122
122
  if (formData !== undefined) {
123
+ console.log('!');
123
124
  if (preview && formData.isStandAlone) {
124
125
  fetchPreview(formData);
125
126
  }
@@ -175,6 +176,7 @@ function App(_a) {
175
176
  return [3 /*break*/, 3];
176
177
  case 2:
177
178
  error_1 = _b.sent();
179
+ console.error(error_1);
178
180
  setForm(null);
179
181
  setOrganizationInfo(null);
180
182
  return [3 /*break*/, 3];
@@ -101,7 +101,7 @@ function ColumnForm(_a) {
101
101
  idStep = _a[_i];
102
102
  updateValue(idStep, values, form);
103
103
  }
104
- url = "https://xkmqdd6tr6.execute-api.us-east-1.amazonaws.com/Prod/ticket?apiKey=" + (internal ? form.apiKey : apiKey) + "&domain=" + domain;
104
+ url = "https://" + domain + ".forms." + process.env.REACT_APP_DOMAIN + "/api/ticket?apiKey=" + (internal ? form.apiKey : apiKey) + "&domain=" + domain;
105
105
  console.log(values);
106
106
  payload = {
107
107
  formValues: { steps: values },
@@ -46,7 +46,7 @@ function FormComponent(_a) {
46
46
  if (currentWidth !== undefined) {
47
47
  var currentBreakPoint = blockNum;
48
48
  while (currentWidth <
49
- (blockSize + spacingSize) * currentBreakPoint + 40) {
49
+ (blockSize + spacingSize) * currentBreakPoint) {
50
50
  currentBreakPoint--;
51
51
  }
52
52
  setWidthStats({
@@ -21,7 +21,7 @@ function DatePickerStep(_a) {
21
21
  ? '100%'
22
22
  : calcStepWidth(step.size, form),
23
23
  minHeight: step.description || step.required ? '55px' : '43px',
24
- } }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: new Date(), rules: {
24
+ } }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: null, rules: {
25
25
  required: step.required
26
26
  ? 'Este campo es obligatorio'
27
27
  : undefined,
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": "0.2.8",
4
+ "version": "0.2.9-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",
@@ -57,6 +57,7 @@
57
57
  "@types/react-router-dom": "^5.1.7",
58
58
  "@typescript-eslint/eslint-plugin": "^4.24.0",
59
59
  "@typescript-eslint/parser": "^4.24.0",
60
+ "dotenv-webpack": "^7.0.3",
60
61
  "eslint": "^7.27.0",
61
62
  "eslint-config-prettier": "^8.3.0",
62
63
  "eslint-plugin-prettier": "^3.4.0",