@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
@@ -1,5 +1,5 @@
1
1
  import { Core } from '@strapi/strapi';
2
2
  declare const bootstrap: ({ strapi }: {
3
3
  strapi: Core.Strapi;
4
- }) => void;
4
+ }) => Promise<void>;
5
5
  export default bootstrap;
@@ -0,0 +1,52 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "ci_color_palettes",
4
+ "info": {
5
+ "singularName": "ci-color-palette",
6
+ "pluralName": "ci-color-palettes",
7
+ "displayName": "ContentInput Color Palette",
8
+ "description": "Theme color codes (HEX & RGB/RGBA semantic tokens + custom brand color tokens)"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "content-manager": {
15
+ "visible": false
16
+ },
17
+ "content-type-builder": {
18
+ "visible": false
19
+ }
20
+ },
21
+ "attributes": {
22
+ "name": {
23
+ "type": "string",
24
+ "required": true
25
+ },
26
+ "slug": {
27
+ "type": "string",
28
+ "required": true,
29
+ "unique": true
30
+ },
31
+ "description": {
32
+ "type": "string",
33
+ "default": ""
34
+ },
35
+ "isActive": {
36
+ "type": "boolean",
37
+ "default": false
38
+ },
39
+ "semanticTokens": {
40
+ "type": "json",
41
+ "required": true
42
+ },
43
+ "customTokens": {
44
+ "type": "json",
45
+ "default": []
46
+ }
47
+ }
48
+ }
49
+
50
+ ;
51
+
52
+ export default _default;
@@ -0,0 +1,77 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "ci_forms",
4
+ "info": {
5
+ "singularName": "ci-form",
6
+ "pluralName": "ci-forms",
7
+ "displayName": "ContentInput Dynamic Form",
8
+ "description": "Reusable cms-core style dynamic forms with responsive grid layout, validation rules, reCAPTCHA and mail delivery settings"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "content-manager": {
15
+ "visible": true
16
+ },
17
+ "content-type-builder": {
18
+ "visible": false
19
+ }
20
+ },
21
+ "attributes": {
22
+ "title": {
23
+ "type": "string",
24
+ "required": true
25
+ },
26
+ "slug": {
27
+ "type": "string",
28
+ "required": true
29
+ },
30
+ "to": {
31
+ "type": "string"
32
+ },
33
+ "subject": {
34
+ "type": "string"
35
+ },
36
+ "buttonLabel": {
37
+ "type": "json"
38
+ },
39
+ "successMessage": {
40
+ "type": "json"
41
+ },
42
+ "redirect": {
43
+ "type": "string"
44
+ },
45
+ "hideLabels": {
46
+ "type": "boolean",
47
+ "default": false
48
+ },
49
+ "useRecaptcha": {
50
+ "type": "boolean",
51
+ "default": true
52
+ },
53
+ "recaptchaSiteKey": {
54
+ "type": "string"
55
+ },
56
+ "recaptchaSecretKey": {
57
+ "type": "string",
58
+ "private": true
59
+ },
60
+ "mailConfig": {
61
+ "type": "json",
62
+ "private": true
63
+ },
64
+ "fields": {
65
+ "type": "json",
66
+ "required": true
67
+ },
68
+ "form": {
69
+ "type": "json",
70
+ "required": true
71
+ }
72
+ }
73
+ }
74
+
75
+ ;
76
+
77
+ export default _default;
@@ -0,0 +1,54 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "ci_form_submissions",
4
+ "info": {
5
+ "singularName": "ci-form-submission",
6
+ "pluralName": "ci-form-submissions",
7
+ "displayName": "ContentInput Form Submission",
8
+ "description": "Submitted entries from ContentInput dynamic forms"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "content-manager": {
15
+ "visible": true
16
+ },
17
+ "content-type-builder": {
18
+ "visible": false
19
+ }
20
+ },
21
+ "attributes": {
22
+ "formId": {
23
+ "type": "string",
24
+ "required": true
25
+ },
26
+ "formSlug": {
27
+ "type": "string"
28
+ },
29
+ "formTitle": {
30
+ "type": "string"
31
+ },
32
+ "data": {
33
+ "type": "json",
34
+ "required": true
35
+ },
36
+ "ip": {
37
+ "type": "string"
38
+ },
39
+ "userAgent": {
40
+ "type": "string"
41
+ },
42
+ "mailSent": {
43
+ "type": "boolean",
44
+ "default": false
45
+ },
46
+ "mailInfo": {
47
+ "type": "json"
48
+ }
49
+ }
50
+ }
51
+
52
+ ;
53
+
54
+ export default _default;
@@ -0,0 +1,111 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "ci_surveys",
4
+ "info": {
5
+ "singularName": "ci-survey",
6
+ "pluralName": "ci-surveys",
7
+ "displayName": "ContentInput Survey",
8
+ "description": "Enterprise surveys, multi-step questionnaires, and live polls with i18n, conditional logic, and analytics"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "content-manager": {
15
+ "visible": true
16
+ },
17
+ "content-type-builder": {
18
+ "visible": false
19
+ }
20
+ },
21
+ "attributes": {
22
+ "title": {
23
+ "type": "string",
24
+ "required": true
25
+ },
26
+ "titleI18n": {
27
+ "type": "json"
28
+ },
29
+ "slug": {
30
+ "type": "string",
31
+ "required": true
32
+ },
33
+ "description": {
34
+ "type": "json"
35
+ },
36
+ "status": {
37
+ "type": "enumeration",
38
+ "enum": ["draft", "published", "closed"],
39
+ "default": "published"
40
+ },
41
+ "displayMode": {
42
+ "type": "enumeration",
43
+ "enum": ["quick_poll", "single_page", "multi_step"],
44
+ "default": "single_page"
45
+ },
46
+ "startsAt": {
47
+ "type": "datetime"
48
+ },
49
+ "endsAt": {
50
+ "type": "datetime"
51
+ },
52
+ "quotaLimit": {
53
+ "type": "integer"
54
+ },
55
+ "submissionPolicy": {
56
+ "type": "enumeration",
57
+ "enum": ["unlimited", "one_per_voter", "one_per_token"],
58
+ "default": "one_per_voter"
59
+ },
60
+ "anonymizeIp": {
61
+ "type": "boolean",
62
+ "default": true
63
+ },
64
+ "showPublicResults": {
65
+ "type": "enumeration",
66
+ "enum": ["never", "after_vote", "always"],
67
+ "default": "never"
68
+ },
69
+ "allowBackNavigation": {
70
+ "type": "boolean",
71
+ "default": true
72
+ },
73
+ "showProgressBar": {
74
+ "type": "boolean",
75
+ "default": true
76
+ },
77
+ "useRecaptcha": {
78
+ "type": "boolean",
79
+ "default": false
80
+ },
81
+ "recaptchaSiteKey": {
82
+ "type": "string"
83
+ },
84
+ "recaptchaSecretKey": {
85
+ "type": "string",
86
+ "private": true
87
+ },
88
+ "mailConfig": {
89
+ "type": "json",
90
+ "private": true
91
+ },
92
+ "steps": {
93
+ "type": "json"
94
+ },
95
+ "questions": {
96
+ "type": "json",
97
+ "required": true
98
+ },
99
+ "settings": {
100
+ "type": "json"
101
+ },
102
+ "version": {
103
+ "type": "integer",
104
+ "default": 1
105
+ }
106
+ }
107
+ }
108
+
109
+ ;
110
+
111
+ export default _default;
@@ -0,0 +1,81 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "ci_survey_responses",
4
+ "info": {
5
+ "singularName": "ci-survey-response",
6
+ "pluralName": "ci-survey-responses",
7
+ "displayName": "ContentInput Survey Response",
8
+ "description": "Recorded participant responses and telemetry for ContentInput surveys and polls"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "content-manager": {
15
+ "visible": true
16
+ },
17
+ "content-type-builder": {
18
+ "visible": false
19
+ }
20
+ },
21
+ "attributes": {
22
+ "surveyId": {
23
+ "type": "string",
24
+ "required": true
25
+ },
26
+ "surveySlug": {
27
+ "type": "string",
28
+ "required": true
29
+ },
30
+ "surveyTitle": {
31
+ "type": "string"
32
+ },
33
+ "surveyVersion": {
34
+ "type": "integer",
35
+ "default": 1
36
+ },
37
+ "answers": {
38
+ "type": "json",
39
+ "required": true
40
+ },
41
+ "otherTexts": {
42
+ "type": "json"
43
+ },
44
+ "score": {
45
+ "type": "float"
46
+ },
47
+ "npsValue": {
48
+ "type": "integer"
49
+ },
50
+ "npsCategory": {
51
+ "type": "string"
52
+ },
53
+ "locale": {
54
+ "type": "string",
55
+ "default": "tr"
56
+ },
57
+ "durationSeconds": {
58
+ "type": "integer",
59
+ "default": 0
60
+ },
61
+ "voterHash": {
62
+ "type": "string"
63
+ },
64
+ "respondentToken": {
65
+ "type": "string"
66
+ },
67
+ "ip": {
68
+ "type": "string"
69
+ },
70
+ "userAgent": {
71
+ "type": "string"
72
+ },
73
+ "submittedAt": {
74
+ "type": "datetime"
75
+ }
76
+ }
77
+ }
78
+
79
+ ;
80
+
81
+ export default _default;