@wordpress/block-library 9.0.4 → 9.0.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.
- package/build/block/index.js +5 -1
- package/build/block/index.js.map +1 -1
- package/build/image/image.js +11 -13
- package/build/image/image.js.map +1 -1
- package/build/list-item/hooks/use-merge.js +8 -1
- package/build/list-item/hooks/use-merge.js.map +1 -1
- package/build/media-text/edit.js +3 -2
- package/build/media-text/edit.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +3 -2
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/utils/hooks.js +12 -0
- package/build/utils/hooks.js.map +1 -1
- package/build-module/block/index.js +5 -1
- package/build-module/block/index.js.map +1 -1
- package/build-module/image/image.js +6 -8
- package/build-module/image/image.js.map +1 -1
- package/build-module/list-item/hooks/use-merge.js +8 -1
- package/build-module/list-item/hooks/use-merge.js.map +1 -1
- package/build-module/media-text/edit.js +3 -2
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +3 -2
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/utils/hooks.js +11 -0
- package/build-module/utils/hooks.js.map +1 -1
- package/build-style/social-links/style-rtl.css +91 -91
- package/build-style/social-links/style.css +91 -91
- package/build-style/style-rtl.css +91 -91
- package/build-style/style.css +91 -91
- package/package.json +6 -6
- package/src/block/block.json +5 -1
- package/src/image/image.js +12 -9
- package/src/list-item/hooks/use-merge.js +19 -5
- package/src/media-text/edit.js +3 -2
- package/src/query/edit/inspector-controls/index.js +3 -2
- package/src/social-links/style.scss +2 -2
- package/src/utils/hooks.js +14 -0
- package/build/utils/constants.js +0 -15
- package/build/utils/constants.js.map +0 -1
- package/build-module/utils/constants.js +0 -9
- package/build-module/utils/constants.js.map +0 -1
- package/src/utils/constants.js +0 -8
package/build-style/style.css
CHANGED
|
@@ -3439,326 +3439,326 @@ ul.wp-block-rss.is-grid li {
|
|
|
3439
3439
|
fill: currentColor;
|
|
3440
3440
|
}
|
|
3441
3441
|
|
|
3442
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link {
|
|
3442
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link {
|
|
3443
3443
|
background-color: #f0f0f0;
|
|
3444
3444
|
color: #444;
|
|
3445
3445
|
}
|
|
3446
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon {
|
|
3446
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon {
|
|
3447
3447
|
background-color: #f90;
|
|
3448
3448
|
color: #fff;
|
|
3449
3449
|
}
|
|
3450
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp {
|
|
3450
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp {
|
|
3451
3451
|
background-color: #1ea0c3;
|
|
3452
3452
|
color: #fff;
|
|
3453
3453
|
}
|
|
3454
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance {
|
|
3454
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance {
|
|
3455
3455
|
background-color: #0757fe;
|
|
3456
3456
|
color: #fff;
|
|
3457
3457
|
}
|
|
3458
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bluesky {
|
|
3458
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky {
|
|
3459
3459
|
background-color: #0a7aff;
|
|
3460
3460
|
color: #fff;
|
|
3461
3461
|
}
|
|
3462
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen {
|
|
3462
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen {
|
|
3463
3463
|
background-color: #1e1f26;
|
|
3464
3464
|
color: #fff;
|
|
3465
3465
|
}
|
|
3466
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart {
|
|
3466
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart {
|
|
3467
3467
|
background-color: #02e49b;
|
|
3468
3468
|
color: #fff;
|
|
3469
3469
|
}
|
|
3470
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble {
|
|
3470
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble {
|
|
3471
3471
|
background-color: #e94c89;
|
|
3472
3472
|
color: #fff;
|
|
3473
3473
|
}
|
|
3474
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox {
|
|
3474
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox {
|
|
3475
3475
|
background-color: #4280ff;
|
|
3476
3476
|
color: #fff;
|
|
3477
3477
|
}
|
|
3478
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy {
|
|
3478
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy {
|
|
3479
3479
|
background-color: #f45800;
|
|
3480
3480
|
color: #fff;
|
|
3481
3481
|
}
|
|
3482
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook {
|
|
3482
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook {
|
|
3483
3483
|
background-color: #1778f2;
|
|
3484
3484
|
color: #fff;
|
|
3485
3485
|
}
|
|
3486
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx {
|
|
3486
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx {
|
|
3487
3487
|
background-color: #000;
|
|
3488
3488
|
color: #fff;
|
|
3489
3489
|
}
|
|
3490
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr {
|
|
3490
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr {
|
|
3491
3491
|
background-color: #0461dd;
|
|
3492
3492
|
color: #fff;
|
|
3493
3493
|
}
|
|
3494
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare {
|
|
3494
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare {
|
|
3495
3495
|
background-color: #e65678;
|
|
3496
3496
|
color: #fff;
|
|
3497
3497
|
}
|
|
3498
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github {
|
|
3498
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github {
|
|
3499
3499
|
background-color: #24292d;
|
|
3500
3500
|
color: #fff;
|
|
3501
3501
|
}
|
|
3502
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads {
|
|
3502
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads {
|
|
3503
3503
|
background-color: #eceadd;
|
|
3504
3504
|
color: #382110;
|
|
3505
3505
|
}
|
|
3506
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google {
|
|
3506
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google {
|
|
3507
3507
|
background-color: #ea4434;
|
|
3508
3508
|
color: #fff;
|
|
3509
3509
|
}
|
|
3510
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-gravatar {
|
|
3510
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar {
|
|
3511
3511
|
background-color: #1d4fc4;
|
|
3512
3512
|
color: #fff;
|
|
3513
3513
|
}
|
|
3514
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram {
|
|
3514
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram {
|
|
3515
3515
|
background-color: #f00075;
|
|
3516
3516
|
color: #fff;
|
|
3517
3517
|
}
|
|
3518
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm {
|
|
3518
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm {
|
|
3519
3519
|
background-color: #e21b24;
|
|
3520
3520
|
color: #fff;
|
|
3521
3521
|
}
|
|
3522
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin {
|
|
3522
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin {
|
|
3523
3523
|
background-color: #0d66c2;
|
|
3524
3524
|
color: #fff;
|
|
3525
3525
|
}
|
|
3526
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon {
|
|
3526
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon {
|
|
3527
3527
|
background-color: #3288d4;
|
|
3528
3528
|
color: #fff;
|
|
3529
3529
|
}
|
|
3530
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium {
|
|
3530
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium {
|
|
3531
3531
|
background-color: #000;
|
|
3532
3532
|
color: #fff;
|
|
3533
3533
|
}
|
|
3534
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup {
|
|
3534
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup {
|
|
3535
3535
|
background-color: #f6405f;
|
|
3536
3536
|
color: #fff;
|
|
3537
3537
|
}
|
|
3538
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-patreon {
|
|
3538
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon {
|
|
3539
3539
|
background-color: #000;
|
|
3540
3540
|
color: #fff;
|
|
3541
3541
|
}
|
|
3542
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest {
|
|
3542
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest {
|
|
3543
3543
|
background-color: #e60122;
|
|
3544
3544
|
color: #fff;
|
|
3545
3545
|
}
|
|
3546
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket {
|
|
3546
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket {
|
|
3547
3547
|
background-color: #ef4155;
|
|
3548
3548
|
color: #fff;
|
|
3549
3549
|
}
|
|
3550
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit {
|
|
3550
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit {
|
|
3551
3551
|
background-color: #ff4500;
|
|
3552
3552
|
color: #fff;
|
|
3553
3553
|
}
|
|
3554
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype {
|
|
3554
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype {
|
|
3555
3555
|
background-color: #0478d7;
|
|
3556
3556
|
color: #fff;
|
|
3557
3557
|
}
|
|
3558
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat {
|
|
3558
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat {
|
|
3559
3559
|
background-color: #fefc00;
|
|
3560
3560
|
color: #fff;
|
|
3561
3561
|
stroke: #000;
|
|
3562
3562
|
}
|
|
3563
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud {
|
|
3563
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud {
|
|
3564
3564
|
background-color: #ff5600;
|
|
3565
3565
|
color: #fff;
|
|
3566
3566
|
}
|
|
3567
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify {
|
|
3567
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify {
|
|
3568
3568
|
background-color: #1bd760;
|
|
3569
3569
|
color: #fff;
|
|
3570
3570
|
}
|
|
3571
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-telegram {
|
|
3571
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram {
|
|
3572
3572
|
background-color: #2aabee;
|
|
3573
3573
|
color: #fff;
|
|
3574
3574
|
}
|
|
3575
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads {
|
|
3575
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads {
|
|
3576
3576
|
background-color: #000;
|
|
3577
3577
|
color: #fff;
|
|
3578
3578
|
}
|
|
3579
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok {
|
|
3579
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok {
|
|
3580
3580
|
background-color: #000;
|
|
3581
3581
|
color: #fff;
|
|
3582
3582
|
}
|
|
3583
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr {
|
|
3583
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr {
|
|
3584
3584
|
background-color: #011835;
|
|
3585
3585
|
color: #fff;
|
|
3586
3586
|
}
|
|
3587
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch {
|
|
3587
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch {
|
|
3588
3588
|
background-color: #6440a4;
|
|
3589
3589
|
color: #fff;
|
|
3590
3590
|
}
|
|
3591
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter {
|
|
3591
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter {
|
|
3592
3592
|
background-color: #1da1f2;
|
|
3593
3593
|
color: #fff;
|
|
3594
3594
|
}
|
|
3595
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo {
|
|
3595
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo {
|
|
3596
3596
|
background-color: #1eb7ea;
|
|
3597
3597
|
color: #fff;
|
|
3598
3598
|
}
|
|
3599
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk {
|
|
3599
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk {
|
|
3600
3600
|
background-color: #4680c2;
|
|
3601
3601
|
color: #fff;
|
|
3602
3602
|
}
|
|
3603
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress {
|
|
3603
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress {
|
|
3604
3604
|
background-color: #3499cd;
|
|
3605
3605
|
color: #fff;
|
|
3606
3606
|
}
|
|
3607
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-whatsapp {
|
|
3607
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp {
|
|
3608
3608
|
background-color: #25d366;
|
|
3609
3609
|
color: #fff;
|
|
3610
3610
|
}
|
|
3611
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x {
|
|
3611
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x {
|
|
3612
3612
|
background-color: #000;
|
|
3613
3613
|
color: #fff;
|
|
3614
3614
|
}
|
|
3615
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp {
|
|
3615
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp {
|
|
3616
3616
|
background-color: #d32422;
|
|
3617
3617
|
color: #fff;
|
|
3618
3618
|
}
|
|
3619
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube {
|
|
3619
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube {
|
|
3620
3620
|
background-color: #f00;
|
|
3621
3621
|
color: #fff;
|
|
3622
3622
|
}
|
|
3623
3623
|
|
|
3624
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link {
|
|
3624
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link {
|
|
3625
3625
|
background: none;
|
|
3626
3626
|
}
|
|
3627
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link svg {
|
|
3627
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg {
|
|
3628
3628
|
width: 1.25em;
|
|
3629
3629
|
height: 1.25em;
|
|
3630
3630
|
}
|
|
3631
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-amazon {
|
|
3631
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon {
|
|
3632
3632
|
color: #f90;
|
|
3633
3633
|
}
|
|
3634
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp {
|
|
3634
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp {
|
|
3635
3635
|
color: #1ea0c3;
|
|
3636
3636
|
}
|
|
3637
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-behance {
|
|
3637
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance {
|
|
3638
3638
|
color: #0757fe;
|
|
3639
3639
|
}
|
|
3640
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-bluesky {
|
|
3640
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky {
|
|
3641
3641
|
color: #0a7aff;
|
|
3642
3642
|
}
|
|
3643
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-codepen {
|
|
3643
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen {
|
|
3644
3644
|
color: #1e1f26;
|
|
3645
3645
|
}
|
|
3646
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart {
|
|
3646
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart {
|
|
3647
3647
|
color: #02e49b;
|
|
3648
3648
|
}
|
|
3649
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble {
|
|
3649
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble {
|
|
3650
3650
|
color: #e94c89;
|
|
3651
3651
|
}
|
|
3652
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox {
|
|
3652
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox {
|
|
3653
3653
|
color: #4280ff;
|
|
3654
3654
|
}
|
|
3655
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-etsy {
|
|
3655
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy {
|
|
3656
3656
|
color: #f45800;
|
|
3657
3657
|
}
|
|
3658
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-facebook {
|
|
3658
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook {
|
|
3659
3659
|
color: #1778f2;
|
|
3660
3660
|
}
|
|
3661
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx {
|
|
3661
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx {
|
|
3662
3662
|
color: #000;
|
|
3663
3663
|
}
|
|
3664
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-flickr {
|
|
3664
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr {
|
|
3665
3665
|
color: #0461dd;
|
|
3666
3666
|
}
|
|
3667
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare {
|
|
3667
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare {
|
|
3668
3668
|
color: #e65678;
|
|
3669
3669
|
}
|
|
3670
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-github {
|
|
3670
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github {
|
|
3671
3671
|
color: #24292d;
|
|
3672
3672
|
}
|
|
3673
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads {
|
|
3673
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads {
|
|
3674
3674
|
color: #382110;
|
|
3675
3675
|
}
|
|
3676
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-google {
|
|
3676
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google {
|
|
3677
3677
|
color: #ea4434;
|
|
3678
3678
|
}
|
|
3679
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-gravatar {
|
|
3679
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar {
|
|
3680
3680
|
color: #1d4fc4;
|
|
3681
3681
|
}
|
|
3682
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-instagram {
|
|
3682
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram {
|
|
3683
3683
|
color: #f00075;
|
|
3684
3684
|
}
|
|
3685
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm {
|
|
3685
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm {
|
|
3686
3686
|
color: #e21b24;
|
|
3687
3687
|
}
|
|
3688
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin {
|
|
3688
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin {
|
|
3689
3689
|
color: #0d66c2;
|
|
3690
3690
|
}
|
|
3691
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon {
|
|
3691
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon {
|
|
3692
3692
|
color: #3288d4;
|
|
3693
3693
|
}
|
|
3694
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-medium {
|
|
3694
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium {
|
|
3695
3695
|
color: #000;
|
|
3696
3696
|
}
|
|
3697
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-meetup {
|
|
3697
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup {
|
|
3698
3698
|
color: #f6405f;
|
|
3699
3699
|
}
|
|
3700
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-patreon {
|
|
3700
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon {
|
|
3701
3701
|
color: #000;
|
|
3702
3702
|
}
|
|
3703
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest {
|
|
3703
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest {
|
|
3704
3704
|
color: #e60122;
|
|
3705
3705
|
}
|
|
3706
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-pocket {
|
|
3706
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket {
|
|
3707
3707
|
color: #ef4155;
|
|
3708
3708
|
}
|
|
3709
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-reddit {
|
|
3709
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit {
|
|
3710
3710
|
color: #ff4500;
|
|
3711
3711
|
}
|
|
3712
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-skype {
|
|
3712
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype {
|
|
3713
3713
|
color: #0478d7;
|
|
3714
3714
|
}
|
|
3715
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat {
|
|
3715
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat {
|
|
3716
3716
|
color: #fff;
|
|
3717
3717
|
stroke: #000;
|
|
3718
3718
|
}
|
|
3719
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud {
|
|
3719
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud {
|
|
3720
3720
|
color: #ff5600;
|
|
3721
3721
|
}
|
|
3722
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-spotify {
|
|
3722
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify {
|
|
3723
3723
|
color: #1bd760;
|
|
3724
3724
|
}
|
|
3725
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-telegram {
|
|
3725
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram {
|
|
3726
3726
|
color: #2aabee;
|
|
3727
3727
|
}
|
|
3728
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-threads {
|
|
3728
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads {
|
|
3729
3729
|
color: #000;
|
|
3730
3730
|
}
|
|
3731
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok {
|
|
3731
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok {
|
|
3732
3732
|
color: #000;
|
|
3733
3733
|
}
|
|
3734
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr {
|
|
3734
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr {
|
|
3735
3735
|
color: #011835;
|
|
3736
3736
|
}
|
|
3737
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-twitch {
|
|
3737
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch {
|
|
3738
3738
|
color: #6440a4;
|
|
3739
3739
|
}
|
|
3740
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-twitter {
|
|
3740
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter {
|
|
3741
3741
|
color: #1da1f2;
|
|
3742
3742
|
}
|
|
3743
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo {
|
|
3743
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo {
|
|
3744
3744
|
color: #1eb7ea;
|
|
3745
3745
|
}
|
|
3746
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-vk {
|
|
3746
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk {
|
|
3747
3747
|
color: #4680c2;
|
|
3748
3748
|
}
|
|
3749
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-whatsapp {
|
|
3749
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp {
|
|
3750
3750
|
color: #25d366;
|
|
3751
3751
|
}
|
|
3752
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress {
|
|
3752
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress {
|
|
3753
3753
|
color: #3499cd;
|
|
3754
3754
|
}
|
|
3755
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-x {
|
|
3755
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x {
|
|
3756
3756
|
color: #000;
|
|
3757
3757
|
}
|
|
3758
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-yelp {
|
|
3758
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp {
|
|
3759
3759
|
color: #d32422;
|
|
3760
3760
|
}
|
|
3761
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-youtube {
|
|
3761
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-youtube {
|
|
3762
3762
|
color: #f00;
|
|
3763
3763
|
}
|
|
3764
3764
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.5",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"@wordpress/api-fetch": "^7.0.1",
|
|
37
37
|
"@wordpress/autop": "^4.0.1",
|
|
38
38
|
"@wordpress/blob": "^4.0.1",
|
|
39
|
-
"@wordpress/block-editor": "^13.0.
|
|
39
|
+
"@wordpress/block-editor": "^13.0.4",
|
|
40
40
|
"@wordpress/blocks": "^13.0.3",
|
|
41
41
|
"@wordpress/components": "^28.0.3",
|
|
42
42
|
"@wordpress/compose": "^7.0.1",
|
|
43
|
-
"@wordpress/core-data": "^7.0.
|
|
43
|
+
"@wordpress/core-data": "^7.0.4",
|
|
44
44
|
"@wordpress/data": "^10.0.2",
|
|
45
45
|
"@wordpress/date": "^5.0.1",
|
|
46
46
|
"@wordpress/deprecated": "^4.0.1",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@wordpress/keyboard-shortcuts": "^5.0.2",
|
|
57
57
|
"@wordpress/keycodes": "^4.0.1",
|
|
58
58
|
"@wordpress/notices": "^5.0.2",
|
|
59
|
-
"@wordpress/patterns": "^2.0.
|
|
59
|
+
"@wordpress/patterns": "^2.0.4",
|
|
60
60
|
"@wordpress/primitives": "^4.0.1",
|
|
61
61
|
"@wordpress/private-apis": "^1.0.2",
|
|
62
|
-
"@wordpress/reusable-blocks": "^5.0.
|
|
62
|
+
"@wordpress/reusable-blocks": "^5.0.4",
|
|
63
63
|
"@wordpress/rich-text": "^7.0.2",
|
|
64
64
|
"@wordpress/server-side-render": "^5.0.3",
|
|
65
65
|
"@wordpress/url": "^4.0.1",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "85486692a3e48b7d863226cf895a21d787434921"
|
|
86
86
|
}
|
package/src/block/block.json
CHANGED
package/src/image/image.js
CHANGED
|
@@ -49,7 +49,7 @@ import { Caption } from '../utils/caption';
|
|
|
49
49
|
/**
|
|
50
50
|
* Module constants
|
|
51
51
|
*/
|
|
52
|
-
import {
|
|
52
|
+
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
53
53
|
import { MIN_SIZE, ALLOWED_MEDIA_TYPES } from './constants';
|
|
54
54
|
import { evalAspectRatio } from './utils';
|
|
55
55
|
|
|
@@ -373,6 +373,8 @@ export default function Image( {
|
|
|
373
373
|
const lightboxChecked =
|
|
374
374
|
!! lightbox?.enabled || ( ! lightbox && !! lightboxSetting?.enabled );
|
|
375
375
|
|
|
376
|
+
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
|
|
377
|
+
|
|
376
378
|
const dimensionsControl = (
|
|
377
379
|
<DimensionsTool
|
|
378
380
|
value={ { width, height, scale, aspectRatio } }
|
|
@@ -419,7 +421,7 @@ export default function Image( {
|
|
|
419
421
|
<ToolsPanel
|
|
420
422
|
label={ __( 'Settings' ) }
|
|
421
423
|
resetAll={ resetAll }
|
|
422
|
-
dropdownMenuProps={
|
|
424
|
+
dropdownMenuProps={ dropdownMenuProps }
|
|
423
425
|
>
|
|
424
426
|
{ isResizable && dimensionsControl }
|
|
425
427
|
</ToolsPanel>
|
|
@@ -443,16 +445,12 @@ export default function Image( {
|
|
|
443
445
|
return {};
|
|
444
446
|
}
|
|
445
447
|
const { getBlockBindingsSource } = unlock( select( blocksStore ) );
|
|
446
|
-
const { getBlockParentsByBlockName } = unlock(
|
|
447
|
-
select( blockEditorStore )
|
|
448
|
-
);
|
|
449
448
|
const {
|
|
450
449
|
url: urlBinding,
|
|
451
450
|
alt: altBinding,
|
|
452
451
|
title: titleBinding,
|
|
453
452
|
} = metadata?.bindings || {};
|
|
454
|
-
const hasParentPattern =
|
|
455
|
-
getBlockParentsByBlockName( clientId, 'core/block' ).length > 0;
|
|
453
|
+
const hasParentPattern = !! context[ 'pattern/overrides' ];
|
|
456
454
|
const urlBindingSource = getBlockBindingsSource(
|
|
457
455
|
urlBinding?.source
|
|
458
456
|
);
|
|
@@ -508,7 +506,12 @@ export default function Image( {
|
|
|
508
506
|
: __( 'Connected to dynamic data' ),
|
|
509
507
|
};
|
|
510
508
|
},
|
|
511
|
-
[
|
|
509
|
+
[
|
|
510
|
+
arePatternOverridesEnabled,
|
|
511
|
+
context,
|
|
512
|
+
isSingleSelected,
|
|
513
|
+
metadata?.bindings,
|
|
514
|
+
]
|
|
512
515
|
);
|
|
513
516
|
|
|
514
517
|
const showUrlInput =
|
|
@@ -691,7 +694,7 @@ export default function Image( {
|
|
|
691
694
|
<ToolsPanel
|
|
692
695
|
label={ __( 'Settings' ) }
|
|
693
696
|
resetAll={ resetAll }
|
|
694
|
-
dropdownMenuProps={
|
|
697
|
+
dropdownMenuProps={ dropdownMenuProps }
|
|
695
698
|
>
|
|
696
699
|
{ isSingleSelected && (
|
|
697
700
|
<ToolsPanelItem
|
|
@@ -92,11 +92,25 @@ export default function useMerge( clientId, onMerge ) {
|
|
|
92
92
|
// list.
|
|
93
93
|
const [ nestedListClientId ] = getBlockOrder( clientIdB );
|
|
94
94
|
if ( nestedListClientId ) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
// If we are merging with the previous list item, and the
|
|
96
|
+
// previous list item does not have nested list, move the
|
|
97
|
+
// nested list to the previous list item.
|
|
98
|
+
if (
|
|
99
|
+
getPreviousBlockClientId( clientIdB ) === clientIdA &&
|
|
100
|
+
! getBlockOrder( clientIdA ).length
|
|
101
|
+
) {
|
|
102
|
+
moveBlocksToPosition(
|
|
103
|
+
[ nestedListClientId ],
|
|
104
|
+
clientIdB,
|
|
105
|
+
clientIdA
|
|
106
|
+
);
|
|
107
|
+
} else {
|
|
108
|
+
moveBlocksToPosition(
|
|
109
|
+
getBlockOrder( nestedListClientId ),
|
|
110
|
+
nestedListClientId,
|
|
111
|
+
getBlockRootClientId( clientIdA )
|
|
112
|
+
);
|
|
113
|
+
}
|
|
100
114
|
}
|
|
101
115
|
mergeBlocks( clientIdA, clientIdB );
|
|
102
116
|
} );
|
package/src/media-text/edit.js
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
TEMPLATE,
|
|
47
47
|
} from './constants';
|
|
48
48
|
import { unlock } from '../lock-unlock';
|
|
49
|
-
import {
|
|
49
|
+
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
50
50
|
|
|
51
51
|
const { ResolutionTool } = unlock( blockEditorPrivateApis );
|
|
52
52
|
|
|
@@ -276,6 +276,7 @@ function MediaTextEdit( {
|
|
|
276
276
|
mediaSizeSlug: newMediaSizeSlug,
|
|
277
277
|
} );
|
|
278
278
|
};
|
|
279
|
+
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
|
|
279
280
|
|
|
280
281
|
const mediaTextGeneralSettings = (
|
|
281
282
|
<ToolsPanel
|
|
@@ -290,7 +291,7 @@ function MediaTextEdit( {
|
|
|
290
291
|
mediaSizeSlug: undefined,
|
|
291
292
|
} );
|
|
292
293
|
} }
|
|
293
|
-
dropdownMenuProps={
|
|
294
|
+
dropdownMenuProps={ dropdownMenuProps }
|
|
294
295
|
>
|
|
295
296
|
<ToolsPanelItem
|
|
296
297
|
label={ __( 'Media width' ) }
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
isControlAllowed,
|
|
35
35
|
useTaxonomies,
|
|
36
36
|
} from '../../utils';
|
|
37
|
-
import {
|
|
37
|
+
import { useToolsPanelDropdownMenuProps } from '../../../utils/hooks';
|
|
38
38
|
|
|
39
39
|
const { BlockInfo } = unlock( blockEditorPrivateApis );
|
|
40
40
|
|
|
@@ -128,6 +128,7 @@ export default function QueryInspectorControls( props ) {
|
|
|
128
128
|
showAuthorControl ||
|
|
129
129
|
showSearchControl ||
|
|
130
130
|
showParentControl;
|
|
131
|
+
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
|
|
131
132
|
|
|
132
133
|
return (
|
|
133
134
|
<>
|
|
@@ -221,7 +222,7 @@ export default function QueryInspectorControls( props ) {
|
|
|
221
222
|
} );
|
|
222
223
|
setQuerySearch( '' );
|
|
223
224
|
} }
|
|
224
|
-
dropdownMenuProps={
|
|
225
|
+
dropdownMenuProps={ dropdownMenuProps }
|
|
225
226
|
>
|
|
226
227
|
{ showTaxControl && (
|
|
227
228
|
<ToolsPanelItem
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
// Provide colors for a range of icons.
|
|
110
|
-
.wp-block-social-links:not(.is-style-logos-only) {
|
|
110
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) {
|
|
111
111
|
// Generic items such as mail, feed, etc.
|
|
112
112
|
@import "../social-link/socials-with-bg.scss";
|
|
113
113
|
}
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
// The specificity for this selector has not been reduced to 0-1-0 as per
|
|
117
117
|
// global styles variation selectors as the lack of background should be
|
|
118
118
|
// enforced for this block style.
|
|
119
|
-
.wp-block-social-links.is-style-logos-only {
|
|
119
|
+
:where(.wp-block-social-links.is-style-logos-only) {
|
|
120
120
|
.wp-social-link {
|
|
121
121
|
background: none;
|
|
122
122
|
|
package/src/utils/hooks.js
CHANGED
|
@@ -6,6 +6,7 @@ import { useLayoutEffect, useEffect, useRef } from '@wordpress/element';
|
|
|
6
6
|
import { getBlobByURL, isBlobURL, revokeBlobURL } from '@wordpress/blob';
|
|
7
7
|
import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
8
8
|
import { store as coreStore } from '@wordpress/core-data';
|
|
9
|
+
import { useViewportMatch } from '@wordpress/compose';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Returns whether the current user can edit the given entity.
|
|
@@ -84,3 +85,16 @@ export function useUploadMediaFromBlobURL( args = {} ) {
|
|
|
84
85
|
} );
|
|
85
86
|
}, [ getSettings ] );
|
|
86
87
|
}
|
|
88
|
+
|
|
89
|
+
export function useToolsPanelDropdownMenuProps() {
|
|
90
|
+
const isMobile = useViewportMatch( 'medium', '<' );
|
|
91
|
+
return ! isMobile
|
|
92
|
+
? {
|
|
93
|
+
popoverProps: {
|
|
94
|
+
placement: 'left-start',
|
|
95
|
+
// For non-mobile, inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px)
|
|
96
|
+
offset: 259,
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
: {};
|
|
100
|
+
}
|