From 679e1c199f667933f6b9e361f7834bec1ec647c5 Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Mon, 9 Nov 2026 08:58:32 -0500 Subject: [PATCH 1/5] build: update GutenbergKit to 0.20.0-alpha.3 Picks up native media uploads over the gbk-upload: scheme, the REST and XHR relays, recovery of uploads that fail server-side post-processing, and post type templates for new posts. Media processing comes separately. Co-Authored-By: Claude Opus 5.5 --- Modules/Package.resolved | 6 +++--- Modules/Package.swift | 2 +- Package.resolved | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Modules/Package.resolved b/Modules/Package.resolved index 80be5211a6a1..d60bc2756a94 100644 --- a/Modules/Package.resolved +++ b/Modules/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "1f440e7f390e60329b674d1477c3b8406072f6aa304118b0e5fea4ced1eb4eb0", + "originHash" : "7cba0d772ff1594cf02e9a127ab8479f0d0434e3318cd22fde1b56a5cf7bddb6", "pins" : [ { "identity" : "automattic-tracks-ios", @@ -122,8 +122,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/wordpress-mobile/GutenbergKit", "state" : { - "revision" : "efc338866c7d58da87b6064d1c41b97003de5259", - "version" : "0.20.0-alpha.2" + "revision" : "8f158a575adc99a345cf21993c092d52dcb43958", + "version" : "0.20.0-alpha.3" } }, { diff --git a/Modules/Package.swift b/Modules/Package.swift index 2bfa44660cb2..d1191ff5a105 100644 --- a/Modules/Package.swift +++ b/Modules/Package.swift @@ -63,7 +63,7 @@ let package = Package( revision: "b34794c9a3f32312e1593d4a3d120572afa0d010" ), .package(url: "https://github.com/zendesk/support_sdk_ios", from: "8.0.3"), - .package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "0.20.0-alpha.2"), + .package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "0.20.0-alpha.3"), .package( url: "https://github.com/automattic/wordpress-rs", exact: "0.9.1" diff --git a/Package.resolved b/Package.resolved index 406b2c01b346..5654c5aa6832 100644 --- a/Package.resolved +++ b/Package.resolved @@ -122,8 +122,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/wordpress-mobile/GutenbergKit", "state" : { - "revision" : "efc338866c7d58da87b6064d1c41b97003de5259", - "version" : "0.20.0-alpha.2" + "revision" : "8f158a575adc99a345cf21993c092d52dcb43958", + "version" : "0.20.0-alpha.3" } }, { From 281b6dba1ad57a44308284361997bde77a77f657 Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Mon, 9 Nov 2026 09:03:39 -0500 Subject: [PATCH 2/5] docs: add release note for the GutenbergKit update Co-Authored-By: Claude Opus 5.5 --- RELEASE-NOTES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 7ca48d43da79..185e5f49c8e6 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -27,6 +27,7 @@ * [*] Notifications: Fix a rare crash when opening a notification with images, and GIFs keeping their old size after rotating [#26396] * [*] Fix images briefly showing the previous image, or a placeholder, when the right one was already loaded [#26391] * [*] Show video thumbnails the right way up in Support attachments and the Media Library, and keep saved attachments smaller [#26392] +* [*] Experimental editor: Upload large photos and videos without running out of memory, recover uploads that fail while the site resizes them, and start new posts from their post type's template [#26365] 27.4 From 3802f18d7e2cef26abf4345aae2fcae055c3a387 Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Wed, 11 Nov 2026 09:23:18 -0500 Subject: [PATCH 3/5] docs: mention Lockdown Mode support in the release notes GutenbergKit 0.20.0-alpha.3 is the first version to relay the editor's requests natively, which Lockdown Mode requires. Co-Authored-By: Claude Opus 5.5 --- RELEASE-NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 185e5f49c8e6..a25d800d4409 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -27,7 +27,7 @@ * [*] Notifications: Fix a rare crash when opening a notification with images, and GIFs keeping their old size after rotating [#26396] * [*] Fix images briefly showing the previous image, or a placeholder, when the right one was already loaded [#26391] * [*] Show video thumbnails the right way up in Support attachments and the Media Library, and keep saved attachments smaller [#26392] -* [*] Experimental editor: Upload large photos and videos without running out of memory, recover uploads that fail while the site resizes them, and start new posts from their post type's template [#26365] +* [*] Experimental editor: Support Lockdown Mode, upload large photos and videos without running out of memory, and start new posts from their post type's template [#26365] 27.4 From 6547fe792d703883c5595e22db322044a9dcc46f Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Mon, 16 Nov 2026 19:36:46 -0500 Subject: [PATCH 4/5] build: update GutenbergKit to 0.20.0 Takes the stable release of the alpha.3 changes, plus scoped Authorization headers, a caller token on the native schemes, per-item picker imports, and removal of the Lockdown Mode warning sheet. Co-Authored-By: Claude Opus 5.5 --- Modules/Package.resolved | 6 ++-- Modules/Package.swift | 2 +- Package.resolved | 4 +-- .../NewGutenberg/GBKExtensions.swift | 31 ------------------- 4 files changed, 6 insertions(+), 37 deletions(-) diff --git a/Modules/Package.resolved b/Modules/Package.resolved index d60bc2756a94..df03255114bd 100644 --- a/Modules/Package.resolved +++ b/Modules/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "7cba0d772ff1594cf02e9a127ab8479f0d0434e3318cd22fde1b56a5cf7bddb6", + "originHash" : "c9bc55b26e64a6a5ac6cd711ce5473dcc343e3364740d5f78518558bdd14051f", "pins" : [ { "identity" : "automattic-tracks-ios", @@ -122,8 +122,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/wordpress-mobile/GutenbergKit", "state" : { - "revision" : "8f158a575adc99a345cf21993c092d52dcb43958", - "version" : "0.20.0-alpha.3" + "revision" : "ba24def9eff370a08349766cc12296107826b3dd", + "version" : "0.20.0" } }, { diff --git a/Modules/Package.swift b/Modules/Package.swift index d1191ff5a105..4f0c6ede26bb 100644 --- a/Modules/Package.swift +++ b/Modules/Package.swift @@ -63,7 +63,7 @@ let package = Package( revision: "b34794c9a3f32312e1593d4a3d120572afa0d010" ), .package(url: "https://github.com/zendesk/support_sdk_ios", from: "8.0.3"), - .package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "0.20.0-alpha.3"), + .package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "0.20.0"), .package( url: "https://github.com/automattic/wordpress-rs", exact: "0.9.1" diff --git a/Package.resolved b/Package.resolved index 5654c5aa6832..d02dfdb0dc10 100644 --- a/Package.resolved +++ b/Package.resolved @@ -122,8 +122,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/wordpress-mobile/GutenbergKit", "state" : { - "revision" : "8f158a575adc99a345cf21993c092d52dcb43958", - "version" : "0.20.0-alpha.3" + "revision" : "ba24def9eff370a08349766cc12296107826b3dd", + "version" : "0.20.0" } }, { diff --git a/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift b/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift index fee91dd11408..b98cbe279bea 100644 --- a/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift +++ b/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift @@ -154,37 +154,6 @@ private func getLocalizedString(for value: GutenbergKit.EditorLocalizableString) value: "Reload Editor", comment: "Button title to reload the editor after it crashes" ) - case .lockdownModeTitle: - NSLocalizedString( - "editor.lockdownMode.title", - value: "Lockdown Mode Detected", - comment: "Title shown when Lockdown Mode may affect the editor" - ) - case .lockdownModeWarning: - NSLocalizedString( - "editor.lockdownMode.warning", - value: "Lockdown Mode is enabled. The editor may not work correctly.", - comment: "Warning shown when Lockdown Mode may affect the editor" - ) - case .lockdownModeExcludeHint: - NSLocalizedString( - "editor.lockdownMode.excludeHint", - value: - "You can exclude this app from Lockdown Mode in Settings, then re-open the editor to restore full functionality.", - comment: "Instructions for excluding the app from Lockdown Mode" - ) - case .lockdownModeLearnMore: - NSLocalizedString( - "editor.lockdownMode.learnMore", - value: "Learn More", - comment: "Button title to learn more about Lockdown Mode" - ) - case .lockdownModeDismiss: - NSLocalizedString( - "editor.lockdownMode.dismiss", - value: "Dismiss", - comment: "Button title to dismiss the Lockdown Mode warning" - ) // Declining a key lets the editor render its own string, so strings added // by a newer GutenbergKit appear in English rather than breaking this build. // `@unknown` because a plain `default` warns that it will never execute From f8c14750f4caf760bb9361a56cb67fa2339fb06b Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Mon, 16 Nov 2026 19:37:36 -0500 Subject: [PATCH 5/5] feat: translate GutenbergKit's partial media failure messages GutenbergKit 0.20.0 reports when only some picked media fails to load or insert. Without app strings these appear in English. Co-Authored-By: Claude Opus 5.5 --- .../NewGutenberg/GBKExtensions.swift | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift b/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift index b98cbe279bea..54322a5db3aa 100644 --- a/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift +++ b/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift @@ -65,12 +65,38 @@ private func getLocalizedString(for value: GutenbergKit.EditorLocalizableString) value: "Failed to insert media", comment: "Error message when media insertion fails" ) + case .someMediaFailedToInsert: + NSLocalizedString( + "editor.media.someFailedToInsert", + value: "Some media could not be inserted", + comment: "Error message when some, but not all, of the media picked in the block inserter fails to insert" + ) case .failedToLoadSelectedMedia: NSLocalizedString( "editor.media.failedToLoadSelected", value: "The selected media could not be loaded. It may not be fully downloaded to this device.", comment: "Error message when media picked in the block inserter cannot be loaded, e.g. an iCloud photo" ) + case .someSelectedMediaFailedToLoad(let count): + if count == 1 { + NSLocalizedString( + "editor.media.someSelectedFailedToLoad.singular", + value: "1 item could not be loaded and was skipped. It may not be fully downloaded to this device.", + comment: + "Error message when one of several media items picked in the block inserter cannot be loaded, e.g. an iCloud photo" + ) + } else { + String( + format: NSLocalizedString( + "editor.media.someSelectedFailedToLoad.plural", + value: + "%1$d items could not be loaded and were skipped. They may not be fully downloaded to this device.", + comment: + "Error message when some of the media items picked in the block inserter cannot be loaded, e.g. iCloud photos. %1$d is a placeholder for the number of items." + ), + count + ) + } case .failedToProcessCapturedMedia: NSLocalizedString( "editor.media.failedToProcessCaptured",