chordsheetjs 7.3.0 → 7.3.1
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 +760 -8903
- package/lib/index.js +16 -30
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
var $988mA$process = require("process");
|
|
2
1
|
var $988mA$lodashget = require("lodash.get");
|
|
3
|
-
var $988mA$handlebars = require("handlebars");
|
|
4
2
|
|
|
5
3
|
function $parcel$defineInteropFlag(a) {
|
|
6
4
|
Object.defineProperty(a, '__esModule', {value: true, configurable: true});
|
|
@@ -1936,7 +1934,6 @@ var $6ebb068142750218$export$2e2bcd8739ae039 = {
|
|
|
1936
1934
|
};
|
|
1937
1935
|
|
|
1938
1936
|
|
|
1939
|
-
|
|
1940
1937
|
const $21a34a464e7bc609$export$13215d9ce4923f76 = (collection, Klass)=>{
|
|
1941
1938
|
const newObject = new Klass();
|
|
1942
1939
|
collection.push(newObject);
|
|
@@ -1969,7 +1966,8 @@ function $21a34a464e7bc609$export$b680e6b2c82f8c2f(message) {
|
|
|
1969
1966
|
try {
|
|
1970
1967
|
throw new Error(`DEPRECATION: ${message}`);
|
|
1971
1968
|
} catch (e) {
|
|
1972
|
-
|
|
1969
|
+
const proc = globalThis.process;
|
|
1970
|
+
if (typeof proc === "object" && typeof proc.emitWarning === "function") proc.emitWarning(`${message}\n${e.stack}`);
|
|
1973
1971
|
else console.warn(`${message}\n${e.stack}`);
|
|
1974
1972
|
}
|
|
1975
1973
|
}
|
|
@@ -4927,6 +4925,19 @@ var $525b2331e4b0ed83$export$2e2bcd8739ae039 = $525b2331e4b0ed83$var$TextFormatt
|
|
|
4927
4925
|
|
|
4928
4926
|
|
|
4929
4927
|
|
|
4928
|
+
/**
|
|
4929
|
+
* Acts as a base class for HTML formatters, taking care of whitelisting prototype property access.
|
|
4930
|
+
*/ class $d834af97c9a2e4df$var$HtmlFormatter extends (0, $0055ecb09272ba2d$export$2e2bcd8739ae039) {
|
|
4931
|
+
formatWithTemplate(song, template) {
|
|
4932
|
+
return template({
|
|
4933
|
+
song: song,
|
|
4934
|
+
configuration: this.configuration
|
|
4935
|
+
});
|
|
4936
|
+
}
|
|
4937
|
+
}
|
|
4938
|
+
var $d834af97c9a2e4df$export$2e2bcd8739ae039 = $d834af97c9a2e4df$var$HtmlFormatter;
|
|
4939
|
+
|
|
4940
|
+
|
|
4930
4941
|
|
|
4931
4942
|
|
|
4932
4943
|
|
|
@@ -4979,31 +4990,6 @@ var $5381a6b1b90601c7$export$2e2bcd8739ae039 = ({ configuration: configuration ,
|
|
|
4979
4990
|
|
|
4980
4991
|
|
|
4981
4992
|
|
|
4982
|
-
|
|
4983
|
-
/**
|
|
4984
|
-
* Acts as a base class for HTML formatters, taking care of whitelisting prototype property access.
|
|
4985
|
-
*/ class $d834af97c9a2e4df$var$HtmlFormatter extends (0, $0055ecb09272ba2d$export$2e2bcd8739ae039) {
|
|
4986
|
-
formatWithTemplate(song, template) {
|
|
4987
|
-
return template({
|
|
4988
|
-
song: song,
|
|
4989
|
-
configuration: this.configuration
|
|
4990
|
-
}, {
|
|
4991
|
-
allowedProtoProperties: {
|
|
4992
|
-
bodyLines: true,
|
|
4993
|
-
bodyParagraphs: true,
|
|
4994
|
-
subtitle: true,
|
|
4995
|
-
title: true,
|
|
4996
|
-
value: true,
|
|
4997
|
-
key: true
|
|
4998
|
-
}
|
|
4999
|
-
});
|
|
5000
|
-
}
|
|
5001
|
-
}
|
|
5002
|
-
var $d834af97c9a2e4df$export$2e2bcd8739ae039 = $d834af97c9a2e4df$var$HtmlFormatter;
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
const { html_table_formatter: $5b02ea769c63fd56$var$template } = (0, ($parcel$interopDefault($988mA$handlebars))).templates;
|
|
5007
4993
|
const $5b02ea769c63fd56$export$200cf2de69532aa8 = {
|
|
5008
4994
|
h1: {
|
|
5009
4995
|
fontSize: "1.5em"
|
|
@@ -5037,7 +5023,7 @@ function $5b02ea769c63fd56$export$aa5b6043dd05348b(scope) {
|
|
|
5037
5023
|
* @param {Song} song The song to be formatted
|
|
5038
5024
|
* @returns {string} The HTML string
|
|
5039
5025
|
*/ format(song) {
|
|
5040
|
-
return this.formatWithTemplate(song, $
|
|
5026
|
+
return this.formatWithTemplate(song, (0, $5381a6b1b90601c7$export$2e2bcd8739ae039));
|
|
5041
5027
|
}
|
|
5042
5028
|
/**
|
|
5043
5029
|
* Generates basic CSS, optionally scoped within the provided selector, to use with output generated by
|