web-component-wrapper 0.0.426 → 0.0.427

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.d.ts +8 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import ReactWebImport from './React';
4
4
  import WebImport from './Web';
5
5
  import { AttributesReflectionConfiguration, ComponentType, EventToPropertyMapping, PropertiesConfiguration, WebComponentAPI, WebComponentConfiguration } from './type';
6
6
  export declare const ReactWeb: typeof ReactWebImport;
7
- export declare const reactWebAPI: WebComponentAPI<HTMLElement, Mapping<unknown>, import("./type").ReactComponentBaseProperties<HTMLElement>, typeof ReactWebImport>;
8
- export declare const webAPI: WebComponentAPI<HTMLElement, Mapping<unknown>, Mapping<unknown>, typeof WebImport>;
7
+ export declare const reactWebAPI: WebComponentAPI<HTMLElement, Mapping<unknown, string>, import("./type").ReactComponentBaseProperties<HTMLElement>, typeof ReactWebImport>;
8
+ export declare const webAPI: WebComponentAPI<HTMLElement, Mapping<unknown, string>, Mapping<unknown, string>, typeof WebImport>;
9
9
  export declare const Web: typeof WebImport;
10
10
  /**
11
11
  * Wraps given react component as web component.
@@ -16,14 +16,14 @@ export declare const Web: typeof WebImport;
16
16
  *
17
17
  * @returns Generated object to register and retrieve generated web component.
18
18
  */
19
- export declare const wrapAsWebComponent: <Type extends ComponentType<Mapping<unknown>> = ComponentType<Mapping<unknown>>, ExternalProperties extends Mapping<unknown> = Mapping<unknown>, InternalProperties extends Mapping<unknown> = Mapping<unknown>, EventParameters extends unknown[] = unknown[]>(component: Type, nameHint?: string, configuration?: WebComponentConfiguration<ExternalProperties, InternalProperties, EventParameters>) => WebComponentAPI<Type, ExternalProperties, InternalProperties, {
19
+ export declare const wrapAsWebComponent: <Type extends ComponentType<Mapping<unknown, string>> = ComponentType<Mapping<unknown, string>>, ExternalProperties extends Mapping<unknown, string> = Mapping<unknown, string>, InternalProperties extends Mapping<unknown, string> = Mapping<unknown, string>, EventParameters extends unknown[] = unknown[]>(component: Type, nameHint?: string, configuration?: WebComponentConfiguration<ExternalProperties, InternalProperties, EventParameters>) => WebComponentAPI<Type, ExternalProperties, InternalProperties, {
20
20
  new (): ReactWebImport<Type, ExternalProperties, InternalProperties>;
21
21
  attachWebComponentAdapterIfNotExists: boolean;
22
- content: string | ComponentType<Mapping<unknown>>;
22
+ content: string | ComponentType<Mapping<unknown, string>>;
23
23
  react: typeof import("react");
24
24
  _name: string;
25
25
  isReactComponent(domNode: Node): boolean;
26
- removeKnownUnwantedPropertyKeys(target: typeof ReactWebImport, properties: Mapping<unknown>): void;
26
+ removeKnownUnwantedPropertyKeys(target: typeof ReactWebImport, properties: Mapping<unknown, string>): void;
27
27
  applyRootBinding: boolean;
28
28
  determineRootBinding: boolean;
29
29
  shadowDOM: boolean | {
@@ -32,8 +32,8 @@ export declare const wrapAsWebComponent: <Type extends ComponentType<Mapping<unk
32
32
  } | null;
33
33
  observedAttributes: string[];
34
34
  controllableProperties: string[];
35
- eventToPropertyMapping: EventToPropertyMapping<Mapping<unknown>, Mapping<unknown>, unknown[]> | null;
36
- propertyAliases: Mapping<string>;
35
+ eventToPropertyMapping: EventToPropertyMapping<Mapping<unknown, string>, Mapping<unknown, string>, unknown[]> | null;
36
+ propertyAliases: Mapping<string, string>;
37
37
  propertyTypes: PropertiesConfiguration;
38
38
  propertiesToReflectAsAttributes: AttributesReflectionConfiguration;
39
39
  renderProperties: string[];
@@ -42,7 +42,7 @@ export declare const wrapAsWebComponent: <Type extends ComponentType<Mapping<unk
42
42
  renderSlots: boolean;
43
43
  trimSlots: boolean;
44
44
  renderUnsafe: boolean;
45
- _propertyAliasIndex: Mapping<string> | undefined;
45
+ _propertyAliasIndex: Mapping<string, string> | undefined;
46
46
  _propertiesToReflectAsAttributes: import("./type").NormalizedAttributesReflectionConfiguration;
47
47
  replaceDomNodes(domNode: HTMLElement, children: Node | Node[]): void;
48
48
  unwrapDomNode(domNode: HTMLElement): ChildNode[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-wrapper",
3
- "version": "0.0.426",
3
+ "version": "0.0.427",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",