@powerlines/plugin-react 0.1.109 → 0.1.111

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 (233) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +1 -0
  2. package/dist/{chunk-CF6LXmkI.mjs → _virtual/rolldown_runtime.mjs} +1 -1
  3. package/dist/components/index.cjs +1 -1
  4. package/dist/components/index.d.cts +1 -2
  5. package/dist/components/index.d.mts +1 -2
  6. package/dist/components/index.mjs +1 -1
  7. package/dist/components/react-optimized.cjs +1 -1
  8. package/dist/components/react-optimized.d.cts +13 -1
  9. package/dist/components/react-optimized.d.mts +13 -1
  10. package/dist/components/react-optimized.mjs +1 -1
  11. package/dist/deepkit/schemas/reflection.cjs +1 -0
  12. package/dist/{plugin-CoU4RMKg.d.mts → deepkit/schemas/reflection.d.cts} +1 -321
  13. package/dist/{plugin-C1nLepnu.d.cts → deepkit/schemas/reflection.d.mts} +1 -322
  14. package/dist/deepkit/schemas/reflection.mjs +1 -0
  15. package/dist/deepkit/schemas/reflection2.cjs +1 -0
  16. package/dist/deepkit/schemas/reflection2.mjs +1 -0
  17. package/dist/deepkit/src/capnp.cjs +1 -0
  18. package/dist/deepkit/src/capnp.mjs +1 -0
  19. package/dist/deepkit/src/esbuild-plugin.cjs +4 -0
  20. package/dist/deepkit/src/esbuild-plugin.mjs +4 -0
  21. package/dist/deepkit/src/reflect-type.cjs +1 -0
  22. package/dist/deepkit/src/reflect-type.mjs +1 -0
  23. package/dist/deepkit/src/resolve-reflections.cjs +1 -0
  24. package/dist/deepkit/src/resolve-reflections.mjs +1 -0
  25. package/dist/deepkit/src/transformer.cjs +1 -0
  26. package/dist/deepkit/src/transformer.mjs +1 -0
  27. package/dist/deepkit/src/transpile.cjs +1 -0
  28. package/dist/deepkit/src/transpile.mjs +1 -0
  29. package/dist/deepkit/src/types.d.cts +10 -0
  30. package/dist/deepkit/src/types.d.mts +10 -0
  31. package/dist/deepkit/src/utilities.cjs +1 -0
  32. package/dist/deepkit/src/utilities.mjs +1 -0
  33. package/dist/deepkit/src/vendor/core.cjs +1 -0
  34. package/dist/deepkit/src/vendor/core.mjs +1 -0
  35. package/dist/deepkit/src/vendor/type-compiler/index.cjs +1 -0
  36. package/dist/deepkit/src/vendor/type-compiler/index.mjs +1 -0
  37. package/dist/deepkit/src/vendor/type.cjs +1 -0
  38. package/dist/deepkit/src/vendor/type.d.cts +7 -0
  39. package/dist/deepkit/src/vendor/type.d.mts +7 -0
  40. package/dist/deepkit/src/vendor/type.mjs +1 -0
  41. package/dist/index.cjs +1 -63
  42. package/dist/index.d.cts +5 -6
  43. package/dist/index.d.mts +6 -6
  44. package/dist/index.mjs +1 -60
  45. package/dist/plugin-alloy/src/core/components/index.cjs +1 -0
  46. package/dist/plugin-alloy/src/core/components/index.mjs +1 -0
  47. package/dist/plugin-alloy/src/core/components/output.cjs +1 -0
  48. package/dist/plugin-alloy/src/core/components/output.mjs +1 -0
  49. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +1 -0
  50. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +1 -0
  51. package/dist/plugin-alloy/src/core/components/source-file.cjs +1 -0
  52. package/dist/plugin-alloy/src/core/components/source-file.mjs +1 -0
  53. package/dist/plugin-alloy/src/core/contexts/context.cjs +1 -0
  54. package/dist/plugin-alloy/src/core/contexts/context.mjs +1 -0
  55. package/dist/plugin-alloy/src/core/contexts/index.cjs +1 -0
  56. package/dist/plugin-alloy/src/core/contexts/index.mjs +1 -0
  57. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +1 -0
  58. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +1 -0
  59. package/dist/plugin-alloy/src/core/index.cjs +1 -0
  60. package/dist/plugin-alloy/src/core/index.mjs +1 -0
  61. package/dist/plugin-alloy/src/helpers/capnp.cjs +1 -0
  62. package/dist/plugin-alloy/src/helpers/capnp.mjs +1 -0
  63. package/dist/plugin-alloy/src/helpers/create-builtin.cjs +1 -0
  64. package/dist/plugin-alloy/src/helpers/create-builtin.mjs +1 -0
  65. package/dist/plugin-alloy/src/helpers/index.cjs +1 -0
  66. package/dist/plugin-alloy/src/helpers/index.mjs +1 -0
  67. package/dist/plugin-alloy/src/helpers/refkey.cjs +1 -0
  68. package/dist/plugin-alloy/src/helpers/refkey.mjs +1 -0
  69. package/dist/plugin-alloy/src/helpers/typescript.cjs +1 -0
  70. package/dist/plugin-alloy/src/helpers/typescript.mjs +1 -0
  71. package/dist/plugin-alloy/src/index.cjs +2 -0
  72. package/dist/plugin-alloy/src/index.mjs +2 -0
  73. package/dist/plugin-alloy/src/markdown/components/index.cjs +1 -0
  74. package/dist/plugin-alloy/src/markdown/components/index.mjs +1 -0
  75. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +1 -0
  76. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +1 -0
  77. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +1 -0
  78. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +1 -0
  79. package/dist/plugin-alloy/src/markdown/contexts/index.cjs +1 -0
  80. package/dist/plugin-alloy/src/markdown/contexts/index.mjs +1 -0
  81. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +1 -0
  82. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +1 -0
  83. package/dist/plugin-alloy/src/markdown/index.cjs +1 -0
  84. package/dist/plugin-alloy/src/markdown/index.mjs +1 -0
  85. package/dist/plugin-alloy/src/types/components.d.mts +5 -0
  86. package/dist/plugin-alloy/src/types/index.d.mts +2 -0
  87. package/dist/plugin-alloy/src/types/plugin.d.cts +38 -0
  88. package/dist/plugin-alloy/src/types/plugin.d.mts +38 -0
  89. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +1 -0
  90. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +1 -0
  91. package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.cjs +1 -0
  92. package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.mjs +1 -0
  93. package/dist/plugin-alloy/src/typescript/components/entry-file.cjs +1 -0
  94. package/dist/plugin-alloy/src/typescript/components/entry-file.mjs +1 -0
  95. package/dist/plugin-alloy/src/typescript/components/index.cjs +1 -0
  96. package/dist/plugin-alloy/src/typescript/components/index.mjs +1 -0
  97. package/dist/plugin-alloy/src/typescript/components/record-expression.cjs +1 -0
  98. package/dist/plugin-alloy/src/typescript/components/record-expression.mjs +1 -0
  99. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
  100. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
  101. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +1 -0
  102. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +1 -0
  103. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +1 -0
  104. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +1 -0
  105. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +1 -0
  106. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +1 -0
  107. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +1 -0
  108. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +1 -0
  109. package/dist/plugin-alloy/src/typescript/index.cjs +1 -0
  110. package/dist/plugin-alloy/src/typescript/index.mjs +1 -0
  111. package/dist/plugin-automd/src/index.cjs +1 -0
  112. package/dist/plugin-automd/src/index.mjs +1 -0
  113. package/dist/plugin-automd/src/types/plugin.d.cts +38 -0
  114. package/dist/plugin-automd/src/types/plugin.d.mts +40 -0
  115. package/dist/plugin-automd/src/types/toc.d.cts +33 -0
  116. package/dist/plugin-automd/src/types/toc.d.mts +33 -0
  117. package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
  118. package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
  119. package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
  120. package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
  121. package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
  122. package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
  123. package/dist/plugin-babel/src/helpers/index.cjs +1 -0
  124. package/dist/plugin-babel/src/helpers/index.mjs +1 -0
  125. package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
  126. package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
  127. package/dist/plugin-babel/src/helpers/options.cjs +1 -0
  128. package/dist/plugin-babel/src/helpers/options.mjs +1 -0
  129. package/dist/plugin-babel/src/index.cjs +1 -0
  130. package/dist/plugin-babel/src/index.mjs +1 -0
  131. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  132. package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
  133. package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
  134. package/dist/plugin-env/src/babel/index.cjs +1 -0
  135. package/dist/plugin-env/src/babel/index.mjs +1 -0
  136. package/dist/plugin-env/src/babel/plugin.cjs +5 -0
  137. package/dist/plugin-env/src/babel/plugin.mjs +5 -0
  138. package/dist/plugin-env/src/components/docs.cjs +1 -0
  139. package/dist/plugin-env/src/components/docs.mjs +1 -0
  140. package/dist/plugin-env/src/components/env.cjs +34 -0
  141. package/dist/plugin-env/src/components/env.mjs +31 -0
  142. package/dist/plugin-env/src/components/index.cjs +1 -0
  143. package/dist/plugin-env/src/components/index.mjs +1 -0
  144. package/dist/plugin-env/src/helpers/automd-generator.cjs +1 -0
  145. package/dist/plugin-env/src/helpers/automd-generator.mjs +1 -0
  146. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +1 -0
  147. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +1 -0
  148. package/dist/plugin-env/src/helpers/index.cjs +1 -0
  149. package/dist/plugin-env/src/helpers/index.mjs +1 -0
  150. package/dist/plugin-env/src/helpers/load.cjs +1 -0
  151. package/dist/plugin-env/src/helpers/load.mjs +1 -0
  152. package/dist/plugin-env/src/helpers/persistence.cjs +1 -0
  153. package/dist/plugin-env/src/helpers/persistence.mjs +1 -0
  154. package/dist/plugin-env/src/helpers/reflect.cjs +1 -0
  155. package/dist/plugin-env/src/helpers/reflect.mjs +1 -0
  156. package/dist/plugin-env/src/helpers/source-file-env.cjs +1 -0
  157. package/dist/plugin-env/src/helpers/source-file-env.mjs +1 -0
  158. package/dist/plugin-env/src/helpers/template-helpers.cjs +1 -0
  159. package/dist/plugin-env/src/helpers/template-helpers.mjs +1 -0
  160. package/dist/plugin-env/src/index.cjs +10 -0
  161. package/dist/plugin-env/src/index.mjs +10 -0
  162. package/dist/plugin-env/src/types/plugin.d.cts +151 -0
  163. package/dist/plugin-env/src/types/plugin.d.mts +153 -0
  164. package/dist/plugin-env/src/types/runtime.d.cts +792 -0
  165. package/dist/plugin-env/src/types/runtime.d.mts +792 -0
  166. package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
  167. package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
  168. package/dist/powerlines/src/lib/entry.cjs +1 -0
  169. package/dist/powerlines/src/lib/entry.mjs +1 -0
  170. package/dist/powerlines/src/lib/logger.cjs +1 -0
  171. package/dist/powerlines/src/lib/logger.mjs +1 -0
  172. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +1 -0
  173. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +1 -0
  174. package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
  175. package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
  176. package/dist/powerlines/src/lib/utilities/file-header.cjs +1 -0
  177. package/dist/powerlines/src/lib/utilities/file-header.mjs +1 -0
  178. package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
  179. package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
  180. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  181. package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
  182. package/dist/powerlines/src/types/babel.d.cts +22 -0
  183. package/dist/powerlines/src/types/babel.d.mts +22 -0
  184. package/dist/powerlines/src/types/build.d.cts +145 -0
  185. package/dist/powerlines/src/types/build.d.mts +145 -0
  186. package/dist/powerlines/src/types/commands.d.cts +8 -0
  187. package/dist/powerlines/src/types/commands.d.mts +9 -0
  188. package/dist/powerlines/src/types/config.d.cts +368 -0
  189. package/dist/powerlines/src/types/config.d.mts +369 -0
  190. package/dist/powerlines/src/types/context.d.cts +373 -0
  191. package/dist/powerlines/src/types/context.d.mts +375 -0
  192. package/dist/powerlines/src/types/fs.d.cts +458 -0
  193. package/dist/powerlines/src/types/fs.d.mts +458 -0
  194. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  195. package/dist/powerlines/src/types/plugin.d.cts +231 -0
  196. package/dist/powerlines/src/types/plugin.d.mts +231 -0
  197. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  198. package/dist/powerlines/src/types/resolved.d.mts +82 -0
  199. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  200. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  201. package/dist/types/index.cjs +0 -1
  202. package/dist/types/index.d.cts +2 -4
  203. package/dist/types/index.d.mts +2 -4
  204. package/dist/types/index.mjs +1 -1
  205. package/dist/types/plugin.cjs +0 -1
  206. package/dist/types/plugin.d.cts +72 -2
  207. package/dist/types/plugin.d.mts +72 -2
  208. package/dist/types/plugin.mjs +1 -1
  209. package/dist/types/runtime.cjs +0 -1
  210. package/dist/types/runtime.d.cts +14 -2
  211. package/dist/types/runtime.d.mts +14 -2
  212. package/dist/types/runtime.mjs +1 -1
  213. package/package.json +10 -11
  214. package/dist/components-BWLXb7a2.cjs +0 -0
  215. package/dist/components-MTvNCZDU.mjs +0 -1
  216. package/dist/index-C-svZlpj.d.mts +0 -1
  217. package/dist/index-CtCMUyZA.d.cts +0 -1
  218. package/dist/index-DEHBdV_z.d.mts +0 -1
  219. package/dist/index-_wQ5ClJU.d.cts +0 -1
  220. package/dist/plugin-G4qbpIjB.mjs +0 -1
  221. package/dist/plugin-pBKbb5K9.cjs +0 -0
  222. package/dist/react-optimized-AthekqzJ.cjs +0 -1
  223. package/dist/react-optimized-DPBN2hOh.mjs +0 -1
  224. package/dist/react-optimized-DmMl-ZEI.d.cts +0 -14
  225. package/dist/react-optimized-Y1x3FeDm.d.mts +0 -14
  226. package/dist/runtime-BNQjyQ7l.d.cts +0 -2495
  227. package/dist/runtime-Bp9G0scd.cjs +0 -0
  228. package/dist/runtime-CKObV75t.d.cts +0 -15
  229. package/dist/runtime-Do9xjHUb.d.mts +0 -2496
  230. package/dist/runtime-IEYS5R9b.d.mts +0 -15
  231. package/dist/runtime-cDYyRPa0.mjs +0 -1
  232. package/dist/types-C5ggNT4K.mjs +0 -1
  233. package/dist/types-a8gm_IaQ.cjs +0 -0
@@ -1,3 +1,73 @@
1
- import "../runtime-Do9xjHUb.mjs";
2
- import { a as ReactPluginUserConfig, c as __ΩReactPluginOptions, i as ReactPluginResolvedConfig, l as __ΩReactPluginResolvedConfig, n as ReactPluginContext, o as __ΩReactCompilerOptions, r as ReactPluginOptions, s as __ΩReactPluginContext, t as ReactCompilerOptions, u as __ΩReactPluginUserConfig } from "../plugin-CoU4RMKg.mjs";
1
+ import { BabelPluginOptions } from "../plugin-babel/src/types/plugin.mjs";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "../plugin-env/src/types/plugin.mjs";
3
+ import { PluginOptions } from "babel-plugin-react-compiler";
4
+
5
+ //#region src/types/plugin.d.ts
6
+ type ReactCompilerOptions = Omit<PluginOptions, "logger">;
7
+ interface ReactPluginOptions {
8
+ /**
9
+ * Control where the JSX factory is imported from.
10
+ *
11
+ * @see https://esbuild.github.io/api/#jsx-import-source
12
+ *
13
+ * @defaultValue "react"
14
+ */
15
+ jsxImportSource?: string;
16
+ /**
17
+ * Control how JSX is transformed.
18
+ *
19
+ * @remarks
20
+ * Skipping React import with classic runtime is not supported from v4
21
+ *
22
+ * @defaultValue "automatic"
23
+ */
24
+ jsxRuntime?: "classic" | "automatic";
25
+ /**
26
+ * Options provided to the [React Compiler](https://npmjs.com/package/babel-plugin-react-compiler).
27
+ *
28
+ * @see https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L55
29
+ * @see https://react.dev/blog/2025/04/21/react-compiler-rc
30
+ *
31
+ * @remarks
32
+ * Set to `false` to disable the React Compiler. By default, the React Compiler is enabled and target is set to React 19.
33
+ */
34
+ compiler?: ReactCompilerOptions | false;
35
+ /**
36
+ * React Fast Refresh runtime URL prefix.
37
+ *
38
+ * @remarks
39
+ * Useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application.
40
+ *
41
+ * @example
42
+ * reactRefreshHost: 'http://localhost:3000'
43
+ */
44
+ reactRefreshHost?: string;
45
+ /**
46
+ * Options to pass to the [Babel plugin](https://npmjs.com/package/\@powerlines/plugin-babel).
47
+ */
48
+ babel?: Partial<BabelPluginOptions>;
49
+ /**
50
+ * Options to pass to the [Env plugin](https://npmjs.com/package/\@powerlines/plugin-env).
51
+ */
52
+ env?: Partial<Omit<EnvPluginOptions, "babel">>;
53
+ }
54
+ type ReactPluginUserConfig = EnvPluginUserConfig & {
55
+ /**
56
+ * Options for the React plugin.
57
+ */
58
+ react?: ReactPluginOptions;
59
+ };
60
+ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
61
+ /**
62
+ * Options for the React plugin.
63
+ */
64
+ react: ReactPluginOptions;
65
+ };
66
+ interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {}
67
+ declare type __ΩReactCompilerOptions = any[];
68
+ declare type __ΩReactPluginOptions = any[];
69
+ declare type __ΩReactPluginUserConfig = any[];
70
+ declare type __ΩReactPluginResolvedConfig = any[];
71
+ declare type __ΩReactPluginContext = any[];
72
+ //#endregion
3
73
  export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
@@ -1 +1 @@
1
- import"../plugin-G4qbpIjB.mjs";export{};
1
+ export{};
@@ -1 +0,0 @@
1
- require(`../runtime-Bp9G0scd.cjs`);
@@ -1,3 +1,15 @@
1
- import "../runtime-BNQjyQ7l.cjs";
2
- import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-CKObV75t.cjs";
1
+ import { EnvInterface } from "../plugin-env/src/types/runtime.cjs";
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
3
15
  export { ReactEnvInterface, __ΩReactEnvInterface };
@@ -1,3 +1,15 @@
1
- import "../runtime-Do9xjHUb.mjs";
2
- import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-IEYS5R9b.mjs";
1
+ import { EnvInterface } from "../plugin-env/src/types/runtime.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
3
15
  export { ReactEnvInterface, __ΩReactEnvInterface };
@@ -1 +1 @@
1
- import"../runtime-cDYyRPa0.mjs";export{};
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.109",
3
+ "version": "0.1.111",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a React application.",
6
6
  "repository": {
@@ -136,9 +136,13 @@
136
136
  "react-dom": { "optional": false }
137
137
  },
138
138
  "dependencies": {
139
- "@powerlines/plugin-alloy": "^0.15.2",
140
- "@powerlines/plugin-babel": "^0.12.114",
141
- "@powerlines/plugin-env": "^0.14.8",
139
+ "@alloy-js/core": "^0.22.0",
140
+ "@alloy-js/json": "^0.22.0",
141
+ "@alloy-js/markdown": "^0.22.0",
142
+ "@alloy-js/typescript": "^0.22.0",
143
+ "@powerlines/plugin-alloy": "^0.15.4",
144
+ "@powerlines/plugin-babel": "^0.12.116",
145
+ "@powerlines/plugin-env": "^0.14.10",
142
146
  "@storm-software/config-tools": "^1.188.74",
143
147
  "@stryke/cli": "^0.12.36",
144
148
  "@stryke/convert": "^0.6.29",
@@ -147,15 +151,10 @@
147
151
  "@vitejs/plugin-react": "^5.1.2",
148
152
  "babel-plugin-react-compiler": "^1.0.0",
149
153
  "defu": "^6.1.4",
150
- "powerlines": "^0.36.10"
154
+ "powerlines": "^0.36.12"
151
155
  },
152
156
  "devDependencies": {
153
- "@alloy-js/core": "^0.22.0",
154
- "@alloy-js/typescript": "^0.22.0",
155
157
  "@babel/core": "^7.28.5",
156
- "@powerlines/nx": "^0.11.36",
157
- "@powerlines/plugin-alloy": "^0.15.2",
158
- "@powerlines/plugin-plugin": "^0.12.57",
159
158
  "@types/node": "^24.10.4",
160
159
  "@types/react": "^19.2.7",
161
160
  "@types/react-dom": "^19.2.3",
@@ -163,5 +162,5 @@
163
162
  "react-dom": "^19.2.3"
164
163
  },
165
164
  "publishConfig": { "access": "public" },
166
- "gitHead": "ab50afb5bed1d2d55072e7375c6425980e3d03ad"
165
+ "gitHead": "d3ac72b97e62a0bff2a45b99d6e5ca5d32f95f3c"
167
166
  }
File without changes
@@ -1 +0,0 @@
1
- export{};
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export{};
File without changes
@@ -1 +0,0 @@
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(`@alloy-js/core/jsx-runtime`),u=require(`defu`);u=c(u);let d=require(`@alloy-js/core`),f=require(`@alloy-js/typescript`),p=require(`@powerlines/alloy/core/contexts/context`),m=require(`@powerlines/alloy/helpers/refkey`),h=require(`@powerlines/alloy/typescript/components/builtin-file`),g=require(`@powerlines/alloy/typescript/components/tsdoc`);const _=(0,m.refkey)(`isOptimizationEnabled`);function v(e){let[{override:t},n]=(0,d.splitProps)(e,[`override`]),r=(0,p.usePowerlines)();return(0,l.createComponent)(h.BuiltinFile,(0,l.mergeProps)(n,{id:`react/optimized`,description:`A built-in module to provide access to environment configuration to determine React optimizations.`,get imports(){return(0,u.default)({[`${r?.config.output.builtinPrefix}:env`]:[`env`,`isDevelopment`]},n.imports??{})},get children(){return[(0,l.createComponent)(g.TSDoc,{heading:`A gating function to determine if the optimized [React compiler](https://react.dev/reference/react-compiler) source code should be used.`,get children(){return[(0,l.createComponent)(g.TSDocLink,{children:`https://react.dev/reference/react-compiler/gating`}),(0,l.createComponent)(g.TSDocReturns,{children:`A boolean indicating if the React compiler's optimizations should be used.`})]}}),(0,l.createComponent)(f.FunctionDeclaration,{refkey:_,async:!1,export:!0,name:`isOptimizationEnabled`,returnType:`boolean`,children:t===void 0?d.code`return !env.DISABLE_REACT_COMPILER && !isDevelopment; `:d.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}});
@@ -1 +0,0 @@
1
- import{createComponent as e,mergeProps as t}from"@alloy-js/core/jsx-runtime";import n from"defu";import{code as r,splitProps as i}from"@alloy-js/core";import{FunctionDeclaration as a}from"@alloy-js/typescript";import{usePowerlines as o}from"@powerlines/alloy/core/contexts/context";import{refkey as s}from"@powerlines/alloy/helpers/refkey";import{BuiltinFile as c}from"@powerlines/alloy/typescript/components/builtin-file";import{TSDoc as l,TSDocLink as u,TSDocReturns as d}from"@powerlines/alloy/typescript/components/tsdoc";const f=s(`isOptimizationEnabled`);function p(s){let[{override:p},m]=i(s,[`override`]),h=o();return e(c,t(m,{id:`react/optimized`,description:`A built-in module to provide access to environment configuration to determine React optimizations.`,get imports(){return n({[`${h?.config.output.builtinPrefix}:env`]:[`env`,`isDevelopment`]},m.imports??{})},get children(){return[e(l,{heading:`A gating function to determine if the optimized [React compiler](https://react.dev/reference/react-compiler) source code should be used.`,get children(){return[e(u,{children:`https://react.dev/reference/react-compiler/gating`}),e(d,{children:`A boolean indicating if the React compiler's optimizations should be used.`})]}}),e(a,{refkey:f,async:!1,export:!0,name:`isOptimizationEnabled`,returnType:`boolean`,children:p===void 0?r`return !env.DISABLE_REACT_COMPILER && !isDevelopment; `:r`return ${p};`})]}}))}export{p as t};
@@ -1,14 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };