@powerlines/plugin-react 0.1.104 → 0.1.106

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 (218) hide show
  1. package/dist/{_virtual/rolldown_runtime.mjs → chunk-CF6LXmkI.mjs} +1 -1
  2. package/dist/components/index.cjs +1 -1
  3. package/dist/components/index.d.cts +2 -1
  4. package/dist/components/index.d.mts +2 -1
  5. package/dist/components/index.mjs +1 -1
  6. package/dist/components/react-optimized.cjs +1 -1
  7. package/dist/components/react-optimized.d.cts +1 -13
  8. package/dist/components/react-optimized.d.mts +1 -13
  9. package/dist/components/react-optimized.mjs +1 -1
  10. package/dist/components-BWLXb7a2.cjs +0 -0
  11. package/dist/components-MTvNCZDU.mjs +1 -0
  12. package/dist/index-C-svZlpj.d.mts +1 -0
  13. package/dist/index-CtCMUyZA.d.cts +1 -0
  14. package/dist/index-DEHBdV_z.d.mts +1 -0
  15. package/dist/index-_wQ5ClJU.d.cts +1 -0
  16. package/dist/index.cjs +63 -1
  17. package/dist/index.d.cts +7 -6
  18. package/dist/index.d.mts +7 -9
  19. package/dist/index.mjs +60 -1
  20. package/dist/{deepkit/schemas/reflection.d.mts → plugin-DOauJa_m.d.mts} +299 -1
  21. package/dist/plugin-G4qbpIjB.mjs +1 -0
  22. package/dist/plugin-pBKbb5K9.cjs +0 -0
  23. package/dist/{deepkit/schemas/reflection.d.cts → plugin-yYQdItCy.d.cts} +299 -1
  24. package/dist/react-optimized-Btf0j0ZP.cjs +1 -0
  25. package/dist/react-optimized-C8ZBC6OY.mjs +1 -0
  26. package/dist/react-optimized-DmMl-ZEI.d.cts +14 -0
  27. package/dist/react-optimized-Y1x3FeDm.d.mts +14 -0
  28. package/dist/runtime--8U-2SZ9.d.mts +15 -0
  29. package/dist/runtime-BFk0BLpy.d.mts +2497 -0
  30. package/dist/runtime-Bp9G0scd.cjs +0 -0
  31. package/dist/runtime-CEUG_XjE.d.cts +15 -0
  32. package/dist/runtime-cDYyRPa0.mjs +1 -0
  33. package/dist/runtime-eJB4FEow.d.cts +2495 -0
  34. package/dist/types/index.cjs +1 -0
  35. package/dist/types/index.d.cts +4 -2
  36. package/dist/types/index.d.mts +4 -2
  37. package/dist/types/index.mjs +1 -1
  38. package/dist/types/plugin.cjs +1 -0
  39. package/dist/types/plugin.d.cts +2 -72
  40. package/dist/types/plugin.d.mts +2 -72
  41. package/dist/types/plugin.mjs +1 -1
  42. package/dist/types/runtime.cjs +1 -0
  43. package/dist/types/runtime.d.cts +2 -14
  44. package/dist/types/runtime.d.mts +2 -14
  45. package/dist/types/runtime.mjs +1 -1
  46. package/dist/types-C5ggNT4K.mjs +1 -0
  47. package/dist/types-a8gm_IaQ.cjs +0 -0
  48. package/package.json +12 -10
  49. package/dist/_virtual/rolldown_runtime.cjs +0 -1
  50. package/dist/alloy/src/core/components/output.cjs +0 -1
  51. package/dist/alloy/src/core/components/output.mjs +0 -1
  52. package/dist/alloy/src/core/components/single-line-comment.cjs +0 -1
  53. package/dist/alloy/src/core/components/single-line-comment.mjs +0 -1
  54. package/dist/alloy/src/core/components/source-file.cjs +0 -1
  55. package/dist/alloy/src/core/components/source-file.d.cts +0 -22
  56. package/dist/alloy/src/core/components/source-file.d.mts +0 -22
  57. package/dist/alloy/src/core/components/source-file.mjs +0 -1
  58. package/dist/alloy/src/core/contexts/context.cjs +0 -1
  59. package/dist/alloy/src/core/contexts/context.mjs +0 -1
  60. package/dist/alloy/src/core/contexts/reflection.cjs +0 -1
  61. package/dist/alloy/src/core/contexts/reflection.mjs +0 -1
  62. package/dist/alloy/src/create-plugin.cjs +0 -2
  63. package/dist/alloy/src/create-plugin.mjs +0 -2
  64. package/dist/alloy/src/helpers/refkey.cjs +0 -1
  65. package/dist/alloy/src/helpers/refkey.mjs +0 -1
  66. package/dist/alloy/src/markdown/components/markdown-file.cjs +0 -1
  67. package/dist/alloy/src/markdown/components/markdown-file.mjs +0 -1
  68. package/dist/alloy/src/markdown/components/markdown-table.cjs +0 -1
  69. package/dist/alloy/src/markdown/components/markdown-table.mjs +0 -1
  70. package/dist/alloy/src/markdown/contexts/markdown-table.cjs +0 -1
  71. package/dist/alloy/src/markdown/contexts/markdown-table.mjs +0 -1
  72. package/dist/alloy/src/types/components.d.cts +0 -19
  73. package/dist/alloy/src/types/components.d.mts +0 -23
  74. package/dist/alloy/src/types/plugin.d.cts +0 -15
  75. package/dist/alloy/src/types/plugin.d.mts +0 -15
  76. package/dist/alloy/src/typescript/components/builtin-file.cjs +0 -1
  77. package/dist/alloy/src/typescript/components/builtin-file.d.cts +0 -25
  78. package/dist/alloy/src/typescript/components/builtin-file.d.mts +0 -26
  79. package/dist/alloy/src/typescript/components/builtin-file.mjs +0 -1
  80. package/dist/alloy/src/typescript/components/tsdoc-reflection.cjs +0 -1
  81. package/dist/alloy/src/typescript/components/tsdoc-reflection.mjs +0 -1
  82. package/dist/alloy/src/typescript/components/tsdoc.cjs +0 -1
  83. package/dist/alloy/src/typescript/components/tsdoc.d.cts +0 -27
  84. package/dist/alloy/src/typescript/components/tsdoc.d.mts +0 -28
  85. package/dist/alloy/src/typescript/components/tsdoc.mjs +0 -1
  86. package/dist/alloy/src/typescript/components/typescript-file.cjs +0 -1
  87. package/dist/alloy/src/typescript/components/typescript-file.d.cts +0 -14
  88. package/dist/alloy/src/typescript/components/typescript-file.d.mts +0 -15
  89. package/dist/alloy/src/typescript/components/typescript-file.mjs +0 -1
  90. package/dist/alloy/src/typescript/components/typescript-interface.cjs +0 -1
  91. package/dist/alloy/src/typescript/components/typescript-interface.mjs +0 -1
  92. package/dist/alloy/src/typescript/components/typescript-object.cjs +0 -1
  93. package/dist/alloy/src/typescript/components/typescript-object.mjs +0 -1
  94. package/dist/deepkit/schemas/reflection.cjs +0 -1
  95. package/dist/deepkit/schemas/reflection.mjs +0 -1
  96. package/dist/deepkit/schemas/reflection2.cjs +0 -1
  97. package/dist/deepkit/schemas/reflection2.mjs +0 -1
  98. package/dist/deepkit/src/capnp.cjs +0 -1
  99. package/dist/deepkit/src/capnp.mjs +0 -1
  100. package/dist/deepkit/src/esbuild-plugin.cjs +0 -4
  101. package/dist/deepkit/src/esbuild-plugin.mjs +0 -4
  102. package/dist/deepkit/src/reflect-type.cjs +0 -1
  103. package/dist/deepkit/src/reflect-type.mjs +0 -1
  104. package/dist/deepkit/src/resolve-reflections.cjs +0 -1
  105. package/dist/deepkit/src/resolve-reflections.mjs +0 -1
  106. package/dist/deepkit/src/transformer.cjs +0 -1
  107. package/dist/deepkit/src/transformer.mjs +0 -1
  108. package/dist/deepkit/src/transpile.cjs +0 -1
  109. package/dist/deepkit/src/transpile.mjs +0 -1
  110. package/dist/deepkit/src/types.d.cts +0 -10
  111. package/dist/deepkit/src/types.d.mts +0 -10
  112. package/dist/deepkit/src/utilities.cjs +0 -1
  113. package/dist/deepkit/src/utilities.mjs +0 -1
  114. package/dist/deepkit/src/vendor/type-compiler/index.cjs +0 -1
  115. package/dist/deepkit/src/vendor/type-compiler/index.mjs +0 -1
  116. package/dist/deepkit/src/vendor/type.cjs +0 -1
  117. package/dist/deepkit/src/vendor/type.d.cts +0 -7
  118. package/dist/deepkit/src/vendor/type.d.mts +0 -7
  119. package/dist/deepkit/src/vendor/type.mjs +0 -1
  120. package/dist/plugin-automd/src/index.cjs +0 -1
  121. package/dist/plugin-automd/src/index.mjs +0 -1
  122. package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
  123. package/dist/plugin-automd/src/types/plugin.d.mts +0 -40
  124. package/dist/plugin-automd/src/types/toc.d.cts +0 -33
  125. package/dist/plugin-automd/src/types/toc.d.mts +0 -33
  126. package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -1
  127. package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -1
  128. package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -1
  129. package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -1
  130. package/dist/plugin-babel/src/helpers/filters.cjs +0 -1
  131. package/dist/plugin-babel/src/helpers/filters.mjs +0 -1
  132. package/dist/plugin-babel/src/helpers/index.cjs +0 -1
  133. package/dist/plugin-babel/src/helpers/index.mjs +0 -1
  134. package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -1
  135. package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -1
  136. package/dist/plugin-babel/src/helpers/options.cjs +0 -1
  137. package/dist/plugin-babel/src/helpers/options.mjs +0 -1
  138. package/dist/plugin-babel/src/index.cjs +0 -1
  139. package/dist/plugin-babel/src/index.mjs +0 -1
  140. package/dist/plugin-babel/src/types/index.d.mts +0 -1
  141. package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
  142. package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
  143. package/dist/plugin-env/src/babel/index.cjs +0 -1
  144. package/dist/plugin-env/src/babel/index.mjs +0 -1
  145. package/dist/plugin-env/src/babel/plugin.cjs +0 -5
  146. package/dist/plugin-env/src/babel/plugin.mjs +0 -5
  147. package/dist/plugin-env/src/components/docs.cjs +0 -1
  148. package/dist/plugin-env/src/components/docs.mjs +0 -1
  149. package/dist/plugin-env/src/components/env.cjs +0 -34
  150. package/dist/plugin-env/src/components/env.mjs +0 -31
  151. package/dist/plugin-env/src/components/index.cjs +0 -1
  152. package/dist/plugin-env/src/components/index.mjs +0 -1
  153. package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -1
  154. package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -1
  155. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -1
  156. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -1
  157. package/dist/plugin-env/src/helpers/index.cjs +0 -1
  158. package/dist/plugin-env/src/helpers/index.mjs +0 -1
  159. package/dist/plugin-env/src/helpers/load.cjs +0 -1
  160. package/dist/plugin-env/src/helpers/load.mjs +0 -1
  161. package/dist/plugin-env/src/helpers/persistence.cjs +0 -1
  162. package/dist/plugin-env/src/helpers/persistence.mjs +0 -1
  163. package/dist/plugin-env/src/helpers/reflect.cjs +0 -1
  164. package/dist/plugin-env/src/helpers/reflect.mjs +0 -1
  165. package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -1
  166. package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -1
  167. package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -1
  168. package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -1
  169. package/dist/plugin-env/src/index.cjs +0 -10
  170. package/dist/plugin-env/src/index.mjs +0 -10
  171. package/dist/plugin-env/src/types/plugin.d.cts +0 -143
  172. package/dist/plugin-env/src/types/plugin.d.mts +0 -144
  173. package/dist/plugin-env/src/types/runtime.d.cts +0 -792
  174. package/dist/plugin-env/src/types/runtime.d.mts +0 -792
  175. package/dist/plugin-plugin/src/types/plugin.d.cts +0 -21
  176. package/dist/plugin-plugin/src/types/plugin.d.mts +0 -23
  177. package/dist/powerlines/schemas/fs.d.mts +0 -1
  178. package/dist/powerlines/src/api.d.mts +0 -7
  179. package/dist/powerlines/src/index.d.mts +0 -12
  180. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -5
  181. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -14
  182. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -14
  183. package/dist/powerlines/src/lib/entry.cjs +0 -1
  184. package/dist/powerlines/src/lib/entry.mjs +0 -1
  185. package/dist/powerlines/src/lib/logger.cjs +0 -1
  186. package/dist/powerlines/src/lib/logger.mjs +0 -1
  187. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -1
  188. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -1
  189. package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -1
  190. package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -1
  191. package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -1
  192. package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -1
  193. package/dist/powerlines/src/plugin-utils/helpers.cjs +0 -1
  194. package/dist/powerlines/src/plugin-utils/helpers.mjs +0 -1
  195. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
  196. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -1
  197. package/dist/powerlines/src/types/api.d.mts +0 -5
  198. package/dist/powerlines/src/types/babel.d.cts +0 -22
  199. package/dist/powerlines/src/types/babel.d.mts +0 -22
  200. package/dist/powerlines/src/types/build.d.cts +0 -145
  201. package/dist/powerlines/src/types/build.d.mts +0 -145
  202. package/dist/powerlines/src/types/commands.d.cts +0 -8
  203. package/dist/powerlines/src/types/commands.d.mts +0 -9
  204. package/dist/powerlines/src/types/config.d.cts +0 -368
  205. package/dist/powerlines/src/types/config.d.mts +0 -369
  206. package/dist/powerlines/src/types/context.d.cts +0 -373
  207. package/dist/powerlines/src/types/context.d.mts +0 -375
  208. package/dist/powerlines/src/types/fs.d.cts +0 -458
  209. package/dist/powerlines/src/types/fs.d.mts +0 -458
  210. package/dist/powerlines/src/types/hooks.d.mts +0 -2
  211. package/dist/powerlines/src/types/index.d.mts +0 -12
  212. package/dist/powerlines/src/types/plugin.d.cts +0 -232
  213. package/dist/powerlines/src/types/plugin.d.mts +0 -232
  214. package/dist/powerlines/src/types/resolved.d.cts +0 -82
  215. package/dist/powerlines/src/types/resolved.d.mts +0 -82
  216. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  217. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
  218. package/dist/powerlines/src/types/unplugin.d.mts +0 -6
@@ -1,5 +1,24 @@
1
+ import { a as BabelResolvedConfig, c as UserConfig, i as PluginContext, n as SecretsInterface, o as ResolvedConfig, s as BabelUserConfig, t as EnvInterface } from "./runtime-BFk0BLpy.mjs";
2
+ import { Config } from "automd";
3
+ import { DotenvParseOutput } from "@stryke/env/types";
1
4
  import * as $ from "@stryke/capnp";
5
+ import "@alloy-js/core";
6
+ import "@alloy-js/typescript";
7
+ import { Children } from "@alloy-js/core/jsx-runtime";
8
+ import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
9
+ import { PluginOptions } from "babel-plugin-react-compiler";
2
10
 
11
+ //#region ../plugin-babel/src/types/plugin.d.ts
12
+ type BabelPluginOptions = Partial<BabelUserConfig>;
13
+ type BabelPluginUserConfig = UserConfig;
14
+ interface BabelPluginResolvedConfig extends ResolvedConfig {
15
+ transform: {
16
+ babel: BabelResolvedConfig;
17
+ };
18
+ }
19
+ type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
20
+ import * as import___deepkit_type from "@deepkit/type";
21
+ //#endregion
3
22
  //#region ../deepkit/schemas/reflection.d.ts
4
23
  declare const ReflectionKind: {
5
24
  readonly NEVER: 0;
@@ -1557,4 +1576,283 @@ declare class SerializedTypes extends $.Struct {
1557
1576
  toString(): string;
1558
1577
  }
1559
1578
  //#endregion
1560
- export { SerializedTypes };
1579
+ //#region ../deepkit/src/types.d.ts
1580
+ type Reflection<T extends Record<string, any> = Record<string, any>> = type_d_exports.ReflectionClass<T> & {
1581
+ dataBuffer?: ArrayBuffer;
1582
+ messageRoot?: SerializedTypes;
1583
+ };
1584
+ //#endregion
1585
+ //#region ../plugin-alloy/src/types/plugin.d.ts
1586
+ type AlloyPluginResolvedConfig = ResolvedConfig;
1587
+ type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
1588
+ render: <TContext extends AlloyPluginContext>(this: TContext, children: Children) => Promise<void>;
1589
+ };
1590
+ //#endregion
1591
+ //#region ../plugin-automd/src/types/toc.d.ts
1592
+ interface TOCOptions {
1593
+ /**
1594
+ * A slugify function to generate slugs for the headings.
1595
+ */
1596
+ slugify?: (str: string) => string;
1597
+ /**
1598
+ * The maximum depth of headings to include in the TOC.
1599
+ *
1600
+ * @defaultValue 6
1601
+ */
1602
+ maxDepth?: number;
1603
+ /**
1604
+ * Whether to include the first H1 heading in the TOC.
1605
+ */
1606
+ firstH1?: boolean;
1607
+ /**
1608
+ * The bullet character to use for list items in the TOC.
1609
+ *
1610
+ * @defaultValue "-"
1611
+ */
1612
+ bullets?: string;
1613
+ /**
1614
+ * A prefix to add to each heading in the TOC.
1615
+ */
1616
+ prefix?: string;
1617
+ /**
1618
+ * A filter function to determine which headings to include in the TOC.
1619
+ */
1620
+ filter?: (str: string, level: number) => boolean;
1621
+ }
1622
+ //#endregion
1623
+ //#region ../plugin-automd/src/types/plugin.d.ts
1624
+ type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
1625
+ /**
1626
+ * Path to the AutoMD configuration file.
1627
+ *
1628
+ * @remarks
1629
+ * If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
1630
+ */
1631
+ configFile?: string;
1632
+ /**
1633
+ * An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
1634
+ *
1635
+ * @defaultValue true
1636
+ */
1637
+ allowIssues?: boolean;
1638
+ /**
1639
+ * Alternate prefix strings to use for finding generators
1640
+ *
1641
+ * @remarks
1642
+ * By default, AutoMD looks for generators with the "automd" prefix, so that any `<!-- automd:generator [...args] --> ... <!-- /automd -->` comments will be picked up. If you want to use different prefixes (for example, to avoid conflicts with other tools), you would provide a value like "myPrefix" and AutoMD would also look for `<!-- myPrefix:generator [...args] --> ... <!-- /myPrefix -->` comments.
1643
+ *
1644
+ * @defaultValue ["automd", "powerlines", "\{framework\}"]
1645
+ */
1646
+ prefix?: string | string[];
1647
+ /**
1648
+ * Table of Contents generator options
1649
+ *
1650
+ * @remarks
1651
+ * If set to `false`, the built-in Table of Contents generator will be disabled.
1652
+ */
1653
+ toc?: false | TOCOptions;
1654
+ };
1655
+ //#endregion
1656
+ //#region ../plugin-env/src/types/plugin.d.ts
1657
+ type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
1658
+ /**
1659
+ * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
1660
+ */
1661
+ types?: TypeDefinitionParameter;
1662
+ /**
1663
+ * A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
1664
+ */
1665
+ secrets?: TypeDefinitionParameter;
1666
+ /**
1667
+ * An additional prefix (or list of additional prefixes) to apply to the environment variables
1668
+ *
1669
+ * @remarks
1670
+ * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
1671
+ */
1672
+ prefix?: string | string[];
1673
+ /**
1674
+ * Should the plugin inject the env variables in the source code with their values?
1675
+ *
1676
+ * @remarks
1677
+ * This option is set to `true` when building an application project.
1678
+ *
1679
+ * @defaultValue false
1680
+ */
1681
+ inject?: boolean;
1682
+ /**
1683
+ * The default configuration to use when loading environment variables.
1684
+ *
1685
+ * @remarks
1686
+ * This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
1687
+ */
1688
+ defaultConfig?: Children;
1689
+ /**
1690
+ * Babel configuration options to use when injecting environment variables into the source code.
1691
+ *
1692
+ * @remarks
1693
+ * This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
1694
+ */
1695
+ babel?: BabelPluginOptions;
1696
+ /**
1697
+ * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
1698
+ *
1699
+ * @remarks
1700
+ * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
1701
+ */
1702
+ automd?: AutoMDPluginOptions;
1703
+ };
1704
+ type EnvPluginUserConfig = BabelPluginUserConfig & {
1705
+ env: EnvPluginOptions;
1706
+ };
1707
+ type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
1708
+ env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
1709
+ /**
1710
+ * The type definition for the expected env variable parameters
1711
+ *
1712
+ * @remarks
1713
+ * This value is parsed from the {@link EnvPluginOptions.types} option.
1714
+ */
1715
+ types: TypeDefinition;
1716
+ /**
1717
+ * The type definition for the expected env secret parameters
1718
+ *
1719
+ * @remarks
1720
+ * This value is parsed from the {@link EnvPluginOptions.secrets} option.
1721
+ */
1722
+ secrets: TypeDefinition;
1723
+ /**
1724
+ * Should the plugin inject the env variables in the source code with their values?
1725
+ *
1726
+ * @remarks
1727
+ * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
1728
+ */
1729
+ inject: EnvPluginOptions["inject"];
1730
+ /**
1731
+ * The prefix used for environment variables
1732
+ *
1733
+ * @remarks
1734
+ * This value is used to filter environment variables that are loaded from the .env file and the process environment.
1735
+ */
1736
+ prefix: string[];
1737
+ };
1738
+ };
1739
+ interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
1740
+ env: {
1741
+ /**
1742
+ * The type definitions reflection for the env variables and secrets
1743
+ *
1744
+ * @remarks
1745
+ * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
1746
+ */
1747
+ types: {
1748
+ /**
1749
+ * The type definitions for the expected env variables
1750
+ */
1751
+ env: Reflection;
1752
+ /**
1753
+ * The type definitions for the expected env secrets
1754
+ */
1755
+ secrets: Reflection;
1756
+ };
1757
+ /**
1758
+ * The current **used** environment variables and secrets reflection
1759
+ *
1760
+ * @remarks
1761
+ * This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
1762
+ */
1763
+ used: {
1764
+ /**
1765
+ * The current env variables reflection
1766
+ */
1767
+ env: Reflection<EnvInterface>;
1768
+ /**
1769
+ * The current env secrets reflection
1770
+ */
1771
+ secrets: Reflection<SecretsInterface>;
1772
+ };
1773
+ /**
1774
+ * The parsed .env configuration object
1775
+ *
1776
+ * @remarks
1777
+ * This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
1778
+ */
1779
+ parsed: DotenvParseOutput;
1780
+ /**
1781
+ * The injected environment variables and secrets reflection
1782
+ *
1783
+ * @remarks
1784
+ * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
1785
+ */
1786
+ injected: Reflection;
1787
+ };
1788
+ }
1789
+ //#endregion
1790
+ //#region src/types/plugin.d.ts
1791
+ type ReactCompilerOptions = Omit<PluginOptions, "logger">;
1792
+ interface ReactPluginOptions {
1793
+ /**
1794
+ * Control where the JSX factory is imported from.
1795
+ *
1796
+ * @see https://esbuild.github.io/api/#jsx-import-source
1797
+ *
1798
+ * @defaultValue "react"
1799
+ */
1800
+ jsxImportSource?: string;
1801
+ /**
1802
+ * Control how JSX is transformed.
1803
+ *
1804
+ * @remarks
1805
+ * Skipping React import with classic runtime is not supported from v4
1806
+ *
1807
+ * @defaultValue "automatic"
1808
+ */
1809
+ jsxRuntime?: "classic" | "automatic";
1810
+ /**
1811
+ * Options provided to the [React Compiler](https://npmjs.com/package/babel-plugin-react-compiler).
1812
+ *
1813
+ * @see https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L55
1814
+ * @see https://react.dev/blog/2025/04/21/react-compiler-rc
1815
+ *
1816
+ * @remarks
1817
+ * Set to `false` to disable the React Compiler. By default, the React Compiler is enabled and target is set to React 19.
1818
+ */
1819
+ compiler?: ReactCompilerOptions | false;
1820
+ /**
1821
+ * React Fast Refresh runtime URL prefix.
1822
+ *
1823
+ * @remarks
1824
+ * Useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application.
1825
+ *
1826
+ * @example
1827
+ * reactRefreshHost: 'http://localhost:3000'
1828
+ */
1829
+ reactRefreshHost?: string;
1830
+ /**
1831
+ * Options to pass to the [Babel plugin](https://npmjs.com/package/\@powerlines/plugin-babel).
1832
+ */
1833
+ babel?: Partial<BabelPluginOptions>;
1834
+ /**
1835
+ * Options to pass to the [Env plugin](https://npmjs.com/package/\@powerlines/plugin-env).
1836
+ */
1837
+ env?: Partial<Omit<EnvPluginOptions, "babel">>;
1838
+ }
1839
+ type ReactPluginUserConfig = EnvPluginUserConfig & {
1840
+ /**
1841
+ * Options for the React plugin.
1842
+ */
1843
+ react?: ReactPluginOptions;
1844
+ };
1845
+ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
1846
+ /**
1847
+ * Options for the React plugin.
1848
+ */
1849
+ react: ReactPluginOptions;
1850
+ };
1851
+ interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {}
1852
+ declare type __ΩReactCompilerOptions = any[];
1853
+ declare type __ΩReactPluginOptions = any[];
1854
+ declare type __ΩReactPluginUserConfig = any[];
1855
+ declare type __ΩReactPluginResolvedConfig = any[];
1856
+ declare type __ΩReactPluginContext = any[];
1857
+ //#endregion
1858
+ export { ReactPluginUserConfig as a, __ΩReactPluginOptions as c, ReactPluginResolvedConfig as i, __ΩReactPluginResolvedConfig as l, ReactPluginContext as n, __ΩReactCompilerOptions as o, ReactPluginOptions as r, __ΩReactPluginContext as s, ReactCompilerOptions as t, __ΩReactPluginUserConfig as u };
@@ -0,0 +1 @@
1
+ export{};
File without changes
@@ -1,5 +1,24 @@
1
+ import { a as BabelResolvedConfig, c as UserConfig, i as PluginContext, n as SecretsInterface, o as ResolvedConfig, s as BabelUserConfig, t as EnvInterface } from "./runtime-eJB4FEow.cjs";
2
+ import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
3
+ import { Children } from "@alloy-js/core/jsx-runtime";
1
4
  import * as $ from "@stryke/capnp";
5
+ import { Config } from "automd";
6
+ import { DotenvParseOutput } from "@stryke/env/types";
7
+ import { PluginOptions } from "babel-plugin-react-compiler";
2
8
 
9
+ //#region rolldown:runtime
10
+ //#endregion
11
+ //#region ../plugin-babel/src/types/plugin.d.ts
12
+ type BabelPluginOptions = Partial<BabelUserConfig>;
13
+ type BabelPluginUserConfig = UserConfig;
14
+ interface BabelPluginResolvedConfig extends ResolvedConfig {
15
+ transform: {
16
+ babel: BabelResolvedConfig;
17
+ };
18
+ }
19
+ type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
20
+ import * as import___deepkit_type from "@deepkit/type";
21
+ //#endregion
3
22
  //#region ../deepkit/schemas/reflection.d.ts
4
23
  declare const ReflectionKind: {
5
24
  readonly NEVER: 0;
@@ -1557,4 +1576,283 @@ declare class SerializedTypes extends $.Struct {
1557
1576
  toString(): string;
1558
1577
  }
1559
1578
  //#endregion
1560
- export { SerializedTypes };
1579
+ //#region ../deepkit/src/types.d.ts
1580
+ type Reflection<T extends Record<string, any> = Record<string, any>> = type_d_exports.ReflectionClass<T> & {
1581
+ dataBuffer?: ArrayBuffer;
1582
+ messageRoot?: SerializedTypes;
1583
+ };
1584
+ //#endregion
1585
+ //#region ../plugin-alloy/src/types/plugin.d.ts
1586
+ type AlloyPluginResolvedConfig = ResolvedConfig;
1587
+ type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
1588
+ render: <TContext extends AlloyPluginContext>(this: TContext, children: Children) => Promise<void>;
1589
+ };
1590
+ //#endregion
1591
+ //#region ../plugin-automd/src/types/toc.d.ts
1592
+ interface TOCOptions {
1593
+ /**
1594
+ * A slugify function to generate slugs for the headings.
1595
+ */
1596
+ slugify?: (str: string) => string;
1597
+ /**
1598
+ * The maximum depth of headings to include in the TOC.
1599
+ *
1600
+ * @defaultValue 6
1601
+ */
1602
+ maxDepth?: number;
1603
+ /**
1604
+ * Whether to include the first H1 heading in the TOC.
1605
+ */
1606
+ firstH1?: boolean;
1607
+ /**
1608
+ * The bullet character to use for list items in the TOC.
1609
+ *
1610
+ * @defaultValue "-"
1611
+ */
1612
+ bullets?: string;
1613
+ /**
1614
+ * A prefix to add to each heading in the TOC.
1615
+ */
1616
+ prefix?: string;
1617
+ /**
1618
+ * A filter function to determine which headings to include in the TOC.
1619
+ */
1620
+ filter?: (str: string, level: number) => boolean;
1621
+ }
1622
+ //#endregion
1623
+ //#region ../plugin-automd/src/types/plugin.d.ts
1624
+ type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
1625
+ /**
1626
+ * Path to the AutoMD configuration file.
1627
+ *
1628
+ * @remarks
1629
+ * If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
1630
+ */
1631
+ configFile?: string;
1632
+ /**
1633
+ * An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
1634
+ *
1635
+ * @defaultValue true
1636
+ */
1637
+ allowIssues?: boolean;
1638
+ /**
1639
+ * Alternate prefix strings to use for finding generators
1640
+ *
1641
+ * @remarks
1642
+ * By default, AutoMD looks for generators with the "automd" prefix, so that any `<!-- automd:generator [...args] --> ... <!-- /automd -->` comments will be picked up. If you want to use different prefixes (for example, to avoid conflicts with other tools), you would provide a value like "myPrefix" and AutoMD would also look for `<!-- myPrefix:generator [...args] --> ... <!-- /myPrefix -->` comments.
1643
+ *
1644
+ * @defaultValue ["automd", "powerlines", "\{framework\}"]
1645
+ */
1646
+ prefix?: string | string[];
1647
+ /**
1648
+ * Table of Contents generator options
1649
+ *
1650
+ * @remarks
1651
+ * If set to `false`, the built-in Table of Contents generator will be disabled.
1652
+ */
1653
+ toc?: false | TOCOptions;
1654
+ };
1655
+ //#endregion
1656
+ //#region ../plugin-env/src/types/plugin.d.ts
1657
+ type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
1658
+ /**
1659
+ * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
1660
+ */
1661
+ types?: TypeDefinitionParameter;
1662
+ /**
1663
+ * A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
1664
+ */
1665
+ secrets?: TypeDefinitionParameter;
1666
+ /**
1667
+ * An additional prefix (or list of additional prefixes) to apply to the environment variables
1668
+ *
1669
+ * @remarks
1670
+ * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
1671
+ */
1672
+ prefix?: string | string[];
1673
+ /**
1674
+ * Should the plugin inject the env variables in the source code with their values?
1675
+ *
1676
+ * @remarks
1677
+ * This option is set to `true` when building an application project.
1678
+ *
1679
+ * @defaultValue false
1680
+ */
1681
+ inject?: boolean;
1682
+ /**
1683
+ * The default configuration to use when loading environment variables.
1684
+ *
1685
+ * @remarks
1686
+ * This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
1687
+ */
1688
+ defaultConfig?: Children;
1689
+ /**
1690
+ * Babel configuration options to use when injecting environment variables into the source code.
1691
+ *
1692
+ * @remarks
1693
+ * This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
1694
+ */
1695
+ babel?: BabelPluginOptions;
1696
+ /**
1697
+ * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
1698
+ *
1699
+ * @remarks
1700
+ * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
1701
+ */
1702
+ automd?: AutoMDPluginOptions;
1703
+ };
1704
+ type EnvPluginUserConfig = BabelPluginUserConfig & {
1705
+ env: EnvPluginOptions;
1706
+ };
1707
+ type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
1708
+ env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
1709
+ /**
1710
+ * The type definition for the expected env variable parameters
1711
+ *
1712
+ * @remarks
1713
+ * This value is parsed from the {@link EnvPluginOptions.types} option.
1714
+ */
1715
+ types: TypeDefinition;
1716
+ /**
1717
+ * The type definition for the expected env secret parameters
1718
+ *
1719
+ * @remarks
1720
+ * This value is parsed from the {@link EnvPluginOptions.secrets} option.
1721
+ */
1722
+ secrets: TypeDefinition;
1723
+ /**
1724
+ * Should the plugin inject the env variables in the source code with their values?
1725
+ *
1726
+ * @remarks
1727
+ * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
1728
+ */
1729
+ inject: EnvPluginOptions["inject"];
1730
+ /**
1731
+ * The prefix used for environment variables
1732
+ *
1733
+ * @remarks
1734
+ * This value is used to filter environment variables that are loaded from the .env file and the process environment.
1735
+ */
1736
+ prefix: string[];
1737
+ };
1738
+ };
1739
+ interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
1740
+ env: {
1741
+ /**
1742
+ * The type definitions reflection for the env variables and secrets
1743
+ *
1744
+ * @remarks
1745
+ * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
1746
+ */
1747
+ types: {
1748
+ /**
1749
+ * The type definitions for the expected env variables
1750
+ */
1751
+ env: Reflection;
1752
+ /**
1753
+ * The type definitions for the expected env secrets
1754
+ */
1755
+ secrets: Reflection;
1756
+ };
1757
+ /**
1758
+ * The current **used** environment variables and secrets reflection
1759
+ *
1760
+ * @remarks
1761
+ * This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
1762
+ */
1763
+ used: {
1764
+ /**
1765
+ * The current env variables reflection
1766
+ */
1767
+ env: Reflection<EnvInterface>;
1768
+ /**
1769
+ * The current env secrets reflection
1770
+ */
1771
+ secrets: Reflection<SecretsInterface>;
1772
+ };
1773
+ /**
1774
+ * The parsed .env configuration object
1775
+ *
1776
+ * @remarks
1777
+ * This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
1778
+ */
1779
+ parsed: DotenvParseOutput;
1780
+ /**
1781
+ * The injected environment variables and secrets reflection
1782
+ *
1783
+ * @remarks
1784
+ * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
1785
+ */
1786
+ injected: Reflection;
1787
+ };
1788
+ }
1789
+ //#endregion
1790
+ //#region src/types/plugin.d.ts
1791
+ type ReactCompilerOptions = Omit<PluginOptions, "logger">;
1792
+ interface ReactPluginOptions {
1793
+ /**
1794
+ * Control where the JSX factory is imported from.
1795
+ *
1796
+ * @see https://esbuild.github.io/api/#jsx-import-source
1797
+ *
1798
+ * @defaultValue "react"
1799
+ */
1800
+ jsxImportSource?: string;
1801
+ /**
1802
+ * Control how JSX is transformed.
1803
+ *
1804
+ * @remarks
1805
+ * Skipping React import with classic runtime is not supported from v4
1806
+ *
1807
+ * @defaultValue "automatic"
1808
+ */
1809
+ jsxRuntime?: "classic" | "automatic";
1810
+ /**
1811
+ * Options provided to the [React Compiler](https://npmjs.com/package/babel-plugin-react-compiler).
1812
+ *
1813
+ * @see https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L55
1814
+ * @see https://react.dev/blog/2025/04/21/react-compiler-rc
1815
+ *
1816
+ * @remarks
1817
+ * Set to `false` to disable the React Compiler. By default, the React Compiler is enabled and target is set to React 19.
1818
+ */
1819
+ compiler?: ReactCompilerOptions | false;
1820
+ /**
1821
+ * React Fast Refresh runtime URL prefix.
1822
+ *
1823
+ * @remarks
1824
+ * Useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application.
1825
+ *
1826
+ * @example
1827
+ * reactRefreshHost: 'http://localhost:3000'
1828
+ */
1829
+ reactRefreshHost?: string;
1830
+ /**
1831
+ * Options to pass to the [Babel plugin](https://npmjs.com/package/\@powerlines/plugin-babel).
1832
+ */
1833
+ babel?: Partial<BabelPluginOptions>;
1834
+ /**
1835
+ * Options to pass to the [Env plugin](https://npmjs.com/package/\@powerlines/plugin-env).
1836
+ */
1837
+ env?: Partial<Omit<EnvPluginOptions, "babel">>;
1838
+ }
1839
+ type ReactPluginUserConfig = EnvPluginUserConfig & {
1840
+ /**
1841
+ * Options for the React plugin.
1842
+ */
1843
+ react?: ReactPluginOptions;
1844
+ };
1845
+ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
1846
+ /**
1847
+ * Options for the React plugin.
1848
+ */
1849
+ react: ReactPluginOptions;
1850
+ };
1851
+ interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {}
1852
+ declare type __ΩReactCompilerOptions = any[];
1853
+ declare type __ΩReactPluginOptions = any[];
1854
+ declare type __ΩReactPluginUserConfig = any[];
1855
+ declare type __ΩReactPluginResolvedConfig = any[];
1856
+ declare type __ΩReactPluginContext = any[];
1857
+ //#endregion
1858
+ export { ReactPluginUserConfig as a, __ΩReactPluginOptions as c, ReactPluginResolvedConfig as i, __ΩReactPluginResolvedConfig as l, ReactPluginContext as n, __ΩReactCompilerOptions as o, ReactPluginOptions as r, __ΩReactPluginContext as s, ReactCompilerOptions as t, __ΩReactPluginUserConfig as u };
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(e,n,r,i)=>{i&&(t(e,Symbol.toStringTag,{value:`Module`}),r&&t(r,Symbol.toStringTag,{value:`Module`})),o(e,n,`default`),r&&o(r,n,`default`)},c=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`defu`);l=c(l);let u=require(`@alloy-js/core`),d=require(`@alloy-js/typescript`),f=require(`@powerlines/alloy/core/contexts/context`),p=require(`@powerlines/alloy/helpers/refkey`),m=require(`@powerlines/alloy/typescript/components/builtin-file`),h=require(`@powerlines/alloy/typescript/components/tsdoc`),g=require(`@alloy-js/core/jsx-runtime`);const _=(0,p.refkey)(`isOptimizationEnabled`);function v(e){let[{override:t},n]=(0,u.splitProps)(e,[`override`]),r=(0,f.usePowerlines)();return(0,g.jsxs)(m.BuiltinFile,{...n,id:`react/optimized`,description:`A built-in module to provide access to environment configuration to determine React optimizations.`,imports:(0,l.default)({[`${r?.config.output.builtinPrefix}:env`]:[`env`,`isDevelopment`]},n.imports??{}),children:[(0,g.jsxs)(h.TSDoc,{heading:`A gating function to determine if the optimized [React compiler](https://react.dev/reference/react-compiler) source code should be used.`,children:[(0,g.jsx)(h.TSDocLink,{children:`https://react.dev/reference/react-compiler/gating`}),(0,g.jsx)(h.TSDocReturns,{children:`A boolean indicating if the React compiler's optimizations should be used.`})]}),(0,g.jsx)(d.FunctionDeclaration,{refkey:_,async:!1,export:!0,name:`isOptimizationEnabled`,returnType:`boolean`,children:t===void 0?u.code`return !env.DISABLE_REACT_COMPILER && !isDevelopment; `:u.code`return ${t};`})]})}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
@@ -0,0 +1 @@
1
+ import e from"defu";import{code as t,splitProps as n}from"@alloy-js/core";import{FunctionDeclaration as r}from"@alloy-js/typescript";import{usePowerlines as i}from"@powerlines/alloy/core/contexts/context";import{refkey as a}from"@powerlines/alloy/helpers/refkey";import{BuiltinFile as o}from"@powerlines/alloy/typescript/components/builtin-file";import{TSDoc as s,TSDocLink as c,TSDocReturns as l}from"@powerlines/alloy/typescript/components/tsdoc";import{jsx as u,jsxs as d}from"@alloy-js/core/jsx-runtime";const f=a(`isOptimizationEnabled`);function p(a){let[{override:p},m]=n(a,[`override`]),h=i();return d(o,{...m,id:`react/optimized`,description:`A built-in module to provide access to environment configuration to determine React optimizations.`,imports:e({[`${h?.config.output.builtinPrefix}:env`]:[`env`,`isDevelopment`]},m.imports??{}),children:[d(s,{heading:`A gating function to determine if the optimized [React compiler](https://react.dev/reference/react-compiler) source code should be used.`,children:[u(c,{children:`https://react.dev/reference/react-compiler/gating`}),u(l,{children:`A boolean indicating if the React compiler's optimizations should be used.`})]}),u(r,{refkey:f,async:!1,export:!0,name:`isOptimizationEnabled`,returnType:`boolean`,children:p===void 0?t`return !env.DISABLE_REACT_COMPILER && !isDevelopment; `:t`return ${p};`})]})}export{p as t};
@@ -0,0 +1,14 @@
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import { BuiltinFileProps } from "@powerlines/alloy/typescript/components/builtin-file";
3
+
4
+ //#region src/components/react-optimized.d.ts
5
+ interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
6
+ override?: boolean;
7
+ }
8
+ /**
9
+ * Generates the `react/optimized` builtin module for the Powerlines project.
10
+ */
11
+ declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): _alloy_js_core0.Children;
12
+ declare type __ΩReactOptimizedBuiltinProps = any[];
13
+ //#endregion
14
+ export { ReactOptimizedBuiltinProps as n, __ΩReactOptimizedBuiltinProps as r, ReactOptimizedBuiltin as t };
@@ -0,0 +1,14 @@
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import { BuiltinFileProps } from "@powerlines/alloy/typescript/components/builtin-file";
3
+
4
+ //#region src/components/react-optimized.d.ts
5
+ interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
6
+ override?: boolean;
7
+ }
8
+ /**
9
+ * Generates the `react/optimized` builtin module for the Powerlines project.
10
+ */
11
+ declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): _alloy_js_core0.Children;
12
+ declare type __ΩReactOptimizedBuiltinProps = any[];
13
+ //#endregion
14
+ export { ReactOptimizedBuiltinProps as n, __ΩReactOptimizedBuiltinProps as r, ReactOptimizedBuiltin as t };
@@ -0,0 +1,15 @@
1
+ import { t as EnvInterface } from "./runtime-BFk0BLpy.mjs";
2
+
3
+ //#region src/types/runtime.d.ts
4
+ interface ReactEnvInterface extends EnvInterface {
5
+ /**
6
+ * Disables the React compiler optimizations when set to true.
7
+ *
8
+ * @remarks
9
+ * This environment variable can be used to turn off the optimizations provided by the React compiler, which may be useful for debugging or development purposes.
10
+ */
11
+ DISABLE_REACT_COMPILER: boolean;
12
+ }
13
+ declare type __ΩReactEnvInterface = any[];
14
+ //#endregion
15
+ export { __ΩReactEnvInterface as n, ReactEnvInterface as t };