@devframes/plugin-messages 0.6.0-beta.2 → 0.6.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/cli.mjs +1 -1
- package/dist/client/index.d.mts +14 -12
- package/dist/client/index.mjs +1109 -1095
- package/dist/index.mjs +1 -1
- package/dist/rpc/index.d.mts +28 -31
- package/dist/spa/assets/{index-LJ-gjktr.css → index-BQ3k60Sq.css} +1 -1
- package/dist/spa/assets/index-C-Jmi6G6.js +2 -0
- package/dist/spa/index.html +2 -2
- package/dist/{src-xDr8xGSp.mjs → src-Ddlymret.mjs} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +14 -14
- package/dist/spa/assets/index-Bw3UENMO.js +0 -2
package/dist/cli.mjs
CHANGED
package/dist/client/index.d.mts
CHANGED
|
@@ -2,13 +2,13 @@ import { MESSAGES_UPDATED_EVENT } from "../constants.mjs";
|
|
|
2
2
|
import { DevframeMessageEntry, DevframeMessageEntryFrom, DevframeMessageEntryInput, DevframeMessageLevel, DevframeMessagesListDelta } from "../types.mjs";
|
|
3
3
|
import { DevframeRpcClient, DevframeRpcClient as DevframeRpcClient$1, DevframeRpcClientOptions } from "devframe/client";
|
|
4
4
|
|
|
5
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
5
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.39/node_modules/@vue/shared/dist/shared.d.ts
|
|
6
6
|
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
7
7
|
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
|
|
8
8
|
type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P] };
|
|
9
9
|
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.
|
|
11
|
+
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.39/node_modules/@vue/reactivity/dist/reactivity.d.ts
|
|
12
12
|
declare enum TrackOpTypes {
|
|
13
13
|
GET = "get",
|
|
14
14
|
HAS = "has",
|
|
@@ -117,7 +117,7 @@ type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCl
|
|
|
117
117
|
type OnCleanup = (cleanupFn: () => void) => void;
|
|
118
118
|
type WatchStopHandle = () => void;
|
|
119
119
|
//#endregion
|
|
120
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.
|
|
120
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.39/node_modules/@vue/runtime-core/dist/runtime-core.d.ts
|
|
121
121
|
type Slot<T extends any = any> = (...args: IfAny<T, any[], [T] | (T extends undefined ? [] : never)>) => VNode[];
|
|
122
122
|
type InternalSlots = {
|
|
123
123
|
[name: string]: Slot | undefined;
|
|
@@ -363,6 +363,8 @@ type DefineModelOptions<T = any, G = T, S = T> = {
|
|
|
363
363
|
get?: (v: T) => G;
|
|
364
364
|
set?: (v: S) => any;
|
|
365
365
|
};
|
|
366
|
+
type DefineModelRuntimeOptions<T, G, S> = Omit<PropOptions<T>, 'default'> & DefineModelOptions<T, G, S>;
|
|
367
|
+
type DefineModelDefault<T> = InferDefault<Data, T>;
|
|
366
368
|
/**
|
|
367
369
|
* Vue `<script setup>` compiler macro for declaring a
|
|
368
370
|
* two-way binding prop that can be consumed via `v-model` from the parent
|
|
@@ -397,17 +399,17 @@ type DefineModelOptions<T = any, G = T, S = T> = {
|
|
|
397
399
|
* ```
|
|
398
400
|
*/
|
|
399
401
|
declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options: ({
|
|
400
|
-
default:
|
|
402
|
+
default: DefineModelDefault<T>;
|
|
401
403
|
} | {
|
|
402
404
|
required: true;
|
|
403
|
-
}) &
|
|
404
|
-
declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options?:
|
|
405
|
+
}) & DefineModelRuntimeOptions<T, G, S>): ModelRef<T, M, G, S>;
|
|
406
|
+
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>;
|
|
405
407
|
declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options: ({
|
|
406
|
-
default:
|
|
408
|
+
default: DefineModelDefault<T>;
|
|
407
409
|
} | {
|
|
408
410
|
required: true;
|
|
409
|
-
}) &
|
|
410
|
-
declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options?:
|
|
411
|
+
}) & DefineModelRuntimeOptions<T, G, S>): ModelRef<T, M, G, S>;
|
|
412
|
+
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>;
|
|
411
413
|
type NotUndefined<T> = T extends undefined ? never : T;
|
|
412
414
|
type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P] };
|
|
413
415
|
type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]> };
|
|
@@ -435,9 +437,9 @@ type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof
|
|
|
435
437
|
* @see {@link https://vuejs.org/guide/typescript/composition-api.html#typing-component-props}
|
|
436
438
|
*/
|
|
437
439
|
declare function withDefaults<T, BKeys extends keyof T, Defaults extends InferDefaults<T>>(props: DefineProps<T, BKeys>, defaults: Defaults): PropsWithDefaults<T, Defaults, BKeys>;
|
|
438
|
-
type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
440
|
+
type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null | any[]>;
|
|
439
441
|
type EmitsOptions = ObjectEmitsOptions | string[];
|
|
440
|
-
type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? { [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any } : T extends ObjectEmitsOptions ? { [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends ((...args: infer P) => any) ? P : T[K] extends null ? any[] : never) => any } : {};
|
|
442
|
+
type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? { [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any } : T extends ObjectEmitsOptions ? { [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends ((...args: infer P) => any) ? P : T[K] extends null ? any[] : T[K] extends any[] ? T[K] : never) => any } : {};
|
|
441
443
|
type ShortEmitsToObject<E> = E extends Record<string, any[]> ? { [K in keyof E]: (...args: E[K]) => any } : E;
|
|
442
444
|
type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [key in Event]: Options[key] extends ((...args: infer Args) => any) ? (event: key, ...args: Args) => void : Options[key] extends any[] ? (event: key, ...args: Options[key]) => void : (event: key, ...args: any[]) => void }[Event]>;
|
|
443
445
|
/**
|
|
@@ -21477,7 +21479,7 @@ declare namespace DataType {
|
|
|
21477
21479
|
type VisualBox = "border-box" | "content-box" | "padding-box";
|
|
21478
21480
|
}
|
|
21479
21481
|
//#endregion
|
|
21480
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.
|
|
21482
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.39/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts
|
|
21481
21483
|
declare const TRANSITION = "transition";
|
|
21482
21484
|
declare const ANIMATION = "animation";
|
|
21483
21485
|
type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
|