@powerlines/plugin-react 0.1.49 → 0.1.52
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 +5 -1
- package/dist/index.cjs +1 -67
- package/dist/index.d.cts +4 -44
- package/dist/index.d.mts +4 -47
- package/dist/index.mjs +1 -65
- package/dist/{plugin-C9ZuWdaR.d.cts → plugin-BU0wy__m.d.cts} +3 -5
- package/dist/{plugin-JgSIR_pC.d.mts → plugin-TBSgdu4B.d.mts} +6 -6
- package/dist/plugin.cjs +1 -0
- package/dist/{types/plugin.d.cts → plugin.d.cts} +2 -3
- package/dist/{types/plugin.d.mts → plugin.d.mts} +2 -3
- package/dist/plugin.mjs +1 -0
- package/dist/{runtime-CH2w8aTC.d.mts → runtime-1VVIzvUj.d.mts} +2 -3
- package/dist/{resolved-C8Vvfp78.d.cts → runtime-B2KsRASa.d.cts} +842 -55
- package/dist/{resolved-cGosdCt1.d.mts → runtime-Bn9852yo.d.mts} +844 -59
- package/dist/{runtime-FcS-im6N.d.mts → runtime-Lv-DI-PR.d.cts} +2 -3
- package/dist/runtime.cjs +1 -0
- package/dist/runtime.d.cts +3 -0
- package/dist/runtime.d.mts +3 -0
- package/dist/runtime.mjs +1 -0
- package/package.json +9 -9
- package/dist/chunk-CF6LXmkI.mjs +0 -1
- package/dist/components/index.cjs +0 -1
- package/dist/components/index.d.cts +0 -4
- package/dist/components/index.d.mts +0 -4
- package/dist/components/index.mjs +0 -1
- package/dist/components/react-optimized.cjs +0 -1
- package/dist/components/react-optimized.d.cts +0 -3
- package/dist/components/react-optimized.d.mts +0 -3
- package/dist/components/react-optimized.mjs +0 -1
- package/dist/index-B8OHl-c_.d.mts +0 -1
- package/dist/index-BR1oNnaF.d.cts +0 -1
- package/dist/index-CFG0_wK4.d.cts +0 -1
- package/dist/index-DNLi60D-.d.mts +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/plugin-C9ZuWdaR.d.cts.map +0 -1
- package/dist/plugin-JgSIR_pC.d.mts.map +0 -1
- package/dist/plugin-sboatcNU.d.mts +0 -1779
- package/dist/plugin-sboatcNU.d.mts.map +0 -1
- package/dist/react-optimized-B4-nlx1E.d.mts +0 -103
- package/dist/react-optimized-B4-nlx1E.d.mts.map +0 -1
- package/dist/react-optimized-BO9knQDM.cjs +0 -1
- package/dist/react-optimized-B_P6YxHv.mjs +0 -2
- package/dist/react-optimized-B_P6YxHv.mjs.map +0 -1
- package/dist/react-optimized-CY318RuO.d.cts +0 -102
- package/dist/react-optimized-CY318RuO.d.cts.map +0 -1
- package/dist/react-optimized-CbXKgStb.d.mts +0 -103
- package/dist/react-optimized-CbXKgStb.d.mts.map +0 -1
- package/dist/resolved-C3sdBJbK.d.mts +0 -1680
- package/dist/resolved-C3sdBJbK.d.mts.map +0 -1
- package/dist/resolved-C8Vvfp78.d.cts.map +0 -1
- package/dist/resolved-cGosdCt1.d.mts.map +0 -1
- package/dist/runtime-Bp9G0scd.cjs +0 -0
- package/dist/runtime-CH2w8aTC.d.mts.map +0 -1
- package/dist/runtime-DEBqRdSt.d.mts +0 -793
- package/dist/runtime-DEBqRdSt.d.mts.map +0 -1
- package/dist/runtime-DRosxZBg.d.mts +0 -793
- package/dist/runtime-DRosxZBg.d.mts.map +0 -1
- package/dist/runtime-FcS-im6N.d.mts.map +0 -1
- package/dist/runtime-ag6w6CSq.d.cts +0 -793
- package/dist/runtime-ag6w6CSq.d.cts.map +0 -1
- package/dist/runtime-cDYyRPa0.mjs +0 -1
- package/dist/runtime-e8zq29Og.d.cts +0 -16
- package/dist/runtime-e8zq29Og.d.cts.map +0 -1
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +0 -6
- package/dist/types/index.d.mts +0 -6
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.mjs +0 -1
- package/dist/types/runtime.cjs +0 -1
- package/dist/types/runtime.d.cts +0 -4
- package/dist/types/runtime.d.mts +0 -4
- package/dist/types/runtime.mjs +0 -1
- package/dist/types-C5ggNT4K.mjs +0 -1
- package/dist/types-a8gm_IaQ.cjs +0 -0
- /package/dist/{components-BWLXb7a2.cjs → plugin-DHXHjv16.cjs} +0 -0
- /package/dist/{components-MTvNCZDU.mjs → plugin-DzeYlbKJ.mjs} +0 -0
- /package/dist/{plugin-G4qbpIjB.mjs → runtime-2grn5p5x.mjs} +0 -0
- /package/dist/{plugin-pBKbb5K9.cjs → runtime-D4zTdSwv.cjs} +0 -0
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { c as StoragePreset } from "./resolved-C3sdBJbK.mjs";
|
|
2
|
-
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
4
|
-
import { Children as Children$1, SourceFileProps } from "@alloy-js/core";
|
|
5
|
-
import { SourceFileContext as SourceFileContext$1, TSModuleScope } from "@alloy-js/typescript";
|
|
6
|
-
|
|
7
|
-
//#region ../alloy/src/types/components.d.ts
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A type that represents the props of a component that can have children.
|
|
11
|
-
*/
|
|
12
|
-
interface ComponentProps {
|
|
13
|
-
children?: Children;
|
|
14
|
-
}
|
|
15
|
-
interface TypescriptFileImportItem {
|
|
16
|
-
name: string;
|
|
17
|
-
default?: boolean;
|
|
18
|
-
alias?: string;
|
|
19
|
-
type?: boolean;
|
|
20
|
-
}
|
|
21
|
-
type TypescriptFileImports = Record<string, null | Array<TypescriptFileImportItem | string>>;
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region ../alloy/src/typescript/components/tsdoc.d.ts
|
|
24
|
-
|
|
25
|
-
interface TSDocModuleProps extends ComponentProps {
|
|
26
|
-
/**
|
|
27
|
-
* the prefix for the builtin module name
|
|
28
|
-
*
|
|
29
|
-
* @defaultValue "storm"
|
|
30
|
-
*/
|
|
31
|
-
prefix?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The name of the module
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* import { MyModule } from "storm:my-module";
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
name: Children$1;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region ../alloy/src/core/components/source-file.d.ts
|
|
47
|
-
type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
48
|
-
/**
|
|
49
|
-
* If true, indicates that the file is virtual and should not be written to disk.
|
|
50
|
-
*
|
|
51
|
-
* @defaultValue false
|
|
52
|
-
*/
|
|
53
|
-
preset?: StoragePreset;
|
|
54
|
-
/**
|
|
55
|
-
* The metadata associated with the source file.
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* The values stored in the metadata will be available in the rendering context.
|
|
59
|
-
*/
|
|
60
|
-
meta?: Record<string, any>;
|
|
61
|
-
};
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region ../alloy/src/typescript/components/typescript-file.d.ts
|
|
64
|
-
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
65
|
-
header?: Children$1;
|
|
66
|
-
imports?: TypescriptFileImports;
|
|
67
|
-
export?: boolean | string;
|
|
68
|
-
tsx?: boolean;
|
|
69
|
-
};
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region ../alloy/src/typescript/components/builtin-file.d.ts
|
|
72
|
-
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
73
|
-
/**
|
|
74
|
-
* The runtime module identifier.
|
|
75
|
-
*
|
|
76
|
-
* @remarks
|
|
77
|
-
* This value will be included after the \`storm:\` prefix in the import statement.
|
|
78
|
-
*/
|
|
79
|
-
id: string;
|
|
80
|
-
/**
|
|
81
|
-
* The description for the builtin module.
|
|
82
|
-
*/
|
|
83
|
-
description?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Whether the file is a TSX file.
|
|
86
|
-
*
|
|
87
|
-
* @defaultValue false
|
|
88
|
-
*/
|
|
89
|
-
tsx?: boolean;
|
|
90
|
-
};
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/components/react-optimized.d.ts
|
|
93
|
-
interface ReactOptimizedBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
94
|
-
override?: boolean;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Generates the `react/optimized` builtin module for the Powerlines project.
|
|
98
|
-
*/
|
|
99
|
-
declare function ReactOptimizedBuiltin(props: ReactOptimizedBuiltinProps): _alloy_js_core0.Children;
|
|
100
|
-
declare type __ΩReactOptimizedBuiltinProps = any[];
|
|
101
|
-
//#endregion
|
|
102
|
-
export { ReactOptimizedBuiltinProps as n, __ΩReactOptimizedBuiltinProps as r, ReactOptimizedBuiltin as t };
|
|
103
|
-
//# sourceMappingURL=react-optimized-CbXKgStb.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-optimized-CbXKgStb.d.mts","names":[],"sources":["../../alloy/src/types/components.ts","../../alloy/src/typescript/components/tsdoc.tsx","../../alloy/src/core/components/source-file.tsx","../../alloy/src/typescript/components/typescript-file.tsx","../../alloy/src/typescript/components/builtin-file.tsx","../src/components/react-optimized.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;UA6GiB,cAAA;aACJ;;UAuBI,wBAAA;;;;;;KAOL,qBAAA,GAAwB,sBAE3B,MAAM;;;;UCkSE,gBAAA,SAAyB;;;;;;;;;;;;;;;;;;QAmBlC;;;;KClaI,iBAAA,GAAkB,kBAC5B;;;;AF2EF;AAwBA;EAOY,MAAA,CAAA,EEpGC,aFoGD;EAEG;;;;;;SE9FJ;ADgYX,CAAA;;;KEhYY,mBAAA,GAAsB,KAAK,iCACrC;WACW;YACC;EH0DG,MAAA,CAAA,EAAA,OAAA,GAAc,MAAA;EAwBd,GAAA,CAAA,EAAA,OAAA;AAOjB,CAAA;;;KIhHY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;;;AJgFP;AAwBA;EAOY,EAAA,EAAA,MAAA;EAEG;;;EAF2B,WAAA,CAAA,EAAA,MAAA;;;;ACoS1C;;;;;;UI7YiB,0BAAA,SAAmC,KAClD;;;;;;ALyEe,iBK9DD,qBAAA,CL+DK,KAAA,EK/DwB,0BL+DxB,CAAA,EK/DkD,eAAA,CAAA,QL+DlD;AAuBJ,6CAAwB,GAAA,EAAA"}
|