@powerlines/plugin-react 0.1.39 → 0.1.41

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-DuDyyI3B.cjs';
1
+ import { P as PluginContext, a as Plugin } from './runtime-CZBO1kjI.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-BBoNbrsK.js';
1
+ import { P as PluginContext, a as Plugin } from './runtime-Dp8Gh-lK.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 };
@@ -465,7 +465,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
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
  */
@@ -465,7 +465,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
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
  */
@@ -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-DuDyyI3B.cjs';
3
+ import '../runtime-CZBO1kjI.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-BBoNbrsK.js';
3
+ import '../runtime-Dp8Gh-lK.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-DuDyyI3B.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-CZBO1kjI.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-BBoNbrsK.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-Dp8Gh-lK.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-DuDyyI3B.cjs';
1
+ import { E as EnvInterface } from '../runtime-CZBO1kjI.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-BBoNbrsK.js';
1
+ import { E as EnvInterface } from '../runtime-Dp8Gh-lK.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.39",
3
+ "version": "0.1.41",
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.48",
134
- "@powerlines/plugin-babel": "^0.12.48",
135
- "@powerlines/plugin-env": "^0.13.45",
136
- "@powerlines/plugin-plugin": "^0.11.47",
133
+ "@powerlines/alloy": "^0.11.50",
134
+ "@powerlines/plugin-babel": "^0.12.50",
135
+ "@powerlines/plugin-env": "^0.13.47",
136
+ "@powerlines/plugin-plugin": "^0.11.49",
137
137
  "@vitejs/plugin-react": "^5.1.1",
138
138
  "defu": "^6.1.4",
139
- "powerlines": "^0.25.1"
139
+ "powerlines": "^0.25.3"
140
140
  },
141
141
  "devDependencies": {
142
- "@powerlines/nx": "^0.10.39",
142
+ "@powerlines/nx": "^0.10.41",
143
143
  "@storm-software/tsup": "^0.2.47",
144
144
  "@types/node": "^24.10.1"
145
145
  },
146
146
  "publishConfig": { "access": "public" },
147
- "gitHead": "de1daa466d1524b287e2748490c1e56ab9002b07"
147
+ "gitHead": "2b25269712e4620b459f135da0e43bf8d2961c62"
148
148
  }