@dosgato/templating 0.0.47 → 0.0.48

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 (2) hide show
  1. package/dist/links.d.ts +11 -0
  2. package/package.json +1 -1
package/dist/links.d.ts CHANGED
@@ -26,9 +26,20 @@ export interface AssetFolderLink {
26
26
  */
27
27
  export interface PageLink {
28
28
  type: 'page';
29
+ siteId: string;
29
30
  linkId: string;
30
31
  path: string;
31
32
  }
33
+ /**
34
+ * When looking up a page by linkId, the context matters. For instance, if I'm
35
+ * gathering data to helps render a page that's in the same site as the target
36
+ * page, I want to be sure to get the version of the page from the same pagetree.
37
+ */
38
+ export interface PageLinkWithContext extends PageLink {
39
+ context?: {
40
+ pagetreeId: string;
41
+ };
42
+ }
32
43
  /**
33
44
  * The link format for external webpages. This format seems a little extra since
34
45
  * it's just a URL string. Why does it need to be an object with a type? However,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {