@almadar/ui 6.8.0 → 6.10.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/{EntityBindingContext-Bn3ePJQC.d.cts → EntityBindingContext-Y4zXyNJZ.d.cts} +14 -2
- package/dist/{EntityBindingContext-Bn3ePJQC.d.ts → EntityBindingContext-Y4zXyNJZ.d.ts} +14 -2
- package/dist/avl/index.cjs +531 -48
- package/dist/avl/index.js +531 -48
- package/dist/{cn-sgpqpN0U.d.ts → cn-C7fvp9gH.d.ts} +37 -10
- package/dist/{cn-CCjFspAo.d.cts → cn-DnLYahyL.d.cts} +37 -10
- package/dist/components/index.cjs +557 -47
- package/dist/components/index.d.cts +6 -4
- package/dist/components/index.d.ts +6 -4
- package/dist/components/index.js +556 -48
- package/dist/hooks/index.cjs +30 -1
- package/dist/hooks/index.d.cts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +29 -2
- package/dist/lib/drawable/three/index.cjs +21 -2
- package/dist/lib/drawable/three/index.js +21 -2
- package/dist/lib/index.cjs +238 -9
- package/dist/lib/index.d.cts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +234 -10
- package/dist/marketing/index.cjs +12 -3
- package/dist/marketing/index.js +12 -3
- package/dist/providers/index.cjs +556 -56
- package/dist/providers/index.d.cts +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +556 -56
- package/dist/runtime/index.cjs +545 -52
- package/dist/runtime/index.d.cts +13 -6
- package/dist/runtime/index.d.ts +13 -6
- package/dist/runtime/index.js +545 -52
- package/dist/{useKeyboardRouter-D84cNWmA.d.ts → useKeyboardRouter-B1pIi9jo.d.ts} +11 -1
- package/dist/{useKeyboardRouter-DQEE_9mq.d.cts → useKeyboardRouter-CVn8lfiX.d.cts} +11 -1
- package/package.json +3 -3
|
@@ -175,6 +175,12 @@ interface ServerBridgeTransport {
|
|
|
175
175
|
*/
|
|
176
176
|
sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string, tick?: string, sourceTrait?: string) => Promise<OrbitalEventResponse>;
|
|
177
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Supplies the bearer token the hosting server authenticates with. Resolved
|
|
180
|
+
* per request (tokens expire); `undefined` sends the request unauthenticated
|
|
181
|
+
* (dev servers with an auth bypass, standalone playground).
|
|
182
|
+
*/
|
|
183
|
+
type AccessTokenProvider = () => Promise<string | undefined>;
|
|
178
184
|
/**
|
|
179
185
|
* Access the server bridge. Returns a no-op stub when outside the provider.
|
|
180
186
|
*/
|
|
@@ -189,9 +195,15 @@ interface ServerBridgeProviderProps {
|
|
|
189
195
|
* directly). Mutually exclusive with `serverUrl`.
|
|
190
196
|
*/
|
|
191
197
|
transport?: ServerBridgeTransport;
|
|
198
|
+
/**
|
|
199
|
+
* Bearer token for the HTTP transport (`Authorization` on every fetch;
|
|
200
|
+
* `access_token` on the SSE URL, since EventSource cannot set headers).
|
|
201
|
+
* Ignored with a custom `transport`.
|
|
202
|
+
*/
|
|
203
|
+
getAccessToken?: AccessTokenProvider;
|
|
192
204
|
children: ReactNode;
|
|
193
205
|
}
|
|
194
|
-
declare function ServerBridgeProvider({ schema, serverUrl, transport: customTransport, children, }: ServerBridgeProviderProps): React.JSX.Element;
|
|
206
|
+
declare function ServerBridgeProvider({ schema, serverUrl, transport: customTransport, getAccessToken, children, }: ServerBridgeProviderProps): React.JSX.Element;
|
|
195
207
|
|
|
196
208
|
/**
|
|
197
209
|
* TraitProvider Component
|
|
@@ -272,4 +284,4 @@ declare function useEntityBindingSnapshot(traitName: string | undefined): {
|
|
|
272
284
|
state: string;
|
|
273
285
|
};
|
|
274
286
|
|
|
275
|
-
export { EntityBindingContext as E, type SendEventResult as S, TraitContext as T, type EntityBindingSource as a, type EntitySchemaContextValue as b, EntitySchemaProvider as c, type EntitySchemaProviderProps as d, type ServerBridgeContextValue as e, ServerBridgeProvider as f, type ServerBridgeProviderProps as g, type ServerBridgeTransport as h, type ServerClientEffect as i, type ServerResponseMeta as j, type TraitContextValue as k, type TraitInstance as l, TraitProvider as m, type TraitProviderProps as n, useEntitySchema as o, useEntitySchemaOptional as p, useServerBridge as q, useTrait as r, useTraitContext as s, useEntityBindingSnapshot as u };
|
|
287
|
+
export { type AccessTokenProvider as A, EntityBindingContext as E, type SendEventResult as S, TraitContext as T, type EntityBindingSource as a, type EntitySchemaContextValue as b, EntitySchemaProvider as c, type EntitySchemaProviderProps as d, type ServerBridgeContextValue as e, ServerBridgeProvider as f, type ServerBridgeProviderProps as g, type ServerBridgeTransport as h, type ServerClientEffect as i, type ServerResponseMeta as j, type TraitContextValue as k, type TraitInstance as l, TraitProvider as m, type TraitProviderProps as n, useEntitySchema as o, useEntitySchemaOptional as p, useServerBridge as q, useTrait as r, useTraitContext as s, useEntityBindingSnapshot as u };
|
|
@@ -175,6 +175,12 @@ interface ServerBridgeTransport {
|
|
|
175
175
|
*/
|
|
176
176
|
sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string, tick?: string, sourceTrait?: string) => Promise<OrbitalEventResponse>;
|
|
177
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Supplies the bearer token the hosting server authenticates with. Resolved
|
|
180
|
+
* per request (tokens expire); `undefined` sends the request unauthenticated
|
|
181
|
+
* (dev servers with an auth bypass, standalone playground).
|
|
182
|
+
*/
|
|
183
|
+
type AccessTokenProvider = () => Promise<string | undefined>;
|
|
178
184
|
/**
|
|
179
185
|
* Access the server bridge. Returns a no-op stub when outside the provider.
|
|
180
186
|
*/
|
|
@@ -189,9 +195,15 @@ interface ServerBridgeProviderProps {
|
|
|
189
195
|
* directly). Mutually exclusive with `serverUrl`.
|
|
190
196
|
*/
|
|
191
197
|
transport?: ServerBridgeTransport;
|
|
198
|
+
/**
|
|
199
|
+
* Bearer token for the HTTP transport (`Authorization` on every fetch;
|
|
200
|
+
* `access_token` on the SSE URL, since EventSource cannot set headers).
|
|
201
|
+
* Ignored with a custom `transport`.
|
|
202
|
+
*/
|
|
203
|
+
getAccessToken?: AccessTokenProvider;
|
|
192
204
|
children: ReactNode;
|
|
193
205
|
}
|
|
194
|
-
declare function ServerBridgeProvider({ schema, serverUrl, transport: customTransport, children, }: ServerBridgeProviderProps): React.JSX.Element;
|
|
206
|
+
declare function ServerBridgeProvider({ schema, serverUrl, transport: customTransport, getAccessToken, children, }: ServerBridgeProviderProps): React.JSX.Element;
|
|
195
207
|
|
|
196
208
|
/**
|
|
197
209
|
* TraitProvider Component
|
|
@@ -272,4 +284,4 @@ declare function useEntityBindingSnapshot(traitName: string | undefined): {
|
|
|
272
284
|
state: string;
|
|
273
285
|
};
|
|
274
286
|
|
|
275
|
-
export { EntityBindingContext as E, type SendEventResult as S, TraitContext as T, type EntityBindingSource as a, type EntitySchemaContextValue as b, EntitySchemaProvider as c, type EntitySchemaProviderProps as d, type ServerBridgeContextValue as e, ServerBridgeProvider as f, type ServerBridgeProviderProps as g, type ServerBridgeTransport as h, type ServerClientEffect as i, type ServerResponseMeta as j, type TraitContextValue as k, type TraitInstance as l, TraitProvider as m, type TraitProviderProps as n, useEntitySchema as o, useEntitySchemaOptional as p, useServerBridge as q, useTrait as r, useTraitContext as s, useEntityBindingSnapshot as u };
|
|
287
|
+
export { type AccessTokenProvider as A, EntityBindingContext as E, type SendEventResult as S, TraitContext as T, type EntityBindingSource as a, type EntitySchemaContextValue as b, EntitySchemaProvider as c, type EntitySchemaProviderProps as d, type ServerBridgeContextValue as e, ServerBridgeProvider as f, type ServerBridgeProviderProps as g, type ServerBridgeTransport as h, type ServerClientEffect as i, type ServerResponseMeta as j, type TraitContextValue as k, type TraitInstance as l, TraitProvider as m, type TraitProviderProps as n, useEntitySchema as o, useEntitySchemaOptional as p, useServerBridge as q, useTrait as r, useTraitContext as s, useEntityBindingSnapshot as u };
|