@powerlines/plugin-react 0.1.126 → 0.1.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.
Files changed (74) hide show
  1. package/dist/components/react-optimized.cjs +16 -10
  2. package/dist/components/react-optimized.d.cts +1 -1
  3. package/dist/components/react-optimized.d.mts +1 -1
  4. package/dist/components/react-optimized.mjs +14 -8
  5. package/dist/index.d.cts +1 -1
  6. package/dist/index.d.mts +1 -1
  7. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
  8. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
  9. package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
  10. package/dist/plugin-alloy/src/core/components/source-file.d.cts +23 -0
  11. package/dist/plugin-alloy/src/core/components/source-file.d.mts +23 -0
  12. package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
  13. package/dist/plugin-alloy/src/core/contexts/context.cjs +50 -1
  14. package/dist/plugin-alloy/src/core/contexts/context.mjs +46 -2
  15. package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
  16. package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
  17. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +46 -0
  18. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +42 -0
  19. package/dist/plugin-alloy/src/helpers/refkey.cjs +16 -0
  20. package/dist/plugin-alloy/src/helpers/refkey.mjs +15 -0
  21. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +7 -0
  22. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +9 -0
  23. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +5 -0
  24. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +7 -0
  25. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +17 -0
  26. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +17 -0
  27. package/dist/plugin-alloy/src/types/components.d.cts +19 -0
  28. package/dist/plugin-alloy/src/types/components.d.mts +19 -1
  29. package/dist/plugin-alloy/src/types/index.d.mts +1 -1
  30. package/dist/plugin-alloy/src/types/plugin.d.cts +1 -1
  31. package/dist/plugin-alloy/src/types/plugin.d.mts +1 -1
  32. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +57 -0
  33. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +25 -0
  34. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +26 -0
  35. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +56 -0
  36. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +126 -0
  37. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +124 -0
  38. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +442 -0
  39. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +27 -0
  40. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +28 -0
  41. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +433 -0
  42. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +193 -0
  43. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +14 -0
  44. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +15 -0
  45. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +190 -0
  46. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +68 -0
  47. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +67 -0
  48. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
  49. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
  50. package/dist/plugin-automd/src/types/plugin.d.mts +1 -1
  51. package/dist/plugin-babel/src/types/plugin.d.cts +1 -1
  52. package/dist/plugin-babel/src/types/plugin.d.mts +1 -1
  53. package/dist/plugin-env/src/components/docs.cjs +3 -3
  54. package/dist/plugin-env/src/components/docs.mjs +3 -3
  55. package/dist/plugin-env/src/components/env.cjs +35 -39
  56. package/dist/plugin-env/src/components/env.mjs +10 -14
  57. package/dist/powerlines/src/lib/build/esbuild.mjs +1 -1
  58. package/dist/powerlines/src/lib/entry.mjs +1 -1
  59. package/dist/powerlines/src/types/babel.d.cts +1 -1
  60. package/dist/powerlines/src/types/babel.d.mts +1 -1
  61. package/dist/powerlines/src/types/build.d.mts +0 -2
  62. package/dist/powerlines/src/types/commands.d.cts +1 -1
  63. package/dist/powerlines/src/types/commands.d.mts +1 -1
  64. package/dist/powerlines/src/types/config.d.cts +5 -5
  65. package/dist/powerlines/src/types/config.d.mts +5 -5
  66. package/dist/powerlines/src/types/context.d.cts +1 -1
  67. package/dist/powerlines/src/types/context.d.mts +3 -3
  68. package/dist/powerlines/src/types/fs.d.cts +1 -1
  69. package/dist/powerlines/src/types/hooks.d.mts +2 -2
  70. package/dist/powerlines/src/types/plugin.d.cts +3 -3
  71. package/dist/powerlines/src/types/plugin.d.mts +3 -3
  72. package/dist/powerlines/src/types/resolved.d.cts +2 -2
  73. package/dist/powerlines/src/types/resolved.d.mts +2 -3
  74. package/package.json +6 -6
@@ -1,5 +1,11 @@
1
1
  const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
2
  const require_type = require('../../../deepkit/src/vendor/type.cjs');
3
+ const require_context = require('../../../plugin-alloy/src/core/contexts/context.cjs');
4
+ const require_refkey = require('../../../plugin-alloy/src/helpers/refkey.cjs');
5
+ const require_tsdoc = require('../../../plugin-alloy/src/typescript/components/tsdoc.cjs');
6
+ const require_builtin_file = require('../../../plugin-alloy/src/typescript/components/builtin-file.cjs');
7
+ const require_typescript_interface = require('../../../plugin-alloy/src/typescript/components/typescript-interface.cjs');
8
+ const require_typescript_object = require('../../../plugin-alloy/src/typescript/components/typescript-object.cjs');
3
9
  const require_load = require('../helpers/load.cjs');
4
10
  const require_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
5
11
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
@@ -9,12 +15,6 @@ let __stryke_string_format_title_case = require("@stryke/string-format/title-cas
9
15
  let __alloy_js_core = require("@alloy-js/core");
10
16
  let __stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
11
17
  let __alloy_js_typescript = require("@alloy-js/typescript");
12
- let __powerlines_alloy_core_contexts_context = require("@powerlines/alloy/core/contexts/context");
13
- let __powerlines_alloy_helpers_refkey = require("@powerlines/alloy/helpers/refkey");
14
- let __powerlines_alloy_typescript_components_builtin_file = require("@powerlines/alloy/typescript/components/builtin-file");
15
- let __powerlines_alloy_typescript_components_tsdoc = require("@powerlines/alloy/typescript/components/tsdoc");
16
- let __powerlines_alloy_typescript_components_typescript_interface = require("@powerlines/alloy/typescript/components/typescript-interface");
17
- let __powerlines_alloy_typescript_components_typescript_object = require("@powerlines/alloy/typescript/components/typescript-object");
18
18
 
19
19
  //#region ../plugin-env/src/components/env.tsx
20
20
  /**
@@ -22,9 +22,9 @@ let __powerlines_alloy_typescript_components_typescript_object = require("@power
22
22
  */
23
23
  function EnvTypeDefinition(props) {
24
24
  const [{ defaultValue, reflection }] = (0, __alloy_js_core.splitProps)(props, ["defaultValue", "reflection"]);
25
- const context = (0, __powerlines_alloy_core_contexts_context.usePowerlines)();
25
+ const context = require_context.usePowerlines();
26
26
  return [
27
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_typescript_interface.TypeScriptInterface, {
27
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_interface.TypeScriptInterface, {
28
28
  name: " EnvBase",
29
29
  "extends": ["EnvInterface"],
30
30
  defaultValue,
@@ -186,15 +186,15 @@ function ConfigPropertySet(props) {
186
186
  }
187
187
  })];
188
188
  }
189
- const createEnvRefkey = (0, __powerlines_alloy_helpers_refkey.refkey)("createEnv");
190
- const envRefkey = (0, __powerlines_alloy_helpers_refkey.refkey)("env");
191
- const envSerializerRefkey = (0, __powerlines_alloy_helpers_refkey.refkey)("EnvSerializer");
189
+ const createEnvRefkey = require_refkey.refkey("createEnv");
190
+ const envRefkey = require_refkey.refkey("env");
191
+ const envSerializerRefkey = require_refkey.refkey("EnvSerializer");
192
192
  /**
193
193
  * Generates the environment configuration module for the Powerlines project.
194
194
  */
195
195
  function EnvBuiltin(props) {
196
196
  const [{ defaultConfig }, rest] = (0, __alloy_js_core.splitProps)(props, ["defaultConfig"]);
197
- const context = (0, __powerlines_alloy_core_contexts_context.usePowerlines)();
197
+ const context = require_context.usePowerlines();
198
198
  const defaultValue = (0, __alloy_js_core.computed)(() => context && require_load.loadEnvFromContext(context, process.env));
199
199
  const reflection = require_create_reflection_resource.createReflectionResource(context);
200
200
  const envInstance = (0, __alloy_js_core.computed)(() => {
@@ -206,7 +206,7 @@ function EnvBuiltin(props) {
206
206
  });
207
207
  const reflectionGetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
208
208
  const reflectionSetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
209
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_builtin_file.BuiltinFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
209
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_builtin_file.BuiltinFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
210
210
  id: "env",
211
211
  description: "The Powerlines environment configuration module provides an interface to define environment configuration parameters.",
212
212
  get imports() {
@@ -247,7 +247,7 @@ function EnvBuiltin(props) {
247
247
  ];
248
248
  }
249
249
  }),
250
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_typescript_object.TypescriptObject, {
250
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_object.TypescriptObject, {
251
251
  name: "initialEnv",
252
252
  type: "Partial<EnvBase>",
253
253
  defaultValue,
@@ -257,13 +257,13 @@ function EnvBuiltin(props) {
257
257
  }),
258
258
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
259
259
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
260
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDoc, {
260
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
261
261
  heading: "The environment configuration serializer for the Powerlines application.",
262
262
  get children() {
263
263
  return [
264
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
265
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
266
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
264
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
265
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
266
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
267
267
  ];
268
268
  }
269
269
  }),
@@ -293,13 +293,13 @@ function EnvBuiltin(props) {
293
293
  }),
294
294
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
295
295
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
296
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDoc, {
296
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
297
297
  heading: "A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.",
298
298
  get children() {
299
299
  return [
300
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
301
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
302
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
300
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
301
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
302
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
303
303
  ];
304
304
  }
305
305
  }),
@@ -316,13 +316,13 @@ function EnvBuiltin(props) {
316
316
  }),
317
317
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
318
318
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
319
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDoc, {
319
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
320
320
  heading: "Serialize a environment configuration object to JSON data objects (not a JSON string).",
321
321
  get children() {
322
322
  return [
323
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The resulting JSON object can be stringified using JSON.stringify().` }),
324
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocExample, { children: `const json = serializeEnv(env);` }),
325
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocThrows, { children: `ValidationError when serialization or validation fails.` })
323
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `The resulting JSON object can be stringified using JSON.stringify().` }),
324
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocExample, { children: `const json = serializeEnv(env);` }),
325
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocThrows, { children: `ValidationError when serialization or validation fails.` })
326
326
  ];
327
327
  }
328
328
  }),
@@ -334,13 +334,13 @@ function EnvBuiltin(props) {
334
334
  }),
335
335
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
336
336
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
337
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDoc, {
337
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
338
338
  heading: "Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.",
339
339
  get children() {
340
340
  return [
341
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `Types that are already correct will be used as-is.` }),
342
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocExample, { children: `const env = deserializeEnv(json);` }),
343
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocThrows, { children: `ValidationError when deserialization fails.` })
341
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `Types that are already correct will be used as-is.` }),
342
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocExample, { children: `const env = deserializeEnv(json);` }),
343
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocThrows, { children: `ValidationError when deserialization fails.` })
344
344
  ];
345
345
  }
346
346
  }),
@@ -352,16 +352,16 @@ function EnvBuiltin(props) {
352
352
  }),
353
353
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
354
354
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
355
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDoc, {
355
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
356
356
  heading: "Initializes the Powerlines environment configuration module.",
357
357
  get children() {
358
358
  return [
359
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function initializes the Powerlines environment configuration object.` }),
360
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocParam, {
359
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `This function initializes the Powerlines environment configuration object.` }),
360
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocParam, {
361
361
  name: "environmentConfig",
362
362
  children: `The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`
363
363
  }),
364
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_alloy_typescript_components_tsdoc.TSDocReturns, { children: `The initialized Powerlines configuration object.` })
364
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocReturns, { children: `The initialized Powerlines configuration object.` })
365
365
  ];
366
366
  }
367
367
  }),
@@ -438,11 +438,7 @@ function EnvBuiltin(props) {
438
438
  "export": true,
439
439
  "const": true,
440
440
  get initializer() {
441
- return [
442
- __alloy_js_core.code`createEnv(`,
443
- defaultConfig || "{}",
444
- __alloy_js_core.code` as Partial<Env>)`
445
- ];
441
+ return [__alloy_js_core.code`createEnv(${defaultConfig || "{}"} as Partial<Env>);`];
446
442
  }
447
443
  })
448
444
  ];
@@ -1,4 +1,10 @@
1
1
  import { type_exports } from "../../../deepkit/src/vendor/type.mjs";
2
+ import { usePowerlines } from "../../../plugin-alloy/src/core/contexts/context.mjs";
3
+ import { refkey as refkey$1 } from "../../../plugin-alloy/src/helpers/refkey.mjs";
4
+ import { TSDoc, TSDocExample, TSDocLink, TSDocParam, TSDocRemarks, TSDocReturns, TSDocThrows } from "../../../plugin-alloy/src/typescript/components/tsdoc.mjs";
5
+ import { BuiltinFile } from "../../../plugin-alloy/src/typescript/components/builtin-file.mjs";
6
+ import { TypeScriptInterface } from "../../../plugin-alloy/src/typescript/components/typescript-interface.mjs";
7
+ import { TypescriptObject } from "../../../plugin-alloy/src/typescript/components/typescript-object.mjs";
2
8
  import { loadEnvFromContext } from "../helpers/load.mjs";
3
9
  import { createReflectionResource } from "../helpers/create-reflection-resource.mjs";
4
10
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
@@ -7,12 +13,6 @@ import { titleCase } from "@stryke/string-format/title-case";
7
13
  import { For, Show, code, computed, splitProps } from "@alloy-js/core";
8
14
  import { isNull } from "@stryke/type-checks/is-null";
9
15
  import { ClassDeclaration, ClassMethod, ElseIfClause, FunctionDeclaration, IfStatement, NewExpression, TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
10
- import { usePowerlines } from "@powerlines/alloy/core/contexts/context";
11
- import { refkey } from "@powerlines/alloy/helpers/refkey";
12
- import { BuiltinFile } from "@powerlines/alloy/typescript/components/builtin-file";
13
- import { TSDoc, TSDocExample, TSDocLink, TSDocParam, TSDocRemarks, TSDocReturns, TSDocThrows } from "@powerlines/alloy/typescript/components/tsdoc";
14
- import { TypeScriptInterface } from "@powerlines/alloy/typescript/components/typescript-interface";
15
- import { TypescriptObject } from "@powerlines/alloy/typescript/components/typescript-object";
16
16
 
17
17
  //#region ../plugin-env/src/components/env.tsx
18
18
  /**
@@ -184,9 +184,9 @@ function ConfigPropertySet(props) {
184
184
  }
185
185
  })];
186
186
  }
187
- const createEnvRefkey = refkey("createEnv");
188
- const envRefkey = refkey("env");
189
- const envSerializerRefkey = refkey("EnvSerializer");
187
+ const createEnvRefkey = refkey$1("createEnv");
188
+ const envRefkey = refkey$1("env");
189
+ const envSerializerRefkey = refkey$1("EnvSerializer");
190
190
  /**
191
191
  * Generates the environment configuration module for the Powerlines project.
192
192
  */
@@ -436,11 +436,7 @@ function EnvBuiltin(props) {
436
436
  "export": true,
437
437
  "const": true,
438
438
  get initializer() {
439
- return [
440
- code`createEnv(`,
441
- defaultConfig || "{}",
442
- code` as Partial<Env>)`
443
- ];
439
+ return [code`createEnv(${defaultConfig || "{}"} as Partial<Env>);`];
444
440
  }
445
441
  })
446
442
  ];
@@ -1,7 +1,7 @@
1
1
  import "../entry.mjs";
2
2
  import defu from "defu";
3
3
  import { isString } from "@stryke/type-checks/is-string";
4
- import { replacePath } from "@stryke/path/replace";
4
+ import { replaceExtension, replacePath } from "@stryke/path/replace";
5
5
  import { joinPaths } from "@stryke/path/join-paths";
6
6
  import { omit } from "@stryke/helpers/omit";
7
7
  import { camelCase } from "@stryke/string-format/camel-case";
@@ -1,7 +1,7 @@
1
1
  import "../plugin-utils/paths.mjs";
2
2
  import { isSetString } from "@stryke/type-checks/is-set-string";
3
3
  import { isString } from "@stryke/type-checks/is-string";
4
- import { replacePath } from "@stryke/path/replace";
4
+ import { replaceExtension, replacePath } from "@stryke/path/replace";
5
5
  import { toArray } from "@stryke/convert/to-array";
6
6
  import "@stryke/fs/is-file";
7
7
  import { listFiles } from "@stryke/fs/list-files";
@@ -1,5 +1,5 @@
1
- import { LogFn } from "./config.cjs";
2
1
  import { Context } from "./context.cjs";
2
+ import { LogFn } from "./config.cjs";
3
3
  import { PluginItem, PluginObj, PluginPass } from "@babel/core";
4
4
  import { BabelAPI } from "@babel/helper-plugin-utils";
5
5
 
@@ -1,5 +1,5 @@
1
- import { LogFn } from "./config.mjs";
2
1
  import { Context } from "./context.mjs";
2
+ import { LogFn } from "./config.mjs";
3
3
  import { PluginItem, PluginObj, PluginPass } from "@babel/core";
4
4
  import { BabelAPI } from "@babel/helper-plugin-utils";
5
5
 
@@ -1,5 +1,3 @@
1
- import "esbuild";
2
-
3
1
  //#region ../powerlines/src/types/build.d.ts
4
2
 
5
3
  type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
@@ -1,5 +1,5 @@
1
- import { ArrayValues } from "@stryke/types/array";
2
1
  import { MaybePromise } from "@stryke/types/base";
2
+ import { ArrayValues } from "@stryke/types/array";
3
3
 
4
4
  //#region ../powerlines/src/types/commands.d.ts
5
5
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
@@ -1,6 +1,6 @@
1
1
  import "./context.mjs";
2
- import { ArrayValues } from "@stryke/types/array";
3
2
  import { MaybePromise } from "@stryke/types/base";
3
+ import { ArrayValues } from "@stryke/types/array";
4
4
 
5
5
  //#region ../powerlines/src/types/commands.d.ts
6
6
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
@@ -1,17 +1,17 @@
1
- import { BuildConfig, BuildResolvedConfig } from "./build.cjs";
2
- import { BabelTransformPluginOptions } from "./babel.cjs";
3
1
  import { StoragePort, StoragePreset } from "./fs.cjs";
2
+ import { BuildConfig, BuildResolvedConfig } from "./build.cjs";
3
+ import { Plugin } from "./plugin.cjs";
4
4
  import { TSConfig } from "./tsconfig.cjs";
5
5
  import { PluginContext } from "./context.cjs";
6
- import { Plugin } from "./plugin.cjs";
6
+ import { BabelTransformPluginOptions } from "./babel.cjs";
7
7
  import { MaybePromise } from "@stryke/types/base";
8
+ import { AssetGlob } from "@stryke/types/file";
9
+ import { TypeDefinitionParameter } from "@stryke/types/configuration";
8
10
  import { PreviewOptions } from "vite";
9
11
  import { transformAsync } from "@babel/core";
10
12
  import { Format } from "@storm-software/build-tools/types";
11
13
  import { LogLevelLabel } from "@storm-software/config-tools/types";
12
14
  import { StormWorkspaceConfig } from "@storm-software/config/types";
13
- import { TypeDefinitionParameter } from "@stryke/types/configuration";
14
- import { AssetGlob } from "@stryke/types/file";
15
15
  import { DateString } from "compatx";
16
16
 
17
17
  //#region ../powerlines/src/types/config.d.ts
@@ -1,18 +1,18 @@
1
- import { BuildConfig, BuildResolvedConfig } from "./build.mjs";
2
- import { BabelTransformPluginOptions } from "./babel.mjs";
3
1
  import { StoragePort, StoragePreset } from "./fs.mjs";
2
+ import { BuildConfig, BuildResolvedConfig } from "./build.mjs";
3
+ import { Plugin } from "./plugin.mjs";
4
4
  import { TSConfig } from "./tsconfig.mjs";
5
5
  import { PluginContext } from "./context.mjs";
6
- import { Plugin } from "./plugin.mjs";
6
+ import { BabelTransformPluginOptions } from "./babel.mjs";
7
7
  import { transformAsync } from "@babel/core";
8
8
  import { LogLevelLabel } from "@storm-software/config-tools/types";
9
9
  import "c12";
10
10
  import { MaybePromise } from "@stryke/types/base";
11
+ import { AssetGlob } from "@stryke/types/file";
12
+ import { TypeDefinitionParameter } from "@stryke/types/configuration";
11
13
  import { PreviewOptions } from "vite";
12
14
  import { Format } from "@storm-software/build-tools/types";
13
15
  import { StormWorkspaceConfig } from "@storm-software/config/types";
14
- import { TypeDefinitionParameter } from "@stryke/types/configuration";
15
- import { AssetGlob } from "@stryke/types/file";
16
16
  import { DateString } from "compatx";
17
17
 
18
18
  //#region ../powerlines/src/types/config.d.ts
@@ -3,7 +3,6 @@ import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
3
3
  import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
4
4
  import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
5
5
  import { NonUndefined } from "@stryke/types/base";
6
- import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
7
6
  import { EnvPaths } from "@stryke/env/get-env-paths";
8
7
  import { FetchRequestOptions } from "@stryke/http/fetch";
9
8
  import { PackageJson } from "@stryke/types/package-json";
@@ -13,6 +12,7 @@ import { ParseResult, ParserOptions } from "oxc-parser";
13
12
  import { Range } from "semver";
14
13
  import { Project } from "ts-morph";
15
14
  import { RequestInfo, Response } from "undici";
15
+ import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
16
16
 
17
17
  //#region ../powerlines/src/types/context.d.ts
18
18
 
@@ -1,11 +1,10 @@
1
1
  import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
2
+ import "./plugin.mjs";
3
+ import "./hooks.mjs";
2
4
  import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
3
5
  import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
4
- import "./hooks.mjs";
5
6
  import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
6
- import "./plugin.mjs";
7
7
  import { NonUndefined } from "@stryke/types/base";
8
- import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
9
8
  import { EnvPaths } from "@stryke/env/get-env-paths";
10
9
  import { FetchRequestOptions } from "@stryke/http/fetch";
11
10
  import { PackageJson } from "@stryke/types/package-json";
@@ -15,6 +14,7 @@ import { ParseResult, ParserOptions } from "oxc-parser";
15
14
  import { Range } from "semver";
16
15
  import { Project } from "ts-morph";
17
16
  import { RequestInfo, Response } from "undici";
17
+ import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
18
18
 
19
19
  //#region ../powerlines/src/types/context.d.ts
20
20
 
@@ -1,6 +1,6 @@
1
+ import { ResolveOptions } from "@stryke/fs/resolve";
1
2
  import { MaybePromise } from "@stryke/types/base";
2
3
  import { AssetGlob } from "@stryke/types/file";
3
- import { ResolveOptions } from "@stryke/fs/resolve";
4
4
 
5
5
  //#region ../powerlines/src/types/fs.d.ts
6
6
 
@@ -1,2 +1,2 @@
1
- import "./context.mjs";
2
- import "./plugin.mjs";
1
+ import "./plugin.mjs";
2
+ import "./context.mjs";
@@ -1,11 +1,11 @@
1
1
  import { UnpluginBuildVariant } from "./build.cjs";
2
+ import { CommandType } from "./commands.cjs";
3
+ import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
2
4
  import { EnvironmentConfig, PluginConfig } from "./config.cjs";
3
5
  import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
4
- import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
5
- import { CommandType } from "./commands.cjs";
6
- import { ArrayValues } from "@stryke/types/array";
7
6
  import { FunctionLike, MaybePromise } from "@stryke/types/base";
8
7
  import { ExternalIdResult, HookFilter, TransformResult, UnpluginOptions } from "unplugin";
8
+ import { ArrayValues } from "@stryke/types/array";
9
9
 
10
10
  //#region ../powerlines/src/types/plugin.d.ts
11
11
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
@@ -1,11 +1,11 @@
1
1
  import { UnpluginBuildVariant } from "./build.mjs";
2
+ import { CommandType } from "./commands.mjs";
3
+ import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
2
4
  import { EnvironmentConfig, PluginConfig } from "./config.mjs";
3
5
  import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
4
- import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
5
- import { CommandType } from "./commands.mjs";
6
- import { ArrayValues } from "@stryke/types/array";
7
6
  import { FunctionLike, MaybePromise } from "@stryke/types/base";
8
7
  import { ExternalIdResult, HookFilter, TransformResult, UnpluginOptions } from "unplugin";
8
+ import { ArrayValues } from "@stryke/types/array";
9
9
 
10
10
  //#region ../powerlines/src/types/plugin.d.ts
11
11
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
@@ -1,8 +1,8 @@
1
1
  import { BabelUserConfig, EnvironmentConfig, InlineConfig, OutputConfig, UserConfig } from "./config.cjs";
2
2
  import { NonUndefined } from "@stryke/types/base";
3
- import { ResolvedPreviewOptions } from "vite";
4
- import { TypeDefinition } from "@stryke/types/configuration";
5
3
  import { AssetGlob } from "@stryke/types/file";
4
+ import { TypeDefinition } from "@stryke/types/configuration";
5
+ import { ResolvedPreviewOptions } from "vite";
6
6
 
7
7
  //#region ../powerlines/src/types/resolved.d.ts
8
8
  interface ResolvedEntryTypeDefinition extends TypeDefinition {
@@ -1,9 +1,8 @@
1
- import "./build.mjs";
2
1
  import { BabelUserConfig, EnvironmentConfig, InlineConfig, OutputConfig, UserConfig } from "./config.mjs";
3
2
  import { NonUndefined } from "@stryke/types/base";
4
- import { ResolvedPreviewOptions } from "vite";
5
- import { TypeDefinition } from "@stryke/types/configuration";
6
3
  import { AssetGlob } from "@stryke/types/file";
4
+ import { TypeDefinition } from "@stryke/types/configuration";
5
+ import { ResolvedPreviewOptions } from "vite";
7
6
 
8
7
  //#region ../powerlines/src/types/resolved.d.ts
9
8
  interface ResolvedEntryTypeDefinition extends TypeDefinition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.126",
3
+ "version": "0.1.128",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a React application.",
6
6
  "repository": {
@@ -140,9 +140,9 @@
140
140
  "@alloy-js/json": "^0.22.0",
141
141
  "@alloy-js/markdown": "^0.22.0",
142
142
  "@alloy-js/typescript": "^0.22.0",
143
- "@powerlines/plugin-alloy": "^0.17.4",
144
- "@powerlines/plugin-babel": "^0.12.129",
145
- "@powerlines/plugin-env": "^0.14.25",
143
+ "@powerlines/plugin-alloy": "^0.17.6",
144
+ "@powerlines/plugin-babel": "^0.12.130",
145
+ "@powerlines/plugin-env": "^0.14.27",
146
146
  "@storm-software/config-tools": "^1.188.75",
147
147
  "@stryke/cli": "^0.12.37",
148
148
  "@stryke/convert": "^0.6.30",
@@ -151,7 +151,7 @@
151
151
  "@vitejs/plugin-react": "^5.1.2",
152
152
  "babel-plugin-react-compiler": "^1.0.0",
153
153
  "defu": "^6.1.4",
154
- "powerlines": "^0.36.25"
154
+ "powerlines": "^0.36.26"
155
155
  },
156
156
  "devDependencies": {
157
157
  "@babel/core": "^7.28.5",
@@ -162,5 +162,5 @@
162
162
  "react-dom": "^19.2.3"
163
163
  },
164
164
  "publishConfig": { "access": "public" },
165
- "gitHead": "c1a4108ae6677e951e90e42f8d270959a401d1bd"
165
+ "gitHead": "f27028746c0657470a2c93af2e3224565ae7fd61"
166
166
  }