@lightningtv/solid
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -6,2 +6,3 @@ import './jsx-runtime.js'; | ||
export * from './render.js'; | ||
export type { SolidNode } from './solidOpts.js'; | ||
export { For, Show, Suspense, SuspenseList, Switch, Match, Index, ErrorBoundary, } from 'solid-js'; |
export * from './useFocusManager.js'; | ||
export * from './withPadding.js'; | ||
export * from './announcer/index.js'; | ||
export * from './createInfiniteItems.js'; | ||
export * from './createSpriteMap.js'; | ||
export * from './useMouse.js'; | ||
export * from './portal.jsx'; |
export * from './useFocusManager.js'; | ||
export * from './withPadding.js'; | ||
export * from './announcer/index.js'; | ||
export * from './createInfiniteItems.js'; | ||
export * from './createSpriteMap.js'; | ||
export * from './useMouse.js'; | ||
export * from './portal.jsx'; | ||
//# sourceMappingURL=index.js.map |
import { IntrinsicNodeProps, IntrinsicTextProps } from '@lightningtv/core'; | ||
import { type SolidNode } from './solidOpts.js'; | ||
import { type JSXElement, type ValidComponent } from 'solid-js'; | ||
@@ -13,3 +12,3 @@ import type { RendererMain, RendererMainSettings } from '@lightningjs/renderer'; | ||
export declare const renderSync: (code: () => JSXElement) => () => void; | ||
export declare const effect: <T>(fn: (prev?: T | undefined) => T, init?: T | undefined) => void, memo: <T>(fn: () => T, equal: boolean) => () => T, createComponent: <T>(Comp: (props: T) => SolidNode, props: T) => SolidNode, createElement: (tag: string) => SolidNode, createTextNode: (value: string) => SolidNode, insertNode: (parent: SolidNode, node: SolidNode, anchor?: SolidNode | undefined) => void, insert: <T>(parent: any, accessor: T | (() => T), marker?: any) => SolidNode, spread: <T>(node: any, accessor: T | (() => T), skipChildren?: Boolean | undefined) => void, setProp: <T>(node: SolidNode, name: string, value: T, prev?: T | undefined) => T, mergeProps: (...sources: unknown[]) => unknown, use: <A, T>(fn: (element: SolidNode, arg: A) => T, element: SolidNode, arg: A) => T; | ||
export declare const effect: <T>(fn: (prev?: T | undefined) => T, init?: T | undefined) => void, memo: <T>(fn: () => T, equal: boolean) => () => T, createComponent: <T>(Comp: (props: T) => import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, props: T) => import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, createElement: (tag: string) => import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, createTextNode: (value: string) => import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, insertNode: (parent: import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, node: import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, anchor?: import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode | undefined) => void, insert: <T>(parent: any, accessor: T | (() => T), marker?: any) => import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, spread: <T>(node: any, accessor: T | (() => T), skipChildren?: Boolean | undefined) => void, setProp: <T>(node: import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, name: string, value: T, prev?: T | undefined) => T, mergeProps: (...sources: unknown[]) => unknown, use: <A, T>(fn: (element: import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, arg: A) => T, element: import("@lightningtv/core").ElementNode | import("@lightningtv/core").TextNode, arg: A) => T; | ||
/** | ||
@@ -16,0 +15,0 @@ * renders an arbitrary custom or native component and passes the other props |
{ | ||
"name": "@lightningtv/solid", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Lightning Renderer for Solid Universal", | ||
@@ -45,3 +45,3 @@ "type": "module", | ||
"dependencies": { | ||
"@lightningtv/core": "^0.0.8", | ||
"@lightningtv/core": "^0.0.10", | ||
"@solid-primitives/event-listener": "^2.3.3", | ||
@@ -72,3 +72,3 @@ "@solid-primitives/keyboard": "^1.2.8", | ||
"peerDependencies": { | ||
"@lightningjs/renderer": "^0.9.1", | ||
"@lightningjs/renderer": "^0.9.2", | ||
"solid-js": "*" | ||
@@ -75,0 +75,0 @@ }, |
<p> | ||
<img src="https://assets.solidjs.com/banner?project=Library&type=solid-lightning" alt="SolidJS Lightning" /> | ||
<img src="https://assets.solidjs.com/banner?project=Library&type=@lightningtv/solid" alt="SolidJS Lightning" /> | ||
</p> | ||
# solid-lightning | ||
# SolidJS Lightning | ||
Solid-Lightning is a UI framework for [Lightning Renderer](https://lightningjs.io/) built with [SolidJS](https://www.solidjs.com/) Universal Renderer. It allows you to declaratively construct lightning nodes with reactive primitives, just as you would construct a DOM tree in SolidJS. Also check out [Solid Lightning Primitives](https://github.com/lightning-js/solid-primitives) for additional primitives to speed up your development. | ||
Is a UI framework for [Lightning 3 Renderer](https://lightningjs.io/) built with [SolidJS](https://www.solidjs.com/) Universal Renderer. It allows you to declaratively construct lightning nodes with reactive primitives, just as you would construct a DOM tree in SolidJS. | ||
## Documentation | ||
[SolidJS Lightning Docs](https://lightning-js.github.io/solid/) | ||
[SolidJS Lightning Docs](https://lightning-tv.github.io/solid/) | ||
## Demo App | ||
[Solid TMDB Demo App](https://github.com/lightning-js/solid-demo-app) | ||
[Solid TMDB Demo App](https://github.com/lightning-tv/solid-demo-app) | ||
@@ -26,3 +26,3 @@ ## Playground | ||
```sh | ||
> npx degit lightning-js/solid-starter-template my-app | ||
> npx degit lightning-tv/solid-starter-template my-app | ||
> cd my-app | ||
@@ -40,3 +40,3 @@ > npm i # or yarn or pnpm | ||
```jsx | ||
import { render, Text } from '@lightningjs/solid'; | ||
import { render, Text } from '@lightningtv/solid'; | ||
@@ -48,3 +48,3 @@ render(() => <Text>Hello World</Text>); | ||
## Migration Guide | ||
## Migration Guide from previous repo: | ||
@@ -51,0 +51,0 @@ If you're migrating from https://github.com/lightning-js/solid |
@@ -6,2 +6,3 @@ import './jsx-runtime.js'; | ||
export * from './render.js'; | ||
export type { SolidNode } from './solidOpts.js'; | ||
export { | ||
@@ -8,0 +9,0 @@ For, |
export * from './useFocusManager.js'; | ||
export * from './withPadding.js'; | ||
export * from './announcer/index.js'; | ||
export * from './createInfiniteItems.js'; | ||
export * from './createSpriteMap.js'; | ||
export * from './useMouse.js'; | ||
export * from './portal.jsx'; |
@@ -9,3 +9,3 @@ /* eslint-disable @typescript-eslint/unbound-method */ | ||
} from '@lightningtv/core'; | ||
import nodeOpts, { type SolidNode } from './solidOpts.js'; | ||
import nodeOpts from './solidOpts.js'; | ||
import { | ||
@@ -20,3 +20,3 @@ splitProps, | ||
const solidRenderer = createRenderer<SolidNode>(nodeOpts); | ||
const solidRenderer = createRenderer(nodeOpts); | ||
@@ -23,0 +23,0 @@ let renderer: RendererMain; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
157604
68
1957
+ Added@lightningtv/core@0.0.10(transitive)
- Removed@lightningtv/core@0.0.8(transitive)
Updated@lightningtv/core@^0.0.10