New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lightningtv/core

Package Overview
Dependencies
Maintainers
0
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningtv/core - npm Package Compare versions

Comparing version

to
0.0.14

6

dist/src/elementNode.d.ts
import { createShader } from './lightningInit.js';
import { type IntrinsicCommonProps, type IntrinsicNodeProps, type IntrinsicTextProps, type StyleEffects, type NodeStyles, type TextStyles } from './intrinsicTypes.js';
import { type IntrinsicCommonProps, type IntrinsicNodeProps, type IntrinsicTextProps, type StyleEffects, type NodeStyles, type TextStyles, AddColorString } from './intrinsicTypes.js';
import Children from './children.js';

@@ -18,3 +18,3 @@ import States, { type NodeStates } from './states.js';

}
export interface ElementNode extends Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>, IntrinsicCommonProps {
export interface ElementNode extends AddColorString<Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>>, IntrinsicCommonProps {
[key: string]: unknown;

@@ -76,3 +76,3 @@ id?: string;

set animationSettings(animationSettings: Partial<AnimationSettings>);
requiresLayout(): true | ((this: ElementNode, target: ElementNode, child?: ElementNode | undefined, dimensions?: Dimensions | undefined) => boolean | void) | undefined;
requiresLayout(): true | ((this: ElementNode, target: ElementNode, child?: ElementNode, dimensions?: Dimensions) => boolean | void) | undefined;
updateLayout(child?: ElementNode, dimensions?: Dimensions): void;

@@ -79,0 +79,0 @@ _stateChanged(): void;

@@ -94,3 +94,2 @@ import { renderer, createShader } from './lightningInit.js';

];
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class ElementNode extends Object {

@@ -341,3 +340,2 @@ constructor(name) {

// Elements are rendered from the outside in, then `insert`ed from the inside out.
// eslint-disable-next-line @typescript-eslint/no-this-alias
const node = this;

@@ -344,0 +342,0 @@ const parent = this.parent;

@@ -7,2 +7,5 @@ import { type AnimationSettings, type Dimensions, type FadeOutEffectProps, type GlitchEffectProps, type GrayscaleEffectProps, type INode, type INodeWritableProps, type ITextNodeWritableProps, type LinearGradientEffectProps, type NodeFailedPayload, type NodeLoadedPayload, type RadialGradientEffectProps, type RadialProgressEffectProps } from '@lightningjs/renderer';

};
export type AddColorString<T> = {
[K in keyof T]: K extends `color${string}` ? string | number : T[K];
};
export interface BorderStyleObject {

@@ -84,6 +87,6 @@ width: number;

}
export interface IntrinsicNodeStyleProps extends Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>, IntrinsicNodeStyleCommonProps {
export interface IntrinsicNodeStyleProps extends AddColorString<Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>>, IntrinsicNodeStyleCommonProps {
[key: string]: unknown;
}
export interface IntrinsicTextNodeStyleProps extends Partial<Omit<ITextNodeWritableProps, 'parent' | 'shader'>>, IntrinsicTextStyleCommonProps {
export interface IntrinsicTextNodeStyleProps extends AddColorString<Partial<Omit<ITextNodeWritableProps, 'parent' | 'shader'>>>, IntrinsicTextStyleCommonProps {
[key: string]: unknown;

@@ -90,0 +93,0 @@ }

{
"name": "@lightningtv/core",
"version": "0.0.13",
"version": "0.0.14",
"description": "Lightning TV Core for Universal Renderers",

@@ -21,4 +21,4 @@ "type": "module",

"lint:fix:prettier": "prettier --write \"**/*.{ts,js,cjs,md}\"",
"lint:eslint": "eslint .",
"lint:fix:eslint": "eslint --fix .",
"lint:eslint": "eslint",
"lint:fix:eslint": "eslint --fix",
"build": "npm run tsc",

@@ -40,11 +40,15 @@ "tsc": "tsc",

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.0",
"@eslint/js": "^9.5.0",
"@types/eslint__js": "^8.42.3",
"@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.2",
"prettier": "^3.2.5",
"typescript": "^5.4.5"
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"typescript": "^5.5.2",
"typescript-eslint": "^7.13.1"
},

@@ -51,0 +55,0 @@ "peerDependencies": {

@@ -12,2 +12,3 @@ import { renderer, createShader } from './lightningInit.js';

type ShaderEffectDesc,
AddColorString,
} from './intrinsicTypes.js';

@@ -38,2 +39,3 @@ import Children from './children.js';

LinearGradientEffectProps,
ITextNodeWritableProps,
} from '@lightningjs/renderer';

@@ -149,6 +151,6 @@ import { assertTruthy } from '@lightningjs/renderer/utils';

}
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export interface ElementNode
extends Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>,
extends AddColorString<
Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>
>,
IntrinsicCommonProps {

@@ -189,4 +191,2 @@ [key: string]: unknown;

}
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class ElementNode extends Object {

@@ -494,4 +494,2 @@ constructor(name: string) {

// Elements are rendered from the outside in, then `insert`ed from the inside out.
// eslint-disable-next-line @typescript-eslint/no-this-alias
const node = this;

@@ -583,3 +581,5 @@ const parent = this.parent;

log('Rendering: ', this, props);
node.lng = renderer.createTextNode(props);
node.lng = renderer.createTextNode(
props as unknown as ITextNodeWritableProps,
);

@@ -613,3 +613,3 @@ if (parent.requiresLayout() && (!props.width || !props.height)) {

log('Rendering: ', this, props);
node.lng = renderer.createNode(props);
node.lng = renderer.createNode(props as INodeWritableProps);
}

@@ -616,0 +616,0 @@

@@ -23,2 +23,6 @@ import {

export type AddColorString<T> = {
[K in keyof T]: K extends `color${string}` ? string | number : T[K];
};
export interface BorderStyleObject {

@@ -131,3 +135,5 @@ width: number;

export interface IntrinsicNodeStyleProps
extends Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>,
extends AddColorString<
Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>
>,
IntrinsicNodeStyleCommonProps {

@@ -138,3 +144,5 @@ [key: string]: unknown;

export interface IntrinsicTextNodeStyleProps
extends Partial<Omit<ITextNodeWritableProps, 'parent' | 'shader'>>,
extends AddColorString<
Partial<Omit<ITextNodeWritableProps, 'parent' | 'shader'>>
>,
IntrinsicTextStyleCommonProps {

@@ -141,0 +149,0 @@ [key: string]: unknown;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet