@powerlines/plugin-alloy 0.18.113 → 0.18.114

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 (62) hide show
  1. package/dist/core/components/output.d.cts +2 -2
  2. package/dist/core/components/single-line-comment.d.cts +2 -2
  3. package/dist/core/components/single-line-comment.d.mts +2 -2
  4. package/dist/core/components/source-file.d.cts +2 -2
  5. package/dist/core/components/source-file.d.mts +2 -2
  6. package/dist/deepkit/src/utilities.cjs +114 -0
  7. package/dist/deepkit/src/utilities.mjs +110 -0
  8. package/dist/helpers/capnp.cjs +10 -10
  9. package/dist/helpers/capnp.mjs +6 -6
  10. package/dist/helpers/typescript.cjs +2 -2
  11. package/dist/helpers/typescript.mjs +1 -1
  12. package/dist/index.cjs +3 -4
  13. package/dist/index.mjs +3 -3
  14. package/dist/markdown/components/markdown-file.d.cts +3 -3
  15. package/dist/markdown/components/markdown-file.d.mts +3 -3
  16. package/dist/markdown/components/markdown-table.d.cts +4 -4
  17. package/dist/markdown/components/markdown-table.d.mts +4 -4
  18. package/dist/plugin-babel/src/helpers/ast-utils.cjs +10 -0
  19. package/dist/plugin-babel/src/helpers/ast-utils.mjs +9 -0
  20. package/dist/plugin-babel/src/helpers/create-plugin.cjs +6 -0
  21. package/dist/plugin-babel/src/helpers/create-plugin.mjs +6 -0
  22. package/dist/plugin-babel/src/helpers/filters.cjs +23 -0
  23. package/dist/plugin-babel/src/helpers/filters.mjs +21 -0
  24. package/dist/plugin-babel/src/helpers/index.cjs +5 -0
  25. package/dist/plugin-babel/src/helpers/index.mjs +7 -0
  26. package/dist/plugin-babel/src/helpers/module-helpers.cjs +4 -0
  27. package/dist/plugin-babel/src/helpers/module-helpers.mjs +5 -0
  28. package/dist/plugin-babel/src/helpers/options.cjs +49 -0
  29. package/dist/plugin-babel/src/helpers/options.mjs +46 -0
  30. package/dist/plugin-babel/src/index.cjs +83 -0
  31. package/dist/plugin-babel/src/index.mjs +81 -0
  32. package/dist/plugin-babel/src/types/plugin.d.mts +1 -0
  33. package/dist/powerlines/src/internal/helpers/hooks.d.mts +2 -0
  34. package/dist/powerlines/src/lib/logger.cjs +9 -0
  35. package/dist/powerlines/src/lib/logger.mjs +9 -0
  36. package/dist/powerlines/src/lib/utilities/file-header.cjs +13 -0
  37. package/dist/powerlines/src/lib/utilities/file-header.mjs +12 -0
  38. package/dist/powerlines/src/types/commands.d.mts +1 -0
  39. package/dist/powerlines/src/types/config.d.mts +2 -2
  40. package/dist/powerlines/src/types/unplugin.d.mts +1 -0
  41. package/dist/typescript/components/builtin-file.d.cts +2 -2
  42. package/dist/typescript/components/builtin-file.d.mts +2 -2
  43. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  44. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  45. package/dist/typescript/components/entry-file.d.cts +2 -2
  46. package/dist/typescript/components/tsdoc-reflection.cjs +2 -2
  47. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  48. package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
  49. package/dist/typescript/components/tsdoc-reflection.mjs +2 -2
  50. package/dist/typescript/components/tsdoc.cjs +3 -3
  51. package/dist/typescript/components/tsdoc.d.mts +1 -1
  52. package/dist/typescript/components/tsdoc.mjs +2 -2
  53. package/dist/typescript/components/typescript-file.cjs +1 -1
  54. package/dist/typescript/components/typescript-file.mjs +1 -1
  55. package/dist/typescript/components/typescript-interface.cjs +2 -2
  56. package/dist/typescript/components/typescript-interface.d.cts +3 -3
  57. package/dist/typescript/components/typescript-interface.d.mts +4 -4
  58. package/dist/typescript/components/typescript-interface.mjs +2 -2
  59. package/dist/typescript/components/typescript-object.cjs +3 -3
  60. package/dist/typescript/components/typescript-object.d.mts +1 -1
  61. package/dist/typescript/components/typescript-object.mjs +2 -2
  62. package/package.json +4 -4
@@ -1,9 +1,9 @@
1
1
  import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
2
+ import { stringifyDefaultValue } from "../../deepkit/src/utilities.mjs";
2
3
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
3
4
  import { For, List, Prose, Show, childrenArray, splitProps } from "@alloy-js/core";
4
- import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
5
- import { isSetString } from "@stryke/type-checks/is-set-string";
6
5
  import { isUndefined } from "@stryke/type-checks/is-undefined";
6
+ import { isSetString } from "@stryke/type-checks/is-set-string";
7
7
 
8
8
  //#region src/typescript/components/tsdoc.tsx
9
9
  /**
@@ -4,11 +4,11 @@ const require_core_components_single_line_comment = require('../../core/componen
4
4
  const require_core_components_source_file = require('../../core/components/source-file.cjs');
5
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
6
  let __alloy_js_core = require("@alloy-js/core");
7
+ let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
7
8
  let __alloy_js_typescript = require("@alloy-js/typescript");
8
9
  let __stryke_path_append = require("@stryke/path/append");
9
10
  let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
10
11
  let __stryke_type_checks_is_boolean = require("@stryke/type-checks/is-boolean");
11
- let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
12
12
 
13
13
  //#region src/typescript/components/typescript-file.tsx
14
14
  /**
@@ -3,11 +3,11 @@ import { SingleLineComment } from "../../core/components/single-line-comment.mjs
3
3
  import { SourceFile } from "../../core/components/source-file.mjs";
4
4
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
5
5
  import { For, Scope, Show, SourceDirectoryContext, code, splitProps, useContext, useScope } from "@alloy-js/core";
6
+ import { isString } from "@stryke/type-checks/is-string";
6
7
  import { ImportStatements, PackageContext, SourceFileContext as SourceFileContext$1, TSModuleScope, getSourceDirectoryData, useSourceFile } from "@alloy-js/typescript";
7
8
  import { appendPath } from "@stryke/path/append";
8
9
  import { titleCase } from "@stryke/string-format/title-case";
9
10
  import { isBoolean } from "@stryke/type-checks/is-boolean";
10
- import { isString } from "@stryke/type-checks/is-string";
11
11
 
12
12
  //#region src/typescript/components/typescript-file.tsx
13
13
  /**
@@ -3,9 +3,9 @@ const require_core_contexts_reflection = require('../../core/contexts/reflection
3
3
  const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
4
4
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
5
  let __alloy_js_core = require("@alloy-js/core");
6
- let __alloy_js_typescript = require("@alloy-js/typescript");
7
- let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
8
6
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
7
+ let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
8
+ let __alloy_js_typescript = require("@alloy-js/typescript");
9
9
  let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
10
10
 
11
11
  //#region src/typescript/components/typescript-interface.tsx
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core8 from "@alloy-js/core";
2
+ import * as _alloy_js_core2 from "@alloy-js/core";
3
3
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
4
4
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
5
5
 
@@ -14,11 +14,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
14
14
  /**
15
15
  * Generates a TypeScript interface for the given reflection class.
16
16
  */
17
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core8.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core2.Children;
18
18
  /**
19
19
  * Generates a TypeScript interface property for the given reflection class.
20
20
  */
21
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core8.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core2.Children;
22
22
  declare type __ΩTypeScriptInterfaceProps = any[];
23
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
24
24
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core1 from "@alloy-js/core";
3
- import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
2
+ import * as _alloy_js_core4 from "@alloy-js/core";
4
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
+ import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
5
5
 
6
6
  //#region src/typescript/components/typescript-interface.d.ts
7
7
  interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
@@ -14,11 +14,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
14
14
  /**
15
15
  * Generates a TypeScript interface for the given reflection class.
16
16
  */
17
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core1.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core4.Children;
18
18
  /**
19
19
  * Generates a TypeScript interface property for the given reflection class.
20
20
  */
21
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core1.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core4.Children;
22
22
  declare type __ΩTypeScriptInterfaceProps = any[];
23
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
24
24
  //#endregion
@@ -2,9 +2,9 @@ import { ReflectionClassContext, ReflectionPropertyContext } from "../../core/co
2
2
  import { TSDocReflectionClass, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
3
3
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
4
4
  import { For, computed, splitProps } from "@alloy-js/core";
5
- import { InterfaceDeclaration, InterfaceMember } from "@alloy-js/typescript";
6
- import { isString } from "@stryke/type-checks/is-string";
7
5
  import { stringifyType } from "@powerlines/deepkit/vendor/type";
6
+ import { isString } from "@stryke/type-checks/is-string";
7
+ import { InterfaceDeclaration, InterfaceMember } from "@alloy-js/typescript";
8
8
  import { pascalCase } from "@stryke/string-format/pascal-case";
9
9
 
10
10
  //#region src/typescript/components/typescript-interface.tsx
@@ -1,12 +1,12 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_utilities = require('../../deepkit/src/utilities.cjs');
2
3
  const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
3
4
  const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
4
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_string = require("@stryke/type-checks/is-string");
7
8
  let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
8
9
  let __alloy_js_typescript = require("@alloy-js/typescript");
9
- let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
10
10
  let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
11
11
  let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
12
12
 
@@ -111,7 +111,7 @@ function TypescriptObjectProperty(props) {
111
111
  return property.getNameAsString();
112
112
  },
113
113
  get value() {
114
- return (0, __powerlines_deepkit_utilities.stringifyDefaultValue)(property);
114
+ return require_utilities.stringifyDefaultValue(property);
115
115
  }
116
116
  }),
117
117
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
2
  import * as _alloy_js_core0 from "@alloy-js/core";
3
- import { VarDeclarationProps } from "@alloy-js/typescript";
4
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
+ import { VarDeclarationProps } from "@alloy-js/typescript";
5
5
 
6
6
  //#region src/typescript/components/typescript-object.d.ts
7
7
  interface ComputedRef<T = any> {
@@ -1,11 +1,11 @@
1
+ import { stringifyDefaultValue } from "../../deepkit/src/utilities.mjs";
1
2
  import { ReflectionClassContext, ReflectionPropertyContext } from "../../core/contexts/reflection.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 { isString } from "@stryke/type-checks/is-string";
6
7
  import { isUndefined } from "@stryke/type-checks/is-undefined";
7
8
  import { ObjectExpression, ObjectProperty, TSSymbolFlags, TypeRefContext, createValueSymbol, useTSNamePolicy } from "@alloy-js/typescript";
8
- import { isString } from "@stryke/type-checks/is-string";
9
9
  import { pascalCase } from "@stryke/string-format/pascal-case";
10
10
  import { camelCase } from "@stryke/string-format/camel-case";
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.18.113",
3
+ "version": "0.18.114",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -361,7 +361,7 @@
361
361
  "@alloy-js/markdown": "^0.22.0",
362
362
  "@alloy-js/typescript": "^0.22.0",
363
363
  "@powerlines/deepkit": "^0.6.5",
364
- "@powerlines/plugin-babel": "^0.12.231",
364
+ "@powerlines/plugin-babel": "^0.12.232",
365
365
  "@storm-software/config-tools": "^1.189.0",
366
366
  "@stryke/capnp": "^0.12.61",
367
367
  "@stryke/convert": "^0.6.35",
@@ -378,9 +378,9 @@
378
378
  "prettier": "^3.8.1"
379
379
  },
380
380
  "devDependencies": {
381
- "@powerlines/plugin-plugin": "^0.12.173",
381
+ "@powerlines/plugin-plugin": "^0.12.174",
382
382
  "@types/node": "^24.10.9"
383
383
  },
384
384
  "publishConfig": { "access": "public" },
385
- "gitHead": "e16caf75f522908b123bf7941a1f0f658fe4ba7b"
385
+ "gitHead": "2852dab8ff7cad2d1aa4a44d7fd2479d62f65d47"
386
386
  }