From 7aea5d8e0e081c4cbf9de6e78666f1672231410e Mon Sep 17 00:00:00 2001 From: electrovir Date: Tue, 22 Feb 2022 21:17:48 -0700 Subject: [PATCH] include init in functional element output --- package-lock.json | 4 ++-- package.json | 2 +- src/functional-element/define-functional-element.ts | 2 ++ src/functional-element/functional-element.ts | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6410ccd5..1b29483b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "element-vir", - "version": "4.1.2", + "version": "4.1.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "element-vir", - "version": "4.1.2", + "version": "4.1.3", "license": "MIT", "dependencies": { "augment-vir": "^1.5.1", diff --git a/package.json b/package.json index 0ce91a25..a9c7f8e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "element-vir", - "version": "4.1.2", + "version": "4.1.3", "keywords": [ "custom", "web", diff --git a/src/functional-element/define-functional-element.ts b/src/functional-element/define-functional-element.ts index 2081cd76..c41fd00a 100644 --- a/src/functional-element/define-functional-element.ts +++ b/src/functional-element/define-functional-element.ts @@ -34,6 +34,8 @@ export function defineFunctionalElement< ); } + public static initInput = functionalElementInit; + public static readonly events: ExtraStaticFunctionalElementProperties< PropertyInitGeneric, EventsInitGeneric diff --git a/src/functional-element/functional-element.ts b/src/functional-element/functional-element.ts index c2abc74e..aef2c079 100644 --- a/src/functional-element/functional-element.ts +++ b/src/functional-element/functional-element.ts @@ -53,6 +53,7 @@ export type ExtraStaticFunctionalElementProperties< renderCallback: RenderCallback; events: EventDescriptorMap; props: ElementPropertyDescriptorMap; + initInput: FunctionalElementInit; /** * Static properties have to be copied here cause they get nuked in the "new () =>