steel-frame 5.1.15 → 5.1.16
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/fake-types/index.d.ts +14 -13
- package/package.json +1 -1
package/fake-types/index.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export declare function Slot<Props extends object>(
|
|
|
84
84
|
options: {
|
|
85
85
|
model?: (props: Props) => void;
|
|
86
86
|
slot?: () => void;
|
|
87
|
+
"vasille:slot"?: VasilleSlot;
|
|
87
88
|
} & Props,
|
|
88
89
|
): void;
|
|
89
90
|
|
|
@@ -152,9 +153,9 @@ export declare function model<Input extends object, Return extends object>(
|
|
|
152
153
|
export { QueryParams, ScreenProps, RouteParameters } from "vasille-router";
|
|
153
154
|
export { type Router, NavigationMode } from "vasille-router/web-router";
|
|
154
155
|
|
|
155
|
-
/** Applies the value to theme `name` */
|
|
156
|
+
/** Applies the value to the theme `name` */
|
|
156
157
|
export declare function theme<T>(name: string, value: T): T;
|
|
157
|
-
/** Applies the value to dark theme */
|
|
158
|
+
/** Applies the value to the dark theme */
|
|
158
159
|
export declare function dark<T>($: T): T;
|
|
159
160
|
/** Applies the value to mobile devices */
|
|
160
161
|
export declare function mobile<T>($: T): T;
|
|
@@ -162,9 +163,9 @@ export declare function mobile<T>($: T): T;
|
|
|
162
163
|
export declare function tablet<T>($: T): T;
|
|
163
164
|
/** Applies the value to laptop devices */
|
|
164
165
|
export declare function laptop<T>($: T): T;
|
|
165
|
-
/** Applies the value when user prefers dark theme */
|
|
166
|
+
/** Applies the value when the user prefers the dark theme */
|
|
166
167
|
export declare function prefersDark<T>($: T): T;
|
|
167
|
-
/** Applies the value when user prefers light theme */
|
|
168
|
+
/** Applies the value when the user prefers the light theme */
|
|
168
169
|
export declare function prefersLight<T>($: T): T;
|
|
169
170
|
|
|
170
171
|
export { setMobileMaxWidth, setTabletMaxWidth, setLaptopMaxWidth } from "vasille-css";
|
|
@@ -183,7 +184,7 @@ export declare const styleSheet: <
|
|
|
183
184
|
input: T,
|
|
184
185
|
) => { [K in keyof T]: string };
|
|
185
186
|
|
|
186
|
-
/** Mounts a Vasille.JS component to page */
|
|
187
|
+
/** Mounts a Vasille.JS component to a page */
|
|
187
188
|
export declare function mount<T>(element: Element, component: ($: T) => void, $: T): App<Node, Element, TagOptions>;
|
|
188
189
|
|
|
189
190
|
interface RouterInitialization<Routes extends string> {
|
|
@@ -206,15 +207,15 @@ export declare function routerApp<Routes extends string>(
|
|
|
206
207
|
element?: Element,
|
|
207
208
|
): App<Node, Element, TagOptions>;
|
|
208
209
|
|
|
209
|
-
/** Run a function before component mount */
|
|
210
|
+
/** Run a function before the component mount */
|
|
210
211
|
export declare function beforeMount(fn: () => void): void;
|
|
211
212
|
export declare function beforeMount(fn: () => Promise<void>): void;
|
|
212
213
|
|
|
213
|
-
/** Run a function after component mount */
|
|
214
|
+
/** Run a function after the component mount */
|
|
214
215
|
export declare function afterMount(fn: () => void): void;
|
|
215
216
|
export declare function afterMount(fn: () => Promise<void>): void;
|
|
216
217
|
|
|
217
|
-
/** Run a function before component
|
|
218
|
+
/** Run a function before the component destruction */
|
|
218
219
|
export declare function beforeDestroy(fn: () => void): void;
|
|
219
220
|
|
|
220
221
|
/** Returns the current used router */
|
|
@@ -244,25 +245,25 @@ export declare function context<Value, Args extends unknown[] = never[]>(
|
|
|
244
245
|
fn: (...args: Args) => Value,
|
|
245
246
|
): SteelContext<Args, Value>;
|
|
246
247
|
|
|
247
|
-
/** Share
|
|
248
|
+
/** Share a context to children components */
|
|
248
249
|
export declare function share<Args extends unknown[], Value>(ctx: SteelContext<Args, Value>, ...args: Args): Value;
|
|
249
250
|
|
|
250
251
|
/** Share a dependency */
|
|
251
252
|
export declare function share<Class>(className: abstract new (...args: unknown[]) => Class, value: Class): Class;
|
|
252
253
|
|
|
253
|
-
/** Share a
|
|
254
|
+
/** Share a setting */
|
|
254
255
|
export declare function share(key: string, value: string): string;
|
|
255
256
|
|
|
256
|
-
/** Receive
|
|
257
|
+
/** Receive a shared context */
|
|
257
258
|
export declare function receive<Args extends unknown[], Value>(ctx: SteelContext<Args, Value>): Value;
|
|
258
259
|
|
|
259
260
|
/** Receive a dependency */
|
|
260
261
|
export declare function receive<Class>(className: abstract new (...args: unknown[]) => Class): Class;
|
|
261
262
|
|
|
262
|
-
/** Receive a
|
|
263
|
+
/** Receive a setting */
|
|
263
264
|
export declare function receive(key: string): string;
|
|
264
265
|
|
|
265
|
-
/** Create and share
|
|
266
|
+
/** Create and share a context when it is missing */
|
|
266
267
|
export declare function impute<Args extends unknown[], Value>(ctx: SteelContext<Args, Value>, ...args: Args): Value;
|
|
267
268
|
|
|
268
269
|
/** Ensure a dependency presence in context */
|