@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.
Files changed (43) hide show
  1. package/README.md +196 -473
  2. package/dist/index.d.ts +9 -30
  3. package/dist/index.js +764 -624
  4. package/dist/index.js.map +1 -1
  5. package/dist/jsx-dev-runtime.d.ts +1 -1
  6. package/dist/jsx-dev-runtime.js +2 -2
  7. package/dist/jsx-dev-runtime.js.map +1 -1
  8. package/dist/jsx-runtime.d.ts +1 -1
  9. package/dist/jsx-runtime.js +2 -2
  10. package/dist/jsx-runtime.js.map +1 -1
  11. package/dist/markup.d.ts +44 -24
  12. package/dist/modules/dolla.d.ts +42 -18
  13. package/dist/modules/i18n.d.ts +83 -0
  14. package/dist/modules/router.d.ts +9 -10
  15. package/dist/nodes/cond.d.ts +9 -10
  16. package/dist/nodes/html.d.ts +14 -10
  17. package/dist/nodes/observer.d.ts +9 -10
  18. package/dist/nodes/outlet.d.ts +10 -11
  19. package/dist/nodes/portal.d.ts +6 -7
  20. package/dist/nodes/repeat.d.ts +15 -16
  21. package/dist/nodes/text.d.ts +8 -9
  22. package/dist/passthrough-9kwwjgWk.js +1279 -0
  23. package/dist/passthrough-9kwwjgWk.js.map +1 -0
  24. package/dist/state.d.ts +101 -0
  25. package/dist/types.d.ts +12 -12
  26. package/dist/utils.d.ts +3 -3
  27. package/dist/view.d.ts +28 -7
  28. package/dist/views/default-crash-view.d.ts +18 -0
  29. package/dist/views/passthrough.d.ts +5 -0
  30. package/notes/context-vars.md +21 -0
  31. package/notes/readme-scratch.md +222 -0
  32. package/notes/route-middleware.md +42 -0
  33. package/notes/scratch.md +42 -5
  34. package/package.json +9 -12
  35. package/tests/{signals.test.js → state.test.js} +6 -6
  36. package/vite.config.js +1 -0
  37. package/dist/fragment-s33qZBzz.js +0 -1241
  38. package/dist/fragment-s33qZBzz.js.map +0 -1
  39. package/dist/modules/language.d.ts +0 -41
  40. package/dist/signals.d.ts +0 -101
  41. package/dist/views/default-crash-page.d.ts +0 -8
  42. package/dist/views/default-view.d.ts +0 -2
  43. package/dist/views/fragment.d.ts +0 -2
@@ -1,20 +1,19 @@
1
- import { type DOMHandle } from "../markup.js";
2
- import { type MaybeSignal, type StopFunction } from "../signals.js";
1
+ import { type MarkupNode } from "../markup.js";
2
+ import { type MaybeState, type StopFunction } from "../state.js";
3
3
  interface Stringable {
4
4
  toString(): string;
5
5
  }
6
6
  interface TextOptions {
7
- value: MaybeSignal<Stringable>;
7
+ value: MaybeState<Stringable>;
8
8
  }
9
- export declare class Text implements DOMHandle {
9
+ export declare class Text implements MarkupNode {
10
10
  node: globalThis.Text;
11
- value: MaybeSignal<Stringable>;
11
+ value: MaybeState<Stringable>;
12
12
  stopCallback?: StopFunction;
13
- get connected(): boolean;
13
+ get isMounted(): boolean;
14
14
  constructor({ value }: TextOptions);
15
- connect(parent: Node, after?: Node | null): Promise<void>;
16
- disconnect(): Promise<void>;
15
+ mount(parent: Node, after?: Node | null): Promise<void>;
16
+ unmount(): Promise<void>;
17
17
  update(value?: Stringable): void;
18
- setChildren(): Promise<void>;
19
18
  }
20
19
  export {};