@timardex/cluemart-shared 1.5.530 → 1.5.532

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 (105) hide show
  1. package/dist/{chunk-534WN2SR.mjs → chunk-73ULMQM6.mjs} +2 -2
  2. package/dist/chunk-73ULMQM6.mjs.map +1 -0
  3. package/dist/{chunk-XEIQR6NA.mjs → chunk-QZE7FORG.mjs} +3 -3
  4. package/dist/{chunk-LZ2KFVBV.mjs → chunk-RRNJ54MF.mjs} +2 -2
  5. package/dist/chunk-TXHYVMOH.mjs +97 -0
  6. package/dist/chunk-TXHYVMOH.mjs.map +1 -0
  7. package/dist/enums/index.cjs +1 -1
  8. package/dist/enums/index.cjs.map +1 -1
  9. package/dist/enums/index.d.mts +1 -1
  10. package/dist/enums/index.d.ts +1 -1
  11. package/dist/enums/index.mjs +1 -1
  12. package/dist/formFields/index.cjs.map +1 -1
  13. package/dist/formFields/index.mjs +3 -3
  14. package/dist/graphql/index.mjs +1 -1
  15. package/dist/hooks/index.cjs +67 -9
  16. package/dist/hooks/index.cjs.map +1 -1
  17. package/dist/hooks/index.mjs +4 -4
  18. package/dist/images/apple-maps-icon.webp +0 -0
  19. package/dist/images/banner-horizontal.webp +0 -0
  20. package/dist/images/banner-vertical.webp +0 -0
  21. package/dist/images/cluiTui.webp +0 -0
  22. package/dist/images/corporate.webp +0 -0
  23. package/dist/images/corporate.webp.d.ts +2 -0
  24. package/dist/images/facebook.webp +0 -0
  25. package/dist/images/facebook.webp.d.ts +2 -0
  26. package/dist/images/google-maps-icon.webp +0 -0
  27. package/dist/images/google-maps-icon.webp.d.ts +2 -0
  28. package/dist/images/googleMaps-logo-dark.webp +0 -0
  29. package/dist/images/googleMaps-logo-dark.webp.d.ts +2 -0
  30. package/dist/images/googleMaps-logo-light.webp +0 -0
  31. package/dist/images/googleMaps-logo-light.webp.d.ts +2 -0
  32. package/dist/images/index.cjs +99 -11
  33. package/dist/images/index.cjs.map +1 -1
  34. package/dist/images/index.d.mts +36 -19
  35. package/dist/images/index.d.ts +36 -19
  36. package/dist/images/index.mjs +33 -3
  37. package/dist/images/instagram.webp +0 -0
  38. package/dist/images/instagram.webp.d.ts +2 -0
  39. package/dist/images/logo-atr.webp +0 -0
  40. package/dist/images/logo-atr.webp.d.ts +2 -0
  41. package/dist/images/logo.webp +0 -0
  42. package/dist/images/logo.webp.d.ts +2 -0
  43. package/dist/images/meet.webp +0 -0
  44. package/dist/images/meet.webp.d.ts +2 -0
  45. package/dist/images/node.cjs +32 -9
  46. package/dist/images/node.d.ts +35 -7
  47. package/dist/images/node.mjs +39 -9
  48. package/dist/images/poll.webp +0 -0
  49. package/dist/images/poll.webp.d.ts +2 -0
  50. package/dist/images/poster1.webp +0 -0
  51. package/dist/images/poster1.webp.d.ts +2 -0
  52. package/dist/images/poster2.webp +0 -0
  53. package/dist/images/poster2.webp.d.ts +2 -0
  54. package/dist/images/poster3.webp +0 -0
  55. package/dist/images/poster3.webp.d.ts +2 -0
  56. package/dist/images/private.webp +0 -0
  57. package/dist/images/private.webp.d.ts +2 -0
  58. package/dist/images/qr-code.webp +0 -0
  59. package/dist/images/qr-code.webp.d.ts +2 -0
  60. package/dist/images/school.webp +0 -0
  61. package/dist/images/school.webp.d.ts +2 -0
  62. package/dist/images/sima.webp +0 -0
  63. package/dist/images/sima.webp.d.ts +2 -0
  64. package/dist/images/store-android.webp +0 -0
  65. package/dist/images/store-android.webp.d.ts +2 -0
  66. package/dist/images/store-ios.webp +0 -0
  67. package/dist/images/store-ios.webp.d.ts +2 -0
  68. package/dist/images/tablas.webp +0 -0
  69. package/dist/images/tablas.webp.d.ts +2 -0
  70. package/dist/images/telefonos.webp +0 -0
  71. package/dist/images/telefonos.webp.d.ts +2 -0
  72. package/dist/images/tiktok.webp +0 -0
  73. package/dist/images/tiktok.webp.d.ts +2 -0
  74. package/dist/images/tip.webp +0 -0
  75. package/dist/images/tip.webp.d.ts +2 -0
  76. package/dist/images/ugralos.webp +0 -0
  77. package/dist/images/ugralos.webp.d.ts +2 -0
  78. package/dist/images/waze-maps-icon.webp +0 -0
  79. package/dist/images/waze-maps-icon.webp.d.ts +2 -0
  80. package/dist/images/website.webp +0 -0
  81. package/dist/images/website.webp.d.ts +2 -0
  82. package/dist/images/youtube.webp +0 -0
  83. package/dist/images/youtube.webp.d.ts +2 -0
  84. package/dist/index.cjs +100 -12
  85. package/dist/index.cjs.map +1 -1
  86. package/dist/index.d.mts +37 -20
  87. package/dist/index.d.ts +37 -20
  88. package/dist/index.mjs +84 -11
  89. package/dist/index.mjs.map +1 -1
  90. package/dist/utils/index.cjs.map +1 -1
  91. package/dist/utils/index.mjs +2 -2
  92. package/package.json +1 -1
  93. package/dist/chunk-4PJQMQVX.mjs +0 -24
  94. package/dist/chunk-4PJQMQVX.mjs.map +0 -1
  95. package/dist/chunk-534WN2SR.mjs.map +0 -1
  96. package/dist/images/cluiTui.png +0 -0
  97. package/dist/images/poster1.png +0 -0
  98. package/dist/images/poster2.png +0 -0
  99. package/dist/images/poster3.png +0 -0
  100. /package/dist/{chunk-XEIQR6NA.mjs.map → chunk-QZE7FORG.mjs.map} +0 -0
  101. /package/dist/{chunk-LZ2KFVBV.mjs.map → chunk-RRNJ54MF.mjs.map} +0 -0
  102. /package/dist/images/{cluiTui.png.d.ts → apple-maps-icon.webp.d.ts} +0 -0
  103. /package/dist/images/{poster1.png.d.ts → banner-horizontal.webp.d.ts} +0 -0
  104. /package/dist/images/{poster2.png.d.ts → banner-vertical.webp.d.ts} +0 -0
  105. /package/dist/images/{poster3.png.d.ts → cluiTui.webp.d.ts} +0 -0
@@ -1,9 +1,9 @@
1
- import "../chunk-XEIQR6NA.mjs";
1
+ import "../chunk-QZE7FORG.mjs";
2
2
  import {
3
3
  dateFormat,
4
4
  normalizeUrl,
5
5
  timeFormat
6
- } from "../chunk-LZ2KFVBV.mjs";
6
+ } from "../chunk-RRNJ54MF.mjs";
7
7
  import "../chunk-G2YFRN6A.mjs";
8
8
  import {
9
9
  EnumEventDateStatus,
@@ -16,8 +16,8 @@ import {
16
16
  EnumUserLicence,
17
17
  EnumUserRole,
18
18
  EnumVendorType
19
- } from "../chunk-534WN2SR.mjs";
20
- import "../chunk-4PJQMQVX.mjs";
19
+ } from "../chunk-73ULMQM6.mjs";
20
+ import "../chunk-TXHYVMOH.mjs";
21
21
  import "../chunk-DWO35OY4.mjs";
22
22
  import "../chunk-I7WE3EBR.mjs";
23
23
  import {
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
Binary file
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
@@ -20,32 +20,120 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/images/index.ts
21
21
  var images_exports = {};
22
22
  __export(images_exports, {
23
- otherFiles: () => otherFiles,
23
+ IMAGE_EXTENSION: () => IMAGE_EXTENSION,
24
+ badgeFiles: () => badgeFiles,
25
+ badgeIds: () => badgeIds,
26
+ badges: () => badges,
27
+ cluiFiles: () => cluiFiles,
28
+ cluiIds: () => cluiIds,
29
+ cluiImages: () => cluiImages,
30
+ iconFiles: () => iconFiles,
31
+ iconIds: () => iconIds,
32
+ icons: () => icons,
33
+ logoFiles: () => logoFiles,
34
+ logoIds: () => logoIds,
35
+ logos: () => logos,
24
36
  otherImages: () => otherImages,
37
+ otherImagesFiles: () => otherImagesFiles,
38
+ otherImagesIds: () => otherImagesIds,
25
39
  posterFiles: () => posterFiles,
40
+ posterIds: () => posterIds,
26
41
  posters: () => posters
27
42
  });
28
43
  module.exports = __toCommonJS(images_exports);
29
44
  var PKG = "@timardex/cluemart-shared";
30
- var posterFiles = {
31
- poster1: "poster1.png",
32
- poster2: "poster2.png",
33
- poster3: "poster3.png"
34
- };
35
- var otherFiles = {
36
- cluiTui: "cluiTui.png"
37
- };
45
+ var IMAGE_EXTENSION = ".webp";
46
+ var posterIds = ["poster1", "poster2", "poster3"];
47
+ var posterFiles = Object.fromEntries(
48
+ posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
49
+ );
50
+ var cluiIds = [
51
+ "cluiTui",
52
+ "sima",
53
+ "tablas",
54
+ "telefonos",
55
+ "ugralos"
56
+ ];
57
+ var cluiFiles = Object.fromEntries(
58
+ cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
59
+ );
60
+ var iconIds = [
61
+ "apple-maps-icon",
62
+ "facebook",
63
+ "google-maps-icon",
64
+ "instagram",
65
+ "meet",
66
+ "poll",
67
+ "tiktok",
68
+ "tip",
69
+ "waze-maps-icon",
70
+ "website",
71
+ "youtube"
72
+ ];
73
+ var iconFiles = Object.fromEntries(
74
+ iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
75
+ );
76
+ var badgeIds = ["corporate", "private", "school"];
77
+ var badgeFiles = Object.fromEntries(
78
+ badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
79
+ );
80
+ var logoIds = [
81
+ "googleMaps-logo-dark",
82
+ "googleMaps-logo-light",
83
+ "logo",
84
+ "logo-atr"
85
+ ];
86
+ var logoFiles = Object.fromEntries(
87
+ logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
88
+ );
89
+ var otherImagesIds = [
90
+ "banner-horizontal",
91
+ "banner-vertical",
92
+ "qr-code",
93
+ "store-android",
94
+ "store-ios"
95
+ ];
96
+ var otherImagesFiles = Object.fromEntries(
97
+ otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
98
+ );
38
99
  var posters = Object.fromEntries(
39
100
  Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
40
101
  );
102
+ var cluiImages = Object.fromEntries(
103
+ Object.entries(cluiFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
104
+ );
105
+ var icons = Object.fromEntries(
106
+ Object.entries(iconFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
107
+ );
108
+ var badges = Object.fromEntries(
109
+ Object.entries(badgeFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
110
+ );
111
+ var logos = Object.fromEntries(
112
+ Object.entries(logoFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
113
+ );
41
114
  var otherImages = Object.fromEntries(
42
- Object.entries(otherFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
115
+ Object.entries(otherImagesFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
43
116
  );
44
117
  // Annotate the CommonJS export names for ESM import in node:
45
118
  0 && (module.exports = {
46
- otherFiles,
119
+ IMAGE_EXTENSION,
120
+ badgeFiles,
121
+ badgeIds,
122
+ badges,
123
+ cluiFiles,
124
+ cluiIds,
125
+ cluiImages,
126
+ iconFiles,
127
+ iconIds,
128
+ icons,
129
+ logoFiles,
130
+ logoIds,
131
+ logos,
47
132
  otherImages,
133
+ otherImagesFiles,
134
+ otherImagesIds,
48
135
  posterFiles,
136
+ posterIds,
49
137
  posters
50
138
  });
51
139
  //# sourceMappingURL=index.cjs.map
@@ -1 +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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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":[]}
1
+ {"version":3,"sources":["../../src/images/index.ts"],"sourcesContent":["const PKG = \"@timardex/cluemart-shared\" as const;\nexport const IMAGE_EXTENSION = \".webp\" 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 an image with `IMAGE_EXTENSION` under `src/images/posters/` when adding an entry.\n * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.\n */\nexport const posterIds = [\"poster1\", \"poster2\", \"poster3\"] as const;\n\nexport const posterFiles = Object.fromEntries(\n posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof posterIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\n/**\n * Basenames for assets under `src/images/clui/` 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 cluiIds = [\n \"cluiTui\",\n \"sima\",\n \"tablas\",\n \"telefonos\",\n \"ugralos\",\n] as const;\n\nexport const cluiFiles = Object.fromEntries(\n cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof cluiIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const iconIds = [\n \"apple-maps-icon\",\n \"facebook\",\n \"google-maps-icon\",\n \"instagram\",\n \"meet\",\n \"poll\",\n \"tiktok\",\n \"tip\",\n \"waze-maps-icon\",\n \"website\",\n \"youtube\",\n] as const;\n\nexport const iconFiles = Object.fromEntries(\n iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof iconIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const badgeIds = [\"corporate\", \"private\", \"school\"] as const;\n\nexport const badgeFiles = Object.fromEntries(\n badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof badgeIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const logoIds = [\n \"googleMaps-logo-dark\",\n \"googleMaps-logo-light\",\n \"logo\",\n \"logo-atr\",\n] as const;\n\nexport const logoFiles = Object.fromEntries(\n logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof logoIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const otherImagesIds = [\n \"banner-horizontal\",\n \"banner-vertical\",\n \"qr-code\",\n \"store-android\",\n \"store-ios\",\n] as const;\n\nexport const otherImagesFiles = Object.fromEntries(\n otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof otherImagesIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\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.webp\"`\n * or `require(\"@timardex/cluemart-shared/images/poster1.webp\")` (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 Clui assets (same flat `@…/images/<file>.webp` pattern as posters), e.g.\n * `import clui from \"@timardex/cluemart-shared/images/cluiTui.webp\"`.\n */\nexport const cluiImages = Object.fromEntries(\n (\n Object.entries(cluiFiles) as [\n keyof typeof cluiFiles,\n (typeof cluiFiles)[keyof typeof cluiFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof cluiFiles]: `${typeof PKG}/images/${(typeof cluiFiles)[K]}`;\n};\n\nexport const icons = Object.fromEntries(\n (\n Object.entries(iconFiles) as [\n keyof typeof iconFiles,\n (typeof iconFiles)[keyof typeof iconFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof iconFiles]: `${typeof PKG}/images/${(typeof iconFiles)[K]}`;\n};\n\nexport const badges = Object.fromEntries(\n (\n Object.entries(badgeFiles) as [\n keyof typeof badgeFiles,\n (typeof badgeFiles)[keyof typeof badgeFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof badgeFiles]: `${typeof PKG}/images/${(typeof badgeFiles)[K]}`;\n};\n\nexport const logos = Object.fromEntries(\n (\n Object.entries(logoFiles) as [\n keyof typeof logoFiles,\n (typeof logoFiles)[keyof typeof logoFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof logoFiles]: `${typeof PKG}/images/${(typeof logoFiles)[K]}`;\n};\n\nexport const otherImages = Object.fromEntries(\n (\n Object.entries(otherImagesFiles) as [\n keyof typeof otherImagesFiles,\n (typeof otherImagesFiles)[keyof typeof otherImagesFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof otherImagesFiles]: `${typeof PKG}/images/${(typeof otherImagesFiles)[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 CluiImageId = keyof typeof cluiImages;\n\n/** Basename under the shared images directory (values of `cluiFiles`). */\nexport type CluiImageBasename = (typeof cluiFiles)[CluiImageId];\n\nexport type IconId = keyof typeof icons;\nexport type IconBasename = (typeof iconFiles)[IconId];\n\nexport type BadgeId = keyof typeof badges;\nexport type BadgeBasename = (typeof badgeFiles)[BadgeId];\n\nexport type LogoId = keyof typeof logos;\nexport type LogoBasename = (typeof logoFiles)[LogoId];\n\nexport type OtherImagesId = keyof typeof otherImages;\nexport type OtherImagesBasename = (typeof otherImagesFiles)[OtherImagesId];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAM,MAAM;AACL,IAAM,kBAAkB;AAOxB,IAAM,YAAY,CAAC,WAAW,WAAW,SAAS;AAElD,IAAM,cAAc,OAAO;AAAA,EAChC,UAAU,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;AACvD;AAQO,IAAM,UAAU;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,YAAY,OAAO;AAAA,EAC9B,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;AACrD;AAIO,IAAM,UAAU;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,YAAY,OAAO;AAAA,EAC9B,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;AACrD;AAIO,IAAM,WAAW,CAAC,aAAa,WAAW,QAAQ;AAElD,IAAM,aAAa,OAAO;AAAA,EAC/B,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;AACtD;AAIO,IAAM,UAAU;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,YAAY,OAAO;AAAA,EAC9B,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;AACrD;AAIO,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,mBAAmB,OAAO;AAAA,EACrC,eAAe,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;AAC5D;AAYO,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,aAAa,OAAO;AAAA,EAE7B,OAAO,QAAQ,SAAS,EAIxB,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,WAAW,IAAI,EAAE,CAAC;AACvD;AAIO,IAAM,QAAQ,OAAO;AAAA,EAExB,OAAO,QAAQ,SAAS,EAIxB,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,WAAW,IAAI,EAAE,CAAC;AACvD;AAIO,IAAM,SAAS,OAAO;AAAA,EAEzB,OAAO,QAAQ,UAAU,EAIzB,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,WAAW,IAAI,EAAE,CAAC;AACvD;AAIO,IAAM,QAAQ,OAAO;AAAA,EAExB,OAAO,QAAQ,SAAS,EAIxB,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,WAAW,IAAI,EAAE,CAAC;AACvD;AAIO,IAAM,cAAc,OAAO;AAAA,EAE9B,OAAO,QAAQ,gBAAgB,EAI/B,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,WAAW,IAAI,EAAE,CAAC;AACvD;","names":[]}
@@ -1,40 +1,57 @@
1
1
  declare const PKG: "@timardex/cluemart-shared";
2
+ declare const IMAGE_EXTENSION: ".webp";
2
3
  /**
3
4
  * Basenames under the shared images directory — use with `getSharedImagePath` from `@timardex/cluemart-shared/images/node` (Express / Node).
4
- * 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.
5
+ * This object is the single source of poster keys; `posters` is derived from it. Add an image with `IMAGE_EXTENSION` under `src/images/posters/` when adding an entry.
5
6
  * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.
6
7
  */
7
- declare const posterFiles: {
8
- readonly poster1: "poster1.png";
9
- readonly poster2: "poster2.png";
10
- readonly poster3: "poster3.png";
11
- };
8
+ declare const posterIds: readonly ["poster1", "poster2", "poster3"];
9
+ declare const posterFiles: { readonly [K in (typeof posterIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
12
10
  /**
13
- * Basenames for assets kept under `src/images/other/` in source; they are copied flat into `dist/images/` (same as posters).
11
+ * Basenames for assets under `src/images/clui/` in source; they are copied flat into `dist/images/` (same as posters).
14
12
  * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.
15
13
  */
16
- declare const otherFiles: {
17
- readonly cluiTui: "cluiTui.png";
18
- };
14
+ declare const cluiIds: readonly ["cluiTui", "sima", "tablas", "telefonos", "ugralos"];
15
+ declare const cluiFiles: { readonly [K in (typeof cluiIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
16
+ declare const iconIds: readonly ["apple-maps-icon", "facebook", "google-maps-icon", "instagram", "meet", "poll", "tiktok", "tip", "waze-maps-icon", "website", "youtube"];
17
+ declare const iconFiles: { readonly [K in (typeof iconIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
18
+ declare const badgeIds: readonly ["corporate", "private", "school"];
19
+ declare const badgeFiles: { readonly [K in (typeof badgeIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
20
+ declare const logoIds: readonly ["googleMaps-logo-dark", "googleMaps-logo-light", "logo", "logo-atr"];
21
+ declare const logoFiles: { readonly [K in (typeof logoIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
22
+ declare const otherImagesIds: readonly ["banner-horizontal", "banner-vertical", "qr-code", "store-android", "store-ios"];
23
+ declare const otherImagesFiles: { readonly [K in (typeof otherImagesIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
19
24
  /**
20
25
  * Module specifiers for each poster (not resolved file URLs). Use a static import or require with these paths
21
26
  * so your bundler resolves the file, e.g.
22
- * `import poster1 from "@timardex/cluemart-shared/images/poster1.png"`
23
- * or `require("@timardex/cluemart-shared/images/poster1.png")` (React Native / Metro).
27
+ * `import poster1 from "@timardex/cluemart-shared/images/poster1.webp"`
28
+ * or `require("@timardex/cluemart-shared/images/poster1.webp")` (React Native / Metro).
24
29
  *
25
30
  * Derived from `posterFiles` so keys and filenames stay aligned.
26
31
  */
27
32
  declare const posters: { readonly [K in keyof typeof posterFiles]: `${typeof PKG}/images/${(typeof posterFiles)[K]}`; };
28
33
  /**
29
- * Module specifiers for other images (same flat `@…/images/<file>.png` pattern as posters), e.g.
30
- * `import clui from "@timardex/cluemart-shared/images/cluiTui.png"`.
34
+ * Module specifiers for Clui assets (same flat `@…/images/<file>.webp` pattern as posters), e.g.
35
+ * `import clui from "@timardex/cluemart-shared/images/cluiTui.webp"`.
31
36
  */
32
- declare const otherImages: { readonly [K in keyof typeof otherFiles]: `${typeof PKG}/images/${(typeof otherFiles)[K]}`; };
37
+ declare const cluiImages: { readonly [K in keyof typeof cluiFiles]: `${typeof PKG}/images/${(typeof cluiFiles)[K]}`; };
38
+ declare const icons: { readonly [K in keyof typeof iconFiles]: `${typeof PKG}/images/${(typeof iconFiles)[K]}`; };
39
+ declare const badges: { readonly [K in keyof typeof badgeFiles]: `${typeof PKG}/images/${(typeof badgeFiles)[K]}`; };
40
+ declare const logos: { readonly [K in keyof typeof logoFiles]: `${typeof PKG}/images/${(typeof logoFiles)[K]}`; };
41
+ declare const otherImages: { readonly [K in keyof typeof otherImagesFiles]: `${typeof PKG}/images/${(typeof otherImagesFiles)[K]}`; };
33
42
  type PosterAssetId = keyof typeof posters;
34
43
  /** A single filename under the shared images directory (values of `posterFiles`). */
35
44
  type PosterImageBasename = (typeof posterFiles)[PosterAssetId];
36
- type OtherImageId = keyof typeof otherImages;
37
- /** Basename under the shared images directory (values of `otherFiles`). */
38
- type OtherImageBasename = (typeof otherFiles)[OtherImageId];
45
+ type CluiImageId = keyof typeof cluiImages;
46
+ /** Basename under the shared images directory (values of `cluiFiles`). */
47
+ type CluiImageBasename = (typeof cluiFiles)[CluiImageId];
48
+ type IconId = keyof typeof icons;
49
+ type IconBasename = (typeof iconFiles)[IconId];
50
+ type BadgeId = keyof typeof badges;
51
+ type BadgeBasename = (typeof badgeFiles)[BadgeId];
52
+ type LogoId = keyof typeof logos;
53
+ type LogoBasename = (typeof logoFiles)[LogoId];
54
+ type OtherImagesId = keyof typeof otherImages;
55
+ type OtherImagesBasename = (typeof otherImagesFiles)[OtherImagesId];
39
56
 
40
- export { type OtherImageBasename, type OtherImageId, type PosterAssetId, type PosterImageBasename, otherFiles, otherImages, posterFiles, posters };
57
+ export { type BadgeBasename, type BadgeId, type CluiImageBasename, type CluiImageId, IMAGE_EXTENSION, type IconBasename, type IconId, type LogoBasename, type LogoId, type OtherImagesBasename, type OtherImagesId, type PosterAssetId, type PosterImageBasename, badgeFiles, badgeIds, badges, cluiFiles, cluiIds, cluiImages, iconFiles, iconIds, icons, logoFiles, logoIds, logos, otherImages, otherImagesFiles, otherImagesIds, posterFiles, posterIds, posters };
@@ -1,40 +1,57 @@
1
1
  declare const PKG: "@timardex/cluemart-shared";
2
+ declare const IMAGE_EXTENSION: ".webp";
2
3
  /**
3
4
  * Basenames under the shared images directory — use with `getSharedImagePath` from `@timardex/cluemart-shared/images/node` (Express / Node).
4
- * 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.
5
+ * This object is the single source of poster keys; `posters` is derived from it. Add an image with `IMAGE_EXTENSION` under `src/images/posters/` when adding an entry.
5
6
  * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.
6
7
  */
7
- declare const posterFiles: {
8
- readonly poster1: "poster1.png";
9
- readonly poster2: "poster2.png";
10
- readonly poster3: "poster3.png";
11
- };
8
+ declare const posterIds: readonly ["poster1", "poster2", "poster3"];
9
+ declare const posterFiles: { readonly [K in (typeof posterIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
12
10
  /**
13
- * Basenames for assets kept under `src/images/other/` in source; they are copied flat into `dist/images/` (same as posters).
11
+ * Basenames for assets under `src/images/clui/` in source; they are copied flat into `dist/images/` (same as posters).
14
12
  * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.
15
13
  */
16
- declare const otherFiles: {
17
- readonly cluiTui: "cluiTui.png";
18
- };
14
+ declare const cluiIds: readonly ["cluiTui", "sima", "tablas", "telefonos", "ugralos"];
15
+ declare const cluiFiles: { readonly [K in (typeof cluiIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
16
+ declare const iconIds: readonly ["apple-maps-icon", "facebook", "google-maps-icon", "instagram", "meet", "poll", "tiktok", "tip", "waze-maps-icon", "website", "youtube"];
17
+ declare const iconFiles: { readonly [K in (typeof iconIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
18
+ declare const badgeIds: readonly ["corporate", "private", "school"];
19
+ declare const badgeFiles: { readonly [K in (typeof badgeIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
20
+ declare const logoIds: readonly ["googleMaps-logo-dark", "googleMaps-logo-light", "logo", "logo-atr"];
21
+ declare const logoFiles: { readonly [K in (typeof logoIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
22
+ declare const otherImagesIds: readonly ["banner-horizontal", "banner-vertical", "qr-code", "store-android", "store-ios"];
23
+ declare const otherImagesFiles: { readonly [K in (typeof otherImagesIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`; };
19
24
  /**
20
25
  * Module specifiers for each poster (not resolved file URLs). Use a static import or require with these paths
21
26
  * so your bundler resolves the file, e.g.
22
- * `import poster1 from "@timardex/cluemart-shared/images/poster1.png"`
23
- * or `require("@timardex/cluemart-shared/images/poster1.png")` (React Native / Metro).
27
+ * `import poster1 from "@timardex/cluemart-shared/images/poster1.webp"`
28
+ * or `require("@timardex/cluemart-shared/images/poster1.webp")` (React Native / Metro).
24
29
  *
25
30
  * Derived from `posterFiles` so keys and filenames stay aligned.
26
31
  */
27
32
  declare const posters: { readonly [K in keyof typeof posterFiles]: `${typeof PKG}/images/${(typeof posterFiles)[K]}`; };
28
33
  /**
29
- * Module specifiers for other images (same flat `@…/images/<file>.png` pattern as posters), e.g.
30
- * `import clui from "@timardex/cluemart-shared/images/cluiTui.png"`.
34
+ * Module specifiers for Clui assets (same flat `@…/images/<file>.webp` pattern as posters), e.g.
35
+ * `import clui from "@timardex/cluemart-shared/images/cluiTui.webp"`.
31
36
  */
32
- declare const otherImages: { readonly [K in keyof typeof otherFiles]: `${typeof PKG}/images/${(typeof otherFiles)[K]}`; };
37
+ declare const cluiImages: { readonly [K in keyof typeof cluiFiles]: `${typeof PKG}/images/${(typeof cluiFiles)[K]}`; };
38
+ declare const icons: { readonly [K in keyof typeof iconFiles]: `${typeof PKG}/images/${(typeof iconFiles)[K]}`; };
39
+ declare const badges: { readonly [K in keyof typeof badgeFiles]: `${typeof PKG}/images/${(typeof badgeFiles)[K]}`; };
40
+ declare const logos: { readonly [K in keyof typeof logoFiles]: `${typeof PKG}/images/${(typeof logoFiles)[K]}`; };
41
+ declare const otherImages: { readonly [K in keyof typeof otherImagesFiles]: `${typeof PKG}/images/${(typeof otherImagesFiles)[K]}`; };
33
42
  type PosterAssetId = keyof typeof posters;
34
43
  /** A single filename under the shared images directory (values of `posterFiles`). */
35
44
  type PosterImageBasename = (typeof posterFiles)[PosterAssetId];
36
- type OtherImageId = keyof typeof otherImages;
37
- /** Basename under the shared images directory (values of `otherFiles`). */
38
- type OtherImageBasename = (typeof otherFiles)[OtherImageId];
45
+ type CluiImageId = keyof typeof cluiImages;
46
+ /** Basename under the shared images directory (values of `cluiFiles`). */
47
+ type CluiImageBasename = (typeof cluiFiles)[CluiImageId];
48
+ type IconId = keyof typeof icons;
49
+ type IconBasename = (typeof iconFiles)[IconId];
50
+ type BadgeId = keyof typeof badges;
51
+ type BadgeBasename = (typeof badgeFiles)[BadgeId];
52
+ type LogoId = keyof typeof logos;
53
+ type LogoBasename = (typeof logoFiles)[LogoId];
54
+ type OtherImagesId = keyof typeof otherImages;
55
+ type OtherImagesBasename = (typeof otherImagesFiles)[OtherImagesId];
39
56
 
40
- export { type OtherImageBasename, type OtherImageId, type PosterAssetId, type PosterImageBasename, otherFiles, otherImages, posterFiles, posters };
57
+ export { type BadgeBasename, type BadgeId, type CluiImageBasename, type CluiImageId, IMAGE_EXTENSION, type IconBasename, type IconId, type LogoBasename, type LogoId, type OtherImagesBasename, type OtherImagesId, type PosterAssetId, type PosterImageBasename, badgeFiles, badgeIds, badges, cluiFiles, cluiIds, cluiImages, iconFiles, iconIds, icons, logoFiles, logoIds, logos, otherImages, otherImagesFiles, otherImagesIds, posterFiles, posterIds, posters };
@@ -1,13 +1,43 @@
1
1
  import {
2
- otherFiles,
2
+ IMAGE_EXTENSION,
3
+ badgeFiles,
4
+ badgeIds,
5
+ badges,
6
+ cluiFiles,
7
+ cluiIds,
8
+ cluiImages,
9
+ iconFiles,
10
+ iconIds,
11
+ icons,
12
+ logoFiles,
13
+ logoIds,
14
+ logos,
3
15
  otherImages,
16
+ otherImagesFiles,
17
+ otherImagesIds,
4
18
  posterFiles,
19
+ posterIds,
5
20
  posters
6
- } from "../chunk-4PJQMQVX.mjs";
21
+ } from "../chunk-TXHYVMOH.mjs";
7
22
  export {
8
- otherFiles,
23
+ IMAGE_EXTENSION,
24
+ badgeFiles,
25
+ badgeIds,
26
+ badges,
27
+ cluiFiles,
28
+ cluiIds,
29
+ cluiImages,
30
+ iconFiles,
31
+ iconIds,
32
+ icons,
33
+ logoFiles,
34
+ logoIds,
35
+ logos,
9
36
  otherImages,
37
+ otherImagesFiles,
38
+ otherImagesIds,
10
39
  posterFiles,
40
+ posterIds,
11
41
  posters
12
42
  };
13
43
  //# sourceMappingURL=index.mjs.map
Binary file
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
Binary file
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
Binary file
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
Binary file
@@ -0,0 +1,2 @@
1
+ declare const src: string | number;
2
+ export default src;
@@ -2,16 +2,27 @@
2
2
 
3
3
  const path = require("node:path");
4
4
 
5
- const { basename, resolve, sep } = path;
5
+ const { basename, isAbsolute, relative, resolve, sep } = path;
6
6
 
7
- const { otherFiles, posterFiles } = require("./index.cjs");
7
+ const {
8
+ badgeFiles,
9
+ cluiFiles,
10
+ iconFiles,
11
+ otherImagesFiles,
12
+ logoFiles,
13
+ posterFiles,
14
+ } = require("./index.cjs");
8
15
 
9
16
  const ALLOWED_BASENAMES = new Set([
10
17
  ...Object.values(posterFiles),
11
- ...Object.values(otherFiles),
18
+ ...Object.values(cluiFiles),
19
+ ...Object.values(iconFiles),
20
+ ...Object.values(badgeFiles),
21
+ ...Object.values(logoFiles),
22
+ ...Object.values(otherImagesFiles),
12
23
  ]);
13
24
 
14
- /** Directory containing this module and the shipped PNGs (`dist/images/` in the published package). */
25
+ /** Directory containing this module and the shipped images (`dist/images/` in the published package). */
15
26
  function getSharedImagesDir() {
16
27
  return __dirname;
17
28
  }
@@ -43,11 +54,23 @@ function assertSafeImageBasename(fileName) {
43
54
  * @returns {string}
44
55
  */
45
56
  function resolveToBasename(ref) {
46
- if (Object.hasOwn(posterFiles, ref)) {
57
+ if (Object.prototype.hasOwnProperty.call(posterFiles, ref)) {
47
58
  return posterFiles[ref];
48
59
  }
49
- if (Object.hasOwn(otherFiles, ref)) {
50
- return otherFiles[ref];
60
+ if (Object.prototype.hasOwnProperty.call(cluiFiles, ref)) {
61
+ return cluiFiles[ref];
62
+ }
63
+ if (Object.prototype.hasOwnProperty.call(iconFiles, ref)) {
64
+ return iconFiles[ref];
65
+ }
66
+ if (Object.prototype.hasOwnProperty.call(badgeFiles, ref)) {
67
+ return badgeFiles[ref];
68
+ }
69
+ if (Object.prototype.hasOwnProperty.call(logoFiles, ref)) {
70
+ return logoFiles[ref];
71
+ }
72
+ if (Object.prototype.hasOwnProperty.call(otherImagesFiles, ref)) {
73
+ return otherImagesFiles[ref];
51
74
  }
52
75
  return assertSafeImageBasename(ref);
53
76
  }
@@ -60,8 +83,8 @@ function resolveToBasename(ref) {
60
83
  function resolvedPathUnderRoot(rootDir, baseName) {
61
84
  const rootResolved = resolve(rootDir);
62
85
  const resolved = resolve(rootResolved, baseName);
63
- const prefix = rootResolved.endsWith(sep) ? rootResolved : rootResolved + sep;
64
- if (resolved !== rootResolved && !resolved.startsWith(prefix)) {
86
+ const rel = relative(rootResolved, resolved);
87
+ if (rel === ".." || rel.startsWith(`..${sep}`) || isAbsolute(rel)) {
65
88
  throw new TypeError(
66
89
  "resolved path must stay under the shared images directory",
67
90
  );
@@ -1,13 +1,29 @@
1
1
  import type {
2
- OtherImageBasename,
3
- OtherImageId,
2
+ BadgeBasename,
3
+ BadgeId,
4
+ CluiImageBasename,
5
+ CluiImageId,
6
+ IconBasename,
7
+ IconId,
8
+ LogoBasename,
9
+ LogoId,
10
+ OtherImagesBasename,
11
+ OtherImagesId,
4
12
  PosterAssetId,
5
13
  PosterImageBasename,
6
14
  } from "./index.js";
7
15
 
8
16
  export type {
9
- OtherImageBasename,
10
- OtherImageId,
17
+ BadgeBasename,
18
+ BadgeId,
19
+ CluiImageBasename,
20
+ CluiImageId,
21
+ IconBasename,
22
+ IconId,
23
+ LogoBasename,
24
+ LogoId,
25
+ OtherImagesBasename,
26
+ OtherImagesId,
11
27
  PosterAssetId,
12
28
  PosterImageBasename,
13
29
  } from "./index.js";
@@ -16,10 +32,22 @@ export type {
16
32
  export function getSharedImagesDir(): string;
17
33
 
18
34
  /**
19
- * Absolute path to one shipped image (poster or other asset).
20
- * Pass an id (`poster1`, `cluiTui`) or the flat basename (`poster1.png`, `cluiTui.png`).
35
+ * Absolute path to one shipped image (poster or Clui asset).
36
+ * Pass an id (`poster1`, `cluiTui`) or the flat basename (`poster1.webp`, `cluiTui.webp`).
21
37
  * Unknown values and path segments are rejected at runtime.
22
38
  */
23
39
  export function getSharedImagePath(
24
- ref: PosterAssetId | PosterImageBasename | OtherImageId | OtherImageBasename,
40
+ ref:
41
+ | PosterAssetId
42
+ | PosterImageBasename
43
+ | CluiImageId
44
+ | CluiImageBasename
45
+ | IconId
46
+ | IconBasename
47
+ | BadgeId
48
+ | BadgeBasename
49
+ | LogoId
50
+ | LogoBasename
51
+ | OtherImagesId
52
+ | OtherImagesBasename,
25
53
  ): string;