@powerlines/plugin-alloy 0.15.6 → 0.15.8

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 (92) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +8 -0
  2. package/dist/_virtual/rolldown_runtime.mjs +29 -0
  3. package/dist/core/components/output.cjs +6 -6
  4. package/dist/core/components/output.d.cts +3 -3
  5. package/dist/core/components/output.d.mts +3 -3
  6. package/dist/core/components/output.mjs +1 -1
  7. package/dist/core/components/single-line-comment.cjs +2 -2
  8. package/dist/core/components/single-line-comment.d.cts +2 -2
  9. package/dist/core/components/single-line-comment.d.mts +2 -2
  10. package/dist/core/components/single-line-comment.mjs +1 -1
  11. package/dist/core/components/source-file.cjs +7 -7
  12. package/dist/core/components/source-file.d.cts +3 -3
  13. package/dist/core/components/source-file.d.mts +3 -3
  14. package/dist/core/components/source-file.mjs +1 -1
  15. package/dist/core/contexts/context.cjs +3 -3
  16. package/dist/core/contexts/context.d.cts +1 -1
  17. package/dist/core/contexts/context.d.mts +1 -1
  18. package/dist/core/contexts/context.mjs +1 -1
  19. package/dist/core/contexts/reflection.cjs +9 -9
  20. package/dist/core/contexts/reflection.d.cts +1 -1
  21. package/dist/core/contexts/reflection.d.mts +1 -1
  22. package/dist/core/contexts/reflection.mjs +1 -1
  23. package/dist/core/index.d.cts +2 -0
  24. package/dist/helpers/capnp.cjs +2 -2
  25. package/dist/helpers/capnp.mjs +2 -2
  26. package/dist/helpers/create-builtin.d.cts +1 -1
  27. package/dist/helpers/create-builtin.d.mts +1 -1
  28. package/dist/helpers/index.cjs +2 -2
  29. package/dist/helpers/index.mjs +2 -2
  30. package/dist/helpers/refkey.cjs +2 -2
  31. package/dist/helpers/refkey.d.cts +1 -1
  32. package/dist/helpers/refkey.d.mts +1 -1
  33. package/dist/helpers/refkey.mjs +1 -1
  34. package/dist/index.cjs +15 -114
  35. package/dist/index.d.cts +3 -24
  36. package/dist/index.d.mts +3 -29
  37. package/dist/index.mjs +15 -38
  38. package/dist/markdown/components/markdown-file.cjs +12 -12
  39. package/dist/markdown/components/markdown-file.d.cts +5 -5
  40. package/dist/markdown/components/markdown-file.d.mts +5 -5
  41. package/dist/markdown/components/markdown-file.mjs +1 -1
  42. package/dist/markdown/components/markdown-table.cjs +17 -17
  43. package/dist/markdown/components/markdown-table.d.cts +4 -4
  44. package/dist/markdown/components/markdown-table.d.mts +4 -4
  45. package/dist/markdown/components/markdown-table.mjs +1 -1
  46. package/dist/markdown/contexts/markdown-table.cjs +5 -5
  47. package/dist/markdown/contexts/markdown-table.d.cts +1 -1
  48. package/dist/markdown/contexts/markdown-table.d.mts +1 -1
  49. package/dist/markdown/contexts/markdown-table.mjs +1 -1
  50. package/dist/markdown/index.d.cts +2 -0
  51. package/dist/types/components.d.cts +4 -5
  52. package/dist/types/components.d.mts +1 -2
  53. package/dist/types/plugin.d.cts +2 -3
  54. package/dist/types/plugin.d.mts +1 -2
  55. package/dist/typescript/components/builtin-file.cjs +2 -2
  56. package/dist/typescript/components/builtin-file.d.cts +2 -2
  57. package/dist/typescript/components/builtin-file.mjs +1 -1
  58. package/dist/typescript/components/dynamic-import-statement.cjs +2 -2
  59. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  60. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  61. package/dist/typescript/components/dynamic-import-statement.mjs +1 -1
  62. package/dist/typescript/components/entry-file.cjs +3 -3
  63. package/dist/typescript/components/entry-file.d.cts +2 -2
  64. package/dist/typescript/components/entry-file.d.mts +2 -2
  65. package/dist/typescript/components/entry-file.mjs +1 -1
  66. package/dist/typescript/components/record-expression.cjs +2 -2
  67. package/dist/typescript/components/record-expression.d.cts +1 -1
  68. package/dist/typescript/components/record-expression.d.mts +1 -1
  69. package/dist/typescript/components/record-expression.mjs +1 -1
  70. package/dist/typescript/components/tsdoc-reflection.cjs +26 -26
  71. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  72. package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
  73. package/dist/typescript/components/tsdoc-reflection.mjs +1 -1
  74. package/dist/typescript/components/tsdoc.cjs +45 -45
  75. package/dist/typescript/components/tsdoc.d.cts +1 -1
  76. package/dist/typescript/components/tsdoc.d.mts +1 -1
  77. package/dist/typescript/components/tsdoc.mjs +1 -1
  78. package/dist/typescript/components/typescript-file.cjs +20 -20
  79. package/dist/typescript/components/typescript-file.d.cts +1 -1
  80. package/dist/typescript/components/typescript-file.d.mts +1 -1
  81. package/dist/typescript/components/typescript-file.mjs +1 -1
  82. package/dist/typescript/components/typescript-interface.cjs +5 -5
  83. package/dist/typescript/components/typescript-interface.mjs +1 -1
  84. package/dist/typescript/components/typescript-object.cjs +12 -12
  85. package/dist/typescript/components/typescript-object.d.cts +3 -3
  86. package/dist/typescript/components/typescript-object.d.mts +3 -3
  87. package/dist/typescript/components/typescript-object.mjs +1 -1
  88. package/dist/typescript/index.d.cts +1 -0
  89. package/dist/vendor.cjs +14 -12588
  90. package/dist/vendor.js +99 -103
  91. package/dist/vendor.mjs +11 -0
  92. package/package.json +7 -23
@@ -3,7 +3,7 @@ const require_core_contexts_context = require('../../core/contexts/context.cjs')
3
3
  const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
4
4
  const require_core_components_source_file = require('../../core/components/source-file.cjs');
5
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
- let __alloy_js_core = require("@alloy-js/core");
6
+ let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
7
7
  let __stryke_path_append = require("@stryke/path/append");
8
8
  let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
9
9
  let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
@@ -18,7 +18,7 @@ let __stryke_type_checks_is_boolean = require("@stryke/type-checks/is-boolean");
18
18
  * @returns The rendered source file component.
19
19
  */
20
20
  function TypescriptFile(props) {
21
- const [{ children, path, imports, tsx, header, hashbang }, rest] = (0, __alloy_js_core.splitProps)(props, [
21
+ const [{ children, path, imports, tsx, header, hashbang }, rest] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, [
22
22
  "children",
23
23
  "path",
24
24
  "imports",
@@ -26,12 +26,12 @@ function TypescriptFile(props) {
26
26
  "header",
27
27
  "hashbang"
28
28
  ]);
29
- const directoryContext = (0, __alloy_js_core.useContext)(__alloy_js_core.SourceDirectoryContext);
29
+ const directoryContext = (0, __powerlines_plugin_alloy_vendor.useContext)(__powerlines_plugin_alloy_vendor.SourceDirectoryContext);
30
30
  const sdData = (0, __alloy_js_typescript.getSourceDirectoryData)(directoryContext);
31
31
  const modulePath = (0, __stryke_path_append.appendPath)(path, directoryContext.path);
32
- const scope = new __alloy_js_typescript.TSModuleScope(modulePath, (0, __alloy_js_core.useScope)());
32
+ const scope = new __alloy_js_typescript.TSModuleScope(modulePath, (0, __powerlines_plugin_alloy_vendor.useScope)());
33
33
  sdData.modules.add(scope);
34
- const pkg = (0, __alloy_js_core.useContext)(__alloy_js_typescript.PackageContext);
34
+ const pkg = (0, __powerlines_plugin_alloy_vendor.useContext)(__alloy_js_typescript.PackageContext);
35
35
  if (pkg) pkg.scope.addModule(scope);
36
36
  if (props.export) {
37
37
  if (pkg) if ((0, __stryke_type_checks_is_boolean.isBoolean)(props.export)) pkg.scope.addExport(modulePath, scope);
@@ -40,7 +40,7 @@ function TypescriptFile(props) {
40
40
  return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.SourceFileContext.Provider, {
41
41
  value: { scope },
42
42
  get children() {
43
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Scope, {
43
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Scope, {
44
44
  value: scope,
45
45
  get children() {
46
46
  return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
@@ -74,15 +74,15 @@ function TypescriptFileHeader(props) {
74
74
  const { header, hashbang, disableEslint = true, disableBiome = true, disablePrettier = false, children } = props;
75
75
  const context = require_core_contexts_context.usePowerlines();
76
76
  return [
77
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
77
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
78
78
  get when() {
79
79
  return Boolean(hashbang);
80
80
  },
81
81
  get children() {
82
- return [(0, __alloy_js_core_jsx_runtime.memo)(() => hashbang === true ? __alloy_js_core.code`#!/usr/bin/env ${context?.config.mode === "development" ? "-S NODE_OPTIONS=--enable-source-maps" : ""} node` : hashbang), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
82
+ return [(0, __alloy_js_core_jsx_runtime.memo)(() => hashbang === true ? __powerlines_plugin_alloy_vendor.code`#!/usr/bin/env ${context?.config.mode === "development" ? "-S NODE_OPTIONS=--enable-source-maps" : ""} node` : hashbang), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
83
83
  }
84
84
  }),
85
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
85
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
86
86
  get when() {
87
87
  return Boolean(header);
88
88
  },
@@ -91,7 +91,7 @@ function TypescriptFileHeader(props) {
91
91
  }
92
92
  }),
93
93
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
94
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
94
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
95
95
  get when() {
96
96
  return Boolean(disableEslint);
97
97
  },
@@ -102,7 +102,7 @@ function TypescriptFileHeader(props) {
102
102
  }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
103
103
  }
104
104
  }),
105
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
105
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
106
106
  get when() {
107
107
  return Boolean(disablePrettier);
108
108
  },
@@ -113,7 +113,7 @@ function TypescriptFileHeader(props) {
113
113
  }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
114
114
  }
115
115
  }),
116
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
116
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
117
117
  get when() {
118
118
  return Boolean(disableBiome);
119
119
  },
@@ -121,7 +121,7 @@ function TypescriptFileHeader(props) {
121
121
  return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, { children: "biome-ignore lint: disable" }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
122
122
  }
123
123
  }),
124
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
124
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
125
125
  get when() {
126
126
  return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
127
127
  },
@@ -129,7 +129,7 @@ function TypescriptFileHeader(props) {
129
129
  return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
130
130
  }
131
131
  }),
132
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
132
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
133
133
  get when() {
134
134
  return Boolean(children);
135
135
  },
@@ -138,10 +138,10 @@ function TypescriptFileHeader(props) {
138
138
  }
139
139
  }),
140
140
  (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, { get children() {
141
- return __alloy_js_core.code`Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config.framework) || "Powerlines"}`;
141
+ return __powerlines_plugin_alloy_vendor.code`Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config.framework) || "Powerlines"}`;
142
142
  } }),
143
143
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
144
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, { children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command` }),
144
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, { children: __powerlines_plugin_alloy_vendor.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command` }),
145
145
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
146
146
  ];
147
147
  }
@@ -155,23 +155,23 @@ function TypescriptFileHeaderImports(props) {
155
155
  const { imports } = props;
156
156
  const sourceFile = (0, __alloy_js_typescript.useSourceFile)();
157
157
  const scope = props.scope ?? sourceFile.scope;
158
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
158
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
159
159
  get when() {
160
160
  return scope.importedModules.size > 0 || !!imports && Object.keys(imports).length > 0;
161
161
  },
162
162
  get children() {
163
163
  return [
164
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
164
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
165
165
  get when() {
166
166
  return !!imports && Object.keys(imports).length > 0;
167
167
  },
168
168
  get children() {
169
169
  return Object.entries(imports ?? {}).map(([module$1, imported]) => {
170
- return __alloy_js_core.code`import ${imported === null ? "" : imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).length > 0 && imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? ", " : "") + (imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? `{ ${imported.map((i) => (0, __stryke_type_checks_is_string.isString)(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")} from "${module$1}";`;
170
+ return __powerlines_plugin_alloy_vendor.code`import ${imported === null ? "" : imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).length > 0 && imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? ", " : "") + (imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? `{ ${imported.map((i) => (0, __stryke_type_checks_is_string.isString)(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")} from "${module$1}";`;
171
171
  });
172
172
  }
173
173
  }),
174
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
174
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
175
175
  get when() {
176
176
  return scope.importedModules.size > 0;
177
177
  },
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, SourceFileHeaderProps, TypescriptFileImports } from "../../types/components.cjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
3
- import { Children } from "@alloy-js/core";
3
+ import { Children } from "@powerlines/plugin-alloy/vendor";
4
4
  import { TSModuleScope } from "@alloy-js/typescript";
5
5
 
6
6
  //#region src/typescript/components/typescript-file.d.ts
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, SourceFileHeaderProps, TypescriptFileImports } from "../../types/components.mjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
3
- import { Children } from "@alloy-js/core";
3
+ import { Children } from "@powerlines/plugin-alloy/vendor";
4
4
  import { TSModuleScope } from "@alloy-js/typescript";
5
5
 
6
6
  //#region src/typescript/components/typescript-file.d.ts
@@ -2,7 +2,7 @@ import { usePowerlines } from "../../core/contexts/context.mjs";
2
2
  import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
3
3
  import { SourceFile } from "../../core/components/source-file.mjs";
4
4
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
5
- import { Scope, Show, SourceDirectoryContext, code, splitProps, useContext, useScope } from "@alloy-js/core";
5
+ import { Scope, Show, SourceDirectoryContext, code, splitProps, useContext, useScope } from "@powerlines/plugin-alloy/vendor";
6
6
  import { appendPath } from "@stryke/path/append";
7
7
  import { isString } from "@stryke/type-checks/is-string";
8
8
  import { titleCase } from "@stryke/string-format/title-case";
@@ -2,7 +2,7 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
3
3
  const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
4
4
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
- let __alloy_js_core = require("@alloy-js/core");
5
+ let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
6
6
  let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
7
7
  let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
8
8
  let __alloy_js_typescript = require("@alloy-js/typescript");
@@ -12,8 +12,8 @@ let __alloy_js_typescript = require("@alloy-js/typescript");
12
12
  * Generates a TypeScript interface for the given reflection class.
13
13
  */
14
14
  function TypeScriptInterface(props) {
15
- const [{ name, reflection }, rest] = (0, __alloy_js_core.splitProps)(props, ["name", "reflection"]);
16
- const interfaceName = (0, __alloy_js_core.computed)(() => (0, __stryke_string_format_pascal_case.pascalCase)(((0, __stryke_type_checks_is_string.isString)(name) ? name : name.toString()) || reflection.getName()));
15
+ const [{ name, reflection }, rest] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, ["name", "reflection"]);
16
+ const interfaceName = (0, __powerlines_plugin_alloy_vendor.computed)(() => (0, __stryke_string_format_pascal_case.pascalCase)(((0, __stryke_type_checks_is_string.isString)(name) ? name : name.toString()) || reflection.getName()));
17
17
  const properties = reflection.getProperties().filter((item) => !item.isIgnored()).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1);
18
18
  return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
19
19
  value: { reflection },
@@ -24,7 +24,7 @@ function TypeScriptInterface(props) {
24
24
  return interfaceName.value;
25
25
  }
26
26
  }, rest, { get children() {
27
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
27
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.For, {
28
28
  each: properties,
29
29
  doubleHardline: true,
30
30
  semicolon: true,
@@ -38,7 +38,7 @@ function TypeScriptInterface(props) {
38
38
  * Generates a TypeScript interface property for the given reflection class.
39
39
  */
40
40
  function TypescriptInterfaceProperty(props) {
41
- const [{ property }, rest] = (0, __alloy_js_core.splitProps)(props, ["property"]);
41
+ const [{ property }, rest] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, ["property"]);
42
42
  return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
43
43
  value: property,
44
44
  get children() {
@@ -1,7 +1,7 @@
1
1
  import { ReflectionClassContext, ReflectionPropertyContext } from "../../core/contexts/reflection.mjs";
2
2
  import { TSDocReflectionClass, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
3
3
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
4
- import { For, computed, splitProps } from "@alloy-js/core";
4
+ import { For, computed, splitProps } from "@powerlines/plugin-alloy/vendor";
5
5
  import { isString } from "@stryke/type-checks/is-string";
6
6
  import { pascalCase } from "@stryke/string-format/pascal-case";
7
7
  import { InterfaceDeclaration, InterfaceMember } from "@alloy-js/typescript";
@@ -3,7 +3,7 @@ const require_core_contexts_reflection = require('../../core/contexts/reflection
3
3
  const require_utilities = require('../../deepkit/src/utilities.cjs');
4
4
  const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
5
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
- let __alloy_js_core = require("@alloy-js/core");
6
+ let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
7
7
  let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
8
8
  let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
9
9
  let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
@@ -16,14 +16,14 @@ let __alloy_js_typescript = require("@alloy-js/typescript");
16
16
  */
17
17
  function TypescriptObject(props) {
18
18
  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) => {
19
+ const objectName = (0, __powerlines_plugin_alloy_vendor.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, __powerlines_plugin_alloy_vendor.computed)(() => props.type || (0, __stryke_string_format_pascal_case.pascalCase)(props.reflection.value.getName()));
21
+ const properties = (0, __powerlines_plugin_alloy_vendor.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
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];
23
23
  return ret;
24
24
  }, 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)();
25
+ const TypeSymbolSlot = (0, __powerlines_plugin_alloy_vendor.createSymbolSlot)();
26
+ const ValueTypeSymbolSlot = (0, __powerlines_plugin_alloy_vendor.createSymbolSlot)();
27
27
  const sym = (0, __alloy_js_typescript.createValueSymbol)(props.name, {
28
28
  refkeys: props.refkey,
29
29
  default: props.default,
@@ -40,7 +40,7 @@ function TypescriptObject(props) {
40
40
  return props.type;
41
41
  } })];
42
42
  } }) : void 0;
43
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
43
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
44
44
  get when() {
45
45
  return !!props.reflection.value;
46
46
  },
@@ -57,12 +57,12 @@ function TypescriptObject(props) {
57
57
  };
58
58
  },
59
59
  get children() {
60
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
60
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
61
61
  get when() {
62
62
  return !!objectName.value && !!objectType.value;
63
63
  },
64
64
  get children() {
65
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Declaration, {
65
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Declaration, {
66
66
  symbol: sym,
67
67
  get children() {
68
68
  return [
@@ -70,13 +70,13 @@ function TypescriptObject(props) {
70
70
  (0, __alloy_js_core_jsx_runtime.memo)(() => props.default ? "default " : ""),
71
71
  keyword,
72
72
  " ",
73
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Name, {}),
73
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Name, {}),
74
74
  type,
75
75
  " =",
76
76
  " ",
77
77
  (0, __alloy_js_core_jsx_runtime.createComponent)(ValueTypeSymbolSlot, { get children() {
78
78
  return props.initializer ?? props.children ?? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ObjectExpression, { get children() {
79
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
79
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.For, {
80
80
  get each() {
81
81
  return properties.value ?? [];
82
82
  },
@@ -100,7 +100,7 @@ function TypescriptObject(props) {
100
100
  * Generates a TypeScript object property for the given reflection class.
101
101
  */
102
102
  function TypescriptObjectProperty(props) {
103
- const [{ property }] = (0, __alloy_js_core.splitProps)(props, ["property"]);
103
+ const [{ property }] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, ["property"]);
104
104
  return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
105
105
  value: property,
106
106
  get children() {
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _alloy_js_core7 from "@alloy-js/core";
3
3
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
4
  import { ComputedRef } from "@vue/reactivity";
5
5
 
@@ -14,11 +14,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
14
14
  /**
15
15
  * Generates a TypeScript object for the given reflection class.
16
16
  */
17
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core0.Children;
17
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core7.Children;
18
18
  /**
19
19
  * Generates a TypeScript object property for the given reflection class.
20
20
  */
21
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core0.Children;
21
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core7.Children;
22
22
  declare type __ΩTypescriptObjectProps = any[];
23
23
  declare type __ΩTypescriptObjectPropertyProps = any[];
24
24
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core5 from "@alloy-js/core";
2
+ import * as _alloy_js_core7 from "@alloy-js/core";
3
3
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
4
  import { ComputedRef } from "@vue/reactivity";
5
5
 
@@ -14,11 +14,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
14
14
  /**
15
15
  * Generates a TypeScript object for the given reflection class.
16
16
  */
17
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core5.Children;
17
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core7.Children;
18
18
  /**
19
19
  * Generates a TypeScript object property for the given reflection class.
20
20
  */
21
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core5.Children;
21
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core7.Children;
22
22
  declare type __ΩTypescriptObjectProps = any[];
23
23
  declare type __ΩTypescriptObjectPropertyProps = any[];
24
24
  //#endregion
@@ -2,7 +2,7 @@ import { ReflectionClassContext, ReflectionPropertyContext } from "../../core/co
2
2
  import { stringifyDefaultValue } from "../../deepkit/src/utilities.mjs";
3
3
  import { TSDocReflectionClass, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
4
4
  import { createComponent, createIntrinsic, memo } from "@alloy-js/core/jsx-runtime";
5
- import { Declaration, For, Name, Show, computed, createSymbolSlot, splitProps } from "@alloy-js/core";
5
+ import { Declaration, For, Name, Show, computed, createSymbolSlot, splitProps } from "@powerlines/plugin-alloy/vendor";
6
6
  import { isString } from "@stryke/type-checks/is-string";
7
7
  import { isUndefined } from "@stryke/type-checks/is-undefined";
8
8
  import { camelCase } from "@stryke/string-format/camel-case";
@@ -7,4 +7,5 @@ import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } fr
7
7
  import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./components/tsdoc-reflection.cjs";
8
8
  import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./components/typescript-interface.cjs";
9
9
  import { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./components/typescript-object.cjs";
10
+ import "./components/index.cjs";
10
11
  export { BuiltinFile, BuiltinFileProps, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };