webcake-landing-mcp 1.13.4 → 1.13.5

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,11 @@
1
1
  [
2
+ {
3
+ "v": "1.13.5",
4
+ "d": "20/11/2026",
5
+ "type": "Fixed",
6
+ "en": "update_page/patch_page no longer block on a click event the Webcake editor itself saved with action:null (an event added via the editor's EventTrait…",
7
+ "vi": "update_page/patch_page không còn bị chặn bởi một event click mà chính editor Webcake đã lưu với action:null (một event được thêm qua picker…"
8
+ },
2
9
  {
3
10
  "v": "1.13.4",
4
11
  "d": "20/11/2026",
@@ -33,12 +40,5 @@
33
40
  "type": "Added",
34
41
  "en": "new_element and the get_element/list_elements skeletons now return the exact node the Webcake editor drops for a type — its default colors, font,…",
35
42
  "vi": "new_element và skeleton của get_element/list_elements nay trả về đúng node mà editor Webcake thả ra cho type đó — màu, font, viền, kích thước mặc…"
36
- },
37
- {
38
- "v": "1.12.0",
39
- "d": "19/11/2026",
40
- "type": "Added",
41
- "en": "get_element/list_elements now return keys (one line per specials/config/styles key the published renderer actually reads, with meaning, value type,…",
42
- "vi": "get_element/list_elements nay trả thêm keys (mỗi dòng là một key specials/config/styles mà renderer thật có đọc, kèm ý nghĩa, kiểu giá trị, enum,…"
43
43
  }
44
44
  ]
@@ -210,8 +210,8 @@
210
210
  "description": "Trigger. Matches the editor's own dropdown: click/hover on any element, success/error on a form, delay on anything (plus the legacy \"unset\")."
211
211
  },
212
212
  "action": {
213
- "type": "string",
214
- "description": "Behavior. Common click actions and what target holds: none(-), open_link(URL), open_popup(popup id), close_popup(popup id), scroll_to(element/section id), show_section/hide_section(section id), show_hide_element(element id), change_tab(id), lightbox(image id/url), copy(text), collapse(id), set_field_value(field_name + set_value), back_to/back_home(url), share(url), play_audio/stop_audio(id), open_cart/add_to_cart(product id), open_app(provider: botcake|whatsapp|mess_prefill|tiktok_prefill|line_prefill), change_color, custom_js. Hover actions: change_color, change_background, change_text_color, change_underline, change_overline, change_image, animation_hover, show_hide_element.",
213
+ "type": ["string", "null"],
214
+ "description": "null = an event the editor added but no action was picked yet (EventTrait.vue add()); the renderer ignores it and create_page's repair drops it. Behavior. Common click actions and what target holds: none(-), open_link(URL), open_popup(popup id), close_popup(popup id), scroll_to(element/section id), show_section/hide_section(section id), show_hide_element(element id), change_tab(id), lightbox(image id/url), copy(text), collapse(id), set_field_value(field_name + set_value), back_to/back_home(url), share(url), play_audio/stop_audio(id), open_cart/add_to_cart(product id), open_app(provider: botcake|whatsapp|mess_prefill|tiktok_prefill|line_prefill), change_color, custom_js. Hover actions: change_color, change_background, change_text_color, change_underline, change_overline, change_image, animation_hover, show_hide_element.",
215
215
  "examples": [
216
216
  "none", "open_link", "open_popup", "close_popup", "scroll_to",
217
217
  "show_section", "hide_section", "show_hide_element", "copy",
package/dist/smoke.js CHANGED
@@ -189,6 +189,17 @@ console.log("== expand: relocates misplaced responsive.<bp>.animation into confi
189
189
  const kept = landingDomain.expand(both).page[0].children[0].responsive.desktop;
190
190
  check("explicit config.animation wins over the stray key", kept.config.animation.name === "zoomIn" && kept.animation === undefined, kept.config);
191
191
  }
192
+ console.log("== editor-saved values: looping animation + empty click event (#4) ==");
193
+ {
194
+ // A page saved by the editor carries repeat:"infinite" on looping animations and
195
+ // action:null on an event added but never configured — a whole-tree patch must not choke on them.
196
+ const ed = structuredClone(good);
197
+ const el = ed.page[0].children[0];
198
+ el.responsive.desktop.config.animation = { name: "pulse", delay: 0, duration: 1, repeat: "infinite" };
199
+ el.events = [{ id: "ev_null", type: "click", action: null, target: null }];
200
+ const r = validatePage(landingDomain.expand(ed));
201
+ check("editor repeat:'infinite' + action:null validate", r.valid, r.errors);
202
+ }
192
203
  console.log("== form fields: field_default follows the system field_name; alias names warn ==");
193
204
  {
194
205
  // The editor locks a field's ID when properties.field_default is true and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-landing-mcp",
3
- "version": "1.13.4",
3
+ "version": "1.13.5",
4
4
  "description": "MCP server exposing Webcake landing-page element schemas + AI usage hints, and persisting LLM-generated page sources to a Webcake backend.",
5
5
  "mcpName": "io.github.vuluu2k/webcake-landing-mcp",
6
6
  "type": "module",