web-component-wrapper 0.0.484 → 0.0.486

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 +2 -35
  2. package/package.json +10 -11
package/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Mapping } from 'clientnode/type';
3
2
  import ReactWebImport from './ReactWeb';
4
3
  import WebImport from './Web';
5
- import { AttributesReflectionConfiguration, ComponentType, EventToPropertyMapping, PropertiesConfiguration, WebComponentAPI, WebComponentConfiguration } from './type';
4
+ import { ComponentType, WebComponentAPI, WebComponentConfiguration } from './type';
6
5
  export declare const ReactWeb: typeof ReactWebImport;
7
6
  export declare const reactWebAPI: WebComponentAPI<HTMLElement, Mapping<unknown>, import("./type").ReactComponentBaseProperties, typeof ReactWebImport>;
8
7
  export declare const webAPI: WebComponentAPI<HTMLElement, Mapping<unknown>, Mapping<unknown>, typeof WebImport>;
@@ -16,37 +15,5 @@ export declare const Web: typeof WebImport;
16
15
  *
17
16
  * @returns Generated object to register and retrieve generated web component.
18
17
  */
19
- export declare const wrapAsWebComponent: <Type extends ComponentType = ComponentType, 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, {
20
- new (): ReactWebImport<Type, ExternalProperties, InternalProperties>;
21
- attachWebComponentAdapterIfNotExists: boolean;
22
- content: string | ComponentType;
23
- react: typeof import("react");
24
- _name: string;
25
- isReactComponent(domNode: Node): boolean;
26
- removeKnownUnwantedPropertyKeys(target: typeof ReactWebImport, properties: Mapping<unknown>): void;
27
- applyRootBinding: boolean;
28
- determineRootBinding: boolean;
29
- shadowDOM: boolean | {
30
- delegateFocus?: boolean | undefined;
31
- mode: "closed" | "open";
32
- } | null;
33
- observedAttributes: string[];
34
- controllableProperties: string[];
35
- eventToPropertyMapping: EventToPropertyMapping | null;
36
- propertyAliases: Mapping;
37
- propertyTypes: PropertiesConfiguration;
38
- propertiesToReflectAsAttributes: AttributesReflectionConfiguration;
39
- renderProperties: string[];
40
- cloneSlots: boolean;
41
- evaluateSlots: boolean;
42
- renderSlots: boolean;
43
- trimSlots: boolean;
44
- renderUnsafe: boolean;
45
- _propertyAliasIndex: Mapping | undefined;
46
- _propertiesToReflectAsAttributes: import("./type").NormalizedAttributesReflectionConfiguration;
47
- replaceDomNodes(domNode: HTMLElement, children: Node | Node[]): void;
48
- unwrapDomNode(domNode: HTMLElement): ChildNode[];
49
- hasCode(content: unknown): boolean;
50
- normalizePropertyTypeList(value: AttributesReflectionConfiguration): import("./type").NormalizedAttributesReflectionConfiguration;
51
- }>;
18
+ export declare const wrapAsWebComponent: <Type extends ComponentType = ComponentType, 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, typeof ReactWeb<Type, ExternalProperties, InternalProperties>>;
52
19
  export default wrapAsWebComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-wrapper",
3
- "version": "0.0.484",
3
+ "version": "0.0.486",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
@@ -55,7 +55,6 @@
55
55
  "clear": "weboptimizer clear",
56
56
  "document": "weboptimizer document",
57
57
  "lint": "weboptimizer lint",
58
- "postversion": "yarn publish --non-interactive; git push --tags && git push",
59
58
  "prepare": "yarn build",
60
59
  "serve": "weboptimizer serve",
61
60
  "start": "yarn serve",
@@ -74,25 +73,25 @@
74
73
  "@types/ejs": "^3.1.5",
75
74
  "@types/html-minifier": "^4.0.5",
76
75
  "@types/jsdom": "^21.1.6",
77
- "@types/node": "^20.11.24",
78
- "@types/react": "^18.2.61",
79
- "@types/react-dom": "^18.2.19",
76
+ "@types/node": "^20.11.27",
77
+ "@types/react": "^18.2.65",
78
+ "@types/react-dom": "^18.2.22",
80
79
  "@types/webpack-env": "^1.18.4",
81
- "@typescript-eslint/eslint-plugin": "^7.1.0",
82
- "@typescript-eslint/parser": "^7.1.0",
80
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
81
+ "@typescript-eslint/parser": "^7.2.0",
83
82
  "@webcomponents/webcomponentsjs": "^2.8.0",
84
- "clientnode": "^3.0.1136",
83
+ "clientnode": "^3.0.1140",
85
84
  "documentation-website": "^1.0.326",
86
85
  "eslint": "^8.57.0",
87
86
  "eslint-config-google": "^0.14.0",
88
- "eslint-plugin-jsdoc": "^48.2.0",
87
+ "eslint-plugin-jsdoc": "^48.2.1",
89
88
  "jest": "^29.7.0",
90
89
  "jsdoc": "^4.0.2",
91
90
  "prop-types": "^15.8.1",
92
91
  "react": "^18.2.0",
93
92
  "react-dom": "^18.2.0",
94
- "weboptimizer": "^2.0.1452",
95
- "webpack-dev-server": "^5.0.2"
93
+ "weboptimizer": "^2.0.1457",
94
+ "webpack-dev-server": "^5.0.3"
96
95
  },
97
96
  "peerDependencies": {
98
97
  "@babel/runtime": "*",