From 3f966e7f7df0f88d1ab0fa71ac08852063510d7f Mon Sep 17 00:00:00 2001 From: manzoorwanijk Date: Thu, 7 Nov 2024 07:27:43 +0000 Subject: [PATCH] Social | Migrate Social plugin settings to the new script-data (#40032) * Set up core-data entities for social plugin settings * Pass the initial settings from backend * Enhance ConnectionManagement to add disabled prop * Use the new social plugin settings selector on social admin page * Use the new social plugin settings selector for publicize toggle * Update social notes toggle to use the new selector and avoid reloading page * Add plugin_info to types * Add changelog * Update script-data site type * Update composer.lock * Fix JS unit tests * Update composer.lock * Fix empty settings when no user connection * Improve type safety for core-data usage * Update pnpm-lock.yaml Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11718279583 Upstream-Ref: Automattic/jetpack@368eb1d297745627d037415092c1e801f32fee50 --- vendor/composer/installed.json | 52 +++++++++++++++++----------------- vendor/composer/installed.php | 52 +++++++++++++++++----------------- 2 files changed, 52 insertions(+), 52 deletions(-) diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index a45d5f7d..2756c451 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -7,7 +7,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats", - "reference": "9bfeffa369c83de85b44de4019ff4bddecaa9c3e" + "reference": "3fd4f0d430ca326a3390bc5662616917812196d1" }, "require": { "php": ">=7.0" @@ -63,7 +63,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "ec861108d480c1a63c2fad790ebe05d554102f4e" + "reference": "9cd1dce3778cc0f2ceed3a83880a499b1a146268" }, "require": { "php": ">=7.0" @@ -131,7 +131,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "caa088b613873335e5cb2c4abcd500fb8b6be786" + "reference": "58677df10e5ca4f12bfe0f1ea4cdf454f89aad6c" }, "require": { "automattic/jetpack-constants": "^2.0.5", @@ -204,7 +204,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-autoloader", - "reference": "374d4aac31ea2072d8ccc7637a653dfcb9472eab" + "reference": "ee01f7c73e1b2f1233b548aae58913fc66878a1e" }, "require": { "composer-plugin-api": "^1.1 || ^2.0", @@ -275,7 +275,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-core", - "reference": "2f9ec4458cc8112d525b5cd1eb0702780076c078" + "reference": "1fc5fa63517fbdf8c0dab5a0af2b6190d61c54cf" }, "require": { "automattic/jetpack-connection": "^5.1.7-alpha", @@ -346,7 +346,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score", - "reference": "6710a1373b26de111928c53d23f0c43378e4b648" + "reference": "7b56de83a63d68767f759ed41e4b9e0e966b2983" }, "require": { "automattic/jetpack-boost-core": "^0.2.14", @@ -425,7 +425,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin", - "reference": "6d198fbfce7eda10db1f2be13e058a52c5a63710" + "reference": "b900530823e09b9d659bdbf0bda9af723c83d21d" }, "require": { "composer-plugin-api": "^2.1.0", @@ -488,7 +488,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-config", - "reference": "45e37440c0587fbcc3a9a47eb15a1ef3e5b24943" + "reference": "f604093ea42b6734d050f3c19f5d85ce50228d61" }, "require": { "php": ">=7.0" @@ -563,7 +563,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "417abe59ebd69f8e704a74f4fbf5d71e9a91ab7c" + "reference": "aad807073710a03b0dfabfefa3a080c4093c400f" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.4", @@ -656,7 +656,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "c435f68df0a6dc6b1101b81714d97c826f332ee2" + "reference": "c6a52755d4d758677ca75540eb5b175e551ba77c" }, "require": { "php": ">=7.0" @@ -713,7 +713,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "aeede386908d971f086394c58cc0218cbe68dd44" + "reference": "9ea39879a3e71f09d6c450d0574b647ea7a4c0f9" }, "require": { "php": ">=7.0" @@ -769,7 +769,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-explat", - "reference": "9f49ba62f4dcf5f403ac0c0fd5bb863cb1aaa504" + "reference": "9198c4a03e1616638c790cd09b1e694e7f07b790" }, "require": { "automattic/jetpack-connection": "^5.1.7-alpha", @@ -848,7 +848,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "ef4a32b6dced5373af244cb6f244305482f4e3b2" + "reference": "563c1e7d0eee00c37edf6b48f59cdbf9c2edeb8f" }, "require": { "php": ">=7.0" @@ -909,7 +909,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "f7c0236545b1f6e9dacf1dc50689f816971b9316" + "reference": "28af6777930d1b65f690862335e352dc192a4b78" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.4", @@ -987,7 +987,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-licensing", - "reference": "52c688ca83a6436b5efa903243dd7a5c239ca1f8" + "reference": "9b499ee3139256dbd9fb753d8ca22adab96655a9" }, "require": { "automattic/jetpack-connection": "^5.1.7-alpha", @@ -1052,7 +1052,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "3230e1a1d525ed569e66499ded22b01dcccfc6d3" + "reference": "9e5bdbfa173fc5d673496a4663a2e84e9b858d12" }, "require": { "php": ">=7.0" @@ -1108,7 +1108,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack", - "reference": "c08b9dd01b4325733148dc186b1d7dc89414090f" + "reference": "8fe98a2b503d6b8349f5b47f73b7294e589f914a" }, "require": { "automattic/jetpack-admin-ui": "^0.4.6", @@ -1214,7 +1214,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "31f1e812150cc5018333b8a8fd75f38b11899eb9" + "reference": "cf51df69e6bc8f55ec742395cd19fa7e0cb558b3" }, "require": { "php": ">=7.0" @@ -1278,7 +1278,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "0ee9c9d9a44877eac850ba094a86ffec49b285f3" + "reference": "104c1aebc97dcfc331de9865bfe1ca4747cecaee" }, "require": { "automattic/jetpack-connection": "^5.1.7-alpha", @@ -1349,7 +1349,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer", - "reference": "dbc23e72e3bc4ed477ae98a3b6246cea665feeea" + "reference": "4f8023e051aca3f35fabc6d49a772c53611c1f6d" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.4", @@ -1408,7 +1408,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-models", - "reference": "128939fff0f369d5915117f5b51130ebaaa57e82" + "reference": "8d6700bb7507a78ec2b7fde27402c748d76cf59c" }, "require": { "php": ">=7.0" @@ -1481,7 +1481,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-status", - "reference": "0eefb41a9bfcb2aaadc157c8d0d0a969f28a2e63" + "reference": "da390cab74418a587571d9d9f45852c51a44e16f" }, "require": { "automattic/jetpack-connection": "^5.1.7-alpha", @@ -1559,7 +1559,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "ed33b82a2597e398a6430e0f9afe57d51a81702a" + "reference": "9b610e2c32fda7acaabf27fe0a14612da871acfa" }, "require": { "automattic/jetpack-status": "^4.0.3", @@ -1617,7 +1617,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "ebf4f6134affb031c5360804b1103b52432dd841" + "reference": "d6aa1d6a10f12c7704aba95fe6965bd081342553" }, "require": { "php": ">=7.0" @@ -1674,7 +1674,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "d14b399b517b4a8442e76cda6dbfc07133e2955c" + "reference": "7f2a6fc4bd3a7af3edb8ca6673cc31773f81c107" }, "require": { "automattic/jetpack-constants": "^2.0.5", @@ -1741,7 +1741,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "bb750ff969df03e8b68cca2f1bbd52b64d40db6d" + "reference": "046794b7d1e76cd1435c49e057476c9082fbda5d" }, "require": { "automattic/jetpack-connection": "^5.1.7-alpha", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 07f1f221..b5313e6f 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -13,7 +13,7 @@ 'automattic/jetpack-a8c-mc-stats' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '9bfeffa369c83de85b44de4019ff4bddecaa9c3e', + 'reference' => '3fd4f0d430ca326a3390bc5662616917812196d1', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-a8c-mc-stats', 'aliases' => array(), @@ -22,7 +22,7 @@ 'automattic/jetpack-admin-ui' => array( 'pretty_version' => '0.4.6', 'version' => '0.4.6.0', - 'reference' => 'ec861108d480c1a63c2fad790ebe05d554102f4e', + 'reference' => '9cd1dce3778cc0f2ceed3a83880a499b1a146268', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-admin-ui', 'aliases' => array(), @@ -31,7 +31,7 @@ 'automattic/jetpack-assets' => array( 'pretty_version' => '2.3.13', 'version' => '2.3.13.0', - 'reference' => 'caa088b613873335e5cb2c4abcd500fb8b6be786', + 'reference' => '58677df10e5ca4f12bfe0f1ea4cdf454f89aad6c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets', 'aliases' => array(), @@ -40,7 +40,7 @@ 'automattic/jetpack-autoloader' => array( 'pretty_version' => '3.1.3', 'version' => '3.1.3.0', - 'reference' => '374d4aac31ea2072d8ccc7637a653dfcb9472eab', + 'reference' => 'ee01f7c73e1b2f1233b548aae58913fc66878a1e', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-autoloader', 'aliases' => array(), @@ -49,7 +49,7 @@ 'automattic/jetpack-boost-core' => array( 'pretty_version' => '0.2.14', 'version' => '0.2.14.0', - 'reference' => '2f9ec4458cc8112d525b5cd1eb0702780076c078', + 'reference' => '1fc5fa63517fbdf8c0dab5a0af2b6190d61c54cf', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-core', 'aliases' => array(), @@ -58,7 +58,7 @@ 'automattic/jetpack-boost-speed-score' => array( 'pretty_version' => '0.3.14', 'version' => '0.3.14.0', - 'reference' => '6710a1373b26de111928c53d23f0c43378e4b648', + 'reference' => '7b56de83a63d68767f759ed41e4b9e0e966b2983', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-speed-score', 'aliases' => array(), @@ -67,7 +67,7 @@ 'automattic/jetpack-composer-plugin' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '6d198fbfce7eda10db1f2be13e058a52c5a63710', + 'reference' => 'b900530823e09b9d659bdbf0bda9af723c83d21d', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-composer-plugin', 'aliases' => array(), @@ -76,7 +76,7 @@ 'automattic/jetpack-config' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '45e37440c0587fbcc3a9a47eb15a1ef3e5b24943', + 'reference' => 'f604093ea42b6734d050f3c19f5d85ce50228d61', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-config', 'aliases' => array(), @@ -85,7 +85,7 @@ 'automattic/jetpack-connection' => array( 'pretty_version' => '5.1.7-alpha.1730843657', 'version' => '5.1.7.0-alpha1730843657', - 'reference' => '417abe59ebd69f8e704a74f4fbf5d71e9a91ab7c', + 'reference' => 'aad807073710a03b0dfabfefa3a080c4093c400f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-connection', 'aliases' => array(), @@ -94,7 +94,7 @@ 'automattic/jetpack-constants' => array( 'pretty_version' => '2.0.5', 'version' => '2.0.5.0', - 'reference' => 'c435f68df0a6dc6b1101b81714d97c826f332ee2', + 'reference' => 'c6a52755d4d758677ca75540eb5b175e551ba77c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-constants', 'aliases' => array(), @@ -103,7 +103,7 @@ 'automattic/jetpack-device-detection' => array( 'pretty_version' => '2.1.6', 'version' => '2.1.6.0', - 'reference' => 'aeede386908d971f086394c58cc0218cbe68dd44', + 'reference' => '9ea39879a3e71f09d6c450d0574b647ea7a4c0f9', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-device-detection', 'aliases' => array(), @@ -112,7 +112,7 @@ 'automattic/jetpack-explat' => array( 'pretty_version' => '0.1.15-alpha.1730921432', 'version' => '0.1.15.0-alpha1730921432', - 'reference' => '9f49ba62f4dcf5f403ac0c0fd5bb863cb1aaa504', + 'reference' => '9198c4a03e1616638c790cd09b1e694e7f07b790', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-explat', 'aliases' => array(), @@ -121,7 +121,7 @@ 'automattic/jetpack-ip' => array( 'pretty_version' => '0.3.1', 'version' => '0.3.1.0', - 'reference' => 'ef4a32b6dced5373af244cb6f244305482f4e3b2', + 'reference' => '563c1e7d0eee00c37edf6b48f59cdbf9c2edeb8f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-ip', 'aliases' => array(), @@ -130,7 +130,7 @@ 'automattic/jetpack-jitm' => array( 'pretty_version' => '3.1.28', 'version' => '3.1.28.0', - 'reference' => 'f7c0236545b1f6e9dacf1dc50689f816971b9316', + 'reference' => '28af6777930d1b65f690862335e352dc192a4b78', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-jitm', 'aliases' => array(), @@ -139,7 +139,7 @@ 'automattic/jetpack-licensing' => array( 'pretty_version' => '2.0.12', 'version' => '2.0.12.0', - 'reference' => '52c688ca83a6436b5efa903243dd7a5c239ca1f8', + 'reference' => '9b499ee3139256dbd9fb753d8ca22adab96655a9', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-licensing', 'aliases' => array(), @@ -148,7 +148,7 @@ 'automattic/jetpack-logo' => array( 'pretty_version' => '2.0.5', 'version' => '2.0.5.0', - 'reference' => '3230e1a1d525ed569e66499ded22b01dcccfc6d3', + 'reference' => '9e5bdbfa173fc5d673496a4663a2e84e9b858d12', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-logo', 'aliases' => array(), @@ -157,7 +157,7 @@ 'automattic/jetpack-my-jetpack' => array( 'pretty_version' => '4.37.0-alpha.1730921432', 'version' => '4.37.0.0-alpha1730921432', - 'reference' => 'c08b9dd01b4325733148dc186b1d7dc89414090f', + 'reference' => '8fe98a2b503d6b8349f5b47f73b7294e589f914a', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-my-jetpack', 'aliases' => array(), @@ -166,7 +166,7 @@ 'automattic/jetpack-password-checker' => array( 'pretty_version' => '0.3.3', 'version' => '0.3.3.0', - 'reference' => '31f1e812150cc5018333b8a8fd75f38b11899eb9', + 'reference' => 'cf51df69e6bc8f55ec742395cd19fa7e0cb558b3', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-password-checker', 'aliases' => array(), @@ -175,7 +175,7 @@ 'automattic/jetpack-plans' => array( 'pretty_version' => '0.4.13', 'version' => '0.4.13.0', - 'reference' => '0ee9c9d9a44877eac850ba094a86ffec49b285f3', + 'reference' => '104c1aebc97dcfc331de9865bfe1ca4747cecaee', 'type' => 'library', 'install_path' => __DIR__ . '/../automattic/jetpack-plans', 'aliases' => array(), @@ -184,7 +184,7 @@ 'automattic/jetpack-plugins-installer' => array( 'pretty_version' => '0.4.4', 'version' => '0.4.4.0', - 'reference' => 'dbc23e72e3bc4ed477ae98a3b6246cea665feeea', + 'reference' => '4f8023e051aca3f35fabc6d49a772c53611c1f6d', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-plugins-installer', 'aliases' => array(), @@ -193,7 +193,7 @@ 'automattic/jetpack-protect-models' => array( 'pretty_version' => '0.3.1', 'version' => '0.3.1.0', - 'reference' => '128939fff0f369d5915117f5b51130ebaaa57e82', + 'reference' => '8d6700bb7507a78ec2b7fde27402c748d76cf59c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-models', 'aliases' => array(), @@ -202,7 +202,7 @@ 'automattic/jetpack-protect-status' => array( 'pretty_version' => '0.2.2', 'version' => '0.2.2.0', - 'reference' => '0eefb41a9bfcb2aaadc157c8d0d0a969f28a2e63', + 'reference' => 'da390cab74418a587571d9d9f45852c51a44e16f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-status', 'aliases' => array(), @@ -211,7 +211,7 @@ 'automattic/jetpack-redirect' => array( 'pretty_version' => '2.0.5', 'version' => '2.0.5.0', - 'reference' => 'ed33b82a2597e398a6430e0f9afe57d51a81702a', + 'reference' => '9b610e2c32fda7acaabf27fe0a14612da871acfa', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-redirect', 'aliases' => array(), @@ -220,7 +220,7 @@ 'automattic/jetpack-roles' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => 'ebf4f6134affb031c5360804b1103b52432dd841', + 'reference' => 'd6aa1d6a10f12c7704aba95fe6965bd081342553', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-roles', 'aliases' => array(), @@ -238,7 +238,7 @@ 'automattic/jetpack-status' => array( 'pretty_version' => '4.0.3', 'version' => '4.0.3.0', - 'reference' => 'd14b399b517b4a8442e76cda6dbfc07133e2955c', + 'reference' => '7f2a6fc4bd3a7af3edb8ca6673cc31773f81c107', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-status', 'aliases' => array(), @@ -247,7 +247,7 @@ 'automattic/jetpack-sync' => array( 'pretty_version' => '3.14.5-alpha.1730811047', 'version' => '3.14.5.0-alpha1730811047', - 'reference' => 'bb750ff969df03e8b68cca2f1bbd52b64d40db6d', + 'reference' => '046794b7d1e76cd1435c49e057476c9082fbda5d', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-sync', 'aliases' => array(),