Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightningtv/solid

Package Overview
Dependencies
Maintainers
0
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningtv/solid - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

1

dist/src/primitives/announcer/speech.js

@@ -86,3 +86,2 @@ /* global SpeechSynthesisErrorEvent */

catch (e) {
// eslint-disable-next-line no-undef
if (e instanceof SpeechSynthesisErrorEvent) {

@@ -89,0 +88,0 @@ if (e.error === 'network') {

6

dist/src/render.d.ts

@@ -13,3 +13,3 @@ import { type IntrinsicNodeProps, type IntrinsicTextProps } from '@lightningtv/core';

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) => T, init?: T) => 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 | null) => SolidNode, spread: <T>(node: any, accessor: (() => T) | T, skipChildren?: Boolean) => 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;
/**

@@ -25,3 +25,3 @@ * renders an arbitrary custom or native component and passes the other props

}): JSXElement;
export declare const View: (props: IntrinsicNodeProps) => import("solid-js").JSX.Element;
export declare const Text: (props: IntrinsicTextProps) => import("solid-js").JSX.Element;
export declare const View: (props: IntrinsicNodeProps) => JSXElement;
export declare const Text: (props: IntrinsicTextProps) => JSXElement;

@@ -1,2 +0,1 @@

/* eslint-disable @typescript-eslint/unbound-method */
import { createRenderer } from 'solid-js/universal';

@@ -3,0 +2,0 @@ import { Config, startLightningRenderer, } from '@lightningtv/core';

@@ -1,7 +0,7 @@

import { ElementNode, type TextNode } from '@lightningtv/core';
import { ElementNode, ElementText } from '@lightningtv/core';
import { SolidNode } from './types.js';
declare const _default: {
createElement(name: string): ElementNode;
createTextNode(text: string): TextNode;
replaceText(node: TextNode, value: string): void;
createTextNode(text: string): ElementText;
replaceText(node: ElementText, value: string): void;
setProperty<T>(node: ElementNode, name: string, value?: any): void;

@@ -8,0 +8,0 @@ insertNode(parent: ElementNode, node: SolidNode, anchor: SolidNode): void;

@@ -1,11 +0,8 @@

import { ElementNode, Styles, TextNode } from '@lightningtv/core';
import { ElementNode, Styles, ElementText } from '@lightningtv/core';
import { JSXElement } from 'solid-js';
import { createRenderer } from 'solid-js/universal';
export type SolidRendererOptions = Parameters<typeof createRenderer<SolidNode>>[0];
export type SolidNode = ElementNode | TextNode;
export type SolidNode = ElementNode | ElementText;
export type SolidStyles = Styles;
declare module '@lightningtv/core' {
interface TextNode {
_queueDelete?: boolean;
}
interface IntrinsicNodeProps {

@@ -12,0 +9,0 @@ children?: JSXElement | undefined;

{
"name": "@lightningtv/solid",
"version": "0.0.16",
"version": "0.0.17",
"description": "Lightning Renderer for Solid Universal",

@@ -45,3 +45,3 @@ "type": "module",

"dependencies": {
"@lightningtv/core": "^0.0.12",
"@lightningtv/core": "^0.0.13",
"@solid-primitives/event-listener": "^2.3.3",

@@ -53,12 +53,15 @@ "@solid-primitives/keyboard": "^1.2.8",

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.0",
"@eslint/js": "^9.5.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"globals": "^15.6.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"prettier": "^3.2.5",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"solid-js": "^1.8.17",
"typescript": "^5.4.5"
"typescript": "^5.5.2",
"typescript-eslint": "^7.13.1"
},

@@ -65,0 +68,0 @@ "lint-staged": {

@@ -109,3 +109,2 @@ type CoreSpeechType = string | (() => SpeechType) | SpeechType[];

} catch (e) {
// eslint-disable-next-line no-undef
if (e instanceof SpeechSynthesisErrorEvent) {

@@ -112,0 +111,0 @@ if (e.error === 'network') {

@@ -1,2 +0,1 @@

/* eslint-disable @typescript-eslint/unbound-method */
import { createRenderer } from 'solid-js/universal';

@@ -3,0 +2,0 @@ import {

import { assertTruthy } from '@lightningjs/renderer/utils';
import { ElementNode, NodeType, log, type TextNode } from '@lightningtv/core';
import { ElementNode, NodeType, log, ElementText } from '@lightningtv/core';
import { SolidNode, SolidRendererOptions } from './types.js';

@@ -9,7 +9,7 @@

},
createTextNode(text: string): TextNode {
createTextNode(text: string): ElementText {
// A text node is just a string - not the <text> node
return { type: NodeType.Text, text, parent: undefined };
},
replaceText(node: TextNode, value: string): void {
replaceText(node: ElementText, value: string): void {
log('Replace Text: ', node, value);

@@ -16,0 +16,0 @@ node.text = value;

@@ -1,2 +0,2 @@

import { ElementNode, Styles, TextNode } from '@lightningtv/core';
import { ElementNode, Styles, ElementText } from '@lightningtv/core';
import { JSXElement } from 'solid-js';

@@ -9,3 +9,3 @@ import { createRenderer } from 'solid-js/universal';

export type SolidNode = ElementNode | TextNode;
export type SolidNode = ElementNode | ElementText;

@@ -15,6 +15,2 @@ export type SolidStyles = Styles;

declare module '@lightningtv/core' {
interface TextNode {
_queueDelete?: boolean;
}
interface IntrinsicNodeProps {

@@ -21,0 +17,0 @@ children?: JSXElement | undefined;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc