@powerlines/plugin-react 0.1.683 → 0.1.684
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)(
|
|
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)(
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.684",
|
|
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"],
|
|
@@ -137,30 +137,31 @@
|
|
|
137
137
|
"@alloy-js/markdown": "^0.23.0",
|
|
138
138
|
"@alloy-js/typescript": "^0.23.0",
|
|
139
139
|
"@babel/core": "^8.0.1",
|
|
140
|
-
"@
|
|
141
|
-
"@powerlines/
|
|
142
|
-
"@powerlines/plugin-
|
|
143
|
-
"@powerlines/plugin-
|
|
144
|
-
"@powerlines/plugin-
|
|
140
|
+
"@power-plant/alloy-js": "^0.0.20",
|
|
141
|
+
"@powerlines/core": "^0.48.66",
|
|
142
|
+
"@powerlines/plugin-alloy": "^0.26.238",
|
|
143
|
+
"@powerlines/plugin-babel": "^0.13.141",
|
|
144
|
+
"@powerlines/plugin-env": "^0.16.349",
|
|
145
|
+
"@powerlines/plugin-vite": "^0.14.599",
|
|
145
146
|
"@rolldown/plugin-babel": "^0.2.3",
|
|
146
|
-
"@storm-software/config-tools": "^1.190.
|
|
147
|
-
"@stryke/cli": "^0.13.
|
|
148
|
-
"@stryke/convert": "^0.7.
|
|
149
|
-
"@stryke/fs": "^0.33.
|
|
150
|
-
"@stryke/path": "^0.29.
|
|
151
|
-
"@stryke/string-format": "^0.17.
|
|
152
|
-
"@vitejs/plugin-react": "^6.0.
|
|
147
|
+
"@storm-software/config-tools": "^1.190.109",
|
|
148
|
+
"@stryke/cli": "^0.13.69",
|
|
149
|
+
"@stryke/convert": "^0.7.27",
|
|
150
|
+
"@stryke/fs": "^0.33.97",
|
|
151
|
+
"@stryke/path": "^0.29.23",
|
|
152
|
+
"@stryke/string-format": "^0.17.38",
|
|
153
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
153
154
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
154
155
|
"defu": "^6.1.7",
|
|
155
|
-
"powerlines": "^0.47.
|
|
156
|
+
"powerlines": "^0.47.145"
|
|
156
157
|
},
|
|
157
158
|
"devDependencies": {
|
|
158
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
159
|
+
"@powerlines/plugin-plugin": "^0.12.557",
|
|
159
160
|
"@types/node": "^25.9.5",
|
|
160
161
|
"@types/react": "^19.2.17",
|
|
161
162
|
"@types/react-dom": "^19.2.3",
|
|
162
|
-
"react": "^19.2.
|
|
163
|
-
"react-dom": "^19.2.
|
|
163
|
+
"react": "^19.2.8",
|
|
164
|
+
"react-dom": "^19.2.8"
|
|
164
165
|
},
|
|
165
166
|
"peerDependencies": { "react": ">=19.2.0", "react-dom": ">=19.2.0" },
|
|
166
167
|
"peerDependenciesMeta": {
|
|
@@ -168,5 +169,5 @@
|
|
|
168
169
|
"react-dom": { "optional": false }
|
|
169
170
|
},
|
|
170
171
|
"publishConfig": { "access": "public" },
|
|
171
|
-
"gitHead": "
|
|
172
|
+
"gitHead": "d81170b608c0b80e7726e129c3edd1b7b6ca2605"
|
|
172
173
|
}
|