@fluid-topics/ft-reader-internal-link 1.1.0 → 1.1.1

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.
@@ -1,4 +1,4 @@
1
- !function(t,e,r,s,o){var n;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(n||(n={}));var i=function(t,e,r,s){for(var o,n=arguments.length,i=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s,l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,r,i):o(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const a=Symbol("registerInterval");class c extends(function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[a]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[a]):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=a,i([s.state()],r.prototype,"stateManager",void 0),r}(e.FtLitElementRedux)){}const d={outlineColor:e.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color","",e.designSystemVariables.colorPrimary)},u=r.css`
1
+ !function(t,e,r,s,o){var n;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(n||(n={}));var i=function(t,e,r,s){for(var o,n=arguments.length,i=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s,l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,r,i):o(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const a=Symbol("registerInterval");class c extends(function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[a]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[a]):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=a,i([s.state()],r.prototype,"stateManager",void 0),r}(e.FtLitElementRedux)){}const d={outlineColor:e.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color","",e.designSystemVariables.colorPrimary)},u=r.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -110,7 +110,7 @@ const Fo=1;class Bo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
110
110
  * @license
111
111
  * Copyright 2018 Google LLC
112
112
  * SPDX-License-Identifier: BSD-3-Clause
113
- */const Po=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends Bo{constructor(t){if(super(t),t.type!==Fo||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return j}});var Do;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Do||(Do={}));var zo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class _o extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const To=Symbol("registerInterval");class Go extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[To]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[To]):this.dispatchEvent(new _o)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=To,zo([R()],e.prototype,"stateManager",void 0),e}(Ao)){}const Ho={outlineColor:uo.extend("--ft-reader-internal-link-outline-color","",mo.colorPrimary)},jo=dt`
113
+ */const Po=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends Bo{constructor(t){if(super(t),t.type!==Fo||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return j}});var Do;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Do||(Do={}));var zo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class _o extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const To=Symbol("registerInterval");class Go extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[To]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[To]):this.dispatchEvent(new _o)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=To,zo([R()],e.prototype,"stateManager",void 0),e}(Ao)){}const Ho={outlineColor:uo.extend("--ft-reader-internal-link-outline-color","",mo.colorPrimary)},jo=dt`
114
114
  :host {
115
115
  display: contents;
116
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-internal-link",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Reader internal link for integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.1.0",
22
+ "@fluid-topics/ft-wc-utils": "1.1.1",
23
23
  "lit": "3.1.0"
24
24
  },
25
- "gitHead": "3f2a051fc84a0e27b942f311efee39954f6d2883"
25
+ "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
26
26
  }