@arquimedes.co/eureka-forms 1.1.7-test → 1.1.8-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 +5 -3
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +7 -1
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +7 -2
- package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +2 -10
- package/package.json +1 -1
package/dist/App.js
CHANGED
|
@@ -121,7 +121,7 @@ function App(_a) {
|
|
|
121
121
|
}
|
|
122
122
|
}, []);
|
|
123
123
|
useEffect(function () {
|
|
124
|
-
if (organizationInfo) {
|
|
124
|
+
if (organizationInfo && form !== undefined) {
|
|
125
125
|
if (process.env.NODE_ENV === 'production' &&
|
|
126
126
|
apiKey !== 'rCgWiEfOSN1TlUmHO28Y0' &&
|
|
127
127
|
!internal &&
|
|
@@ -129,11 +129,13 @@ function App(_a) {
|
|
|
129
129
|
!preview) {
|
|
130
130
|
LogRocket.init('63mg8a/forms-uv0gd');
|
|
131
131
|
LogRocket.identify(organizationInfo.idOrganization + '/' + apiKey, {
|
|
132
|
-
|
|
132
|
+
name: organizationInfo.name +
|
|
133
|
+
'/' +
|
|
134
|
+
(form ? form === null || form === void 0 ? void 0 : form.name : '404'),
|
|
133
135
|
});
|
|
134
136
|
}
|
|
135
137
|
}
|
|
136
|
-
}, [organizationInfo]);
|
|
138
|
+
}, [organizationInfo, form]);
|
|
137
139
|
var containerRef = useRef();
|
|
138
140
|
var loadOrgInfo = function (domain) { return __awaiter(_this, void 0, void 0, function () {
|
|
139
141
|
var response, _a, error_1;
|
|
@@ -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