@ecomcx/ecomweb-editor 1.19.0 → 1.21.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 (71) hide show
  1. package/README.md +15 -0
  2. package/package.json +3 -3
  3. package/src/i18n/index.ts +74 -0
  4. package/src/index.ts +3 -1
  5. package/src/legacy/basic.tsx +8 -30
  6. package/src/legacy/dynamic.tsx +7 -35
  7. package/src/locales/en/attrs.ts +72 -0
  8. package/src/locales/en/bindings.ts +26 -0
  9. package/src/locales/en/block-desc.ts +53 -0
  10. package/src/locales/en/block-titles.ts +43 -0
  11. package/src/locales/en/blocks.ts +39 -0
  12. package/src/locales/en/controls.ts +18 -0
  13. package/src/locales/en/hints.ts +142 -0
  14. package/src/locales/en/index.ts +20 -0
  15. package/src/locales/en/layout.ts +37 -0
  16. package/src/locales/en/legacy-basic.ts +54 -0
  17. package/src/locales/en/legacy-dynamic.ts +73 -0
  18. package/src/locales/en/legacy.ts +67 -0
  19. package/src/locales/en/motion.ts +33 -0
  20. package/src/locales/en/pattern-lib.ts +151 -0
  21. package/src/locales/en/patterns.ts +45 -0
  22. package/src/locales/en/shortcuts.ts +19 -0
  23. package/src/locales/en/v2.ts +177 -0
  24. package/src/locales/vi/attrs.ts +72 -0
  25. package/src/locales/vi/bindings.ts +26 -0
  26. package/src/locales/vi/block-desc.ts +53 -0
  27. package/src/locales/vi/block-titles.ts +43 -0
  28. package/src/locales/vi/blocks.ts +39 -0
  29. package/src/locales/vi/controls.ts +18 -0
  30. package/src/locales/vi/hints.ts +142 -0
  31. package/src/locales/vi/index.ts +24 -0
  32. package/src/locales/vi/layout.ts +37 -0
  33. package/src/locales/vi/legacy-basic.ts +54 -0
  34. package/src/locales/vi/legacy-dynamic.ts +73 -0
  35. package/src/locales/vi/legacy.ts +67 -0
  36. package/src/locales/vi/motion.ts +33 -0
  37. package/src/locales/vi/pattern-lib.ts +151 -0
  38. package/src/locales/vi/patterns.ts +45 -0
  39. package/src/locales/vi/shortcuts.ts +19 -0
  40. package/src/locales/vi/v2.ts +177 -0
  41. package/src/shared/animation-store.ts +38 -0
  42. package/src/shared/labels.ts +11 -134
  43. package/src/shared/patterns-kit.ts +7 -0
  44. package/src/shared/patterns-library.ts +152 -0
  45. package/src/shared/patterns.ts +6 -32
  46. package/src/v2/blocks/index.ts +5 -11
  47. package/src/v2/blocks/inline-style.ts +30 -0
  48. package/src/v2/blocks/layout.tsx +19 -14
  49. package/src/v2/blocks/media.tsx +22 -18
  50. package/src/v2/blocks/text.tsx +2 -1
  51. package/src/v2/blocks/theme.tsx +22 -19
  52. package/src/v2/canvas/canvas.tsx +9 -1
  53. package/src/v2/core/bindings.ts +9 -8
  54. package/src/v2/editor.css +15 -1
  55. package/src/v2/editor.tsx +7 -4
  56. package/src/v2/i18n.ts +14 -0
  57. package/src/v2/index.ts +3 -1
  58. package/src/v2/labels.ts +11 -340
  59. package/src/v2/ui/attr-form.tsx +14 -29
  60. package/src/v2/ui/attr-hints.ts +84 -54
  61. package/src/v2/ui/bindings.tsx +10 -12
  62. package/src/v2/ui/block-descriptions.ts +6 -33
  63. package/src/v2/ui/inserter.tsx +2 -2
  64. package/src/v2/ui/inspector.tsx +7 -5
  65. package/src/v2/ui/layout-panel.tsx +3 -14
  66. package/src/v2/ui/motion-panel.tsx +99 -0
  67. package/src/v2/ui/options.tsx +6 -13
  68. package/src/v2/ui/style-controls.tsx +7 -6
  69. package/src/v2/ui/style-tab.tsx +9 -4
  70. package/src/v2/ui/toolbar.tsx +10 -5
  71. package/src/v2/ui/unit-controls.tsx +6 -5
@@ -0,0 +1,142 @@
1
+ /** Block attribute hints in the settings panel: labels, notes, option names. Keys: "block.attr.label|help|opt.<value>", "value.<value>" (shared), "imageSize.<size>". */
2
+ export const hints = {
3
+ levelOption: "Heading {n} (H{n})",
4
+ "*.textAlign.opt.left": "Left",
5
+ "*.textAlign.opt.center": "Center",
6
+ "*.textAlign.opt.right": "Right",
7
+ "*.textAlign.opt.justify": "Justify",
8
+ "video.autoplay.label": "Autoplay (muted)",
9
+ "video.loop.label": "Loop",
10
+ "video.muted.label": "Muted",
11
+ "video.controls.label": "Show controls",
12
+ "video.playsInline.label": "Play inline (iPhone)",
13
+ "video.preload.label": "Preload",
14
+ "video.preload.opt.none": "None",
15
+ "video.preload.opt.metadata": "Metadata",
16
+ "video.preload.opt.auto": "All",
17
+ "audio.autoplay.label": "Autoplay",
18
+ "audio.loop.label": "Loop",
19
+ "audio.preload.label": "Preload",
20
+ "audio.preload.opt.none": "None",
21
+ "audio.preload.opt.metadata": "Metadata",
22
+ "audio.preload.opt.auto": "All",
23
+ "file.name.label": "Display name",
24
+ "file.src.label": "File",
25
+ "video.src.label": "Video URL",
26
+ "audio.src.label": "Audio URL",
27
+ "youtube.src.label": "YouTube link",
28
+ "youtube.start.label": "Start at second",
29
+ "image.src.label": "Image URL",
30
+ "cover.src.label": "Background image",
31
+ "pullquote.citation.label": "Citation",
32
+ "heading.level.help": "The page / post title is already the H1 — start content headings at H2 and don't skip levels (SEO).",
33
+ "queryTitle.level.help": "Archive / search pages should have exactly one H1 — this block.",
34
+ "breadcrumbs.separator.opt.\u203a": "›",
35
+ "breadcrumbs.separator.opt./": "/",
36
+ "breadcrumbs.separator.opt.\u00bb": "»",
37
+ "breadcrumbs.separator.opt.\u2192": "→",
38
+ "siteTitle.level.opt.0": "Paragraph (not a heading)",
39
+ "group.padding.opt.none": "None",
40
+ "group.padding.opt.small": "Small",
41
+ "group.padding.opt.medium": "Medium",
42
+ "group.padding.opt.large": "Large",
43
+ "columns.verticalAlign.opt.top": "Top",
44
+ "columns.verticalAlign.opt.center": "Middle",
45
+ "columns.verticalAlign.opt.bottom": "Bottom",
46
+ "mediaText.verticalAlign.opt.top": "Top",
47
+ "mediaText.verticalAlign.opt.center": "Middle",
48
+ "mediaText.verticalAlign.opt.bottom": "Bottom",
49
+ "cover.contentAlign.opt.top": "Top",
50
+ "cover.contentAlign.opt.center": "Middle",
51
+ "cover.contentAlign.opt.bottom": "Bottom",
52
+ "mediaText.position.opt.left": "Media left",
53
+ "mediaText.position.opt.right": "Media right",
54
+ "buttons.align.opt.left": "Left",
55
+ "buttons.align.opt.center": "Center",
56
+ "buttons.align.opt.right": "Right",
57
+ "buttons.align.opt.space-between": "Space between",
58
+ "button.variant.opt.primary": "Primary",
59
+ "button.variant.opt.secondary": "Secondary",
60
+ "button.variant.opt.outline": "Outline",
61
+ "button.rel.help": "e.g. nofollow, sponsored",
62
+ "spacer.height.help": "Theme size (xs → 2xl) or a length (e.g. 3rem, 80px)",
63
+ "callout.tone.opt.info": "Info",
64
+ "callout.tone.opt.success": "Success",
65
+ "callout.tone.opt.warning": "Warning",
66
+ "callout.tone.opt.danger": "Danger",
67
+ "image.align.opt.left": "Left",
68
+ "image.align.opt.center": "Center",
69
+ "image.align.opt.right": "Right",
70
+ "image.align.opt.wide": "Wide",
71
+ "image.align.opt.full": "Full width",
72
+ "featuredImage.aspect.opt.auto": "Original",
73
+ "featuredImage.aspect.opt.16/9": "16:9",
74
+ "featuredImage.aspect.opt.4/3": "4:3",
75
+ "featuredImage.aspect.opt.1/1": "Square 1:1",
76
+ "featuredImage.aspect.opt.3/4": "Portrait 3:4",
77
+ "socialLinks.size.opt.small": "Small",
78
+ "socialLinks.size.opt.medium": "Medium",
79
+ "socialLinks.size.opt.large": "Large",
80
+ "socialLinks.align.opt.left": "Left",
81
+ "socialLinks.align.opt.center": "Center",
82
+ "socialLinks.align.opt.right": "Right",
83
+ "navigation.location.help": "The menu assigned to this location in Appearance › Menus",
84
+ "navigation.orientation.opt.horizontal": "Horizontal",
85
+ "navigation.orientation.opt.vertical": "Vertical",
86
+ "query.orderBy.opt.date": "Date",
87
+ "query.orderBy.opt.modified": "Modified",
88
+ "query.orderBy.opt.title": "Title",
89
+ "query.orderBy.opt.comment_count": "Comments",
90
+ "query.orderBy.opt.menu_order": "Custom order",
91
+ "query.orderBy.opt.rand": "Random",
92
+ "query.authorId.label": "Author ID",
93
+ "query.search.label": "Search keyword",
94
+ "query.exclude.label": "Exclude posts (IDs, comma-separated)",
95
+ "query.sticky.opt.any": "All",
96
+ "query.sticky.opt.only": "Sticky only",
97
+ "query.sticky.opt.exclude": "Hide sticky",
98
+ "image.href.label": "Link when clicked",
99
+ "image.linkTarget.label": "Open link",
100
+ "image.linkTarget.opt._self": "Same tab",
101
+ "image.linkTarget.opt._blank": "New tab",
102
+ "orderedList.reversed.label": "Reversed",
103
+ "blockquote.citation.label": "Citation",
104
+ "postDate.displayType.label": "Show date",
105
+ "postDate.displayType.opt.published": "Published",
106
+ "postDate.displayType.opt.modified": "Last modified",
107
+ "query.paginate.label": "Paginate (?qpage=)",
108
+ "query.paginate.help": "Use on regular pages; archives use \"Inherit\"",
109
+ "query.orderByMeta.label": "Order by custom field",
110
+ "query.orderByMeta.help": "Key must be declared filterable; replaces \"Order by\"",
111
+ "query.order.opt.desc": "Descending",
112
+ "query.order.opt.asc": "Ascending",
113
+ "query.inherit.help": "On archive / search pages, show that page's posts",
114
+ "postTemplate.layout.opt.list": "List",
115
+ "postTemplate.layout.opt.grid": "Grid",
116
+ "templatePart.tagName.opt.div": "Generic (div)",
117
+ "templatePart.tagName.opt.header": "Header",
118
+ "templatePart.tagName.opt.footer": "Footer",
119
+ "templatePart.tagName.opt.aside": "Aside",
120
+ "templatePart.tagName.opt.section": "Section",
121
+ "value.left": "Left",
122
+ "value.center": "Center",
123
+ "value.right": "Right",
124
+ "value.justify": "Justify",
125
+ "value.top": "Top",
126
+ "value.bottom": "Bottom",
127
+ "value.none": "None",
128
+ "value.small": "Small",
129
+ "value.medium": "Medium",
130
+ "value.large": "Large",
131
+ "value.wide": "Wide",
132
+ "value.full": "Full width",
133
+ "value.auto": "Auto",
134
+ "value.horizontal": "Horizontal",
135
+ "value.vertical": "Vertical",
136
+ "value._self": "Same tab",
137
+ "value._blank": "New tab",
138
+ "imageSize.thumbnail": "Thumbnail",
139
+ "imageSize.medium": "Medium",
140
+ "imageSize.large": "Large",
141
+ "imageSize.full": "Full size",
142
+ };
@@ -0,0 +1,20 @@
1
+ import type { vi } from "../vi";
2
+ import { v2 } from "./v2";
3
+ import { legacy } from "./legacy";
4
+ import { attrs } from "./attrs";
5
+ import { bindings } from "./bindings";
6
+ import { blockDesc } from "./block-desc";
7
+ import { blockTitles } from "./block-titles";
8
+ import { blocks } from "./blocks";
9
+ import { controls } from "./controls";
10
+ import { hints } from "./hints";
11
+ import { layout } from "./layout";
12
+ import { legacyBasic } from "./legacy-basic";
13
+ import { legacyDynamic } from "./legacy-dynamic";
14
+ import { motion } from "./motion";
15
+ import { patternLib } from "./pattern-lib";
16
+ import { patterns } from "./patterns";
17
+ import { shortcuts } from "./shortcuts";
18
+
19
+ /** 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. */
20
+ export const en: typeof vi = { v2, legacy, attrs, bindings, blockDesc, blockTitles, blocks, controls, hints, layout, legacyBasic, legacyDynamic, motion, patternLib, patterns, shortcuts };
@@ -0,0 +1,37 @@
1
+ /** Layout / Background & effects / Hover sections of the Style tab. */
2
+ export const layout = {
3
+ layout: "Layout",
4
+ type: "Type",
5
+ flow: "Group",
6
+ row: "Row",
7
+ stack: "Stack",
8
+ grid: "Grid",
9
+ direction: "Direction",
10
+ justify: "Justify",
11
+ align: "Align",
12
+ wrap: "Allow wrapping",
13
+ columns: "Columns",
14
+ auto: "Auto",
15
+ minWidth: "Minimum column width",
16
+ effects: "Background & effects",
17
+ gradient: "Gradient",
18
+ angle: "Angle",
19
+ from: "From",
20
+ to: "To",
21
+ none: "None",
22
+ shadow: "Shadow",
23
+ ratio: "Aspect ratio",
24
+ sticky: "Sticky",
25
+ top: "Top offset",
26
+ hover: "Hover",
27
+ text: "Text color",
28
+ background: "Background",
29
+ border: "Border color",
30
+ lift: "Lift",
31
+ start: "Start",
32
+ center: "Center",
33
+ end: "End",
34
+ between: "Space between",
35
+ stretch: "Stretch",
36
+ custom: "Custom",
37
+ };
@@ -0,0 +1,54 @@
1
+ /** Labels and names of the basic block set in the 1.x editor. */
2
+ export const legacyBasic = {
3
+ spacer: "Spacer",
4
+ buttons: "Buttons",
5
+ cover: "Cover",
6
+ mediaText: "Media & text",
7
+ pullquote: "Pullquote",
8
+ details: "Details",
9
+ customHtml: "Custom HTML",
10
+ socialLinks: "Social links",
11
+ tableOfContents: "Table of contents",
12
+ preformatted: "Preformatted",
13
+ height: "Height (preset or 48px)",
14
+ align: "Alignment",
15
+ left: "Left",
16
+ center: "Center",
17
+ right: "Right",
18
+ "space-between": "Space between",
19
+ image: "Image",
20
+ alt: "Alt text",
21
+ overlay: "Overlay color",
22
+ opacity: "Overlay opacity (%)",
23
+ minHeight: "Min height",
24
+ contentAlign: "Content position",
25
+ top: "Top",
26
+ bottom: "Bottom",
27
+ fixed: "Fixed background",
28
+ position: "Media position",
29
+ width: "Media width (%)",
30
+ verticalAlign: "Vertical align",
31
+ stack: "Stack on mobile",
32
+ citation: "Citation",
33
+ summary: "Summary (click to open)",
34
+ open: "Open by default",
35
+ html: "HTML",
36
+ size: "Size",
37
+ showLabels: "Show names next to icons",
38
+ small: "Small",
39
+ medium: "Medium",
40
+ large: "Large",
41
+ title: "Title",
42
+ maxLevel: "Up to heading level",
43
+ pickImage: "Choose image",
44
+ replaceImage: "Replace image",
45
+ removeImage: "Remove image",
46
+ addLink: "Add link",
47
+ service: "Service",
48
+ url: "URL",
49
+ htmlHint: "HTML runs only on the website; it is filtered on save for people without the unfiltered HTML permission.",
50
+ tocHint: "Built from the headings in the post",
51
+ summaryPlaceholder: "Click to read more",
52
+ initialButton: "Button",
53
+ initialButton2: "Learn more",
54
+ };
@@ -0,0 +1,73 @@
1
+ /** Labels and names of the theme blocks (site title, menu, post list…) in the 1.x editor. */
2
+ export const legacyDynamic = {
3
+ siteTitle: "Site title",
4
+ siteLogo: "Logo",
5
+ siteTagline: "Tagline",
6
+ navigation: "Navigation",
7
+ search: "Search",
8
+ languageSwitcher: "Language switcher",
9
+ copyright: "Copyright",
10
+ postTitle: "Post/page title",
11
+ postContent: "Post/page content",
12
+ postExcerpt: "Excerpt",
13
+ featuredImage: "Featured image",
14
+ postDate: "Date",
15
+ postAuthor: "Author",
16
+ postTerms: "Categories / tags",
17
+ comments: "Comments",
18
+ queryTitle: "Archive title",
19
+ termDescription: "Term description",
20
+ breadcrumbs: "Breadcrumbs",
21
+ postNavigation: "Previous / next post",
22
+ query: "Post list",
23
+ postTemplate: "Post template",
24
+ pagination: "Pagination",
25
+ queryEmpty: "No results",
26
+ templatePart: "Template part",
27
+ level: "Heading level (0 = text)",
28
+ link: "Link",
29
+ textAlign: "Text align",
30
+ width: "Width (px)",
31
+ location: "Menu location",
32
+ orientation: "Orientation",
33
+ horizontal: "Horizontal",
34
+ vertical: "Vertical",
35
+ mobile: "Menu button on mobile",
36
+ placeholder: "Placeholder",
37
+ buttonText: "Button text",
38
+ text: "Owner (empty = site title)",
39
+ moreText: "“Read more” text",
40
+ size: "Image size",
41
+ aspect: "Aspect ratio",
42
+ avatar: "Show avatar",
43
+ taxonomy: "Taxonomy (category, post_tag…)",
44
+ separator: "Separator",
45
+ inherit: "Use the list of the current page",
46
+ postType: "Post type",
47
+ perPage: "Posts",
48
+ category: "Category (slug)",
49
+ tag: "Tag (slug)",
50
+ orderBy: "Order by",
51
+ date: "Date",
52
+ title: "Title",
53
+ menu_order: "Menu order",
54
+ order: "Order",
55
+ desc: "Newest first",
56
+ asc: "Oldest first",
57
+ layout: "Layout",
58
+ list: "List",
59
+ grid: "Grid",
60
+ columns: "Columns",
61
+ slug: "Part (slug, e.g. header)",
62
+ tagName: "HTML tag",
63
+ left: "Left",
64
+ center: "Center",
65
+ right: "Right",
66
+ justify: "Justify",
67
+ inheritSummary: "list of the page",
68
+ partSummary: "part “{v}”",
69
+ menuSummary: "location “{v}”",
70
+ searchPlaceholder: "Search…",
71
+ commentsCount: "Comments ({v})",
72
+ noMenu: "(no menu assigned to this location)",
73
+ };
@@ -0,0 +1,67 @@
1
+ /** Editor 1.x (TipTap) and the shared Style panel. */
2
+ export const legacy = {
3
+ heading: "Heading", taskList: "Task list", columnsBlock: "Columns", column: "Column",
4
+ inspectorEmpty: "Select a block in the post to see its settings.", noSettings: "This block has no settings of its own.", blockActions: "Actions",
5
+ textAlign: "Text alignment", alignJustify: "Justify", headingLevel: "Heading level", showPdf: "Show the PDF in the page", allowDownload: "Allow download",
6
+ startAt: "Start at second", codeLanguage: "Language (e.g. js, php)", listStart: "Start at number",
7
+ inserter: "Add block", searchBlocks: "Search blocks…", noBlocks: "No matching blocks", dragToInsert: "Click to insert below the selected block, or drag into the post",
8
+ groupText: "Text", groupMedia: "Media", groupDesign: "Design", groupEmbed: "Embeds", groupWidgets: "Widgets", groupTheme: "Theme", groupPlugin: "Plugins",
9
+ outline: "Outline", outlineEmpty: "The post has no blocks yet", outlineHint: "Click to select a block, drag to move it",
10
+ columns2: "2 columns", columns3: "3 columns", columnsHint: "Split content into columns", group: "Group", groupHint: "Box around blocks (background, padding)",
11
+ callout: "Callout", calloutHint: "Info, warning…", button: "Button", buttonHint: "Link button", buttonEmpty: "Button", buttonText: "Button text", buttonUrl: "Link",
12
+ embed: "Embed", embedHint: "YouTube, Vimeo, Spotify, TikTok, X…", embedUrl: "URL (YouTube, Vimeo, Spotify, TikTok, X, Instagram…)",
13
+ embedUnsupported: "Cannot embed — shown as a link on the website", edit: "Edit", blockSettings: "Block settings", layout: "Layout",
14
+ addColumn: "+ column", removeColumn: "− column", vAlign: "Vertical align", vTop: "Top", vCenter: "Middle", vBottom: "Bottom", stack: "Stack on mobile",
15
+ background: "Background", textColor: "Text", noColor: "Clear", padding: "Padding", padNone: "None", padSmall: "Small", padMedium: "Medium", padLarge: "Large",
16
+ tone: "Style", toneInfo: "Info", toneSuccess: "Success", toneWarning: "Warning", toneDanger: "Danger", calloutTitle: "Callout title",
17
+ variant: "Button style", variantPrimary: "Primary", variantSecondary: "Secondary", variantOutline: "Outline",
18
+ blockToolbar: "Block toolbar", transformTo: "change block type", moreOptions: "More options", insertBefore: "Add block above",
19
+ listIndent: "List indentation", indent: "Indent", outdent: "Outdent", formatting: "Formatting", headerRow: "Header row",
20
+ blockVariant: "Variant", variant_default: "Default", variant_stripes: "Stripes", variant_rounded: "Rounded", variant_circle: "Circle", variant_plain: "Plain",
21
+ variant_dots: "Dots", variant_wide: "Wide", variant_pill: "Pill", variant_card: "Card", advanced: "Advanced", anchor: "HTML anchor", anchorHint: "Link to this block with #anchor (letters, digits, hyphens)",
22
+ cssClass: "Additional CSS class", cssClassHint: "Up to 5 classes, separated by spaces",
23
+ settingsTab: "Settings", styleTab: "Styles", device: "Device", device_base: "Desktop", device_tablet: "Tablet", device_mobile: "Mobile",
24
+ inherited: "Using", default: "Default", custom: "custom", customColor: "custom color", resetAll: "Reset all", none: "None",
25
+ linkSides: "One value for all 4 sides", unlinkSides: "Edit each side", side_top: "Top", side_right: "Right", side_bottom: "Bottom", side_left: "Left",
26
+ resizeColumns: "Drag to resize columns", dragPadding: "Drag to change padding",
27
+ style_typography: "Typography", style_fontFamily: "Font", style_fontSize: "Font size", style_appearance: "Appearance", style_lineHeight: "Line height",
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",
30
+ style_margin: "Margin", style_gap: "Block spacing", style_width: "Width", style_maxWidth: "Max width", style_minHeight: "Min height",
31
+ style_border: "Border & radius", style_borderWidth: "Border width", style_borderStyle: "Border style", style_borderColor: "Border color", style_radius: "Radius",
32
+ style_visibility: "Visibility", style_hide: "Hide per device", hide_desktop: "Hide on desktop", hide_tablet: "Hide on tablet", hide_mobile: "Hide on mobile",
33
+ font_body: "Body font", font_heading: "Heading font", font_mono: "Monospace", italicSuffix: "italic",
34
+ weight_300: "Light", weight_400: "Regular", weight_500: "Medium", weight_600: "Semibold", weight_700: "Bold", weight_800: "Extra bold", weight_900: "Black",
35
+ underlineText: "Underline", strikeText: "Strikethrough", upper: "UPPERCASE", lower: "lowercase", capitalize: "Capitalize",
36
+ border_solid: "Solid", border_dashed: "Dashed", border_dotted: "Dotted",
37
+ preformattedBlock: "Preformatted", tableHint: "Choose columns × rows", tableCols: "Columns", tableRows: "Rows", footerRow: "Footer row", fixedLayout: "Fixed column widths", tabBlocks: "Blocks", tabPatterns: "Patterns", noPatterns: "No matching patterns", cat_mine: "My patterns", syncedPattern: "Synced pattern", syncedBadge: "Synced", syncedLoading: "Loading pattern…", syncedMissing: "Pattern not available (deleted or unpublished)", syncedEdit: "Edit original", syncedDetach: "Detach", createPattern: "Create pattern", cat_hero: "Hero", cat_features: "Features", cat_stats: "Stats", cat_steps: "Process", cat_logos: "Logos", cat_cta: "Call to action",
38
+ cat_pricing: "Pricing", cat_testimonials: "Testimonials", cat_faq: "FAQ", cat_team: "Team", cat_contact: "Contact", cat_text: "Text", cat_gallery: "Gallery", cat_header: "Header", cat_footer: "Footer",
39
+ stats: "Content statistics", words: "{n} words", chars: "{n} characters", readingTime: "~{n} min read",
40
+ editorLabel: "Post content", apply: "Apply", insert: "Insert", cancel: "Cancel", removeLink: "Remove link", linkNewTab: "Open in new tab",
41
+ blockOptions: "Block options (drag to move)", addBelow: "Add block below", moveUp: "Move up", moveDown: "Move down",
42
+ duplicate: "Duplicate", deleteBlock: "Delete block", selectParent: "Select parent block",
43
+ placeholder: "Type “/” to insert images, tables, headings… or start writing",
44
+ unknownBlock: "Unknown block", unknownBlockHint: "— the plugin that made this block is not active; its data is kept",
45
+ headingPlaceholder: "Heading",
46
+ undo: "Undo (⌘Z)", redo: "Redo (⌘⇧Z)",
47
+ paragraph: "Paragraph", paragraphHint: "Plain text",
48
+ h2: "Large heading", h3: "Medium heading", h4: "Small heading",
49
+ bulletList: "Bulleted list", bulletListHint: "Bullets", orderedList: "Numbered list",
50
+ quote: "Quote", codeBlock: "Code block",
51
+ image: "Image", imageHint: "From media library", gallery: "Gallery", galleryHint: "Grid of images",
52
+ video: "Video", videoHint: "Upload or from library", audio: "Audio", audioHint: "MP3, WAV",
53
+ file: "Download file", fileHint: "PDF, Word, Excel…",
54
+ table: "Table", youtube: "YouTube video", youtubeHint: "Paste a link", youtubePrompt: "YouTube link",
55
+ hr: "Divider", hrHint: "Separator", shortcode: "Shortcode", shortcodePrompt: "Shortcode name (e.g. contact-form)",
56
+ imageUrlPrompt: "URL",
57
+ bold: "Bold (⌘B)", italic: "Italic (⌘I)", underline: "Underline (⌘U)", strike: "Strikethrough", code: "Code", link: "Link (⌘K)",
58
+ linkPrompt: "Link URL",
59
+ alignLeft: "Align left", alignCenter: "Align center", alignRight: "Align right",
60
+ insertImage: "Insert image", insertTable: "Insert table", insertVideo: "Insert YouTube video",
61
+ addRow: "+ row", addCol: "+ column", delRow: "− row", delCol: "− column", delTable: "Delete table",
62
+ slashHint: "Type / for quick insert", noCommand: "No matching command",
63
+ size: "Image size", sizeMedium: "Medium (300px)", sizeMediumLarge: "Medium large (768px)", sizeLarge: "Large (1024px)", sizeFull: "Full",
64
+ floatLeft: "Float left", floatRight: "Float right", center: "Center", wide: "Wide",
65
+ alt: "Alt", altPrompt: "Image description (alt) for screen readers and SEO", caption: "Caption", captionPrompt: "Caption shown under the image",
66
+ replace: "Replace", resetSize: "Original size", columns: "Columns:", galleryLabel: "Gallery · {n} images", videoLabel: "Video", audioLabel: "Audio", fileLabel: "File",
67
+ };
@@ -0,0 +1,33 @@
1
+ /** Motion section of the Style tab (on scroll, speed, delay, hover). */
2
+ export const motion = {
3
+ title: "Motion",
4
+ scroll: "On scroll",
5
+ none: "None",
6
+ more: "More effects",
7
+ preview: "Preview",
8
+ speed: "Speed",
9
+ delay: "Delay",
10
+ fast: "Fast",
11
+ normal: "Normal",
12
+ slow: "Slow",
13
+ repeat: "Replay every time it scrolls in",
14
+ stagger: "Reveal children one by one",
15
+ hover: "Hover effect",
16
+ plugin: "Plugin",
17
+ in: {
18
+ fade: "Fade",
19
+ "slide-up": "Slide up",
20
+ "slide-down": "Slide down",
21
+ "slide-left": "Slide left",
22
+ "slide-right": "Slide right",
23
+ "zoom-in": "Zoom in",
24
+ "zoom-out": "Zoom out",
25
+ "blur-in": "Blur in",
26
+ },
27
+ hv: {
28
+ lift: "Lift",
29
+ grow: "Grow",
30
+ brighten: "Brighten",
31
+ glow: "Glow",
32
+ },
33
+ };
@@ -0,0 +1,151 @@
1
+ /** Text of the section pattern library (names, descriptions, placeholder content). Keys <id> / <id>D = name / description. */
2
+ export const patternLib = {
3
+ title: "A clear, memorable headline",
4
+ sub: "One or two sentences on what you help customers achieve and why they can trust you.",
5
+ eyebrow: "About",
6
+ badge: "New",
7
+ start: "Get started",
8
+ learn: "Learn more",
9
+ call: "Call now",
10
+ chat: "Chat on Zalo",
11
+ demo: "View demo",
12
+ more: "See details",
13
+ f1: "Fast",
14
+ f2: "Secure",
15
+ f3: "Easy to use",
16
+ f4: "Cost-effective",
17
+ f5: "24/7 support",
18
+ f6: "Fully customizable",
19
+ fText: "A short description of the benefit this brings to your customers.",
20
+ n1: "10,000+",
21
+ n2: "98%",
22
+ n3: "24/7",
23
+ n4: "15 years",
24
+ l1: "Customers",
25
+ l2: "Satisfied",
26
+ l3: "Support",
27
+ l4: "Experience",
28
+ s1: "Discover",
29
+ s2: "Consult",
30
+ s3: "Deliver",
31
+ s4: "Support",
32
+ sText: "A short description of how this step works.",
33
+ plan1: "Basic",
34
+ plan2: "Pro",
35
+ plan3: "Business",
36
+ perMonth: "/month",
37
+ choose: "Choose plan",
38
+ popular: "Most popular",
39
+ item: "Feature",
40
+ feature: "Feature",
41
+ yes: "✓",
42
+ no: "—",
43
+ q1: "What does your service include?",
44
+ q2: "How long does delivery take?",
45
+ q3: "How is the cost calculated?",
46
+ q4: "Do you offer support after delivery?",
47
+ q5: "How do I get started?",
48
+ a: "A short, direct answer that puts the customer at ease.",
49
+ quote1: "Excellent service and a very helpful team. I will recommend them to my friends.",
50
+ quote2: "Results beyond our expectations, and it saved us a lot of time.",
51
+ quote3: "Professional from the first consultation to after-sales support.",
52
+ who1: "Jane Doe, CEO",
53
+ who2: "John Smith, Manager",
54
+ who3: "Alex Lee, Store owner",
55
+ bigQuote: "The best decision we have ever made for our business.",
56
+ member: "Full name",
57
+ role: "Job title",
58
+ bio: "One short line about this team member.",
59
+ trusted: "Trusted by thousands of businesses",
60
+ logo: "Logo",
61
+ address: "Address",
62
+ addressV: "123 ABC Street, District 1, Ho Chi Minh City",
63
+ phone: "Phone",
64
+ phoneV: "0900 000 000",
65
+ email: "Email",
66
+ emailV: "hello@example.com",
67
+ hours: "Opening hours",
68
+ hoursV: "Mon – Sat: 8:00 am – 5:30 pm",
69
+ contactTitle: "Get in touch",
70
+ contactSub: "We reply within 24 working hours.",
71
+ twoColA: "Left column",
72
+ twoColB: "Right column",
73
+ body: "Paragraph text. Keep it short, one idea per paragraph so readers can follow easily.",
74
+ note: "Important note",
75
+ noteText: "This is something the reader should notice before continuing.",
76
+ footerAbout: "Company",
77
+ footerHelp: "Help",
78
+ footerLegal: "Legal",
79
+ l_about: "About",
80
+ l_news: "News",
81
+ l_jobs: "Careers",
82
+ l_faq: "FAQ",
83
+ l_guide: "Guides",
84
+ l_contact: "Contact",
85
+ l_terms: "Terms",
86
+ l_privacy: "Privacy",
87
+ l_refund: "Refunds",
88
+ copyright: "© 2026 Company name. All rights reserved.",
89
+ hero_split: "Hero — image + text",
90
+ hero_splitD: "Text and two buttons on the left, image on the right",
91
+ hero_gradient: "Hero — gradient",
92
+ hero_gradientD: "Centered headline on a gradient background",
93
+ hero_minimal: "Hero — minimal",
94
+ hero_minimalD: "Large left-aligned headline with plenty of space",
95
+ hero_bottom: "Hero — text below cover",
96
+ hero_bottomD: "Full-width cover image with text underneath",
97
+ hero_badge: "Hero — with badge",
98
+ hero_badgeD: "Small badge + headline + two buttons, centered",
99
+ feat_grid6: "6-feature grid",
100
+ feat_grid6D: "6 feature cards, revealed one by one on scroll",
101
+ feat_cards4: "4 lift-on-hover cards",
102
+ feat_cards4D: "4 cards that lift on hover",
103
+ feat_list: "Feature list",
104
+ feat_listD: "Heading on the left, list of strengths on the right",
105
+ feat_alt: "Alternating features",
106
+ feat_altD: "Two image + text rows on opposite sides",
107
+ stats4: "4 stats",
108
+ stats4D: "Big numbers with labels",
109
+ stats_band: "Stats band",
110
+ stats_bandD: "Colored band with 3 numbers",
111
+ steps3: "3-step process",
112
+ steps3D: "3 numbered cards",
113
+ steps_v: "Vertical process",
114
+ steps_vD: "Consecutive steps, one heading each",
115
+ price2: "2-plan pricing",
116
+ price2D: "Two price cards, the middle one highlighted",
117
+ price_table: "Plan comparison table",
118
+ price_tableD: "Feature comparison across 3 plans",
119
+ test3: "3 testimonials",
120
+ test3D: "Three quote cards",
121
+ test_big: "One big testimonial",
122
+ test_bigD: "Large centered quote",
123
+ faq2: "Two-column FAQ",
124
+ faq2D: "Heading on the left, questions on the right",
125
+ faq5: "5 FAQs",
126
+ faq5D: "A list of collapsible questions",
127
+ cta_band: "Colored CTA band",
128
+ cta_bandD: "Gradient background, white button",
129
+ cta_split: "Split CTA",
130
+ cta_splitD: "Text on the left, button on the right",
131
+ cta_contact: "Call / Zalo CTA",
132
+ cta_contactD: "Two quick contact buttons",
133
+ team4: "Team of 4",
134
+ team4D: "4 member cards with photos",
135
+ team_intro: "Team introduction",
136
+ team_introD: "Team photo with intro text",
137
+ logos: "Logo strip",
138
+ logosD: "A row of customer / partner logos",
139
+ contact_split: "Split contact",
140
+ contact_splitD: "Details on the left, button and social links on the right",
141
+ contact_cards: "3 contact cards",
142
+ contact_cardsD: "Address, phone, email",
143
+ text_cols: "Two text columns",
144
+ text_colsD: "Heading + two paragraph columns",
145
+ text_note: "Highlighted note",
146
+ text_noteD: "Callout box with an explanation",
147
+ footer_simple: "Simple footer",
148
+ footer_simpleD: "Copyright and social links",
149
+ footer_cols: "3-column footer",
150
+ footer_colsD: "3 link groups + copyright",
151
+ };
@@ -0,0 +1,45 @@
1
+ /** Text of the 8 basic patterns (names, descriptions, placeholder content). */
2
+ export const patterns = {
3
+ hero: "Hero cover",
4
+ heroD: "Big heading over a background image + 2 buttons",
5
+ heroTitle: "A headline that stands out",
6
+ heroText: "One short sentence about what you offer your customers.",
7
+ start: "Get started",
8
+ learn: "Learn more",
9
+ features: "Three features",
10
+ featuresD: "Heading + 3 feature columns",
11
+ featuresTitle: "Why choose us",
12
+ f1: "Fast",
13
+ f2: "Secure",
14
+ f3: "Easy",
15
+ fText: "A short description of this benefit.",
16
+ cta: "Call to action",
17
+ ctaD: "Highlighted box with a button",
18
+ ctaTitle: "Ready to start?",
19
+ ctaText: "Sign up today for a special offer.",
20
+ ctaBtn: "Contact us",
21
+ pricing: "Pricing — 3 plans",
22
+ pricingD: "3 plan cards with a feature list",
23
+ basic: "Basic",
24
+ pro: "Pro",
25
+ biz: "Business",
26
+ perMonth: "/month",
27
+ choose: "Choose plan",
28
+ item: "Feature",
29
+ faq: "FAQ",
30
+ faqD: "Heading + collapsible questions",
31
+ q: "Question",
32
+ a: "A short answer.",
33
+ testimonial: "Testimonial",
34
+ testimonialD: "Pullquote with a name",
35
+ quote: "Great service, I will recommend it to my friends.",
36
+ who: "Jane Doe, CEO",
37
+ intro: "Media + intro",
38
+ introD: "Image on one side, text and button on the other",
39
+ introTitle: "About us",
40
+ introText: "A short introduction to the company, its mission and values.",
41
+ contact: "Contact",
42
+ contactD: "Contact details + social links",
43
+ contactTitle: "Get in touch",
44
+ contactText: "Address · Phone · Email",
45
+ };
@@ -0,0 +1,19 @@
1
+ /** Keyboard shortcuts panel (what each key does). */
2
+ export const shortcuts = {
3
+ undo: "Undo / redo (across header and footer)",
4
+ save: "Save every changed part",
5
+ insert: "Insert a block (in an empty paragraph)",
6
+ split: "Split block / line break",
7
+ indent: "Indent / outdent list item",
8
+ esc: "Select the whole block",
9
+ selectAll: "Select all blocks",
10
+ duplicate: "Duplicate",
11
+ remove: "Delete block",
12
+ around: "Insert before / after",
13
+ move: "Move up / down",
14
+ toolbar: "Go to the block toolbar",
15
+ marks: "Bold / italic / underline",
16
+ link: "Link",
17
+ code: "Inline code",
18
+ markdown: "Shortcuts: heading, list, quote, code, separator",
19
+ };