@flozy/editor 1.3.4 → 1.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/Editor/CommonEditor.js +5 -3
  2. package/dist/Editor/Editor.css +388 -314
  3. package/dist/Editor/Elements/Accordion/Accordion.js +31 -9
  4. package/dist/Editor/Elements/Accordion/AccordionSummary.js +17 -5
  5. package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -1
  6. package/dist/Editor/Elements/Button/EditorButton.js +8 -2
  7. package/dist/Editor/Elements/Carousel/Carousel.js +38 -18
  8. package/dist/Editor/Elements/Embed/Video.js +3 -4
  9. package/dist/Editor/Elements/Form/FieldPopup.js +20 -0
  10. package/dist/Editor/Elements/Form/Form.js +268 -0
  11. package/dist/Editor/Elements/Form/FormButton.js +21 -0
  12. package/dist/Editor/Elements/Form/FormElements/FormText.js +48 -0
  13. package/dist/Editor/Elements/Form/FormElements/index.js +5 -0
  14. package/dist/Editor/Elements/Form/FormField.js +101 -0
  15. package/dist/Editor/Elements/Form/FormPopup.js +20 -0
  16. package/dist/Editor/Elements/Grid/Grid.js +10 -3
  17. package/dist/Editor/Elements/Grid/GridButton.js +24 -5
  18. package/dist/Editor/Elements/Grid/GridItem.js +11 -4
  19. package/dist/Editor/Toolbar/Toolbar.js +6 -0
  20. package/dist/Editor/Toolbar/toolbarGroups.js +3 -0
  21. package/dist/Editor/common/StyleBuilder/buttonStyle.js +28 -2
  22. package/dist/Editor/common/StyleBuilder/fieldStyle.js +71 -0
  23. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +28 -0
  24. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +7 -1
  25. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +3 -2
  26. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +35 -0
  27. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -2
  28. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +60 -0
  29. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +46 -0
  30. package/dist/Editor/common/StyleBuilder/formStyle.js +82 -0
  31. package/dist/Editor/service/formSubmit.js +16 -0
  32. package/dist/Editor/utils/SlateUtilityFunctions.js +12 -1
  33. package/dist/Editor/utils/form.js +24 -0
  34. package/dist/Editor/utils/formfield.js +20 -0
  35. package/dist/Editor/utils/grid.js +0 -1
  36. package/package.json +1 -1
@@ -60,7 +60,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
60
60
  needDotsBG,
61
61
  footer,
62
62
  needLayout = true,
63
- CHARACTERS = []
63
+ CHARACTERS = [],
64
+ editorClass
64
65
  } = otherProps || {};
65
66
  const editor = useMemo(() => {
66
67
  if (collaborativeEditor) return collaborativeEditor;
@@ -183,7 +184,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
183
184
  const isReadOnly = readOnly === "readonly";
184
185
  const customProps = {
185
186
  ...(otherProps || {}),
186
- readOnly: isReadOnly
187
+ readOnly: isReadOnly,
188
+ page_id: id
187
189
  };
188
190
  const renderElement = useCallback(props => {
189
191
  return /*#__PURE__*/_jsx(Element, {
@@ -234,7 +236,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
234
236
  fullScreen: fullScreen,
235
237
  footer: footer || "",
236
238
  children: /*#__PURE__*/_jsx("div", {
237
- className: "editor-t-wrapper",
239
+ className: `editor-t-wrapper ${editorClass || ""}`,
238
240
  style: {
239
241
  display: "flex",
240
242
  flexDirection: "column",