@teipublisher/pb-components 2.4.8 → 2.5.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## [2.5.1](https://github.com/eeditiones/tei-publisher-components/compare/v2.5.0...v2.5.1) (2023-06-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **pb-mixin:** emitting/subscribing to default channel failed, in particular for ([d7fa70a](https://github.com/eeditiones/tei-publisher-components/commit/d7fa70a1bc3f28bd2c4453275dad2c86b3a5e83e))
7
+
8
+ # [2.5.0](https://github.com/eeditiones/tei-publisher-components/compare/v2.4.8...v2.5.0) (2023-05-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **pb-view:** if not-found is set to a string, show it instead of error message ([615cc9f](https://github.com/eeditiones/tei-publisher-components/commit/615cc9ff402aebf1e787b7c00ce25bcd8103fb08))
14
+
15
+
16
+ ### Features
17
+
18
+ * **pb-page:** list of supported languages and fallback language can now be configured for cases when the detected language is not supported ([eeba0c5](https://github.com/eeditiones/tei-publisher-components/commit/eeba0c59f98b3eef0dcc44c311ce0f9a8ce109a0))
19
+
1
20
  ## [2.4.8](https://github.com/eeditiones/tei-publisher-components/compare/v2.4.7...v2.4.8) (2023-05-15)
2
21
 
3
22
 
@@ -1,4 +1,4 @@
1
- import{p as e,L as t,h as i,c as r}from"./pb-mixin-47974747.js";import{t as o}from"./pb-i18n-aa0bfb74.js";import"./jinn-codemirror-9718e0e0.js";class s extends(e(t)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{code:{type:String,reflect:!0},mode:{type:String},label:{type:String},placeholder:{type:String},tabSize:{type:Number},linter:{attribute:!0}})}constructor(){super(),this.code="",this.mode="xml",this.placeholder="odd.editor.model.empty",this.tabSize=2,this.label="",this.linter="",this._editor=null}connectedCallback(){super.connectedCallback()}firstUpdated(){super.firstUpdated(),this._editor=this.shadowRoot.getElementById("editor")}render(){return i`
1
+ import{p as e,L as t,h as i,c as r}from"./pb-mixin-ea2e9070.js";import{t as o}from"./pb-i18n-f7a50012.js";import"./jinn-codemirror-9718e0e0.js";class s extends(e(t)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{code:{type:String,reflect:!0},mode:{type:String},label:{type:String},placeholder:{type:String},tabSize:{type:Number},linter:{attribute:!0}})}constructor(){super(),this.code="",this.mode="xml",this.placeholder="odd.editor.model.empty",this.tabSize=2,this.label="",this.linter="",this._editor=null}connectedCallback(){super.connectedCallback()}firstUpdated(){super.firstUpdated(),this._editor=this.shadowRoot.getElementById("editor")}render(){return i`
2
2
  <div class="label">${this.label}</div>
3
3
  <jinn-codemirror id="editor" mode="${this.mode}" code="${this.code}" placeholder="${o(this.placeholder)}"></jinn-codemirror>
4
4
  `}getSource(){return this._editor?this._editor.value:""}_setCode(){this.dispatchEvent(new CustomEvent("code-changed",{composed:!0,bubbles:!0,detail:{code:this.getSource()}}))}refresh(){}static get styles(){return r`