@mundogamernetwork/shared-ui 1.1.32 → 1.1.33

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.
@@ -132,11 +132,13 @@ onUnmounted(() => {
132
132
  .mg-campaign-banner-indicators {
133
133
  position: absolute;
134
134
  bottom: 8px;
135
- left: 50%;
136
- transform: translateX(-50%);
135
+ left: 0;
136
+ right: 0;
137
137
  display: flex;
138
+ justify-content: center;
138
139
  gap: 6px;
139
140
  align-items: center;
141
+ pointer-events: none;
140
142
 
141
143
  button {
142
144
  width: 8px;
@@ -145,6 +147,7 @@ onUnmounted(() => {
145
147
  border: 0;
146
148
  background: rgba(255, 255, 255, 0.5);
147
149
  cursor: pointer;
150
+ pointer-events: all;
148
151
  transition: background 0.2s;
149
152
 
150
153
  &.active {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.1.32",
3
+ "version": "1.1.33",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -51,6 +51,14 @@ const hasEcosystem = computed(() =>
51
51
  kit.value?.community_url
52
52
  )
53
53
 
54
+ // Sanitize community URL: legacy data may store /games/[slug] (old route).
55
+ // The canonical community game route is /game/[slug].
56
+ const communityUrl = computed(() =>
57
+ kit.value?.community_url
58
+ ? kit.value.community_url.replace(/\/games\//, '/game/')
59
+ : null
60
+ )
61
+
54
62
  onMounted(async () => {
55
63
  try {
56
64
  const { data } = await fetchPublicPressKit(slug)
@@ -234,7 +242,7 @@ useHead(() => ({
234
242
  </div>
235
243
 
236
244
  <!-- Links -->
237
- <div class="pk-card" v-if="kit.website_url || kit.steam_url || kit.epic_url || kit.ventures_url || kit.community_url">
245
+ <div class="pk-card" v-if="kit.website_url || kit.steam_url || kit.epic_url || kit.ventures_url || communityUrl">
238
246
  <h2 class="pk-card__title">{{ $t('press_kit.available_on') }}</h2>
239
247
  <div class="pk-links">
240
248
  <a v-if="kit.website_url" :href="kit.website_url" target="_blank" rel="noopener" class="pk-link" @click="trackPressKitEvent(slug, { event_type: 'click', metadata: { target: 'website' } })">
@@ -249,7 +257,7 @@ useHead(() => ({
249
257
  <a v-if="kit.ventures_url" :href="kit.ventures_url" target="_blank" rel="noopener" class="pk-link">
250
258
  Ventures
251
259
  </a>
252
- <a v-if="kit.community_url" :href="kit.community_url" target="_blank" rel="noopener" class="pk-link" @click="trackPressKitEvent(slug, { event_type: 'click', metadata: { target: 'community' } })">
260
+ <a v-if="communityUrl" :href="communityUrl" target="_blank" rel="noopener" class="pk-link" @click="trackPressKitEvent(slug, { event_type: 'click', metadata: { target: 'community' } })">
253
261
  {{ $t('press_kit.follow_community') }}
254
262
  </a>
255
263
  </div>
@@ -505,10 +513,10 @@ useHead(() => ({
505
513
  </a>
506
514
 
507
515
  <!-- Community follow -->
508
- <div v-if="kit.community_url" class="pk-eco-card">
516
+ <div v-if="communityUrl" class="pk-eco-card">
509
517
  <p class="pk-eco-card__text">{{ $t('press_kit.follow_community_desc', { name: kit.name }) }}</p>
510
518
  <a
511
- :href="kit.community_url"
519
+ :href="communityUrl"
512
520
  target="_blank"
513
521
  rel="noopener"
514
522
  class="pk-btn pk-btn--sm"
@@ -540,7 +548,7 @@ useHead(() => ({
540
548
  <!-- ═══ Brand footer ════════════════════════════════════════════ -->
541
549
  <p class="pk-brand-footer">
542
550
  {{ $t('press_kit.made_with') }} {{ $t('press_kit.brand_sub') }} —
543
- <a href="https://agency.mundogamer.network/dashboard/press-kit" target="_blank" rel="noopener">{{ $t('press_kit.create_yours_cta') }}</a>
551
+ <a href="https://agency.mundogamer.network/press" target="_blank" rel="noopener">{{ $t('press_kit.create_yours_cta') }}</a>
544
552
  </p>
545
553
 
546
554
  </template>