@khmyznikov/pwa-install
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ ## Contributor guidelines |
@@ -16,3 +16,3 @@ import { LitElement } from 'lit'; | ||
connectedCallback(): void; | ||
render(): import("lit-html").TemplateResult<1>; | ||
render(): import("lit").TemplateResult<1>; | ||
} |
import { WebAppManifest } from 'web-app-manifest'; | ||
declare const template: (screenshots: WebAppManifest["screenshots"], theme: string, scrollToNextPage: any, scrollToPrevPage: any) => import("lit-html").TemplateResult<1>; | ||
declare const template: (screenshots: WebAppManifest["screenshots"], theme: string, scrollToNextPage: any, scrollToPrevPage: any) => import("lit").TemplateResult<1>; | ||
export default template; |
@@ -44,4 +44,4 @@ import { LitElement, PropertyValues } from 'lit'; | ||
willUpdate(changedProperties: PropertyValues<this>): void; | ||
render(): import("lit-html").TemplateResult<1>; | ||
render(): import("lit").TemplateResult<1>; | ||
} | ||
export { PWAInstallAttributes }; |
import { WebAppManifest } from 'web-app-manifest'; | ||
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, isDesktop: boolean, howToRequested: boolean, toggleGallery: any, galleryRequested: boolean) => import("lit-html").TemplateResult<1>; | ||
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, isDesktop: boolean, howToRequested: boolean, toggleGallery: any, galleryRequested: boolean) => import("lit").TemplateResult<1>; | ||
export default template; |
@@ -24,4 +24,4 @@ import { LitElement } from 'lit'; | ||
connectedCallback(): void; | ||
render(): import("lit-html").TemplateResult<1>; | ||
render(): import("lit").TemplateResult<1>; | ||
} | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
declare const template: (name: string, description: string, icon: string, install: any) => import("lit-html").TemplateResult<1>; | ||
declare const template: (name: string, description: string, icon: string, install: any) => import("lit").TemplateResult<1>; | ||
export default template; |
import { WebAppManifest } from 'web-app-manifest'; | ||
declare const template: (name: string, description: string, installDescription: string, disableDescription: boolean, disableScreenshots: boolean, disableClose: boolean, icon: string, manifest: WebAppManifest, installAvailable: any, hideDialog: any, install: any, toggleGallery: any, galleryRequested: boolean) => import("lit-html").TemplateResult<1>; | ||
declare const template: (name: string, description: string, installDescription: string, disableDescription: boolean, disableScreenshots: boolean, disableClose: boolean, icon: string, manifest: WebAppManifest, installAvailable: any, hideDialog: any, install: any, toggleGallery: any, galleryRequested: boolean) => import("lit").TemplateResult<1>; | ||
export default template; |
@@ -0,0 +0,0 @@ { |
@@ -1,1 +0,1 @@ | ||
var cacheName="PWAinstallDemo-9.8.2024/13:51:13",filesToCache=["/pwa-install/","manifest.json"];function sendMessage(e,n){return new Promise((function(t,s){var a=new MessageChannel;e.postMessage(n,[a.port2])}))}function sendMessageToAll(e,n){clients.matchAll().then((t=>{t.forEach((n=>{sendMessage(n,e)})),n&&"function"==typeof n&&n()}))}self.addEventListener("install",(function(e){e.waitUntil(caches.open(cacheName).then((function(e){return e.addAll(filesToCache)}))),self.skipWaiting()})),self.addEventListener("activate",(function(e){return e.waitUntil(caches.keys().then((function(e){return Promise.all(e.map((function(e){if(e!==cacheName)return sendMessageToAll("NEW_VERSION"),caches.delete(e)})))}))),self.clients.claim()})),self.addEventListener("fetch",(function(e){e.respondWith(caches.match(e.request,{ignoreSearch:!0}).then((function(n){return n||fetch(e.request)})))})),self.addEventListener("message",(e=>{e&&e.data&&e.data.message})); | ||
var cacheName="PWAinstallDemo-24.9.2024/23:0:49",filesToCache=["/pwa-install/","manifest.json"];function sendMessage(e,n){return new Promise((function(t,s){var a=new MessageChannel;e.postMessage(n,[a.port2])}))}function sendMessageToAll(e,n){clients.matchAll().then((t=>{t.forEach((n=>{sendMessage(n,e)})),n&&"function"==typeof n&&n()}))}self.addEventListener("install",(function(e){e.waitUntil(caches.open(cacheName).then((function(e){return e.addAll(filesToCache)}))),self.skipWaiting()})),self.addEventListener("activate",(function(e){return e.waitUntil(caches.keys().then((function(e){return Promise.all(e.map((function(e){if(e!==cacheName)return sendMessageToAll("NEW_VERSION"),caches.delete(e)})))}))),self.clients.claim()})),self.addEventListener("fetch",(function(e){e.respondWith(caches.match(e.request,{ignoreSearch:!0}).then((function(n){return n||fetch(e.request)})))})),self.addEventListener("message",(e=>{e&&e.data&&e.data.message})); |
@@ -0,0 +0,0 @@ { |
{ | ||
"name": "@khmyznikov/pwa-install", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "PWA install dialog provide more convenience user experience and fix lack of native dialogs in some browsers.", | ||
@@ -51,3 +51,3 @@ "repository": { | ||
"@lit/localize": "^0.12.2", | ||
"@lit/localize-tools": "^0.7.2", | ||
"@lit/localize-tools": "^0.8.0", | ||
"@types/node": "^20.14.10", | ||
@@ -67,3 +67,3 @@ "autoprefixer": "^10.4.19", | ||
"sass": "^1.77.8", | ||
"sass-loader": "^14.2.1", | ||
"sass-loader": "^16.0.2", | ||
"terser-webpack-plugin": "^5.3.10", | ||
@@ -70,0 +70,0 @@ "ts-loader": "9.5.1", |
@@ -0,0 +0,0 @@ [](https://www.npmjs.com/package/@khmyznikov/pwa-install) |
@@ -0,0 +0,0 @@ import { LitElement, html } from 'lit'; |
@@ -0,0 +0,0 @@ import { html } from 'lit'; |
@@ -0,0 +0,0 @@ import { LitElement, PropertyValues, html } from 'lit'; |
@@ -0,0 +0,0 @@ import { configureLocalization } from '@lit/localize'; |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ import { html } from 'lit'; |
@@ -0,0 +0,0 @@ export default class TouchDragListener { |
@@ -0,0 +0,0 @@ import { ImageResource } from 'web-app-manifest'; |
@@ -50,3 +50,3 @@ import { WebAppManifest } from 'web-app-manifest'; | ||
try{ | ||
await (navigator as any).getInstalledRelatedApps().then((relatedApps: IRelatedApp[]) => { | ||
return await (navigator as any).getInstalledRelatedApps().then((relatedApps: IRelatedApp[]) => { | ||
return relatedApps; | ||
@@ -53,0 +53,0 @@ }); |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ import express from 'express'; |
@@ -0,0 +0,0 @@ var cacheName = 'PWAinstallDemo-' + BUILD_TIMESTAMP; |
@@ -0,0 +0,0 @@ import path, { resolve } from 'path'; |
@@ -0,0 +0,0 @@ import common from './webpack.common.js'; |
@@ -0,0 +0,0 @@ import common from "./webpack.common.js"; |
@@ -0,0 +0,0 @@ import prod from './webpack.prod.js'; |
@@ -0,0 +0,0 @@ import prod from './webpack.prod.js'; |
@@ -0,0 +0,0 @@ import prod from './webpack.prod.js'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1763965