@sealcode/sealgen 0.15.48 → 0.15.49

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.
@@ -20,14 +20,11 @@ export class ${toPascalCase(
20
20
  return component_arguments;
21
21
  }
22
22
 
23
- toHTML(
24
- {
25
- title,
26
- content,
27
- }: ExtractStructuredComponentArgumentsParsed<typeof component_arguments>,
28
- classes: string[],
29
- { language, render_markdown }: JDDContext
30
- ): FlatTemplatable {
23
+ async toHTML({
24
+ args: { title, content},
25
+ classes,
26
+ jdd_context: { render_markdown, render_image, language },
27
+ }: ComponentToHTMLArgs<typeof component_arguments>): Promise<string> {
31
28
  return (
32
29
  <div class={["${toKebabCase(component_name)}", ...classes]}>
33
30
  <h2>{title} \u2022 ${toPascalCase(component_name)} </h2>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.15.48",
3
+ "version": "0.15.49",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -21,14 +21,11 @@ export class ${toPascalCase(
21
21
  return component_arguments;
22
22
  }
23
23
 
24
- toHTML(
25
- {
26
- title,
27
- content,
28
- }: ExtractStructuredComponentArgumentsParsed<typeof component_arguments>,
29
- classes: string[],
30
- { language, render_markdown }: JDDContext
31
- ): FlatTemplatable {
24
+ async toHTML({
25
+ args: { title, content},
26
+ classes,
27
+ jdd_context: { render_markdown, render_image, language },
28
+ }: ComponentToHTMLArgs<typeof component_arguments>): Promise<string> {
32
29
  return (
33
30
  <div class={["${toKebabCase(component_name)}", ...classes]}>
34
31
  <h2>{title} • ${toPascalCase(component_name)} </h2>