@vireo-ai/trellis-ui 0.1.21 → 0.1.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vireo-ai/trellis-ui",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "description": "Django-native UI toolkit for building realtime and interactive web apps.",
6
6
  "license": "MIT",
@@ -5,6 +5,7 @@ type StreamPatchPayload = {
5
5
  target?: string | null;
6
6
  selector?: string | null;
7
7
  mode?: PatchMode | null;
8
+ requestId?: string | null;
8
9
  viewTransition?: boolean;
9
10
  };
10
11
  type StreamEventPayload = {
@@ -38,7 +39,7 @@ type StreamLifecycle = {
38
39
  };
39
40
  type MorphOptions = {
40
41
  key?(el: HTMLElement): string | null;
41
- updating?(from: Node, to: Node): void;
42
+ updating?(from: Node, to: Node, childrenOnly?: () => void, skip?: () => void, skipChildren?: () => void, skipUntil?: (predicate: (node: Node) => boolean) => void): void;
42
43
  updated?(from: Node, to: Node): void;
43
44
  };
44
45
  type StreamAlpine = Pick<Alpine.Alpine, 'initTree'> & Partial<Pick<Alpine.Alpine, 'findClosest'>> & {
@@ -55,6 +56,7 @@ declare const streamUrl: (url: string, scopes?: string, client?: string) => stri
55
56
  declare const connectStream: (AlpineInstance: StreamAlpine, url: string, scopes?: string, client?: string, lifecycle?: StreamLifecycle) => StreamController;
56
57
  declare const registerStream: (AlpineInstance: Alpine.Alpine) => void;
57
58
  declare const setEffectRequestFilter: (filter: ((requestId: string | null) => boolean) | null) => void;
59
+ declare const setMorphExclusionFilter: (filter: ((requestId: string | null, element: Element) => boolean) | null) => void;
58
60
  declare const setLocationEffectHandler: (handler: ((payload: LocationPayload) => boolean) | null) => void;
59
- export { applyUiEffect, applyUiEffects, applyStreamPatch, applyStreamPatchNow, applyStreamPatches, applySseFrame, connectStream, dispatchStreamEvent, registerStream, setEffectRequestFilter, setLocationEffectHandler, streamUrl, };
61
+ export { applyUiEffect, applyUiEffects, applyStreamPatch, applyStreamPatchNow, applyStreamPatches, applySseFrame, connectStream, dispatchStreamEvent, registerStream, setEffectRequestFilter, setMorphExclusionFilter, setLocationEffectHandler, streamUrl, };
60
62
  export type { LocationPayload, PatchMode, SseFrame, StreamAlpine, StreamEventPayload, StreamPatchPayload, UiEffectPayload };