marko 6.1.2 → 6.1.4

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 (38) hide show
  1. package/dist/common/accessor.d.ts +5 -0
  2. package/dist/common/accessor.debug.d.ts +5 -0
  3. package/dist/common/compat-meta.d.ts +0 -1
  4. package/dist/common/opt.d.ts +3 -1
  5. package/dist/common/types.d.ts +1 -1
  6. package/dist/debug/dom.js +315 -122
  7. package/dist/debug/dom.mjs +306 -123
  8. package/dist/debug/html.js +922 -712
  9. package/dist/debug/html.mjs +920 -713
  10. package/dist/dom/compat.d.ts +3 -2
  11. package/dist/dom/control-flow.d.ts +2 -1
  12. package/dist/dom/load.d.ts +23 -0
  13. package/dist/dom/queue.d.ts +4 -2
  14. package/dist/dom/resume.d.ts +10 -8
  15. package/dist/dom/signals.d.ts +4 -3
  16. package/dist/dom.d.ts +3 -2
  17. package/dist/dom.js +195 -66
  18. package/dist/dom.mjs +195 -66
  19. package/dist/html/assets.d.ts +47 -0
  20. package/dist/html/compat.d.ts +3 -2
  21. package/dist/html/inlined-runtimes.d.ts +1 -1
  22. package/dist/html/inlined-runtimes.debug.d.ts +1 -1
  23. package/dist/html/serializer.d.ts +14 -9
  24. package/dist/html/writer.d.ts +34 -15
  25. package/dist/html.d.ts +1 -0
  26. package/dist/html.js +502 -345
  27. package/dist/html.mjs +502 -345
  28. package/dist/translator/index.d.ts +1 -0
  29. package/dist/translator/index.js +342 -76
  30. package/dist/translator/interop/index.d.ts +1 -0
  31. package/dist/translator/util/marko-config.d.ts +2 -0
  32. package/dist/translator/util/references.d.ts +1 -5
  33. package/dist/translator/util/runtime.d.ts +1 -0
  34. package/dist/translator/util/tag-name-type.d.ts +2 -0
  35. package/dist/translator/util/walks.d.ts +1 -1
  36. package/dist/translator/visitors/import-declaration.d.ts +10 -1
  37. package/dist/translator/visitors/tag/custom-tag.d.ts +7 -0
  38. package/package.json +2 -2
@@ -29,6 +29,7 @@ export declare enum AccessorProp {
29
29
  DetachedAwait = "V",
30
30
  EndNode = "K",
31
31
  Id = "L",
32
+ Load = "X",
32
33
  LoopKey = "M",
33
34
  ParentBranch = "N",
34
35
  PendingEffects = "J",
@@ -62,3 +63,7 @@ export declare enum ClosureSignalProp {
62
63
  SignalIndexAccessor = "b",
63
64
  Index = "c"
64
65
  }
66
+ export declare enum LoadSignalValue {
67
+ Value = "a",
68
+ Signal = "b"
69
+ }
@@ -29,6 +29,7 @@ export declare enum AccessorProp {
29
29
  DetachedAwait = "#DetachedAwait",
30
30
  EndNode = "#EndNode",
31
31
  Id = "#Id",
32
+ Load = "#Load",
32
33
  LoopKey = "#LoopKey",
33
34
  ParentBranch = "#ParentBranch",
34
35
  PendingEffects = "#PendingEffects",
@@ -62,3 +63,7 @@ export declare enum ClosureSignalProp {
62
63
  SignalIndexAccessor = "signalIndexAccessor",
63
64
  Index = "index"
64
65
  }
66
+ export declare enum LoadSignalValue {
67
+ Value = "value",
68
+ Signal = "signal"
69
+ }
@@ -1,3 +1,2 @@
1
- export declare const RENDERER_REGISTER_ID: string;
2
1
  export declare const SET_SCOPE_REGISTER_ID: string;
3
2
  export declare const RENDER_BODY_ID: string;
@@ -1,6 +1,8 @@
1
1
  export type OneMany<T> = T[] | T;
2
- export type Opt<T> = OneMany<T> | undefined;
2
+ export type Opt<T> = OneMany<T> | undefined | null;
3
3
  export declare function toArray<T>(oneMany: OneMany<T>): [T, ...T[]];
4
4
  export declare function toArray<T>(opt: Opt<T>): T[];
5
+ export declare function forEach<T>(opt: Opt<T>, cb: (item: T) => void): void;
5
6
  export declare function push<T>(opt: Opt<T>, item: T): OneMany<T>;
6
7
  export declare function push<T>(oneMany: OneMany<T>, item: T): T[];
8
+ export declare function concat<T>(opt: Opt<T>, other: Opt<T>): Opt<T>;
@@ -37,7 +37,7 @@ export declare enum ResumeSymbol {
37
37
  BranchEndSingleNodeOnlyChildInParent = "}"
38
38
  }
39
39
  export interface AwaitCounter {
40
- m?: () => unknown[];
40
+ m?: (effects: unknown[]) => unknown[];
41
41
  i: number;
42
42
  c: () => void | 1;
43
43
  }