@powerlines/plugin-satori 0.1.57 → 0.1.59
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/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +1 -1
- package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
- package/dist/powerlines/src/types/babel.d.mts +2 -0
- package/dist/powerlines/src/types/build.d.cts +139 -0
- package/dist/powerlines/src/types/build.d.mts +139 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +345 -0
- package/dist/powerlines/src/types/config.d.mts +345 -0
- package/dist/powerlines/src/types/context.d.cts +347 -0
- package/dist/powerlines/src/types/context.d.mts +349 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +232 -0
- package/dist/powerlines/src/types/plugin.d.mts +232 -0
- package/dist/powerlines/src/types/resolved.d.cts +81 -0
- package/dist/powerlines/src/types/resolved.d.mts +81 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/index.mjs +1 -1
- package/dist/types/module.cjs +0 -1
- package/dist/types/module.d.cts +10 -1
- package/dist/types/module.d.mts +10 -1
- package/dist/types/module.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +46 -1
- package/dist/types/plugin.d.mts +46 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +13 -13
- package/dist/index-CA4VvAY_.d.mts +0 -1
- package/dist/index-CmCelmEL.d.cts +0 -1
- package/dist/module-BaimxfxK.mjs +0 -1
- package/dist/module-DTH7_i6X.cjs +0 -0
- package/dist/module-DWfSYSuA.d.mts +0 -11
- package/dist/module-dJs7y8S5.d.cts +0 -11
- package/dist/plugin-9UBBy5D0.d.cts +0 -1678
- package/dist/plugin-B-8QVe28.cjs +0 -0
- package/dist/plugin-DWSwYl76.d.mts +0 -1678
- package/dist/plugin-alze5tBm.mjs +0 -1
- package/dist/types-CBTc19th.cjs +0 -0
- package/dist/types-CwXe_Ycf.mjs +0 -1
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
2
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
4
|
+
import { SatoriOptions } from "satori";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
interface SatoriPluginOptions {
|
|
8
|
+
/**
|
|
9
|
+
* A path or glob pattern (or an array of paths and glob patterns) to files that have a Satori component default export.
|
|
10
|
+
*/
|
|
11
|
+
path: string | string[];
|
|
12
|
+
/**
|
|
13
|
+
* The path for the generated Satori output images
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* By default, it will generate the output files alongside each satori component file.
|
|
17
|
+
*/
|
|
18
|
+
outputPath?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Default Satori options to apply to all components.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* These options can be overridden by individual component modules that export their own options.
|
|
24
|
+
*/
|
|
25
|
+
defaultOptions?: Partial<SatoriOptions>;
|
|
26
|
+
}
|
|
27
|
+
interface SatoriPluginUserConfig extends UserConfig {
|
|
28
|
+
satori?: Omit<SatoriPluginOptions, "defaultOptions"> & Required<Pick<SatoriPluginOptions, "defaultOptions">>;
|
|
29
|
+
}
|
|
30
|
+
interface SatoriPluginResolvedConfig extends ResolvedConfig {
|
|
31
|
+
satori: Omit<SatoriPluginOptions, "defaultOptions"> & Required<Pick<SatoriPluginOptions, "defaultOptions">> & {
|
|
32
|
+
/**
|
|
33
|
+
* An array of resolved input file paths containing Satori components.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* These paths are determined based on the {@link SatoriPluginOptions.path} option provided in the plugin configuration. These are **not** glob patterns, but the actual resolved file paths.
|
|
37
|
+
*/
|
|
38
|
+
inputs: string[];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
type SatoriPluginContext<TResolvedConfig extends SatoriPluginResolvedConfig = SatoriPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
42
|
+
declare type __ΩSatoriPluginOptions = any[];
|
|
43
|
+
declare type __ΩSatoriPluginUserConfig = any[];
|
|
44
|
+
declare type __ΩSatoriPluginResolvedConfig = any[];
|
|
45
|
+
declare type __ΩSatoriPluginContext = any[];
|
|
46
|
+
//#endregion
|
|
2
47
|
export { SatoriPluginContext, SatoriPluginOptions, SatoriPluginResolvedConfig, SatoriPluginUserConfig, __ΩSatoriPluginContext, __ΩSatoriPluginOptions, __ΩSatoriPluginResolvedConfig, __ΩSatoriPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-satori",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to use Satori to generate SVG files from jsx/tsx components.",
|
|
6
6
|
"repository": {
|
|
@@ -122,26 +122,26 @@
|
|
|
122
122
|
"react-dom": { "optional": true }
|
|
123
123
|
},
|
|
124
124
|
"dependencies": {
|
|
125
|
-
"@stryke/convert": "^0.6.
|
|
126
|
-
"@stryke/fs": "^0.33.
|
|
127
|
-
"@stryke/helpers": "^0.9.
|
|
128
|
-
"@stryke/json": "^0.9.
|
|
129
|
-
"@stryke/path": "^0.22.
|
|
130
|
-
"@stryke/type-checks": "^0.
|
|
131
|
-
"@stryke/types": "^0.10.
|
|
125
|
+
"@stryke/convert": "^0.6.24",
|
|
126
|
+
"@stryke/fs": "^0.33.20",
|
|
127
|
+
"@stryke/helpers": "^0.9.26",
|
|
128
|
+
"@stryke/json": "^0.9.27",
|
|
129
|
+
"@stryke/path": "^0.22.11",
|
|
130
|
+
"@stryke/type-checks": "^0.5.9",
|
|
131
|
+
"@stryke/types": "^0.10.23",
|
|
132
132
|
"defu": "^6.1.4",
|
|
133
133
|
"jiti": "^2.6.1",
|
|
134
|
-
"powerlines": "^0.30.
|
|
134
|
+
"powerlines": "^0.30.11",
|
|
135
135
|
"satori": "^0.18.3"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
|
-
"@powerlines/nx": "^0.10.
|
|
139
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
140
|
-
"@storm-software/config": "^1.134.
|
|
138
|
+
"@powerlines/nx": "^0.10.60",
|
|
139
|
+
"@powerlines/plugin-plugin": "^0.12.12",
|
|
140
|
+
"@storm-software/config": "^1.134.60",
|
|
141
141
|
"@types/node": "^24.10.1",
|
|
142
142
|
"@types/react": "^19.2.7",
|
|
143
143
|
"@types/react-dom": "^19.2.3"
|
|
144
144
|
},
|
|
145
145
|
"publishConfig": { "access": "public" },
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "1613e8b201d74470d5c3275e2049374c231287af"
|
|
147
147
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/module-BaimxfxK.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
package/dist/module-DTH7_i6X.cjs
DELETED
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SatoriOptions } from "satori";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/types/module.d.ts
|
|
5
|
-
interface SatoriComponentModule {
|
|
6
|
-
default: ReactNode;
|
|
7
|
-
options?: SatoriOptions;
|
|
8
|
-
}
|
|
9
|
-
declare type __ΩSatoriComponentModule = any[];
|
|
10
|
-
//#endregion
|
|
11
|
-
export { __ΩSatoriComponentModule as n, SatoriComponentModule as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SatoriOptions } from "satori";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/types/module.d.ts
|
|
5
|
-
interface SatoriComponentModule {
|
|
6
|
-
default: ReactNode;
|
|
7
|
-
options?: SatoriOptions;
|
|
8
|
-
}
|
|
9
|
-
declare type __ΩSatoriComponentModule = any[];
|
|
10
|
-
//#endregion
|
|
11
|
-
export { __ΩSatoriComponentModule as n, SatoriComponentModule as t };
|