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