craft-native 0.0.195 → 0.0.196

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
@@ -3424,7 +3424,7 @@ function pinCraftNativeDependency(packagePath, craftVersion) {
3424
3424
  `);
3425
3425
  }
3426
3426
  // package.json
3427
- var version = "0.0.195";
3427
+ var version = "0.0.196";
3428
3428
 
3429
3429
  // bin/cli.ts
3430
3430
  var spawnedFrom = process6.env[CRAFT_CLI_SPAWN_MARKER];
package/dist/index.cjs CHANGED
@@ -309,7 +309,7 @@ function craftBinaryNotFoundMessage(triedPath) {
309
309
  `);
310
310
  }
311
311
  // package.json
312
- var version = "0.0.195";
312
+ var version = "0.0.196";
313
313
 
314
314
  // src/sdk-version.ts
315
315
  var SDK_VERSION = version;
package/dist/index.js CHANGED
@@ -57,7 +57,7 @@ function craftBinaryNotFoundMessage(triedPath) {
57
57
  `);
58
58
  }
59
59
  // package.json
60
- var version = "0.0.195";
60
+ var version = "0.0.196";
61
61
 
62
62
  // src/sdk-version.ts
63
63
  var SDK_VERSION = version;
@@ -214,6 +214,19 @@ final class CraftNativeFlatList: UICollectionView, UICollectionViewDelegateFlowL
214
214
  if flowLayout.estimatedItemSize != estimate, bounds.width > 0 {
215
215
  flowLayout.estimatedItemSize = estimate
216
216
  }
217
+ // Cells can outlive a change to the list's width (including its first
218
+ // constrained parent layout). Self-sizing must use the current extent,
219
+ // or UIKit repeatedly receives a preferred width wider than the list.
220
+ var changedExtent = false
221
+ for case let cell as Cell in visibleCells {
222
+ guard let identity = cell.representedIdentity, let item = itemsByIdentity[identity] else { continue }
223
+ let extent = itemExtent(isChrome: item.isChrome)
224
+ if cell.fittingExtent != extent {
225
+ cell.fittingExtent = extent
226
+ changedExtent = true
227
+ }
228
+ }
229
+ if changedExtent { flowLayout.invalidateLayout() }
217
230
  super.layoutSubviews()
218
231
  craftApplyCornerRadius()
219
232
  }
@@ -5534,6 +5534,7 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
5534
5534
  scale = 1
5535
5535
  }
5536
5536
  indicator.indicatorScale = scale
5537
+ applyTransform(style["transform"], to: indicator)
5537
5538
  indicator.color = color(props["color"]) ?? .tintColor
5538
5539
  indicator.hidesWhenStopped = props["hidesWhenStopped"] as? Bool ?? true
5539
5540
  if props["animating"] as? Bool == false {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "craft-native",
3
- "version": "0.0.195",
3
+ "version": "0.0.196",
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>",