@kodiak-finance/orderly-hooks 2.9.1-alpha.4 → 2.9.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.js CHANGED
@@ -12811,7 +12811,7 @@ function useOrderEntry(symbolOrOrder, sideOrOptions, reduceOnly, options) {
12811
12811
  }
12812
12812
  function useMediaQuery(query) {
12813
12813
  const getMatches = (query2) => {
12814
- if (typeof window !== "undefined") {
12814
+ if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
12815
12815
  return window.matchMedia(query2).matches;
12816
12816
  }
12817
12817
  return false;
@@ -20095,9 +20095,8 @@ var FlagKeys = /* @__PURE__ */ ((FlagKeys2) => {
20095
20095
  // src/index.ts
20096
20096
  var ensureWindowEvents = () => {
20097
20097
  if (typeof globalThis === "undefined") return;
20098
- if (typeof process !== "undefined" && process.versions?.node) {
20099
- return;
20100
- }
20098
+ const isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
20099
+ if (!isReactNative) return;
20101
20100
  const g = globalThis;
20102
20101
  const win = g.window ?? g;
20103
20102
  if (typeof win.addEventListener !== "function") {