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/index.js
CHANGED
|
@@ -419,9 +419,33 @@ const $dce48cb70c4120bb$export$34df5089b632c747 = 'german';
|
|
|
419
419
|
|
|
420
420
|
|
|
421
421
|
|
|
422
|
+
// ChordSheetJS publishes multiple entrypoints. Some bundlers load those
|
|
423
|
+
// entrypoints as separate module graphs, which gives each graph its own class
|
|
424
|
+
// constructors. These global brands preserve nominal `instanceof` behavior for
|
|
425
|
+
// public chord-sheet model objects across those duplicate module instances.
|
|
426
|
+
const $5d58e7f5804fd974$export$61eddec2ea34c293 = Symbol.for('chordsheetjs.ChordLyricsPair');
|
|
427
|
+
const $5d58e7f5804fd974$export$3386094fd416c850 = Symbol.for('chordsheetjs.Comment');
|
|
428
|
+
const $5d58e7f5804fd974$export$2d84eac6e4ecf345 = Symbol.for('chordsheetjs.Literal');
|
|
429
|
+
const $5d58e7f5804fd974$export$95e522225c487273 = Symbol.for('chordsheetjs.SoftLineBreak');
|
|
430
|
+
const $5d58e7f5804fd974$export$76ece97d1f94609e = Symbol.for('chordsheetjs.Tag');
|
|
431
|
+
function $5d58e7f5804fd974$export$e4b87724a2ce337f(prototype, brand) {
|
|
432
|
+
Object.defineProperty(prototype, brand, {
|
|
433
|
+
value: true,
|
|
434
|
+
enumerable: false,
|
|
435
|
+
configurable: false
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
function $5d58e7f5804fd974$export$c2feda9b9903876a(instance, brand) {
|
|
439
|
+
return !!(instance && typeof instance === 'object' && instance[brand] === true);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
|
|
422
443
|
/**
|
|
423
444
|
* Represents a chord with the corresponding (partial) lyrics
|
|
424
445
|
*/ class $551a223fc13b5c10$var$ChordLyricsPair {
|
|
446
|
+
static [Symbol.hasInstance](instance) {
|
|
447
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$61eddec2ea34c293));
|
|
448
|
+
}
|
|
425
449
|
/**
|
|
426
450
|
* Initialises a ChordLyricsPair
|
|
427
451
|
* @param {string} chords The chords
|
|
@@ -507,6 +531,7 @@ const $dce48cb70c4120bb$export$34df5089b632c747 = 'german';
|
|
|
507
531
|
return this.clone();
|
|
508
532
|
}
|
|
509
533
|
}
|
|
534
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($551a223fc13b5c10$var$ChordLyricsPair.prototype, (0, $5d58e7f5804fd974$export$61eddec2ea34c293));
|
|
510
535
|
var $551a223fc13b5c10$export$2e2bcd8739ae039 = $551a223fc13b5c10$var$ChordLyricsPair;
|
|
511
536
|
|
|
512
537
|
|
|
@@ -5168,9 +5193,13 @@ var $6c1ed1378c3b5965$export$2e2bcd8739ae039 = $6c1ed1378c3b5965$var$ChordDefini
|
|
|
5168
5193
|
|
|
5169
5194
|
|
|
5170
5195
|
|
|
5196
|
+
|
|
5171
5197
|
/**
|
|
5172
5198
|
* Represents a comment. See https://www.chordpro.org/chordpro/chordpro-file-format-specification/#overview
|
|
5173
5199
|
*/ class $0bd084786477abba$var$Comment {
|
|
5200
|
+
static [Symbol.hasInstance](instance) {
|
|
5201
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$3386094fd416c850));
|
|
5202
|
+
}
|
|
5174
5203
|
constructor(content){
|
|
5175
5204
|
this.parentLine = null;
|
|
5176
5205
|
this.content = content;
|
|
@@ -5191,6 +5220,7 @@ var $6c1ed1378c3b5965$export$2e2bcd8739ae039 = $6c1ed1378c3b5965$var$ChordDefini
|
|
|
5191
5220
|
return `Comment(content=${this.content})`;
|
|
5192
5221
|
}
|
|
5193
5222
|
}
|
|
5223
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($0bd084786477abba$var$Comment.prototype, (0, $5d58e7f5804fd974$export$3386094fd416c850));
|
|
5194
5224
|
var $0bd084786477abba$export$2e2bcd8739ae039 = $0bd084786477abba$var$Comment;
|
|
5195
5225
|
|
|
5196
5226
|
|
|
@@ -5356,6 +5386,7 @@ var $35ced0783ee29c4f$export$2e2bcd8739ae039 = $35ced0783ee29c4f$var$TagInterpre
|
|
|
5356
5386
|
|
|
5357
5387
|
|
|
5358
5388
|
|
|
5389
|
+
|
|
5359
5390
|
const $7251dad5f4a4c35f$var$CHORDFONT_SHORT = 'cf';
|
|
5360
5391
|
const $7251dad5f4a4c35f$var$CHORDSIZE_SHORT = 'cs';
|
|
5361
5392
|
const $7251dad5f4a4c35f$var$COMMENT_SHORT = 'c';
|
|
@@ -5462,6 +5493,9 @@ const $7251dad5f4a4c35f$var$translateTagNameAlias = (name)=>{
|
|
|
5462
5493
|
/**
|
|
5463
5494
|
* Represents a tag/directive. See https://www.chordpro.org/chordpro/chordpro-directives/
|
|
5464
5495
|
*/ class $7251dad5f4a4c35f$var$Tag extends (0, $c5ce4fc4f57fe810$export$2e2bcd8739ae039) {
|
|
5496
|
+
static [Symbol.hasInstance](instance) {
|
|
5497
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$76ece97d1f94609e));
|
|
5498
|
+
}
|
|
5465
5499
|
constructor(name, value = null, traceInfo = null, attributes = {}, selector = null, isNegated = false){
|
|
5466
5500
|
super(traceInfo), this._isMetaTag = false, this._originalName = '', this._name = '', this._value = '', this.selector = null, this.isNegated = false, /**
|
|
5467
5501
|
* The tag attributes. For example, section related tags can have a label:
|
|
@@ -5616,6 +5650,7 @@ const $7251dad5f4a4c35f$var$translateTagNameAlias = (name)=>{
|
|
|
5616
5650
|
});
|
|
5617
5651
|
}
|
|
5618
5652
|
}
|
|
5653
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($7251dad5f4a4c35f$var$Tag.prototype, (0, $5d58e7f5804fd974$export$76ece97d1f94609e));
|
|
5619
5654
|
var $7251dad5f4a4c35f$export$2e2bcd8739ae039 = $7251dad5f4a4c35f$var$Tag;
|
|
5620
5655
|
|
|
5621
5656
|
|
|
@@ -6445,7 +6480,11 @@ class $8e2590a06c021dbf$var$Evaluatable extends (0, $c5ce4fc4f57fe810$export$2e2
|
|
|
6445
6480
|
var $8e2590a06c021dbf$export$2e2bcd8739ae039 = $8e2590a06c021dbf$var$Evaluatable;
|
|
6446
6481
|
|
|
6447
6482
|
|
|
6483
|
+
|
|
6448
6484
|
class $11953cb6035032a3$var$Literal extends (0, $8e2590a06c021dbf$export$2e2bcd8739ae039) {
|
|
6485
|
+
static [Symbol.hasInstance](instance) {
|
|
6486
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$2d84eac6e4ecf345));
|
|
6487
|
+
}
|
|
6449
6488
|
constructor(string){
|
|
6450
6489
|
super();
|
|
6451
6490
|
this.string = string;
|
|
@@ -6460,12 +6499,17 @@ class $11953cb6035032a3$var$Literal extends (0, $8e2590a06c021dbf$export$2e2bcd8
|
|
|
6460
6499
|
return new $11953cb6035032a3$var$Literal(this.string);
|
|
6461
6500
|
}
|
|
6462
6501
|
}
|
|
6502
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($11953cb6035032a3$var$Literal.prototype, (0, $5d58e7f5804fd974$export$2d84eac6e4ecf345));
|
|
6463
6503
|
var $11953cb6035032a3$export$2e2bcd8739ae039 = $11953cb6035032a3$var$Literal;
|
|
6464
6504
|
|
|
6465
6505
|
|
|
6506
|
+
|
|
6466
6507
|
/**
|
|
6467
6508
|
* Represents a soft line break in the lyrics, typically rendered as a space or optional break point.
|
|
6468
6509
|
*/ class $4b6dd3e4b817bd81$var$SoftLineBreak {
|
|
6510
|
+
static [Symbol.hasInstance](instance) {
|
|
6511
|
+
return (0, $5d58e7f5804fd974$export$c2feda9b9903876a)(instance, (0, $5d58e7f5804fd974$export$95e522225c487273));
|
|
6512
|
+
}
|
|
6469
6513
|
constructor(content = ' '){
|
|
6470
6514
|
this.content = content;
|
|
6471
6515
|
}
|
|
@@ -6475,6 +6519,7 @@ var $11953cb6035032a3$export$2e2bcd8739ae039 = $11953cb6035032a3$var$Literal;
|
|
|
6475
6519
|
return new $4b6dd3e4b817bd81$var$SoftLineBreak();
|
|
6476
6520
|
}
|
|
6477
6521
|
}
|
|
6522
|
+
(0, $5d58e7f5804fd974$export$e4b87724a2ce337f)($4b6dd3e4b817bd81$var$SoftLineBreak.prototype, (0, $5d58e7f5804fd974$export$95e522225c487273));
|
|
6478
6523
|
var $4b6dd3e4b817bd81$export$2e2bcd8739ae039 = $4b6dd3e4b817bd81$var$SoftLineBreak;
|
|
6479
6524
|
|
|
6480
6525
|
|
|
@@ -30237,7 +30282,7 @@ const $a5a21ced491ea51f$var$endSectionTags = {
|
|
|
30237
30282
|
var $a5a21ced491ea51f$export$2e2bcd8739ae039 = $a5a21ced491ea51f$var$UltimateGuitarParser;
|
|
30238
30283
|
|
|
30239
30284
|
|
|
30240
|
-
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = '15.5.
|
|
30285
|
+
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = '15.5.2';
|
|
30241
30286
|
|
|
30242
30287
|
|
|
30243
30288
|
|