@powerlines/plugin-react 0.1.46 → 0.1.48

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 (45) hide show
  1. package/dist/components/index.cjs +1 -1
  2. package/dist/components/index.mjs +1 -0
  3. package/dist/components/react-optimized.cjs +1 -8
  4. package/dist/components/react-optimized.mjs +1 -0
  5. package/dist/components-ipRi4DSE.mjs +1 -0
  6. package/dist/index.cjs +67 -8
  7. package/dist/index.mjs +64 -0
  8. package/dist/plugin-Gb47Xzf6.mjs +1 -0
  9. package/dist/react-optimized-9J3fdCI2.mjs +1 -0
  10. package/dist/react-optimized-BO9knQDM.cjs +1 -0
  11. package/dist/runtime-BbUj49s9.mjs +1 -0
  12. package/dist/runtime-Bp9G0scd.cjs +0 -0
  13. package/dist/types/index.cjs +1 -1
  14. package/dist/types/index.mjs +1 -0
  15. package/dist/types/plugin.cjs +1 -1
  16. package/dist/types/plugin.mjs +1 -0
  17. package/dist/types/runtime.cjs +1 -1
  18. package/dist/types/runtime.mjs +1 -0
  19. package/dist/types-CwXe_Ycf.mjs +1 -0
  20. package/dist/types-a8gm_IaQ.cjs +0 -0
  21. package/package.json +46 -35
  22. package/dist/chunk-FBBMZ4NC.cjs +0 -7
  23. package/dist/chunk-UCUR73HG.js +0 -7
  24. package/dist/components/index.d.cts +0 -6
  25. package/dist/components/index.d.ts +0 -6
  26. package/dist/components/index.js +0 -1
  27. package/dist/components/react-optimized.d.cts +0 -95
  28. package/dist/components/react-optimized.d.ts +0 -95
  29. package/dist/components/react-optimized.js +0 -8
  30. package/dist/fs-ECFlqnPg.d.cts +0 -378
  31. package/dist/fs-ECFlqnPg.d.ts +0 -378
  32. package/dist/index.d.cts +0 -62
  33. package/dist/index.d.ts +0 -62
  34. package/dist/index.js +0 -8
  35. package/dist/runtime-4U11u3by.d.ts +0 -1938
  36. package/dist/runtime-BW91guC1.d.cts +0 -1938
  37. package/dist/types/index.d.cts +0 -29
  38. package/dist/types/index.d.ts +0 -29
  39. package/dist/types/index.js +0 -1
  40. package/dist/types/plugin.d.cts +0 -1793
  41. package/dist/types/plugin.d.ts +0 -1793
  42. package/dist/types/runtime.d.cts +0 -35
  43. package/dist/types/runtime.d.ts +0 -35
  44. /package/dist/{types/plugin.js → components-BWLXb7a2.cjs} +0 -0
  45. /package/dist/{types/runtime.js → plugin-pBKbb5K9.cjs} +0 -0
@@ -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;
@@ -0,0 +1 @@
1
+ import{t as e}from"../react-optimized-9J3fdCI2.mjs";import"../components-ipRi4DSE.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;
@@ -0,0 +1 @@
1
+ import{t as e}from"../react-optimized-9J3fdCI2.mjs";export{e as ReactOptimizedBuiltin};
@@ -0,0 +1 @@
1
+ export{};