@fluid-topics/ft-reader-navigation-button 1.1.25 → 1.1.26

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.
@@ -821,7 +821,7 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
821
821
  @click=${t=>this.onLinkClick(t)}>
822
822
  <slot></slot>
823
823
  </a>
824
- `}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}vr.styles=l,Or([r.property()],vr.prototype,"tocId",void 0),Or([r.property()],vr.prototype,"section",void 0),Or([r.property({type:Number})],vr.prototype,"pageNumber",void 0),Or([r.property({type:Boolean})],vr.prototype,"removeStyle",void 0),o.customElement("ft-reader-internal-link")(vr);var Nr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Sr extends xr{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new o.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?tr.THIN_ARROW_RIGHT:tr.THIN_ARROW_LEFT}render(){var t,o,r,i,n;if(null==this.targetPage&&!this.editorMode)return e.nothing;const a=e.html`
824
+ `}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}vr.styles=l,Or([r.property()],vr.prototype,"tocId",void 0),Or([r.property()],vr.prototype,"section",void 0),Or([r.property({type:Number})],vr.prototype,"pageNumber",void 0),Or([r.property({type:Boolean})],vr.prototype,"removeStyle",void 0),o.customElement("ft-reader-internal-link")(vr);var Nr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Sr extends xr{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new o.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?tr.THIN_ARROW_RIGHT:tr.THIN_ARROW_LEFT}render(){var t,o,r,i,n;if(null==this.targetPage&&!this.editorMode)return e.nothing;const a=e.html`
825
825
  <ft-button ?forceTooltip=${!this.hideTooltip}
826
826
  ?hideTooltip=${this.hideTooltip}
827
827
  ?trailingIcon=${this.trailingIcon}
@@ -952,7 +952,7 @@ class fn extends Hi{constructor(t){if(super(t),this.et=Q,t.type!==Di)throw Error
952
952
  @click=${t=>this.onLinkClick(t)}>
953
953
  <slot></slot>
954
954
  </a>
955
- `}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}Ln.styles=tr,In([C()],Ln.prototype,"tocId",void 0),In([C()],Ln.prototype,"section",void 0),In([C({type:Number})],Ln.prototype,"pageNumber",void 0),In([C({type:Boolean})],Ln.prototype,"removeStyle",void 0),I("ft-reader-internal-link")(Ln);var Wn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Kn extends kn{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new o(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?dn.THIN_ARROW_RIGHT:dn.THIN_ARROW_LEFT}render(){var t,o,e,r,i;if(null==this.targetPage&&!this.editorMode)return eo;const n=to`
955
+ `}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}Ln.styles=tr,In([C()],Ln.prototype,"tocId",void 0),In([C()],Ln.prototype,"section",void 0),In([C({type:Number})],Ln.prototype,"pageNumber",void 0),In([C({type:Boolean})],Ln.prototype,"removeStyle",void 0),I("ft-reader-internal-link")(Ln);var Wn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Kn extends kn{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new o(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?dn.THIN_ARROW_RIGHT:dn.THIN_ARROW_LEFT}render(){var t,o,e,r,i;if(null==this.targetPage&&!this.editorMode)return eo;const n=to`
956
956
  <ft-button ?forceTooltip=${!this.hideTooltip}
957
957
  ?hideTooltip=${this.hideTooltip}
958
958
  ?trailingIcon=${this.trailingIcon}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-navigation-button",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "Button used to navigate between pages in an integrated reader context.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "1.1.25",
23
- "@fluid-topics/ft-reader-context": "1.1.25",
24
- "@fluid-topics/ft-reader-internal-link": "1.1.25",
25
- "@fluid-topics/ft-tooltip": "1.1.25",
26
- "@fluid-topics/ft-wc-utils": "1.1.25",
22
+ "@fluid-topics/ft-button": "1.1.26",
23
+ "@fluid-topics/ft-reader-context": "1.1.26",
24
+ "@fluid-topics/ft-reader-internal-link": "1.1.26",
25
+ "@fluid-topics/ft-tooltip": "1.1.26",
26
+ "@fluid-topics/ft-wc-utils": "1.1.26",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "d09eebf7a9bd09694505b987bc2645eee91b47a6"
29
+ "gitHead": "6734976f5a7f6b986917a085be0c38ca3ae562a0"
30
30
  }