@threlte/flex 2.1.0 → 2.1.1

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.
@@ -1,5 +1,5 @@
1
1
  import type { CurrentWritable } from '@threlte/core';
2
- import type { Emitter } from 'mitt';
2
+ import { type Emitter } from 'mitt';
3
3
  import type { Group } from 'three';
4
4
  import type { Node } from 'yoga-layout';
5
5
  import type Yoga from 'yoga-layout';
@@ -1,7 +1,4 @@
1
- // We need to cast here because TypeScript with "moduleResolution": "NodeNext"
2
- // fails to resolve the default export otherwise.
3
- import mittModule from 'mitt';
4
- const mitt = mittModule;
1
+ import mitt, {} from 'mitt';
5
2
  import { getContext, onDestroy, setContext } from 'svelte';
6
3
  export const flexContextName = '__threlte-flex';
7
4
  export const createFlexContext = (data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threlte/flex",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
5
5
  "license": "MIT",
6
6
  "description": "Components to easily use the flexbox spec with Threlte",
@@ -28,8 +28,8 @@
28
28
  "typescript": "5.9.2",
29
29
  "typescript-eslint": "^8.32.0",
30
30
  "vite": "^7.1.4",
31
- "@threlte/core": "8.3.0",
32
- "@threlte/extras": "9.7.0"
31
+ "@threlte/core": "8.3.1",
32
+ "@threlte/extras": "9.7.1"
33
33
  },
34
34
  "dependencies": {
35
35
  "mitt": "^3.0.1",