@magicfeedback/popup-sdk 1.9.0 → 1.11.0
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/README.md +23 -1
- package/dist/assets/assets/style.css +303 -1
- package/dist/{chunk-MTV7T4OW.mjs → chunk-GXEPYT33.mjs} +304 -2
- package/dist/{chunk-MTV7T4OW.mjs.map → chunk-GXEPYT33.mjs.map} +1 -1
- package/dist/{chunk-AKVMUQXO.mjs → chunk-TSORXOQG.mjs} +304 -2
- package/dist/{chunk-AKVMUQXO.mjs.map → chunk-TSORXOQG.mjs.map} +1 -1
- package/dist/index.d.mts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +1752 -898
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +229 -16
- package/dist/index.mjs.map +1 -1
- package/dist/react-native.d.mts +52 -1
- package/dist/react-native.d.ts +52 -1
- package/dist/react-native.js +556 -21
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +230 -16
- package/dist/react-native.mjs.map +1 -1
- package/dist/{renderPopup-LEM2MLWT.mjs → renderPopup-JF6IB6HL.mjs} +29 -10
- package/dist/renderPopup-JF6IB6HL.mjs.map +1 -0
- package/dist/{renderPopup-LEGTSBLD.mjs → renderPopup-KSZJ5AN4.mjs} +1231 -892
- package/dist/renderPopup-KSZJ5AN4.mjs.map +1 -0
- package/package.json +5 -3
- package/dist/renderPopup-LEGTSBLD.mjs.map +0 -1
- package/dist/renderPopup-LEM2MLWT.mjs.map +0 -1
|
@@ -488,7 +488,7 @@ function ddSetSurveyBusy(el, busy){
|
|
|
488
488
|
var style_default = `/**
|
|
489
489
|
* NO EDITAR A MANO \u2014 generado por scripts/vendor-survey-css.mjs
|
|
490
490
|
*
|
|
491
|
-
* Copia de @magicfeedback/native@2.2.
|
|
491
|
+
* Copia de @magicfeedback/native@2.2.31 \u2192 dist/styles/magicfeedback-default.css
|
|
492
492
|
* (la hoja can\xF3nica del paquete, la que apunta su campo "style"), con estos cambios locales:
|
|
493
493
|
*
|
|
494
494
|
* 1. Sin el @import de Google Fonts (Nunito): no queremos una petici\xF3n externa desde la
|
|
@@ -1472,6 +1472,9 @@ div.magicfeedback-radio {
|
|
|
1472
1472
|
width: 100%;
|
|
1473
1473
|
overflow-x: auto;
|
|
1474
1474
|
border-radius: var(--mf-radius-md);
|
|
1475
|
+
/* the layout follows the space the survey gets (a pop-in, a sidebar),
|
|
1476
|
+
not the size of the window */
|
|
1477
|
+
container-type: inline-size;
|
|
1475
1478
|
}
|
|
1476
1479
|
|
|
1477
1480
|
.magicfeedback-multi-question-matrix-table {
|
|
@@ -1523,6 +1526,296 @@ div.magicfeedback-radio {
|
|
|
1523
1526
|
accent-color: var(--mf-primary);
|
|
1524
1527
|
}
|
|
1525
1528
|
|
|
1529
|
+
.magicfeedback-multi-question-matrix-question {
|
|
1530
|
+
min-width: 200px;
|
|
1531
|
+
padding: 10px;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
/* the column header names the option in a table; the per-cell label is for
|
|
1535
|
+
screen readers until the rows stack */
|
|
1536
|
+
.magicfeedback-multi-question-matrix-option-label {
|
|
1537
|
+
position: absolute;
|
|
1538
|
+
width: 1px;
|
|
1539
|
+
height: 1px;
|
|
1540
|
+
overflow: hidden;
|
|
1541
|
+
clip: rect(0, 0, 0, 0);
|
|
1542
|
+
white-space: nowrap;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/* narrow container: every row becomes its own question with the options
|
|
1546
|
+
stacked underneath, instead of a table cut off at the side */
|
|
1547
|
+
@container (max-width: 599px) {
|
|
1548
|
+
.magicfeedback-multi-question-matrix-table,
|
|
1549
|
+
.magicfeedback-multi-question-matrix-table tbody,
|
|
1550
|
+
.magicfeedback-multi-question-matrix-table tr,
|
|
1551
|
+
.magicfeedback-multi-question-matrix-table td {
|
|
1552
|
+
display: block;
|
|
1553
|
+
width: 100%;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.magicfeedback-multi-question-matrix-table thead {
|
|
1557
|
+
display: none;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
.magicfeedback-multi-question-matrix-row-tr,
|
|
1561
|
+
.magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
|
|
1562
|
+
margin-bottom: var(--mf-space-lg);
|
|
1563
|
+
background: transparent;
|
|
1564
|
+
box-shadow: none;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
@media (hover: hover) {
|
|
1568
|
+
.magicfeedback-multi-question-matrix-row-tr:hover {
|
|
1569
|
+
margin-bottom: var(--mf-space-lg);
|
|
1570
|
+
background: transparent;
|
|
1571
|
+
box-shadow: none;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
.magicfeedback-multi-question-matrix-table td.magicfeedback-multi-question-matrix-question {
|
|
1576
|
+
min-width: 0;
|
|
1577
|
+
padding: 0 0 var(--mf-space-sm);
|
|
1578
|
+
text-align: start;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.magicfeedback-multi-question-matrix-question .magicfeedback-multi-question-matrix-label {
|
|
1582
|
+
font-weight: 600;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
.magicfeedback-multi-question-matrix-table td.magicfeedback-multi-question-matrix-option {
|
|
1586
|
+
display: flex;
|
|
1587
|
+
align-items: center;
|
|
1588
|
+
gap: var(--mf-space-sm);
|
|
1589
|
+
margin-bottom: var(--mf-space-sm);
|
|
1590
|
+
padding: 0 var(--mf-space-md);
|
|
1591
|
+
text-align: start;
|
|
1592
|
+
background: var(--mf-bg-secondary);
|
|
1593
|
+
border: 2px solid var(--mf-border);
|
|
1594
|
+
border-radius: var(--mf-radius-md);
|
|
1595
|
+
cursor: pointer;
|
|
1596
|
+
transition: var(--mf-transition-fast);
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
@media (hover: hover) {
|
|
1600
|
+
.magicfeedback-multi-question-matrix-option:hover {
|
|
1601
|
+
border-color: var(--mf-primary-border);
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.magicfeedback-multi-question-matrix-option:has(input:checked) {
|
|
1606
|
+
border-color: var(--mf-primary);
|
|
1607
|
+
background: var(--mf-primary-light);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.magicfeedback-multi-question-matrix-table .magicfeedback-multi-question-matrix-option input[type="radio"] {
|
|
1611
|
+
flex-shrink: 0;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/* the whole card is the click target */
|
|
1615
|
+
.magicfeedback-multi-question-matrix-option-label {
|
|
1616
|
+
position: static;
|
|
1617
|
+
flex: 1;
|
|
1618
|
+
width: auto;
|
|
1619
|
+
height: auto;
|
|
1620
|
+
padding: var(--mf-space-md) 0;
|
|
1621
|
+
overflow: visible;
|
|
1622
|
+
clip: auto;
|
|
1623
|
+
white-space: normal;
|
|
1624
|
+
font-size: var(--mf-font-size-base);
|
|
1625
|
+
color: var(--mf-text-primary);
|
|
1626
|
+
cursor: pointer;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/* ========================================
|
|
1631
|
+
MAXDIFF (BEST\u2013WORST)
|
|
1632
|
+
======================================== */
|
|
1633
|
+
.magicfeedback-max-diff {
|
|
1634
|
+
/* "least" gets its own hue, apart from the brand color "most" uses; dark
|
|
1635
|
+
enough to read as header text and to hold the white center dot */
|
|
1636
|
+
--mf-max-diff-worst: #b45309;
|
|
1637
|
+
width: 100%;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
.magicfeedback-max-diff-container {
|
|
1641
|
+
width: 100%;
|
|
1642
|
+
/* the layout follows the space the survey gets (a pop-in, a sidebar),
|
|
1643
|
+
not the size of the window */
|
|
1644
|
+
container-type: inline-size;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
.magicfeedback-max-diff-progress {
|
|
1648
|
+
display: flex;
|
|
1649
|
+
align-items: center;
|
|
1650
|
+
gap: var(--mf-space-md);
|
|
1651
|
+
margin-bottom: var(--mf-space-lg);
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.magicfeedback-max-diff-progress-label {
|
|
1655
|
+
font-size: 0.8125rem;
|
|
1656
|
+
font-weight: var(--mf-font-weight-bold);
|
|
1657
|
+
letter-spacing: 0.04em;
|
|
1658
|
+
text-transform: uppercase;
|
|
1659
|
+
white-space: nowrap;
|
|
1660
|
+
color: var(--mf-text-secondary);
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
.magicfeedback-max-diff-progress-track {
|
|
1664
|
+
flex: 1;
|
|
1665
|
+
height: 6px;
|
|
1666
|
+
overflow: hidden;
|
|
1667
|
+
border-radius: var(--mf-radius-full);
|
|
1668
|
+
background: var(--mf-border);
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
.magicfeedback-max-diff-progress-fill {
|
|
1672
|
+
display: block;
|
|
1673
|
+
height: 100%;
|
|
1674
|
+
border-radius: var(--mf-radius-full);
|
|
1675
|
+
background: var(--mf-primary);
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
.magicfeedback-max-diff-table {
|
|
1679
|
+
width: 100%;
|
|
1680
|
+
border-collapse: collapse;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
.magicfeedback-max-diff-head,
|
|
1684
|
+
.magicfeedback-max-diff-head-spacer {
|
|
1685
|
+
border-bottom: 1px solid var(--mf-border);
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.magicfeedback-max-diff-head {
|
|
1689
|
+
width: 11rem;
|
|
1690
|
+
padding: 0 var(--mf-space-sm) var(--mf-space-sm);
|
|
1691
|
+
font-size: 0.8125rem;
|
|
1692
|
+
font-weight: var(--mf-font-weight-extrabold);
|
|
1693
|
+
letter-spacing: 0.04em;
|
|
1694
|
+
text-transform: uppercase;
|
|
1695
|
+
text-align: center;
|
|
1696
|
+
vertical-align: bottom;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
.magicfeedback-max-diff-head-best {
|
|
1700
|
+
color: var(--mf-primary);
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.magicfeedback-max-diff-head-worst {
|
|
1704
|
+
color: var(--mf-max-diff-worst);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.magicfeedback-max-diff-head-label {
|
|
1708
|
+
display: inline-flex;
|
|
1709
|
+
align-items: center;
|
|
1710
|
+
gap: 6px;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
.magicfeedback-max-diff-row {
|
|
1714
|
+
transition: background-color 0.15s ease;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
.magicfeedback-max-diff-row > * {
|
|
1718
|
+
border-bottom: 1px solid var(--mf-border);
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
.magicfeedback-max-diff-row:has(.magicfeedback-max-diff-best:checked) {
|
|
1722
|
+
background-color: color-mix(in srgb, var(--mf-primary) 8%, transparent);
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
.magicfeedback-max-diff-row:has(.magicfeedback-max-diff-worst:checked) {
|
|
1726
|
+
background-color: color-mix(in srgb, var(--mf-max-diff-worst) 8%, transparent);
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
.magicfeedback-max-diff-item {
|
|
1730
|
+
padding: var(--mf-space-md) var(--mf-space-sm);
|
|
1731
|
+
font-size: 1.0625rem;
|
|
1732
|
+
font-weight: var(--mf-font-weight-semibold);
|
|
1733
|
+
line-height: 1.4;
|
|
1734
|
+
text-align: center;
|
|
1735
|
+
color: var(--mf-text-primary);
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.magicfeedback-max-diff-row:has(input:checked) .magicfeedback-max-diff-item {
|
|
1739
|
+
font-weight: var(--mf-font-weight-extrabold);
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
.magicfeedback-max-diff-cell {
|
|
1743
|
+
padding: 0;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
/* the whole cell is the click target */
|
|
1747
|
+
.magicfeedback-max-diff-pick {
|
|
1748
|
+
display: flex;
|
|
1749
|
+
align-items: center;
|
|
1750
|
+
justify-content: center;
|
|
1751
|
+
min-height: 64px;
|
|
1752
|
+
cursor: pointer;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
.magicfeedback-max-diff-input {
|
|
1756
|
+
appearance: none;
|
|
1757
|
+
-webkit-appearance: none;
|
|
1758
|
+
flex-shrink: 0;
|
|
1759
|
+
width: 26px;
|
|
1760
|
+
height: 26px;
|
|
1761
|
+
margin: 0;
|
|
1762
|
+
border: 2px solid color-mix(in srgb, var(--mf-text-secondary) 80%, white);
|
|
1763
|
+
border-radius: var(--mf-radius-full);
|
|
1764
|
+
background: var(--mf-bg-secondary);
|
|
1765
|
+
cursor: pointer;
|
|
1766
|
+
transition: var(--mf-transition-fast);
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
@media (hover: hover) {
|
|
1770
|
+
.magicfeedback-max-diff-pick:hover .magicfeedback-max-diff-input {
|
|
1771
|
+
transform: scale(1.08);
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
.magicfeedback-max-diff-best:checked {
|
|
1776
|
+
border-color: var(--mf-primary);
|
|
1777
|
+
background: radial-gradient(circle, #FFFFFF 0 4px, var(--mf-primary) 4.5px);
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
.magicfeedback-max-diff-worst:checked {
|
|
1781
|
+
border-color: var(--mf-max-diff-worst);
|
|
1782
|
+
background: radial-gradient(circle, #FFFFFF 0 4px, var(--mf-max-diff-worst) 4.5px);
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
.magicfeedback-max-diff-input:focus-visible {
|
|
1786
|
+
outline: 3px solid var(--mf-primary-border);
|
|
1787
|
+
outline-offset: 3px;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/* narrow container: same table, slimmer pick columns and the header icon
|
|
1791
|
+
stacked over its label */
|
|
1792
|
+
@container (max-width: 599px) {
|
|
1793
|
+
.magicfeedback-max-diff-head {
|
|
1794
|
+
width: 4.75rem;
|
|
1795
|
+
padding-inline: 2px;
|
|
1796
|
+
font-size: 0.6875rem;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
.magicfeedback-max-diff-head-label {
|
|
1800
|
+
flex-direction: column;
|
|
1801
|
+
gap: 2px;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
.magicfeedback-max-diff-item {
|
|
1805
|
+
padding-inline: 4px;
|
|
1806
|
+
font-size: var(--mf-font-size-base);
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.magicfeedback-max-diff-pick {
|
|
1810
|
+
min-height: 68px;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.magicfeedback-max-diff-input {
|
|
1814
|
+
width: 28px;
|
|
1815
|
+
height: 28px;
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1526
1819
|
/* ========================================
|
|
1527
1820
|
PRIORITY LIST
|
|
1528
1821
|
======================================== */
|
|
@@ -1713,6 +2006,15 @@ div.magicfeedback-radio {
|
|
|
1713
2006
|
}
|
|
1714
2007
|
}
|
|
1715
2008
|
|
|
2009
|
+
/* hidden on the first page; keep the submit button on the right */
|
|
2010
|
+
.magicfeedback-back[hidden] {
|
|
2011
|
+
display: none;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
.magicfeedback-action-container .magicfeedback-submit {
|
|
2015
|
+
margin-left: auto;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
1716
2018
|
/* ========================================
|
|
1717
2019
|
SKIP & COUNTER
|
|
1718
2020
|
======================================== */
|
|
@@ -2398,4 +2700,4 @@ export {
|
|
|
2398
2700
|
sdkWarn,
|
|
2399
2701
|
sdkError
|
|
2400
2702
|
};
|
|
2401
|
-
//# sourceMappingURL=chunk-
|
|
2703
|
+
//# sourceMappingURL=chunk-TSORXOQG.mjs.map
|