@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/dist/index.d.cts
CHANGED
|
@@ -1,65 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import '@stryke/types/package-json';
|
|
12
|
-
import 'jiti';
|
|
13
|
-
import 'magic-string';
|
|
14
|
-
import 'oxc-parser';
|
|
15
|
-
import 'semver';
|
|
16
|
-
import 'ts-morph';
|
|
17
|
-
import 'undici';
|
|
18
|
-
import 'unplugin';
|
|
19
|
-
import '@babel/core';
|
|
20
|
-
import '@storm-software/build-tools/types';
|
|
21
|
-
import '@storm-software/config-tools/types';
|
|
22
|
-
import '@storm-software/config/types';
|
|
23
|
-
import '@stryke/types/configuration';
|
|
24
|
-
import '@stryke/types/file';
|
|
25
|
-
import 'vite';
|
|
26
|
-
import '@babel/helper-plugin-utils';
|
|
27
|
-
import './fs-ECFlqnPg.cjs';
|
|
28
|
-
import '@stryke/fs/resolve';
|
|
29
|
-
import '@stryke/types/array';
|
|
30
|
-
import '@stryke/types/tsconfig';
|
|
31
|
-
import 'typescript';
|
|
32
|
-
import '@deepkit/type';
|
|
33
|
-
import '@stryke/capnp';
|
|
34
|
-
import '@stryke/env/types';
|
|
35
|
-
import 'babel-plugin-react-compiler';
|
|
1
|
+
import { a as ReactPluginUserConfig, c as __ΩReactPluginOptions, i as ReactPluginResolvedConfig, l as __ΩReactPluginResolvedConfig, n as ReactPluginContext, o as __ΩReactCompilerOptions, r as ReactPluginOptions, s as __ΩReactPluginContext, t as ReactCompilerOptions, u as __ΩReactPluginUserConfig } from "./plugin-C9ZuWdaR.cjs";
|
|
2
|
+
import { o as PluginContext, s as Plugin } from "./resolved-C8Vvfp78.cjs";
|
|
3
|
+
import { n as ReactOptimizedBuiltinProps, r as __ΩReactOptimizedBuiltinProps, t as ReactOptimizedBuiltin } from "./react-optimized-CY318RuO.cjs";
|
|
4
|
+
import "./index-BR1oNnaF.cjs";
|
|
5
|
+
import "./runtime-ag6w6CSq.cjs";
|
|
6
|
+
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "./runtime-e8zq29Og.cjs";
|
|
7
|
+
import "./index-CFG0_wK4.cjs";
|
|
8
|
+
import { PrintTreeOptions } from "@alloy-js/core";
|
|
9
|
+
import { Children as Children$1 } from "@alloy-js/core/jsx-runtime";
|
|
10
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
36
11
|
|
|
12
|
+
//#region ../plugin-plugin/src/types/plugin.d.ts
|
|
37
13
|
type PluginPluginAlloyOptions = Partial<PrintTreeOptions> & {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
14
|
+
/**
|
|
15
|
+
* If true, the Alloy framework is used to generate JSON output files.
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
generatesJson?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* If true, the Alloy framework is used to generate Markdown output files.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
generatesMarkdown?: boolean;
|
|
50
26
|
};
|
|
51
|
-
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../alloy/src/types/plugin.d.ts
|
|
52
29
|
interface AlloyPluginOptions {
|
|
53
|
-
|
|
30
|
+
alloy?: PluginPluginAlloyOptions;
|
|
54
31
|
}
|
|
55
32
|
type AlloyPluginBuilderResult<TContext extends PluginContext = PluginContext> = Plugin<TContext> & {
|
|
56
|
-
|
|
33
|
+
render: (this: TContext) => Children$1;
|
|
57
34
|
};
|
|
58
35
|
type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = <T extends TContext>(options: TOptions) => AlloyPluginBuilderResult<T>;
|
|
59
|
-
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/index.d.ts
|
|
60
38
|
/**
|
|
61
39
|
* A package containing a Powerlines plugin for building a React application.
|
|
62
40
|
*/
|
|
63
41
|
declare const plugin: <T extends ReactPluginContext<ReactPluginResolvedConfig>>(options: Parameters<AlloyPluginBuilder<ReactPluginContext<ReactPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<T>;
|
|
64
|
-
|
|
65
|
-
export { ReactPluginContext, ReactPluginResolvedConfig, plugin as default, plugin };
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ReactCompilerOptions, ReactEnvInterface, ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactEnvInterface, __ΩReactOptimizedBuiltinProps, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig, plugin as default, plugin };
|
|
44
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../plugin-plugin/src/types/plugin.ts","../../alloy/src/types/plugin.ts","../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;KA4BY,wBAAA,GAA2B,QAAQ;;;;;;EAAnC,aAAA,CAAA,EAAA,OAAA;;;;ACLZ;AAIA;EACmB,iBAAA,CAAA,EAAA,OAAA;CAAgB;;;UALlB,kBAAA;UACP;;KAGE,0CACO,gBAAgB,iBAC/B,OAAO;iBACM,aAAa;;KAGlB,oCACO,gBAAgB,4CAEpB,mBAAmB,aAAa,yBAAyB;;;;;;cCM3D,mBAAM,mBAgMlB,yBAAA,YAhMkB,WAAA,mBAAA,mBAAA,yBAAA,SAAA,uBAAA,OAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { o as PluginContext, s as Plugin } from "./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
|
+
import { a as ReactPluginUserConfig, c as __ΩReactPluginOptions, i as ReactPluginResolvedConfig, l as __ΩReactPluginResolvedConfig, n as ReactPluginContext, o as __ΩReactCompilerOptions, r as ReactPluginOptions, s as __ΩReactPluginContext, t as ReactCompilerOptions, u as __ΩReactPluginUserConfig } from "./plugin-sboatcNU.mjs";
|
|
5
|
+
import "./runtime-DRosxZBg.mjs";
|
|
6
|
+
import { n as __ΩReactEnvInterface, t as ReactEnvInterface } from "./runtime-FcS-im6N.mjs";
|
|
7
|
+
import "./index-B8OHl-c_.mjs";
|
|
8
|
+
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
9
|
+
import { PrintTreeOptions } from "@alloy-js/core";
|
|
10
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
11
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
12
|
+
import { UnpluginOptions } from "unplugin";
|
|
13
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
14
|
+
|
|
15
|
+
//#region ../plugin-plugin/src/types/plugin.d.ts
|
|
16
|
+
type PluginPluginAlloyOptions = Partial<PrintTreeOptions> & {
|
|
17
|
+
/**
|
|
18
|
+
* If true, the Alloy framework is used to generate JSON output files.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue false
|
|
21
|
+
*/
|
|
22
|
+
generatesJson?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the Alloy framework is used to generate Markdown output files.
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue false
|
|
27
|
+
*/
|
|
28
|
+
generatesMarkdown?: boolean;
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region ../alloy/src/types/plugin.d.ts
|
|
32
|
+
interface AlloyPluginOptions {
|
|
33
|
+
alloy?: PluginPluginAlloyOptions;
|
|
34
|
+
}
|
|
35
|
+
type AlloyPluginBuilderResult<TContext extends PluginContext = PluginContext> = Plugin<TContext> & {
|
|
36
|
+
render: (this: TContext) => Children;
|
|
37
|
+
};
|
|
38
|
+
type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = <T extends TContext>(options: TOptions) => AlloyPluginBuilderResult<T>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/index.d.ts
|
|
41
|
+
/**
|
|
42
|
+
* A package containing a Powerlines plugin for building a React application.
|
|
43
|
+
*/
|
|
44
|
+
declare const plugin: <T extends ReactPluginContext<ReactPluginResolvedConfig>>(options: Parameters<AlloyPluginBuilder<ReactPluginContext<ReactPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<T>;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { ReactCompilerOptions, ReactEnvInterface, ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactEnvInterface, __ΩReactOptimizedBuiltinProps, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig, plugin as default, plugin };
|
|
47
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../plugin-plugin/src/types/plugin.ts","../../alloy/src/types/plugin.ts","../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;KA4BY,wBAAA,GAA2B,QAAQ;;;;;;;;;AAA/C;;;;ACLA,CAAA;;;UAAiB,kBAAA;UACP;;KAGE,0CACO,gBAAgB,iBAC/B,OAAO;iBACM,aAAa;;KAGlB,oCACO,gBAAgB,4CAEpB,mBAAmB,aAAa,yBAAyB;;;;;;cCM3D,mBAAM,mBAgMlB,yBAAA,YAhMkB,WAAA,mBAAA,mBAAA,yBAAA,SAAA,uBAAA,OAAA"}
|