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