@agility/content-fetch 2.0.12 → 2.0.13
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.
- package/dist/index.d.ts +2 -1
- package/dist/types/Page.d.ts +3 -0
- package/dist/types/PageScripts.d.ts +13 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import { ContentList } from "./types/ContentList";
|
|
|
4
4
|
import { Filter } from "./types/Filter";
|
|
5
5
|
import { Gallery } from "./types/Gallery";
|
|
6
6
|
import { Page } from "./types/Page";
|
|
7
|
+
import { PageScripts } from "./types/PageScripts";
|
|
7
8
|
import { ApiClientInstance, getApi } from "./api-client";
|
|
8
9
|
import { ContentReference } from "./types/ContentReference";
|
|
9
|
-
export type { ApiClientInstance, Config, ContentItem, ContentList, ContentReference, Filter, Gallery, Page };
|
|
10
|
+
export type { ApiClientInstance, Config, ContentItem, ContentList, ContentReference, Filter, Gallery, Page, PageScripts };
|
|
10
11
|
export { getApi };
|
package/dist/types/Page.d.ts
CHANGED
|
@@ -15,11 +15,13 @@
|
|
|
15
15
|
* @property {string} [redirectUrl] - If this page is a *link*, then this property will show the intended destination redirect.
|
|
16
16
|
* @property {number} [dynamicItemContentID] - If this page is a dynamic page, then this property will show the associated contentID of the dynamic content item.
|
|
17
17
|
* @property {AgilityFetch.Types.SitemapVisibility} visible - Object that contains properties pertaining to the intended visibility of this page for seo and menus.
|
|
18
|
+
* @property {AgilityFetch.Types.PageScripts} [scripts] - The page's custom head/body scripts, and whether it opts out of the instance's global scripts.
|
|
18
19
|
*/
|
|
19
20
|
import { ContentZone } from "./ContentZone";
|
|
20
21
|
import { SystemProperties } from "./SystemProperties";
|
|
21
22
|
import { SitemapVisibility } from "./SitemapVisibility";
|
|
22
23
|
import { SEOProperties } from "./SEO";
|
|
24
|
+
import { PageScripts } from "./PageScripts";
|
|
23
25
|
export interface Page {
|
|
24
26
|
pageID: number;
|
|
25
27
|
name: string;
|
|
@@ -37,4 +39,5 @@ export interface Page {
|
|
|
37
39
|
dynamicItemContentID?: number;
|
|
38
40
|
visible: SitemapVisibility;
|
|
39
41
|
seo?: SEOProperties;
|
|
42
|
+
scripts?: PageScripts | null;
|
|
40
43
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the custom scripts configured on a **Page** in the CMS.
|
|
3
|
+
* @interface PageScripts
|
|
4
|
+
* @memberof AgilityFetch.Types
|
|
5
|
+
* @property {boolean} excludedFromGlobal - Whether this page opts out of the instance's global scripts. When `true`, the global head and body scripts should not be rendered on this page.
|
|
6
|
+
* @property {string | null} top - The page's custom head scripts (HTML to render inside `<head>`), or `null` if none are set.
|
|
7
|
+
* @property {string | null} bottom - The page's custom body scripts (HTML to render at the end of `<body>`), or `null` if none are set.
|
|
8
|
+
*/
|
|
9
|
+
export interface PageScripts {
|
|
10
|
+
excludedFromGlobal: boolean;
|
|
11
|
+
top: string | null;
|
|
12
|
+
bottom: string | null;
|
|
13
|
+
}
|