-
Notifications
You must be signed in to change notification settings - Fork 6
/
constants.ts
32 lines (28 loc) · 1.48 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { CustomTypeModelFieldType } from "@prismicio/types";
export const BLANK_LINE_IDENTIFIER = "// ___BLANK_LINE_TO_BE_REPLACED___";
export const CUSTOM_TYPES_DOCUMENTATION_URL =
"https://prismic.io/docs/core-concepts/custom-types";
export const SHARED_SLICES_DOCUMENTATION_URL =
"https://prismic.io/docs/core-concepts/reusing-slices";
export const FIELD_DOCUMENTATION_URLS: Record<
Exclude<keyof typeof CustomTypeModelFieldType, "Range" | "Separator">,
string
> = {
UID: "https://prismic.io/docs/core-concepts/uid",
Boolean: "https://prismic.io/docs/core-concepts/boolean",
Color: "https://prismic.io/docs/core-concepts/color",
Date: "https://prismic.io/docs/core-concepts/date",
Timestamp: "https://prismic.io/docs/core-concepts/timestamp",
Number: "https://prismic.io/docs/core-concepts/number",
Text: "https://prismic.io/docs/core-concepts/key-text",
Select: "https://prismic.io/docs/core-concepts/select",
StructuredText: "https://prismic.io/docs/core-concepts/rich-text-title",
Image: "https://prismic.io/docs/core-concepts/image",
Link: "https://prismic.io/docs/core-concepts/link-content-relationship",
Embed: "https://prismic.io/docs/core-concepts/embed",
GeoPoint: "https://prismic.io/docs/core-concepts/geopoint",
Group: "https://prismic.io/docs/core-concepts/group",
IntegrationFields: "https://prismic.io/docs/core-concepts/integration-fields",
Slices: "https://prismic.io/docs/core-concepts/slices",
LegacySlices: "https://prismic.io/docs/core-concepts/slices",
};