@powerlines/plugin-react 0.1.4 → 0.1.6

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-CkanKuur.cjs';
1
+ import { P as PluginContext, a as Plugin } from './runtime-CXMswNNM.cjs';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { PrintTreeOptions } from '@alloy-js/core';
4
4
  import { ReactPluginContext } from './types/plugin.cjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, a as Plugin } from './runtime-CEq9TX4a.js';
1
+ import { P as PluginContext, a as Plugin } from './runtime-Bb7JS9HT.js';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { PrintTreeOptions } from '@alloy-js/core';
4
4
  import { ReactPluginContext } from './types/plugin.js';
@@ -155,7 +155,7 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
155
155
  logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
156
156
  };
157
157
 
158
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
158
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
159
159
  /**
160
160
  * The order in which the plugin should be applied.
161
161
  */
@@ -163,13 +163,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
163
163
  /**
164
164
  * A filter to determine when the hook should be called.
165
165
  */
166
- filter?: TFilter;
166
+ filter?: Pick<HookFilter, TFilter>;
167
167
  /**
168
168
  * The hook function to be called.
169
169
  */
170
170
  handler: THookFunction;
171
171
  }
172
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
172
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
173
173
  /**
174
174
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
175
175
  */
@@ -155,7 +155,7 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
155
155
  logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
156
156
  };
157
157
 
158
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
158
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
159
159
  /**
160
160
  * The order in which the plugin should be applied.
161
161
  */
@@ -163,13 +163,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
163
163
  /**
164
164
  * A filter to determine when the hook should be called.
165
165
  */
166
- filter?: TFilter;
166
+ filter?: Pick<HookFilter, TFilter>;
167
167
  /**
168
168
  * The hook function to be called.
169
169
  */
170
170
  handler: THookFunction;
171
171
  }
172
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
172
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
173
173
  /**
174
174
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
175
175
  */
@@ -1,6 +1,6 @@
1
1
  export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from './plugin.cjs';
2
2
  export { ReactEnvInterface } from './runtime.cjs';
3
- import '../runtime-CkanKuur.cjs';
3
+ import '../runtime-CXMswNNM.cjs';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/package-json';
6
6
  import 'jiti';
@@ -1,6 +1,6 @@
1
1
  export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from './plugin.js';
2
2
  export { ReactEnvInterface } from './runtime.js';
3
- import '../runtime-CEq9TX4a.js';
3
+ import '../runtime-Bb7JS9HT.js';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/package-json';
6
6
  import 'jiti';
@@ -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-CkanKuur.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-CXMswNNM.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-CEq9TX4a.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-Bb7JS9HT.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-CkanKuur.cjs';
1
+ import { E as EnvInterface } from '../runtime-CXMswNNM.cjs';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/package-json';
4
4
  import 'jiti';
@@ -1,4 +1,4 @@
1
- import { E as EnvInterface } from '../runtime-CEq9TX4a.js';
1
+ import { E as EnvInterface } from '../runtime-Bb7JS9HT.js';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/package-json';
4
4
  import 'jiti';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a React application.",
6
6
  "repository": {
@@ -125,24 +125,24 @@
125
125
  },
126
126
  "dependencies": {
127
127
  "@storm-software/config-tools": "^1.188.19",
128
- "@stryke/cli": "^0.12.4",
129
- "@stryke/convert": "^0.6.0",
130
- "@stryke/fs": "^0.32.10",
131
- "@stryke/path": "^0.18.5",
128
+ "@stryke/cli": "^0.12.5",
129
+ "@stryke/convert": "^0.6.1",
130
+ "@stryke/fs": "^0.32.11",
131
+ "@stryke/path": "^0.19.0",
132
132
  "babel-plugin-react-compiler": "^1.0.0",
133
- "@powerlines/alloy": "^0.11.13",
134
- "@powerlines/plugin-babel": "^0.12.13",
135
- "@powerlines/plugin-env": "^0.13.10",
136
- "@powerlines/plugin-plugin": "^0.11.12",
133
+ "@powerlines/alloy": "^0.11.15",
134
+ "@powerlines/plugin-babel": "^0.12.15",
135
+ "@powerlines/plugin-env": "^0.13.12",
136
+ "@powerlines/plugin-plugin": "^0.11.14",
137
137
  "@vitejs/plugin-react": "^5.1.0",
138
138
  "defu": "^6.1.4",
139
- "powerlines": "^0.19.0"
139
+ "powerlines": "^0.19.2"
140
140
  },
141
141
  "devDependencies": {
142
- "@powerlines/nx": "^0.10.4",
142
+ "@powerlines/nx": "^0.10.6",
143
143
  "@storm-software/tsup": "^0.2.17",
144
144
  "@types/node": "^22.19.0"
145
145
  },
146
146
  "publishConfig": { "access": "public" },
147
- "gitHead": "8ee43c2a7eebce6b221aa572553f4296c87fce76"
147
+ "gitHead": "487dbe9d301ea6c2bba10d3dec1706b64a079452"
148
148
  }