@dosgato/templating 0.0.116 → 0.0.118

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.
@@ -197,6 +197,13 @@ export declare abstract class Component<DataType extends ComponentData = any, Fe
197
197
  headerLevel?: number;
198
198
  advanceHeader?: string;
199
199
  }) => string;
200
+ /**
201
+ * When we give editors the ability to enter raw HTML, we still need to minimally process it to
202
+ * protect the rest of the page from unclosed tags and other syntax problems, but we don't want
203
+ * to muck around with headers or links, so this function will be provided by the render server
204
+ * and will only do the parsing and reconstruction part
205
+ */
206
+ renderRawHTML: (html: string | undefined) => string;
200
207
  /**
201
208
  * The final phase of rendering a component is the render phase. This step is BOTTOM-UP -
202
209
  * components at the bottom of the hierarchy will be rendered first, and the result of the
@@ -573,6 +580,11 @@ export declare abstract class Page<DataType extends PageData = any, FetchedType
573
580
  * at any time during fetch, context, or render, to set an HTTP header on the response
574
581
  */
575
582
  addHeader: (key: string, value: string | undefined) => void;
583
+ /**
584
+ * This method will be provided to page templates by the render server. You may call it to set
585
+ * the HTTP response status at any time during the fetch, context, or render.
586
+ */
587
+ setStatus: (statusCode: number) => void;
576
588
  /**
577
589
  * URL for the currently rendering page
578
590
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {