@sigx/lynx-richtext 0.4.8 → 0.4.9

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.
@@ -120,7 +120,11 @@ class SigxRichTextUI(context: LynxContext) : LynxUI<RichEditText>(context) {
120
120
  mView.hint = value ?: ""
121
121
  }
122
122
 
123
- @LynxProp(name = "editable")
123
+ /** Editable unless explicitly disabled — `defaultBoolean = true` makes a
124
+ * null/absent value mean editable, mirroring iOS (`value?.boolValue ?? true`).
125
+ * Without it, `editable={undefined}` from JS coerces to false and the
126
+ * EditText becomes permanently unfocusable (#182). */
127
+ @LynxProp(name = "editable", defaultBoolean = true)
124
128
  fun setEditable(value: Boolean) {
125
129
  mView.isEnabled = value
126
130
  mView.isFocusable = value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigx/lynx-richtext",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Native rich-text input element for Lynx (<sigx-richtext>): attributed editing (UITextView / EditText) with a span-based document model, selection events, and formatting commands. Powers @sigx/lynx-markdown's MarkdownEditor.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,13 +23,13 @@
23
23
  "LICENSE"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@sigx/lynx": "^0.4.8"
26
+ "@sigx/lynx": "^0.4.9"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@typescript/native-preview": "7.0.0-dev.20260521.1",
30
30
  "typescript": "^6.0.3",
31
- "@sigx/lynx": "^0.4.8",
32
- "@sigx/lynx-testing": "^0.4.8"
31
+ "@sigx/lynx": "^0.4.9",
32
+ "@sigx/lynx-testing": "^0.4.9"
33
33
  },
34
34
  "author": "Andreas Ekdahl",
35
35
  "license": "MIT",