@wordpress/block-library 9.0.4 → 9.0.6
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/post-comments-form/style-rtl.css +11 -10
- package/build-style/post-comments-form/style.css +11 -10
- 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 +102 -101
- package/build-style/style.css +102 -101
- package/package.json +6 -6
- package/src/block/block.json +5 -1
- package/src/image/image.js +12 -9
- package/src/image/index.php +26 -5
- package/src/list-item/hooks/use-merge.js +19 -5
- package/src/media-text/edit.js +3 -2
- package/src/post-comments-form/style.scss +15 -12
- 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
|
@@ -2742,6 +2742,17 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
2742
2742
|
margin: 0;
|
|
2743
2743
|
}
|
|
2744
2744
|
|
|
2745
|
+
:where(.wp-block-post-comments-form) textarea,
|
|
2746
|
+
:where(.wp-block-post-comments-form) input:not([type=submit]) {
|
|
2747
|
+
border: 1px solid #949494;
|
|
2748
|
+
font-size: 1em;
|
|
2749
|
+
font-family: inherit;
|
|
2750
|
+
}
|
|
2751
|
+
:where(.wp-block-post-comments-form) textarea,
|
|
2752
|
+
:where(.wp-block-post-comments-form) input:where(:not([type="submit"]):not([type="checkbox"])) {
|
|
2753
|
+
padding: calc(0.667em + 2px);
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2745
2756
|
.wp-block-post-comments-form {
|
|
2746
2757
|
box-sizing: border-box;
|
|
2747
2758
|
}
|
|
@@ -2770,16 +2781,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
2770
2781
|
text-align: center;
|
|
2771
2782
|
overflow-wrap: break-word;
|
|
2772
2783
|
}
|
|
2773
|
-
.wp-block-post-comments-form textarea,
|
|
2774
|
-
.wp-block-post-comments-form input:not([type=submit]) {
|
|
2775
|
-
border: 1px solid #949494;
|
|
2776
|
-
font-size: 1em;
|
|
2777
|
-
font-family: inherit;
|
|
2778
|
-
}
|
|
2779
|
-
.wp-block-post-comments-form textarea,
|
|
2780
|
-
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]) {
|
|
2781
|
-
padding: calc(0.667em + 2px);
|
|
2782
|
-
}
|
|
2783
2784
|
.wp-block-post-comments-form .comment-form textarea,
|
|
2784
2785
|
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]) {
|
|
2785
2786
|
display: block;
|
|
@@ -3439,326 +3440,326 @@ ul.wp-block-rss.is-grid li {
|
|
|
3439
3440
|
fill: currentColor;
|
|
3440
3441
|
}
|
|
3441
3442
|
|
|
3442
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link {
|
|
3443
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link {
|
|
3443
3444
|
background-color: #f0f0f0;
|
|
3444
3445
|
color: #444;
|
|
3445
3446
|
}
|
|
3446
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon {
|
|
3447
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon {
|
|
3447
3448
|
background-color: #f90;
|
|
3448
3449
|
color: #fff;
|
|
3449
3450
|
}
|
|
3450
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp {
|
|
3451
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp {
|
|
3451
3452
|
background-color: #1ea0c3;
|
|
3452
3453
|
color: #fff;
|
|
3453
3454
|
}
|
|
3454
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance {
|
|
3455
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance {
|
|
3455
3456
|
background-color: #0757fe;
|
|
3456
3457
|
color: #fff;
|
|
3457
3458
|
}
|
|
3458
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bluesky {
|
|
3459
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky {
|
|
3459
3460
|
background-color: #0a7aff;
|
|
3460
3461
|
color: #fff;
|
|
3461
3462
|
}
|
|
3462
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen {
|
|
3463
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen {
|
|
3463
3464
|
background-color: #1e1f26;
|
|
3464
3465
|
color: #fff;
|
|
3465
3466
|
}
|
|
3466
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart {
|
|
3467
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart {
|
|
3467
3468
|
background-color: #02e49b;
|
|
3468
3469
|
color: #fff;
|
|
3469
3470
|
}
|
|
3470
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble {
|
|
3471
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble {
|
|
3471
3472
|
background-color: #e94c89;
|
|
3472
3473
|
color: #fff;
|
|
3473
3474
|
}
|
|
3474
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox {
|
|
3475
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox {
|
|
3475
3476
|
background-color: #4280ff;
|
|
3476
3477
|
color: #fff;
|
|
3477
3478
|
}
|
|
3478
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy {
|
|
3479
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy {
|
|
3479
3480
|
background-color: #f45800;
|
|
3480
3481
|
color: #fff;
|
|
3481
3482
|
}
|
|
3482
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook {
|
|
3483
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook {
|
|
3483
3484
|
background-color: #1778f2;
|
|
3484
3485
|
color: #fff;
|
|
3485
3486
|
}
|
|
3486
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx {
|
|
3487
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx {
|
|
3487
3488
|
background-color: #000;
|
|
3488
3489
|
color: #fff;
|
|
3489
3490
|
}
|
|
3490
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr {
|
|
3491
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr {
|
|
3491
3492
|
background-color: #0461dd;
|
|
3492
3493
|
color: #fff;
|
|
3493
3494
|
}
|
|
3494
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare {
|
|
3495
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare {
|
|
3495
3496
|
background-color: #e65678;
|
|
3496
3497
|
color: #fff;
|
|
3497
3498
|
}
|
|
3498
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github {
|
|
3499
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github {
|
|
3499
3500
|
background-color: #24292d;
|
|
3500
3501
|
color: #fff;
|
|
3501
3502
|
}
|
|
3502
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads {
|
|
3503
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads {
|
|
3503
3504
|
background-color: #eceadd;
|
|
3504
3505
|
color: #382110;
|
|
3505
3506
|
}
|
|
3506
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google {
|
|
3507
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google {
|
|
3507
3508
|
background-color: #ea4434;
|
|
3508
3509
|
color: #fff;
|
|
3509
3510
|
}
|
|
3510
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-gravatar {
|
|
3511
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar {
|
|
3511
3512
|
background-color: #1d4fc4;
|
|
3512
3513
|
color: #fff;
|
|
3513
3514
|
}
|
|
3514
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram {
|
|
3515
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram {
|
|
3515
3516
|
background-color: #f00075;
|
|
3516
3517
|
color: #fff;
|
|
3517
3518
|
}
|
|
3518
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm {
|
|
3519
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm {
|
|
3519
3520
|
background-color: #e21b24;
|
|
3520
3521
|
color: #fff;
|
|
3521
3522
|
}
|
|
3522
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin {
|
|
3523
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin {
|
|
3523
3524
|
background-color: #0d66c2;
|
|
3524
3525
|
color: #fff;
|
|
3525
3526
|
}
|
|
3526
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon {
|
|
3527
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon {
|
|
3527
3528
|
background-color: #3288d4;
|
|
3528
3529
|
color: #fff;
|
|
3529
3530
|
}
|
|
3530
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium {
|
|
3531
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium {
|
|
3531
3532
|
background-color: #000;
|
|
3532
3533
|
color: #fff;
|
|
3533
3534
|
}
|
|
3534
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup {
|
|
3535
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup {
|
|
3535
3536
|
background-color: #f6405f;
|
|
3536
3537
|
color: #fff;
|
|
3537
3538
|
}
|
|
3538
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-patreon {
|
|
3539
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon {
|
|
3539
3540
|
background-color: #000;
|
|
3540
3541
|
color: #fff;
|
|
3541
3542
|
}
|
|
3542
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest {
|
|
3543
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest {
|
|
3543
3544
|
background-color: #e60122;
|
|
3544
3545
|
color: #fff;
|
|
3545
3546
|
}
|
|
3546
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket {
|
|
3547
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket {
|
|
3547
3548
|
background-color: #ef4155;
|
|
3548
3549
|
color: #fff;
|
|
3549
3550
|
}
|
|
3550
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit {
|
|
3551
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit {
|
|
3551
3552
|
background-color: #ff4500;
|
|
3552
3553
|
color: #fff;
|
|
3553
3554
|
}
|
|
3554
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype {
|
|
3555
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype {
|
|
3555
3556
|
background-color: #0478d7;
|
|
3556
3557
|
color: #fff;
|
|
3557
3558
|
}
|
|
3558
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat {
|
|
3559
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat {
|
|
3559
3560
|
background-color: #fefc00;
|
|
3560
3561
|
color: #fff;
|
|
3561
3562
|
stroke: #000;
|
|
3562
3563
|
}
|
|
3563
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud {
|
|
3564
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud {
|
|
3564
3565
|
background-color: #ff5600;
|
|
3565
3566
|
color: #fff;
|
|
3566
3567
|
}
|
|
3567
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify {
|
|
3568
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify {
|
|
3568
3569
|
background-color: #1bd760;
|
|
3569
3570
|
color: #fff;
|
|
3570
3571
|
}
|
|
3571
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-telegram {
|
|
3572
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram {
|
|
3572
3573
|
background-color: #2aabee;
|
|
3573
3574
|
color: #fff;
|
|
3574
3575
|
}
|
|
3575
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-threads {
|
|
3576
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads {
|
|
3576
3577
|
background-color: #000;
|
|
3577
3578
|
color: #fff;
|
|
3578
3579
|
}
|
|
3579
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tiktok {
|
|
3580
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok {
|
|
3580
3581
|
background-color: #000;
|
|
3581
3582
|
color: #fff;
|
|
3582
3583
|
}
|
|
3583
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr {
|
|
3584
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr {
|
|
3584
3585
|
background-color: #011835;
|
|
3585
3586
|
color: #fff;
|
|
3586
3587
|
}
|
|
3587
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch {
|
|
3588
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch {
|
|
3588
3589
|
background-color: #6440a4;
|
|
3589
3590
|
color: #fff;
|
|
3590
3591
|
}
|
|
3591
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter {
|
|
3592
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter {
|
|
3592
3593
|
background-color: #1da1f2;
|
|
3593
3594
|
color: #fff;
|
|
3594
3595
|
}
|
|
3595
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo {
|
|
3596
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo {
|
|
3596
3597
|
background-color: #1eb7ea;
|
|
3597
3598
|
color: #fff;
|
|
3598
3599
|
}
|
|
3599
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk {
|
|
3600
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk {
|
|
3600
3601
|
background-color: #4680c2;
|
|
3601
3602
|
color: #fff;
|
|
3602
3603
|
}
|
|
3603
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress {
|
|
3604
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress {
|
|
3604
3605
|
background-color: #3499cd;
|
|
3605
3606
|
color: #fff;
|
|
3606
3607
|
}
|
|
3607
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-whatsapp {
|
|
3608
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp {
|
|
3608
3609
|
background-color: #25d366;
|
|
3609
3610
|
color: #fff;
|
|
3610
3611
|
}
|
|
3611
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-x {
|
|
3612
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x {
|
|
3612
3613
|
background-color: #000;
|
|
3613
3614
|
color: #fff;
|
|
3614
3615
|
}
|
|
3615
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp {
|
|
3616
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp {
|
|
3616
3617
|
background-color: #d32422;
|
|
3617
3618
|
color: #fff;
|
|
3618
3619
|
}
|
|
3619
|
-
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube {
|
|
3620
|
+
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube {
|
|
3620
3621
|
background-color: #f00;
|
|
3621
3622
|
color: #fff;
|
|
3622
3623
|
}
|
|
3623
3624
|
|
|
3624
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link {
|
|
3625
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link {
|
|
3625
3626
|
background: none;
|
|
3626
3627
|
}
|
|
3627
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link svg {
|
|
3628
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg {
|
|
3628
3629
|
width: 1.25em;
|
|
3629
3630
|
height: 1.25em;
|
|
3630
3631
|
}
|
|
3631
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-amazon {
|
|
3632
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon {
|
|
3632
3633
|
color: #f90;
|
|
3633
3634
|
}
|
|
3634
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp {
|
|
3635
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp {
|
|
3635
3636
|
color: #1ea0c3;
|
|
3636
3637
|
}
|
|
3637
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-behance {
|
|
3638
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance {
|
|
3638
3639
|
color: #0757fe;
|
|
3639
3640
|
}
|
|
3640
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-bluesky {
|
|
3641
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky {
|
|
3641
3642
|
color: #0a7aff;
|
|
3642
3643
|
}
|
|
3643
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-codepen {
|
|
3644
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen {
|
|
3644
3645
|
color: #1e1f26;
|
|
3645
3646
|
}
|
|
3646
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart {
|
|
3647
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart {
|
|
3647
3648
|
color: #02e49b;
|
|
3648
3649
|
}
|
|
3649
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble {
|
|
3650
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble {
|
|
3650
3651
|
color: #e94c89;
|
|
3651
3652
|
}
|
|
3652
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox {
|
|
3653
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox {
|
|
3653
3654
|
color: #4280ff;
|
|
3654
3655
|
}
|
|
3655
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-etsy {
|
|
3656
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy {
|
|
3656
3657
|
color: #f45800;
|
|
3657
3658
|
}
|
|
3658
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-facebook {
|
|
3659
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook {
|
|
3659
3660
|
color: #1778f2;
|
|
3660
3661
|
}
|
|
3661
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx {
|
|
3662
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx {
|
|
3662
3663
|
color: #000;
|
|
3663
3664
|
}
|
|
3664
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-flickr {
|
|
3665
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr {
|
|
3665
3666
|
color: #0461dd;
|
|
3666
3667
|
}
|
|
3667
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare {
|
|
3668
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare {
|
|
3668
3669
|
color: #e65678;
|
|
3669
3670
|
}
|
|
3670
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-github {
|
|
3671
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github {
|
|
3671
3672
|
color: #24292d;
|
|
3672
3673
|
}
|
|
3673
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads {
|
|
3674
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads {
|
|
3674
3675
|
color: #382110;
|
|
3675
3676
|
}
|
|
3676
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-google {
|
|
3677
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google {
|
|
3677
3678
|
color: #ea4434;
|
|
3678
3679
|
}
|
|
3679
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-gravatar {
|
|
3680
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar {
|
|
3680
3681
|
color: #1d4fc4;
|
|
3681
3682
|
}
|
|
3682
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-instagram {
|
|
3683
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram {
|
|
3683
3684
|
color: #f00075;
|
|
3684
3685
|
}
|
|
3685
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm {
|
|
3686
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm {
|
|
3686
3687
|
color: #e21b24;
|
|
3687
3688
|
}
|
|
3688
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin {
|
|
3689
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin {
|
|
3689
3690
|
color: #0d66c2;
|
|
3690
3691
|
}
|
|
3691
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon {
|
|
3692
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon {
|
|
3692
3693
|
color: #3288d4;
|
|
3693
3694
|
}
|
|
3694
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-medium {
|
|
3695
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium {
|
|
3695
3696
|
color: #000;
|
|
3696
3697
|
}
|
|
3697
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-meetup {
|
|
3698
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup {
|
|
3698
3699
|
color: #f6405f;
|
|
3699
3700
|
}
|
|
3700
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-patreon {
|
|
3701
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon {
|
|
3701
3702
|
color: #000;
|
|
3702
3703
|
}
|
|
3703
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest {
|
|
3704
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest {
|
|
3704
3705
|
color: #e60122;
|
|
3705
3706
|
}
|
|
3706
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-pocket {
|
|
3707
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket {
|
|
3707
3708
|
color: #ef4155;
|
|
3708
3709
|
}
|
|
3709
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-reddit {
|
|
3710
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit {
|
|
3710
3711
|
color: #ff4500;
|
|
3711
3712
|
}
|
|
3712
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-skype {
|
|
3713
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype {
|
|
3713
3714
|
color: #0478d7;
|
|
3714
3715
|
}
|
|
3715
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat {
|
|
3716
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat {
|
|
3716
3717
|
color: #fff;
|
|
3717
3718
|
stroke: #000;
|
|
3718
3719
|
}
|
|
3719
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud {
|
|
3720
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud {
|
|
3720
3721
|
color: #ff5600;
|
|
3721
3722
|
}
|
|
3722
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-spotify {
|
|
3723
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify {
|
|
3723
3724
|
color: #1bd760;
|
|
3724
3725
|
}
|
|
3725
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-telegram {
|
|
3726
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram {
|
|
3726
3727
|
color: #2aabee;
|
|
3727
3728
|
}
|
|
3728
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-threads {
|
|
3729
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads {
|
|
3729
3730
|
color: #000;
|
|
3730
3731
|
}
|
|
3731
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-tiktok {
|
|
3732
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok {
|
|
3732
3733
|
color: #000;
|
|
3733
3734
|
}
|
|
3734
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr {
|
|
3735
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr {
|
|
3735
3736
|
color: #011835;
|
|
3736
3737
|
}
|
|
3737
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-twitch {
|
|
3738
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch {
|
|
3738
3739
|
color: #6440a4;
|
|
3739
3740
|
}
|
|
3740
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-twitter {
|
|
3741
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter {
|
|
3741
3742
|
color: #1da1f2;
|
|
3742
3743
|
}
|
|
3743
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo {
|
|
3744
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo {
|
|
3744
3745
|
color: #1eb7ea;
|
|
3745
3746
|
}
|
|
3746
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-vk {
|
|
3747
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk {
|
|
3747
3748
|
color: #4680c2;
|
|
3748
3749
|
}
|
|
3749
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-whatsapp {
|
|
3750
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp {
|
|
3750
3751
|
color: #25d366;
|
|
3751
3752
|
}
|
|
3752
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress {
|
|
3753
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress {
|
|
3753
3754
|
color: #3499cd;
|
|
3754
3755
|
}
|
|
3755
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-x {
|
|
3756
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x {
|
|
3756
3757
|
color: #000;
|
|
3757
3758
|
}
|
|
3758
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-yelp {
|
|
3759
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp {
|
|
3759
3760
|
color: #d32422;
|
|
3760
3761
|
}
|
|
3761
|
-
.wp-block-social-links.is-style-logos-only .wp-social-link-youtube {
|
|
3762
|
+
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-youtube {
|
|
3762
3763
|
color: #f00;
|
|
3763
3764
|
}
|
|
3764
3765
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.6",
|
|
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.5",
|
|
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.5",
|
|
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.5",
|
|
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.5",
|
|
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": "38063ae466e1b62d400b910136757a4cafdbe7fa"
|
|
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
|
package/src/image/index.php
CHANGED
|
@@ -28,12 +28,33 @@ function render_block_core_image( $attributes, $content, $block ) {
|
|
|
28
28
|
return '';
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
$has_id_binding = isset( $attributes['metadata']['bindings']['id'] ) && isset( $attributes['id'] );
|
|
32
|
+
|
|
33
|
+
// Ensure the `wp-image-id` classname on the image block supports block bindings.
|
|
34
|
+
if ( $has_id_binding ) {
|
|
35
|
+
// If there's a mismatch with the 'wp-image-' class and the actual id, the id was
|
|
36
|
+
// probably overridden by block bindings. Update it to the correct value.
|
|
37
|
+
// See https://github.com/WordPress/gutenberg/issues/62886 for why this is needed.
|
|
38
|
+
$id = $attributes['id'];
|
|
39
|
+
$image_classnames = $p->get_attribute( 'class' );
|
|
40
|
+
$class_with_binding_value = "wp-image-$id";
|
|
41
|
+
if ( is_string( $image_classnames ) && ! str_contains( $image_classnames, $class_with_binding_value ) ) {
|
|
42
|
+
$image_classnames = preg_replace( '/wp-image-(\d+)/', $class_with_binding_value, $image_classnames );
|
|
43
|
+
$p->set_attribute( 'class', $image_classnames );
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// For backwards compatibility, the data-id html attribute is only set for
|
|
48
|
+
// image blocks nested in a gallery. Detect if the image is in a gallery by
|
|
49
|
+
// checking the data-id attribute.
|
|
50
|
+
// See the `block_core_gallery_data_id_backcompatibility` function.
|
|
31
51
|
if ( isset( $attributes['data-id'] ) ) {
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
$
|
|
52
|
+
// If there's a binding for the `id`, the `id` attribute is used for the
|
|
53
|
+
// value, since `data-id` does not support block bindings.
|
|
54
|
+
// Else the `data-id` is used for backwards compatibility, since
|
|
55
|
+
// third parties may be filtering its value.
|
|
56
|
+
$data_id = $has_id_binding ? $attributes['id'] : $attributes['data-id'];
|
|
57
|
+
$p->set_attribute( 'data-id', $data_id );
|
|
37
58
|
}
|
|
38
59
|
|
|
39
60
|
$link_destination = isset( $attributes['linkDestination'] ) ? $attributes['linkDestination'] : 'none';
|
|
@@ -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
|
} );
|