@threlte/flex 2.0.0-next.3 → 2.0.0-next.4

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.
@@ -9,7 +9,7 @@ let { order, class: _class = '', onreflow, children, ...props } = $props();
9
9
  * Create the context for `useDimensions`
10
10
  */
11
11
  const dimensionsContext = createUseDimensionsContext();
12
- const { scaleFactor, onEvent, addNode, removeNode, updateNodeProps, mainAxis, crossAxis, depthAxis, classParser, reflow, } = useFlex();
12
+ const { scaleFactor, onEvent, addNode, removeNode, updateNodeProps, mainAxis, crossAxis, depthAxis, classParser, reflow } = useFlex();
13
13
  const group = new Group();
14
14
  group.userData.isNode = true;
15
15
  const contentGroup = new Group();
@@ -13,7 +13,7 @@ initialize();
13
13
  {yoga}
14
14
  {...props}
15
15
  >
16
- {#snippet children({ reflow, width, height})}
16
+ {#snippet children({ reflow, width, height })}
17
17
  {@render innerChildren?.({ reflow, width, height })}
18
18
  {/snippet}
19
19
  </InnerFlex>
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@threlte/flex",
3
- "version": "2.0.0-next.3",
3
+ "version": "2.0.0-next.4",
4
4
  "author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
5
5
  "license": "MIT",
6
+ "description": "Components to easily use the flexbox spec with Threlte",
6
7
  "devDependencies": {
7
8
  "@sveltejs/adapter-auto": "^3.2.0",
8
9
  "@sveltejs/kit": "^2.5.5",
9
10
  "@sveltejs/package": "^2.3.1",
10
11
  "@sveltejs/vite-plugin-svelte": "^3.1.0",
11
12
  "@types/node": "^20.12.7",
12
- "@types/three": "^0.163.0",
13
+ "@types/three": "^0.165.0",
13
14
  "@typescript-eslint/eslint-plugin": "^7.6.0",
14
15
  "@typescript-eslint/parser": "^7.6.0",
15
16
  "@yushijinhun/three-minifier-rollup": "^0.4.0",
@@ -20,16 +21,16 @@
20
21
  "prettier-plugin-svelte": "^3.2.2",
21
22
  "publint": "^0.2.7",
22
23
  "rimraf": "^5.0.5",
23
- "svelte": "^5.0.0-next.107",
24
+ "svelte": "^5.0.0-next.181",
24
25
  "svelte-check": "^3.6.9",
25
26
  "svelte-preprocess": "^5.1.3",
26
27
  "svelte2tsx": "^0.7.6",
27
- "three": "^0.163.0",
28
+ "three": "^0.165.0",
28
29
  "tslib": "^2.6.2",
29
30
  "typescript": "^5.4.5",
30
31
  "vite": "^5.2.8",
31
- "@threlte/core": "8.0.0-next.6",
32
- "@threlte/extras": "9.0.0-next.10"
32
+ "@threlte/core": "8.0.0-next.10",
33
+ "@threlte/extras": "9.0.0-next.15"
33
34
  },
34
35
  "dependencies": {
35
36
  "mitt": "^3.0.1",
@@ -40,6 +41,23 @@
40
41
  "three": ">=0.155"
41
42
  },
42
43
  "type": "module",
44
+ "keywords": [
45
+ "flex",
46
+ "threlte",
47
+ "svelte",
48
+ "three",
49
+ "three.js",
50
+ "3d"
51
+ ],
52
+ "homepage": "https://threlte.xyz",
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "https://github.com/threlte/threlte.git",
56
+ "directory": "packages/flex"
57
+ },
58
+ "bugs": {
59
+ "url": "https://github.com/threlte/threlte/issues"
60
+ },
43
61
  "exports": {
44
62
  ".": {
45
63
  "types": "./dist/index.d.ts",
@@ -56,8 +74,8 @@
56
74
  "package": "svelte-kit sync && svelte-package && node ./scripts/cleanupPackage.js && publint",
57
75
  "check": "svelte-check --tsconfig ./tsconfig.json",
58
76
  "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
59
- "lint": "prettier --check --plugin-search-dir=. . && eslint .",
60
- "format": "prettier --write --plugin-search-dir=. .",
77
+ "lint": "prettier --check .",
78
+ "format": "prettier --write .",
61
79
  "cleanup": "rimraf node_modules .svelte-kit dist"
62
80
  }
63
81
  }