@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.
Files changed (91) hide show
  1. package/README.md +8 -2
  2. package/dist/chunk-CF6LXmkI.mjs +1 -0
  3. package/dist/components/index.cjs +1 -1
  4. package/dist/components/index.d.cts +4 -6
  5. package/dist/components/index.d.mts +4 -0
  6. package/dist/components/index.mjs +1 -0
  7. package/dist/components/react-optimized.cjs +1 -8
  8. package/dist/components/react-optimized.d.cts +3 -95
  9. package/dist/components/react-optimized.d.mts +3 -0
  10. package/dist/components/react-optimized.mjs +1 -0
  11. package/dist/components-MTvNCZDU.mjs +1 -0
  12. package/dist/index-B8OHl-c_.d.mts +1 -0
  13. package/dist/index-BR1oNnaF.d.cts +1 -0
  14. package/dist/index-CFG0_wK4.d.cts +1 -0
  15. package/dist/index-DNLi60D-.d.mts +1 -0
  16. package/dist/index.cjs +67 -8
  17. package/dist/index.d.cts +32 -53
  18. package/dist/index.d.cts.map +1 -0
  19. package/dist/index.d.mts +47 -0
  20. package/dist/index.d.mts.map +1 -0
  21. package/dist/index.mjs +65 -0
  22. package/dist/index.mjs.map +1 -0
  23. package/dist/plugin-C9ZuWdaR.d.cts +1781 -0
  24. package/dist/plugin-C9ZuWdaR.d.cts.map +1 -0
  25. package/dist/plugin-G4qbpIjB.mjs +1 -0
  26. package/dist/plugin-JgSIR_pC.d.mts +1779 -0
  27. package/dist/plugin-JgSIR_pC.d.mts.map +1 -0
  28. package/dist/plugin-sboatcNU.d.mts +1779 -0
  29. package/dist/plugin-sboatcNU.d.mts.map +1 -0
  30. package/dist/react-optimized-B4-nlx1E.d.mts +103 -0
  31. package/dist/react-optimized-B4-nlx1E.d.mts.map +1 -0
  32. package/dist/react-optimized-BO9knQDM.cjs +1 -0
  33. package/dist/react-optimized-B_P6YxHv.mjs +2 -0
  34. package/dist/react-optimized-B_P6YxHv.mjs.map +1 -0
  35. package/dist/react-optimized-CY318RuO.d.cts +102 -0
  36. package/dist/react-optimized-CY318RuO.d.cts.map +1 -0
  37. package/dist/react-optimized-CbXKgStb.d.mts +103 -0
  38. package/dist/react-optimized-CbXKgStb.d.mts.map +1 -0
  39. package/dist/resolved-C3sdBJbK.d.mts +1680 -0
  40. package/dist/resolved-C3sdBJbK.d.mts.map +1 -0
  41. package/dist/resolved-C8Vvfp78.d.cts +1679 -0
  42. package/dist/resolved-C8Vvfp78.d.cts.map +1 -0
  43. package/dist/resolved-cGosdCt1.d.mts +1681 -0
  44. package/dist/resolved-cGosdCt1.d.mts.map +1 -0
  45. package/dist/runtime-Bp9G0scd.cjs +0 -0
  46. package/dist/runtime-CH2w8aTC.d.mts +16 -0
  47. package/dist/runtime-CH2w8aTC.d.mts.map +1 -0
  48. package/dist/runtime-DEBqRdSt.d.mts +793 -0
  49. package/dist/runtime-DEBqRdSt.d.mts.map +1 -0
  50. package/dist/runtime-DRosxZBg.d.mts +793 -0
  51. package/dist/runtime-DRosxZBg.d.mts.map +1 -0
  52. package/dist/runtime-FcS-im6N.d.mts +16 -0
  53. package/dist/runtime-FcS-im6N.d.mts.map +1 -0
  54. package/dist/runtime-ag6w6CSq.d.cts +793 -0
  55. package/dist/runtime-ag6w6CSq.d.cts.map +1 -0
  56. package/dist/runtime-cDYyRPa0.mjs +1 -0
  57. package/dist/runtime-e8zq29Og.d.cts +16 -0
  58. package/dist/runtime-e8zq29Og.d.cts.map +1 -0
  59. package/dist/types/index.cjs +1 -1
  60. package/dist/types/index.d.cts +6 -32
  61. package/dist/types/index.d.mts +6 -0
  62. package/dist/types/index.mjs +1 -0
  63. package/dist/types/plugin.cjs +1 -1
  64. package/dist/types/plugin.d.cts +4 -1796
  65. package/dist/types/plugin.d.mts +4 -0
  66. package/dist/types/plugin.mjs +1 -0
  67. package/dist/types/runtime.cjs +1 -1
  68. package/dist/types/runtime.d.cts +4 -38
  69. package/dist/types/runtime.d.mts +4 -0
  70. package/dist/types/runtime.mjs +1 -0
  71. package/dist/types-C5ggNT4K.mjs +1 -0
  72. package/dist/types-a8gm_IaQ.cjs +0 -0
  73. package/package.json +47 -36
  74. package/dist/chunk-FBBMZ4NC.cjs +0 -7
  75. package/dist/chunk-UCUR73HG.js +0 -7
  76. package/dist/components/index.d.ts +0 -6
  77. package/dist/components/index.js +0 -1
  78. package/dist/components/react-optimized.d.ts +0 -95
  79. package/dist/components/react-optimized.js +0 -8
  80. package/dist/fs-ECFlqnPg.d.cts +0 -378
  81. package/dist/fs-ECFlqnPg.d.ts +0 -378
  82. package/dist/index.d.ts +0 -65
  83. package/dist/index.js +0 -8
  84. package/dist/runtime-C5ZrfPiA.d.cts +0 -2008
  85. package/dist/runtime-kdZZtKC2.d.ts +0 -2008
  86. package/dist/types/index.d.ts +0 -32
  87. package/dist/types/index.js +0 -1
  88. package/dist/types/plugin.d.ts +0 -1796
  89. package/dist/types/runtime.d.ts +0 -38
  90. /package/dist/{types/plugin.js → components-BWLXb7a2.cjs} +0 -0
  91. /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"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Powerlines" /></div>
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 ⚡<b>Powerlines</b> monorepo. Powerlines packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
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
- 'use strict';var reactOptimized=require('./react-optimized');Object.keys(reactOptimized).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactOptimized[k]}})});
1
+ const e=require(`../react-optimized-BO9knQDM.cjs`);require(`../components-BWLXb7a2.cjs`),exports.ReactOptimizedBuiltin=e.t;
@@ -1,6 +1,4 @@
1
- export { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, __ΩReactOptimizedBuiltinProps } from './react-optimized.cjs';
2
- import '@alloy-js/core';
3
- import '@alloy-js/core/jsx-runtime';
4
- import '../fs-ECFlqnPg.cjs';
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
- 'use strict';var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),jsxRuntime=require('@alloy-js/core/jsx-runtime'),core=require('@alloy-js/core'),typescript=require('@alloy-js/typescript'),context=require('@powerlines/alloy/core/contexts/context'),refkey=require('@powerlines/alloy/helpers/refkey'),builtinFile=require('@powerlines/alloy/typescript/components/builtin-file'),tsdoc=require('@powerlines/alloy/typescript/components/tsdoc'),h=require('defu');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var h__default=/*#__PURE__*/_interopDefault(h);/*****************************************
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 * as _alloy_js_core from '@alloy-js/core';
2
- import { Children as Children$1, SourceFileProps as SourceFileProps$1 } from '@alloy-js/core';
3
- import { Children } from '@alloy-js/core/jsx-runtime';
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 { };