@tanstack/query-devtools 5.23.0 → 5.27.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.
@@ -1493,6 +1493,13 @@ function delegateEvents(eventNames, document2 = window.document) {
1493
1493
  }
1494
1494
  }
1495
1495
  }
1496
+ function clearDelegatedEvents(document2 = window.document) {
1497
+ if (document2[$$EVENTS]) {
1498
+ for (let name of document2[$$EVENTS].keys())
1499
+ document2.removeEventListener(name, eventHandler);
1500
+ delete document2[$$EVENTS];
1501
+ }
1502
+ }
1496
1503
  function setAttribute(node, name, value) {
1497
1504
  if (sharedConfig.context)
1498
1505
  return;
@@ -3126,10 +3133,10 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
3126
3133
  }
3127
3134
  return oldData;
3128
3135
  };
3129
- var setupStyleSheet = (nonce) => {
3136
+ var setupStyleSheet = (nonce, target) => {
3130
3137
  if (!nonce)
3131
3138
  return;
3132
- const styleExists = document.querySelector("#_goober");
3139
+ const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
3133
3140
  if (styleExists)
3134
3141
  return;
3135
3142
  const styleTag = document.createElement("style");
@@ -3137,7 +3144,11 @@ var setupStyleSheet = (nonce) => {
3137
3144
  styleTag.appendChild(textNode);
3138
3145
  styleTag.id = "_goober";
3139
3146
  styleTag.setAttribute("nonce", nonce);
3140
- document.head.appendChild(styleTag);
3147
+ if (target) {
3148
+ target.appendChild(styleTag);
3149
+ } else {
3150
+ document.head.appendChild(styleTag);
3151
+ }
3141
3152
  };
3142
3153
 
3143
3154
  export {
@@ -3174,6 +3185,7 @@ export {
3174
3185
  render,
3175
3186
  template,
3176
3187
  delegateEvents,
3188
+ clearDelegatedEvents,
3177
3189
  setAttribute,
3178
3190
  spread,
3179
3191
  use,
@@ -1491,6 +1491,13 @@ function delegateEvents(eventNames, document2 = window.document) {
1491
1491
  }
1492
1492
  }
1493
1493
  }
1494
+ function clearDelegatedEvents(document2 = window.document) {
1495
+ if (document2[$$EVENTS]) {
1496
+ for (let name of document2[$$EVENTS].keys())
1497
+ document2.removeEventListener(name, eventHandler);
1498
+ delete document2[$$EVENTS];
1499
+ }
1500
+ }
1494
1501
  function setAttribute(node, name, value) {
1495
1502
  if (sharedConfig.context)
1496
1503
  return;
@@ -3115,10 +3122,10 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
3115
3122
  }
3116
3123
  return oldData;
3117
3124
  };
3118
- var setupStyleSheet = (nonce) => {
3125
+ var setupStyleSheet = (nonce, target) => {
3119
3126
  if (!nonce)
3120
3127
  return;
3121
- const styleExists = document.querySelector("#_goober");
3128
+ const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
3122
3129
  if (styleExists)
3123
3130
  return;
3124
3131
  const styleTag = document.createElement("style");
@@ -3126,7 +3133,11 @@ var setupStyleSheet = (nonce) => {
3126
3133
  styleTag.appendChild(textNode);
3127
3134
  styleTag.id = "_goober";
3128
3135
  styleTag.setAttribute("nonce", nonce);
3129
- document.head.appendChild(styleTag);
3136
+ if (target) {
3137
+ target.appendChild(styleTag);
3138
+ } else {
3139
+ document.head.appendChild(styleTag);
3140
+ }
3130
3141
  };
3131
3142
 
3132
- export { $PROXY, $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, children, className, 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 };
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 };
@@ -1491,6 +1491,13 @@ function delegateEvents(eventNames, document2 = window.document) {
1491
1491
  }
1492
1492
  }
1493
1493
  }
1494
+ function clearDelegatedEvents(document2 = window.document) {
1495
+ if (document2[$$EVENTS]) {
1496
+ for (let name of document2[$$EVENTS].keys())
1497
+ document2.removeEventListener(name, eventHandler);
1498
+ delete document2[$$EVENTS];
1499
+ }
1500
+ }
1494
1501
  function setAttribute(node, name, value) {
1495
1502
  if (sharedConfig.context)
1496
1503
  return;
@@ -3116,10 +3123,10 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
3116
3123
  }
3117
3124
  return oldData;
3118
3125
  };
3119
- var setupStyleSheet = (nonce) => {
3126
+ var setupStyleSheet = (nonce, target) => {
3120
3127
  if (!nonce)
3121
3128
  return;
3122
- const styleExists = document.querySelector("#_goober");
3129
+ const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
3123
3130
  if (styleExists)
3124
3131
  return;
3125
3132
  const styleTag = document.createElement("style");
@@ -3127,7 +3134,11 @@ var setupStyleSheet = (nonce) => {
3127
3134
  styleTag.appendChild(textNode);
3128
3135
  styleTag.id = "_goober";
3129
3136
  styleTag.setAttribute("nonce", nonce);
3130
- document.head.appendChild(styleTag);
3137
+ if (target) {
3138
+ target.appendChild(styleTag);
3139
+ } else {
3140
+ document.head.appendChild(styleTag);
3141
+ }
3131
3142
  };
3132
3143
 
3133
- export { $PROXY, $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, children, className, 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 };
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 };
@@ -1493,6 +1493,13 @@ function delegateEvents(eventNames, document2 = window.document) {
1493
1493
  }
1494
1494
  }
1495
1495
  }
1496
+ function clearDelegatedEvents(document2 = window.document) {
1497
+ if (document2[$$EVENTS]) {
1498
+ for (let name of document2[$$EVENTS].keys())
1499
+ document2.removeEventListener(name, eventHandler);
1500
+ delete document2[$$EVENTS];
1501
+ }
1502
+ }
1496
1503
  function setAttribute(node, name, value) {
1497
1504
  if (sharedConfig.context)
1498
1505
  return;
@@ -3127,10 +3134,10 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
3127
3134
  }
3128
3135
  return oldData;
3129
3136
  };
3130
- var setupStyleSheet = (nonce) => {
3137
+ var setupStyleSheet = (nonce, target) => {
3131
3138
  if (!nonce)
3132
3139
  return;
3133
- const styleExists = document.querySelector("#_goober");
3140
+ const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
3134
3141
  if (styleExists)
3135
3142
  return;
3136
3143
  const styleTag = document.createElement("style");
@@ -3138,7 +3145,11 @@ var setupStyleSheet = (nonce) => {
3138
3145
  styleTag.appendChild(textNode);
3139
3146
  styleTag.id = "_goober";
3140
3147
  styleTag.setAttribute("nonce", nonce);
3141
- document.head.appendChild(styleTag);
3148
+ if (target) {
3149
+ target.appendChild(styleTag);
3150
+ } else {
3151
+ document.head.appendChild(styleTag);
3152
+ }
3142
3153
  };
3143
3154
 
3144
3155
  export {
@@ -3175,6 +3186,7 @@ export {
3175
3186
  render,
3176
3187
  template,
3177
3188
  delegateEvents,
3189
+ clearDelegatedEvents,
3178
3190
  setAttribute,
3179
3191
  spread,
3180
3192
  use,