Skip to content

Commit

Permalink
Merge branch 'rnmobile/1.47.2' into rnmobile/release_1.48.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/react-native-aztec/package.json
#	packages/react-native-bridge/package.json
#	packages/react-native-editor/CHANGELOG.md
#	packages/react-native-editor/ios/Podfile.lock
#	packages/react-native-editor/package.json
  • Loading branch information
fluiddot committed Mar 11, 2021
2 parents 58db4a8 + 022c995 commit 1c823f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-native-bridge/ios/Gutenberg.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ public class Gutenberg: NSObject {
sendEvent(.replaceBlock, body: ["html": block.content, "clientId": block.id])
}

public func replace(blockID: String, content: String) {
sendEvent(.replaceBlock, body: ["html": content, "clientId": blockID])
}

public func updateCapabilities() {
let capabilites = dataSource.gutenbergCapabilities()
sendEvent(.updateCapabilities, body: capabilites.toJSPayload())
Expand Down
3 changes: 3 additions & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ For each user feature we should also add a importance categorization label to i
## 1.48.0
* [**] Buttons block: added width setting. [#28543]

## 1.47.2
* [**] Adds a `replaceBlock` method to iOS bridge delegate with a string to match the clientID and the contents to replace with. [#29734]

## 1.47.0
* [**] Add support for setting Cover block focal point. [#25810]

Expand Down

0 comments on commit 1c823f6

Please sign in to comment.