@flozy/editor 3.3.9 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,8 @@ const Form = props => {
26
26
  readOnly,
27
27
  site_id,
28
28
  page_id,
29
- onFormSubmit = () => {}
29
+ onFormSubmit = () => {},
30
+ tagName = "Pages"
30
31
  } = customProps;
31
32
  const {
32
33
  buttonProps,
@@ -78,8 +79,6 @@ const Form = props => {
78
79
  if (event) {
79
80
  event.preventDefault();
80
81
  }
81
- let headerHtml = document?.getElementsByClassName('app-logo');
82
- headerHtml = headerHtml[0]?.outerHTML;
83
82
  if ((readOnly || test) && formEle && formEle?.current) {
84
83
  const formData = new FormData(formEle?.current);
85
84
  setLoading(true);
@@ -99,7 +98,7 @@ const Form = props => {
99
98
  [isMetaKey?.element_metadatakey]: pair[1],
100
99
  type: "board",
101
100
  metadatamapping: element?.metadatamapping,
102
- headerHtml: headerHtml
101
+ tagName: tagName
103
102
  });
104
103
  }
105
104
  const fieldData = getFieldProps("name", pair[0]);
@@ -132,8 +131,7 @@ const Form = props => {
132
131
  fieldKey: pair[0],
133
132
  [pair[0]]: pair[1],
134
133
  placeholder: placeholder,
135
- form_name: formName,
136
- headerHtml: headerHtml
134
+ form_name: formName
137
135
  });
138
136
  }
139
137
  let params = {
@@ -387,13 +387,7 @@ export const getBlock = props => {
387
387
  ...props
388
388
  });
389
389
  case "video":
390
- return /*#__PURE__*/_jsx(Video, {
391
- ...props
392
- });
393
390
  case "embed":
394
- return /*#__PURE__*/_jsx(Video, {
395
- ...props
396
- });
397
391
  case "calendly":
398
392
  return /*#__PURE__*/_jsx(Video, {
399
393
  ...props
@@ -483,10 +477,8 @@ export const getBlock = props => {
483
477
  return /*#__PURE__*/_jsx(InlineIcon, {
484
478
  ...props
485
479
  });
486
- case "embed":
487
- return /*#__PURE__*/_jsx(EmbedLink, {
488
- ...props
489
- });
480
+ // case "embed":
481
+ // return <EmbedLink {...props} />;
490
482
  case "docs":
491
483
  case "pdf":
492
484
  case "xls":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "3.3.9",
3
+ "version": "3.4.1",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"