@@ -227,6 +227,41 @@ public static function register_child_blocks() {
227
227
)
228
228
);
229
229
230
+ Blocks::jetpack_register_block (
231
+ 'jetpack/phone-input ' ,
232
+ array (
233
+ 'supports ' => array (
234
+ '__experimentalBorder ' => array (
235
+ 'color ' => true ,
236
+ 'radius ' => true ,
237
+ 'style ' => true ,
238
+ 'width ' => true ,
239
+ ),
240
+ 'color ' => array (
241
+ 'text ' => true ,
242
+ 'background ' => true ,
243
+ 'gradients ' => false ,
244
+ ),
245
+ 'typography ' => array (
246
+ 'fontSize ' => true ,
247
+ 'lineHeight ' => true ,
248
+ '__experimentalFontFamily ' => true ,
249
+ '__experimentalFontWeight ' => true ,
250
+ '__experimentalFontStyle ' => true ,
251
+ '__experimentalTextTransform ' => true ,
252
+ '__experimentalTextDecoration ' => true ,
253
+ '__experimentalLetterSpacing ' => true ,
254
+ ),
255
+ ),
256
+ 'uses_context ' => array (
257
+ 'jetpack/field-share-attributes ' ,
258
+ 'jetpack/field-prefix-options ' ,
259
+ 'jetpack/field-prefix-default ' ,
260
+ 'jetpack/field-prefix-onChange ' ,
261
+ ),
262
+ )
263
+ );
264
+
230
265
if ( Blocks::get_variation () === 'experimental ' ) {
231
266
Blocks::jetpack_register_block (
232
267
'jetpack/input-rating ' ,
@@ -265,44 +300,6 @@ public static function register_child_blocks() {
265
300
);
266
301
}
267
302
268
- if ( Blocks::get_variation () === 'beta ' ) {
269
-
270
- Blocks::jetpack_register_block (
271
- 'jetpack/phone-input ' ,
272
- array (
273
- 'supports ' => array (
274
- '__experimentalBorder ' => array (
275
- 'color ' => true ,
276
- 'radius ' => true ,
277
- 'style ' => true ,
278
- 'width ' => true ,
279
- ),
280
- 'color ' => array (
281
- 'text ' => true ,
282
- 'background ' => true ,
283
- 'gradients ' => false ,
284
- ),
285
- 'typography ' => array (
286
- 'fontSize ' => true ,
287
- 'lineHeight ' => true ,
288
- '__experimentalFontFamily ' => true ,
289
- '__experimentalFontWeight ' => true ,
290
- '__experimentalFontStyle ' => true ,
291
- '__experimentalTextTransform ' => true ,
292
- '__experimentalTextDecoration ' => true ,
293
- '__experimentalLetterSpacing ' => true ,
294
- ),
295
- ),
296
- 'uses_context ' => array (
297
- 'jetpack/field-share-attributes ' ,
298
- 'jetpack/field-prefix-options ' ,
299
- 'jetpack/field-prefix-default ' ,
300
- 'jetpack/field-prefix-onChange ' ,
301
- ),
302
- )
303
- );
304
- }
305
-
306
303
// Field render methods.
307
304
Blocks::jetpack_register_block (
308
305
'jetpack/field-text ' ,
0 commit comments