@ozguraltan/strapi-content-input 0.0.0-stage → 1.0.6

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.
Files changed (62) hide show
  1. package/README.md +353 -2
  2. package/dist/admin/ContentInputField-BM2WS_KZ.js +18227 -0
  3. package/dist/admin/ContentInputField-D6rlm6Te.mjs +18224 -0
  4. package/dist/admin/en-D7v9nv9J.mjs +9 -0
  5. package/dist/admin/en-DF-a59T_.js +9 -0
  6. package/dist/admin/index-BA2XyNVO.mjs +172 -0
  7. package/dist/admin/index-IuCWhUHI.js +173 -0
  8. package/dist/admin/index.js +5 -0
  9. package/dist/admin/index.mjs +5 -0
  10. package/dist/admin/src/components/ContentInputField.d.ts +23 -0
  11. package/dist/admin/src/components/editor/CIContextMenu.d.ts +2 -0
  12. package/dist/admin/src/components/editor/CanvasNodes.d.ts +21 -0
  13. package/dist/admin/src/components/editor/VECanvas.d.ts +2 -0
  14. package/dist/admin/src/components/editor/VEInsertPoint.d.ts +7 -0
  15. package/dist/admin/src/components/editor/VELeftPanel.d.ts +5 -0
  16. package/dist/admin/src/components/editor/VENodeToolbar.d.ts +13 -0
  17. package/dist/admin/src/components/editor/VEPreviewFrame.d.ts +7 -0
  18. package/dist/admin/src/components/editor/VETopBar.d.ts +5 -0
  19. package/dist/admin/src/components/editor/VisualEditorModal.d.ts +6 -0
  20. package/dist/admin/src/components/editor/inspector/StyleControls.d.ts +49 -0
  21. package/dist/admin/src/components/editor/inspector/UnitInput.d.ts +18 -0
  22. package/dist/admin/src/components/editor/inspector/VEInspector.d.ts +5 -0
  23. package/dist/admin/src/components/icons/MaterialIcon.d.ts +9 -0
  24. package/dist/admin/src/components/widgets/MenuWidgetEditor.d.ts +30 -0
  25. package/dist/admin/src/components/widgets/RichHtmlEditor.d.ts +8 -0
  26. package/dist/admin/src/components/widgets/StrapiMediaPicker.d.ts +9 -0
  27. package/dist/admin/src/components/widgets/TabAccordionEditor.d.ts +26 -0
  28. package/dist/admin/src/components/widgets/WidgetEditor.d.ts +12 -0
  29. package/dist/admin/src/components/widgets/WidgetPreview.d.ts +9 -0
  30. package/dist/admin/src/core/EditorContext.d.ts +144 -0
  31. package/dist/admin/src/core/canvasClasses.d.ts +21 -0
  32. package/dist/admin/src/core/clipboard.d.ts +9 -0
  33. package/dist/admin/src/core/devices.d.ts +24 -0
  34. package/dist/admin/src/core/history.d.ts +13 -0
  35. package/dist/admin/src/core/i18n.d.ts +5 -0
  36. package/dist/admin/src/core/presets.d.ts +43 -0
  37. package/dist/admin/src/core/sampleData.d.ts +2 -0
  38. package/dist/admin/src/core/treeOps.d.ts +10 -0
  39. package/dist/admin/src/core/types.d.ts +79 -0
  40. package/dist/admin/src/index.d.ts +14 -0
  41. package/dist/admin/src/pluginId.d.ts +1 -0
  42. package/dist/admin/src/styles/ciCanvasStyles.d.ts +2 -0
  43. package/dist/admin/tr-ByHzf64V.mjs +9 -0
  44. package/dist/admin/tr-SNvSmKZQ.js +9 -0
  45. package/dist/server/index.js +702 -0
  46. package/dist/server/index.mjs +702 -0
  47. package/dist/server/src/bootstrap.d.ts +5 -0
  48. package/dist/server/src/config/index.d.ts +7 -0
  49. package/dist/server/src/content-types/ci-menu/schema.json.d.ts +46 -0
  50. package/dist/server/src/content-types/ci-template/schema.json.d.ts +42 -0
  51. package/dist/server/src/content-types/index.d.ts +88 -0
  52. package/dist/server/src/controllers/ci-menu.d.ts +12 -0
  53. package/dist/server/src/controllers/ci-template.d.ts +9 -0
  54. package/dist/server/src/controllers/index.d.ts +20 -0
  55. package/dist/server/src/destroy.d.ts +5 -0
  56. package/dist/server/src/index.d.ts +187 -0
  57. package/dist/server/src/register.d.ts +5 -0
  58. package/dist/server/src/routes/index.d.ts +14 -0
  59. package/dist/server/src/services/ci-menu.d.ts +36 -0
  60. package/dist/server/src/services/ci-template.d.ts +16 -0
  61. package/dist/server/src/services/index.d.ts +51 -0
  62. package/package.json +96 -4
@@ -0,0 +1,9 @@
1
+ const en = {
2
+ "content-input.plugin.name": "Content Input (Visual Page Builder)",
3
+ "content-input.plugin.description": "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets",
4
+ "content-input.options.advanced.requiredField": "Required field",
5
+ "content-input.options.advanced.requiredField.description": "You will not be able to create an entry if this field is empty"
6
+ };
7
+ export {
8
+ en as default
9
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const en = {
4
+ "content-input.plugin.name": "Content Input (Visual Page Builder)",
5
+ "content-input.plugin.description": "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets",
6
+ "content-input.options.advanced.requiredField": "Required field",
7
+ "content-input.options.advanced.requiredField.description": "You will not be able to create an entry if this field is empty"
8
+ };
9
+ exports.default = en;
@@ -0,0 +1,172 @@
1
+ import React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
4
+ const v = glob[path];
5
+ if (v) {
6
+ return typeof v === "function" ? v() : Promise.resolve(v);
7
+ }
8
+ return new Promise((_, reject) => {
9
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
10
+ reject.bind(
11
+ null,
12
+ new Error(
13
+ "Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
14
+ )
15
+ )
16
+ );
17
+ });
18
+ };
19
+ const PLUGIN_ID = "content-input";
20
+ const ICON_PATHS = {
21
+ dashboard_customize: "M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm15 0h-2v3h-3v2h3v3h2v-3h3v-2h-3v-3z",
22
+ account_tree: "M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z",
23
+ view_quilt: "M3 5v14h5V5H3zm7 0v6h11V5H10zm0 14h5v-6h-5v6zm7 0h4v-6h-4v6z",
24
+ open_in_full: "M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10L21 11z",
25
+ drag_indicator: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
26
+ tune: "M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z",
27
+ content_copy: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",
28
+ content_paste: "M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z",
29
+ delete_outline: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z",
30
+ delete: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",
31
+ close: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z",
32
+ add: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",
33
+ add_circle_outline: "M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",
34
+ undo: "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z",
35
+ redo: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z",
36
+ smartphone: "M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z",
37
+ tablet: "M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2zm-2 14H5V6h14v12z",
38
+ laptop: "M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z",
39
+ desktop_windows: "M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z",
40
+ desktop: "M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z",
41
+ tv: "M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z",
42
+ visibility: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",
43
+ visibility_off: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27z",
44
+ edit: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",
45
+ article: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z",
46
+ collections: "M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4 2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z",
47
+ smart_display: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM9.5 16.5v-9l7 4.5-7 4.5z",
48
+ tab: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z",
49
+ view_agenda: "M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0-10H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",
50
+ dynamic_form: "M17 20v-9h-2V4h7l-2 5h2l-5 11zm-2-7v7H4c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2h11zm-8.75 2.75h-1.5v1.5h1.5v-1.5zM13 4v7H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h9zM6.25 6.75h-1.5v1.5h1.5v-1.5z",
51
+ web: "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z",
52
+ featured_video: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z",
53
+ menu: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",
54
+ title: "M5 4v3h5.5v12h3V7H19V4H5z",
55
+ smart_button: "M22 9v6c0 1.1-.9 2-2 2h-1v-2h1V9H4v6h6v2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-7.5 10 1.09-2.41L18 15.5l-2.41-1.09L14.5 12l-1.09 2.41L11 15.5l2.41 1.09L14.5 19zm2.5-5 .62-1.38L19 12l-1.38-.62L17 10l-.62 1.38L15 12l1.38.62L17 14z",
56
+ image: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z",
57
+ space_bar: "M18 9v4H6V9H4v6h16V9h-2z",
58
+ layers: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z",
59
+ widgets: "M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z",
60
+ bookmark_border: "M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z",
61
+ bookmark: "M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z",
62
+ view_stream: "M3 17v-6c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v6c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2zM3 7V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v2c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2z",
63
+ view_column: "M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z",
64
+ chevron_right: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z",
65
+ expand_more: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z",
66
+ arrow_upward: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",
67
+ arrow_downward: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",
68
+ search: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",
69
+ check: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",
70
+ code: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z",
71
+ format_align_left: "M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z",
72
+ format_align_center: "M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z",
73
+ format_align_right: "M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z",
74
+ format_align_justify: "M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z",
75
+ link: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z",
76
+ link_off: "M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16v-2zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z",
77
+ upload_file: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11 8 15.01z",
78
+ description: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",
79
+ download: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
80
+ };
81
+ const MaterialIcon = ({
82
+ name,
83
+ size = 18,
84
+ color = "currentColor",
85
+ style,
86
+ className
87
+ }) => {
88
+ const d = ICON_PATHS[name] || ICON_PATHS.widgets;
89
+ return /* @__PURE__ */ jsx(
90
+ "svg",
91
+ {
92
+ width: size,
93
+ height: size,
94
+ viewBox: "0 0 24 24",
95
+ fill: color,
96
+ className,
97
+ style: { display: "inline-block", verticalAlign: "middle", flexShrink: 0, ...style },
98
+ "aria-hidden": "true",
99
+ children: /* @__PURE__ */ jsx("path", { d })
100
+ }
101
+ );
102
+ };
103
+ const PluginIcon = () => React.createElement(MaterialIcon, {
104
+ name: "dashboard_customize",
105
+ size: 18,
106
+ color: "#2669a0"
107
+ });
108
+ const index = {
109
+ register(app) {
110
+ app.customFields.register({
111
+ name: "content-input",
112
+ pluginId: PLUGIN_ID,
113
+ type: "json",
114
+ intlLabel: {
115
+ id: `${PLUGIN_ID}.plugin.name`,
116
+ defaultMessage: "Content Input (Visual Page Builder)"
117
+ },
118
+ intlDescription: {
119
+ id: `${PLUGIN_ID}.plugin.description`,
120
+ defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets"
121
+ },
122
+ icon: PluginIcon,
123
+ components: {
124
+ Input: async () => import("./ContentInputField-D6rlm6Te.mjs").then((mod) => ({
125
+ default: mod.ContentInputField
126
+ }))
127
+ },
128
+ options: {
129
+ base: [],
130
+ advanced: [
131
+ {
132
+ sectionTitle: null,
133
+ items: [
134
+ {
135
+ name: "required",
136
+ type: "checkbox",
137
+ intlLabel: {
138
+ id: `${PLUGIN_ID}.options.advanced.requiredField`,
139
+ defaultMessage: "Required field"
140
+ },
141
+ description: {
142
+ id: `${PLUGIN_ID}.options.advanced.requiredField.description`,
143
+ defaultMessage: "You will not be able to create an entry if this field is empty"
144
+ }
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ }
150
+ });
151
+ },
152
+ bootstrap() {
153
+ },
154
+ async registerTrads({ locales }) {
155
+ const importedTrads = await Promise.all(
156
+ locales.map((locale) => {
157
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-D7v9nv9J.mjs"), "./translations/tr.json": () => import("./tr-ByHzf64V.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => ({
158
+ data,
159
+ locale
160
+ })).catch(() => ({
161
+ data: {},
162
+ locale
163
+ }));
164
+ })
165
+ );
166
+ return importedTrads;
167
+ }
168
+ };
169
+ export {
170
+ MaterialIcon as M,
171
+ index as i
172
+ };
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ const React = require("react");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
5
+ const React__default = /* @__PURE__ */ _interopDefault(React);
6
+ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
7
+ const v = glob[path];
8
+ if (v) {
9
+ return typeof v === "function" ? v() : Promise.resolve(v);
10
+ }
11
+ return new Promise((_, reject) => {
12
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
13
+ reject.bind(
14
+ null,
15
+ new Error(
16
+ "Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
17
+ )
18
+ )
19
+ );
20
+ });
21
+ };
22
+ const PLUGIN_ID = "content-input";
23
+ const ICON_PATHS = {
24
+ dashboard_customize: "M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm15 0h-2v3h-3v2h3v3h2v-3h3v-2h-3v-3z",
25
+ account_tree: "M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z",
26
+ view_quilt: "M3 5v14h5V5H3zm7 0v6h11V5H10zm0 14h5v-6h-5v6zm7 0h4v-6h-4v6z",
27
+ open_in_full: "M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10L21 11z",
28
+ drag_indicator: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
29
+ tune: "M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z",
30
+ content_copy: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",
31
+ content_paste: "M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z",
32
+ delete_outline: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z",
33
+ delete: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",
34
+ close: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z",
35
+ add: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",
36
+ add_circle_outline: "M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",
37
+ undo: "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z",
38
+ redo: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z",
39
+ smartphone: "M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z",
40
+ tablet: "M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2zm-2 14H5V6h14v12z",
41
+ laptop: "M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z",
42
+ desktop_windows: "M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z",
43
+ desktop: "M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z",
44
+ tv: "M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z",
45
+ visibility: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",
46
+ visibility_off: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27z",
47
+ edit: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",
48
+ article: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z",
49
+ collections: "M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4 2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z",
50
+ smart_display: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM9.5 16.5v-9l7 4.5-7 4.5z",
51
+ tab: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z",
52
+ view_agenda: "M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0-10H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",
53
+ dynamic_form: "M17 20v-9h-2V4h7l-2 5h2l-5 11zm-2-7v7H4c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2h11zm-8.75 2.75h-1.5v1.5h1.5v-1.5zM13 4v7H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h9zM6.25 6.75h-1.5v1.5h1.5v-1.5z",
54
+ web: "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z",
55
+ featured_video: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z",
56
+ menu: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",
57
+ title: "M5 4v3h5.5v12h3V7H19V4H5z",
58
+ smart_button: "M22 9v6c0 1.1-.9 2-2 2h-1v-2h1V9H4v6h6v2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-7.5 10 1.09-2.41L18 15.5l-2.41-1.09L14.5 12l-1.09 2.41L11 15.5l2.41 1.09L14.5 19zm2.5-5 .62-1.38L19 12l-1.38-.62L17 10l-.62 1.38L15 12l1.38.62L17 14z",
59
+ image: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z",
60
+ space_bar: "M18 9v4H6V9H4v6h16V9h-2z",
61
+ layers: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z",
62
+ widgets: "M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z",
63
+ bookmark_border: "M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z",
64
+ bookmark: "M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z",
65
+ view_stream: "M3 17v-6c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v6c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2zM3 7V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v2c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2z",
66
+ view_column: "M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z",
67
+ chevron_right: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z",
68
+ expand_more: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z",
69
+ arrow_upward: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",
70
+ arrow_downward: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",
71
+ search: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",
72
+ check: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",
73
+ code: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z",
74
+ format_align_left: "M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z",
75
+ format_align_center: "M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z",
76
+ format_align_right: "M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z",
77
+ format_align_justify: "M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z",
78
+ link: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z",
79
+ link_off: "M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16v-2zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z",
80
+ upload_file: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11 8 15.01z",
81
+ description: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",
82
+ download: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
83
+ };
84
+ const MaterialIcon = ({
85
+ name,
86
+ size = 18,
87
+ color = "currentColor",
88
+ style,
89
+ className
90
+ }) => {
91
+ const d = ICON_PATHS[name] || ICON_PATHS.widgets;
92
+ return /* @__PURE__ */ jsxRuntime.jsx(
93
+ "svg",
94
+ {
95
+ width: size,
96
+ height: size,
97
+ viewBox: "0 0 24 24",
98
+ fill: color,
99
+ className,
100
+ style: { display: "inline-block", verticalAlign: "middle", flexShrink: 0, ...style },
101
+ "aria-hidden": "true",
102
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d })
103
+ }
104
+ );
105
+ };
106
+ const PluginIcon = () => React__default.default.createElement(MaterialIcon, {
107
+ name: "dashboard_customize",
108
+ size: 18,
109
+ color: "#2669a0"
110
+ });
111
+ const index = {
112
+ register(app) {
113
+ app.customFields.register({
114
+ name: "content-input",
115
+ pluginId: PLUGIN_ID,
116
+ type: "json",
117
+ intlLabel: {
118
+ id: `${PLUGIN_ID}.plugin.name`,
119
+ defaultMessage: "Content Input (Visual Page Builder)"
120
+ },
121
+ intlDescription: {
122
+ id: `${PLUGIN_ID}.plugin.description`,
123
+ defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets"
124
+ },
125
+ icon: PluginIcon,
126
+ components: {
127
+ Input: async () => Promise.resolve().then(() => require("./ContentInputField-BM2WS_KZ.js")).then((mod) => ({
128
+ default: mod.ContentInputField
129
+ }))
130
+ },
131
+ options: {
132
+ base: [],
133
+ advanced: [
134
+ {
135
+ sectionTitle: null,
136
+ items: [
137
+ {
138
+ name: "required",
139
+ type: "checkbox",
140
+ intlLabel: {
141
+ id: `${PLUGIN_ID}.options.advanced.requiredField`,
142
+ defaultMessage: "Required field"
143
+ },
144
+ description: {
145
+ id: `${PLUGIN_ID}.options.advanced.requiredField.description`,
146
+ defaultMessage: "You will not be able to create an entry if this field is empty"
147
+ }
148
+ }
149
+ ]
150
+ }
151
+ ]
152
+ }
153
+ });
154
+ },
155
+ bootstrap() {
156
+ },
157
+ async registerTrads({ locales }) {
158
+ const importedTrads = await Promise.all(
159
+ locales.map((locale) => {
160
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-DF-a59T_.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-SNvSmKZQ.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => ({
161
+ data,
162
+ locale
163
+ })).catch(() => ({
164
+ data: {},
165
+ locale
166
+ }));
167
+ })
168
+ );
169
+ return importedTrads;
170
+ }
171
+ };
172
+ exports.MaterialIcon = MaterialIcon;
173
+ exports.index = index;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index = require("./index-IuCWhUHI.js");
4
+ require("react");
5
+ exports.default = index.index;
@@ -0,0 +1,5 @@
1
+ import { i } from "./index-BA2XyNVO.mjs";
2
+ import "react";
3
+ export {
4
+ i as default
5
+ };
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ export interface ContentInputFieldProps {
3
+ name: string;
4
+ value?: any;
5
+ onChange: (event: {
6
+ target: {
7
+ name: string;
8
+ value: any;
9
+ type: string;
10
+ };
11
+ }) => void;
12
+ attribute?: Record<string, any>;
13
+ intlLabel?: {
14
+ id?: string;
15
+ defaultMessage?: string;
16
+ };
17
+ label?: string;
18
+ disabled?: boolean;
19
+ error?: string;
20
+ required?: boolean;
21
+ }
22
+ export declare const ContentInputField: React.FC<ContentInputFieldProps>;
23
+ export default ContentInputField;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const CIContextMenu: React.FC;
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { CIRowNode, CIBlockNode, CIWidgetNode } from '../../core/types';
3
+ export interface CIWidgetComponentProps {
4
+ widget: CIWidgetNode;
5
+ rowIndex: number;
6
+ blockIndex: number;
7
+ widgetIndex: number;
8
+ }
9
+ export declare const CIWidgetComponent: React.FC<CIWidgetComponentProps>;
10
+ export interface CIBlockComponentProps {
11
+ block: CIBlockNode;
12
+ rowIndex: number;
13
+ blockIndex: number;
14
+ rowAlign?: string | null;
15
+ }
16
+ export declare const CIBlockComponent: React.FC<CIBlockComponentProps>;
17
+ export interface CIRowComponentProps {
18
+ row: CIRowNode;
19
+ rowIndex: number;
20
+ }
21
+ export declare const CIRowComponent: React.FC<CIRowComponentProps>;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const VECanvas: React.FC;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export interface VEInsertPointProps {
3
+ mode: 'row' | 'widget';
4
+ onSelectPreset?: (cols: number[][]) => void;
5
+ onSelectWidget?: (widgetId: string) => void;
6
+ }
7
+ export declare const VEInsertPoint: React.FC<VEInsertPointProps>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export interface VELeftPanelProps {
3
+ width?: number;
4
+ }
5
+ export declare const VELeftPanel: React.FC<VELeftPanelProps>;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export interface VENodeToolbarProps {
3
+ type: 'row' | 'block' | 'widget';
4
+ label: string;
5
+ onSettings?: () => void;
6
+ onDuplicate?: () => void;
7
+ onDelete?: () => void;
8
+ onMoveUp?: () => void;
9
+ onMoveDown?: () => void;
10
+ onDragStart?: (e: React.DragEvent<HTMLDivElement>) => void;
11
+ onDragEnd?: (e: React.DragEvent<HTMLDivElement>) => void;
12
+ }
13
+ export declare const VENodeToolbar: React.FC<VENodeToolbarProps>;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { BreakpointKey } from '../../core/types';
3
+ export interface VEPreviewFrameProps {
4
+ device: BreakpointKey;
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const VEPreviewFrame: React.FC<VEPreviewFrameProps>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export interface VETopBarProps {
3
+ onClose: () => void;
4
+ }
5
+ export declare const VETopBar: React.FC<VETopBarProps>;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export interface VisualEditorModalProps {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ }
6
+ export declare const VisualEditorModal: React.FC<VisualEditorModalProps>;
@@ -0,0 +1,49 @@
1
+ import { default as React } from 'react';
2
+ import { CIMediaAsset, CIParallaxOptions } from '../../../core/types';
3
+ export interface MarginPaddingEditorProps {
4
+ label: string;
5
+ value?: string;
6
+ onChange: (val: string) => void;
7
+ }
8
+ export declare const MarginPaddingEditor: React.FC<MarginPaddingEditorProps>;
9
+ export interface BorderInputProps {
10
+ label: string;
11
+ value?: string;
12
+ onChange: (val: string) => void;
13
+ onRemove?: () => void;
14
+ }
15
+ export declare const BorderInput: React.FC<BorderInputProps>;
16
+ export interface StyleOptionsEditorProps {
17
+ styleOptions: Record<string, any>;
18
+ onChange: (next: Record<string, any>) => void;
19
+ }
20
+ export declare const StyleOptionsEditor: React.FC<StyleOptionsEditorProps>;
21
+ export interface BgOptionsEditorProps {
22
+ bgImage?: CIMediaAsset | null;
23
+ bgOptions?: Record<string, any> | null;
24
+ parallax?: boolean;
25
+ parallaxOptions?: CIParallaxOptions | null;
26
+ showParallax?: boolean;
27
+ onChange: (patch: {
28
+ bgImage?: CIMediaAsset | null;
29
+ bgOptions?: Record<string, any>;
30
+ parallax?: boolean;
31
+ parallaxOptions?: CIParallaxOptions | null;
32
+ }) => void;
33
+ }
34
+ export declare const BgOptionsEditor: React.FC<BgOptionsEditorProps>;
35
+ export interface VisibilityControlProps {
36
+ visibility?: boolean[];
37
+ extraClasses?: string[];
38
+ onChange: (patch: {
39
+ visibility?: boolean[];
40
+ extraClasses?: string[];
41
+ }) => void;
42
+ }
43
+ export declare const VisibilityControl: React.FC<VisibilityControlProps>;
44
+ export interface AlignButtonsProps {
45
+ mode: 'row' | 'block';
46
+ layoutProps?: Record<string, any>;
47
+ onChange: (nextLayoutProps: Record<string, any>) => void;
48
+ }
49
+ export declare const AlignButtons: React.FC<AlignButtonsProps>;
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export interface UnitInputProps {
3
+ value?: string | number | null;
4
+ onChange: (val: string) => void;
5
+ label?: string;
6
+ min?: number;
7
+ max?: number;
8
+ step?: number;
9
+ hideSlider?: boolean;
10
+ availableUnits?: string[];
11
+ placeholder?: string;
12
+ compact?: boolean;
13
+ }
14
+ export declare function parseUnitValue(raw: string | number | null | undefined, availableUnits?: string[]): {
15
+ num: string;
16
+ unit: string;
17
+ };
18
+ export declare const UnitInput: React.FC<UnitInputProps>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export interface VEInspectorProps {
3
+ width?: number;
4
+ }
5
+ export declare const VEInspector: React.FC<VEInspectorProps>;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ export interface MaterialIconProps {
3
+ name: string;
4
+ size?: number;
5
+ color?: string;
6
+ style?: React.CSSProperties;
7
+ className?: string;
8
+ }
9
+ export declare const MaterialIcon: React.FC<MaterialIconProps>;
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ import { CIWidgetNode } from '../../core/types';
3
+ export interface CIMenuItem {
4
+ _uId: string;
5
+ title: string;
6
+ url: string;
7
+ type?: 'entity' | 'custom';
8
+ entityUid?: string;
9
+ entityDocumentId?: string;
10
+ target?: '_self' | '_blank';
11
+ icon?: string;
12
+ children: CIMenuItem[];
13
+ }
14
+ export declare function normalizeMenuItems(rawList: any): CIMenuItem[];
15
+ export declare function extractMenuData(widgetData: any): {
16
+ menuMeta: {
17
+ id: string;
18
+ name: string;
19
+ dbId?: string | number;
20
+ };
21
+ items: CIMenuItem[];
22
+ };
23
+ export interface MenuWidgetEditorProps {
24
+ widget: CIWidgetNode;
25
+ onChange: (patch: {
26
+ data?: any;
27
+ options?: Record<string, any>;
28
+ }) => void;
29
+ }
30
+ export declare const MenuWidgetEditor: React.FC<MenuWidgetEditorProps>;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface RichHtmlEditorProps {
3
+ value: string;
4
+ onChange: (html: string) => void;
5
+ minHeight?: number;
6
+ placeholder?: string;
7
+ }
8
+ export declare const RichHtmlEditor: React.FC<RichHtmlEditorProps>;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { CIMediaAsset } from '../../core/types';
3
+ export interface StrapiMediaPickerProps {
4
+ value?: CIMediaAsset | null;
5
+ onChange: (asset: CIMediaAsset | null) => void;
6
+ label?: string;
7
+ }
8
+ export declare function mapStrapiFileToAsset(file: any): CIMediaAsset;
9
+ export declare const StrapiMediaPicker: React.FC<StrapiMediaPickerProps>;