chordsheetjs 15.5.1 → 15.5.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 +36 -1
- package/lib/bundle.min.js +64 -64
- package/lib/index.js +46 -1
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +6 -1
- package/lib/main.d.ts.map +1 -1
- package/lib/module.js +46 -1
- package/lib/module.js.map +1 -1
- package/lib/pdf/index.js +46 -1
- 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 +46 -1
- package/lib/pdf/module.js.map +1 -1
- package/package.json +1 -1
package/lib/pdf/module.js
CHANGED
|
@@ -449,6 +449,27 @@ var $590d8282f2d39be0$export$2e2bcd8739ae039 = $590d8282f2d39be0$var$TagInterpre
|
|
|
449
449
|
|
|
450
450
|
|
|
451
451
|
|
|
452
|
+
// ChordSheetJS publishes multiple entrypoints. Some bundlers load those
|
|
453
|
+
// entrypoints as separate module graphs, which gives each graph its own class
|
|
454
|
+
// constructors. These global brands preserve nominal `instanceof` behavior for
|
|
455
|
+
// public chord-sheet model objects across those duplicate module instances.
|
|
456
|
+
const $e68bb6788bdee5f4$export$61eddec2ea34c293 = Symbol.for('chordsheetjs.ChordLyricsPair');
|
|
457
|
+
const $e68bb6788bdee5f4$export$3386094fd416c850 = Symbol.for('chordsheetjs.Comment');
|
|
458
|
+
const $e68bb6788bdee5f4$export$2d84eac6e4ecf345 = Symbol.for('chordsheetjs.Literal');
|
|
459
|
+
const $e68bb6788bdee5f4$export$95e522225c487273 = Symbol.for('chordsheetjs.SoftLineBreak');
|
|
460
|
+
const $e68bb6788bdee5f4$export$76ece97d1f94609e = Symbol.for('chordsheetjs.Tag');
|
|
461
|
+
function $e68bb6788bdee5f4$export$e4b87724a2ce337f(prototype, brand) {
|
|
462
|
+
Object.defineProperty(prototype, brand, {
|
|
463
|
+
value: true,
|
|
464
|
+
enumerable: false,
|
|
465
|
+
configurable: false
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
function $e68bb6788bdee5f4$export$c2feda9b9903876a(instance, brand) {
|
|
469
|
+
return !!(instance && typeof instance === 'object' && instance[brand] === true);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
|
|
452
473
|
const $b3836272a1374d85$var$CHORDFONT_SHORT = 'cf';
|
|
453
474
|
const $b3836272a1374d85$var$CHORDSIZE_SHORT = 'cs';
|
|
454
475
|
const $b3836272a1374d85$var$COMMENT_SHORT = 'c';
|
|
@@ -555,6 +576,9 @@ const $b3836272a1374d85$var$translateTagNameAlias = (name)=>{
|
|
|
555
576
|
/**
|
|
556
577
|
* Represents a tag/directive. See https://www.chordpro.org/chordpro/chordpro-directives/
|
|
557
578
|
*/ class $b3836272a1374d85$var$Tag extends (0, $33b2f875bada793c$export$2e2bcd8739ae039) {
|
|
579
|
+
static [Symbol.hasInstance](instance) {
|
|
580
|
+
return (0, $e68bb6788bdee5f4$export$c2feda9b9903876a)(instance, (0, $e68bb6788bdee5f4$export$76ece97d1f94609e));
|
|
581
|
+
}
|
|
558
582
|
constructor(name, value = null, traceInfo = null, attributes = {}, selector = null, isNegated = false){
|
|
559
583
|
super(traceInfo), this._isMetaTag = false, this._originalName = '', this._name = '', this._value = '', this.selector = null, this.isNegated = false, /**
|
|
560
584
|
* The tag attributes. For example, section related tags can have a label:
|
|
@@ -709,6 +733,7 @@ const $b3836272a1374d85$var$translateTagNameAlias = (name)=>{
|
|
|
709
733
|
});
|
|
710
734
|
}
|
|
711
735
|
}
|
|
736
|
+
(0, $e68bb6788bdee5f4$export$e4b87724a2ce337f)($b3836272a1374d85$var$Tag.prototype, (0, $e68bb6788bdee5f4$export$76ece97d1f94609e));
|
|
712
737
|
var $b3836272a1374d85$export$2e2bcd8739ae039 = $b3836272a1374d85$var$Tag;
|
|
713
738
|
|
|
714
739
|
|
|
@@ -3900,9 +3925,13 @@ var $5e3a0c5a6197f95b$export$2e2bcd8739ae039 = $5e3a0c5a6197f95b$var$Chord;
|
|
|
3900
3925
|
|
|
3901
3926
|
|
|
3902
3927
|
|
|
3928
|
+
|
|
3903
3929
|
/**
|
|
3904
3930
|
* Represents a chord with the corresponding (partial) lyrics
|
|
3905
3931
|
*/ class $f7a904d05353aafa$var$ChordLyricsPair {
|
|
3932
|
+
static [Symbol.hasInstance](instance) {
|
|
3933
|
+
return (0, $e68bb6788bdee5f4$export$c2feda9b9903876a)(instance, (0, $e68bb6788bdee5f4$export$61eddec2ea34c293));
|
|
3934
|
+
}
|
|
3906
3935
|
/**
|
|
3907
3936
|
* Initialises a ChordLyricsPair
|
|
3908
3937
|
* @param {string} chords The chords
|
|
@@ -3988,6 +4017,7 @@ var $5e3a0c5a6197f95b$export$2e2bcd8739ae039 = $5e3a0c5a6197f95b$var$Chord;
|
|
|
3988
4017
|
return this.clone();
|
|
3989
4018
|
}
|
|
3990
4019
|
}
|
|
4020
|
+
(0, $e68bb6788bdee5f4$export$e4b87724a2ce337f)($f7a904d05353aafa$var$ChordLyricsPair.prototype, (0, $e68bb6788bdee5f4$export$61eddec2ea34c293));
|
|
3991
4021
|
var $f7a904d05353aafa$export$2e2bcd8739ae039 = $f7a904d05353aafa$var$ChordLyricsPair;
|
|
3992
4022
|
|
|
3993
4023
|
|
|
@@ -14472,9 +14502,13 @@ function $e2e1ea6dd3b7d2e1$export$efb38dd75b8e2957({ selector: selector, isNegat
|
|
|
14472
14502
|
|
|
14473
14503
|
|
|
14474
14504
|
|
|
14505
|
+
|
|
14475
14506
|
/**
|
|
14476
14507
|
* Represents a comment. See https://www.chordpro.org/chordpro/chordpro-file-format-specification/#overview
|
|
14477
14508
|
*/ class $df4ad73a744c94b3$var$Comment {
|
|
14509
|
+
static [Symbol.hasInstance](instance) {
|
|
14510
|
+
return (0, $e68bb6788bdee5f4$export$c2feda9b9903876a)(instance, (0, $e68bb6788bdee5f4$export$3386094fd416c850));
|
|
14511
|
+
}
|
|
14478
14512
|
constructor(content){
|
|
14479
14513
|
this.parentLine = null;
|
|
14480
14514
|
this.content = content;
|
|
@@ -14495,6 +14529,7 @@ function $e2e1ea6dd3b7d2e1$export$efb38dd75b8e2957({ selector: selector, isNegat
|
|
|
14495
14529
|
return `Comment(content=${this.content})`;
|
|
14496
14530
|
}
|
|
14497
14531
|
}
|
|
14532
|
+
(0, $e68bb6788bdee5f4$export$e4b87724a2ce337f)($df4ad73a744c94b3$var$Comment.prototype, (0, $e68bb6788bdee5f4$export$3386094fd416c850));
|
|
14498
14533
|
var $df4ad73a744c94b3$export$2e2bcd8739ae039 = $df4ad73a744c94b3$var$Comment;
|
|
14499
14534
|
|
|
14500
14535
|
|
|
@@ -14504,7 +14539,11 @@ class $b5c6143e2fff9a4c$var$Evaluatable extends (0, $33b2f875bada793c$export$2e2
|
|
|
14504
14539
|
var $b5c6143e2fff9a4c$export$2e2bcd8739ae039 = $b5c6143e2fff9a4c$var$Evaluatable;
|
|
14505
14540
|
|
|
14506
14541
|
|
|
14542
|
+
|
|
14507
14543
|
class $758385c5b662d76d$var$Literal extends (0, $b5c6143e2fff9a4c$export$2e2bcd8739ae039) {
|
|
14544
|
+
static [Symbol.hasInstance](instance) {
|
|
14545
|
+
return (0, $e68bb6788bdee5f4$export$c2feda9b9903876a)(instance, (0, $e68bb6788bdee5f4$export$2d84eac6e4ecf345));
|
|
14546
|
+
}
|
|
14508
14547
|
constructor(string){
|
|
14509
14548
|
super();
|
|
14510
14549
|
this.string = string;
|
|
@@ -14519,12 +14558,17 @@ class $758385c5b662d76d$var$Literal extends (0, $b5c6143e2fff9a4c$export$2e2bcd8
|
|
|
14519
14558
|
return new $758385c5b662d76d$var$Literal(this.string);
|
|
14520
14559
|
}
|
|
14521
14560
|
}
|
|
14561
|
+
(0, $e68bb6788bdee5f4$export$e4b87724a2ce337f)($758385c5b662d76d$var$Literal.prototype, (0, $e68bb6788bdee5f4$export$2d84eac6e4ecf345));
|
|
14522
14562
|
var $758385c5b662d76d$export$2e2bcd8739ae039 = $758385c5b662d76d$var$Literal;
|
|
14523
14563
|
|
|
14524
14564
|
|
|
14565
|
+
|
|
14525
14566
|
/**
|
|
14526
14567
|
* Represents a soft line break in the lyrics, typically rendered as a space or optional break point.
|
|
14527
14568
|
*/ class $7afd0b026cc6cb73$var$SoftLineBreak {
|
|
14569
|
+
static [Symbol.hasInstance](instance) {
|
|
14570
|
+
return (0, $e68bb6788bdee5f4$export$c2feda9b9903876a)(instance, (0, $e68bb6788bdee5f4$export$95e522225c487273));
|
|
14571
|
+
}
|
|
14528
14572
|
constructor(content = ' '){
|
|
14529
14573
|
this.content = content;
|
|
14530
14574
|
}
|
|
@@ -14534,6 +14578,7 @@ var $758385c5b662d76d$export$2e2bcd8739ae039 = $758385c5b662d76d$var$Literal;
|
|
|
14534
14578
|
return new $7afd0b026cc6cb73$var$SoftLineBreak();
|
|
14535
14579
|
}
|
|
14536
14580
|
}
|
|
14581
|
+
(0, $e68bb6788bdee5f4$export$e4b87724a2ce337f)($7afd0b026cc6cb73$var$SoftLineBreak.prototype, (0, $e68bb6788bdee5f4$export$95e522225c487273));
|
|
14537
14582
|
var $7afd0b026cc6cb73$export$2e2bcd8739ae039 = $7afd0b026cc6cb73$var$SoftLineBreak;
|
|
14538
14583
|
|
|
14539
14584
|
|
|
@@ -37240,7 +37285,7 @@ const $7c59209366f6488e$var$endSectionTags = {
|
|
|
37240
37285
|
var $7c59209366f6488e$export$2e2bcd8739ae039 = $7c59209366f6488e$var$UltimateGuitarParser;
|
|
37241
37286
|
|
|
37242
37287
|
|
|
37243
|
-
var $3e7872a494b653a9$export$2e2bcd8739ae039 = '15.5.
|
|
37288
|
+
var $3e7872a494b653a9$export$2e2bcd8739ae039 = '15.5.2';
|
|
37244
37289
|
|
|
37245
37290
|
|
|
37246
37291
|
|