@unlayer/react-elements 0.1.19 → 0.1.21
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/dist/index.cjs +53 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +53 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -512,6 +512,7 @@ function normalizeValuesForExporter(values, componentName) {
|
|
|
512
512
|
return out;
|
|
513
513
|
}
|
|
514
514
|
var HTML_ENTITIES = {
|
|
515
|
+
// Core markup + whitespace
|
|
515
516
|
"&": "&",
|
|
516
517
|
"<": "<",
|
|
517
518
|
">": ">",
|
|
@@ -519,16 +520,67 @@ var HTML_ENTITIES = {
|
|
|
519
520
|
"'": "'",
|
|
520
521
|
"'": "'",
|
|
521
522
|
" ": " ",
|
|
523
|
+
// Dashes, quotes, and typographic punctuation
|
|
522
524
|
"—": "\u2014",
|
|
523
525
|
"–": "\u2013",
|
|
524
526
|
"«": "\xAB",
|
|
525
527
|
"»": "\xBB",
|
|
528
|
+
"‘": "\u2018",
|
|
529
|
+
"’": "\u2019",
|
|
530
|
+
"“": "\u201C",
|
|
531
|
+
"”": "\u201D",
|
|
526
532
|
"•": "\u2022",
|
|
527
533
|
"·": "\xB7",
|
|
528
534
|
"…": "\u2026",
|
|
535
|
+
// Currency
|
|
536
|
+
"¢": "\xA2",
|
|
537
|
+
"£": "\xA3",
|
|
538
|
+
"¥": "\xA5",
|
|
539
|
+
"€": "\u20AC",
|
|
540
|
+
// Legal / trademark
|
|
529
541
|
"©": "\xA9",
|
|
530
542
|
"®": "\xAE",
|
|
531
|
-
"™": "\u2122"
|
|
543
|
+
"™": "\u2122",
|
|
544
|
+
"§": "\xA7",
|
|
545
|
+
"¶": "\xB6",
|
|
546
|
+
// Math and misc symbols
|
|
547
|
+
"°": "\xB0",
|
|
548
|
+
"±": "\xB1",
|
|
549
|
+
"×": "\xD7",
|
|
550
|
+
"÷": "\xF7",
|
|
551
|
+
"µ": "\xB5",
|
|
552
|
+
"¼": "\xBC",
|
|
553
|
+
"½": "\xBD",
|
|
554
|
+
"¾": "\xBE",
|
|
555
|
+
// Latin-1 accented letters (common in European names/words)
|
|
556
|
+
"ß": "\xDF",
|
|
557
|
+
"à": "\xE0",
|
|
558
|
+
"á": "\xE1",
|
|
559
|
+
"â": "\xE2",
|
|
560
|
+
"ã": "\xE3",
|
|
561
|
+
"ä": "\xE4",
|
|
562
|
+
"å": "\xE5",
|
|
563
|
+
"æ": "\xE6",
|
|
564
|
+
"ç": "\xE7",
|
|
565
|
+
"è": "\xE8",
|
|
566
|
+
"é": "\xE9",
|
|
567
|
+
"ê": "\xEA",
|
|
568
|
+
"ë": "\xEB",
|
|
569
|
+
"ì": "\xEC",
|
|
570
|
+
"í": "\xED",
|
|
571
|
+
"î": "\xEE",
|
|
572
|
+
"ï": "\xEF",
|
|
573
|
+
"ñ": "\xF1",
|
|
574
|
+
"ò": "\xF2",
|
|
575
|
+
"ó": "\xF3",
|
|
576
|
+
"ô": "\xF4",
|
|
577
|
+
"õ": "\xF5",
|
|
578
|
+
"ö": "\xF6",
|
|
579
|
+
"ø": "\xF8",
|
|
580
|
+
"ù": "\xF9",
|
|
581
|
+
"ú": "\xFA",
|
|
582
|
+
"û": "\xFB",
|
|
583
|
+
"ü": "\xFC"
|
|
532
584
|
};
|
|
533
585
|
function decodeEntities(text) {
|
|
534
586
|
let result = text.replace(/&\w+;/g, (match) => HTML_ENTITIES[match] ?? match);
|