diff --git a/Modules/Package.resolved b/Modules/Package.resolved index bd49b9a697a9..c9fb1057e0bc 100644 --- a/Modules/Package.resolved +++ b/Modules/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "36264143daf20409e1d7dc13f79e01472dc05d10474d4c5b7788a9de8725d725", + "originHash" : "5efd93179700aebb0432c3e7d55d5ef659ed16193e7d02bcc2fe355e937fba69", "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" : "ba24def9eff370a08349766cc12296107826b3dd", + "version" : "0.20.0" } }, { diff --git a/Modules/Package.swift b/Modules/Package.swift index b6f4947f5f15..a5ebea25c52f 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"), .package( url: "https://github.com/automattic/wordpress-rs", exact: "0.11.1" diff --git a/Package.resolved b/Package.resolved index cdaa5f607a85..d8e0719e1bc1 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" : "ba24def9eff370a08349766cc12296107826b3dd", + "version" : "0.20.0" } }, { diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index e3bbf187fe00..6c991b109d4b 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -32,6 +32,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: Support Lockdown Mode, upload large photos and videos without running out of memory, and start new posts from their post type's template [#26365] * [*] Reader: Show icons for more sites, and load a site's icon again after a failed attempt [#26393] diff --git a/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift b/WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift index fee91dd11408..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", @@ -154,37 +180,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