@orderly.network/hooks 3.0.0 → 3.0.1-alpha.0

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
@@ -170,7 +170,7 @@ declare global {
170
170
  };
171
171
  }
172
172
  }
173
- declare const _default: "3.0.0";
173
+ declare const _default: "3.0.1-alpha.0";
174
174
 
175
175
  declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
176
176
  type useQueryOptions<T> = SWRConfiguration & {
@@ -1010,6 +1010,14 @@ declare const useIndexPricesStream: () => {
1010
1010
  getIndexPrice: (this: unknown, token: string) => number;
1011
1011
  };
1012
1012
 
1013
+ /**
1014
+ * Mark price from the in-memory store for `symbol`.
1015
+ *
1016
+ * @remarks
1017
+ * `data` reflects the store lookup and may be transiently unset before streams write in.
1018
+ * In TS strict JSX, avoid rendering `{data}` as a direct text child without narrowing
1019
+ * (`typeof data === "number"`) or formatting through a helper that supplies a fallback.
1020
+ */
1013
1021
  declare const useMarkPrice: (symbol: string) => {
1014
1022
  data: number;
1015
1023
  };
package/dist/index.d.ts CHANGED
@@ -170,7 +170,7 @@ declare global {
170
170
  };
171
171
  }
172
172
  }
173
- declare const _default: "3.0.0";
173
+ declare const _default: "3.0.1-alpha.0";
174
174
 
175
175
  declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
176
176
  type useQueryOptions<T> = SWRConfiguration & {
@@ -1010,6 +1010,14 @@ declare const useIndexPricesStream: () => {
1010
1010
  getIndexPrice: (this: unknown, token: string) => number;
1011
1011
  };
1012
1012
 
1013
+ /**
1014
+ * Mark price from the in-memory store for `symbol`.
1015
+ *
1016
+ * @remarks
1017
+ * `data` reflects the store lookup and may be transiently unset before streams write in.
1018
+ * In TS strict JSX, avoid rendering `{data}` as a direct text child without narrowing
1019
+ * (`typeof data === "number"`) or formatting through a helper that supplies a fallback.
1020
+ */
1013
1021
  declare const useMarkPrice: (symbol: string) => {
1014
1022
  data: number;
1015
1023
  };
package/dist/index.js CHANGED
@@ -76,9 +76,9 @@ function useMarketCategoriesConfig() {
76
76
  // src/version.ts
77
77
  if (typeof window !== "undefined") {
78
78
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
79
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "3.0.0";
79
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "3.0.1-alpha.0";
80
80
  }
81
- var version_default = "3.0.0";
81
+ var version_default = "3.0.1-alpha.0";
82
82
  var fetcher = (url, init2 = {}, queryOptions) => net.get(url, init2, queryOptions?.formatter);
83
83
  var noCacheConfig = {
84
84
  dedupingInterval: 0,