@orderingstack/front-hooks 3.7.0 → 3.7.1

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.es.js CHANGED
@@ -3128,7 +3128,7 @@ function useLocalizedVenueMedia(id, venue, locale, intervalSeconds = 300, withLo
3128
3128
  var _a, _b, _c, _d;
3129
3129
  const config = useContext(ConfigContext);
3130
3130
  if (!config) {
3131
- throw new Error("Missing config context");
3131
+ throw new Error("Hook was used outside config context");
3132
3132
  }
3133
3133
  const { value, isError } = useVenueCms(id, intervalSeconds, withLocalStorage, config.baseUrl, config.tenant, venue);
3134
3134
  let localizedValue = null;
@@ -3139,7 +3139,12 @@ function useLocalizedVenueMedia(id, venue, locale, intervalSeconds = 300, withLo
3139
3139
  if (!localizedValue && value && ((_d = value == null ? void 0 : value.url) == null ? void 0 : _d.length) > 0) {
3140
3140
  fallbackUrl = value.url[0].value;
3141
3141
  }
3142
- return { url: localizedValue, fallbackUrl, isError };
3142
+ return {
3143
+ url: localizedValue,
3144
+ fallbackUrl,
3145
+ isError,
3146
+ mediaType: value == null ? void 0 : value.mediaType
3147
+ };
3143
3148
  }
3144
3149
  function useKioskMediaCms({
3145
3150
  kioskMediaId,