@alloy-js/core 0.5.0 → 0.6.0

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 (209) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/babel.config.cjs +4 -1
  3. package/dist/src/binder.d.ts +5 -0
  4. package/dist/src/binder.d.ts.map +1 -1
  5. package/dist/src/binder.js +14 -0
  6. package/dist/src/binder.js.map +1 -1
  7. package/dist/src/code.d.ts +2 -2
  8. package/dist/src/code.d.ts.map +1 -1
  9. package/dist/src/code.js +4 -4
  10. package/dist/src/code.js.map +1 -1
  11. package/dist/src/components/Block.d.ts +25 -0
  12. package/dist/src/components/Block.d.ts.map +1 -0
  13. package/dist/src/components/Block.js +25 -0
  14. package/dist/src/components/Block.js.map +1 -0
  15. package/dist/src/components/Declaration.d.ts.map +1 -1
  16. package/dist/src/components/Declaration.js +4 -0
  17. package/dist/src/components/Declaration.js.map +1 -1
  18. package/dist/src/components/For.d.ts +44 -0
  19. package/dist/src/components/For.d.ts.map +1 -0
  20. package/dist/src/components/For.js +41 -0
  21. package/dist/src/components/For.js.map +1 -0
  22. package/dist/src/components/Indent.d.ts +5 -9
  23. package/dist/src/components/Indent.d.ts.map +1 -1
  24. package/dist/src/components/Indent.js +7 -18
  25. package/dist/src/components/Indent.js.map +1 -1
  26. package/dist/src/components/List.d.ts +38 -0
  27. package/dist/src/components/List.d.ts.map +1 -0
  28. package/dist/src/components/List.js +40 -0
  29. package/dist/src/components/List.js.map +1 -0
  30. package/dist/src/components/MemberDeclaration.d.ts.map +1 -1
  31. package/dist/src/components/MemberDeclaration.js.map +1 -1
  32. package/dist/src/components/MemberName.js +1 -1
  33. package/dist/src/components/MemberName.js.map +1 -1
  34. package/dist/src/components/MemberScope.d.ts.map +1 -1
  35. package/dist/src/components/MemberScope.js.map +1 -1
  36. package/dist/src/components/Name.js +1 -1
  37. package/dist/src/components/Name.js.map +1 -1
  38. package/dist/src/components/Output.d.ts +2 -1
  39. package/dist/src/components/Output.d.ts.map +1 -1
  40. package/dist/src/components/Output.js +9 -1
  41. package/dist/src/components/Output.js.map +1 -1
  42. package/dist/src/components/Scope.d.ts.map +1 -1
  43. package/dist/src/components/Scope.js.map +1 -1
  44. package/dist/src/components/Show.d.ts +8 -0
  45. package/dist/src/components/Show.d.ts.map +1 -0
  46. package/dist/src/components/Show.js +4 -0
  47. package/dist/src/components/Show.js.map +1 -0
  48. package/dist/src/components/SourceDirectory.d.ts.map +1 -1
  49. package/dist/src/components/SourceDirectory.js +1 -0
  50. package/dist/src/components/SourceDirectory.js.map +1 -1
  51. package/dist/src/components/SourceFile.d.ts +2 -6
  52. package/dist/src/components/SourceFile.d.ts.map +1 -1
  53. package/dist/src/components/SourceFile.js +6 -13
  54. package/dist/src/components/SourceFile.js.map +1 -1
  55. package/dist/src/components/StatementList.d.ts +9 -0
  56. package/dist/src/components/StatementList.d.ts.map +1 -0
  57. package/dist/src/components/StatementList.js +17 -0
  58. package/dist/src/components/StatementList.js.map +1 -0
  59. package/dist/src/components/Switch.d.ts +41 -0
  60. package/dist/src/components/Switch.d.ts.map +1 -0
  61. package/dist/src/components/Switch.js +41 -0
  62. package/dist/src/components/Switch.js.map +1 -0
  63. package/dist/src/components/Wrap.d.ts +20 -0
  64. package/dist/src/components/Wrap.d.ts.map +1 -0
  65. package/dist/src/components/Wrap.js +15 -0
  66. package/dist/src/components/Wrap.js.map +1 -0
  67. package/dist/src/components/index.d.ts +8 -1
  68. package/dist/src/components/index.d.ts.map +1 -1
  69. package/dist/src/components/index.js +7 -0
  70. package/dist/src/components/index.js.map +1 -1
  71. package/dist/src/components/stc/index.d.ts +77 -6
  72. package/dist/src/components/stc/index.d.ts.map +1 -1
  73. package/dist/src/components/stc/index.js +17 -1
  74. package/dist/src/components/stc/index.js.map +1 -1
  75. package/dist/src/context/index.d.ts +0 -1
  76. package/dist/src/context/index.d.ts.map +1 -1
  77. package/dist/src/context/index.js +0 -1
  78. package/dist/src/context/index.js.map +1 -1
  79. package/dist/src/context.d.ts.map +1 -1
  80. package/dist/src/context.js +3 -3
  81. package/dist/src/context.js.map +1 -1
  82. package/dist/src/index.browser.d.ts +3 -0
  83. package/dist/src/index.browser.d.ts.map +1 -0
  84. package/dist/src/index.browser.js +3 -0
  85. package/dist/src/index.browser.js.map +1 -0
  86. package/dist/src/index.d.ts +1 -0
  87. package/dist/src/index.d.ts.map +1 -1
  88. package/dist/src/index.js +1 -0
  89. package/dist/src/index.js.map +1 -1
  90. package/dist/src/jsx-runtime.d.ts +133 -8
  91. package/dist/src/jsx-runtime.d.ts.map +1 -1
  92. package/dist/src/jsx-runtime.js +102 -12
  93. package/dist/src/jsx-runtime.js.map +1 -1
  94. package/dist/src/render.d.ts +107 -132
  95. package/dist/src/render.d.ts.map +1 -1
  96. package/dist/src/render.js +269 -177
  97. package/dist/src/render.js.map +1 -1
  98. package/dist/src/stc.d.ts +14 -0
  99. package/dist/src/stc.d.ts.map +1 -0
  100. package/dist/src/stc.js +52 -0
  101. package/dist/src/stc.js.map +1 -0
  102. package/dist/src/utils.d.ts +22 -15
  103. package/dist/src/utils.d.ts.map +1 -1
  104. package/dist/src/utils.js +95 -59
  105. package/dist/src/utils.js.map +1 -1
  106. package/dist/test/browser-build.test.d.ts +2 -0
  107. package/dist/test/browser-build.test.d.ts.map +1 -0
  108. package/dist/test/components/block.test.d.ts +2 -0
  109. package/dist/test/components/block.test.d.ts.map +1 -0
  110. package/dist/test/components/declaration.test.d.ts +2 -0
  111. package/dist/test/components/declaration.test.d.ts.map +1 -0
  112. package/dist/test/components/list.test.d.ts +2 -0
  113. package/dist/test/components/list.test.d.ts.map +1 -0
  114. package/dist/test/components/wrap.test.d.ts +2 -0
  115. package/dist/test/components/wrap.test.d.ts.map +1 -0
  116. package/dist/test/control-flow/for.test.d.ts +2 -0
  117. package/dist/test/control-flow/for.test.d.ts.map +1 -0
  118. package/dist/test/control-flow/match.test.d.ts +2 -0
  119. package/dist/test/control-flow/match.test.d.ts.map +1 -0
  120. package/dist/test/control-flow/show.test.d.ts +2 -0
  121. package/dist/test/control-flow/show.test.d.ts.map +1 -0
  122. package/dist/test/reactivity/cleanup.test.d.ts +2 -0
  123. package/dist/test/reactivity/cleanup.test.d.ts.map +1 -0
  124. package/dist/test/reactivity/memo.test.d.ts +2 -0
  125. package/dist/test/reactivity/memo.test.d.ts.map +1 -0
  126. package/dist/test/reactivity/untrack.test.d.ts +2 -0
  127. package/dist/test/reactivity/untrack.test.d.ts.map +1 -0
  128. package/dist/test/rendering/formatting.test.d.ts +2 -0
  129. package/dist/test/rendering/formatting.test.d.ts.map +1 -0
  130. package/dist/test/rendering/memoization.test.d.ts +2 -0
  131. package/dist/test/rendering/memoization.test.d.ts.map +1 -0
  132. package/dist/test/split-props.test.d.ts +2 -0
  133. package/dist/test/split-props.test.d.ts.map +1 -0
  134. package/dist/test/stc.test.d.ts.map +1 -1
  135. package/dist/test/utils.test.d.ts.map +1 -1
  136. package/dist/testing/extend-expect.js +4 -4
  137. package/dist/testing/extend-expect.js.map +1 -1
  138. package/dist/testing/render.d.ts +2 -3
  139. package/dist/testing/render.d.ts.map +1 -1
  140. package/dist/testing/render.js +2 -4
  141. package/dist/testing/render.js.map +1 -1
  142. package/dist/tsconfig.tsbuildinfo +1 -1
  143. package/package.json +6 -8
  144. package/src/binder.ts +21 -0
  145. package/src/code.ts +17 -12
  146. package/src/components/Block.tsx +44 -0
  147. package/src/components/Declaration.tsx +10 -4
  148. package/src/components/For.tsx +81 -0
  149. package/src/components/Indent.tsx +20 -27
  150. package/src/components/List.tsx +94 -0
  151. package/src/components/MemberDeclaration.tsx +9 -6
  152. package/src/components/MemberScope.tsx +4 -2
  153. package/src/components/Output.tsx +25 -13
  154. package/src/components/Scope.tsx +4 -2
  155. package/src/components/Show.tsx +11 -0
  156. package/src/components/SourceDirectory.tsx +5 -1
  157. package/src/components/SourceFile.tsx +12 -16
  158. package/src/components/StatementList.tsx +16 -0
  159. package/src/components/Switch.tsx +62 -0
  160. package/src/components/Wrap.tsx +29 -0
  161. package/src/components/index.tsx +8 -1
  162. package/src/components/stc/index.ts +18 -1
  163. package/src/context/index.ts +0 -1
  164. package/src/context.ts +2 -3
  165. package/src/index.browser.ts +2 -0
  166. package/src/index.ts +1 -0
  167. package/src/jsx-runtime.ts +241 -23
  168. package/src/render.ts +378 -198
  169. package/src/stc.ts +95 -0
  170. package/src/utils.ts +162 -95
  171. package/temp/api.json +8318 -3301
  172. package/test/browser-build.test.ts +91 -0
  173. package/test/children.test.tsx +8 -10
  174. package/test/components/block.test.tsx +48 -0
  175. package/test/components/declaration.test.tsx +37 -0
  176. package/test/components/list.test.tsx +91 -0
  177. package/test/components/slot.test.tsx +31 -25
  178. package/test/components/source-file.test.tsx +11 -31
  179. package/test/components/wrap.test.tsx +42 -0
  180. package/test/control-flow/for.test.tsx +194 -0
  181. package/test/control-flow/match.test.tsx +49 -0
  182. package/test/control-flow/show.test.tsx +25 -0
  183. package/test/name-policy.test.tsx +5 -5
  184. package/test/reactivity/cleanup.test.tsx +91 -0
  185. package/test/reactivity/memo.test.tsx +17 -0
  186. package/test/reactivity/ref-rendering.test.tsx +3 -8
  187. package/test/reactivity/test.test.tsx +7 -6
  188. package/test/reactivity/untrack.test.ts +33 -0
  189. package/test/rendering/basic.test.tsx +25 -47
  190. package/test/rendering/code.test.tsx +3 -3
  191. package/test/rendering/formatting.test.tsx +487 -0
  192. package/test/rendering/indent.test.tsx +42 -529
  193. package/test/rendering/memoization.test.tsx +30 -0
  194. package/test/split-props.test.ts +87 -0
  195. package/test/stc.test.tsx +29 -8
  196. package/test/symbols.test.ts +73 -0
  197. package/test/utils.test.tsx +129 -20
  198. package/testing/extend-expect.ts +14 -4
  199. package/testing/render.ts +2 -4
  200. package/testing/vitest.d.ts +6 -1
  201. package/vitest.config.ts +1 -1
  202. package/dist/src/context/indent.d.ts +0 -5
  203. package/dist/src/context/indent.d.ts.map +0 -1
  204. package/dist/src/context/indent.js +0 -8
  205. package/dist/src/context/indent.js.map +0 -1
  206. package/dist/test/rendering/linebreaks.test.d.ts +0 -2
  207. package/dist/test/rendering/linebreaks.test.d.ts.map +0 -1
  208. package/src/context/indent.ts +0 -17
  209. package/test/rendering/linebreaks.test.tsx +0 -72
@@ -1,26 +1,97 @@
1
1
  import * as base from "../index.js";
2
- export declare const Declaration: (props?: base.DeclarationProps | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.DeclarationProps> & {
2
+ export declare const Block: (props?: (Omit<base.BlockProps, "children"> & Partial<Pick<base.BlockProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.BlockProps> & {
3
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.BlockProps>;
4
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.BlockProps>;
5
+ };
6
+ export declare const Declaration: (props?: (Omit<base.DeclarationProps, "children"> & Partial<Pick<base.DeclarationProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.DeclarationProps> & {
3
7
  code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.DeclarationProps>;
4
8
  children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.DeclarationProps>;
5
9
  };
6
- export declare const Indent: (props?: base.IndentProps | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.IndentProps> & {
10
+ export declare const For: <T extends base.ForSupportedCollections | (() => base.ForSupportedCollections) | import("@vue/reactivity").Ref<base.ForSupportedCollections>, U extends import("@alloy-js/core/jsx-runtime").Children>(props: Omit<base.ForProps<T, U>, "children"> & Partial<Pick<base.ForProps<T, U>, "children">>) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ForProps<T, U>> & {
11
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ForProps<T, U>>;
12
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ForProps<T, U>>;
13
+ };
14
+ export declare const Indent: (props?: (Omit<base.IndentProps, "children"> & Partial<Pick<base.IndentProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.IndentProps> & {
7
15
  code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.IndentProps>;
8
16
  children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.IndentProps>;
9
17
  };
10
- export declare const Output: (props?: base.OutputProps | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.OutputProps> & {
18
+ export declare const List: (props?: (Omit<base.ListProps, "children"> & Partial<Pick<base.ListProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ListProps> & {
19
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ListProps>;
20
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ListProps>;
21
+ };
22
+ export declare const MemberDeclaration: (props?: (Omit<base.MemberDeclarationProps, "children"> & Partial<Pick<base.MemberDeclarationProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.MemberDeclarationProps> & {
23
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.MemberDeclarationProps>;
24
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.MemberDeclarationProps>;
25
+ };
26
+ export declare const MemberName: (props?: (Omit<{}, "children"> & Partial<Pick<{}, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<{}> & {
27
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<{}>;
28
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<{}>;
29
+ };
30
+ export declare const MemberScope: (props: Omit<base.MemberScopeProps, "children"> & Partial<Pick<base.MemberScopeProps, "children">>) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.MemberScopeProps> & {
31
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.MemberScopeProps>;
32
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.MemberScopeProps>;
33
+ };
34
+ export declare const Name: (props?: (Omit<{}, "children"> & Partial<Pick<{}, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<{}> & {
35
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<{}>;
36
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<{}>;
37
+ };
38
+ export declare const Output: (props?: (Omit<base.OutputProps, "children"> & Partial<Pick<base.OutputProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.OutputProps> & {
11
39
  code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.OutputProps>;
12
40
  children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.OutputProps>;
13
41
  };
14
- export declare const Scope: (props?: base.ScopeProps | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ScopeProps> & {
42
+ export declare const Scope: (props?: (Omit<base.ScopeProps, "children"> & Partial<Pick<base.ScopeProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ScopeProps> & {
15
43
  code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ScopeProps>;
16
44
  children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ScopeProps>;
17
45
  };
18
- export declare const SourceDirectory: (props: base.SourceDirectoryProps) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SourceDirectoryProps> & {
46
+ export declare const Show: (props: Omit<base.ShowProps, "children"> & Partial<Pick<base.ShowProps, "children">>) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ShowProps> & {
47
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ShowProps>;
48
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.ShowProps>;
49
+ };
50
+ export declare const StatementList: (props?: (Omit<base.StatementListProps, "children"> & Partial<Pick<base.StatementListProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.StatementListProps> & {
51
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.StatementListProps>;
52
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.StatementListProps>;
53
+ };
54
+ export declare const SourceDirectory: (props: Omit<base.SourceDirectoryProps, "children"> & Partial<Pick<base.SourceDirectoryProps, "children">>) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SourceDirectoryProps> & {
19
55
  code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SourceDirectoryProps>;
20
56
  children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SourceDirectoryProps>;
21
57
  };
22
- export declare const SourceFile: (props: base.SourceFileProps) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SourceFileProps> & {
58
+ export declare const SourceFile: (props: Omit<base.SourceFileProps, "children"> & Partial<Pick<base.SourceFileProps, "children">>) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SourceFileProps> & {
23
59
  code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SourceFileProps>;
24
60
  children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SourceFileProps>;
25
61
  };
62
+ export declare const Switch: (props?: (Omit<base.SwitchProps, "children"> & Partial<Pick<base.SwitchProps, "children">>) | undefined) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SwitchProps> & {
63
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SwitchProps>;
64
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.SwitchProps>;
65
+ };
66
+ export declare const Wrap: <TProps>(props: Omit<base.WrapProps<TProps>, "children"> & Partial<Pick<base.WrapProps<TProps>, "children">>) => import("@alloy-js/core/jsx-runtime").ComponentCreator<base.WrapProps<TProps>> & {
67
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.WrapProps<TProps>>;
68
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): import("@alloy-js/core/jsx-runtime").ComponentCreator<base.WrapProps<TProps>>;
69
+ };
70
+ export declare const indent: (props?: {
71
+ children: import("@alloy-js/core/jsx-runtime").Children;
72
+ } | undefined) => {
73
+ (): import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"indent">;
74
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"indent">;
75
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"indent">;
76
+ };
77
+ export declare const hbr: (props?: {} | undefined) => {
78
+ (): import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"hbr">;
79
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"hbr">;
80
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"hbr">;
81
+ };
82
+ export declare const sbr: (props?: {} | undefined) => {
83
+ (): import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"sbr">;
84
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"sbr">;
85
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"sbr">;
86
+ };
87
+ export declare const lbr: (props?: {} | undefined) => {
88
+ (): import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"lbr">;
89
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"lbr">;
90
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"lbr">;
91
+ };
92
+ export declare const br: (props?: {} | undefined) => {
93
+ (): import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"br">;
94
+ children(...children: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"br">;
95
+ code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core/jsx-runtime").Children[]): () => import("@alloy-js/core/jsx-runtime").IntrinsicElementBase<"br">;
96
+ };
26
97
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stc/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,eAAO,MAAM,WAAW;;;CAAwB,CAAC;AACjD,eAAO,MAAM,MAAM;;;CAAmB,CAAC;AACvC,eAAO,MAAM,MAAM;;;CAAmB,CAAC;AACvC,eAAO,MAAM,KAAK;;;CAAkB,CAAC;AACrC,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,UAAU;;;CAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stc/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,eAAO,MAAM,KAAK;;;CAAkB,CAAC;AACrC,eAAO,MAAM,WAAW;;;CAAwB,CAAC;AACjD,eAAO,MAAM,GAAG;;;CAAgB,CAAC;AACjC,eAAO,MAAM,MAAM;;;CAAmB,CAAC;AACvC,eAAO,MAAM,IAAI;;;CAAiB,CAAC;AACnC,eAAO,MAAM,iBAAiB;;;CAA8B,CAAC;AAC7D,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,WAAW;;;CAAwB,CAAC;AACjD,eAAO,MAAM,IAAI;;;CAAiB,CAAC;AACnC,eAAO,MAAM,MAAM;;;CAAmB,CAAC;AACvC,eAAO,MAAM,KAAK;;;CAAkB,CAAC;AACrC,eAAO,MAAM,IAAI;;;CAAiB,CAAC;AACnC,eAAO,MAAM,aAAa;;;CAA0B,CAAC;AACrD,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,MAAM;;;CAAmB,CAAC;AACvC,eAAO,MAAM,IAAI;;;CAAiB,CAAC;AAEnC,eAAO,MAAM,MAAM;;;;;;CAAgB,CAAC;AACpC,eAAO,MAAM,GAAG;;;;CAAa,CAAC;AAC9B,eAAO,MAAM,GAAG;;;;CAAa,CAAC;AAC9B,eAAO,MAAM,GAAG;;;;CAAa,CAAC;AAC9B,eAAO,MAAM,EAAE;;;;CAAY,CAAC"}
@@ -1,9 +1,25 @@
1
- import { stc } from "../../utils.js";
1
+ import { stc, sti } from "../../stc.js";
2
2
  import * as base from "../index.js";
3
+ export const Block = stc(base.Block);
3
4
  export const Declaration = stc(base.Declaration);
5
+ export const For = stc(base.For);
4
6
  export const Indent = stc(base.Indent);
7
+ export const List = stc(base.List);
8
+ export const MemberDeclaration = stc(base.MemberDeclaration);
9
+ export const MemberName = stc(base.MemberName);
10
+ export const MemberScope = stc(base.MemberScope);
11
+ export const Name = stc(base.Name);
5
12
  export const Output = stc(base.Output);
6
13
  export const Scope = stc(base.Scope);
14
+ export const Show = stc(base.Show);
15
+ export const StatementList = stc(base.StatementList);
7
16
  export const SourceDirectory = stc(base.SourceDirectory);
8
17
  export const SourceFile = stc(base.SourceFile);
18
+ export const Switch = stc(base.Switch);
19
+ export const Wrap = stc(base.Wrap);
20
+ export const indent = sti("indent");
21
+ export const hbr = sti("hbr");
22
+ export const sbr = sti("sbr");
23
+ export const lbr = sti("lbr");
24
+ export const br = sti("br");
9
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["stc","base","Declaration","Indent","Output","Scope","SourceDirectory","SourceFile"],"sources":["../../../../src/components/stc/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AACpC,OAAO,KAAKC,IAAI,MAAM,aAAa;AAEnC,OAAO,MAAMC,WAAW,GAAGF,GAAG,CAACC,IAAI,CAACC,WAAW,CAAC;AAChD,OAAO,MAAMC,MAAM,GAAGH,GAAG,CAACC,IAAI,CAACE,MAAM,CAAC;AACtC,OAAO,MAAMC,MAAM,GAAGJ,GAAG,CAACC,IAAI,CAACG,MAAM,CAAC;AACtC,OAAO,MAAMC,KAAK,GAAGL,GAAG,CAACC,IAAI,CAACI,KAAK,CAAC;AACpC,OAAO,MAAMC,eAAe,GAAGN,GAAG,CAACC,IAAI,CAACK,eAAe,CAAC;AACxD,OAAO,MAAMC,UAAU,GAAGP,GAAG,CAACC,IAAI,CAACM,UAAU,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["stc","sti","base","Block","Declaration","For","Indent","List","MemberDeclaration","MemberName","MemberScope","Name","Output","Scope","Show","StatementList","SourceDirectory","SourceFile","Switch","Wrap","indent","hbr","sbr","lbr","br"],"sources":["../../../../src/components/stc/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAG,EAAEC,GAAG,QAAQ,cAAc;AACvC,OAAO,KAAKC,IAAI,MAAM,aAAa;AAEnC,OAAO,MAAMC,KAAK,GAAGH,GAAG,CAACE,IAAI,CAACC,KAAK,CAAC;AACpC,OAAO,MAAMC,WAAW,GAAGJ,GAAG,CAACE,IAAI,CAACE,WAAW,CAAC;AAChD,OAAO,MAAMC,GAAG,GAAGL,GAAG,CAACE,IAAI,CAACG,GAAG,CAAC;AAChC,OAAO,MAAMC,MAAM,GAAGN,GAAG,CAACE,IAAI,CAACI,MAAM,CAAC;AACtC,OAAO,MAAMC,IAAI,GAAGP,GAAG,CAACE,IAAI,CAACK,IAAI,CAAC;AAClC,OAAO,MAAMC,iBAAiB,GAAGR,GAAG,CAACE,IAAI,CAACM,iBAAiB,CAAC;AAC5D,OAAO,MAAMC,UAAU,GAAGT,GAAG,CAACE,IAAI,CAACO,UAAU,CAAC;AAC9C,OAAO,MAAMC,WAAW,GAAGV,GAAG,CAACE,IAAI,CAACQ,WAAW,CAAC;AAChD,OAAO,MAAMC,IAAI,GAAGX,GAAG,CAACE,IAAI,CAACS,IAAI,CAAC;AAClC,OAAO,MAAMC,MAAM,GAAGZ,GAAG,CAACE,IAAI,CAACU,MAAM,CAAC;AACtC,OAAO,MAAMC,KAAK,GAAGb,GAAG,CAACE,IAAI,CAACW,KAAK,CAAC;AACpC,OAAO,MAAMC,IAAI,GAAGd,GAAG,CAACE,IAAI,CAACY,IAAI,CAAC;AAClC,OAAO,MAAMC,aAAa,GAAGf,GAAG,CAACE,IAAI,CAACa,aAAa,CAAC;AACpD,OAAO,MAAMC,eAAe,GAAGhB,GAAG,CAACE,IAAI,CAACc,eAAe,CAAC;AACxD,OAAO,MAAMC,UAAU,GAAGjB,GAAG,CAACE,IAAI,CAACe,UAAU,CAAC;AAC9C,OAAO,MAAMC,MAAM,GAAGlB,GAAG,CAACE,IAAI,CAACgB,MAAM,CAAC;AACtC,OAAO,MAAMC,IAAI,GAAGnB,GAAG,CAACE,IAAI,CAACiB,IAAI,CAAC;AAElC,OAAO,MAAMC,MAAM,GAAGnB,GAAG,CAAC,QAAQ,CAAC;AACnC,OAAO,MAAMoB,GAAG,GAAGpB,GAAG,CAAC,KAAK,CAAC;AAC7B,OAAO,MAAMqB,GAAG,GAAGrB,GAAG,CAAC,KAAK,CAAC;AAC7B,OAAO,MAAMsB,GAAG,GAAGtB,GAAG,CAAC,KAAK,CAAC;AAC7B,OAAO,MAAMuB,EAAE,GAAGvB,GAAG,CAAC,IAAI,CAAC","ignoreList":[]}
@@ -1,7 +1,6 @@
1
1
  export * from "./assignment.js";
2
2
  export * from "./binder.js";
3
3
  export * from "./declaration.js";
4
- export * from "./indent.js";
5
4
  export * from "./member-declaration.js";
6
5
  export * from "./member-scope.js";
7
6
  export * from "./name-policy.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export * from "./assignment.js";
2
2
  export * from "./binder.js";
3
3
  export * from "./declaration.js";
4
- export * from "./indent.js";
5
4
  export * from "./member-declaration.js";
6
5
  export * from "./member-scope.js";
7
6
  export * from "./name-policy.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/context/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,aAAa;AAC3B,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,yBAAyB;AACvC,cAAc,mBAAmB;AACjC,cAAc,kBAAkB;AAChC,cAAc,YAAY;AAC1B,cAAc,uBAAuB;AACrC,cAAc,kBAAkB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/context/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,aAAa;AAC3B,cAAc,kBAAkB;AAChC,cAAc,yBAAyB;AACvC,cAAc,mBAAmB;AACjC,cAAc,kBAAkB;AAChC,cAAc,YAAY;AAC1B,cAAc,uBAAuB;AACrC,cAAc,kBAAkB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,mBAAmB,EAIpB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;IACvB,QAAQ,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,CAWzE;AAED,eAAO,MAAM,aAAa,oCAA2C,CAAC;AAEtE,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EACvC,YAAY,CAAC,EAAE,CAAC,EAChB,IAAI,CAAC,EAAE,MAAM,GACZ,gBAAgB,CAAC,CAAC,CAAC,CAoBrB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,uBAEnE"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,mBAAmB,EAGpB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;IACvB,QAAQ,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,CAWzE;AAED,eAAO,MAAM,aAAa,oCAA2C,CAAC;AAEtE,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EACvC,YAAY,CAAC,EAAE,CAAC,EAChB,IAAI,CAAC,EAAE,MAAM,GACZ,gBAAgB,CAAC,CAAC,CAAC,CAoBrB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,uBAEnE"}
@@ -1,5 +1,5 @@
1
1
  import { shallowRef } from "@vue/reactivity";
2
- import { effect, getContext, untrack } from "./jsx-runtime.js";
2
+ import { effect, getContext } from "./jsx-runtime.js";
3
3
  export function useContext(context) {
4
4
  // context must come from a parent
5
5
  let current = getContext();
@@ -23,8 +23,8 @@ export function createContext(defaultValue, name) {
23
23
  const rendered = shallowRef();
24
24
  effect(() => {
25
25
  context.context[id] = props.value;
26
- rendered.value = untrack(() => props.children);
27
- });
26
+ rendered.value = () => props.children;
27
+ }, undefined);
28
28
  return rendered.value;
29
29
  }
30
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","names":["shallowRef","effect","getContext","untrack","useContext","context","current","Object","hasOwn","id","owner","default","contextsByKey","Map","createContext","defaultValue","name","Symbol","ctx","Provider","props","rendered","value","children","set","createNamedContext"],"sources":["../../src/context.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAU,QAAQ,iBAAiB;AAC5C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AAC;AAC7C","ignoreList":[]}
1
+ {"version":3,"file":"context.js","names":["shallowRef","effect","getContext","useContext","context","current","Object","hasOwn","id","owner","default","contextsByKey","Map","createContext","defaultValue","name","Symbol","ctx","Provider","props","rendered","value","children","undefined","set","createNamedContext"],"sources":["../../src/context.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAU,QAAQ,iBAAiB;AAC5C,SAGEC,MAAM,EACNC,UAAU,QACL,kBAAkB;AAczB,OAAO,SAASC,UAAUA,CAAIC,OAA4B,EAAiB;EACzE;EACA,IAAIC,OAAO,GAAGH,UAAU,CAAC,CAAC;EAC1B,OAAOG,OAAO,EAAE;IACd,IAAIC,MAAM,CAACC,MAAM,CAACF,OAAO,CAACD,OAAO,EAAGA,OAAO,CAACI,EAAE,CAAC,EAAE;MAC/C,OAAOH,OAAO,CAACD,OAAO,CAAEA,OAAO,CAACI,EAAE,CAAC;IACrC;IACAH,OAAO,GAAGA,OAAO,CAACI,KAAK;EACzB;EAEA,OAAOL,OAAO,CAACM,OAAO;AACxB;AAEA,OAAO,MAAMC,aAAa,GAAG,IAAIC,GAAG,CAAgC,CAAC;AAErE,OAAO,SAASC,aAAaA,CAC3BC,YAAgB,EAChBC,IAAa,EACQ;EACrB,MAAMP,EAAE,GAAGQ,MAAM,CAACD,IAAI,IAAI,SAAS,CAAC;EACpC,MAAME,GAAG,GAAG;IACVT,EAAE;IACFE,OAAO,EAAEI,YAAY;IACrBC,IAAI;IACJG,QAAQA,CAACC,KAA8B,EAAE;MACvC,MAAMf,OAAO,GAAGF,UAAU,CAAC,CAAC;MAE5B,MAAMkB,QAAQ,GAAGpB,UAAU,CAAC,CAAC;MAC7BC,MAAM,CAAC,MAAM;QACXG,OAAO,CAAEA,OAAO,CAAEI,EAAE,CAAC,GAAGW,KAAK,CAACE,KAAK;QACnCD,QAAQ,CAACC,KAAK,GAAG,MAAMF,KAAK,CAACG,QAAQ;MACvC,CAAC,EAAEC,SAAS,CAAC;MAEb,OAAOH,QAAQ,CAACC,KAAK;IACvB;EACF,CAAC;EACDV,aAAa,CAACa,GAAG,CAAChB,EAAE,EAAES,GAAG,CAAC;EAC1B,OAAOA,GAAG;AACZ;AAEA,OAAO,SAASQ,kBAAkBA,CAAIV,IAAY,EAAED,YAAgB,EAAE;EACpE,OAAOD,aAAa,CAAIC,YAAY,EAAEC,IAAI,CAAC;AAC7C","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ export * from "./index.js";
2
+ export { writeOutput } from "./write-output.browser.js";
3
+ //# sourceMappingURL=index.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../../src/index.browser.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./index.js"; // Re-export everything
2
+ export { writeOutput } from "./write-output.browser.js"; // Override writeOutput for browsers
3
+ //# sourceMappingURL=index.browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.browser.js","names":["writeOutput"],"sources":["../../src/index.browser.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc,YAAY,CAAC,CAAC;AAC5B,SAASA,WAAW,QAAQ,2BAA2B,CAAC,CAAC","ignoreList":[]}
@@ -8,6 +8,7 @@ export * from "./jsx-runtime.js";
8
8
  export * from "./name-policy.js";
9
9
  export * from "./refkey.js";
10
10
  export * from "./render.js";
11
+ export * from "./stc.js";
11
12
  export * from "./tap.js";
12
13
  export * from "./utils.js";
13
14
  export * from "./write-output.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,GAAG,EACH,eAAe,EACf,UAAU,EACV,KAAK,EACL,KAAK,GAAG,GACT,MAAM,iBAAiB,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,GAAG,EACH,eAAe,EACf,UAAU,EACV,KAAK,EACL,KAAK,GAAG,GACT,MAAM,iBAAiB,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,OAAO,YAAY,CAAC"}
package/dist/src/index.js CHANGED
@@ -8,6 +8,7 @@ export * from "./jsx-runtime.js";
8
8
  export * from "./name-policy.js";
9
9
  export * from "./refkey.js";
10
10
  export * from "./render.js";
11
+ export * from "./stc.js";
11
12
  export * from "./tap.js";
12
13
  export * from "./utils.js";
13
14
  export * from "./write-output.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["computed","isProxy","reactive","ref","shallowReactive","shallowRef","toRaw"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,QAAQ,EACRC,OAAO,EACPC,QAAQ,EACRC,GAAG,EACHC,eAAe,EACfC,UAAU,EACVC,KAAK,QAEA,iBAAiB;AACxB,cAAc,aAAa;AAC3B,cAAc,WAAW;AACzB,cAAc,uBAAuB;AACrC,cAAc,cAAc;AAC5B,cAAc,oBAAoB;AAClC,cAAc,kBAAkB;AAChC,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,mBAAmB;AACjC,OAAO,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["computed","isProxy","reactive","ref","shallowReactive","shallowRef","toRaw"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,QAAQ,EACRC,OAAO,EACPC,QAAQ,EACRC,GAAG,EACHC,eAAe,EACfC,UAAU,EACVC,KAAK,QAEA,iBAAiB;AACxB,cAAc,aAAa;AAC3B,cAAc,WAAW;AACzB,cAAc,uBAAuB;AACrC,cAAc,cAAc;AAC5B,cAAc,oBAAoB;AAClC,cAAc,kBAAkB;AAChC,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,mBAAmB;AACjC,OAAO,YAAY","ignoreList":[]}
@@ -1,5 +1,6 @@
1
1
  import { Ref } from "@vue/reactivity";
2
2
  import { Refkey } from "./refkey.js";
3
+ import { RenderedTextTree } from "./render.js";
3
4
  export interface Disposable {
4
5
  (): void;
5
6
  }
@@ -8,6 +9,11 @@ export interface Context {
8
9
  owner: Context | null;
9
10
  context?: Record<symbol, unknown>;
10
11
  meta?: Record<string, any>;
12
+ /**
13
+ * A cache of RenderTextTree nodes created within this context,
14
+ * indexed by the component or function which created them.
15
+ */
16
+ elementCache: ElementCache;
11
17
  /**
12
18
  * When this context was created by a component, this will
13
19
  * be the component that created it.
@@ -15,24 +21,60 @@ export interface Context {
15
21
  componentOwner?: ComponentCreator<unknown>;
16
22
  }
17
23
  export declare function getContext(): Context | null;
18
- export declare function root<T>(fn: (d: Disposable) => T, componentOwner?: ComponentCreator<any>): T;
24
+ export declare function getElementCache(): ElementCache;
25
+ export type ElementCacheKey = ComponentCreator | (() => unknown) | CustomContext;
26
+ export type ElementCache = Map<ElementCacheKey, RenderedTextTree>;
27
+ export interface RootOptions {
28
+ componentOwner?: ComponentCreator<any>;
29
+ }
30
+ export declare function root<T>(fn: (d: Disposable) => T, options?: RootOptions): T;
19
31
  export declare function untrack<T>(fn: () => T): T;
20
32
  export declare function memo<T>(fn: () => T, equal?: boolean): () => T;
21
33
  export declare function effect<T>(fn: (prev?: T) => T, current?: T): void;
22
- export declare function cleanup(fn: Disposable): void;
23
- export type Child = string | boolean | number | undefined | null | void | (() => Children) | Child[] | Ref | Refkey;
24
- export type Children = Child | Child[];
34
+ /**
35
+ * Register a cleanup function which is called when the current reactive scope
36
+ * is recalculated or disposed. This is useful to clean up any side effects
37
+ * created in the reactive scope.
38
+ *
39
+ * @remarks
40
+ *
41
+ * When onCleanup is called inside a component definition, the provided function
42
+ * is called when the component is removed from the tree. This can be useful to
43
+ * clean up any side effects created as a result of rendering the component. For
44
+ * example, if rendering a component creates a symbol, `onCleanup` can be used
45
+ * to remove the symbol when the component is removed from the tree.
46
+ *
47
+ * When onCleanup is called inside a memo or effect, the function is called when
48
+ * the effect is refreshed (e.g. when a memo or computed recalculates) or
49
+ * disposed (e.g. it is no longer needed because it is attached to a component
50
+ * which was removed).
51
+ */
52
+ export declare function onCleanup(fn: Disposable): void;
53
+ /**
54
+ * Create a custom reactive context for the children returned by
55
+ * the provided context.
56
+ */
57
+ export interface CustomContext {
58
+ [CUSTOM_CONTEXT_SYM]: true;
59
+ useCustomContext: (useCb: CustomContextChildrenCallback) => void;
60
+ }
61
+ export type CustomContextChildrenCallback = (child: Children) => void;
62
+ declare const CUSTOM_CONTEXT_SYM: unique symbol;
63
+ export declare function createCustomContext(useCallback: (useChildren: CustomContextChildrenCallback) => void): CustomContext;
64
+ export declare function isCustomContext(child: Children): child is CustomContext;
65
+ export type Child = string | boolean | number | undefined | null | void | (() => Children) | Ref | Refkey | CustomContext | IntrinsicElement;
66
+ export type Children = Child | Children[];
25
67
  export type Props = Record<string, any>;
26
68
  export interface ComponentDefinition<TProps = Props> {
27
- (props: TProps): Child | Children;
69
+ (props: TProps): Children;
28
70
  }
29
71
  export interface Component<TProps = Props> {
30
- (props: TProps): Child | Children;
72
+ (props: TProps): Children;
31
73
  tag?: symbol;
32
74
  }
33
75
  export interface ComponentCreator<TProps = Props> {
34
76
  component: Component<TProps>;
35
- (): Child | Children;
77
+ (): Children;
36
78
  props: Props;
37
79
  tag?: symbol;
38
80
  }
@@ -46,8 +88,53 @@ export declare function isComponentCreator(item: unknown): item is ComponentCrea
46
88
  */
47
89
  export declare namespace JSX {
48
90
  interface IntrinsicElements {
91
+ group: {
92
+ shouldBreak?: boolean;
93
+ id?: symbol;
94
+ children: Children;
95
+ };
96
+ line: {};
97
+ br: {};
98
+ hardline: {};
99
+ hbr: {};
100
+ softline: {};
101
+ sbr: {};
102
+ literalline: {};
103
+ lbr: {};
104
+ indent: {
105
+ children: Children;
106
+ };
107
+ fill: {
108
+ children: Children;
109
+ };
110
+ breakParent: {};
111
+ ifBreak: {
112
+ children: Children;
113
+ flatContents?: Children;
114
+ groupId?: symbol;
115
+ };
116
+ lineSuffix: {
117
+ children: Children;
118
+ };
119
+ lineSuffixBoundary: {};
120
+ dedent: {
121
+ children: Children;
122
+ };
123
+ align: {
124
+ children: Children;
125
+ width: number;
126
+ } | {
127
+ children: Children;
128
+ string: string;
129
+ };
130
+ markAsRoot: {
131
+ children: Children;
132
+ };
133
+ dedentToRoot: {
134
+ children: Children;
135
+ };
49
136
  }
50
- type ElementType = ComponentDefinition<any>;
137
+ type ElementType = string | ComponentDefinition<any>;
51
138
  type Element = Children;
52
139
  interface ElementChildrenAttribute {
53
140
  children: {};
@@ -60,7 +147,45 @@ export declare function jsx(type: Component<any>, props: Record<string, unknown>
60
147
  export declare const jsxs: typeof jsx;
61
148
  export declare function createComponent<TProps extends Props = Props>(C: Component<TProps>, props: TProps): ComponentCreator<TProps>;
62
149
  export declare function taggedComponent<TProps = Props>(tag: symbol, component: Component<TProps>): Component<TProps>;
150
+ export declare const intrinsicElementKey: unique symbol;
151
+ export type IndentIntrinsicElement = IntrinsicElementBase<"indent">;
152
+ export type BrIntrinsicElement = IntrinsicElementBase<"br">;
153
+ export type LineIntrinsicElement = IntrinsicElementBase<"line">;
154
+ export type HbrIntrinsicElement = IntrinsicElementBase<"hbr">;
155
+ export type HardlineIntrinsicElement = IntrinsicElementBase<"hardline">;
156
+ export type SbrIntrinsicElement = IntrinsicElementBase<"sbr">;
157
+ export type SoftlineIntrinsicElement = IntrinsicElementBase<"softline">;
158
+ export type GroupIntrinsicElement = IntrinsicElementBase<"group">;
159
+ export type AlignIntrinsicElement = IntrinsicElementBase<"align">;
160
+ export type FillIntrinsicElement = IntrinsicElementBase<"fill">;
161
+ export type BreakParentIntrinsicElement = IntrinsicElementBase<"breakParent">;
162
+ export type LineSuffixIntrinsicElement = IntrinsicElementBase<"lineSuffix">;
163
+ export type LineSuffixBoundaryIntrinsicElement = IntrinsicElementBase<"lineSuffixBoundary">;
164
+ export type DedentIntrinsicElement = IntrinsicElementBase<"dedent">;
165
+ export type DedentToRootIntrinsicElement = IntrinsicElementBase<"dedentToRoot">;
166
+ export type MarkAsRootIntrinsicElement = IntrinsicElementBase<"markAsRoot">;
167
+ export type LiterallineIntrinsicElement = IntrinsicElementBase<"literalline">;
168
+ export type LbrIntrinsicElement = IntrinsicElementBase<"lbr">;
169
+ export type IfBreakIntrinsicElement = IntrinsicElementBase<"ifBreak">;
170
+ export type IntrinsicElement = IndentIntrinsicElement | BrIntrinsicElement | LineIntrinsicElement | HbrIntrinsicElement | HardlineIntrinsicElement | SbrIntrinsicElement | SoftlineIntrinsicElement | GroupIntrinsicElement | AlignIntrinsicElement | FillIntrinsicElement | BreakParentIntrinsicElement | LineSuffixIntrinsicElement | LineSuffixBoundaryIntrinsicElement | DedentIntrinsicElement | LiterallineIntrinsicElement | LbrIntrinsicElement | DedentToRootIntrinsicElement | MarkAsRootIntrinsicElement | IfBreakIntrinsicElement;
171
+ export interface IntrinsicElementBase<TKey extends keyof JSX.IntrinsicElements = keyof JSX.IntrinsicElements> {
172
+ [intrinsicElementKey]: true;
173
+ name: TKey;
174
+ props: JSX.IntrinsicElements[TKey];
175
+ }
176
+ export declare function createIntrinsic<TKey extends keyof JSX.IntrinsicElements>(name: TKey, props: JSX.IntrinsicElements[TKey]): IntrinsicElementBase<TKey>;
177
+ export declare function isIntrinsicElement(type: unknown): type is IntrinsicElement;
63
178
  export declare function mergeProps<T, U>(source: T, source1: U): T & U;
64
179
  export declare function mergeProps<T, U, V>(source: T, source1: U, source2: V): T & U & V;
65
180
  export declare function mergeProps<T, U, V, W>(source: T, source1: U, source2: V, source3: W): T & U & V & W;
181
+ export type SplitProps<T, K extends (readonly (keyof T)[])[]> = [
182
+ ...{
183
+ [P in keyof K]: P extends `${number}` ? Pick<T, Extract<K[P], readonly (keyof T)[]>[number]> : never;
184
+ },
185
+ {
186
+ [P in keyof T as Exclude<P, K[number][number]>]: T[P];
187
+ }
188
+ ];
189
+ export declare function splitProps<T extends Record<any, any>, K extends [readonly (keyof T)[], ...(readonly (keyof T)[])[]]>(props: T, ...keys: K): SplitProps<T, K>;
190
+ export {};
66
191
  //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx-runtime.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,GAAG,EAKJ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AASrC,MAAM,WAAW,UAAU;IACzB,IAAI,IAAI,CAAC;CACV;AAED,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,UAAU,EAAE,CAAC;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