@powerlines/plugin-react 0.1.47 → 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.cjs +1 -1
- package/dist/components/index.d.cts +4 -6
- package/dist/components/index.d.mts +4 -0
- package/dist/components/index.mjs +1 -0
- package/dist/components/react-optimized.cjs +1 -8
- package/dist/components/react-optimized.d.cts +3 -95
- package/dist/components/react-optimized.d.mts +3 -0
- package/dist/components/react-optimized.mjs +1 -0
- package/dist/components-MTvNCZDU.mjs +1 -0
- 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.cjs +67 -8
- package/dist/index.d.cts +32 -53
- 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 +65 -0
- 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-G4qbpIjB.mjs +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-BO9knQDM.cjs +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-Bp9G0scd.cjs +0 -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-cDYyRPa0.mjs +1 -0
- package/dist/runtime-e8zq29Og.d.cts +16 -0
- package/dist/runtime-e8zq29Og.d.cts.map +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +6 -32
- package/dist/types/index.d.mts +6 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.d.cts +4 -1796
- package/dist/types/plugin.d.mts +4 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types/runtime.cjs +1 -1
- package/dist/types/runtime.d.cts +4 -38
- package/dist/types/runtime.d.mts +4 -0
- package/dist/types/runtime.mjs +1 -0
- package/dist/types-C5ggNT4K.mjs +1 -0
- package/dist/types-a8gm_IaQ.cjs +0 -0
- package/package.json +47 -36
- package/dist/chunk-FBBMZ4NC.cjs +0 -7
- package/dist/chunk-UCUR73HG.js +0 -7
- package/dist/components/index.d.ts +0 -6
- package/dist/components/index.js +0 -1
- package/dist/components/react-optimized.d.ts +0 -95
- package/dist/components/react-optimized.js +0 -8
- package/dist/fs-ECFlqnPg.d.cts +0 -378
- package/dist/fs-ECFlqnPg.d.ts +0 -378
- package/dist/index.d.ts +0 -65
- package/dist/index.js +0 -8
- package/dist/runtime-C5ZrfPiA.d.cts +0 -2008
- package/dist/runtime-kdZZtKC2.d.ts +0 -2008
- package/dist/types/index.d.ts +0 -32
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.ts +0 -1796
- package/dist/types/runtime.d.ts +0 -38
- /package/dist/{types/plugin.js → components-BWLXb7a2.cjs} +0 -0
- /package/dist/{types/runtime.js → plugin-pBKbb5K9.cjs} +0 -0
package/README.md
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"
|
|
6
|
+
<div align="center">
|
|
7
|
+
<picture>
|
|
8
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/powerlines/banner-1280x640-dark-optimized.gif">
|
|
9
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/powerlines/banner-1280x640-light-optimized.gif">
|
|
10
|
+
<img src="https://public.storm-cdn.com/powerlines/banner-1280x640-dark-optimized.gif" width="100%" alt="Powerlines" />
|
|
11
|
+
</picture>
|
|
12
|
+
</div>
|
|
7
13
|
<br />
|
|
8
14
|
|
|
9
15
|
<div align="center">
|
|
@@ -16,7 +22,7 @@
|
|
|
16
22
|
</div>
|
|
17
23
|
|
|
18
24
|
<br />
|
|
19
|
-
This package is part of the
|
|
25
|
+
This package is part of the 🔌 <b>Powerlines</b> monorepo. Powerlines packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
|
|
20
26
|
<br />
|
|
21
27
|
|
|
22
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!r.call(i,d)&&d!==o&&e(i,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return i},a=(t,n,r,a)=>{a&&(e(t,Symbol.toStringTag,{value:`Module`}),r&&e(r,Symbol.toStringTag,{value:`Module`})),i(t,n,`default`),r&&i(r,n,`default`)};export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`../react-optimized-BO9knQDM.cjs`);require(`../components-BWLXb7a2.cjs`),exports.ReactOptimizedBuiltin=e.t;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import '@stryke/fs/resolve';
|
|
6
|
-
import '@stryke/types/base';
|
|
1
|
+
import "../resolved-C8Vvfp78.cjs";
|
|
2
|
+
import { n as ReactOptimizedBuiltinProps, r as __ΩReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-CY318RuO.cjs";
|
|
3
|
+
import "../index-BR1oNnaF.cjs";
|
|
4
|
+
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../resolved-C3sdBJbK.mjs";
|
|
2
|
+
import { n as ReactOptimizedBuiltinProps, r as __ΩReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-CbXKgStb.mjs";
|
|
3
|
+
import "../index-DNLi60D-.mjs";
|
|
4
|
+
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"../react-optimized-B_P6YxHv.mjs";import"../components-MTvNCZDU.mjs";export{e as ReactOptimizedBuiltin};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
* ⚡ Built by Storm Software
|
|
4
|
-
*
|
|
5
|
-
*****************************************/
|
|
6
|
-
|
|
7
|
-
const v=refkey.refkey("isOptimizationEnabled");function T(n){const[{override:t},i]=core.splitProps(n,["override"]),c=context.usePowerlines();return jsxRuntime.createComponent(builtinFile.BuiltinFile,jsxRuntime.mergeProps(i,{id:"react/optimized",description:"A built-in module to provide access to environment configuration to determine React optimizations.",get imports(){return h__default.default({[`${c?.config.output.builtinPrefix}:env`]:["env","isDevelopment"]},i.imports??{})},get children(){return [jsxRuntime.createComponent(tsdoc.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 [jsxRuntime.createComponent(tsdoc.TSDocLink,{children:"https://react.dev/reference/react-compiler/gating"}),jsxRuntime.createComponent(tsdoc.TSDocReturns,{children:"A boolean indicating if the React compiler's optimizations should be used."})]}}),jsxRuntime.createComponent(typescript.FunctionDeclaration,{refkey:v,async:false,export:true,name:"isOptimizationEnabled",returnType:"boolean",children:t!==void 0?core.code`return ${t};`:core.code`return !env.DISABLE_REACT_COMPILER && !isDevelopment; `})]}}))}chunkFBBMZ4NC_cjs.a(T,"ReactOptimizedBuiltin");
|
|
8
|
-
exports.ReactOptimizedBuiltin=T;
|
|
1
|
+
const e=require(`../react-optimized-BO9knQDM.cjs`);exports.ReactOptimizedBuiltin=e.t;
|
|
@@ -1,95 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { a as StoragePreset } from '../fs-ECFlqnPg.cjs';
|
|
5
|
-
import '@stryke/fs/resolve';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A type that represents the props of a component that can have children.
|
|
10
|
-
*/
|
|
11
|
-
interface ComponentProps {
|
|
12
|
-
children?: Children;
|
|
13
|
-
}
|
|
14
|
-
interface TypescriptFileImportItem {
|
|
15
|
-
name: string;
|
|
16
|
-
default?: boolean;
|
|
17
|
-
alias?: string;
|
|
18
|
-
type?: boolean;
|
|
19
|
-
}
|
|
20
|
-
type TypescriptFileImports = Record<string, null | Array<TypescriptFileImportItem | string>>;
|
|
21
|
-
|
|
22
|
-
interface TSDocModuleProps extends ComponentProps {
|
|
23
|
-
/**
|
|
24
|
-
* the prefix for the builtin module name
|
|
25
|
-
*
|
|
26
|
-
* @defaultValue "storm"
|
|
27
|
-
*/
|
|
28
|
-
prefix?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The name of the module
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* import { MyModule } from "storm:my-module";
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
name: Children$1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
44
|
-
/**
|
|
45
|
-
* If true, indicates that the file is virtual and should not be written to disk.
|
|
46
|
-
*
|
|
47
|
-
* @defaultValue false
|
|
48
|
-
*/
|
|
49
|
-
preset?: StoragePreset;
|
|
50
|
-
/**
|
|
51
|
-
* The metadata associated with the source file.
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* The values stored in the metadata will be available in the rendering context.
|
|
55
|
-
*/
|
|
56
|
-
meta?: Record<string, any>;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
type TypescriptFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps & {
|
|
60
|
-
header?: Children$1;
|
|
61
|
-
imports?: TypescriptFileImports;
|
|
62
|
-
export?: boolean | string;
|
|
63
|
-
tsx?: boolean;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
67
|
-
/**
|
|
68
|
-
* The runtime module identifier.
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* This value will be included after the \`storm:\` prefix in the import statement.
|
|
72
|
-
*/
|
|
73
|
-
id: string;
|
|
74
|
-
/**
|
|
75
|
-
* The description for the builtin module.
|
|
76
|
-
*/
|
|
77
|
-
description?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Whether the file is a TSX file.
|
|
80
|
-
*
|
|
81
|
-
* @defaultValue false
|
|
82
|
-
*/
|
|
83
|
-
tsx?: boolean;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
87
|
-
override?: boolean;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Generates the `react/optimized` builtin module for the Powerlines project.
|
|
91
|
-
*/
|
|
92
|
-
declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): _alloy_js_core.Children;
|
|
93
|
-
declare type __ΩReactOptimizedBuiltinProps = any[];
|
|
94
|
-
|
|
95
|
-
export { ReactOptimizedBuiltin, type ReactOptimizedBuiltinProps, type __ΩReactOptimizedBuiltinProps };
|
|
1
|
+
import "../resolved-C8Vvfp78.cjs";
|
|
2
|
+
import { n as ReactOptimizedBuiltinProps, r as __ΩReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-CY318RuO.cjs";
|
|
3
|
+
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "../resolved-C3sdBJbK.mjs";
|
|
2
|
+
import { n as ReactOptimizedBuiltinProps, r as __ΩReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "../react-optimized-CbXKgStb.mjs";
|
|
3
|
+
export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"../react-optimized-B_P6YxHv.mjs";export{e as ReactOptimizedBuiltin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|