@powerlines/plugin-react 0.1.109 → 0.1.110
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/index.cjs +22 -21
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +22 -21
- package/dist/{plugin-C1nLepnu.d.cts → plugin-CP9_29iU.d.cts} +13 -2
- package/dist/{plugin-CoU4RMKg.d.mts → plugin-qpXdqfDo.d.mts} +14 -4
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +13 -11
|
@@ -3,6 +3,7 @@ import { PrintTreeOptions } from "@alloy-js/core";
|
|
|
3
3
|
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
4
4
|
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
5
5
|
import * as $ from "@stryke/capnp";
|
|
6
|
+
import "@alloy-js/typescript";
|
|
6
7
|
import { Config } from "automd";
|
|
7
8
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
8
9
|
import { PluginOptions } from "babel-plugin-react-compiler";
|
|
@@ -1604,6 +1605,9 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
|
1604
1605
|
*/
|
|
1605
1606
|
markdown?: boolean;
|
|
1606
1607
|
};
|
|
1608
|
+
type AlloyPluginUserConfig = UserConfig & {
|
|
1609
|
+
alloy?: AlloyPluginOptions;
|
|
1610
|
+
};
|
|
1607
1611
|
type AlloyPluginResolvedConfig = ResolvedConfig & {
|
|
1608
1612
|
alloy: AlloyPluginOptions;
|
|
1609
1613
|
};
|
|
@@ -1723,11 +1727,18 @@ type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
|
|
|
1723
1727
|
* The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
|
|
1724
1728
|
*/
|
|
1725
1729
|
automd?: AutoMDPluginOptions;
|
|
1730
|
+
/**
|
|
1731
|
+
* Alloy configuration options to use when injecting environment variables into the source code.
|
|
1732
|
+
*
|
|
1733
|
+
* @remarks
|
|
1734
|
+
* This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
|
|
1735
|
+
*/
|
|
1736
|
+
alloy?: AlloyPluginOptions;
|
|
1726
1737
|
};
|
|
1727
|
-
type EnvPluginUserConfig = BabelPluginUserConfig & {
|
|
1738
|
+
type EnvPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
|
|
1728
1739
|
env: EnvPluginOptions;
|
|
1729
1740
|
};
|
|
1730
|
-
type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
1741
|
+
type EnvPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
1731
1742
|
env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
|
|
1732
1743
|
/**
|
|
1733
1744
|
* The type definition for the expected env variable parameters
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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-Do9xjHUb.mjs";
|
|
2
2
|
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import { PrintTreeOptions } from "@alloy-js/core";
|
|
4
|
+
import "@alloy-js/typescript";
|
|
3
5
|
import { Config } from "automd";
|
|
4
6
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
5
7
|
import * as $ from "@stryke/capnp";
|
|
6
|
-
import { PrintTreeOptions } from "@alloy-js/core";
|
|
7
|
-
import "@alloy-js/typescript";
|
|
8
8
|
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
9
9
|
import { PluginOptions } from "babel-plugin-react-compiler";
|
|
10
10
|
|
|
@@ -1603,6 +1603,9 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
|
1603
1603
|
*/
|
|
1604
1604
|
markdown?: boolean;
|
|
1605
1605
|
};
|
|
1606
|
+
type AlloyPluginUserConfig = UserConfig & {
|
|
1607
|
+
alloy?: AlloyPluginOptions;
|
|
1608
|
+
};
|
|
1606
1609
|
type AlloyPluginResolvedConfig = ResolvedConfig & {
|
|
1607
1610
|
alloy: AlloyPluginOptions;
|
|
1608
1611
|
};
|
|
@@ -1722,11 +1725,18 @@ type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
|
|
|
1722
1725
|
* The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
|
|
1723
1726
|
*/
|
|
1724
1727
|
automd?: AutoMDPluginOptions;
|
|
1728
|
+
/**
|
|
1729
|
+
* Alloy configuration options to use when injecting environment variables into the source code.
|
|
1730
|
+
*
|
|
1731
|
+
* @remarks
|
|
1732
|
+
* This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
|
|
1733
|
+
*/
|
|
1734
|
+
alloy?: AlloyPluginOptions;
|
|
1725
1735
|
};
|
|
1726
|
-
type EnvPluginUserConfig = BabelPluginUserConfig & {
|
|
1736
|
+
type EnvPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
|
|
1727
1737
|
env: EnvPluginOptions;
|
|
1728
1738
|
};
|
|
1729
|
-
type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
1739
|
+
type EnvPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
1730
1740
|
env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
|
|
1731
1741
|
/**
|
|
1732
1742
|
* The type definition for the expected env variable parameters
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-CP9_29iU.cjs";
|
|
2
2
|
import "../runtime-BNQjyQ7l.cjs";
|
|
3
3
|
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-CKObV75t.cjs";
|
|
4
4
|
import "../index-CtCMUyZA.cjs";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-qpXdqfDo.mjs";
|
|
3
3
|
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-IEYS5R9b.mjs";
|
|
4
4
|
import "../index-C-svZlpj.mjs";
|
|
5
5
|
export { ReactCompilerOptions, ReactEnvInterface, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactEnvInterface, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-CP9_29iU.cjs";
|
|
2
2
|
import "../runtime-BNQjyQ7l.cjs";
|
|
3
3
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
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-
|
|
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-qpXdqfDo.mjs";
|
|
3
3
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.110",
|
|
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
|
-
"@
|
|
140
|
-
"@
|
|
141
|
-
"@
|
|
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.3",
|
|
144
|
+
"@powerlines/plugin-babel": "^0.12.115",
|
|
145
|
+
"@powerlines/plugin-env": "^0.14.9",
|
|
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,13 @@
|
|
|
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.
|
|
154
|
+
"powerlines": "^0.36.11"
|
|
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.
|
|
157
|
-
"@powerlines/plugin-alloy": "^0.15.
|
|
158
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
158
|
+
"@powerlines/nx": "^0.11.37",
|
|
159
|
+
"@powerlines/plugin-alloy": "^0.15.3",
|
|
160
|
+
"@powerlines/plugin-plugin": "^0.12.58",
|
|
159
161
|
"@types/node": "^24.10.4",
|
|
160
162
|
"@types/react": "^19.2.7",
|
|
161
163
|
"@types/react-dom": "^19.2.3",
|
|
@@ -163,5 +165,5 @@
|
|
|
163
165
|
"react-dom": "^19.2.3"
|
|
164
166
|
},
|
|
165
167
|
"publishConfig": { "access": "public" },
|
|
166
|
-
"gitHead": "
|
|
168
|
+
"gitHead": "298fe30390297c676ffd571284b2b62f10d8ecc9"
|
|
167
169
|
}
|