@lunora/vue 1.0.0-alpha.182 → 1.0.0-alpha.184
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
|
@@ -44,12 +44,12 @@ declare const AuthLoading: Component;
|
|
|
44
44
|
* session expiry, an RLS denial). Without it such an error is dropped and the
|
|
45
45
|
* ref keeps rendering the SSR snapshot as if it were live.
|
|
46
46
|
*
|
|
47
|
-
* The
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
47
|
+
* The preloaded value was read for whoever was signed in when the page loaded.
|
|
48
|
+
* After a sign-out or user switch retires that identity
|
|
49
|
+
* (`client.identityEpoch() > 0`), every `hydratePreloaded` on the client (mounted
|
|
50
|
+
* then or later) stops using it and holds `undefined` until the live value
|
|
51
|
+
* arrives — matching `@lunora/react`'s `usePreloadedQuery`. The ref is typed
|
|
52
|
+
* `Ref<T>` like every other adapter's return, so guard for that window.
|
|
53
53
|
*/
|
|
54
54
|
declare const hydratePreloaded: <T>(preloaded: Preloaded<T>, options?: {
|
|
55
55
|
onError?: SubscriptionErrorCallback;
|
package/dist/index.d.ts
CHANGED
|
@@ -44,12 +44,12 @@ declare const AuthLoading: Component;
|
|
|
44
44
|
* session expiry, an RLS denial). Without it such an error is dropped and the
|
|
45
45
|
* ref keeps rendering the SSR snapshot as if it were live.
|
|
46
46
|
*
|
|
47
|
-
* The
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
47
|
+
* The preloaded value was read for whoever was signed in when the page loaded.
|
|
48
|
+
* After a sign-out or user switch retires that identity
|
|
49
|
+
* (`client.identityEpoch() > 0`), every `hydratePreloaded` on the client (mounted
|
|
50
|
+
* then or later) stops using it and holds `undefined` until the live value
|
|
51
|
+
* arrives — matching `@lunora/react`'s `usePreloadedQuery`. The ref is typed
|
|
52
|
+
* `Ref<T>` like every other adapter's return, so guard for that window.
|
|
53
53
|
*/
|
|
54
54
|
declare const hydratePreloaded: <T>(preloaded: Preloaded<T>, options?: {
|
|
55
55
|
onError?: SubscriptionErrorCallback;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AuthLoading as r,Authenticated as t,Unauthenticated as u}from"./packem_shared/AuthLoading-ZXVgXos1.mjs";import{hydratePreloaded as a}from"./packem_shared/hydratePreloaded-
|
|
1
|
+
import{AuthLoading as r,Authenticated as t,Unauthenticated as u}from"./packem_shared/AuthLoading-ZXVgXos1.mjs";import{hydratePreloaded as a}from"./packem_shared/hydratePreloaded-Cza7HmsG.mjs";import{LUNORA_INJECTION_KEY as f,createLunora as m,provideLunora as p,useLunora as x}from"./packem_shared/LUNORA_INJECTION_KEY-Bct9tKCj.mjs";import{useAction as A}from"./packem_shared/useAction-C4VLsh4M.mjs";import{useAgent as d}from"./packem_shared/useAgent-BGmeFHNJ.mjs";import{useAgentChat as h}from"./packem_shared/useAgentChat-DbQR4_7F.mjs";import{useAgentState as l}from"./packem_shared/useAgentState-BJ6wJKcJ.mjs";import{useAgentToolEvents as Q}from"./packem_shared/useAgentToolEvents-Co1SkNFx.mjs";import{useAuth as b}from"./packem_shared/useAuth-QDllAwZL.mjs";import{default as E}from"./packem_shared/useConnectionStatus-CCUbKnj2.mjs";import{useFlag as N,useFlags as P}from"./packem_shared/useFlag-xVfWC_c6.mjs";import{useMutation as v}from"./packem_shared/useMutation-D6PkaNaE.mjs";import{useMutator as M}from"./packem_shared/useMutator-CO7nXlRf.mjs";import{useInfiniteQuery as R,usePaginatedQuery as U}from"./packem_shared/useInfiniteQuery-buEj7Q2V.mjs";import{usePresence as J}from"./packem_shared/usePresence-CQ8zOCOI.mjs";import{subscribeToQuery as V,useQuery as Y}from"./packem_shared/subscribeToQuery-CFDi1S_4.mjs";import{useRateLimit as k}from"./packem_shared/useRateLimit-zoPsflSG.mjs";import{useStream as w}from"./packem_shared/useStream-COVzNdKq.mjs";import{useSubscription as B}from"./packem_shared/useSubscription-BCcPS1Ye.mjs";import{useVoiceAgent as G}from"./packem_shared/useVoiceAgent-BEGHhbmX.mjs";export{r as AuthLoading,t as Authenticated,f as LUNORA_INJECTION_KEY,u as Unauthenticated,m as createLunora,a as hydratePreloaded,p as provideLunora,V as subscribeToQuery,A as useAction,d as useAgent,h as useAgentChat,l as useAgentState,Q as useAgentToolEvents,b as useAuth,E as useConnectionStatus,N as useFlag,P as useFlags,R as useInfiniteQuery,x as useLunora,v as useMutation,M as useMutator,U as usePaginatedQuery,J as usePresence,Y as useQuery,k as useRateLimit,w as useStream,B as useSubscription,G as useVoiceAgent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as c}from"./is-browser-BEdfLJHK.mjs";import{useLunora as f}from"./LUNORA_INJECTION_KEY-Bct9tKCj.mjs";import{o as u}from"./scope-dispose-Mq3k4nvP.mjs";import{subscribeToQuery as d}from"./subscribeToQuery-CFDi1S_4.mjs";const v=(e,n={})=>{const o=f(),{args:t,functionPath:i,shardKey:s,value:a}=e,r=d(o,{__lunoraRef:i},t,{onError:n.onError,seed:o.identityEpoch()===0?a:void 0,shardKey:s});return c()&&u(o.onIdentityChange(()=>{r.value=void 0})),r};export{v as hydratePreloaded};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/vue",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.184",
|
|
4
4
|
"description": "Vue adapter for Lunora — live composables, optimistic mutations, and reactive loaders",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@lunora/client": "1.0.0-alpha.
|
|
57
|
+
"@lunora/client": "1.0.0-alpha.149",
|
|
58
58
|
"@lunora/errors": "1.0.0-alpha.44",
|
|
59
59
|
"@lunora/ratelimit": "1.0.0-alpha.86",
|
|
60
60
|
"@visulima/storage-client": "1.0.3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useLunora as u}from"./LUNORA_INJECTION_KEY-Bct9tKCj.mjs";import{subscribeToQuery as a}from"./subscribeToQuery-CFDi1S_4.mjs";const l=(r,e={})=>{const o=u(),{args:n,functionPath:t,shardKey:c,value:s}=r;return a(o,{__lunoraRef:t},n,{onError:e.onError,seed:s,shardKey:c})};export{l as hydratePreloaded};
|