chordsheetjs 14.6.0 → 14.7.0-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 +117 -23
- package/lib/bundle.min.js +118 -118
- package/lib/index.js +24 -1
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +81 -1
- package/lib/main.d.ts.map +1 -1
- package/lib/module.js +23 -2
- package/lib/module.js.map +1 -1
- package/package.json +2 -1
package/lib/bundle.js
CHANGED
|
@@ -14251,7 +14251,7 @@ var ChordSheetJS = (() => {
|
|
|
14251
14251
|
function createDOMPurify() {
|
|
14252
14252
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
14253
14253
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
14254
|
-
DOMPurify.version = "3.
|
|
14254
|
+
DOMPurify.version = "3.3.2";
|
|
14255
14255
|
DOMPurify.removed = [];
|
|
14256
14256
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
14257
14257
|
DOMPurify.isSupported = false;
|
|
@@ -14434,7 +14434,7 @@ var ChordSheetJS = (() => {
|
|
|
14434
14434
|
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
14435
14435
|
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
14436
14436
|
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
14437
|
-
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING ||
|
|
14437
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
|
14438
14438
|
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
14439
14439
|
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
14440
14440
|
}
|
|
@@ -14473,8 +14473,12 @@ var ChordSheetJS = (() => {
|
|
|
14473
14473
|
addToSet(ALLOWED_ATTR, xml);
|
|
14474
14474
|
}
|
|
14475
14475
|
}
|
|
14476
|
-
|
|
14477
|
-
|
|
14476
|
+
if (!objectHasOwnProperty(cfg, "ADD_TAGS")) {
|
|
14477
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
14478
|
+
}
|
|
14479
|
+
if (!objectHasOwnProperty(cfg, "ADD_ATTR")) {
|
|
14480
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
14481
|
+
}
|
|
14478
14482
|
if (cfg.ADD_TAGS) {
|
|
14479
14483
|
if (typeof cfg.ADD_TAGS === "function") {
|
|
14480
14484
|
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
@@ -14697,10 +14701,6 @@ var ChordSheetJS = (() => {
|
|
|
14697
14701
|
_forceRemove(currentNode);
|
|
14698
14702
|
return true;
|
|
14699
14703
|
}
|
|
14700
|
-
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === "style" && _isNode(currentNode.firstElementChild)) {
|
|
14701
|
-
_forceRemove(currentNode);
|
|
14702
|
-
return true;
|
|
14703
|
-
}
|
|
14704
14704
|
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
14705
14705
|
_forceRemove(currentNode);
|
|
14706
14706
|
return true;
|
|
@@ -14709,7 +14709,7 @@ var ChordSheetJS = (() => {
|
|
|
14709
14709
|
_forceRemove(currentNode);
|
|
14710
14710
|
return true;
|
|
14711
14711
|
}
|
|
14712
|
-
if (
|
|
14712
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
14713
14713
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
14714
14714
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
14715
14715
|
return false;
|
|
@@ -14889,7 +14889,7 @@ var ChordSheetJS = (() => {
|
|
|
14889
14889
|
}
|
|
14890
14890
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
14891
14891
|
};
|
|
14892
|
-
const
|
|
14892
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
|
|
14893
14893
|
let shadowNode = null;
|
|
14894
14894
|
const shadowIterator = _createNodeIterator(fragment);
|
|
14895
14895
|
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
@@ -14968,21 +14968,13 @@ var ChordSheetJS = (() => {
|
|
|
14968
14968
|
_sanitizeElements(currentNode);
|
|
14969
14969
|
_sanitizeAttributes(currentNode);
|
|
14970
14970
|
if (currentNode.content instanceof DocumentFragment) {
|
|
14971
|
-
|
|
14971
|
+
_sanitizeShadowDOM(currentNode.content);
|
|
14972
14972
|
}
|
|
14973
14973
|
}
|
|
14974
14974
|
if (IN_PLACE) {
|
|
14975
14975
|
return dirty;
|
|
14976
14976
|
}
|
|
14977
14977
|
if (RETURN_DOM) {
|
|
14978
|
-
if (SAFE_FOR_TEMPLATES) {
|
|
14979
|
-
body.normalize();
|
|
14980
|
-
let html2 = body.innerHTML;
|
|
14981
|
-
arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
|
|
14982
|
-
html2 = stringReplace(html2, expr, " ");
|
|
14983
|
-
});
|
|
14984
|
-
body.innerHTML = html2;
|
|
14985
|
-
}
|
|
14986
14978
|
if (RETURN_DOM_FRAGMENT) {
|
|
14987
14979
|
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
14988
14980
|
while (body.firstChild) {
|
|
@@ -15113,7 +15105,7 @@ var ChordSheetJS = (() => {
|
|
|
15113
15105
|
text = freeze(["#text"]);
|
|
15114
15106
|
html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
|
|
15115
15107
|
svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
15116
|
-
mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "
|
|
15108
|
+
mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
|
|
15117
15109
|
xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
15118
15110
|
MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
15119
15111
|
ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
|
@@ -15146,11 +15138,20 @@ var ChordSheetJS = (() => {
|
|
|
15146
15138
|
});
|
|
15147
15139
|
NODE_TYPE = {
|
|
15148
15140
|
element: 1,
|
|
15141
|
+
attribute: 2,
|
|
15149
15142
|
text: 3,
|
|
15143
|
+
cdataSection: 4,
|
|
15144
|
+
entityReference: 5,
|
|
15145
|
+
// Deprecated
|
|
15146
|
+
entityNode: 6,
|
|
15150
15147
|
// Deprecated
|
|
15151
15148
|
progressingInstruction: 7,
|
|
15152
15149
|
comment: 8,
|
|
15153
|
-
document: 9
|
|
15150
|
+
document: 9,
|
|
15151
|
+
documentType: 10,
|
|
15152
|
+
documentFragment: 11,
|
|
15153
|
+
notation: 12
|
|
15154
|
+
// Deprecated
|
|
15154
15155
|
};
|
|
15155
15156
|
getGlobal = function getGlobal2() {
|
|
15156
15157
|
return typeof window === "undefined" ? null : window;
|
|
@@ -33032,6 +33033,8 @@ var ChordSheetJS = (() => {
|
|
|
33032
33033
|
$parcel$export(module.exports, "UltimateGuitarParser", () => $a5a21ced491ea51f$export$2e2bcd8739ae039);
|
|
33033
33034
|
$parcel$export(module.exports, "templateHelpers", () => $f9c5006b26957916$export$2e2bcd8739ae039);
|
|
33034
33035
|
$parcel$export(module.exports, "version", () => $ae92e002ce14f11a$export$2e2bcd8739ae039);
|
|
33036
|
+
$parcel$export(module.exports, "formatterConfiguration", () => $2a7926da41d163b3$export$2e2bcd8739ae039);
|
|
33037
|
+
$parcel$export(module.exports, "keyHelpers", () => $3f8a8e161b112441$export$2e2bcd8739ae039);
|
|
33035
33038
|
$parcel$export(module.exports, "IMAGE", () => $d21c5c7a462f3c34$export$74f94c628b84d921);
|
|
33036
33039
|
$parcel$export(module.exports, "defaultPangoRenderer", () => $1883202621c13add$export$6be9e661c5b42166);
|
|
33037
33040
|
$parcel$export(module.exports, "pangoToHtml", () => $1883202621c13add$export$599bd3ab2aa4735e);
|
|
@@ -40415,6 +40418,74 @@ ${formattedContentLines}`;
|
|
|
40415
40418
|
}
|
|
40416
40419
|
};
|
|
40417
40420
|
var $e02a17f5a26edf19$export$2e2bcd8739ae039 = $e02a17f5a26edf19$var$ChordRenderer;
|
|
40421
|
+
var $a7ae2843546189cc$export$1e6f8e38ccd793b = {
|
|
40422
|
+
solfege: [
|
|
40423
|
+
"La",
|
|
40424
|
+
"Sib",
|
|
40425
|
+
"Si",
|
|
40426
|
+
"Do",
|
|
40427
|
+
"Do#",
|
|
40428
|
+
"Reb",
|
|
40429
|
+
"Re",
|
|
40430
|
+
"Mib",
|
|
40431
|
+
"Mi",
|
|
40432
|
+
"Fa",
|
|
40433
|
+
"Fa#",
|
|
40434
|
+
"Solb",
|
|
40435
|
+
"Sol",
|
|
40436
|
+
"Sol#",
|
|
40437
|
+
"Lab"
|
|
40438
|
+
],
|
|
40439
|
+
symbol: [
|
|
40440
|
+
"A",
|
|
40441
|
+
"Bb",
|
|
40442
|
+
"B",
|
|
40443
|
+
"C",
|
|
40444
|
+
"C#",
|
|
40445
|
+
"Db",
|
|
40446
|
+
"D",
|
|
40447
|
+
"Eb",
|
|
40448
|
+
"E",
|
|
40449
|
+
"F",
|
|
40450
|
+
"F#",
|
|
40451
|
+
"Gb",
|
|
40452
|
+
"G",
|
|
40453
|
+
"G#",
|
|
40454
|
+
"Ab"
|
|
40455
|
+
]
|
|
40456
|
+
};
|
|
40457
|
+
var $a7ae2843546189cc$export$24a0bd6af7756225 = {
|
|
40458
|
+
solfege: [
|
|
40459
|
+
"Fa#m",
|
|
40460
|
+
"Solm",
|
|
40461
|
+
"Sol#m",
|
|
40462
|
+
"Lam",
|
|
40463
|
+
"Sibm",
|
|
40464
|
+
"Sim",
|
|
40465
|
+
"Dom",
|
|
40466
|
+
"Do#m",
|
|
40467
|
+
"Rem",
|
|
40468
|
+
"Re#m",
|
|
40469
|
+
"Mibm",
|
|
40470
|
+
"Mim",
|
|
40471
|
+
"Fam"
|
|
40472
|
+
],
|
|
40473
|
+
symbol: [
|
|
40474
|
+
"F#m",
|
|
40475
|
+
"Gm",
|
|
40476
|
+
"G#m",
|
|
40477
|
+
"Am",
|
|
40478
|
+
"Bbm",
|
|
40479
|
+
"Bm",
|
|
40480
|
+
"Cm",
|
|
40481
|
+
"C#m",
|
|
40482
|
+
"Dm",
|
|
40483
|
+
"D#m",
|
|
40484
|
+
"Ebm",
|
|
40485
|
+
"Em",
|
|
40486
|
+
"Fm"
|
|
40487
|
+
]
|
|
40488
|
+
};
|
|
40418
40489
|
var $a7ae2843546189cc$export$1ba61c6fa2f892a9 = {
|
|
40419
40490
|
solfege: {
|
|
40420
40491
|
"Sib": {
|
|
@@ -40722,6 +40793,11 @@ ${formattedContentLines}`;
|
|
|
40722
40793
|
const chordType = keyObj.type === "solfege" ? "solfege" : "symbol";
|
|
40723
40794
|
return (0, $a7ae2843546189cc$export$1ba61c6fa2f892a9)[chordType][(0, $c2d6ab25ad00308f$export$2e2bcd8739ae039).toString(key)];
|
|
40724
40795
|
}
|
|
40796
|
+
function $2ce1086ce25c9ac0$export$74743eda5dda3ccf(key) {
|
|
40797
|
+
const keyObj = (0, $c2d6ab25ad00308f$export$2e2bcd8739ae039).wrapOrFail(key);
|
|
40798
|
+
const chordType = keyObj.type === "solfege" ? "solfege" : "symbol";
|
|
40799
|
+
return keyObj.isMinor() ? (0, $a7ae2843546189cc$export$24a0bd6af7756225)[chordType] : (0, $a7ae2843546189cc$export$1e6f8e38ccd793b)[chordType];
|
|
40800
|
+
}
|
|
40725
40801
|
function $2ce1086ce25c9ac0$export$efb38dd75b8e2957({ selector, isNegated }, { configuration, metadata }) {
|
|
40726
40802
|
if (selector === configuration.instrument?.type) return !isNegated;
|
|
40727
40803
|
if (selector === configuration.user?.name) return !isNegated;
|
|
@@ -46382,6 +46458,10 @@ Or set the song key before changing key:
|
|
|
46382
46458
|
}
|
|
46383
46459
|
};
|
|
46384
46460
|
var $e9ad1e86e7afd0c0$export$2e2bcd8739ae039 = $e9ad1e86e7afd0c0$var$When;
|
|
46461
|
+
function $181068e44290b873$export$8d21e34596265fa2(config) {
|
|
46462
|
+
const defautlBaseConfig = (0, $fe1d3ba9df1ecad5$export$cb4529290f33d264)();
|
|
46463
|
+
return (0, $28a2fcb6fb95a147$export$5d86b86a654a7039)(defautlBaseConfig, config);
|
|
46464
|
+
}
|
|
46385
46465
|
function $f9c5006b26957916$export$17c9e635b932873b(item) {
|
|
46386
46466
|
return item instanceof (0, $551a223fc13b5c10$export$2e2bcd8739ae039);
|
|
46387
46467
|
}
|
|
@@ -70213,7 +70293,19 @@ AjwCRQJ5AAAAAAABAAAAANpTmfAAAAAA0e+yRgAAAADR77JG
|
|
|
70213
70293
|
}
|
|
70214
70294
|
};
|
|
70215
70295
|
var $a5a21ced491ea51f$export$2e2bcd8739ae039 = $a5a21ced491ea51f$var$UltimateGuitarParser;
|
|
70216
|
-
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = "14.
|
|
70296
|
+
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = "14.7.0-canary.0";
|
|
70297
|
+
var $2a7926da41d163b3$export$2e2bcd8739ae039 = {
|
|
70298
|
+
configure: $181068e44290b873$export$8d21e34596265fa2,
|
|
70299
|
+
getDefaultConfig: $fe1d3ba9df1ecad5$export$ed30944e0fe6ae5c,
|
|
70300
|
+
getHTMLDefaultConfig: $fe1d3ba9df1ecad5$export$feae4e1ddbcbea1a,
|
|
70301
|
+
getMeasuredHtmlDefaultConfig: $fe1d3ba9df1ecad5$export$fe41e6106c4780cb,
|
|
70302
|
+
getPDFDefaultConfig: $fe1d3ba9df1ecad5$export$a9bd96cef660c12c,
|
|
70303
|
+
mergeConfigs: $28a2fcb6fb95a147$export$5d86b86a654a7039
|
|
70304
|
+
};
|
|
70305
|
+
var $3f8a8e161b112441$export$2e2bcd8739ae039 = {
|
|
70306
|
+
getCapos: $2ce1086ce25c9ac0$export$b07b16221c14aaa,
|
|
70307
|
+
getKeys: $2ce1086ce25c9ac0$export$74743eda5dda3ccf
|
|
70308
|
+
};
|
|
70217
70309
|
var $a3816b486f741c00$exports = {};
|
|
70218
70310
|
var $892913528e7f60f9$export$2e2bcd8739ae039 = {
|
|
70219
70311
|
CHORUS: $dce48cb70c4120bb$export$8db6c706fc9142b2,
|
|
@@ -70253,6 +70345,8 @@ AjwCRQJ5AAAAAAABAAAAANpTmfAAAAAA0e+yRgAAAADR77JG
|
|
|
70253
70345
|
CanvasMeasurer: $5aa067f9e49dac6d$export$6d4390fed2af4771,
|
|
70254
70346
|
JsPdfMeasurer: $084c3084a14f9d9d$export$341872369d2a416a,
|
|
70255
70347
|
LayoutEngine: $7fa32b9e3992eddb$export$12b762d1038ddc6b,
|
|
70348
|
+
formatterConfiguration: $2a7926da41d163b3$export$2e2bcd8739ae039,
|
|
70349
|
+
keyHelpers: $3f8a8e161b112441$export$2e2bcd8739ae039,
|
|
70256
70350
|
version: $ae92e002ce14f11a$export$2e2bcd8739ae039,
|
|
70257
70351
|
templateHelpers: {
|
|
70258
70352
|
isEvaluatable: $28a2fcb6fb95a147$export$e3f63561d52b936d,
|
|
@@ -70307,7 +70401,7 @@ html2canvas/dist/html2canvas.js:
|
|
|
70307
70401
|
***************************************************************************** *)
|
|
70308
70402
|
|
|
70309
70403
|
dompurify/dist/purify.es.mjs:
|
|
70310
|
-
(*! @license DOMPurify 3.
|
|
70404
|
+
(*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE *)
|
|
70311
70405
|
|
|
70312
70406
|
svg-pathdata/lib/SVGPathData.module.js:
|
|
70313
70407
|
(*! *****************************************************************************
|