@powerlines/plugin-react 0.1.142 → 0.1.144

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 (123) hide show
  1. package/dist/components/react-optimized.cjs +7 -7
  2. package/dist/components/react-optimized.mjs +4 -4
  3. package/dist/index.cjs +13 -11
  4. package/dist/index.mjs +6 -6
  5. package/dist/plugin-alloy/src/types/components.d.mts +1 -1
  6. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +1 -1
  7. package/dist/plugin-env/src/types/plugin.d.mts +1 -1
  8. package/dist/powerlines/src/types/build.d.mts +6 -6
  9. package/dist/powerlines/src/types/config.d.mts +1 -2
  10. package/dist/powerlines/src/types/context.d.cts +1 -1
  11. package/dist/powerlines/src/types/context.d.mts +1 -1
  12. package/dist/powerlines/src/types/tsconfig.d.mts +1 -1
  13. package/package.json +9 -10
  14. package/dist/deepkit/schemas/reflection.cjs +0 -3940
  15. package/dist/deepkit/schemas/reflection.mjs +0 -3938
  16. package/dist/deepkit/schemas/reflection2.cjs +0 -4112
  17. package/dist/deepkit/schemas/reflection2.mjs +0 -4110
  18. package/dist/deepkit/src/capnp.cjs +0 -913
  19. package/dist/deepkit/src/capnp.mjs +0 -911
  20. package/dist/deepkit/src/esbuild-plugin.cjs +0 -47
  21. package/dist/deepkit/src/esbuild-plugin.mjs +0 -46
  22. package/dist/deepkit/src/reflect-type.cjs +0 -22
  23. package/dist/deepkit/src/reflect-type.mjs +0 -20
  24. package/dist/deepkit/src/resolve-reflections.cjs +0 -16
  25. package/dist/deepkit/src/resolve-reflections.mjs +0 -15
  26. package/dist/deepkit/src/transformer.cjs +0 -52
  27. package/dist/deepkit/src/transformer.mjs +0 -49
  28. package/dist/deepkit/src/transpile.cjs +0 -29
  29. package/dist/deepkit/src/transpile.mjs +0 -27
  30. package/dist/deepkit/src/utilities.cjs +0 -66
  31. package/dist/deepkit/src/utilities.mjs +0 -65
  32. package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
  33. package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
  34. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
  35. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
  36. package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
  37. package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
  38. package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -60
  39. package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -54
  40. package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
  41. package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
  42. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -46
  43. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -42
  44. package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -16
  45. package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -15
  46. package/dist/plugin-alloy/src/index.cjs +0 -106
  47. package/dist/plugin-alloy/src/index.mjs +0 -104
  48. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -7
  49. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -9
  50. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -5
  51. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -7
  52. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -17
  53. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
  54. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
  55. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
  56. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
  57. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
  58. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
  59. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
  60. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
  61. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
  62. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
  63. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
  64. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
  65. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
  66. package/dist/plugin-automd/src/index.cjs +0 -101
  67. package/dist/plugin-automd/src/index.mjs +0 -98
  68. package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -10
  69. package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -9
  70. package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -41
  71. package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -39
  72. package/dist/plugin-babel/src/helpers/filters.cjs +0 -23
  73. package/dist/plugin-babel/src/helpers/filters.mjs +0 -21
  74. package/dist/plugin-babel/src/helpers/index.cjs +0 -5
  75. package/dist/plugin-babel/src/helpers/index.mjs +0 -7
  76. package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -38
  77. package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -35
  78. package/dist/plugin-babel/src/helpers/options.cjs +0 -50
  79. package/dist/plugin-babel/src/helpers/options.mjs +0 -47
  80. package/dist/plugin-babel/src/index.cjs +0 -91
  81. package/dist/plugin-babel/src/index.mjs +0 -89
  82. package/dist/plugin-env/src/babel/index.cjs +0 -1
  83. package/dist/plugin-env/src/babel/index.mjs +0 -3
  84. package/dist/plugin-env/src/babel/plugin.cjs +0 -121
  85. package/dist/plugin-env/src/babel/plugin.mjs +0 -119
  86. package/dist/plugin-env/src/components/docs.cjs +0 -9
  87. package/dist/plugin-env/src/components/docs.mjs +0 -11
  88. package/dist/plugin-env/src/components/env.cjs +0 -575
  89. package/dist/plugin-env/src/components/env.mjs +0 -572
  90. package/dist/plugin-env/src/components/index.cjs +0 -2
  91. package/dist/plugin-env/src/components/index.mjs +0 -4
  92. package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -22
  93. package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -21
  94. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -55
  95. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -54
  96. package/dist/plugin-env/src/helpers/index.cjs +0 -6
  97. package/dist/plugin-env/src/helpers/index.mjs +0 -8
  98. package/dist/plugin-env/src/helpers/load.cjs +0 -83
  99. package/dist/plugin-env/src/helpers/load.mjs +0 -80
  100. package/dist/plugin-env/src/helpers/persistence.cjs +0 -201
  101. package/dist/plugin-env/src/helpers/persistence.mjs +0 -190
  102. package/dist/plugin-env/src/helpers/reflect.cjs +0 -111
  103. package/dist/plugin-env/src/helpers/reflect.mjs +0 -103
  104. package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -24
  105. package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -23
  106. package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -2
  107. package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -4
  108. package/dist/plugin-env/src/index.cjs +0 -175
  109. package/dist/plugin-env/src/index.mjs +0 -173
  110. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -102
  111. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -100
  112. package/dist/powerlines/src/lib/entry.cjs +0 -12
  113. package/dist/powerlines/src/lib/entry.mjs +0 -14
  114. package/dist/powerlines/src/lib/logger.cjs +0 -41
  115. package/dist/powerlines/src/lib/logger.mjs +0 -39
  116. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -38
  117. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -35
  118. package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -35
  119. package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -34
  120. package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -30
  121. package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -29
  122. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
  123. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
@@ -1,57 +0,0 @@
1
- const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
- const require_context = require('../../core/contexts/context.cjs');
3
- const require_tsdoc = require('./tsdoc.cjs');
4
- const require_typescript_file = require('./typescript-file.cjs');
5
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
- let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
7
- let __alloy_js_core = require("@alloy-js/core");
8
- let __stryke_path_replace = require("@stryke/path/replace");
9
- let __stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
10
-
11
- //#region ../plugin-alloy/src/typescript/components/builtin-file.tsx
12
- /**
13
- * A base component representing a Powerlines generated Typescript source file.
14
- *
15
- * @param props - The properties for the source file.
16
- * @returns The rendered source file component.
17
- */
18
- function BuiltinFile(props) {
19
- const [{ children, imports, id, description, tsx }, rest] = (0, __alloy_js_core.splitProps)(props, [
20
- "children",
21
- "imports",
22
- "id",
23
- "description",
24
- "tsx"
25
- ]);
26
- const context = require_context.usePowerlines();
27
- const path = (0, __alloy_js_core.computed)(() => (0, __stryke_path_replace.replacePath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? id : (0, __stryke_path_replace.replaceExtension)(id)}${(0, __stryke_path_file_path_fns.hasFileExtension)(id) && !(0, __stryke_type_checks_is_set.isSet)(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context.builtinsPath));
28
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({
29
- get header() {
30
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_file.TypescriptFileHeader, {
31
- get header() {
32
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocModule, {
33
- name: id,
34
- children: description
35
- });
36
- },
37
- get children() {
38
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_file.TypescriptFileHeaderImports, { imports });
39
- }
40
- });
41
- },
42
- get meta() {
43
- return {
44
- kind: "builtin",
45
- id: (0, __stryke_path_replace.replaceExtension)(id)
46
- };
47
- }
48
- }, rest, {
49
- get path() {
50
- return path.value;
51
- },
52
- children
53
- }));
54
- }
55
-
56
- //#endregion
57
- exports.BuiltinFile = BuiltinFile;
@@ -1,56 +0,0 @@
1
- import { usePowerlines } from "../../core/contexts/context.mjs";
2
- import { TSDocModule } from "./tsdoc.mjs";
3
- import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript-file.mjs";
4
- import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
5
- import { hasFileExtension } from "@stryke/path/file-path-fns";
6
- import { computed, splitProps } from "@alloy-js/core";
7
- import { replaceExtension, replacePath } from "@stryke/path/replace";
8
- import { isSet } from "@stryke/type-checks/is-set";
9
-
10
- //#region ../plugin-alloy/src/typescript/components/builtin-file.tsx
11
- /**
12
- * A base component representing a Powerlines generated Typescript source file.
13
- *
14
- * @param props - The properties for the source file.
15
- * @returns The rendered source file component.
16
- */
17
- function BuiltinFile(props) {
18
- const [{ children, imports, id, description, tsx }, rest] = splitProps(props, [
19
- "children",
20
- "imports",
21
- "id",
22
- "description",
23
- "tsx"
24
- ]);
25
- const context = usePowerlines();
26
- const path = computed(() => replacePath(`${!isSet(tsx) ? id : replaceExtension(id)}${hasFileExtension(id) && !isSet(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context.builtinsPath));
27
- return createComponent(TypescriptFile, mergeProps({
28
- get header() {
29
- return createComponent(TypescriptFileHeader, {
30
- get header() {
31
- return createComponent(TSDocModule, {
32
- name: id,
33
- children: description
34
- });
35
- },
36
- get children() {
37
- return createComponent(TypescriptFileHeaderImports, { imports });
38
- }
39
- });
40
- },
41
- get meta() {
42
- return {
43
- kind: "builtin",
44
- id: replaceExtension(id)
45
- };
46
- }
47
- }, rest, {
48
- get path() {
49
- return path.value;
50
- },
51
- children
52
- }));
53
- }
54
-
55
- //#endregion
56
- export { BuiltinFile };
@@ -1,126 +0,0 @@
1
- const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
- const require_tsdoc = require('./tsdoc.cjs');
3
- const require_reflection = require('../../core/contexts/reflection.cjs');
4
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
- let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
6
- let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
7
- let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
8
- let __alloy_js_core = require("@alloy-js/core");
9
- let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
10
-
11
- //#region ../plugin-alloy/src/typescript/components/tsdoc-reflection.tsx
12
- /**
13
- * Generates a TypeScript interface property for the given reflection class.
14
- */
15
- function TSDocReflectionClass(props) {
16
- const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
17
- const reflectionClass = require_reflection.useReflectionClass();
18
- const title = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getTitle() || (0, __stryke_string_format_title_case.titleCase)(reflectionClass.reflection.getName()));
19
- const alias = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getAlias());
20
- const domain = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getDomain());
21
- const permission = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getPermission());
22
- const readonly = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isReadonly());
23
- const internal = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isInternal());
24
- const ignore = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isIgnored());
25
- const hidden = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isHidden());
26
- if (!reflectionClass.reflection.getName()) return null;
27
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
28
- get heading() {
29
- return reflectionClass.reflection.getDescription();
30
- },
31
- get children() {
32
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
33
- get when() {
34
- return (0, __stryke_type_checks_is_set_string.isSetString)(title.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(alias.value) && alias.value.length > 0 || !(0, __stryke_type_checks_is_undefined.isUndefined)(permission.value) && permission.value.length > 0 || (0, __stryke_type_checks_is_set_string.isSetString)(domain.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(readonly.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(internal.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(ignore.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(hidden.value);
35
- },
36
- get children() {
37
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocAttributesTags, {
38
- get title() {
39
- return title.value;
40
- },
41
- get alias() {
42
- return alias.value;
43
- },
44
- get domain() {
45
- return domain.value;
46
- },
47
- get permission() {
48
- return permission.value;
49
- },
50
- get readonly() {
51
- return readonly.value;
52
- },
53
- get internal() {
54
- return internal.value;
55
- },
56
- get ignore() {
57
- return ignore.value;
58
- },
59
- get hidden() {
60
- return hidden.value;
61
- }
62
- });
63
- }
64
- }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
65
- get when() {
66
- return (0, __alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
67
- },
68
- get children() {
69
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
70
- return (0, __alloy_js_core.childrenArray)(() => children);
71
- } });
72
- }
73
- })];
74
- }
75
- }));
76
- }
77
- /**
78
- * Generates a TypeScript interface property for the given reflection class.
79
- */
80
- function TSDocReflectionProperty(props) {
81
- const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
82
- const context = require_reflection.useReflectionProperty();
83
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
84
- return context.getDescription();
85
- } }, rest, { get children() {
86
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocAttributesTags, {
87
- get title() {
88
- return context.getTitle();
89
- },
90
- get alias() {
91
- return context.getAlias();
92
- },
93
- get domain() {
94
- return context.getDomain();
95
- },
96
- get permission() {
97
- return context.getPermission();
98
- },
99
- get readonly() {
100
- return context.isReadonly();
101
- },
102
- get internal() {
103
- return context.isInternal();
104
- },
105
- get ignore() {
106
- return context.isIgnored();
107
- },
108
- get hidden() {
109
- return context.isHidden();
110
- }
111
- }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
112
- get when() {
113
- return (0, __alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
114
- },
115
- get children() {
116
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
117
- return (0, __alloy_js_core.childrenArray)(() => children);
118
- } });
119
- }
120
- })];
121
- } }));
122
- }
123
-
124
- //#endregion
125
- exports.TSDocReflectionClass = TSDocReflectionClass;
126
- exports.TSDocReflectionProperty = TSDocReflectionProperty;
@@ -1,124 +0,0 @@
1
- import { TSDoc, TSDocAttributesTags } from "./tsdoc.mjs";
2
- import { useReflectionClass, useReflectionProperty } from "../../core/contexts/reflection.mjs";
3
- import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
4
- import { isSetString } from "@stryke/type-checks/is-set-string";
5
- import { titleCase } from "@stryke/string-format/title-case";
6
- import { isString } from "@stryke/type-checks/is-string";
7
- import { List, Show, childrenArray, code, computed, splitProps } from "@alloy-js/core";
8
- import { isUndefined } from "@stryke/type-checks/is-undefined";
9
-
10
- //#region ../plugin-alloy/src/typescript/components/tsdoc-reflection.tsx
11
- /**
12
- * Generates a TypeScript interface property for the given reflection class.
13
- */
14
- function TSDocReflectionClass(props) {
15
- const [{ children }, rest] = splitProps(props, ["children"]);
16
- const reflectionClass = useReflectionClass();
17
- const title = computed(() => reflectionClass.reflection.getTitle() || titleCase(reflectionClass.reflection.getName()));
18
- const alias = computed(() => reflectionClass.reflection.getAlias());
19
- const domain = computed(() => reflectionClass.reflection.getDomain());
20
- const permission = computed(() => reflectionClass.reflection.getPermission());
21
- const readonly = computed(() => reflectionClass.reflection.isReadonly());
22
- const internal = computed(() => reflectionClass.reflection.isInternal());
23
- const ignore = computed(() => reflectionClass.reflection.isIgnored());
24
- const hidden = computed(() => reflectionClass.reflection.isHidden());
25
- if (!reflectionClass.reflection.getName()) return null;
26
- return createComponent(TSDoc, mergeProps(rest, {
27
- get heading() {
28
- return reflectionClass.reflection.getDescription();
29
- },
30
- get children() {
31
- return [createComponent(Show, {
32
- get when() {
33
- return isSetString(title.value) || !isUndefined(alias.value) && alias.value.length > 0 || !isUndefined(permission.value) && permission.value.length > 0 || isSetString(domain.value) || !isUndefined(readonly.value) || !isUndefined(internal.value) || !isUndefined(ignore.value) || !isUndefined(hidden.value);
34
- },
35
- get children() {
36
- return createComponent(TSDocAttributesTags, {
37
- get title() {
38
- return title.value;
39
- },
40
- get alias() {
41
- return alias.value;
42
- },
43
- get domain() {
44
- return domain.value;
45
- },
46
- get permission() {
47
- return permission.value;
48
- },
49
- get readonly() {
50
- return readonly.value;
51
- },
52
- get internal() {
53
- return internal.value;
54
- },
55
- get ignore() {
56
- return ignore.value;
57
- },
58
- get hidden() {
59
- return hidden.value;
60
- }
61
- });
62
- }
63
- }), createComponent(Show, {
64
- get when() {
65
- return memo(() => !!Boolean(children))() && childrenArray(() => children).length > 0;
66
- },
67
- get children() {
68
- return createComponent(List, { get children() {
69
- return childrenArray(() => children);
70
- } });
71
- }
72
- })];
73
- }
74
- }));
75
- }
76
- /**
77
- * Generates a TypeScript interface property for the given reflection class.
78
- */
79
- function TSDocReflectionProperty(props) {
80
- const [{ children }, rest] = splitProps(props, ["children"]);
81
- const context = useReflectionProperty();
82
- return createComponent(TSDoc, mergeProps({ get heading() {
83
- return context.getDescription();
84
- } }, rest, { get children() {
85
- return [createComponent(TSDocAttributesTags, {
86
- get title() {
87
- return context.getTitle();
88
- },
89
- get alias() {
90
- return context.getAlias();
91
- },
92
- get domain() {
93
- return context.getDomain();
94
- },
95
- get permission() {
96
- return context.getPermission();
97
- },
98
- get readonly() {
99
- return context.isReadonly();
100
- },
101
- get internal() {
102
- return context.isInternal();
103
- },
104
- get ignore() {
105
- return context.isIgnored();
106
- },
107
- get hidden() {
108
- return context.isHidden();
109
- }
110
- }), createComponent(Show, {
111
- get when() {
112
- return memo(() => !!Boolean(children))() && childrenArray(() => children).length > 0;
113
- },
114
- get children() {
115
- return createComponent(List, { get children() {
116
- return childrenArray(() => children);
117
- } });
118
- }
119
- })];
120
- } }));
121
- }
122
-
123
- //#endregion
124
- export { TSDocReflectionClass, TSDocReflectionProperty };