@ozguraltan/strapi-content-input 1.0.12 → 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.
- package/README.md +156 -49
- package/dist/admin/{AnalyticsHubPage-DNREITPq.js → AnalyticsHubPage-0p0Mx4AU.js} +60 -9
- package/dist/admin/{AnalyticsHubPage-Dj4roAe0.mjs → AnalyticsHubPage-DsrcGI_Y.mjs} +60 -9
- package/dist/admin/{ContentInputField-2hk9xG8p.js → ContentInputField-7rWLSx_7.js} +11995 -1174
- package/dist/admin/{ContentInputField-Ko-r12jl.mjs → ContentInputField-CHXrzvE-.mjs} +11813 -1010
- package/dist/admin/{SurveyWidgetEditor-B1S83aBE.mjs → SurveyWidgetEditor-BVN6X_3G.mjs} +3944 -1089
- package/dist/admin/{SurveyWidgetEditor-B3F4DE5r.js → SurveyWidgetEditor-BmgYQaQS.js} +3924 -1068
- package/dist/admin/{en-bneQpRJa.js → en-BZg845za.js} +2 -2
- package/dist/admin/{en-DnLdDKyq.mjs → en-C9LN2PJY.mjs} +2 -2
- package/dist/admin/{index-B4FpXxnK.js → index-CZAwXCFH.js} +16 -6
- package/dist/admin/{index-gn-4eO6g.mjs → index-hFIuYqu5.mjs} +16 -6
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/color-codes/ColorCodesManager.d.ts +10 -0
- package/dist/admin/src/components/common/CIAspectRatioField.d.ts +35 -0
- package/dist/admin/src/components/common/CIColorField.d.ts +13 -0
- package/dist/admin/src/components/widgets/CustomCardWidgetEditor.d.ts +83 -0
- package/dist/admin/src/components/widgets/DataTableWidgetEditor.d.ts +65 -0
- package/dist/admin/src/components/widgets/EntityCardWidgetEditor.d.ts +10 -0
- package/dist/admin/src/components/widgets/HeroSliderStage.d.ts +153 -0
- package/dist/admin/src/components/widgets/HeroSliderWidgetEditor.d.ts +21 -0
- package/dist/admin/src/components/widgets/StrapiMediaPicker.d.ts +2 -0
- package/dist/admin/src/components/widgets/SurveyWidgetEditor.d.ts +1 -1
- package/dist/admin/src/core/colorUtils.d.ts +30 -0
- package/dist/admin/src/core/sampleData.d.ts +2 -1
- package/dist/admin/src/core/useColorCodes.d.ts +43 -0
- package/dist/admin/{tr-00QqO0E7.mjs → tr-MtQFY92V.mjs} +2 -2
- package/dist/admin/{tr-O0nhB9er.js → tr-ZEmzAvKR.js} +2 -2
- package/dist/server/index.js +990 -106
- package/dist/server/index.mjs +990 -106
- package/dist/server/src/content-types/ci-color-palette/schema.json.d.ts +52 -0
- package/dist/server/src/content-types/index.d.ts +50 -0
- package/dist/server/src/controllers/ci-color.d.ts +14 -0
- package/dist/server/src/controllers/index.d.ts +12 -0
- package/dist/server/src/index.d.ts +119 -0
- package/dist/server/src/services/ci-color.d.ts +127 -0
- package/dist/server/src/services/index.d.ts +57 -0
- package/dist/server/src/utils/mailer.d.ts +1 -0
- 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
|
|
6
|
-
"content-input.menu.analytics": "Surveys &
|
|
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
|
|
4
|
-
"content-input.menu.analytics": "Surveys &
|
|
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
|
};
|
|
@@ -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
|
|
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-
|
|
159
|
+
Input: async () => Promise.resolve().then(() => require("./ContentInputField-7rWLSx_7.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: "
|
|
191
|
+
defaultMessage: "ContentInput Hub"
|
|
182
192
|
},
|
|
183
193
|
permissions: [],
|
|
184
|
-
Component: () => Promise.resolve().then(() => require("./AnalyticsHubPage-
|
|
194
|
+
Component: () => Promise.resolve().then(() => require("./AnalyticsHubPage-0p0Mx4AU.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-
|
|
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(() => ({
|
|
@@ -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
|
|
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-
|
|
156
|
+
Input: async () => import("./ContentInputField-CHXrzvE-.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: "
|
|
188
|
+
defaultMessage: "ContentInput Hub"
|
|
179
189
|
},
|
|
180
190
|
permissions: [],
|
|
181
|
-
Component: () => import("./AnalyticsHubPage-
|
|
191
|
+
Component: () => import("./AnalyticsHubPage-DsrcGI_Y.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-
|
|
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(() => ({
|
package/dist/admin/index.js
CHANGED
|
@@ -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-
|
|
3
|
+
const index = require("./index-CZAwXCFH.js");
|
|
4
4
|
require("react");
|
|
5
5
|
exports.default = index.index;
|
package/dist/admin/index.mjs
CHANGED
|
@@ -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,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 {};
|
|
@@ -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,153 @@
|
|
|
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
|
+
buttons?: Array<{
|
|
37
|
+
id: string;
|
|
38
|
+
label: Record<string, string> | string;
|
|
39
|
+
url: string;
|
|
40
|
+
target?: '_self' | '_blank';
|
|
41
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'glass';
|
|
42
|
+
bgColor?: string;
|
|
43
|
+
textColor?: string;
|
|
44
|
+
}>;
|
|
45
|
+
stats?: Array<{
|
|
46
|
+
id: string;
|
|
47
|
+
value: string;
|
|
48
|
+
label: Record<string, string> | string;
|
|
49
|
+
}>;
|
|
50
|
+
positionMode?: 'flow' | 'free';
|
|
51
|
+
box?: HeroLayerBox;
|
|
52
|
+
boxTablet?: Partial<HeroLayerBox>;
|
|
53
|
+
boxMobile?: Partial<HeroLayerBox>;
|
|
54
|
+
hiddenOn?: Array<HeroStageDevice>;
|
|
55
|
+
}
|
|
56
|
+
export interface HeroSlideItem {
|
|
57
|
+
id: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
deviceVisibility?: HeroSlideDeviceVisibility;
|
|
60
|
+
bgType: 'image' | 'gradient' | 'video';
|
|
61
|
+
bgImage?: CIMediaAsset | null;
|
|
62
|
+
bgGradient?: string;
|
|
63
|
+
bgVideoUrl?: string;
|
|
64
|
+
mobileBgType?: 'inherit' | 'image' | 'gradient' | 'video';
|
|
65
|
+
mobileBgImage?: CIMediaAsset | null;
|
|
66
|
+
mobileBgGradient?: string;
|
|
67
|
+
mobileBgVideoUrl?: string;
|
|
68
|
+
aspectRatios?: {
|
|
69
|
+
desktop?: string;
|
|
70
|
+
tablet?: string;
|
|
71
|
+
mobile?: string;
|
|
72
|
+
};
|
|
73
|
+
kenBurns?: 'none' | 'zoom-in' | 'zoom-out' | 'pan-left' | 'pan-right';
|
|
74
|
+
overlayColor?: string;
|
|
75
|
+
contentAlign?: 'left' | 'center' | 'right';
|
|
76
|
+
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
77
|
+
maxContentWidth?: string;
|
|
78
|
+
floatingImagePosition?: 'right' | 'bottom';
|
|
79
|
+
layers: HeroSliderLayer[];
|
|
80
|
+
}
|
|
81
|
+
export interface HeroSliderSettings {
|
|
82
|
+
effect: 'slide' | 'fade' | 'creative' | 'coverflow' | 'cube' | 'flip';
|
|
83
|
+
speed: number;
|
|
84
|
+
loop: boolean;
|
|
85
|
+
autoplay: boolean;
|
|
86
|
+
autoplayDelay: number;
|
|
87
|
+
parallax: boolean;
|
|
88
|
+
navigation: 'arrows' | 'pills' | 'none';
|
|
89
|
+
navButtonStyle?: 'fab' | 'outlined' | 'tonal' | 'icon' | 'square';
|
|
90
|
+
navButtonSize?: 'sm' | 'md' | 'lg';
|
|
91
|
+
navButtonColor?: string;
|
|
92
|
+
pagination: 'bullets' | 'fraction' | 'progressbar' | 'none';
|
|
93
|
+
heights: {
|
|
94
|
+
desktop: string;
|
|
95
|
+
tablet: string;
|
|
96
|
+
mobile: string;
|
|
97
|
+
};
|
|
98
|
+
aspectRatios?: {
|
|
99
|
+
desktop?: string;
|
|
100
|
+
tablet?: string;
|
|
101
|
+
mobile?: string;
|
|
102
|
+
};
|
|
103
|
+
borderRadius: string;
|
|
104
|
+
accentColor: string;
|
|
105
|
+
}
|
|
106
|
+
export interface HeroSliderData {
|
|
107
|
+
settings: HeroSliderSettings;
|
|
108
|
+
slides: HeroSlideItem[];
|
|
109
|
+
}
|
|
110
|
+
export declare const STAGE_DEVICE_WIDTHS: Record<HeroStageDevice, number>;
|
|
111
|
+
export declare function ensureHeroStageAnimations(): void;
|
|
112
|
+
export declare function isSlideVisibleOnDevice(slide: HeroSlideItem | undefined, device: HeroStageDevice): boolean;
|
|
113
|
+
export declare function defaultLayerBoxByIndex(idx: number, type: HeroSliderLayer['type']): HeroLayerBox;
|
|
114
|
+
export declare function resolveLayerBox(layer: HeroSliderLayer, device: HeroStageDevice, fallbackIdx?: number): Required<Omit<HeroLayerBox, 'textAlign'>> & {
|
|
115
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
116
|
+
};
|
|
117
|
+
export declare function resolveSlideStageHeight(settings: HeroSliderSettings, slide: HeroSlideItem | undefined, device: HeroStageDevice, stageWidth: number): {
|
|
118
|
+
heightPx: number;
|
|
119
|
+
aspectCss: string | null;
|
|
120
|
+
ratioLabel: string | null;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Reusable Virtual Viewport Frame (1280px Desktop / 768px Tablet / 390px Mobile Portrait)
|
|
124
|
+
* Used in both HeroSliderStudioModal and CustomCardStudioModal.
|
|
125
|
+
*/
|
|
126
|
+
export interface VirtualViewportFrameProps {
|
|
127
|
+
device: HeroStageDevice;
|
|
128
|
+
targetHeight?: number;
|
|
129
|
+
zoom: 'fit' | number;
|
|
130
|
+
badgeText?: string;
|
|
131
|
+
children: (ctx: {
|
|
132
|
+
effectiveScale: number;
|
|
133
|
+
stageWidth: number;
|
|
134
|
+
}) => React.ReactNode;
|
|
135
|
+
}
|
|
136
|
+
export declare const VirtualViewportFrame: React.FC<VirtualViewportFrameProps>;
|
|
137
|
+
export interface HeroSliderLiveStageProps {
|
|
138
|
+
data: HeroSliderData;
|
|
139
|
+
locale: string;
|
|
140
|
+
device: HeroStageDevice;
|
|
141
|
+
effectiveScale?: number;
|
|
142
|
+
studioMode?: boolean;
|
|
143
|
+
showGrid?: boolean;
|
|
144
|
+
autoplayOverride?: boolean;
|
|
145
|
+
replayTick?: number;
|
|
146
|
+
selectedSlideIdx?: number;
|
|
147
|
+
selectedLayerIdx?: number;
|
|
148
|
+
onSelectSlide?: (realSlideIdx: number) => void;
|
|
149
|
+
onSelectLayer?: (layerIdx: number) => void;
|
|
150
|
+
onUpdateLayerBox?: (layerIdx: number, boxPatch: Partial<HeroLayerBox>) => void;
|
|
151
|
+
onSwiperReady?: (swiper: any) => void;
|
|
152
|
+
}
|
|
153
|
+
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;
|
|
@@ -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;
|