@swiftbrowser/react 0.21.0 → 0.23.0

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.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -239,7 +239,11 @@ Italic, Underline) comes back into the text. A `selection` binding, on a
239
239
  plain or an attributed editor, gets the viewer's selection in UTF-16
240
240
  offsets, so a Bold button can set `AttributedText.settingAttributes(text,
241
241
  start, end, { bold: true })` on it; a selection the app sets moves the
242
- caret (when the app focuses the editor, if it is not focused).
242
+ caret (when the app focuses the editor, if it is not focused). A text the
243
+ app sets that is not the echo of what the viewer typed (another person's
244
+ edit) keeps the caret in place: the app's `selection` is applied even when
245
+ its numbers did not change, and without one the caret is moved past the
246
+ change.
243
247
  `.scrollDisabled` makes an editor as tall as its lines, for one in a
244
248
  scrolling page:
245
249
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swiftbrowser/react",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "description": "SwiftUI's components for React: a react-reconciler host that emits SwiftBrowser render ops into the @swiftbrowser/web renderer, so a pure React/TypeScript web app gets the same iOS UI as a SwiftUI app in the browser.",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "test:unit": "vitest run"
30
30
  },
31
31
  "dependencies": {
32
- "@swiftbrowser/web": "0.21.0"
32
+ "@swiftbrowser/web": "0.23.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^19.0.0",