@powerlines/plugin-react 0.1.108 → 0.1.109
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/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/react-optimized.cjs +1 -1
- package/dist/components/react-optimized.mjs +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +24 -24
- package/dist/{plugin-CCWbVJ0P.d.mts → plugin-CoU4RMKg.d.mts} +2 -2
- package/dist/react-optimized-AthekqzJ.cjs +1 -0
- package/dist/react-optimized-DPBN2hOh.mjs +1 -0
- package/dist/{runtime-CbWds61u.d.mts → runtime-Do9xjHUb.d.mts} +0 -1
- package/dist/{runtime-CKyYLoHU.d.mts → runtime-IEYS5R9b.d.mts} +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/plugin.d.mts +2 -2
- package/dist/types/runtime.d.mts +2 -2
- package/package.json +11 -11
- package/dist/react-optimized-Btf0j0ZP.cjs +0 -1
- package/dist/react-optimized-C8ZBC6OY.mjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
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
|
+
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
2
3
|
import { Config } from "automd";
|
|
3
4
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
4
5
|
import * as $ from "@stryke/capnp";
|
|
5
6
|
import { PrintTreeOptions } from "@alloy-js/core";
|
|
6
7
|
import "@alloy-js/typescript";
|
|
7
|
-
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
8
8
|
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
9
9
|
import { PluginOptions } from "babel-plugin-react-compiler";
|
|
10
10
|
|
|
@@ -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(`@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}});
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -3,7 +3,6 @@ import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
|
3
3
|
import { BabelAPI } from "@babel/helper-plugin-utils";
|
|
4
4
|
import "c12";
|
|
5
5
|
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
6
|
-
import "esbuild";
|
|
7
6
|
import ts from "typescript";
|
|
8
7
|
import { ArrayValues } from "@stryke/types/array";
|
|
9
8
|
import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../runtime-
|
|
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-
|
|
3
|
-
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-
|
|
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";
|
|
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.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../runtime-
|
|
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-
|
|
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";
|
|
3
3
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
|
package/dist/types/runtime.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../runtime-
|
|
2
|
-
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-
|
|
1
|
+
import "../runtime-Do9xjHUb.mjs";
|
|
2
|
+
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-IEYS5R9b.mjs";
|
|
3
3
|
export { ReactEnvInterface, __ΩReactEnvInterface };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.109",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a React application.",
|
|
6
6
|
"repository": {
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
"react-dom": { "optional": false }
|
|
137
137
|
},
|
|
138
138
|
"dependencies": {
|
|
139
|
-
"@powerlines/plugin-alloy": "^0.15.
|
|
140
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
141
|
-
"@powerlines/plugin-env": "^0.14.
|
|
139
|
+
"@powerlines/plugin-alloy": "^0.15.2",
|
|
140
|
+
"@powerlines/plugin-babel": "^0.12.114",
|
|
141
|
+
"@powerlines/plugin-env": "^0.14.8",
|
|
142
142
|
"@storm-software/config-tools": "^1.188.74",
|
|
143
143
|
"@stryke/cli": "^0.12.36",
|
|
144
144
|
"@stryke/convert": "^0.6.29",
|
|
@@ -147,15 +147,15 @@
|
|
|
147
147
|
"@vitejs/plugin-react": "^5.1.2",
|
|
148
148
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
149
149
|
"defu": "^6.1.4",
|
|
150
|
-
"powerlines": "^0.36.
|
|
150
|
+
"powerlines": "^0.36.10"
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
|
-
"@alloy-js/core": "^0.
|
|
154
|
-
"@alloy-js/typescript": "^0.
|
|
153
|
+
"@alloy-js/core": "^0.22.0",
|
|
154
|
+
"@alloy-js/typescript": "^0.22.0",
|
|
155
155
|
"@babel/core": "^7.28.5",
|
|
156
|
-
"@powerlines/nx": "^0.11.
|
|
157
|
-
"@powerlines/plugin-alloy": "^0.15.
|
|
158
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
156
|
+
"@powerlines/nx": "^0.11.36",
|
|
157
|
+
"@powerlines/plugin-alloy": "^0.15.2",
|
|
158
|
+
"@powerlines/plugin-plugin": "^0.12.57",
|
|
159
159
|
"@types/node": "^24.10.4",
|
|
160
160
|
"@types/react": "^19.2.7",
|
|
161
161
|
"@types/react-dom": "^19.2.3",
|
|
@@ -163,5 +163,5 @@
|
|
|
163
163
|
"react-dom": "^19.2.3"
|
|
164
164
|
},
|
|
165
165
|
"publishConfig": { "access": "public" },
|
|
166
|
-
"gitHead": "
|
|
166
|
+
"gitHead": "ab50afb5bed1d2d55072e7375c6425980e3d03ad"
|
|
167
167
|
}
|
|
@@ -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(`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}});
|
|
@@ -1 +0,0 @@
|
|
|
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};
|