@powerlines/plugin-alloy 0.25.24 → 0.25.26

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 (190) hide show
  1. package/README.md +14 -16
  2. package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
  3. package/dist/_virtual/_rolldown/runtime.mjs +3 -0
  4. package/dist/core/components/index.cjs +1 -0
  5. package/dist/core/components/output.cjs +9 -8
  6. package/dist/core/components/output.d.cts +2 -3
  7. package/dist/core/components/output.d.cts.map +1 -1
  8. package/dist/core/components/output.d.mts +2 -3
  9. package/dist/core/components/output.d.mts.map +1 -1
  10. package/dist/core/components/single-line-comment.cjs +6 -5
  11. package/dist/core/components/single-line-comment.d.cts +2 -2
  12. package/dist/core/components/single-line-comment.d.cts.map +1 -1
  13. package/dist/core/components/single-line-comment.d.mts +2 -2
  14. package/dist/core/components/single-line-comment.d.mts.map +1 -1
  15. package/dist/core/components/source-file.cjs +14 -13
  16. package/dist/core/components/source-file.d.cts.map +1 -1
  17. package/dist/core/components/source-file.d.mts +2 -2
  18. package/dist/core/components/source-file.d.mts.map +1 -1
  19. package/dist/core/components/spacing.cjs +6 -5
  20. package/dist/core/components/spacing.d.cts.map +1 -1
  21. package/dist/core/components/spacing.d.mts +2 -2
  22. package/dist/core/components/spacing.d.mts.map +1 -1
  23. package/dist/core/contexts/context.cjs +5 -4
  24. package/dist/core/contexts/context.d.cts +0 -1
  25. package/dist/core/contexts/context.d.cts.map +1 -1
  26. package/dist/core/contexts/context.d.mts +0 -1
  27. package/dist/core/contexts/context.d.mts.map +1 -1
  28. package/dist/core/contexts/index.cjs +1 -0
  29. package/dist/core/contexts/meta.cjs +5 -4
  30. package/dist/core/contexts/meta.d.cts.map +1 -1
  31. package/dist/core/contexts/meta.d.mts.map +1 -1
  32. package/dist/core/contexts/reflection.cjs +11 -10
  33. package/dist/core/contexts/reflection.d.cts.map +1 -1
  34. package/dist/core/contexts/reflection.d.mts.map +1 -1
  35. package/dist/core/helpers/code.cjs +4 -3
  36. package/dist/core/helpers/code.d.cts +0 -1
  37. package/dist/core/helpers/code.d.cts.map +1 -1
  38. package/dist/core/helpers/code.d.mts +0 -1
  39. package/dist/core/helpers/code.d.mts.map +1 -1
  40. package/dist/core/helpers/index.cjs +1 -0
  41. package/dist/core/index.cjs +1 -0
  42. package/dist/core/index.d.cts +0 -3
  43. package/dist/core/index.d.mts +0 -3
  44. package/dist/helpers/capnp.cjs +65 -64
  45. package/dist/helpers/capnp.d.cts +0 -1
  46. package/dist/helpers/capnp.d.cts.map +1 -1
  47. package/dist/helpers/capnp.d.mts +0 -1
  48. package/dist/helpers/capnp.d.mts.map +1 -1
  49. package/dist/helpers/capnp.mjs +3 -3
  50. package/dist/helpers/create-builtin.cjs +4 -3
  51. package/dist/helpers/create-builtin.d.cts.map +1 -1
  52. package/dist/helpers/create-builtin.d.mts.map +1 -1
  53. package/dist/helpers/index.cjs +1 -0
  54. package/dist/helpers/refkey.cjs +4 -3
  55. package/dist/helpers/refkey.d.cts +0 -1
  56. package/dist/helpers/refkey.d.cts.map +1 -1
  57. package/dist/helpers/refkey.d.mts +0 -1
  58. package/dist/helpers/refkey.d.mts.map +1 -1
  59. package/dist/helpers/typescript.cjs +14 -13
  60. package/dist/helpers/typescript.d.cts.map +1 -1
  61. package/dist/helpers/typescript.d.mts.map +1 -1
  62. package/dist/index.cjs +8 -9
  63. package/dist/index.d.cts.map +1 -1
  64. package/dist/index.d.mts.map +1 -1
  65. package/dist/index.mjs +1 -2
  66. package/dist/markdown/components/front-matter.cjs +8 -7
  67. package/dist/markdown/components/front-matter.d.cts +2 -2
  68. package/dist/markdown/components/front-matter.d.cts.map +1 -1
  69. package/dist/markdown/components/front-matter.d.mts +2 -2
  70. package/dist/markdown/components/front-matter.d.mts.map +1 -1
  71. package/dist/markdown/components/index.cjs +1 -0
  72. package/dist/markdown/components/markdown-file.cjs +34 -33
  73. package/dist/markdown/components/markdown-file.d.cts +3 -3
  74. package/dist/markdown/components/markdown-file.d.cts.map +1 -1
  75. package/dist/markdown/components/markdown-file.d.mts +3 -3
  76. package/dist/markdown/components/markdown-file.d.mts.map +1 -1
  77. package/dist/markdown/components/markdown-table.cjs +26 -25
  78. package/dist/markdown/components/markdown-table.d.cts +4 -4
  79. package/dist/markdown/components/markdown-table.d.cts.map +1 -1
  80. package/dist/markdown/components/markdown-table.d.mts.map +1 -1
  81. package/dist/markdown/contexts/index.cjs +1 -0
  82. package/dist/markdown/contexts/markdown-table.cjs +7 -6
  83. package/dist/markdown/contexts/markdown-table.d.cts.map +1 -1
  84. package/dist/markdown/contexts/markdown-table.d.mts.map +1 -1
  85. package/dist/markdown/index.cjs +1 -0
  86. package/dist/markdown/index.d.cts +0 -2
  87. package/dist/markdown/index.d.mts +0 -2
  88. package/dist/render.cjs +10 -9
  89. package/dist/render.d.cts +0 -1
  90. package/dist/render.d.cts.map +1 -1
  91. package/dist/render.d.mts +0 -1
  92. package/dist/render.d.mts.map +1 -1
  93. package/dist/types/components.d.cts.map +1 -1
  94. package/dist/types/components.d.mts.map +1 -1
  95. package/dist/types/plugin.d.cts.map +1 -1
  96. package/dist/types/plugin.d.mts.map +1 -1
  97. package/dist/typescript/components/builtin-file.cjs +14 -13
  98. package/dist/typescript/components/builtin-file.d.cts +2 -2
  99. package/dist/typescript/components/builtin-file.d.cts.map +1 -1
  100. package/dist/typescript/components/builtin-file.d.mts +2 -2
  101. package/dist/typescript/components/builtin-file.d.mts.map +1 -1
  102. package/dist/typescript/components/class-declaration.cjs +57 -56
  103. package/dist/typescript/components/class-declaration.d.cts.map +1 -1
  104. package/dist/typescript/components/class-declaration.d.mts.map +1 -1
  105. package/dist/typescript/components/dynamic-import-statement.cjs +6 -5
  106. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  107. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -1
  108. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  109. package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -1
  110. package/dist/typescript/components/entry-file.cjs +12 -11
  111. package/dist/typescript/components/entry-file.d.cts +2 -2
  112. package/dist/typescript/components/entry-file.d.cts.map +1 -1
  113. package/dist/typescript/components/entry-file.d.mts +2 -2
  114. package/dist/typescript/components/entry-file.d.mts.map +1 -1
  115. package/dist/typescript/components/index.cjs +1 -0
  116. package/dist/typescript/components/infrastructure-file.cjs +11 -10
  117. package/dist/typescript/components/infrastructure-file.d.cts +2 -2
  118. package/dist/typescript/components/infrastructure-file.d.cts.map +1 -1
  119. package/dist/typescript/components/infrastructure-file.d.mts +2 -2
  120. package/dist/typescript/components/infrastructure-file.d.mts.map +1 -1
  121. package/dist/typescript/components/interface-declaration.cjs +59 -58
  122. package/dist/typescript/components/interface-declaration.d.cts +2 -2
  123. package/dist/typescript/components/interface-declaration.d.cts.map +1 -1
  124. package/dist/typescript/components/interface-declaration.d.mts +2 -2
  125. package/dist/typescript/components/interface-declaration.d.mts.map +1 -1
  126. package/dist/typescript/components/interface-declaration.mjs +2 -2
  127. package/dist/typescript/components/object-declaration.cjs +40 -39
  128. package/dist/typescript/components/object-declaration.d.cts +3 -3
  129. package/dist/typescript/components/object-declaration.d.cts.map +1 -1
  130. package/dist/typescript/components/object-declaration.d.mts +3 -3
  131. package/dist/typescript/components/object-declaration.d.mts.map +1 -1
  132. package/dist/typescript/components/property-name.cjs +8 -7
  133. package/dist/typescript/components/property-name.d.cts +2 -2
  134. package/dist/typescript/components/property-name.d.cts.map +1 -1
  135. package/dist/typescript/components/property-name.d.mts +2 -2
  136. package/dist/typescript/components/property-name.d.mts.map +1 -1
  137. package/dist/typescript/components/record-expression.cjs +4 -3
  138. package/dist/typescript/components/record-expression.d.cts.map +1 -1
  139. package/dist/typescript/components/record-expression.d.mts.map +1 -1
  140. package/dist/typescript/components/tsdoc-reflection.cjs +74 -73
  141. package/dist/typescript/components/tsdoc-reflection.d.cts +7 -7
  142. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -1
  143. package/dist/typescript/components/tsdoc-reflection.d.mts +7 -7
  144. package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -1
  145. package/dist/typescript/components/tsdoc.cjs +107 -106
  146. package/dist/typescript/components/tsdoc.d.cts.map +1 -1
  147. package/dist/typescript/components/tsdoc.d.mts.map +1 -1
  148. package/dist/typescript/components/tsdoc.mjs +2 -2
  149. package/dist/typescript/components/tsdoc.mjs.map +1 -1
  150. package/dist/typescript/components/type-declaration.cjs +11 -10
  151. package/dist/typescript/components/type-declaration.d.cts +2 -2
  152. package/dist/typescript/components/type-declaration.d.cts.map +1 -1
  153. package/dist/typescript/components/type-declaration.d.mts +2 -2
  154. package/dist/typescript/components/type-declaration.d.mts.map +1 -1
  155. package/dist/typescript/components/type-declaration.mjs +1 -1
  156. package/dist/typescript/components/type-parameters.cjs +17 -16
  157. package/dist/typescript/components/type-parameters.d.cts.map +1 -1
  158. package/dist/typescript/components/type-parameters.d.mts.map +1 -1
  159. package/dist/typescript/components/typescript-file.cjs +63 -62
  160. package/dist/typescript/components/typescript-file.d.cts.map +1 -1
  161. package/dist/typescript/components/typescript-file.d.mts.map +1 -1
  162. package/dist/typescript/contexts/index.cjs +1 -0
  163. package/dist/typescript/contexts/lexical-scope.cjs +8 -7
  164. package/dist/typescript/contexts/lexical-scope.d.cts +2 -2
  165. package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -1
  166. package/dist/typescript/contexts/lexical-scope.d.mts +2 -2
  167. package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -1
  168. package/dist/typescript/contexts/member-scope.cjs +8 -7
  169. package/dist/typescript/contexts/member-scope.d.cts.map +1 -1
  170. package/dist/typescript/contexts/member-scope.d.mts.map +1 -1
  171. package/dist/typescript/helpers/get-call-signature-props.cjs +5 -4
  172. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -1
  173. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -1
  174. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -1
  175. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -1
  176. package/dist/typescript/helpers/index.cjs +1 -0
  177. package/dist/typescript/helpers/utilities.cjs +1 -0
  178. package/dist/typescript/helpers/utilities.d.cts.map +1 -1
  179. package/dist/typescript/helpers/utilities.d.mts.map +1 -1
  180. package/dist/typescript/index.cjs +1 -0
  181. package/dist/typescript/index.d.cts +0 -3
  182. package/dist/typescript/index.d.mts +0 -3
  183. package/dist/yaml/components/index.cjs +1 -0
  184. package/dist/yaml/components/yaml-file.cjs +34 -33
  185. package/dist/yaml/components/yaml-file.d.cts.map +1 -1
  186. package/dist/yaml/components/yaml-file.d.mts.map +1 -1
  187. package/dist/yaml/index.cjs +1 -0
  188. package/dist/yaml/index.d.cts +0 -1
  189. package/dist/yaml/index.d.mts +0 -1
  190. package/package.json +8 -8
@@ -1,14 +1,15 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
3
  const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
3
4
  const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
4
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
- let __alloy_js_core = require("@alloy-js/core");
6
- let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
7
- let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
8
- let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
9
- let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
10
- let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
11
- let __alloy_js_typescript = require("@alloy-js/typescript");
5
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let _alloy_js_core = require("@alloy-js/core");
7
+ let _powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
8
+ let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
9
+ let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
10
+ let _stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
11
+ let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
12
+ let _alloy_js_typescript = require("@alloy-js/typescript");
12
13
 
13
14
  //#region src/typescript/components/object-declaration.tsx
14
15
  /**
@@ -16,36 +17,36 @@ let __alloy_js_typescript = require("@alloy-js/typescript");
16
17
  */
17
18
  function ObjectDeclaration(props) {
18
19
  if (!props.reflection?.value) return null;
19
- const objectName = (0, __alloy_js_core.computed)(() => (0, __stryke_string_format_camel_case.camelCase)(((0, __stryke_type_checks_is_string.isString)(props.name) ? props.name : props.name.toString()) || props.reflection.value.getName()));
20
- const objectType = (0, __alloy_js_core.computed)(() => props.type || (0, __stryke_string_format_pascal_case.pascalCase)(props.reflection.value.getName()));
21
- const properties = (0, __alloy_js_core.computed)(() => props.reflection.value.getProperties().filter((item) => !item.isIgnored() && !(0, __stryke_type_checks_is_undefined.isUndefined)(props.defaultValue?.value?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
22
- if ((0, __stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, __stryke_type_checks_is_undefined.isUndefined)(props.defaultValue?.value?.[alias])) return props.defaultValue?.value?.[alias];
20
+ const objectName = (0, _alloy_js_core.computed)(() => (0, _stryke_string_format_camel_case.camelCase)(((0, _stryke_type_checks_is_string.isString)(props.name) ? props.name : props.name.toString()) || props.reflection.value.getName()));
21
+ const objectType = (0, _alloy_js_core.computed)(() => props.type || (0, _stryke_string_format_pascal_case.pascalCase)(props.reflection.value.getName()));
22
+ const properties = (0, _alloy_js_core.computed)(() => props.reflection.value.getProperties().filter((item) => !item.isIgnored() && !(0, _stryke_type_checks_is_undefined.isUndefined)(props.defaultValue?.value?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
23
+ if ((0, _stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, _stryke_type_checks_is_undefined.isUndefined)(props.defaultValue?.value?.[alias])) return props.defaultValue?.value?.[alias];
23
24
  return ret;
24
25
  }, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1));
25
- const TypeSymbolSlot = (0, __alloy_js_core.createSymbolSlot)();
26
- const ValueTypeSymbolSlot = (0, __alloy_js_core.createSymbolSlot)();
27
- const sym = (0, __alloy_js_typescript.createValueSymbol)(props.name, {
26
+ const TypeSymbolSlot = (0, _alloy_js_core.createSymbolSlot)();
27
+ const ValueTypeSymbolSlot = (0, _alloy_js_core.createSymbolSlot)();
28
+ const sym = (0, _alloy_js_typescript.createValueSymbol)(props.name, {
28
29
  refkeys: props.refkey,
29
30
  default: props.default,
30
31
  export: props.export,
31
32
  metadata: props.metadata,
32
- tsFlags: props.nullish ? __alloy_js_typescript.TSSymbolFlags.Nullish : __alloy_js_typescript.TSSymbolFlags.None,
33
+ tsFlags: props.nullish ? _alloy_js_typescript.TSSymbolFlags.Nullish : _alloy_js_typescript.TSSymbolFlags.None,
33
34
  type: props.type ? TypeSymbolSlot.firstSymbol : void 0,
34
- namePolicy: (0, __alloy_js_typescript.useTSNamePolicy)().for("variable")
35
+ namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("variable")
35
36
  });
36
37
  if (!props.type) ValueTypeSymbolSlot.moveMembersTo(sym);
37
38
  const keyword = props.var ? "var" : props.let ? "let" : "const";
38
- const type = props.type ? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeRefContext, { get children() {
39
- return [": ", (0, __alloy_js_core_jsx_runtime.createComponent)(TypeSymbolSlot, { get children() {
39
+ const type = props.type ? (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
40
+ return [": ", (0, _alloy_js_core_jsx_runtime.createComponent)(TypeSymbolSlot, { get children() {
40
41
  return props.type;
41
42
  } })];
42
43
  } }) : void 0;
43
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
44
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
44
45
  get when() {
45
46
  return !!props.reflection.value;
46
47
  },
47
48
  get children() {
48
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
49
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
49
50
  get value() {
50
51
  return {
51
52
  reflection: props.reflection.value,
@@ -57,34 +58,34 @@ function ObjectDeclaration(props) {
57
58
  };
58
59
  },
59
60
  get children() {
60
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
61
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
61
62
  get when() {
62
63
  return !!objectName.value && !!objectType.value;
63
64
  },
64
65
  get children() {
65
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, { get reflection() {
66
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, { get reflection() {
66
67
  return props.reflection.value;
67
- } }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Declaration, {
68
+ } }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Declaration, {
68
69
  symbol: sym,
69
70
  get children() {
70
71
  return [
71
- (0, __alloy_js_core_jsx_runtime.memo)(() => props.export ? "export " : ""),
72
- (0, __alloy_js_core_jsx_runtime.memo)(() => props.default ? "default " : ""),
72
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.export ? "export " : ""),
73
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.default ? "default " : ""),
73
74
  keyword,
74
75
  " ",
75
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Name, {}),
76
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Name, {}),
76
77
  type,
77
78
  " =",
78
79
  " ",
79
- (0, __alloy_js_core_jsx_runtime.createComponent)(ValueTypeSymbolSlot, { get children() {
80
- return props.initializer ?? props.children ?? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ObjectExpression, { get children() {
81
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
80
+ (0, _alloy_js_core_jsx_runtime.createComponent)(ValueTypeSymbolSlot, { get children() {
81
+ return props.initializer ?? props.children ?? (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ObjectExpression, { get children() {
82
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
82
83
  get each() {
83
84
  return properties.value ?? [];
84
85
  },
85
86
  comma: true,
86
87
  doubleHardline: true,
87
- children: (prop) => (0, __alloy_js_core_jsx_runtime.createComponent)(ObjectDeclarationProperty, { property: prop })
88
+ children: (prop) => (0, _alloy_js_core_jsx_runtime.createComponent)(ObjectDeclarationProperty, { property: prop })
88
89
  });
89
90
  } });
90
91
  } })
@@ -92,7 +93,7 @@ function ObjectDeclaration(props) {
92
93
  }
93
94
  })];
94
95
  }
95
- }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
96
+ }), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
96
97
  }
97
98
  });
98
99
  }
@@ -102,21 +103,21 @@ function ObjectDeclaration(props) {
102
103
  * Generates a TypeScript object property for the given reflection class.
103
104
  */
104
105
  function ObjectDeclarationProperty(props) {
105
- const [{ property }] = (0, __alloy_js_core.splitProps)(props, ["property"]);
106
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
106
+ const [{ property }] = (0, _alloy_js_core.splitProps)(props, ["property"]);
107
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
107
108
  value: property,
108
109
  get children() {
109
110
  return [
110
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionProperty, { reflection: property }),
111
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ObjectProperty, {
111
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionProperty, { reflection: property }),
112
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ObjectProperty, {
112
113
  get name() {
113
114
  return property.getNameAsString();
114
115
  },
115
116
  get value() {
116
- return (0, __powerlines_deepkit_utilities.stringifyDefaultValue)(property);
117
+ return (0, _powerlines_deepkit_utilities.stringifyDefaultValue)(property);
117
118
  }
118
119
  }),
119
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
120
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
120
121
  ];
121
122
  }
122
123
  });
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core17 from "@alloy-js/core";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
  import { VarDeclarationProps } from "@alloy-js/typescript";
5
5
 
@@ -17,11 +17,11 @@ interface ObjectDeclarationPropertyProps extends ComponentProps {
17
17
  /**
18
18
  * Generates a TypeScript object for the given reflection class.
19
19
  */
20
- declare function ObjectDeclaration<T extends Record<string, any> = Record<string, any>>(props: ObjectDeclarationProps<T>): _alloy_js_core17.Children;
20
+ declare function ObjectDeclaration<T extends Record<string, any> = Record<string, any>>(props: ObjectDeclarationProps<T>): _alloy_js_core0.Children;
21
21
  /**
22
22
  * Generates a TypeScript object property for the given reflection class.
23
23
  */
24
- declare function ObjectDeclarationProperty(props: ObjectDeclarationPropertyProps): _alloy_js_core17.Children;
24
+ declare function ObjectDeclarationProperty(props: ObjectDeclarationPropertyProps): _alloy_js_core0.Children;
25
25
  declare type __ΩComputedRef = any[];
26
26
  declare type __ΩObjectDeclarationProps = any[];
27
27
  declare type __ΩObjectDeclarationPropertyProps = any[];
@@ -1 +1 @@
1
- {"version":3,"file":"object-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/object-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,sBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHE,CAGU,eAHY,CAGI,CAHJ,CAAA,CAAA;EAC3B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,8BAAA,SAAuC,cAJb,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,iBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,sBAdC,CAcsB,CAdtB,CAAA,CAAA,EAcqB,gBAAA,CAAG,QAdxB;;AAKV;AAOA;AACY,iBAkHI,yBAAA,CAlHJ,KAAA,EAmHH,8BAnHG,CAAA,EAmH2B,gBAAA,CAAA,QAnH3B;AAAsB,8BAAA,GAAA,EAAA;AACF,yCAAA,GAAA,EAAA;AAAvB,iDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"object-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/object-declaration.tsx"],"mappings":";;;;;;UAuDiB,WAAA;EAAA,SACN,KAAA,EAAO,CAAA;AAAA;AAAA,UAGD,sBAAA,WACL,MAAA,gBAAsB,MAAA,uBACxB,mBAAA;EACR,UAAA,GAAa,WAAA,CAAY,eAAA,CAAgB,CAAA;EACzC,YAAA,GAAe,WAAA,CAAY,OAAA,CAAQ,CAAA;AAAA;AAAA,UAGpB,8BAAA,SAAuC,cAAA;EACtD,QAAA,EAAU,kBAAA;AAAA;;;AARZ;iBAcgB,iBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,sBAAA,CAAuB,CAAA,IAAD,eAAA,CAAG,QAAA;;;;iBAiHlB,yBAAA,CACd,KAAA,EAAO,8BAAA,GAA8B,eAAA,CAAA,QAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core10 from "@alloy-js/core";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
  import { VarDeclarationProps } from "@alloy-js/typescript";
5
5
 
@@ -17,11 +17,11 @@ interface ObjectDeclarationPropertyProps extends ComponentProps {
17
17
  /**
18
18
  * Generates a TypeScript object for the given reflection class.
19
19
  */
20
- declare function ObjectDeclaration<T extends Record<string, any> = Record<string, any>>(props: ObjectDeclarationProps<T>): _alloy_js_core10.Children;
20
+ declare function ObjectDeclaration<T extends Record<string, any> = Record<string, any>>(props: ObjectDeclarationProps<T>): _alloy_js_core0.Children;
21
21
  /**
22
22
  * Generates a TypeScript object property for the given reflection class.
23
23
  */
24
- declare function ObjectDeclarationProperty(props: ObjectDeclarationPropertyProps): _alloy_js_core10.Children;
24
+ declare function ObjectDeclarationProperty(props: ObjectDeclarationPropertyProps): _alloy_js_core0.Children;
25
25
  declare type __ΩComputedRef = any[];
26
26
  declare type __ΩObjectDeclarationProps = any[];
27
27
  declare type __ΩObjectDeclarationPropertyProps = any[];
@@ -1 +1 @@
1
- {"version":3,"file":"object-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/object-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,sBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHE,CAGU,eAHY,CAGI,CAHJ,CAAA,CAAA;EAC3B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,8BAAA,SAAuC,cAJb,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,iBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,sBAdC,CAcsB,CAdtB,CAAA,CAAA,EAcqB,gBAAA,CAAG,QAdxB;;AAKV;AAOA;AACY,iBAkHI,yBAAA,CAlHJ,KAAA,EAmHH,8BAnHG,CAAA,EAmH2B,gBAAA,CAAA,QAnH3B;AAAsB,8BAAA,GAAA,EAAA;AACF,yCAAA,GAAA,EAAA;AAAvB,iDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"object-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/object-declaration.tsx"],"mappings":";;;;;;UAuDiB,WAAA;EAAA,SACN,KAAA,EAAO,CAAA;AAAA;AAAA,UAGD,sBAAA,WACL,MAAA,gBAAsB,MAAA,uBACxB,mBAAA;EACR,UAAA,GAAa,WAAA,CAAY,eAAA,CAAgB,CAAA;EACzC,YAAA,GAAe,WAAA,CAAY,OAAA,CAAQ,CAAA;AAAA;AAAA,UAGpB,8BAAA,SAAuC,cAAA;EACtD,QAAA,EAAU,kBAAA;AAAA;;;AARZ;iBAcgB,iBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,sBAAA,CAAuB,CAAA,IAAD,eAAA,CAAG,QAAA;;;;iBAiHlB,yBAAA,CACd,KAAA,EAAO,8BAAA,GAA8B,eAAA,CAAA,QAAA;AAAA"}
@@ -1,7 +1,8 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
3
  const require_typescript_helpers_utilities = require('../helpers/utilities.cjs');
3
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
- let __alloy_js_core = require("@alloy-js/core");
4
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
+ let _alloy_js_core = require("@alloy-js/core");
5
6
 
6
7
  //#region src/typescript/components/property-name.tsx
7
8
  /**
@@ -11,15 +12,15 @@ let __alloy_js_core = require("@alloy-js/core");
11
12
  * If the name is not a valid JavaScript identifier, it will be quoted. If a `name` prop is provided, it will be used as the property name. Otherwise, the name will be taken from the {@link (MemberDeclarationContext:variable)}.
12
13
  */
13
14
  function PropertyName(props) {
14
- if (props.name) return (0, __alloy_js_core_jsx_runtime.memo)(() => {
15
+ if (props.name) return (0, _alloy_js_core_jsx_runtime.memo)(() => {
15
16
  if (props.private) return `#${props.name}`;
16
17
  return quoteIfNeeded(props.name);
17
18
  });
18
19
  else {
19
- const declSymbol = (0, __alloy_js_core.useContext)(__alloy_js_core.MemberDeclarationContext);
20
+ const declSymbol = (0, _alloy_js_core.useContext)(_alloy_js_core.MemberDeclarationContext);
20
21
  if (!declSymbol) return "(no member declaration context)";
21
- if (declSymbol.isPrivateMemberSymbol) return ["#", (0, __alloy_js_core_jsx_runtime.memo)(() => declSymbol.name)];
22
- else return [(0, __alloy_js_core_jsx_runtime.memo)(() => quoteIfNeeded(declSymbol.name))];
22
+ if (declSymbol.isPrivateMemberSymbol) return ["#", (0, _alloy_js_core_jsx_runtime.memo)(() => declSymbol.name)];
23
+ else return [(0, _alloy_js_core_jsx_runtime.memo)(() => quoteIfNeeded(declSymbol.name))];
23
24
  }
24
25
  }
25
26
  function quoteIfNeeded(name) {
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core16 from "@alloy-js/core";
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
2
 
3
3
  //#region src/typescript/components/property-name.d.ts
4
4
  interface PropertyNameProps {
@@ -17,7 +17,7 @@ interface PropertyNameProps {
17
17
  * @remarks
18
18
  * If the name is not a valid JavaScript identifier, it will be quoted. If a `name` prop is provided, it will be used as the property name. Otherwise, the name will be taken from the {@link (MemberDeclarationContext:variable)}.
19
19
  */
20
- declare function PropertyName(props: PropertyNameProps): _alloy_js_core16.Children;
20
+ declare function PropertyName(props: PropertyNameProps): _alloy_js_core0.Children;
21
21
  declare type __ΩPropertyNameProps = any[];
22
22
  //#endregion
23
23
  export { PropertyName, PropertyNameProps, __ΩPropertyNameProps };
@@ -1 +1 @@
1
- {"version":3,"file":"property-name.d.cts","names":[],"sources":["../../../src/typescript/components/property-name.tsx"],"sourcesContent":[],"mappings":";;;UAuBiB,iBAAA;;;AAAjB;EAkBgB,IAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;iBAAA,YAAA,QAAoB,oBAAiB,gBAAA,CAAA"}
1
+ {"version":3,"file":"property-name.d.cts","names":[],"sources":["../../../src/typescript/components/property-name.tsx"],"mappings":";;;UAuBiB,iBAAA;;;AAAjB;EAIE,IAAA;;;;EAKA,OAAA;AAAA;;;;;;;iBASc,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,eAAA,CAAA,QAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core14 from "@alloy-js/core";
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
2
 
3
3
  //#region src/typescript/components/property-name.d.ts
4
4
  interface PropertyNameProps {
@@ -17,7 +17,7 @@ interface PropertyNameProps {
17
17
  * @remarks
18
18
  * If the name is not a valid JavaScript identifier, it will be quoted. If a `name` prop is provided, it will be used as the property name. Otherwise, the name will be taken from the {@link (MemberDeclarationContext:variable)}.
19
19
  */
20
- declare function PropertyName(props: PropertyNameProps): _alloy_js_core14.Children;
20
+ declare function PropertyName(props: PropertyNameProps): _alloy_js_core0.Children;
21
21
  declare type __ΩPropertyNameProps = any[];
22
22
  //#endregion
23
23
  export { PropertyName, PropertyNameProps, __ΩPropertyNameProps };
@@ -1 +1 @@
1
- {"version":3,"file":"property-name.d.mts","names":[],"sources":["../../../src/typescript/components/property-name.tsx"],"sourcesContent":[],"mappings":";;;UAuBiB,iBAAA;;;AAAjB;EAkBgB,IAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;iBAAA,YAAA,QAAoB,oBAAiB,gBAAA,CAAA"}
1
+ {"version":3,"file":"property-name.d.mts","names":[],"sources":["../../../src/typescript/components/property-name.tsx"],"mappings":";;;UAuBiB,iBAAA;;;AAAjB;EAIE,IAAA;;;;EAKA,OAAA;AAAA;;;;;;;iBASc,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,eAAA,CAAA,QAAA;AAAA"}
@@ -1,9 +1,10 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- let __alloy_js_core = require("@alloy-js/core");
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ let _alloy_js_core = require("@alloy-js/core");
3
4
 
4
5
  //#region src/typescript/components/record-expression.tsx
5
6
  function RecordExpression({ elementType }) {
6
- return __alloy_js_core.code`
7
+ return _alloy_js_core.code`
7
8
  Record<string, ${elementType}>
8
9
  `;
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"record-expression.d.cts","names":[],"sources":["../../../src/typescript/components/record-expression.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,qBAAA;eACF;AADf;AAIgB,iBAAA,gBAAA,CAAgB;EAAA;AAAA,CAAA,EAAkB,qBAAlB,CAAA,EAAuC,QAAvC;AAAG,wCAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"record-expression.d.cts","names":[],"sources":["../../../src/typescript/components/record-expression.tsx"],"mappings":";;;UAoBiB,qBAAA;EACf,WAAA,EAAa,QAAA;AAAA;AAAA,iBAGC,gBAAA,CAAA;EAAmB;AAAA,GAAe,qBAAA,GAAqB,QAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"record-expression.d.mts","names":[],"sources":["../../../src/typescript/components/record-expression.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,qBAAA;eACF;AADf;AAIgB,iBAAA,gBAAA,CAAgB;EAAA;AAAA,CAAA,EAAkB,qBAAlB,CAAA,EAAuC,QAAvC;AAAG,wCAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"record-expression.d.mts","names":[],"sources":["../../../src/typescript/components/record-expression.tsx"],"mappings":";;;UAoBiB,qBAAA;EACf,WAAA,EAAa,QAAA;AAAA;AAAA,iBAGC,gBAAA,CAAA;EAAmB;AAAA,GAAe,qBAAA,GAAqB,QAAA;AAAA"}