@ecomcx/ecomweb-editor 1.31.0 → 1.33.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.
Files changed (91) hide show
  1. package/package.json +3 -3
  2. package/src/locales/en/attrs.ts +10 -0
  3. package/src/locales/en/background.ts +17 -0
  4. package/src/locales/en/bindings.ts +1 -1
  5. package/src/locales/en/block-desc.ts +2 -0
  6. package/src/locales/en/block-style.ts +7 -4
  7. package/src/locales/en/block-titles.ts +2 -0
  8. package/src/locales/en/blocks.ts +12 -3
  9. package/src/locales/en/columns.ts +12 -0
  10. package/src/locales/en/controls.ts +21 -0
  11. package/src/locales/en/hints.ts +289 -1
  12. package/src/locales/en/index.ts +5 -2
  13. package/src/locales/en/layout.ts +32 -0
  14. package/src/locales/en/legacy.ts +1 -1
  15. package/src/locales/en/library.ts +38 -0
  16. package/src/locales/en/parts.ts +12 -0
  17. package/src/locales/en/placeholders.ts +12 -1
  18. package/src/locales/en/presets.ts +6 -0
  19. package/src/locales/en/v2.ts +21 -0
  20. package/src/locales/vi/attrs.ts +10 -0
  21. package/src/locales/vi/background.ts +17 -0
  22. package/src/locales/vi/bindings.ts +1 -1
  23. package/src/locales/vi/block-desc.ts +2 -0
  24. package/src/locales/vi/block-style.ts +7 -4
  25. package/src/locales/vi/block-titles.ts +2 -0
  26. package/src/locales/vi/blocks.ts +12 -3
  27. package/src/locales/vi/columns.ts +12 -0
  28. package/src/locales/vi/controls.ts +21 -0
  29. package/src/locales/vi/hints.ts +290 -2
  30. package/src/locales/vi/index.ts +5 -2
  31. package/src/locales/vi/layout.ts +32 -0
  32. package/src/locales/vi/legacy.ts +1 -1
  33. package/src/locales/vi/library.ts +38 -0
  34. package/src/locales/vi/parts.ts +12 -0
  35. package/src/locales/vi/placeholders.ts +12 -1
  36. package/src/locales/vi/presets.ts +6 -0
  37. package/src/locales/vi/v2.ts +21 -0
  38. package/src/shared/panel-store.ts +3 -3
  39. package/src/shared/patterns.ts +3 -52
  40. package/src/shared/style-panel.tsx +2 -2
  41. package/src/shared/types.ts +2 -0
  42. package/src/v2/blocks/columns-inspector.tsx +210 -0
  43. package/src/v2/blocks/form.tsx +4 -4
  44. package/src/v2/blocks/index.ts +10 -4
  45. package/src/v2/blocks/inline-style.ts +1 -1
  46. package/src/v2/blocks/layout.tsx +211 -44
  47. package/src/v2/blocks/media.tsx +22 -13
  48. package/src/v2/blocks/resize.tsx +172 -4
  49. package/src/v2/blocks/text.tsx +14 -7
  50. package/src/v2/blocks/theme.tsx +63 -19
  51. package/src/v2/blocks/tools.tsx +50 -5
  52. package/src/v2/blocks/widgets.tsx +44 -16
  53. package/src/v2/canvas/block-list.tsx +23 -3
  54. package/src/v2/canvas/canvas-css.ts +70 -4
  55. package/src/v2/canvas/canvas.tsx +22 -5
  56. package/src/v2/canvas/dnd.ts +34 -3
  57. package/src/v2/canvas/move-animation.ts +94 -0
  58. package/src/v2/canvas/spacing-viz.ts +51 -0
  59. package/src/v2/core/block-presets.ts +68 -0
  60. package/src/v2/core/host.ts +6 -1
  61. package/src/v2/core/structure.ts +2 -1
  62. package/src/v2/editor.css +238 -9
  63. package/src/v2/editor.tsx +8 -2
  64. package/src/v2/ui/attr-form.tsx +59 -12
  65. package/src/v2/ui/attr-hints.ts +140 -9
  66. package/src/v2/ui/background-panel.tsx +65 -21
  67. package/src/v2/ui/bindings.tsx +3 -0
  68. package/src/v2/ui/block-icons.tsx +152 -0
  69. package/src/v2/ui/block-menu.ts +22 -0
  70. package/src/v2/ui/block-style-panel.tsx +14 -3
  71. package/src/v2/ui/color-field.tsx +74 -9
  72. package/src/v2/ui/divider-panel.tsx +58 -0
  73. package/src/v2/ui/group-width.tsx +38 -0
  74. package/src/v2/ui/icon-picker.tsx +51 -0
  75. package/src/v2/ui/inserter.tsx +61 -12
  76. package/src/v2/ui/inspector.tsx +48 -16
  77. package/src/v2/ui/layout-panel.tsx +5 -47
  78. package/src/v2/ui/list-view.tsx +81 -7
  79. package/src/v2/ui/motion-panel.tsx +2 -1
  80. package/src/v2/ui/parts-panel.tsx +164 -0
  81. package/src/v2/ui/pattern-library.tsx +228 -0
  82. package/src/v2/ui/preset-bar.tsx +83 -0
  83. package/src/v2/ui/style-controls.tsx +65 -15
  84. package/src/v2/ui/style-supports.ts +1 -1
  85. package/src/v2/ui/style-tab.tsx +127 -41
  86. package/src/v2/ui/toolbar.tsx +52 -13
  87. package/src/v2/ui/unit-controls.tsx +88 -39
  88. package/src/locales/en/patterns.ts +0 -50
  89. package/src/locales/vi/patterns.ts +0 -50
  90. package/src/shared/patterns-kit.ts +0 -7
  91. package/src/shared/patterns-library.ts +0 -172
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecomcx/ecomweb-editor",
3
- "version": "1.31.0",
3
+ "version": "1.33.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.25.0",
32
+ "@ecomcx/ecomweb-content": "^1.27.0",
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.25.0",
48
+ "@ecomcx/ecomweb-content": "^1.27.0",
49
49
  "@playwright/test": "1.53.0",
50
50
  "@types/react": "19.2.2",
51
51
  "@types/react-dom": "19.2.2",
@@ -1,5 +1,7 @@
1
1
  /** Block attribute names in the settings panel (key = attribute name), used when a block does not declare its own label. */
2
2
  export const attrs = {
3
+ iconPosition: "Icon position",
4
+ ariaLabel: "Screen reader label",
3
5
  level: "Level",
4
6
  textAlign: "Text align",
5
7
  start: "Start at",
@@ -25,6 +27,9 @@ export const attrs = {
25
27
  tone: "Tone",
26
28
  summary: "Summary",
27
29
  open: "Open by default",
30
+ multiple: "Open several items at once",
31
+ tabsAlign: "Tab title alignment",
32
+ initial: "Initially open tab (number)",
28
33
  overlay: "Overlay",
29
34
  opacity: "Overlay opacity",
30
35
  minHeight: "Min height",
@@ -86,4 +91,9 @@ export const attrs = {
86
91
  suffix: "Suffix",
87
92
  duration: "Duration (ms)",
88
93
  showValue: "Show percentage",
94
+ slidesPerView: "Slides per view",
95
+ max: "Maximum",
96
+ display: "Display",
97
+ depth: "Levels shown",
98
+ limit: "Maximum items",
89
99
  };
@@ -19,4 +19,21 @@ export const background = {
19
19
  fixed: "Fixed while scrolling (parallax, desktop only)",
20
20
  overlay: "Overlay",
21
21
  opacity: "Overlay strength",
22
+ overlayTitle: "Background overlay",
23
+ overlayType: "Overlay type",
24
+ overlayBlend: "Blend with background",
25
+ blendNormal: "Normal",
26
+ blend_multiply: "Multiply",
27
+ blend_screen: "Screen",
28
+ blend_overlay: "Overlay",
29
+ blend_darken: "Darken",
30
+ blend_lighten: "Lighten",
31
+ blend_color_dodge: "Color dodge",
32
+ blend_color_burn: "Color burn",
33
+ blend_difference: "Difference",
34
+ blend_exclusion: "Exclusion",
35
+ blend_hue: "Hue",
36
+ blend_saturation: "Saturation",
37
+ blend_color: "Color",
38
+ blend_luminosity: "Luminosity",
22
39
  };
@@ -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",
@@ -73,6 +73,7 @@ export const blockDesc = {
73
73
  pageList: "The site’s pages, by level.",
74
74
  archives: "Links to posts by month.",
75
75
  postTemplate: "How each post looks inside a post list.",
76
+ queryFilter: "Filter bar for a post list: search, pick a category, sort. Turn on \"Use the filter bar\" on the post list block.",
76
77
  pagination: "Previous / next and page numbers for a post list.",
77
78
  queryEmpty: "Content shown when the post list is empty.",
78
79
  syncedPattern: "Shared pattern — edit once, changes on every page using it.",
@@ -87,4 +88,5 @@ export const blockDesc = {
87
88
  counter: "Highlighted number (e.g. 1,200+ customers) that counts up when scrolled into view; prefix / suffix and label.",
88
89
  testimonial: "Customer testimonial: quote, name, role and avatar.",
89
90
  progressBar: "Labelled progress bar with a percentage (skills, goals) that fills when scrolled into view.",
91
+ "map": "Google map for a typed address (store, office).",
90
92
  };
@@ -14,17 +14,17 @@ export const blockStyle: (typeof vi)["blockStyle"] = {
14
14
  attr: {
15
15
  textShadow: "Text shadow",
16
16
  listMarker: "Marker type", listMarkerColor: "Marker color", listGap: "Space between", listDivider: "Divider",
17
- buttonColor: "Text color", buttonBg: "Background color", buttonHoverColor: "Text color", buttonHoverBg: "Background color", buttonSize: "Size", buttonRadius: "Border radius", buttonWeight: "Font weight", buttonShadow: "Box shadow",
17
+ 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
18
  imageWidth: "Width", imageHeight: "Height", imageFit: "Object fit", imageRadius: "Border radius", imageBorderWidth: "Border width", imageBorderColor: "Border color", imageShadow: "Box shadow",
19
19
  imageOpacity: "Opacity", imageFilter: "CSS filter", imageHoverEffect: "Hover animation", imageHoverOpacity: "Opacity", imageHoverFilter: "CSS filter",
20
20
  tableBorderColor: "Cell border color", tableBorderWidth: "Cell border width", tableHeaderBg: "Header background", tableHeaderColor: "Header text", tableStripe: "Striped rows", tableCellPadding: "Cell padding", tableAlign: "Cell alignment",
21
21
  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
22
  accTitleColor: "Title color", accTitleBg: "Title background", accActiveColor: "Title color", accBorderColor: "Border color", accGap: "Space between", accPadding: "Padding",
23
- columnsGap: "Columns gap", columnsDirection: "Direction",
23
+ 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
24
  hrStyle: "Style", hrWeight: "Weight", hrColor: "Color", hrWidth: "Width", hrAlign: "Alignment",
25
- iconBoxIconColor: "Icon color", iconBoxIconSize: "Icon size", iconBoxTitleColor: "Title color", iconBoxTextColor: "Description color",
25
+ iconBoxIconColor: "Icon color", iconBoxIconSize: "Icon size", iconBoxImageWidth: "Image width", iconBoxTitleColor: "Title color", iconBoxTextColor: "Description color",
26
26
  imageBoxRadius: "Image radius", imageBoxTitleColor: "Title color", imageBoxTextColor: "Description color",
27
- iconListGap: "Space between", iconListDivider: "Divider", iconListIconColor: "Icon color", iconListIconSize: "Icon size", iconListTextColor: "Text color",
27
+ iconListGap: "Space between", iconListColumnGap: "Column gap", iconListIconGap: "Icon – text gap", iconListDivider: "Divider", iconListIconColor: "Icon color", iconListIconSize: "Icon size", iconListTextColor: "Text color",
28
28
  counterNumberColor: "Number color", counterNumberSize: "Number size", counterTitleColor: "Title color",
29
29
  testimonialBg: "Background color", testimonialBorderColor: "Border color", testimonialQuoteColor: "Quote color", testimonialNameColor: "Name color", testimonialRoleColor: "Role color",
30
30
  progressBarColor: "Bar color", progressTrackColor: "Track color", progressHeight: "Bar height", progressTitleColor: "Title color",
@@ -36,6 +36,7 @@ export const blockStyle: (typeof vi)["blockStyle"] = {
36
36
  cover: "Cover", contain: "Contain",
37
37
  grayscale: "Grayscale", sepia: "Sepia", blur: "Blur", bright: "Brighter", dim: "Darker", saturate: "Saturate",
38
38
  zoom: "Zoom", lift: "Lift", tilt: "Tilt",
39
+ "flex-start": "Left", "flex-end": "Right", "space-between": "Spread",
39
40
  start: "Start", center: "Center", end: "End",
40
41
  row: "Row", "row-reverse": "Row, reversed", column: "Stacked", "column-reverse": "Stacked, reversed",
41
42
  solid: "Solid", dashed: "Dashed", dotted: "Dotted", double: "Double",
@@ -50,6 +51,8 @@ export const blockStyle: (typeof vi)["blockStyle"] = {
50
51
  hoverColor: "Background color on hover",
51
52
  hoverNote: "Hover only changes the background color; image / gradient stay.",
52
53
  legacy: "Old group background color — pick another color to move it to the new style.",
54
+ colorInherit: "Using the desktop colour; pick one to override on this screen size.",
53
55
  },
56
+ more: "more options",
54
57
  tabTitle: "Tab {n}",
55
58
  };
@@ -50,6 +50,7 @@ export const blockTitles = {
50
50
  postNavigation: "Previous / next post",
51
51
  query: "Query loop",
52
52
  postTemplate: "Post template",
53
+ queryFilter: "Filter bar",
53
54
  pagination: "Pagination",
54
55
  queryEmpty: "No results",
55
56
  form: "Form",
@@ -60,4 +61,5 @@ export const blockTitles = {
60
61
  counter: "Counter",
61
62
  testimonial: "Testimonial",
62
63
  progressBar: "Progress Bar",
64
+ "map": "Map",
63
65
  };
@@ -18,14 +18,15 @@ export const blocks = {
18
18
  down: "Down",
19
19
  removeLink: "Remove link",
20
20
  addLink: "Add link",
21
- galleryImages: "Gallery images",
21
+ imageLink: "Own link (optional)", imageLinkN: "Link of image {n}", galleryImages: "Gallery images",
22
22
  imageAltN: "Image {n} description",
23
23
  removeImage: "Remove image",
24
24
  addImages: "Add images",
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
- searchLabel: "Search", searchPlaceholder: "Search the site…", searchButton: "Search",
28
+ filterAll: "All", filterSearch: "Search this list…", filterSort: "Sort by", 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.",
@@ -59,7 +60,9 @@ export const blocks = {
59
60
  option1: "Option 1",
60
61
  option2: "Option 2",
61
62
  widgetEmpty: "Add items in the settings panel",
62
- iconListItems: "Items (one per line, add a link: text | /path)",
63
+ iconListItems: "Items", iconListText: "Text", iconListIcon: "Icon", iconListIconDefault: "List default", iconListIconNone: "No icon", iconListLink: "Link", iconListRemove: "Remove item", iconListAdd: "Add item",
64
+ widget_number: "01",
65
+ widget_buttonText: "Learn more",
63
66
  widget_title: "Title",
64
67
  widget_text: "Short description",
65
68
  widget_quote: "What a customer says about you",
@@ -76,4 +79,10 @@ export const blocks = {
76
79
  sampleName: "Customer name",
77
80
  sampleRole: "Role, company",
78
81
  sampleSkill: "Skill",
82
+ contentWidth: "Content width",
83
+ cwFill: "Fill block",
84
+ cwSite: "Site width",
85
+ quickColor: "Quick background colour",
86
+ noColor: "No colour",
87
+ addSectionBelow: "Add section below",
79
88
  };
@@ -0,0 +1,12 @@
1
+ /** Columns / Column: settings tab (count, per-device layout, gaps, alignment). */
2
+ export const columns = {
3
+ count: "Columns", fewer: "Remove a column", more: "Add a column", layout: "Layout", desktop: "desktop", tablet: "tablet", mobile: "mobile",
4
+ autoStack: "Auto: stack on narrow screens", inherit: "Same as larger screen", stack: "Stack", stackReverse: "Stack, reversed", custom: "Custom ratio (dragged on the block)",
5
+ gap: "Column gap", rowGap: "Row gap (when wrapping)", valign: "Vertical alignment", top: "Top", middle: "Middle", bottom: "Bottom", stretch: "Equal height",
6
+ direction: "Direction", vertical: "Vertical", horizontal: "Horizontal", halign: "Horizontal alignment", left: "Left", center: "Centre", right: "Right", fill: "Fill", between: "Space between",
7
+ innerGap: "Gap between blocks", verticalReverse: "Vertical, reversed", horizontalReverse: "Horizontal, reversed", around: "Space around", evenly: "Space evenly",
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
+ overlayNote: "With this link set, nothing else inside the column is clickable on the website.",
10
+ secLayout: "Layout", secFlex: "Flex settings", secMaxWidth: "Content max width",
11
+ linkUrl: "URL",
12
+ };
@@ -1,5 +1,18 @@
1
1
  /** Text for controls in the Style / settings panels (collapse, reset, units, tabs). Keys derive from the English text. */
2
2
  export const controls = {
3
+ desktop: "Desktop",
4
+ device: "Screen size",
5
+ info: "About this block",
6
+ noColor: "Default",
7
+ siteColors: "Site colours",
8
+ customColor: "Custom colour",
9
+ clearColor: "Clear colour",
10
+ colorOpacity: "Opacity",
11
+ colorHint: "Pick a site colour: change the site palette and every page follows.",
12
+ linkSides: "All sides the same",
13
+ unlinkSides: "Edit each side",
14
+ noMotion: "No effect yet",
15
+ noIcon: "No icon", searchIcons: "Search icons…", noIconFound: "No icon found",
3
16
  tablet: "Tablet",
4
17
  mobile: "Mobile",
5
18
  modified: "modified",
@@ -17,8 +30,16 @@ export const controls = {
17
30
  sideRight: "right",
18
31
  sideBottom: "bottom",
19
32
  sideLeft: "left",
33
+ unlinkCorners: "Edit each corner",
34
+ linkCorners: "All corners the same",
35
+ cornerTopLeft: "top left",
36
+ cornerTopRight: "top right",
37
+ cornerBottomRight: "bottom right",
38
+ cornerBottomLeft: "bottom left",
20
39
  styles: "Styles",
21
40
  advanced: "Advanced",
22
41
  /** Tên biến thể kiểu khối của lõi (CORE_BLOCK_STYLES). */
23
42
  blockStyle: { stripes: "Stripes", rounded: "Rounded", circle: "Circle", plain: "Plain", dots: "Dots", wide: "Wide", pill: "Pill", card: "Card" },
43
+ stateNormal: "Normal", stateHover: "Hover", structure: "Structure",
44
+ htmlTag: "HTML tag", zIndex: "Z-index", grow: "Flex grow", order: "Order in parent", orderHelp: "Order: switch device to reorder on mobile (lower numbers come first).",
24
45
  };
@@ -58,6 +58,17 @@ export const hints = {
58
58
  "button.variant.opt.primary": "Primary",
59
59
  "button.variant.opt.secondary": "Secondary",
60
60
  "button.variant.opt.outline": "Outline",
61
+ "button.text.placeholder": "e.g. Buy now",
62
+ "button.href.placeholder": "https://… or /path",
63
+ "button.iconPosition.opt.left": "Before text",
64
+ "button.iconPosition.opt.right": "After text",
65
+ "button.width.opt.auto": "Fit text",
66
+ "button.width.opt.full": "Full width",
67
+ "tabs.tabsAlign.opt.flex-start": "Left",
68
+ "tabs.tabsAlign.opt.center": "Centre",
69
+ "tabs.tabsAlign.opt.flex-end": "Right",
70
+ "tabs.tabsAlign.opt.space-between": "Spread",
71
+ "button.ariaLabel.help": "Read instead of the button text when the text is not clear enough (e.g. \"More\" → \"More about the Pro plan\").",
61
72
  "button.rel.help": "e.g. nofollow, sponsored",
62
73
  "spacer.height.help": "Theme size (xs → 2xl) or a length (e.g. 3rem, 80px)",
63
74
  "callout.tone.opt.info": "Info",
@@ -149,6 +160,7 @@ export const hints = {
149
160
  "navigation.overlayMenu.label": "Collapse into menu button",
150
161
  "navigation.overlayMenu.opt.never": "Never",
151
162
  "navigation.overlayMenu.opt.mobile": "Mobile",
163
+ "navigation.overlayMenu.opt.tablet": "Tablet",
152
164
  "navigation.overlayMenu.opt.always": "Always",
153
165
  "search.showLabel.label": "Show label",
154
166
  "search.buttonPosition.label": "Button position",
@@ -239,5 +251,281 @@ export const hints = {
239
251
  "counter.duration.help": "0 = show the final number at once. Visitors who prefer reduced motion always see the final number.",
240
252
  "iconList.layout.opt.list": "Vertical",
241
253
  "iconList.layout.opt.inline": "Inline",
242
- "progressBar.value.label": "Percent",
254
+ "tabs.orientation.label": "Tab layout",
255
+ "tabs.orientation.opt.horizontal": "Horizontal",
256
+ "tabs.orientation.opt.vertical": "Vertical",
257
+ "tabs.mobileAccordion.label": "Accordion on phones",
258
+ "tab.subtitle.label": "Subtitle",
259
+ "tab.icon.label": "Tab icon",
260
+ "accordion.columns.label": "Columns",
261
+ "accordion.columns.opt.1": "1 column",
262
+ "accordion.columns.opt.2": "2 columns",
263
+ "accordion.icon.label": "Open / close icon",
264
+ "accordion.icon.opt.arrow": "Arrow",
265
+ "accordion.icon.opt.plus": "Plus",
266
+ "accordion.icon.opt.none": "None",
267
+ "accordion.iconSide.label": "Icon side",
268
+ "accordion.iconSide.opt.left": "Left",
269
+ "accordion.iconSide.opt.right": "Right",
270
+ "accordion.titleTag.label": "Item title tag",
271
+ "accordion.titleTag.help": "Use h2–h6 when item titles belong to the page outline (SEO); div otherwise.",
272
+ "accordion.faq.label": "Mark as FAQ (FAQ Schema)",
273
+ "accordion.faq.help": "Google may show the questions and answers right in search results.",
274
+ "buttons.orientation.label": "Button direction",
275
+ "buttons.orientation.opt.horizontal": "Horizontal",
276
+ "buttons.orientation.opt.vertical": "Vertical",
277
+ "button.iconOnly.label": "Icon only (text becomes the screen reader label)",
278
+ "button.iconReveal.label": "Show icon on hover only",
279
+ "countdown.layout.label": "Layout",
280
+ "countdown.layout.opt.block": "Boxes",
281
+ "countdown.layout.opt.inline": "Inline",
282
+ "countdown.divider.label": "\":\" between units",
283
+ "countdown.pad.label": "Two-digit numbers (00)",
284
+ "countdown.postText.label": "Text after",
285
+ "countdown.showDays.label": "Show days",
286
+ "countdown.showSeconds.label": "Show seconds",
287
+ "countdown.daysLabel.label": "\"Days\" label",
288
+ "countdown.hoursLabel.label": "\"Hours\" label",
289
+ "countdown.minutesLabel.label": "\"Minutes\" label",
290
+ "countdown.secondsLabel.label": "\"Seconds\" label",
291
+ "progressBar.value.label": "Value",
292
+ "progressBar.max.label": "Maximum",
293
+ "progressBar.prefix.label": "Number prefix",
294
+ "progressBar.suffix.label": "Number suffix",
295
+ "progressBar.suffix.help": "Empty = \"%\".",
296
+ "progressBar.textPosition.label": "Text position",
297
+ "progressBar.textPosition.opt.above": "Above",
298
+ "progressBar.textPosition.opt.inside": "Inside",
299
+ "progressBar.textPosition.opt.below": "Below",
300
+ "progressBar.duration.label": "Duration (ms)",
301
+ "progressBar.duration.help": "0 = no animation. Reduced-motion users always see the full bar.",
302
+ "iconBox.position.opt.right": "Right",
303
+ "iconBox.media.label": "Box header",
304
+ "iconBox.media.opt.icon": "Icon",
305
+ "iconBox.media.opt.number": "Number",
306
+ "iconBox.media.opt.none": "None",
307
+ "iconBox.number.label": "Number shown",
308
+ "iconBox.iconStyle.label": "Icon frame",
309
+ "iconBox.iconStyle.opt.plain": "None",
310
+ "iconBox.iconStyle.opt.circle": "Circle",
311
+ "iconBox.iconStyle.opt.square": "Square",
312
+ "iconBox.hover.label": "Hover effect",
313
+ "iconBox.hover.opt.none": "None",
314
+ "iconBox.hover.opt.grow": "Grow",
315
+ "iconBox.hover.opt.flip": "Flip",
316
+ "iconBox.linkMode.label": "Link on",
317
+ "iconBox.linkMode.opt.title": "Title",
318
+ "iconBox.linkMode.opt.box": "Whole box",
319
+ "iconBox.linkMode.opt.button": "\"Learn more\" button",
320
+ "iconBox.buttonText.label": "Button text",
321
+ "iconBox.buttonText.help": "Empty = arrow →",
322
+ "tableOfContents.minLevel.label": "Lowest level",
323
+ "tableOfContents.collapsible.label": "Collapsible (click the title to open / close)",
324
+ "tableOfContents.startCollapsed.label": "Start collapsed",
325
+ "tableOfContents.listStyle.label": "List style",
326
+ "tableOfContents.listStyle.opt.numbers": "Numbers",
327
+ "tableOfContents.listStyle.opt.bullets": "Bullets",
328
+ "tableOfContents.listStyle.opt.none": "None",
329
+ "tableOfContents.columns.label": "Columns",
330
+ "tableOfContents.columns.opt.1": "1",
331
+ "tableOfContents.columns.opt.2": "2",
332
+ "tableOfContents.columns.opt.3": "3",
333
+ "tableOfContents.smoothScroll.label": "Smooth scroll to item",
334
+ "tableOfContents.highlight.label": "Highlight the item being read",
335
+ "formField.width.opt.third": "1/3 row",
336
+ "formField.autocomplete.label": "Browser autofill",
337
+ "formField.autocomplete.help": "Helps people fill the form quickly on phones.",
338
+ "formField.autocomplete.opt.off": "Off",
339
+ "formField.autocomplete.opt.name": "Full name",
340
+ "formField.autocomplete.opt.given-name": "First name",
341
+ "formField.autocomplete.opt.family-name": "Last name",
342
+ "formField.autocomplete.opt.email": "Email",
343
+ "formField.autocomplete.opt.tel": "Phone",
344
+ "formField.autocomplete.opt.organization": "Company",
345
+ "formField.autocomplete.opt.street-address": "Street address",
346
+ "formField.autocomplete.opt.address-level1": "State / province",
347
+ "formField.autocomplete.opt.address-level2": "City / district",
348
+ "formField.autocomplete.opt.postal-code": "Postal code",
349
+ "formField.autocomplete.opt.country-name": "Country",
350
+ "formField.autocomplete.opt.bday": "Birthday",
351
+ "form.notifyCc.label": "Cc",
352
+ "form.notifyCc.help": "Comma-separated, up to 5. \"Notify email\" also accepts several addresses.",
353
+ "form.emailSubject.label": "Notification email subject",
354
+ "form.emailSubject.help": "Empty: \"[Site] New submission: form name\".",
355
+ "form.redirect.label": "Redirect after submit",
356
+ "form.redirect.help": "E.g. /thank-you. Empty: show the thank-you message under the form.",
357
+ "icon.stroke.label": "Stroke width",
358
+ "icon.iconStyle.label": "Icon frame",
359
+ "icon.iconStyle.opt.plain": "None",
360
+ "icon.iconStyle.opt.circle": "Circle",
361
+ "icon.iconStyle.opt.square": "Square",
362
+ "icon.linkTarget.label": "Open link in",
363
+ "icon.linkTarget.opt._self": "Same tab",
364
+ "icon.linkTarget.opt._blank": "New tab",
365
+ "iconList.columns.label": "Columns",
366
+ "iconList.iconAlign.label": "Icon alignment",
367
+ "iconList.iconAlign.opt.top": "Top",
368
+ "iconList.iconAlign.opt.center": "Middle",
369
+ "iconList.iconAlign.opt.bottom": "Bottom",
370
+ "iconList.iconStyle.label": "Icon frame",
371
+ "iconList.iconStyle.opt.plain": "None",
372
+ "iconList.iconStyle.opt.circle": "Circle",
373
+ "iconList.iconStyle.opt.square": "Square",
374
+ "iconList.stroke.label": "Stroke width",
375
+ "iconBox.media.opt.image": "Image",
376
+ "iconBox.src.label": "Image",
377
+ "iconBox.verticalAlign.label": "Vertical alignment",
378
+ "iconBox.verticalAlign.opt.top": "Top",
379
+ "iconBox.verticalAlign.opt.center": "Middle",
380
+ "iconBox.verticalAlign.opt.bottom": "Bottom",
381
+ "iconBox.fullHeight.label": "Fill container height",
382
+ "iconBox.fullHeight.help": "Boxes side by side in columns get equal height",
383
+ "testimonial.variant.label": "Style",
384
+ "testimonial.variant.opt.card": "Card",
385
+ "testimonial.variant.opt.plain": "Plain",
386
+ "testimonial.variant.opt.bubble": "Bubble",
387
+ "testimonial.rating.label": "Star rating",
388
+ "testimonial.rating.help": "0 = no stars",
389
+ "testimonial.quoteMark.label": "Show quote mark",
390
+ "counter.decimals.label": "Decimal places",
391
+ "counter.decimals.help": "Empty = follow the numbers entered (max 3)",
392
+ "counter.titleTag.label": "Title HTML tag",
393
+ "counter.titleTag.opt.p": "Paragraph (p)",
394
+ "counter.titleTag.opt.div": "div",
395
+ "counter.titleTag.opt.h2": "H2",
396
+ "counter.titleTag.opt.h3": "H3",
397
+ "counter.titleTag.opt.h4": "H4",
398
+ "counter.titleTag.opt.h5": "H5",
399
+ "counter.titleTag.opt.h6": "H6",
400
+ "progressBar.decimals.label": "Decimal places",
401
+ "progressBar.decimals.opt.0": "1",
402
+ "progressBar.decimals.opt.1": "0.1",
403
+ "progressBar.decimals.opt.2": "0.01",
404
+ "progressBar.animate.label": "Animate from 0 when scrolled into view",
405
+ "progressBar.easing.label": "Easing",
406
+ "progressBar.easing.opt.ease": "Default",
407
+ "progressBar.easing.opt.linear": "Linear",
408
+ "progressBar.easing.opt.ease-in": "Ease in",
409
+ "progressBar.easing.opt.ease-out": "Ease out",
410
+ "progressBar.easing.opt.ease-in-out": "Ease in and out",
411
+ "progressBar.ariaLabel.label": "Screen reader label",
412
+ "progressBar.ariaLabel.help": "Empty = use the bar label",
413
+ "accordion.startOpen.label": "Open on page load",
414
+ "accordion.startOpen.help": "Panes with their own \"Open\" switch are left as set. A one-at-a-time group can only open the first.",
415
+ "accordion.startOpen.opt.none": "All closed",
416
+ "accordion.startOpen.opt.first": "First",
417
+ "accordion.startOpen.opt.all": "All",
418
+ "tabs.iconPosition.label": "Icon position",
419
+ "tabs.iconPosition.opt.left": "Left",
420
+ "tabs.iconPosition.opt.right": "Right",
421
+ "tabs.iconPosition.opt.top": "Top",
422
+ "tabs.iconOnly.label": "Icon only",
423
+ "tabs.iconOnly.help": "Hides the label of tabs that have an icon (kept for screen readers); tabs without an icon still show text",
424
+ "tableOfContents.showTitle.label": "Show title",
425
+ "search.scopeSelect.label": "Search scope dropdown",
426
+ "search.scopeSelect.help": "Visitors choose between All and each content type (products, posts…)",
427
+ "search.scopes.label": "Types to choose from",
428
+ "search.scopes.help": "One entry per type as code:label, separated by commas. Example: product:Products, post:News, page:Pages",
429
+ "query.taxonomy.label": "Taxonomy",
430
+ "query.taxonomy.help": "Filter by a taxonomy other than category / tag, e.g. product categories (product_cat)",
431
+ "query.term.label": "Taxonomy term",
432
+ "postTemplate.layout.opt.carousel": "Horizontal scroll",
433
+ "postTemplate.gap.label": "Gap between cards",
434
+ "postTemplate.gap.help": "A size such as sm, md, lg or a length like 16px. Empty = 1.5rem",
435
+ "postTemplate.arrows.label": "Show previous / next buttons",
436
+ "postTemplate.columnsTablet.label": "Columns on tablet",
437
+ "postTemplate.columnsMobile.label": "Columns on phone",
438
+ "search.collapse.label": "Collapse to a magnifier button",
439
+ "search.collapse.help": "On small screens only the magnifier shows; tap to open the field (no need for two Search blocks)",
440
+ "search.collapse.opt.never": "No",
441
+ "search.collapse.opt.tablet": "From tablet",
442
+ "search.collapse.opt.mobile": "Phone",
443
+ "query.source.label": "Posts from",
444
+ "query.source.opt.latest": "Latest",
445
+ "query.source.opt.manual": "Hand-picked",
446
+ "query.source.opt.related": "Related",
447
+ "query.include.label": "Post ids (hand-picked)",
448
+ "query.include.help": "Post ids separated by commas, shown in this order",
449
+ "query.include.placeholder": "12, 7, 31",
450
+ "query.terms.label": "Taxonomy terms",
451
+ "query.termMode.label": "Match",
452
+ "query.termMode.opt.any": "Any term",
453
+ "query.termMode.opt.all": "All terms",
454
+ "query.termMode.opt.none": "Exclude",
455
+ "query.metaKey.label": "Custom field",
456
+ "query.metaKey.help": "Filter by the value of a custom field (ACF…)",
457
+ "query.metaKey.placeholder": "sale_price",
458
+ "query.metaCompare.label": "Compare",
459
+ "query.metaValue.label": "Value",
460
+ "query.dateRange.label": "Published in",
461
+ "query.dateRange.opt.any": "Any time",
462
+ "query.dateRange.opt.7": "Last 7 days",
463
+ "query.dateRange.opt.30": "Last 30 days",
464
+ "query.dateRange.opt.90": "Last 90 days",
465
+ "query.dateRange.opt.365": "Last year",
466
+ "query.after.label": "From date",
467
+ "query.after.placeholder": "2026-01-31",
468
+ "query.before.label": "Until date",
469
+ "query.before.placeholder": "2026-12-31",
470
+ "query.parent.label": "Children of id",
471
+ "query.parent.help": "Only posts whose parent is this page / post (id)",
472
+ "query.offset.label": "Skip the first N",
473
+ "query.offset.help": "Useful when a featured post is already shown elsewhere",
474
+ "query.excludeCurrent.label": "Skip the current post",
475
+ "query.excludeCurrent.help": "On a post / product page, do not repeat that post in the list",
476
+ "query.authorCurrent.label": "Same author as the current post",
477
+ "query.urlFilters.label": "Use the filter bar",
478
+ "query.urlFilters.help": "A Filter bar block on the page (search, terms, sort) filters this list",
479
+ "queryFilter.taxonomy.label": "Taxonomy",
480
+ "queryFilter.taxonomy.help": "What to filter by, e.g. product categories",
481
+ "queryFilter.termStyle.label": "Term style",
482
+ "queryFilter.termStyle.opt.none": "None",
483
+ "queryFilter.termStyle.opt.links": "Links",
484
+ "queryFilter.termStyle.opt.chips": "Filter buttons",
485
+ "queryFilter.termStyle.opt.select": "Dropdown",
486
+ "queryFilter.allLabel.label": "All label",
487
+ "queryFilter.allLabel.placeholder": "All",
488
+ "queryFilter.showSearch.label": "Show search",
489
+ "queryFilter.showSort.label": "Show sorting",
490
+ "queryFilter.sortOptions.label": "Sort choices",
491
+ "queryFilter.sortOptions.help": "Pick from: date_desc, date_asc, title_asc, title_desc, modified_desc, rand",
492
+ "queryFilter.sortOptions.placeholder": "date_desc,date_asc,title_asc",
493
+ "queryFilter.placeholder.label": "Search placeholder",
494
+ "queryFilter.submitText.label": "Filter button text",
495
+ "queryFilter.action.label": "Page that receives the filters",
496
+ "queryFilter.action.help": "Empty = this page",
497
+ "queryFilter.action.placeholder": "/product",
498
+ "search.buttonStyle.label": "Button style",
499
+ "search.buttonStyle.opt.text": "Text",
500
+ "search.buttonStyle.opt.icon": "Magnifier icon",
501
+ "gallery.layout.label": "Layout",
502
+ "gallery.layout.opt.grid": "Even grid",
503
+ "gallery.layout.opt.masonry": "Masonry",
504
+ "form.inputSize.label": "Input size",
505
+ "form.inputSize.opt.sm": "Small",
506
+ "form.inputSize.opt.md": "Medium",
507
+ "form.inputSize.opt.lg": "Large",
508
+ "map.address.label": "Address",
509
+ "map.address.help": "Type an address or a place name (e.g. 1 Main St, Hanoi)",
510
+ "map.title.label": "Map description",
511
+ "map.title.help": "For screen readers; empty = the address",
512
+ "map.zoom.label": "Zoom",
513
+ "map.height.label": "Height",
514
+ "map.mapType.label": "Map type",
515
+ "map.mapType.opt.roadmap": "Roadmap",
516
+ "map.mapType.opt.satellite": "Satellite",
517
+ "paragraph.icon.label": "Icon beside text",
518
+ "paragraph.iconPosition.label": "Icon position",
519
+ "paragraph.iconPosition.opt.left": "Before text",
520
+ "paragraph.iconPosition.opt.right": "After text",
521
+ "paragraph.iconTitle.label": "Icon tooltip",
522
+ "paragraph.iconTitle.help": "Shown when hovering the paragraph.",
523
+ "heading.icon.label": "Icon beside text",
524
+ "heading.iconPosition.label": "Icon position",
525
+ "heading.iconPosition.opt.left": "Before text",
526
+ "heading.iconPosition.opt.right": "After text",
527
+ "heading.iconTitle.label": "Icon tooltip",
528
+ "heading.iconTitle.help": "Shown when hovering the heading.",
529
+ "heading.tocTitle.label": "Name in table of contents",
530
+ "heading.tocTitle.help": "Leave empty to use the heading's own text.",
243
531
  };
@@ -7,6 +7,9 @@ import { blockDesc } from "./block-desc";
7
7
  import { blockTitles } from "./block-titles";
8
8
  import { blocks } from "./blocks";
9
9
  import { controls } from "./controls";
10
+ import { parts } from "./parts";
11
+ import { columns } from "./columns";
12
+ import { presets } from "./presets";
10
13
  import { hints } from "./hints";
11
14
  import { layout } from "./layout";
12
15
  import { legacyBasic } from "./legacy-basic";
@@ -15,9 +18,9 @@ import { motion } from "./motion";
15
18
  import { background } from "./background";
16
19
  import { blockStyle } from "./block-style";
17
20
  import { patternLib } from "./pattern-lib";
18
- import { patterns } from "./patterns";
19
21
  import { shortcuts } from "./shortcuts";
20
22
  import { placeholders } from "./placeholders";
23
+ import { library } from "./library";
21
24
 
22
25
  /** Tiếng Anh: đủ khoá như vi/ (thiếu khoá là lỗi biên dịch) và là ngôn ngữ dự phòng của mọi ngôn ngữ khác. */
23
- export const en: typeof vi = { v2, legacy, attrs, background, bindings, blockStyle, blockDesc, blockTitles, blocks, controls, hints, layout, legacyBasic, legacyDynamic, motion, patternLib, patterns, placeholders, shortcuts };
26
+ export const en: typeof vi = { v2, legacy, attrs, background, bindings, blockStyle, blockDesc, blockTitles, blocks, controls, columns, hints, parts, presets, layout, legacyBasic, legacyDynamic, motion, library, patternLib, placeholders, shortcuts };
@@ -34,4 +34,36 @@ export const layout = {
34
34
  between: "Space between",
35
35
  stretch: "Stretch",
36
36
  custom: "Custom",
37
+ groupWidth: "Width",
38
+ blockWidth: "Block width",
39
+ bwContent: "Content",
40
+ bwWide: "Wide",
41
+ bwFull: "Full",
42
+ contentWidth: "Inner content width",
43
+ cwFill: "Fill block",
44
+ cwSite: "Site width",
45
+ cwCustom: "Custom",
46
+ cwHelp: "Text and blocks inside are centred to this width; the outer frame still spans the full width.",
47
+ cwValue: "Content width",
48
+ dividerTitle: "Divider",
49
+ dividerTop: "Top divider",
50
+ dividerBottom: "Bottom divider",
51
+ dividerNone: "None",
52
+ dividerColor: "Colour (of the neighbouring block)",
53
+ dividerHeight: "Height",
54
+ dividerFlip: "Flip horizontally",
55
+ dividerHelp: "A shape drawn at the block edge in the neighbouring block's colour so the two blend smoothly.",
56
+ divider_wave: "Wave",
57
+ divider_curve: "Curve",
58
+ divider_tilt: "Tilt",
59
+ divider_triangle: "Triangle",
60
+ divider_zigzag: "Zigzag",
61
+ textShadow: "Text shadow",
62
+ tsX: "Offset X",
63
+ tsY: "Offset Y",
64
+ tsBlur: "Blur",
65
+ tsColor: "Shadow colour",
66
+ writingMode: "Text direction",
67
+ wmHorizontal: "Horizontal",
68
+ wmVertical: "Vertical",
37
69
  };
@@ -26,7 +26,7 @@ export const legacy = {
26
26
  resizeColumns: "Drag to resize columns", dragPadding: "Drag to change padding",
27
27
  style_typography: "Typography", style_fontFamily: "Font", style_fontSize: "Font size", style_appearance: "Appearance", style_lineHeight: "Line height",
28
28
  style_letterSpacing: "Letter spacing", style_decoration: "Decoration", style_transform: "Letter case", style_textAlign: "Text align",
29
- style_color: "Color", style_text: "Text", style_background: "Background", style_spacing: "Dimensions & spacing", style_padding: "Padding",
29
+ style_color: "Color", style_text: "Text", style_textGradient: "Text gradient", style_link: "Link color", style_linkHover: "Link hover color", style_background: "Background", style_spacing: "Spacing", style_padding: "Padding",
30
30
  style_margin: "Margin", style_gap: "Block spacing", style_width: "Width", style_maxWidth: "Max width", style_minHeight: "Min height",
31
31
  style_border: "Border & radius", style_borderWidth: "Border width", style_borderStyle: "Border style", style_borderColor: "Border color", style_radius: "Radius",
32
32
  style_visibility: "Visibility", style_hide: "Hide per device", hide_desktop: "Hide on desktop", hide_tablet: "Hide on tablet", hide_mobile: "Hide on mobile",