@mundogamernetwork/shared-ui 1.17.2 → 1.17.5

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.
@@ -124,10 +124,20 @@ defineExpose({ save, wanted, profile: billing.profile, hasData: billing.hasData
124
124
  </template>
125
125
 
126
126
  <style lang="scss" scoped>
127
+ /*
128
+ * Theme-agnostic on purpose. This block renders inside eight different
129
+ * checkouts, and they are not all light: agency's is near-black, and hardcoded
130
+ * light fallbacks turned the labels dark-on-dark and the inputs into glaring
131
+ * white boxes. Everything here inherits the host's own text colour and derives
132
+ * its lines from it, so the block reads correctly on any background without
133
+ * each app having to restyle it.
134
+ */
127
135
  .mg-billing-profile {
128
136
  margin-top: 16px;
129
- border-top: 1px solid var(--inactive, #ececec);
137
+ border-top: 1px solid currentColor;
138
+ border-top-color: color-mix(in srgb, currentColor 18%, transparent);
130
139
  padding-top: 16px;
140
+ color: inherit;
131
141
  }
132
142
 
133
143
  .mg-billing-profile__toggle {
@@ -136,6 +146,7 @@ defineExpose({ save, wanted, profile: billing.profile, hasData: billing.hasData
136
146
  gap: 8px;
137
147
  font-size: 14px;
138
148
  cursor: pointer;
149
+ color: inherit;
139
150
  }
140
151
 
141
152
  .mg-billing-profile__body {
@@ -144,8 +155,8 @@ defineExpose({ save, wanted, profile: billing.profile, hasData: billing.hasData
144
155
 
145
156
  .mg-billing-profile__hint {
146
157
  font-size: 13px;
147
- color: var(--inactive-text, #666);
148
158
  margin: 0 0 12px;
159
+ opacity: 0.7;
149
160
  }
150
161
 
151
162
  .mg-billing-profile__grid {
@@ -161,16 +172,28 @@ defineExpose({ save, wanted, profile: billing.profile, hasData: billing.hasData
161
172
  font-size: 12px;
162
173
  }
163
174
 
175
+ .mg-billing-profile__field > span {
176
+ opacity: 0.7;
177
+ }
178
+
164
179
  .mg-billing-profile__field--wide {
165
180
  grid-column: 1 / -1;
166
181
  }
167
182
 
168
183
  .mg-billing-profile__field input {
169
- border: 1px solid var(--inactive, #d5d5d5);
184
+ border: 1px solid currentColor;
185
+ border-color: color-mix(in srgb, currentColor 30%, transparent);
170
186
  padding: 8px 10px;
171
187
  font-size: 14px;
172
- background: var(--bg, #fff);
173
- color: var(--active, #111);
188
+ /* Transparent, not white: the host's own background shows through, so the
189
+ field belongs to the surrounding form instead of punching a hole in it. */
190
+ background: transparent;
191
+ color: inherit;
192
+ }
193
+
194
+ .mg-billing-profile__field input:focus {
195
+ outline: none;
196
+ border-color: color-mix(in srgb, currentColor 60%, transparent);
174
197
  }
175
198
 
176
199
  .mg-billing-profile__error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.17.2",
3
+ "version": "1.17.5",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -193,12 +193,9 @@ async function submit() {
193
193
  if (!canSubmit.value) return
194
194
  requestError.value = ""
195
195
  sessionExpired.value = false
196
- // Region is only demanded when the pool actually offers one — a global pool
197
- // (region_id null on every key item) has nothing for the creator to pick,
198
- // and requiring it here left the submit button dead with no explanation.
199
196
  if (
200
197
  !selectedPlatformId.value
201
- || (regionRequired.value && !selectedRegionId.value)
198
+ || !selectedRegionId.value
202
199
  || !quantity.value
203
200
  || !description.value?.trim()
204
201
  ) {
@@ -214,9 +211,7 @@ async function submit() {
214
211
  const response = await requestKey({
215
212
  key_id: keyId,
216
213
  platform_ids: [selectedPlatformId.value],
217
- // Omitted entirely on a global pool — sending [null] would fail
218
- // `region_ids.*` => integer.
219
- ...(selectedRegionId.value ? { region_ids: [selectedRegionId.value] } : {}),
214
+ region_ids: [selectedRegionId.value],
220
215
  description: description.value || "-",
221
216
  quantity_keys: Number(quantity.value) || 1,
222
217
  // Recorded on the request so the acknowledgment is provable, not just
@@ -473,7 +473,7 @@ export const fetchCampaignTypes = (params: Record<string, any> = {}) => {
473
473
  * Fetch active platforms (for the platform filter select).
474
474
  */
475
475
  export const fetchCampaignPlatforms = () => {
476
- return authClient.get("/public/key-platforms")
476
+ return authClient.get("/platforms/currently")
477
477
  }
478
478
 
479
479
  /**