chordsheetjs 15.5.0 → 15.5.2-canary.0
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 +48 -10
- package/lib/bundle.min.js +77 -77
- package/lib/index.js +60 -11
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +7 -2
- package/lib/main.d.ts.map +1 -1
- package/lib/module.js +60 -11
- package/lib/module.js.map +1 -1
- package/lib/pdf/index.js +60 -11
- package/lib/pdf/index.js.map +1 -1
- package/lib/pdf/main.d.ts +4 -0
- package/lib/pdf/main.d.ts.map +1 -1
- package/lib/pdf/module.js +60 -11
- package/lib/pdf/module.js.map +1 -1
- package/package.json +1 -1
package/lib/bundle.js
CHANGED
|
@@ -407,7 +407,25 @@ var ChordSheetJS = (() => {
|
|
|
407
407
|
var $dce48cb70c4120bb$export$3d329a2c209fbc28 = "end_tag";
|
|
408
408
|
var $dce48cb70c4120bb$export$97c0a36af1d48540 = "auto";
|
|
409
409
|
var $dce48cb70c4120bb$export$34df5089b632c747 = "german";
|
|
410
|
+
var $5d58e7f5804fd974$export$61eddec2ea34c293 = /* @__PURE__ */ Symbol.for("chordsheetjs.ChordLyricsPair");
|
|
411
|
+
var $5d58e7f5804fd974$export$3386094fd416c850 = /* @__PURE__ */ Symbol.for("chordsheetjs.Comment");
|
|
412
|
+
var $5d58e7f5804fd974$export$2d84eac6e4ecf345 = /* @__PURE__ */ Symbol.for("chordsheetjs.Literal");
|
|
413
|
+
var $5d58e7f5804fd974$export$95e522225c487273 = /* @__PURE__ */ Symbol.for("chordsheetjs.SoftLineBreak");
|
|
414
|
+
var $5d58e7f5804fd974$export$76ece97d1f94609e = /* @__PURE__ */ Symbol.for("chordsheetjs.Tag");
|
|
415
|
+
function $5d58e7f5804fd974$export$e4b87724a2ce337f(prototype, brand) {
|
|
416
|
+
Object.defineProperty(prototype, brand, {
|
|
417
|
+
value: true,
|
|
418
|
+
enumerable: false,
|
|
419
|
+
configurable: false
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
function $5d58e7f5804fd974$export$c2feda9b9903876a(instance, brand) {
|
|
423
|
+
return !!(instance && typeof instance === "object" && instance[brand] === true);
|
|
424
|
+
}
|
|
410
425
|
var $551a223fc13b5c10$var$ChordLyricsPair = class _$551a223fc13b5c10$var$ChordLyricsPair {
|
|
426
|
+
static [Symbol.hasInstance](instance) {
|
|
427
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$61eddec2ea34c293));
|
|
428
|
+
}
|
|
411
429
|
/**
|
|
412
430
|
* Initialises a ChordLyricsPair
|
|
413
431
|
* @param {string} chords The chords
|
|
@@ -499,6 +517,7 @@ var ChordSheetJS = (() => {
|
|
|
499
517
|
return this.clone();
|
|
500
518
|
}
|
|
501
519
|
};
|
|
520
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($551a223fc13b5c10$var$ChordLyricsPair.prototype, (0, $5d58e7f5804fd974$export$61eddec2ea34c293));
|
|
502
521
|
var $551a223fc13b5c10$export$2e2bcd8739ae039 = $551a223fc13b5c10$var$ChordLyricsPair;
|
|
503
522
|
var $5f19a6aa6bc347f1$var$mapping = {
|
|
504
523
|
"2": "2",
|
|
@@ -5108,6 +5127,9 @@ ${error.stack}`);
|
|
|
5108
5127
|
};
|
|
5109
5128
|
var $6c1ed1378c3b5965$export$2e2bcd8739ae039 = $6c1ed1378c3b5965$var$ChordDefinition;
|
|
5110
5129
|
var $0bd084786477abba$var$Comment = class _$0bd084786477abba$var$Comment {
|
|
5130
|
+
static [Symbol.hasInstance](instance) {
|
|
5131
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$3386094fd416c850));
|
|
5132
|
+
}
|
|
5111
5133
|
constructor(content) {
|
|
5112
5134
|
this.parentLine = null;
|
|
5113
5135
|
this.content = content;
|
|
@@ -5130,6 +5152,7 @@ ${error.stack}`);
|
|
|
5130
5152
|
return `Comment(content=${this.content})`;
|
|
5131
5153
|
}
|
|
5132
5154
|
};
|
|
5155
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($0bd084786477abba$var$Comment.prototype, (0, $5d58e7f5804fd974$export$3386094fd416c850));
|
|
5133
5156
|
var $0bd084786477abba$export$2e2bcd8739ae039 = $0bd084786477abba$var$Comment;
|
|
5134
5157
|
var $c5ce4fc4f57fe810$var$AstComponent = class {
|
|
5135
5158
|
constructor(traceInfo = null) {
|
|
@@ -5381,6 +5404,9 @@ ${error.stack}`);
|
|
|
5381
5404
|
return sanitizedName;
|
|
5382
5405
|
};
|
|
5383
5406
|
var $7251dad5f4a4c35f$var$Tag = class _$7251dad5f4a4c35f$var$Tag extends (0, $c5ce4fc4f57fe810$export$2e2bcd8739ae039) {
|
|
5407
|
+
static [Symbol.hasInstance](instance) {
|
|
5408
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$76ece97d1f94609e));
|
|
5409
|
+
}
|
|
5384
5410
|
constructor(name, value = null, traceInfo = null, attributes = {}, selector = null, isNegated = false) {
|
|
5385
5411
|
super(traceInfo), this._isMetaTag = false, this._originalName = "", this._name = "", this._value = "", this.selector = null, this.isNegated = false, /**
|
|
5386
5412
|
* The tag attributes. For example, section related tags can have a label:
|
|
@@ -5547,6 +5573,7 @@ ${error.stack}`);
|
|
|
5547
5573
|
});
|
|
5548
5574
|
}
|
|
5549
5575
|
};
|
|
5576
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($7251dad5f4a4c35f$var$Tag.prototype, (0, $5d58e7f5804fd974$export$76ece97d1f94609e));
|
|
5550
5577
|
var $7251dad5f4a4c35f$export$2e2bcd8739ae039 = $7251dad5f4a4c35f$var$Tag;
|
|
5551
5578
|
var $287d3e472e1fbd90$export$f152539e8297cacc = (string) => string;
|
|
5552
5579
|
var $287d3e472e1fbd90$export$a014e67b549cbef4 = {
|
|
@@ -6354,6 +6381,9 @@ ${error.stack}`);
|
|
|
6354
6381
|
};
|
|
6355
6382
|
var $8e2590a06c021dbf$export$2e2bcd8739ae039 = $8e2590a06c021dbf$var$Evaluatable;
|
|
6356
6383
|
var $11953cb6035032a3$var$Literal = class _$11953cb6035032a3$var$Literal extends (0, $8e2590a06c021dbf$export$2e2bcd8739ae039) {
|
|
6384
|
+
static [Symbol.hasInstance](instance) {
|
|
6385
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$2d84eac6e4ecf345));
|
|
6386
|
+
}
|
|
6357
6387
|
constructor(string) {
|
|
6358
6388
|
super();
|
|
6359
6389
|
this.string = string;
|
|
@@ -6368,8 +6398,12 @@ ${error.stack}`);
|
|
|
6368
6398
|
return new _$11953cb6035032a3$var$Literal(this.string);
|
|
6369
6399
|
}
|
|
6370
6400
|
};
|
|
6401
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($11953cb6035032a3$var$Literal.prototype, (0, $5d58e7f5804fd974$export$2d84eac6e4ecf345));
|
|
6371
6402
|
var $11953cb6035032a3$export$2e2bcd8739ae039 = $11953cb6035032a3$var$Literal;
|
|
6372
6403
|
var $4b6dd3e4b817bd81$var$SoftLineBreak = class _$4b6dd3e4b817bd81$var$SoftLineBreak {
|
|
6404
|
+
static [Symbol.hasInstance](instance) {
|
|
6405
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$95e522225c487273));
|
|
6406
|
+
}
|
|
6373
6407
|
constructor(content = " ") {
|
|
6374
6408
|
this.content = content;
|
|
6375
6409
|
}
|
|
@@ -6380,6 +6414,7 @@ ${error.stack}`);
|
|
|
6380
6414
|
return new _$4b6dd3e4b817bd81$var$SoftLineBreak();
|
|
6381
6415
|
}
|
|
6382
6416
|
};
|
|
6417
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($4b6dd3e4b817bd81$var$SoftLineBreak.prototype, (0, $5d58e7f5804fd974$export$95e522225c487273));
|
|
6383
6418
|
var $4b6dd3e4b817bd81$export$2e2bcd8739ae039 = $4b6dd3e4b817bd81$var$SoftLineBreak;
|
|
6384
6419
|
var $bdb7dff1d7547d2e$var$Composite = class _$bdb7dff1d7547d2e$var$Composite extends (0, $8e2590a06c021dbf$export$2e2bcd8739ae039) {
|
|
6385
6420
|
constructor(expressions, variable = null) {
|
|
@@ -7479,9 +7514,12 @@ ${formattedContentLines}`;
|
|
|
7479
7514
|
this.transposeKey = config.transposeKey;
|
|
7480
7515
|
this.useUnicodeModifier = config.useUnicodeModifier;
|
|
7481
7516
|
}
|
|
7482
|
-
render(
|
|
7483
|
-
|
|
7484
|
-
|
|
7517
|
+
render(chordOrString) {
|
|
7518
|
+
if (chordOrString instanceof (0, $177a605b8569b31c$export$2e2bcd8739ae039)) return this.renderChord(chordOrString);
|
|
7519
|
+
const chord = (0, $177a605b8569b31c$export$2e2bcd8739ae039).parse(chordOrString);
|
|
7520
|
+
return chord ? this.renderChord(chord) : chordOrString;
|
|
7521
|
+
}
|
|
7522
|
+
renderChord(chord) {
|
|
7485
7523
|
return (0, $28a2fcb6fb95a147$export$79570e60478bce41)(chord, [
|
|
7486
7524
|
(c) => c.transpose(this.effectiveTransposeDistance),
|
|
7487
7525
|
(c) => this.accidental ? c.useAccidental(this.accidental) : c,
|
|
@@ -7888,7 +7926,7 @@ ${formattedContentLines}`;
|
|
|
7888
7926
|
normalizeChordSuffix: true,
|
|
7889
7927
|
decapo: false
|
|
7890
7928
|
};
|
|
7891
|
-
function $2ce1086ce25c9ac0$export$596ec52955da9472(
|
|
7929
|
+
function $2ce1086ce25c9ac0$export$596ec52955da9472(chord, line, song, options = {}) {
|
|
7892
7930
|
const { renderKey, useUnicodeModifier, normalizeChords, normalizeChordSuffix, decapo } = {
|
|
7893
7931
|
...$2ce1086ce25c9ac0$var$renderChordDefaults,
|
|
7894
7932
|
...options
|
|
@@ -7905,7 +7943,7 @@ ${formattedContentLines}`;
|
|
|
7905
7943
|
style: song.metadata.getSingle((0, $d21c5c7a462f3c34$export$d8cbdf44b1f66df1)),
|
|
7906
7944
|
transposeKey: line.transposeKey,
|
|
7907
7945
|
useUnicodeModifier
|
|
7908
|
-
}).render(
|
|
7946
|
+
}).render(chord);
|
|
7909
7947
|
}
|
|
7910
7948
|
function $2ce1086ce25c9ac0$export$b07b16221c14aaa(key) {
|
|
7911
7949
|
const keyObj = (0, $c2d6ab25ad00308f$export$2e2bcd8739ae039).wrapOrFail(key);
|
|
@@ -13783,7 +13821,7 @@ Or set the song key before changing key:
|
|
|
13783
13821
|
return "";
|
|
13784
13822
|
}
|
|
13785
13823
|
renderChord(item, line) {
|
|
13786
|
-
return (0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chords, line, this.song, {
|
|
13824
|
+
return (0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chord ?? item.chords, line, this.song, {
|
|
13787
13825
|
renderKey: this.configuration.key,
|
|
13788
13826
|
normalizeChords: this.configuration.normalizeChords,
|
|
13789
13827
|
normalizeChordSuffix: this.configuration.normalizeChordSuffix,
|
|
@@ -26269,7 +26307,7 @@ Or set the song key before changing key:
|
|
|
26269
26307
|
const cls = (0, $f9c5006b26957916$export$986cf1257ba88b40)(item) ? c.rhythmSymbol : c.chord;
|
|
26270
26308
|
return `
|
|
26271
26309
|
<div class="${cls}"${(0, $f9c5006b26957916$export$ca030c9435779e4b)(line.chordFont)}>
|
|
26272
|
-
${(0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chords, line, song, {
|
|
26310
|
+
${(0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chord ?? item.chords, line, song, {
|
|
26273
26311
|
renderKey: key,
|
|
26274
26312
|
useUnicodeModifier: configuration.useUnicodeModifiers,
|
|
26275
26313
|
normalizeChords: configuration.normalizeChords,
|
|
@@ -26436,7 +26474,7 @@ Or set the song key before changing key:
|
|
|
26436
26474
|
`).else(() => {
|
|
26437
26475
|
const cls = (0, $f9c5006b26957916$export$986cf1257ba88b40)(item) ? c.rhythmSymbol : c.chord;
|
|
26438
26476
|
return `
|
|
26439
|
-
<td class="${cls}"${(0, $f9c5006b26957916$export$ca030c9435779e4b)(line.chordFont)}>${(0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chords, line, song, {
|
|
26477
|
+
<td class="${cls}"${(0, $f9c5006b26957916$export$ca030c9435779e4b)(line.chordFont)}>${(0, $2ce1086ce25c9ac0$export$596ec52955da9472)(item.chord ?? item.chords, line, song, {
|
|
26440
26478
|
renderKey: key,
|
|
26441
26479
|
useUnicodeModifier: configuration.useUnicodeModifiers,
|
|
26442
26480
|
normalizeChords: configuration.normalizeChords,
|
|
@@ -27275,7 +27313,7 @@ Or set the song key before changing key:
|
|
|
27275
27313
|
return Math.max(contentLength, lyricsLength);
|
|
27276
27314
|
}
|
|
27277
27315
|
renderChords(chordLyricsPair, line) {
|
|
27278
|
-
const chords = (0, $2ce1086ce25c9ac0$export$596ec52955da9472)(chordLyricsPair.chords, line, this.song, {
|
|
27316
|
+
const chords = (0, $2ce1086ce25c9ac0$export$596ec52955da9472)(chordLyricsPair.chord ?? chordLyricsPair.chords, line, this.song, {
|
|
27279
27317
|
renderKey: this.configuration.key,
|
|
27280
27318
|
useUnicodeModifier: this.configuration.useUnicodeModifiers,
|
|
27281
27319
|
normalizeChords: this.configuration.normalizeChords,
|
|
@@ -29678,7 +29716,7 @@ ${template}
|
|
|
29678
29716
|
}
|
|
29679
29717
|
};
|
|
29680
29718
|
var $a5a21ced491ea51f$export$2e2bcd8739ae039 = $a5a21ced491ea51f$var$UltimateGuitarParser;
|
|
29681
|
-
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = "15.5.0";
|
|
29719
|
+
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = "15.5.2-canary.0";
|
|
29682
29720
|
var $2a7926da41d163b3$export$191a710ad3c9a989 = {
|
|
29683
29721
|
configure: $181068e44290b873$export$8d21e34596265fa2,
|
|
29684
29722
|
getDefaultConfig: $fe1d3ba9df1ecad5$export$ed30944e0fe6ae5c,
|