chordsheetjs 12.2.1 → 12.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/lib/bundle.js +1 -1
- package/lib/bundle.min.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +1 -1
- package/lib/module.js +1 -1
- package/lib/module.js.map +1 -1
- package/package.json +2 -1
package/lib/bundle.js
CHANGED
|
@@ -23848,7 +23848,7 @@ Or set the song key before changing key:
|
|
|
23848
23848
|
}
|
|
23849
23849
|
};
|
|
23850
23850
|
var $a5a21ced491ea51f$export$2e2bcd8739ae039 = $a5a21ced491ea51f$var$UltimateGuitarParser;
|
|
23851
|
-
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = "12.2.
|
|
23851
|
+
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = "12.2.2";
|
|
23852
23852
|
var $892913528e7f60f9$export$2e2bcd8739ae039 = {
|
|
23853
23853
|
CHORUS: $dce48cb70c4120bb$export$8db6c706fc9142b2,
|
|
23854
23854
|
Chord: $177a605b8569b31c$export$2e2bcd8739ae039,
|
package/lib/bundle.min.js
CHANGED
|
@@ -208,4 +208,4 @@ Or set the song key before changing key:
|
|
|
208
208
|
`)}formatLine(f,e){return[this.formatLineTop(f,e),this.formatLineBottom(f,e)].filter(u=>!wc(u)).map(u=>(u||"").trimEnd()).join(`
|
|
209
209
|
`)}formatTitle(f){return f?`${f.toUpperCase()}
|
|
210
210
|
`:""}formatSubTitle(f){return f?`${f}
|
|
211
|
-
`:""}formatLineTop(f,e){return dp(f)?this.formatLineWithFormatter(f,this.formatItemTop,e):null}chordLyricsPairLength(f,e){let b=f.annotation||this.renderChords(f,e),{lyrics:u}=f,d=(b||"").length,S=(u||"").length;return d>=S?d+1:Math.max(d,S)}renderChords(f,e){return vt(f.chords,e,this.song,{renderKey:this.configuration.key,useUnicodeModifier:this.configuration.useUnicodeModifiers,normalizeChords:this.configuration.normalizeChords,decapo:this.configuration.decapo})}formatItemTop(f,e,b){if(f instanceof ee&&f.isRenderable())return f.label;if(f instanceof ue){let u=f.annotation||this.renderChords(f,b);return xc(u,this.chordLyricsPairLength(f,b))}return""}formatLineBottom(f,e){return Gr(f)?this.formatLineWithFormatter(f,this.formatItemBottom,e):""}formatLineWithFormatter(f,e,b){return f.items.map(u=>e.call(this,u,b,f)).join("")}formatItemBottom(f,e,b){return f instanceof ee&&f.isRenderable()?f.label:f instanceof ue?xc(f.lyrics||"",this.chordLyricsPairLength(f,b)):"evaluate"in f?Sr(f,e,this.configuration):""}constructor(...f){super(...f),this.song=new gt}},Jp=Ba,cM=/^\[(Verse.*)]/i,aM=/^\[(Chorus)]/i,iM=/^\[([^\]]+)]/,pp={[Vs]:vc,[Ds]:yr},_1={[Vs]:za,[Ds]:Bc},va=class extends Xa{constructor({preserveWhitespace:f=!0}={}){super({preserveWhitespace:f},!1),this.currentSectionType=null}parseLine(f){this.isSectionEnd()&&this.endSection(),this.parseVerseDirective(f)||this.parseChorusDirective(f)||this.parseMetadata(f)||super.parseLine(f)}parseVerseDirective(f){let e=f.match(cM);if(!e)return!1;this.startNewLine();let b=e[1];return this.startSection(Vs,b),!0}parseChorusDirective(f){let e=f.match(aM);if(!e)return!1;this.startNewLine();let b=e[1];return this.startSection(Ds,b),!0}parseMetadata(f){let e=f.match(iM);if(!e)return!1;if(this.startNewLine(),this.endSection(),!this.songLine)throw new Error("Expected this.songLine to be present");return this.songLine.addTag(new ee(Oa,e[1])),!0}isSectionEnd(){return this.songLine!==null&&this.songLine.isEmpty()&&this.songBuilder.previousLine!==null&&!this.songBuilder.previousLine.isEmpty()}endOfSong(){super.endOfSong(),this.currentSectionType!==null&&this.currentSectionType in _1&&this.startNewLine(),this.endSection({addNewLine:!1})}startSection(f,e){this.currentSectionType&&this.endSection(),this.currentSectionType=f,this.songBuilder.setCurrentProperties(f),f in pp&&this.songBuilder.addTag(new ee(pp[f],e))}endSection({addNewLine:f=!0}={}){this.currentSectionType!==null&&this.currentSectionType in _1&&(this.songBuilder.addTag(new ee(_1[this.currentSectionType])),f&&this.startNewLine()),this.songBuilder.setCurrentProperties(Es),this.currentSectionType=null}startNewLine(){this.songLine=this.songBuilder.addLine()}},Qp=va,e4="12.2.
|
|
211
|
+
`:""}formatLineTop(f,e){return dp(f)?this.formatLineWithFormatter(f,this.formatItemTop,e):null}chordLyricsPairLength(f,e){let b=f.annotation||this.renderChords(f,e),{lyrics:u}=f,d=(b||"").length,S=(u||"").length;return d>=S?d+1:Math.max(d,S)}renderChords(f,e){return vt(f.chords,e,this.song,{renderKey:this.configuration.key,useUnicodeModifier:this.configuration.useUnicodeModifiers,normalizeChords:this.configuration.normalizeChords,decapo:this.configuration.decapo})}formatItemTop(f,e,b){if(f instanceof ee&&f.isRenderable())return f.label;if(f instanceof ue){let u=f.annotation||this.renderChords(f,b);return xc(u,this.chordLyricsPairLength(f,b))}return""}formatLineBottom(f,e){return Gr(f)?this.formatLineWithFormatter(f,this.formatItemBottom,e):""}formatLineWithFormatter(f,e,b){return f.items.map(u=>e.call(this,u,b,f)).join("")}formatItemBottom(f,e,b){return f instanceof ee&&f.isRenderable()?f.label:f instanceof ue?xc(f.lyrics||"",this.chordLyricsPairLength(f,b)):"evaluate"in f?Sr(f,e,this.configuration):""}constructor(...f){super(...f),this.song=new gt}},Jp=Ba,cM=/^\[(Verse.*)]/i,aM=/^\[(Chorus)]/i,iM=/^\[([^\]]+)]/,pp={[Vs]:vc,[Ds]:yr},_1={[Vs]:za,[Ds]:Bc},va=class extends Xa{constructor({preserveWhitespace:f=!0}={}){super({preserveWhitespace:f},!1),this.currentSectionType=null}parseLine(f){this.isSectionEnd()&&this.endSection(),this.parseVerseDirective(f)||this.parseChorusDirective(f)||this.parseMetadata(f)||super.parseLine(f)}parseVerseDirective(f){let e=f.match(cM);if(!e)return!1;this.startNewLine();let b=e[1];return this.startSection(Vs,b),!0}parseChorusDirective(f){let e=f.match(aM);if(!e)return!1;this.startNewLine();let b=e[1];return this.startSection(Ds,b),!0}parseMetadata(f){let e=f.match(iM);if(!e)return!1;if(this.startNewLine(),this.endSection(),!this.songLine)throw new Error("Expected this.songLine to be present");return this.songLine.addTag(new ee(Oa,e[1])),!0}isSectionEnd(){return this.songLine!==null&&this.songLine.isEmpty()&&this.songBuilder.previousLine!==null&&!this.songBuilder.previousLine.isEmpty()}endOfSong(){super.endOfSong(),this.currentSectionType!==null&&this.currentSectionType in _1&&this.startNewLine(),this.endSection({addNewLine:!1})}startSection(f,e){this.currentSectionType&&this.endSection(),this.currentSectionType=f,this.songBuilder.setCurrentProperties(f),f in pp&&this.songBuilder.addTag(new ee(pp[f],e))}endSection({addNewLine:f=!0}={}){this.currentSectionType!==null&&this.currentSectionType in _1&&(this.songBuilder.addTag(new ee(_1[this.currentSectionType])),f&&this.startNewLine()),this.songBuilder.setCurrentProperties(Es),this.currentSectionType=null}startNewLine(){this.songLine=this.songBuilder.addLine()}},Qp=va,e4="12.2.2",nM={CHORUS:Ds,Chord:$t,ChordDefinition:Mc,ChordLyricsPair:ue,ChordProFormatter:zp,ChordProParser:Hp,ChordSheetParser:Xa,ChordSheetSerializer:Ic,ChordsOverWordsFormatter:Zp,ChordsOverWordsParser:Xp,Comment:zs,Composite:Ec,HtmlDivFormatter:qp,HtmlTableFormatter:Yp,INDETERMINATE:Lc,Line:Dr,Literal:Gs,Metadata:Tc,NONE:Es,Paragraph:Sc,PART:jc,SoftLineBreak:pr,Song:gt,TAB:xr,Tag:ee,Ternary:Bt,TextFormatter:Jp,UltimateGuitarParser:Qp,VERSE:Vs,version:e4,templateHelpers:{isEvaluatable:Cr,isChordLyricsPair:dr,lineHasContents:Er,isTag:Rc,isComment:Nc,stripHTML:Pc,each:ys,when:fe,hasTextContents:Gr,lineClasses:Oc,paragraphClasses:zc,evaluate:Sr,fontStyleTag:Be,renderChord:vt,hasChordContents:Pa}}});return oM();})();
|
package/lib/index.js
CHANGED
|
@@ -24541,7 +24541,7 @@ const $a5a21ced491ea51f$var$endSectionTags = {
|
|
|
24541
24541
|
var $a5a21ced491ea51f$export$2e2bcd8739ae039 = $a5a21ced491ea51f$var$UltimateGuitarParser;
|
|
24542
24542
|
|
|
24543
24543
|
|
|
24544
|
-
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = '12.2.
|
|
24544
|
+
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = '12.2.2';
|
|
24545
24545
|
|
|
24546
24546
|
|
|
24547
24547
|
|