@fluid-topics/ft-reader-internal-link 0.3.39 → 0.3.41

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,s,o,r){var i=function(t,e,s,o){for(var r,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(i<3?r(n):i>3?r(e,s,n):r(e,s))||n);return i>3&&n&&Object.defineProperty(e,s,n),n};class n extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class l extends(function(t){class e extends t{constructor(){super(...arguments),this.registerInterval=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerInterval=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerInterval):this.dispatchEvent(new n)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return i([o.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}const a={outlineColor:e.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color",e.designSystemVariables.colorPrimary)},c=s.css`
1
+ !function(t,e,s,o,r){var i=function(t,e,s,o){for(var r,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(i<3?r(n):i>3?r(e,s,n):r(e,s))||n);return i>3&&n&&Object.defineProperty(e,s,n),n};class n extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class l extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new n)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return i([o.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}const a={outlineColor:e.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color",e.designSystemVariables.colorPrimary)},c=s.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -94,7 +94,7 @@ const yt=1;class bt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
94
94
  * @license
95
95
  * Copyright 2018 Google LLC
96
96
  * SPDX-License-Identifier: BSD-3-Clause
97
- */const mt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends bt{constructor(t){var e;if(super(t),t.type!==yt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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((e=>t[e])).join(" ")+" "}update(t,[e]){var i,s;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const o=t.element.classList;this.nt.forEach((t=>{t in e||(o.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(s=this.st)||void 0===s?void 0:s.has(t))||(i?(o.add(t),this.nt.add(t)):(o.remove(t),this.nt.delete(t)))}return K}});var xt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class wt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class gt extends(function(t){class e extends t{constructor(){super(...arguments),this.registerInterval=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerInterval=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerInterval):this.dispatchEvent(new wt)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return xt([o()],e.prototype,"stateManager",void 0),e}(vt)){}const Ot={outlineColor:ct.extend("--ft-reader-internal-link-outline-color",ht.colorPrimary)},St=d`
97
+ */const mt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends bt{constructor(t){var e;if(super(t),t.type!==yt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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((e=>t[e])).join(" ")+" "}update(t,[e]){var i,s;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const o=t.element.classList;this.nt.forEach((t=>{t in e||(o.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(s=this.st)||void 0===s?void 0:s.has(t))||(i?(o.add(t),this.nt.add(t)):(o.remove(t),this.nt.delete(t)))}return K}});var xt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class wt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class gt extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new wt)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return xt([o()],e.prototype,"stateManager",void 0),e}(vt)){}const Ot={outlineColor:ct.extend("--ft-reader-internal-link-outline-color",ht.colorPrimary)},St=d`
98
98
  :host {
99
99
  display: contents;
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-internal-link",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
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": "0.3.39",
22
+ "@fluid-topics/ft-wc-utils": "0.3.41",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "fce2eb423e7c2b107a892f3b986ab601fc4be7fc"
25
+ "gitHead": "33dabda0afbb6cc1ccdc6f34b717ad0df68d3e9c"
26
26
  }