@flozy/editor 3.4.6 → 3.4.8

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,
@@ -66,6 +66,7 @@ function DisplayOption({
66
66
  onSend(option.value, option);
67
67
  },
68
68
  id: "infinity-select-popover",
69
+ className: open ? "active" : "",
69
70
  children: [/*#__PURE__*/_jsxs("div", {
70
71
  className: "option-label",
71
72
  id: "infinity-select-popover",
@@ -110,7 +110,8 @@ const Styles = theme => ({
110
110
  overflow: "auto",
111
111
  // width: "240px",
112
112
  minWidth: "200px",
113
- border: "1px solid #E0E0E0"
113
+ border: "1px solid #E0E0E0",
114
+ padding: "6px"
114
115
  },
115
116
  optionWrapper: {
116
117
  position: "relative"
@@ -124,23 +125,37 @@ const Styles = theme => ({
124
125
 
125
126
  optionBtn: {
126
127
  color: theme?.palette?.editor?.textColor || "#373232",
127
- padding: "8px 12px",
128
128
  textTransform: "none",
129
129
  justifyContent: "space-between",
130
130
  width: "100%",
131
131
  fontWeight: "normal !important",
132
+ minHeight: "36px",
133
+ padding: "4px 8px",
132
134
  "& .option-label": {
133
135
  display: "flex",
134
136
  alignItems: "center",
135
137
  gap: "8px"
138
+ },
139
+ "&:hover": {
140
+ background: `${theme?.palette?.containers?.bg3 || "#E9F3FE"}`
141
+ },
142
+ "&.active": {
143
+ background: `${theme?.palette?.containers?.bg3 || "#E9F3FE"}`,
144
+ color: "#2563EB",
145
+ "& svg path": {
146
+ stroke: "#2563EB"
147
+ },
148
+ "& svg": {
149
+ color: "#2563EB !important"
150
+ }
136
151
  }
137
152
  },
138
153
  optionHeading: {
139
154
  color: theme?.palette?.editor?.textColor,
140
- padding: "14px 0px 8px 4px",
155
+ padding: "10px 0px 8px 4px",
141
156
  fontWeight: 600,
142
157
  borderBottom: "1px solid #DCE4EC",
143
- margin: "0px 8px"
158
+ margin: "0px 8px 4px 8px"
144
159
  },
145
160
  mobileAIInputWrapper: {
146
161
  position: "fixed",
@@ -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__*/_jsxs(RadioGroup, {
74
+ children: /*#__PURE__*/_jsx(RadioGroup, {
75
75
  name: "set timing",
76
76
  value: schedule,
77
77
  defaultValue: 1,
78
- children: [/*#__PURE__*/_jsx(FormControlLabel, {
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
- }), /*#__PURE__*/_jsx(FormControlLabel, {
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",
@@ -31,7 +31,6 @@ const usePopupStyles = theme => ({
31
31
  borderBottom: "1px solid #DCE4EC"
32
32
  },
33
33
  listItem: {
34
- padding: "4px",
35
34
  cursor: "pointer",
36
35
  background: "transparent",
37
36
  borderRadius: "10px",
@@ -40,10 +39,10 @@ const usePopupStyles = theme => ({
40
39
  color: theme?.palette?.editor?.textColor
41
40
  },
42
41
  "&.active": {
43
- background: "#E9F3FE"
42
+ background: `${theme?.palette?.containers?.bg3 || "#E9F3FE"}`
44
43
  },
45
44
  "&:hover": {
46
- background: "#E9F3FE"
45
+ background: `${theme?.palette?.containers?.bg3 || "#E9F3FE"}`
47
46
  },
48
47
  "&.renderComp": {
49
48
  padding: "0px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "3.4.6",
3
+ "version": "3.4.8",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"