@powerlines/plugin-react 0.1.132 → 0.1.133
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/dist/components/index.cjs +3 -2
- package/dist/components/index.d.cts +3 -1
- package/dist/components/index.d.mts +4 -1
- package/dist/components/index.mjs +2 -1
- package/dist/components/react-optimized.cjs +2 -48
- package/dist/components/react-optimized.d.cts +2 -13
- package/dist/components/react-optimized.d.mts +3 -13
- package/dist/components/react-optimized.mjs +1 -45
- package/dist/components-BWLXb7a2.cjs +0 -0
- package/dist/{plugin-alloy/src/types/components.d.cts → components-Bs3-ohmM.d.mts} +2 -1
- package/dist/components-D-mbfYAe.mjs +1 -0
- package/dist/index-B8OHl-c_.d.mts +1 -0
- package/dist/index-CFG0_wK4.d.cts +1 -0
- package/dist/index-DNLi60D-.d.mts +1 -0
- package/dist/index-_wQ5ClJU.d.cts +1 -0
- package/dist/index.cjs +11298 -19
- package/dist/index.d.cts +7 -5
- package/dist/index.d.mts +8 -6
- package/dist/index.mjs +11282 -9
- package/dist/{deepkit/schemas/reflection.d.mts → plugin-BaOVS_rV.d.cts} +331 -1
- package/dist/{deepkit/schemas/reflection.d.cts → plugin-D7LpFbdk.d.mts} +389 -59
- package/dist/plugin-jZ9N9Mz-.mjs +1 -0
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/react-optimized-BpFTLlx0.mjs +937 -0
- package/dist/react-optimized-C_OVnrX3.d.cts +105 -0
- package/dist/react-optimized-Kv14o38g.cjs +1078 -0
- package/dist/react-optimized-oMkTiRKU.d.mts +88 -0
- package/dist/resolved-BmaQR2AE.d.mts +1789 -0
- package/dist/resolved-DaJ9lL_Z.d.cts +1788 -0
- package/dist/runtime-BKY6WvHV.mjs +1 -0
- package/dist/{plugin-env/src/types/runtime.d.mts → runtime-BjubXOjV.d.mts} +2 -2
- package/dist/runtime-Bp9G0scd.cjs +0 -0
- package/dist/{plugin-env/src/types/runtime.d.cts → runtime-CAI6R3zb.d.cts} +2 -2
- package/dist/runtime-DWYeFyQG.d.cts +15 -0
- package/dist/runtime-YmyzXCJq.d.mts +15 -0
- package/dist/types/index.cjs +3 -0
- package/dist/types/index.d.cts +5 -2
- package/dist/types/index.d.mts +6 -2
- package/dist/types/index.mjs +4 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +3 -72
- package/dist/types/plugin.d.mts +4 -72
- package/dist/types/plugin.mjs +2 -0
- package/dist/types/runtime.cjs +1 -0
- package/dist/types/runtime.d.cts +3 -14
- package/dist/types/runtime.d.mts +3 -14
- package/dist/types/runtime.mjs +2 -0
- package/dist/types--fVOUYBq.mjs +1 -0
- package/dist/types-a8gm_IaQ.cjs +0 -0
- package/package.json +5 -5
- package/dist/_virtual/rolldown_runtime.cjs +0 -37
- package/dist/_virtual/rolldown_runtime.mjs +0 -29
- package/dist/deepkit/schemas/reflection.cjs +0 -3940
- package/dist/deepkit/schemas/reflection.mjs +0 -3938
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -913
- package/dist/deepkit/src/capnp.mjs +0 -911
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -47
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -46
- package/dist/deepkit/src/reflect-type.cjs +0 -22
- package/dist/deepkit/src/reflect-type.mjs +0 -20
- package/dist/deepkit/src/resolve-reflections.cjs +0 -16
- package/dist/deepkit/src/resolve-reflections.mjs +0 -15
- package/dist/deepkit/src/transformer.cjs +0 -52
- package/dist/deepkit/src/transformer.mjs +0 -49
- package/dist/deepkit/src/transpile.cjs +0 -29
- package/dist/deepkit/src/transpile.mjs +0 -27
- package/dist/deepkit/src/types.d.cts +0 -10
- package/dist/deepkit/src/types.d.mts +0 -10
- package/dist/deepkit/src/utilities.cjs +0 -66
- package/dist/deepkit/src/utilities.mjs +0 -65
- package/dist/deepkit/src/vendor/type-compiler/index.cjs +0 -38
- package/dist/deepkit/src/vendor/type-compiler/index.mjs +0 -19
- package/dist/deepkit/src/vendor/type.cjs +0 -20
- package/dist/deepkit/src/vendor/type.d.cts +0 -7
- package/dist/deepkit/src/vendor/type.d.mts +0 -7
- package/dist/deepkit/src/vendor/type.mjs +0 -11
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
- package/dist/plugin-alloy/src/core/components/source-file.d.cts +0 -23
- package/dist/plugin-alloy/src/core/components/source-file.d.mts +0 -23
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -60
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -54
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -46
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -42
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -16
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -15
- package/dist/plugin-alloy/src/index.cjs +0 -93
- package/dist/plugin-alloy/src/index.mjs +0 -91
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -7
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -9
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -5
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -7
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -17
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
- package/dist/plugin-alloy/src/types/components.d.mts +0 -25
- package/dist/plugin-alloy/src/types/index.d.mts +0 -2
- package/dist/plugin-alloy/src/types/plugin.d.cts +0 -37
- package/dist/plugin-alloy/src/types/plugin.d.mts +0 -37
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +0 -25
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +0 -26
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +0 -27
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +0 -28
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -194
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +0 -14
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +0 -15
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -191
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
- package/dist/plugin-automd/src/index.cjs +0 -101
- package/dist/plugin-automd/src/index.mjs +0 -98
- package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
- package/dist/plugin-automd/src/types/plugin.d.mts +0 -40
- package/dist/plugin-automd/src/types/toc.d.cts +0 -33
- package/dist/plugin-automd/src/types/toc.d.mts +0 -33
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -10
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -9
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -41
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -39
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -23
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -21
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -38
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -35
- package/dist/plugin-babel/src/helpers/options.cjs +0 -50
- package/dist/plugin-babel/src/helpers/options.mjs +0 -47
- package/dist/plugin-babel/src/index.cjs +0 -91
- package/dist/plugin-babel/src/index.mjs +0 -89
- package/dist/plugin-babel/src/types/index.d.mts +0 -1
- package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
- package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
- package/dist/plugin-env/src/babel/index.cjs +0 -1
- package/dist/plugin-env/src/babel/index.mjs +0 -3
- package/dist/plugin-env/src/babel/plugin.cjs +0 -121
- package/dist/plugin-env/src/babel/plugin.mjs +0 -119
- package/dist/plugin-env/src/components/docs.cjs +0 -9
- package/dist/plugin-env/src/components/docs.mjs +0 -11
- package/dist/plugin-env/src/components/env.cjs +0 -575
- package/dist/plugin-env/src/components/env.mjs +0 -572
- package/dist/plugin-env/src/components/index.cjs +0 -2
- package/dist/plugin-env/src/components/index.mjs +0 -4
- package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -22
- package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -21
- package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -55
- package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -54
- package/dist/plugin-env/src/helpers/index.cjs +0 -6
- package/dist/plugin-env/src/helpers/index.mjs +0 -8
- package/dist/plugin-env/src/helpers/load.cjs +0 -83
- package/dist/plugin-env/src/helpers/load.mjs +0 -80
- package/dist/plugin-env/src/helpers/persistence.cjs +0 -200
- package/dist/plugin-env/src/helpers/persistence.mjs +0 -189
- package/dist/plugin-env/src/helpers/reflect.cjs +0 -111
- package/dist/plugin-env/src/helpers/reflect.mjs +0 -103
- package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -24
- package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -23
- package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -2
- package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -4
- package/dist/plugin-env/src/index.cjs +0 -175
- package/dist/plugin-env/src/index.mjs +0 -173
- package/dist/plugin-env/src/types/plugin.d.cts +0 -151
- package/dist/plugin-env/src/types/plugin.d.mts +0 -153
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -102
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -100
- package/dist/powerlines/src/lib/entry.cjs +0 -12
- package/dist/powerlines/src/lib/entry.mjs +0 -14
- package/dist/powerlines/src/lib/logger.cjs +0 -41
- package/dist/powerlines/src/lib/logger.mjs +0 -39
- package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -38
- package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -35
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -35
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -34
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -30
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -29
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
- package/dist/powerlines/src/types/babel.d.cts +0 -22
- package/dist/powerlines/src/types/babel.d.mts +0 -22
- package/dist/powerlines/src/types/build.d.cts +0 -145
- package/dist/powerlines/src/types/build.d.mts +0 -145
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/config.d.cts +0 -380
- package/dist/powerlines/src/types/config.d.mts +0 -381
- package/dist/powerlines/src/types/context.d.cts +0 -414
- package/dist/powerlines/src/types/context.d.mts +0 -416
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/fs.d.mts +0 -486
- package/dist/powerlines/src/types/hooks.d.mts +0 -2
- package/dist/powerlines/src/types/plugin.d.cts +0 -231
- package/dist/powerlines/src/types/plugin.d.mts +0 -231
- package/dist/powerlines/src/types/resolved.d.cts +0 -82
- package/dist/powerlines/src/types/resolved.d.mts +0 -82
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
|
@@ -1,7 +1,26 @@
|
|
|
1
|
+
import { i as UserConfig, n as ResolvedConfig, o as PluginContext, r as BabelUserConfig, t as BabelResolvedConfig } from "./resolved-BmaQR2AE.mjs";
|
|
2
|
+
import { n as SecretsInterface, t as EnvInterface } from "./runtime-BjubXOjV.mjs";
|
|
3
|
+
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
4
|
+
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
5
|
+
import { Children as Children$1, PrintTreeOptions } from "@alloy-js/core";
|
|
6
|
+
import { Config } from "automd";
|
|
7
|
+
import { DotenvParseOutput } from "@stryke/env/types";
|
|
1
8
|
import * as $ from "@stryke/capnp";
|
|
9
|
+
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
10
|
+
import { PluginOptions } from "babel-plugin-react-compiler";
|
|
2
11
|
|
|
12
|
+
//#region ../plugin-babel/src/types/plugin.d.ts
|
|
13
|
+
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
14
|
+
type BabelPluginUserConfig = UserConfig;
|
|
15
|
+
interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
16
|
+
transform: {
|
|
17
|
+
babel: BabelResolvedConfig;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
21
|
+
//#endregion
|
|
3
22
|
//#region ../deepkit/schemas/reflection.d.ts
|
|
4
|
-
declare const ReflectionKind: {
|
|
23
|
+
declare const ReflectionKind$1: {
|
|
5
24
|
readonly NEVER: 0;
|
|
6
25
|
readonly ANY: 1;
|
|
7
26
|
readonly UNKNOWN: 2;
|
|
@@ -39,13 +58,13 @@ declare const ReflectionKind: {
|
|
|
39
58
|
readonly INFER: 34;
|
|
40
59
|
readonly CALL_SIGNATURE: 35;
|
|
41
60
|
};
|
|
42
|
-
type ReflectionKind = (typeof ReflectionKind)[keyof typeof ReflectionKind];
|
|
43
|
-
declare const ReflectionVisibility: {
|
|
61
|
+
type ReflectionKind$1 = (typeof ReflectionKind$1)[keyof typeof ReflectionKind$1];
|
|
62
|
+
declare const ReflectionVisibility$1: {
|
|
44
63
|
readonly PUBLIC: 0;
|
|
45
64
|
readonly PROTECTED: 1;
|
|
46
65
|
readonly PRIVATE: 2;
|
|
47
66
|
};
|
|
48
|
-
type ReflectionVisibility = (typeof ReflectionVisibility)[keyof typeof ReflectionVisibility];
|
|
67
|
+
type ReflectionVisibility$1 = (typeof ReflectionVisibility$1)[keyof typeof ReflectionVisibility$1];
|
|
49
68
|
declare class TagsReflection extends $.Struct {
|
|
50
69
|
static readonly _capnp: {
|
|
51
70
|
displayName: string;
|
|
@@ -183,8 +202,8 @@ declare class SerializedTypeObjectLiteral extends $.Struct {
|
|
|
183
202
|
_hasDecorators(): boolean;
|
|
184
203
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
185
204
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
186
|
-
get kind(): ReflectionKind;
|
|
187
|
-
set kind(value: ReflectionKind);
|
|
205
|
+
get kind(): ReflectionKind$1;
|
|
206
|
+
set kind(value: ReflectionKind$1);
|
|
188
207
|
_adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
|
|
189
208
|
_disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
|
|
190
209
|
get types(): $.List<SerializedTypeReference>;
|
|
@@ -230,8 +249,8 @@ declare class SerializedTypeClassType extends $.Struct {
|
|
|
230
249
|
_hasDecorators(): boolean;
|
|
231
250
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
232
251
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
233
|
-
get kind(): ReflectionKind;
|
|
234
|
-
set kind(value: ReflectionKind);
|
|
252
|
+
get kind(): ReflectionKind$1;
|
|
253
|
+
set kind(value: ReflectionKind$1);
|
|
235
254
|
get name(): string;
|
|
236
255
|
set name(value: string);
|
|
237
256
|
get globalObject(): boolean;
|
|
@@ -298,8 +317,8 @@ declare class SerializedTypeParameter extends $.Struct {
|
|
|
298
317
|
_hasDecorators(): boolean;
|
|
299
318
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
300
319
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
301
|
-
get kind(): ReflectionKind;
|
|
302
|
-
set kind(value: ReflectionKind);
|
|
320
|
+
get kind(): ReflectionKind$1;
|
|
321
|
+
set kind(value: ReflectionKind$1);
|
|
303
322
|
get name(): string;
|
|
304
323
|
set name(value: string);
|
|
305
324
|
_adoptType(value: $.Orphan<SerializedTypeReference>): void;
|
|
@@ -308,8 +327,8 @@ declare class SerializedTypeParameter extends $.Struct {
|
|
|
308
327
|
_hasType(): boolean;
|
|
309
328
|
_initType(): SerializedTypeReference;
|
|
310
329
|
set type(value: SerializedTypeReference);
|
|
311
|
-
get visibility(): ReflectionVisibility;
|
|
312
|
-
set visibility(value: ReflectionVisibility);
|
|
330
|
+
get visibility(): ReflectionVisibility$1;
|
|
331
|
+
set visibility(value: ReflectionVisibility$1);
|
|
313
332
|
get readonly(): boolean;
|
|
314
333
|
set readonly(value: boolean);
|
|
315
334
|
get optional(): boolean;
|
|
@@ -357,8 +376,8 @@ declare class SerializedTypeMethod extends $.Struct {
|
|
|
357
376
|
_hasDecorators(): boolean;
|
|
358
377
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
359
378
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
360
|
-
get visibility(): ReflectionVisibility;
|
|
361
|
-
set visibility(value: ReflectionVisibility);
|
|
379
|
+
get visibility(): ReflectionVisibility$1;
|
|
380
|
+
set visibility(value: ReflectionVisibility$1);
|
|
362
381
|
get abstract(): boolean;
|
|
363
382
|
set abstract(value: boolean);
|
|
364
383
|
get optional(): boolean;
|
|
@@ -371,8 +390,8 @@ declare class SerializedTypeMethod extends $.Struct {
|
|
|
371
390
|
_hasTags(): boolean;
|
|
372
391
|
_initTags(): TagsReflection;
|
|
373
392
|
set tags(value: TagsReflection);
|
|
374
|
-
get kind(): ReflectionKind;
|
|
375
|
-
set kind(value: ReflectionKind);
|
|
393
|
+
get kind(): ReflectionKind$1;
|
|
394
|
+
set kind(value: ReflectionKind$1);
|
|
376
395
|
get name(): string;
|
|
377
396
|
set name(value: string);
|
|
378
397
|
_adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
|
|
@@ -417,8 +436,8 @@ declare class SerializedTypeProperty extends $.Struct {
|
|
|
417
436
|
_hasDecorators(): boolean;
|
|
418
437
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
419
438
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
420
|
-
get visibility(): ReflectionVisibility;
|
|
421
|
-
set visibility(value: ReflectionVisibility);
|
|
439
|
+
get visibility(): ReflectionVisibility$1;
|
|
440
|
+
set visibility(value: ReflectionVisibility$1);
|
|
422
441
|
get abstract(): boolean;
|
|
423
442
|
set abstract(value: boolean);
|
|
424
443
|
get optional(): boolean;
|
|
@@ -431,8 +450,8 @@ declare class SerializedTypeProperty extends $.Struct {
|
|
|
431
450
|
_hasTags(): boolean;
|
|
432
451
|
_initTags(): TagsReflection;
|
|
433
452
|
set tags(value: TagsReflection);
|
|
434
|
-
get kind(): ReflectionKind;
|
|
435
|
-
set kind(value: ReflectionKind);
|
|
453
|
+
get kind(): ReflectionKind$1;
|
|
454
|
+
set kind(value: ReflectionKind$1);
|
|
436
455
|
get name(): string;
|
|
437
456
|
set name(value: string);
|
|
438
457
|
get description(): string;
|
|
@@ -480,8 +499,8 @@ declare class SerializedTypeFunction extends $.Struct {
|
|
|
480
499
|
_hasDecorators(): boolean;
|
|
481
500
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
482
501
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
483
|
-
get visibility(): ReflectionVisibility;
|
|
484
|
-
set visibility(value: ReflectionVisibility);
|
|
502
|
+
get visibility(): ReflectionVisibility$1;
|
|
503
|
+
set visibility(value: ReflectionVisibility$1);
|
|
485
504
|
get abstract(): boolean;
|
|
486
505
|
set abstract(value: boolean);
|
|
487
506
|
get optional(): boolean;
|
|
@@ -494,8 +513,8 @@ declare class SerializedTypeFunction extends $.Struct {
|
|
|
494
513
|
_hasTags(): boolean;
|
|
495
514
|
_initTags(): TagsReflection;
|
|
496
515
|
set tags(value: TagsReflection);
|
|
497
|
-
get kind(): ReflectionKind;
|
|
498
|
-
set kind(value: ReflectionKind);
|
|
516
|
+
get kind(): ReflectionKind$1;
|
|
517
|
+
set kind(value: ReflectionKind$1);
|
|
499
518
|
get name(): string;
|
|
500
519
|
set name(value: string);
|
|
501
520
|
_adoptParameters(value: $.Orphan<$.List<SerializedTypeParameter>>): void;
|
|
@@ -540,8 +559,8 @@ declare class SerializedTypePromise extends $.Struct {
|
|
|
540
559
|
_hasDecorators(): boolean;
|
|
541
560
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
542
561
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
543
|
-
get visibility(): ReflectionVisibility;
|
|
544
|
-
set visibility(value: ReflectionVisibility);
|
|
562
|
+
get visibility(): ReflectionVisibility$1;
|
|
563
|
+
set visibility(value: ReflectionVisibility$1);
|
|
545
564
|
get abstract(): boolean;
|
|
546
565
|
set abstract(value: boolean);
|
|
547
566
|
toString(): string;
|
|
@@ -587,8 +606,8 @@ declare class SerializedTypeEnum extends $.Struct {
|
|
|
587
606
|
_hasDecorators(): boolean;
|
|
588
607
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
589
608
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
590
|
-
get kind(): ReflectionKind;
|
|
591
|
-
set kind(value: ReflectionKind);
|
|
609
|
+
get kind(): ReflectionKind$1;
|
|
610
|
+
set kind(value: ReflectionKind$1);
|
|
592
611
|
_adoptEnumEntries(value: $.Orphan<$.List<SerializedTypeEnumEntry>>): void;
|
|
593
612
|
_disownEnumEntries(): $.Orphan<$.List<SerializedTypeEnumEntry>>;
|
|
594
613
|
get enumEntries(): $.List<SerializedTypeEnumEntry>;
|
|
@@ -644,8 +663,8 @@ declare class SerializedTypeUnion extends $.Struct {
|
|
|
644
663
|
_hasDecorators(): boolean;
|
|
645
664
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
646
665
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
647
|
-
get kind(): ReflectionKind;
|
|
648
|
-
set kind(value: ReflectionKind);
|
|
666
|
+
get kind(): ReflectionKind$1;
|
|
667
|
+
set kind(value: ReflectionKind$1);
|
|
649
668
|
_adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
|
|
650
669
|
_disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
|
|
651
670
|
get types(): $.List<SerializedTypeReference>;
|
|
@@ -683,8 +702,8 @@ declare class SerializedTypeIntersection extends $.Struct {
|
|
|
683
702
|
_hasDecorators(): boolean;
|
|
684
703
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
685
704
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
686
|
-
get kind(): ReflectionKind;
|
|
687
|
-
set kind(value: ReflectionKind);
|
|
705
|
+
get kind(): ReflectionKind$1;
|
|
706
|
+
set kind(value: ReflectionKind$1);
|
|
688
707
|
_adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
|
|
689
708
|
_disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
|
|
690
709
|
get types(): $.List<SerializedTypeReference>;
|
|
@@ -721,8 +740,8 @@ declare class SerializedTypeArray extends $.Struct {
|
|
|
721
740
|
_hasDecorators(): boolean;
|
|
722
741
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
723
742
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
724
|
-
get kind(): ReflectionKind;
|
|
725
|
-
set kind(value: ReflectionKind);
|
|
743
|
+
get kind(): ReflectionKind$1;
|
|
744
|
+
set kind(value: ReflectionKind$1);
|
|
726
745
|
_adoptType(value: $.Orphan<SerializedTypeReference>): void;
|
|
727
746
|
_disownType(): $.Orphan<SerializedTypeReference>;
|
|
728
747
|
get type(): SerializedTypeReference;
|
|
@@ -765,8 +784,8 @@ declare class SerializedTypeIndexSignature extends $.Struct {
|
|
|
765
784
|
_hasDecorators(): boolean;
|
|
766
785
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
767
786
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
768
|
-
get kind(): ReflectionKind;
|
|
769
|
-
set kind(value: ReflectionKind);
|
|
787
|
+
get kind(): ReflectionKind$1;
|
|
788
|
+
set kind(value: ReflectionKind$1);
|
|
770
789
|
_adoptIndex(value: $.Orphan<SerializedTypeReference>): void;
|
|
771
790
|
_disownIndex(): $.Orphan<SerializedTypeReference>;
|
|
772
791
|
get index(): SerializedTypeReference;
|
|
@@ -809,8 +828,8 @@ declare class SerializedTypePropertySignature extends $.Struct {
|
|
|
809
828
|
_hasDecorators(): boolean;
|
|
810
829
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
811
830
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
812
|
-
get kind(): ReflectionKind;
|
|
813
|
-
set kind(value: ReflectionKind);
|
|
831
|
+
get kind(): ReflectionKind$1;
|
|
832
|
+
set kind(value: ReflectionKind$1);
|
|
814
833
|
get name(): string;
|
|
815
834
|
set name(value: string);
|
|
816
835
|
get optional(): boolean;
|
|
@@ -868,8 +887,8 @@ declare class SerializedTypeMethodSignature extends $.Struct {
|
|
|
868
887
|
_hasDecorators(): boolean;
|
|
869
888
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
870
889
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
871
|
-
get kind(): ReflectionKind;
|
|
872
|
-
set kind(value: ReflectionKind);
|
|
890
|
+
get kind(): ReflectionKind$1;
|
|
891
|
+
set kind(value: ReflectionKind$1);
|
|
873
892
|
get name(): string;
|
|
874
893
|
set name(value: string);
|
|
875
894
|
get optional(): boolean;
|
|
@@ -922,8 +941,8 @@ declare class SerializedTypeTypeParameter extends $.Struct {
|
|
|
922
941
|
_hasDecorators(): boolean;
|
|
923
942
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
924
943
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
925
|
-
get kind(): ReflectionKind;
|
|
926
|
-
set kind(value: ReflectionKind);
|
|
944
|
+
get kind(): ReflectionKind$1;
|
|
945
|
+
set kind(value: ReflectionKind$1);
|
|
927
946
|
get name(): string;
|
|
928
947
|
set name(value: string);
|
|
929
948
|
toString(): string;
|
|
@@ -956,8 +975,8 @@ declare class SerializedTypeInfer extends $.Struct {
|
|
|
956
975
|
_hasDecorators(): boolean;
|
|
957
976
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
958
977
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
959
|
-
get kind(): ReflectionKind;
|
|
960
|
-
set kind(value: ReflectionKind);
|
|
978
|
+
get kind(): ReflectionKind$1;
|
|
979
|
+
set kind(value: ReflectionKind$1);
|
|
961
980
|
toString(): string;
|
|
962
981
|
}
|
|
963
982
|
declare class SerializedTypeTupleMember extends $.Struct {
|
|
@@ -988,8 +1007,8 @@ declare class SerializedTypeTupleMember extends $.Struct {
|
|
|
988
1007
|
_hasDecorators(): boolean;
|
|
989
1008
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
990
1009
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
991
|
-
get kind(): ReflectionKind;
|
|
992
|
-
set kind(value: ReflectionKind);
|
|
1010
|
+
get kind(): ReflectionKind$1;
|
|
1011
|
+
set kind(value: ReflectionKind$1);
|
|
993
1012
|
_adoptType(value: $.Orphan<SerializedTypeReference>): void;
|
|
994
1013
|
_disownType(): $.Orphan<SerializedTypeReference>;
|
|
995
1014
|
get type(): SerializedTypeReference;
|
|
@@ -1031,8 +1050,8 @@ declare class SerializedTypeTuple extends $.Struct {
|
|
|
1031
1050
|
_hasDecorators(): boolean;
|
|
1032
1051
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
1033
1052
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
1034
|
-
get kind(): ReflectionKind;
|
|
1035
|
-
set kind(value: ReflectionKind);
|
|
1053
|
+
get kind(): ReflectionKind$1;
|
|
1054
|
+
set kind(value: ReflectionKind$1);
|
|
1036
1055
|
_adoptTypes(value: $.Orphan<$.List<SerializedTypeTupleMember>>): void;
|
|
1037
1056
|
_disownTypes(): $.Orphan<$.List<SerializedTypeTupleMember>>;
|
|
1038
1057
|
get types(): $.List<SerializedTypeTupleMember>;
|
|
@@ -1069,8 +1088,8 @@ declare class SerializedTypeRest extends $.Struct {
|
|
|
1069
1088
|
_hasDecorators(): boolean;
|
|
1070
1089
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
1071
1090
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
1072
|
-
get kind(): ReflectionKind;
|
|
1073
|
-
set kind(value: ReflectionKind);
|
|
1091
|
+
get kind(): ReflectionKind$1;
|
|
1092
|
+
set kind(value: ReflectionKind$1);
|
|
1074
1093
|
_adoptType(value: $.Orphan<SerializedTypeReference>): void;
|
|
1075
1094
|
_disownType(): $.Orphan<SerializedTypeReference>;
|
|
1076
1095
|
get type(): SerializedTypeReference;
|
|
@@ -1107,8 +1126,8 @@ declare class SimpleSerializedType extends $.Struct {
|
|
|
1107
1126
|
_hasDecorators(): boolean;
|
|
1108
1127
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
1109
1128
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
1110
|
-
get kind(): ReflectionKind;
|
|
1111
|
-
set kind(value: ReflectionKind);
|
|
1129
|
+
get kind(): ReflectionKind$1;
|
|
1130
|
+
set kind(value: ReflectionKind$1);
|
|
1112
1131
|
_adoptOrigin(value: $.Orphan<SerializedTypeReference>): void;
|
|
1113
1132
|
_disownOrigin(): $.Orphan<SerializedTypeReference>;
|
|
1114
1133
|
get origin(): SerializedTypeReference;
|
|
@@ -1247,8 +1266,8 @@ declare class SerializedTypeLiteral extends $.Struct {
|
|
|
1247
1266
|
_hasDecorators(): boolean;
|
|
1248
1267
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
1249
1268
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
1250
|
-
get kind(): ReflectionKind;
|
|
1251
|
-
set kind(value: ReflectionKind);
|
|
1269
|
+
get kind(): ReflectionKind$1;
|
|
1270
|
+
set kind(value: ReflectionKind$1);
|
|
1252
1271
|
get literal(): SerializedTypeLiteral_Literal;
|
|
1253
1272
|
_initLiteral(): SerializedTypeLiteral_Literal;
|
|
1254
1273
|
toString(): string;
|
|
@@ -1282,8 +1301,8 @@ declare class SerializedTypeTemplateLiteral extends $.Struct {
|
|
|
1282
1301
|
_hasDecorators(): boolean;
|
|
1283
1302
|
_initDecorators(length: number): $.List<SerializedTypeReference>;
|
|
1284
1303
|
set decorators(value: $.List<SerializedTypeReference>);
|
|
1285
|
-
get kind(): ReflectionKind;
|
|
1286
|
-
set kind(value: ReflectionKind);
|
|
1304
|
+
get kind(): ReflectionKind$1;
|
|
1305
|
+
set kind(value: ReflectionKind$1);
|
|
1287
1306
|
_adoptTypes(value: $.Orphan<$.List<SerializedTypeReference>>): void;
|
|
1288
1307
|
_disownTypes(): $.Orphan<$.List<SerializedTypeReference>>;
|
|
1289
1308
|
get types(): $.List<SerializedTypeReference>;
|
|
@@ -1300,8 +1319,8 @@ declare class SerializedTypeOther extends $.Struct {
|
|
|
1300
1319
|
};
|
|
1301
1320
|
get typeName(): string;
|
|
1302
1321
|
set typeName(value: string);
|
|
1303
|
-
get kind(): ReflectionKind;
|
|
1304
|
-
set kind(value: ReflectionKind);
|
|
1322
|
+
get kind(): ReflectionKind$1;
|
|
1323
|
+
set kind(value: ReflectionKind$1);
|
|
1305
1324
|
toString(): string;
|
|
1306
1325
|
}
|
|
1307
1326
|
declare const SerializedType_Type_Which: {
|
|
@@ -1557,4 +1576,315 @@ declare class SerializedTypes extends $.Struct {
|
|
|
1557
1576
|
toString(): string;
|
|
1558
1577
|
}
|
|
1559
1578
|
//#endregion
|
|
1560
|
-
|
|
1579
|
+
//#region ../deepkit/src/types.d.ts
|
|
1580
|
+
type Reflection<T extends Record<string, any> = Record<string, any>> = ReflectionClass<T> & {
|
|
1581
|
+
dataBuffer?: ArrayBuffer;
|
|
1582
|
+
messageRoot?: SerializedTypes;
|
|
1583
|
+
};
|
|
1584
|
+
//#endregion
|
|
1585
|
+
//#region ../plugin-alloy/src/types/plugin.d.ts
|
|
1586
|
+
type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
1587
|
+
/**
|
|
1588
|
+
* If true, the Alloy framework is used to generate Typescript output files.
|
|
1589
|
+
*
|
|
1590
|
+
* @defaultValue true
|
|
1591
|
+
*/
|
|
1592
|
+
typescript?: boolean;
|
|
1593
|
+
/**
|
|
1594
|
+
* If true, the Alloy framework is used to generate JSON output files.
|
|
1595
|
+
*
|
|
1596
|
+
* @defaultValue false
|
|
1597
|
+
*/
|
|
1598
|
+
json?: boolean;
|
|
1599
|
+
/**
|
|
1600
|
+
* If true, the Alloy framework is used to generate Markdown output files.
|
|
1601
|
+
*
|
|
1602
|
+
* @defaultValue false
|
|
1603
|
+
*/
|
|
1604
|
+
markdown?: boolean;
|
|
1605
|
+
};
|
|
1606
|
+
type AlloyPluginUserConfig = UserConfig & {
|
|
1607
|
+
alloy?: AlloyPluginOptions;
|
|
1608
|
+
};
|
|
1609
|
+
type AlloyPluginResolvedConfig = ResolvedConfig & {
|
|
1610
|
+
alloy: AlloyPluginOptions;
|
|
1611
|
+
};
|
|
1612
|
+
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
1613
|
+
render: <TContext extends AlloyPluginContext>(this: TContext, children: Children$1) => Promise<void>;
|
|
1614
|
+
};
|
|
1615
|
+
//#endregion
|
|
1616
|
+
//#region ../plugin-automd/src/types/toc.d.ts
|
|
1617
|
+
interface TOCOptions {
|
|
1618
|
+
/**
|
|
1619
|
+
* A slugify function to generate slugs for the headings.
|
|
1620
|
+
*/
|
|
1621
|
+
slugify?: (str: string) => string;
|
|
1622
|
+
/**
|
|
1623
|
+
* The maximum depth of headings to include in the TOC.
|
|
1624
|
+
*
|
|
1625
|
+
* @defaultValue 6
|
|
1626
|
+
*/
|
|
1627
|
+
maxDepth?: number;
|
|
1628
|
+
/**
|
|
1629
|
+
* Whether to include the first H1 heading in the TOC.
|
|
1630
|
+
*/
|
|
1631
|
+
firstH1?: boolean;
|
|
1632
|
+
/**
|
|
1633
|
+
* The bullet character to use for list items in the TOC.
|
|
1634
|
+
*
|
|
1635
|
+
* @defaultValue "-"
|
|
1636
|
+
*/
|
|
1637
|
+
bullets?: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* A prefix to add to each heading in the TOC.
|
|
1640
|
+
*/
|
|
1641
|
+
prefix?: string;
|
|
1642
|
+
/**
|
|
1643
|
+
* A filter function to determine which headings to include in the TOC.
|
|
1644
|
+
*/
|
|
1645
|
+
filter?: (str: string, level: number) => boolean;
|
|
1646
|
+
}
|
|
1647
|
+
//#endregion
|
|
1648
|
+
//#region ../plugin-automd/src/types/plugin.d.ts
|
|
1649
|
+
type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
|
|
1650
|
+
/**
|
|
1651
|
+
* Path to the AutoMD configuration file.
|
|
1652
|
+
*
|
|
1653
|
+
* @remarks
|
|
1654
|
+
* If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
|
|
1655
|
+
*/
|
|
1656
|
+
configFile?: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
|
|
1659
|
+
*
|
|
1660
|
+
* @defaultValue true
|
|
1661
|
+
*/
|
|
1662
|
+
allowIssues?: boolean;
|
|
1663
|
+
/**
|
|
1664
|
+
* Alternate prefix strings to use for finding generators
|
|
1665
|
+
*
|
|
1666
|
+
* @remarks
|
|
1667
|
+
* By default, AutoMD looks for generators with the "automd" prefix, so that any `<!-- automd:generator [...args] --> ... <!-- /automd -->` comments will be picked up. If you want to use different prefixes (for example, to avoid conflicts with other tools), you would provide a value like "myPrefix" and AutoMD would also look for `<!-- myPrefix:generator [...args] --> ... <!-- /myPrefix -->` comments.
|
|
1668
|
+
*
|
|
1669
|
+
* @defaultValue ["automd", "powerlines", "\{framework\}"]
|
|
1670
|
+
*/
|
|
1671
|
+
prefix?: string | string[];
|
|
1672
|
+
/**
|
|
1673
|
+
* Table of Contents generator options
|
|
1674
|
+
*
|
|
1675
|
+
* @remarks
|
|
1676
|
+
* If set to `false`, the built-in Table of Contents generator will be disabled.
|
|
1677
|
+
*/
|
|
1678
|
+
toc?: false | TOCOptions;
|
|
1679
|
+
};
|
|
1680
|
+
//#endregion
|
|
1681
|
+
//#region ../plugin-env/src/types/plugin.d.ts
|
|
1682
|
+
type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
|
|
1683
|
+
/**
|
|
1684
|
+
* A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
|
|
1685
|
+
*/
|
|
1686
|
+
types?: TypeDefinitionParameter;
|
|
1687
|
+
/**
|
|
1688
|
+
* A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
|
|
1689
|
+
*/
|
|
1690
|
+
secrets?: TypeDefinitionParameter;
|
|
1691
|
+
/**
|
|
1692
|
+
* An additional prefix (or list of additional prefixes) to apply to the environment variables
|
|
1693
|
+
*
|
|
1694
|
+
* @remarks
|
|
1695
|
+
* By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
|
|
1696
|
+
*/
|
|
1697
|
+
prefix?: string | string[];
|
|
1698
|
+
/**
|
|
1699
|
+
* Should the plugin inject the env variables in the source code with their values?
|
|
1700
|
+
*
|
|
1701
|
+
* @remarks
|
|
1702
|
+
* This option is set to `true` when building an application project.
|
|
1703
|
+
*
|
|
1704
|
+
* @defaultValue false
|
|
1705
|
+
*/
|
|
1706
|
+
inject?: boolean;
|
|
1707
|
+
/**
|
|
1708
|
+
* The default configuration to use when loading environment variables.
|
|
1709
|
+
*
|
|
1710
|
+
* @remarks
|
|
1711
|
+
* This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
|
|
1712
|
+
*/
|
|
1713
|
+
defaultConfig?: Children;
|
|
1714
|
+
/**
|
|
1715
|
+
* Babel configuration options to use when injecting environment variables into the source code.
|
|
1716
|
+
*
|
|
1717
|
+
* @remarks
|
|
1718
|
+
* This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
|
|
1719
|
+
*/
|
|
1720
|
+
babel?: BabelPluginOptions;
|
|
1721
|
+
/**
|
|
1722
|
+
* AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
|
|
1723
|
+
*
|
|
1724
|
+
* @remarks
|
|
1725
|
+
* The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
|
|
1726
|
+
*/
|
|
1727
|
+
automd?: AutoMDPluginOptions;
|
|
1728
|
+
/**
|
|
1729
|
+
* Alloy configuration options to use when injecting environment variables into the source code.
|
|
1730
|
+
*
|
|
1731
|
+
* @remarks
|
|
1732
|
+
* This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
|
|
1733
|
+
*/
|
|
1734
|
+
alloy?: AlloyPluginOptions;
|
|
1735
|
+
};
|
|
1736
|
+
type EnvPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
|
|
1737
|
+
env: EnvPluginOptions;
|
|
1738
|
+
};
|
|
1739
|
+
type EnvPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
1740
|
+
env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
|
|
1741
|
+
/**
|
|
1742
|
+
* The type definition for the expected env variable parameters
|
|
1743
|
+
*
|
|
1744
|
+
* @remarks
|
|
1745
|
+
* This value is parsed from the {@link EnvPluginOptions.types} option.
|
|
1746
|
+
*/
|
|
1747
|
+
types: TypeDefinition;
|
|
1748
|
+
/**
|
|
1749
|
+
* The type definition for the expected env secret parameters
|
|
1750
|
+
*
|
|
1751
|
+
* @remarks
|
|
1752
|
+
* This value is parsed from the {@link EnvPluginOptions.secrets} option.
|
|
1753
|
+
*/
|
|
1754
|
+
secrets: TypeDefinition;
|
|
1755
|
+
/**
|
|
1756
|
+
* Should the plugin inject the env variables in the source code with their values?
|
|
1757
|
+
*
|
|
1758
|
+
* @remarks
|
|
1759
|
+
* This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
|
|
1760
|
+
*/
|
|
1761
|
+
inject: EnvPluginOptions["inject"];
|
|
1762
|
+
/**
|
|
1763
|
+
* The prefix used for environment variables
|
|
1764
|
+
*
|
|
1765
|
+
* @remarks
|
|
1766
|
+
* This value is used to filter environment variables that are loaded from the .env file and the process environment.
|
|
1767
|
+
*/
|
|
1768
|
+
prefix: string[];
|
|
1769
|
+
};
|
|
1770
|
+
};
|
|
1771
|
+
interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
|
|
1772
|
+
env: {
|
|
1773
|
+
/**
|
|
1774
|
+
* The type definitions reflection for the env variables and secrets
|
|
1775
|
+
*
|
|
1776
|
+
* @remarks
|
|
1777
|
+
* These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
|
|
1778
|
+
*/
|
|
1779
|
+
types: {
|
|
1780
|
+
/**
|
|
1781
|
+
* The type definitions for the expected env variables
|
|
1782
|
+
*/
|
|
1783
|
+
env: Reflection;
|
|
1784
|
+
/**
|
|
1785
|
+
* The type definitions for the expected env secrets
|
|
1786
|
+
*/
|
|
1787
|
+
secrets: Reflection;
|
|
1788
|
+
};
|
|
1789
|
+
/**
|
|
1790
|
+
* The current **used** environment variables and secrets reflection
|
|
1791
|
+
*
|
|
1792
|
+
* @remarks
|
|
1793
|
+
* This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
|
|
1794
|
+
*/
|
|
1795
|
+
used: {
|
|
1796
|
+
/**
|
|
1797
|
+
* The current env variables reflection
|
|
1798
|
+
*/
|
|
1799
|
+
env: Reflection<EnvInterface>;
|
|
1800
|
+
/**
|
|
1801
|
+
* The current env secrets reflection
|
|
1802
|
+
*/
|
|
1803
|
+
secrets: Reflection<SecretsInterface>;
|
|
1804
|
+
};
|
|
1805
|
+
/**
|
|
1806
|
+
* The parsed .env configuration object
|
|
1807
|
+
*
|
|
1808
|
+
* @remarks
|
|
1809
|
+
* This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
|
|
1810
|
+
*/
|
|
1811
|
+
parsed: DotenvParseOutput;
|
|
1812
|
+
/**
|
|
1813
|
+
* The injected environment variables and secrets reflection
|
|
1814
|
+
*
|
|
1815
|
+
* @remarks
|
|
1816
|
+
* This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
|
|
1817
|
+
*/
|
|
1818
|
+
injected: Reflection;
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
//#endregion
|
|
1822
|
+
//#region src/types/plugin.d.ts
|
|
1823
|
+
type ReactCompilerOptions = Omit<PluginOptions, "logger">;
|
|
1824
|
+
interface ReactPluginOptions {
|
|
1825
|
+
/**
|
|
1826
|
+
* Control where the JSX factory is imported from.
|
|
1827
|
+
*
|
|
1828
|
+
* @see https://esbuild.github.io/api/#jsx-import-source
|
|
1829
|
+
*
|
|
1830
|
+
* @defaultValue "react"
|
|
1831
|
+
*/
|
|
1832
|
+
jsxImportSource?: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* Control how JSX is transformed.
|
|
1835
|
+
*
|
|
1836
|
+
* @remarks
|
|
1837
|
+
* Skipping React import with classic runtime is not supported from v4
|
|
1838
|
+
*
|
|
1839
|
+
* @defaultValue "automatic"
|
|
1840
|
+
*/
|
|
1841
|
+
jsxRuntime?: "classic" | "automatic";
|
|
1842
|
+
/**
|
|
1843
|
+
* Options provided to the [React Compiler](https://npmjs.com/package/babel-plugin-react-compiler).
|
|
1844
|
+
*
|
|
1845
|
+
* @see https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L55
|
|
1846
|
+
* @see https://react.dev/blog/2025/04/21/react-compiler-rc
|
|
1847
|
+
*
|
|
1848
|
+
* @remarks
|
|
1849
|
+
* Set to `false` to disable the React Compiler. By default, the React Compiler is enabled and target is set to React 19.
|
|
1850
|
+
*/
|
|
1851
|
+
compiler?: ReactCompilerOptions | false;
|
|
1852
|
+
/**
|
|
1853
|
+
* React Fast Refresh runtime URL prefix.
|
|
1854
|
+
*
|
|
1855
|
+
* @remarks
|
|
1856
|
+
* Useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application.
|
|
1857
|
+
*
|
|
1858
|
+
* @example
|
|
1859
|
+
* reactRefreshHost: 'http://localhost:3000'
|
|
1860
|
+
*/
|
|
1861
|
+
reactRefreshHost?: string;
|
|
1862
|
+
/**
|
|
1863
|
+
* Options to pass to the [Babel plugin](https://npmjs.com/package/\@powerlines/plugin-babel).
|
|
1864
|
+
*/
|
|
1865
|
+
babel?: Partial<BabelPluginOptions>;
|
|
1866
|
+
/**
|
|
1867
|
+
* Options to pass to the [Env plugin](https://npmjs.com/package/\@powerlines/plugin-env).
|
|
1868
|
+
*/
|
|
1869
|
+
env?: Partial<Omit<EnvPluginOptions, "babel">>;
|
|
1870
|
+
}
|
|
1871
|
+
type ReactPluginUserConfig = EnvPluginUserConfig & {
|
|
1872
|
+
/**
|
|
1873
|
+
* Options for the React plugin.
|
|
1874
|
+
*/
|
|
1875
|
+
react?: ReactPluginOptions;
|
|
1876
|
+
};
|
|
1877
|
+
type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
|
|
1878
|
+
/**
|
|
1879
|
+
* Options for the React plugin.
|
|
1880
|
+
*/
|
|
1881
|
+
react: ReactPluginOptions;
|
|
1882
|
+
};
|
|
1883
|
+
interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {}
|
|
1884
|
+
declare type __ΩReactCompilerOptions = any[];
|
|
1885
|
+
declare type __ΩReactPluginOptions = any[];
|
|
1886
|
+
declare type __ΩReactPluginUserConfig = any[];
|
|
1887
|
+
declare type __ΩReactPluginResolvedConfig = any[];
|
|
1888
|
+
declare type __ΩReactPluginContext = any[];
|
|
1889
|
+
//#endregion
|
|
1890
|
+
export { ReactPluginUserConfig as a, __ΩReactPluginOptions as c, ReactPluginResolvedConfig as i, __ΩReactPluginResolvedConfig as l, ReactPluginContext as n, __ΩReactCompilerOptions as o, ReactPluginOptions as r, __ΩReactPluginContext as s, ReactCompilerOptions as t, __ΩReactPluginUserConfig as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|