@ozguraltan/strapi-content-input 1.0.11 → 1.0.12
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 +249 -45
- package/dist/admin/AnalyticsHubPage-DNREITPq.js +637 -0
- package/dist/admin/AnalyticsHubPage-Dj4roAe0.mjs +637 -0
- package/dist/admin/{ContentInputField-BGJmgYGQ.js → ContentInputField-2hk9xG8p.js} +5880 -4756
- package/dist/admin/{ContentInputField-BLiKYZ7b.mjs → ContentInputField-Ko-r12jl.mjs} +5743 -4618
- package/dist/admin/SurveyWidgetEditor-B1S83aBE.mjs +7956 -0
- package/dist/admin/SurveyWidgetEditor-B3F4DE5r.js +7957 -0
- package/dist/admin/{en-D7v9nv9J.mjs → en-DnLdDKyq.mjs} +2 -1
- package/dist/admin/{en-DF-a59T_.js → en-bneQpRJa.js} +2 -1
- package/dist/admin/{index-DKVaYg3t.js → index-B4FpXxnK.js} +43 -4
- package/dist/admin/{index-DGBgjAUa.mjs → index-gn-4eO6g.mjs} +43 -4
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/analytics/SurveyAnalyticsView.d.ts +6 -0
- package/dist/admin/src/components/widgets/ContentFormWidgetEditor.d.ts +81 -0
- package/dist/admin/src/components/widgets/EntityCardWidgetEditor.d.ts +46 -0
- package/dist/admin/src/components/widgets/SurveyWidgetEditor.d.ts +91 -0
- package/dist/admin/src/core/useStrapiLocales.d.ts +13 -0
- package/dist/admin/src/pages/AnalyticsHubPage.d.ts +3 -0
- package/dist/admin/{tr-ByHzf64V.mjs → tr-00QqO0E7.mjs} +2 -1
- package/dist/admin/{tr-SNvSmKZQ.js → tr-O0nhB9er.js} +2 -1
- package/dist/server/index.js +4148 -46
- package/dist/server/index.mjs +4148 -46
- package/dist/server/src/bootstrap.d.ts +1 -1
- package/dist/server/src/content-types/ci-form/schema.json.d.ts +77 -0
- package/dist/server/src/content-types/ci-form-submission/schema.json.d.ts +54 -0
- package/dist/server/src/content-types/ci-survey/schema.json.d.ts +111 -0
- package/dist/server/src/content-types/ci-survey-response/schema.json.d.ts +81 -0
- package/dist/server/src/content-types/index.d.ts +315 -0
- package/dist/server/src/controllers/ci-form.d.ts +17 -0
- package/dist/server/src/controllers/ci-survey.d.ts +18 -0
- package/dist/server/src/controllers/index.d.ts +31 -0
- package/dist/server/src/index.d.ts +731 -1
- package/dist/server/src/services/ci-form.d.ts +250 -0
- package/dist/server/src/services/ci-survey.d.ts +296 -0
- package/dist/server/src/services/index.d.ts +384 -0
- package/dist/server/src/utils/formValidator.d.ts +19 -0
- package/dist/server/src/utils/mailer.d.ts +41 -0
- package/dist/server/src/utils/surveyEngine.d.ts +252 -0
- package/dist/server/src/utils/surveySeedData.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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
|
|
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",
|
|
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
|
};
|
|
@@ -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
|
|
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",
|
|
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
|
};
|
|
@@ -79,7 +79,24 @@ 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"
|
|
83
100
|
};
|
|
84
101
|
const MaterialIcon = ({
|
|
85
102
|
name,
|
|
@@ -108,6 +125,11 @@ const PluginIcon = () => React__default.default.createElement(MaterialIcon, {
|
|
|
108
125
|
size: 18,
|
|
109
126
|
color: "#2669a0"
|
|
110
127
|
});
|
|
128
|
+
const AnalyticsMenuIcon = () => React__default.default.createElement(MaterialIcon, {
|
|
129
|
+
name: "bar_chart",
|
|
130
|
+
size: 18,
|
|
131
|
+
color: "currentColor"
|
|
132
|
+
});
|
|
111
133
|
const index = {
|
|
112
134
|
register(app) {
|
|
113
135
|
app.customFields.register({
|
|
@@ -120,11 +142,11 @@ const index = {
|
|
|
120
142
|
},
|
|
121
143
|
intlDescription: {
|
|
122
144
|
id: `${PLUGIN_ID}.plugin.description`,
|
|
123
|
-
defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and
|
|
145
|
+
defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 15 built-in widgets"
|
|
124
146
|
},
|
|
125
147
|
icon: PluginIcon,
|
|
126
148
|
components: {
|
|
127
|
-
Input: async () => Promise.resolve().then(() => require("./ContentInputField-
|
|
149
|
+
Input: async () => Promise.resolve().then(() => require("./ContentInputField-2hk9xG8p.js")).then((mod) => ({
|
|
128
150
|
default: mod.ContentInputField
|
|
129
151
|
}))
|
|
130
152
|
},
|
|
@@ -151,13 +173,30 @@ const index = {
|
|
|
151
173
|
]
|
|
152
174
|
}
|
|
153
175
|
});
|
|
176
|
+
app.addMenuLink({
|
|
177
|
+
to: `plugins/${PLUGIN_ID}`,
|
|
178
|
+
icon: AnalyticsMenuIcon,
|
|
179
|
+
intlLabel: {
|
|
180
|
+
id: `${PLUGIN_ID}.menu.analytics`,
|
|
181
|
+
defaultMessage: "Surveys & Forms"
|
|
182
|
+
},
|
|
183
|
+
permissions: [],
|
|
184
|
+
Component: () => Promise.resolve().then(() => require("./AnalyticsHubPage-DNREITPq.js")).then((mod) => ({
|
|
185
|
+
default: mod.AnalyticsHubPage
|
|
186
|
+
})),
|
|
187
|
+
position: 7
|
|
188
|
+
});
|
|
189
|
+
app.registerPlugin({
|
|
190
|
+
id: PLUGIN_ID,
|
|
191
|
+
name: PLUGIN_ID
|
|
192
|
+
});
|
|
154
193
|
},
|
|
155
194
|
bootstrap() {
|
|
156
195
|
},
|
|
157
196
|
async registerTrads({ locales }) {
|
|
158
197
|
const importedTrads = await Promise.all(
|
|
159
198
|
locales.map((locale) => {
|
|
160
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
|
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 }) => ({
|
|
161
200
|
data,
|
|
162
201
|
locale
|
|
163
202
|
})).catch(() => ({
|
|
@@ -76,7 +76,24 @@ 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"
|
|
80
97
|
};
|
|
81
98
|
const MaterialIcon = ({
|
|
82
99
|
name,
|
|
@@ -105,6 +122,11 @@ const PluginIcon = () => React.createElement(MaterialIcon, {
|
|
|
105
122
|
size: 18,
|
|
106
123
|
color: "#2669a0"
|
|
107
124
|
});
|
|
125
|
+
const AnalyticsMenuIcon = () => React.createElement(MaterialIcon, {
|
|
126
|
+
name: "bar_chart",
|
|
127
|
+
size: 18,
|
|
128
|
+
color: "currentColor"
|
|
129
|
+
});
|
|
108
130
|
const index = {
|
|
109
131
|
register(app) {
|
|
110
132
|
app.customFields.register({
|
|
@@ -117,11 +139,11 @@ const index = {
|
|
|
117
139
|
},
|
|
118
140
|
intlDescription: {
|
|
119
141
|
id: `${PLUGIN_ID}.plugin.description`,
|
|
120
|
-
defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and
|
|
142
|
+
defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 15 built-in widgets"
|
|
121
143
|
},
|
|
122
144
|
icon: PluginIcon,
|
|
123
145
|
components: {
|
|
124
|
-
Input: async () => import("./ContentInputField-
|
|
146
|
+
Input: async () => import("./ContentInputField-Ko-r12jl.mjs").then((mod) => ({
|
|
125
147
|
default: mod.ContentInputField
|
|
126
148
|
}))
|
|
127
149
|
},
|
|
@@ -148,13 +170,30 @@ const index = {
|
|
|
148
170
|
]
|
|
149
171
|
}
|
|
150
172
|
});
|
|
173
|
+
app.addMenuLink({
|
|
174
|
+
to: `plugins/${PLUGIN_ID}`,
|
|
175
|
+
icon: AnalyticsMenuIcon,
|
|
176
|
+
intlLabel: {
|
|
177
|
+
id: `${PLUGIN_ID}.menu.analytics`,
|
|
178
|
+
defaultMessage: "Surveys & Forms"
|
|
179
|
+
},
|
|
180
|
+
permissions: [],
|
|
181
|
+
Component: () => import("./AnalyticsHubPage-Dj4roAe0.mjs").then((mod) => ({
|
|
182
|
+
default: mod.AnalyticsHubPage
|
|
183
|
+
})),
|
|
184
|
+
position: 7
|
|
185
|
+
});
|
|
186
|
+
app.registerPlugin({
|
|
187
|
+
id: PLUGIN_ID,
|
|
188
|
+
name: PLUGIN_ID
|
|
189
|
+
});
|
|
151
190
|
},
|
|
152
191
|
bootstrap() {
|
|
153
192
|
},
|
|
154
193
|
async registerTrads({ locales }) {
|
|
155
194
|
const importedTrads = await Promise.all(
|
|
156
195
|
locales.map((locale) => {
|
|
157
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-
|
|
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 }) => ({
|
|
158
197
|
data,
|
|
159
198
|
locale
|
|
160
199
|
})).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-B4FpXxnK.js");
|
|
4
4
|
require("react");
|
|
5
5
|
exports.default = index.index;
|
package/dist/admin/index.mjs
CHANGED
|
@@ -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,46 @@
|
|
|
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 CIEntityCardResolved {
|
|
11
|
+
entityUid: string;
|
|
12
|
+
documentId: string;
|
|
13
|
+
imageUrl: string;
|
|
14
|
+
imageAlt: string;
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle: string;
|
|
17
|
+
description: string;
|
|
18
|
+
badgeText: string;
|
|
19
|
+
buttonText: string;
|
|
20
|
+
url: string;
|
|
21
|
+
target: '_self' | '_blank';
|
|
22
|
+
isOverridden: {
|
|
23
|
+
image: boolean;
|
|
24
|
+
title: boolean;
|
|
25
|
+
subtitle: boolean;
|
|
26
|
+
description: boolean;
|
|
27
|
+
url: boolean;
|
|
28
|
+
};
|
|
29
|
+
cardProps: {
|
|
30
|
+
layout: 'vertical' | 'horizontal' | 'overlay';
|
|
31
|
+
variant: 'elevated' | 'outlined' | 'flat' | 'tonal';
|
|
32
|
+
elevation: number;
|
|
33
|
+
rounded: string;
|
|
34
|
+
color: string;
|
|
35
|
+
textColor: string;
|
|
36
|
+
accentColor: string;
|
|
37
|
+
imageHeight: string;
|
|
38
|
+
imageAspectRatio: string;
|
|
39
|
+
showBadge: boolean;
|
|
40
|
+
showButton: boolean;
|
|
41
|
+
buttonVariant: 'primary' | 'tonal' | 'outlined' | 'text';
|
|
42
|
+
hoverEffect: boolean;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare function resolveEntityCardPreviewData(rawData: any, rawOptions: any, locale?: string): CIEntityCardResolved;
|
|
46
|
+
export declare const EntityCardWidgetEditor: React.FC<EntityCardWidgetEditorProps>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CIWidgetNode } from '../../core/types';
|
|
3
|
+
export interface SurveyWidgetEditorProps {
|
|
4
|
+
widget: CIWidgetNode;
|
|
5
|
+
onChange: (patch: {
|
|
6
|
+
data?: any;
|
|
7
|
+
options?: Record<string, any>;
|
|
8
|
+
}) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface CISurveyOptionItem {
|
|
11
|
+
id: string;
|
|
12
|
+
labels: Record<string, string>;
|
|
13
|
+
image?: any | null;
|
|
14
|
+
score?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface CISurveyConditionRule {
|
|
17
|
+
questionKey: string;
|
|
18
|
+
operator: 'equals' | 'not_equals' | 'includes' | 'not_includes' | 'gt' | 'gte' | 'lt' | 'lte' | 'is_answered' | 'is_empty';
|
|
19
|
+
value?: any;
|
|
20
|
+
}
|
|
21
|
+
export interface CISurveyQuestionDef {
|
|
22
|
+
key: string;
|
|
23
|
+
stepId?: string;
|
|
24
|
+
type: string;
|
|
25
|
+
title: Record<string, string> | string;
|
|
26
|
+
description?: Record<string, string> | string;
|
|
27
|
+
placeholder?: Record<string, string> | string;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
validation?: string;
|
|
30
|
+
allowOther?: boolean;
|
|
31
|
+
otherLabel?: Record<string, string> | string;
|
|
32
|
+
shuffleOptions?: boolean;
|
|
33
|
+
inline?: boolean;
|
|
34
|
+
minSelections?: number;
|
|
35
|
+
maxSelections?: number;
|
|
36
|
+
maxStars?: number;
|
|
37
|
+
scaleMin?: number;
|
|
38
|
+
scaleMax?: number;
|
|
39
|
+
lowLabel?: Record<string, string> | string;
|
|
40
|
+
highLabel?: Record<string, string> | string;
|
|
41
|
+
options?: CISurveyOptionItem[];
|
|
42
|
+
matrixRows?: CISurveyOptionItem[];
|
|
43
|
+
matrixColumns?: CISurveyOptionItem[];
|
|
44
|
+
conditions?: {
|
|
45
|
+
match: 'all' | 'any';
|
|
46
|
+
rules: CISurveyConditionRule[];
|
|
47
|
+
} | null;
|
|
48
|
+
}
|
|
49
|
+
export interface CISurveyStepDef {
|
|
50
|
+
id: string;
|
|
51
|
+
title: Record<string, string> | string;
|
|
52
|
+
description?: Record<string, string> | string;
|
|
53
|
+
}
|
|
54
|
+
export interface CISurveyRecord {
|
|
55
|
+
id?: number | string;
|
|
56
|
+
_id?: string;
|
|
57
|
+
documentId?: string;
|
|
58
|
+
title: string;
|
|
59
|
+
titleI18n?: Record<string, string>;
|
|
60
|
+
slug: string;
|
|
61
|
+
description?: Record<string, string> | string;
|
|
62
|
+
status?: 'draft' | 'published' | 'closed';
|
|
63
|
+
displayMode?: 'quick_poll' | 'single_page' | 'multi_step';
|
|
64
|
+
startsAt?: string | null;
|
|
65
|
+
endsAt?: string | null;
|
|
66
|
+
quotaLimit?: number | null;
|
|
67
|
+
submissionPolicy?: 'unlimited' | 'one_per_voter' | 'one_per_token';
|
|
68
|
+
anonymizeIp?: boolean;
|
|
69
|
+
showPublicResults?: 'never' | 'after_vote' | 'always';
|
|
70
|
+
allowBackNavigation?: boolean;
|
|
71
|
+
showProgressBar?: boolean;
|
|
72
|
+
useRecaptcha?: boolean;
|
|
73
|
+
recaptchaSiteKey?: string;
|
|
74
|
+
recaptchaSecretKey?: string;
|
|
75
|
+
steps?: CISurveyStepDef[];
|
|
76
|
+
questions: CISurveyQuestionDef[];
|
|
77
|
+
settings?: Record<string, any>;
|
|
78
|
+
responseCount?: number;
|
|
79
|
+
npsScore?: number | null;
|
|
80
|
+
}
|
|
81
|
+
export declare function createBlankSurveyDraft(): CISurveyRecord;
|
|
82
|
+
export interface SurveyStudioModalProps {
|
|
83
|
+
open: boolean;
|
|
84
|
+
initialSurvey: CISurveyRecord;
|
|
85
|
+
initialTab?: 'builder' | 'settings' | 'analytics';
|
|
86
|
+
uiLocale?: string;
|
|
87
|
+
onClose: () => void;
|
|
88
|
+
onSaved?: (saved: CISurveyRecord) => void;
|
|
89
|
+
}
|
|
90
|
+
export declare const SurveyStudioModal: React.FC<SurveyStudioModalProps>;
|
|
91
|
+
export declare const SurveyWidgetEditor: React.FC<SurveyWidgetEditorProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface StrapiLocaleInfo {
|
|
2
|
+
code: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isDefault: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function normalizeLocalizedRecord(val: any, locales: StrapiLocaleInfo[], fallbacks?: Record<string, string>): Record<string, string>;
|
|
7
|
+
export declare function normalizeOptionListByLocales(raw: any, locales: StrapiLocaleInfo[]): Record<string, string[]>;
|
|
8
|
+
export declare function pickTextForLocale(val: any, localeCode: string, fallback?: string): string;
|
|
9
|
+
export declare function useStrapiLocales(): {
|
|
10
|
+
locales: StrapiLocaleInfo[];
|
|
11
|
+
defaultLocale: string;
|
|
12
|
+
refreshLocales: () => Promise<StrapiLocaleInfo[]>;
|
|
13
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const tr = {
|
|
2
2
|
"content-input.plugin.name": "Content Input (Görsel Sayfa Oluşturucu)",
|
|
3
|
-
"content-input.plugin.description": "Satır, 12 sütunlu duyarlı blok ve
|
|
3
|
+
"content-input.plugin.description": "Satır, 12 sütunlu duyarlı blok ve 15 bileşen destekli görsel sayfa/içerik düzenleyici",
|
|
4
|
+
"content-input.menu.analytics": "Anket & Form Raporları",
|
|
4
5
|
"content-input.options.advanced.requiredField": "Zorunlu alan",
|
|
5
6
|
"content-input.options.advanced.requiredField.description": "Bu alan boş bırakılamaz."
|
|
6
7
|
};
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const tr = {
|
|
4
4
|
"content-input.plugin.name": "Content Input (Görsel Sayfa Oluşturucu)",
|
|
5
|
-
"content-input.plugin.description": "Satır, 12 sütunlu duyarlı blok ve
|
|
5
|
+
"content-input.plugin.description": "Satır, 12 sütunlu duyarlı blok ve 15 bileşen destekli görsel sayfa/içerik düzenleyici",
|
|
6
|
+
"content-input.menu.analytics": "Anket & Form Raporları",
|
|
6
7
|
"content-input.options.advanced.requiredField": "Zorunlu alan",
|
|
7
8
|
"content-input.options.advanced.requiredField.description": "Bu alan boş bırakılamaz."
|
|
8
9
|
};
|