@timardex/cluemart-shared 1.5.529 → 1.5.530
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/dist/{chunk-IBKLW65U.mjs → chunk-4PJQMQVX.mjs} +10 -2
- package/dist/chunk-4PJQMQVX.mjs.map +1 -0
- package/dist/{chunk-PYMLMTOQ.mjs → chunk-G2YFRN6A.mjs} +1 -1
- package/dist/{chunk-PYMLMTOQ.mjs.map → chunk-G2YFRN6A.mjs.map} +1 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +6 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/images/cluiTui.png +0 -0
- package/dist/images/cluiTui.png.d.ts +2 -0
- package/dist/images/index.cjs +10 -0
- package/dist/images/index.cjs.map +1 -1
- package/dist/images/index.d.mts +17 -2
- package/dist/images/index.d.ts +17 -2
- package/dist/images/index.mjs +5 -1
- package/dist/images/node.cjs +26 -20
- package/dist/images/node.d.ts +19 -7
- package/dist/images/node.mjs +21 -19
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-IBKLW65U.mjs.map +0 -1
|
@@ -5,12 +5,20 @@ var posterFiles = {
|
|
|
5
5
|
poster2: "poster2.png",
|
|
6
6
|
poster3: "poster3.png"
|
|
7
7
|
};
|
|
8
|
+
var otherFiles = {
|
|
9
|
+
cluiTui: "cluiTui.png"
|
|
10
|
+
};
|
|
8
11
|
var posters = Object.fromEntries(
|
|
9
12
|
Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10
13
|
);
|
|
14
|
+
var otherImages = Object.fromEntries(
|
|
15
|
+
Object.entries(otherFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
16
|
+
);
|
|
11
17
|
|
|
12
18
|
export {
|
|
13
19
|
posterFiles,
|
|
14
|
-
|
|
20
|
+
otherFiles,
|
|
21
|
+
posters,
|
|
22
|
+
otherImages
|
|
15
23
|
};
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-4PJQMQVX.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 * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.\n */\nexport const posterFiles = {\n poster1: \"poster1.png\",\n poster2: \"poster2.png\",\n poster3: \"poster3.png\",\n} as const;\n\n/**\n * Basenames for assets kept under `src/images/other/` in source; they are copied flat into `dist/images/` (same as posters).\n * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.\n */\nexport const otherFiles = {\n cluiTui: \"cluiTui.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\n/**\n * Module specifiers for other images (same flat `@…/images/<file>.png` pattern as posters), e.g.\n * `import clui from \"@timardex/cluemart-shared/images/cluiTui.png\"`.\n */\nexport const otherImages = Object.fromEntries(\n (\n Object.entries(otherFiles) as [\n keyof typeof otherFiles,\n (typeof otherFiles)[keyof typeof otherFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof otherFiles]: `${typeof PKG}/images/${(typeof otherFiles)[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\nexport type OtherImageId = keyof typeof otherImages;\n\n/** Basename under the shared images directory (values of `otherFiles`). */\nexport type OtherImageBasename = (typeof otherFiles)[OtherImageId];\n"],"mappings":";AAAA,IAAM,MAAM;AAOL,IAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AACX;AAMO,IAAM,aAAa;AAAA,EACxB,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;AAQO,IAAM,cAAc,OAAO;AAAA,EAE9B,OAAO,QAAQ,UAAU,EAIzB,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,WAAW,IAAI,EAAE,CAAC;AACvD;","names":[]}
|