Skip to content

Commit 48026cf

Browse files
committed
Fixes #152
1 parent 6ee05f5 commit 48026cf

19 files changed

Lines changed: 166 additions & 125 deletions

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,20 @@ import '@khmyznikov/pwa-install';
8585
## Supported params
8686
```html
8787
<pwa-install
88-
manual-apple="true"
89-
manual-chrome="true"
90-
disable-chrome="true"
91-
disable-close="true"
92-
use-local-storage="true"
88+
manual-apple
89+
manual-chrome
90+
disable-chrome
91+
disable-close
92+
use-local-storage
9393

9494
install-description="Custom call to install text"
95-
disable-install-description="true"
96-
disable-screenshots="true"
97-
disable-screenshots-apple="true"
98-
disable-screenshots-chrome="true"
95+
disable-install-description
96+
disable-screenshots
97+
disable-screenshots-apple
98+
disable-screenshots-chrome
99+
manual-how-to
99100

100-
disable-android-fallback="true"
101+
disable-android-fallback
101102

102103
manifest-url="/manifest.json"
103104
name="PWA"
@@ -109,6 +110,7 @@ import '@khmyznikov/pwa-install';
109110
disable-chrome param is for completely disabling custom logic and interception for Chromium browsers (will work built-in browser logic).
110111
use-local-storage will store the user's preference to ignore the prompt in long-lived storage (so they will not be prompted again unless they clear application data)
111112
disable-android-fallback will disable instructions for non-Chrome browsers on Android
113+
manual-how-to shows the instructions right away, disabling screenshots (Apple only)
112114
--->
113115
```
114116
*Make a good manifest file and don't use name/descr/icon params. Boolean attributes needs to be removed to act like "false"*

custom-elements.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@
110110
"default": "false",
111111
"attribute": "manual-chrome"
112112
},
113+
{
114+
"kind": "field",
115+
"name": "manualHowTo",
116+
"type": {
117+
"text": "boolean"
118+
},
119+
"default": "false",
120+
"attribute": "manual-how-to"
121+
},
113122
{
114123
"kind": "field",
115124
"name": "disableChrome",
@@ -406,6 +415,14 @@
406415
"default": "false",
407416
"fieldName": "manualChrome"
408417
},
418+
{
419+
"name": "manual-how-to",
420+
"type": {
421+
"text": "boolean"
422+
},
423+
"default": "false",
424+
"fieldName": "manualHowTo"
425+
},
409426
{
410427
"name": "disable-chrome",
411428
"type": {

dist/pwa-install.bundle.js

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 20 additions & 20 deletions
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

Lines changed: 21 additions & 21 deletions
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
@@ -12,6 +12,7 @@ export declare class PWAInstallElement extends LitElement {
1212
disableScreenshotsChrome: boolean;
1313
manualApple: boolean;
1414
manualChrome: boolean;
15+
manualHowTo: boolean;
1516
disableChrome: boolean;
1617
disableClose: boolean;
1718
disableFallback: boolean;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { WebAppManifest } from 'web-app-manifest';
2-
declare const template: (name: string, description: string, installDescription: string, disableDescription: boolean, disableScreenshots: boolean, disableClose: boolean, icon: string, manifest: WebAppManifest, installAvailable: any, hideDialog: any, howToForApple: any, howToRequested: boolean, toggleGallery: any, galleryRequested: boolean, isRTL?: boolean, isApple26Plus?: boolean, isDesktop?: boolean, customStyles?: Record<string, string>) => import("lit").TemplateResult<1>;
2+
declare const template: (name: string, description: string, installDescription: string, disableDescription: boolean, disableScreenshots: boolean, disableClose: boolean, manualHowTo: boolean | undefined, icon: string, manifest: WebAppManifest, installAvailable: any, hideDialog: any, howToForApple: any, howToRequested: boolean, toggleGallery: any, galleryRequested: boolean, isRTL?: boolean, isApple26Plus?: boolean, isDesktop?: boolean, customStyles?: Record<string, string>) => import("lit").TemplateResult<1>;
33
export default template;

0 commit comments

Comments
 (0)