Skip to content

Commit 71d4c91

Browse files
committed
Merge branch 'main' into update-jsx-types-messaging
2 parents c4bcf85 + 3da36e4 commit 71d4c91

File tree

14 files changed

+33
-12
lines changed

14 files changed

+33
-12
lines changed

demo/lit-app/custom-elements-svelte.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export type CustomElements = {
147147
* ### **CSS Parts:**
148148
* - **radio-label** - Applies custom styles the radio group label
149149
*/
150-
"radio-group": Partial<RadioGroupProps | BaseProps | BaseEvents>;
150+
"radio-group": Partial<RadioGroupProps & BaseProps & BaseEvents>;
151151

152152
/**
153153
* Radio buttons allow users to select a single option from a group. Here is its [documentation](https://my-site.com/documentation).
@@ -162,7 +162,7 @@ export type CustomElements = {
162162
* ### **Slots:**
163163
* - _default_ - add text here to label your radio button
164164
*/
165-
"radio-button": Partial<RadioButtonProps | BaseProps | BaseEvents>;
165+
"radio-button": Partial<RadioButtonProps & BaseProps & BaseEvents>;
166166

167167
/**
168168
* @deprecated An example of a deprecated element
@@ -172,7 +172,7 @@ export type CustomElements = {
172172
*
173173
*/
174174
"deprecated-element": Partial<
175-
DeprecatedElementProps | BaseProps | BaseEvents
175+
DeprecatedElementProps & BaseProps & BaseEvents
176176
>;
177177

178178
/**
@@ -181,7 +181,7 @@ export type CustomElements = {
181181
* ---
182182
*
183183
*/
184-
"my-button": Partial<MyButtonProps | BaseProps | BaseEvents>;
184+
"my-button": Partial<MyButtonProps & BaseProps & BaseEvents>;
185185
};
186186

187187
declare namespace svelteHTML {

packages/jsx-integration/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# CHANGELOG
22

3-
## 1.5.3
3+
## 1.5.4
44

55
- Updated messaging in `README.md` for react wrappers
66

7+
## 1.5.3
8+
9+
- Updated to use intersection types rather than union types
10+
711
## 1.5.2
812

913
- Fixed async file output

packages/jsx-integration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "custom-element-jsx-integration",
3-
"version": "1.5.3",
3+
"version": "1.5.4",
44
"description": "Tools for integrating custom elements into JSX projects",
55
"main": "index.js",
66
"module": "index.js",

packages/react-wrappers/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.6.8
4+
5+
- Updated to import `React` in types
6+
37
## 1.6.7
48

59
- Fixed binding for custom event listener

packages/react-wrappers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "custom-element-react-wrappers",
3-
"version": "1.6.7",
3+
"version": "1.6.8",
44
"description": "A tool for generating react-compatible wrappers for custom elements",
55
"main": "index.js",
66
"module": "index.js",

packages/react-wrappers/src/wrapper-generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ function getTypeDefinitionTemplate(
423423
const eventTypes = getCustomEventTypes(component);
424424

425425
return `
426+
import React from "react";
426427
import {
427428
${config.defaultExport ? "default" : component.name} as ${
428429
component.name

packages/solidjs-integration/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.8.2
4+
5+
- Updated to use intersection types rather than union types
6+
37
## 1.8.1
48

59
- Fixed async file output

packages/solidjs-integration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "custom-element-solidjs-integration",
3-
"version": "1.8.1",
3+
"version": "1.8.2",
44
"description": "Tools for integrating custom elements into SolidJS",
55
"main": "index.js",
66
"module": "index.js",

packages/solidjs-integration/src/type-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ ${components
216216
*/
217217
"${options.prefix}${component.tagName}${options.suffix}": Partial<${
218218
component.name
219-
}Props | BaseProps | BaseEvents>;`;
219+
}Props & BaseProps & BaseEvents>;`;
220220
})
221221
.join("\n")}
222222
}

packages/svelte-integration/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.1.2
4+
5+
- Updated to use intersection types rather than union types
6+
37
## 1.1.1
48

59
- Fixed async file output

0 commit comments

Comments
 (0)