@powerlines/plugin-react 0.1.5 → 0.1.7
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{runtime-CEq9TX4a.d.ts → runtime-Bb7JS9HT.d.ts} +3 -3
- package/dist/{runtime-CkanKuur.d.cts → runtime-CXMswNNM.d.cts} +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/runtime.d.cts +1 -1
- package/dist/types/runtime.d.ts +1 -1
- package/package.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin } from './runtime-
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
*/
|
package/dist/types/index.d.cts
CHANGED
|
@@ -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-
|
|
3
|
+
import '../runtime-CXMswNNM.cjs';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/types/package-json';
|
|
6
6
|
import 'jiti';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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-
|
|
3
|
+
import '../runtime-Bb7JS9HT.js';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/types/package-json';
|
|
6
6
|
import 'jiti';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/types/runtime.d.cts
CHANGED
package/dist/types/runtime.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a React application.",
|
|
6
6
|
"repository": {
|
|
@@ -124,25 +124,25 @@
|
|
|
124
124
|
"react-dom": { "optional": false }
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@storm-software/config-tools": "^1.188.
|
|
127
|
+
"@storm-software/config-tools": "^1.188.24",
|
|
128
128
|
"@stryke/cli": "^0.12.5",
|
|
129
129
|
"@stryke/convert": "^0.6.1",
|
|
130
130
|
"@stryke/fs": "^0.32.11",
|
|
131
131
|
"@stryke/path": "^0.19.0",
|
|
132
132
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
133
|
-
"@powerlines/alloy": "^0.11.
|
|
134
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
135
|
-
"@powerlines/plugin-env": "^0.13.
|
|
136
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
133
|
+
"@powerlines/alloy": "^0.11.16",
|
|
134
|
+
"@powerlines/plugin-babel": "^0.12.16",
|
|
135
|
+
"@powerlines/plugin-env": "^0.13.13",
|
|
136
|
+
"@powerlines/plugin-plugin": "^0.11.15",
|
|
137
137
|
"@vitejs/plugin-react": "^5.1.0",
|
|
138
138
|
"defu": "^6.1.4",
|
|
139
|
-
"powerlines": "^0.19.
|
|
139
|
+
"powerlines": "^0.19.3"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
|
-
"@powerlines/nx": "^0.10.
|
|
143
|
-
"@storm-software/tsup": "^0.2.
|
|
142
|
+
"@powerlines/nx": "^0.10.7",
|
|
143
|
+
"@storm-software/tsup": "^0.2.22",
|
|
144
144
|
"@types/node": "^22.19.0"
|
|
145
145
|
},
|
|
146
146
|
"publishConfig": { "access": "public" },
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "c7e78fdbae62e7c92a460d1303c7a8ab37df196b"
|
|
148
148
|
}
|