web-component-wrapper 0.0.565 → 0.0.566
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.
- package/Web.d.ts +9 -7
- package/package.json +1 -1
- package/type.d.ts +5 -0
package/Web.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger, Mapping } from 'clientnode';
|
|
2
|
-
import { AttributesReflectionConfiguration, CompiledDomNodeTemplateItem, CompilerOptions, ComponentAdapter, DomNodeToCompiledTemplateMap, EventCallbackMapping, EventToPropertyMapping, NormalizedAttributesReflectionConfiguration, PropertiesConfiguration, ScopeDeclaration, WebComponentAPI } from './type';
|
|
2
|
+
import { AttributesReflectionConfiguration, CompiledDomNodeTemplateItem, CompilerOptions, ComponentAdapter, DomNodeToCompiledTemplateMap, EventCallbackMapping, EventToPropertyMapping, NormalizedAttributesReflectionConfiguration, PropertiesConfiguration, RenderState, ScopeDeclaration, WebComponentAPI } from './type';
|
|
3
3
|
export declare const log: Logger;
|
|
4
4
|
export declare const GenericHTMLElement: typeof HTMLElement;
|
|
5
5
|
/**
|
|
@@ -39,7 +39,13 @@ export declare const GenericHTMLElement: typeof HTMLElement;
|
|
|
39
39
|
* @property _propertiesToReflectAsAttributes - A mapping of property names to
|
|
40
40
|
* set as attributes when they are set/updated. Uses a map to hold order and
|
|
41
41
|
* determine if a property exists in constant runtime.
|
|
42
|
-
* @property
|
|
42
|
+
* @property renderState - Holds data about currently running render state.
|
|
43
|
+
* @property renderState.promise - Promise resolving when next rendering has
|
|
44
|
+
* been finished.
|
|
45
|
+
* @property renderState.pending - Indicates whether a rendering task is
|
|
46
|
+
* performing.
|
|
47
|
+
* @property renderState.resolve - Callback to trigger when rendering has been
|
|
48
|
+
* finished.
|
|
43
49
|
* @property batchAttributeUpdates - Indicates whether to directly update dom
|
|
44
50
|
* after each attribute mutation or to wait and batch mutations after current
|
|
45
51
|
* queue has been finished.
|
|
@@ -101,11 +107,7 @@ export declare class Web<TElement = HTMLElement, ExternalProperties extends Mapp
|
|
|
101
107
|
static _name: string;
|
|
102
108
|
static _propertyAliasIndex?: Mapping;
|
|
103
109
|
static _propertiesToReflectAsAttributes?: NormalizedAttributesReflectionConfiguration;
|
|
104
|
-
renderState:
|
|
105
|
-
promise: null | Promise<string>;
|
|
106
|
-
pending: boolean;
|
|
107
|
-
resolve: (reason: string) => void;
|
|
108
|
-
};
|
|
110
|
+
renderState: RenderState;
|
|
109
111
|
batchAttributeUpdates: boolean;
|
|
110
112
|
batchPropertyUpdates: boolean;
|
|
111
113
|
batchUpdates: boolean;
|
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import { Mapping, TemplateFunction, ValueOf } from 'clientnode';
|
|
|
2
2
|
import PropertyTypes, { ValidationMap } from 'clientnode/property-types';
|
|
3
3
|
import React, { ComponentType as ReactComponentType, HTMLAttributes, ReactElement } from 'react';
|
|
4
4
|
import Web from './Web';
|
|
5
|
+
export interface RenderState {
|
|
6
|
+
promise: null | Promise<string>;
|
|
7
|
+
pending: boolean;
|
|
8
|
+
resolve: (reason: string) => void;
|
|
9
|
+
}
|
|
5
10
|
export interface CompilerOptions {
|
|
6
11
|
filter?: (domNode: Node) => boolean;
|
|
7
12
|
ignoreComponents?: boolean;
|