@viberaven/cli 1.4.1 → 1.4.2
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/cli.js +37 -4
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -11558,7 +11558,7 @@ var VERSION;
|
|
|
11558
11558
|
var init_version = __esm({
|
|
11559
11559
|
"src/version.ts"() {
|
|
11560
11560
|
"use strict";
|
|
11561
|
-
VERSION = "1.4.
|
|
11561
|
+
VERSION = "1.4.2";
|
|
11562
11562
|
}
|
|
11563
11563
|
});
|
|
11564
11564
|
|
|
@@ -18292,10 +18292,20 @@ function QuickstartModal() {
|
|
|
18292
18292
|
|
|
18293
18293
|
function DiscoveryModal() {
|
|
18294
18294
|
const found = providers.filter((provider) => provider.state !== 'not_detected');
|
|
18295
|
-
const
|
|
18296
|
-
const
|
|
18295
|
+
const hashRank = (id) => { let h = 0; for (let i = 0; i < id.length; i += 1) h = (h * 31 + id.charCodeAt(i)) >>> 0; return h; };
|
|
18296
|
+
const rankFor = (provider) => {
|
|
18297
18297
|
const tier = provider.grade ? provider.grade.tier : 'review';
|
|
18298
|
-
|
|
18298
|
+
if (tier === 'flawless') return ['legendary', 'LEGENDARY'];
|
|
18299
|
+
if (tier === 'clear') return ['epic', 'EPIC'];
|
|
18300
|
+
// ungraded providers still deal a real pack spread (common..legendary)
|
|
18301
|
+
const r = hashRank(provider.id) % 12;
|
|
18302
|
+
if (r === 0) return ['legendary', 'LEGENDARY'];
|
|
18303
|
+
if (r < 4) return ['epic', 'EPIC'];
|
|
18304
|
+
if (r < 10) return ['rare', 'RARE'];
|
|
18305
|
+
return ['common', 'COMMON'];
|
|
18306
|
+
};
|
|
18307
|
+
const cards = found.map((provider, index) => {
|
|
18308
|
+
const rank = rankFor(provider);
|
|
18299
18309
|
return '<div class="vr-discover-card' + (demo.flippedCards['disc:' + provider.id] ? ' is-flipped' : '') + '" data-flip-card data-flip-id="disc:' + escapeHtml(provider.id) + '" data-rank="' + rank[0] + '" style="--vr-i:' + String(index) + '">' +
|
|
18300
18310
|
'<span class="vr-flip-inner">' +
|
|
18301
18311
|
'<span class="vr-flip-back vr-tcard is-back is-dealt" data-action="flip-discover" role="button" tabindex="0" aria-label="Flip to reveal ' + escapeHtml(provider.name) + '">' +
|
|
@@ -37718,6 +37728,29 @@ button.vr-tcard { appearance: none; }
|
|
|
37718
37728
|
.vr-discover-card.is-flipped[data-rank='legendary'] .vr-flip-face .vr-tcard { animation: vr-reveal-legendary 1100ms ease-out 240ms both; }
|
|
37719
37729
|
.vr-discover-card.is-flipped[data-rank='epic'] .vr-flip-face .vr-tcard { animation: vr-reveal-epic 1100ms ease-out 240ms both; }
|
|
37720
37730
|
.vr-discover-card.is-flipped[data-rank='rare'] .vr-flip-face .vr-tcard { animation: vr-reveal-rare 1100ms ease-out 240ms both; }
|
|
37731
|
+
/* --- pack-opening polish --- */
|
|
37732
|
+
/* contain the collector raven so it never overlaps the first card + separate the header */
|
|
37733
|
+
.vr-modal-discover .vr-qs-head {
|
|
37734
|
+
align-items: center;
|
|
37735
|
+
gap: 16px;
|
|
37736
|
+
margin: 0 0 16px;
|
|
37737
|
+
padding-bottom: 14px;
|
|
37738
|
+
border-bottom: 1px solid rgba(255, 215, 110, 0.14);
|
|
37739
|
+
}
|
|
37740
|
+
.vr-modal-discover .vr-qs-raven { width: 72px; height: 72px; }
|
|
37741
|
+
/* COMMON tier (silver) so the pack reads like a real spread, not all-RARE */
|
|
37742
|
+
.vr-discover-card[data-rank='common'] .vr-discover-rank { color: #cbd5e1; text-shadow: 0 0 6px rgba(148, 163, 184, 0.55); }
|
|
37743
|
+
@keyframes vr-reveal-common {
|
|
37744
|
+
0% { box-shadow: 0 0 0 rgba(148, 163, 184, 0); }
|
|
37745
|
+
35% { box-shadow: 0 0 24px rgba(203, 213, 225, 0.55), 0 0 48px rgba(148, 163, 184, 0.28); }
|
|
37746
|
+
100% { box-shadow: 0 0 8px rgba(148, 163, 184, 0.22); }
|
|
37747
|
+
}
|
|
37748
|
+
.vr-discover-card.is-flipped[data-rank='common'] .vr-flip-face .vr-tcard { animation: vr-reveal-common 1000ms ease-out 240ms both; }
|
|
37749
|
+
/* Hearthstone-style: a rare pull jumps forward as it flips (not on stable re-renders) */
|
|
37750
|
+
.vr-modal-card:not(.is-stable-render) .vr-discover-card.is-flipped[data-rank='legendary'] { animation: vr-pop-hi 720ms cubic-bezier(0.2, 1.5, 0.3, 1) 180ms both; z-index: 5; }
|
|
37751
|
+
.vr-modal-card:not(.is-stable-render) .vr-discover-card.is-flipped[data-rank='epic'] { animation: vr-pop-mid 660ms cubic-bezier(0.2, 1.45, 0.3, 1) 180ms both; z-index: 4; }
|
|
37752
|
+
@keyframes vr-pop-hi { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.16); } }
|
|
37753
|
+
@keyframes vr-pop-mid { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.1); } }
|
|
37721
37754
|
.vr-discover-take {
|
|
37722
37755
|
border-color: var(--vr-gold-bright) !important;
|
|
37723
37756
|
background: var(--vr-gold-bright) !important;
|