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

@lightningjs/solid

Package Overview
Dependencies
Maintainers
7
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/solid - npm Package Compare versions

Comparing version 0.11.5 to 0.12.0

17

dist/esm/index.js

@@ -23,3 +23,3 @@ import { createSignal, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack, createEffect } from 'solid-js';

const [activeElement, setActiveElement] = createSignal(null);
const [activeElement, setActiveElement] = createSignal(undefined);

@@ -276,2 +276,3 @@ /*

function assertTruthy(condition, message) {
if (import.meta.env.PROD) return;
if (!condition) {

@@ -456,5 +457,2 @@ throw new Error(message || 'Assertion failed');

class ElementNode extends Object {
lng = null;
_parent = null;
// Public but uses _ prefix

@@ -466,2 +464,3 @@ // Public but uses _ prefix

// Public but uses _ prefix
constructor(name) {

@@ -819,3 +818,3 @@ super();

const Text = props => (() => {
const _el$ = createElement$1("text");
var _el$ = createElement$1("text");
spread$1(_el$, props, false);

@@ -843,3 +842,3 @@ return _el$;

const View = props => (() => {
const _el$ = createElement$1("node");
var _el$ = createElement$1("node");
spread$1(_el$, props, false);

@@ -874,4 +873,4 @@ return _el$;

return (() => {
const _el$ = createElement$1("canvas");
const _ref$ = rootRef;
var _el$ = createElement$1("canvas");
var _ref$ = rootRef;
typeof _ref$ === "function" ? use$1(_ref$, _el$) : rootRef = _el$;

@@ -1147,3 +1146,3 @@ insert$1(_el$, () => props.children);

text,
parent: null
parent: undefined
};

@@ -1150,0 +1149,0 @@ },

@@ -18,2 +18,2 @@ /*

import { createSignal } from 'solid-js';
export const [activeElement, setActiveElement] = createSignal(null);
export const [activeElement, setActiveElement] = createSignal(undefined);

@@ -98,4 +98,5 @@ /*

export class ElementNode extends Object {
id;
name;
lng = null;
lng;
renderer;

@@ -108,3 +109,3 @@ selected;

_effects;
_parent = null;
_parent;
_shader;

@@ -111,0 +112,0 @@ _style;

@@ -30,3 +30,3 @@ /*

// A text node is just a string - not the <text> node
return { name: 'TextNode', text, parent: null };
return { name: 'TextNode', text, parent: undefined };
},

@@ -33,0 +33,0 @@ replaceText(node, value) {

@@ -9,3 +9,3 @@ import { type JSX } from "solid-js";

export interface CanvasProps {
ref?: ElementNode | ((node: ElementNode) => void) | null;
ref?: ElementNode | ((node: ElementNode) => void) | undefined;
options?: Partial<SolidRendererOptions>;

@@ -12,0 +12,0 @@ onFirstRender?: (callback: (root: ElementNode) => void) => void;

@@ -9,3 +9,3 @@ import { createShader } from '../renderer/index.js';

text: string;
parent: ElementNode | null;
parent: ElementNode | undefined;
zIndex?: number;

@@ -32,4 +32,5 @@ states?: States;

export declare class ElementNode extends Object {
id?: string;
name: string;
lng: INode | null;
lng: INode | undefined;
renderer?: RendererMain;

@@ -36,0 +37,0 @@ selected?: number;

@@ -23,3 +23,3 @@ import { type AnimationSettings, type Dimensions, type INode, type INodeWritableProps, type ITextNodeWritableProps, type NodeFailedPayload, type NodeLoadedPayload } from '@lightningjs/renderer';

onLayout?: (child: ElementNode, dimensions: Dimensions) => void;
ref?: ElementNode | ((node: ElementNode) => void) | null;
ref?: ElementNode | ((node: ElementNode) => void) | undefined;
selected?: number;

@@ -26,0 +26,0 @@ states?: NodeStates;

{
"name": "@lightningjs/solid",
"version": "0.11.5",
"version": "0.12.0",
"description": "Lightning renderer for solid universal",

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

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^3.0.1",
"rollup": "^4.1.4",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.7",
"lint-staged": "^15.2.0",
"prettier": "^3.2.4",
"rollup": "^4.9.6",
"rollup-preset-solid": "^2.0.1",
"solid-js": "^1.8.6",
"typescript": "^5.2.2"
"solid-js": "^1.8.12",
"typescript": "^5.3.3"
},

@@ -58,0 +58,0 @@ "lint-staged": {

@@ -20,3 +20,4 @@ /*

import type { ElementNode } from './node/index.js';
export const [activeElement, setActiveElement] =
createSignal<ElementNode | null>(null);
export const [activeElement, setActiveElement] = createSignal<
ElementNode | undefined
>(undefined);

@@ -127,3 +127,3 @@ /*

text: string;
parent: ElementNode | null;
parent: ElementNode | undefined;
zIndex?: number;

@@ -157,4 +157,5 @@ states?: States;

export class ElementNode extends Object {
id?: string;
name: string;
lng: INode | null = null;
lng: INode | undefined;
renderer?: RendererMain;

@@ -168,3 +169,3 @@ selected?: number;

private _effects: any;
private _parent: ElementNode | null = null;
private _parent: ElementNode | undefined;
private _shader?: ShaderRef;

@@ -171,0 +172,0 @@ private _style?: SolidStyles;

@@ -36,3 +36,3 @@ /*

// A text node is just a string - not the <text> node
return { name: 'TextNode', text, parent: null };
return { name: 'TextNode', text, parent: undefined };
},

@@ -39,0 +39,0 @@ replaceText(node: TextNode, value: string): void {

@@ -52,3 +52,3 @@ /*

onLayout?: (child: ElementNode, dimensions: Dimensions) => void;
ref?: ElementNode | ((node: ElementNode) => void) | null;
ref?: ElementNode | ((node: ElementNode) => void) | undefined;
selected?: number;

@@ -55,0 +55,0 @@ states?: NodeStates;

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