@powerlines/plugin-react 0.1.566 → 0.1.568

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.
@@ -1,4 +1,3 @@
1
- import * as _$react from "react";
2
1
  import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
2
 
4
3
  //#region src/components/react-optimized.d.ts
@@ -8,7 +7,7 @@ interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
8
7
  /**
9
8
  * Generates the `react/optimized` builtin module for the Powerlines project.
10
9
  */
11
- declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): _$react.JSX.Element;
10
+ declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): import("react").JSX.Element;
12
11
  declare type __ΩReactOptimizedBuiltinProps = any[];
13
12
  //#endregion
14
13
  export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps };
@@ -1 +1 @@
1
- {"version":3,"file":"react-optimized.d.cts","names":[],"sources":["../../src/components/react-optimized.tsx"],"mappings":";;;;UAgCiB,0BAAA,SAAmC,IAAA,CAClD,gBAAA;EAGA,QAAA;AAAA;AAJF;;;AAAA,iBAYgB,qBAAA,CAAsB,KAAA,EAAO,0BAAA,GAA0B,OAAA,CAAA,GAAA,CAAA,OAAA;AAAA"}
1
+ {"version":3,"file":"react-optimized.d.cts","names":[],"sources":["../../src/components/react-optimized.tsx"],"mappings":";;;UAgCiB,0BAAA,SAAmC,IAAI,CACtD,gBAAA;EAGA,QAAA;AAAA;;;;iBAQc,qBAAA,CAAsB,KAAA,EAAO,0BAA0B,mBAAA,GAAA,CAAA,OAAA;AAAA"}
@@ -1,5 +1,4 @@
1
1
  import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
2
- import * as _$react from "react";
3
2
 
4
3
  //#region src/components/react-optimized.d.ts
5
4
  interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
@@ -8,7 +7,7 @@ interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
8
7
  /**
9
8
  * Generates the `react/optimized` builtin module for the Powerlines project.
10
9
  */
11
- declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): _$react.JSX.Element;
10
+ declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): import("react").JSX.Element;
12
11
  declare type __ΩReactOptimizedBuiltinProps = any[];
13
12
  //#endregion
14
13
  export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps };
@@ -1 +1 @@
1
- {"version":3,"file":"react-optimized.d.mts","names":[],"sources":["../../src/components/react-optimized.tsx"],"mappings":";;;;UAgCiB,0BAAA,SAAmC,IAAA,CAClD,gBAAA;EAGA,QAAA;AAAA;AAJF;;;AAAA,iBAYgB,qBAAA,CAAsB,KAAA,EAAO,0BAAA,GAA0B,OAAA,CAAA,GAAA,CAAA,OAAA;AAAA"}
1
+ {"version":3,"file":"react-optimized.d.mts","names":[],"sources":["../../src/components/react-optimized.tsx"],"mappings":";;;UAgCiB,0BAAA,SAAmC,IAAI,CACtD,gBAAA;EAGA,QAAA;AAAA;;;;iBAQc,qBAAA,CAAsB,KAAA,EAAO,0BAA0B,mBAAA,GAAA,CAAA,OAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"react-optimized.mjs","names":[],"sources":["../../src/components/react-optimized.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { FunctionDeclaration } from \"@alloy-js/typescript\";\nimport { refkey } from \"@powerlines/plugin-alloy/helpers/refkey\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocLink,\n TSDocReturns\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport defu from \"defu\";\n\nexport interface ReactOptimizedBuiltinProps extends Omit<\n BuiltinFileProps,\n \"id\"\n> {\n override?: boolean;\n}\n\nconst isOptimizationEnabledRefkey = refkey(\"isOptimizationEnabled\");\n\n/**\n * Generates the `react/optimized` builtin module for the Powerlines project.\n */\nexport function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps) {\n const [{ override }, rest] = splitProps(props, [\"override\"]);\n\n return (\n <BuiltinFile\n {...rest}\n id=\"react/optimized\"\n description=\"A built-in module to provide access to environment configuration to determine React optimizations.\"\n builtinImports={defu(\n { env: [\"env\", \"isDevelopment\"] },\n rest.builtinImports ?? {}\n )}>\n <TSDoc heading=\"A gating function to determine if the optimized [React compiler](https://react.dev/reference/react-compiler) source code should be used.\">\n <TSDocLink>\n {`https://react.dev/reference/react-compiler/gating`}\n </TSDocLink>\n <TSDocReturns>\n {`A boolean indicating if the React compiler's optimizations should be used.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n refkey={isOptimizationEnabledRefkey}\n async={false}\n export={true}\n name=\"isOptimizationEnabled\"\n returnType=\"boolean\">\n <Show\n when={override !== undefined}\n fallback={code`return !env.DISABLE_REACT_COMPILER && !isDevelopment; `}>{code`return ${override};`}</Show>\n <hbr />\n </FunctionDeclaration>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;AAyBA,MAAM,8BAAC,OAAA,wBAAA;;;;AAKP,SAAgB,sBAAO,OAAA;UAEvB,YACE,QAAA,WAAgB,OAAA,CAAA,WAAA,CAAA;AAChB,QAAG,gBAAA,aAAA,WAAA,MAAA;EACH,IAAA;EACA,aAAW;EACb,IAAA,iBAAA;iBAEM,KAAA,CAAA,OAAA,gBAA8B;;EAGjC,IAAA,WAAe;AAChB,UAAA,CAAA,gBAAA,OAAA;IACK,SAAS;IACR,IAAG,WAAY;0CAEd,UAAA,qDACJ,CAAA,EAAA,gBAAA,cAAA,EACK,UAAI,8EACJ,CAAA,CAAA;;IAEJ,CAAA,EAAA,gBAAoB,qBAAA;IAClB,QAAQ;IACR,OAAK;IACL,UAAA;IACD,MAAM;IACL,YAAU;IACV,IAAI,WAAQ;AACV,YAAA,CAAA,gBAAS,MAAA;MACV,MAAA,aAAY;MACT,UAAU,IAAA;MACZ,UAAY,IAAA,UAAA,SAAA;MACd,CAAA,EAAK,gBAAA,OAAA,EAAA,CAAA,CAAA;;IAEN,CAAC,CAAA;;EAEL,CAAC,CAAC"}
1
+ {"version":3,"file":"react-optimized.mjs","names":[],"sources":["../../src/components/react-optimized.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { FunctionDeclaration } from \"@alloy-js/typescript\";\nimport { refkey } from \"@powerlines/plugin-alloy/helpers/refkey\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocLink,\n TSDocReturns\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport defu from \"defu\";\n\nexport interface ReactOptimizedBuiltinProps extends Omit<\n BuiltinFileProps,\n \"id\"\n> {\n override?: boolean;\n}\n\nconst isOptimizationEnabledRefkey = refkey(\"isOptimizationEnabled\");\n\n/**\n * Generates the `react/optimized` builtin module for the Powerlines project.\n */\nexport function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps) {\n const [{ override }, rest] = splitProps(props, [\"override\"]);\n\n return (\n <BuiltinFile\n {...rest}\n id=\"react/optimized\"\n description=\"A built-in module to provide access to environment configuration to determine React optimizations.\"\n builtinImports={defu(\n { env: [\"env\", \"isDevelopment\"] },\n rest.builtinImports ?? {}\n )}>\n <TSDoc heading=\"A gating function to determine if the optimized [React compiler](https://react.dev/reference/react-compiler) source code should be used.\">\n <TSDocLink>\n {`https://react.dev/reference/react-compiler/gating`}\n </TSDocLink>\n <TSDocReturns>\n {`A boolean indicating if the React compiler's optimizations should be used.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n refkey={isOptimizationEnabledRefkey}\n async={false}\n export={true}\n name=\"isOptimizationEnabled\"\n returnType=\"boolean\">\n <Show\n when={override !== undefined}\n fallback={code`return !env.DISABLE_REACT_COMPILER && !isDevelopment; `}>{code`return ${override};`}</Show>\n <hbr />\n </FunctionDeclaration>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;AAyBA,MAAM,8BAAC,OAAA,uBAAA;;;;AAKP,SAAgB,sBAAO,OAAA;UAEvB,YACE,QAAA,WAAgB,OAAA,CAAA,UAAA,CAAA;CAChB,OAAG,gBAAA,aAAA,WAAA,MAAA;EACH,IAAA;EACA,aAAW;EACb,IAAA,iBAAA;iBAEM,KAAA,CAAA,OAAA,eAA8B;EAElC;EACC,IAAA,WAAe;GAChB,OAAA,CAAA,gBAAA,OAAA;IACK,SAAS;IACR,IAAG,WAAY;0CAEd,UAAA,oDACJ,CAAA,GAAA,gBAAA,cAAA,EACK,UAAI,6EACJ,CAAA,CAAA;IACJ;GACA,CAAA,GAAA,gBAAoB,qBAAA;IAClB,QAAQ;IACR,OAAK;IACL,UAAA;IACD,MAAM;IACL,YAAU;IACV,IAAI,WAAQ;KACV,OAAA,CAAA,gBAAS,MAAA;MACV,MAAA,aAAY;MACT,UAAU,IAAA;MACZ,UAAY,IAAA,UAAA,SAAA;KACd,CAAA,GAAK,gBAAA,OAAA,CAAA,CAAA,CAAA;IACN;GACD,CAAC,CAAC;EACJ;CACF,CAAC,CAAC;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;YAsCY,MAAA;IACR,KAAA,GAAQ,kBAAA;EAAA;AAAA;;;;cAOC,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KA2MJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;YAsCY,MAAA;IACR,KAAA,GAAQ,kBAAkB;EAAA;AAAA;;;;cAOjB,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KA2MJ,MAAA,CAAO,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;YAsCY,MAAA;IACR,KAAA,GAAQ,kBAAA;EAAA;AAAA;;;;cAOC,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KA2MJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;YAsCY,MAAA;IACR,KAAA,GAAQ,kBAAkB;EAAA;AAAA;;;;cAOjB,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KA2MJ,MAAA,CAAO,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isMatchFound } from \"@powerlines/core/lib/typescript\";\nimport {\n ReflectionKind,\n ReflectionVisibility\n} from \"@powerlines/deepkit/vendor/type\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport babel, { BabelPluginResolvedConfig } from \"@powerlines/plugin-babel\";\nimport env from \"@powerlines/plugin-env\";\nimport { VitePluginResolvedConfig } from \"@powerlines/plugin-vite/types/plugin\";\nimport viteReactPlugin, { BabelOptions } from \"@vitejs/plugin-react\";\nimport type { LoggerEvent } from \"babel-plugin-react-compiler\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { ReactOptimizedBuiltin } from \"./components/react-optimized\";\nimport type { ReactPluginContext, ReactPluginOptions } from \"./types/plugin\";\n\nexport * from \"./components\";\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n react?: ReactPluginOptions;\n }\n}\n\n/**\n * A package containing a Powerlines plugin for building a React application.\n */\nexport const plugin = <\n TContext extends ReactPluginContext = ReactPluginContext\n>(\n options: ReactPluginOptions = {}\n) => {\n return [\n babel(options.babel),\n env(options.env),\n {\n name: \"react\",\n config() {\n return defu(\n {\n react: options\n },\n {\n react: {\n jsxImportSource: this.tsconfig.tsconfigJson.compilerOptions\n ?.jsxImportSource as string\n }\n },\n {\n react: {\n jsxRuntime: \"automatic\",\n jsxImportSource: \"react\",\n compiler: {\n target: \"19\",\n compilationMode: \"infer\",\n gating: {\n source: `${this.config.framework}:react/optimized`,\n importSpecifierName: \"isOptimizationEnabled\"\n },\n enableReanimatedCheck: true,\n logger: {\n logEvent: (filename: string | null, event: LoggerEvent) => {\n this.logger.log(\n event.kind === \"CompileSuccess\" ||\n event.kind === \"AutoDepsEligible\" ||\n event.kind === \"AutoDepsDecorations\"\n ? \"info\"\n : event.kind === \"CompileSkip\" ||\n event.kind === \"CompileDiagnostic\"\n ? \"debug\"\n : event.kind === \"Timing\"\n ? \"trace\"\n : \"error\",\n `(${filename}) ${\n event.kind === \"CompileSuccess\"\n ? `React Compiler Success`\n : event.kind === \"AutoDepsEligible\"\n ? `React AutoDeps Eligible - ${\n event.depArrayLoc.identifierName ||\n \"No identifier\"\n }`\n : event.kind === \"AutoDepsDecorations\"\n ? `React AutoDeps Decorations - ${event.decorations\n .filter(dec => dec.identifierName)\n .map(dec => dec.identifierName)\n .join(\", \")}`\n : event.kind === \"CompileSkip\"\n ? `React Compile Skip - ${event.reason}`\n : event.kind === \"CompileDiagnostic\"\n ? `React Compile Diagnostic - (Category: ${\n event.detail.category\n }) ${event.detail.reason}${\n event.detail.description\n ? `\\n${event.detail.description}`\n : \"\"\n }`\n : event.kind === \"Timing\"\n ? `React ${\n event.measurement.entryType\n } Timing (${event.measurement.name}) - ${\n event.measurement.duration\n }ms`\n : `React Compiler Error - ${\n event.fnLoc?.identifierName ||\n \"unknown location\"\n }`\n }`\n );\n }\n }\n }\n } as ReactPluginOptions\n }\n );\n },\n configResolved() {\n this.dependencies.react = \"^19.2.3\";\n this.dependencies[\"react-dom\"] = \"^19.2.3\";\n\n this.devDependencies[\"@types/react\"] = \"^19.2.3\";\n this.devDependencies[\"@types/react-dom\"] = \"^19.2.3\";\n\n if (this.config.react.compiler !== false) {\n (this.config as BabelPluginResolvedConfig).babel ??=\n {} as BabelPluginResolvedConfig[\"babel\"];\n\n this.config.babel.plugins ??= [];\n this.config.babel.plugins.push([\n \"babel-plugin-react-compiler\",\n this.config.react.compiler ?? {}\n ]);\n }\n\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.lib ??= [];\n this.tsconfig.tsconfigJson.compilerOptions.module ??= \"esnext\";\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource =\n this.config.react.jsxImportSource;\n\n if (this.tsconfig.options.jsxImportSource === \"react\") {\n this.tsconfig.tsconfigJson.compilerOptions.jsx ??= \"react-jsx\";\n } else {\n this.tsconfig.tsconfigJson.compilerOptions.jsx ??= \"preserve\";\n }\n\n // Client platform\n if (this.environment.consumer === \"client\") {\n if (\n !isMatchFound(\"dom\", this.tsconfig.tsconfigJson.compilerOptions.lib)\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.lib.push(\"DOM\");\n }\n\n if (\n !isMatchFound(\n \"dom.iterable\",\n this.tsconfig.tsconfigJson.compilerOptions.lib\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.lib.push(\"DOM.Iterable\");\n }\n }\n\n if (\n !isMatchFound(\n \"esnext\",\n this.tsconfig.tsconfigJson.compilerOptions.lib\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.lib.push(\"ESNext\");\n }\n\n if (this.tsconfig.options.resolveJsonModule !== true) {\n this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule = true;\n }\n\n if ((this.config as VitePluginResolvedConfig).vite) {\n this.tsconfig.tsconfigJson.compilerOptions.types ??= [];\n\n if (\n !isMatchFound(\n \"vite/client\",\n this.tsconfig.tsconfigJson.compilerOptions.types\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.types.push(\n \"vite/client\"\n );\n }\n\n const viteBuildConfig = (this.config as VitePluginResolvedConfig)\n .vite;\n viteBuildConfig.build ??= {};\n viteBuildConfig.build.target = \"chrome95\";\n\n viteBuildConfig.plugins ??= [];\n viteBuildConfig.plugins.unshift(\n viteReactPlugin({\n babel: (this.config as BabelPluginResolvedConfig)\n .babel as BabelOptions,\n jsxImportSource: this.config.react.jsxImportSource,\n jsxRuntime: this.config.react.jsxRuntime,\n reactRefreshHost: this.config.react.reactRefreshHost\n })\n );\n }\n\n if (\n this.env?.types?.env &&\n !this.env.types.env.hasProperty(\"DISABLE_REACT_COMPILER\")\n ) {\n this.env.types.env.addProperty({\n name: \"DISABLE_REACT_COMPILER\",\n optional: true,\n readonly: true,\n description: \"Disables the React compiler optimizations.\",\n visibility: ReflectionVisibility.public,\n type: {\n kind: ReflectionKind.boolean\n },\n default: false\n });\n }\n },\n async prepare() {\n return render(\n this,\n <ReactOptimizedBuiltin\n override={this.config.react.compiler === false ? false : undefined}\n />\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;AAkCA,MAAa,UAAI,UAAW,EAAA,KAAA;AAC5B,QAAS;EAAA,MAAO,QAAO,MAAA;EAAA,IAAA,QAAA,IAAA;EAAA;;GAEvB,SAAQ;AACN,WAAU,KAAM,EACd,OAAQ,SACV,EAAA,EACF,OAAA,gFAEE,EACG,EAAA,EACH,OAAA;KACK,YAAe;KACZ,iBAAS;KAClB,UAAA;MACU,QAAA;MACN,iBAAA;MACI,QAAA;OACC,QAAQ,GAAM,KAAA,OAAA,UAAA;OAChB,qBAAY;OAChB;MACQ,uBAAO;MACP,QAAG,EACD,WAAK,UAAA,UAAA;AACT,YAAA,OAAA,IAAA,MAAA,SAAA,oBAAA,MAAA,SAAA,sBAAA,MAAA,SAAA,wBAAA,SAAA,MAAA,SAAA,iBAAA,MAAA,SAAA,sBAAA,UAAA,MAAA,SAAA,WAAA,UAAA,SAAA,IAAA,SAAA,IAAA,MAAA,SAAA,mBAAA,2BAAA,MAAA,SAAA,qBAAA,6BAAA,MAAA,YAAA,kBAAA,oBAAA,MAAA,SAAA,wBAAA,gCAAA,MAAA,YAAA,QAAA,QAAA,IAAA,eAAA,CAAA,KAAA,QAAA,IAAA,eAAA,CAAA,KAAA,KAAA,KAAA,MAAA,SAAA,gBAAA,wBAAA,MAAA,WAAA,MAAA,SAAA,sBAAA,yCAAA,MAAA,OAAA,SAAA,IAAA,MAAA,OAAA,SAAA,MAAA,OAAA,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C1C,MAAK,SAAS,aAAa,gBAAW,oBAAA;AAExC,QAAI,KAAK,OAAO,MAAM;AACpB,UAAK,SAAS,aAAW,gBAAe,UAAa,EAAE;AACvD,SAAI,CAAC,aAAa,eAAe,KAAK,SAAO,aAAc,gBAAA,MAAA,CACzD,MAAK,SAAS,aAAW,gBAAe,MAAA,KAAc,cAAA;KAExD,MAAM,kBAAkB,KAAK,OAAO;AACpC,qBAAgB,UAAU,EAAC;AAC3B,qBAAgB,MAAM,SAAS;AAC/B,qBAAgB,YAAY,EAAC;AAC7B,qBAAgB,QAAQ,QAAM,gBAAa;MACzC,OAAO,KAAK,OAAO;MACnB,iBAAiB,KAAK,OAAM,MAAM;MAClC,YAAY,KAAK,OAAO,MAAM;MAC9B,kBAAkB,KAAK,OAAO,MAAG;MAClC,CAAC,CAAC;;AAEL,QAAI,KAAK,KAAK,OAAO,OAAO,CAAC,KAAI,IAAK,MAAE,IAAA,YAAA,yBAAA,CACtC,MAAK,IAAI,MAAM,IAAI,YAAY;KAC7B,MAAM;KACN,UAAU;KACV,UAAU;KACV,aAAa;KACb,YAAY,qBAAkB;KAC9B,MAAM,EACJ,MAAM,eAAe,SACtB;KACD,SAAS;KACV,CAAC;;GAGN,MAAM,UAAO;IACX,MAAI,SAAA;AACJ,WAAG,OAAA,MAAA,gBAAA,uBAAA,EACF,IAAA,WAAA;AACD,YAAA,OAAiB,OAAA,MAAA,aAAA,QAAA,QAAA;OAEhB,CAAC,CAAA;;GAEL;EAAC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isMatchFound } from \"@powerlines/core/lib/typescript\";\nimport {\n ReflectionKind,\n ReflectionVisibility\n} from \"@powerlines/deepkit/vendor/type\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport babel, { BabelPluginResolvedConfig } from \"@powerlines/plugin-babel\";\nimport env from \"@powerlines/plugin-env\";\nimport { VitePluginResolvedConfig } from \"@powerlines/plugin-vite/types/plugin\";\nimport viteReactPlugin, { BabelOptions } from \"@vitejs/plugin-react\";\nimport type { LoggerEvent } from \"babel-plugin-react-compiler\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { ReactOptimizedBuiltin } from \"./components/react-optimized\";\nimport type { ReactPluginContext, ReactPluginOptions } from \"./types/plugin\";\n\nexport * from \"./components\";\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n react?: ReactPluginOptions;\n }\n}\n\n/**\n * A package containing a Powerlines plugin for building a React application.\n */\nexport const plugin = <\n TContext extends ReactPluginContext = ReactPluginContext\n>(\n options: ReactPluginOptions = {}\n) => {\n return [\n babel(options.babel),\n env(options.env),\n {\n name: \"react\",\n config() {\n return defu(\n {\n react: options\n },\n {\n react: {\n jsxImportSource: this.tsconfig.tsconfigJson.compilerOptions\n ?.jsxImportSource as string\n }\n },\n {\n react: {\n jsxRuntime: \"automatic\",\n jsxImportSource: \"react\",\n compiler: {\n target: \"19\",\n compilationMode: \"infer\",\n gating: {\n source: `${this.config.framework}:react/optimized`,\n importSpecifierName: \"isOptimizationEnabled\"\n },\n enableReanimatedCheck: true,\n logger: {\n logEvent: (filename: string | null, event: LoggerEvent) => {\n this.logger.log(\n event.kind === \"CompileSuccess\" ||\n event.kind === \"AutoDepsEligible\" ||\n event.kind === \"AutoDepsDecorations\"\n ? \"info\"\n : event.kind === \"CompileSkip\" ||\n event.kind === \"CompileDiagnostic\"\n ? \"debug\"\n : event.kind === \"Timing\"\n ? \"trace\"\n : \"error\",\n `(${filename}) ${\n event.kind === \"CompileSuccess\"\n ? `React Compiler Success`\n : event.kind === \"AutoDepsEligible\"\n ? `React AutoDeps Eligible - ${\n event.depArrayLoc.identifierName ||\n \"No identifier\"\n }`\n : event.kind === \"AutoDepsDecorations\"\n ? `React AutoDeps Decorations - ${event.decorations\n .filter(dec => dec.identifierName)\n .map(dec => dec.identifierName)\n .join(\", \")}`\n : event.kind === \"CompileSkip\"\n ? `React Compile Skip - ${event.reason}`\n : event.kind === \"CompileDiagnostic\"\n ? `React Compile Diagnostic - (Category: ${\n event.detail.category\n }) ${event.detail.reason}${\n event.detail.description\n ? `\\n${event.detail.description}`\n : \"\"\n }`\n : event.kind === \"Timing\"\n ? `React ${\n event.measurement.entryType\n } Timing (${event.measurement.name}) - ${\n event.measurement.duration\n }ms`\n : `React Compiler Error - ${\n event.fnLoc?.identifierName ||\n \"unknown location\"\n }`\n }`\n );\n }\n }\n }\n } as ReactPluginOptions\n }\n );\n },\n configResolved() {\n this.dependencies.react = \"^19.2.3\";\n this.dependencies[\"react-dom\"] = \"^19.2.3\";\n\n this.devDependencies[\"@types/react\"] = \"^19.2.3\";\n this.devDependencies[\"@types/react-dom\"] = \"^19.2.3\";\n\n if (this.config.react.compiler !== false) {\n (this.config as BabelPluginResolvedConfig).babel ??=\n {} as BabelPluginResolvedConfig[\"babel\"];\n\n this.config.babel.plugins ??= [];\n this.config.babel.plugins.push([\n \"babel-plugin-react-compiler\",\n this.config.react.compiler ?? {}\n ]);\n }\n\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.lib ??= [];\n this.tsconfig.tsconfigJson.compilerOptions.module ??= \"esnext\";\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource =\n this.config.react.jsxImportSource;\n\n if (this.tsconfig.options.jsxImportSource === \"react\") {\n this.tsconfig.tsconfigJson.compilerOptions.jsx ??= \"react-jsx\";\n } else {\n this.tsconfig.tsconfigJson.compilerOptions.jsx ??= \"preserve\";\n }\n\n // Client platform\n if (this.environment.consumer === \"client\") {\n if (\n !isMatchFound(\"dom\", this.tsconfig.tsconfigJson.compilerOptions.lib)\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.lib.push(\"DOM\");\n }\n\n if (\n !isMatchFound(\n \"dom.iterable\",\n this.tsconfig.tsconfigJson.compilerOptions.lib\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.lib.push(\"DOM.Iterable\");\n }\n }\n\n if (\n !isMatchFound(\n \"esnext\",\n this.tsconfig.tsconfigJson.compilerOptions.lib\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.lib.push(\"ESNext\");\n }\n\n if (this.tsconfig.options.resolveJsonModule !== true) {\n this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule = true;\n }\n\n if ((this.config as VitePluginResolvedConfig).vite) {\n this.tsconfig.tsconfigJson.compilerOptions.types ??= [];\n\n if (\n !isMatchFound(\n \"vite/client\",\n this.tsconfig.tsconfigJson.compilerOptions.types\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.types.push(\n \"vite/client\"\n );\n }\n\n const viteBuildConfig = (this.config as VitePluginResolvedConfig)\n .vite;\n viteBuildConfig.build ??= {};\n viteBuildConfig.build.target = \"chrome95\";\n\n viteBuildConfig.plugins ??= [];\n viteBuildConfig.plugins.unshift(\n viteReactPlugin({\n babel: (this.config as BabelPluginResolvedConfig)\n .babel as BabelOptions,\n jsxImportSource: this.config.react.jsxImportSource,\n jsxRuntime: this.config.react.jsxRuntime,\n reactRefreshHost: this.config.react.reactRefreshHost\n })\n );\n }\n\n if (\n this.env?.types?.env &&\n !this.env.types.env.hasProperty(\"DISABLE_REACT_COMPILER\")\n ) {\n this.env.types.env.addProperty({\n name: \"DISABLE_REACT_COMPILER\",\n optional: true,\n readonly: true,\n description: \"Disables the React compiler optimizations.\",\n visibility: ReflectionVisibility.public,\n type: {\n kind: ReflectionKind.boolean\n },\n default: false\n });\n }\n },\n async prepare() {\n return render(\n this,\n <ReactOptimizedBuiltin\n override={this.config.react.compiler === false ? false : undefined}\n />\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;AAkCA,MAAa,UAAI,UAAW,CAAA,MAAA;CAC5B,OAAS;EAAA,MAAO,QAAO,KAAA;EAAA,IAAA,QAAA,GAAA;EAAA;;GAEvB,SAAQ;IACN,OAAU,KAAM,EACd,OAAQ,QACV,GAAA,EACF,OAAA,+EAEE,EACG,GAAA,EACH,OAAA;KACK,YAAe;KACZ,iBAAS;KAClB,UAAA;MACU,QAAA;MACN,iBAAA;MACI,QAAA;OACC,QAAQ,GAAM,KAAA,OAAA,UAAA;OAChB,qBAAY;MAChB;MACQ,uBAAO;MACP,QAAG,EACD,WAAK,UAAA,UAAA;OACT,KAAA,OAAA,IAAA,MAAA,SAAA,oBAAA,MAAA,SAAA,sBAAA,MAAA,SAAA,wBAAA,SAAA,MAAA,SAAA,iBAAA,MAAA,SAAA,sBAAA,UAAA,MAAA,SAAA,WAAA,UAAA,SAAA,IAAA,SAAA,IAAA,MAAA,SAAA,mBAAA,2BAAA,MAAA,SAAA,qBAAA,6BAAA,MAAA,YAAA,kBAAA,oBAAA,MAAA,SAAA,wBAAA,gCAAA,MAAA,YAAA,QAAA,QAAA,IAAA,cAAA,EAAA,KAAA,QAAA,IAAA,cAAA,EAAA,KAAA,IAAA,MAAA,MAAA,SAAA,gBAAA,wBAAA,MAAA,WAAA,MAAA,SAAA,sBAAA,yCAAA,MAAA,OAAA,SAAA,IAAA,MAAA,OAAA,SAAA,MAAA,OAAA,cAAA,KAAA,MAAA,OAAA,gBAAA,OAAA,MAAA,SAAA,WAAA,SAAA,MAAA,YAAA,UAAA,WAAA,MAAA,YAAA,KAAA,MAAA,MAAA,YAAA,SAAA,MAAA,0BAAA,MAAA,OAAA,kBAAA,sBAAA;MACE,EACD;KACD;IACF,EACF,CAAC;GACH;GACA,iBA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AAe,MAAA,KAAc,aAAA;KAExD,MAAM,kBAAkB,KAAK,OAAO;KACpC,gBAAgB,UAAU,CAAC;KAC3B,gBAAgB,MAAM,SAAS;KAC/B,gBAAgB,YAAY,CAAC;KAC7B,gBAAgB,QAAQ,QAAM,gBAAa;MACzC,OAAO,KAAK,OAAO;MACnB,iBAAiB,KAAK,OAAM,MAAM;MAClC,YAAY,KAAK,OAAO,MAAM;MAC9B,kBAAkB,KAAK,OAAO,MAAG;KACnC,CAAC,CAAC;IACJ;IACA,IAAI,KAAK,KAAK,OAAO,OAAO,CAAC,KAAI,IAAK,MAAE,IAAA,YAAA,wBAAA,GACtC,KAAK,IAAI,MAAM,IAAI,YAAY;KAC7B,MAAM;KACN,UAAU;KACV,UAAU;KACV,aAAa;KACb,YAAY,qBAAkB;KAC9B,MAAM,EACJ,MAAM,eAAe,QACvB;KACA,SAAS;IACX,CAAC;GAEL;GACA,MAAM,UAAO;IACX,MAAI,SAAA;IACJ,OAAG,OAAA,MAAA,gBAAA,uBAAA,EACF,IAAA,WAAA;KACD,OAAA,OAAiB,OAAA,MAAA,aAAA,QAAA,QAAA;IACf,EACF,CAAC,CAAC;;EAEN;CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAoBiB,QAAA,SAAiB,YAAA;;AAAlC;;;;;EAOE,sBAAA;AAAA;AAAA"}
1
+ {"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAoBiB,QAAA,SAAiB,YAAY;;AAA9C;;;;AAOwB;EAAtB,sBAAsB;AAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAoBiB,QAAA,SAAiB,YAAA;;AAAlC;;;;;EAOE,sBAAA;AAAA;AAAA"}
1
+ {"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAoBiB,Q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B,yBAAA,GAA4B,uBAAA;EASb;;;EALzB,KAAA,EAAO,kBAAkB;AAAA;AAAA,UAGV,kBAAA,yBACS,yBAAA,GAA4B,yBAAA,UAC5C,gBAAA,CAAiB,eAAA;AAAA"}
package/package.json CHANGED
@@ -1,18 +1,24 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.566",
4
- "type": "module",
3
+ "version": "0.1.568",
4
+ "private": false,
5
5
  "description": "A package containing a Powerlines plugin for building a React application.",
6
+ "keywords": ["react", "powerlines", "storm-software", "powerlines-plugin"],
7
+ "homepage": "https://stormsoftware.com",
8
+ "bugs": {
9
+ "url": "https://stormsoftware.com/support",
10
+ "email": "support@stormsoftware.com"
11
+ },
6
12
  "repository": {
7
13
  "type": "github",
8
14
  "url": "https://github.com/storm-software/powerlines.git",
9
15
  "directory": "packages/plugins/plugin-react"
10
16
  },
11
- "homepage": "https://stormsoftware.com",
12
- "bugs": {
13
- "url": "https://stormsoftware.com/support",
14
- "email": "support@stormsoftware.com"
17
+ "funding": {
18
+ "type": "github",
19
+ "url": "https://github.com/sponsors/storm-software"
15
20
  },
21
+ "license": "Apache-2.0",
16
22
  "author": {
17
23
  "name": "Storm Software",
18
24
  "email": "contact@stormsoftware.com",
@@ -32,15 +38,7 @@
32
38
  "url": "https://stormsoftware.com"
33
39
  }
34
40
  ],
35
- "funding": {
36
- "type": "github",
37
- "url": "https://github.com/sponsors/storm-software"
38
- },
39
- "license": "Apache-2.0",
40
- "private": false,
41
- "typings": "dist/index.d.mts",
42
- "main": "./dist/index.cjs",
43
- "module": "./dist/index.mjs",
41
+ "type": "module",
44
42
  "exports": {
45
43
  ".": { "import": "./dist/index.mjs", "require": "./dist/index.cjs" },
46
44
  "./components": {
@@ -65,23 +63,22 @@
65
63
  },
66
64
  "./package.json": "./package.json"
67
65
  },
68
- "files": ["dist/**/*"],
69
- "keywords": ["react", "powerlines", "storm-software", "powerlines-plugin"],
70
- "peerDependencies": { "react": ">=19.2.0", "react-dom": ">=19.2.0" },
71
- "peerDependenciesMeta": {
72
- "react": { "optional": false },
73
- "react-dom": { "optional": false }
74
- },
66
+ "main": "./dist/index.cjs",
67
+ "module": "./dist/index.mjs",
68
+ "types": "./dist/index.d.cts",
69
+ "typings": "dist/index.d.mts",
70
+ "files": ["dist"],
75
71
  "dependencies": {
76
72
  "@alloy-js/core": "^0.23.1",
77
73
  "@alloy-js/json": "^0.23.0",
78
74
  "@alloy-js/markdown": "^0.23.0",
79
75
  "@alloy-js/typescript": "^0.23.0",
80
76
  "@babel/core": "8.0.0-rc.5",
81
- "@powerlines/plugin-vite": "^0.14.494",
82
- "@powerlines/plugin-alloy": "^0.26.123",
83
- "@powerlines/plugin-babel": "^0.13.36",
84
- "@powerlines/plugin-env": "^0.16.231",
77
+ "@powerlines/core": "^0.15.20",
78
+ "@powerlines/plugin-alloy": "^0.26.125",
79
+ "@powerlines/plugin-babel": "^0.13.38",
80
+ "@powerlines/plugin-env": "^0.16.233",
81
+ "@powerlines/plugin-vite": "^0.14.496",
85
82
  "@storm-software/config-tools": "^1.190.20",
86
83
  "@stryke/cli": "^0.13.48",
87
84
  "@stryke/convert": "^0.7.7",
@@ -90,15 +87,19 @@
90
87
  "@vitejs/plugin-react": "^5.2.0",
91
88
  "babel-plugin-react-compiler": "^1.0.0",
92
89
  "defu": "^6.1.7",
93
- "powerlines": "^0.47.40"
90
+ "powerlines": "^0.47.42"
94
91
  },
95
92
  "devDependencies": {
96
- "@powerlines/plugin-plugin": "^0.12.452",
97
- "@types/node": "^25.8.0",
93
+ "@powerlines/plugin-plugin": "^0.12.454",
94
+ "@types/node": "^25.9.0",
98
95
  "@types/react": "^19.2.14",
99
96
  "@types/react-dom": "^19.2.3"
100
97
  },
98
+ "peerDependencies": { "react": ">=19.2.0", "react-dom": ">=19.2.0" },
99
+ "peerDependenciesMeta": {
100
+ "react": { "optional": false },
101
+ "react-dom": { "optional": false }
102
+ },
101
103
  "publishConfig": { "access": "public" },
102
- "types": "./dist/index.d.cts",
103
- "gitHead": "c5c293e753d59ab690265988c77bd535680ac71b"
104
+ "gitHead": "2dbbdb2f6fde8f0f49208757c7c1b18deb96ff97"
104
105
  }