@ozguraltan/strapi-content-input 0.0.0-stage → 1.0.6

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 (62) hide show
  1. package/README.md +353 -2
  2. package/dist/admin/ContentInputField-BM2WS_KZ.js +18227 -0
  3. package/dist/admin/ContentInputField-D6rlm6Te.mjs +18224 -0
  4. package/dist/admin/en-D7v9nv9J.mjs +9 -0
  5. package/dist/admin/en-DF-a59T_.js +9 -0
  6. package/dist/admin/index-BA2XyNVO.mjs +172 -0
  7. package/dist/admin/index-IuCWhUHI.js +173 -0
  8. package/dist/admin/index.js +5 -0
  9. package/dist/admin/index.mjs +5 -0
  10. package/dist/admin/src/components/ContentInputField.d.ts +23 -0
  11. package/dist/admin/src/components/editor/CIContextMenu.d.ts +2 -0
  12. package/dist/admin/src/components/editor/CanvasNodes.d.ts +21 -0
  13. package/dist/admin/src/components/editor/VECanvas.d.ts +2 -0
  14. package/dist/admin/src/components/editor/VEInsertPoint.d.ts +7 -0
  15. package/dist/admin/src/components/editor/VELeftPanel.d.ts +5 -0
  16. package/dist/admin/src/components/editor/VENodeToolbar.d.ts +13 -0
  17. package/dist/admin/src/components/editor/VEPreviewFrame.d.ts +7 -0
  18. package/dist/admin/src/components/editor/VETopBar.d.ts +5 -0
  19. package/dist/admin/src/components/editor/VisualEditorModal.d.ts +6 -0
  20. package/dist/admin/src/components/editor/inspector/StyleControls.d.ts +49 -0
  21. package/dist/admin/src/components/editor/inspector/UnitInput.d.ts +18 -0
  22. package/dist/admin/src/components/editor/inspector/VEInspector.d.ts +5 -0
  23. package/dist/admin/src/components/icons/MaterialIcon.d.ts +9 -0
  24. package/dist/admin/src/components/widgets/MenuWidgetEditor.d.ts +30 -0
  25. package/dist/admin/src/components/widgets/RichHtmlEditor.d.ts +8 -0
  26. package/dist/admin/src/components/widgets/StrapiMediaPicker.d.ts +9 -0
  27. package/dist/admin/src/components/widgets/TabAccordionEditor.d.ts +26 -0
  28. package/dist/admin/src/components/widgets/WidgetEditor.d.ts +12 -0
  29. package/dist/admin/src/components/widgets/WidgetPreview.d.ts +9 -0
  30. package/dist/admin/src/core/EditorContext.d.ts +144 -0
  31. package/dist/admin/src/core/canvasClasses.d.ts +21 -0
  32. package/dist/admin/src/core/clipboard.d.ts +9 -0
  33. package/dist/admin/src/core/devices.d.ts +24 -0
  34. package/dist/admin/src/core/history.d.ts +13 -0
  35. package/dist/admin/src/core/i18n.d.ts +5 -0
  36. package/dist/admin/src/core/presets.d.ts +43 -0
  37. package/dist/admin/src/core/sampleData.d.ts +2 -0
  38. package/dist/admin/src/core/treeOps.d.ts +10 -0
  39. package/dist/admin/src/core/types.d.ts +79 -0
  40. package/dist/admin/src/index.d.ts +14 -0
  41. package/dist/admin/src/pluginId.d.ts +1 -0
  42. package/dist/admin/src/styles/ciCanvasStyles.d.ts +2 -0
  43. package/dist/admin/tr-ByHzf64V.mjs +9 -0
  44. package/dist/admin/tr-SNvSmKZQ.js +9 -0
  45. package/dist/server/index.js +702 -0
  46. package/dist/server/index.mjs +702 -0
  47. package/dist/server/src/bootstrap.d.ts +5 -0
  48. package/dist/server/src/config/index.d.ts +7 -0
  49. package/dist/server/src/content-types/ci-menu/schema.json.d.ts +46 -0
  50. package/dist/server/src/content-types/ci-template/schema.json.d.ts +42 -0
  51. package/dist/server/src/content-types/index.d.ts +88 -0
  52. package/dist/server/src/controllers/ci-menu.d.ts +12 -0
  53. package/dist/server/src/controllers/ci-template.d.ts +9 -0
  54. package/dist/server/src/controllers/index.d.ts +20 -0
  55. package/dist/server/src/destroy.d.ts +5 -0
  56. package/dist/server/src/index.d.ts +187 -0
  57. package/dist/server/src/register.d.ts +5 -0
  58. package/dist/server/src/routes/index.d.ts +14 -0
  59. package/dist/server/src/services/ci-menu.d.ts +36 -0
  60. package/dist/server/src/services/ci-template.d.ts +16 -0
  61. package/dist/server/src/services/index.d.ts +51 -0
  62. package/package.json +96 -4
@@ -0,0 +1,46 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "ci_menus",
4
+ "info": {
5
+ "singularName": "ci-menu",
6
+ "pluralName": "ci-menus",
7
+ "displayName": "ContentInput Menu",
8
+ "description": "Reusable nested menus (horizontal & vertical) for ContentInput"
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
+ },
30
+ "mode": {
31
+ "type": "string",
32
+ "default": "horizontal"
33
+ },
34
+ "items": {
35
+ "type": "json",
36
+ "required": true
37
+ },
38
+ "options": {
39
+ "type": "json"
40
+ }
41
+ }
42
+ }
43
+
44
+ ;
45
+
46
+ export default _default;
@@ -0,0 +1,42 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "ci_templates",
4
+ "info": {
5
+ "singularName": "ci-template",
6
+ "pluralName": "ci-templates",
7
+ "displayName": "ContentInput Template",
8
+ "description": "Saved visual editor row/section templates"
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
+ "category": {
27
+ "type": "string",
28
+ "default": "custom"
29
+ },
30
+ "structure": {
31
+ "type": "json",
32
+ "required": true
33
+ },
34
+ "thumbnail": {
35
+ "type": "string",
36
+ "default": ""
37
+ }
38
+ }
39
+ }
40
+ ;
41
+
42
+ export default _default;
@@ -0,0 +1,88 @@
1
+ declare const _default: {
2
+ 'ci-template': {
3
+ schema: {
4
+ kind: string;
5
+ collectionName: string;
6
+ info: {
7
+ singularName: string;
8
+ pluralName: string;
9
+ displayName: string;
10
+ description: string;
11
+ };
12
+ options: {
13
+ draftAndPublish: boolean;
14
+ };
15
+ pluginOptions: {
16
+ "content-manager": {
17
+ visible: boolean;
18
+ };
19
+ "content-type-builder": {
20
+ visible: boolean;
21
+ };
22
+ };
23
+ attributes: {
24
+ name: {
25
+ type: string;
26
+ required: boolean;
27
+ };
28
+ category: {
29
+ type: string;
30
+ default: string;
31
+ };
32
+ structure: {
33
+ type: string;
34
+ required: boolean;
35
+ };
36
+ thumbnail: {
37
+ type: string;
38
+ default: string;
39
+ };
40
+ };
41
+ };
42
+ };
43
+ 'ci-menu': {
44
+ schema: {
45
+ kind: string;
46
+ collectionName: string;
47
+ info: {
48
+ singularName: string;
49
+ pluralName: string;
50
+ displayName: string;
51
+ description: string;
52
+ };
53
+ options: {
54
+ draftAndPublish: boolean;
55
+ };
56
+ pluginOptions: {
57
+ "content-manager": {
58
+ visible: boolean;
59
+ };
60
+ "content-type-builder": {
61
+ visible: boolean;
62
+ };
63
+ };
64
+ attributes: {
65
+ name: {
66
+ type: string;
67
+ required: boolean;
68
+ };
69
+ slug: {
70
+ type: string;
71
+ required: boolean;
72
+ };
73
+ mode: {
74
+ type: string;
75
+ default: string;
76
+ };
77
+ items: {
78
+ type: string;
79
+ required: boolean;
80
+ };
81
+ options: {
82
+ type: string;
83
+ };
84
+ };
85
+ };
86
+ };
87
+ };
88
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const ciMenuController: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => {
5
+ index(ctx: any): Promise<void>;
6
+ save(ctx: any): Promise<any>;
7
+ delete(ctx: any): Promise<void>;
8
+ entityTypes(ctx: any): Promise<void>;
9
+ entities(ctx: any): Promise<void>;
10
+ mediaList(ctx: any): Promise<void>;
11
+ };
12
+ export default ciMenuController;
@@ -0,0 +1,9 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const ciTemplateController: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => {
5
+ index(ctx: any): Promise<void>;
6
+ save(ctx: any): Promise<any>;
7
+ delete(ctx: any): Promise<void>;
8
+ };
9
+ export default ciTemplateController;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ 'ci-template': ({ strapi }: {
3
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
4
+ }) => {
5
+ index(ctx: any): Promise<void>;
6
+ save(ctx: any): Promise<any>;
7
+ delete(ctx: any): Promise<void>;
8
+ };
9
+ 'ci-menu': ({ strapi }: {
10
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
11
+ }) => {
12
+ index(ctx: any): Promise<void>;
13
+ save(ctx: any): Promise<any>;
14
+ delete(ctx: any): Promise<void>;
15
+ entityTypes(ctx: any): Promise<void>;
16
+ entities(ctx: any): Promise<void>;
17
+ mediaList(ctx: any): Promise<void>;
18
+ };
19
+ };
20
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const destroy: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => void;
5
+ export default destroy;
@@ -0,0 +1,187 @@
1
+ declare const _default: {
2
+ register: ({ strapi }: {
3
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
4
+ }) => void;
5
+ bootstrap: ({ strapi }: {
6
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
7
+ }) => void;
8
+ destroy: ({ strapi }: {
9
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
10
+ }) => void;
11
+ config: {
12
+ default: {
13
+ previewUrl: string;
14
+ };
15
+ validator(): void;
16
+ };
17
+ controllers: {
18
+ 'ci-template': ({ strapi }: {
19
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
20
+ }) => {
21
+ index(ctx: any): Promise<void>;
22
+ save(ctx: any): Promise<any>;
23
+ delete(ctx: any): Promise<void>;
24
+ };
25
+ 'ci-menu': ({ strapi }: {
26
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
27
+ }) => {
28
+ index(ctx: any): Promise<void>;
29
+ save(ctx: any): Promise<any>;
30
+ delete(ctx: any): Promise<void>;
31
+ entityTypes(ctx: any): Promise<void>;
32
+ entities(ctx: any): Promise<void>;
33
+ mediaList(ctx: any): Promise<void>;
34
+ };
35
+ };
36
+ routes: {
37
+ admin: {
38
+ type: string;
39
+ routes: {
40
+ method: string;
41
+ path: string;
42
+ handler: string;
43
+ config: {
44
+ policies: any[];
45
+ };
46
+ }[];
47
+ };
48
+ };
49
+ services: {
50
+ 'ci-template': ({ strapi }: {
51
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
52
+ }) => {
53
+ findAll(): Promise<any[]>;
54
+ create(data: {
55
+ name: string;
56
+ category?: string;
57
+ structure: any;
58
+ thumbnail?: string;
59
+ }): Promise<any>;
60
+ remove(idOrDocId: string | number): Promise<{
61
+ success: boolean;
62
+ }>;
63
+ };
64
+ 'ci-menu': ({ strapi }: {
65
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
66
+ }) => {
67
+ findAll(): Promise<any[]>;
68
+ save(data: {
69
+ id?: number | string;
70
+ name: string;
71
+ slug?: string;
72
+ mode?: string;
73
+ items: any[];
74
+ options?: Record<string, any>;
75
+ }): Promise<any>;
76
+ remove(idOrDocId: string | number): Promise<{
77
+ success: boolean;
78
+ }>;
79
+ getEntityTypes(): {
80
+ uid: string;
81
+ displayName: string;
82
+ singularName: string;
83
+ pluralName: string;
84
+ kind: string;
85
+ titleField: string;
86
+ slugField: string | null;
87
+ parentField: string | null;
88
+ }[];
89
+ searchEntities(params: {
90
+ uid?: string;
91
+ q?: string;
92
+ tree?: boolean;
93
+ }): Promise<{
94
+ meta: any;
95
+ items: any[];
96
+ }>;
97
+ };
98
+ };
99
+ contentTypes: {
100
+ 'ci-template': {
101
+ schema: {
102
+ kind: string;
103
+ collectionName: string;
104
+ info: {
105
+ singularName: string;
106
+ pluralName: string;
107
+ displayName: string;
108
+ description: string;
109
+ };
110
+ options: {
111
+ draftAndPublish: boolean;
112
+ };
113
+ pluginOptions: {
114
+ "content-manager": {
115
+ visible: boolean;
116
+ };
117
+ "content-type-builder": {
118
+ visible: boolean;
119
+ };
120
+ };
121
+ attributes: {
122
+ name: {
123
+ type: string;
124
+ required: boolean;
125
+ };
126
+ category: {
127
+ type: string;
128
+ default: string;
129
+ };
130
+ structure: {
131
+ type: string;
132
+ required: boolean;
133
+ };
134
+ thumbnail: {
135
+ type: string;
136
+ default: string;
137
+ };
138
+ };
139
+ };
140
+ };
141
+ 'ci-menu': {
142
+ schema: {
143
+ kind: string;
144
+ collectionName: string;
145
+ info: {
146
+ singularName: string;
147
+ pluralName: string;
148
+ displayName: string;
149
+ description: string;
150
+ };
151
+ options: {
152
+ draftAndPublish: boolean;
153
+ };
154
+ pluginOptions: {
155
+ "content-manager": {
156
+ visible: boolean;
157
+ };
158
+ "content-type-builder": {
159
+ visible: boolean;
160
+ };
161
+ };
162
+ attributes: {
163
+ name: {
164
+ type: string;
165
+ required: boolean;
166
+ };
167
+ slug: {
168
+ type: string;
169
+ required: boolean;
170
+ };
171
+ mode: {
172
+ type: string;
173
+ default: string;
174
+ };
175
+ items: {
176
+ type: string;
177
+ required: boolean;
178
+ };
179
+ options: {
180
+ type: string;
181
+ };
182
+ };
183
+ };
184
+ };
185
+ };
186
+ };
187
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const register: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => void;
5
+ export default register;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ admin: {
3
+ type: string;
4
+ routes: {
5
+ method: string;
6
+ path: string;
7
+ handler: string;
8
+ config: {
9
+ policies: any[];
10
+ };
11
+ }[];
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const ciMenuService: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => {
5
+ findAll(): Promise<any[]>;
6
+ save(data: {
7
+ id?: number | string;
8
+ name: string;
9
+ slug?: string;
10
+ mode?: string;
11
+ items: any[];
12
+ options?: Record<string, any>;
13
+ }): Promise<any>;
14
+ remove(idOrDocId: string | number): Promise<{
15
+ success: boolean;
16
+ }>;
17
+ getEntityTypes(): {
18
+ uid: string;
19
+ displayName: string;
20
+ singularName: string;
21
+ pluralName: string;
22
+ kind: string;
23
+ titleField: string;
24
+ slugField: string | null;
25
+ parentField: string | null;
26
+ }[];
27
+ searchEntities(params: {
28
+ uid?: string;
29
+ q?: string;
30
+ tree?: boolean;
31
+ }): Promise<{
32
+ meta: any;
33
+ items: any[];
34
+ }>;
35
+ };
36
+ export default ciMenuService;
@@ -0,0 +1,16 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const ciTemplateService: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => {
5
+ findAll(): Promise<any[]>;
6
+ create(data: {
7
+ name: string;
8
+ category?: string;
9
+ structure: any;
10
+ thumbnail?: string;
11
+ }): Promise<any>;
12
+ remove(idOrDocId: string | number): Promise<{
13
+ success: boolean;
14
+ }>;
15
+ };
16
+ export default ciTemplateService;
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ 'ci-template': ({ strapi }: {
3
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
4
+ }) => {
5
+ findAll(): Promise<any[]>;
6
+ create(data: {
7
+ name: string;
8
+ category?: string;
9
+ structure: any;
10
+ thumbnail?: string;
11
+ }): Promise<any>;
12
+ remove(idOrDocId: string | number): Promise<{
13
+ success: boolean;
14
+ }>;
15
+ };
16
+ 'ci-menu': ({ strapi }: {
17
+ strapi: import('@strapi/types/dist/core/strapi.js').Strapi;
18
+ }) => {
19
+ findAll(): Promise<any[]>;
20
+ save(data: {
21
+ id?: number | string;
22
+ name: string;
23
+ slug?: string;
24
+ mode?: string;
25
+ items: any[];
26
+ options?: Record<string, any>;
27
+ }): Promise<any>;
28
+ remove(idOrDocId: string | number): Promise<{
29
+ success: boolean;
30
+ }>;
31
+ getEntityTypes(): {
32
+ uid: string;
33
+ displayName: string;
34
+ singularName: string;
35
+ pluralName: string;
36
+ kind: string;
37
+ titleField: string;
38
+ slugField: string | null;
39
+ parentField: string | null;
40
+ }[];
41
+ searchEntities(params: {
42
+ uid?: string;
43
+ q?: string;
44
+ tree?: boolean;
45
+ }): Promise<{
46
+ meta: any;
47
+ items: any[];
48
+ }>;
49
+ };
50
+ };
51
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,98 @@
1
1
  {
2
2
  "name": "@ozguraltan/strapi-content-input",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.6",
4
+ "description": "Locomotive CMS ContentInput visual page/content builder ported to Strapi v5 as a native JSONB Custom Field plugin.",
5
+ "license": "MIT",
6
+ "author": "Ozgur Altan <ozguraltan05@gmail.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://gitlab.com/ozguraltan/strapi-content-input.git"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "keywords": [
15
+ "strapi",
16
+ "strapi-plugin",
17
+ "custom-field",
18
+ "page-builder",
19
+ "visual-editor",
20
+ "content-input",
21
+ "jsonb"
22
+ ],
23
+ "strapi": {
24
+ "name": "content-input",
25
+ "displayName": "Content Input (Visual Builder)",
26
+ "description": "3-panel visual page & content builder storing hierarchical Row -> Block -> Widget JSONB data",
27
+ "kind": "plugin"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "README.md",
32
+ "package.json"
33
+ ],
34
+ "exports": {
35
+ "./package.json": "./package.json",
36
+ "./strapi-admin": {
37
+ "types": "./dist/admin/src/index.d.ts",
38
+ "source": "./admin/src/index.ts",
39
+ "import": "./dist/admin/index.mjs",
40
+ "require": "./dist/admin/index.js",
41
+ "default": "./dist/admin/index.js"
42
+ },
43
+ "./strapi-server": {
44
+ "types": "./dist/server/src/index.d.ts",
45
+ "source": "./server/src/index.ts",
46
+ "import": "./dist/server/index.mjs",
47
+ "require": "./dist/server/index.js",
48
+ "default": "./dist/server/index.js"
49
+ }
50
+ },
51
+ "scripts": {
52
+ "predev": "npm run build",
53
+ "dev": "npm --prefix playground run dev",
54
+ "predevelop": "npm run build",
55
+ "develop": "npm --prefix playground run develop",
56
+ "prestart": "npm run build",
57
+ "start": "npm --prefix playground run start",
58
+ "build:playground": "npm --prefix playground run build",
59
+ "build": "strapi-plugin build",
60
+ "watch": "strapi-plugin watch",
61
+ "watch:link": "strapi-plugin watch:link",
62
+ "verify": "strapi-plugin verify",
63
+ "ts:front": "tsc -p admin/tsconfig.json --noEmit",
64
+ "ts:back": "tsc -p server/tsconfig.json --noEmit",
65
+ "db:up": "docker compose up -d",
66
+ "db:down": "docker compose down"
67
+ },
68
+ "dependencies": {
69
+ "@strapi/design-system": "^2.0.0",
70
+ "@strapi/icons": "^2.0.0",
71
+ "lodash": "^4.17.21",
72
+ "react-intl": "^6.6.2"
73
+ },
74
+ "devDependencies": {
75
+ "@strapi/sdk-plugin": "^6.1.1",
76
+ "@strapi/strapi": "5.61.1",
77
+ "@types/lodash": "^4.17.13",
78
+ "@types/node": "^22.0.0",
79
+ "@types/react": "^18.3.3",
80
+ "@types/react-dom": "^18.3.0",
81
+ "pg": "^8.23.1",
82
+ "prettier": "^3.3.3",
83
+ "react": "^18.3.1",
84
+ "react-dom": "^18.3.1",
85
+ "react-router-dom": "^6.30.3",
86
+ "styled-components": "^6.1.13",
87
+ "typescript": "^5.7.2"
88
+ },
89
+ "peerDependencies": {
90
+ "@strapi/design-system": "^2.0.0",
91
+ "@strapi/icons": "^2.0.0",
92
+ "@strapi/strapi": "^5.0.0",
93
+ "react": "^17.0.0 || ^18.0.0",
94
+ "react-dom": "^17.0.0 || ^18.0.0",
95
+ "react-router-dom": "^6.0.0",
96
+ "styled-components": "^6.0.0"
97
+ }
98
+ }