web-component-wrapper 0.0.337 → 0.0.338
Sign up to get free protection for your applications and to get access to all the features.
- package/React.d.ts +2 -2
- package/index.d.ts +2 -1
- package/package.json +1 -1
- package/type.d.ts +2 -2
package/React.d.ts
CHANGED
@@ -23,9 +23,9 @@ export declare class ReactWeb<TElement = HTMLElement> extends Web<TElement> {
|
|
23
23
|
static content: ComponentType | string;
|
24
24
|
static react: typeof React;
|
25
25
|
static _name: string;
|
26
|
-
compiledSlots: Mapping<ReactRenderItemsFactory> & {
|
26
|
+
compiledSlots: (Mapping<ReactRenderItemsFactory> & {
|
27
27
|
children?: ReactRenderItemsFactory;
|
28
|
-
};
|
28
|
+
});
|
29
29
|
preparedSlots: Mapping<ReactRenderItems> & {
|
30
30
|
children?: ReactRenderItems;
|
31
31
|
};
|
package/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Mapping } from 'clientnode/type';
|
1
2
|
import ReactWebImport from './React';
|
2
3
|
import WebImport from './Web';
|
3
4
|
import { ComponentType, WebComponentAPI, WebComponentConfiguration } from './type';
|
@@ -14,5 +15,5 @@ export declare const Web: typeof WebImport;
|
|
14
15
|
*
|
15
16
|
* @returns Generated object to register and retrieve generated web component.
|
16
17
|
*/
|
17
|
-
export declare const wrapAsWebComponent: <Type extends ComponentType = ComponentType
|
18
|
+
export declare const wrapAsWebComponent: <Type extends ComponentType = ComponentType, ExternalPropertiesType = Mapping<unknown>, InternalPropertiesType = Mapping<unknown>>(component: Type, nameHint?: string, configuration?: WebComponentConfiguration<ExternalPropertiesType, InternalPropertiesType>) => WebComponentAPI;
|
18
19
|
export default wrapAsWebComponent;
|
package/package.json
CHANGED
package/type.d.ts
CHANGED
@@ -26,10 +26,10 @@ export declare type ReactRenderItemsFactory = Array<ReactRenderItemFactory> | Re
|
|
26
26
|
export declare type ReactRenderBaseItem = ReactElement | string | null;
|
27
27
|
export declare type ReactRenderItem = ((..._parameters: Array<unknown>) => ReactRenderBaseItem) | ReactRenderBaseItem;
|
28
28
|
export declare type ReactRenderItems = Array<ReactRenderItem> | ReactRenderItem;
|
29
|
-
export interface WebComponentConfiguration {
|
29
|
+
export interface WebComponentConfiguration<ExternalPropertiesType = Mapping<unknown>, InternalPropertiesType = Mapping<unknown>> {
|
30
30
|
attachWebComponentAdapterIfNotExists?: boolean;
|
31
31
|
controllableProperties?: Array<string>;
|
32
|
-
eventToPropertyMapping?: EventToPropertyMapping
|
32
|
+
eventToPropertyMapping?: EventToPropertyMapping<ExternalPropertiesType, InternalPropertiesType>;
|
33
33
|
internalProperties?: Mapping<unknown>;
|
34
34
|
propertiesToReflectAsAttributes?: AttributesReflectionConfiguration;
|
35
35
|
propertyAliases?: Mapping;
|