element-vir 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,11 +16,11 @@ export function defineFunctionalElement(functionalElementInit) {
16
16
  static renderCallback = functionalElementInit.renderCallback;
17
17
  static props = createPropertyDescriptorMap(functionalElementInit.props);
18
18
  initCalled = false;
19
- async render() {
19
+ render() {
20
20
  const renderParams = this.createRenderParams();
21
21
  if (!this.initCalled && functionalElementInit.initCallback) {
22
22
  this.initCalled = true;
23
- await functionalElementInit.initCallback(renderParams);
23
+ functionalElementInit.initCallback(renderParams);
24
24
  }
25
25
  return functionalElementInit.renderCallback(renderParams);
26
26
  }
@@ -3,8 +3,8 @@ import { TypedEvent } from '../typed-event/typed-event';
3
3
  import { EventDescriptorMap, EventInitMapEventDetailExtractor, EventsInitMap } from './element-events';
4
4
  import { PropertyInitMapBase } from './element-properties';
5
5
  import { FunctionalElementInstance } from './functional-element';
6
- export declare type RenderCallback<PropertyInitGeneric extends PropertyInitMapBase, EventsInitGeneric extends EventsInitMap> = (params: RenderParams<PropertyInitGeneric, EventsInitGeneric>) => TemplateResult | Promise<TemplateResult>;
7
- export declare type InitCallback<PropertyInitGeneric extends PropertyInitMapBase, EventsInitGeneric extends EventsInitMap> = (params: RenderParams<PropertyInitGeneric, EventsInitGeneric>) => void | Promise<void>;
6
+ export declare type RenderCallback<PropertyInitGeneric extends PropertyInitMapBase, EventsInitGeneric extends EventsInitMap> = (params: RenderParams<PropertyInitGeneric, EventsInitGeneric>) => TemplateResult;
7
+ export declare type InitCallback<PropertyInitGeneric extends PropertyInitMapBase, EventsInitGeneric extends EventsInitMap> = (params: RenderParams<PropertyInitGeneric, EventsInitGeneric>) => void;
8
8
  export declare type RenderParams<PropertyInitGeneric extends PropertyInitMapBase, EventsInitGeneric extends EventsInitMap> = {
9
9
  props: PropertyInitGeneric;
10
10
  events: EventDescriptorMap<EventsInitGeneric>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-vir",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "keywords": [
5
5
  "custom",
6
6
  "web",