web-component-wrapper 0.0.357 → 0.0.360

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 +1 -1
  2. package/type.d.ts +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-wrapper",
3
- "version": "0.0.357",
3
+ "version": "0.0.360",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
package/type.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import PropertyTypes from 'clientnode/property-types';
1
+ import PropertyTypes, { ValidationMap } from 'clientnode/property-types';
2
2
  import { Mapping, TemplateFunction, ValueOf } from 'clientnode/type';
3
3
  import { ComponentType as ReactComponentType, ReactElement } from 'react';
4
4
  import Web from './Web';
@@ -18,7 +18,9 @@ export declare type EventMapping<ExternalProperties extends Mapping<unknown> = M
18
18
  export declare type EventMapper<E extends Mapping<unknown> = Mapping<unknown>, I extends Mapping<unknown> = Mapping<unknown>, P extends Array<unknown> = Array<unknown>> = (..._parameters: P) => EventMapping<E, I>;
19
19
  export declare type EventToPropertyMapping<E extends Mapping<unknown> = Mapping<unknown>, I extends Mapping<unknown> = Mapping<unknown>, P extends Array<unknown> = Array<unknown>> = Mapping<true | EventMapper<E, I, P>>;
20
20
  export declare type PropertyConfiguration = string | ValueOf<typeof PropertyTypes>;
21
- export declare type PropertiesConfiguration = Mapping<PropertyConfiguration>;
21
+ export declare type ValidationMapping = ValidationMap<ValueOf<typeof PropertyTypes>>;
22
+ export declare type PropertiesValidationMap = Mapping<ValueOf<typeof PropertyTypes>> & ValidationMapping;
23
+ export declare type PropertiesConfiguration = Mapping | PropertiesValidationMap;
22
24
  export declare type NormalizedAttributesReflectionConfiguration = Map<string, PropertyConfiguration>;
23
25
  export declare type AttributesReflectionConfiguration = (string | Array<string> | PropertiesConfiguration | NormalizedAttributesReflectionConfiguration);
24
26
  export declare type ScopeDeclaration = Array<string> | Mapping<unknown>;