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
158
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 2.2.0-beta.6 to 2.2.0-beta.7

5

dist/src/elementNode.d.ts
import { createShader } from './lightningInit.js';
import { type BorderRadius, type BorderStyle, type StyleEffects, type AnimationSettings, type ElementText, type Styles, AddColorString } from './intrinsicTypes.js';
import States, { type NodeStates } from './states.js';
import type { RendererMain, INode, INodeAnimateProps, INodeProps, LinearGradientEffectProps, IAnimationController, NodeFailedPayload, NodeLoadedPayload } from '@lightningjs/renderer';
import type { RendererMain, INode, INodeAnimateProps, INodeProps, LinearGradientEffectProps, IAnimationController, RadialGradientEffectProps, RadialProgressEffectProps, NodeFailedPayload, NodeLoadedPayload } from '@lightningjs/renderer';
import './focusManager.js';

@@ -24,2 +24,3 @@ export type RendererNode = AddColorString<Partial<Omit<INodeProps, 'parent' | 'shader'>>>;

_undoStyles?: string[];
autosize?: boolean;
bottom?: number;

@@ -55,2 +56,4 @@ children: Array<ElementNode | ElementText>;

linearGradient?: LinearGradientEffectProps;
radialGradient?: RadialGradientEffectProps;
radialProgress?: RadialProgressEffectProps;
marginBottom?: number;

@@ -57,0 +60,0 @@ marginLeft?: number;

11

dist/src/intrinsicTypes.d.ts
import { type FadeOutEffectProps, type GlitchEffectProps, type GrayscaleEffectProps, type AnimationSettings as RendererAnimationSettings, type LinearGradientEffectProps, type RadialGradientEffectProps, type RadialProgressEffectProps, type ITextNodeProps } from '@lightningjs/renderer';
import { ElementNode, type RendererNode } from './elementNode.js';
import { NodeStates } from './states.js';
export type AnimationSettings = Partial<RendererAnimationSettings> | undefined;

@@ -42,3 +43,7 @@ export type AddColorString<T> = {

};
export type RemoveUnderscoreProps<T> = {
[K in keyof T as K extends `_${string}` ? never : K]: T[K];
};
type RendererText = AddColorString<Partial<Omit<ITextNodeProps, 'debug' | 'shader' | 'parent'>>>;
type CleanElementNode = RemoveUnderscoreProps<ElementNode>;
/** Node text, children of a ElementNode of type TextNode */

@@ -52,5 +57,7 @@ export interface ElementText extends Partial<NewOmit<ElementNode, '_type'>>, RendererText {

}
export interface NodeProps extends RendererNode, Partial<NewOmit<ElementNode, 'children' | 'text'>> {
export interface NodeProps extends RendererNode, Partial<NewOmit<CleanElementNode, 'children' | 'text' | 'lng' | 'rendered' | 'states' | 'renderer' | 'preFlexwidth' | 'preFlexHeight'>> {
states?: NodeStates;
}
export interface TextProps extends RendererText, Partial<NewOmit<ElementNode, 'autosize' | 'children' | 'clipping' | 'linearGradient' | 'src' | 'texture' | 'textureOptions'>> {
export interface TextProps extends Partial<NewOmit<RemoveUnderscoreProps<ElementText>, 'lng' | 'rendered' | 'renderer' | 'alignItems' | 'autosize' | 'children' | 'data' | 'display' | 'flexBoundary' | 'flexDirection' | 'gap' | 'justifyContent' | 'forwardFocus' | 'forwardStates' | 'linearGradient' | 'src' | 'states' | 'texture' | 'textureOptions'>> {
states?: NodeStates;
}

@@ -57,0 +64,0 @@ export type Styles = {

{
"name": "@lightningtv/core",
"version": "2.2.0-beta.6",
"version": "2.2.0-beta.7",
"description": "Lightning TV Core for Universal Renderers",

@@ -5,0 +5,0 @@ "type": "module",

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

_undoStyles?: string[];
autosize?: boolean;
bottom?: number;

@@ -232,2 +233,4 @@ children: Array<ElementNode | ElementText>;

linearGradient?: LinearGradientEffectProps;
radialGradient?: RadialGradientEffectProps;
radialProgress?: RadialProgressEffectProps;
marginBottom?: number;

@@ -234,0 +237,0 @@ marginLeft?: number;

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

import { ElementNode, type RendererNode } from './elementNode.js';
import { NodeStates } from './states.js';

@@ -61,5 +62,11 @@ export type AnimationSettings = Partial<RendererAnimationSettings> | undefined;

export type RemoveUnderscoreProps<T> = {
[K in keyof T as K extends `_${string}` ? never : K]: T[K];
};
type RendererText = AddColorString<
Partial<Omit<ITextNodeProps, 'debug' | 'shader' | 'parent'>>
>;
type CleanElementNode = RemoveUnderscoreProps<ElementNode>;
/** Node text, children of a ElementNode of type TextNode */

@@ -78,20 +85,48 @@ export interface ElementText

extends RendererNode,
Partial<NewOmit<ElementNode, 'children' | 'text'>> {}
export interface TextProps
extends RendererText,
Partial<
NewOmit<
ElementNode,
| 'autosize'
CleanElementNode,
| 'children'
| 'clipping'
| 'linearGradient'
| 'src'
| 'texture'
| 'textureOptions'
| 'text'
| 'lng'
| 'rendered'
| 'states'
| 'renderer'
| 'preFlexwidth'
| 'preFlexHeight'
>
> {}
> {
states?: NodeStates;
}
export interface TextProps
extends Partial<
NewOmit<
RemoveUnderscoreProps<ElementText>,
| 'lng'
| 'rendered'
| 'renderer'
| 'alignItems'
| 'autosize'
| 'children'
| 'data'
| 'display'
| 'flexBoundary'
| 'flexDirection'
| 'gap'
| 'justifyContent'
| 'forwardFocus'
| 'forwardStates'
| 'linearGradient'
| 'src'
| 'states'
| 'texture'
| 'textureOptions'
>
> {
states?: NodeStates;
}
export type Styles = {
[K in keyof ElementNode]?: ElementNode[K];
};

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