@ozguraltan/strapi-content-input 1.0.4 → 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.
- package/dist/admin/{ContentInputField-CmfnTMVL.js → ContentInputField-BM2WS_KZ.js} +10032 -5696
- package/dist/admin/{ContentInputField-DWTaFM9i.mjs → ContentInputField-D6rlm6Te.mjs} +10033 -5697
- package/dist/admin/en-D7v9nv9J.mjs +9 -0
- package/dist/admin/{en-BRL85DLZ.js → en-DF-a59T_.js} +3 -1
- package/dist/admin/{index-DhJXTZlO.mjs → index-BA2XyNVO.mjs} +6 -6
- package/dist/admin/{index-C7Z1NWlp.js → index-IuCWhUHI.js} +6 -6
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/editor/CanvasNodes.d.ts +1 -0
- package/dist/admin/src/components/editor/inspector/StyleControls.d.ts +49 -0
- package/dist/admin/src/components/editor/inspector/UnitInput.d.ts +18 -0
- package/dist/admin/src/components/widgets/TabAccordionEditor.d.ts +1 -1
- package/dist/admin/src/components/widgets/WidgetEditor.d.ts +2 -0
- package/dist/admin/src/core/EditorContext.d.ts +10 -0
- package/dist/admin/src/core/canvasClasses.d.ts +12 -0
- package/dist/admin/src/core/devices.d.ts +19 -11
- package/dist/admin/src/core/i18n.d.ts +5 -2
- package/dist/admin/src/core/presets.d.ts +27 -7
- package/dist/admin/src/core/treeOps.d.ts +1 -1
- package/dist/admin/src/core/types.d.ts +7 -0
- package/dist/admin/{tr-Dg7KhusF.mjs → tr-ByHzf64V.mjs} +3 -1
- package/dist/admin/{tr-BmB19xV-.js → tr-SNvSmKZQ.js} +3 -1
- package/package.json +8 -1
- package/dist/admin/en-ua8BQs0I.mjs +0 -7
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const en = {
|
|
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 13 widgets",
|
|
4
|
+
"content-input.options.advanced.requiredField": "Required field",
|
|
5
|
+
"content-input.options.advanced.requiredField.description": "You will not be able to create an entry if this field is empty"
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
en as default
|
|
9
|
+
};
|
|
@@ -2,6 +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 13 widgets"
|
|
5
|
+
"content-input.plugin.description": "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets",
|
|
6
|
+
"content-input.options.advanced.requiredField": "Required field",
|
|
7
|
+
"content-input.options.advanced.requiredField.description": "You will not be able to create an entry if this field is empty"
|
|
6
8
|
};
|
|
7
9
|
exports.default = en;
|
|
@@ -113,15 +113,15 @@ const index = {
|
|
|
113
113
|
type: "json",
|
|
114
114
|
intlLabel: {
|
|
115
115
|
id: `${PLUGIN_ID}.plugin.name`,
|
|
116
|
-
defaultMessage: "Content Input (
|
|
116
|
+
defaultMessage: "Content Input (Visual Page Builder)"
|
|
117
117
|
},
|
|
118
118
|
intlDescription: {
|
|
119
119
|
id: `${PLUGIN_ID}.plugin.description`,
|
|
120
|
-
defaultMessage: "
|
|
120
|
+
defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets"
|
|
121
121
|
},
|
|
122
122
|
icon: PluginIcon,
|
|
123
123
|
components: {
|
|
124
|
-
Input: async () => import("./ContentInputField-
|
|
124
|
+
Input: async () => import("./ContentInputField-D6rlm6Te.mjs").then((mod) => ({
|
|
125
125
|
default: mod.ContentInputField
|
|
126
126
|
}))
|
|
127
127
|
},
|
|
@@ -136,11 +136,11 @@ const index = {
|
|
|
136
136
|
type: "checkbox",
|
|
137
137
|
intlLabel: {
|
|
138
138
|
id: `${PLUGIN_ID}.options.advanced.requiredField`,
|
|
139
|
-
defaultMessage: "
|
|
139
|
+
defaultMessage: "Required field"
|
|
140
140
|
},
|
|
141
141
|
description: {
|
|
142
142
|
id: `${PLUGIN_ID}.options.advanced.requiredField.description`,
|
|
143
|
-
defaultMessage: "
|
|
143
|
+
defaultMessage: "You will not be able to create an entry if this field is empty"
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
]
|
|
@@ -154,7 +154,7 @@ const index = {
|
|
|
154
154
|
async registerTrads({ locales }) {
|
|
155
155
|
const importedTrads = await Promise.all(
|
|
156
156
|
locales.map((locale) => {
|
|
157
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-
|
|
157
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-D7v9nv9J.mjs"), "./translations/tr.json": () => import("./tr-ByHzf64V.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => ({
|
|
158
158
|
data,
|
|
159
159
|
locale
|
|
160
160
|
})).catch(() => ({
|
|
@@ -116,15 +116,15 @@ const index = {
|
|
|
116
116
|
type: "json",
|
|
117
117
|
intlLabel: {
|
|
118
118
|
id: `${PLUGIN_ID}.plugin.name`,
|
|
119
|
-
defaultMessage: "Content Input (
|
|
119
|
+
defaultMessage: "Content Input (Visual Page Builder)"
|
|
120
120
|
},
|
|
121
121
|
intlDescription: {
|
|
122
122
|
id: `${PLUGIN_ID}.plugin.description`,
|
|
123
|
-
defaultMessage: "
|
|
123
|
+
defaultMessage: "Visual page and content builder with rows, 12-column responsive blocks, and 13 widgets"
|
|
124
124
|
},
|
|
125
125
|
icon: PluginIcon,
|
|
126
126
|
components: {
|
|
127
|
-
Input: async () => Promise.resolve().then(() => require("./ContentInputField-
|
|
127
|
+
Input: async () => Promise.resolve().then(() => require("./ContentInputField-BM2WS_KZ.js")).then((mod) => ({
|
|
128
128
|
default: mod.ContentInputField
|
|
129
129
|
}))
|
|
130
130
|
},
|
|
@@ -139,11 +139,11 @@ const index = {
|
|
|
139
139
|
type: "checkbox",
|
|
140
140
|
intlLabel: {
|
|
141
141
|
id: `${PLUGIN_ID}.options.advanced.requiredField`,
|
|
142
|
-
defaultMessage: "
|
|
142
|
+
defaultMessage: "Required field"
|
|
143
143
|
},
|
|
144
144
|
description: {
|
|
145
145
|
id: `${PLUGIN_ID}.options.advanced.requiredField.description`,
|
|
146
|
-
defaultMessage: "
|
|
146
|
+
defaultMessage: "You will not be able to create an entry if this field is empty"
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
]
|
|
@@ -157,7 +157,7 @@ const index = {
|
|
|
157
157
|
async registerTrads({ locales }) {
|
|
158
158
|
const importedTrads = await Promise.all(
|
|
159
159
|
locales.map((locale) => {
|
|
160
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
|
160
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-DF-a59T_.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-SNvSmKZQ.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => ({
|
|
161
161
|
data,
|
|
162
162
|
locale
|
|
163
163
|
})).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-IuCWhUHI.js");
|
|
4
4
|
require("react");
|
|
5
5
|
exports.default = index.index;
|
package/dist/admin/index.mjs
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CIMediaAsset, CIParallaxOptions } from '../../../core/types';
|
|
3
|
+
export interface MarginPaddingEditorProps {
|
|
4
|
+
label: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange: (val: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const MarginPaddingEditor: React.FC<MarginPaddingEditorProps>;
|
|
9
|
+
export interface BorderInputProps {
|
|
10
|
+
label: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
onChange: (val: string) => void;
|
|
13
|
+
onRemove?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const BorderInput: React.FC<BorderInputProps>;
|
|
16
|
+
export interface StyleOptionsEditorProps {
|
|
17
|
+
styleOptions: Record<string, any>;
|
|
18
|
+
onChange: (next: Record<string, any>) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const StyleOptionsEditor: React.FC<StyleOptionsEditorProps>;
|
|
21
|
+
export interface BgOptionsEditorProps {
|
|
22
|
+
bgImage?: CIMediaAsset | null;
|
|
23
|
+
bgOptions?: Record<string, any> | null;
|
|
24
|
+
parallax?: boolean;
|
|
25
|
+
parallaxOptions?: CIParallaxOptions | null;
|
|
26
|
+
showParallax?: boolean;
|
|
27
|
+
onChange: (patch: {
|
|
28
|
+
bgImage?: CIMediaAsset | null;
|
|
29
|
+
bgOptions?: Record<string, any>;
|
|
30
|
+
parallax?: boolean;
|
|
31
|
+
parallaxOptions?: CIParallaxOptions | null;
|
|
32
|
+
}) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare const BgOptionsEditor: React.FC<BgOptionsEditorProps>;
|
|
35
|
+
export interface VisibilityControlProps {
|
|
36
|
+
visibility?: boolean[];
|
|
37
|
+
extraClasses?: string[];
|
|
38
|
+
onChange: (patch: {
|
|
39
|
+
visibility?: boolean[];
|
|
40
|
+
extraClasses?: string[];
|
|
41
|
+
}) => void;
|
|
42
|
+
}
|
|
43
|
+
export declare const VisibilityControl: React.FC<VisibilityControlProps>;
|
|
44
|
+
export interface AlignButtonsProps {
|
|
45
|
+
mode: 'row' | 'block';
|
|
46
|
+
layoutProps?: Record<string, any>;
|
|
47
|
+
onChange: (nextLayoutProps: Record<string, any>) => void;
|
|
48
|
+
}
|
|
49
|
+
export declare const AlignButtons: React.FC<AlignButtonsProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface UnitInputProps {
|
|
3
|
+
value?: string | number | null;
|
|
4
|
+
onChange: (val: string) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
hideSlider?: boolean;
|
|
10
|
+
availableUnits?: string[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function parseUnitValue(raw: string | number | null | undefined, availableUnits?: string[]): {
|
|
15
|
+
num: string;
|
|
16
|
+
unit: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const UnitInput: React.FC<UnitInputProps>;
|
|
@@ -14,7 +14,7 @@ export interface NormalizedTabAccNode {
|
|
|
14
14
|
rows: CIRowNode[];
|
|
15
15
|
}
|
|
16
16
|
export declare function hasMeaningfulHtml(raw?: string | null): boolean;
|
|
17
|
-
export declare function normalizeTabAccNode(raw: any, index: number, fallbackPrefix: string): NormalizedTabAccNode;
|
|
17
|
+
export declare function normalizeTabAccNode(raw: any, index: number, fallbackPrefix: string, defaultLabel?: string): NormalizedTabAccNode;
|
|
18
18
|
export declare function serializeTabAccNode(node: NormalizedTabAccNode): any;
|
|
19
19
|
export interface TabAccordionEditorProps {
|
|
20
20
|
widget: CIWidgetNode;
|
|
@@ -7,4 +7,6 @@ export interface WidgetEditorProps {
|
|
|
7
7
|
options?: Record<string, any>;
|
|
8
8
|
}) => void;
|
|
9
9
|
}
|
|
10
|
+
export declare function extractYoutubeId(input: string): string;
|
|
11
|
+
export declare function extractYoutubeEmbedUrl(input: string): string;
|
|
10
12
|
export declare const WidgetEditor: React.FC<WidgetEditorProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CIRowNode, CIBlockNode, CIWidgetNode, BreakpointKey } from './types';
|
|
3
|
+
import { SupportedLocale } from './i18n';
|
|
3
4
|
export interface SelectionTarget {
|
|
4
5
|
type: 'row' | 'block' | 'widget';
|
|
5
6
|
rowIndex: number;
|
|
@@ -35,6 +36,9 @@ export type DragPayload = {
|
|
|
35
36
|
cols: number[][];
|
|
36
37
|
};
|
|
37
38
|
export interface EditorContextValue {
|
|
39
|
+
locale: SupportedLocale;
|
|
40
|
+
setLocale: (loc: SupportedLocale) => void;
|
|
41
|
+
t: (key: string, fallback?: string) => string;
|
|
38
42
|
rows: CIRowNode[];
|
|
39
43
|
selected: SelectionTarget | null;
|
|
40
44
|
hovered: SelectionTarget | null;
|
|
@@ -132,3 +136,9 @@ export declare const EditorProvider: React.FC<{
|
|
|
132
136
|
children: React.ReactNode;
|
|
133
137
|
}>;
|
|
134
138
|
export declare function useEditorContext(): EditorContextValue;
|
|
139
|
+
export declare function useOptionalEditorContext(): EditorContextValue | null;
|
|
140
|
+
export declare function useEditorTranslator(): {
|
|
141
|
+
locale: SupportedLocale;
|
|
142
|
+
setLocale: (loc: SupportedLocale) => void;
|
|
143
|
+
t: (key: string, fallback?: string) => string;
|
|
144
|
+
};
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CIRowNode, CIBlockNode } from './types';
|
|
3
|
+
export declare const BP_INFIXES: string[];
|
|
4
|
+
/**
|
|
5
|
+
* Helper to extract a 5-breakpoint array [xs, sm, md, lg, xl] from layoutProps
|
|
6
|
+
* supporting both cms-core object keys (e.g. 'align', 'align-sm', 'align-md', ...)
|
|
7
|
+
* and array format (e.g. layoutProps.align = ['center', ...]).
|
|
8
|
+
*/
|
|
9
|
+
export declare function extractResponsiveProp(lp: Record<string, any> | undefined, baseKey: string, camelKey?: string): Array<string | null>;
|
|
10
|
+
/**
|
|
11
|
+
* Writes a responsive property into layoutProps in BOTH array and cms-core key formats
|
|
12
|
+
* so that Strapi JSONB data works seamlessly with cms-core and Nuxt Vuetify/Element-Plus.
|
|
13
|
+
*/
|
|
14
|
+
export declare function setResponsiveProp(lp: Record<string, any> | undefined, baseKey: string, bpIndex: number, value: string | null, camelKey?: string): Record<string, any>;
|
|
3
15
|
export declare function rowCanvasClasses(row?: Partial<CIRowNode>): string[];
|
|
4
16
|
export declare function blockCanvasClasses(block?: Partial<CIBlockNode>): string[];
|
|
5
17
|
export declare function nodeCanvasStyles(node: {
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import { BreakpointKey
|
|
2
|
-
export
|
|
3
|
-
export interface DeviceDefinition {
|
|
1
|
+
import { BreakpointKey } from './types';
|
|
2
|
+
export interface DeviceConfig {
|
|
4
3
|
key: BreakpointKey;
|
|
5
|
-
bpIndex: number;
|
|
6
4
|
label: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
labelTr?: string;
|
|
6
|
+
shortLabel: string;
|
|
7
|
+
bpIndex: number;
|
|
8
|
+
suffix: string;
|
|
9
|
+
minWidth: number;
|
|
10
|
+
maxWidth: number;
|
|
10
11
|
previewWidth: number;
|
|
12
|
+
icon: string;
|
|
13
|
+
tooltip: string;
|
|
14
|
+
tooltipTr?: string;
|
|
11
15
|
}
|
|
12
|
-
export declare const DEVICES:
|
|
13
|
-
export declare const
|
|
16
|
+
export declare const DEVICES: DeviceConfig[];
|
|
17
|
+
export declare const DEVICE_MAP: Record<BreakpointKey, DeviceConfig>;
|
|
18
|
+
export declare function getDevice(key: BreakpointKey): DeviceConfig;
|
|
19
|
+
export declare function getDeviceLabel(d: DeviceConfig, locale?: string): string;
|
|
20
|
+
export declare function getDeviceTooltip(d: DeviceConfig, locale?: string): string;
|
|
21
|
+
export declare function resolveDeviceKeyByWidth(width: number): BreakpointKey;
|
|
14
22
|
export declare const WIDTH_PRESETS: number[];
|
|
15
|
-
export declare
|
|
16
|
-
export declare
|
|
23
|
+
export declare const ZOOM_OPTIONS: Array<'fit' | number>;
|
|
24
|
+
export declare const DEVICE_INDEX_MAP: Record<string, number>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function
|
|
1
|
+
export type SupportedLocale = 'en' | 'tr';
|
|
2
|
+
export declare function getInitialLocale(): SupportedLocale;
|
|
3
|
+
export declare function persistLocale(locale: SupportedLocale): void;
|
|
4
|
+
export declare const translations: Record<SupportedLocale, Record<string, string>>;
|
|
5
|
+
export declare function createTranslator(locale?: string): (key: string, fallback?: string) => string;
|
|
@@ -1,23 +1,43 @@
|
|
|
1
|
+
import { CIRowNode } from './types';
|
|
1
2
|
export interface RowPreset {
|
|
2
3
|
id: string;
|
|
3
4
|
label: string;
|
|
4
|
-
|
|
5
|
+
labelTr?: string;
|
|
5
6
|
cols: number[][];
|
|
7
|
+
bars: number[];
|
|
8
|
+
preview: number[];
|
|
6
9
|
}
|
|
7
10
|
export declare const ROW_PRESETS: RowPreset[];
|
|
8
|
-
export
|
|
9
|
-
key:
|
|
11
|
+
export declare const WIDGET_CATEGORIES: {
|
|
12
|
+
key: string;
|
|
10
13
|
label: string;
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
labelTr: string;
|
|
15
|
+
}[];
|
|
13
16
|
export interface WidgetDefinition {
|
|
14
17
|
id: string;
|
|
15
18
|
label: string;
|
|
19
|
+
labelTr?: string;
|
|
16
20
|
description: string;
|
|
21
|
+
descriptionTr?: string;
|
|
17
22
|
icon: string;
|
|
18
|
-
category: '
|
|
23
|
+
category: 'content' | 'media' | 'layout' | 'interactive';
|
|
24
|
+
defaultData: any;
|
|
25
|
+
defaultOptions?: Record<string, any>;
|
|
19
26
|
}
|
|
20
27
|
export declare const WIDGET_DEFINITIONS: WidgetDefinition[];
|
|
21
28
|
export declare function getWidgetDefinition(id: string): WidgetDefinition | undefined;
|
|
22
|
-
export declare function getDefaultWidgetOptions(id: string): Record<string, any>;
|
|
23
29
|
export declare function getDefaultWidgetData(id: string): any;
|
|
30
|
+
export declare function getDefaultWidgetOptions(id: string): Record<string, any>;
|
|
31
|
+
export declare function getWidgetLabel(def: WidgetDefinition | undefined, locale?: string, fallbackId?: string): string;
|
|
32
|
+
export declare function getWidgetDescription(def: WidgetDefinition | undefined, locale?: string): string;
|
|
33
|
+
export declare function getRowPresetLabel(preset: RowPreset, locale?: string): string;
|
|
34
|
+
export interface SectionTemplate {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
nameTr?: string;
|
|
38
|
+
description: string;
|
|
39
|
+
descriptionTr?: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
build: () => CIRowNode;
|
|
42
|
+
}
|
|
43
|
+
export declare const SECTION_TEMPLATES: SectionTemplate[];
|
|
@@ -3,7 +3,7 @@ export declare function createKey(prefix?: string): string;
|
|
|
3
3
|
export declare function uid(prefix?: string): string;
|
|
4
4
|
export declare function ensureKeys(list?: CIRowNode[] | null): void;
|
|
5
5
|
export declare function ensureIds(list?: CIRowNode[] | null): CIRowNode[];
|
|
6
|
-
export declare function createWidget(widgetId?: string): CIWidgetNode;
|
|
6
|
+
export declare function createWidget(widgetId?: string, customData?: any, customOptions?: Record<string, any>): CIWidgetNode;
|
|
7
7
|
export declare function createBlock(cols?: number[]): CIBlockNode;
|
|
8
8
|
export declare function createRow(blockColsList?: number[][]): CIRowNode;
|
|
9
9
|
export declare function findNode(rows?: CIRowNode[] | null, uId?: string | null): FoundNodeInfo | null;
|
|
@@ -37,10 +37,13 @@ export interface CIBlockNode {
|
|
|
37
37
|
offset?: any;
|
|
38
38
|
layoutProps: Record<string, any>;
|
|
39
39
|
extraClasses?: string[];
|
|
40
|
+
visibility?: boolean[];
|
|
41
|
+
textAlign?: string;
|
|
40
42
|
styleOptions: Record<string, any>;
|
|
41
43
|
bgImage?: CIMediaAsset | null;
|
|
42
44
|
bgOptions?: Record<string, any> | null;
|
|
43
45
|
parallax?: any;
|
|
46
|
+
parallaxOptions?: CIParallaxOptions | null;
|
|
44
47
|
widgets: CIWidgetNode[];
|
|
45
48
|
}
|
|
46
49
|
export interface CIRowNode {
|
|
@@ -48,10 +51,14 @@ export interface CIRowNode {
|
|
|
48
51
|
cols?: number[];
|
|
49
52
|
offset?: any;
|
|
50
53
|
layoutProps: Record<string, any>;
|
|
54
|
+
extraClasses?: string[];
|
|
55
|
+
visibility?: boolean[];
|
|
56
|
+
textAlign?: string;
|
|
51
57
|
styleOptions: Record<string, any>;
|
|
52
58
|
bgImage?: CIMediaAsset | null;
|
|
53
59
|
bgOptions?: Record<string, any> | null;
|
|
54
60
|
parallax?: any;
|
|
61
|
+
parallaxOptions?: CIParallaxOptions | null;
|
|
55
62
|
blocks: CIBlockNode[];
|
|
56
63
|
}
|
|
57
64
|
export interface FoundNodeInfo {
|
|
@@ -1,6 +1,8 @@
|
|
|
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 13 bileşen destekli görsel sayfa/içerik düzenleyici"
|
|
3
|
+
"content-input.plugin.description": "Satır, 12 sütunlu duyarlı blok ve 13 bileşen destekli görsel sayfa/içerik düzenleyici",
|
|
4
|
+
"content-input.options.advanced.requiredField": "Zorunlu alan",
|
|
5
|
+
"content-input.options.advanced.requiredField.description": "Bu alan boş bırakılamaz."
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
8
|
tr as default
|
|
@@ -2,6 +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 13 bileşen destekli görsel sayfa/içerik düzenleyici"
|
|
5
|
+
"content-input.plugin.description": "Satır, 12 sütunlu duyarlı blok ve 13 bileşen destekli görsel sayfa/içerik düzenleyici",
|
|
6
|
+
"content-input.options.advanced.requiredField": "Zorunlu alan",
|
|
7
|
+
"content-input.options.advanced.requiredField.description": "Bu alan boş bırakılamaz."
|
|
6
8
|
};
|
|
7
9
|
exports.default = tr;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ozguraltan/strapi-content-input",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Locomotive CMS ContentInput visual page/content builder ported to Strapi v5 as a native JSONB Custom Field plugin.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ozgur Altan <ozguraltan05@gmail.com>",
|
|
@@ -49,6 +49,13 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
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",
|
|
52
59
|
"build": "strapi-plugin build",
|
|
53
60
|
"watch": "strapi-plugin watch",
|
|
54
61
|
"watch:link": "strapi-plugin watch:link",
|