@timardex/cluemart-shared 1.5.528 → 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":[]}
@@ -4484,6 +4484,17 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client68.gql`
4484
4484
  // src/graphql/hooks/school/hooksQuery.ts
4485
4485
  var import_client70 = require("@apollo/client");
4486
4486
 
4487
+ // src/images/index.ts
4488
+ var PKG = "@timardex/cluemart-shared";
4489
+ var posterFiles = {
4490
+ poster1: "poster1.png",
4491
+ poster2: "poster2.png",
4492
+ poster3: "poster3.png"
4493
+ };
4494
+ var posters = Object.fromEntries(
4495
+ Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
4496
+ );
4497
+
4487
4498
  // src/types/post.ts
4488
4499
  var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
4489
4500
  EnumPostType2["DAILY_MEETS"] = "daily_meets";