-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update cli to fix it from deleting JSX types in dist/, delete unused …
…src/lib/ files, re-export classy-solid from lume for convenience
- Loading branch information
Showing
68 changed files
with
643 additions
and
1,027 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// TODO port to TypeScript | ||
declare module 'three-projected-material' { | ||
import type {Camera, MeshPhysicalMaterial, MeshPhysicalMaterialParameters, Texture, Vector2} from 'three' | ||
|
||
type ProjectedMaterialparameters = { | ||
camera?: Camera | ||
texture?: Texture | ||
textureScale?: number | ||
textureOffset?: Vector2 | ||
cover?: boolean | ||
} & MeshPhysicalMaterialParameters | ||
|
||
export default class ProjectedMaterial extends MeshPhysicalMaterial { | ||
constructor(options: ProjectedMaterialparameters) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {CameraRig, CameraRigAttributes} from './CameraRig' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'lume-camera-rig': ReactElementAttributes<CameraRig, CameraRigAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {PerspectiveCamera, PerspectiveCameraAttributes} from './PerspectiveCamera' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'lume-perspective-camera': ReactElementAttributes<PerspectiveCamera, PerspectiveCameraAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import type {} from './CameraRig.react-jsx' | ||
import type {} from './PerspectiveCamera.react-jsx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type {ClipPlane, ClipPlaneAttributes} from './ClipPlane' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'lume-clip-plane': ReactElementAttributes<ClipPlane, ClipPlaneAttributes> | ||
} | ||
} | ||
} | ||
|
||
// TODO move this to the elemet-behaviors package. | ||
declare global { | ||
namespace React { | ||
// Attributes for all elements. | ||
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> { | ||
has?: string | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type {Element3D, Element3DAttributes} from './Element3D' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'lume-element3d': ReactElementAttributes<Element3D, Element3DAttributes> | ||
} | ||
} | ||
} | ||
|
||
// TODO move this to the elemet-behaviors package. | ||
declare global { | ||
namespace React { | ||
// Attributes for all elements. | ||
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> { | ||
has?: string | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type {Node, NodeAttributes} from './Node' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
/** @deprecated Use `<lume-element3d>` instead. */ | ||
'lume-node': ReactElementAttributes<Node, NodeAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {Scene, SceneAttributes} from './Scene' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'lume-scene': ReactElementAttributes<Scene, SceneAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import type {} from './ClipPlane.react-jsx' | ||
import type {} from './Element3D.react-jsx' | ||
import type {} from './Node.react-jsx' | ||
import type {} from './Scene.react-jsx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {FlickeringOrb, FlickeringOrbAttributes} from './FlickeringOrb' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'flickering-orb': ReactElementAttributes<FlickeringOrb, FlickeringOrbAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {FlickeringOrbs, FlickeringOrbsAttributes} from './FlickeringOrbs' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'flickering-orbs': ReactElementAttributes<FlickeringOrbs, FlickeringOrbsAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type React from 'react' | ||
import type {LoadingIcon} from './LoadingIcon' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
// LoadingIcon has no props currently, so this is how to provide the default set in React. | ||
'loading-icon': React.DetailedHTMLProps<React.HTMLAttributes<LoadingIcon>, LoadingIcon> | ||
// Otherwise use the following if we add props: | ||
// 'loading-icon': ReactElementAttributes<LoadingIcon, LoadingIconAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type {} from './FlickeringOrb.react-jsx' | ||
import type {} from './FlickeringOrbs.react-jsx' | ||
import type {} from './LoadingIcon.react-jsx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type {} from './cameras/index.react-jsx' | ||
import type {} from './core/index.react-jsx' | ||
import type {} from './examples/index.react-jsx' | ||
import type {} from './layouts/index.react-jsx' | ||
import type {} from './lights/index.react-jsx' | ||
import type {} from './meshes/index.react-jsx' | ||
import type {} from './models/index.react-jsx' | ||
import type {} from './textures/index.react-jsx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type {AutoLayoutNode, AutoLayoutNodeAttributes} from './AutoLayoutNode' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
/** | ||
* @deprecated `AutoLayoutNode` and `<lume-autolayout-node>` have been renamed | ||
* to [`Autolayout`](./Autolayout) and `<lume-autolayout>`. | ||
*/ | ||
'lume-autolayout-node': ReactElementAttributes<AutoLayoutNode, AutoLayoutNodeAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {Autolayout, AutolayoutAttributes} from './Autolayout' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'lume-autolayout': ReactElementAttributes<Autolayout, AutolayoutAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {CubeLayout, CubeLayoutAttributes} from './CubeLayout' | ||
import type {ReactElementAttributes} from '@lume/element/src/react' | ||
|
||
// React users can import this to have appropriate types for the element in their JSX markup. | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'lume-cube-layout': ReactElementAttributes<CubeLayout, CubeLayoutAttributes> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type {} from './AutoLayoutNode.react-jsx' | ||
import type {} from './Autolayout.react-jsx' | ||
import type {} from './CubeLayout.react-jsx' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.