@ecomcx/ecomweb-editor 1.32.0 → 1.34.0
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/package.json +3 -3
- package/src/locales/en/attrs.ts +2 -1
- package/src/locales/en/background.ts +5 -0
- package/src/locales/en/bindings.ts +5 -1
- package/src/locales/en/block-desc.ts +5 -11
- package/src/locales/en/block-style.ts +17 -6
- package/src/locales/en/block-titles.ts +38 -15
- package/src/locales/en/blocks.ts +37 -6
- package/src/locales/en/columns.ts +1 -0
- package/src/locales/en/controls.ts +1 -1
- package/src/locales/en/hints.ts +315 -12
- package/src/locales/en/index.ts +3 -1
- package/src/locales/en/layout.ts +13 -0
- package/src/locales/en/motion.ts +16 -0
- package/src/locales/en/palette.ts +8 -0
- package/src/locales/en/parts.ts +2 -1
- package/src/locales/en/pattern-overrides.ts +14 -0
- package/src/locales/en/placeholders.ts +9 -3
- package/src/locales/en/v2.ts +2 -0
- package/src/locales/vi/attrs.ts +3 -2
- package/src/locales/vi/background.ts +5 -0
- package/src/locales/vi/bindings.ts +5 -1
- package/src/locales/vi/block-desc.ts +8 -14
- package/src/locales/vi/block-style.ts +18 -7
- package/src/locales/vi/block-titles.ts +48 -25
- package/src/locales/vi/blocks.ts +37 -6
- package/src/locales/vi/columns.ts +1 -0
- package/src/locales/vi/controls.ts +1 -1
- package/src/locales/vi/hints.ts +315 -12
- package/src/locales/vi/index.ts +3 -1
- package/src/locales/vi/layout.ts +13 -0
- package/src/locales/vi/motion.ts +16 -0
- package/src/locales/vi/palette.ts +8 -0
- package/src/locales/vi/parts.ts +2 -1
- package/src/locales/vi/pattern-overrides.ts +14 -0
- package/src/locales/vi/placeholders.ts +10 -4
- package/src/locales/vi/v2.ts +2 -0
- package/src/v2/blocks/columns-inspector.tsx +11 -2
- package/src/v2/blocks/index.ts +9 -6
- package/src/v2/blocks/layout-options.tsx +80 -0
- package/src/v2/blocks/layout.tsx +349 -106
- package/src/v2/blocks/media.tsx +51 -21
- package/src/v2/blocks/resize.tsx +50 -19
- package/src/v2/blocks/social-icons.ts +22 -0
- package/src/v2/blocks/text.tsx +12 -50
- package/src/v2/blocks/theme.tsx +62 -29
- package/src/v2/blocks/tools.tsx +24 -2
- package/src/v2/blocks/widgets.tsx +84 -28
- package/src/v2/canvas/block-list.tsx +36 -5
- package/src/v2/canvas/canvas-css.ts +95 -7
- package/src/v2/canvas/canvas.tsx +65 -9
- package/src/v2/canvas/dnd.ts +7 -0
- package/src/v2/canvas/variation-picker.tsx +63 -0
- package/src/v2/context.tsx +48 -0
- package/src/v2/core/bindings.ts +6 -1
- package/src/v2/core/block-presets.ts +10 -0
- package/src/v2/core/clipboard.ts +5 -5
- package/src/v2/core/host.ts +3 -1
- package/src/v2/core/model.ts +6 -6
- package/src/v2/core/registry.ts +15 -0
- package/src/v2/core/store.ts +9 -9
- package/src/v2/core/structure.ts +1 -3
- package/src/v2/editor.css +74 -0
- package/src/v2/editor.tsx +22 -7
- package/src/v2/text/rich-text.tsx +20 -5
- package/src/v2/ui/ai-markdown.ts +52 -0
- package/src/v2/ui/ai.tsx +81 -14
- package/src/v2/ui/attr-form.tsx +45 -7
- package/src/v2/ui/attr-hints.ts +151 -19
- package/src/v2/ui/background-panel.tsx +22 -0
- package/src/v2/ui/bg-video-preview.tsx +7 -0
- package/src/v2/ui/bindings.tsx +9 -1
- package/src/v2/ui/block-icons.tsx +3 -10
- package/src/v2/ui/block-live-preview.tsx +21 -0
- package/src/v2/ui/block-style-panel.tsx +3 -1
- package/src/v2/ui/command-palette.tsx +125 -0
- package/src/v2/ui/icon-picker.tsx +88 -21
- package/src/v2/ui/icon-svg.tsx +21 -0
- package/src/v2/ui/inserter.tsx +72 -17
- package/src/v2/ui/inspector.tsx +12 -6
- package/src/v2/ui/layout-panel.tsx +1 -1
- package/src/v2/ui/motion-panel.tsx +22 -13
- package/src/v2/ui/option-thumbs.tsx +81 -0
- package/src/v2/ui/pattern-library.tsx +2 -1
- package/src/v2/ui/pattern-overrides.tsx +67 -0
- package/src/v2/ui/placeholders.tsx +21 -2
- package/src/v2/ui/preset-bar.tsx +5 -5
- package/src/v2/ui/style-supports.ts +2 -3
- package/src/v2/ui/style-tab.tsx +83 -20
- package/src/v2/ui/toolbar.tsx +40 -6
- package/src/v2/ui/transform-panel.tsx +77 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecomcx/ecomweb-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "Trình soạn nội dung dạng khối của CMS — dùng độc lập trong mọi dự án React (1.x: TipTap; ./v2: cây khối, khung soạn iframe, sửa header/footer tại chỗ).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"*.css"
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@ecomcx/ecomweb-content": "^1.
|
|
32
|
+
"@ecomcx/ecomweb-content": "^1.28.1",
|
|
33
33
|
"react": ">=18",
|
|
34
34
|
"react-dom": ">=18"
|
|
35
35
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"prosemirror-view": "1.42.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@ecomcx/ecomweb-content": "^1.
|
|
48
|
+
"@ecomcx/ecomweb-content": "^1.28.1",
|
|
49
49
|
"@playwright/test": "1.53.0",
|
|
50
50
|
"@types/react": "19.2.2",
|
|
51
51
|
"@types/react-dom": "19.2.2",
|
package/src/locales/en/attrs.ts
CHANGED
|
@@ -91,7 +91,8 @@ export const attrs = {
|
|
|
91
91
|
suffix: "Suffix",
|
|
92
92
|
duration: "Duration (ms)",
|
|
93
93
|
showValue: "Show percentage",
|
|
94
|
-
slidesPerView: "Slides
|
|
94
|
+
slidesPerView: "Slides in view (desktop)", slidesTablet: "Slides in view (tablet)", slidesMobile: "Slides in view (phone)",
|
|
95
|
+
arrows: "Previous / next arrows", dots: "Position dots below", autoplay: "Autoplay", interval: "Seconds between slides", loop: "Loop back to the first slide", gap: "Space between slides",
|
|
95
96
|
max: "Maximum",
|
|
96
97
|
display: "Display",
|
|
97
98
|
depth: "Levels shown",
|
|
@@ -17,10 +17,15 @@ export const background = {
|
|
|
17
17
|
focal: "Focal point",
|
|
18
18
|
repeat: "Repeat image",
|
|
19
19
|
fixed: "Fixed while scrolling (parallax, desktop only)",
|
|
20
|
+
video: "Background video (mp4 / webm)",
|
|
21
|
+
videoHint: "Plays automatically, muted, looped, behind the content. A path in your site (/uploads/…) or https. Pauses for visitors who reduce motion.",
|
|
20
22
|
overlay: "Overlay",
|
|
21
23
|
opacity: "Overlay strength",
|
|
22
24
|
overlayTitle: "Background overlay",
|
|
23
25
|
overlayType: "Overlay type",
|
|
26
|
+
imageOpacity: "Background image opacity",
|
|
27
|
+
imageBlur: "Background image blur",
|
|
28
|
+
imageBlend: "Blend image with background color",
|
|
24
29
|
overlayBlend: "Blend with background",
|
|
25
30
|
blendNormal: "Normal",
|
|
26
31
|
blend_multiply: "Multiply",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const bindings = {
|
|
3
3
|
panelTitle: "Bind data",
|
|
4
4
|
panelHelp: "Show a value from site data at render time (post title, meta field, plugin data…) instead of typed text.",
|
|
5
|
-
notBound: "— Not bound —",
|
|
5
|
+
notBound: "— Not bound —", hideIfEmpty: "Hide the block when the source has no value",
|
|
6
6
|
unbind: "Unbind",
|
|
7
7
|
source: "source",
|
|
8
8
|
field: "field",
|
|
@@ -12,6 +12,10 @@ export const bindings = {
|
|
|
12
12
|
attrCaption: "Caption",
|
|
13
13
|
attrText: "Button text",
|
|
14
14
|
attrHref: "Link",
|
|
15
|
+
attrTitle: "Title", attrSubtitle: "Subtitle", attrQuote: "Quote", attrName: "Name", attrRole: "Role", attrPoster: "Poster image", attrAddress: "Address",
|
|
16
|
+
attrPlaceholder: "Placeholder", attrButtonText: "Button text", attrSummary: "Item title", attrCitation: "Citation", attrLabel: "Label", attrTooltip: "Hover tooltip",
|
|
17
|
+
attrPrefix: "Prefix", attrSuffix: "Suffix", attrTarget: "Target time",
|
|
18
|
+
fFeaturedImageAlt: "Featured image alt", fCategory: "First category", fModified: "Modified date", fComments: "Comment count", fAuthorAvatar: "Author avatar", fAuthorBio: "Author bio", fSlug: "Slug",
|
|
15
19
|
srcPost: "Current post",
|
|
16
20
|
srcPostMeta: "Post meta field",
|
|
17
21
|
srcSite: "Site",
|
|
@@ -4,28 +4,23 @@ export const blockDesc = {
|
|
|
4
4
|
heading: "Introduce sections and organise content for readers and search engines.",
|
|
5
5
|
bulletList: "A bulleted list — marker type (✓, →…), marker colour, spacing and dividers in Style.",
|
|
6
6
|
orderedList: "A numbered list.",
|
|
7
|
-
taskList: "A checklist.",
|
|
8
7
|
blockquote: "Give quoted text visual emphasis.",
|
|
9
8
|
codeBlock: "Display code snippets that respect spacing.",
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
testimonials: "Several customer testimonials in a grid or as a slider.",
|
|
10
|
+
popup: "A button that opens a dialog with content (a form, an image, product details…).",
|
|
12
11
|
details: "Hide content until the visitor opens it (FAQ…).",
|
|
13
12
|
table: "Rows and columns of data; cells can be merged.",
|
|
14
13
|
image: "An image with caption and alt text; drag to resize.",
|
|
15
14
|
gallery: "Several images in a grid.",
|
|
16
15
|
cover: "A covering image (or colour / gradient) with an overlay and text on top — a page hero; image, focal point and overlay in Background.",
|
|
17
|
-
mediaText: "Media and text side by side for a richer layout.",
|
|
18
16
|
video: "An uploaded or linked video.",
|
|
19
17
|
audio: "An audio player.",
|
|
20
18
|
file: "A downloadable file (PDF…), optionally embedded.",
|
|
21
|
-
youtube: "Embed a YouTube video.",
|
|
22
19
|
embed: "Embed content from a URL.",
|
|
23
20
|
group: "Gather blocks in a container: Background (colour, gradient, image + overlay) right in Settings, spacing, row / stack / grid layout.",
|
|
24
21
|
columns: "Display content in columns; drag to resize.",
|
|
25
22
|
buttons: "Prompt visitors to take action with buttons.",
|
|
26
|
-
spacer: "
|
|
27
|
-
horizontalRule: "Separate sections with a line.",
|
|
28
|
-
callout: "Highlight a tip or warning.",
|
|
23
|
+
spacer: "White space between blocks, optionally with a dividing line.",
|
|
29
24
|
customHtml: "Add custom (sanitised) HTML.",
|
|
30
25
|
socialLinks: "Icons linking to social profiles.",
|
|
31
26
|
tableOfContents: "An automatic table of contents from headings.",
|
|
@@ -62,8 +57,6 @@ export const blockDesc = {
|
|
|
62
57
|
countdown: "Countdown timer to a date (sale, event).",
|
|
63
58
|
rating: "Star rating (e.g. 4.5 / 5).",
|
|
64
59
|
icon: "Small icon (check, star, phone…) with size and colour.",
|
|
65
|
-
footnotes: "Numbered footnotes at the end of the post.",
|
|
66
|
-
pageBreak: "Split the post into several pages.",
|
|
67
60
|
readMore: "“Read more” link to the post (in post lists).",
|
|
68
61
|
commentsCount: "Number of comments on the post.",
|
|
69
62
|
avatar: "The post author’s avatar.",
|
|
@@ -73,15 +66,16 @@ export const blockDesc = {
|
|
|
73
66
|
pageList: "The site’s pages, by level.",
|
|
74
67
|
archives: "Links to posts by month.",
|
|
75
68
|
postTemplate: "How each post looks inside a post list.",
|
|
69
|
+
queryFilter: "Filter bar for a post list: search, pick a category, sort. Turn on \"Use the filter bar\" on the post list block.",
|
|
76
70
|
pagination: "Previous / next and page numbers for a post list.",
|
|
77
71
|
queryEmpty: "Content shown when the post list is empty.",
|
|
78
72
|
syncedPattern: "Shared pattern — edit once, changes on every page using it.",
|
|
79
73
|
listItem: "One list item.",
|
|
80
|
-
taskItem: "One to-do with a checkbox.",
|
|
81
74
|
tableRow: "One table row.",
|
|
82
75
|
tableHeader: "Table header cell.",
|
|
83
76
|
tableCell: "One table cell.",
|
|
84
77
|
iconBox: "Icon + title + description (feature / service card), optional link; icon on top or to the left.",
|
|
78
|
+
imageOverlay: "An image with a colour layer, frame and text that appear on hover — category cards, collections, projects.",
|
|
85
79
|
imageBox: "Image + title + description (service / product / location card), optional link.",
|
|
86
80
|
iconList: "List with an icon at the start of each line (benefits, checklist, contact details), vertical or inline; each item can link.",
|
|
87
81
|
counter: "Highlighted number (e.g. 1,200+ customers) that counts up when scrolled into view; prefix / suffix and label.",
|
|
@@ -8,20 +8,28 @@ export const blockStyle: (typeof vi)["blockStyle"] = {
|
|
|
8
8
|
hover: "Hover",
|
|
9
9
|
active: "Active",
|
|
10
10
|
section: {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
textFx: "Text effects",
|
|
12
|
+
logoLayout: "Logo per screen size",
|
|
13
|
+
listLayout: "List layout", buttonsLayout: "Buttons layout", textLayout: "Text layout", quoteLayout: "Quote layout", quote: "Quote", codeLayout: "Code display", code: "Code", socialLayout: "Icons layout", navLayout: "Menu layout", nav: "Menu", groupLayout: "Group box",
|
|
14
|
+
text: "Text", list: "List", button: "Button", image: "Image", table: "Table", tableBorder: "Table border", tableScroll: "Scroll & sticky", tabs: "Tabs", accordion: "Accordion", columns: "Columns",
|
|
15
|
+
map: "Map", separator: "Separator", icon: "Icon", content: "Title & text", number: "Number", box: "Box", bar: "Bar",
|
|
13
16
|
},
|
|
14
17
|
attr: {
|
|
15
18
|
textShadow: "Text shadow",
|
|
19
|
+
buttonUnderline: "Underline text", buttonHoverUnderline: "Underline text", accContentMinHeight: "Content min height", imageMask: "Shape mask", mapFilter: "Colour filter", mapRadius: "Radius",
|
|
20
|
+
textIconColor: "Icon color", textIconSize: "Icon size", textIconGap: "Icon – text gap",
|
|
21
|
+
iconColor: "Icon color", iconHoverColor: "Icon color", iconBg: "Background", iconHoverBg: "Background", iconBorderWidth: "Border width", iconBorderColor: "Border color", iconHoverBorderColor: "Border color", iconRadius: "Radius", iconPad: "Padding", iconShadow: "Shadow", iconRotate: "Rotate", iconHoverEffect: "Effect",
|
|
22
|
+
iconBoxIconHoverColor: "Icon color", iconBoxIconBg: "Icon background", iconBoxIconHoverBg: "Icon background", iconBoxIconBorderWidth: "Icon border width", iconBoxIconBorderColor: "Icon border color", iconBoxIconRadius: "Icon radius", iconBoxIconPad: "Icon padding", iconBoxTitleHoverColor: "Title color", iconBoxTextHoverColor: "Description color", iconBoxHoverBg: "Box background", iconBoxHoverBorderColor: "Box border",
|
|
23
|
+
iconListIconHoverColor: "Icon color", iconListTextHoverColor: "Text color", iconListIconBg: "Icon background", iconListIconRadius: "Icon radius", iconListIconPad: "Icon padding", iconListTextSize: "Text size",
|
|
16
24
|
listMarker: "Marker type", listMarkerColor: "Marker color", listGap: "Space between", listDivider: "Divider",
|
|
17
25
|
buttonColor: "Text color", buttonBg: "Background color", buttonHoverColor: "Text color", buttonHoverBg: "Background color", buttonWidth: "Fixed width", buttonIconColor: "Icon color", buttonIconHoverColor: "Icon color", buttonIconSize: "Icon size", buttonSize: "Size", buttonRadius: "Border radius", buttonWeight: "Font weight", buttonShadow: "Box shadow",
|
|
18
26
|
imageWidth: "Width", imageHeight: "Height", imageFit: "Object fit", imageRadius: "Border radius", imageBorderWidth: "Border width", imageBorderColor: "Border color", imageShadow: "Box shadow",
|
|
19
27
|
imageOpacity: "Opacity", imageFilter: "CSS filter", imageHoverEffect: "Hover animation", imageHoverOpacity: "Opacity", imageHoverFilter: "CSS filter",
|
|
20
|
-
tableBorderColor: "Cell border color", tableBorderWidth: "Cell border width", tableHeaderBg: "Header background", tableHeaderColor: "Header text", tableStripe: "Striped rows", tableCellPadding: "Cell padding", tableAlign: "Cell alignment",
|
|
28
|
+
tableBorderColor: "Cell border color", tableBorderWidth: "Cell border width", tableHeaderBg: "Header background", tableHeaderColor: "Header text", tableStripe: "Striped rows", tableCellPadding: "Cell padding", tableAlign: "Cell alignment", listColumns: "Columns", listLayout: "Inline (items in one row)", listAlign: "Align", listIndent: "Indent", hrGap: "Space above / below", buttonsGap: "Gap between buttons", buttonsDirection: "Direction", buttonsFill: "Stretch buttons to fill row", buttonsVAlign: "Vertical align", textColumns: "Text columns", textColumnGap: "Column gap", dropCap: "Drop cap (lines)", textMaxWidth: "Max width", quoteAlign: "Text align", quoteBorderStyle: "Left bar style", quoteBorderWidth: "Bar width", quoteBorderColor: "Bar color", quoteColor: "Text color", codeWrap: "Wrap lines", codeMaxHeight: "Max height (scroll)", codeTabSize: "Tab size", codeBg: "Background", codeColor: "Text color", socialShape: "Button shape", socialGap: "Gap", socialDirection: "Direction", navJustify: "Align items", navGap: "Gap between items", navHoverLine: "Line on hover", navColor: "Text color", navHoverColor: "Text color", logoWidth: "Width per screen size", logoAlign: "Align", textStrokeWidth: "Text stroke width", textStrokeColor: "Text stroke color", textBlend: "Blend with background", groupMinHeight: "Min height", groupOverflow: "Overflow", tableHeadAlign: "Header text align", tableVAlign: "Vertical align", tableCellColor: "Cell text", tableStripeOdd: "Odd rows", tableFootBg: "Footer background", tableFootColor: "Footer text", tableBorderStyle: "Border style", tableCollapse: "Border model", tableSpacing: "Cell spacing", tableRadius: "Table radius", tableHoverRowBg: "Row background", tableHoverRowColor: "Row text", tableMinWidth: "Min width (scrolls sideways on phones)", tableMaxHeight: "Max height (scrolls)", tableFirstColSticky: "Sticky first column",
|
|
21
29
|
tabsTitleColor: "Title color", tabsTitleBg: "Title background", tabsActiveColor: "Title color", tabsActiveBg: "Title background", tabsAccent: "Underline", tabsBorderColor: "Divider color", tabsGap: "Space between titles", tabsContentPadding: "Content padding",
|
|
22
30
|
accTitleColor: "Title color", accTitleBg: "Title background", accActiveColor: "Title color", accBorderColor: "Border color", accGap: "Space between", accPadding: "Padding",
|
|
23
31
|
columnsGap: "Columns gap", columnsDirection: "Direction", tabsTitleWidth: "Tab title width", tabsPanelMinHeight: "Content min height", searchPlaceholderColor: "Placeholder colour", searchMaxWidth: "Search box max width", galleryGap: "Image gap", tabsAlign: "Tab title alignment",
|
|
24
|
-
hrStyle: "
|
|
32
|
+
hrStyle: "Line style", hrWeight: "Weight", hrColor: "Color", hrWidth: "Width", hrAlign: "Alignment",
|
|
25
33
|
iconBoxIconColor: "Icon color", iconBoxIconSize: "Icon size", iconBoxImageWidth: "Image width", iconBoxTitleColor: "Title color", iconBoxTextColor: "Description color",
|
|
26
34
|
imageBoxRadius: "Image radius", imageBoxTitleColor: "Title color", imageBoxTextColor: "Description color",
|
|
27
35
|
iconListGap: "Space between", iconListColumnGap: "Column gap", iconListIconGap: "Icon – text gap", iconListDivider: "Divider", iconListIconColor: "Icon color", iconListIconSize: "Icon size", iconListTextColor: "Text color",
|
|
@@ -30,14 +38,17 @@ export const blockStyle: (typeof vi)["blockStyle"] = {
|
|
|
30
38
|
progressBarColor: "Bar color", progressTrackColor: "Track color", progressHeight: "Bar height", progressTitleColor: "Title color",
|
|
31
39
|
},
|
|
32
40
|
opt: {
|
|
33
|
-
|
|
41
|
+
multiply: "Multiply", screen: "Screen", overlay: "Overlay", darken: "Darken", lighten: "Lighten", difference: "Difference", exclusion: "Exclusion",
|
|
42
|
+
flex: "On", "pre-wrap": "On", "1": "1", overline: "Overline", hidden: "Clip", visible: "Show", auto: "Scroll", pill: "Round", "2": "2", "3": "3", "4": "4", "8": "8",
|
|
43
|
+
invert: "Invert", blob: "Blob", hexagon: "Hexagon", diamond: "Diamond", triangle: "Triangle", heart: "Heart", star: "Star", arch: "Arch", underline: "Underline", sm: "Small", md: "Medium", lg: "Large", xl: "Extra large", xs: "Extra small",
|
|
34
44
|
disc: "• Disc", circle: "○ Circle", square: "■ Square", decimal: "1. Number", "decimal-leading-zero": "01. Zero-padded", "lower-alpha": "a. Lowercase", "upper-alpha": "A. Uppercase",
|
|
35
45
|
"lower-roman": "i. Roman", "upper-roman": "I. Roman", check: "✓ Check", arrow: "→ Arrow", dash: "– Dash", none: "None",
|
|
36
46
|
cover: "Cover", contain: "Contain",
|
|
37
47
|
grayscale: "Grayscale", sepia: "Sepia", blur: "Blur", bright: "Brighter", dim: "Darker", saturate: "Saturate",
|
|
38
|
-
zoom: "Zoom", lift: "Lift", tilt: "Tilt",
|
|
48
|
+
zoom: "Zoom", lift: "Lift", tilt: "Tilt", grow: "Grow", shrink: "Shrink", rotate: "Slight rotate", spin: "Spin", "45": "45°", "90": "90°", "135": "135°", "180": "180°", "270": "270°",
|
|
39
49
|
"flex-start": "Left", "flex-end": "Right", "space-between": "Spread",
|
|
40
50
|
start: "Start", center: "Center", end: "End",
|
|
51
|
+
top: "Top", middle: "Middle", bottom: "Bottom", collapse: "Joined", separate: "Separate", sticky: "Sticky",
|
|
41
52
|
row: "Row", "row-reverse": "Row, reversed", column: "Stacked", "column-reverse": "Stacked, reversed",
|
|
42
53
|
solid: "Solid", dashed: "Dashed", dotted: "Dotted", double: "Double",
|
|
43
54
|
"400": "Regular", "500": "Medium", "600": "Semi-bold", "700": "Bold", "800": "Extra bold",
|
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
/** Block names shown in the inserter / list view (key = block type, or "block/variation"). Blocks that have a label in the v2 group (paragraph, heading, image…) take their name from v2. */
|
|
2
2
|
export const blockTitles = {
|
|
3
|
+
embed: "Embed",
|
|
4
|
+
icon: "Icon",
|
|
5
|
+
shortcode: "Shortcode",
|
|
6
|
+
carousel: "Slider",
|
|
7
|
+
button: "Button",
|
|
8
|
+
buttons: "Advanced Button",
|
|
9
|
+
group: "Group",
|
|
10
|
+
image: "Image",
|
|
11
|
+
cover: "Cover",
|
|
12
|
+
table: "Table",
|
|
13
|
+
tabs: "Tabs",
|
|
14
|
+
accordion: "Accordion",
|
|
15
|
+
codeBlock: "Code",
|
|
16
|
+
blockquote: "Quote",
|
|
17
|
+
orderedList: "Numbered List",
|
|
18
|
+
bulletList: "List",
|
|
19
|
+
heading: "Advanced Heading",
|
|
20
|
+
paragraph: "Paragraph",
|
|
21
|
+
spacer: "Spacer / Divider",
|
|
22
|
+
columns: "Row Layout",
|
|
23
|
+
"testimonials/slider": "Testimonials Slider",
|
|
24
|
+
"carousel/hero": "Hero Slider",
|
|
25
|
+
column: "Column",
|
|
26
|
+
customHtml: "Custom HTML",
|
|
3
27
|
listItem: "List item",
|
|
4
|
-
taskList: "To-do list",
|
|
5
|
-
taskItem: "To-do",
|
|
6
28
|
"group/row": "Row",
|
|
7
29
|
"group/stack": "Stack",
|
|
8
30
|
"group/grid": "Grid",
|
|
9
|
-
|
|
31
|
+
"group/section": "Section", "group/section-light": "Light section", "group/section-brand": "Brand-colour section", "group/section-dark": "Dark section",
|
|
10
32
|
tableRow: "Row",
|
|
11
33
|
tableCell: "Cell",
|
|
12
34
|
tableHeader: "Header cell",
|
|
13
|
-
gallery: "Gallery",
|
|
35
|
+
gallery: "Advanced Gallery",
|
|
14
36
|
video: "Video",
|
|
15
37
|
audio: "Audio",
|
|
16
38
|
file: "File",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
tableOfContents: "Table of contents",
|
|
39
|
+
socialLinks: "Social Links",
|
|
40
|
+
tableOfContents: "Table of Contents",
|
|
20
41
|
siteTitle: "Site title",
|
|
21
42
|
siteLogo: "Site logo",
|
|
22
43
|
siteTagline: "Tagline",
|
|
@@ -36,29 +57,31 @@ export const blockTitles = {
|
|
|
36
57
|
termDescription: "Term description",
|
|
37
58
|
breadcrumbs: "Breadcrumb",
|
|
38
59
|
countdown: "Countdown",
|
|
39
|
-
rating: "Star
|
|
60
|
+
rating: "Star Rating",
|
|
40
61
|
readMore: "Read more",
|
|
41
62
|
commentsCount: "Comment count",
|
|
42
63
|
avatar: "Author avatar",
|
|
43
64
|
queryTotal: "Total posts",
|
|
44
65
|
termList: "Category / tag list",
|
|
45
66
|
loginout: "Log in / Log out",
|
|
46
|
-
footnotes: "Footnotes",
|
|
47
|
-
pageBreak: "Page break",
|
|
48
67
|
pageList: "Page list",
|
|
49
68
|
archives: "Monthly archives",
|
|
50
69
|
postNavigation: "Previous / next post",
|
|
51
|
-
query: "Query
|
|
70
|
+
query: "Posts (Query Loop)",
|
|
52
71
|
postTemplate: "Post template",
|
|
72
|
+
queryFilter: "Query Filter",
|
|
53
73
|
pagination: "Pagination",
|
|
54
74
|
queryEmpty: "No results",
|
|
55
75
|
form: "Form",
|
|
56
|
-
formField: "Form
|
|
57
|
-
iconBox: "
|
|
76
|
+
formField: "Form Field",
|
|
77
|
+
iconBox: "Info Box",
|
|
78
|
+
testimonials: "Testimonials",
|
|
79
|
+
popup: "Modal / Popup",
|
|
80
|
+
imageOverlay: "Image Overlay",
|
|
58
81
|
imageBox: "Image Box",
|
|
59
82
|
iconList: "Icon List",
|
|
60
|
-
counter: "
|
|
83
|
+
counter: "Count Up",
|
|
61
84
|
testimonial: "Testimonial",
|
|
62
85
|
progressBar: "Progress Bar",
|
|
63
|
-
|
|
86
|
+
map: "Google Maps",
|
|
64
87
|
};
|
package/src/locales/en/blocks.ts
CHANGED
|
@@ -25,7 +25,8 @@ export const blocks = {
|
|
|
25
25
|
contents: "Contents",
|
|
26
26
|
menu: "Menu",
|
|
27
27
|
noMenuIsAssigned: "No menu is assigned to this location — assign one in Appearance › Menus, or pick another location.",
|
|
28
|
-
|
|
28
|
+
filterAll: "All", filterSearch: "Search this list…", filterSort: "Sort by", filterYear: "Year", filterReset: "Clear filters", filterNewest: "Newest", filterEmpty: "Empty filter bar: turn on search, sort or pick a taxonomy in the right panel",
|
|
29
|
+
searchLabel: "Search", searchScope: "Search in", searchAll: "All", searchPlaceholder: "Search the site…", searchButton: "Search",
|
|
29
30
|
categoryName: "Category name",
|
|
30
31
|
category: "Category: ",
|
|
31
32
|
theDescriptionOfThe: "The description of the category / tag being viewed.",
|
|
@@ -58,10 +59,44 @@ export const blocks = {
|
|
|
58
59
|
fieldName: "Full name",
|
|
59
60
|
option1: "Option 1",
|
|
60
61
|
option2: "Option 2",
|
|
62
|
+
samplePopupButton: "See details", samplePopupTitle: "Popup title", samplePopupText: "This shows in a dialog when the visitor clicks the button. Add any blocks here.",
|
|
63
|
+
sampleQuote2: "Beautiful and easy to use. The support team answers very fast.", sampleName2: "Tran Quoc Hung", sampleRole2: "Shop owner", sampleQuote3: "Quality beyond expectations at a fair price. Great value.", sampleName3: "Le Thu Ha", sampleRole3: "Designer",
|
|
64
|
+
sampleOverlayTitle: "New collection", sampleOverlaySubtitle: "Shop now",
|
|
65
|
+
sampleBoxTitle: "Fast delivery", sampleBoxText: "Get your order within 24 hours in town, free shipping over $25.",
|
|
66
|
+
sampleList1: "Fast delivery", sampleList2: "30-day returns", sampleList3: "Genuine products", sampleList4: "24/7 support",
|
|
67
|
+
sampleCounterTitle: "Happy customers", sampleQuote: "Great product, quick delivery and careful packaging. I will buy again.", sampleName: "Alex Morgan", sampleRole: "Customer",
|
|
68
|
+
sampleTab1: "Description", sampleTab2: "Specs", sampleTabBody: "Tab content. Click to edit.", sampleFaq1: "What is the return policy?", sampleFaq2: "How long does delivery take?", sampleFaqBody: "A short answer for your customers.",
|
|
69
|
+
chooseLayout: "Choose a layout", skipLayout: "Skip", layoutLabel: "Layout",
|
|
70
|
+
layoutTabsLeft: "Horizontal, left", layoutTabsCenter: "Horizontal, centred", layoutTabsSpread: "Horizontal, spread", layoutTabsVertical: "Vertical",
|
|
71
|
+
layoutAcc1: "1 column", layoutAccPlus: "Plus sign", layoutAcc2: "2 columns", layoutAccLeft: "Arrow on left",
|
|
72
|
+
layoutListV: "Vertical", layoutListInline: "Inline", layoutList2: "2 columns", layoutListCircle: "Round icons",
|
|
73
|
+
layoutTestCard: "Card", layoutTestPlain: "Plain", layoutTestBubble: "Bubble",
|
|
74
|
+
sampleSlide1: "New collection", sampleSlide2: "Summer deals", sampleSlide3: "Free shipping", sampleSlideText: "A short description for this slide. Click to edit.",
|
|
75
|
+
layoutSlides1: "1 slide", layoutSlides2: "2 slides", layoutSlides3: "3 slides", sampleHeroText: "A short description, click to edit. Set each slide's background image under Style › Background.",
|
|
76
|
+
sampleSkill: "Satisfaction", sampleAddress: "Hoan Kiem Lake, Hanoi", sampleCountdownLabel: "Sale ends in",
|
|
77
|
+
sampleCallout: "Note: important information for your customers.", sampleDetails: "Click to see details", sampleDetailsBody: "Details appear when opened.", sampleButton: "Shop now",
|
|
78
|
+
sampleTh1: "Product", sampleTh2: "Price", sampleTh3: "Note", sampleTd1: "Item A", sampleTd2: "$19.90", sampleTd3: "In stock", sampleTd4: "Item B", sampleTd5: "$25.90", sampleTd6: "Soon",
|
|
79
|
+
iconListUp: "Up", iconListDown: "Down",
|
|
80
|
+
layoutBoxTop: "Icon on top", layoutBoxCircle: "Round icon", layoutBoxLeft: "Icon left", layoutBoxRight: "Icon right",
|
|
81
|
+
layoutMedia1: "Image left 50%", layoutMedia2: "Image left 33%", layoutMedia3: "Image right 50%", layoutMedia4: "Image right 33%",
|
|
82
|
+
layoutBarAbove: "Text above", layoutBarInside: "Text inside", layoutBarBelow: "Text below",
|
|
83
|
+
tabsItems: "Tabs", tabTitleField: "Tab title", tabSubtitleField: "Subtitle", tabIconField: "Icon", tabNoIcon: "No icon",
|
|
84
|
+
aiwTone: "Tone", aiwToneAuto: "Auto", aiwToneFriendly: "Friendly", aiwTonePro: "Professional", aiwToneSell: "Persuasive",
|
|
85
|
+
aiwLength: "Length", aiwLenShort: "Short", aiwLenMedium: "Medium", aiwLenLong: "Long, with section headings",
|
|
86
|
+
aiwStructured: "Use headings and lists where they fit",
|
|
87
|
+
aiwTryTitle: "Quick ideas", aiwEx1: "Short intro to the shop", aiwEx2: "3 benefits of buying here", aiwEx3: "FAQ about delivery", aiwEx4: "Call to order",
|
|
88
|
+
aiwPreview: "Result", aiwWords: "words",
|
|
89
|
+
aiwErrOff: "AI is not enabled for this website. Go to Settings › AI to choose a provider and enter the key.",
|
|
90
|
+
aiwErrBusy: "Too many requests in a row. Wait a minute and try again.",
|
|
91
|
+
aiwErrOther: "The AI could not answer. Try again or change the request.",
|
|
92
|
+
aiwOptHint: "Options", aiwInsertAt: "Insert into page",
|
|
93
|
+
countdownWhen: "End date and time",
|
|
94
|
+
sampleSectionTitle: "Section title", sampleSectionText: "Write the content of this section, or add columns, images and buttons here.",
|
|
61
95
|
widgetEmpty: "Add items in the settings panel",
|
|
62
|
-
iconListItems: "Items", iconListText: "Text", iconListIcon: "Icon", iconListIconDefault: "List default", iconListIconNone: "No icon", iconListLink: "Link", iconListRemove: "Remove item", iconListAdd: "Add item",
|
|
96
|
+
iconListItems: "Items", iconListText: "Text", iconListIcon: "Icon", iconListIconDefault: "List default", iconListIconNone: "No icon", iconListLink: "Link", iconListTip: "Hover tooltip", iconListColor: "Icon color", iconListBg: "Icon background", iconListTextColor: "Text color", iconListRemove: "Remove item", iconListAdd: "Add item",
|
|
63
97
|
widget_number: "01",
|
|
64
98
|
widget_buttonText: "Learn more",
|
|
99
|
+
widget_subtitle: "Subtitle (shown on hover)",
|
|
65
100
|
widget_title: "Title",
|
|
66
101
|
widget_text: "Short description",
|
|
67
102
|
widget_quote: "What a customer says about you",
|
|
@@ -74,10 +109,6 @@ export const blocks = {
|
|
|
74
109
|
sampleItem2: "Second benefit",
|
|
75
110
|
sampleItem3: "Third benefit",
|
|
76
111
|
sampleCounter: "Happy customers",
|
|
77
|
-
sampleQuote: "Caring service and on-time delivery. I will be back!",
|
|
78
|
-
sampleName: "Customer name",
|
|
79
|
-
sampleRole: "Role, company",
|
|
80
|
-
sampleSkill: "Skill",
|
|
81
112
|
contentWidth: "Content width",
|
|
82
113
|
cwFill: "Fill block",
|
|
83
114
|
cwSite: "Site width",
|
|
@@ -7,6 +7,7 @@ export const columns = {
|
|
|
7
7
|
innerGap: "Gap between blocks", verticalReverse: "Vertical, reversed", horizontalReverse: "Horizontal, reversed", around: "Space around", evenly: "Space evenly",
|
|
8
8
|
textAlign: "Text alignment", maxWidth: "Max width", rowMaxWidth: "Row max width", overlayLink: "Link whole column", newTab: "Open in new tab", linkLabel: "Link name (for screen readers)",
|
|
9
9
|
overlayNote: "With this link set, nothing else inside the column is clickable on the website.",
|
|
10
|
+
mobileOrder: "Order on phones", orderKeep: "Keep", orderFirst: "To top", orderLast: "To bottom", mobileOrderHelp: "When columns stack on phones, this column goes first or last (e.g. image above text).",
|
|
10
11
|
secLayout: "Layout", secFlex: "Flex settings", secMaxWidth: "Content max width",
|
|
11
12
|
linkUrl: "URL",
|
|
12
13
|
};
|
|
@@ -12,7 +12,7 @@ export const controls = {
|
|
|
12
12
|
linkSides: "All sides the same",
|
|
13
13
|
unlinkSides: "Edit each side",
|
|
14
14
|
noMotion: "No effect yet",
|
|
15
|
-
noIcon: "No icon", searchIcons: "Search icons…", noIconFound: "No icon found",
|
|
15
|
+
chooseIcon: "Choose icon", iconLibrary: "Library", iconCustom: "Custom SVG", iconCustomHint: "Paste your SVG code (or choose a .svg file). Only the drawing is kept; scripts, links and styles are removed. The icon takes the text colour.", iconCustomCode: "SVG code", iconCustomFile: "Choose .svg file", iconCustomPreview: "Preview", iconCustomInvalid: "This SVG cannot be read (needs an <svg> tag with shapes, at most {max} characters after cleaning).", iconCustomUse: "Use this icon", iconMore: "Show more ({n} icons)", iconLibraryLoading: "Loading icon library…", noIcon: "No icon", searchIcons: "Search icons…", noIconFound: "No icon found",
|
|
16
16
|
tablet: "Tablet",
|
|
17
17
|
mobile: "Mobile",
|
|
18
18
|
modified: "modified",
|