@lightningtv/solid
Advanced tools
Comparing version
import './jsx-runtime.js'; | ||
export { View } from './View.jsx'; | ||
export { Text } from './Text.jsx'; | ||
export * from '@lightningtv/core'; | ||
@@ -5,0 +3,0 @@ export * from './activeElement.js'; |
import './jsx-runtime.js'; | ||
export { View } from './View.jsx'; | ||
export { Text } from './Text.jsx'; | ||
export * from '@lightningtv/core'; | ||
@@ -5,0 +3,0 @@ export * from './activeElement.js'; |
@@ -0,1 +1,2 @@ | ||
import { IntrinsicNodeProps, IntrinsicTextProps } from '@lightningtv/core'; | ||
import { type SolidNode } from './solidOpts.js'; | ||
@@ -23,1 +24,3 @@ import { type JSXElement, type ValidComponent } from 'solid-js'; | ||
}): JSXElement; | ||
export declare const View: (props: IntrinsicNodeProps) => import("solid-js").JSX.Element; | ||
export declare const Text: (props: IntrinsicTextProps) => import("solid-js").JSX.Element; |
/* eslint-disable @typescript-eslint/unbound-method */ | ||
import { createRenderer } from 'solid-js/universal'; | ||
import { Config, startLightningRenderer } from '@lightningtv/core'; | ||
import { Config, startLightningRenderer, } from '@lightningtv/core'; | ||
import nodeOpts from './solidOpts.js'; | ||
@@ -57,2 +57,13 @@ import { splitProps, createMemo, untrack, } from 'solid-js'; | ||
} | ||
// Dont use JSX as it creates circular dependencies and causes trouble with the playground. | ||
export const View = (props) => { | ||
const _el$ = createElement('node'); | ||
spread(_el$, props, false); | ||
return _el$; | ||
}; | ||
export const Text = (props) => { | ||
const _el$ = createElement('text'); | ||
spread(_el$, props, false); | ||
return _el$; | ||
}; | ||
//# sourceMappingURL=render.js.map |
{ | ||
"name": "@lightningtv/solid", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Lightning Renderer for Solid Universal", | ||
@@ -52,3 +52,2 @@ "type": "module", | ||
"devDependencies": { | ||
"@rollup/plugin-replace": "^5.0.5", | ||
"@typescript-eslint/eslint-plugin": "^6.21.0", | ||
@@ -62,4 +61,2 @@ "@typescript-eslint/parser": "^6.21.0", | ||
"prettier": "^3.2.5", | ||
"rollup": "^4.18.0", | ||
"rollup-preset-solid": "^2.0.1", | ||
"solid-js": "^1.8.17", | ||
@@ -66,0 +63,0 @@ "typescript": "^5.4.5" |
import './jsx-runtime.js'; | ||
export { View } from './View.jsx'; | ||
export { Text } from './Text.jsx'; | ||
export * from '@lightningtv/core'; | ||
@@ -5,0 +3,0 @@ export * from './activeElement.js'; |
/* eslint-disable @typescript-eslint/unbound-method */ | ||
import { createRenderer } from 'solid-js/universal'; | ||
import { Config, startLightningRenderer } from '@lightningtv/core'; | ||
import { | ||
Config, | ||
IntrinsicNodeProps, | ||
IntrinsicTextProps, | ||
startLightningRenderer, | ||
} from '@lightningtv/core'; | ||
import nodeOpts, { type SolidNode } from './solidOpts.js'; | ||
@@ -100,1 +105,14 @@ import { | ||
} | ||
// Dont use JSX as it creates circular dependencies and causes trouble with the playground. | ||
export const View = (props: IntrinsicNodeProps) => { | ||
const _el$ = createElement('node'); | ||
spread(_el$, props, false); | ||
return _el$ as unknown as JSXElement; | ||
}; | ||
export const Text = (props: IntrinsicTextProps) => { | ||
const _el$ = createElement('text'); | ||
spread(_el$, props, false); | ||
return _el$ as unknown as JSXElement; | ||
}; |
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
225284
40.82%10
-23.08%88
12.82%2727
34%