@powerlines/plugin-react 0.1.40 → 0.1.42

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/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, a as Plugin } from './runtime-C4GhD-2M.cjs';
1
+ import { P as PluginContext, a as Plugin } from './runtime-B3ESv9Lo.cjs';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { PrintTreeOptions } from '@alloy-js/core';
4
4
  import { ReactPluginContext, ReactPluginResolvedConfig } from './types/plugin.cjs';
@@ -52,11 +52,11 @@ interface AlloyPluginOptions {
52
52
  type AlloyPluginBuilderResult<TContext extends PluginContext = PluginContext> = Plugin<TContext> & {
53
53
  render: (this: TContext) => Children;
54
54
  };
55
- type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => AlloyPluginBuilderResult<TContext>;
55
+ type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = <T extends TContext>(options: TOptions) => AlloyPluginBuilderResult<T>;
56
56
 
57
57
  /**
58
58
  * A package containing a Powerlines plugin for building a React application.
59
59
  */
60
- declare const plugin: (options: Parameters<AlloyPluginBuilder<ReactPluginContext<ReactPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<ReactPluginContext<ReactPluginResolvedConfig>>;
60
+ declare const plugin: <T extends ReactPluginContext<ReactPluginResolvedConfig>>(options: Parameters<AlloyPluginBuilder<ReactPluginContext<ReactPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<T>;
61
61
 
62
62
  export { ReactPluginContext, ReactPluginResolvedConfig, plugin as default, plugin };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, a as Plugin } from './runtime-Em3Zwtrf.js';
1
+ import { P as PluginContext, a as Plugin } from './runtime-BfSWB-HY.js';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { PrintTreeOptions } from '@alloy-js/core';
4
4
  import { ReactPluginContext, ReactPluginResolvedConfig } from './types/plugin.js';
@@ -52,11 +52,11 @@ interface AlloyPluginOptions {
52
52
  type AlloyPluginBuilderResult<TContext extends PluginContext = PluginContext> = Plugin<TContext> & {
53
53
  render: (this: TContext) => Children;
54
54
  };
55
- type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => AlloyPluginBuilderResult<TContext>;
55
+ type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = <T extends TContext>(options: TOptions) => AlloyPluginBuilderResult<T>;
56
56
 
57
57
  /**
58
58
  * A package containing a Powerlines plugin for building a React application.
59
59
  */
60
- declare const plugin: (options: Parameters<AlloyPluginBuilder<ReactPluginContext<ReactPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<ReactPluginContext<ReactPluginResolvedConfig>>;
60
+ declare const plugin: <T extends ReactPluginContext<ReactPluginResolvedConfig>>(options: Parameters<AlloyPluginBuilder<ReactPluginContext<ReactPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<T>;
61
61
 
62
62
  export { ReactPluginContext, ReactPluginResolvedConfig, plugin as default, plugin };
@@ -434,7 +434,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
434
434
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
435
435
  [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
436
436
  };
437
- interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
437
+ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
438
438
  /**
439
439
  * The name of the plugin, for use in deduplication, error messages and logs.
440
440
  */
@@ -465,7 +465,7 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
465
465
  * @param other - The other plugin to compare against.
466
466
  * @returns `true` if the two plugins are the same, `false` otherwise.
467
467
  */
468
- dedupe?: false | ((other: Plugin<TContext>) => boolean);
468
+ dedupe?: false | ((other: Plugin<any>) => boolean);
469
469
  /**
470
470
  * A list of pre-requisite plugins that must be loaded before this plugin can be used.
471
471
  */
@@ -1159,14 +1159,6 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1159
1159
  * @showCategories
1160
1160
  */
1161
1161
  interface EnvInterface {
1162
- /**
1163
- * An indicator that specifies the application is running in the local development environment.
1164
- *
1165
- * @hidden
1166
- * @readonly
1167
- * @category node
1168
- */
1169
- readonly POWERLINES_LOCAL: boolean;
1170
1162
  /**
1171
1163
  * The name of the application.
1172
1164
  *
@@ -434,7 +434,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
434
434
  type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
435
435
  [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
436
436
  };
437
- interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
437
+ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
438
438
  /**
439
439
  * The name of the plugin, for use in deduplication, error messages and logs.
440
440
  */
@@ -465,7 +465,7 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
465
465
  * @param other - The other plugin to compare against.
466
466
  * @returns `true` if the two plugins are the same, `false` otherwise.
467
467
  */
468
- dedupe?: false | ((other: Plugin<TContext>) => boolean);
468
+ dedupe?: false | ((other: Plugin<any>) => boolean);
469
469
  /**
470
470
  * A list of pre-requisite plugins that must be loaded before this plugin can be used.
471
471
  */
@@ -1159,14 +1159,6 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1159
1159
  * @showCategories
1160
1160
  */
1161
1161
  interface EnvInterface {
1162
- /**
1163
- * An indicator that specifies the application is running in the local development environment.
1164
- *
1165
- * @hidden
1166
- * @readonly
1167
- * @category node
1168
- */
1169
- readonly POWERLINES_LOCAL: boolean;
1170
1162
  /**
1171
1163
  * The name of the application.
1172
1164
  *
@@ -1,6 +1,6 @@
1
1
  export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig } from './plugin.cjs';
2
2
  export { ReactEnvInterface, __ΩReactEnvInterface } from './runtime.cjs';
3
- import '../runtime-C4GhD-2M.cjs';
3
+ import '../runtime-B3ESv9Lo.cjs';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/base';
6
6
  import '@stryke/types/package-json';
@@ -1,6 +1,6 @@
1
1
  export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig } from './plugin.js';
2
2
  export { ReactEnvInterface, __ΩReactEnvInterface } from './runtime.js';
3
- import '../runtime-Em3Zwtrf.js';
3
+ import '../runtime-BfSWB-HY.js';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/base';
6
6
  import '@stryke/types/package-json';
@@ -1,4 +1,4 @@
1
- import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-C4GhD-2M.cjs';
1
+ import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-B3ESv9Lo.cjs';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { ReflectionClass } from '@deepkit/type';
4
4
  import * as $ from '@stryke/capnp';
@@ -1,4 +1,4 @@
1
- import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-Em3Zwtrf.js';
1
+ import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-BfSWB-HY.js';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { ReflectionClass } from '@deepkit/type';
4
4
  import * as $ from '@stryke/capnp';
@@ -1,4 +1,4 @@
1
- import { E as EnvInterface } from '../runtime-C4GhD-2M.cjs';
1
+ import { E as EnvInterface } from '../runtime-B3ESv9Lo.cjs';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/package-json';
@@ -1,4 +1,4 @@
1
- import { E as EnvInterface } from '../runtime-Em3Zwtrf.js';
1
+ import { E as EnvInterface } from '../runtime-BfSWB-HY.js';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/package-json';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a React application.",
6
6
  "repository": {
@@ -130,19 +130,19 @@
130
130
  "@stryke/fs": "^0.33.4",
131
131
  "@stryke/path": "^0.21.2",
132
132
  "babel-plugin-react-compiler": "^1.0.0",
133
- "@powerlines/alloy": "^0.11.49",
134
- "@powerlines/plugin-babel": "^0.12.49",
135
- "@powerlines/plugin-env": "^0.13.46",
136
- "@powerlines/plugin-plugin": "^0.11.48",
133
+ "@powerlines/alloy": "^0.11.51",
134
+ "@powerlines/plugin-babel": "^0.12.51",
135
+ "@powerlines/plugin-env": "^0.13.48",
136
+ "@powerlines/plugin-plugin": "^0.11.50",
137
137
  "@vitejs/plugin-react": "^5.1.1",
138
138
  "defu": "^6.1.4",
139
- "powerlines": "^0.25.2"
139
+ "powerlines": "^0.25.4"
140
140
  },
141
141
  "devDependencies": {
142
- "@powerlines/nx": "^0.10.40",
142
+ "@powerlines/nx": "^0.10.42",
143
143
  "@storm-software/tsup": "^0.2.47",
144
144
  "@types/node": "^24.10.1"
145
145
  },
146
146
  "publishConfig": { "access": "public" },
147
- "gitHead": "e5c7481779e32bd9810613c299e775bc033c9eac"
147
+ "gitHead": "1b998051f406f2465d5fbfd11594a41e170c0467"
148
148
  }