@powerlines/plugin-react 0.1.48 → 0.1.49
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/README.md +8 -2
- package/dist/chunk-CF6LXmkI.mjs +1 -0
- package/dist/components/index.d.cts +4 -0
- package/dist/components/index.d.mts +4 -0
- package/dist/components/index.mjs +1 -1
- package/dist/components/react-optimized.d.cts +3 -0
- package/dist/components/react-optimized.d.mts +3 -0
- package/dist/components/react-optimized.mjs +1 -1
- package/dist/index-B8OHl-c_.d.mts +1 -0
- package/dist/index-BR1oNnaF.d.cts +1 -0
- package/dist/index-CFG0_wK4.d.cts +1 -0
- package/dist/index-DNLi60D-.d.mts +1 -0
- package/dist/index.d.cts +44 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +47 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +12 -11
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-C9ZuWdaR.d.cts +1781 -0
- package/dist/plugin-C9ZuWdaR.d.cts.map +1 -0
- package/dist/plugin-JgSIR_pC.d.mts +1779 -0
- package/dist/plugin-JgSIR_pC.d.mts.map +1 -0
- package/dist/plugin-sboatcNU.d.mts +1779 -0
- package/dist/plugin-sboatcNU.d.mts.map +1 -0
- package/dist/react-optimized-B4-nlx1E.d.mts +103 -0
- package/dist/react-optimized-B4-nlx1E.d.mts.map +1 -0
- package/dist/react-optimized-B_P6YxHv.mjs +2 -0
- package/dist/react-optimized-B_P6YxHv.mjs.map +1 -0
- package/dist/react-optimized-CY318RuO.d.cts +102 -0
- package/dist/react-optimized-CY318RuO.d.cts.map +1 -0
- package/dist/react-optimized-CbXKgStb.d.mts +103 -0
- package/dist/react-optimized-CbXKgStb.d.mts.map +1 -0
- package/dist/resolved-C3sdBJbK.d.mts +1680 -0
- package/dist/resolved-C3sdBJbK.d.mts.map +1 -0
- package/dist/resolved-C8Vvfp78.d.cts +1679 -0
- package/dist/resolved-C8Vvfp78.d.cts.map +1 -0
- package/dist/resolved-cGosdCt1.d.mts +1681 -0
- package/dist/resolved-cGosdCt1.d.mts.map +1 -0
- package/dist/runtime-CH2w8aTC.d.mts +16 -0
- package/dist/runtime-CH2w8aTC.d.mts.map +1 -0
- package/dist/runtime-DEBqRdSt.d.mts +793 -0
- package/dist/runtime-DEBqRdSt.d.mts.map +1 -0
- package/dist/runtime-DRosxZBg.d.mts +793 -0
- package/dist/runtime-DRosxZBg.d.mts.map +1 -0
- package/dist/runtime-FcS-im6N.d.mts +16 -0
- package/dist/runtime-FcS-im6N.d.mts.map +1 -0
- package/dist/runtime-ag6w6CSq.d.cts +793 -0
- package/dist/runtime-ag6w6CSq.d.cts.map +1 -0
- package/dist/runtime-e8zq29Og.d.cts +16 -0
- package/dist/runtime-e8zq29Og.d.cts.map +1 -0
- package/dist/types/index.d.cts +6 -0
- package/dist/types/index.d.mts +6 -0
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.d.cts +4 -0
- package/dist/types/plugin.d.mts +4 -0
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/runtime.d.cts +4 -0
- package/dist/types/runtime.d.mts +4 -0
- package/dist/types/runtime.mjs +1 -1
- package/package.json +9 -9
- package/dist/react-optimized-9J3fdCI2.mjs +0 -1
- /package/dist/{components-ipRi4DSE.mjs → components-MTvNCZDU.mjs} +0 -0
- /package/dist/{plugin-Gb47Xzf6.mjs → plugin-G4qbpIjB.mjs} +0 -0
- /package/dist/{runtime-BbUj49s9.mjs → runtime-cDYyRPa0.mjs} +0 -0
- /package/dist/{types-CwXe_Ycf.mjs → types-C5ggNT4K.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-ag6w6CSq.d.cts","names":[],"sources":["../../plugin-env/src/types/runtime.ts"],"sourcesContent":[],"mappings":";;;;;;AA+BA;AA81BA;;;;;;;;UA91BiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8RH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAgkBG,gBAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as EnvInterface } from "./runtime-ag6w6CSq.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
|
|
15
|
+
export { __ΩReactEnvInterface as n, ReactEnvInterface as t };
|
|
16
|
+
//# sourceMappingURL=runtime-e8zq29Og.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-e8zq29Og.d.cts","names":[],"sources":["../src/types/runtime.ts"],"sourcesContent":[],"mappings":";;;UAoBiB,iBAAA,SAA0B;;AAA3C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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-C9ZuWdaR.cjs";
|
|
2
|
+
import "../resolved-C8Vvfp78.cjs";
|
|
3
|
+
import "../runtime-ag6w6CSq.cjs";
|
|
4
|
+
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-e8zq29Og.cjs";
|
|
5
|
+
import "../index-CFG0_wK4.cjs";
|
|
6
|
+
export { ReactCompilerOptions, ReactEnvInterface, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactEnvInterface, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../resolved-C3sdBJbK.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-sboatcNU.mjs";
|
|
3
|
+
import "../runtime-DRosxZBg.mjs";
|
|
4
|
+
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "../runtime-FcS-im6N.mjs";
|
|
5
|
+
import "../index-B8OHl-c_.mjs";
|
|
6
|
+
export { ReactCompilerOptions, ReactEnvInterface, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactEnvInterface, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../plugin-
|
|
1
|
+
import"../plugin-G4qbpIjB.mjs";import"../runtime-cDYyRPa0.mjs";import"../types-C5ggNT4K.mjs";export{};
|
|
@@ -0,0 +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-C9ZuWdaR.cjs";
|
|
2
|
+
import "../resolved-C8Vvfp78.cjs";
|
|
3
|
+
import "../runtime-ag6w6CSq.cjs";
|
|
4
|
+
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../resolved-C3sdBJbK.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-sboatcNU.mjs";
|
|
3
|
+
import "../runtime-DRosxZBg.mjs";
|
|
4
|
+
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../plugin-
|
|
1
|
+
import"../plugin-G4qbpIjB.mjs";export{};
|
package/dist/types/runtime.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../runtime-
|
|
1
|
+
import"../runtime-cDYyRPa0.mjs";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.49",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a React application.",
|
|
6
6
|
"repository": {
|
|
@@ -136,24 +136,24 @@
|
|
|
136
136
|
"react-dom": { "optional": false }
|
|
137
137
|
},
|
|
138
138
|
"dependencies": {
|
|
139
|
-
"@storm-software/config-tools": "^1.188.
|
|
139
|
+
"@storm-software/config-tools": "^1.188.52",
|
|
140
140
|
"@stryke/cli": "^0.12.19",
|
|
141
141
|
"@stryke/convert": "^0.6.13",
|
|
142
142
|
"@stryke/fs": "^0.33.9",
|
|
143
143
|
"@stryke/path": "^0.22.0",
|
|
144
144
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
145
|
-
"@powerlines/alloy": "^0.11.
|
|
146
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
147
|
-
"@powerlines/plugin-env": "^0.13.
|
|
148
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
145
|
+
"@powerlines/alloy": "^0.11.58",
|
|
146
|
+
"@powerlines/plugin-babel": "^0.12.58",
|
|
147
|
+
"@powerlines/plugin-env": "^0.13.55",
|
|
148
|
+
"@powerlines/plugin-plugin": "^0.12.1",
|
|
149
149
|
"@vitejs/plugin-react": "^5.1.1",
|
|
150
150
|
"defu": "^6.1.4",
|
|
151
|
-
"powerlines": "^0.
|
|
151
|
+
"powerlines": "^0.30.0"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"@powerlines/nx": "^0.10.
|
|
154
|
+
"@powerlines/nx": "^0.10.49",
|
|
155
155
|
"@types/node": "^24.10.1"
|
|
156
156
|
},
|
|
157
157
|
"publishConfig": { "access": "public" },
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "f0a4e1526773f5d4bfb63fd5ba1d02d5aa9bc771"
|
|
159
159
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createComponent as e,createIntrinsic as t,memo as n,mergeProps as r}from"@alloy-js/core/jsx-runtime";import{For as i,List as a,Prose as o,Scope as s,Show as c,SourceDirectoryContext as l,SourceFileContext as u,childrenArray as d,code as f,createContext as p,getContext as m,refkey as h,splitProps as g,useContext as _,useFormatOptions as v,useScope as y}from"@alloy-js/core";import{isSetString as b}from"@stryke/type-checks/is-set-string";import{isUndefined as x}from"@stryke/type-checks/is-undefined";import S from"defu";import{isString as C}from"@stryke/type-checks/is-string";import{getUniqueBy as w}from"@stryke/helpers/get-unique";import{StormJSON as T}from"@stryke/json/storm-json";import{isNull as ee}from"@stryke/type-checks/is-null";import{appendPath as E}from"@stryke/path/append";import{FunctionDeclaration as D,ImportStatements as te,PackageContext as O,SourceFileContext as ne,TSModuleScope as re,getSourceDirectoryData as ie,useSourceFile as k}from"@alloy-js/typescript";import{isBoolean as A}from"@stryke/type-checks/is-boolean";var j=Object.defineProperty,M=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,ae=Object.prototype.hasOwnProperty,P=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=N(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ae.call(e,s)&&s!==n&&j(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=M(t,s))||r.enumerable});return e},oe=(e,t,n,r)=>{r&&(j(e,Symbol.toStringTag,{value:`Module`}),n&&j(n,Symbol.toStringTag,{value:`Module`})),P(e,t,`default`),n&&P(n,t,`default`)};const F=p();function se(){return _(F)}function I(){return se()?.ref?.value}var L={};import*as R from"@deepkit/type";oe(L,R);function z(e,t){return V(e.type,t??e.getDefaultValue())}function B(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function V(e,t){return x(t)?`undefined`:ee(t)?`null`:e.kind===L.ReflectionKind.boolean?String(t).trim().toLowerCase()===`true`?`true`:`false`:e.kind===L.ReflectionKind.string||e.kind===L.ReflectionKind.literal&&C(e.literal)?B(t):e.kind===L.ReflectionKind.enum?H(e).kind===L.ReflectionKind.string?B(t):`${String(t)}`:e.kind===L.ReflectionKind.union?W(e)?B(t):`${String(t)}`:e.kind===L.ReflectionKind.array?B(T.stringify(t)):e.kind===L.ReflectionKind.object||e.kind===L.ReflectionKind.objectLiteral?T.stringify(t):e.kind===L.ReflectionKind.property||e.kind===L.ReflectionKind.parameter?V(e.type,t):String(t)}function H(e){if(e.kind!==L.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let t=w(e.values.filter(e=>e!=null),e=>C(e)?{kind:L.ReflectionKind.string}:{kind:L.ReflectionKind.number});if(t.length===0)throw Error(`No valid enum members could be found.`);return t[0]&&C(t[0])?{kind:L.ReflectionKind.string}:{kind:L.ReflectionKind.number}}function U(e){if(e.kind===L.ReflectionKind.union&&e.types.length>0)return w(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function W(e){return U(e).some(e=>e.kind===L.ReflectionKind.string||e.kind===L.ReflectionKind.literal&&C(e.literal))}function G(...e){return h(`powerlines`,...e)}function K(r){let[{children:i,heading:o}]=g(r,[`children`,`heading`]);return[`/**`,t(`align`,{string:` * `,get children(){return[t(`hbr`,{}),e(c,{get when(){return!x(o)},get children(){return[o,t(`hbr`,{}),e(c,{get when(){return n(()=>!x(i))()&&d(()=>i).length>0},get children(){return t(`hbr`,{})}})]}}),e(c,{get when(){return n(()=>!x(i))()&&d(()=>i).length>0},get children(){return e(a,{get children(){return d(()=>i)}})}})]}}),t(`hbr`,{}),` */`,t(`hbr`,{})]}function q(n){let[{children:r,tag:i}]=g(n,[`children`,`tag`]);return[`@${i} `,e(c,{get when(){return!!r},get children(){return t(`align`,{width:2,get children(){return e(o,{children:r})}})}}),t(`hbr`,{})]}function ce(t){let[{children:n},i]=g(t,[`children`]);return e(q,r(i,{tag:`title`,children:n}))}function le(t){let[{children:n},i]=g(t,[`children`]);return e(q,r(i,{tag:`domain`,children:n}))}function ue(t){let[{children:n},i]=g(t,[`children`]);return e(q,r(i,{tag:`alias`,children:n}))}function de(t){let[{children:n},i]=g(t,[`children`]);return e(q,r(i,{tag:`permission`,children:n}))}function fe(n){return[`@defaultValue `,e(c,{get when(){return!x(n.value)},get children(){return t(`align`,{width:2,get children(){return e(o,{get children(){return z(n.value)}})}})}}),t(`hbr`,{})]}function pe(n){return[`@remarks `,t(`hbr`,{}),e(a,{hardline:!0,get children(){return d(()=>n.children)}})]}function J(t){return e(q,r(t,{tag:`see`}))}function me(n){let[{tsx:r,fenced:i=!0,language:a,children:o}]=g(n,[`tsx`,`fenced`,`language`,`children`]);return[`@example `,t(`hbr`,{}),e(c,{when:i,get children(){return["```",a||(r?`tsx`:`ts`),t(`hbr`,{})]}}),o,e(c,{when:i,get children(){return[t(`hbr`,{}),"```"]}})]}function he(){return e(q,{tag:`readonly`})}function ge(){return e(q,{tag:`internal`})}function _e(){return e(q,{tag:`ignore`})}function ve(){return e(q,{tag:`hidden`})}function ye(t){let[{title:n,alias:r,permission:a,domain:o,readonly:s,internal:l,ignore:u,hidden:d,defaultValue:f}]=g(t,[`title`,`alias`,`permission`,`domain`,`readonly`,`internal`,`ignore`,`hidden`,`defaultValue`]);return[e(c,{get when(){return b(n)},get children(){return e(ce,{children:n})}}),e(c,{get when(){return!x(r)&&r.length>0},get children(){return e(i,{each:r??[],children:t=>e(ue,{children:t})})}}),e(c,{get when(){return b(o)},get children(){return e(le,{children:o})}}),e(c,{get when(){return!x(a)&&a.length>0},get children(){return e(i,{each:a??[],children:t=>e(de,{children:t})})}}),e(c,{when:s===!0,get children(){return e(he,{})}}),e(c,{when:l===!0,get children(){return e(ge,{})}}),e(c,{when:u===!0,get children(){return e(_e,{})}}),e(c,{when:d===!0,get children(){return e(ve,{})}}),e(c,{get when(){return!x(f)},get children(){return e(fe,{value:f})}})]}function be(t){return[`@param `,e(xe,{get name(){return t.name},get optional(){return t.optional},get defaultValue(){return t.defaultValue}}),e(Se,{get children(){return t.children}})]}function xe(t){return[e(c,{get when(){return t.optional},children:`[`}),n(()=>t.name),e(c,{get when(){return!!t.defaultValue},get children(){return[`=`,n(()=>t.defaultValue)]}}),e(c,{get when(){return t.optional},children:`]`})]}function Se(n){return e(c,{get when(){return!!n.children},get children(){return[` - `,t(`align`,{width:2,get children(){return e(o,{get children(){return n.children}})}})]}})}function Y(t){return e(q,r(t,{tag:`returns`}))}function Ce(t){return e(q,r(t,{tag:`throws`}))}function we(r){let[{children:i,name:o,prefix:s}]=g(r,[`children`,`name`,`prefix`]),l=I();return[`/**`,t(`align`,{string:` * `,get children(){return[t(`hbr`,{}),e(c,{get when(){return!!i},get children(){return[e(a,{hardline:!0,get children(){return d(()=>i)}}),t(`hbr`,{}),t(`hbr`,{})]}}),`@module `,n(()=>s||l?.config.output.builtinPrefix),`:`,o]}}),t(`hbr`,{}),` */`]}function X(n){let{variant:r=`double-slash`,children:i}=n,a=r===`slash-star`?`/* `:r===`slash-star-star`?`/** `:r===`triple-slash`?`/// `:r===`markdown`?`<!-- `:`// `;return[a,t(`align`,{string:a,get children(){return[e(o,{children:i}),r===`slash-star`||r===`slash-star-star`?` */ `:r===`markdown`?` -->`:``]}})]}function Te(n){let[{children:r,meta:i,path:a,header:o,preset:s,filetype:d,reference:f}]=g(n,[`children`,`meta`,`path`,`header`,`preset`,`filetype`,`reference`]),p=_(l),h={path:E(a,p.path),filetype:d,reference:f};p?.addContent(h);let y=v({printWidth:n.printWidth,tabWidth:n.tabWidth,useTabs:n.useTabs,insertFinalNewLine:n.insertFinalNewLine}),b=m();return b.meta=S({sourceFile:h,printOptions:y,output:{preset:s}},i??{}),e(u.Provider,{value:h,get children(){return[e(c,{when:o!==void 0,get children(){return[o,t(`hbr`,{})]}}),r]}})}function Ee(t){let[{children:n,path:i,imports:a,tsx:o,header:c},u]=g(t,[`children`,`path`,`imports`,`tsx`,`header`]),d=_(l),f=ie(d),p=E(i,d.path),m=new re(p,y());f.modules.add(m);let h=_(O);return h&&h.scope.addModule(m),t.export&&h&&(A(t.export)?h.scope.addExport(p,m):h.scope.addExport(t.export,m)),e(ne.Provider,{value:{scope:m},get children(){return e(s,{value:m,get children(){return e(Te,r(u,{path:p,get header(){return c??e(Z,{get children(){return e(Q,{imports:a,scope:m})}})},filetype:o?`tsx`:`typescript`,children:n}))}})}})}function Z(n){let{header:r,disableEslint:i=!0,disableBiome:a=!0,disablePrettier:o=!1,children:s}=n;return[e(c,{get when(){return!!r},get children(){return[r,t(`hbr`,{})]}}),t(`hbr`,{}),e(c,{get when(){return!!i},get children(){return[e(X,{variant:`slash-star`,children:`eslint-disable`}),t(`hbr`,{})]}}),e(c,{get when(){return!!o},get children(){return[e(X,{variant:`slash-star`,children:`prettier-ignore`}),t(`hbr`,{})]}}),e(c,{get when(){return!!a},get children(){return[e(X,{children:`biome-ignore lint: disable`}),t(`hbr`,{})]}}),e(c,{get when(){return!!i||!!o||!!a},get children(){return t(`hbr`,{})}}),e(c,{get when(){return!!s},get children(){return[s,t(`hbr`,{})]}}),e(X,{children:f`Generated by Powerlines`}),t(`hbr`,{}),e(X,{children:f`NOTE: Do not edit this file manually - it will be overwritten automatically by the "storm prepare" command`}),t(`hbr`,{})]}function Q(n){let{imports:r}=n,i=k(),a=n.scope??i.scope;return e(c,{get when(){return a.importedModules.size>0||!!r&&Object.keys(r).length>0},get children(){return[e(c,{get when(){return!!r&&Object.keys(r).length>0},get children(){return Object.entries(r??{}).map(([e,t])=>f`import ${t===null?``:t.filter(e=>!C(e)&&e.default).map(e=>e.alias?e.alias:e.name).join(`, `)+(t.filter(e=>!C(e)&&e.default).length>0&&t.filter(e=>C(e)||!e.default).length>0?`, `:``)+(t.filter(e=>C(e)||!e.default).length>0?`{ ${t.map(e=>C(e)?e:e.alias?`${e.name} as ${e.alias}`:e.name).join(`, `)} }`:``)} from "${e}";`)}}),e(c,{get when(){return a.importedModules.size>0},get children(){return e(te,{get records(){return a.importedModules}})}}),t(`hbr`,{})]}})}function $(t){let[{children:n,imports:i,id:a,description:o,tsx:s},c]=g(t,[`children`,`imports`,`id`,`description`,`tsx`]);return e(Ee,r({get header(){return e(Z,{get header(){return e(we,{name:a,children:o})},get children(){return e(Q,{imports:i})}})},meta:{builtin:{id:a}}},c,{path:`${a}${s?`.tsx`:`.ts`}`,children:n}))}const De=G(`isOptimizationEnabled`);function Oe(t){let[{override:n},i]=g(t,[`override`]),a=I();return e($,r(i,{id:`react/optimized`,description:`A built-in module to provide access to environment configuration to determine React optimizations.`,get imports(){return S({[`${a?.config.output.builtinPrefix}:env`]:[`env`,`isDevelopment`]},i.imports??{})},get children(){return[e(K,{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(J,{children:`https://react.dev/reference/react-compiler/gating`}),e(Y,{children:`A boolean indicating if the React compiler's optimizations should be used.`})]}}),e(D,{refkey:De,async:!1,export:!0,name:`isOptimizationEnabled`,returnType:`boolean`,children:n===void 0?f`return !env.DISABLE_REACT_COMPILER && !isDevelopment; `:f`return ${n};`})]}}))}export{me as a,pe as c,G as d,z as f,I as h,ye as i,Y as l,F as m,$ as n,J as o,L as p,K as r,be as s,Oe as t,Ce as u};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|