@humanforest/frames 0.3.5 → 0.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanforest/frames",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",
package/src/FFitFrame.vue CHANGED
@@ -40,8 +40,8 @@ const availW = ref(0);
40
40
  // component's mounted hook runs, and a missed attach leaves the wrapper unsized with no visible error.
41
41
  // No loop between the two: the slot's unscaled height is fixed by its own content, and the wrapper's
42
42
  // width is its block width — neither depends on the scale derived from them.
43
- const innerRO = new ResizeObserver(([e]) => { naturalH.value = e.contentRect.height; });
44
- const wrapRO = new ResizeObserver(([e]) => { availW.value = e.contentRect.width; });
43
+ const innerRO = new ResizeObserver(([e]) => { naturalH.value = e!.contentRect.height; });
44
+ const wrapRO = new ResizeObserver(([e]) => { availW.value = e!.contentRect.width; });
45
45
  watch(inner, (el) => { innerRO.disconnect(); if (el) innerRO.observe(el); }, { immediate: true, flush: 'post' });
46
46
  watch(wrapper, (el) => { wrapRO.disconnect(); if (el) wrapRO.observe(el); }, { immediate: true, flush: 'post' });
47
47
  onBeforeUnmount(() => { innerRO.disconnect(); wrapRO.disconnect(); });
package/src/devices.ts CHANGED
@@ -333,5 +333,5 @@ export const DEFAULT_DEVICE = 'iphone-17-pro-max';
333
333
  * against the one it got.
334
334
  */
335
335
  export function findDevice(id: string): DeviceModel {
336
- return DEVICES.find((d) => d.id === id) ?? DEVICES.find((d) => d.id === DEFAULT_DEVICE) ?? DEVICES[0];
336
+ return DEVICES.find((d) => d.id === id) ?? DEVICES.find((d) => d.id === DEFAULT_DEVICE) ?? DEVICES[0]!;
337
337
  }