@ozguraltan/strapi-content-input 1.0.11 → 1.0.21

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 (57) hide show
  1. package/README.md +373 -62
  2. package/dist/admin/AnalyticsHubPage-0p0Mx4AU.js +688 -0
  3. package/dist/admin/AnalyticsHubPage-DsrcGI_Y.mjs +688 -0
  4. package/dist/admin/ContentInputField-7rWLSx_7.js +31864 -0
  5. package/dist/admin/ContentInputField-CHXrzvE-.mjs +31844 -0
  6. package/dist/admin/SurveyWidgetEditor-BVN6X_3G.mjs +10811 -0
  7. package/dist/admin/SurveyWidgetEditor-BmgYQaQS.js +10813 -0
  8. package/dist/admin/{en-DF-a59T_.js → en-BZg845za.js} +2 -1
  9. package/dist/admin/{en-D7v9nv9J.mjs → en-C9LN2PJY.mjs} +2 -1
  10. package/dist/admin/{index-DKVaYg3t.js → index-CZAwXCFH.js} +53 -4
  11. package/dist/admin/{index-DGBgjAUa.mjs → index-hFIuYqu5.mjs} +53 -4
  12. package/dist/admin/index.js +1 -1
  13. package/dist/admin/index.mjs +1 -1
  14. package/dist/admin/src/components/analytics/SurveyAnalyticsView.d.ts +6 -0
  15. package/dist/admin/src/components/color-codes/ColorCodesManager.d.ts +10 -0
  16. package/dist/admin/src/components/common/CIAspectRatioField.d.ts +35 -0
  17. package/dist/admin/src/components/common/CIColorField.d.ts +13 -0
  18. package/dist/admin/src/components/widgets/ContentFormWidgetEditor.d.ts +81 -0
  19. package/dist/admin/src/components/widgets/CustomCardWidgetEditor.d.ts +83 -0
  20. package/dist/admin/src/components/widgets/DataTableWidgetEditor.d.ts +65 -0
  21. package/dist/admin/src/components/widgets/EntityCardWidgetEditor.d.ts +56 -0
  22. package/dist/admin/src/components/widgets/HeroSliderStage.d.ts +153 -0
  23. package/dist/admin/src/components/widgets/HeroSliderWidgetEditor.d.ts +21 -0
  24. package/dist/admin/src/components/widgets/StrapiMediaPicker.d.ts +2 -0
  25. package/dist/admin/src/components/widgets/SurveyWidgetEditor.d.ts +91 -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/useColorCodes.d.ts +43 -0
  29. package/dist/admin/src/core/useStrapiLocales.d.ts +13 -0
  30. package/dist/admin/src/pages/AnalyticsHubPage.d.ts +3 -0
  31. package/dist/admin/{tr-ByHzf64V.mjs → tr-MtQFY92V.mjs} +2 -1
  32. package/dist/admin/{tr-SNvSmKZQ.js → tr-ZEmzAvKR.js} +2 -1
  33. package/dist/server/index.js +5043 -57
  34. package/dist/server/index.mjs +5043 -57
  35. package/dist/server/src/bootstrap.d.ts +1 -1
  36. package/dist/server/src/content-types/ci-color-palette/schema.json.d.ts +52 -0
  37. package/dist/server/src/content-types/ci-form/schema.json.d.ts +77 -0
  38. package/dist/server/src/content-types/ci-form-submission/schema.json.d.ts +54 -0
  39. package/dist/server/src/content-types/ci-survey/schema.json.d.ts +111 -0
  40. package/dist/server/src/content-types/ci-survey-response/schema.json.d.ts +81 -0
  41. package/dist/server/src/content-types/index.d.ts +365 -0
  42. package/dist/server/src/controllers/ci-color.d.ts +14 -0
  43. package/dist/server/src/controllers/ci-form.d.ts +17 -0
  44. package/dist/server/src/controllers/ci-survey.d.ts +18 -0
  45. package/dist/server/src/controllers/index.d.ts +43 -0
  46. package/dist/server/src/index.d.ts +850 -1
  47. package/dist/server/src/services/ci-color.d.ts +127 -0
  48. package/dist/server/src/services/ci-form.d.ts +250 -0
  49. package/dist/server/src/services/ci-survey.d.ts +296 -0
  50. package/dist/server/src/services/index.d.ts +441 -0
  51. package/dist/server/src/utils/formValidator.d.ts +19 -0
  52. package/dist/server/src/utils/mailer.d.ts +42 -0
  53. package/dist/server/src/utils/surveyEngine.d.ts +252 -0
  54. package/dist/server/src/utils/surveySeedData.d.ts +4 -0
  55. package/package.json +3 -2
  56. package/dist/admin/ContentInputField-BGJmgYGQ.js +0 -19919
  57. package/dist/admin/ContentInputField-BLiKYZ7b.mjs +0 -19916
@@ -2,7 +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 13 widgets",
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",
6
7
  "content-input.options.advanced.requiredField": "Required field",
7
8
  "content-input.options.advanced.requiredField.description": "You will not be able to create an entry if this field is empty"
8
9
  };
@@ -1,6 +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 13 widgets",
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",
4
5
  "content-input.options.advanced.requiredField": "Required field",
5
6
  "content-input.options.advanced.requiredField.description": "You will not be able to create an entry if this field is empty"
6
7
  };
@@ -79,7 +79,34 @@ const ICON_PATHS = {
79
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
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
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"
82
+ download: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",
83
+ recent_actors: "M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.24 12.25 8 12.25 5.75 11.24 5.75 10 6.76 7.75 8 7.75zM12.5 17h-9v-.75c0-1.5 3-2.25 4.5-2.25s4.5.75 4.5 2.25V17z",
84
+ credit_card: "M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z",
85
+ mail: "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-2zm0 4-8 5-8-5V6l8 5 8-5v2z",
86
+ verified_user: "M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z",
87
+ refresh: "M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",
88
+ save: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z",
89
+ inbox: "M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z",
90
+ view_carousel: "M2 7h4v10H2V7zm5 12h10V5H7v14zM18 7h4v10h-4V7z",
91
+ grid_view: "M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z",
92
+ zoom_in: "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 14zm.5-7H9v2H7v1h2v2h1v-2h2V9h-2V7z",
93
+ play_circle_filled: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z",
94
+ more_horiz: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
95
+ poll: "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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z",
96
+ bar_chart: "M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z",
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
+ 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",
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"
83
110
  };
84
111
  const MaterialIcon = ({
85
112
  name,
@@ -108,6 +135,11 @@ const PluginIcon = () => React__default.default.createElement(MaterialIcon, {
108
135
  size: 18,
109
136
  color: "#2669a0"
110
137
  });
138
+ const AnalyticsMenuIcon = () => React__default.default.createElement(MaterialIcon, {
139
+ name: "bar_chart",
140
+ size: 18,
141
+ color: "currentColor"
142
+ });
111
143
  const index = {
112
144
  register(app) {
113
145
  app.customFields.register({
@@ -120,11 +152,11 @@ const index = {
120
152
  },
121
153
  intlDescription: {
122
154
  id: `${PLUGIN_ID}.plugin.description`,
123
- defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets"
155
+ defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, Color Codes theme tokens, and 18 built-in widgets"
124
156
  },
125
157
  icon: PluginIcon,
126
158
  components: {
127
- Input: async () => Promise.resolve().then(() => require("./ContentInputField-BGJmgYGQ.js")).then((mod) => ({
159
+ Input: async () => Promise.resolve().then(() => require("./ContentInputField-7rWLSx_7.js")).then((mod) => ({
128
160
  default: mod.ContentInputField
129
161
  }))
130
162
  },
@@ -151,13 +183,30 @@ const index = {
151
183
  ]
152
184
  }
153
185
  });
186
+ app.addMenuLink({
187
+ to: `plugins/${PLUGIN_ID}`,
188
+ icon: AnalyticsMenuIcon,
189
+ intlLabel: {
190
+ id: `${PLUGIN_ID}.menu.analytics`,
191
+ defaultMessage: "ContentInput Hub"
192
+ },
193
+ permissions: [],
194
+ Component: () => Promise.resolve().then(() => require("./AnalyticsHubPage-0p0Mx4AU.js")).then((mod) => ({
195
+ default: mod.AnalyticsHubPage
196
+ })),
197
+ position: 7
198
+ });
199
+ app.registerPlugin({
200
+ id: PLUGIN_ID,
201
+ name: PLUGIN_ID
202
+ });
154
203
  },
155
204
  bootstrap() {
156
205
  },
157
206
  async registerTrads({ locales }) {
158
207
  const importedTrads = await Promise.all(
159
208
  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 }) => ({
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 }) => ({
161
210
  data,
162
211
  locale
163
212
  })).catch(() => ({
@@ -76,7 +76,34 @@ const ICON_PATHS = {
76
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
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
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"
79
+ download: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",
80
+ recent_actors: "M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.24 12.25 8 12.25 5.75 11.24 5.75 10 6.76 7.75 8 7.75zM12.5 17h-9v-.75c0-1.5 3-2.25 4.5-2.25s4.5.75 4.5 2.25V17z",
81
+ credit_card: "M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z",
82
+ mail: "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-2zm0 4-8 5-8-5V6l8 5 8-5v2z",
83
+ verified_user: "M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z",
84
+ refresh: "M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",
85
+ save: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z",
86
+ inbox: "M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z",
87
+ view_carousel: "M2 7h4v10H2V7zm5 12h10V5H7v14zM18 7h4v10h-4V7z",
88
+ grid_view: "M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z",
89
+ zoom_in: "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 14zm.5-7H9v2H7v1h2v2h1v-2h2V9h-2V7z",
90
+ play_circle_filled: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z",
91
+ more_horiz: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
92
+ poll: "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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z",
93
+ bar_chart: "M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z",
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
+ 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",
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"
80
107
  };
81
108
  const MaterialIcon = ({
82
109
  name,
@@ -105,6 +132,11 @@ const PluginIcon = () => React.createElement(MaterialIcon, {
105
132
  size: 18,
106
133
  color: "#2669a0"
107
134
  });
135
+ const AnalyticsMenuIcon = () => React.createElement(MaterialIcon, {
136
+ name: "bar_chart",
137
+ size: 18,
138
+ color: "currentColor"
139
+ });
108
140
  const index = {
109
141
  register(app) {
110
142
  app.customFields.register({
@@ -117,11 +149,11 @@ const index = {
117
149
  },
118
150
  intlDescription: {
119
151
  id: `${PLUGIN_ID}.plugin.description`,
120
- defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets"
152
+ defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, Color Codes theme tokens, and 18 built-in widgets"
121
153
  },
122
154
  icon: PluginIcon,
123
155
  components: {
124
- Input: async () => import("./ContentInputField-BLiKYZ7b.mjs").then((mod) => ({
156
+ Input: async () => import("./ContentInputField-CHXrzvE-.mjs").then((mod) => ({
125
157
  default: mod.ContentInputField
126
158
  }))
127
159
  },
@@ -148,13 +180,30 @@ const index = {
148
180
  ]
149
181
  }
150
182
  });
183
+ app.addMenuLink({
184
+ to: `plugins/${PLUGIN_ID}`,
185
+ icon: AnalyticsMenuIcon,
186
+ intlLabel: {
187
+ id: `${PLUGIN_ID}.menu.analytics`,
188
+ defaultMessage: "ContentInput Hub"
189
+ },
190
+ permissions: [],
191
+ Component: () => import("./AnalyticsHubPage-DsrcGI_Y.mjs").then((mod) => ({
192
+ default: mod.AnalyticsHubPage
193
+ })),
194
+ position: 7
195
+ });
196
+ app.registerPlugin({
197
+ id: PLUGIN_ID,
198
+ name: PLUGIN_ID
199
+ });
151
200
  },
152
201
  bootstrap() {
153
202
  },
154
203
  async registerTrads({ locales }) {
155
204
  const importedTrads = await Promise.all(
156
205
  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 }) => ({
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 }) => ({
158
207
  data,
159
208
  locale
160
209
  })).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-DKVaYg3t.js");
3
+ const index = require("./index-CZAwXCFH.js");
4
4
  require("react");
5
5
  exports.default = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "./index-DGBgjAUa.mjs";
1
+ import { i } from "./index-hFIuYqu5.mjs";
2
2
  import "react";
3
3
  export {
4
4
  i as default
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export interface SurveyAnalyticsViewProps {
3
+ surveySlugOrId: string;
4
+ uiLocale?: string;
5
+ }
6
+ export declare const SurveyAnalyticsView: React.FC<SurveyAnalyticsViewProps>;
@@ -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,81 @@
1
+ import { default as React } from 'react';
2
+ import { CIWidgetNode } from '../../core/types';
3
+ export interface ContentFormWidgetEditorProps {
4
+ widget: CIWidgetNode;
5
+ onChange: (patch: {
6
+ data?: any;
7
+ options?: Record<string, any>;
8
+ }) => void;
9
+ }
10
+ export interface CIDynamicFieldDef {
11
+ name: string;
12
+ field_type: 'input' | 'emailInput' | 'telInput' | 'numeric' | 'textArea' | 'selectGroup' | 'radioGroup' | 'checkboxGroup' | 'switchBox' | string;
13
+ alias?: Record<string, string | undefined> | string;
14
+ placeholder?: Record<string, string | undefined> | string;
15
+ hint?: Record<string, string | undefined> | string;
16
+ validation?: string;
17
+ options?: {
18
+ rows?: number;
19
+ inline?: boolean;
20
+ optionList?: Record<string, string[] | undefined> | string[];
21
+ [key: string]: any;
22
+ };
23
+ }
24
+ export interface CIDynamicFormBlock {
25
+ _uId: string;
26
+ cols: number[];
27
+ fields: string[];
28
+ }
29
+ export interface CIDynamicFormRow {
30
+ _uId: string;
31
+ blocks: CIDynamicFormBlock[];
32
+ }
33
+ export interface CIDynamicFormRecord {
34
+ id?: number | string;
35
+ _id?: string;
36
+ documentId?: string;
37
+ title: string;
38
+ slug: string;
39
+ to?: string;
40
+ subject?: string;
41
+ buttonLabel?: Record<string, string | undefined> | string;
42
+ successMessage?: Record<string, string | undefined> | string;
43
+ redirect?: string;
44
+ hideLabels?: boolean;
45
+ useRecaptcha?: boolean;
46
+ recaptchaSiteKey?: string;
47
+ recaptchaSecretKey?: string;
48
+ mailConfig?: {
49
+ driver?: 'env' | 'mailtrap' | 'mailgun' | 'smtp' | 'strapi' | string;
50
+ from?: string;
51
+ fromName?: string;
52
+ apiKey?: string;
53
+ inboxId?: string;
54
+ domain?: string;
55
+ apiHost?: string;
56
+ host?: string;
57
+ port?: number | string;
58
+ username?: string;
59
+ password?: string;
60
+ encryption?: string;
61
+ };
62
+ fields: Record<string, CIDynamicFieldDef>;
63
+ form: CIDynamicFormRow[];
64
+ envStatus?: {
65
+ hasEnvRecaptchaPublicKey?: boolean;
66
+ hasEnvRecaptchaPrivateKey?: boolean;
67
+ envMailDriver?: string;
68
+ hasMailtrapToken?: boolean;
69
+ hasMailgunSecret?: boolean;
70
+ hasSmtpHost?: boolean;
71
+ };
72
+ }
73
+ export interface QuickFieldPreset {
74
+ baseKey: string;
75
+ field_type: string;
76
+ trLabel: string;
77
+ enLabel: string;
78
+ validation: string;
79
+ options?: Record<string, any>;
80
+ }
81
+ export declare const ContentFormWidgetEditor: React.FC<ContentFormWidgetEditorProps>;
@@ -0,0 +1,83 @@
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
+ heightMode?: 'equal' | 'fixed' | 'auto';
40
+ cardHeight?: string;
41
+ }
42
+ export interface CustomCardSwiperSettings {
43
+ slidesPerView: number[];
44
+ spaceBetween: number;
45
+ loop: boolean;
46
+ autoplay: boolean;
47
+ autoplayDelay: number;
48
+ navigation: boolean;
49
+ navButtonStyle?: 'fab' | 'outlined' | 'tonal' | 'icon' | 'square';
50
+ navButtonSize?: 'sm' | 'md' | 'lg';
51
+ navButtonColor?: string;
52
+ pagination: boolean;
53
+ effect: 'slide' | 'coverflow';
54
+ }
55
+ export interface CustomCardData {
56
+ sectionTitle?: Record<string, string> | string;
57
+ sectionSubtitle?: Record<string, string> | string;
58
+ archetype: CustomCardArchetype;
59
+ displayMode: 'swiper' | 'grid' | 'single';
60
+ design: CustomCardDesign;
61
+ swiperSettings: CustomCardSwiperSettings;
62
+ gridCols: number[];
63
+ gridGap: number;
64
+ cards: CustomCardItem[];
65
+ }
66
+ export declare function createDefaultCustomCardData(archetype?: CustomCardArchetype): CustomCardData;
67
+ export declare function normalizeCustomCardData(raw: any): CustomCardData;
68
+ export interface CustomCardWidgetEditorProps {
69
+ widget: CIWidgetNode;
70
+ onChange: (patch: {
71
+ data?: any;
72
+ options?: Record<string, any>;
73
+ }) => void;
74
+ }
75
+ export declare const CustomCardWidgetEditor: React.FC<CustomCardWidgetEditorProps>;
76
+ interface CustomCardStudioModalProps {
77
+ data: CustomCardData;
78
+ uiLocale: 'tr' | 'en';
79
+ onChange: (next: CustomCardData) => void;
80
+ onClose: () => void;
81
+ }
82
+ export declare const CustomCardStudioModal: React.FC<CustomCardStudioModalProps>;
83
+ 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 {};
@@ -0,0 +1,56 @@
1
+ import { default as React } from 'react';
2
+ import { CIWidgetNode } from '../../core/types';
3
+ export interface EntityCardWidgetEditorProps {
4
+ widget: CIWidgetNode;
5
+ onChange: (patch: {
6
+ data?: any;
7
+ options?: Record<string, any>;
8
+ }) => void;
9
+ }
10
+ export interface CIEntityCardItem {
11
+ _id: string;
12
+ entityUid: string;
13
+ documentId: string;
14
+ entity?: any;
15
+ overrides?: Record<string, any>;
16
+ }
17
+ export interface CIEntityCardResolved {
18
+ entityUid: string;
19
+ documentId: string;
20
+ imageUrl: string;
21
+ imageAlt: string;
22
+ title: string;
23
+ subtitle: string;
24
+ description: string;
25
+ badgeText: string;
26
+ buttonText: string;
27
+ url: string;
28
+ target: '_self' | '_blank';
29
+ isOverridden: {
30
+ image: boolean;
31
+ title: boolean;
32
+ subtitle: boolean;
33
+ description: boolean;
34
+ url: boolean;
35
+ };
36
+ cardProps: {
37
+ layout: 'vertical' | 'horizontal' | 'overlay';
38
+ variant: 'elevated' | 'outlined' | 'flat' | 'tonal';
39
+ elevation: number;
40
+ rounded: string;
41
+ color: string;
42
+ textColor: string;
43
+ accentColor: string;
44
+ imageHeight: string;
45
+ imageAspectRatio: string;
46
+ heightMode: 'equal' | 'fixed' | 'auto';
47
+ cardHeight: string;
48
+ showBadge: boolean;
49
+ showButton: boolean;
50
+ buttonVariant: 'primary' | 'tonal' | 'outlined' | 'text';
51
+ hoverEffect: boolean;
52
+ };
53
+ }
54
+ export declare function resolveEntityCardPreviewData(rawData: any, rawOptions: any, locale?: string): CIEntityCardResolved;
55
+ export declare function resolveEntityCardListPreviewData(rawData: any, rawOptions: any, locale?: string): CIEntityCardResolved[];
56
+ export declare const EntityCardWidgetEditor: React.FC<EntityCardWidgetEditorProps>;