@opexa/portal-components 0.0.134 → 0.0.135

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.
@@ -1,6 +1,7 @@
1
1
  export const config = {
2
2
  images: {
3
- minimumCacheTTL: 60 * 60 * 24 /* 1d */,
3
+ formats: ['image/avif', 'image/webp'],
4
+ minimumCacheTTL: 60 * 60 * 24 * 365 /* 1year */,
4
5
  remotePatterns: [
5
6
  {
6
7
  hostname: 'static.opexa.io',
@@ -40,12 +40,6 @@
40
40
  }
41
41
 
42
42
  @media screen and (min-width: 0px) and (orientation: portrait) {
43
- :root {
44
- --root-fs: 12px;
45
- }
46
- }
47
-
48
- @media screen and (min-width: 350px) and (orientation: portrait) {
49
43
  :root {
50
44
  --root-fs: 14px;
51
45
  }
@@ -3,10 +3,12 @@ type Args = {
3
3
  id: string;
4
4
  reference?: never;
5
5
  provider: GameProvider;
6
+ version?: string;
6
7
  } | {
7
8
  id?: never;
8
9
  reference: string;
9
10
  provider: GameProvider;
11
+ version?: string;
10
12
  };
11
13
  export declare function getGameImageUrl<T extends Args>(args: T): string;
12
14
  export {};
@@ -3,5 +3,6 @@ const VERSION = '1';
3
3
  export function getGameImageUrl(args) {
4
4
  const id = args.id ?? args.reference;
5
5
  const provider = args.provider.toLocaleLowerCase();
6
- return `${STATIC_ENDPOINT}/images/${provider}/thumbnail-${id}.webp?version=${VERSION}`;
6
+ const version = args.version ?? VERSION;
7
+ return `${STATIC_ENDPOINT}/images/${provider}/thumbnail-${id}.webp?_v=${version}`;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.134",
3
+ "version": "0.0.135",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",