Skip to content

Commit

Permalink
Unblock Complex Scenes
Browse files Browse the repository at this point in the history
adeira-source-id: 086833770a808423206df9da8a27dc534aee5c6c
  • Loading branch information
itsdouges authored and triplex-bot committed Jan 8, 2024
1 parent 64440d4 commit 204cd07
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/great-snakes-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@triplex/server": patch
---

Prevent throwing an exception if a component resolves to `any` when resolving
its path.
8 changes: 8 additions & 0 deletions .changeset/mean-houses-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@triplex/client": minor
"@triplex/editor": minor
"@triplex/server": minor
"@triplex/electron": minor
---

Add support for SharedBufferArray.
7 changes: 7 additions & 0 deletions .changeset/neat-jobs-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@triplex/client": minor
"@triplex/server": minor
"@triplex/electron": minor
---

Add `define` variables support.
7 changes: 7 additions & 0 deletions apps/docs/public/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
},
"type": "array"
},
"define": {
"additionalProperties": {
"type": "string"
},
"description": "Variables that are replaced when running your scenes. Works exactly the same as the `define` option in Vite or the `DefinePlugin` in Webpack.",
"type": "object"
},
"files": {
"description": "An array of relative path globs to select what files can be opened by Triplex. You can define multiple roots. Found files will be available to open in the `File` > `Open` menu.",
"items": {
Expand Down
20 changes: 20 additions & 0 deletions examples/test-fixture/src/uprivate.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright (c) Michael Dougall. All rights reserved.
*
* This source code is licensed under the GPL-3.0 license found in the LICENSE
* file in the root directory of this source tree.
*/
export default function Yo() {
return <Home seed="foo" />;
}

export const Home: React.FC<{ seed: string }> = () => {
return (
<>
<mesh position={[1.6, 0, -1.7]}>
<boxGeometry />
<meshStandardMaterial />
</mesh>
</>
);
};

0 comments on commit 204cd07

Please sign in to comment.