@flozy/editor 3.4.6 → 3.4.7
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,6 +69,7 @@ const Leaf = ({
|
|
|
69
69
|
const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
70
70
|
const {
|
|
71
71
|
id,
|
|
72
|
+
agency_id,
|
|
72
73
|
site_id,
|
|
73
74
|
page_title,
|
|
74
75
|
content,
|
|
@@ -277,6 +278,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
277
278
|
...(otherProps || {}),
|
|
278
279
|
readOnly: isReadOnly,
|
|
279
280
|
page_id: id,
|
|
281
|
+
agency_id: agency_id,
|
|
280
282
|
site_id: site_id,
|
|
281
283
|
page_title: page_title,
|
|
282
284
|
isIframe: isIframe,
|
|
@@ -24,6 +24,7 @@ const Form = props => {
|
|
|
24
24
|
} = props;
|
|
25
25
|
const {
|
|
26
26
|
readOnly,
|
|
27
|
+
agency_id,
|
|
27
28
|
site_id,
|
|
28
29
|
page_id,
|
|
29
30
|
onFormSubmit = () => {},
|
|
@@ -138,10 +139,12 @@ const Form = props => {
|
|
|
138
139
|
}
|
|
139
140
|
let params = {
|
|
140
141
|
page_id: page_id,
|
|
142
|
+
agency_id: agency_id,
|
|
141
143
|
site_id: site_id,
|
|
142
144
|
form_id: `${formName}`,
|
|
143
145
|
uid: `${page_id}_${uid ? uid : formName}`,
|
|
144
146
|
response: response,
|
|
147
|
+
tagName: tagName,
|
|
145
148
|
form_data: {
|
|
146
149
|
user_email: user_email,
|
|
147
150
|
email: element?.email,
|
|
@@ -71,11 +71,11 @@ const FormWorkflow = props => {
|
|
|
71
71
|
children: [/*#__PURE__*/_jsx(Grid, {
|
|
72
72
|
item: true,
|
|
73
73
|
sx: classes.radioBtn,
|
|
74
|
-
children: /*#__PURE__*/
|
|
74
|
+
children: /*#__PURE__*/_jsx(RadioGroup, {
|
|
75
75
|
name: "set timing",
|
|
76
76
|
value: schedule,
|
|
77
77
|
defaultValue: 1,
|
|
78
|
-
children:
|
|
78
|
+
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
|
79
79
|
value: "immediately",
|
|
80
80
|
label: "Immediately",
|
|
81
81
|
onChange: () => {
|
|
@@ -84,16 +84,7 @@ const FormWorkflow = props => {
|
|
|
84
84
|
control: /*#__PURE__*/_jsx(Radio, {
|
|
85
85
|
size: "small"
|
|
86
86
|
})
|
|
87
|
-
})
|
|
88
|
-
value: "after",
|
|
89
|
-
label: "After",
|
|
90
|
-
onChange: () => {
|
|
91
|
-
setSchedule("after");
|
|
92
|
-
},
|
|
93
|
-
control: /*#__PURE__*/_jsx(Radio, {
|
|
94
|
-
size: "small"
|
|
95
|
-
})
|
|
96
|
-
})]
|
|
87
|
+
})
|
|
97
88
|
})
|
|
98
89
|
}), schedule === "after" && /*#__PURE__*/_jsx(Grid, {
|
|
99
90
|
item: true,
|
|
@@ -36,7 +36,9 @@ const UserInputs = props => {
|
|
|
36
36
|
miniEditorPlaceholder: `Hey {{ field_name }} \n\nThanks for attending the event called {{ Event Name }} at {{ Event Time }} on {{ Event Time }}.`,
|
|
37
37
|
otherProps: {
|
|
38
38
|
variableOptions: variables,
|
|
39
|
-
fontStyleOptions: ['underline']
|
|
39
|
+
fontStyleOptions: ['underline'],
|
|
40
|
+
hideLink: true,
|
|
41
|
+
hideTextColor: true
|
|
40
42
|
}
|
|
41
43
|
})
|
|
42
44
|
})
|
|
@@ -19,7 +19,9 @@ const BasicToolbar = props => {
|
|
|
19
19
|
const {
|
|
20
20
|
otherProps: {
|
|
21
21
|
variableOptions,
|
|
22
|
-
fontStyleOptions
|
|
22
|
+
fontStyleOptions,
|
|
23
|
+
hideLink = false,
|
|
24
|
+
hideTextColor = false
|
|
23
25
|
}
|
|
24
26
|
} = props;
|
|
25
27
|
|
|
@@ -57,13 +59,13 @@ const BasicToolbar = props => {
|
|
|
57
59
|
...m
|
|
58
60
|
}, `pptool_mark_${i}_${m.id}`);
|
|
59
61
|
})
|
|
60
|
-
}), /*#__PURE__*/_jsx(Grid, {
|
|
62
|
+
}), !hideLink && /*#__PURE__*/_jsx(Grid, {
|
|
61
63
|
item: true,
|
|
62
64
|
children: /*#__PURE__*/_jsx(LinkButton, {
|
|
63
65
|
active: isBlockActive(editor, link.format),
|
|
64
66
|
editor: editor
|
|
65
67
|
}, link.id)
|
|
66
|
-
}), /*#__PURE__*/_jsx(Grid, {
|
|
68
|
+
}), !hideTextColor && /*#__PURE__*/_jsx(Grid, {
|
|
67
69
|
item: true,
|
|
68
70
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
69
71
|
title: "Font Color",
|