@powerlines/plugin-satori 0.1.45 → 0.1.47

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 (44) hide show
  1. package/dist/index-CA4VvAY_.d.mts +1 -0
  2. package/dist/index-CmCelmEL.d.cts +1 -0
  3. package/dist/index.cjs +1 -7
  4. package/dist/index.d.cts +8 -25
  5. package/dist/index.d.cts.map +1 -0
  6. package/dist/index.d.mts +16 -0
  7. package/dist/index.d.mts.map +1 -0
  8. package/dist/index.mjs +2 -0
  9. package/dist/index.mjs.map +1 -0
  10. package/dist/module-BaimxfxK.mjs +1 -0
  11. package/dist/module-DWfSYSuA.d.mts +12 -0
  12. package/dist/module-DWfSYSuA.d.mts.map +1 -0
  13. package/dist/module-dJs7y8S5.d.cts +12 -0
  14. package/dist/module-dJs7y8S5.d.cts.map +1 -0
  15. package/dist/plugin-BZHoWT1I.d.cts +1682 -0
  16. package/dist/plugin-BZHoWT1I.d.cts.map +1 -0
  17. package/dist/plugin-Bd_aUQ4j.d.mts +1682 -0
  18. package/dist/plugin-Bd_aUQ4j.d.mts.map +1 -0
  19. package/dist/plugin-alze5tBm.mjs +1 -0
  20. package/dist/types/index.cjs +1 -1
  21. package/dist/types/index.d.cts +4 -22
  22. package/dist/types/index.d.mts +4 -0
  23. package/dist/types/index.mjs +1 -0
  24. package/dist/types/module.cjs +1 -1
  25. package/dist/types/module.d.cts +2 -10
  26. package/dist/types/module.d.mts +2 -0
  27. package/dist/types/module.mjs +1 -0
  28. package/dist/types/plugin.cjs +1 -1
  29. package/dist/types/plugin.d.cts +2 -20
  30. package/dist/types/plugin.d.mts +2 -0
  31. package/dist/types/plugin.mjs +1 -0
  32. package/dist/types-CBTc19th.cjs +0 -0
  33. package/dist/types-CwXe_Ycf.mjs +1 -0
  34. package/package.json +46 -28
  35. package/dist/index.d.ts +0 -33
  36. package/dist/index.js +0 -7
  37. package/dist/plugin-Cyjv7VfU.d.cts +0 -1523
  38. package/dist/plugin-Cyjv7VfU.d.ts +0 -1523
  39. package/dist/types/index.d.ts +0 -22
  40. package/dist/types/index.js +0 -1
  41. package/dist/types/module.d.ts +0 -10
  42. package/dist/types/plugin.d.ts +0 -20
  43. /package/dist/{types/module.js → module-DTH7_i6X.cjs} +0 -0
  44. /package/dist/{types/plugin.js → plugin-B-8QVe28.cjs} +0 -0
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.cjs CHANGED
@@ -1,7 +1 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var types$1=require('@storm-software/config-tools/types'),toArray=require('@stryke/convert/to-array'),exists=require('@stryke/fs/exists'),listFiles=require('@stryke/fs/list-files'),filePathFns=require('@stryke/path/file-path-fns'),joinPaths=require('@stryke/path/join-paths'),replace=require('@stryke/path/replace'),u=require('defu'),paths=require('powerlines/plugin-utils/paths'),h=require('satori'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var u__default=/*#__PURE__*/_interopDefault(u);var h__default=/*#__PURE__*/_interopDefault(h);/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- var f=Object.defineProperty;var e=(i,o)=>f(i,"name",{value:o,configurable:true});const d=e(i=>({name:"satori",config(){return {satori:{defaultOptions:{},width:1200,height:630,fonts:[],...i}}},async configResolved(){if(!this.config.satori.path)throw new Error("The Powerlines Satori plugin requires a `path` option to be specified.");this.config.satori.inputs=(await Promise.all(toArray.toArray(this.config.satori.path).map(async o=>o.includes("*")?listFiles.listFiles(paths.replacePathTokens(this,o)):paths.replacePathTokens(this,o)))).flat().filter(o=>o&&["jsx","tsx"].includes(filePathFns.findFileExtensionSafe(o))&&exists.existsSync(o));},async prepare(){await Promise.all(this.config.satori.inputs.map(async o=>{try{const t=await this.resolver.import(o);if(t&&t.default){const r=await h__default.default(t.default,u__default.default(t.options??{},this.config.satori.defaultOptions));r&&await this.fs.write(this.config.satori.outputPath?joinPaths.joinPaths(this.config.satori.outputPath,replace.replacePath(o,joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot))):o.replace(filePathFns.findFileExtensionSafe(o),"svg"),r);}}catch(t){this.log(types$1.LogLevelLabel.DEBUG,`Failed to load Satori schema from ${o}: ${t.message}`);}}));}}),"plugin");var $=d;exports.default=$;exports.plugin=d;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
1
+ Object.defineProperty(exports,`__esModule`,{value:!0});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));require(`./module-DTH7_i6X.cjs`),require(`./plugin-B-8QVe28.cjs`),require(`./types-CBTc19th.cjs`);let c=require(`@storm-software/config-tools/types`),l=require(`@stryke/convert/to-array`),u=require(`@stryke/fs/exists`),d=require(`@stryke/fs/list-files`),f=require(`@stryke/path/file-path-fns`),p=require(`@stryke/path/join-paths`),m=require(`@stryke/path/replace`),h=require(`defu`);h=s(h);let g=require(`satori`);g=s(g);function _(e,t){return t&&t.replaceAll(`{workspaceRoot}`,e.workspaceConfig.workspaceRoot).replaceAll(`{root}`,e.config.projectRoot).replaceAll(`{projectRoot}`,e.config.projectRoot).replaceAll(`{sourceRoot}`,e.config.sourceRoot).replaceAll(`{powerlinesPath}`,e.powerlinesPath).replaceAll(`{cachePath}`,e.cachePath).replaceAll(`{dataPath}`,e.dataPath).replaceAll(`{logPath}`,e.envPaths.log).replaceAll(`{tempPath}`,e.envPaths.temp).replaceAll(`{configPath}`,e.envPaths.config).replaceAll(`{outputPath}`,e.config.output.outputPath).replaceAll(`{buildPath}`,e.config.output.buildPath).replaceAll(`{artifactsPath}`,(0,m.replacePath)(e.artifactsPath,e.workspaceConfig.workspaceRoot)).replaceAll(`{builtinPath}`,(0,m.replacePath)(e.builtinsPath,e.workspaceConfig.workspaceRoot)).replaceAll(`{entryPath}`,(0,m.replacePath)(e.entryPath,e.workspaceConfig.workspaceRoot))}const v=e=>({name:`satori`,config(){return{satori:{defaultOptions:{},width:1200,height:630,fonts:[],...e}}},async configResolved(){if(!this.config.satori.path)throw Error("The Powerlines Satori plugin requires a `path` option to be specified.");this.config.satori.inputs=(await Promise.all((0,l.toArray)(this.config.satori.path).map(async e=>e.includes(`*`)?(0,d.listFiles)(_(this,e)):_(this,e)))).flat().filter(e=>e&&[`jsx`,`tsx`].includes((0,f.findFileExtensionSafe)(e))&&(0,u.existsSync)(e))},async prepare(){await Promise.all(this.config.satori.inputs.map(async e=>{try{let t=await this.resolver.import(e);if(t&&t.default){let n=await(0,g.default)(t.default,(0,h.default)(t.options??{},this.config.satori.defaultOptions));n&&await this.fs.write(this.config.satori.outputPath?(0,p.joinPaths)(this.config.satori.outputPath,(0,m.replacePath)(e,(0,p.joinPaths)(this.workspaceConfig.workspaceRoot,this.config.projectRoot))):e.replace((0,f.findFileExtensionSafe)(e),`svg`),n)}}catch(t){this.log(c.LogLevelLabel.DEBUG,`Failed to load Satori schema from ${e}: ${t.message}`)}}))}});var y=v;exports.default=y,exports.plugin=v;
package/dist/index.d.cts CHANGED
@@ -1,26 +1,8 @@
1
- import { c as SatoriPluginContext, S as SatoriPluginOptions, P as Plugin } from './plugin-Cyjv7VfU.cjs';
2
- export { b as SatoriPluginResolvedConfig, a as SatoriPluginUserConfig, f as __ΩSatoriPluginContext, _ as __ΩSatoriPluginOptions, e as __ΩSatoriPluginResolvedConfig, d as __ΩSatoriPluginUserConfig } from './plugin-Cyjv7VfU.cjs';
3
- export { SatoriComponentModule, __ΩSatoriComponentModule } from './types/module.cjs';
4
- import '@storm-software/build-tools/types';
5
- import '@storm-software/config-tools/types';
6
- import '@storm-software/config/types';
7
- import '@stryke/types/base';
8
- import '@stryke/types/configuration';
9
- import '@stryke/types/file';
10
- import 'vite';
11
- import '@stryke/env/get-env-paths';
12
- import '@stryke/types/package-json';
13
- import 'jiti';
14
- import 'magic-string';
15
- import 'semver';
16
- import 'ts-morph';
17
- import 'unplugin';
18
- import '@stryke/fs/resolve';
19
- import '@stryke/types/tsconfig';
20
- import 'typescript';
21
- import '@stryke/types/array';
22
- import 'satori';
23
- import 'react';
1
+ import { a as __ΩSatoriPluginContext, c as __ΩSatoriPluginUserConfig, i as SatoriPluginUserConfig, l as Plugin, n as SatoriPluginOptions, o as __ΩSatoriPluginOptions, r as SatoriPluginResolvedConfig, s as __ΩSatoriPluginResolvedConfig, t as SatoriPluginContext } from "./plugin-BZHoWT1I.cjs";
2
+ import { n as __ΩSatoriComponentModule, t as SatoriComponentModule } from "./module-dJs7y8S5.cjs";
3
+ import "./index-CmCelmEL.cjs";
4
+
5
+ //#region src/index.d.ts
24
6
 
25
7
  /**
26
8
  * A Powerlines plugin to use Untyped for code generation based on user-defined schemas.
@@ -29,5 +11,6 @@ import 'react';
29
11
  * @returns A Powerlines plugin instance.
30
12
  */
31
13
  declare const plugin: <TContext extends SatoriPluginContext = SatoriPluginContext>(options: SatoriPluginOptions) => Plugin<TContext>;
32
-
33
- export { SatoriPluginContext, SatoriPluginOptions, plugin as default, plugin };
14
+ //#endregion
15
+ export { SatoriComponentModule, SatoriPluginContext, SatoriPluginOptions, SatoriPluginResolvedConfig, SatoriPluginUserConfig, __ΩSatoriComponentModule, __ΩSatoriPluginContext, __ΩSatoriPluginOptions, __ΩSatoriPluginResolvedConfig, __ΩSatoriPluginUserConfig, plugin as default, plugin };
16
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA4CA;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,mBAGT,GAH+B,mBAG/B,CAAA,CAAA,OAAA,EADC,mBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { a as __ΩSatoriPluginContext, c as __ΩSatoriPluginUserConfig, i as SatoriPluginUserConfig, l as Plugin, n as SatoriPluginOptions, o as __ΩSatoriPluginOptions, r as SatoriPluginResolvedConfig, s as __ΩSatoriPluginResolvedConfig, t as SatoriPluginContext } from "./plugin-Bd_aUQ4j.mjs";
2
+ import { n as __ΩSatoriComponentModule, t as SatoriComponentModule } from "./module-DWfSYSuA.mjs";
3
+ import "./index-CA4VvAY_.mjs";
4
+
5
+ //#region src/index.d.ts
6
+
7
+ /**
8
+ * A Powerlines plugin to use Untyped for code generation based on user-defined schemas.
9
+ *
10
+ * @param options - The plugin options.
11
+ * @returns A Powerlines plugin instance.
12
+ */
13
+ declare const plugin: <TContext extends SatoriPluginContext = SatoriPluginContext>(options: SatoriPluginOptions) => Plugin<TContext>;
14
+ //#endregion
15
+ export { SatoriComponentModule, SatoriPluginContext, SatoriPluginOptions, SatoriPluginResolvedConfig, SatoriPluginUserConfig, __ΩSatoriComponentModule, __ΩSatoriPluginContext, __ΩSatoriPluginOptions, __ΩSatoriPluginResolvedConfig, __ΩSatoriPluginUserConfig, plugin as default, plugin };
16
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA4CA;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,mBAGT,GAH+B,mBAG/B,CAAA,CAAA,OAAA,EADC,mBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import"./module-BaimxfxK.mjs";import"./plugin-alze5tBm.mjs";import"./types-CwXe_Ycf.mjs";import{LogLevelLabel as e}from"@storm-software/config-tools/types";import{toArray as t}from"@stryke/convert/to-array";import{existsSync as n}from"@stryke/fs/exists";import{listFiles as r}from"@stryke/fs/list-files";import{findFileExtensionSafe as i}from"@stryke/path/file-path-fns";import{joinPaths as a}from"@stryke/path/join-paths";import{replacePath as o}from"@stryke/path/replace";import s from"defu";import c from"satori";function l(e,t){return t&&t.replaceAll(`{workspaceRoot}`,e.workspaceConfig.workspaceRoot).replaceAll(`{root}`,e.config.projectRoot).replaceAll(`{projectRoot}`,e.config.projectRoot).replaceAll(`{sourceRoot}`,e.config.sourceRoot).replaceAll(`{powerlinesPath}`,e.powerlinesPath).replaceAll(`{cachePath}`,e.cachePath).replaceAll(`{dataPath}`,e.dataPath).replaceAll(`{logPath}`,e.envPaths.log).replaceAll(`{tempPath}`,e.envPaths.temp).replaceAll(`{configPath}`,e.envPaths.config).replaceAll(`{outputPath}`,e.config.output.outputPath).replaceAll(`{buildPath}`,e.config.output.buildPath).replaceAll(`{artifactsPath}`,o(e.artifactsPath,e.workspaceConfig.workspaceRoot)).replaceAll(`{builtinPath}`,o(e.builtinsPath,e.workspaceConfig.workspaceRoot)).replaceAll(`{entryPath}`,o(e.entryPath,e.workspaceConfig.workspaceRoot))}const u=u=>({name:`satori`,config(){return{satori:{defaultOptions:{},width:1200,height:630,fonts:[],...u}}},async configResolved(){if(!this.config.satori.path)throw Error("The Powerlines Satori plugin requires a `path` option to be specified.");this.config.satori.inputs=(await Promise.all(t(this.config.satori.path).map(async e=>e.includes(`*`)?r(l(this,e)):l(this,e)))).flat().filter(e=>e&&[`jsx`,`tsx`].includes(i(e))&&n(e))},async prepare(){await Promise.all(this.config.satori.inputs.map(async t=>{try{let e=await this.resolver.import(t);if(e&&e.default){let n=await c(e.default,s(e.options??{},this.config.satori.defaultOptions));n&&await this.fs.write(this.config.satori.outputPath?a(this.config.satori.outputPath,o(t,a(this.workspaceConfig.workspaceRoot,this.config.projectRoot))):t.replace(i(t),`svg`),n)}}catch(n){this.log(e.DEBUG,`Failed to load Satori schema from ${t}: ${n.message}`)}}))}});var d=u;export{d as default,u as plugin};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../powerlines/src/plugin-utils/paths.ts","../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { replacePath } from \"@stryke/path/replace\";\nimport { IsUndefined } from \"@stryke/types/base\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Replaces tokens in the given path string with their corresponding values from the context.\n *\n * @remarks\n * The following tokens are supported:\n * - `{workspaceRoot}` - The root directory of the workspace.\n * - `{root}` - The root directory of the project (same as `{projectRoot}`).\n * - `{projectRoot}` - The root directory of the project (same as `{root}`).\n * - `{sourceRoot}` - The source root directory of the project (usually `./src`).\n * - `{powerlinesPath}` - The directory where Powerlines is installed.\n * - `{cachePath}` - The environment's directory for cached files.\n * - `{dataPath}` - The environment's directory for data files.\n * - `{logPath}` - The environment's directory for log files.\n * - `{tempPath}` - The environment's directory for temporary files.\n * - `{configPath}` - The environment's directory for configuration files.\n * - `{outputPath}` - The configured output directory for the project.\n * - `{buildPath}` - The configured distribution directory for the project.\n * - `{artifactsPath}` - The configured directory for build artifacts.\n * - `{builtinPath}` - The configured directory for generated built-in plugins.\n * - `{entryPath}` - The configured directory for generated entry files.\n *\n * @param context - The context containing the values for the path tokens.\n * @param path - The path string with tokens to replace.\n * @returns The path string with tokens replaced by their corresponding values from the context.\n */\nexport function replacePathTokens(\n context: UnresolvedContext,\n path?: string\n): IsUndefined<typeof path> extends true ? undefined : string {\n if (!path) {\n return path as IsUndefined<typeof path> extends true ? undefined : string;\n }\n\n return path\n .replaceAll(\"{workspaceRoot}\", context.workspaceConfig.workspaceRoot)\n .replaceAll(\"{root}\", context.config.projectRoot)\n .replaceAll(\"{projectRoot}\", context.config.projectRoot)\n .replaceAll(\"{sourceRoot}\", context.config.sourceRoot)\n .replaceAll(\"{powerlinesPath}\", context.powerlinesPath)\n .replaceAll(\"{cachePath}\", context.cachePath)\n .replaceAll(\"{dataPath}\", context.dataPath)\n .replaceAll(\"{logPath}\", context.envPaths.log)\n .replaceAll(\"{tempPath}\", context.envPaths.temp)\n .replaceAll(\"{configPath}\", context.envPaths.config)\n .replaceAll(\"{outputPath}\", context.config.output.outputPath)\n .replaceAll(\"{buildPath}\", context.config.output.buildPath)\n .replaceAll(\n \"{artifactsPath}\",\n replacePath(context.artifactsPath, context.workspaceConfig.workspaceRoot)\n )\n .replaceAll(\n \"{builtinPath}\",\n replacePath(context.builtinsPath, context.workspaceConfig.workspaceRoot)\n )\n .replaceAll(\n \"{entryPath}\",\n replacePath(context.entryPath, context.workspaceConfig.workspaceRoot)\n );\n}\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { listFiles } from \"@stryke/fs/list-files\";\nimport { findFileExtensionSafe } from \"@stryke/path/file-path-fns\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { replacePathTokens } from \"powerlines/plugin-utils/paths\";\nimport type { Plugin } from \"powerlines/types/plugin\";\nimport satori from \"satori\";\nimport { SatoriComponentModule } from \"./types/module\";\nimport {\n SatoriPluginContext,\n SatoriPluginOptions,\n SatoriPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to use Untyped for code generation based on user-defined schemas.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends SatoriPluginContext = SatoriPluginContext\n>(\n options: SatoriPluginOptions\n): Plugin<TContext> => {\n return {\n name: \"satori\",\n config() {\n return {\n satori: {\n defaultOptions: {},\n width: 1200,\n height: 630,\n fonts: [],\n ...options\n }\n } as Partial<SatoriPluginUserConfig>;\n },\n async configResolved() {\n if (!this.config.satori.path) {\n throw new Error(\n \"The Powerlines Satori plugin requires a \\`path\\` option to be specified.\"\n );\n }\n\n this.config.satori.inputs = (\n await Promise.all(\n toArray(this.config.satori.path).map(async path => {\n if (path.includes(\"*\")) {\n return listFiles(replacePathTokens(this, path));\n }\n\n return replacePathTokens(this, path);\n })\n )\n )\n .flat()\n .filter(\n path =>\n path &&\n [\"jsx\", \"tsx\"].includes(findFileExtensionSafe(path)) &&\n existsSync(path)\n );\n },\n async prepare() {\n await Promise.all(\n this.config.satori.inputs.map(async input => {\n try {\n const mod =\n await this.resolver.import<SatoriComponentModule>(input);\n if (mod && mod.default) {\n const result = await satori(\n mod.default,\n defu(mod.options ?? {}, this.config.satori.defaultOptions)\n );\n if (result) {\n await this.fs.write(\n this.config.satori.outputPath\n ? joinPaths(\n this.config.satori.outputPath,\n replacePath(\n input,\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot\n )\n )\n )\n : input.replace(findFileExtensionSafe(input), \"svg\"),\n result\n );\n }\n }\n } catch (error) {\n this.log(\n LogLevelLabel.DEBUG,\n `Failed to load Satori schema from ${input}: ${(error as Error).message}`\n );\n }\n })\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"ogBA+CA,SAAgB,EACd,EACA,EAC4D,CAK5D,OAJK,GAIE,EACJ,WAAW,kBAAmB,EAAQ,gBAAgB,cAAc,CACpE,WAAW,SAAU,EAAQ,OAAO,YAAY,CAChD,WAAW,gBAAiB,EAAQ,OAAO,YAAY,CACvD,WAAW,eAAgB,EAAQ,OAAO,WAAW,CACrD,WAAW,mBAAoB,EAAQ,eAAe,CACtD,WAAW,cAAe,EAAQ,UAAU,CAC5C,WAAW,aAAc,EAAQ,SAAS,CAC1C,WAAW,YAAa,EAAQ,SAAS,IAAI,CAC7C,WAAW,aAAc,EAAQ,SAAS,KAAK,CAC/C,WAAW,eAAgB,EAAQ,SAAS,OAAO,CACnD,WAAW,eAAgB,EAAQ,OAAO,OAAO,WAAW,CAC5D,WAAW,cAAe,EAAQ,OAAO,OAAO,UAAU,CAC1D,WACC,kBACA,EAAY,EAAQ,cAAe,EAAQ,gBAAgB,cAAc,CAC1E,CACA,WACC,gBACA,EAAY,EAAQ,aAAc,EAAQ,gBAAgB,cAAc,CACzE,CACA,WACC,cACA,EAAY,EAAQ,UAAW,EAAQ,gBAAgB,cAAc,CACtE,CCnCL,MAAa,EAGX,IAEO,CACL,KAAM,SACN,QAAS,CACP,MAAO,CACL,OAAQ,CACN,eAAgB,EAAE,CAClB,MAAO,KACP,OAAQ,IACR,MAAO,EAAE,CACT,GAAG,EACJ,CACF,EAEH,MAAM,gBAAiB,CACrB,GAAI,CAAC,KAAK,OAAO,OAAO,KACtB,MAAU,MACR,yEACD,CAGH,KAAK,OAAO,OAAO,QACjB,MAAM,QAAQ,IACZ,EAAQ,KAAK,OAAO,OAAO,KAAK,CAAC,IAAI,KAAM,IACrC,EAAK,SAAS,IAAI,CACb,EAAU,EAAkB,KAAM,EAAK,CAAC,CAG1C,EAAkB,KAAM,EAAK,CACpC,CACH,EAEA,MAAM,CACN,OACC,GACE,GACA,CAAC,MAAO,MAAM,CAAC,SAAS,EAAsB,EAAK,CAAC,EACpD,EAAW,EAAK,CACnB,EAEL,MAAM,SAAU,CACd,MAAM,QAAQ,IACZ,KAAK,OAAO,OAAO,OAAO,IAAI,KAAM,IAAS,CAC3C,GAAI,CACF,IAAM,EACJ,MAAM,KAAK,SAAS,OAA8B,EAAM,CAC1D,GAAI,GAAO,EAAI,QAAS,CACtB,IAAM,EAAS,MAAM,EACnB,EAAI,QACJ,EAAK,EAAI,SAAW,EAAE,CAAE,KAAK,OAAO,OAAO,eAAe,CAC3D,CACG,GACF,MAAM,KAAK,GAAG,MACZ,KAAK,OAAO,OAAO,WACf,EACE,KAAK,OAAO,OAAO,WACnB,EACE,EACA,EACE,KAAK,gBAAgB,cACrB,KAAK,OAAO,YACb,CACF,CACF,CACD,EAAM,QAAQ,EAAsB,EAAM,CAAE,MAAM,CACtD,EACD,QAGE,EAAO,CACd,KAAK,IACH,EAAc,MACd,qCAAqC,EAAM,IAAK,EAAgB,UACjE,GAEH,CACH,EAEJ,EAGH,IAAA,EAAe"}
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,12 @@
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 };
12
+ //# sourceMappingURL=module-DWfSYSuA.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-DWfSYSuA.d.mts","names":[],"sources":["../src/types/module.ts"],"sourcesContent":[],"mappings":";;;;UAqBiB,qBAAA;WACN;EADM,OAAA,CAAA,EAEL,aAFK"}
@@ -0,0 +1,12 @@
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 };
12
+ //# sourceMappingURL=module-dJs7y8S5.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-dJs7y8S5.d.cts","names":[],"sources":["../src/types/module.ts"],"sourcesContent":[],"mappings":";;;;UAqBiB,qBAAA;WACN;EADM,OAAA,CAAA,EAEL,aAFK"}