@tanstack/query-devtools 5.24.0 → 5.27.3

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.
@@ -2286,7 +2286,6 @@ var simpleRules = [
2286
2286
  if (typeof BigInt !== "undefined") {
2287
2287
  return BigInt(v);
2288
2288
  }
2289
- console.error("Please add a BigInt polyfill.");
2290
2289
  return v;
2291
2290
  }),
2292
2291
  simpleTransformation(isDate, "Date", function(v) {
@@ -3134,10 +3133,10 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
3134
3133
  }
3135
3134
  return oldData;
3136
3135
  };
3137
- var setupStyleSheet = (nonce) => {
3136
+ var setupStyleSheet = (nonce, target) => {
3138
3137
  if (!nonce)
3139
3138
  return;
3140
- const styleExists = document.querySelector("#_goober");
3139
+ const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
3141
3140
  if (styleExists)
3142
3141
  return;
3143
3142
  const styleTag = document.createElement("style");
@@ -3145,7 +3144,11 @@ var setupStyleSheet = (nonce) => {
3145
3144
  styleTag.appendChild(textNode);
3146
3145
  styleTag.id = "_goober";
3147
3146
  styleTag.setAttribute("nonce", nonce);
3148
- document.head.appendChild(styleTag);
3147
+ if (target) {
3148
+ target.appendChild(styleTag);
3149
+ } else {
3150
+ document.head.appendChild(styleTag);
3151
+ }
3149
3152
  };
3150
3153
 
3151
3154
  export {
@@ -3122,10 +3122,10 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
3122
3122
  }
3123
3123
  return oldData;
3124
3124
  };
3125
- var setupStyleSheet = (nonce) => {
3125
+ var setupStyleSheet = (nonce, target) => {
3126
3126
  if (!nonce)
3127
3127
  return;
3128
- const styleExists = document.querySelector("#_goober");
3128
+ const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
3129
3129
  if (styleExists)
3130
3130
  return;
3131
3131
  const styleTag = document.createElement("style");
@@ -3133,7 +3133,11 @@ var setupStyleSheet = (nonce) => {
3133
3133
  styleTag.appendChild(textNode);
3134
3134
  styleTag.id = "_goober";
3135
3135
  styleTag.setAttribute("nonce", nonce);
3136
- document.head.appendChild(styleTag);
3136
+ if (target) {
3137
+ target.appendChild(styleTag);
3138
+ } else {
3139
+ document.head.appendChild(styleTag);
3140
+ }
3137
3141
  };
3138
3142
 
3139
3143
  export { $PROXY, $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, children, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getListener, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, mergeProps, mutationSortFns, on, onCleanup, onMount, render, setAttribute, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };
@@ -3123,10 +3123,10 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
3123
3123
  }
3124
3124
  return oldData;
3125
3125
  };
3126
- var setupStyleSheet = (nonce) => {
3126
+ var setupStyleSheet = (nonce, target) => {
3127
3127
  if (!nonce)
3128
3128
  return;
3129
- const styleExists = document.querySelector("#_goober");
3129
+ const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
3130
3130
  if (styleExists)
3131
3131
  return;
3132
3132
  const styleTag = document.createElement("style");
@@ -3134,7 +3134,11 @@ var setupStyleSheet = (nonce) => {
3134
3134
  styleTag.appendChild(textNode);
3135
3135
  styleTag.id = "_goober";
3136
3136
  styleTag.setAttribute("nonce", nonce);
3137
- document.head.appendChild(styleTag);
3137
+ if (target) {
3138
+ target.appendChild(styleTag);
3139
+ } else {
3140
+ document.head.appendChild(styleTag);
3141
+ }
3138
3142
  };
3139
3143
 
3140
3144
  export { $PROXY, $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, children, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getListener, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, mergeProps, mutationSortFns, on, onCleanup, onMount, render, setAttribute, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };
@@ -2286,6 +2286,7 @@ var simpleRules = [
2286
2286
  if (typeof BigInt !== "undefined") {
2287
2287
  return BigInt(v);
2288
2288
  }
2289
+ console.error("Please add a BigInt polyfill.");
2289
2290
  return v;
2290
2291
  }),
2291
2292
  simpleTransformation(isDate, "Date", function(v) {
@@ -3133,10 +3134,10 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
3133
3134
  }
3134
3135
  return oldData;
3135
3136
  };
3136
- var setupStyleSheet = (nonce) => {
3137
+ var setupStyleSheet = (nonce, target) => {
3137
3138
  if (!nonce)
3138
3139
  return;
3139
- const styleExists = document.querySelector("#_goober");
3140
+ const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
3140
3141
  if (styleExists)
3141
3142
  return;
3142
3143
  const styleTag = document.createElement("style");
@@ -3144,7 +3145,11 @@ var setupStyleSheet = (nonce) => {
3144
3145
  styleTag.appendChild(textNode);
3145
3146
  styleTag.id = "_goober";
3146
3147
  styleTag.setAttribute("nonce", nonce);
3147
- document.head.appendChild(styleTag);
3148
+ if (target) {
3149
+ target.appendChild(styleTag);
3150
+ } else {
3151
+ document.head.appendChild(styleTag);
3152
+ }
3148
3153
  };
3149
3154
 
3150
3155
  export {