@devframes/plugin-messages 0.8.1 → 0.9.0-beta.1

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/README.md CHANGED
@@ -17,10 +17,9 @@ feed through `@devframes/hub`'s `listSince` delta API.
17
17
  ## Mount into a hub
18
18
 
19
19
  ```ts
20
- import { mountDevframe } from '@devframes/hub/node'
21
20
  import messagesDevframe from '@devframes/plugin-messages'
22
21
 
23
- await mountDevframe(hubContext, messagesDevframe)
22
+ await hubContext.install(messagesDevframe)
24
23
  ```
25
24
 
26
25
  The hub's `ctx.messages` host feeds the panel live — every
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as messagesDevframe } from "./src-CK5vCiOd.mjs";
1
+ import { n as messagesDevframe } from "./src-CgymJ59a.mjs";
2
2
  import { createCac } from "devframe/adapters/cac";
3
3
  //#region src/cli.ts
4
4
  /**
@@ -1,13 +1,13 @@
1
1
  import { MESSAGES_UPDATED_EVENT } from "../constants.mjs";
2
2
  import { DevframeRpcClient, DevframeRpcClient as DevframeRpcClient$1, DevframeRpcClientOptions } from "devframe/client";
3
3
  import { DevframeMessageEntry, DevframeMessageEntry as DevframeMessageEntry$1, DevframeMessageEntryFrom, DevframeMessageEntryInput, DevframeMessageLevel, DevframeMessagesListDelta } from "@devframes/hub/types";
4
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/dist/shared.d.ts
4
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.41/node_modules/@vue/shared/dist/shared.d.ts
5
5
  type Prettify<T> = { [K in keyof T]: T[K]; } & {};
6
6
  type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
7
7
  type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P]; };
8
8
  type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
9
9
  //#endregion
10
- //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.40/node_modules/@vue/reactivity/dist/reactivity.d.ts
10
+ //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.41/node_modules/@vue/reactivity/dist/reactivity.d.ts
11
11
  declare enum TrackOpTypes {
12
12
  GET = "get",
13
13
  HAS = "has",
@@ -116,7 +116,7 @@ type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCl
116
116
  type OnCleanup = (cleanupFn: () => void) => void;
117
117
  type WatchStopHandle = () => void;
118
118
  //#endregion
119
- //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.40/node_modules/@vue/runtime-core/dist/runtime-core.d.ts
119
+ //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.41/node_modules/@vue/runtime-core/dist/runtime-core.d.ts
120
120
  type Slot<T extends any = any> = (...args: IfAny<T, any[], [T] | (T extends undefined ? [] : never)>) => VNode[];
121
121
  type InternalSlots = {
122
122
  [name: string]: Slot | undefined;
@@ -397,17 +397,17 @@ type DefineModelDefault<T> = InferDefault<Data, T>;
397
397
  * const count = defineModel<number>('count', { default: 0 })
398
398
  * ```
399
399
  */
400
- declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options: ({
400
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options: DefineModelRuntimeOptions<T, G, S> & ({
401
401
  default: DefineModelDefault<T>;
402
402
  } | {
403
403
  required: true;
404
- }) & DefineModelRuntimeOptions<T, G, S>): ModelRef<T, M, G, S>;
404
+ })): ModelRef<T, M, G, S>;
405
405
  declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options?: DefineModelRuntimeOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
406
- declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options: ({
406
+ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options: DefineModelRuntimeOptions<T, G, S> & ({
407
407
  default: DefineModelDefault<T>;
408
408
  } | {
409
409
  required: true;
410
- }) & DefineModelRuntimeOptions<T, G, S>): ModelRef<T, M, G, S>;
410
+ })): ModelRef<T, M, G, S>;
411
411
  declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options?: DefineModelRuntimeOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
412
412
  type NotUndefined<T> = T extends undefined ? never : T;
413
413
  type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P]; };
@@ -21438,7 +21438,7 @@ declare namespace DataType {
21438
21438
  type VisualBox = "border-box" | "content-box" | "padding-box";
21439
21439
  }
21440
21440
  //#endregion
21441
- //#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.40/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts
21441
+ //#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.41/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts
21442
21442
  declare const TRANSITION = "transition";
21443
21443
  declare const ANIMATION = "animation";
21444
21444
  type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
@@ -21482,8 +21482,10 @@ declare const keyNames: Record<'esc' | 'space' | 'up' | 'left' | 'right' | 'down
21482
21482
  type VOnDirective = Directive<any, any, VOnModifiers>;
21483
21483
  type AssignerFn = (value: any) => void;
21484
21484
  declare const assignKey: unique symbol;
21485
+ declare const initialValueKey: unique symbol;
21485
21486
  type ModelDirective<T, Modifiers extends string = string> = ObjectDirective<T & {
21486
21487
  [assignKey]: AssignerFn;
21488
+ [initialValueKey]?: string;
21487
21489
  _assigning?: boolean;
21488
21490
  }, any, Modifiers>;
21489
21491
  declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement, 'trim' | 'number' | 'lazy'>;