@powerlines/plugin-react 0.1.110 → 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.
- package/dist/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/{chunk-CF6LXmkI.mjs → _virtual/rolldown_runtime.mjs} +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +1 -2
- package/dist/components/index.d.mts +1 -2
- package/dist/components/index.mjs +1 -1
- package/dist/components/react-optimized.cjs +1 -1
- package/dist/components/react-optimized.d.cts +13 -1
- package/dist/components/react-optimized.d.mts +13 -1
- package/dist/components/react-optimized.mjs +1 -1
- package/dist/deepkit/schemas/reflection.cjs +1 -0
- package/dist/{plugin-qpXdqfDo.d.mts → deepkit/schemas/reflection.d.cts} +1 -331
- package/dist/{plugin-CP9_29iU.d.cts → deepkit/schemas/reflection.d.mts} +1 -333
- package/dist/deepkit/schemas/reflection.mjs +1 -0
- package/dist/deepkit/schemas/reflection2.cjs +1 -0
- package/dist/deepkit/schemas/reflection2.mjs +1 -0
- package/dist/deepkit/src/capnp.cjs +1 -0
- package/dist/deepkit/src/capnp.mjs +1 -0
- package/dist/deepkit/src/esbuild-plugin.cjs +4 -0
- package/dist/deepkit/src/esbuild-plugin.mjs +4 -0
- package/dist/deepkit/src/reflect-type.cjs +1 -0
- package/dist/deepkit/src/reflect-type.mjs +1 -0
- package/dist/deepkit/src/resolve-reflections.cjs +1 -0
- package/dist/deepkit/src/resolve-reflections.mjs +1 -0
- package/dist/deepkit/src/transformer.cjs +1 -0
- package/dist/deepkit/src/transformer.mjs +1 -0
- package/dist/deepkit/src/transpile.cjs +1 -0
- package/dist/deepkit/src/transpile.mjs +1 -0
- package/dist/deepkit/src/types.d.cts +10 -0
- package/dist/deepkit/src/types.d.mts +10 -0
- package/dist/deepkit/src/utilities.cjs +1 -0
- package/dist/deepkit/src/utilities.mjs +1 -0
- package/dist/deepkit/src/vendor/core.cjs +1 -0
- package/dist/deepkit/src/vendor/core.mjs +1 -0
- package/dist/deepkit/src/vendor/type-compiler/index.cjs +1 -0
- package/dist/deepkit/src/vendor/type-compiler/index.mjs +1 -0
- package/dist/deepkit/src/vendor/type.cjs +1 -0
- package/dist/deepkit/src/vendor/type.d.cts +7 -0
- package/dist/deepkit/src/vendor/type.d.mts +7 -0
- package/dist/deepkit/src/vendor/type.mjs +1 -0
- package/dist/index.cjs +1 -64
- package/dist/index.d.cts +5 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +1 -61
- package/dist/plugin-alloy/src/core/components/index.cjs +1 -0
- package/dist/plugin-alloy/src/core/components/index.mjs +1 -0
- package/dist/plugin-alloy/src/core/components/output.cjs +1 -0
- package/dist/plugin-alloy/src/core/components/output.mjs +1 -0
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +1 -0
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +1 -0
- package/dist/plugin-alloy/src/core/components/source-file.cjs +1 -0
- package/dist/plugin-alloy/src/core/components/source-file.mjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/context.cjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/context.mjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/index.cjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/index.mjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +1 -0
- package/dist/plugin-alloy/src/core/index.cjs +1 -0
- package/dist/plugin-alloy/src/core/index.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/capnp.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/capnp.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/create-builtin.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/create-builtin.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/index.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/index.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/refkey.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/refkey.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/typescript.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/typescript.mjs +1 -0
- package/dist/plugin-alloy/src/index.cjs +2 -0
- package/dist/plugin-alloy/src/index.mjs +2 -0
- package/dist/plugin-alloy/src/markdown/components/index.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/index.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/contexts/index.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/contexts/index.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/index.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/index.mjs +1 -0
- package/dist/plugin-alloy/src/types/components.d.mts +5 -0
- package/dist/plugin-alloy/src/types/index.d.mts +2 -0
- package/dist/plugin-alloy/src/types/plugin.d.cts +38 -0
- package/dist/plugin-alloy/src/types/plugin.d.mts +38 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/entry-file.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/entry-file.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/index.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/index.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/record-expression.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/record-expression.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/index.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/index.mjs +1 -0
- package/dist/plugin-automd/src/index.cjs +1 -0
- package/dist/plugin-automd/src/index.mjs +1 -0
- package/dist/plugin-automd/src/types/plugin.d.cts +38 -0
- package/dist/plugin-automd/src/types/plugin.d.mts +40 -0
- package/dist/plugin-automd/src/types/toc.d.cts +33 -0
- package/dist/plugin-automd/src/types/toc.d.mts +33 -0
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
- package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
- package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
- package/dist/plugin-babel/src/helpers/index.cjs +1 -0
- package/dist/plugin-babel/src/helpers/index.mjs +1 -0
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
- package/dist/plugin-babel/src/helpers/options.cjs +1 -0
- package/dist/plugin-babel/src/helpers/options.mjs +1 -0
- package/dist/plugin-babel/src/index.cjs +1 -0
- package/dist/plugin-babel/src/index.mjs +1 -0
- package/dist/plugin-babel/src/types/index.d.mts +1 -0
- package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
- package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
- package/dist/plugin-env/src/babel/index.cjs +1 -0
- package/dist/plugin-env/src/babel/index.mjs +1 -0
- package/dist/plugin-env/src/babel/plugin.cjs +5 -0
- package/dist/plugin-env/src/babel/plugin.mjs +5 -0
- package/dist/plugin-env/src/components/docs.cjs +1 -0
- package/dist/plugin-env/src/components/docs.mjs +1 -0
- package/dist/plugin-env/src/components/env.cjs +34 -0
- package/dist/plugin-env/src/components/env.mjs +31 -0
- package/dist/plugin-env/src/components/index.cjs +1 -0
- package/dist/plugin-env/src/components/index.mjs +1 -0
- package/dist/plugin-env/src/helpers/automd-generator.cjs +1 -0
- package/dist/plugin-env/src/helpers/automd-generator.mjs +1 -0
- package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +1 -0
- package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +1 -0
- package/dist/plugin-env/src/helpers/index.cjs +1 -0
- package/dist/plugin-env/src/helpers/index.mjs +1 -0
- package/dist/plugin-env/src/helpers/load.cjs +1 -0
- package/dist/plugin-env/src/helpers/load.mjs +1 -0
- package/dist/plugin-env/src/helpers/persistence.cjs +1 -0
- package/dist/plugin-env/src/helpers/persistence.mjs +1 -0
- package/dist/plugin-env/src/helpers/reflect.cjs +1 -0
- package/dist/plugin-env/src/helpers/reflect.mjs +1 -0
- package/dist/plugin-env/src/helpers/source-file-env.cjs +1 -0
- package/dist/plugin-env/src/helpers/source-file-env.mjs +1 -0
- package/dist/plugin-env/src/helpers/template-helpers.cjs +1 -0
- package/dist/plugin-env/src/helpers/template-helpers.mjs +1 -0
- package/dist/plugin-env/src/index.cjs +10 -0
- package/dist/plugin-env/src/index.mjs +10 -0
- package/dist/plugin-env/src/types/plugin.d.cts +151 -0
- package/dist/plugin-env/src/types/plugin.d.mts +153 -0
- package/dist/plugin-env/src/types/runtime.d.cts +792 -0
- package/dist/plugin-env/src/types/runtime.d.mts +792 -0
- package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
- package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
- package/dist/powerlines/src/lib/entry.cjs +1 -0
- package/dist/powerlines/src/lib/entry.mjs +1 -0
- package/dist/powerlines/src/lib/logger.cjs +1 -0
- package/dist/powerlines/src/lib/logger.mjs +1 -0
- package/dist/powerlines/src/lib/typescript/tsconfig.cjs +1 -0
- package/dist/powerlines/src/lib/typescript/tsconfig.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/file-header.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/file-header.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
- package/dist/powerlines/src/types/babel.d.cts +22 -0
- package/dist/powerlines/src/types/babel.d.mts +22 -0
- package/dist/powerlines/src/types/build.d.cts +145 -0
- package/dist/powerlines/src/types/build.d.mts +145 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +368 -0
- package/dist/powerlines/src/types/config.d.mts +369 -0
- package/dist/powerlines/src/types/context.d.cts +373 -0
- package/dist/powerlines/src/types/context.d.mts +375 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +231 -0
- package/dist/powerlines/src/types/plugin.d.mts +231 -0
- package/dist/powerlines/src/types/resolved.d.cts +82 -0
- package/dist/powerlines/src/types/resolved.d.mts +82 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +2 -4
- package/dist/types/index.d.mts +2 -4
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +72 -2
- package/dist/types/plugin.d.mts +72 -2
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/runtime.cjs +0 -1
- package/dist/types/runtime.d.cts +14 -2
- package/dist/types/runtime.d.mts +14 -2
- package/dist/types/runtime.mjs +1 -1
- package/package.json +6 -9
- package/dist/components-BWLXb7a2.cjs +0 -0
- package/dist/components-MTvNCZDU.mjs +0 -1
- package/dist/index-C-svZlpj.d.mts +0 -1
- package/dist/index-CtCMUyZA.d.cts +0 -1
- package/dist/index-DEHBdV_z.d.mts +0 -1
- package/dist/index-_wQ5ClJU.d.cts +0 -1
- package/dist/plugin-G4qbpIjB.mjs +0 -1
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/react-optimized-AthekqzJ.cjs +0 -1
- package/dist/react-optimized-DPBN2hOh.mjs +0 -1
- package/dist/react-optimized-DmMl-ZEI.d.cts +0 -14
- package/dist/react-optimized-Y1x3FeDm.d.mts +0 -14
- package/dist/runtime-BNQjyQ7l.d.cts +0 -2495
- package/dist/runtime-Bp9G0scd.cjs +0 -0
- package/dist/runtime-CKObV75t.d.cts +0 -15
- package/dist/runtime-Do9xjHUb.d.mts +0 -2496
- package/dist/runtime-IEYS5R9b.d.mts +0 -15
- package/dist/runtime-cDYyRPa0.mjs +0 -1
- package/dist/types-C5ggNT4K.mjs +0 -1
- package/dist/types-a8gm_IaQ.cjs +0 -0
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,73 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import {
|
|
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 };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{};
|
package/dist/types/runtime.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../runtime-Bp9G0scd.cjs`);
|
package/dist/types/runtime.d.cts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import "../runtime
|
|
2
|
-
|
|
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 };
|
package/dist/types/runtime.d.mts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import "../runtime
|
|
2
|
-
|
|
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 };
|
package/dist/types/runtime.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
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": {
|
|
@@ -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.15.
|
|
144
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
145
|
-
"@powerlines/plugin-env": "^0.14.
|
|
143
|
+
"@powerlines/plugin-alloy": "^0.15.4",
|
|
144
|
+
"@powerlines/plugin-babel": "^0.12.116",
|
|
145
|
+
"@powerlines/plugin-env": "^0.14.10",
|
|
146
146
|
"@storm-software/config-tools": "^1.188.74",
|
|
147
147
|
"@stryke/cli": "^0.12.36",
|
|
148
148
|
"@stryke/convert": "^0.6.29",
|
|
@@ -151,13 +151,10 @@
|
|
|
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.
|
|
154
|
+
"powerlines": "^0.36.12"
|
|
155
155
|
},
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"@babel/core": "^7.28.5",
|
|
158
|
-
"@powerlines/nx": "^0.11.37",
|
|
159
|
-
"@powerlines/plugin-alloy": "^0.15.3",
|
|
160
|
-
"@powerlines/plugin-plugin": "^0.12.58",
|
|
161
158
|
"@types/node": "^24.10.4",
|
|
162
159
|
"@types/react": "^19.2.7",
|
|
163
160
|
"@types/react-dom": "^19.2.3",
|
|
@@ -165,5 +162,5 @@
|
|
|
165
162
|
"react-dom": "^19.2.3"
|
|
166
163
|
},
|
|
167
164
|
"publishConfig": { "access": "public" },
|
|
168
|
-
"gitHead": "
|
|
165
|
+
"gitHead": "d3ac72b97e62a0bff2a45b99d6e5ca5d32f95f3c"
|
|
169
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 { };
|
package/dist/plugin-G4qbpIjB.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
package/dist/plugin-pBKbb5K9.cjs
DELETED
|
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 };
|