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/pdf/index.js CHANGED
@@ -456,6 +456,27 @@ var $8bd009ef49ff9440$export$2e2bcd8739ae039 = $8bd009ef49ff9440$var$TagInterpre
456
456
 
457
457
 
458
458
 
459
+ // ChordSheetJS publishes multiple entrypoints. Some bundlers load those
460
+ // entrypoints as separate module graphs, which gives each graph its own class
461
+ // constructors. These global brands preserve nominal `instanceof` behavior for
462
+ // public chord-sheet model objects across those duplicate module instances.
463
+ const $90664ffebca96398$export$61eddec2ea34c293 = Symbol.for('chordsheetjs.ChordLyricsPair');
464
+ const $90664ffebca96398$export$3386094fd416c850 = Symbol.for('chordsheetjs.Comment');
465
+ const $90664ffebca96398$export$2d84eac6e4ecf345 = Symbol.for('chordsheetjs.Literal');
466
+ const $90664ffebca96398$export$95e522225c487273 = Symbol.for('chordsheetjs.SoftLineBreak');
467
+ const $90664ffebca96398$export$76ece97d1f94609e = Symbol.for('chordsheetjs.Tag');
468
+ function $90664ffebca96398$export$e4b87724a2ce337f(prototype, brand) {
469
+ Object.defineProperty(prototype, brand, {
470
+ value: true,
471
+ enumerable: false,
472
+ configurable: false
473
+ });
474
+ }
475
+ function $90664ffebca96398$export$c2feda9b9903876a(instance, brand) {
476
+ return !!(instance && typeof instance === 'object' && instance[brand] === true);
477
+ }
478
+
479
+
459
480
  const $5e9ede69210ec54a$var$CHORDFONT_SHORT = 'cf';
460
481
  const $5e9ede69210ec54a$var$CHORDSIZE_SHORT = 'cs';
461
482
  const $5e9ede69210ec54a$var$COMMENT_SHORT = 'c';
@@ -562,6 +583,9 @@ const $5e9ede69210ec54a$var$translateTagNameAlias = (name)=>{
562
583
  /**
563
584
  * Represents a tag/directive. See https://www.chordpro.org/chordpro/chordpro-directives/
564
585
  */ class $5e9ede69210ec54a$var$Tag extends (0, $cf00b4d3af89fa07$export$2e2bcd8739ae039) {
586
+ static [Symbol.hasInstance](instance) {
587
+ return (0, $90664ffebca96398$export$c2feda9b9903876a)(instance, (0, $90664ffebca96398$export$76ece97d1f94609e));
588
+ }
565
589
  constructor(name, value = null, traceInfo = null, attributes = {}, selector = null, isNegated = false){
566
590
  super(traceInfo), this._isMetaTag = false, this._originalName = '', this._name = '', this._value = '', this.selector = null, this.isNegated = false, /**
567
591
  * The tag attributes. For example, section related tags can have a label:
@@ -716,6 +740,7 @@ const $5e9ede69210ec54a$var$translateTagNameAlias = (name)=>{
716
740
  });
717
741
  }
718
742
  }
743
+ (0, $90664ffebca96398$export$e4b87724a2ce337f)($5e9ede69210ec54a$var$Tag.prototype, (0, $90664ffebca96398$export$76ece97d1f94609e));
719
744
  var $5e9ede69210ec54a$export$2e2bcd8739ae039 = $5e9ede69210ec54a$var$Tag;
720
745
 
721
746
 
@@ -3907,9 +3932,13 @@ var $26f57998457eb2d4$export$2e2bcd8739ae039 = $26f57998457eb2d4$var$Chord;
3907
3932
 
3908
3933
 
3909
3934
 
3935
+
3910
3936
  /**
3911
3937
  * Represents a chord with the corresponding (partial) lyrics
3912
3938
  */ class $d454f4215ba01af2$var$ChordLyricsPair {
3939
+ static [Symbol.hasInstance](instance) {
3940
+ return (0, $90664ffebca96398$export$c2feda9b9903876a)(instance, (0, $90664ffebca96398$export$61eddec2ea34c293));
3941
+ }
3913
3942
  /**
3914
3943
  * Initialises a ChordLyricsPair
3915
3944
  * @param {string} chords The chords
@@ -3995,6 +4024,7 @@ var $26f57998457eb2d4$export$2e2bcd8739ae039 = $26f57998457eb2d4$var$Chord;
3995
4024
  return this.clone();
3996
4025
  }
3997
4026
  }
4027
+ (0, $90664ffebca96398$export$e4b87724a2ce337f)($d454f4215ba01af2$var$ChordLyricsPair.prototype, (0, $90664ffebca96398$export$61eddec2ea34c293));
3998
4028
  var $d454f4215ba01af2$export$2e2bcd8739ae039 = $d454f4215ba01af2$var$ChordLyricsPair;
3999
4029
 
4000
4030
 
@@ -14479,9 +14509,13 @@ function $dfecd32049fa58e9$export$efb38dd75b8e2957({ selector: selector, isNegat
14479
14509
 
14480
14510
 
14481
14511
 
14512
+
14482
14513
  /**
14483
14514
  * Represents a comment. See https://www.chordpro.org/chordpro/chordpro-file-format-specification/#overview
14484
14515
  */ class $2115988b22311cb1$var$Comment {
14516
+ static [Symbol.hasInstance](instance) {
14517
+ return (0, $90664ffebca96398$export$c2feda9b9903876a)(instance, (0, $90664ffebca96398$export$3386094fd416c850));
14518
+ }
14485
14519
  constructor(content){
14486
14520
  this.parentLine = null;
14487
14521
  this.content = content;
@@ -14502,6 +14536,7 @@ function $dfecd32049fa58e9$export$efb38dd75b8e2957({ selector: selector, isNegat
14502
14536
  return `Comment(content=${this.content})`;
14503
14537
  }
14504
14538
  }
14539
+ (0, $90664ffebca96398$export$e4b87724a2ce337f)($2115988b22311cb1$var$Comment.prototype, (0, $90664ffebca96398$export$3386094fd416c850));
14505
14540
  var $2115988b22311cb1$export$2e2bcd8739ae039 = $2115988b22311cb1$var$Comment;
14506
14541
 
14507
14542
 
@@ -14511,7 +14546,11 @@ class $da904aab90d40723$var$Evaluatable extends (0, $cf00b4d3af89fa07$export$2e2
14511
14546
  var $da904aab90d40723$export$2e2bcd8739ae039 = $da904aab90d40723$var$Evaluatable;
14512
14547
 
14513
14548
 
14549
+
14514
14550
  class $e1378a714a1834c5$var$Literal extends (0, $da904aab90d40723$export$2e2bcd8739ae039) {
14551
+ static [Symbol.hasInstance](instance) {
14552
+ return (0, $90664ffebca96398$export$c2feda9b9903876a)(instance, (0, $90664ffebca96398$export$2d84eac6e4ecf345));
14553
+ }
14515
14554
  constructor(string){
14516
14555
  super();
14517
14556
  this.string = string;
@@ -14526,12 +14565,17 @@ class $e1378a714a1834c5$var$Literal extends (0, $da904aab90d40723$export$2e2bcd8
14526
14565
  return new $e1378a714a1834c5$var$Literal(this.string);
14527
14566
  }
14528
14567
  }
14568
+ (0, $90664ffebca96398$export$e4b87724a2ce337f)($e1378a714a1834c5$var$Literal.prototype, (0, $90664ffebca96398$export$2d84eac6e4ecf345));
14529
14569
  var $e1378a714a1834c5$export$2e2bcd8739ae039 = $e1378a714a1834c5$var$Literal;
14530
14570
 
14531
14571
 
14572
+
14532
14573
  /**
14533
14574
  * Represents a soft line break in the lyrics, typically rendered as a space or optional break point.
14534
14575
  */ class $6f99e71d7b8f0643$var$SoftLineBreak {
14576
+ static [Symbol.hasInstance](instance) {
14577
+ return (0, $90664ffebca96398$export$c2feda9b9903876a)(instance, (0, $90664ffebca96398$export$95e522225c487273));
14578
+ }
14535
14579
  constructor(content = ' '){
14536
14580
  this.content = content;
14537
14581
  }
@@ -14541,6 +14585,7 @@ var $e1378a714a1834c5$export$2e2bcd8739ae039 = $e1378a714a1834c5$var$Literal;
14541
14585
  return new $6f99e71d7b8f0643$var$SoftLineBreak();
14542
14586
  }
14543
14587
  }
14588
+ (0, $90664ffebca96398$export$e4b87724a2ce337f)($6f99e71d7b8f0643$var$SoftLineBreak.prototype, (0, $90664ffebca96398$export$95e522225c487273));
14544
14589
  var $6f99e71d7b8f0643$export$2e2bcd8739ae039 = $6f99e71d7b8f0643$var$SoftLineBreak;
14545
14590
 
14546
14591
 
@@ -37247,7 +37292,7 @@ const $db9c80925e255cd2$var$endSectionTags = {
37247
37292
  var $db9c80925e255cd2$export$2e2bcd8739ae039 = $db9c80925e255cd2$var$UltimateGuitarParser;
37248
37293
 
37249
37294
 
37250
- var $7491059d3a8d9eaa$export$2e2bcd8739ae039 = '15.5.1';
37295
+ var $7491059d3a8d9eaa$export$2e2bcd8739ae039 = '15.5.2';
37251
37296
 
37252
37297
 
37253
37298