@powerlines/plugin-alloy 0.26.126 → 0.26.128
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.
- package/dist/core/contexts/index.cjs +9 -10
- package/dist/core/contexts/index.d.cts +2 -2
- package/dist/core/contexts/index.d.mts +2 -2
- package/dist/core/contexts/index.mjs +2 -2
- package/dist/core/contexts/{reflection.cjs → schema.cjs} +18 -29
- package/dist/core/contexts/schema.d.cts +48 -0
- package/dist/core/contexts/schema.d.cts.map +1 -0
- package/dist/core/contexts/schema.d.mts +48 -0
- package/dist/core/contexts/schema.d.mts.map +1 -0
- package/dist/core/contexts/schema.mjs +61 -0
- package/dist/core/contexts/schema.mjs.map +1 -0
- package/dist/core/index.cjs +9 -10
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/typescript/components/index.cjs +4 -7
- package/dist/typescript/components/index.d.cts +5 -5
- package/dist/typescript/components/index.d.mts +5 -5
- package/dist/typescript/components/index.mjs +3 -3
- package/dist/typescript/components/interface-declaration.cjs +52 -52
- package/dist/typescript/components/interface-declaration.d.cts +19 -21
- package/dist/typescript/components/interface-declaration.d.cts.map +1 -1
- package/dist/typescript/components/interface-declaration.d.mts +19 -21
- package/dist/typescript/components/interface-declaration.d.mts.map +1 -1
- package/dist/typescript/components/interface-declaration.mjs +52 -52
- package/dist/typescript/components/interface-declaration.mjs.map +1 -1
- package/dist/typescript/components/object-declaration.cjs +40 -56
- package/dist/typescript/components/object-declaration.d.cts +6 -11
- package/dist/typescript/components/object-declaration.d.cts.map +1 -1
- package/dist/typescript/components/object-declaration.d.mts +6 -11
- package/dist/typescript/components/object-declaration.d.mts.map +1 -1
- package/dist/typescript/components/object-declaration.mjs +41 -57
- package/dist/typescript/components/object-declaration.mjs.map +1 -1
- package/dist/typescript/components/tsdoc-schema.cjs +171 -0
- package/dist/typescript/components/tsdoc-schema.d.cts +21 -0
- package/dist/typescript/components/tsdoc-schema.d.cts.map +1 -0
- package/dist/typescript/components/tsdoc-schema.d.mts +21 -0
- package/dist/typescript/components/tsdoc-schema.d.mts.map +1 -0
- package/dist/typescript/components/tsdoc-schema.mjs +169 -0
- package/dist/typescript/components/tsdoc-schema.mjs.map +1 -0
- package/dist/typescript/components/tsdoc.cjs +30 -19
- package/dist/typescript/components/tsdoc.d.cts +16 -12
- package/dist/typescript/components/tsdoc.d.cts.map +1 -1
- package/dist/typescript/components/tsdoc.d.mts +16 -12
- package/dist/typescript/components/tsdoc.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc.mjs +30 -20
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/index.cjs +4 -7
- package/dist/typescript/index.d.cts +5 -5
- package/dist/typescript/index.d.mts +5 -5
- package/dist/typescript/index.mjs +3 -3
- package/package.json +12 -12
- package/dist/core/contexts/reflection.d.cts +0 -62
- package/dist/core/contexts/reflection.d.cts.map +0 -1
- package/dist/core/contexts/reflection.d.mts +0 -62
- package/dist/core/contexts/reflection.d.mts.map +0 -1
- package/dist/core/contexts/reflection.mjs +0 -71
- package/dist/core/contexts/reflection.mjs.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +0 -331
- package/dist/typescript/components/tsdoc-reflection.d.cts +0 -41
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +0 -41
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.mjs +0 -325
- package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
2
|
import { Children } from "@alloy-js/core";
|
|
3
|
-
import { ReflectionKind, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
3
|
import { JSDocExampleProps, ParameterDescriptor } from "@alloy-js/typescript";
|
|
4
|
+
import { JTDType } from "@powerlines/schema/types";
|
|
5
5
|
|
|
6
6
|
//#region src/typescript/components/tsdoc.d.ts
|
|
7
7
|
interface TSDocProps extends ComponentProps {
|
|
@@ -41,8 +41,12 @@ declare function TSDocAlias(props: ComponentProps): Children;
|
|
|
41
41
|
* Create a TSDoc `@permission` tag.
|
|
42
42
|
*/
|
|
43
43
|
declare function TSDocPermission(props: ComponentProps): Children;
|
|
44
|
+
/**
|
|
45
|
+
* Create a TSDoc `@group` tag.
|
|
46
|
+
*/
|
|
47
|
+
declare function TSDocGroup(props: ComponentProps): Children;
|
|
44
48
|
interface TSDocDefaultValueProps extends ComponentProps {
|
|
45
|
-
type
|
|
49
|
+
type?: JTDType;
|
|
46
50
|
defaultValue: any;
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
@@ -90,17 +94,17 @@ declare function TSDocHidden(): Children;
|
|
|
90
94
|
*/
|
|
91
95
|
declare function TSDocRuntime(): Children;
|
|
92
96
|
interface TSDocAttributesTagsProps {
|
|
93
|
-
type?:
|
|
97
|
+
type?: JTDType;
|
|
98
|
+
defaultValue?: any;
|
|
94
99
|
title?: string;
|
|
95
100
|
alias?: string[];
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
defaultValue?: any;
|
|
101
|
+
groups?: string[];
|
|
102
|
+
resourceId?: string;
|
|
103
|
+
isReadonly?: boolean;
|
|
104
|
+
isInternal?: boolean;
|
|
105
|
+
isIgnored?: boolean;
|
|
106
|
+
isHidden?: boolean;
|
|
107
|
+
isRuntime?: boolean;
|
|
104
108
|
}
|
|
105
109
|
/**
|
|
106
110
|
* Generates a TypeScript interface property for the given reflection class.
|
|
@@ -157,5 +161,5 @@ interface TSDocModuleProps extends ComponentProps {
|
|
|
157
161
|
*/
|
|
158
162
|
declare function TSDocModule(props: TSDocModuleProps): Children;
|
|
159
163
|
//#endregion
|
|
160
|
-
export { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle };
|
|
164
|
+
export { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocGroup, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle };
|
|
161
165
|
//# sourceMappingURL=tsdoc.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc.d.mts","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"tsdoc.d.mts","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"mappings":";;;;;;UAsCiB,UAAA,SAAmB,cAAc;EAChD,OAAA,GAAU,QAAA;AAAA;;;;iBAMI,KAAA,CAAM,KAAA,EAAO,UAAA,GAAU,QAAA;AAAA,UA6BtB,aAAA,SAAsB,cAAc;EACnD,GAAG;AAAA;AApCe;AAMpB;;AANoB,iBA0CJ,QAAA,CAAS,KAAA,EAAO,aAAA,GAAa,QAAA;AAAA,UAgB5B,gBAAA;EACf,UAAA,EAAY,mBAAmB;AAAA;;;AArDM;iBA2DvB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;;;;iBA2BnC,UAAA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A;AAAA;AAjMjB;;;AAAA,iBAuMgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA;;;;iBAiDjC,YAAA,CAAa,KAAA,EAAO,cAAA,GAAc,QAAA;AAxPA;AAelD;;AAfkD,iBA+PlC,WAAA,CAAY,KAAA,EAAO,cAAA,GAAc,QAAA;AAAA,UAIhC,gBAAA,SAAyB,cAAc;EApPvB;;;;AAAc;AAI/C;;;;AAMK;AAML;;;EAkPE,MAAA;EAlPkC;;;;AAAiB;AA4BrD;;;;AAA6B;AAO7B;EA4NE,IAAA,EAAM,QAAA;AAAA;;AA5NqB;AAO7B;iBA2NgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA"}
|
|
@@ -2,8 +2,8 @@ import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
|
2
2
|
import { Spacing } from "../../core/components/spacing.mjs";
|
|
3
3
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { For, List, Prose, Show, childrenArray, computed, splitProps } from "@alloy-js/core";
|
|
5
|
-
import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
|
|
6
5
|
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
6
|
+
import { stringifyValue } from "@powerlines/schema/codegen";
|
|
7
7
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
8
8
|
|
|
9
9
|
//#region src/typescript/components/tsdoc.tsx
|
|
@@ -141,6 +141,16 @@ function TSDocPermission(props) {
|
|
|
141
141
|
}));
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
|
+
* Create a TSDoc `@group` tag.
|
|
145
|
+
*/
|
|
146
|
+
function TSDocGroup(props) {
|
|
147
|
+
const [{ children }, rest] = splitProps(props, ["children"]);
|
|
148
|
+
return createComponent(TSDocTag, mergeProps(rest, {
|
|
149
|
+
tag: "group",
|
|
150
|
+
children
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
144
154
|
* Create a TSDoc `@defaultValue` tag.
|
|
145
155
|
*/
|
|
146
156
|
function TSDocDefaultValue(props) {
|
|
@@ -154,7 +164,7 @@ function TSDocDefaultValue(props) {
|
|
|
154
164
|
width: 2,
|
|
155
165
|
get children() {
|
|
156
166
|
return createComponent(Prose, { get children() {
|
|
157
|
-
return
|
|
167
|
+
return stringifyValue(defaultValue, type);
|
|
158
168
|
} });
|
|
159
169
|
}
|
|
160
170
|
});
|
|
@@ -249,19 +259,19 @@ function TSDocRuntime() {
|
|
|
249
259
|
* Generates a TypeScript interface property for the given reflection class.
|
|
250
260
|
*/
|
|
251
261
|
function TSDocAttributesTags(props) {
|
|
252
|
-
const [{ type, alias,
|
|
262
|
+
const [{ type, alias, groups, isReadonly, isInternal, isIgnored, isHidden, isRuntime, defaultValue }] = splitProps(props, [
|
|
253
263
|
"type",
|
|
254
264
|
"alias",
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
260
|
-
"
|
|
265
|
+
"groups",
|
|
266
|
+
"isReadonly",
|
|
267
|
+
"isInternal",
|
|
268
|
+
"isIgnored",
|
|
269
|
+
"isHidden",
|
|
270
|
+
"isRuntime",
|
|
261
271
|
"defaultValue"
|
|
262
272
|
]);
|
|
263
273
|
const title = computed(() => props.title?.trim() || "");
|
|
264
|
-
const domain = computed(() => props.
|
|
274
|
+
const domain = computed(() => props.resourceId?.trim() || "");
|
|
265
275
|
return [
|
|
266
276
|
createComponent(Show, {
|
|
267
277
|
get when() {
|
|
@@ -298,50 +308,50 @@ function TSDocAttributesTags(props) {
|
|
|
298
308
|
}),
|
|
299
309
|
createComponent(Show, {
|
|
300
310
|
get when() {
|
|
301
|
-
return memo(() => !!(!isUndefined(
|
|
311
|
+
return memo(() => !!(!isUndefined(groups) && groups.length > 0))() && groups.some((g) => isSetString(g?.trim()));
|
|
302
312
|
},
|
|
303
313
|
get children() {
|
|
304
314
|
return createComponent(For, {
|
|
305
315
|
get each() {
|
|
306
|
-
return
|
|
316
|
+
return groups?.filter((g) => isSetString(g?.trim())) ?? [];
|
|
307
317
|
},
|
|
308
|
-
children: (
|
|
318
|
+
children: (group) => createComponent(TSDocGroup, { children: group })
|
|
309
319
|
});
|
|
310
320
|
}
|
|
311
321
|
}),
|
|
312
322
|
createComponent(Show, {
|
|
313
|
-
when:
|
|
323
|
+
when: isReadonly === true,
|
|
314
324
|
get children() {
|
|
315
325
|
return createComponent(TSDocReadonly, {});
|
|
316
326
|
}
|
|
317
327
|
}),
|
|
318
328
|
createComponent(Show, {
|
|
319
|
-
when:
|
|
329
|
+
when: isInternal === true,
|
|
320
330
|
get children() {
|
|
321
331
|
return createComponent(TSDocInternal, {});
|
|
322
332
|
}
|
|
323
333
|
}),
|
|
324
334
|
createComponent(Show, {
|
|
325
|
-
when:
|
|
335
|
+
when: isIgnored === true,
|
|
326
336
|
get children() {
|
|
327
337
|
return createComponent(TSDocIgnore, {});
|
|
328
338
|
}
|
|
329
339
|
}),
|
|
330
340
|
createComponent(Show, {
|
|
331
|
-
when:
|
|
341
|
+
when: isHidden === true,
|
|
332
342
|
get children() {
|
|
333
343
|
return createComponent(TSDocHidden, {});
|
|
334
344
|
}
|
|
335
345
|
}),
|
|
336
346
|
createComponent(Show, {
|
|
337
|
-
when:
|
|
347
|
+
when: isRuntime === true,
|
|
338
348
|
get children() {
|
|
339
349
|
return createComponent(TSDocRuntime, {});
|
|
340
350
|
}
|
|
341
351
|
}),
|
|
342
352
|
createComponent(Show, {
|
|
343
353
|
get when() {
|
|
344
|
-
return memo(() => !!(
|
|
354
|
+
return memo(() => !!(isRuntime !== true && !isUndefined(type)))() && !isUndefined(defaultValue);
|
|
345
355
|
},
|
|
346
356
|
get children() {
|
|
347
357
|
return createComponent(TSDocDefaultValue, {
|
|
@@ -472,5 +482,5 @@ function TSDocModule(props) {
|
|
|
472
482
|
}
|
|
473
483
|
|
|
474
484
|
//#endregion
|
|
475
|
-
export { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocThrows, TSDocTitle };
|
|
485
|
+
export { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocGroup, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocThrows, TSDocTitle };
|
|
476
486
|
//# sourceMappingURL=tsdoc.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc.mjs","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n childrenArray,\n computed,\n For,\n List,\n Prose,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport { JSDocExampleProps, ParameterDescriptor } from \"@alloy-js/typescript\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport {\n ReflectionKind,\n ReflectionParameter,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { Spacing } from \"../../core/components/spacing\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport interface TSDocProps extends ComponentProps {\n heading?: Children;\n}\n\n/**\n * Generates a TypeScript interface for the given reflection class.\n */\nexport function TSDoc(props: TSDocProps) {\n const [{ children, heading }] = splitProps(props, [\"children\", \"heading\"]);\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={!isUndefined(heading)}>{heading}</Show>\n <Show\n when={\n !isUndefined(children) &&\n childrenArray(() => children).filter(Boolean).length > 0\n }>\n <Show when={!isUndefined(heading)}>\n <Spacing />\n </Show>\n <List hardline={false} softline={true}>\n {childrenArray(() => children)}\n </List>\n </Show>\n </align>\n <hbr />\n {`*/`}\n <hbr />\n </>\n );\n}\n\nexport interface TSDocTagProps extends ComponentProps {\n tag: string;\n}\n\n/**\n * Create a TSDoc `@<props.tag>` tag.\n */\nexport function TSDocTag(props: TSDocTagProps) {\n const [{ children, tag }] = splitProps(props, [\"children\", \"tag\"]);\n\n return (\n <>\n {`@${tag} `}\n <Show when={Boolean(children)}>\n <align width={2}>\n <Prose>{children}</Prose>\n </align>\n </Show>\n <sbr />\n </>\n );\n}\n\nexport interface TSDocParamsProps {\n parameters: ParameterDescriptor[] | string[];\n}\n\n/**\n * A component that creates a TSDoc block with `@param` tags for each parameter.\n */\nexport function TSDocParams(props: TSDocParamsProps) {\n const parameters = normalizeParametersForDoc(props.parameters);\n\n return (\n <For each={parameters}>\n {param => (\n <TSDocParam name={param.name} optional={param.optional}>\n {param.doc}\n </TSDocParam>\n )}\n </For>\n );\n}\n\nfunction normalizeParametersForDoc(\n parameters: ParameterDescriptor[] | string[]\n): ParameterDescriptor[] {\n if (parameters.some(p => typeof p === \"string\")) {\n return [];\n }\n\n return parameters as ParameterDescriptor[];\n}\n\n/**\n * Create a TSDoc `@title` tag.\n */\nexport function TSDocTitle(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"title\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@domain` tag.\n */\nexport function TSDocDomain(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"domain\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@alias` tag.\n */\nexport function TSDocAlias(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"alias\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@permission` tag.\n */\nexport function TSDocPermission(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"permission\">\n {children}\n </TSDocTag>\n );\n}\n\nexport interface TSDocDefaultValueProps extends ComponentProps {\n type: ReflectionKind | ReflectionProperty | ReflectionParameter;\n defaultValue: any;\n}\n\n/**\n * Create a TSDoc `@defaultValue` tag.\n */\nexport function TSDocDefaultValue(props: TSDocDefaultValueProps) {\n const [{ type, defaultValue }] = splitProps(props, [\"type\", \"defaultValue\"]);\n\n return (\n <>\n {\"@defaultValue \"}\n <Show when={!isUndefined(defaultValue)}>\n <align width={2}>\n <Prose>{stringifyDefaultValue(type, defaultValue)}</Prose>\n </align>\n </Show>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@remarks` tag.\n */\nexport function TSDocRemarks(props: ComponentProps) {\n return (\n <>\n {\"@remarks \"}\n <hbr />\n <List hardline={false} softline={true}>\n {childrenArray(() => props.children)}\n </List>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@see` tag.\n */\nexport function TSDocLink(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"see\" />;\n}\n\nexport interface TSDocExampleProps extends JSDocExampleProps {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n}\n\n/**\n * Create a TSDoc `@example` tag.\n */\nexport function TSDocExample(props: TSDocExampleProps) {\n const [{ tsx, fenced = true, language, children }] = splitProps(props, [\n \"tsx\",\n \"fenced\",\n \"language\",\n \"children\"\n ]);\n\n return (\n <>\n {\"@example \"}\n <hbr />\n <Show when={fenced}>\n ```{language || (tsx ? \"tsx\" : \"ts\")}\n <hbr />\n </Show>\n {children}\n <Show when={fenced}>\n <hbr />\n ```\n </Show>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@readonly` tag.\n */\nexport function TSDocReadonly() {\n return <TSDocTag tag=\"readonly\" />;\n}\n\n/**\n * Create a TSDoc `@internal` tag.\n */\nexport function TSDocInternal() {\n return <TSDocTag tag=\"internal\" />;\n}\n\n/**\n * Create a TSDoc `@ignore` tag.\n */\nexport function TSDocIgnore() {\n return <TSDocTag tag=\"ignore\" />;\n}\n\n/**\n * Create a TSDoc `@hidden` tag.\n */\nexport function TSDocHidden() {\n return <TSDocTag tag=\"hidden\" />;\n}\n\n/**\n * Create a TSDoc `@runtime` tag.\n */\nexport function TSDocRuntime() {\n return <TSDocTag tag=\"runtime\" />;\n}\n\nexport interface TSDocAttributesTagsProps {\n type?: ReflectionKind | ReflectionProperty | ReflectionParameter;\n title?: string;\n alias?: string[];\n permission?: string[];\n domain?: string;\n readonly?: boolean;\n internal?: boolean;\n ignore?: boolean;\n hidden?: boolean;\n runtime?: boolean;\n defaultValue?: any;\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocAttributesTags(props: TSDocAttributesTagsProps) {\n const [\n {\n type,\n alias,\n permission,\n readonly,\n internal,\n ignore,\n hidden,\n runtime,\n defaultValue\n }\n ] = splitProps(props, [\n \"type\",\n \"alias\",\n \"permission\",\n \"readonly\",\n \"internal\",\n \"ignore\",\n \"hidden\",\n \"runtime\",\n \"defaultValue\"\n ]);\n\n const title = computed(() => props.title?.trim() || \"\");\n const domain = computed(() => props.domain?.trim() || \"\");\n\n return (\n <>\n <Show when={isSetString(title.value)}>\n <TSDocTitle>{title.value}</TSDocTitle>\n </Show>\n <Show\n when={\n !isUndefined(alias) &&\n alias.length > 0 &&\n alias.some(a => isSetString(a?.trim()))\n }>\n <For each={alias?.filter(a => isSetString(a?.trim())) ?? []}>\n {alias => <TSDocAlias>{alias}</TSDocAlias>}\n </For>\n </Show>\n <Show when={isSetString(domain.value)}>\n <TSDocDomain>{domain.value}</TSDocDomain>\n </Show>\n <Show\n when={\n !isUndefined(permission) &&\n permission.length > 0 &&\n permission.some(p => isSetString(p?.trim()))\n }>\n <For each={permission?.filter(p => isSetString(p?.trim())) ?? []}>\n {permission => <TSDocPermission>{permission}</TSDocPermission>}\n </For>\n </Show>\n <Show when={readonly === true}>\n <TSDocReadonly />\n </Show>\n <Show when={internal === true}>\n <TSDocInternal />\n </Show>\n <Show when={ignore === true}>\n <TSDocIgnore />\n </Show>\n <Show when={hidden === true}>\n <TSDocHidden />\n </Show>\n <Show when={runtime === true}>\n <TSDocRuntime />\n </Show>\n <Show\n when={\n runtime !== true && !isUndefined(type) && !isUndefined(defaultValue)\n }>\n <TSDocDefaultValue\n type={\n type as ReflectionKind | ReflectionProperty | ReflectionParameter\n }\n defaultValue={defaultValue}\n />\n </Show>\n </>\n );\n}\n\nexport interface TSDocParamProps {\n name: Children;\n children?: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\n/**\n * Create a TSDoc parameter set off with `@param`.\n */\nexport function TSDocParam(props: TSDocParamProps) {\n return (\n <>\n {\"@param \"}\n <TSDocParamName\n name={props.name}\n optional={props.optional}\n defaultValue={props.defaultValue}\n />\n <TSDocParamDescription children={props.children} />\n </>\n );\n}\n\ninterface TSDocParamNameProps {\n name: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\nfunction TSDocParamName(props: TSDocParamNameProps) {\n return (\n <>\n <Show when={props.optional}>{\"[\"}</Show>\n {props.name}\n <Show when={Boolean(props.defaultValue)}>={props.defaultValue}</Show>\n <Show when={props.optional}>{\"]\"}</Show>\n </>\n );\n}\n\ninterface TSDocParamDescriptionProps {\n children?: Children;\n}\n\nfunction TSDocParamDescription(props: TSDocParamDescriptionProps) {\n return (\n <Show when={Boolean(props.children)}>\n {\" - \"}\n <align width={2}>\n <Prose>{props.children}</Prose>\n </align>\n </Show>\n );\n}\n\n/**\n * Create a TSDoc `@returns` tag.\n */\nexport function TSDocReturns(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"returns\" />;\n}\n\n/**\n * Create a TSDoc `@throws` tag.\n */\nexport function TSDocThrows(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"throws\" />;\n}\n\nexport interface TSDocModuleProps extends ComponentProps {\n /**\n * The prefix for the builtin module name\n *\n * @remarks\n * This value is populated from the Powerlines configuration output builtin prefix by default.\n *\n * @example\n * ```ts\n * /**\n * @module powerlines:my-module\n * \\/\n * ```\n */\n prefix?: string;\n\n /**\n * The name of the module\n *\n * @remarks\n * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.\n *\n * @example\n * ```ts\n * import { MyModule } from \"powerlines:my-module\";\n * ```\n */\n name: Children;\n}\n\n/**\n * Generates a TSDoc `@module` tag for the given module name.\n */\nexport function TSDocModule(props: TSDocModuleProps) {\n const [{ children, name, prefix }] = splitProps(props, [\n \"children\",\n \"name\",\n \"prefix\"\n ]);\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={Boolean(children)}>\n <List hardline={false} softline={true}>\n {childrenArray(() => children)}\n </List>\n <Spacing />\n </Show>\n {\"@module \"}\n {prefix || context?.config?.framework?.name || \"powerlines\"}:{name}\n </align>\n <hbr />\n {` */`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA+BA,SAAgB,MAAA,OAAA;CACd,MAAA,CAAA,EACA,UACA,aACK,WAAE,OAAc,CAAA,YAAc,SAAK,CAAM;CAChD,OAAS;EAAA;EAAA,gBAAqB,SAAY;GAC1C,QAAS;GACT,IAAQ,WAAC;IACH,OAAG;KAAA,gBAAuB,OAAM,CAAA,CAAA;KAAM,gBAAW,MAAA;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,OAAA,EAClC,KAAI,UACN,CAAC,CAAC;AACJ;;;;AAKA,SAAE,YAAA,OAAA;CACF,OAAO,gBAAS,UAAoB,WAAc,OAAE,EAClD,KAAO,SACT,CAAA,CAAA;;;;;AAKA,SAAgB,YAAY,OAAO;CACjC,MAAM,CAAC,EACT,gBAEA,YACI,WAAA,OAAA;EAAA;EAAA;EAAA;CAAA,CAAA;CACF,MAAM,UAAQ,kBAAgB;CAC9B,OAAC;EAAA;EAAA,gBAAA,SAAA;GACC,QAAE;GACF,IAAC,WAAc;IAChB,OAAA;KAAA,gBAAA,OAAA,CAAA,CAAA;KAAA,gBAAA,MAAA;MACG,IAAA,OAAA;OACE,OAAA,QAAA,QAAA;MACD;MACA,IAAA,WAAO;OACP,OAAA,CAAA,gBAAA,MAAA;QACA,UAAA;QACH,UAAA;QACO,IAAA,WAAM;;QAEb;OACK,CAAA,GAAK,gBAAO,SAAA,CAAA,CAAA,CAAA;MAClB;KACG,CAAA;KAAA;KAAA,WAAA,UAAA,SAAA,QAAA,WAAA,QAAA,YAAA;KAAA;KAAA;IAAA;GACF;EACF,CAAC;EAAA,gBAAA,OAAA,CAAA,CAAA;EAAA;CAAA;AACH"}
|
|
1
|
+
{"version":3,"file":"tsdoc.mjs","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n childrenArray,\n computed,\n For,\n List,\n Prose,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport { JSDocExampleProps, ParameterDescriptor } from \"@alloy-js/typescript\";\n\nimport { stringifyValue } from \"@powerlines/schema/codegen\";\nimport { JTDType } from \"@powerlines/schema/types\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { Spacing } from \"../../core/components/spacing\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport interface TSDocProps extends ComponentProps {\n heading?: Children;\n}\n\n/**\n * Generates a TypeScript interface for the given reflection class.\n */\nexport function TSDoc(props: TSDocProps) {\n const [{ children, heading }] = splitProps(props, [\"children\", \"heading\"]);\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={!isUndefined(heading)}>{heading}</Show>\n <Show\n when={\n !isUndefined(children) &&\n childrenArray(() => children).filter(Boolean).length > 0\n }>\n <Show when={!isUndefined(heading)}>\n <Spacing />\n </Show>\n <List hardline={false} softline={true}>\n {childrenArray(() => children)}\n </List>\n </Show>\n </align>\n <hbr />\n {`*/`}\n <hbr />\n </>\n );\n}\n\nexport interface TSDocTagProps extends ComponentProps {\n tag: string;\n}\n\n/**\n * Create a TSDoc `@<props.tag>` tag.\n */\nexport function TSDocTag(props: TSDocTagProps) {\n const [{ children, tag }] = splitProps(props, [\"children\", \"tag\"]);\n\n return (\n <>\n {`@${tag} `}\n <Show when={Boolean(children)}>\n <align width={2}>\n <Prose>{children}</Prose>\n </align>\n </Show>\n <sbr />\n </>\n );\n}\n\nexport interface TSDocParamsProps {\n parameters: ParameterDescriptor[] | string[];\n}\n\n/**\n * A component that creates a TSDoc block with `@param` tags for each parameter.\n */\nexport function TSDocParams(props: TSDocParamsProps) {\n const parameters = normalizeParametersForDoc(props.parameters);\n\n return (\n <For each={parameters}>\n {param => (\n <TSDocParam name={param.name} optional={param.optional}>\n {param.doc}\n </TSDocParam>\n )}\n </For>\n );\n}\n\nfunction normalizeParametersForDoc(\n parameters: ParameterDescriptor[] | string[]\n): ParameterDescriptor[] {\n if (parameters.some(p => typeof p === \"string\")) {\n return [];\n }\n\n return parameters as ParameterDescriptor[];\n}\n\n/**\n * Create a TSDoc `@title` tag.\n */\nexport function TSDocTitle(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"title\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@domain` tag.\n */\nexport function TSDocDomain(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"domain\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@alias` tag.\n */\nexport function TSDocAlias(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"alias\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@permission` tag.\n */\nexport function TSDocPermission(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"permission\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@group` tag.\n */\nexport function TSDocGroup(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"group\">\n {children}\n </TSDocTag>\n );\n}\n\nexport interface TSDocDefaultValueProps extends ComponentProps {\n type?: JTDType;\n defaultValue: any;\n}\n\n/**\n * Create a TSDoc `@defaultValue` tag.\n */\nexport function TSDocDefaultValue(props: TSDocDefaultValueProps) {\n const [{ type, defaultValue }] = splitProps(props, [\"type\", \"defaultValue\"]);\n\n return (\n <>\n {\"@defaultValue \"}\n <Show when={!isUndefined(defaultValue)}>\n <align width={2}>\n <Prose>{stringifyValue(defaultValue, type)}</Prose>\n </align>\n </Show>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@remarks` tag.\n */\nexport function TSDocRemarks(props: ComponentProps) {\n return (\n <>\n {\"@remarks \"}\n <hbr />\n <List hardline={false} softline={true}>\n {childrenArray(() => props.children)}\n </List>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@see` tag.\n */\nexport function TSDocLink(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"see\" />;\n}\n\nexport interface TSDocExampleProps extends JSDocExampleProps {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n}\n\n/**\n * Create a TSDoc `@example` tag.\n */\nexport function TSDocExample(props: TSDocExampleProps) {\n const [{ tsx, fenced = true, language, children }] = splitProps(props, [\n \"tsx\",\n \"fenced\",\n \"language\",\n \"children\"\n ]);\n\n return (\n <>\n {\"@example \"}\n <hbr />\n <Show when={fenced}>\n ```{language || (tsx ? \"tsx\" : \"ts\")}\n <hbr />\n </Show>\n {children}\n <Show when={fenced}>\n <hbr />\n ```\n </Show>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@readonly` tag.\n */\nexport function TSDocReadonly() {\n return <TSDocTag tag=\"readonly\" />;\n}\n\n/**\n * Create a TSDoc `@internal` tag.\n */\nexport function TSDocInternal() {\n return <TSDocTag tag=\"internal\" />;\n}\n\n/**\n * Create a TSDoc `@ignore` tag.\n */\nexport function TSDocIgnore() {\n return <TSDocTag tag=\"ignore\" />;\n}\n\n/**\n * Create a TSDoc `@hidden` tag.\n */\nexport function TSDocHidden() {\n return <TSDocTag tag=\"hidden\" />;\n}\n\n/**\n * Create a TSDoc `@runtime` tag.\n */\nexport function TSDocRuntime() {\n return <TSDocTag tag=\"runtime\" />;\n}\n\nexport interface TSDocAttributesTagsProps {\n type?: JTDType;\n defaultValue?: any;\n title?: string;\n alias?: string[];\n groups?: string[];\n resourceId?: string;\n isReadonly?: boolean;\n isInternal?: boolean;\n isIgnored?: boolean;\n isHidden?: boolean;\n isRuntime?: boolean;\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocAttributesTags(props: TSDocAttributesTagsProps) {\n const [\n {\n type,\n alias,\n groups,\n isReadonly,\n isInternal,\n isIgnored,\n isHidden,\n isRuntime,\n defaultValue\n }\n ] = splitProps(props, [\n \"type\",\n \"alias\",\n \"groups\",\n \"isReadonly\",\n \"isInternal\",\n \"isIgnored\",\n \"isHidden\",\n \"isRuntime\",\n \"defaultValue\"\n ]);\n\n const title = computed(() => props.title?.trim() || \"\");\n const domain = computed(() => props.resourceId?.trim() || \"\");\n\n return (\n <>\n <Show when={isSetString(title.value)}>\n <TSDocTitle>{title.value}</TSDocTitle>\n </Show>\n <Show\n when={\n !isUndefined(alias) &&\n alias.length > 0 &&\n alias.some(a => isSetString(a?.trim()))\n }>\n <For each={alias?.filter(a => isSetString(a?.trim())) ?? []}>\n {alias => <TSDocAlias>{alias}</TSDocAlias>}\n </For>\n </Show>\n <Show when={isSetString(domain.value)}>\n <TSDocDomain>{domain.value}</TSDocDomain>\n </Show>\n <Show\n when={\n !isUndefined(groups) &&\n groups.length > 0 &&\n groups.some(g => isSetString(g?.trim()))\n }>\n <For each={groups?.filter(g => isSetString(g?.trim())) ?? []}>\n {group => <TSDocGroup>{group}</TSDocGroup>}\n </For>\n </Show>\n <Show when={isReadonly === true}>\n <TSDocReadonly />\n </Show>\n <Show when={isInternal === true}>\n <TSDocInternal />\n </Show>\n <Show when={isIgnored === true}>\n <TSDocIgnore />\n </Show>\n <Show when={isHidden === true}>\n <TSDocHidden />\n </Show>\n <Show when={isRuntime === true}>\n <TSDocRuntime />\n </Show>\n <Show\n when={\n isRuntime !== true && !isUndefined(type) && !isUndefined(defaultValue)\n }>\n <TSDocDefaultValue type={type} defaultValue={defaultValue} />\n </Show>\n </>\n );\n}\n\nexport interface TSDocParamProps {\n name: Children;\n children?: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\n/**\n * Create a TSDoc parameter set off with `@param`.\n */\nexport function TSDocParam(props: TSDocParamProps) {\n return (\n <>\n {\"@param \"}\n <TSDocParamName\n name={props.name}\n optional={props.optional}\n defaultValue={props.defaultValue}\n />\n <TSDocParamDescription children={props.children} />\n </>\n );\n}\n\ninterface TSDocParamNameProps {\n name: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\nfunction TSDocParamName(props: TSDocParamNameProps) {\n return (\n <>\n <Show when={props.optional}>{\"[\"}</Show>\n {props.name}\n <Show when={Boolean(props.defaultValue)}>={props.defaultValue}</Show>\n <Show when={props.optional}>{\"]\"}</Show>\n </>\n );\n}\n\ninterface TSDocParamDescriptionProps {\n children?: Children;\n}\n\nfunction TSDocParamDescription(props: TSDocParamDescriptionProps) {\n return (\n <Show when={Boolean(props.children)}>\n {\" - \"}\n <align width={2}>\n <Prose>{props.children}</Prose>\n </align>\n </Show>\n );\n}\n\n/**\n * Create a TSDoc `@returns` tag.\n */\nexport function TSDocReturns(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"returns\" />;\n}\n\n/**\n * Create a TSDoc `@throws` tag.\n */\nexport function TSDocThrows(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"throws\" />;\n}\n\nexport interface TSDocModuleProps extends ComponentProps {\n /**\n * The prefix for the builtin module name\n *\n * @remarks\n * This value is populated from the Powerlines configuration output builtin prefix by default.\n *\n * @example\n * ```ts\n * /**\n * @module powerlines:my-module\n * \\/\n * ```\n */\n prefix?: string;\n\n /**\n * The name of the module\n *\n * @remarks\n * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.\n *\n * @example\n * ```ts\n * import { MyModule } from \"powerlines:my-module\";\n * ```\n */\n name: Children;\n}\n\n/**\n * Generates a TSDoc `@module` tag for the given module name.\n */\nexport function TSDocModule(props: TSDocModuleProps) {\n const [{ children, name, prefix }] = splitProps(props, [\n \"children\",\n \"name\",\n \"prefix\"\n ]);\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={Boolean(children)}>\n <List hardline={false} softline={true}>\n {childrenArray(() => children)}\n </List>\n <Spacing />\n </Show>\n {\"@module \"}\n {prefix || context?.config?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MACH;KACE,CAAC;KAAC;KAAQ,WAAA,UAAA,SAAA,QAAA,WAAA,QAAA,YAAA;KAAA;KAAA;IAAA;GAChB;;;;;AAEA"}
|
|
@@ -12,7 +12,7 @@ const require_typescript_components_type_parameters = require('./components/type
|
|
|
12
12
|
const require_typescript_components_class_declaration = require('./components/class-declaration.cjs');
|
|
13
13
|
const require_typescript_components_dynamic_import_statement = require('./components/dynamic-import-statement.cjs');
|
|
14
14
|
const require_typescript_components_entry_file = require('./components/entry-file.cjs');
|
|
15
|
-
const
|
|
15
|
+
const require_typescript_components_tsdoc_schema = require('./components/tsdoc-schema.cjs');
|
|
16
16
|
const require_typescript_components_interface_declaration = require('./components/interface-declaration.cjs');
|
|
17
17
|
const require_typescript_components_object_declaration = require('./components/object-declaration.cjs');
|
|
18
18
|
const require_typescript_components_record_expression = require('./components/record-expression.cjs');
|
|
@@ -40,27 +40,24 @@ exports.RecordExpression = require_typescript_components_record_expression.Recor
|
|
|
40
40
|
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
41
41
|
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
42
42
|
exports.TSDocAttributesTags = require_typescript_components_tsdoc.TSDocAttributesTags;
|
|
43
|
-
exports.TSDocContextClass = require_typescript_components_tsdoc_reflection.TSDocContextClass;
|
|
44
|
-
exports.TSDocContextMethod = require_typescript_components_tsdoc_reflection.TSDocContextMethod;
|
|
45
|
-
exports.TSDocContextProperty = require_typescript_components_tsdoc_reflection.TSDocContextProperty;
|
|
46
43
|
exports.TSDocDefaultValue = require_typescript_components_tsdoc.TSDocDefaultValue;
|
|
47
44
|
exports.TSDocDomain = require_typescript_components_tsdoc.TSDocDomain;
|
|
48
45
|
exports.TSDocExample = require_typescript_components_tsdoc.TSDocExample;
|
|
46
|
+
exports.TSDocGroup = require_typescript_components_tsdoc.TSDocGroup;
|
|
49
47
|
exports.TSDocHidden = require_typescript_components_tsdoc.TSDocHidden;
|
|
50
48
|
exports.TSDocIgnore = require_typescript_components_tsdoc.TSDocIgnore;
|
|
51
49
|
exports.TSDocInternal = require_typescript_components_tsdoc.TSDocInternal;
|
|
52
50
|
exports.TSDocLink = require_typescript_components_tsdoc.TSDocLink;
|
|
53
51
|
exports.TSDocModule = require_typescript_components_tsdoc.TSDocModule;
|
|
52
|
+
exports.TSDocObjectSchema = require_typescript_components_tsdoc_schema.TSDocObjectSchema;
|
|
54
53
|
exports.TSDocParam = require_typescript_components_tsdoc.TSDocParam;
|
|
55
54
|
exports.TSDocParams = require_typescript_components_tsdoc.TSDocParams;
|
|
56
55
|
exports.TSDocPermission = require_typescript_components_tsdoc.TSDocPermission;
|
|
57
56
|
exports.TSDocReadonly = require_typescript_components_tsdoc.TSDocReadonly;
|
|
58
|
-
exports.TSDocReflectionClass = require_typescript_components_tsdoc_reflection.TSDocReflectionClass;
|
|
59
|
-
exports.TSDocReflectionMethod = require_typescript_components_tsdoc_reflection.TSDocReflectionMethod;
|
|
60
|
-
exports.TSDocReflectionProperty = require_typescript_components_tsdoc_reflection.TSDocReflectionProperty;
|
|
61
57
|
exports.TSDocRemarks = require_typescript_components_tsdoc.TSDocRemarks;
|
|
62
58
|
exports.TSDocReturns = require_typescript_components_tsdoc.TSDocReturns;
|
|
63
59
|
exports.TSDocRuntime = require_typescript_components_tsdoc.TSDocRuntime;
|
|
60
|
+
exports.TSDocSchemaProperty = require_typescript_components_tsdoc_schema.TSDocSchemaProperty;
|
|
64
61
|
exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
65
62
|
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
66
63
|
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle } from "./components/tsdoc.cjs";
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocGroup, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle } from "./components/tsdoc.cjs";
|
|
2
2
|
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps } from "./components/typescript-file.cjs";
|
|
3
3
|
import { BuiltinFile, BuiltinFileProps } from "./components/builtin-file.cjs";
|
|
4
4
|
import { TypeParameters, TypeParametersProps } from "./components/type-parameters.cjs";
|
|
5
5
|
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet } from "./components/class-declaration.cjs";
|
|
6
6
|
import { DynamicImportStatement, DynamicImportStatementProps } from "./components/dynamic-import-statement.cjs";
|
|
7
7
|
import { EntryFile, EntryFileProps } from "./components/entry-file.cjs";
|
|
8
|
-
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps } from "./components/interface-declaration.cjs";
|
|
9
|
-
import {
|
|
8
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, InterfaceSchemaMemberProps } from "./components/interface-declaration.cjs";
|
|
9
|
+
import { ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps } from "./components/object-declaration.cjs";
|
|
10
10
|
import { PropertyName, PropertyNameProps } from "./components/property-name.cjs";
|
|
11
11
|
import { RecordExpression, RecordExpressionProps } from "./components/record-expression.cjs";
|
|
12
|
-
import {
|
|
12
|
+
import { TSDocObjectSchema, TSDocObjectSchemaProps, TSDocSchemaProperty, TSDocSchemaPropertyProps } from "./components/tsdoc-schema.cjs";
|
|
13
13
|
import { TypeDeclaration, TypeDeclarationProps } from "./components/type-declaration.cjs";
|
|
14
14
|
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.cjs";
|
|
15
15
|
import { getCallSignatureProps } from "./helpers/get-call-signature-props.cjs";
|
|
16
16
|
import { isValidJSIdentifier } from "./helpers/utilities.cjs";
|
|
17
|
-
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet,
|
|
17
|
+
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, InterfaceSchemaMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocGroup, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocObjectSchema, TSDocObjectSchemaProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocSchemaProperty, TSDocSchemaPropertyProps, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle } from "./components/tsdoc.mjs";
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocGroup, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle } from "./components/tsdoc.mjs";
|
|
2
2
|
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps } from "./components/typescript-file.mjs";
|
|
3
3
|
import { BuiltinFile, BuiltinFileProps } from "./components/builtin-file.mjs";
|
|
4
4
|
import { TypeParameters, TypeParametersProps } from "./components/type-parameters.mjs";
|
|
5
5
|
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet } from "./components/class-declaration.mjs";
|
|
6
6
|
import { DynamicImportStatement, DynamicImportStatementProps } from "./components/dynamic-import-statement.mjs";
|
|
7
7
|
import { EntryFile, EntryFileProps } from "./components/entry-file.mjs";
|
|
8
|
-
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps } from "./components/interface-declaration.mjs";
|
|
9
|
-
import {
|
|
8
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, InterfaceSchemaMemberProps } from "./components/interface-declaration.mjs";
|
|
9
|
+
import { ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps } from "./components/object-declaration.mjs";
|
|
10
10
|
import { PropertyName, PropertyNameProps } from "./components/property-name.mjs";
|
|
11
11
|
import { RecordExpression, RecordExpressionProps } from "./components/record-expression.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { TSDocObjectSchema, TSDocObjectSchemaProps, TSDocSchemaProperty, TSDocSchemaPropertyProps } from "./components/tsdoc-schema.mjs";
|
|
13
13
|
import { TypeDeclaration, TypeDeclarationProps } from "./components/type-declaration.mjs";
|
|
14
14
|
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.mjs";
|
|
15
15
|
import { getCallSignatureProps } from "./helpers/get-call-signature-props.mjs";
|
|
16
16
|
import { isValidJSIdentifier } from "./helpers/utilities.mjs";
|
|
17
|
-
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet,
|
|
17
|
+
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, InterfaceSchemaMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocGroup, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocObjectSchema, TSDocObjectSchemaProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocSchemaProperty, TSDocSchemaPropertyProps, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocThrows, TSDocTitle } from "./components/tsdoc.mjs";
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocGroup, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocTag, TSDocThrows, TSDocTitle } from "./components/tsdoc.mjs";
|
|
2
2
|
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./components/typescript-file.mjs";
|
|
3
3
|
import { BuiltinFile } from "./components/builtin-file.mjs";
|
|
4
4
|
import { LexicalScope } from "./contexts/lexical-scope.mjs";
|
|
@@ -11,11 +11,11 @@ import { TypeParameters } from "./components/type-parameters.mjs";
|
|
|
11
11
|
import { ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet } from "./components/class-declaration.mjs";
|
|
12
12
|
import { DynamicImportStatement } from "./components/dynamic-import-statement.mjs";
|
|
13
13
|
import { EntryFile } from "./components/entry-file.mjs";
|
|
14
|
-
import {
|
|
14
|
+
import { TSDocObjectSchema, TSDocSchemaProperty } from "./components/tsdoc-schema.mjs";
|
|
15
15
|
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember } from "./components/interface-declaration.mjs";
|
|
16
16
|
import { ObjectDeclaration, ObjectDeclarationProperty } from "./components/object-declaration.mjs";
|
|
17
17
|
import { RecordExpression } from "./components/record-expression.mjs";
|
|
18
18
|
import { TypeDeclaration } from "./components/type-declaration.mjs";
|
|
19
19
|
import "./components/index.mjs";
|
|
20
20
|
|
|
21
|
-
export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet, DynamicImportStatement, EntryFile, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember, LexicalScope, ObjectDeclaration, ObjectDeclarationProperty, PropertyName, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags,
|
|
21
|
+
export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet, DynamicImportStatement, EntryFile, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember, LexicalScope, ObjectDeclaration, ObjectDeclarationProperty, PropertyName, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocGroup, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocObjectSchema, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocRuntime, TSDocSchemaProperty, TSDocTag, TSDocThrows, TSDocTitle, TypeDeclaration, TypeParameters, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, getCallSignatureProps, isValidJSIdentifier };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-alloy",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.128",
|
|
4
4
|
"description": "A package containing various Alloy framework components and helper utilities.",
|
|
5
5
|
"keywords": ["alloy-js", "powerlines", "powerlines-plugin"],
|
|
6
6
|
"homepage": "https://stormsoftware.com",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"import": "./dist/core/contexts/meta.mjs",
|
|
81
81
|
"require": "./dist/core/contexts/meta.cjs"
|
|
82
82
|
},
|
|
83
|
-
"./core/contexts/
|
|
84
|
-
"import": "./dist/core/contexts/
|
|
85
|
-
"require": "./dist/core/contexts/
|
|
83
|
+
"./core/contexts/schema": {
|
|
84
|
+
"import": "./dist/core/contexts/schema.mjs",
|
|
85
|
+
"require": "./dist/core/contexts/schema.cjs"
|
|
86
86
|
},
|
|
87
87
|
"./core/helpers": {
|
|
88
88
|
"import": "./dist/core/helpers/index.mjs",
|
|
@@ -228,9 +228,9 @@
|
|
|
228
228
|
"import": "./dist/typescript/components/tsdoc.mjs",
|
|
229
229
|
"require": "./dist/typescript/components/tsdoc.cjs"
|
|
230
230
|
},
|
|
231
|
-
"./typescript/components/tsdoc-
|
|
232
|
-
"import": "./dist/typescript/components/tsdoc-
|
|
233
|
-
"require": "./dist/typescript/components/tsdoc-
|
|
231
|
+
"./typescript/components/tsdoc-schema": {
|
|
232
|
+
"import": "./dist/typescript/components/tsdoc-schema.mjs",
|
|
233
|
+
"require": "./dist/typescript/components/tsdoc-schema.cjs"
|
|
234
234
|
},
|
|
235
235
|
"./typescript/components/type-declaration": {
|
|
236
236
|
"import": "./dist/typescript/components/type-declaration.mjs",
|
|
@@ -292,8 +292,8 @@
|
|
|
292
292
|
"@alloy-js/json": "^0.23.0",
|
|
293
293
|
"@alloy-js/markdown": "^0.23.0",
|
|
294
294
|
"@alloy-js/typescript": "^0.23.0",
|
|
295
|
-
"@powerlines/deepkit": "^0.9.
|
|
296
|
-
"@powerlines/plugin-babel": "^0.13.
|
|
295
|
+
"@powerlines/deepkit": "^0.9.21",
|
|
296
|
+
"@powerlines/plugin-babel": "^0.13.41",
|
|
297
297
|
"@storm-software/config-tools": "^1.190.20",
|
|
298
298
|
"@stryke/capnp": "^0.12.102",
|
|
299
299
|
"@stryke/convert": "^0.7.7",
|
|
@@ -306,13 +306,13 @@
|
|
|
306
306
|
"@stryke/types": "^0.12.4",
|
|
307
307
|
"@stryke/unique-id": "^0.3.87",
|
|
308
308
|
"defu": "^6.1.7",
|
|
309
|
-
"powerlines": "^0.47.
|
|
309
|
+
"powerlines": "^0.47.45",
|
|
310
310
|
"prettier": "^3.8.3",
|
|
311
311
|
"unctx": "^2.5.0"
|
|
312
312
|
},
|
|
313
313
|
"devDependencies": {
|
|
314
314
|
"@babel/preset-typescript": "8.0.0-rc.5",
|
|
315
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
315
|
+
"@powerlines/plugin-plugin": "^0.12.457",
|
|
316
316
|
"@types/node": "^25.9.0"
|
|
317
317
|
},
|
|
318
318
|
"peerDependencies": {
|
|
@@ -324,5 +324,5 @@
|
|
|
324
324
|
"@babel/preset-typescript": { "optional": false }
|
|
325
325
|
},
|
|
326
326
|
"publishConfig": { "access": "public" },
|
|
327
|
-
"gitHead": "
|
|
327
|
+
"gitHead": "f95fab7200cc5687144ea1b1ee4ba77b44000935"
|
|
328
328
|
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ReflectionOverrideInterface } from "../../types/components.cjs";
|
|
2
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
3
|
-
import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
-
|
|
5
|
-
//#region src/core/contexts/reflection.d.ts
|
|
6
|
-
interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
7
|
-
reflection: ReflectionClass<T>;
|
|
8
|
-
override?: ReflectionOverrideInterface<T>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The reflection class context used in template rendering.
|
|
12
|
-
*/
|
|
13
|
-
declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
|
|
14
|
-
/**
|
|
15
|
-
* Hook to access the Reflection context.
|
|
16
|
-
*
|
|
17
|
-
* @returns A reactive version of the current reflection.
|
|
18
|
-
*/
|
|
19
|
-
declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
|
|
20
|
-
interface ReflectionPropertyContextInterface {
|
|
21
|
-
property: ReflectionProperty;
|
|
22
|
-
defaultValue?: any;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* The reflection property context used in template rendering.
|
|
26
|
-
*/
|
|
27
|
-
declare const ReflectionPropertyContext: ComponentContext<ReflectionPropertyContextInterface>;
|
|
28
|
-
/**
|
|
29
|
-
* Hook to access the Reflection Property context.
|
|
30
|
-
*
|
|
31
|
-
* @returns A reactive version of the current reflection.
|
|
32
|
-
*/
|
|
33
|
-
declare function useReflectionPropertyContext(): ReflectionPropertyContextInterface;
|
|
34
|
-
/**
|
|
35
|
-
* Hook to access the Reflection Property context.
|
|
36
|
-
*
|
|
37
|
-
* @returns A reactive version of the current reflection.
|
|
38
|
-
*/
|
|
39
|
-
declare function useReflectionProperty(): ReflectionPropertyContextInterface;
|
|
40
|
-
/**
|
|
41
|
-
* The reflection method context used in template rendering.
|
|
42
|
-
*/
|
|
43
|
-
declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
|
|
44
|
-
/**
|
|
45
|
-
* Hook to access the Reflection Method context.
|
|
46
|
-
*
|
|
47
|
-
* @returns A reactive version of the current reflection.
|
|
48
|
-
*/
|
|
49
|
-
declare function useReflectionMethod(): ReflectionMethod;
|
|
50
|
-
/**
|
|
51
|
-
* The reflection parameter context used in template rendering.
|
|
52
|
-
*/
|
|
53
|
-
declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
|
|
54
|
-
/**
|
|
55
|
-
* Hook to access the Reflection Parameter context.
|
|
56
|
-
*
|
|
57
|
-
* @returns A reactive version of the current reflection.
|
|
58
|
-
*/
|
|
59
|
-
declare function useReflectionParameter(): ReflectionParameter;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
|
62
|
-
//# sourceMappingURL=reflection.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.d.cts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAgB,CACnD,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;AAAA,UAepC,kCAAA;EACf,QAAA,EAAU,kBAAkB;EAC5B,YAAA;AAAA;;;;cAMW,yBAAA,EAA2B,gBAAgB,CAAC,kCAAA;;AAvCf;AAM1C;;;iBAyCgB,4BAAA,CAAA,GAA4B,kCAAA;AAxCX;AAQjC;;;;AARiC,iBA2DjB,qBAAA,CAAA,GAAqB,kCAAA;;;;cAexB,uBAAA,EAAyB,gBAAgB,CAAC,gBAAA;;;;;;iBAQvC,mBAAA,CAAA,GAAmB,gBAAA;AAzEkB;AAerD;;AAfqD,cAwFxC,0BAAA,EAA4B,gBAAgB,CAAC,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA"}
|