Skip to content

Commit 898cb09

Browse files
committed
trying to solve jsx problems
1 parent 71596c6 commit 898cb09

File tree

14 files changed

+62
-8
lines changed

14 files changed

+62
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ package-lock.json
77
.npm
88
.eslintcache
99
.idea/
10+
.DS_Store

custom-elements.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,14 @@
479479
"name": "PWAInstallAttributes",
480480
"module": "src/index.ts"
481481
}
482+
},
483+
{
484+
"kind": "js",
485+
"name": "PWAInstallProps",
486+
"declaration": {
487+
"name": "PWAInstallProps",
488+
"module": "./types/jsx"
489+
}
482490
}
483491
]
484492
}

dist/pwa-install.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pwa-install.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-legacy/pwa-install.react-legacy.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ export declare class PWAInstallElement extends LitElement {
5353
render(): import("lit").TemplateResult<1>;
5454
}
5555
export { PWAInstallAttributes };
56+
export type { PWAInstallProps } from './types/jsx';

dist/types/types/jsx.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { PWAInstallElement } from '../index';
2+
import type { PWAInstallAttributes } from './types';
3+
export type PWAInstallProps = Partial<PWAInstallElement> & PWAInstallAttributes & React.HTMLAttributes<HTMLElement> & {
4+
children?: React.ReactNode;
5+
};
6+
declare global {
7+
namespace JSX {
8+
interface IntrinsicElements {
9+
'pwa-install': PWAInstallProps;
10+
}
11+
}
12+
namespace React.JSX {
13+
interface IntrinsicElements {
14+
'pwa-install': PWAInstallProps;
15+
}
16+
}
17+
}
18+
export {};

dist/umd/pwa-install.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/service-worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@khmyznikov/pwa-install",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "PWA install dialog provide more convenience user experience and fix lack of native dialogs in some browsers.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)