@timardex/cluemart-shared 1.5.766 → 1.5.767

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/index.d.mts CHANGED
@@ -2977,7 +2977,8 @@ type ResourceImageLike = {
2977
2977
  };
2978
2978
  /**
2979
2979
  * Resolves whether a resource image is active.
2980
- * Legacy images with a source but no stored `active` field are treated as active.
2980
+ * Only an explicit `active: true` shows the image; missing `active` defaults to false
2981
+ * so licence downgrades (e.g. standard vendor gallery limit) are not overridden.
2981
2982
  */
2982
2983
  declare function resolveResourceImageActive(image: ResourceImageLike | null | undefined): boolean;
2983
2984
  declare function normalizeResourceImage(image: ResourceImageLike | null | undefined): ResourceImageType;
package/dist/index.d.ts CHANGED
@@ -2977,7 +2977,8 @@ type ResourceImageLike = {
2977
2977
  };
2978
2978
  /**
2979
2979
  * Resolves whether a resource image is active.
2980
- * Legacy images with a source but no stored `active` field are treated as active.
2980
+ * Only an explicit `active: true` shows the image; missing `active` defaults to false
2981
+ * so licence downgrades (e.g. standard vendor gallery limit) are not overridden.
2981
2982
  */
2982
2983
  declare function resolveResourceImageActive(image: ResourceImageLike | null | undefined): boolean;
2983
2984
  declare function normalizeResourceImage(image: ResourceImageLike | null | undefined): ResourceImageType;
package/dist/index.mjs CHANGED
@@ -914,7 +914,7 @@ function resolveResourceImageActive(image) {
914
914
  if (image?.active != null) {
915
915
  return image.active;
916
916
  }
917
- return Boolean(image?.source);
917
+ return false;
918
918
  }
919
919
  function normalizeResourceImage(image) {
920
920
  return {