@articles-media/articles-dev-box 1.0.13 → 1.0.14

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.
Files changed (44) hide show
  1. package/dist/Ad.cjs +1 -0
  2. package/dist/Ad.js +600 -0
  3. package/dist/AdConfirmExitModal-CKkMAvBK.js +72 -0
  4. package/dist/AdConfirmExitModal-CcSxmXKT.cjs +1 -0
  5. package/dist/AdDetailsModal-Bp5hZm9N.js +83 -0
  6. package/dist/AdDetailsModal-k840vrS2.cjs +1 -0
  7. package/dist/ArticlesAd.cjs +1 -0
  8. package/dist/ArticlesAd.js +16 -0
  9. package/dist/Button-0ZK0NKiK.cjs +1 -0
  10. package/dist/Button-_Quon8UV.js +54 -0
  11. package/dist/FriendsList.cjs +1 -0
  12. package/dist/FriendsList.js +133 -0
  13. package/dist/GameScoreboard.cjs +1 -0
  14. package/dist/GameScoreboard.js +182 -0
  15. package/dist/GlobalBody-BQ2qC81K.cjs +33 -0
  16. package/dist/GlobalBody-tmIC_GWn.js +123 -0
  17. package/dist/GlobalBody.cjs +1 -0
  18. package/dist/GlobalBody.js +7 -0
  19. package/dist/GlobalHead.cjs +1 -0
  20. package/dist/GlobalHead.js +13 -0
  21. package/dist/Modal-C9oYRgI1.js +2073 -0
  22. package/dist/Modal-Wmqy9fOm.cjs +2 -0
  23. package/dist/ReturnToLauncherButton.cjs +1 -0
  24. package/dist/ReturnToLauncherButton.js +50 -0
  25. package/dist/StatusModal-BlwaI-2B.cjs +1 -0
  26. package/dist/StatusModal-CAVxWCUq.js +71 -0
  27. package/dist/ViewUserModal.cjs +1 -0
  28. package/dist/ViewUserModal.js +3189 -0
  29. package/dist/articles-dev-box.css +1 -0
  30. package/dist/index-BlP2-uOi.cjs +1 -0
  31. package/dist/index-DLYx67wi.js +2394 -0
  32. package/dist/index-Ddv_TnxK.cjs +6 -0
  33. package/dist/index-YnD2EP-S.js +43 -0
  34. package/dist/index.cjs +1 -0
  35. package/dist/index.js +22 -0
  36. package/dist/jsx-runtime-nZSsnGb7.cjs +6 -0
  37. package/dist/jsx-runtime-tc70JA_2.js +264 -0
  38. package/dist/numberWithCommas-CRgrb58X.cjs +1 -0
  39. package/dist/numberWithCommas-DnAkiOFL.js +1256 -0
  40. package/dist/useUserDetails.cjs +1 -0
  41. package/dist/useUserDetails.js +33 -0
  42. package/dist/useUserToken.cjs +1 -0
  43. package/dist/useUserToken.js +22 -0
  44. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./index-Ddv_TnxK.cjs"),a=e=>s.axios.get(e.url,{params:{token:e.token}}).then(t=>t.data),l=e=>{const{data:t,error:n,isLoading:o,mutate:r}=s.useSWR(e.token?{url:(process.env.NODE_ENV==="development"?"http://localhost:3012":"https://accounts.articles.media")+"/api/auth/session",token:e.token}:null,a,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:o,mutate:r}};module.exports=l;
@@ -0,0 +1,33 @@
1
+ import { u as n, a as r } from "./index-DLYx67wi.js";
2
+ const l = (e) => r.get(e.url, {
3
+ // headers: {
4
+ // Authorization: `Bearer ${params.token}`
5
+ // },
6
+ params: {
7
+ token: e.token
8
+ }
9
+ }).then((t) => t.data), c = (e) => {
10
+ const { data: t, error: s, isLoading: a, mutate: o } = n(
11
+ e.token ? {
12
+ // url: "/api/details",
13
+ // url: "http://localhost:3012/api/auth/session",
14
+ url: (process.env.NODE_ENV === "development" ? "http://localhost:3012" : "https://accounts.articles.media") + "/api/auth/session",
15
+ token: e.token
16
+ } : null,
17
+ l,
18
+ {
19
+ revalidateOnFocus: !1,
20
+ revalidateOnReconnect: !1,
21
+ shouldRetryOnError: !1
22
+ }
23
+ );
24
+ return {
25
+ data: t,
26
+ error: s,
27
+ isLoading: a,
28
+ mutate: o
29
+ };
30
+ };
31
+ export {
32
+ c as default
33
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./index-Ddv_TnxK.cjs"),a=e=>s.axios.get(e).then(t=>t.data),c=e=>{const{data:t,error:o,isLoading:n,mutate:r}=s.useSWR(process.env.NODE_ENV==="development"?`http://localhost:${e}/api/token`:"/api/token",a,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:o,isLoading:n,mutate:r}};module.exports=c;
@@ -0,0 +1,22 @@
1
+ import { u as r, a as n } from "./index-DLYx67wi.js";
2
+ const l = (e) => n.get(e).then((t) => t.data), d = (e) => {
3
+ const { data: t, error: a, isLoading: o, mutate: s } = r(
4
+ // "http://localhost:3012/api/auth/session",
5
+ process.env.NODE_ENV === "development" ? `http://localhost:${e}/api/token` : "/api/token",
6
+ l,
7
+ {
8
+ revalidateOnFocus: !1,
9
+ revalidateOnReconnect: !1,
10
+ shouldRetryOnError: !1
11
+ }
12
+ );
13
+ return {
14
+ data: t,
15
+ error: a,
16
+ isLoading: o,
17
+ mutate: s
18
+ };
19
+ };
20
+ export {
21
+ d as default
22
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@articles-media/articles-dev-box",
3
3
  "description": "Shared code, functions, and components for different Articles Media projects.",
4
- "version": "1.0.13",
4
+ "version": "1.0.14",
5
5
  "type": "module",
6
6
  "imports": {
7
7
  "#root/src/*": "./src/*"