@dosgato/templating 0.0.115 → 0.0.117

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
package/dist/render.d.ts CHANGED
@@ -146,7 +146,9 @@ export interface APIClient {
146
146
  id?: string;
147
147
  path?: string;
148
148
  link?: string | PageLink;
149
- }) => Promise<PageRecord<PageData> | undefined>;
149
+ }) => Promise<PageRecord<PageData> & {
150
+ title: string;
151
+ } | undefined>;
150
152
  /** Get all ancestor pages of a specific page. First array element will be the pagetree root page. */
151
153
  getAncestors: ({ id, path }: {
152
154
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.115",
3
+ "version": "0.0.117",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {