@powerlines/plugin-satori 0.1.197 → 0.1.199

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 (21) hide show
  1. package/dist/index.cjs +1 -2
  2. package/dist/index.d.mts +1 -1
  3. package/dist/index.mjs +1 -2
  4. package/dist/powerlines/src/types/config.d.cts +3 -2
  5. package/dist/{packages/powerlines → powerlines}/src/types/config.d.mts +3 -2
  6. package/dist/powerlines/src/types/resolved.d.cts +2 -2
  7. package/dist/{packages/powerlines → powerlines}/src/types/resolved.d.mts +2 -2
  8. package/dist/types/plugin.d.mts +3 -3
  9. package/package.json +4 -4
  10. package/dist/node_modules/.pnpm/@storm-software_config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs +0 -16
  11. package/dist/node_modules/.pnpm/@storm-software_config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs +0 -15
  12. /package/dist/{packages/powerlines → powerlines}/src/internal/helpers/hooks.d.mts +0 -0
  13. /package/dist/{packages/powerlines → powerlines}/src/types/api.d.mts +0 -0
  14. /package/dist/{packages/powerlines → powerlines}/src/types/build.d.mts +0 -0
  15. /package/dist/{packages/powerlines → powerlines}/src/types/commands.d.mts +0 -0
  16. /package/dist/{packages/powerlines → powerlines}/src/types/context.d.mts +0 -0
  17. /package/dist/{packages/powerlines → powerlines}/src/types/fs.d.mts +0 -0
  18. /package/dist/{packages/powerlines → powerlines}/src/types/hooks.d.mts +0 -0
  19. /package/dist/{packages/powerlines → powerlines}/src/types/plugin.d.mts +0 -0
  20. /package/dist/{packages/powerlines → powerlines}/src/types/tsconfig.d.mts +0 -0
  21. /package/dist/{packages/powerlines → powerlines}/src/types/unplugin.d.mts +0 -0
package/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_chunk_POXTJ6GF = require('./node_modules/.pnpm/@storm-software_config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs');
4
3
  let __stryke_convert_to_array = require("@stryke/convert/to-array");
5
4
  let __stryke_fs_exists = require("@stryke/fs/exists");
6
5
  let __stryke_fs_list_files = require("@stryke/fs/list-files");
@@ -48,7 +47,7 @@ const plugin = (options) => {
48
47
  if (result) await this.fs.write(this.config.satori.outputPath ? (0, __stryke_path_join_paths.joinPaths)(this.config.satori.outputPath, (0, __stryke_path_replace.replacePath)(input, (0, __stryke_path_join_paths.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.projectRoot))) : input.replace((0, __stryke_path_file_path_fns.findFileExtensionSafe)(input), "svg"), result);
49
48
  }
50
49
  } catch (error) {
51
- this.log(require_chunk_POXTJ6GF.LogLevelLabel.DEBUG, `Failed to load Satori schema from ${input}: ${error.message}`);
50
+ this.debug(`Failed to load Satori schema from ${input}: ${error.message}`);
52
51
  }
53
52
  }));
54
53
  }
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
1
+ import { Plugin } from "./powerlines/src/types/plugin.mjs";
2
2
  import { SatoriPluginContext, SatoriPluginOptions, SatoriPluginResolvedConfig, SatoriPluginUserConfig, __ΩSatoriPluginContext, __ΩSatoriPluginOptions, __ΩSatoriPluginResolvedConfig, __ΩSatoriPluginUserConfig } from "./types/plugin.mjs";
3
3
  import { SatoriComponentModule, __ΩSatoriComponentModule } from "./types/module.mjs";
4
4
  import "./types/index.mjs";
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { LogLevelLabel } from "./node_modules/.pnpm/@storm-software_config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs";
2
1
  import { toArray } from "@stryke/convert/to-array";
3
2
  import { existsSync } from "@stryke/fs/exists";
4
3
  import { listFiles } from "@stryke/fs/list-files";
@@ -44,7 +43,7 @@ const plugin = (options) => {
44
43
  if (result) await this.fs.write(this.config.satori.outputPath ? joinPaths(this.config.satori.outputPath, replacePath(input, joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot))) : input.replace(findFileExtensionSafe(input), "svg"), result);
45
44
  }
46
45
  } catch (error) {
47
- this.log(LogLevelLabel.DEBUG, `Failed to load Satori schema from ${input}: ${error.message}`);
46
+ this.debug(`Failed to load Satori schema from ${input}: ${error.message}`);
48
47
  }
49
48
  }));
50
49
  }
@@ -14,6 +14,7 @@ import { DateString } from "compatx";
14
14
 
15
15
  //#region ../powerlines/src/types/config.d.ts
16
16
 
17
+ type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
17
18
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
18
19
  /**
19
20
  * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
@@ -253,7 +254,7 @@ interface CommonUserConfig extends BaseConfig {
253
254
  *
254
255
  * @defaultValue "info"
255
256
  */
256
- logLevel?: LogLevelLabel | null;
257
+ logLevel?: LogLevel | null;
257
258
  /**
258
259
  * A custom logger function to use for logging messages
259
260
  */
@@ -420,4 +421,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
420
421
  command: "deploy";
421
422
  };
422
423
  //#endregion
423
- export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
424
+ export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
@@ -14,6 +14,7 @@ import { DateString } from "compatx";
14
14
 
15
15
  //#region ../powerlines/src/types/config.d.ts
16
16
 
17
+ type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
17
18
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
18
19
  /**
19
20
  * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
@@ -253,7 +254,7 @@ interface CommonUserConfig extends BaseConfig {
253
254
  *
254
255
  * @defaultValue "info"
255
256
  */
256
- logLevel?: LogLevelLabel | null;
257
+ logLevel?: LogLevel | null;
257
258
  /**
258
259
  * A custom logger function to use for logging messages
259
260
  */
@@ -420,4 +421,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
420
421
  command: "deploy";
421
422
  };
422
423
  //#endregion
423
- export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
424
+ export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
@@ -1,5 +1,5 @@
1
1
  import { BuilderVariant } from "./build.cjs";
2
- import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
2
+ import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
3
3
  import { NonUndefined } from "@stryke/types/base";
4
4
  import { ResolvedPreviewOptions } from "vite";
5
5
  import { TypeDefinition } from "@stryke/types/configuration";
@@ -76,7 +76,7 @@ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUse
76
76
  *
77
77
  * @defaultValue "info"
78
78
  */
79
- logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
79
+ logLevel: LogLevel | null;
80
80
  };
81
81
  type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
82
82
  type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
@@ -1,5 +1,5 @@
1
1
  import { BuilderVariant } from "./build.mjs";
2
- import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
2
+ import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
3
3
  import { NonUndefined } from "@stryke/types/base";
4
4
  import { ResolvedPreviewOptions } from "vite";
5
5
  import { TypeDefinition } from "@stryke/types/configuration";
@@ -76,7 +76,7 @@ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUse
76
76
  *
77
77
  * @defaultValue "info"
78
78
  */
79
- logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
79
+ logLevel: LogLevel | null;
80
80
  };
81
81
  type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
82
82
  type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
@@ -1,6 +1,6 @@
1
- import { UserConfig } from "../packages/powerlines/src/types/config.mjs";
2
- import { ResolvedConfig } from "../packages/powerlines/src/types/resolved.mjs";
3
- import { PluginContext } from "../packages/powerlines/src/types/context.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
4
  import { SatoriOptions } from "satori";
5
5
 
6
6
  //#region src/types/plugin.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-satori",
3
- "version": "0.1.197",
3
+ "version": "0.1.199",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to use Satori to generate SVG files from jsx/tsx components.",
6
6
  "repository": {
@@ -131,16 +131,16 @@
131
131
  "@stryke/types": "^0.10.34",
132
132
  "defu": "^6.1.4",
133
133
  "jiti": "^2.6.1",
134
- "powerlines": "^0.37.72",
134
+ "powerlines": "^0.37.73",
135
135
  "satori": "^0.18.4"
136
136
  },
137
137
  "devDependencies": {
138
- "@powerlines/plugin-plugin": "^0.12.150",
138
+ "@powerlines/plugin-plugin": "^0.12.151",
139
139
  "@storm-software/config": "^1.135.0",
140
140
  "@types/node": "^24.10.9",
141
141
  "@types/react": "^19.2.9",
142
142
  "@types/react-dom": "^19.2.3"
143
143
  },
144
144
  "publishConfig": { "access": "public" },
145
- "gitHead": "458556ca7def9536d1c1fbd770e005a004d0a513"
145
+ "gitHead": "5f79353f37604b647e86ae803b1d60ca51eaf2d1"
146
146
  }
@@ -1,16 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
3
- var LogLevelLabel = {
4
- SILENT: "silent",
5
- FATAL: "fatal",
6
- ERROR: "error",
7
- WARN: "warn",
8
- SUCCESS: "success",
9
- INFO: "info",
10
- DEBUG: "debug",
11
- TRACE: "trace",
12
- ALL: "all"
13
- };
14
-
15
- //#endregion
16
- exports.LogLevelLabel = LogLevelLabel;
@@ -1,15 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
2
- var LogLevelLabel = {
3
- SILENT: "silent",
4
- FATAL: "fatal",
5
- ERROR: "error",
6
- WARN: "warn",
7
- SUCCESS: "success",
8
- INFO: "info",
9
- DEBUG: "debug",
10
- TRACE: "trace",
11
- ALL: "all"
12
- };
13
-
14
- //#endregion
15
- export { LogLevelLabel };