@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 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
  "&lt;": "<",
517
518
  "&gt;": ">",
@@ -519,16 +520,67 @@ var HTML_ENTITIES = {
519
520
  "&#39;": "'",
520
521
  "&apos;": "'",
521
522
  "&nbsp;": " ",
523
+ // Dashes, quotes, and typographic punctuation
522
524
  "&mdash;": "\u2014",
523
525
  "&ndash;": "\u2013",
524
526
  "&laquo;": "\xAB",
525
527
  "&raquo;": "\xBB",
528
+ "&lsquo;": "\u2018",
529
+ "&rsquo;": "\u2019",
530
+ "&ldquo;": "\u201C",
531
+ "&rdquo;": "\u201D",
526
532
  "&bull;": "\u2022",
527
533
  "&middot;": "\xB7",
528
534
  "&hellip;": "\u2026",
535
+ // Currency
536
+ "&cent;": "\xA2",
537
+ "&pound;": "\xA3",
538
+ "&yen;": "\xA5",
539
+ "&euro;": "\u20AC",
540
+ // Legal / trademark
529
541
  "&copy;": "\xA9",
530
542
  "&reg;": "\xAE",
531
- "&trade;": "\u2122"
543
+ "&trade;": "\u2122",
544
+ "&sect;": "\xA7",
545
+ "&para;": "\xB6",
546
+ // Math and misc symbols
547
+ "&deg;": "\xB0",
548
+ "&plusmn;": "\xB1",
549
+ "&times;": "\xD7",
550
+ "&divide;": "\xF7",
551
+ "&micro;": "\xB5",
552
+ "&frac14;": "\xBC",
553
+ "&frac12;": "\xBD",
554
+ "&frac34;": "\xBE",
555
+ // Latin-1 accented letters (common in European names/words)
556
+ "&szlig;": "\xDF",
557
+ "&agrave;": "\xE0",
558
+ "&aacute;": "\xE1",
559
+ "&acirc;": "\xE2",
560
+ "&atilde;": "\xE3",
561
+ "&auml;": "\xE4",
562
+ "&aring;": "\xE5",
563
+ "&aelig;": "\xE6",
564
+ "&ccedil;": "\xE7",
565
+ "&egrave;": "\xE8",
566
+ "&eacute;": "\xE9",
567
+ "&ecirc;": "\xEA",
568
+ "&euml;": "\xEB",
569
+ "&igrave;": "\xEC",
570
+ "&iacute;": "\xED",
571
+ "&icirc;": "\xEE",
572
+ "&iuml;": "\xEF",
573
+ "&ntilde;": "\xF1",
574
+ "&ograve;": "\xF2",
575
+ "&oacute;": "\xF3",
576
+ "&ocirc;": "\xF4",
577
+ "&otilde;": "\xF5",
578
+ "&ouml;": "\xF6",
579
+ "&oslash;": "\xF8",
580
+ "&ugrave;": "\xF9",
581
+ "&uacute;": "\xFA",
582
+ "&ucirc;": "\xFB",
583
+ "&uuml;": "\xFC"
532
584
  };
533
585
  function decodeEntities(text) {
534
586
  let result = text.replace(/&\w+;/g, (match) => HTML_ENTITIES[match] ?? match);