@powerlines/plugin-react 0.1.683 → 0.1.685

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.
@@ -5,9 +5,9 @@ let defu = require("defu");
5
5
  defu = require_runtime.__toESM(defu, 1);
6
6
  let _alloy_js_core = require("@alloy-js/core");
7
7
  let _alloy_js_typescript = require("@alloy-js/typescript");
8
+ let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/alloy-js/typescript/components/tsdoc");
8
9
  let _powerlines_plugin_alloy_helpers_refkey = require("@powerlines/plugin-alloy/helpers/refkey");
9
10
  let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
10
- let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
11
11
 
12
12
  //#region src/components/react-optimized.tsx
13
13
  const isOptimizationEnabledRefkey = (0, _powerlines_plugin_alloy_helpers_refkey.refkey)("isOptimizationEnabled");
@@ -23,10 +23,10 @@ function ReactOptimizedBuiltin(props) {
23
23
  return (0, defu.default)({ env: ["env", "isDevelopment"] }, rest.builtinImports ?? {});
24
24
  },
25
25
  get children() {
26
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
26
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
27
27
  heading: "A gating function to determine if the optimized [React compiler](https://react.dev/reference/react-compiler) source code should be used.",
28
28
  get children() {
29
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://react.dev/reference/react-compiler/gating` }), (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `A boolean indicating if the React compiler's optimizations should be used.` })];
29
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocLink, { children: `https://react.dev/reference/react-compiler/gating` }), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocReturns, { children: `A boolean indicating if the React compiler's optimizations should be used.` })];
30
30
  }
31
31
  }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
32
32
  refkey: isOptimizationEnabledRefkey,
@@ -2,9 +2,9 @@ import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx
2
2
  import defu from "defu";
3
3
  import { Show, code, splitProps } from "@alloy-js/core";
4
4
  import { FunctionDeclaration } from "@alloy-js/typescript";
5
+ import { TSDoc, TSDocLink, TSDocReturns } from "@power-plant/alloy-js/typescript/components/tsdoc";
5
6
  import { refkey } from "@powerlines/plugin-alloy/helpers/refkey";
6
7
  import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
7
- import { TSDoc, TSDocLink, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
8
8
 
9
9
  //#region src/components/react-optimized.tsx
10
10
  const isOptimizationEnabledRefkey = refkey("isOptimizationEnabled");
package/dist/index.cjs CHANGED
@@ -3,13 +3,13 @@ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
3
  const require_components_react_optimized = require('./components/react-optimized.cjs');
4
4
  require('./components/index.cjs');
5
5
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let _power_plant_schema = require("@power-plant/schema");
6
7
  let _powerlines_core_lib_typescript = require("@powerlines/core/lib/typescript");
7
8
  let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
8
9
  let _powerlines_plugin_babel = require("@powerlines/plugin-babel");
9
10
  _powerlines_plugin_babel = require_runtime.__toESM(_powerlines_plugin_babel, 1);
10
11
  let _powerlines_plugin_env = require("@powerlines/plugin-env");
11
12
  _powerlines_plugin_env = require_runtime.__toESM(_powerlines_plugin_env, 1);
12
- let _powerlines_schema = require("@powerlines/schema");
13
13
  let _rolldown_plugin_babel = require("@rolldown/plugin-babel");
14
14
  _rolldown_plugin_babel = require_runtime.__toESM(_rolldown_plugin_babel, 1);
15
15
  let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
@@ -88,7 +88,7 @@ const plugin = (options = {}) => {
88
88
  presets: [babel_plugin_react_compiler.default]
89
89
  }));
90
90
  }
91
- if (this.env?.config && !this.env?.config.schema?.properties?.DISABLE_REACT_COMPILER) (0, _powerlines_schema.addProperty)(this.env?.config, "DISABLE_REACT_COMPILER", {
91
+ if (this.env?.config && !this.env?.config.schema?.properties?.DISABLE_REACT_COMPILER) (0, _power_plant_schema.addProperty)(this.env?.config, "DISABLE_REACT_COMPILER", {
92
92
  name: "DISABLE_REACT_COMPILER",
93
93
  readOnly: true,
94
94
  description: "Disables the React compiler optimizations.",
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ReactOptimizedBuiltin } from "./components/react-optimized.mjs";
2
2
  import "./components/index.mjs";
3
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
4
+ import { addProperty } from "@power-plant/schema";
4
5
  import { isMatchFound } from "@powerlines/core/lib/typescript";
5
6
  import { render } from "@powerlines/plugin-alloy/render";
6
7
  import babel from "@powerlines/plugin-babel";
7
8
  import env from "@powerlines/plugin-env";
8
- import { addProperty } from "@powerlines/schema";
9
9
  import rolldownBabel from "@rolldown/plugin-babel";
10
10
  import { kebabCase } from "@stryke/string-format/kebab-case";
11
11
  import viteReactPlugin from "@vitejs/plugin-react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.683",
3
+ "version": "0.1.685",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for building a React application.",
6
6
  "keywords": ["react", "powerlines", "storm-software", "powerlines-plugin"],
@@ -132,35 +132,37 @@
132
132
  "typings": "dist/index.d.mts",
133
133
  "files": ["dist"],
134
134
  "dependencies": {
135
- "@alloy-js/core": "^0.23.1",
136
- "@alloy-js/json": "^0.23.0",
137
- "@alloy-js/markdown": "^0.23.0",
138
- "@alloy-js/typescript": "^0.23.0",
135
+ "@alloy-js/core": "^0.24.1",
136
+ "@alloy-js/json": "^0.24.0",
137
+ "@alloy-js/markdown": "^0.24.0",
138
+ "@alloy-js/typescript": "^0.24.0",
139
139
  "@babel/core": "^8.0.1",
140
- "@powerlines/core": "^0.48.65",
141
- "@powerlines/plugin-alloy": "^0.26.237",
142
- "@powerlines/plugin-babel": "^0.13.140",
143
- "@powerlines/plugin-env": "^0.16.348",
144
- "@powerlines/plugin-vite": "^0.14.598",
140
+ "@power-plant/alloy-js": "^0.0.20",
141
+ "@power-plant/schema": "^0.0.22",
142
+ "@powerlines/core": "^0.48.67",
143
+ "@powerlines/plugin-alloy": "^0.26.239",
144
+ "@powerlines/plugin-babel": "^0.13.142",
145
+ "@powerlines/plugin-env": "^0.16.350",
146
+ "@powerlines/plugin-vite": "^0.14.600",
145
147
  "@rolldown/plugin-babel": "^0.2.3",
146
- "@storm-software/config-tools": "^1.190.107",
147
- "@stryke/cli": "^0.13.68",
148
- "@stryke/convert": "^0.7.26",
149
- "@stryke/fs": "^0.33.96",
150
- "@stryke/path": "^0.29.22",
151
- "@stryke/string-format": "^0.17.37",
152
- "@vitejs/plugin-react": "^6.0.3",
148
+ "@storm-software/config-tools": "^1.190.109",
149
+ "@stryke/cli": "^0.13.69",
150
+ "@stryke/convert": "^0.7.27",
151
+ "@stryke/fs": "^0.33.97",
152
+ "@stryke/path": "^0.29.23",
153
+ "@stryke/string-format": "^0.17.38",
154
+ "@vitejs/plugin-react": "^6.0.4",
153
155
  "babel-plugin-react-compiler": "^1.0.0",
154
156
  "defu": "^6.1.7",
155
- "powerlines": "^0.47.144"
157
+ "powerlines": "^0.47.146"
156
158
  },
157
159
  "devDependencies": {
158
- "@powerlines/plugin-plugin": "^0.12.556",
160
+ "@powerlines/plugin-plugin": "^0.12.558",
159
161
  "@types/node": "^25.9.5",
160
162
  "@types/react": "^19.2.17",
161
163
  "@types/react-dom": "^19.2.3",
162
- "react": "^19.2.7",
163
- "react-dom": "^19.2.7"
164
+ "react": "^19.2.8",
165
+ "react-dom": "^19.2.8"
164
166
  },
165
167
  "peerDependencies": { "react": ">=19.2.0", "react-dom": ">=19.2.0" },
166
168
  "peerDependenciesMeta": {
@@ -168,5 +170,5 @@
168
170
  "react-dom": { "optional": false }
169
171
  },
170
172
  "publishConfig": { "access": "public" },
171
- "gitHead": "cf8953be1a53bac9ad8c227195a662cbb422d43c"
173
+ "gitHead": "e86d6fab3bd4d2e2f9f6d05df8df7a07d399857e"
172
174
  }