web-component-wrapper 0.0.485 → 0.0.486

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/index.d.ts +2 -35
  2. package/package.json +10 -10
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.485",
3
+ "version": "0.0.486",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
@@ -73,25 +73,25 @@
73
73
  "@types/ejs": "^3.1.5",
74
74
  "@types/html-minifier": "^4.0.5",
75
75
  "@types/jsdom": "^21.1.6",
76
- "@types/node": "^20.11.24",
77
- "@types/react": "^18.2.63",
78
- "@types/react-dom": "^18.2.20",
76
+ "@types/node": "^20.11.27",
77
+ "@types/react": "^18.2.65",
78
+ "@types/react-dom": "^18.2.22",
79
79
  "@types/webpack-env": "^1.18.4",
80
- "@typescript-eslint/eslint-plugin": "^7.1.1",
81
- "@typescript-eslint/parser": "^7.1.1",
80
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
81
+ "@typescript-eslint/parser": "^7.2.0",
82
82
  "@webcomponents/webcomponentsjs": "^2.8.0",
83
- "clientnode": "^3.0.1138",
83
+ "clientnode": "^3.0.1140",
84
84
  "documentation-website": "^1.0.326",
85
85
  "eslint": "^8.57.0",
86
86
  "eslint-config-google": "^0.14.0",
87
- "eslint-plugin-jsdoc": "^48.2.0",
87
+ "eslint-plugin-jsdoc": "^48.2.1",
88
88
  "jest": "^29.7.0",
89
89
  "jsdoc": "^4.0.2",
90
90
  "prop-types": "^15.8.1",
91
91
  "react": "^18.2.0",
92
92
  "react-dom": "^18.2.0",
93
- "weboptimizer": "^2.0.1453",
94
- "webpack-dev-server": "^5.0.2"
93
+ "weboptimizer": "^2.0.1457",
94
+ "webpack-dev-server": "^5.0.3"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "@babel/runtime": "*",