@times-design-system/components-wordpress 1.2.0 → 1.2.2-alpha.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.
@@ -22,7 +22,7 @@ Use this checklist when creating each new WordPress block from a React component
22
22
 
23
23
  ## 3. block.json
24
24
 
25
- - [ ] Set `name` to `times/<component-name>`
25
+ - [ ] Set `name` to `tds/<component-name>`
26
26
  - [ ] Set descriptive `title`
27
27
  - [ ] Added all React props as `attributes`
28
28
  - [ ] Set appropriate `type` for each attribute
@@ -127,7 +127,7 @@ Event handler → Not supported (use editor preview only)
127
127
 
128
128
  ### Issue: Block doesn't appear in inserter
129
129
 
130
- **Solution**: Verify `block.json` has `name: "times/..."` and `index.js` imports block registration
130
+ **Solution**: Verify `block.json` has `name: "tds/..."` and `index.js` imports block registration
131
131
 
132
132
  ### Issue: Attributes not persisting
133
133
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.1](https://github.com/newsuk/times-design-system/compare/@times-design-system/components-wordpress@1.2.0...@times-design-system/components-wordpress@1.2.1) (2026-05-27)
7
+
8
+ **Note:** Version bump only for package @times-design-system/components-wordpress
9
+
6
10
  # [1.2.0](https://github.com/newsuk/times-design-system/compare/@times-design-system/components-wordpress@0.7.1...@times-design-system/components-wordpress@1.2.0) (2026-05-27)
7
11
 
8
12
  ### Bug Fixes
package/README.md CHANGED
@@ -633,7 +633,7 @@ addFilter(
633
633
  'blocks.registerBlockType',
634
634
  'my-plugin/modify-button',
635
635
  (settings, name) => {
636
- if (name === 'times/button') {
636
+ if (name === 'tds/button') {
637
637
  // Add custom attribute
638
638
  settings.attributes.myCustomAttr = {
639
639
  type: 'string',
@@ -653,7 +653,7 @@ addFilter(
653
653
 
654
654
  function register_times_block_styles() {
655
655
  register_block_style(
656
- 'times/button',
656
+ 'tds/button',
657
657
  [
658
658
  'name' => 'gradient',
659
659
  'label' => 'Gradient Style',
@@ -707,13 +707,13 @@ Create reusable block patterns:
707
707
  <?php
708
708
  // In your plugin/theme
709
709
  register_block_pattern(
710
- 'times/hero-with-button',
710
+ 'tds/hero-with-button',
711
711
  [
712
712
  'title' => 'Hero Section with Button',
713
713
  'description' => 'Large hero section with Times Design System button',
714
714
  'content' => '
715
715
  <!-- wp:cover {"url":"...","minHeight":400} -->
716
- <!-- wp:times/button {"label":"Learn More","intent":"primary","size":"large"} /-->
716
+ <!-- wp:tds/button {"label":"Learn More","intent":"primary","size":"large"} /-->
717
717
  <!-- /wp:cover -->
718
718
  ',
719
719
  'categories' => [ 'hero' ],
@@ -89,7 +89,7 @@ mkdir -p packages/components-wordpress/src/blocks/<component-name>
89
89
  {
90
90
  "$schema": "https://schemas.wp.org/trunk/block.json",
91
91
  "apiVersion": 3,
92
- "name": "times/<block-name>",
92
+ "name": "tds/<block-name>",
93
93
  "title": "Block Display Name",
94
94
  "category": "common",
95
95
  "description": "Brief description",
@@ -131,7 +131,7 @@ mkdir -p packages/components-wordpress/src/blocks/<component-name>
131
131
  ```json
132
132
  {
133
133
  "apiVersion": 3,
134
- "name": "times/button",
134
+ "name": "tds/button",
135
135
  "title": "Button",
136
136
  "attributes": {
137
137
  "label": {
@@ -597,7 +597,7 @@ Suggested order for consistent, dependency-aware transformation:
597
597
 
598
598
  ### Block not appearing in Gutenberg?
599
599
 
600
- 1. Check `block.json` has `name: "times/..."`
600
+ 1. Check `block.json` has `name: "tds/..."`
601
601
  2. Verify `edit.js` and `save.js` are exported as default
602
602
  3. Check console for JavaScript errors
603
603
  4. Rebuild: `npm run build`
package/block.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/design-system-blocks",
4
+ "name": "tds/design-system-blocks",
5
5
  "title": "Times Design System Blocks",
6
6
  "category": "times-design-system",
7
7
  "description": "A collection of Gutenberg blocks built with Times Design System components",
package/dist/block.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/design-system-blocks",
4
+ "name": "tds/design-system-blocks",
5
5
  "title": "Times Design System Blocks",
6
6
  "category": "times-design-system",
7
7
  "description": "A collection of Gutenberg blocks built with Times Design System components",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/ad-container",
4
+ "name": "tds/ad-container",
5
5
  "title": "Ad Container",
6
6
  "category": "common",
7
7
  "description": "Advertising container placeholder",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/button",
4
+ "name": "tds/button",
5
5
  "title": "Button",
6
6
  "category": "common",
7
7
  "description": "A customizable button component for user interactions",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/chip",
4
+ "name": "tds/chip",
5
5
  "title": "Chip",
6
6
  "category": "common",
7
7
  "description": "Small component for displaying labels, tags, or filter options",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/divider",
4
+ "name": "tds/divider",
5
5
  "title": "Divider",
6
6
  "category": "common",
7
7
  "description": "A horizontal line divider component",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/flag",
4
+ "name": "tds/flag",
5
5
  "title": "Flag",
6
6
  "category": "common",
7
7
  "description": "Badge or status indicator component",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/icon-button",
4
+ "name": "tds/icon-button",
5
5
  "title": "Icon Button",
6
6
  "category": "common",
7
7
  "description": "Button component displaying only an icon",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/input",
4
+ "name": "tds/input",
5
5
  "title": "Input",
6
6
  "category": "common",
7
7
  "description": "Form input field component",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/link",
4
+ "name": "tds/link",
5
5
  "title": "Link",
6
6
  "category": "common",
7
7
  "description": "Styled link component with variants and states",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/text",
4
+ "name": "tds/text",
5
5
  "title": "Text",
6
6
  "category": "common",
7
7
  "description": "Typography component for displaying text with style variants",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/toast",
4
+ "name": "tds/toast",
5
5
  "title": "Toast",
6
6
  "category": "common",
7
7
  "description": "Notification toast component",
package/dist/index.cjs CHANGED
@@ -359,7 +359,7 @@ function Save(_ref) {
359
359
 
360
360
  var $schema$9 = "https://schemas.wp.org/trunk/block.json";
361
361
  var apiVersion$9 = 3;
362
- var name$9 = "times/button";
362
+ var name$9 = "tds/button";
363
363
  var title$9 = "Button";
364
364
  var category$9 = "common";
365
365
  var description$9 = "A customizable button component for user interactions";
@@ -494,7 +494,7 @@ blocks.registerBlockType(metadata$9.name, _objectSpread2(_objectSpread2({}, meta
494
494
 
495
495
  var $schema$8 = "https://schemas.wp.org/trunk/block.json";
496
496
  var apiVersion$8 = 3;
497
- var name$8 = "times/divider";
497
+ var name$8 = "tds/divider";
498
498
  var title$8 = "Divider";
499
499
  var category$8 = "common";
500
500
  var description$8 = "A horizontal line divider component";
@@ -608,7 +608,7 @@ blocks.registerBlockType(metadata$8.name, _objectSpread2(_objectSpread2({}, meta
608
608
 
609
609
  var $schema$7 = "https://schemas.wp.org/trunk/block.json";
610
610
  var apiVersion$7 = 3;
611
- var name$7 = "times/text";
611
+ var name$7 = "tds/text";
612
612
  var title$7 = "Text";
613
613
  var category$7 = "common";
614
614
  var description$7 = "Typography component for displaying text with style variants";
@@ -750,7 +750,7 @@ blocks.registerBlockType(metadata$7.name, _objectSpread2(_objectSpread2({}, meta
750
750
 
751
751
  var $schema$6 = "https://schemas.wp.org/trunk/block.json";
752
752
  var apiVersion$6 = 3;
753
- var name$6 = "times/input";
753
+ var name$6 = "tds/input";
754
754
  var title$6 = "Input";
755
755
  var category$6 = "common";
756
756
  var description$6 = "Form input field component";
@@ -946,7 +946,7 @@ blocks.registerBlockType(metadata$6.name, _objectSpread2(_objectSpread2({}, meta
946
946
 
947
947
  var $schema$5 = "https://schemas.wp.org/trunk/block.json";
948
948
  var apiVersion$5 = 3;
949
- var name$5 = "times/icon-button";
949
+ var name$5 = "tds/icon-button";
950
950
  var title$5 = "Icon Button";
951
951
  var category$5 = "common";
952
952
  var description$5 = "Button component displaying only an icon";
@@ -1128,7 +1128,7 @@ blocks.registerBlockType(metadata$5.name, _objectSpread2(_objectSpread2({}, meta
1128
1128
 
1129
1129
  var $schema$4 = "https://schemas.wp.org/trunk/block.json";
1130
1130
  var apiVersion$4 = 3;
1131
- var name$4 = "times/chip";
1131
+ var name$4 = "tds/chip";
1132
1132
  var title$4 = "Chip";
1133
1133
  var category$4 = "common";
1134
1134
  var description$4 = "Small component for displaying labels, tags, or filter options";
@@ -1389,7 +1389,7 @@ blocks.registerBlockType(metadata$4.name, _objectSpread2(_objectSpread2({}, meta
1389
1389
 
1390
1390
  var $schema$3 = "https://schemas.wp.org/trunk/block.json";
1391
1391
  var apiVersion$3 = 3;
1392
- var name$3 = "times/flag";
1392
+ var name$3 = "tds/flag";
1393
1393
  var title$3 = "Flag";
1394
1394
  var category$3 = "common";
1395
1395
  var description$3 = "Badge or status indicator component";
@@ -1605,7 +1605,7 @@ blocks.registerBlockType(metadata$3.name, _objectSpread2(_objectSpread2({}, meta
1605
1605
 
1606
1606
  var $schema$2 = "https://schemas.wp.org/trunk/block.json";
1607
1607
  var apiVersion$2 = 3;
1608
- var name$2 = "times/toast";
1608
+ var name$2 = "tds/toast";
1609
1609
  var title$2 = "Toast";
1610
1610
  var category$2 = "common";
1611
1611
  var description$2 = "Notification toast component";
@@ -1785,7 +1785,7 @@ blocks.registerBlockType(metadata$2.name, _objectSpread2(_objectSpread2({}, meta
1785
1785
 
1786
1786
  var $schema$1 = "https://schemas.wp.org/trunk/block.json";
1787
1787
  var apiVersion$1 = 3;
1788
- var name$1 = "times/link";
1788
+ var name$1 = "tds/link";
1789
1789
  var title$1 = "Link";
1790
1790
  var category$1 = "common";
1791
1791
  var description$1 = "Styled link component with variants and states";
@@ -2133,7 +2133,7 @@ blocks.registerBlockType(metadata$1.name, _objectSpread2(_objectSpread2({}, meta
2133
2133
 
2134
2134
  var $schema = "https://schemas.wp.org/trunk/block.json";
2135
2135
  var apiVersion = 3;
2136
- var name = "times/ad-container";
2136
+ var name = "tds/ad-container";
2137
2137
  var title = "Ad Container";
2138
2138
  var category = "common";
2139
2139
  var description = "Advertising container placeholder";
package/dist/index.js CHANGED
@@ -357,7 +357,7 @@ function Save(_ref) {
357
357
 
358
358
  var $schema$9 = "https://schemas.wp.org/trunk/block.json";
359
359
  var apiVersion$9 = 3;
360
- var name$9 = "times/button";
360
+ var name$9 = "tds/button";
361
361
  var title$9 = "Button";
362
362
  var category$9 = "common";
363
363
  var description$9 = "A customizable button component for user interactions";
@@ -492,7 +492,7 @@ registerBlockType(metadata$9.name, _objectSpread2(_objectSpread2({}, metadata$9)
492
492
 
493
493
  var $schema$8 = "https://schemas.wp.org/trunk/block.json";
494
494
  var apiVersion$8 = 3;
495
- var name$8 = "times/divider";
495
+ var name$8 = "tds/divider";
496
496
  var title$8 = "Divider";
497
497
  var category$8 = "common";
498
498
  var description$8 = "A horizontal line divider component";
@@ -606,7 +606,7 @@ registerBlockType(metadata$8.name, _objectSpread2(_objectSpread2({}, metadata$8)
606
606
 
607
607
  var $schema$7 = "https://schemas.wp.org/trunk/block.json";
608
608
  var apiVersion$7 = 3;
609
- var name$7 = "times/text";
609
+ var name$7 = "tds/text";
610
610
  var title$7 = "Text";
611
611
  var category$7 = "common";
612
612
  var description$7 = "Typography component for displaying text with style variants";
@@ -748,7 +748,7 @@ registerBlockType(metadata$7.name, _objectSpread2(_objectSpread2({}, metadata$7)
748
748
 
749
749
  var $schema$6 = "https://schemas.wp.org/trunk/block.json";
750
750
  var apiVersion$6 = 3;
751
- var name$6 = "times/input";
751
+ var name$6 = "tds/input";
752
752
  var title$6 = "Input";
753
753
  var category$6 = "common";
754
754
  var description$6 = "Form input field component";
@@ -944,7 +944,7 @@ registerBlockType(metadata$6.name, _objectSpread2(_objectSpread2({}, metadata$6)
944
944
 
945
945
  var $schema$5 = "https://schemas.wp.org/trunk/block.json";
946
946
  var apiVersion$5 = 3;
947
- var name$5 = "times/icon-button";
947
+ var name$5 = "tds/icon-button";
948
948
  var title$5 = "Icon Button";
949
949
  var category$5 = "common";
950
950
  var description$5 = "Button component displaying only an icon";
@@ -1126,7 +1126,7 @@ registerBlockType(metadata$5.name, _objectSpread2(_objectSpread2({}, metadata$5)
1126
1126
 
1127
1127
  var $schema$4 = "https://schemas.wp.org/trunk/block.json";
1128
1128
  var apiVersion$4 = 3;
1129
- var name$4 = "times/chip";
1129
+ var name$4 = "tds/chip";
1130
1130
  var title$4 = "Chip";
1131
1131
  var category$4 = "common";
1132
1132
  var description$4 = "Small component for displaying labels, tags, or filter options";
@@ -1387,7 +1387,7 @@ registerBlockType(metadata$4.name, _objectSpread2(_objectSpread2({}, metadata$4)
1387
1387
 
1388
1388
  var $schema$3 = "https://schemas.wp.org/trunk/block.json";
1389
1389
  var apiVersion$3 = 3;
1390
- var name$3 = "times/flag";
1390
+ var name$3 = "tds/flag";
1391
1391
  var title$3 = "Flag";
1392
1392
  var category$3 = "common";
1393
1393
  var description$3 = "Badge or status indicator component";
@@ -1603,7 +1603,7 @@ registerBlockType(metadata$3.name, _objectSpread2(_objectSpread2({}, metadata$3)
1603
1603
 
1604
1604
  var $schema$2 = "https://schemas.wp.org/trunk/block.json";
1605
1605
  var apiVersion$2 = 3;
1606
- var name$2 = "times/toast";
1606
+ var name$2 = "tds/toast";
1607
1607
  var title$2 = "Toast";
1608
1608
  var category$2 = "common";
1609
1609
  var description$2 = "Notification toast component";
@@ -1783,7 +1783,7 @@ registerBlockType(metadata$2.name, _objectSpread2(_objectSpread2({}, metadata$2)
1783
1783
 
1784
1784
  var $schema$1 = "https://schemas.wp.org/trunk/block.json";
1785
1785
  var apiVersion$1 = 3;
1786
- var name$1 = "times/link";
1786
+ var name$1 = "tds/link";
1787
1787
  var title$1 = "Link";
1788
1788
  var category$1 = "common";
1789
1789
  var description$1 = "Styled link component with variants and states";
@@ -2131,7 +2131,7 @@ registerBlockType(metadata$1.name, _objectSpread2(_objectSpread2({}, metadata$1)
2131
2131
 
2132
2132
  var $schema = "https://schemas.wp.org/trunk/block.json";
2133
2133
  var apiVersion = 3;
2134
- var name = "times/ad-container";
2134
+ var name = "tds/ad-container";
2135
2135
  var title = "Ad Container";
2136
2136
  var category = "common";
2137
2137
  var description = "Advertising container placeholder";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-design-system/components-wordpress",
3
- "version": "1.2.0",
3
+ "version": "1.2.2-alpha.0+21580795",
4
4
  "type": "module",
5
5
  "description": "Times Design System Gutenberg blocks for WordPress Full Site Editing",
6
6
  "keywords": [
@@ -48,7 +48,7 @@
48
48
  "access": "public"
49
49
  },
50
50
  "dependencies": {
51
- "@times-design-system/theme-scss": "*",
51
+ "@times-design-system/theme-scss": "^2.0.2-alpha.0+21580795",
52
52
  "@wordpress/block-editor": "^12.0.0",
53
53
  "@wordpress/blocks": "^12.0.0",
54
54
  "@wordpress/components": "^25.0.0",
@@ -71,5 +71,5 @@
71
71
  "rollup-plugin-postcss": "^4.0.2",
72
72
  "typescript": "^5.0.0"
73
73
  },
74
- "gitHead": "b6040d5176536391d5bdece76f19e2275c29a458"
74
+ "gitHead": "21580795555c759c56388a9aadd9d21562a9a0d6"
75
75
  }
@@ -26,7 +26,7 @@ cat > "$COMPONENT_DIR/block.json" << 'EOF'
26
26
  {
27
27
  "$schema": "https://schemas.wp.org/trunk/block.json",
28
28
  "apiVersion": 3,
29
- "name": "times/COMPONENT_NAME",
29
+ "name": "tds/COMPONENT_NAME",
30
30
  "title": "COMPONENT_TITLE",
31
31
  "category": "common",
32
32
  "description": "A COMPONENT_TITLE component for Times Design System",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/ad-container",
4
+ "name": "tds/ad-container",
5
5
  "title": "Ad Container",
6
6
  "category": "common",
7
7
  "description": "Advertising container placeholder",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/button",
4
+ "name": "tds/button",
5
5
  "title": "Button",
6
6
  "category": "common",
7
7
  "description": "A customizable button component for user interactions",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/chip",
4
+ "name": "tds/chip",
5
5
  "title": "Chip",
6
6
  "category": "common",
7
7
  "description": "Small component for displaying labels, tags, or filter options",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/divider",
4
+ "name": "tds/divider",
5
5
  "title": "Divider",
6
6
  "category": "common",
7
7
  "description": "A horizontal line divider component",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/flag",
4
+ "name": "tds/flag",
5
5
  "title": "Flag",
6
6
  "category": "common",
7
7
  "description": "Badge or status indicator component",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/icon-button",
4
+ "name": "tds/icon-button",
5
5
  "title": "Icon Button",
6
6
  "category": "common",
7
7
  "description": "Button component displaying only an icon",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/input",
4
+ "name": "tds/input",
5
5
  "title": "Input",
6
6
  "category": "common",
7
7
  "description": "Form input field component",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/link",
4
+ "name": "tds/link",
5
5
  "title": "Link",
6
6
  "category": "common",
7
7
  "description": "Styled link component with variants and states",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/text",
4
+ "name": "tds/text",
5
5
  "title": "Text",
6
6
  "category": "common",
7
7
  "description": "Typography component for displaying text with style variants",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schemas.wp.org/trunk/block.json",
3
3
  "apiVersion": 3,
4
- "name": "times/toast",
4
+ "name": "tds/toast",
5
5
  "title": "Toast",
6
6
  "category": "common",
7
7
  "description": "Notification toast component",