@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.
Files changed (50) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +1 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.d.cts +3 -3
  4. package/dist/index.d.mts +4 -3
  5. package/dist/index.mjs +1 -1
  6. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  7. package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
  8. package/dist/powerlines/src/types/babel.d.mts +2 -0
  9. package/dist/powerlines/src/types/build.d.cts +139 -0
  10. package/dist/powerlines/src/types/build.d.mts +139 -0
  11. package/dist/powerlines/src/types/commands.d.cts +8 -0
  12. package/dist/powerlines/src/types/commands.d.mts +9 -0
  13. package/dist/powerlines/src/types/config.d.cts +345 -0
  14. package/dist/powerlines/src/types/config.d.mts +345 -0
  15. package/dist/powerlines/src/types/context.d.cts +347 -0
  16. package/dist/powerlines/src/types/context.d.mts +349 -0
  17. package/dist/powerlines/src/types/fs.d.cts +458 -0
  18. package/dist/powerlines/src/types/fs.d.mts +458 -0
  19. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  20. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  21. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  22. package/dist/powerlines/src/types/resolved.d.cts +81 -0
  23. package/dist/powerlines/src/types/resolved.d.mts +81 -0
  24. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  25. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  26. package/dist/types/index.cjs +0 -1
  27. package/dist/types/index.d.cts +2 -3
  28. package/dist/types/index.d.mts +2 -3
  29. package/dist/types/index.mjs +1 -1
  30. package/dist/types/module.cjs +0 -1
  31. package/dist/types/module.d.cts +10 -1
  32. package/dist/types/module.d.mts +10 -1
  33. package/dist/types/module.mjs +1 -1
  34. package/dist/types/plugin.cjs +0 -1
  35. package/dist/types/plugin.d.cts +46 -1
  36. package/dist/types/plugin.d.mts +46 -1
  37. package/dist/types/plugin.mjs +1 -1
  38. package/package.json +13 -13
  39. package/dist/index-CA4VvAY_.d.mts +0 -1
  40. package/dist/index-CmCelmEL.d.cts +0 -1
  41. package/dist/module-BaimxfxK.mjs +0 -1
  42. package/dist/module-DTH7_i6X.cjs +0 -0
  43. package/dist/module-DWfSYSuA.d.mts +0 -11
  44. package/dist/module-dJs7y8S5.d.cts +0 -11
  45. package/dist/plugin-9UBBy5D0.d.cts +0 -1678
  46. package/dist/plugin-B-8QVe28.cjs +0 -0
  47. package/dist/plugin-DWSwYl76.d.mts +0 -1678
  48. package/dist/plugin-alze5tBm.mjs +0 -1
  49. package/dist/types-CBTc19th.cjs +0 -0
  50. package/dist/types-CwXe_Ycf.mjs +0 -1
@@ -1,2 +1,47 @@
1
- import { a as __ΩSatoriPluginContext, c as __ΩSatoriPluginUserConfig, i as SatoriPluginUserConfig, n as SatoriPluginOptions, o as __ΩSatoriPluginOptions, r as SatoriPluginResolvedConfig, s as __ΩSatoriPluginResolvedConfig, t as SatoriPluginContext } from "../plugin-DWSwYl76.mjs";
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 };
@@ -1 +1 @@
1
- import"../plugin-alze5tBm.mjs";export{};
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-satori",
3
- "version": "0.1.57",
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.13",
126
- "@stryke/fs": "^0.33.9",
127
- "@stryke/helpers": "^0.9.15",
128
- "@stryke/json": "^0.9.16",
129
- "@stryke/path": "^0.22.0",
130
- "@stryke/type-checks": "^0.4.4",
131
- "@stryke/types": "^0.10.13",
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.9",
134
+ "powerlines": "^0.30.11",
135
135
  "satori": "^0.18.3"
136
136
  },
137
137
  "devDependencies": {
138
- "@powerlines/nx": "^0.10.58",
139
- "@powerlines/plugin-plugin": "^0.12.10",
140
- "@storm-software/config": "^1.134.59",
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": "00fa339177561d404892937d2c24fe2a5b3df4e7"
146
+ "gitHead": "1613e8b201d74470d5c3275e2049374c231287af"
147
147
  }
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export{};
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 };