replaywebpage 2.2.0 → 2.2.2

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.
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ class Le extends Ce{constructor(e){if(super(e),this.it=J,e.type!==Se)throw Error
66
66
  * Copyright 2017 Google LLC
67
67
  * SPDX-License-Identifier: BSD-3-Clause
68
68
  */
69
- class Ie extends Le{}Ie.directiveName="unsafeSVG",Ie.resultType=2;const Ee=ze(Ie),Pe="important",De=" !"+Pe,Te=ze(class extends Ce{constructor(e){if(super(e),e.type!==$e||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const o=e[i];return null==o?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const o=t[e];if(null!=o){this.ft.add(e);const t="string"==typeof o&&o.endsWith(De);e.includes("-")||t?i.setProperty(e,t?o.slice(0,-11):o,t?Pe:""):i[e]=o}}return Q}});var Fe,Re=__webpack_require__(989);const Me="./w/api",Ue="./w",Oe=c(Re.A);function Be(e){return[Oe,e]}const Ne=window.IS_APP||(null===(Fe=window.electron)||void 0===Fe?void 0:Fe.IS_APP)||window.matchMedia("(display-mode: standalone)").matches,je="2.2.0";function qe(e){" "==e.key&&(e.preventDefault(),e.target.click())}function He(e){const t=document.querySelector("head"),i=document.querySelectorAll("link[rel*='icon']");for(const e of i)t.removeChild(e);for(const i of e.icons){const e=document.createElement("link");e.rel=i.rel,e.href=i.href,t.appendChild(e)}}class We extends fe{constructor(){super(),this.size="1.1em",this.width=null,this.height=null}static get properties(){return{svg:{type:String},size:{type:String},width:{type:String},height:{type:String}}}static get styles(){return d`
69
+ class Ie extends Le{}Ie.directiveName="unsafeSVG",Ie.resultType=2;const Ee=ze(Ie),Pe="important",De=" !"+Pe,Te=ze(class extends Ce{constructor(e){if(super(e),e.type!==$e||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const o=e[i];return null==o?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const o=t[e];if(null!=o){this.ft.add(e);const t="string"==typeof o&&o.endsWith(De);e.includes("-")||t?i.setProperty(e,t?o.slice(0,-11):o,t?Pe:""):i[e]=o}}return Q}});var Fe,Re=__webpack_require__(989);const Me="./w/api",Ue="./w",Oe=c(Re.A);function Be(e){return[Oe,e]}const Ne=window.IS_APP||(null===(Fe=window.electron)||void 0===Fe?void 0:Fe.IS_APP)||window.matchMedia("(display-mode: standalone)").matches,je="2.2.2";function qe(e){" "==e.key&&(e.preventDefault(),e.target.click())}function He(e){const t=document.querySelector("head"),i=document.querySelectorAll("link[rel*='icon']");for(const e of i)t.removeChild(e);for(const i of e.icons){const e=document.createElement("link");e.rel=i.rel,e.href=i.href,t.appendChild(e)}}class We extends fe{constructor(){super(),this.size="1.1em",this.width=null,this.height=null}static get properties(){return{svg:{type:String},size:{type:String},width:{type:String},height:{type:String}}}static get styles(){return d`
70
70
  :host {
71
71
  display: inline-block;
72
72
  padding: 0;
@@ -1559,13 +1559,11 @@ function*(e,t){if(void 0!==e){let i=0;for(const o of e)yield t(o,i++)}}(e.resour
1559
1559
  `}renderItemInfo(e){return Y`<wr-item-info .item=${e}></wr-item-info>`}renderEmpty(){return Y`
1560
1560
  <p>
1561
1561
  Don't have any web archives yet? Check out
1562
- <a
1563
- href="https://chrome.google.com/webstore/detail/webrecorder-archivewebpag/fpeoodllldobpkbkabpblcfaogecpndd"
1564
- target="_blank"
1562
+ <a href="https://webrecorder.net/archivewebpage" target="_blank"
1565
1563
  >ArchiveWeb.page</a
1566
1564
  >
1567
1565
  to save pages as you browse the web, or
1568
- <a href="https://browsertrix.com" target="_blank"
1566
+ <a href="https://webrecorder.net/browsertrix" target="_blank"
1569
1567
  >sign up for Browsertrix</a
1570
1568
  >
1571
1569
  to archive entire websites with automated crawling!