craft-native 0.0.299 → 0.0.301

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.
package/dist/cli.js CHANGED
@@ -2945,7 +2945,7 @@ function pinCraftNativeDependency(packagePath, craftVersion) {
2945
2945
  `);
2946
2946
  }
2947
2947
  // package.json
2948
- var version = "0.0.299";
2948
+ var version = "0.0.301";
2949
2949
 
2950
2950
  // bin/cli.ts
2951
2951
  var spawnedFrom = process6.env[CRAFT_CLI_SPAWN_MARKER];
package/dist/index.cjs CHANGED
@@ -374,7 +374,7 @@ function craftBinaryNotFoundMessage(triedPath) {
374
374
  `);
375
375
  }
376
376
  // package.json
377
- var version = "0.0.299";
377
+ var version = "0.0.301";
378
378
 
379
379
  // src/sdk-version.ts
380
380
  var SDK_VERSION = version;
package/dist/index.js CHANGED
@@ -117,7 +117,7 @@ function craftBinaryNotFoundMessage(triedPath) {
117
117
  `);
118
118
  }
119
119
  // package.json
120
- var version = "0.0.299";
120
+ var version = "0.0.301";
121
121
 
122
122
  // src/sdk-version.ts
123
123
  var SDK_VERSION = version;
@@ -8077,15 +8077,17 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
8077
8077
  break
8078
8078
  }
8079
8079
  let field = result as! UITextField
8080
- field.placeholder = props["placeholder"] as? String
8081
- if let placeholder = field.placeholder,
8080
+ if let placeholder = props["placeholder"] as? String,
8082
8081
  let placeholderColor = color(props["placeholderTextColor"]) {
8083
8082
  field.attributedPlaceholder = NSAttributedString(
8084
8083
  string: placeholder,
8085
8084
  attributes: [.foregroundColor: placeholderColor]
8086
8085
  )
8087
8086
  } else {
8087
+ // UIKit shares these properties: resetting the attributed
8088
+ // value after the plain one also erases the visible hint.
8088
8089
  field.attributedPlaceholder = nil
8090
+ field.placeholder = props["placeholder"] as? String
8089
8091
  }
8090
8092
  field.tintColor = color(props["selectionColor"])
8091
8093
  let fieldId = ObjectIdentifier(field)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "craft-native",
3
- "version": "0.0.299",
3
+ "version": "0.0.301",
4
4
  "type": "module",
5
5
  "description": "Build desktop apps with web languages - TypeScript SDK for Craft",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",