sbuilder-mcp 0.110.1 → 0.110.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ All notable changes to this project are documented in this file.
6
6
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
7
7
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [0.110.2] - 2026-11-19
10
+
11
+ ### Added
12
+ - The `text-dataset` element gains a result-count mode (`datasetSource` `list`, `kind` `count`) that prints a `countFormat` such as "24 sản phẩm" from the page's product list.
13
+
14
+ ### Changed
15
+ - The element catalog is regenerated against web_builder v1.0.285, and the `hoverSwapImage` guidance now spells out the gallery requirement.
16
+
9
17
  ## [0.110.1] - 2026-11-19
10
18
 
11
19
  ### Added
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,14 @@ Mọi thay đổi đáng chú ý của dự án được ghi lại trong file n
6
6
  Định dạng dựa trên [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
7
7
  và dự án tuân theo [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [0.110.2] - 2026-11-19
10
+
11
+ ### Added
12
+ - Phần tử `text-dataset` có thêm chế độ đếm kết quả (`datasetSource` `list`, `kind` `count`) in ra `countFormat` như "24 sản phẩm" từ danh sách sản phẩm của trang.
13
+
14
+ ### Changed
15
+ - Danh mục phần tử được tạo lại theo web_builder v1.0.285, và hướng dẫn `hoverSwapImage` nay nêu rõ yêu cầu về thư viện ảnh.
16
+
9
17
  ## [0.110.1] - 2026-11-19
10
18
 
11
19
  ### Added
@@ -66,6 +66,7 @@ export const APP_SCAFFOLDS = {
66
66
  "specials": {
67
67
  "htmlTag": "p",
68
68
  "moreButtonEnabled": false,
69
+ "countFormat": "",
69
70
  "stylePreset": "text-dataset-default"
70
71
  },
71
72
  "responsive": {},
@@ -112,6 +113,7 @@ export const APP_SCAFFOLDS = {
112
113
  "specials": {
113
114
  "htmlTag": "p",
114
115
  "moreButtonEnabled": false,
116
+ "countFormat": "",
115
117
  "stylePreset": "text-dataset-default"
116
118
  },
117
119
  "responsive": {},
@@ -158,6 +160,7 @@ export const APP_SCAFFOLDS = {
158
160
  "specials": {
159
161
  "htmlTag": "p",
160
162
  "moreButtonEnabled": false,
163
+ "countFormat": "",
161
164
  "stylePreset": "text-dataset-default"
162
165
  },
163
166
  "responsive": {},
@@ -254,6 +257,7 @@ export const APP_SCAFFOLDS = {
254
257
  "specials": {
255
258
  "htmlTag": "p",
256
259
  "moreButtonEnabled": false,
260
+ "countFormat": "",
257
261
  "stylePreset": "text-dataset-default"
258
262
  },
259
263
  "responsive": {},
@@ -589,6 +593,7 @@ export const APP_SCAFFOLDS = {
589
593
  "specials": {
590
594
  "htmlTag": "p",
591
595
  "moreButtonEnabled": false,
596
+ "countFormat": "",
592
597
  "stylePreset": "text-dataset-default"
593
598
  },
594
599
  "responsive": {},
@@ -635,6 +640,7 @@ export const APP_SCAFFOLDS = {
635
640
  "specials": {
636
641
  "htmlTag": "p",
637
642
  "moreButtonEnabled": false,
643
+ "countFormat": "",
638
644
  "stylePreset": "text-dataset-default"
639
645
  },
640
646
  "responsive": {},
@@ -1,7 +1,7 @@
1
1
  export const DEAD_KEY_SOURCE = {
2
- "files": 6485,
3
- "identifiers": 118570,
4
- "seededKeys": 469,
2
+ "files": 6495,
3
+ "identifiers": 118729,
4
+ "seededKeys": 470,
5
5
  "dead": 0
6
6
  };
7
7
  /**
@@ -16026,7 +16026,7 @@ export const ELEMENTS = {
16026
16026
  "Use a consistent image ratio (config.featureImageRatio) so the layout does not jump between images — default is a uniform 1:1 square; \"auto\" uses each image's natural size.",
16027
16027
  "Hover-zoom is on by default at 150% (config.hoverZoomValue); set it to 100 to disable, or raise it up to 300 for a closer zoom.",
16028
16028
  "Nav arrows sit \"inside\" (overlaid) or \"outside\" the image via config.listNavPosition.",
16029
- "config.hoverSwapImage fades in the NEXT gallery photo while the pointer is on the tile OR anywhere on the linked product card around it — the product-grid effect, nothing else to set. It needs a gallery of 2+, is off by default, and does nothing on a touch screen (no pointer), so a phone keeps the first photo."
16029
+ "config.hoverSwapImage fades in the NEXT gallery photo while the pointer is on the tile OR anywhere on the linked product card around it — the product-grid effect, nothing else to set. It needs a gallery of 2+ (a product with one photo just holds still), is off by default, and does nothing on a touch screen (no pointer), so a phone keeps the first photo. A product-bound tile shown with NO product in context renders its grey placeholders, and the swap then fades to the next placeholder."
16030
16030
  ],
16031
16031
  "semantics": [
16032
16032
  "product-image",
@@ -29454,6 +29454,7 @@ export const ELEMENTS = {
29454
29454
  "specials": {
29455
29455
  "htmlTag": "p",
29456
29456
  "moreButtonEnabled": false,
29457
+ "countFormat": "",
29457
29458
  "stylePreset": "text-dataset-default"
29458
29459
  },
29459
29460
  "bindings": [
@@ -32754,6 +32755,31 @@ export const ELEMENTS = {
32754
32755
  "record_format"
32755
32756
  ]
32756
32757
  },
32758
+ {
32759
+ "key": "result_count",
32760
+ "label": "Result count",
32761
+ "controls": [
32762
+ "count_format",
32763
+ "kind",
32764
+ "productId",
32765
+ "categoryId",
32766
+ "datasetSource",
32767
+ "recordField",
32768
+ "recordFieldType",
32769
+ "recordFormat",
32770
+ "textValue",
32771
+ "descriptionDisplayType",
32772
+ "descriptionLines",
32773
+ "clampTitle",
32774
+ "moreText",
32775
+ "lessText",
32776
+ "moreButtonColor",
32777
+ "icon",
32778
+ "textGlobalStyle",
32779
+ "htmlTag",
32780
+ "moreButtonEnabled"
32781
+ ]
32782
+ },
32757
32783
  {
32758
32784
  "key": "description_display",
32759
32785
  "label": "Description display",
@@ -32887,6 +32913,7 @@ export const ELEMENTS = {
32887
32913
  "article",
32888
32914
  "record_field",
32889
32915
  "record_format",
32916
+ "count_format",
32890
32917
  "description_display",
32891
32918
  "width_select",
32892
32919
  "height_select",
@@ -32916,7 +32943,8 @@ export const ELEMENTS = {
32916
32943
  "useWhen": [
32917
32944
  "Product title, vendor, short summary, or description text in a product layout",
32918
32945
  "A long product description that should collapse to a few lines with a \"show more\" toggle",
32919
- "Product text that needs hover/active styling"
32946
+ "Product text that needs hover/active styling",
32947
+ "A result count beside a product grid (\"24 sản phẩm\") — config.datasetSource \"list\", kind \"count\""
32920
32948
  ],
32921
32949
  "avoidWhen": [
32922
32950
  "Generic static copy not tied to a product — use text or heading",
@@ -32928,7 +32956,8 @@ export const ELEMENTS = {
32928
32956
  "For a description, set config.descriptionDisplayType to \"Compact\" and config.descriptionLines to clamp it; enable specials.moreButtonEnabled for the toggle",
32929
32957
  "Customise config.moreText / config.lessText and config.icon (the chevron) for the toggle",
32930
32958
  "Style per state (default / hover / active) via the state switcher",
32931
- "In a record list on a number/integer field, set config.recordFormat to \"money\" to print it in the site currency (record.money.<fieldId>)"
32959
+ "In a record list on a number/integer field, set config.recordFormat to \"money\" to print it in the site currency (record.money.<fieldId>)",
32960
+ "RESULT COUNT: config.datasetSource \"list\" + config.kind \"count\" prints specials.countFormat with \"{count}\" replaced by how many products the PAGE's product list holds (the first product list on the page; filters and the category page narrow it). Place it outside the list, e.g. beside the sort select; no bindings"
32932
32961
  ],
32933
32962
  "semantics": [
32934
32963
  "product",
@@ -377,6 +377,7 @@ export const OVERLAY_SEEDS = {
377
377
  "specials": {
378
378
  "htmlTag": "h4",
379
379
  "moreButtonEnabled": false,
380
+ "countFormat": "",
380
381
  "stylePreset": "text-dataset-default"
381
382
  },
382
383
  "responsive": {},
@@ -1369,6 +1370,7 @@ export const OVERLAY_SEEDS = {
1369
1370
  "specials": {
1370
1371
  "htmlTag": "h3",
1371
1372
  "moreButtonEnabled": false,
1373
+ "countFormat": "",
1372
1374
  "stylePreset": "text-dataset-default"
1373
1375
  },
1374
1376
  "responsive": {},
@@ -1787,6 +1789,7 @@ export const OVERLAY_SEEDS = {
1787
1789
  "specials": {
1788
1790
  "htmlTag": "p",
1789
1791
  "moreButtonEnabled": true,
1792
+ "countFormat": "",
1790
1793
  "stylePreset": "text-dataset-default"
1791
1794
  },
1792
1795
  "responsive": {},
@@ -2429,6 +2432,7 @@ export const CART_SEEDS = {
2429
2432
  "specials": {
2430
2433
  "htmlTag": "h4",
2431
2434
  "moreButtonEnabled": false,
2435
+ "countFormat": "",
2432
2436
  "stylePreset": "text-dataset-default"
2433
2437
  },
2434
2438
  "responsive": {},
@@ -3267,6 +3271,7 @@ export const CART_SEEDS = {
3267
3271
  "specials": {
3268
3272
  "htmlTag": "h4",
3269
3273
  "moreButtonEnabled": false,
3274
+ "countFormat": "",
3270
3275
  "stylePreset": "text-dataset-default"
3271
3276
  },
3272
3277
  "responsive": {},
@@ -4,7 +4,7 @@ export const SHAPE_SOURCE = {
4
4
  "fromHandlers": 363,
5
5
  "fromSwaggerOnly": 12,
6
6
  "withReadOnly": 29,
7
- "structsRead": 3870
7
+ "structsRead": 3871
8
8
  };
9
9
  export const REQUEST_SHAPES = {
10
10
  "post:/api/ai/credits": {
@@ -1,7 +1,7 @@
1
1
  // GENERATED by scripts/gen-catalog.ts — do not edit by hand.
2
2
  // The platform commit every other generated file here describes.
3
3
  export const PLATFORM_SOURCE = {
4
- "commit": "c55f578089bc8e167e65812f87b578c526ee9236",
5
- "committedAt": "2026-11-19T18:39:43+07:00",
4
+ "commit": "26df875d58484c33707c936fb88cb9fca2e3f54b",
5
+ "committedAt": "2026-11-19T22:16:47+07:00",
6
6
  "dirty": false
7
7
  };
@@ -897,6 +897,7 @@ export const PAGE_LAYOUT_SEEDS = {
897
897
  "specials": {
898
898
  "htmlTag": "h4",
899
899
  "moreButtonEnabled": false,
900
+ "countFormat": "",
900
901
  "stylePreset": "text-dataset-default"
901
902
  },
902
903
  "responsive": {},
@@ -943,6 +944,7 @@ export const PAGE_LAYOUT_SEEDS = {
943
944
  "specials": {
944
945
  "htmlTag": "p",
945
946
  "moreButtonEnabled": false,
947
+ "countFormat": "",
946
948
  "stylePreset": "text-dataset-default"
947
949
  },
948
950
  "responsive": {},
@@ -989,6 +991,7 @@ export const PAGE_LAYOUT_SEEDS = {
989
991
  "specials": {
990
992
  "htmlTag": "p",
991
993
  "moreButtonEnabled": false,
994
+ "countFormat": "",
992
995
  "stylePreset": "text-dataset-default"
993
996
  },
994
997
  "responsive": {},
@@ -2082,6 +2085,7 @@ export const STORE_PAGE_SEEDS = {
2082
2085
  "specials": {
2083
2086
  "htmlTag": "h3",
2084
2087
  "moreButtonEnabled": false,
2088
+ "countFormat": "",
2085
2089
  "stylePreset": "text-dataset-default"
2086
2090
  },
2087
2091
  "responsive": {},
@@ -2500,6 +2504,7 @@ export const STORE_PAGE_SEEDS = {
2500
2504
  "specials": {
2501
2505
  "htmlTag": "p",
2502
2506
  "moreButtonEnabled": true,
2507
+ "countFormat": "",
2503
2508
  "stylePreset": "text-dataset-default"
2504
2509
  },
2505
2510
  "responsive": {},
@@ -2929,6 +2934,7 @@ export const STORE_PAGE_SEEDS = {
2929
2934
  "specials": {
2930
2935
  "htmlTag": "h3",
2931
2936
  "moreButtonEnabled": false,
2937
+ "countFormat": "",
2932
2938
  "stylePreset": "text-dataset-default"
2933
2939
  },
2934
2940
  "responsive": {},
@@ -3366,6 +3372,7 @@ export const STORE_PAGE_SEEDS = {
3366
3372
  "specials": {
3367
3373
  "htmlTag": "h4",
3368
3374
  "moreButtonEnabled": false,
3375
+ "countFormat": "",
3369
3376
  "stylePreset": "text-dataset-default"
3370
3377
  },
3371
3378
  "responsive": {},
@@ -4088,6 +4095,7 @@ export const STORE_PAGE_SEEDS = {
4088
4095
  "specials": {
4089
4096
  "htmlTag": "h4",
4090
4097
  "moreButtonEnabled": false,
4098
+ "countFormat": "",
4091
4099
  "stylePreset": "text-dataset-default"
4092
4100
  },
4093
4101
  "responsive": {},
@@ -4383,6 +4391,7 @@ export const STORE_PAGE_SEEDS = {
4383
4391
  "specials": {
4384
4392
  "htmlTag": "h3",
4385
4393
  "moreButtonEnabled": false,
4394
+ "countFormat": "",
4386
4395
  "stylePreset": "text-dataset-default"
4387
4396
  },
4388
4397
  "responsive": {},
@@ -4645,6 +4654,7 @@ export const STORE_PAGE_SEEDS = {
4645
4654
  "specials": {
4646
4655
  "htmlTag": "h4",
4647
4656
  "moreButtonEnabled": false,
4657
+ "countFormat": "",
4648
4658
  "stylePreset": "text-dataset-default"
4649
4659
  },
4650
4660
  "responsive": {},
@@ -4691,6 +4701,7 @@ export const STORE_PAGE_SEEDS = {
4691
4701
  "specials": {
4692
4702
  "htmlTag": "p",
4693
4703
  "moreButtonEnabled": false,
4704
+ "countFormat": "",
4694
4705
  "stylePreset": "text-dataset-default"
4695
4706
  },
4696
4707
  "responsive": {},
@@ -4737,6 +4748,7 @@ export const STORE_PAGE_SEEDS = {
4737
4748
  "specials": {
4738
4749
  "htmlTag": "p",
4739
4750
  "moreButtonEnabled": false,
4751
+ "countFormat": "",
4740
4752
  "stylePreset": "text-dataset-default"
4741
4753
  },
4742
4754
  "responsive": {},
@@ -5009,6 +5021,7 @@ export const STORE_PAGE_SEEDS = {
5009
5021
  "specials": {
5010
5022
  "htmlTag": "h3",
5011
5023
  "moreButtonEnabled": false,
5024
+ "countFormat": "",
5012
5025
  "stylePreset": "text-dataset-default"
5013
5026
  },
5014
5027
  "responsive": {},
@@ -5055,6 +5068,7 @@ export const STORE_PAGE_SEEDS = {
5055
5068
  "specials": {
5056
5069
  "htmlTag": "p",
5057
5070
  "moreButtonEnabled": false,
5071
+ "countFormat": "",
5058
5072
  "stylePreset": "text-dataset-default"
5059
5073
  },
5060
5074
  "responsive": {},
@@ -5101,6 +5115,7 @@ export const STORE_PAGE_SEEDS = {
5101
5115
  "specials": {
5102
5116
  "htmlTag": "p",
5103
5117
  "moreButtonEnabled": true,
5118
+ "countFormat": "",
5104
5119
  "stylePreset": "text-dataset-default"
5105
5120
  },
5106
5121
  "responsive": {},
@@ -1,9 +1,9 @@
1
1
  // GENERATED by scripts/gen-catalog.ts — do not edit by hand.
2
2
  // Source: <WB_REPO>/schema/src/elements/translatableFields.ts
3
3
  export const TRANSLATION_SOURCE = {
4
- "elements": 68,
5
- "pairs": 190,
6
- "neverKeys": 191,
4
+ "elements": 69,
5
+ "pairs": 191,
6
+ "neverKeys": 192,
7
7
  "entityTypes": 12
8
8
  };
9
9
  /** Every entity type a translation record can name, including "node". */
@@ -32,6 +32,9 @@ export const TRANSLATABLE_SPECIALS = {
32
32
  "popup": [
33
33
  "closeLabel"
34
34
  ],
35
+ "text-dataset": [
36
+ "countFormat"
37
+ ],
35
38
  "select": [
36
39
  "placeholder",
37
40
  "filterValues"
@@ -384,6 +387,7 @@ export const NEVER_TRANSLATED = [
384
387
  "boundCompareCents",
385
388
  "boundHref",
386
389
  "boundHrefLabel",
390
+ "boundImage",
387
391
  "boundModel",
388
392
  "boundMoneyOverride",
389
393
  "boundPriceCents",
@@ -563,6 +567,15 @@ export const TRANSLATABLE_FIELDS = {
563
567
  "key": "closeLabel"
564
568
  }
565
569
  ],
570
+ "text-dataset": [
571
+ {
572
+ "key": "countFormat",
573
+ "when": {
574
+ "key": "datasetSource",
575
+ "equals": "list"
576
+ }
577
+ }
578
+ ],
566
579
  "select": [
567
580
  {
568
581
  "key": "placeholder"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbuilder-mcp",
3
- "version": "0.110.1",
3
+ "version": "0.110.2",
4
4
  "description": "MCP server that designs and operates a Store Builder site — pages, data, theme and publish — through the platform's own API and live-edit protocol.",
5
5
  "mcpName": "io.github.vuluu2k/sbuilder-mcp",
6
6
  "type": "module",