webcake-landing-mcp 1.13.0 → 1.13.2

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.
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "v": "1.13.2",
4
+ "d": "20/11/2026",
5
+ "type": "Added",
6
+ "en": "A new live-comment element (livestream-style scrolling comment feed above a fake input) is now in the catalog, with full docs in…",
7
+ "vi": "Danh mục có thêm element live-comment (luồng bình luận kiểu livestream cuộn lên trên một ô input giả), kèm tài liệu đầy đủ trong…"
8
+ },
9
+ {
10
+ "v": "1.13.1",
11
+ "d": "20/11/2026",
12
+ "type": "Fixed",
13
+ "en": "update_page, patch_page, add_section (legacy fallback path), and completing a cached draft via create_page/patch_page/update_page with a draft_id…",
14
+ "vi": "update_page, patch_page, add_section (đường fallback cho backend cũ), và việc hoàn tất một draft đã cache qua create_page/patch_page/update_page với…"
15
+ },
2
16
  {
3
17
  "v": "1.13.0",
4
18
  "d": "19/11/2026",
@@ -26,19 +40,5 @@
26
40
  "type": "Added",
27
41
  "en": "A new clone_page tool clones any web page (including JavaScript-rendered React/Vue/Next sites) by measuring it in a real headless-Chrome browser at…",
28
42
  "vi": "Tool mới clone_page clone bất kỳ trang web nào (kể cả trang render bằng JavaScript như React/Vue/Next) bằng cách đo trực tiếp trong trình duyệt…"
29
- },
30
- {
31
- "v": "1.9.0",
32
- "d": "19/11/2026",
33
- "type": "Changed",
34
- "en": "A Webcake JWT the backend rejects is now marked dead in a shared store (Redis + Postgres) instead of a single process's memory, so every remote…",
35
- "vi": "Một JWT Webcake bị backend từ chối nay được đánh dấu \"chết\" trong một store chung (Redis + Postgres) thay vì chỉ nằm trong bộ nhớ của một process,…"
36
- },
37
- {
38
- "v": "1.8.0",
39
- "d": "19/11/2026",
40
- "type": "Added",
41
- "en": "The stdio server now detects an expired or backend-rejected WEBCAKE_JWT and automatically reopens the browser Connect page, then retries the failing…",
42
- "vi": "Server stdio nay tự phát hiện WEBCAKE_JWT đã hết hạn hoặc bị backend từ chối, tự mở lại trang Connect trên trình duyệt, rồi thử lại tool bị lỗi một…"
43
43
  }
44
44
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "source": "landing_page_backend/assets/editor/main/traits (statics/traitGroup.js → Trait.vue → panels)",
4
- "branch": "feat/ai-muse-key-guard"
4
+ "branch": "export@65885f7fb"
5
5
  },
6
6
  "types": {
7
7
  "address": {
@@ -5568,6 +5568,16 @@
5568
5568
  },
5569
5569
  "ratioConstrain": {
5570
5570
  "file": "main/traits/SizeAndPosition.vue"
5571
+ },
5572
+ "thumbnail_height": {
5573
+ "label": "Image height",
5574
+ "control": "number",
5575
+ "file": "main/traits/ListProductOption.vue"
5576
+ },
5577
+ "thumbnail_width": {
5578
+ "label": "Image width",
5579
+ "control": "number",
5580
+ "file": "main/traits/ListProductOption.vue"
5571
5581
  }
5572
5582
  },
5573
5583
  "specials": {
@@ -5842,6 +5852,11 @@
5842
5852
  "control": "number",
5843
5853
  "file": "main/traits/LiveCommentTrait.vue"
5844
5854
  },
5855
+ "inputIconColor": {
5856
+ "label": "Icon color",
5857
+ "control": "color",
5858
+ "file": "main/traits/LiveCommentTrait.vue"
5859
+ },
5845
5860
  "inputIconPadding": {
5846
5861
  "control": "number",
5847
5862
  "file": "main/traits/LiveCommentTrait.vue"
@@ -5851,6 +5866,11 @@
5851
5866
  "control": "number",
5852
5867
  "file": "main/traits/LiveCommentTrait.vue"
5853
5868
  },
5869
+ "inputPlaceholderColor": {
5870
+ "label": "Placeholder color",
5871
+ "control": "color",
5872
+ "file": "main/traits/LiveCommentTrait.vue"
5873
+ },
5854
5874
  "inputTextPadding": {
5855
5875
  "label": "Letter space",
5856
5876
  "control": "number",
@@ -7660,6 +7680,10 @@
7660
7680
  "control": "text",
7661
7681
  "file": "main/traits/CustomAdvance.vue"
7662
7682
  },
7683
+ "onlyInStockProducts": {
7684
+ "control": "boolean",
7685
+ "file": "main/traits/SearchListProductTrait.vue"
7686
+ },
7663
7687
  "show_control_volume": {
7664
7688
  "label": "Select style",
7665
7689
  "control": "boolean",
@@ -8588,6 +8612,10 @@
8588
8612
  "control": "select",
8589
8613
  "file": "main/traits/SurveyTrait.vue"
8590
8614
  },
8615
+ "paddingBottom": {
8616
+ "control": "number",
8617
+ "file": "main/traits/SurveyTrait.vue"
8618
+ },
8591
8619
  "required": {
8592
8620
  "label": "Field ID",
8593
8621
  "control": "boolean",
@@ -8790,6 +8818,10 @@
8790
8818
  },
8791
8819
  "table": {
8792
8820
  "config": {
8821
+ "borderWidth": {
8822
+ "label": "Màu & độ dày",
8823
+ "file": "main/traits/TableTrait.vue"
8824
+ },
8793
8825
  "constrainProportions": {
8794
8826
  "file": "main/traits/SizeAndPosition.vue"
8795
8827
  },
@@ -8807,6 +8839,11 @@
8807
8839
  "control": "number",
8808
8840
  "file": "main/traits/TextSetting.vue"
8809
8841
  },
8842
+ "padding_content": {
8843
+ "label": "K/cách trong ô",
8844
+ "control": "number",
8845
+ "file": "main/traits/TableTrait.vue"
8846
+ },
8810
8847
  "placeholder": {
8811
8848
  "label": "Placeholder",
8812
8849
  "control": "color",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$source": "export@65885f7fb",
2
3
  "text-block": {
3
4
  "picker": "TextPicker",
4
5
  "variants": 22,
@@ -434,7 +435,7 @@
434
435
  "name": "Carousel"
435
436
  },
436
437
  "specials": {
437
- "editingSlide": "oi3ehtip"
438
+ "editingSlide": "8yooo2kr"
438
439
  },
439
440
  "events": [],
440
441
  "children": [
@@ -600,25 +601,25 @@
600
601
  "image": "https://content.pancake.vn/web-media-262/fe/c2/79/28/f56c30934df76aa336aaa17de0cfa1ad4693965bef0e98cefe60663e-w:1080-h:1080-l:1230867-t:image/png.png",
601
602
  "title": "Option 1",
602
603
  "value": "value1",
603
- "field_name": "sv_d1e2dbst_1"
604
+ "field_name": "sv_c11r6v0p_1"
604
605
  },
605
606
  {
606
607
  "image": "https://content.pancake.vn/web-media-262/cf/28/bf/69/063983e9398aef530d2434471e0fa3cacf58f70c3e5802a681d99144-w:1200-h:1200-l:1141607-t:image/png.png",
607
608
  "title": "Option 2",
608
609
  "value": "value2",
609
- "field_name": "sv_d1e2dbst_2"
610
+ "field_name": "sv_c11r6v0p_2"
610
611
  },
611
612
  {
612
613
  "image": "https://content.pancake.vn/web-media-262/ce/7b/b7/3d/cc8d8acb37b56d356e84e8734ecc901a18a096820b91a123657d9b2a-w:743-h:743-l:399203-t:image/png.png",
613
614
  "title": "Option 3",
614
615
  "value": "value3",
615
- "field_name": "sv_d1e2dbst_3"
616
+ "field_name": "sv_c11r6v0p_3"
616
617
  },
617
618
  {
618
619
  "image": "https://content.pancake.vn/web-media-262/84/5c/74/51/076d60ec6a22a67edb7802b92c1e2eb2a11c152cf80de4df40472efc-w:736-h:490-l:206707-t:image/png.png",
619
620
  "title": "Option 4",
620
621
  "value": "value4",
621
- "field_name": "sv_d1e2dbst_4"
622
+ "field_name": "sv_c11r6v0p_4"
622
623
  }
623
624
  ],
624
625
  "type": "text-image",
@@ -29,6 +29,8 @@ const EDITOR = load("./editor-keys.generated.json");
29
29
  const RTYPES = RENDERER.types || {};
30
30
  const SHARED = RENDERER.shared || {};
31
31
  const CLIENT = new Set(RENDERER.client_mentioned || []);
32
+ /** Keys only one type's own runtime file reads (render_v4/src/elements/<type>.js). */
33
+ const CLIENT_BY_TYPE = Object.fromEntries(Object.entries(RENDERER.client_by_type || {}).map(([t, ks]) => [t, new Set(ks)]));
32
34
  /** Types the HTML builder has a case for (anything else renders an empty wrapper). */
33
35
  export const RENDERED_TYPES = new Set(RENDERER.dispatched_html || []);
34
36
  const typeOf = (v) => (Array.isArray(v) ? "array" : v === null ? "null" : typeof v);
@@ -57,7 +59,7 @@ export function renderedVia(type, bucket, key) {
57
59
  return "shared";
58
60
  if (bucket === "styles" && r.styles_open && !(r.styles_dropped || []).includes(key))
59
61
  return "css-loop";
60
- if (bucket === "specials" && r.client_specials && CLIENT.has(key))
62
+ if (bucket === "specials" && r.client_specials && (CLIENT.has(key) || CLIENT_BY_TYPE[type]?.has(key)))
61
63
  return "client";
62
64
  return undefined;
63
65
  }
@@ -103,6 +105,7 @@ export function elementSchema(type) {
103
105
  ...Object.keys(ed?.[b] || {}),
104
106
  ...Object.keys(desc[b]),
105
107
  ...Object.keys(fvals[b]),
108
+ ...(b === "specials" ? CLIENT_BY_TYPE[type] ?? [] : []),
106
109
  ]);
107
110
  for (const k of names) {
108
111
  // A shared helper's default / compared values hold for every type only for config (sticky*,
@@ -19,7 +19,7 @@ export const FORM = [
19
19
  botcake_dynamic_ref: "string — ref appended to the m.me URL when app_target='botcake_dynamic'.",
20
20
  others_link_params: "array of {key: elementId, name: string} — field→URL-param mappings when app_target='others'.",
21
21
  partnerServiceId: "string — sent as partner_service_id (partner/affiliate tracking).",
22
- fb_event_type: "Facebook pixel standard event fired on submit (e.g. Lead, Purchase, none). Use 'none' to disable pixel firing.",
22
+ fb_event_type: "Facebook pixel standard event fired on submit (e.g. Lead, Purchase, none). Use 'none' to disable pixel firing. A form from new_element / get_element carries the editor's default 'CompleteRegistration' (also tiktok_event_type, conversion value 10000 VND) — it only fires when the page has a Facebook pixel (window.fbq); set the event the user's ads optimise for, or 'none'.",
23
23
  fb_conversion_value: "string — FB pixel conversion value.",
24
24
  fb_tracking_currency: "string — currency for the FB conversion value (VND…).",
25
25
  fb_custom_tracking: "string — extra custom FB pixel event name to fire on submit.",
@@ -1,4 +1,6 @@
1
1
  import { randomId, seedPosition, setStyle, setBox } from "../../../core/element.js";
2
+ /** live-comment's default input icon (editor factory.js). */
3
+ export const LIVE_COMMENT_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 256 256"><path d="M116,128a12,12,0,1,1,12,12A12,12,0,0,1,116,128ZM84,140a12,12,0,1,0-12-12A12,12,0,0,0,84,140Zm88,0a12,12,0,1,0-12-12A12,12,0,0,0,172,140Zm60-76V192a16,16,0,0,1-16,16H83l-32.6,28.16A16,16,0,0,1,24,224V64A16,16,0,0,1,40,48H216A16,16,0,0,1,232,64Z"></path></svg>`;
2
4
  export const MARKETING = [
3
5
  {
4
6
  type: "countdown", category: "marketing", container: false, defaultName: "Count Down",
@@ -226,6 +228,48 @@ export const MARKETING = [
226
228
  };
227
229
  },
228
230
  },
231
+ {
232
+ type: "live-comment", category: "marketing", container: false, defaultName: "Live comment",
233
+ summary: "Livestream-style comment feed: comments scroll up inside the box (fading at the top) above a fake comment input. The SSR renders the wrapper + input (render/build index.js renderLiveComment); render_v4 live-comment.js fetches the comments and animates them. Comments come from a dataset (dataSourceType 'data_grid' + datasetId, the default) or from what visitors submit through a form on THIS page (dataSourceType 'data_form' + formId: GET /form_data/live_comment, and a new submit is appended live). Clicking the input opens popupId (put the comment form in that popup).",
234
+ useWhen: "Social proof on a livestream / sale page: a moving wall of buyer comments. Wire data_form + a form (name + comment fields) inside a popup + popupId so visitors can post.",
235
+ keySpecials: {
236
+ dataSourceType: "'data_grid' (default — a dataset: datasetId) | 'data_form' (submissions of a form on this page: formId). Nothing to show without one → empty feed.",
237
+ datasetId: "dataset id (data_grid).",
238
+ formId: "id of a form on this page (data_form); its submits are appended live.",
239
+ nameField: "column / field_name shown as the commenter's name.",
240
+ textCommentField: "column / field_name shown as the comment text.",
241
+ avatarField: "column / field_name holding an avatar URL (showAvatar:true, chat-bubble style only).",
242
+ popupId: "id of a popup opened when the comment input is clicked.",
243
+ commentType: "0 = colour bar (default), 1 = chat bubble (avatar + name + text).",
244
+ showAvatar: "boolean (chat bubble only).",
245
+ avatarSize: "px, default 28.",
246
+ commentLayout: "'horizontal' | 'vertical' — avatar beside / above the content (chat bubble).",
247
+ commentContentLayout: "'horizontal' | 'vertical' — name beside / above the text (chat bubble).",
248
+ inputPlaceholder: "REQUIRED string — the input's placeholder (printed raw: missing renders 'undefined').",
249
+ inputIconSvg: "REQUIRED string — the input's icon <svg> (printed raw).",
250
+ commentItemBackground: "(config, per breakpoint) REQUIRED [colour] or [colour, 'hidden'] — comment pill background. The CSS build reads [1] unguarded: missing crashes the whole page.",
251
+ commentInputBackground: "(config, per breakpoint) REQUIRED [colour] or [colour, 'hidden'] — input background. Missing crashes the whole page.",
252
+ commentItemHeight: "(config, per breakpoint) comment min-height px; also commentItemGap, commentItemTextPadding, commentItemFontSize, commentItemBorderRadius.",
253
+ inputHeight: "(config, per breakpoint) input height px; also inputBorderRadius, inputFontSize, inputTextPadding, inputIconSize, inputIconPadding, inputPlaceholderColor, inputIconColor.",
254
+ color: "(styles key) comment text colour.",
255
+ },
256
+ seed: (el) => {
257
+ // editor factory.js:687 — every key here is read unguarded (a missing one crashes or prints "undefined")
258
+ seedPosition(el);
259
+ setBox(el, 388, 200);
260
+ for (const bp of ["desktop", "mobile"])
261
+ Object.assign(el.responsive[bp].config, {
262
+ inputIconSize: 16, inputHeight: 35, inputBorderRadius: 9999, inputFontSize: 13, inputTextPadding: 8, inputIconPadding: 8,
263
+ commentInputBackground: ["rgba(0, 0, 0, 0.2)"],
264
+ commentItemHeight: 32, commentItemGap: 6, commentItemBorderRadius: 6, commentItemFontSize: 12, commentItemTextPadding: 6,
265
+ commentItemBackground: ["rgba(242, 48, 48, 0.35)"],
266
+ });
267
+ Object.assign(el.specials, {
268
+ inputIconSvg: LIVE_COMMENT_ICON, inputPlaceholder: "Comment...",
269
+ commentType: 0, showAvatar: false, avatarSize: 28, commentLayout: "horizontal", commentContentLayout: "horizontal",
270
+ });
271
+ },
272
+ },
229
273
  {
230
274
  type: "alertMessage", category: "marketing", container: false, defaultName: "alertMessage",
231
275
  summary: "INTERNAL UTILITY FUNCTION — not a placeable page element. alertMessage(type, content, duration) is a JS helper called by other renderers (form, upload, verify-code, input-datetime, etc.) to show a transient toast. It has no vm.specials and cannot be placed on a page. Do NOT generate an element node of this type.",
@@ -90,7 +90,7 @@
90
90
  "verify-code", "group-select", "group-select-item",
91
91
  "list-product", "search-list-product", "cart-items", "cart-quantity", "product-select", "table",
92
92
  "countdown", "timegroup", "auto-number", "random-number", "notify", "spin-wheel", "survey",
93
- "alertMessage"
93
+ "live-comment", "alertMessage"
94
94
  ]
95
95
  },
96
96
  "styles": {