@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
@@ -84,5 +84,370 @@ declare const _default: {
84
84
  };
85
85
  };
86
86
  };
87
+ 'ci-form': {
88
+ schema: {
89
+ kind: string;
90
+ collectionName: string;
91
+ info: {
92
+ singularName: string;
93
+ pluralName: string;
94
+ displayName: string;
95
+ description: string;
96
+ };
97
+ options: {
98
+ draftAndPublish: boolean;
99
+ };
100
+ pluginOptions: {
101
+ "content-manager": {
102
+ visible: boolean;
103
+ };
104
+ "content-type-builder": {
105
+ visible: boolean;
106
+ };
107
+ };
108
+ attributes: {
109
+ title: {
110
+ type: string;
111
+ required: boolean;
112
+ };
113
+ slug: {
114
+ type: string;
115
+ required: boolean;
116
+ };
117
+ to: {
118
+ type: string;
119
+ };
120
+ subject: {
121
+ type: string;
122
+ };
123
+ buttonLabel: {
124
+ type: string;
125
+ };
126
+ successMessage: {
127
+ type: string;
128
+ };
129
+ redirect: {
130
+ type: string;
131
+ };
132
+ hideLabels: {
133
+ type: string;
134
+ default: boolean;
135
+ };
136
+ useRecaptcha: {
137
+ type: string;
138
+ default: boolean;
139
+ };
140
+ recaptchaSiteKey: {
141
+ type: string;
142
+ };
143
+ recaptchaSecretKey: {
144
+ type: string;
145
+ private: boolean;
146
+ };
147
+ mailConfig: {
148
+ type: string;
149
+ private: boolean;
150
+ };
151
+ fields: {
152
+ type: string;
153
+ required: boolean;
154
+ };
155
+ form: {
156
+ type: string;
157
+ required: boolean;
158
+ };
159
+ };
160
+ };
161
+ };
162
+ 'ci-form-submission': {
163
+ schema: {
164
+ kind: string;
165
+ collectionName: string;
166
+ info: {
167
+ singularName: string;
168
+ pluralName: string;
169
+ displayName: string;
170
+ description: string;
171
+ };
172
+ options: {
173
+ draftAndPublish: boolean;
174
+ };
175
+ pluginOptions: {
176
+ "content-manager": {
177
+ visible: boolean;
178
+ };
179
+ "content-type-builder": {
180
+ visible: boolean;
181
+ };
182
+ };
183
+ attributes: {
184
+ formId: {
185
+ type: string;
186
+ required: boolean;
187
+ };
188
+ formSlug: {
189
+ type: string;
190
+ };
191
+ formTitle: {
192
+ type: string;
193
+ };
194
+ data: {
195
+ type: string;
196
+ required: boolean;
197
+ };
198
+ ip: {
199
+ type: string;
200
+ };
201
+ userAgent: {
202
+ type: string;
203
+ };
204
+ mailSent: {
205
+ type: string;
206
+ default: boolean;
207
+ };
208
+ mailInfo: {
209
+ type: string;
210
+ };
211
+ };
212
+ };
213
+ };
214
+ 'ci-survey': {
215
+ schema: {
216
+ kind: string;
217
+ collectionName: string;
218
+ info: {
219
+ singularName: string;
220
+ pluralName: string;
221
+ displayName: string;
222
+ description: string;
223
+ };
224
+ options: {
225
+ draftAndPublish: boolean;
226
+ };
227
+ pluginOptions: {
228
+ "content-manager": {
229
+ visible: boolean;
230
+ };
231
+ "content-type-builder": {
232
+ visible: boolean;
233
+ };
234
+ };
235
+ attributes: {
236
+ title: {
237
+ type: string;
238
+ required: boolean;
239
+ };
240
+ titleI18n: {
241
+ type: string;
242
+ };
243
+ slug: {
244
+ type: string;
245
+ required: boolean;
246
+ };
247
+ description: {
248
+ type: string;
249
+ };
250
+ status: {
251
+ type: string;
252
+ enum: string[];
253
+ default: string;
254
+ };
255
+ displayMode: {
256
+ type: string;
257
+ enum: string[];
258
+ default: string;
259
+ };
260
+ startsAt: {
261
+ type: string;
262
+ };
263
+ endsAt: {
264
+ type: string;
265
+ };
266
+ quotaLimit: {
267
+ type: string;
268
+ };
269
+ submissionPolicy: {
270
+ type: string;
271
+ enum: string[];
272
+ default: string;
273
+ };
274
+ anonymizeIp: {
275
+ type: string;
276
+ default: boolean;
277
+ };
278
+ showPublicResults: {
279
+ type: string;
280
+ enum: string[];
281
+ default: string;
282
+ };
283
+ allowBackNavigation: {
284
+ type: string;
285
+ default: boolean;
286
+ };
287
+ showProgressBar: {
288
+ type: string;
289
+ default: boolean;
290
+ };
291
+ useRecaptcha: {
292
+ type: string;
293
+ default: boolean;
294
+ };
295
+ recaptchaSiteKey: {
296
+ type: string;
297
+ };
298
+ recaptchaSecretKey: {
299
+ type: string;
300
+ private: boolean;
301
+ };
302
+ mailConfig: {
303
+ type: string;
304
+ private: boolean;
305
+ };
306
+ steps: {
307
+ type: string;
308
+ };
309
+ questions: {
310
+ type: string;
311
+ required: boolean;
312
+ };
313
+ settings: {
314
+ type: string;
315
+ };
316
+ version: {
317
+ type: string;
318
+ default: number;
319
+ };
320
+ };
321
+ };
322
+ };
323
+ 'ci-survey-response': {
324
+ schema: {
325
+ kind: string;
326
+ collectionName: string;
327
+ info: {
328
+ singularName: string;
329
+ pluralName: string;
330
+ displayName: string;
331
+ description: string;
332
+ };
333
+ options: {
334
+ draftAndPublish: boolean;
335
+ };
336
+ pluginOptions: {
337
+ "content-manager": {
338
+ visible: boolean;
339
+ };
340
+ "content-type-builder": {
341
+ visible: boolean;
342
+ };
343
+ };
344
+ attributes: {
345
+ surveyId: {
346
+ type: string;
347
+ required: boolean;
348
+ };
349
+ surveySlug: {
350
+ type: string;
351
+ required: boolean;
352
+ };
353
+ surveyTitle: {
354
+ type: string;
355
+ };
356
+ surveyVersion: {
357
+ type: string;
358
+ default: number;
359
+ };
360
+ answers: {
361
+ type: string;
362
+ required: boolean;
363
+ };
364
+ otherTexts: {
365
+ type: string;
366
+ };
367
+ score: {
368
+ type: string;
369
+ };
370
+ npsValue: {
371
+ type: string;
372
+ };
373
+ npsCategory: {
374
+ type: string;
375
+ };
376
+ locale: {
377
+ type: string;
378
+ default: string;
379
+ };
380
+ durationSeconds: {
381
+ type: string;
382
+ default: number;
383
+ };
384
+ voterHash: {
385
+ type: string;
386
+ };
387
+ respondentToken: {
388
+ type: string;
389
+ };
390
+ ip: {
391
+ type: string;
392
+ };
393
+ userAgent: {
394
+ type: string;
395
+ };
396
+ submittedAt: {
397
+ type: string;
398
+ };
399
+ };
400
+ };
401
+ };
402
+ 'ci-color-palette': {
403
+ schema: {
404
+ kind: string;
405
+ collectionName: string;
406
+ info: {
407
+ singularName: string;
408
+ pluralName: string;
409
+ displayName: string;
410
+ description: string;
411
+ };
412
+ options: {
413
+ draftAndPublish: boolean;
414
+ };
415
+ pluginOptions: {
416
+ "content-manager": {
417
+ visible: boolean;
418
+ };
419
+ "content-type-builder": {
420
+ visible: boolean;
421
+ };
422
+ };
423
+ attributes: {
424
+ name: {
425
+ type: string;
426
+ required: boolean;
427
+ };
428
+ slug: {
429
+ type: string;
430
+ required: boolean;
431
+ unique: boolean;
432
+ };
433
+ description: {
434
+ type: string;
435
+ default: string;
436
+ };
437
+ isActive: {
438
+ type: string;
439
+ default: boolean;
440
+ };
441
+ semanticTokens: {
442
+ type: string;
443
+ required: boolean;
444
+ };
445
+ customTokens: {
446
+ type: string;
447
+ default: any[];
448
+ };
449
+ };
450
+ };
451
+ };
87
452
  };
88
453
  export default _default;
@@ -0,0 +1,14 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const ciColorController: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => {
5
+ indexAdmin(ctx: any): Promise<void>;
6
+ activePublic(ctx: any): Promise<void>;
7
+ save(ctx: any): Promise<void>;
8
+ activate(ctx: any): Promise<any>;
9
+ quickToken(ctx: any): Promise<any>;
10
+ delete(ctx: any): Promise<void>;
11
+ dataTableCollection(ctx: any): Promise<any>;
12
+ entityCardsBatch(ctx: any): Promise<any>;
13
+ };
14
+ export default ciColorController;
@@ -0,0 +1,17 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const ciFormController: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => {
5
+ locales(ctx: any): Promise<void>;
6
+ indexAdmin(ctx: any): Promise<void>;
7
+ findOneAdmin(ctx: any): Promise<any>;
8
+ indexPublic(ctx: any): Promise<void>;
9
+ findOnePublic(ctx: any): Promise<any>;
10
+ save(ctx: any): Promise<any>;
11
+ delete(ctx: any): Promise<void>;
12
+ submissions(ctx: any): Promise<void>;
13
+ recaptchaKey(ctx: any): Promise<void>;
14
+ submit(ctx: any): Promise<void>;
15
+ entityCard(ctx: any): Promise<any>;
16
+ };
17
+ export default ciFormController;
@@ -0,0 +1,18 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const ciSurveyController: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => {
5
+ indexAdmin(ctx: any): Promise<void>;
6
+ findOneAdmin(ctx: any): Promise<any>;
7
+ indexPublic(ctx: any): Promise<void>;
8
+ findOnePublic(ctx: any): Promise<any>;
9
+ save(ctx: any): Promise<any>;
10
+ delete(ctx: any): Promise<void>;
11
+ submit(ctx: any): Promise<void>;
12
+ publicResults(ctx: any): Promise<void>;
13
+ analytics(ctx: any): Promise<any>;
14
+ responses(ctx: any): Promise<void>;
15
+ exportResponses(ctx: any): Promise<any>;
16
+ reseedDemo(ctx: any): Promise<void>;
17
+ };
18
+ export default ciSurveyController;
@@ -25,5 +25,48 @@ declare const _default: {
25
25
  deleteMedia(ctx: any): Promise<any>;
26
26
  createFolder(ctx: any): Promise<any>;
27
27
  };
28
+ 'ci-form': ({ strapi }: {
29
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
30
+ }) => {
31
+ locales(ctx: any): Promise<void>;
32
+ indexAdmin(ctx: any): Promise<void>;
33
+ findOneAdmin(ctx: any): Promise<any>;
34
+ indexPublic(ctx: any): Promise<void>;
35
+ findOnePublic(ctx: any): Promise<any>;
36
+ save(ctx: any): Promise<any>;
37
+ delete(ctx: any): Promise<void>;
38
+ submissions(ctx: any): Promise<void>;
39
+ recaptchaKey(ctx: any): Promise<void>;
40
+ submit(ctx: any): Promise<void>;
41
+ entityCard(ctx: any): Promise<any>;
42
+ };
43
+ 'ci-survey': ({ strapi }: {
44
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
45
+ }) => {
46
+ indexAdmin(ctx: any): Promise<void>;
47
+ findOneAdmin(ctx: any): Promise<any>;
48
+ indexPublic(ctx: any): Promise<void>;
49
+ findOnePublic(ctx: any): Promise<any>;
50
+ save(ctx: any): Promise<any>;
51
+ delete(ctx: any): Promise<void>;
52
+ submit(ctx: any): Promise<void>;
53
+ publicResults(ctx: any): Promise<void>;
54
+ analytics(ctx: any): Promise<any>;
55
+ responses(ctx: any): Promise<void>;
56
+ exportResponses(ctx: any): Promise<any>;
57
+ reseedDemo(ctx: any): Promise<void>;
58
+ };
59
+ 'ci-color': ({ strapi }: {
60
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
61
+ }) => {
62
+ indexAdmin(ctx: any): Promise<void>;
63
+ activePublic(ctx: any): Promise<void>;
64
+ save(ctx: any): Promise<void>;
65
+ activate(ctx: any): Promise<any>;
66
+ quickToken(ctx: any): Promise<any>;
67
+ delete(ctx: any): Promise<void>;
68
+ dataTableCollection(ctx: any): Promise<any>;
69
+ entityCardsBatch(ctx: any): Promise<any>;
70
+ };
28
71
  };
29
72
  export default _default;