web-component-wrapper 0.0.332 → 0.0.337

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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/type.d.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-wrapper",
3
- "version": "0.0.332",
3
+ "version": "0.0.337",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
@@ -120,7 +120,8 @@
120
120
  "npm": ">=7"
121
121
  },
122
122
  "resolutions": {
123
- "@types/webpack": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.1.tgz"
123
+ "@types/webpack": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.1.tgz",
124
+ "colors": "1.4.0"
124
125
  },
125
126
  "sideEffects": false,
126
127
  "documentationWebsite": {
package/type.d.ts CHANGED
@@ -12,8 +12,8 @@ export declare type CompiledDomNodeTemplateItem = {
12
12
  export declare type CompiledDomNodeTemplate<NodeType = Node> = Map<NodeType, CompiledDomNodeTemplateItem>;
13
13
  export declare type EventCallbackMapping = Map<string, () => void>;
14
14
  export declare type EventMapping<ExternalPropertiesType = Mapping<unknown>, InternalPropertiesType = Mapping<unknown>> = [ExternalPropertiesType, InternalPropertiesType] | ExternalPropertiesType;
15
- export declare type EventMapper = (..._parameter: Array<unknown>) => EventMapping;
16
- export declare type EventToPropertyMapping = Mapping<true | EventMapper>;
15
+ export declare type EventMapper<E = Mapping<unknown>, I = Mapping<unknown>> = (..._parameter: Array<unknown>) => EventMapping<E, I>;
16
+ export declare type EventToPropertyMapping<E = Mapping<unknown>, I = Mapping<unknown>> = Mapping<true | EventMapper<E, I>>;
17
17
  export declare type AttributesReflectionConfiguration = Array<string> | Map<string, string | ValueOf<typeof PropertyTypes>> | string | Mapping<ValueOf<typeof PropertyTypes> | string>;
18
18
  export declare type ScopeDeclaration = Array<string> | Mapping<unknown>;
19
19
  export declare type PreCompiledItem = {
@@ -47,7 +47,7 @@ export interface StaticWebComponent extends WebComponentConfiguration {
47
47
  };
48
48
  }
49
49
  export declare type ComponentType = ReactComponentType & StaticWebComponent;
50
- export interface ComponentAdapter<Properties = Mapping<any>, State = Mapping<any>> {
50
+ export interface ComponentAdapter<Properties = Mapping<unknown>, State = Mapping<unknown>> {
51
51
  properties?: Properties;
52
52
  state?: State;
53
53
  }