@timardex/cluemart-shared 1.5.527 → 1.5.529

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.
@@ -0,0 +1,16 @@
1
+ // src/images/index.ts
2
+ var PKG = "@timardex/cluemart-shared";
3
+ var posterFiles = {
4
+ poster1: "poster1.png",
5
+ poster2: "poster2.png",
6
+ poster3: "poster3.png"
7
+ };
8
+ var posters = Object.fromEntries(
9
+ Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
10
+ );
11
+
12
+ export {
13
+ posterFiles,
14
+ posters
15
+ };
16
+ //# sourceMappingURL=chunk-IBKLW65U.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/images/index.ts"],"sourcesContent":["const PKG = \"@timardex/cluemart-shared\" as const;\n\n/**\n * Basenames under the shared images directory — use with `getSharedImagePath` from `@timardex/cluemart-shared/images/node` (Express / Node).\n * This object is the single source of poster keys; `posters` is derived from it. Add a PNG under `src/images/posters/` when adding an entry.\n * Keep `POSTER_FILE_BY_ID` in `src/images/node.cjs` / `node.mjs` in sync when you change this map.\n */\nexport const posterFiles = {\n poster1: \"poster1.png\",\n poster2: \"poster2.png\",\n poster3: \"poster3.png\",\n} as const;\n\n/**\n * Module specifiers for each poster (not resolved file URLs). Use a static import or require with these paths\n * so your bundler resolves the file, e.g.\n * `import poster1 from \"@timardex/cluemart-shared/images/poster1.png\"`\n * or `require(\"@timardex/cluemart-shared/images/poster1.png\")` (React Native / Metro).\n *\n * Derived from `posterFiles` so keys and filenames stay aligned.\n */\nexport const posters = Object.fromEntries(\n (\n Object.entries(posterFiles) as [\n keyof typeof posterFiles,\n (typeof posterFiles)[keyof typeof posterFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof posterFiles]: `${typeof PKG}/images/${(typeof posterFiles)[K]}`;\n};\n\nexport type PosterAssetId = keyof typeof posters;\n\n/** A single filename under the shared images directory (values of `posterFiles`). */\nexport type PosterImageBasename = (typeof posterFiles)[PosterAssetId];\n"],"mappings":";AAAA,IAAM,MAAM;AAOL,IAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AACX;AAUO,IAAM,UAAU,OAAO;AAAA,EAE1B,OAAO,QAAQ,WAAW,EAI1B,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,WAAW,IAAI,EAAE,CAAC;AACvD;","names":[]}
@@ -3293,7 +3293,7 @@ var GET_GAMES = gql29`
3293
3293
  ${GAME_DOC_FIELDS_FRAGMENT}
3294
3294
  `;
3295
3295
  var GET_GAME = gql29`
3296
- query getGame($_id: ID!) {
3296
+ query getGame($_id: ID) {
3297
3297
  game(_id: $_id) {
3298
3298
  ...GameDocFields
3299
3299
  }
@@ -3973,4 +3973,4 @@ export {
3973
3973
  useGetSchools,
3974
3974
  useGetSchool
3975
3975
  };
3976
- //# sourceMappingURL=chunk-DJZW3O5D.mjs.map
3976
+ //# sourceMappingURL=chunk-PYMLMTOQ.mjs.map