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

@dlightjs/types

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlightjs/types - npm Package Compare versions

Comparing version 0.10.10 to 1.0.0-alpha.0

615

dist/index.d.ts

@@ -1,5 +0,432 @@

import { HtmlNode, CustomNode, DLNode } from '@dlightjs/dlight';
import { CompNode, ExpNode } from '@dlightjs/dlight';
import { Properties } from 'csstype';
type IfEquals<X, Y, A, B> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? A : B;
interface DLightGlobalEventHandlers {
/**
* Fires when the user aborts the download.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)
*/
onAbort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
onAnimationCancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
onAnimationEnd: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
onAnimationIteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
onAnimationStart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
onAuxClick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforeinput_event) */
onBeforeInput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
onBlur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
onCancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)
*/
onCanPlay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
onCanPlayThrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)
*/
onChange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
*/
onClick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
onClose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
onContextMenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
onCopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
onCueChange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
onCut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)
*/
onDblClick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
*/
onDrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
*/
onDragEnd: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
*/
onDragEnter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
*/
onDragLeave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
*/
onDragOver: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
*/
onDragStart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
onDrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)
*/
onDurationChange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)
*/
onEmptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)
*/
onEnded: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
*/
onError: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)
*/
onFocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
onFormData: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
onGotPointerCapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/input_event) */
onInput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
onInvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)
*/
onKeyDown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
onKeyPress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)
*/
onKeyUp: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)
*/
onLoad: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)
*/
onLoadedData: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)
*/
onLoadedMetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
onLoadStart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lostpointercapture_event) */
onLostPointerCapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)
*/
onMouseDown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
onMouseEnter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
onMouseLeave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)
*/
onMouseMove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)
*/
onMouseOut: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)
*/
onMouseOver: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)
*/
onMouseUp: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
onPaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)
*/
onPause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)
*/
onPlay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)
*/
onPlaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
onPointerCancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
onPointerDown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
onPointerEnter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
onPointerLeave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
onPointerMove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
onPointerOut: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
onPointerOver: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
onPointerUp: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)
*/
onProgress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)
*/
onRateChange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)
*/
onReset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
onResize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
*/
onScroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
onScrollEnd: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
onSecurityPolicyViolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)
*/
onSeeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)
*/
onSeeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)
*/
onSelect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
onSelectionChange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
onSelectStart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
onSlotChange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)
*/
onStalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
onSubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)
*/
onSuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
*/
onTimeUpdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */
onToggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
onTransitionCancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
onTransitionEnd: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
onTransitionRun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
onTransitionStart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)
*/
onVolumeChange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)
*/
onWaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of `onAnimationEnd`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
*/
onWebkitAnimationEnd: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of `onAnimationIteration`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
*/
onWebkitAnimationIteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of `onAnimationStart`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
*/
onWebkitAnimationStart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of `onTransitionEnd`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
*/
onWebkitTransitionEnd: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
onWheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
}
type IfEquals<X, Y, A, B> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B;
type WritableKeysOf<T> = {

@@ -17,36 +444,36 @@ [P in keyof T]: IfEquals<{

type OmitFuncAndReadOnly<T> = RemoveReadOnly<OmitFunction<T>>;
type OmitFuncAndReadOnlyProperty<G> = Omit<OmitFuncAndReadOnly<G>, "className">;
type OmitFuncAndReadOnlyProperty<G> = Omit<OmitFuncAndReadOnly<G>, "className" | "htmlFor" | "style" | "innerText">;
type HTMLAttributes<T> = OmitFuncAndReadOnlyProperty<T> & {
style: Properties;
class: string;
for: string;
};
type HtmlLifecycleFuncType = ((el?: HTMLElement, node?: HtmlNode) => void) | undefined;
type PropertyWithEvent<G> = Omit<G, {
[K in keyof G]: K extends `on${string}` ? K : never;
}[keyof G]> & DLightGlobalEventHandlers;
interface DLightHtmlProps {
do: (node: HtmlNode) => void;
forwardProps: true;
className: string | string[] | undefined | undefined[];
do: (element: HTMLElement) => void;
element: HTMLElement | ((holder: HTMLElement) => void) | undefined;
willAppear: HtmlLifecycleFuncType;
didAppear: HtmlLifecycleFuncType;
willDisappear: HtmlLifecycleFuncType;
didDisappear: HtmlLifecycleFuncType;
addEvents: Record<string, () => void>;
setAttributes: Record<string, any>;
prop: Record<string, string | number | boolean>;
attr: Record<string, string>;
dataset: Record<string, string>;
forwardProps: true | undefined;
}
type DLightHTMLAttributes<T, G = {}> = DLightHtmlProps & HTMLAttributes<Required<T>> & G;
type DLightHTMLAttributesFunc<T, G = {}> = {
[K in keyof DLightHTMLAttributes<T, G>]: (value?: DLightHTMLAttributes<T, G>[K]) => (K extends "className" ? DLightHTMLAttributesFunc<T, G> : Omit<DLightHTMLAttributesFunc<T, G>, K>);
type DLightHTMLAttributes<T, G = object> = DLightHtmlProps & HTMLAttributes<T> & G;
type DLightHTMLAttributesFunc<T, G = object> = {
[K in keyof DLightHTMLAttributes<T, G>]: (value?: DLightHTMLAttributes<T, G>[K]) => Omit<DLightHTMLAttributesFunc<T, G>, K>;
};
type DLightHtmlTagFunc<T = HTMLElement, G = {}> = (innerText?: string | number) => DLightHTMLAttributesFunc<T, G>;
type DLightHtmlTagFunc<T = HTMLElement, G = object> = (innerText?: string | number) => DLightHTMLAttributesFunc<PropertyWithEvent<T>, G>;
declare const a: DLightHtmlTagFunc<HTMLAnchorElement>;
declare const abbr: DLightHtmlTagFunc<HTMLElement>;
declare const address: DLightHtmlTagFunc<HTMLElement>;
declare const abbr: DLightHtmlTagFunc;
declare const address: DLightHtmlTagFunc;
declare const area: DLightHtmlTagFunc<HTMLAreaElement>;
declare const article: DLightHtmlTagFunc<HTMLElement>;
declare const aside: DLightHtmlTagFunc<HTMLElement>;
declare const article: DLightHtmlTagFunc;
declare const aside: DLightHtmlTagFunc;
declare const audio: DLightHtmlTagFunc<HTMLAudioElement>;
declare const b: DLightHtmlTagFunc<HTMLElement>;
declare const b: DLightHtmlTagFunc;
declare const base: DLightHtmlTagFunc<HTMLBaseElement>;
declare const bdi: DLightHtmlTagFunc<HTMLElement>;
declare const bdo: DLightHtmlTagFunc<HTMLElement>;
declare const bdi: DLightHtmlTagFunc;
declare const bdo: DLightHtmlTagFunc;
declare const blockquote: DLightHtmlTagFunc<HTMLQuoteElement>;

@@ -58,4 +485,4 @@ declare const body: DLightHtmlTagFunc<HTMLBodyElement>;

declare const caption: DLightHtmlTagFunc<HTMLTableCaptionElement>;
declare const cite: DLightHtmlTagFunc<HTMLElement>;
declare const code: DLightHtmlTagFunc<HTMLElement>;
declare const cite: DLightHtmlTagFunc;
declare const code: DLightHtmlTagFunc;
declare const col: DLightHtmlTagFunc<HTMLTableColElement>;

@@ -65,16 +492,16 @@ declare const colgroup: DLightHtmlTagFunc<HTMLTableColElement>;

declare const datalist: DLightHtmlTagFunc<HTMLDataListElement>;
declare const dd: DLightHtmlTagFunc<HTMLElement>;
declare const dd: DLightHtmlTagFunc;
declare const del: DLightHtmlTagFunc<HTMLModElement>;
declare const details: DLightHtmlTagFunc<HTMLDetailsElement>;
declare const dfn: DLightHtmlTagFunc<HTMLElement>;
declare const dfn: DLightHtmlTagFunc;
declare const dialog: DLightHtmlTagFunc<HTMLDialogElement>;
declare const div: DLightHtmlTagFunc<HTMLDivElement>;
declare const dl: DLightHtmlTagFunc<HTMLDListElement>;
declare const dt: DLightHtmlTagFunc<HTMLElement>;
declare const em: DLightHtmlTagFunc<HTMLElement>;
declare const dt: DLightHtmlTagFunc;
declare const em: DLightHtmlTagFunc;
declare const embed: DLightHtmlTagFunc<HTMLEmbedElement>;
declare const fieldset: DLightHtmlTagFunc<HTMLFieldSetElement>;
declare const figcaption: DLightHtmlTagFunc<HTMLElement>;
declare const figure: DLightHtmlTagFunc<HTMLElement>;
declare const footer: DLightHtmlTagFunc<HTMLElement>;
declare const figcaption: DLightHtmlTagFunc;
declare const figure: DLightHtmlTagFunc;
declare const footer: DLightHtmlTagFunc;
declare const form: DLightHtmlTagFunc<HTMLFormElement>;

@@ -88,7 +515,7 @@ declare const h1: DLightHtmlTagFunc<HTMLHeadingElement>;

declare const head: DLightHtmlTagFunc<HTMLHeadElement>;
declare const header: DLightHtmlTagFunc<HTMLElement>;
declare const hgroup: DLightHtmlTagFunc<HTMLElement>;
declare const header: DLightHtmlTagFunc;
declare const hgroup: DLightHtmlTagFunc;
declare const hr: DLightHtmlTagFunc<HTMLHRElement>;
declare const html: DLightHtmlTagFunc<HTMLHtmlElement>;
declare const i: DLightHtmlTagFunc<HTMLElement>;
declare const i: DLightHtmlTagFunc;
declare const iframe: DLightHtmlTagFunc<HTMLIFrameElement>;

@@ -98,3 +525,3 @@ declare const img: DLightHtmlTagFunc<HTMLImageElement>;

declare const ins: DLightHtmlTagFunc<HTMLModElement>;
declare const kbd: DLightHtmlTagFunc<HTMLElement>;
declare const kbd: DLightHtmlTagFunc;
declare const label: DLightHtmlTagFunc<HTMLLabelElement>;

@@ -104,10 +531,10 @@ declare const legend: DLightHtmlTagFunc<HTMLLegendElement>;

declare const link: DLightHtmlTagFunc<HTMLLinkElement>;
declare const main: DLightHtmlTagFunc<HTMLElement>;
declare const main: DLightHtmlTagFunc;
declare const map: DLightHtmlTagFunc<HTMLMapElement>;
declare const mark: DLightHtmlTagFunc<HTMLElement>;
declare const mark: DLightHtmlTagFunc;
declare const menu: DLightHtmlTagFunc<HTMLMenuElement>;
declare const meta: DLightHtmlTagFunc<HTMLMetaElement>;
declare const meter: DLightHtmlTagFunc<HTMLMeterElement>;
declare const nav: DLightHtmlTagFunc<HTMLElement>;
declare const noscript: DLightHtmlTagFunc<HTMLElement>;
declare const nav: DLightHtmlTagFunc;
declare const noscript: DLightHtmlTagFunc;
declare const object: DLightHtmlTagFunc<HTMLObjectElement>;

@@ -123,19 +550,19 @@ declare const ol: DLightHtmlTagFunc<HTMLOListElement>;

declare const q: DLightHtmlTagFunc<HTMLQuoteElement>;
declare const rp: DLightHtmlTagFunc<HTMLElement>;
declare const rt: DLightHtmlTagFunc<HTMLElement>;
declare const ruby: DLightHtmlTagFunc<HTMLElement>;
declare const s: DLightHtmlTagFunc<HTMLElement>;
declare const samp: DLightHtmlTagFunc<HTMLElement>;
declare const rp: DLightHtmlTagFunc;
declare const rt: DLightHtmlTagFunc;
declare const ruby: DLightHtmlTagFunc;
declare const s: DLightHtmlTagFunc;
declare const samp: DLightHtmlTagFunc;
declare const script: DLightHtmlTagFunc<HTMLScriptElement>;
declare const section: DLightHtmlTagFunc<HTMLElement>;
declare const section: DLightHtmlTagFunc;
declare const select: DLightHtmlTagFunc<HTMLSelectElement>;
declare const slot: DLightHtmlTagFunc<HTMLSlotElement>;
declare const small: DLightHtmlTagFunc<HTMLElement>;
declare const small: DLightHtmlTagFunc;
declare const source: DLightHtmlTagFunc<HTMLSourceElement>;
declare const span: DLightHtmlTagFunc<HTMLSpanElement>;
declare const strong: DLightHtmlTagFunc<HTMLElement>;
declare const strong: DLightHtmlTagFunc;
declare const style: DLightHtmlTagFunc<HTMLStyleElement>;
declare const sub: DLightHtmlTagFunc<HTMLElement>;
declare const summary: DLightHtmlTagFunc<HTMLElement>;
declare const sup: DLightHtmlTagFunc<HTMLElement>;
declare const sub: DLightHtmlTagFunc;
declare const summary: DLightHtmlTagFunc;
declare const sup: DLightHtmlTagFunc;
declare const table: DLightHtmlTagFunc<HTMLTableElement>;

@@ -153,14 +580,14 @@ declare const tbody: DLightHtmlTagFunc<HTMLTableSectionElement>;

declare const track: DLightHtmlTagFunc<HTMLTrackElement>;
declare const u: DLightHtmlTagFunc<HTMLElement>;
declare const u: DLightHtmlTagFunc;
declare const ul: DLightHtmlTagFunc<HTMLUListElement>;
declare const var_: DLightHtmlTagFunc<HTMLElement>;
declare const var_: DLightHtmlTagFunc;
declare const video: DLightHtmlTagFunc<HTMLVideoElement>;
declare const wbr: DLightHtmlTagFunc<HTMLElement>;
declare const acronym: DLightHtmlTagFunc<HTMLElement>;
declare const wbr: DLightHtmlTagFunc;
declare const acronym: DLightHtmlTagFunc;
declare const applet: DLightHtmlTagFunc<HTMLUnknownElement>;
declare const basefont: DLightHtmlTagFunc<HTMLElement>;
declare const basefont: DLightHtmlTagFunc;
declare const bgsound: DLightHtmlTagFunc<HTMLUnknownElement>;
declare const big: DLightHtmlTagFunc<HTMLElement>;
declare const big: DLightHtmlTagFunc;
declare const blink: DLightHtmlTagFunc<HTMLUnknownElement>;
declare const center: DLightHtmlTagFunc<HTMLElement>;
declare const center: DLightHtmlTagFunc;
declare const dir: DLightHtmlTagFunc<HTMLDirectoryElement>;

@@ -174,15 +601,15 @@ declare const font: DLightHtmlTagFunc<HTMLFontElement>;

declare const marquee: DLightHtmlTagFunc<HTMLMarqueeElement>;
declare const menuitem: DLightHtmlTagFunc<HTMLElement>;
declare const menuitem: DLightHtmlTagFunc;
declare const multicol: DLightHtmlTagFunc<HTMLUnknownElement>;
declare const nextid: DLightHtmlTagFunc<HTMLUnknownElement>;
declare const nobr: DLightHtmlTagFunc<HTMLElement>;
declare const noembed: DLightHtmlTagFunc<HTMLElement>;
declare const noframes: DLightHtmlTagFunc<HTMLElement>;
declare const nobr: DLightHtmlTagFunc;
declare const noembed: DLightHtmlTagFunc;
declare const noframes: DLightHtmlTagFunc;
declare const param: DLightHtmlTagFunc<HTMLParamElement>;
declare const plaintext: DLightHtmlTagFunc<HTMLElement>;
declare const rb: DLightHtmlTagFunc<HTMLElement>;
declare const rtc: DLightHtmlTagFunc<HTMLElement>;
declare const plaintext: DLightHtmlTagFunc;
declare const rb: DLightHtmlTagFunc;
declare const rtc: DLightHtmlTagFunc;
declare const spacer: DLightHtmlTagFunc<HTMLUnknownElement>;
declare const strike: DLightHtmlTagFunc<HTMLElement>;
declare const tt: DLightHtmlTagFunc<HTMLElement>;
declare const strike: DLightHtmlTagFunc;
declare const tt: DLightHtmlTagFunc;
declare const xmp: DLightHtmlTagFunc<HTMLPreElement>;

@@ -253,15 +680,10 @@ declare const animate: DLightHtmlTagFunc<SVGAnimateElement>;

type DLightObject<T> = {
[K in keyof T]-?: ((value: T[K]) => DLightObject<Omit<T, K>>);
[K in keyof T]-?: undefined extends T[K] ? (value?: T[K]) => DLightObject<Omit<T, K>> : (value: T[K]) => DLightObject<Omit<T, K>>;
};
type CustomLifecycleFuncType = ((els?: HTMLElement[], node?: CustomNode) => void) | undefined;
interface CustomNodeProps {
do: (node: CustomNode) => void;
forwardProps: true;
do: (node: CompNode) => void;
element: HTMLElement[] | ((holder: HTMLElement[]) => void) | undefined;
willMount: CustomLifecycleFuncType;
didMount: CustomLifecycleFuncType;
willUnmount: CustomLifecycleFuncType;
didUnmount: CustomLifecycleFuncType;
forwardProps: true | undefined;
}
type ContentProp<T = {}> = T & {
type ContentProp<T = object> = T & {
_$idContent: true;

@@ -276,3 +698,3 @@ };

type ContentKeyName<T> = {
[K in keyof T]: IsAny<T[K]> extends true ? never : (T[K] extends ContentProp<infer _> ? K : never);
[K in keyof T]: IsAny<T[K]> extends true ? never : T[K] extends ContentProp<infer _> ? K : never;
}[keyof T];

@@ -282,11 +704,19 @@ type CheckContent<T> = RemoveOptional<T>[ContentKeyName<RemoveOptional<T>>];

type CustomSubViewTag<T> = T extends {
"content": infer U;
content: infer U;
} ? (content: U) => DLightObject<Omit<T, "content">> : T extends {
"content"?: infer U;
content?: infer U;
} ? (content?: U) => DLightObject<Omit<T, "content">> : () => DLightObject<T>;
type CustomTagType<T, G> = CustomClassTag<T & CustomNodeProps & (keyof G extends never ? {} : DLightHTMLAttributes<G>), T> & Useless;
type Typed<T = {}, G = {}> = CustomTagType<T, G> & Useless;
type SubTyped<T = {}> = CustomSubViewTag<T> & Useless;
type CustomTagType<T, G> = CustomClassTag<T & CustomNodeProps & (keyof G extends never ? object : DLightHTMLAttributes<G>), T> & Useless;
type Typed<T = object, G = object> = CustomTagType<T, G> & Useless;
type SubTyped<T = object> = CustomSubViewTag<T> & Useless;
type Pretty = any;
type UnTyped<T> = T extends Typed<infer U> ? U : never;
interface ExpressionTag {
do: (node: ExpNode) => void;
element: HTMLElement[] | ((holder: HTMLElement[]) => void) | undefined;
}
type ExpressionTagFunc = (nodes: any) => ExpressionTag;
declare const _: ExpressionTagFunc;
type AnyEnv = {

@@ -297,11 +727,14 @@ _$anyEnv: true;

interface ExpressionTagHook {
onUpdateNodes: (prevNodes: DLNode[], nodes: DLNode[]) => void;
}
type ExpressionTagFunc = (nodes: string | number | DLNode | DLNode[]) => DLightHTMLAttributesFunc<HTMLElement, ExpressionTagHook>;
declare const _: ExpressionTagFunc;
declare const comp: <T>(tag: T) => Typed<T extends any ? object : T>;
declare const tag: (tag: any) => DLightHtmlTagFunc;
declare const tag: <T>(tag: T) => Typed<T extends any ? {} : T>;
declare const htmlTag: (tag: any) => DLightHtmlTagFunc;
declare const Static: any;
declare const Children: any;
declare const Content: any;
declare const Prop: any;
declare const Env: any;
declare const Watch: any;
declare const ForwardProps: any;
declare const required: any;
export { ContentProp, DLightHTMLAttributes, DLightHTMLAttributesFunc, DLightHtmlTagFunc, Pretty, RemoveOptional, SubTyped, Typed, UnTyped, _, a, abbr, acronym, address, animate, animateMotion, animateTransform, applet, area, article, aside, audio, b, base, basefont, bdi, bdo, bgsound, big, blink, blockquote, body, br, button, canvas, caption, center, circle, cite, clipPath, code, col, colgroup, data, datalist, dd, defs, del, desc, details, dfn, dialog, dir, div, dl, dt, ellipse, em, embed, env, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, fieldset, figcaption, figure, filter, font, footer, foreignObject, form, frame, frameset, g, h1, h2, h3, h4, h5, h6, head, header, hgroup, hr, html, htmlTag, i, iframe, image, img, input, ins, isindex, kbd, keygen, label, legend, li, line, linearGradient, link, listing, main, map, mark, marker, marquee, mask, menu, menuitem, meta, metadata, meter, mpath, multicol, nav, nextid, nobr, noembed, noframes, noscript, object, ol, optgroup, option, output, p, param, path, pattern, picture, plaintext, polygon, polyline, pre, progress, q, radialGradient, rb, rect, rp, rt, rtc, ruby, s, samp, script, section, select, set, slot, small, source, spacer, span, stop, strike, strong, style, sub, summary, sup, svg, switch_, symbol, table, tag, tbody, td, template, text, textPath, textarea, tfoot, th, thead, time, title, tr, track, tspan, tt, u, ul, use, var_, video, view, wbr, xmp };
export { Children, Content, ContentProp, DLightHTMLAttributes, DLightHTMLAttributesFunc, DLightHtmlTagFunc, DLightObject, Env, ForwardProps, Pretty, Prop, PropertyWithEvent, RemoveOptional, Static, SubTyped, Typed, UnTyped, Watch, _, a, abbr, acronym, address, animate, animateMotion, animateTransform, applet, area, article, aside, audio, b, base, basefont, bdi, bdo, bgsound, big, blink, blockquote, body, br, button, canvas, caption, center, circle, cite, clipPath, code, col, colgroup, comp, data, datalist, dd, defs, del, desc, details, dfn, dialog, dir, div, dl, dt, ellipse, em, embed, env, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, fieldset, figcaption, figure, filter, font, footer, foreignObject, form, frame, frameset, g, h1, h2, h3, h4, h5, h6, head, header, hgroup, hr, html, i, iframe, image, img, input, ins, isindex, kbd, keygen, label, legend, li, line, linearGradient, link, listing, main, map, mark, marker, marquee, mask, menu, menuitem, meta, metadata, meter, mpath, multicol, nav, nextid, nobr, noembed, noframes, noscript, object, ol, optgroup, option, output, p, param, path, pattern, picture, plaintext, polygon, polyline, pre, progress, q, radialGradient, rb, rect, required, rp, rt, rtc, ruby, s, samp, script, section, select, set, slot, small, source, spacer, span, stop, strike, strong, style, sub, summary, sup, svg, switch_, symbol, table, tag, tbody, td, template, text, textPath, textarea, tfoot, th, thead, time, title, tr, track, tspan, tt, u, ul, use, var_, video, view, wbr, xmp };

2

dist/index.js

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

var t=null;var e=null,l=null,a=null,o=null,s=null,m=null,u=null,c=null,g=null,T=null,i=null,r=null,L=null,H=null,p=null,y=null,h=null,F=null,x=null,D=null,E=null,M=null,d=null,f=null,S=null,G=null,b=null,V=null,C=null,v=null,O=null,k=null,A=null,P=null,w=null,U=null,N=null,K=null,R=null,j=null,B=null,I=null,_=null,q=null,$=null,Q=null,z=null,J=null,W=null,X=null,Y=null,Z=null,tt=null,nt=null,et=null,lt=null,at=null,ot=null,st=null,mt=null,ut=null,ct=null,gt=null,Tt=null,it=null,rt=null,Lt=null,Ht=null,pt=null,yt=null,ht=null,Ft=null,xt=null,Dt=null,Et=null,Mt=null,dt=null,ft=null,St=null,Gt=null,bt=null,Vt=null,Ct=null,vt=null,Ot=null,kt=null,At=null,Pt=null,wt=null,Ut=null,Nt=null,Kt=null,Rt=null,jt=null,Bt=null,It=null,_t=null,qt=null,$t=null,Qt=null,zt=null,Jt=null,Wt=null,Xt=null,Yt=null,Zt=null,tn=null,nn=null,en=null,ln=null,an=null,on=null,sn=null,mn=null,un=null,cn=null,gn=null,Tn=null,rn=null,Ln=null,Hn=null,pn=null,yn=null,hn=null,Fn=null,xn=null,Dn=null,En=null,Mn=null,dn=null,fn=null,Sn=null,Gn=null,bn=null,Vn=null,Cn=null,vn=null,On=null,kn=null,An=null,Pn=null,wn=null,Un=null,Nn=null,Kn=null,Rn=null,jn=null,Bn=null,In=null,_n=null,qn=null,$n=null,Qn=null,zn=null,Jn=null,Wn=null,Xn=null,Yn=null,Zn=null,te=null,ne=null,ee=null,le=null,ae=null,oe=null,se=null,me=null,ue=null,ce=null,ge=null,Te=null,ie=null,re=null,Le=null,He=null,pe=null,ye=null,he=null,Fe=null,xe=null,De=null,Ee=null,Me=null,de=null,fe=null,Se=null,Ge=null,be=null,Ve=null,Ce=null,ve=null,Oe=null,ke=null,Ae=null,Pe=null,we=null,Ue=null,Ne=null,Ke=null;function je(){return null}var Ie=null,_e=null;export{t as _,e as a,l as abbr,on as acronym,a as address,Pn as animate,wn as animateMotion,Un as animateTransform,sn as applet,o as area,s as article,m as aside,u as audio,c as b,g as base,mn as basefont,T as bdi,i as bdo,un as bgsound,cn as big,gn as blink,r as blockquote,L as body,H as br,p as button,y as canvas,h as caption,Tn as center,Nn as circle,F as cite,Kn as clipPath,x as code,D as col,E as colgroup,M as data,d as datalist,f as dd,Rn as defs,S as del,jn as desc,G as details,b as dfn,V as dialog,rn as dir,C as div,v as dl,O as dt,Bn as ellipse,k as em,A as embed,je as env,In as feBlend,_n as feColorMatrix,qn as feComponentTransfer,$n as feComposite,Qn as feConvolveMatrix,zn as feDiffuseLighting,Jn as feDisplacementMap,Wn as feDistantLight,Xn as feDropShadow,Yn as feFlood,Zn as feFuncA,te as feFuncB,ne as feFuncG,ee as feFuncR,le as feGaussianBlur,ae as feImage,oe as feMerge,se as feMergeNode,me as feMorphology,ue as feOffset,ce as fePointLight,ge as feSpecularLighting,Te as feSpotLight,ie as feTile,re as feTurbulence,P as fieldset,w as figcaption,U as figure,Le as filter,Ln as font,N as footer,He as foreignObject,K as form,Hn as frame,pn as frameset,pe as g,R as h1,j as h2,B as h3,I as h4,_ as h5,q as h6,$ as head,Q as header,z as hgroup,J as hr,W as html,_e as htmlTag,X as i,Y as iframe,ye as image,Z as img,tt as input,nt as ins,yn as isindex,et as kbd,hn as keygen,lt as label,at as legend,ot as li,he as line,Fe as linearGradient,st as link,Fn as listing,mt as main,ut as map,ct as mark,xe as marker,xn as marquee,De as mask,gt as menu,Dn as menuitem,Tt as meta,Ee as metadata,it as meter,Me as mpath,En as multicol,rt as nav,Mn as nextid,dn as nobr,fn as noembed,Sn as noframes,Lt as noscript,Ht as object,pt as ol,yt as optgroup,ht as option,Ft as output,xt as p,Gn as param,de as path,fe as pattern,Dt as picture,bn as plaintext,Se as polygon,Ge as polyline,Et as pre,Mt as progress,dt as q,be as radialGradient,Vn as rb,Ve as rect,ft as rp,St as rt,Cn as rtc,Gt as ruby,bt as s,Vt as samp,Ct as script,vt as section,Ot as select,Ce as set,kt as slot,At as small,Pt as source,vn as spacer,wt as span,ve as stop,On as strike,Ut as strong,Nt as style,Kt as sub,Rt as summary,jt as sup,Oe as svg,ke as switch_,Ae as symbol,Bt as table,Ie as tag,It as tbody,_t as td,qt as template,Pe as text,we as textPath,$t as textarea,Qt as tfoot,zt as th,Jt as thead,Wt as time,Xt as title,Yt as tr,Zt as track,Ue as tspan,kn as tt,tn as u,nn as ul,Ne as use,en as var_,ln as video,Ke as view,an as wbr,An as xmp};
var t=null;var l=null,e=null,a=null,o=null,s=null,u=null,c=null,g=null,m=null,r=null,i=null,T=null,L=null,p=null,H=null,h=null,y=null,F=null,x=null,D=null,E=null,M=null,d=null,G=null,S=null,f=null,b=null,V=null,v=null,k=null,P=null,A=null,w=null,C=null,O=null,j=null,B=null,R=null,U=null,I=null,K=null,q=null,_=null,N=null,W=null,Q=null,$=null,z=null,J=null,X=null,Y=null,Z=null,tt=null,nt=null,lt=null,et=null,at=null,ot=null,st=null,ut=null,ct=null,gt=null,mt=null,rt=null,it=null,Tt=null,Lt=null,pt=null,Ht=null,ht=null,yt=null,Ft=null,xt=null,Dt=null,Et=null,Mt=null,dt=null,Gt=null,St=null,ft=null,bt=null,Vt=null,vt=null,kt=null,Pt=null,At=null,wt=null,Ct=null,Ot=null,jt=null,Bt=null,Rt=null,Ut=null,It=null,Kt=null,qt=null,_t=null,Nt=null,Wt=null,Qt=null,$t=null,zt=null,Jt=null,Xt=null,Yt=null,Zt=null,tn=null,nn=null,ln=null,en=null,an=null,on=null,sn=null,un=null,cn=null,gn=null,mn=null,rn=null,Tn=null,Ln=null,pn=null,Hn=null,hn=null,yn=null,Fn=null,xn=null,Dn=null,En=null,Mn=null,dn=null,Gn=null,Sn=null,fn=null,bn=null,Vn=null,vn=null,kn=null,Pn=null,An=null,wn=null,Cn=null,On=null,jn=null,Bn=null,Rn=null,Un=null,In=null,Kn=null,qn=null,_n=null,Nn=null,Wn=null,Qn=null,$n=null,zn=null,Jn=null,Xn=null,Yn=null,Zn=null,tl=null,nl=null,ll=null,el=null,al=null,ol=null,sl=null,ul=null,cl=null,gl=null,ml=null,rl=null,il=null,Tl=null,Ll=null,pl=null,Hl=null,hl=null,yl=null,Fl=null,xl=null,Dl=null,El=null,Ml=null,dl=null,Gl=null,Sl=null,fl=null,bl=null,Vl=null,vl=null,kl=null,Pl=null,Al=null,wl=null,Cl=null,Ol=null,jl=null,Bl=null,Rl=null;function Il(){return null}var ql=null,_l=null,Nl=null,Wl=null,Ql=null,$l=null,zl=null,Jl=null,Xl=null,Yl=null;export{Wl as Children,Ql as Content,zl as Env,Xl as ForwardProps,$l as Prop,Nl as Static,Jl as Watch,t as _,l as a,e as abbr,on as acronym,a as address,Cn as animate,On as animateMotion,jn as animateTransform,sn as applet,o as area,s as article,u as aside,c as audio,g as b,m as base,un as basefont,r as bdi,i as bdo,cn as bgsound,gn as big,mn as blink,T as blockquote,L as body,p as br,H as button,h as canvas,y as caption,rn as center,Bn as circle,F as cite,Rn as clipPath,x as code,D as col,E as colgroup,ql as comp,M as data,d as datalist,G as dd,Un as defs,S as del,In as desc,f as details,b as dfn,V as dialog,Tn as dir,v as div,k as dl,P as dt,Kn as ellipse,A as em,w as embed,Il as env,qn as feBlend,_n as feColorMatrix,Nn as feComponentTransfer,Wn as feComposite,Qn as feConvolveMatrix,$n as feDiffuseLighting,zn as feDisplacementMap,Jn as feDistantLight,Xn as feDropShadow,Yn as feFlood,Zn as feFuncA,tl as feFuncB,nl as feFuncG,ll as feFuncR,el as feGaussianBlur,al as feImage,ol as feMerge,sl as feMergeNode,ul as feMorphology,cl as feOffset,gl as fePointLight,ml as feSpecularLighting,rl as feSpotLight,il as feTile,Tl as feTurbulence,C as fieldset,O as figcaption,j as figure,Ll as filter,Ln as font,B as footer,pl as foreignObject,R as form,pn as frame,Hn as frameset,Hl as g,U as h1,I as h2,K as h3,q as h4,_ as h5,N as h6,W as head,Q as header,$ as hgroup,z as hr,J as html,X as i,Y as iframe,hl as image,Z as img,tt as input,nt as ins,hn as isindex,lt as kbd,yn as keygen,et as label,at as legend,ot as li,yl as line,Fl as linearGradient,st as link,Fn as listing,ut as main,ct as map,gt as mark,xl as marker,xn as marquee,Dl as mask,mt as menu,Dn as menuitem,rt as meta,El as metadata,it as meter,Ml as mpath,En as multicol,Tt as nav,Mn as nextid,dn as nobr,Gn as noembed,Sn as noframes,Lt as noscript,pt as object,Ht as ol,ht as optgroup,yt as option,Ft as output,xt as p,fn as param,dl as path,Gl as pattern,Dt as picture,bn as plaintext,Sl as polygon,fl as polyline,Et as pre,Mt as progress,dt as q,bl as radialGradient,Vn as rb,Vl as rect,Yl as required,Gt as rp,St as rt,vn as rtc,ft as ruby,bt as s,Vt as samp,vt as script,kt as section,Pt as select,vl as set,At as slot,wt as small,Ct as source,kn as spacer,Ot as span,kl as stop,Pn as strike,jt as strong,Bt as style,Rt as sub,Ut as summary,It as sup,Pl as svg,Al as switch_,wl as symbol,Kt as table,_l as tag,qt as tbody,_t as td,Nt as template,Cl as text,Ol as textPath,Wt as textarea,Qt as tfoot,$t as th,zt as thead,Jt as time,Xt as title,Yt as tr,Zt as track,jl as tspan,An as tt,tn as u,nn as ul,Bl as use,ln as var_,en as video,Rl as view,an as wbr,wn as xmp};
//# sourceMappingURL=index.js.map
{
"name": "@dlightjs/types",
"version": "0.10.10",
"version": "1.0.0-alpha.0",
"description": "DLight types helper",

@@ -23,8 +23,18 @@ "author": {

"tsup": "^6.5.0",
"typescript": "^4.5.2"
},
"dependencies": {
"typescript": "^4.5.2",
"csstype": "^3.1.1",
"@dlightjs/dlight": "0.10.2"
"@dlightjs/dlight": "1.0.0-alpha.0"
},
"tsup": {
"entry": [
"src/index.ts"
],
"format": [
"cjs",
"esm"
],
"clean": true,
"dts": true,
"minify": true
},
"scripts": {

@@ -31,0 +41,0 @@ "build": "tsup --sourcemap"

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