@sigx/lynx-webview 0.4.7 → 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.
@@ -144,7 +144,11 @@ public class SigxWebViewUI: LynxUI<WKWebView> {
144
144
  return ["user-agent", "setUserAgent", "NSString *"]
145
145
  }
146
146
 
147
- @objc public func setEnableDebug(_ value: Bool, requestReset: Bool) {
147
+ // NSNumber (not Bool): the propSetterLookUp path delivers prop values as
148
+ // objects — a primitive Bool param reads pointer bits instead (see
149
+ // lynx-richtext SigxRichTextUI for the long-form note).
150
+ @objc public func setEnableDebug(_ value: NSNumber?, requestReset: Bool) {
151
+ let value = value?.boolValue ?? false
148
152
  // iOS 16.4+ exposes `isInspectable` for the Safari Web Inspector. On
149
153
  // older iOS, the WebKit-private `developerExtrasEnabled` preference is
150
154
  // gated behind App-Store-reject risk; we only flip the public flag.
@@ -155,7 +159,7 @@ public class SigxWebViewUI: LynxUI<WKWebView> {
155
159
 
156
160
  @objc(__lynx_prop_config__enable_debug)
157
161
  public class func __lynxPropConfigEnableDebug() -> [String] {
158
- return ["enable-debug", "setEnableDebug", "BOOL"]
162
+ return ["enable-debug", "setEnableDebug", "NSNumber *"]
159
163
  }
160
164
 
161
165
  // MARK: - Imperative methods
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigx/lynx-webview",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "Native WebView component for sigx-lynx (WKWebView on iOS, android.webkit.WebView on Android).",
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.7"
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
31
  "vitest": "^4.1.7",
32
- "@sigx/lynx": "^0.4.7"
32
+ "@sigx/lynx": "^0.4.9"
33
33
  },
34
34
  "author": "Andreas Ekdahl",
35
35
  "license": "MIT",