@mundogamernetwork/shared-ui 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -1,42 +1,42 @@
1
1
  {
2
- "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.0.2",
4
- "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
- "type": "module",
6
- "main": "./nuxt.config.ts",
7
- "files": [
8
- "assets",
9
- "components",
10
- "composables",
11
- "middleware",
12
- "pages",
13
- "plugins",
14
- "services",
15
- "stores",
16
- "types",
17
- "utils",
18
- "error.vue",
19
- "nuxt.config.ts"
20
- ],
21
- "publishConfig": {
22
- "access": "public"
23
- },
24
- "scripts": {
25
- "dev": "nuxi dev .playground",
26
- "build": "nuxi build .playground"
27
- },
28
- "peerDependencies": {
29
- "@pinia/nuxt": ">=0.5.0",
30
- "@pinia-plugin-persistedstate/nuxt": ">=1.0.0",
31
- "axios": ">=1.0.0",
32
- "laravel-echo": ">=1.15.0",
33
- "nuxt": ">=3.13.0",
34
- "pinia": ">=2.1.0",
35
- "pusher-js": ">=8.0.0",
36
- "vue": ">=3.5.0"
37
- },
38
- "devDependencies": {
39
- "nuxt": "^3.15.4",
40
- "typescript": "^5.0.0"
41
- }
42
- }
2
+ "name": "@mundogamernetwork/shared-ui",
3
+ "version": "1.0.3",
4
+ "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
+ "type": "module",
6
+ "main": "./nuxt.config.ts",
7
+ "files": [
8
+ "assets",
9
+ "components",
10
+ "composables",
11
+ "middleware",
12
+ "pages",
13
+ "plugins",
14
+ "services",
15
+ "stores",
16
+ "types",
17
+ "utils",
18
+ "error.vue",
19
+ "nuxt.config.ts"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "scripts": {
25
+ "dev": "nuxi dev .playground",
26
+ "build": "nuxi build .playground"
27
+ },
28
+ "peerDependencies": {
29
+ "@pinia/nuxt": ">=0.5.0",
30
+ "@pinia-plugin-persistedstate/nuxt": ">=1.0.0",
31
+ "axios": ">=1.0.0",
32
+ "laravel-echo": ">=1.15.0",
33
+ "nuxt": ">=3.13.0",
34
+ "pinia": ">=2.1.0",
35
+ "pusher-js": ">=8.0.0",
36
+ "vue": ">=3.5.0"
37
+ },
38
+ "devDependencies": {
39
+ "nuxt": "^3.15.4",
40
+ "typescript": "^5.0.0"
41
+ }
42
+ }
@@ -2,10 +2,10 @@ import axios, { type AxiosInstance } from "axios"
2
2
 
3
3
  // Media Kit data is served by the api-main Shared\MediaKit module, now registered
4
4
  // in every service. A dedicated client lets each project point at the API host that
5
- // serves it without the /api/v1 base-URL inconsistency between projects:
6
- // - community: VITE_MEDIA_KIT_API_URL=https://api.mundogamer.community (same-origin)
7
- // - tv / agency: leave unset → fall back to their own VITE_API_BASE_URL
8
- // The request path carries the /api/v1 prefix, so the base must NOT include it.
5
+ // serves it. The request path does NOT carry /api/v1, so the base MUST include it
6
+ // (identical convention to pressKitService — keep them consistent):
7
+ // - community: VITE_MEDIA_KIT_API_URL=https://api.mundogamer.community/api/v1 (same-origin)
8
+ // - tv / agency: leave unset fall back to VITE_API_BASE_URL (already ends in /api/v1)
9
9
  let _client: AxiosInstance | null = null
10
10
 
11
11
  function getClient(): AxiosInstance {
@@ -46,9 +46,9 @@ const mk = new Proxy({} as AxiosInstance, {
46
46
  export default mk
47
47
 
48
48
  export const fetchPublicMediaKit = (slug: string) =>
49
- mk.get(`/api/v1/media-kit/${slug}`)
49
+ mk.get(`media-kit/${slug}`)
50
50
 
51
51
  export const trackMediaKitEvent = (
52
52
  userId: number | string,
53
53
  data: { type?: "view" | "click" | "download" | "contact"; referrer?: string } = {},
54
- ) => mk.post(`/api/v1/media-kit/${userId}/track`, data)
54
+ ) => mk.post(`media-kit/${userId}/track`, data)