@get-bb/plugin-sdk 0.6.132 → 0.6.133
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.
|
@@ -617,7 +617,6 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
617
617
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
618
618
|
threadContextCard: "threadContextCard";
|
|
619
619
|
threadRowMetadata: "threadRowMetadata";
|
|
620
|
-
timelinePush: "timelinePush";
|
|
621
620
|
updateWhenIdle: "updateWhenIdle";
|
|
622
621
|
}>, z$1.ZodBoolean>;
|
|
623
622
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
@@ -632,7 +631,6 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
632
631
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
633
632
|
threadContextCard: "threadContextCard";
|
|
634
633
|
threadRowMetadata: "threadRowMetadata";
|
|
635
|
-
timelinePush: "timelinePush";
|
|
636
634
|
updateWhenIdle: "updateWhenIdle";
|
|
637
635
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
638
636
|
type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
|
|
@@ -10527,7 +10525,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10527
10525
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
10528
10526
|
threadContextCard: "threadContextCard";
|
|
10529
10527
|
threadRowMetadata: "threadRowMetadata";
|
|
10530
|
-
timelinePush: "timelinePush";
|
|
10531
10528
|
updateWhenIdle: "updateWhenIdle";
|
|
10532
10529
|
}>, z$1.ZodBoolean>;
|
|
10533
10530
|
featureFlags: z$1.ZodObject<{
|
|
@@ -506,11 +506,17 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
506
506
|
}
|
|
507
507
|
/** Host-originated inputs a slot test can drive deterministically. */
|
|
508
508
|
interface RenderedSlotBehaviorDrivers {
|
|
509
|
+
/**
|
|
510
|
+
* Invalidate the plugin's cached `useRpc` reads carrying any of `tags`, as a
|
|
511
|
+
* backend `bb.rpc.experimental_invalidate` does, wrapped in act. `null`
|
|
512
|
+
* invalidates every read, like `experimental_invalidateAll`. `pluginId`
|
|
513
|
+
* defaults to the rendered plugin.
|
|
514
|
+
*/
|
|
515
|
+
experimental_invalidateRpc(tags: readonly string[] | null, pluginId?: string): Promise<void>;
|
|
509
516
|
/**
|
|
510
517
|
* Push a realtime event to `useRealtime(channel, …)` subscribers, wrapped
|
|
511
518
|
* in act. The payload is JSON-round-tripped like `bb.realtime.publish`.
|
|
512
519
|
*/
|
|
513
|
-
experimental_invalidateRpc(tags: readonly string[] | null, pluginId?: string): Promise<void>;
|
|
514
520
|
emitRealtime(channel: string, payload: unknown): Promise<void>;
|
|
515
521
|
/** Drive the lifecycle of the same connection used by realtime events. */
|
|
516
522
|
setRealtimeConnectionState(state: PluginRealtimeConnectionState): Promise<void>;
|
|
@@ -1270,9 +1270,17 @@ interface FakePluginInspectionState {
|
|
|
1270
1270
|
readonly pluginId: string;
|
|
1271
1271
|
/** Every `bb.log` line, in order. */
|
|
1272
1272
|
readonly logEntries: FakeLogEntry[];
|
|
1273
|
-
/**
|
|
1273
|
+
/**
|
|
1274
|
+
* Call `listener` on every `bb.rpc.experimental_invalidate` and
|
|
1275
|
+
* `experimental_invalidateAll`; returns the unsubscribe function.
|
|
1276
|
+
*/
|
|
1274
1277
|
experimental_onRpcInvalidation(listener: () => void): () => void;
|
|
1278
|
+
/**
|
|
1279
|
+
* The tags of every `bb.rpc.experimental_invalidate`, in order; `null`
|
|
1280
|
+
* records an `experimental_invalidateAll`.
|
|
1281
|
+
*/
|
|
1275
1282
|
readonly experimental_rpcInvalidations: (readonly string[] | null)[];
|
|
1283
|
+
/** Every `bb.realtime.publish`, payload normalized like the wire. */
|
|
1276
1284
|
readonly realtimeSignals: FakeRealtimeSignal[];
|
|
1277
1285
|
/** Every `bb.status.needsConfiguration` message, in order. */
|
|
1278
1286
|
readonly needsConfigurationMessages: string[];
|
|
@@ -708,7 +708,6 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
708
708
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
709
709
|
threadContextCard: "threadContextCard";
|
|
710
710
|
threadRowMetadata: "threadRowMetadata";
|
|
711
|
-
timelinePush: "timelinePush";
|
|
712
711
|
updateWhenIdle: "updateWhenIdle";
|
|
713
712
|
}>, z$1.ZodBoolean>;
|
|
714
713
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
@@ -723,7 +722,6 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
723
722
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
724
723
|
threadContextCard: "threadContextCard";
|
|
725
724
|
threadRowMetadata: "threadRowMetadata";
|
|
726
|
-
timelinePush: "timelinePush";
|
|
727
725
|
updateWhenIdle: "updateWhenIdle";
|
|
728
726
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
729
727
|
type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
|
|
@@ -10742,7 +10740,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10742
10740
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
10743
10741
|
threadContextCard: "threadContextCard";
|
|
10744
10742
|
threadRowMetadata: "threadRowMetadata";
|
|
10745
|
-
timelinePush: "timelinePush";
|
|
10746
10743
|
updateWhenIdle: "updateWhenIdle";
|
|
10747
10744
|
}>, z$1.ZodBoolean>;
|
|
10748
10745
|
featureFlags: z$1.ZodObject<{
|