@ozguraltan/strapi-content-input 1.0.12 → 1.0.22

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 (45) hide show
  1. package/README.md +187 -54
  2. package/dist/admin/{AnalyticsHubPage-DNREITPq.js → AnalyticsHubPage-B1_chQkG.js} +60 -9
  3. package/dist/admin/{AnalyticsHubPage-Dj4roAe0.mjs → AnalyticsHubPage-DUj3D2kA.mjs} +60 -9
  4. package/dist/admin/{ContentInputField-Ko-r12jl.mjs → ContentInputField-BrtpTCDd.mjs} +11898 -903
  5. package/dist/admin/{ContentInputField-2hk9xG8p.js → ContentInputField-CQFQxxgm.js} +11934 -921
  6. package/dist/admin/{SurveyWidgetEditor-B3F4DE5r.js → SurveyWidgetEditor-C5Uvyf_h.js} +3992 -1086
  7. package/dist/admin/{SurveyWidgetEditor-B1S83aBE.mjs → SurveyWidgetEditor-DGSwgTzR.mjs} +4012 -1107
  8. package/dist/admin/{en-bneQpRJa.js → en-BZg845za.js} +2 -2
  9. package/dist/admin/{en-DnLdDKyq.mjs → en-C9LN2PJY.mjs} +2 -2
  10. package/dist/admin/{index-gn-4eO6g.mjs → index-Dc7AFLOj.mjs} +16 -6
  11. package/dist/admin/{index-B4FpXxnK.js → index-i0NfSYto.js} +16 -6
  12. package/dist/admin/index.js +1 -1
  13. package/dist/admin/index.mjs +1 -1
  14. package/dist/admin/src/components/color-codes/ColorCodesManager.d.ts +10 -0
  15. package/dist/admin/src/components/common/CIAspectRatioField.d.ts +35 -0
  16. package/dist/admin/src/components/common/CIColorField.d.ts +13 -0
  17. package/dist/admin/src/components/common/CIImageSettingsControl.d.ts +17 -0
  18. package/dist/admin/src/components/widgets/CustomCardWidgetEditor.d.ts +84 -0
  19. package/dist/admin/src/components/widgets/DataTableWidgetEditor.d.ts +65 -0
  20. package/dist/admin/src/components/widgets/EntityCardWidgetEditor.d.ts +10 -0
  21. package/dist/admin/src/components/widgets/HeroSliderStage.d.ts +156 -0
  22. package/dist/admin/src/components/widgets/HeroSliderWidgetEditor.d.ts +21 -0
  23. package/dist/admin/src/components/widgets/StrapiMediaPicker.d.ts +2 -0
  24. package/dist/admin/src/components/widgets/SurveyWidgetEditor.d.ts +1 -1
  25. package/dist/admin/src/core/canvasClasses.d.ts +1 -0
  26. package/dist/admin/src/core/colorUtils.d.ts +30 -0
  27. package/dist/admin/src/core/sampleData.d.ts +2 -1
  28. package/dist/admin/src/core/types.d.ts +12 -0
  29. package/dist/admin/src/core/useColorCodes.d.ts +43 -0
  30. package/dist/admin/{tr-00QqO0E7.mjs → tr-MtQFY92V.mjs} +2 -2
  31. package/dist/admin/{tr-O0nhB9er.js → tr-ZEmzAvKR.js} +2 -2
  32. package/dist/server/index.js +2162 -286
  33. package/dist/server/index.mjs +2162 -286
  34. package/dist/server/src/config/index.d.ts +4 -0
  35. package/dist/server/src/content-types/ci-color-palette/schema.json.d.ts +52 -0
  36. package/dist/server/src/content-types/index.d.ts +50 -0
  37. package/dist/server/src/controllers/ci-color.d.ts +14 -0
  38. package/dist/server/src/controllers/ci-image.d.ts +11 -2
  39. package/dist/server/src/controllers/index.d.ts +13 -0
  40. package/dist/server/src/index.d.ts +124 -0
  41. package/dist/server/src/services/ci-color.d.ts +127 -0
  42. package/dist/server/src/services/index.d.ts +57 -0
  43. package/dist/server/src/utils/image-variants.d.ts +74 -0
  44. package/dist/server/src/utils/mailer.d.ts +1 -0
  45. package/package.json +3 -2
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const en = {
4
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 15 built-in widgets",
6
- "content-input.menu.analytics": "Surveys & Forms",
5
+ "content-input.plugin.description": "Visual page and content builder with rows, 12-column responsive blocks, Color Codes theme tokens, and 18 built-in widgets",
6
+ "content-input.menu.analytics": "Surveys, Forms & Colors",
7
7
  "content-input.options.advanced.requiredField": "Required field",
8
8
  "content-input.options.advanced.requiredField.description": "You will not be able to create an entry if this field is empty"
9
9
  };
@@ -1,7 +1,7 @@
1
1
  const en = {
2
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 15 built-in widgets",
4
- "content-input.menu.analytics": "Surveys & Forms",
3
+ "content-input.plugin.description": "Visual page and content builder with rows, 12-column responsive blocks, Color Codes theme tokens, and 18 built-in widgets",
4
+ "content-input.menu.analytics": "Surveys, Forms & Colors",
5
5
  "content-input.options.advanced.requiredField": "Required field",
6
6
  "content-input.options.advanced.requiredField.description": "You will not be able to create an entry if this field is empty"
7
7
  };
@@ -93,7 +93,17 @@ const ICON_PATHS = {
93
93
  bar_chart: "M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z",
94
94
  insights: "M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2z",
95
95
  star: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",
96
- call_split: "M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4h-6zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3L10 4z"
96
+ call_split: "M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4h-6zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3L10 4z",
97
+ palette: "M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z",
98
+ table_chart: "M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z",
99
+ style: "M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6zM7.88 8.75c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-2 11c0 1.1.9 2 2 2h1.45l-3.45-8.34v6.34z",
100
+ slideshow: "M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z",
101
+ auto_awesome: "M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z",
102
+ chevron_left: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z",
103
+ straighten: "M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z",
104
+ lock: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",
105
+ lock_open: "M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z",
106
+ bolt: "M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z"
97
107
  };
98
108
  const MaterialIcon = ({
99
109
  name,
@@ -139,11 +149,11 @@ const index = {
139
149
  },
140
150
  intlDescription: {
141
151
  id: `${PLUGIN_ID}.plugin.description`,
142
- defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 15 built-in widgets"
152
+ defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, Color Codes theme tokens, and 18 built-in widgets"
143
153
  },
144
154
  icon: PluginIcon,
145
155
  components: {
146
- Input: async () => import("./ContentInputField-Ko-r12jl.mjs").then((mod) => ({
156
+ Input: async () => import("./ContentInputField-BrtpTCDd.mjs").then((mod) => ({
147
157
  default: mod.ContentInputField
148
158
  }))
149
159
  },
@@ -175,10 +185,10 @@ const index = {
175
185
  icon: AnalyticsMenuIcon,
176
186
  intlLabel: {
177
187
  id: `${PLUGIN_ID}.menu.analytics`,
178
- defaultMessage: "Surveys & Forms"
188
+ defaultMessage: "ContentInput Hub"
179
189
  },
180
190
  permissions: [],
181
- Component: () => import("./AnalyticsHubPage-Dj4roAe0.mjs").then((mod) => ({
191
+ Component: () => import("./AnalyticsHubPage-DUj3D2kA.mjs").then((mod) => ({
182
192
  default: mod.AnalyticsHubPage
183
193
  })),
184
194
  position: 7
@@ -193,7 +203,7 @@ const index = {
193
203
  async registerTrads({ locales }) {
194
204
  const importedTrads = await Promise.all(
195
205
  locales.map((locale) => {
196
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-DnLdDKyq.mjs"), "./translations/tr.json": () => import("./tr-00QqO0E7.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => ({
206
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-C9LN2PJY.mjs"), "./translations/tr.json": () => import("./tr-MtQFY92V.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => ({
197
207
  data,
198
208
  locale
199
209
  })).catch(() => ({
@@ -96,7 +96,17 @@ const ICON_PATHS = {
96
96
  bar_chart: "M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z",
97
97
  insights: "M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2z",
98
98
  star: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",
99
- call_split: "M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4h-6zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3L10 4z"
99
+ call_split: "M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4h-6zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3L10 4z",
100
+ palette: "M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z",
101
+ table_chart: "M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z",
102
+ style: "M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6zM7.88 8.75c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-2 11c0 1.1.9 2 2 2h1.45l-3.45-8.34v6.34z",
103
+ slideshow: "M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z",
104
+ auto_awesome: "M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z",
105
+ chevron_left: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z",
106
+ straighten: "M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z",
107
+ lock: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",
108
+ lock_open: "M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z",
109
+ bolt: "M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z"
100
110
  };
101
111
  const MaterialIcon = ({
102
112
  name,
@@ -142,11 +152,11 @@ const index = {
142
152
  },
143
153
  intlDescription: {
144
154
  id: `${PLUGIN_ID}.plugin.description`,
145
- defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 15 built-in widgets"
155
+ defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, Color Codes theme tokens, and 18 built-in widgets"
146
156
  },
147
157
  icon: PluginIcon,
148
158
  components: {
149
- Input: async () => Promise.resolve().then(() => require("./ContentInputField-2hk9xG8p.js")).then((mod) => ({
159
+ Input: async () => Promise.resolve().then(() => require("./ContentInputField-CQFQxxgm.js")).then((mod) => ({
150
160
  default: mod.ContentInputField
151
161
  }))
152
162
  },
@@ -178,10 +188,10 @@ const index = {
178
188
  icon: AnalyticsMenuIcon,
179
189
  intlLabel: {
180
190
  id: `${PLUGIN_ID}.menu.analytics`,
181
- defaultMessage: "Surveys & Forms"
191
+ defaultMessage: "ContentInput Hub"
182
192
  },
183
193
  permissions: [],
184
- Component: () => Promise.resolve().then(() => require("./AnalyticsHubPage-DNREITPq.js")).then((mod) => ({
194
+ Component: () => Promise.resolve().then(() => require("./AnalyticsHubPage-B1_chQkG.js")).then((mod) => ({
185
195
  default: mod.AnalyticsHubPage
186
196
  })),
187
197
  position: 7
@@ -196,7 +206,7 @@ const index = {
196
206
  async registerTrads({ locales }) {
197
207
  const importedTrads = await Promise.all(
198
208
  locales.map((locale) => {
199
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-bneQpRJa.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-O0nhB9er.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => ({
209
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-BZg845za.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-ZEmzAvKR.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => ({
200
210
  data,
201
211
  locale
202
212
  })).catch(() => ({
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("./index-B4FpXxnK.js");
3
+ const index = require("./index-i0NfSYto.js");
4
4
  require("react");
5
5
  exports.default = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "./index-gn-4eO6g.mjs";
1
+ import { i } from "./index-Dc7AFLOj.mjs";
2
2
  import "react";
3
3
  export {
4
4
  i as default
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface ColorCodesManagerProps {
3
+ locale?: string;
4
+ }
5
+ export declare const ColorCodesManager: React.FC<ColorCodesManagerProps>;
6
+ export declare const ColorCodesModal: React.FC<{
7
+ open: boolean;
8
+ onClose: () => void;
9
+ locale?: string;
10
+ }>;
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ export interface ParsedAspectRatio {
3
+ css: string;
4
+ key: string;
5
+ ratio: number;
6
+ w: number;
7
+ h: number;
8
+ }
9
+ export interface AspectRatioPresetOption {
10
+ value: string;
11
+ labelTr: string;
12
+ labelEn: string;
13
+ }
14
+ export interface AspectRatioPresetGroup {
15
+ id: string;
16
+ groupTr: string;
17
+ groupEn: string;
18
+ options: AspectRatioPresetOption[];
19
+ }
20
+ export declare const ASPECT_RATIO_GROUPS: AspectRatioPresetGroup[];
21
+ /**
22
+ * Parses preset or user-entered aspect ratio strings/numbers such as:
23
+ * '16/9', '16:9', '1920x680', '1920 / 680', '2.35:1', '4/5', '0.8', 1.7777
24
+ */
25
+ export declare function parseAspectRatio(raw?: string | number | null): ParsedAspectRatio | null;
26
+ export interface CIAspectRatioFieldProps {
27
+ label?: string;
28
+ value?: string;
29
+ onChange: (nextValue: string, parsed: ParsedAspectRatio | null) => void;
30
+ emptyLabel?: string;
31
+ allowEmpty?: boolean;
32
+ locale?: string;
33
+ compact?: boolean;
34
+ }
35
+ export declare const CIAspectRatioField: React.FC<CIAspectRatioFieldProps>;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export interface CIColorFieldProps {
3
+ label?: string;
4
+ value?: string;
5
+ onChange: (nextColor: string) => void;
6
+ placeholder?: string;
7
+ allowClear?: boolean;
8
+ clearLabel?: string;
9
+ allowTokenBinding?: boolean;
10
+ locale?: string;
11
+ compact?: boolean;
12
+ }
13
+ export declare const CIColorField: React.FC<CIColorFieldProps>;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export interface CIImageSettingsValue {
3
+ process?: '' | 'auto' | 'fit' | 'widen' | 'none' | 'no-process' | string;
4
+ cWidth?: number;
5
+ cHeight?: number;
6
+ quality?: number;
7
+ }
8
+ export interface CIImageSettingsControlProps {
9
+ value?: CIImageSettingsValue | null;
10
+ onChange: (next: CIImageSettingsValue) => void;
11
+ locale?: string;
12
+ label?: string;
13
+ defaultWidth?: number;
14
+ defaultHeight?: number;
15
+ compact?: boolean;
16
+ }
17
+ export declare const CIImageSettingsControl: React.FC<CIImageSettingsControlProps>;
@@ -0,0 +1,84 @@
1
+ import { default as React } from 'react';
2
+ import { CIWidgetNode, CIMediaAsset } from '../../core/types';
3
+ export type CustomCardArchetype = 'feature' | 'pricing' | 'testimonial' | 'profile' | 'stat' | 'overlay_story';
4
+ export interface CustomCardItem {
5
+ id: string;
6
+ highlighted?: boolean;
7
+ ribbon?: Record<string, string> | string;
8
+ icon?: string;
9
+ image?: CIMediaAsset | null;
10
+ eyebrow?: Record<string, string> | string;
11
+ title: Record<string, string> | string;
12
+ subtitle?: Record<string, string> | string;
13
+ description?: Record<string, string> | string;
14
+ price?: string;
15
+ period?: Record<string, string> | string;
16
+ statValue?: string;
17
+ statTrend?: string;
18
+ rating?: number;
19
+ features?: Array<Record<string, string> | string>;
20
+ authorName?: string;
21
+ authorRole?: Record<string, string> | string;
22
+ authorAvatar?: CIMediaAsset | null;
23
+ buttonText?: Record<string, string> | string;
24
+ buttonUrl?: string;
25
+ buttonTarget?: '_self' | '_blank';
26
+ accentOverride?: string;
27
+ }
28
+ export interface CustomCardDesign {
29
+ variant: 'elevated' | 'outlined' | 'glass' | 'gradient' | 'flat';
30
+ rounded: '0' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
31
+ elevation: number;
32
+ hoverEffect: 'lift' | 'glow' | 'border-accent' | 'zoom' | 'none';
33
+ align: 'left' | 'center';
34
+ bgColor: string;
35
+ textColor: string;
36
+ accentColor: string;
37
+ borderColor: string;
38
+ imageHeight: string;
39
+ imageSettings?: Record<string, any>;
40
+ heightMode?: 'equal' | 'fixed' | 'auto';
41
+ cardHeight?: string;
42
+ }
43
+ export interface CustomCardSwiperSettings {
44
+ slidesPerView: number[];
45
+ spaceBetween: number;
46
+ loop: boolean;
47
+ autoplay: boolean;
48
+ autoplayDelay: number;
49
+ navigation: boolean;
50
+ navButtonStyle?: 'fab' | 'outlined' | 'tonal' | 'icon' | 'square';
51
+ navButtonSize?: 'sm' | 'md' | 'lg';
52
+ navButtonColor?: string;
53
+ pagination: boolean;
54
+ effect: 'slide' | 'coverflow';
55
+ }
56
+ export interface CustomCardData {
57
+ sectionTitle?: Record<string, string> | string;
58
+ sectionSubtitle?: Record<string, string> | string;
59
+ archetype: CustomCardArchetype;
60
+ displayMode: 'swiper' | 'grid' | 'single';
61
+ design: CustomCardDesign;
62
+ swiperSettings: CustomCardSwiperSettings;
63
+ gridCols: number[];
64
+ gridGap: number;
65
+ cards: CustomCardItem[];
66
+ }
67
+ export declare function createDefaultCustomCardData(archetype?: CustomCardArchetype): CustomCardData;
68
+ export declare function normalizeCustomCardData(raw: any): CustomCardData;
69
+ export interface CustomCardWidgetEditorProps {
70
+ widget: CIWidgetNode;
71
+ onChange: (patch: {
72
+ data?: any;
73
+ options?: Record<string, any>;
74
+ }) => void;
75
+ }
76
+ export declare const CustomCardWidgetEditor: React.FC<CustomCardWidgetEditorProps>;
77
+ interface CustomCardStudioModalProps {
78
+ data: CustomCardData;
79
+ uiLocale: 'tr' | 'en';
80
+ onChange: (next: CustomCardData) => void;
81
+ onClose: () => void;
82
+ }
83
+ export declare const CustomCardStudioModal: React.FC<CustomCardStudioModalProps>;
84
+ export {};
@@ -0,0 +1,65 @@
1
+ import { default as React } from 'react';
2
+ import { CIWidgetNode } from '../../core/types';
3
+ export type DataTableColumnType = 'text' | 'number' | 'currency' | 'progress' | 'badge' | 'boolean' | 'image' | 'date' | 'link';
4
+ export interface DataTableColumn {
5
+ key: string;
6
+ labels: Record<string, string>;
7
+ type: DataTableColumnType;
8
+ align?: 'left' | 'center' | 'right';
9
+ width?: string;
10
+ sortable?: boolean;
11
+ filterable?: boolean;
12
+ currencySymbol?: string;
13
+ summary?: 'none' | 'sum' | 'avg' | 'count';
14
+ badgeColors?: Record<string, string>;
15
+ }
16
+ export interface DataTableSettings {
17
+ hideToolbar?: boolean;
18
+ searchable: boolean;
19
+ quickFilterKey: string;
20
+ paginated: boolean;
21
+ pageSize: number;
22
+ striped: boolean;
23
+ hoverable: boolean;
24
+ bordered: boolean;
25
+ density: 'comfortable' | 'compact';
26
+ stickyHeader: boolean;
27
+ verticalScroll: boolean;
28
+ maxHeight: string;
29
+ horizontalScroll: boolean;
30
+ minTableWidth: string;
31
+ stickyFirstColumn?: boolean;
32
+ headerBgColor?: string;
33
+ headerTextColor?: string;
34
+ exportCsv: boolean;
35
+ accentColor: string;
36
+ }
37
+ export interface DataTableData {
38
+ title?: Record<string, string> | string;
39
+ subtitle?: Record<string, string> | string;
40
+ sourceMode: 'manual' | 'strapi_collection';
41
+ collectionUid?: string;
42
+ collectionLimit?: number;
43
+ collectionSort?: string;
44
+ columns: DataTableColumn[];
45
+ rows: Array<Record<string, any>>;
46
+ settings: DataTableSettings;
47
+ }
48
+ export declare function createDefaultDataTableData(): DataTableData;
49
+ export declare function normalizeDataTableData(raw: any): DataTableData;
50
+ export interface DataTableWidgetEditorProps {
51
+ widget: CIWidgetNode;
52
+ onChange: (patch: {
53
+ data?: any;
54
+ options?: Record<string, any>;
55
+ }) => void;
56
+ }
57
+ export declare const DataTableWidgetEditor: React.FC<DataTableWidgetEditorProps>;
58
+ interface DataTableStudioModalProps {
59
+ data: DataTableData;
60
+ uiLocale: 'tr' | 'en';
61
+ onChange: (next: DataTableData) => void;
62
+ onClose: () => void;
63
+ }
64
+ export declare const DataTableStudioModal: React.FC<DataTableStudioModalProps>;
65
+ export {};
@@ -7,6 +7,13 @@ export interface EntityCardWidgetEditorProps {
7
7
  options?: Record<string, any>;
8
8
  }) => void;
9
9
  }
10
+ export interface CIEntityCardItem {
11
+ _id: string;
12
+ entityUid: string;
13
+ documentId: string;
14
+ entity?: any;
15
+ overrides?: Record<string, any>;
16
+ }
10
17
  export interface CIEntityCardResolved {
11
18
  entityUid: string;
12
19
  documentId: string;
@@ -36,6 +43,8 @@ export interface CIEntityCardResolved {
36
43
  accentColor: string;
37
44
  imageHeight: string;
38
45
  imageAspectRatio: string;
46
+ heightMode: 'equal' | 'fixed' | 'auto';
47
+ cardHeight: string;
39
48
  showBadge: boolean;
40
49
  showButton: boolean;
41
50
  buttonVariant: 'primary' | 'tonal' | 'outlined' | 'text';
@@ -43,4 +52,5 @@ export interface CIEntityCardResolved {
43
52
  };
44
53
  }
45
54
  export declare function resolveEntityCardPreviewData(rawData: any, rawOptions: any, locale?: string): CIEntityCardResolved;
55
+ export declare function resolveEntityCardListPreviewData(rawData: any, rawOptions: any, locale?: string): CIEntityCardResolved[];
46
56
  export declare const EntityCardWidgetEditor: React.FC<EntityCardWidgetEditorProps>;
@@ -0,0 +1,156 @@
1
+ import { default as React } from 'react';
2
+ import { CIMediaAsset } from '../../core/types';
3
+ export type HeroStageDevice = 'desktop' | 'tablet' | 'mobile';
4
+ export type HeroSlideDeviceVisibility = 'all' | 'desktop_tablet' | 'mobile_only' | 'desktop_only' | 'tablet_only';
5
+ export interface HeroLayerBox {
6
+ x?: string;
7
+ y?: string;
8
+ width?: string;
9
+ height?: string;
10
+ zIndex?: number;
11
+ textAlign?: 'left' | 'center' | 'right';
12
+ }
13
+ export interface HeroSliderLayer {
14
+ id: string;
15
+ type: 'badge' | 'heading' | 'subtitle' | 'buttons' | 'floating_image' | 'stats';
16
+ text?: Record<string, string> | string;
17
+ tag?: 'h1' | 'h2' | 'h3';
18
+ fontSize?: string;
19
+ tabletFontSize?: string;
20
+ mobileFontSize?: string;
21
+ fontWeight?: number;
22
+ color?: string;
23
+ bgColor?: string;
24
+ typoEffect?: 'none' | 'gradient_text' | 'typewriter' | 'rotating_words' | 'highlight_marker' | 'outline_stroke' | 'glow';
25
+ dynamicWords?: Record<string, string[]> | string[];
26
+ highlightWord?: string;
27
+ highlightColor?: string;
28
+ gradientFrom?: string;
29
+ gradientTo?: string;
30
+ entrance?: 'none' | 'fade-up' | 'fade-down' | 'fade-left' | 'fade-right' | 'zoom-in' | 'blur-in';
31
+ delayMs?: number;
32
+ durationMs?: number;
33
+ parallax?: number;
34
+ image?: CIMediaAsset | null;
35
+ imageWidth?: string;
36
+ imageSettings?: Record<string, any>;
37
+ buttons?: Array<{
38
+ id: string;
39
+ label: Record<string, string> | string;
40
+ url: string;
41
+ target?: '_self' | '_blank';
42
+ variant?: 'primary' | 'secondary' | 'outline' | 'glass';
43
+ bgColor?: string;
44
+ textColor?: string;
45
+ }>;
46
+ stats?: Array<{
47
+ id: string;
48
+ value: string;
49
+ label: Record<string, string> | string;
50
+ }>;
51
+ positionMode?: 'flow' | 'free';
52
+ box?: HeroLayerBox;
53
+ boxTablet?: Partial<HeroLayerBox>;
54
+ boxMobile?: Partial<HeroLayerBox>;
55
+ hiddenOn?: Array<HeroStageDevice>;
56
+ }
57
+ export interface HeroSlideItem {
58
+ id: string;
59
+ title?: string;
60
+ deviceVisibility?: HeroSlideDeviceVisibility;
61
+ bgType: 'image' | 'gradient' | 'video';
62
+ bgImage?: CIMediaAsset | null;
63
+ imageSettings?: Record<string, any>;
64
+ bgGradient?: string;
65
+ bgVideoUrl?: string;
66
+ mobileBgType?: 'inherit' | 'image' | 'gradient' | 'video';
67
+ mobileBgImage?: CIMediaAsset | null;
68
+ mobileImageSettings?: Record<string, any>;
69
+ mobileBgGradient?: string;
70
+ mobileBgVideoUrl?: string;
71
+ aspectRatios?: {
72
+ desktop?: string;
73
+ tablet?: string;
74
+ mobile?: string;
75
+ };
76
+ kenBurns?: 'none' | 'zoom-in' | 'zoom-out' | 'pan-left' | 'pan-right';
77
+ overlayColor?: string;
78
+ contentAlign?: 'left' | 'center' | 'right';
79
+ verticalAlign?: 'top' | 'center' | 'bottom';
80
+ maxContentWidth?: string;
81
+ floatingImagePosition?: 'right' | 'bottom';
82
+ layers: HeroSliderLayer[];
83
+ }
84
+ export interface HeroSliderSettings {
85
+ effect: 'slide' | 'fade' | 'creative' | 'coverflow' | 'cube' | 'flip';
86
+ speed: number;
87
+ loop: boolean;
88
+ autoplay: boolean;
89
+ autoplayDelay: number;
90
+ parallax: boolean;
91
+ navigation: 'arrows' | 'pills' | 'none';
92
+ navButtonStyle?: 'fab' | 'outlined' | 'tonal' | 'icon' | 'square';
93
+ navButtonSize?: 'sm' | 'md' | 'lg';
94
+ navButtonColor?: string;
95
+ pagination: 'bullets' | 'fraction' | 'progressbar' | 'none';
96
+ heights: {
97
+ desktop: string;
98
+ tablet: string;
99
+ mobile: string;
100
+ };
101
+ aspectRatios?: {
102
+ desktop?: string;
103
+ tablet?: string;
104
+ mobile?: string;
105
+ };
106
+ borderRadius: string;
107
+ accentColor: string;
108
+ }
109
+ export interface HeroSliderData {
110
+ settings: HeroSliderSettings;
111
+ slides: HeroSlideItem[];
112
+ }
113
+ export declare const STAGE_DEVICE_WIDTHS: Record<HeroStageDevice, number>;
114
+ export declare function ensureHeroStageAnimations(): void;
115
+ export declare function isSlideVisibleOnDevice(slide: HeroSlideItem | undefined, device: HeroStageDevice): boolean;
116
+ export declare function defaultLayerBoxByIndex(idx: number, type: HeroSliderLayer['type']): HeroLayerBox;
117
+ export declare function resolveLayerBox(layer: HeroSliderLayer, device: HeroStageDevice, fallbackIdx?: number): Required<Omit<HeroLayerBox, 'textAlign'>> & {
118
+ textAlign?: 'left' | 'center' | 'right';
119
+ };
120
+ export declare function resolveSlideStageHeight(settings: HeroSliderSettings, slide: HeroSlideItem | undefined, device: HeroStageDevice, stageWidth: number): {
121
+ heightPx: number;
122
+ aspectCss: string | null;
123
+ ratioLabel: string | null;
124
+ };
125
+ /**
126
+ * Reusable Virtual Viewport Frame (1280px Desktop / 768px Tablet / 390px Mobile Portrait)
127
+ * Used in both HeroSliderStudioModal and CustomCardStudioModal.
128
+ */
129
+ export interface VirtualViewportFrameProps {
130
+ device: HeroStageDevice;
131
+ targetHeight?: number;
132
+ zoom: 'fit' | number;
133
+ badgeText?: string;
134
+ children: (ctx: {
135
+ effectiveScale: number;
136
+ stageWidth: number;
137
+ }) => React.ReactNode;
138
+ }
139
+ export declare const VirtualViewportFrame: React.FC<VirtualViewportFrameProps>;
140
+ export interface HeroSliderLiveStageProps {
141
+ data: HeroSliderData;
142
+ locale: string;
143
+ device: HeroStageDevice;
144
+ effectiveScale?: number;
145
+ studioMode?: boolean;
146
+ showGrid?: boolean;
147
+ autoplayOverride?: boolean;
148
+ replayTick?: number;
149
+ selectedSlideIdx?: number;
150
+ selectedLayerIdx?: number;
151
+ onSelectSlide?: (realSlideIdx: number) => void;
152
+ onSelectLayer?: (layerIdx: number) => void;
153
+ onUpdateLayerBox?: (layerIdx: number, boxPatch: Partial<HeroLayerBox>) => void;
154
+ onSwiperReady?: (swiper: any) => void;
155
+ }
156
+ export declare const HeroSliderLiveStage: React.FC<HeroSliderLiveStageProps>;
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { CIWidgetNode } from '../../core/types';
3
+ import { HeroLayerBox, HeroSlideDeviceVisibility, HeroSlideItem, HeroSliderData, HeroSliderLayer, HeroSliderSettings, HeroStageDevice } from './HeroSliderStage';
4
+ export type { HeroStageDevice, HeroSlideDeviceVisibility, HeroLayerBox, HeroSliderLayer, HeroSlideItem, HeroSliderSettings, HeroSliderData, };
5
+ export declare function createDefaultHeroSliderData(): HeroSliderData;
6
+ export declare function normalizeHeroSliderData(raw: any): HeroSliderData;
7
+ export interface HeroSliderWidgetEditorProps {
8
+ widget: CIWidgetNode;
9
+ onChange: (patch: {
10
+ data?: any;
11
+ options?: Record<string, any>;
12
+ }) => void;
13
+ }
14
+ export declare const HeroSliderWidgetEditor: React.FC<HeroSliderWidgetEditorProps>;
15
+ interface HeroSliderStudioModalProps {
16
+ data: HeroSliderData;
17
+ uiLocale: 'tr' | 'en';
18
+ onChange: (next: HeroSliderData) => void;
19
+ onClose: () => void;
20
+ }
21
+ export declare const HeroSliderStudioModal: React.FC<HeroSliderStudioModalProps>;
@@ -6,6 +6,8 @@ export interface StrapiMediaPickerProps {
6
6
  label?: string;
7
7
  multiple?: boolean;
8
8
  onSelectMultiple?: (assets: CIMediaAsset[]) => void;
9
+ allowedTypes?: Array<'images' | 'files' | 'videos' | 'audios'>;
9
10
  }
11
+ export declare function resolveAdminMediaUrl(rawUrl?: string | null): string;
10
12
  export declare function mapStrapiFileToAsset(file: any, cacheBust?: boolean): CIMediaAsset;
11
13
  export declare const StrapiMediaPicker: React.FC<StrapiMediaPickerProps>;
@@ -78,7 +78,7 @@ export interface CISurveyRecord {
78
78
  responseCount?: number;
79
79
  npsScore?: number | null;
80
80
  }
81
- export declare function createBlankSurveyDraft(): CISurveyRecord;
81
+ export declare function createBlankSurveyDraft(locale?: string): CISurveyRecord;
82
82
  export interface SurveyStudioModalProps {
83
83
  open: boolean;
84
84
  initialSurvey: CISurveyRecord;
@@ -14,6 +14,7 @@ export declare function extractResponsiveProp(lp: Record<string, any> | undefine
14
14
  export declare function setResponsiveProp(lp: Record<string, any> | undefined, baseKey: string, bpIndex: number, value: string | null, camelKey?: string): Record<string, any>;
15
15
  export declare function rowCanvasClasses(row?: Partial<CIRowNode>): string[];
16
16
  export declare function blockCanvasClasses(block?: Partial<CIBlockNode>): string[];
17
+ export declare function resolveCanvasMediaUrl(assetOrUrl: any, imageSettings?: Record<string, any> | null): string;
17
18
  export declare function nodeCanvasStyles(node: {
18
19
  styleOptions?: Record<string, any>;
19
20
  bgImage?: any;
@@ -0,0 +1,30 @@
1
+ export interface RgbaColor {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ a: number;
6
+ }
7
+ export interface HsvaColor {
8
+ h: number;
9
+ s: number;
10
+ v: number;
11
+ a: number;
12
+ }
13
+ export interface ParsedTokenRef {
14
+ varName: string;
15
+ tokenKey: string;
16
+ variant: 'main' | 'soft' | 'contrast';
17
+ fallback: string;
18
+ }
19
+ export declare function clampNum(n: number, min: number, max: number): number;
20
+ export declare function extractColorTokenRef(raw?: string | null): ParsedTokenRef | null;
21
+ export declare function buildColorTokenVar(tokenKey: string, fallback: string, variant?: 'main' | 'soft' | 'contrast'): string;
22
+ export declare function resolveColorString(raw?: string | null, cssVariables?: Record<string, string>): string;
23
+ export declare function parseAnyColorToRgba(raw?: string | null, cssVariables?: Record<string, string>, fallback?: RgbaColor): RgbaColor;
24
+ export declare function rgbaToHexString(rgba: RgbaColor, includeAlphaWhenOpaque?: boolean): string;
25
+ export declare function rgbaToRgbCssString(rgba: RgbaColor): string;
26
+ export declare function rgbaToHsva({ r, g, b, a }: RgbaColor): HsvaColor;
27
+ export declare function hsvaToRgba({ h, s, v, a }: HsvaColor): RgbaColor;
28
+ export declare function getRelativeLuminance({ r, g, b }: RgbaColor): number;
29
+ export declare function getContrastRatio(fg: RgbaColor, bg: RgbaColor): number;
30
+ export declare function getAutoContrastHex(bg: RgbaColor): string;