@arquimedes.co/eureka-forms 1.1.7-test → 1.1.9
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 +40 -20
- package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +0 -1
- package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +0 -1
- package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +1 -1
- package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +1 -1
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +7 -1
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +7 -2
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +1 -1
- package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +1 -1
- package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +2 -10
- package/package.json +1 -1
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,23 +119,44 @@ function App(_a) {
|
|
|
120
119
|
setOrganizationInfo(null);
|
|
121
120
|
}
|
|
122
121
|
}, []);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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.init('63mg8a/forms-uv0gd');
|
|
140
|
+
LogRocket.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*/];
|
|
134
151
|
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
152
|
+
});
|
|
153
|
+
}); };
|
|
154
|
+
useEffect(function () {
|
|
155
|
+
loadLogRocket();
|
|
156
|
+
}, [organizationInfo, form]);
|
|
137
157
|
var containerRef = useRef();
|
|
138
158
|
var loadOrgInfo = function (domain) { return __awaiter(_this, void 0, void 0, function () {
|
|
139
|
-
var response, _a,
|
|
159
|
+
var response, _a, error_2;
|
|
140
160
|
return __generator(this, function (_b) {
|
|
141
161
|
switch (_b.label) {
|
|
142
162
|
case 0:
|
|
@@ -170,8 +190,8 @@ function App(_a) {
|
|
|
170
190
|
}
|
|
171
191
|
return [3 /*break*/, 6];
|
|
172
192
|
case 5:
|
|
173
|
-
|
|
174
|
-
console.error(
|
|
193
|
+
error_2 = _b.sent();
|
|
194
|
+
console.error(error_2);
|
|
175
195
|
setOrganizationInfo(null);
|
|
176
196
|
return [3 /*break*/, 6];
|
|
177
197
|
case 6: return [2 /*return*/];
|
|
@@ -179,7 +199,7 @@ function App(_a) {
|
|
|
179
199
|
});
|
|
180
200
|
}); };
|
|
181
201
|
var loadInfo = function (apiKey, domain) { return __awaiter(_this, void 0, void 0, function () {
|
|
182
|
-
var response,
|
|
202
|
+
var response, error_3;
|
|
183
203
|
return __generator(this, function (_a) {
|
|
184
204
|
switch (_a.label) {
|
|
185
205
|
case 0:
|
|
@@ -197,8 +217,8 @@ function App(_a) {
|
|
|
197
217
|
}
|
|
198
218
|
return [3 /*break*/, 3];
|
|
199
219
|
case 2:
|
|
200
|
-
|
|
201
|
-
console.error(
|
|
220
|
+
error_3 = _a.sent();
|
|
221
|
+
console.error(error_3);
|
|
202
222
|
setForm(null);
|
|
203
223
|
return [3 /*break*/, 3];
|
|
204
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);
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
font: inherit;
|
|
3
3
|
font-size: 1rem;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
.postview-editor {
|
|
6
|
+
cursor: default !important;
|
|
7
|
+
}
|
|
6
8
|
.EF-DraftContainer .DraftEditor-root {
|
|
7
9
|
height: unset;
|
|
8
10
|
}
|
|
@@ -33,6 +35,10 @@
|
|
|
33
35
|
background-color: transparent;
|
|
34
36
|
}
|
|
35
37
|
|
|
38
|
+
.postview-editor-toolbar {
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
36
42
|
.EF-DraftContainer .rdw-editor-main {
|
|
37
43
|
cursor: text;
|
|
38
44
|
padding-top: 12px;
|
|
@@ -39,7 +39,6 @@ function TextAreaStep(_a) {
|
|
|
39
39
|
else {
|
|
40
40
|
return {
|
|
41
41
|
border: '1px solid ' + formStyle.outlineColor,
|
|
42
|
-
pointerEvents: postview ? 'none' : 'all',
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
};
|
|
@@ -91,9 +90,15 @@ function TextAreaStep(_a) {
|
|
|
91
90
|
' RichEditor-hidePlaceholder';
|
|
92
91
|
}
|
|
93
92
|
}
|
|
93
|
+
if (postview) {
|
|
94
|
+
editorClassName += ' postview-editor';
|
|
95
|
+
}
|
|
94
96
|
return (_jsx(Editor, { editorRef: field.ref, onFocus: function () {
|
|
95
97
|
setFocus(true);
|
|
96
|
-
}, onBlur: field.onBlur, stripPastedStyles: true, editorState: field.value, onEditorStateChange: field.onChange, toolbarClassName: styles.toolbar
|
|
98
|
+
}, readOnly: postview, onBlur: field.onBlur, stripPastedStyles: true, editorState: field.value, onEditorStateChange: field.onChange, toolbarClassName: styles.toolbar +
|
|
99
|
+
(postview
|
|
100
|
+
? ' postview-editor-toolbar'
|
|
101
|
+
: ''), editorClassName: editorClassName, wrapperClassName: styles.wrapper, placeholder: (_b = step.description) !== null && _b !== void 0 ? _b : '', toolbar: {
|
|
97
102
|
options: [
|
|
98
103
|
'inline',
|
|
99
104
|
'list',
|
|
@@ -16,11 +16,7 @@
|
|
|
16
16
|
white-space: nowrap;
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
text-overflow: ellipsis;
|
|
19
|
-
|
|
20
|
-
-khtml-user-select: none;
|
|
21
|
-
-webkit-user-select: none;
|
|
22
|
-
-ms-user-select: none;
|
|
23
|
-
user-select: none;
|
|
19
|
+
cursor: default;
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
.descriptionPar {
|
|
@@ -28,10 +24,6 @@
|
|
|
28
24
|
margin: 0px;
|
|
29
25
|
white-space: pre-wrap;
|
|
30
26
|
margin-top: 15px;
|
|
31
|
-
-moz-user-select: none;
|
|
32
|
-
-khtml-user-select: none;
|
|
33
|
-
-webkit-user-select: none;
|
|
34
|
-
-ms-user-select: none;
|
|
35
|
-
user-select: none;
|
|
36
27
|
margin-bottom: 10px;
|
|
28
|
+
cursor: default;
|
|
37
29
|
}
|
package/package.json
CHANGED