@wordpress/block-library 8.17.1 → 8.18.1-next.5a1d1283.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 (124) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/column/edit.native.js +5 -5
  3. package/build/column/edit.native.js.map +1 -1
  4. package/build/cover/edit/index.js +3 -1
  5. package/build/cover/edit/index.js.map +1 -1
  6. package/build/cover/shared.js +26 -21
  7. package/build/cover/shared.js.map +1 -1
  8. package/build/embed/embed-link-settings.native.js +0 -1
  9. package/build/embed/embed-link-settings.native.js.map +1 -1
  10. package/build/footnotes/edit.js +2 -3
  11. package/build/footnotes/edit.js.map +1 -1
  12. package/build/group/index.js +1 -0
  13. package/build/group/index.js.map +1 -1
  14. package/build/post-content/edit.js +1 -1
  15. package/build/post-content/edit.js.map +1 -1
  16. package/build/post-template/index.js +1 -1
  17. package/build/post-terms/use-post-terms.js +3 -2
  18. package/build/post-terms/use-post-terms.js.map +1 -1
  19. package/build/query/edit/inspector-controls/index.js +28 -3
  20. package/build/query/edit/inspector-controls/index.js.map +1 -1
  21. package/build/query/edit/query-content.js +2 -1
  22. package/build/query/edit/query-content.js.map +1 -1
  23. package/build/query/index.js +9 -2
  24. package/build/query/index.js.map +1 -1
  25. package/build/query/view.js +75 -0
  26. package/build/query/view.js.map +1 -0
  27. package/build/query-pagination-next/index.js +1 -1
  28. package/build/query-pagination-numbers/edit.js +50 -5
  29. package/build/query-pagination-numbers/edit.js.map +1 -1
  30. package/build/query-pagination-numbers/index.js +7 -1
  31. package/build/query-pagination-numbers/index.js.map +1 -1
  32. package/build/query-pagination-previous/index.js +1 -1
  33. package/build/search/edit.js +3 -1
  34. package/build/search/edit.js.map +1 -1
  35. package/build/search/utils.js +2 -4
  36. package/build/search/utils.js.map +1 -1
  37. package/build/social-link/edit.native.js +1 -3
  38. package/build/social-link/edit.native.js.map +1 -1
  39. package/build-module/column/edit.native.js +5 -5
  40. package/build-module/column/edit.native.js.map +1 -1
  41. package/build-module/cover/edit/index.js +3 -1
  42. package/build-module/cover/edit/index.js.map +1 -1
  43. package/build-module/cover/shared.js +26 -21
  44. package/build-module/cover/shared.js.map +1 -1
  45. package/build-module/embed/embed-link-settings.native.js +0 -1
  46. package/build-module/embed/embed-link-settings.native.js.map +1 -1
  47. package/build-module/footnotes/edit.js +2 -3
  48. package/build-module/footnotes/edit.js.map +1 -1
  49. package/build-module/group/index.js +1 -0
  50. package/build-module/group/index.js.map +1 -1
  51. package/build-module/post-content/edit.js +1 -1
  52. package/build-module/post-content/edit.js.map +1 -1
  53. package/build-module/post-template/index.js +1 -1
  54. package/build-module/post-terms/use-post-terms.js +3 -2
  55. package/build-module/post-terms/use-post-terms.js.map +1 -1
  56. package/build-module/query/edit/inspector-controls/index.js +29 -4
  57. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  58. package/build-module/query/edit/query-content.js +2 -1
  59. package/build-module/query/edit/query-content.js.map +1 -1
  60. package/build-module/query/index.js +9 -2
  61. package/build-module/query/index.js.map +1 -1
  62. package/build-module/query/view.js +72 -0
  63. package/build-module/query/view.js.map +1 -0
  64. package/build-module/query-pagination-next/index.js +1 -1
  65. package/build-module/query-pagination-numbers/edit.js +51 -6
  66. package/build-module/query-pagination-numbers/edit.js.map +1 -1
  67. package/build-module/query-pagination-numbers/index.js +7 -1
  68. package/build-module/query-pagination-numbers/index.js.map +1 -1
  69. package/build-module/query-pagination-previous/index.js +1 -1
  70. package/build-module/search/edit.js +4 -2
  71. package/build-module/search/edit.js.map +1 -1
  72. package/build-module/search/utils.js +0 -1
  73. package/build-module/search/utils.js.map +1 -1
  74. package/build-module/social-link/edit.native.js +1 -3
  75. package/build-module/social-link/edit.native.js.map +1 -1
  76. package/build-style/query/style-rtl.css +140 -0
  77. package/build-style/query/style.css +140 -0
  78. package/build-style/site-logo/style-rtl.css +1 -0
  79. package/build-style/site-logo/style.css +1 -0
  80. package/build-style/style-rtl.css +1 -0
  81. package/build-style/style.css +1 -0
  82. package/package.json +32 -32
  83. package/src/audio/test/__snapshots__/edit.native.js.snap +106 -78
  84. package/src/column/edit.native.js +4 -4
  85. package/src/columns/test/__snapshots__/edit.native.js.snap +14 -0
  86. package/src/columns/test/edit.native.js +47 -17
  87. package/src/cover/edit/index.js +3 -1
  88. package/src/cover/shared.js +25 -20
  89. package/src/cover/test/edit.native.js +1 -5
  90. package/src/embed/embed-link-settings.native.js +0 -1
  91. package/src/embed/test/index.native.js +9 -9
  92. package/src/file/test/__snapshots__/edit.native.js.snap +218 -162
  93. package/src/footnotes/edit.js +3 -1
  94. package/src/group/block.json +1 -0
  95. package/src/image/index.php +5 -0
  96. package/src/post-content/edit.js +2 -2
  97. package/src/post-content/index.php +0 -6
  98. package/src/post-featured-image/index.php +0 -6
  99. package/src/post-navigation-link/index.php +10 -1
  100. package/src/post-template/block.json +2 -1
  101. package/src/post-template/index.php +19 -4
  102. package/src/post-terms/use-post-terms.js +4 -2
  103. package/src/query/block.json +9 -2
  104. package/src/query/edit/inspector-controls/index.js +46 -3
  105. package/src/query/edit/query-content.js +1 -0
  106. package/src/query/index.php +94 -1
  107. package/src/query/style.scss +63 -0
  108. package/src/query/view.js +82 -0
  109. package/src/query-no-results/index.php +1 -5
  110. package/src/query-pagination-next/block.json +7 -1
  111. package/src/query-pagination-next/index.php +20 -3
  112. package/src/query-pagination-numbers/block.json +7 -1
  113. package/src/query-pagination-numbers/edit.js +64 -16
  114. package/src/query-pagination-numbers/index.php +27 -4
  115. package/src/query-pagination-previous/block.json +7 -1
  116. package/src/query-pagination-previous/index.php +19 -2
  117. package/src/search/edit.js +8 -2
  118. package/src/search/test/__snapshots__/edit.native.js.snap +363 -265
  119. package/src/search/utils.js +0 -1
  120. package/src/site-logo/style.scss +1 -0
  121. package/src/social-link/edit.native.js +1 -1
  122. package/src/social-link/editor.native.scss +0 -4
  123. package/src/social-links/test/edit.native.js +30 -0
  124. package/src/social-link/test/index.native.js +0 -132
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Converts a hex value into the rgb equivalent.
3
+ *
4
+ * @param {string} hex - the hexadecimal value to convert
5
+ * @return {string} comma separated rgb values
6
+ */
7
+ /**
8
+ * Colors
9
+ */
10
+ /**
11
+ * Breakpoints & Media Queries
12
+ */
13
+ /**
14
+ * SCSS Variables.
15
+ *
16
+ * Please use variables from this sheet to ensure consistency across the UI.
17
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
18
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
19
+ */
20
+ /**
21
+ * Converts a hex value into the rgb equivalent.
22
+ *
23
+ * @param {string} hex - the hexadecimal value to convert
24
+ * @return {string} comma separated rgb values
25
+ */
26
+ /**
27
+ * Colors
28
+ */
29
+ /**
30
+ * Fonts & basic variables.
31
+ */
32
+ /**
33
+ * Grid System.
34
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
35
+ */
36
+ /**
37
+ * Dimensions.
38
+ */
39
+ /**
40
+ * Shadows.
41
+ */
42
+ /**
43
+ * Editor widths.
44
+ */
45
+ /**
46
+ * Block & Editor UI.
47
+ */
48
+ /**
49
+ * Block paddings.
50
+ */
51
+ /**
52
+ * React Native specific.
53
+ * These variables do not appear to be used anywhere else.
54
+ */
55
+ /**
56
+ * Converts a hex value into the rgb equivalent.
57
+ *
58
+ * @param {string} hex - the hexadecimal value to convert
59
+ * @return {string} comma separated rgb values
60
+ */
61
+ /**
62
+ * Long content fade mixin
63
+ *
64
+ * Creates a fading overlay to signify that the content is longer
65
+ * than the space allows.
66
+ */
67
+ /**
68
+ * Breakpoint mixins
69
+ */
70
+ /**
71
+ * Focus styles.
72
+ */
73
+ /**
74
+ * Applies editor left position to the selector passed as argument
75
+ */
76
+ /**
77
+ * Styles that are reused verbatim in a few places
78
+ */
79
+ /**
80
+ * Allows users to opt-out of animations via OS-level preferences.
81
+ */
82
+ /**
83
+ * Reset default styles for JavaScript UI based pages.
84
+ * This is a WP-admin agnostic reset
85
+ */
86
+ /**
87
+ * Reset the WP Admin page styles for Gutenberg-like pages.
88
+ */
89
+ .wp-block-query__enhanced-pagination-animation {
90
+ position: fixed;
91
+ top: 0;
92
+ right: 0;
93
+ margin: 0;
94
+ padding: 0;
95
+ width: 100vw;
96
+ max-width: 100vw !important;
97
+ height: 4px;
98
+ background-color: var(--wp--preset--color--primary, #000);
99
+ opacity: 0;
100
+ }
101
+ .wp-block-query__enhanced-pagination-animation.start-animation {
102
+ animation: wp-block-query__enhanced-pagination-start-animation 30s cubic-bezier(0, 1, 0, 1) infinite;
103
+ }
104
+ .wp-block-query__enhanced-pagination-animation.finish-animation {
105
+ animation: wp-block-query__enhanced-pagination-finish-animation 300ms ease-in;
106
+ }
107
+
108
+ @keyframes wp-block-query__enhanced-pagination-start-animation {
109
+ 0% {
110
+ transform: scaleX(0);
111
+ transform-origin: 100% 0%;
112
+ opacity: 1;
113
+ }
114
+ 100% {
115
+ transform: scaleX(1);
116
+ transform-origin: 100% 0%;
117
+ opacity: 1;
118
+ }
119
+ }
120
+ @keyframes wp-block-query__enhanced-pagination-finish-animation {
121
+ 0% {
122
+ opacity: 1;
123
+ }
124
+ 50% {
125
+ opacity: 1;
126
+ }
127
+ 100% {
128
+ opacity: 0;
129
+ }
130
+ }
131
+ .wp-block-query__enhanced-pagination-navigation-announce {
132
+ position: absolute;
133
+ clip: rect(0, 0, 0, 0);
134
+ width: 1px;
135
+ height: 1px;
136
+ padding: 0;
137
+ margin: -1px;
138
+ overflow: hidden;
139
+ border: 0;
140
+ }
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Converts a hex value into the rgb equivalent.
3
+ *
4
+ * @param {string} hex - the hexadecimal value to convert
5
+ * @return {string} comma separated rgb values
6
+ */
7
+ /**
8
+ * Colors
9
+ */
10
+ /**
11
+ * Breakpoints & Media Queries
12
+ */
13
+ /**
14
+ * SCSS Variables.
15
+ *
16
+ * Please use variables from this sheet to ensure consistency across the UI.
17
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
18
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
19
+ */
20
+ /**
21
+ * Converts a hex value into the rgb equivalent.
22
+ *
23
+ * @param {string} hex - the hexadecimal value to convert
24
+ * @return {string} comma separated rgb values
25
+ */
26
+ /**
27
+ * Colors
28
+ */
29
+ /**
30
+ * Fonts & basic variables.
31
+ */
32
+ /**
33
+ * Grid System.
34
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
35
+ */
36
+ /**
37
+ * Dimensions.
38
+ */
39
+ /**
40
+ * Shadows.
41
+ */
42
+ /**
43
+ * Editor widths.
44
+ */
45
+ /**
46
+ * Block & Editor UI.
47
+ */
48
+ /**
49
+ * Block paddings.
50
+ */
51
+ /**
52
+ * React Native specific.
53
+ * These variables do not appear to be used anywhere else.
54
+ */
55
+ /**
56
+ * Converts a hex value into the rgb equivalent.
57
+ *
58
+ * @param {string} hex - the hexadecimal value to convert
59
+ * @return {string} comma separated rgb values
60
+ */
61
+ /**
62
+ * Long content fade mixin
63
+ *
64
+ * Creates a fading overlay to signify that the content is longer
65
+ * than the space allows.
66
+ */
67
+ /**
68
+ * Breakpoint mixins
69
+ */
70
+ /**
71
+ * Focus styles.
72
+ */
73
+ /**
74
+ * Applies editor left position to the selector passed as argument
75
+ */
76
+ /**
77
+ * Styles that are reused verbatim in a few places
78
+ */
79
+ /**
80
+ * Allows users to opt-out of animations via OS-level preferences.
81
+ */
82
+ /**
83
+ * Reset default styles for JavaScript UI based pages.
84
+ * This is a WP-admin agnostic reset
85
+ */
86
+ /**
87
+ * Reset the WP Admin page styles for Gutenberg-like pages.
88
+ */
89
+ .wp-block-query__enhanced-pagination-animation {
90
+ position: fixed;
91
+ top: 0;
92
+ left: 0;
93
+ margin: 0;
94
+ padding: 0;
95
+ width: 100vw;
96
+ max-width: 100vw !important;
97
+ height: 4px;
98
+ background-color: var(--wp--preset--color--primary, #000);
99
+ opacity: 0;
100
+ }
101
+ .wp-block-query__enhanced-pagination-animation.start-animation {
102
+ animation: wp-block-query__enhanced-pagination-start-animation 30s cubic-bezier(0, 1, 0, 1) infinite;
103
+ }
104
+ .wp-block-query__enhanced-pagination-animation.finish-animation {
105
+ animation: wp-block-query__enhanced-pagination-finish-animation 300ms ease-in;
106
+ }
107
+
108
+ @keyframes wp-block-query__enhanced-pagination-start-animation {
109
+ 0% {
110
+ transform: scaleX(0);
111
+ transform-origin: 0% 0%;
112
+ opacity: 1;
113
+ }
114
+ 100% {
115
+ transform: scaleX(1);
116
+ transform-origin: 0% 0%;
117
+ opacity: 1;
118
+ }
119
+ }
120
+ @keyframes wp-block-query__enhanced-pagination-finish-animation {
121
+ 0% {
122
+ opacity: 1;
123
+ }
124
+ 50% {
125
+ opacity: 1;
126
+ }
127
+ 100% {
128
+ opacity: 0;
129
+ }
130
+ }
131
+ .wp-block-query__enhanced-pagination-navigation-announce {
132
+ position: absolute;
133
+ clip: rect(0, 0, 0, 0);
134
+ width: 1px;
135
+ height: 1px;
136
+ padding: 0;
137
+ margin: -1px;
138
+ overflow: hidden;
139
+ border: 0;
140
+ }
@@ -92,6 +92,7 @@
92
92
  }
93
93
  .wp-block-site-logo a {
94
94
  display: inline-block;
95
+ line-height: 0;
95
96
  }
96
97
  .wp-block-site-logo.is-default-size img {
97
98
  width: 120px;
@@ -92,6 +92,7 @@
92
92
  }
93
93
  .wp-block-site-logo a {
94
94
  display: inline-block;
95
+ line-height: 0;
95
96
  }
96
97
  .wp-block-site-logo.is-default-size img {
97
98
  width: 120px;
@@ -3169,6 +3169,7 @@ ul.wp-block-rss.is-grid li {
3169
3169
  }
3170
3170
  .wp-block-site-logo a {
3171
3171
  display: inline-block;
3172
+ line-height: 0;
3172
3173
  }
3173
3174
  .wp-block-site-logo.is-default-size img {
3174
3175
  width: 120px;
@@ -3204,6 +3204,7 @@ ul.wp-block-rss.is-grid li {
3204
3204
  }
3205
3205
  .wp-block-site-logo a {
3206
3206
  display: inline-block;
3207
+ line-height: 0;
3207
3208
  }
3208
3209
  .wp-block-site-logo.is-default-size img {
3209
3210
  width: 120px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "8.17.1",
3
+ "version": "8.18.1-next.5a1d1283.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,36 +31,36 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.16.0",
34
- "@wordpress/a11y": "^3.40.1",
35
- "@wordpress/api-fetch": "^6.37.1",
36
- "@wordpress/autop": "^3.40.1",
37
- "@wordpress/blob": "^3.40.1",
38
- "@wordpress/block-editor": "^12.8.1",
39
- "@wordpress/blocks": "^12.17.1",
40
- "@wordpress/components": "^25.6.1",
41
- "@wordpress/compose": "^6.17.1",
42
- "@wordpress/core-data": "^6.17.1",
43
- "@wordpress/data": "^9.10.1",
44
- "@wordpress/date": "^4.40.1",
45
- "@wordpress/deprecated": "^3.40.1",
46
- "@wordpress/dom": "^3.40.1",
47
- "@wordpress/element": "^5.17.1",
48
- "@wordpress/escape-html": "^2.40.1",
49
- "@wordpress/hooks": "^3.40.1",
50
- "@wordpress/html-entities": "^3.40.1",
51
- "@wordpress/i18n": "^4.40.1",
52
- "@wordpress/icons": "^9.31.1",
53
- "@wordpress/interactivity": "^2.1.1",
54
- "@wordpress/keycodes": "^3.40.1",
55
- "@wordpress/notices": "^4.8.1",
56
- "@wordpress/primitives": "^3.38.1",
57
- "@wordpress/private-apis": "^0.22.1",
58
- "@wordpress/reusable-blocks": "^4.17.1",
59
- "@wordpress/rich-text": "^6.17.1",
60
- "@wordpress/server-side-render": "^4.17.1",
61
- "@wordpress/url": "^3.41.1",
62
- "@wordpress/viewport": "^5.17.1",
63
- "@wordpress/wordcount": "^3.40.1",
34
+ "@wordpress/a11y": "^3.41.1-next.5a1d1283.0",
35
+ "@wordpress/api-fetch": "^6.38.1-next.5a1d1283.0",
36
+ "@wordpress/autop": "^3.41.1-next.5a1d1283.0",
37
+ "@wordpress/blob": "^3.41.1-next.5a1d1283.0",
38
+ "@wordpress/block-editor": "^12.9.1-next.5a1d1283.0",
39
+ "@wordpress/blocks": "^12.18.1-next.5a1d1283.0",
40
+ "@wordpress/components": "^26.0.1-next.5a1d1283.0",
41
+ "@wordpress/compose": "^6.18.1-next.5a1d1283.0",
42
+ "@wordpress/core-data": "^6.18.1-next.5a1d1283.0",
43
+ "@wordpress/data": "^9.11.1-next.5a1d1283.0",
44
+ "@wordpress/date": "^4.41.1-next.5a1d1283.0",
45
+ "@wordpress/deprecated": "^3.41.1-next.5a1d1283.0",
46
+ "@wordpress/dom": "^3.41.1-next.5a1d1283.0",
47
+ "@wordpress/element": "^5.18.1-next.5a1d1283.0",
48
+ "@wordpress/escape-html": "^2.41.1-next.5a1d1283.0",
49
+ "@wordpress/hooks": "^3.41.1-next.5a1d1283.0",
50
+ "@wordpress/html-entities": "^3.41.1-next.5a1d1283.0",
51
+ "@wordpress/i18n": "^4.41.1-next.5a1d1283.0",
52
+ "@wordpress/icons": "^9.32.1-next.5a1d1283.0",
53
+ "@wordpress/interactivity": "^2.2.1-next.5a1d1283.0",
54
+ "@wordpress/keycodes": "^3.41.1-next.5a1d1283.0",
55
+ "@wordpress/notices": "^4.9.1-next.5a1d1283.0",
56
+ "@wordpress/primitives": "^3.39.1-next.5a1d1283.0",
57
+ "@wordpress/private-apis": "^0.23.1-next.5a1d1283.0",
58
+ "@wordpress/reusable-blocks": "^4.18.1-next.5a1d1283.0",
59
+ "@wordpress/rich-text": "^6.18.1-next.5a1d1283.0",
60
+ "@wordpress/server-side-render": "^4.18.1-next.5a1d1283.0",
61
+ "@wordpress/url": "^3.42.1-next.5a1d1283.0",
62
+ "@wordpress/viewport": "^5.18.1-next.5a1d1283.0",
63
+ "@wordpress/wordcount": "^3.41.1-next.5a1d1283.0",
64
64
  "change-case": "^4.1.2",
65
65
  "classnames": "^2.3.1",
66
66
  "colord": "^2.7.0",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "bb1fbf87bb0f451744530fc6a85de2dff1263bed"
82
+ "gitHead": "fa0b66987dab5a15f38663e06036d09bccffaa4b"
83
83
  }
@@ -133,7 +133,7 @@ exports[`Audio block renders audio block error state without crashing 1`] = `
133
133
  ]
134
134
  }
135
135
  >
136
- <RCTAztecView
136
+ <View
137
137
  accessibilityState={
138
138
  {
139
139
  "busy": undefined,
@@ -143,59 +143,73 @@ exports[`Audio block renders audio block error state without crashing 1`] = `
143
143
  "selected": undefined,
144
144
  }
145
145
  }
146
- accessible={true}
147
- activeFormats={[]}
148
- blockType={
146
+ accessibilityValue={
149
147
  {
150
- "tag": "p",
148
+ "max": undefined,
149
+ "min": undefined,
150
+ "now": undefined,
151
+ "text": undefined,
151
152
  }
152
153
  }
153
- deleteEnter={true}
154
- disableEditingMenu={false}
154
+ accessible={false}
155
+ collapsable={false}
155
156
  focusable={true}
156
- fontFamily="serif"
157
- fontSize={14}
158
- isMultiline={false}
159
- maxImagesWidth={200}
160
- onBackspace={[Function]}
161
157
  onBlur={[Function]}
162
- onChange={[Function]}
163
158
  onClick={[Function]}
164
- onContentSizeChange={[Function]}
165
- onEnter={[Function]}
166
159
  onFocus={[Function]}
167
- onHTMLContentWithCursor={[Function]}
168
- onKeyDown={[Function]}
169
- onPaste={[Function]}
170
160
  onResponderGrant={[Function]}
171
161
  onResponderMove={[Function]}
172
162
  onResponderRelease={[Function]}
173
163
  onResponderTerminate={[Function]}
174
164
  onResponderTerminationRequest={[Function]}
175
- onSelectionChange={[Function]}
176
165
  onStartShouldSetResponder={[Function]}
177
- placeholder="Add caption"
178
- placeholderTextColor="gray"
179
- selectionColor="black"
180
- style={
181
- {
182
- "backgroundColor": undefined,
183
- "maxWidth": undefined,
184
- "minHeight": 0,
166
+ >
167
+ <RCTAztecView
168
+ activeFormats={[]}
169
+ blockType={
170
+ {
171
+ "tag": "p",
172
+ }
185
173
  }
186
- }
187
- text={
188
- {
189
- "eventCount": undefined,
190
- "linkTextColor": undefined,
191
- "selection": null,
192
- "tag": "p",
193
- "text": "",
174
+ deleteEnter={true}
175
+ disableEditingMenu={false}
176
+ fontFamily="serif"
177
+ fontSize={14}
178
+ isMultiline={false}
179
+ maxImagesWidth={200}
180
+ onBackspace={[Function]}
181
+ onBlur={[Function]}
182
+ onChange={[Function]}
183
+ onContentSizeChange={[Function]}
184
+ onEnter={[Function]}
185
+ onFocus={[Function]}
186
+ onHTMLContentWithCursor={[Function]}
187
+ onKeyDown={[Function]}
188
+ onPaste={[Function]}
189
+ onSelectionChange={[Function]}
190
+ placeholder="Add caption"
191
+ placeholderTextColor="gray"
192
+ selectionColor="black"
193
+ style={
194
+ {
195
+ "backgroundColor": undefined,
196
+ "maxWidth": undefined,
197
+ "minHeight": 0,
198
+ }
194
199
  }
195
- }
196
- textAlign="center"
197
- triggerKeyCodes={[]}
198
- />
200
+ text={
201
+ {
202
+ "eventCount": undefined,
203
+ "linkTextColor": undefined,
204
+ "selection": null,
205
+ "tag": "p",
206
+ "text": "",
207
+ }
208
+ }
209
+ textAlign="center"
210
+ triggerKeyCodes={[]}
211
+ />
212
+ </View>
199
213
  </View>
200
214
  </View>
201
215
  </View>
@@ -359,7 +373,7 @@ exports[`Audio block renders audio file without crashing 1`] = `
359
373
  ]
360
374
  }
361
375
  >
362
- <RCTAztecView
376
+ <View
363
377
  accessibilityState={
364
378
  {
365
379
  "busy": undefined,
@@ -369,59 +383,73 @@ exports[`Audio block renders audio file without crashing 1`] = `
369
383
  "selected": undefined,
370
384
  }
371
385
  }
372
- accessible={true}
373
- activeFormats={[]}
374
- blockType={
386
+ accessibilityValue={
375
387
  {
376
- "tag": "p",
388
+ "max": undefined,
389
+ "min": undefined,
390
+ "now": undefined,
391
+ "text": undefined,
377
392
  }
378
393
  }
379
- deleteEnter={true}
380
- disableEditingMenu={false}
394
+ accessible={false}
395
+ collapsable={false}
381
396
  focusable={true}
382
- fontFamily="serif"
383
- fontSize={14}
384
- isMultiline={false}
385
- maxImagesWidth={200}
386
- onBackspace={[Function]}
387
397
  onBlur={[Function]}
388
- onChange={[Function]}
389
398
  onClick={[Function]}
390
- onContentSizeChange={[Function]}
391
- onEnter={[Function]}
392
399
  onFocus={[Function]}
393
- onHTMLContentWithCursor={[Function]}
394
- onKeyDown={[Function]}
395
- onPaste={[Function]}
396
400
  onResponderGrant={[Function]}
397
401
  onResponderMove={[Function]}
398
402
  onResponderRelease={[Function]}
399
403
  onResponderTerminate={[Function]}
400
404
  onResponderTerminationRequest={[Function]}
401
- onSelectionChange={[Function]}
402
405
  onStartShouldSetResponder={[Function]}
403
- placeholder="Add caption"
404
- placeholderTextColor="gray"
405
- selectionColor="black"
406
- style={
407
- {
408
- "backgroundColor": undefined,
409
- "maxWidth": undefined,
410
- "minHeight": 0,
406
+ >
407
+ <RCTAztecView
408
+ activeFormats={[]}
409
+ blockType={
410
+ {
411
+ "tag": "p",
412
+ }
411
413
  }
412
- }
413
- text={
414
- {
415
- "eventCount": undefined,
416
- "linkTextColor": undefined,
417
- "selection": null,
418
- "tag": "p",
419
- "text": "",
414
+ deleteEnter={true}
415
+ disableEditingMenu={false}
416
+ fontFamily="serif"
417
+ fontSize={14}
418
+ isMultiline={false}
419
+ maxImagesWidth={200}
420
+ onBackspace={[Function]}
421
+ onBlur={[Function]}
422
+ onChange={[Function]}
423
+ onContentSizeChange={[Function]}
424
+ onEnter={[Function]}
425
+ onFocus={[Function]}
426
+ onHTMLContentWithCursor={[Function]}
427
+ onKeyDown={[Function]}
428
+ onPaste={[Function]}
429
+ onSelectionChange={[Function]}
430
+ placeholder="Add caption"
431
+ placeholderTextColor="gray"
432
+ selectionColor="black"
433
+ style={
434
+ {
435
+ "backgroundColor": undefined,
436
+ "maxWidth": undefined,
437
+ "minHeight": 0,
438
+ }
420
439
  }
421
- }
422
- textAlign="center"
423
- triggerKeyCodes={[]}
424
- />
440
+ text={
441
+ {
442
+ "eventCount": undefined,
443
+ "linkTextColor": undefined,
444
+ "selection": null,
445
+ "tag": "p",
446
+ "text": "",
447
+ }
448
+ }
449
+ textAlign="center"
450
+ triggerKeyCodes={[]}
451
+ />
452
+ </View>
425
453
  </View>
426
454
  </View>
427
455
  </View>
@@ -111,10 +111,10 @@ function ColumnEdit( {
111
111
  };
112
112
 
113
113
  const renderAppender = useCallback( () => {
114
- const { width: columnWidth } = contentStyle[ clientId ];
115
- const isFullWidth = columnWidth === screenWidth;
116
-
117
114
  if ( isSelected ) {
115
+ const { width: columnWidth } = contentStyle[ clientId ] || {};
116
+ const isFullWidth = columnWidth === screenWidth;
117
+
118
118
  return (
119
119
  <View
120
120
  style={ [
@@ -133,7 +133,7 @@ function ColumnEdit( {
133
133
  );
134
134
  }
135
135
  return null;
136
- }, [ contentStyle[ clientId ], screenWidth, isSelected, hasChildren ] );
136
+ }, [ contentStyle, clientId, screenWidth, isSelected, hasChildren ] );
137
137
 
138
138
  if ( ! isSelected && ! hasChildren ) {
139
139
  return (
@@ -82,6 +82,20 @@ exports[`Columns block sets current vertical alignment on new Columns 1`] = `
82
82
  <!-- /wp:columns -->"
83
83
  `;
84
84
 
85
+ exports[`Columns block transforms a nested Columns block into a Group block 1`] = `
86
+ "<!-- wp:group {"layout":{"type":"constrained"}} -->
87
+ <div class="wp-block-group"><!-- wp:group {"layout":{"type":"constrained"}} -->
88
+ <div class="wp-block-group"><!-- wp:columns -->
89
+ <div class="wp-block-columns"><!-- wp:column {"width":"100%"} -->
90
+ <div class="wp-block-column" style="flex-basis:100%"><!-- wp:paragraph -->
91
+ <p></p>
92
+ <!-- /wp:paragraph --></div>
93
+ <!-- /wp:column --></div>
94
+ <!-- /wp:columns --></div>
95
+ <!-- /wp:group --></div>
96
+ <!-- /wp:group -->"
97
+ `;
98
+
85
99
  exports[`Columns block when using columns percentage mechanism sets custom values correctly 1`] = `
86
100
  "<!-- wp:columns -->
87
101
  <div class="wp-block-columns"><!-- wp:column {"width":"90%"} -->