@italone/solace 0.0.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/dist/devtools.cjs +8 -0
- package/dist/devtools.d.ts +54 -0
- package/dist/devtools.js +1 -0
- package/dist/h-B1loyNPC.js +53 -0
- package/dist/h-CSqpvOof.cjs +56 -0
- package/dist/index-CkECgTuy.js +91 -0
- package/dist/index-rtpmWox-.cjs +96 -0
- package/dist/index.cjs +1414 -0
- package/dist/index.d.ts +115 -0
- package/dist/index.js +1394 -0
- package/dist/jsx-dev-runtime.cjs +13 -0
- package/dist/jsx-dev-runtime.d.ts +7 -0
- package/dist/jsx-dev-runtime.js +9 -0
- package/dist/jsx-runtime.cjs +40 -0
- package/dist/jsx-runtime.d.ts +24 -0
- package/dist/jsx-runtime.js +37 -0
- package/dist/vnode-zJOgBYFm.d.ts +43 -0
- package/docs/api.md +302 -0
- package/docs/architecture.md +80 -0
- package/docs/devtools.md +145 -0
- package/docs/examples.md +78 -0
- package/docs/package-usage.md +96 -0
- package/docs/performance.md +230 -0
- package/docs/release.md +67 -0
- package/package.json +87 -0
- package/readme.md +632 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { C as ComponentType, V as VNode, a as VNodeProps, b as VNodeChildren, F as Fragment, c as ComponentVNodeChildren, d as VNodeType, e as ComponentRender, f as ComponentSetupContext } from './vnode-zJOgBYFm.js';
|
|
2
|
+
export { g as ComponentProps, E as EmitFn, h as FragmentType, S as Slot, i as SlotProps, j as Slots, k as VNodeChild, l as VNodeSlots } from './vnode-zJOgBYFm.js';
|
|
3
|
+
|
|
4
|
+
interface ComputedRef<T> {
|
|
5
|
+
readonly value: T;
|
|
6
|
+
}
|
|
7
|
+
declare function computed<T>(getter: () => T): ComputedRef<T>;
|
|
8
|
+
|
|
9
|
+
type ProvideKey = string | symbol;
|
|
10
|
+
type Provides = Map<ProvideKey, unknown>;
|
|
11
|
+
declare function provide<T>(key: ProvideKey, value: T): void;
|
|
12
|
+
declare function inject<T>(key: ProvideKey): T | undefined;
|
|
13
|
+
declare function inject<T>(key: ProvideKey, defaultValue: T): T;
|
|
14
|
+
|
|
15
|
+
declare function effect<T>(fn: () => T): () => T;
|
|
16
|
+
|
|
17
|
+
type LifecycleHook = () => void;
|
|
18
|
+
declare function onMounted(hook: LifecycleHook): void;
|
|
19
|
+
declare function onUpdated(hook: LifecycleHook): void;
|
|
20
|
+
declare function onUnmounted(hook: LifecycleHook): void;
|
|
21
|
+
|
|
22
|
+
type PluginInstall = (app: App, ...options: unknown[]) => void;
|
|
23
|
+
interface PluginObject {
|
|
24
|
+
install: PluginInstall;
|
|
25
|
+
}
|
|
26
|
+
type Plugin = PluginInstall | PluginObject;
|
|
27
|
+
interface App {
|
|
28
|
+
mount(container: Element): void;
|
|
29
|
+
provide<T>(key: ProvideKey, value: T): App;
|
|
30
|
+
use(plugin: Plugin, ...options: unknown[]): App;
|
|
31
|
+
}
|
|
32
|
+
declare function createApp(rootComponent: ComponentType | VNode): App;
|
|
33
|
+
|
|
34
|
+
declare function reactive<T extends object>(target: T): T;
|
|
35
|
+
|
|
36
|
+
interface Ref<T> {
|
|
37
|
+
value: T;
|
|
38
|
+
}
|
|
39
|
+
declare function ref<T>(value: T): Ref<T>;
|
|
40
|
+
|
|
41
|
+
type WatchSource<T> = () => T;
|
|
42
|
+
type WatchCallback<T> = (newValue: T, oldValue: T) => void;
|
|
43
|
+
type WatchEffect = () => void;
|
|
44
|
+
type WatchStopHandle = () => void;
|
|
45
|
+
declare function watch<T>(source: WatchSource<T>, callback: WatchCallback<T>): WatchStopHandle;
|
|
46
|
+
declare function watchEffect(effect: WatchEffect): WatchStopHandle;
|
|
47
|
+
|
|
48
|
+
declare function nextTick<T = void>(callback?: () => T): Promise<T | void>;
|
|
49
|
+
|
|
50
|
+
type RenderSource = VNode | (() => VNode);
|
|
51
|
+
declare function render(source: RenderSource, container: Element, appProvides?: Provides | null): void;
|
|
52
|
+
|
|
53
|
+
declare function h(type: string, props?: VNodeProps | null, children?: VNodeChildren): VNode;
|
|
54
|
+
declare function h(type: typeof Fragment, props?: VNodeProps | null, children?: VNodeChildren): VNode;
|
|
55
|
+
declare function h<Props extends object>(type: ComponentType<Props>, props?: Props | null, children?: ComponentVNodeChildren): VNode;
|
|
56
|
+
declare function h(type: VNodeType, props?: VNodeProps | null, children?: ComponentVNodeChildren): VNode;
|
|
57
|
+
|
|
58
|
+
type AsyncComponentLoader<Props extends object> = () => Promise<ComponentType<Props>>;
|
|
59
|
+
interface AsyncComponentOptions<Props extends object> {
|
|
60
|
+
loader: AsyncComponentLoader<Props>;
|
|
61
|
+
loadingComponent?: ComponentType<Props>;
|
|
62
|
+
errorComponent?: ComponentType<Props>;
|
|
63
|
+
delay?: number;
|
|
64
|
+
timeout?: number;
|
|
65
|
+
retry?: number;
|
|
66
|
+
retryDelay?: number;
|
|
67
|
+
}
|
|
68
|
+
type AsyncComponentSource<Props extends object> = AsyncComponentLoader<Props> | AsyncComponentOptions<Props>;
|
|
69
|
+
declare function defineAsyncComponent<Props extends object>(source: AsyncComponentSource<Props>): ComponentType<Props>;
|
|
70
|
+
|
|
71
|
+
declare function defineComponent<Props extends object, Result extends ComponentRender | VNode>(component: (props: Props, context: ComponentSetupContext) => Result): (props: Props, context: ComponentSetupContext) => Result;
|
|
72
|
+
|
|
73
|
+
type StateFactory<State extends object> = () => State;
|
|
74
|
+
type ActionTree<State extends object, GetterValues extends Record<string, unknown>> = Record<string, (context: StoreContext<State, GetterValues>, ...args: never[]) => unknown>;
|
|
75
|
+
interface StoreGetterContext<State extends object> {
|
|
76
|
+
state: State;
|
|
77
|
+
}
|
|
78
|
+
type StoreGetters<State extends object, GetterValues extends Record<string, unknown>> = {
|
|
79
|
+
[Key in keyof GetterValues]: (context: StoreGetterContext<State>) => GetterValues[Key];
|
|
80
|
+
};
|
|
81
|
+
type StoreActionsInput<State extends object, GetterValues extends Record<string, unknown>> = ActionTree<State, GetterValues>;
|
|
82
|
+
type StoreActionMethods<Actions> = {
|
|
83
|
+
[Key in keyof Actions]: Actions[Key] extends (context: never, ...args: infer Args) => infer Result ? (...args: Args) => Result : never;
|
|
84
|
+
};
|
|
85
|
+
interface StoreContext<State extends object, GetterValues extends Record<string, unknown> = Record<string, never>> {
|
|
86
|
+
state: State;
|
|
87
|
+
getters: Readonly<GetterValues>;
|
|
88
|
+
}
|
|
89
|
+
interface Store<State extends object, GetterValues extends Record<string, unknown> = Record<string, never>, Actions extends ActionTree<State, GetterValues> = Record<string, never>> extends StoreContext<State, GetterValues> {
|
|
90
|
+
actions: StoreActionMethods<Actions>;
|
|
91
|
+
}
|
|
92
|
+
interface StoreOptions<State extends object, GetterValues extends Record<string, unknown> = Record<string, never>, Actions extends ActionTree<State, GetterValues> = Record<string, never>> {
|
|
93
|
+
state: StateFactory<State>;
|
|
94
|
+
getters?: StoreGetters<State, GetterValues>;
|
|
95
|
+
actions?: Actions & StoreActionsInput<State, GetterValues>;
|
|
96
|
+
}
|
|
97
|
+
declare function createStore<State extends object>(options: {
|
|
98
|
+
state: StateFactory<State>;
|
|
99
|
+
}): Store<State>;
|
|
100
|
+
declare function createStore<State extends object, GetterValues extends Record<string, unknown>>(options: {
|
|
101
|
+
state: StateFactory<State>;
|
|
102
|
+
getters: StoreGetters<State, GetterValues>;
|
|
103
|
+
}): Store<State, GetterValues>;
|
|
104
|
+
declare function createStore<State extends object, Actions extends ActionTree<State, Record<string, never>>>(options: {
|
|
105
|
+
state: StateFactory<State>;
|
|
106
|
+
actions: Actions & StoreActionsInput<State, Record<string, never>>;
|
|
107
|
+
}): Store<State, Record<string, never>, Actions>;
|
|
108
|
+
declare function createStore<State extends object, GetterValues extends Record<string, unknown>, Actions extends ActionTree<State, GetterValues>>(options: {
|
|
109
|
+
state: StateFactory<State>;
|
|
110
|
+
getters: StoreGetters<State, GetterValues>;
|
|
111
|
+
actions: Actions & StoreActionsInput<State, GetterValues>;
|
|
112
|
+
}): Store<State, GetterValues, Actions>;
|
|
113
|
+
|
|
114
|
+
export { ComponentRender, ComponentSetupContext, ComponentType, ComponentVNodeChildren, Fragment, VNode, VNodeChildren, VNodeProps, VNodeType, computed, createApp, createStore, defineAsyncComponent, defineComponent, effect, h, inject, nextTick, onMounted, onUnmounted, onUpdated, provide, reactive, ref, render, watch, watchEffect };
|
|
115
|
+
export type { App, AsyncComponentLoader, AsyncComponentOptions, AsyncComponentSource, Plugin, PluginInstall, PluginObject, Store, StoreActionsInput, StoreContext, StoreGetterContext, StoreGetters, StoreOptions };
|