@jini-ai/ui 0.4.7 → 0.4.8

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.
Files changed (125) hide show
  1. package/README.md +2 -0
  2. package/dist/features/admin-widgets/components/InfoTip.d.ts +23 -2
  3. package/dist/features/admin-widgets/components/InfoTip.hooks.d.ts +22 -2
  4. package/dist/features/admin-widgets/components/InfoTip.hooks.js +75 -28
  5. package/dist/features/admin-widgets/components/InfoTip.js +12 -4
  6. package/dist/features/admin-widgets/components/InfoTip.rules.d.ts +72 -0
  7. package/dist/features/admin-widgets/components/InfoTip.rules.js +68 -0
  8. package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.d.ts +36 -0
  9. package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.hooks.d.ts +58 -0
  10. package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.hooks.js +66 -0
  11. package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.js +24 -0
  12. package/dist/features/admin-widgets/components/useDebouncedHtmlPreview.hooks.d.ts +23 -0
  13. package/dist/features/admin-widgets/components/useDebouncedHtmlPreview.hooks.js +28 -0
  14. package/dist/features/admin-widgets/index.d.ts +9 -0
  15. package/dist/features/admin-widgets/index.js +5 -0
  16. package/dist/features/execution/constants.js +11 -10
  17. package/dist/features/execution/http-adapter.d.ts +3 -1
  18. package/dist/features/execution/http-adapter.js +9 -4
  19. package/dist/features/execution/index.d.ts +1 -1
  20. package/dist/features/execution/index.js +1 -1
  21. package/dist/features/execution/react/components/ByokProviderForm.d.ts +18 -1
  22. package/dist/features/execution/react/components/ByokProviderForm.js +14 -16
  23. package/dist/features/execution/react/components/LocalCliAgentCard.d.ts +5 -1
  24. package/dist/features/execution/react/components/LocalCliAgentCard.js +12 -87
  25. package/dist/features/execution/react/components/LocalCliAgentList.d.ts +4 -1
  26. package/dist/features/execution/react/components/LocalCliAgentList.js +13 -4
  27. package/dist/features/execution/react/components/LocalCliAgentSettings.d.ts +20 -0
  28. package/dist/features/execution/react/components/LocalCliAgentSettings.js +20 -0
  29. package/dist/features/execution/react/hooks/use-byok-field-validation.hooks.d.ts +24 -0
  30. package/dist/features/execution/react/hooks/use-byok-field-validation.hooks.js +27 -0
  31. package/dist/features/execution/react/hooks/useExecutionTab.js +10 -1
  32. package/dist/features/execution/react/hooks/useLocalCliAgentCard.d.ts +48 -0
  33. package/dist/features/execution/react/hooks/useLocalCliAgentCard.js +110 -0
  34. package/dist/features/execution/react/hooks/useLocalCliAgentList.d.ts +19 -0
  35. package/dist/features/execution/react/hooks/useLocalCliAgentList.js +13 -0
  36. package/dist/features/execution/rules.d.ts +13 -0
  37. package/dist/features/execution/rules.js +14 -0
  38. package/dist/features/execution/types.d.ts +2 -0
  39. package/dist/features/html-editor/canvas-embed-placeholders.d.ts +13 -1
  40. package/dist/features/html-editor/canvas-embed-placeholders.js +61 -12
  41. package/dist/features/html-editor/dom.d.ts +5 -0
  42. package/dist/features/html-editor/dom.js +10 -0
  43. package/dist/features/html-editor/editor-blocks.d.ts +71 -0
  44. package/dist/features/html-editor/editor-blocks.js +185 -0
  45. package/dist/features/html-editor/editor-serialization.d.ts +24 -0
  46. package/dist/features/html-editor/editor-serialization.js +110 -0
  47. package/dist/features/html-editor/index.d.ts +5 -0
  48. package/dist/features/html-editor/index.js +3 -0
  49. package/dist/features/html-editor/protected-elements.d.ts +64 -0
  50. package/dist/features/html-editor/protected-elements.js +189 -0
  51. package/dist/features/html-editor/react/components/InteractiveHtmlEditor.d.ts +6 -4
  52. package/dist/features/html-editor/react/components/InteractiveHtmlEditor.js +3 -3
  53. package/dist/features/html-editor/react/hooks/useInteractiveHtmlEditor.d.ts +9 -1
  54. package/dist/features/html-editor/react/hooks/useInteractiveHtmlEditor.js +107 -196
  55. package/dist/features/html-editor/source-splice.d.ts +23 -0
  56. package/dist/features/html-editor/source-splice.js +45 -0
  57. package/dist/features/i18n/dictionaries/settings-dialog.ar.js +4 -0
  58. package/dist/features/i18n/dictionaries/settings-dialog.bn.js +4 -0
  59. package/dist/features/i18n/dictionaries/settings-dialog.de.js +4 -0
  60. package/dist/features/i18n/dictionaries/settings-dialog.en.js +4 -0
  61. package/dist/features/i18n/dictionaries/settings-dialog.es.js +4 -0
  62. package/dist/features/i18n/dictionaries/settings-dialog.fa.js +4 -0
  63. package/dist/features/i18n/dictionaries/settings-dialog.fr.js +4 -0
  64. package/dist/features/i18n/dictionaries/settings-dialog.hi.js +4 -0
  65. package/dist/features/i18n/dictionaries/settings-dialog.hu.js +4 -0
  66. package/dist/features/i18n/dictionaries/settings-dialog.id.js +4 -0
  67. package/dist/features/i18n/dictionaries/settings-dialog.it.js +4 -0
  68. package/dist/features/i18n/dictionaries/settings-dialog.ja.js +4 -0
  69. package/dist/features/i18n/dictionaries/settings-dialog.ko.js +4 -0
  70. package/dist/features/i18n/dictionaries/settings-dialog.pl.js +4 -0
  71. package/dist/features/i18n/dictionaries/settings-dialog.pt-BR.js +4 -0
  72. package/dist/features/i18n/dictionaries/settings-dialog.ru.js +4 -0
  73. package/dist/features/i18n/dictionaries/settings-dialog.th.js +4 -0
  74. package/dist/features/i18n/dictionaries/settings-dialog.tr.js +4 -0
  75. package/dist/features/i18n/dictionaries/settings-dialog.uk.js +4 -0
  76. package/dist/features/i18n/dictionaries/settings-dialog.ur.js +4 -0
  77. package/dist/features/i18n/dictionaries/settings-dialog.zh-CN.js +4 -0
  78. package/dist/features/i18n/dictionaries/settings-dialog.zh-TW.js +4 -0
  79. package/dist/features/interactive-ui/providers/shadcn/button.d.ts +1 -1
  80. package/dist/features/mcp-ui/escape.js +2 -6
  81. package/dist/features/mcp-ui/surfaces/bridge.js +4 -2
  82. package/dist/features/mcp-ui/surfaces/document.d.ts +11 -4
  83. package/dist/features/mcp-ui/surfaces/document.js +25 -3
  84. package/dist/features/mcp-ui/surfaces/outcome.js +1 -1
  85. package/dist/features/media-providers/constants.d.ts +0 -7
  86. package/dist/features/media-providers/constants.js +7 -15
  87. package/dist/features/media-providers/react/components/MediaProvidersTab.js +3 -2
  88. package/dist/features/media-providers/react/hooks/useMediaProvidersTab.js +6 -3
  89. package/dist/features/memory/dependencies.d.ts +2 -0
  90. package/dist/features/memory/dependencies.js +9 -25
  91. package/dist/features/memory/index.d.ts +1 -0
  92. package/dist/features/memory/index.js +1 -0
  93. package/dist/features/memory/react/MemoryPorts.d.ts +17 -0
  94. package/dist/features/memory/react/MemoryPorts.js +15 -0
  95. package/dist/features/memory/react/hooks/useMemoryConfig.hooks.d.ts +2 -2
  96. package/dist/features/memory/react/hooks/useMemoryConfig.hooks.js +7 -7
  97. package/dist/features/memory/react/hooks/useMemoryConnectors.hooks.d.ts +2 -3
  98. package/dist/features/memory/react/hooks/useMemoryConnectors.hooks.js +4 -5
  99. package/dist/features/memory/react/hooks/useMemoryEntries.hooks.d.ts +2 -3
  100. package/dist/features/memory/react/hooks/useMemoryEntries.hooks.js +4 -5
  101. package/dist/features/memory/react/hooks/useMemoryExtractions.hooks.js +2 -2
  102. package/dist/features/panel-kit/fetch-query/adapter.react.d.ts +2 -2
  103. package/dist/features/panel-kit/fetch-query/adapter.react.js +2 -2
  104. package/dist/features/panel-kit/fetch-query/adapter.tanstack.d.ts +1 -1
  105. package/dist/features/panel-kit/fetch-query/adapter.tanstack.js +35 -13
  106. package/dist/features/panel-kit/fetch-query/binding.react.d.ts +1 -1
  107. package/dist/features/panel-kit/fetch-query/environment.browser.d.ts +1 -1
  108. package/dist/features/panel-kit/fetch-query/index.d.ts +4 -2
  109. package/dist/features/panel-kit/fetch-query/tanstack.d.ts +4 -2
  110. package/dist/features/panel-kit/helpers/standing-draft-recovery-message.d.ts +3 -1
  111. package/dist/features/panel-kit/helpers/standing-draft-recovery-message.js +9 -2
  112. package/dist/features/settings/dialog/styles/settings-dialog.css +169 -21
  113. package/dist/features/tabbed-dialog/styles/tabbed-dialog.css +91 -0
  114. package/dist/react/components/RemixIcon.d.ts +1 -41
  115. package/dist/react/components/RemixIcon.js +3 -176
  116. package/dist/react/components/RemixIcon.stylesheet.d.ts +84 -0
  117. package/dist/react/components/RemixIcon.stylesheet.js +208 -0
  118. package/dist/react/components/remixicon-font-recovery.d.ts +55 -0
  119. package/dist/react/components/remixicon-font-recovery.js +110 -0
  120. package/dist/styles/admin.css +8 -2
  121. package/package.json +12 -7
  122. package/dist/features/panel-kit/fetch-query/cache.d.ts +0 -125
  123. package/dist/features/panel-kit/fetch-query/cache.js +0 -232
  124. package/dist/features/panel-kit/fetch-query/types.d.ts +0 -93
  125. package/dist/features/panel-kit/fetch-query/types.js +0 -2
@@ -1,232 +0,0 @@
1
- /**
2
- * Ten seconds covers reading, closing and reopening a record or bouncing between screens
3
- * without paying for another identical request. Five seconds was too short for that read
4
- * cycle; thirty seconds exposed more other-operator staleness than the conservative initial
5
- * shared default should allow. There is no default polling/focus refresh, so this bounds
6
- * the extra exposure on a quick revisit. Write invalidation bypasses freshness; reads that
7
- * must be fresh on every mount can choose staleTime: 0 without lowering every query default.
8
- */
9
- export const DEFAULT_STALE_TIME = 10_000;
10
- /** Minimum time an unobserved entry is kept; both adapters retain max(this, staleTime). */
11
- export const IDLE_RETENTION = 5 * 60_000;
12
- const browserScheduler = {
13
- schedule: ({ callback, delayMs }) => setTimeout(callback, delayMs),
14
- cancel: ({ handle }) => clearTimeout(handle),
15
- };
16
- // Normalize unknown promise rejections once so consumers receive Error without repeating
17
- // the same narrowing boilerplate at every read and write call site.
18
- export function toQueryError(value) {
19
- return value instanceof Error ? value : new Error(typeof value === 'string' && value.trim() ? value : 'request failed');
20
- }
21
- /** One provider-owned cache. Requests are shared by structural primitive keys.
22
- * Failed reads retain earlier data; replacement writes supersede older requests.
23
- * Idle entries live for at least five minutes or their declared freshness period. */
24
- export class FetchQueryCache {
25
- entries = new Map();
26
- disposed = false;
27
- clock;
28
- scheduler;
29
- environment;
30
- online;
31
- onlineWaiters = new Set();
32
- releaseEnvironment;
33
- constructor(_required = {}, { clock = { nowMs: () => Date.now() }, scheduler = browserScheduler, environment } = {}) {
34
- this.clock = clock;
35
- this.scheduler = scheduler;
36
- this.environment = environment;
37
- this.online = environment?.isOnline() ?? true;
38
- }
39
- entry({ key }, { staleTime = DEFAULT_STALE_TIME } = {}) {
40
- const hash = JSON.stringify(key);
41
- let entry = this.entries.get(hash);
42
- if (!entry) {
43
- entry = {
44
- key: [...key], state: { data: undefined, error: null, status: 'pending', isFetching: false },
45
- updatedAt: 0, invalidated: false, replacement: 0, pending: undefined,
46
- refreshAfterPending: false, listeners: new Set(), observers: new Set(),
47
- retention: IDLE_RETENTION, eviction: undefined,
48
- };
49
- this.entries.set(hash, entry);
50
- }
51
- // An imperative load has no standing observer: idle eviction must not drop a value
52
- // earlier than its declared freshness and unexpectedly force another network request.
53
- entry.retention = Math.max(entry.retention, staleTime);
54
- return entry;
55
- }
56
- fresh({ entry, staleTime }) {
57
- return entry.state.data !== undefined && !entry.invalidated && this.clock.nowMs() - entry.updatedAt < staleTime;
58
- }
59
- subscribe({ entry, listener }) {
60
- this.cancelEviction(entry);
61
- entry.listeners.add(listener);
62
- return () => { entry.listeners.delete(listener); this.scheduleEviction(entry); };
63
- }
64
- observe({ entry, observer }) {
65
- entry.observers.add(observer);
66
- return () => { entry.observers.delete(observer); this.scheduleEviction(entry); };
67
- }
68
- /** Cache hits respect freshness; explicit refreshes restart background reads.
69
- * Initial reads still deduplicate because no earlier successful data exists to refresh. */
70
- load({ entry, fetch, staleTime }, { force = false } = {}) {
71
- this.cancelEviction(entry);
72
- if (entry.pending && (!force || entry.state.data === undefined))
73
- return entry.pending;
74
- if (!force && this.fresh({ entry: entry, staleTime: staleTime })) {
75
- this.scheduleEviction(entry);
76
- return Promise.resolve(entry.state.data);
77
- }
78
- // Shared per key across loader instances: a replacement while this request is out
79
- // must win over its older answer, not just protect the instance that issued the write.
80
- const replacement = entry.replacement;
81
- const run = () => {
82
- // A queued offline refresh may have been superseded before reconnection.
83
- if (entry.pending !== pending)
84
- return (entry.pending ?? Promise.resolve(entry.state.data));
85
- this.publish(entry, { ...entry.state, isFetching: true });
86
- return fetch();
87
- };
88
- const pending = Promise.resolve().then(() => {
89
- if (this.online)
90
- return run();
91
- this.publish(entry, { ...entry.state, isFetching: false });
92
- return this.runOnline({ run });
93
- }).then(value => {
94
- const data = replacement === entry.replacement ? value : entry.state.data;
95
- // Undefined is never successful query data, including an initial or background read.
96
- if (data === undefined)
97
- throw new Error(`${JSON.stringify(entry.key)} data is undefined`);
98
- return data;
99
- }).then(data => {
100
- // Only the current request may publish or clear invalidation. An older transport
101
- // need not support abort: its callers follow the replacement request instead.
102
- if (entry.pending !== pending)
103
- return (entry.pending ?? entry.state.data);
104
- entry.updatedAt = this.clock.nowMs();
105
- entry.invalidated = false;
106
- this.publish(entry, { data, error: null, status: 'success', isFetching: false });
107
- return data;
108
- }, error => {
109
- if (entry.pending !== pending)
110
- return (entry.pending ?? entry.state.data);
111
- // A replacement write is newer than this read's failure as well as its data.
112
- // Keep the write's timestamp and freshness; only settle the obsolete fetch flag.
113
- if (replacement !== entry.replacement) {
114
- this.publish(entry, { ...entry.state, isFetching: false });
115
- return entry.state.data;
116
- }
117
- entry.invalidated = true;
118
- this.publish(entry, { ...entry.state, error: toQueryError(error), status: 'error', isFetching: false });
119
- throw error;
120
- }).finally(() => {
121
- if (entry.pending !== pending)
122
- return;
123
- entry.pending = undefined;
124
- if (entry.refreshAfterPending) {
125
- entry.refreshAfterPending = false;
126
- this.refresh(entry);
127
- }
128
- this.scheduleEviction(entry);
129
- });
130
- entry.pending = pending;
131
- // Mark handled even when a UI caller deliberately discards the promise.
132
- void pending.catch(() => { });
133
- // Like TanStack's background refetches, retain the last error until success clears it
134
- // or another failure replaces it. Extend that rule to retries without cached data:
135
- // starting a request is not evidence of recovery; isFetching reports its progress.
136
- const state = entry.state.data === undefined ? { ...entry.state, status: 'pending' } : entry.state;
137
- this.publish(entry, { ...state, isFetching: this.online });
138
- return pending;
139
- }
140
- replace({ entry, data }) {
141
- entry.replacement += 1;
142
- entry.updatedAt = this.clock.nowMs();
143
- entry.invalidated = false;
144
- this.publish(entry, { data, error: null, status: 'success', isFetching: entry.state.isFetching });
145
- this.scheduleEviction(entry);
146
- }
147
- invalidate({ prefix }) {
148
- for (const entry of this.entries.values()) {
149
- if (!prefix.every((part, index) => entry.key[index] === part))
150
- continue;
151
- entry.invalidated = true;
152
- this.refresh(entry);
153
- }
154
- }
155
- onFocus() {
156
- for (const entry of this.entries.values()) {
157
- const observer = [...entry.observers].find(value => value.focus && !this.fresh({ entry: entry, staleTime: value.staleTime }));
158
- // Environmental refreshes share a request already underway, unlike an explicit gesture.
159
- if (observer && !entry.pending)
160
- void this.load({ entry: entry, fetch: observer.fetch, staleTime: observer.staleTime });
161
- }
162
- }
163
- /** Execute a read/write once connectivity returns; failures are not retried.
164
- * @param required.run Operation to invoke online.
165
- * @returns The operation's original result or rejection. */
166
- runOnline({ run }) {
167
- if (this.online)
168
- return Promise.resolve().then(() => {
169
- // Connectivity may change between queuing the operation and its invocation.
170
- if (!this.online)
171
- return this.runOnline({ run });
172
- return run();
173
- });
174
- return new Promise(resolve => { this.onlineWaiters.add(resolve); }).then(() => this.runOnline({ run }));
175
- }
176
- /** Stop timers on provider disposal; reactivate for React's effect replay. */
177
- activate() {
178
- this.disposed = false;
179
- if (!this.environment || this.releaseEnvironment)
180
- return;
181
- const releaseOnline = this.environment.subscribeOnline({ listener: online => this.onOnline({ online }) });
182
- const releaseFocus = this.environment.subscribeFocus({ listener: () => this.onFocus() });
183
- this.releaseEnvironment = () => { releaseOnline(); releaseFocus(); };
184
- this.onOnline({ online: this.environment.isOnline() });
185
- }
186
- dispose() {
187
- this.disposed = true;
188
- this.releaseEnvironment?.();
189
- this.releaseEnvironment = undefined;
190
- for (const entry of this.entries.values())
191
- this.cancelEviction(entry);
192
- }
193
- onOnline({ online }) {
194
- const reconnect = online && !this.online;
195
- this.online = online;
196
- if (!online)
197
- return;
198
- for (const resume of this.onlineWaiters)
199
- resume();
200
- this.onlineWaiters.clear();
201
- if (!reconnect)
202
- return;
203
- for (const entry of this.entries.values()) {
204
- const observer = [...entry.observers].find(value => !this.fresh({ entry, staleTime: value.staleTime }));
205
- // A paused request already owns its resumption; restarting it here would double-fetch.
206
- if (observer && !entry.pending)
207
- void this.load({ entry, fetch: observer.fetch, staleTime: observer.staleTime });
208
- }
209
- }
210
- refresh(entry) {
211
- const observer = entry.observers.values().next().value;
212
- if (observer)
213
- void this.load({ entry: entry, fetch: observer.fetch, staleTime: observer.staleTime }, { force: true });
214
- }
215
- publish(entry, state) {
216
- entry.state = state;
217
- for (const listener of entry.listeners)
218
- listener();
219
- }
220
- cancelEviction(entry) {
221
- if (entry.eviction !== undefined)
222
- this.scheduler.cancel({ handle: entry.eviction });
223
- entry.eviction = undefined;
224
- }
225
- scheduleEviction(entry) {
226
- this.cancelEviction(entry);
227
- if (this.disposed || entry.listeners.size || entry.observers.size || entry.pending || !Number.isFinite(entry.retention))
228
- return;
229
- entry.eviction = this.scheduler.schedule({ callback: () => this.entries.delete(JSON.stringify(entry.key)), delayMs: entry.retention });
230
- }
231
- }
232
- //# sourceMappingURL=cache.js.map
@@ -1,93 +0,0 @@
1
- /**
2
- * Keep the contract independent of any query library so an adapter swap does not require
3
- * rewriting callers. Add narrow required capabilities here rather than exporting library
4
- * result/client types that would bypass this boundary.
5
- */
6
- /**
7
- * Keys contain primitive array parts so parameterised resources compose without fragile
8
- * string formatting or object-identity mismatches. Invalidation matches by PREFIX: a list
9
- * key also refreshes its derived child keys. Exact-key equality would compile while quietly
10
- * breaking that guarantee; avoid a shared prefix for resources that merely sound related,
11
- * or writes will fan out unnecessary refetches.
12
- * Stay primitive-only: the built-in cache matches each part with === while TanStack deep-matches,
13
- * so an object part would invalidate under one adapter and silently not under the other.
14
- */
15
- export type QueryKey = readonly (string | number)[];
16
- export type QueryStatus = "loading" | "success" | "error";
17
- export interface QueryResult<T> {
18
- data: T | undefined;
19
- error: Error | null;
20
- status: QueryStatus;
21
- isFetching: boolean;
22
- refetch: () => void;
23
- }
24
- export interface FetchQueryOptions<T> {
25
- key: QueryKey;
26
- fetch: () => Promise<T>;
27
- /**
28
- * Gate on user intent or prerequisites to avoid fetching an undefined id. Disabling does
29
- * not erase cached failures: without any successful data, report loading/error:null so
30
- * a gesture-gated read cannot show an old failure before the user asks for it. With
31
- * earlier data, report success but retain a later background error so known-stale data
32
- * need not be presented as an unqualified success.
33
- */
34
- enabled?: boolean;
35
- staleTime?: number;
36
- refetchOnWindowFocus?: boolean;
37
- }
38
- export type MutationStatus = "idle" | "pending" | "success" | "error";
39
- export interface MutationResult<TInput, TOutput> {
40
- /**
41
- * Awaiting the write receives its result or rejection; discarding the same promise and
42
- * reading state is safe because it already has a rejection handler. Returning a bare
43
- * rejecting promise would make only the awaiting form safe. Node unhandledRejection
44
- * can verify this contract even where a DOM unhandledrejection event does not fire.
45
- */
46
- mutate: (required: {
47
- input: TInput;
48
- }) => Promise<TOutput>;
49
- status: MutationStatus;
50
- error: Error | null;
51
- reset: () => void;
52
- }
53
- export interface FetchMutationOptions<TInput, TOutput> {
54
- run: (required: {
55
- input: TInput;
56
- }) => Promise<TOutput>;
57
- invalidates?: readonly QueryKey[];
58
- }
59
- /**
60
- * Keep key and fetch references stable: they are memo dependencies of the loader handle.
61
- * Failed fetches reject and are not cached, so the next load retries instead of replaying
62
- * a failure as data. Retain an idle value at least as long as its declared freshness: an
63
- * imperative loader has no persistent observer to keep it alive.
64
- */
65
- export interface CachedLoaderOptions<T> {
66
- key: QueryKey;
67
- fetch: () => Promise<T>;
68
- staleTime?: number;
69
- }
70
- /**
71
- * A plain promise loader serves components that own their loading UI rather than consuming
72
- * a hook result. It shares the provider cache, including one in-flight request per key.
73
- */
74
- export interface CachedLoader<T> {
75
- peek: () => T | undefined;
76
- load: () => Promise<T>;
77
- replace: (required: {
78
- value: T;
79
- }) => void;
80
- }
81
- /**
82
- * Keep the provider-facing hooks, loader and invalidator behind one binding so replacing
83
- * the cache implementation does not leave different consumers on different adapters.
84
- */
85
- export interface FetchQueryAdapter {
86
- useFetchQuery: <T>(required: Pick<FetchQueryOptions<T>, "key" | "fetch">, optional?: Omit<FetchQueryOptions<T>, "key" | "fetch">) => QueryResult<T>;
87
- useFetchMutation: <TInput, TOutput>(required: Pick<FetchMutationOptions<TInput, TOutput>, "run">, optional?: Omit<FetchMutationOptions<TInput, TOutput>, "run">) => MutationResult<TInput, TOutput>;
88
- useInvalidate: () => (required: {
89
- key: QueryKey;
90
- }) => void;
91
- useCachedLoader: <T>(required: Pick<CachedLoaderOptions<T>, "key" | "fetch">, optional?: Omit<CachedLoaderOptions<T>, "key" | "fetch">) => CachedLoader<T>;
92
- }
93
- //# sourceMappingURL=types.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map