@arquimedes.co/eureka-forms 1.1.8-test → 1.2.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.
package/dist/App.js CHANGED
@@ -65,7 +65,6 @@ import FormComponent from './FormComponents/Form/Form';
65
65
  import StepTypes from './constants/FormStepTypes';
66
66
  import axiosInstance from './AxiosAPI';
67
67
  import widgetInstance from './AxiosWidget';
68
- import LogRocket from 'logrocket';
69
68
  function App(_a) {
70
69
  var _this = this;
71
70
  var _b, _c, _d, _e;
@@ -120,25 +119,44 @@ function App(_a) {
120
119
  setOrganizationInfo(null);
121
120
  }
122
121
  }, []);
123
- useEffect(function () {
124
- if (organizationInfo && form !== undefined) {
125
- if (process.env.NODE_ENV === 'production' &&
126
- apiKey !== 'rCgWiEfOSN1TlUmHO28Y0' &&
127
- !internal &&
128
- !postview &&
129
- !preview) {
130
- LogRocket.init('63mg8a/forms-uv0gd');
131
- LogRocket.identify(organizationInfo.idOrganization + '/' + apiKey, {
132
- name: organizationInfo.name +
133
- '/' +
134
- (form ? form === null || form === void 0 ? void 0 : form.name : '404'),
135
- });
122
+ var loadLogRocket = function () { return __awaiter(_this, void 0, void 0, function () {
123
+ var LogRocket, error_1;
124
+ return __generator(this, function (_a) {
125
+ switch (_a.label) {
126
+ case 0:
127
+ if (!(organizationInfo && form !== undefined)) return [3 /*break*/, 4];
128
+ if (!(process.env.NODE_ENV === 'production' &&
129
+ apiKey !== 'rCgWiEfOSN1TlUmHO28Y0' &&
130
+ !internal &&
131
+ !postview &&
132
+ !preview)) return [3 /*break*/, 4];
133
+ _a.label = 1;
134
+ case 1:
135
+ _a.trys.push([1, 3, , 4]);
136
+ return [4 /*yield*/, import('logrocket')];
137
+ case 2:
138
+ LogRocket = _a.sent();
139
+ LogRocket.default.init('63mg8a/forms-uv0gd');
140
+ LogRocket.default.identify(organizationInfo.idOrganization + '/' + apiKey, {
141
+ name: organizationInfo.name +
142
+ '/' +
143
+ (form ? form === null || form === void 0 ? void 0 : form.name : '404'),
144
+ });
145
+ return [3 /*break*/, 4];
146
+ case 3:
147
+ error_1 = _a.sent();
148
+ console.error('LogRocker Error', error_1);
149
+ return [3 /*break*/, 4];
150
+ case 4: return [2 /*return*/];
136
151
  }
137
- }
152
+ });
153
+ }); };
154
+ useEffect(function () {
155
+ loadLogRocket();
138
156
  }, [organizationInfo, form]);
139
157
  var containerRef = useRef();
140
158
  var loadOrgInfo = function (domain) { return __awaiter(_this, void 0, void 0, function () {
141
- var response, _a, error_1;
159
+ var response, _a, error_2;
142
160
  return __generator(this, function (_b) {
143
161
  switch (_b.label) {
144
162
  case 0:
@@ -172,8 +190,8 @@ function App(_a) {
172
190
  }
173
191
  return [3 /*break*/, 6];
174
192
  case 5:
175
- error_1 = _b.sent();
176
- console.error(error_1);
193
+ error_2 = _b.sent();
194
+ console.error(error_2);
177
195
  setOrganizationInfo(null);
178
196
  return [3 /*break*/, 6];
179
197
  case 6: return [2 /*return*/];
@@ -181,7 +199,7 @@ function App(_a) {
181
199
  });
182
200
  }); };
183
201
  var loadInfo = function (apiKey, domain) { return __awaiter(_this, void 0, void 0, function () {
184
- var response, error_2;
202
+ var response, error_3;
185
203
  return __generator(this, function (_a) {
186
204
  switch (_a.label) {
187
205
  case 0:
@@ -199,8 +217,8 @@ function App(_a) {
199
217
  }
200
218
  return [3 /*break*/, 3];
201
219
  case 2:
202
- error_2 = _a.sent();
203
- console.error(error_2);
220
+ error_3 = _a.sent();
221
+ console.error(error_3);
204
222
  setForm(null);
205
223
  return [3 /*break*/, 3];
206
224
  case 3: return [2 /*return*/];
@@ -20,7 +20,6 @@ function CheckBoxStep(_a) {
20
20
  width: widthStats.currentBreakPoint <= step.size
21
21
  ? '100%'
22
22
  : calcStepWidth(step.size, form),
23
- maxWidth: '100%',
24
23
  minHeight: step.description || step.required ? '55px' : '43px',
25
24
  } }, { children: [_jsxs("div", __assign({ className: styles.labelCheckBoxContainer }, { children: [_jsxs("div", __assign({ className: styles.checkboxLbl }, { children: [step.label, step.required ? ' *' : '', ":"] }), void 0), _jsx(Controller, { name: step.id, control: control, defaultValue: false, rules: {
26
25
  required: step.required
@@ -51,7 +51,6 @@ function ClassifierSelector(_a) {
51
51
  width: widthStats.currentBreakPoint <= step.size
52
52
  ? '100%'
53
53
  : calcStepWidth(step.size, form),
54
- maxWidth: '100%',
55
54
  minHeight: step.description || step.required ? '55px' : '43px',
56
55
  } }, { children: _jsxs(RoundedSelect, __assign({ fullWidth: true, value: value, cantEdit: postview, helperTextColor: formStyle.descriptionTextColor, errorColor: formStyle.errorColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, label: step.label ? step.label : classifier.name, required: step.required, containerMargin: "0px", height: '31px', onBlur: onBlur, handleUpdate: function (event) {
57
56
  onChange(event.target.value);
@@ -1,6 +1,6 @@
1
1
  .container {
2
2
  width: fit-content;
3
- max-width: 100%;
3
+ max-width: calc(100% - 20px);
4
4
  display: flex;
5
5
  padding: 10px;
6
6
  padding-bottom: 0px;
@@ -1,6 +1,6 @@
1
1
  .container {
2
2
  width: fit-content;
3
- max-width: 100%;
3
+ max-width: calc(100% - 20px);
4
4
  display: flex;
5
5
  padding: 10px;
6
6
  padding-bottom: 0px;
@@ -1,7 +1,7 @@
1
1
  .container,
2
2
  .textEditorContainer {
3
3
  width: fit-content;
4
- max-width: 100%;
4
+ max-width: calc(100% - 20px);
5
5
  display: flex;
6
6
  padding: 10px;
7
7
  padding-bottom: 0px;
@@ -1,6 +1,6 @@
1
1
  .container {
2
2
  width: fit-content;
3
- max-width: 100%;
3
+ max-width: calc(100% - 20px);
4
4
  display: flex;
5
5
  padding: 10px;
6
6
  padding-bottom: 0px;
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":"1.1.8-test",
4
+ "version": "1.2.0",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",