@manyducks.co/dolla 2.0.0-alpha.0 → 2.0.0-alpha.10
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 +196 -473
- package/dist/index.d.ts +9 -30
- package/dist/index.js +764 -624
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.d.ts +1 -1
- package/dist/jsx-dev-runtime.js +2 -2
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +2 -2
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/markup.d.ts +44 -24
- package/dist/modules/dolla.d.ts +42 -18
- package/dist/modules/i18n.d.ts +83 -0
- package/dist/modules/router.d.ts +9 -10
- package/dist/nodes/cond.d.ts +9 -10
- package/dist/nodes/html.d.ts +14 -10
- package/dist/nodes/observer.d.ts +9 -10
- package/dist/nodes/outlet.d.ts +10 -11
- package/dist/nodes/portal.d.ts +6 -7
- package/dist/nodes/repeat.d.ts +15 -16
- package/dist/nodes/text.d.ts +8 -9
- package/dist/passthrough-9kwwjgWk.js +1279 -0
- package/dist/passthrough-9kwwjgWk.js.map +1 -0
- package/dist/state.d.ts +101 -0
- package/dist/types.d.ts +12 -12
- package/dist/utils.d.ts +3 -3
- package/dist/view.d.ts +28 -7
- package/dist/views/default-crash-view.d.ts +18 -0
- package/dist/views/passthrough.d.ts +5 -0
- package/notes/context-vars.md +21 -0
- package/notes/readme-scratch.md +222 -0
- package/notes/route-middleware.md +42 -0
- package/notes/scratch.md +42 -5
- package/package.json +9 -12
- package/tests/{signals.test.js → state.test.js} +6 -6
- package/vite.config.js +1 -0
- package/dist/fragment-s33qZBzz.js +0 -1241
- package/dist/fragment-s33qZBzz.js.map +0 -1
- package/dist/modules/language.d.ts +0 -41
- package/dist/signals.d.ts +0 -101
- package/dist/views/default-crash-page.d.ts +0 -8
- package/dist/views/default-view.d.ts +0 -2
- package/dist/views/fragment.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,36 +1,16 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
1
|
+
export { createSettableState, createSetter, createState, derive, toSettableState, toState, valueOf } from "./state.js";
|
|
2
|
+
export type { MaybeState, SettableState, State, StopFunction } from "./state.js";
|
|
3
|
+
export { cond, createMarkup, createRef, html, isRef, portal, repeat } from "./markup.js";
|
|
4
|
+
export type { Markup, MarkupNode, Ref } from "./markup.js";
|
|
3
5
|
import { Dolla } from "./modules/dolla.js";
|
|
4
|
-
export type { Environment } from "./modules/dolla.js";
|
|
5
6
|
declare const dolla: Dolla;
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
export
|
|
9
|
-
export declare const onUnmount: (callback: () => void) => void;
|
|
10
|
-
export declare const mount: {
|
|
11
|
-
(selector: string, view?: import("./view.js").ViewFunction<any> | undefined): Promise<void>;
|
|
12
|
-
(element: HTMLElement, view?: import("./view.js").ViewFunction<any> | undefined): Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
export declare const unmount: () => Promise<void>;
|
|
15
|
-
export declare const http: import("./modules/http.js").HTTP;
|
|
7
|
+
export default dolla;
|
|
8
|
+
export declare const t: (key: string, values?: Record<string, import("./types.js").Stringable | import("./state.js").State<import("./types.js").Stringable>>) => import("./state.js").State<string>;
|
|
9
|
+
export type { Dolla, Environment, Logger, LoggerErrorContext, LoggerOptions, Loggles } from "./modules/dolla.js";
|
|
16
10
|
export type { HTTPRequest, HTTPResponse } from "./modules/http.js";
|
|
17
|
-
export declare const render: import("./modules/render.js").Render;
|
|
18
|
-
export declare const createLogger: (name: string | import("./signals.js").Signal<string>, options?: import("./modules/dolla.js").LoggerOptions | undefined) => import("./modules/dolla.js").Logger;
|
|
19
|
-
export declare const setLogFilter: (filter: string | RegExp) => void;
|
|
20
|
-
export declare const setLogges: (options: Partial<import("./modules/dolla.js").Loggles>) => void;
|
|
21
|
-
export declare const t: (key: string, values?: Record<string, import("./types.js").Stringable | import("./signals.js").Signal<import("./types.js").Stringable>> | undefined) => import("./signals.js").Signal<string>;
|
|
22
|
-
import * as router from "./modules/router.js";
|
|
23
|
-
export { router };
|
|
24
|
-
import { createRef, isRef } from "./markup.js";
|
|
25
|
-
export { type Ref, createMarkup as m, cond, repeat, portal } from "./markup.js";
|
|
26
|
-
export { createRef, isRef };
|
|
27
|
-
export type { DOMHandle } from "./markup.js";
|
|
28
|
-
export type { ViewFunction } from "./view.js";
|
|
29
|
-
export { Fragment } from "./views/fragment.js";
|
|
30
|
-
export declare const constructView: <P>(view: import("./view.js").ViewFunction<P>, props: P, children?: import("./markup.js").Markup[]) => import("./markup.js").DOMHandle;
|
|
31
|
-
export type { ViewContext } from "./view.js";
|
|
32
|
-
export type { Markup } from "./markup.js";
|
|
33
11
|
export type { InputType, Renderable } from "./types.js";
|
|
12
|
+
export type { ViewContext, ViewFunction, ViewNode } from "./view.js";
|
|
13
|
+
export type { CrashViewProps } from "./views/default-crash-view.js";
|
|
34
14
|
import type { IntrinsicElements as Elements } from "./types";
|
|
35
15
|
declare global {
|
|
36
16
|
namespace JSX {
|
|
@@ -39,4 +19,3 @@ declare global {
|
|
|
39
19
|
}
|
|
40
20
|
}
|
|
41
21
|
}
|
|
42
|
-
export default dolla;
|