wealth-alpha-chat-widget 2.0.6 → 2.0.7
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 +2 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -776,15 +776,12 @@ function AuthGate({ brandName, loginUrl, onLoginClick }) {
|
|
|
776
776
|
] });
|
|
777
777
|
}
|
|
778
778
|
var HOME_ICON = '<path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/>';
|
|
779
|
-
var
|
|
780
|
-
var NEXT_ICON = '<polyline points="9 18 15 12 9 6"/>';
|
|
779
|
+
var BACK_ICON = '<line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/>';
|
|
781
780
|
var EMOJI_RE = /[\u{1F000}-\u{1FAFF}\u{2190}-\u{21FF}\u{2300}-\u{27BF}\u{2B00}-\u{2BFF}\u{FE00}-\u{FE0F}\u{1F1E6}-\u{1F1FF}\u{20E3}]/gu;
|
|
782
781
|
var stripEmoji = (s) => s.replace(EMOJI_RE, "").replace(/\s{2,}/g, " ").trim();
|
|
783
782
|
function navIconFor(chip) {
|
|
784
783
|
if (chip.id === "__root__") return HOME_ICON;
|
|
785
|
-
if (chip.
|
|
786
|
-
return /prev/i.test(chip.label) ? PREV_ICON : NEXT_ICON;
|
|
787
|
-
}
|
|
784
|
+
if (chip.label.trim() === "Back") return BACK_ICON;
|
|
788
785
|
return null;
|
|
789
786
|
}
|
|
790
787
|
function Chip({ chip, disabled, active, onClick }) {
|