@v1nt1248/3nclient-lib 0.0.11 → 0.0.13

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.
@@ -21,4 +21,6 @@ import Ui3nMenu from './ui3n-menu.vue';
21
21
  import type { Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots } from './ui3n-menu.vue';
22
22
  import Ui3nList from './ui3n-list.vue';
23
23
  import type { Ui3nListProps, Ui3nListEmits, Ui3nListSlots } from './ui3n-list.vue';
24
- export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableProps, Ui3nTableEmits, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, Ui3nDialogEvent, Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots, Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots, };
24
+ import Ui3nVirtualScroll from './ui3n-virtual-scroll.vue';
25
+ import type { Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots } from './ui3n-virtual-scroll.vue';
26
+ export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableProps, Ui3nTableEmits, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, Ui3nDialogEvent, Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots, Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots, Ui3nVirtualScroll, Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots, };
@@ -0,0 +1,34 @@
1
+ export interface Ui3nVirtualScrollProps<T> {
2
+ items: T[];
3
+ minChildHeight: number;
4
+ renderAhread?: number;
5
+ }
6
+ export interface Ui3nVirtualScrollSlots<T> {
7
+ item: (item: T, index: number) => any;
8
+ }
9
+ declare const _default: <T extends {
10
+ id?: string | undefined;
11
+ }>(__VLS_props: Ui3nVirtualScrollProps<T> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
12
+ props: Ui3nVirtualScrollProps<T>;
13
+ expose(exposed: {}): void;
14
+ attrs: any;
15
+ slots: Ui3nVirtualScrollSlots<T>;
16
+ emit: any;
17
+ }, "slots" | "emit" | "attrs"> | undefined, __VLS_setup?: Promise<{
18
+ props: Ui3nVirtualScrollProps<T>;
19
+ expose(exposed: {}): void;
20
+ attrs: any;
21
+ slots: Ui3nVirtualScrollSlots<T>;
22
+ emit: any;
23
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
+ [key: string]: any;
25
+ }> & {
26
+ __ctx?: {
27
+ props: Ui3nVirtualScrollProps<T>;
28
+ expose(exposed: {}): void;
29
+ attrs: any;
30
+ slots: Ui3nVirtualScrollSlots<T>;
31
+ emit: any;
32
+ } | undefined;
33
+ };
34
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export * from './ipc-service'
2
+ export * from './ipc-service-caller'
3
+ export * from './serialization-for-ipc/json-n-binary'
4
+ export * from './sqlite-on-3nstorage/index'
@@ -0,0 +1,4 @@
1
+ export * from './ipc-service'
2
+ export * from './ipc-service-caller'
3
+ export * from './serialization-for-ipc/json-n-binary'
4
+ export * from './sqlite-on-3nstorage/index'
@@ -0,0 +1,13 @@
1
+ /// <reference path="../@types/platform-defs/w3n.d.ts" />
2
+ declare type RPCConnection = web3n.rpc.client.RPCConnection;
3
+ declare type PassedDatum = web3n.rpc.PassedDatum;
4
+ export interface TransformOpts {
5
+ unpackReply?: ((reply: PassedDatum | undefined) => any) | 'noop';
6
+ packRequest?: ((args: any[]) => PassedDatum | undefined) | 'noop';
7
+ }
8
+ export declare function makeReqRepMethodCaller<F extends Function>(connection: RPCConnection, method: string, transforms?: TransformOpts): F;
9
+ export declare function makeObservableMethodCaller<F extends Function>(connection: RPCConnection, method: string, transforms?: TransformOpts): F;
10
+ export declare function makeServiceCaller<T>(connection: RPCConnection, reqRepMethods?: (keyof T)[], obsMethods?: (keyof T)[], transforms?: {
11
+ [method in keyof T]: TransformOpts;
12
+ }): Partial<T>;
13
+ export {};