@powerlines/plugin-alloy 0.15.4 → 0.15.6
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/components/index.cjs +1 -1
- package/dist/core/components/index.mjs +1 -1
- package/dist/core/components/output.d.cts +2 -2
- package/dist/core/components/output.d.mts +2 -2
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/source-file.d.cts +2 -2
- package/dist/core/components/source-file.d.mts +2 -2
- package/dist/core/contexts/reflection.d.cts +7 -8
- package/dist/core/contexts/reflection.d.mts +7 -8
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/deepkit/src/utilities.cjs +112 -0
- package/dist/deepkit/src/utilities.mjs +108 -0
- package/dist/helpers/capnp.cjs +31 -33
- package/dist/helpers/capnp.d.cts +13 -14
- package/dist/helpers/capnp.d.mts +13 -14
- package/dist/helpers/capnp.mjs +9 -11
- package/dist/helpers/index.cjs +2 -2
- package/dist/helpers/index.mjs +2 -2
- package/dist/helpers/typescript.cjs +3 -3
- package/dist/helpers/typescript.d.cts +1 -3
- package/dist/helpers/typescript.d.mts +1 -3
- package/dist/helpers/typescript.mjs +2 -2
- package/dist/index.cjs +22 -16
- package/dist/index.mjs +22 -16
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-file.d.mts +3 -3
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- package/dist/markdown/components/markdown-table.d.mts +4 -4
- package/dist/powerlines/src/lib/utilities/file-header.cjs +13 -0
- package/dist/powerlines/src/lib/utilities/file-header.mjs +12 -0
- package/dist/powerlines/src/types/config.d.cts +12 -0
- package/dist/powerlines/src/types/config.d.mts +12 -0
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/tsdoc-reflection.cjs +2 -2
- package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
- package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
- package/dist/typescript/components/tsdoc-reflection.mjs +2 -2
- package/dist/typescript/components/tsdoc.cjs +2 -2
- package/dist/typescript/components/tsdoc.mjs +1 -1
- package/dist/typescript/components/typescript-file.cjs +2 -2
- package/dist/typescript/components/typescript-file.mjs +2 -2
- package/dist/typescript/components/typescript-interface.cjs +2 -3
- package/dist/typescript/components/typescript-interface.d.cts +2 -3
- package/dist/typescript/components/typescript-interface.d.mts +5 -6
- package/dist/typescript/components/typescript-interface.mjs +1 -2
- package/dist/typescript/components/typescript-object.cjs +5 -5
- package/dist/typescript/components/typescript-object.d.cts +2 -3
- package/dist/typescript/components/typescript-object.d.mts +5 -6
- package/dist/typescript/components/typescript-object.mjs +4 -4
- package/dist/vendor.cjs +12594 -0
- package/dist/vendor.d.cts +1 -0
- package/dist/vendor.d.ts +1 -0
- package/dist/vendor.js +12424 -0
- package/package.json +23 -7
- package/dist/_virtual/rolldown_runtime.mjs +0 -31
- package/dist/deepkit/src/vendor/type.d.cts +0 -7
- package/dist/deepkit/src/vendor/type.d.mts +0 -7
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
3
|
+
const require_utilities = require('../../deepkit/src/utilities.cjs');
|
|
3
4
|
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
4
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
6
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
|
|
7
|
-
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
8
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
9
7
|
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
10
|
-
let
|
|
8
|
+
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
11
9
|
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
10
|
+
let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
|
|
11
|
+
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
12
12
|
|
|
13
13
|
//#region src/typescript/components/typescript-object.tsx
|
|
14
14
|
/**
|
|
@@ -111,7 +111,7 @@ function TypescriptObjectProperty(props) {
|
|
|
111
111
|
return property.getNameAsString();
|
|
112
112
|
},
|
|
113
113
|
get value() {
|
|
114
|
-
return
|
|
114
|
+
return require_utilities.stringifyDefaultValue(property);
|
|
115
115
|
}
|
|
116
116
|
}),
|
|
117
117
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import { type_d_exports } from "../../deepkit/src/vendor/type.cjs";
|
|
3
2
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
4
3
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
5
4
|
import { ComputedRef } from "@vue/reactivity";
|
|
6
5
|
|
|
7
6
|
//#region src/typescript/components/typescript-object.d.ts
|
|
8
7
|
interface TypescriptObjectProps<T extends Record<string, any> = Record<string, any>> extends VarDeclarationProps {
|
|
9
|
-
reflection?: ComputedRef<
|
|
8
|
+
reflection?: ComputedRef<ReflectionClass<T>>;
|
|
10
9
|
defaultValue?: ComputedRef<Partial<T> | undefined>;
|
|
11
10
|
}
|
|
12
11
|
interface TypescriptObjectPropertyProps extends ComponentProps {
|
|
13
|
-
property:
|
|
12
|
+
property: ReflectionProperty;
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
15
|
* Generates a TypeScript object for the given reflection class.
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import
|
|
3
|
-
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
|
+
import * as _alloy_js_core5 from "@alloy-js/core";
|
|
4
3
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
5
4
|
import { ComputedRef } from "@vue/reactivity";
|
|
6
5
|
|
|
7
6
|
//#region src/typescript/components/typescript-object.d.ts
|
|
8
7
|
interface TypescriptObjectProps<T extends Record<string, any> = Record<string, any>> extends VarDeclarationProps {
|
|
9
|
-
reflection?: ComputedRef<
|
|
8
|
+
reflection?: ComputedRef<ReflectionClass<T>>;
|
|
10
9
|
defaultValue?: ComputedRef<Partial<T> | undefined>;
|
|
11
10
|
}
|
|
12
11
|
interface TypescriptObjectPropertyProps extends ComponentProps {
|
|
13
|
-
property:
|
|
12
|
+
property: ReflectionProperty;
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
15
|
* Generates a TypeScript object for the given reflection class.
|
|
17
16
|
*/
|
|
18
|
-
declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>):
|
|
17
|
+
declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core5.Children;
|
|
19
18
|
/**
|
|
20
19
|
* Generates a TypeScript object property for the given reflection class.
|
|
21
20
|
*/
|
|
22
|
-
declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps):
|
|
21
|
+
declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core5.Children;
|
|
23
22
|
declare type __ΩTypescriptObjectProps = any[];
|
|
24
23
|
declare type __ΩTypescriptObjectPropertyProps = any[];
|
|
25
24
|
//#endregion
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReflectionClassContext, ReflectionPropertyContext } from "../../core/contexts/reflection.mjs";
|
|
2
|
+
import { stringifyDefaultValue } from "../../deepkit/src/utilities.mjs";
|
|
2
3
|
import { TSDocReflectionClass, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
3
4
|
import { createComponent, createIntrinsic, memo } from "@alloy-js/core/jsx-runtime";
|
|
4
5
|
import { Declaration, For, Name, Show, computed, createSymbolSlot, splitProps } from "@alloy-js/core";
|
|
5
|
-
import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
|
|
6
|
-
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
7
|
-
import { ObjectExpression, ObjectProperty, TSSymbolFlags, TypeRefContext, createValueSymbol, useTSNamePolicy } from "@alloy-js/typescript";
|
|
8
6
|
import { isString } from "@stryke/type-checks/is-string";
|
|
9
|
-
import {
|
|
7
|
+
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
10
8
|
import { camelCase } from "@stryke/string-format/camel-case";
|
|
9
|
+
import { pascalCase } from "@stryke/string-format/pascal-case";
|
|
10
|
+
import { ObjectExpression, ObjectProperty, TSSymbolFlags, TypeRefContext, createValueSymbol, useTSNamePolicy } from "@alloy-js/typescript";
|
|
11
11
|
|
|
12
12
|
//#region src/typescript/components/typescript-object.tsx
|
|
13
13
|
/**
|