@reforma/types 0.1.3 → 0.1.4
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.js +0 -7
- package/package.json +1 -1
- package/src/api/projects/project.ts +10 -17
package/dist/index.js
CHANGED
|
@@ -339,13 +339,6 @@ const DEFAULT_PROJECT_SETTINGS = {
|
|
|
339
339
|
timezone: "UTC",
|
|
340
340
|
language: "en",
|
|
341
341
|
theme: "system",
|
|
342
|
-
seo: {
|
|
343
|
-
defaultPageTitle: "",
|
|
344
|
-
defaultMetaDescription: "",
|
|
345
|
-
faviconUrl: null,
|
|
346
|
-
indexingEnabled: true,
|
|
347
|
-
analyticsEnabled: true
|
|
348
|
-
},
|
|
349
342
|
pendingPublish: false
|
|
350
343
|
};
|
|
351
344
|
//#endregion
|
package/package.json
CHANGED
|
@@ -17,20 +17,21 @@ export interface ProjectEditorSettings {
|
|
|
17
17
|
showLayerSizes?: boolean;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/** Editable values in the project's site.config.ts, outside database settings. */
|
|
21
|
+
export interface SiteConfig {
|
|
22
|
+
faviconUrl: string;
|
|
23
|
+
indexingEnabled: boolean;
|
|
24
|
+
analyticsEnabled: boolean;
|
|
25
|
+
analyticsWriteKey: string;
|
|
26
|
+
analyticsEndpoint: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
20
29
|
export interface ProjectSettings {
|
|
21
30
|
timezone: string;
|
|
22
31
|
language: string;
|
|
23
32
|
theme: Theme;
|
|
24
|
-
seo: {
|
|
25
|
-
defaultPageTitle: string;
|
|
26
|
-
defaultMetaDescription: string;
|
|
27
|
-
faviconUrl: string | null;
|
|
28
|
-
indexingEnabled: boolean;
|
|
29
|
-
/** First-party pageview collection. Default on; publish bakes `REFORMA_ANALYTICS`. */
|
|
30
|
-
analyticsEnabled: boolean;
|
|
31
|
-
};
|
|
32
33
|
editor?: ProjectEditorSettings;
|
|
33
|
-
/**
|
|
34
|
+
/** Environment variables changed since the last successful publish. */
|
|
34
35
|
pendingPublish: boolean;
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -38,13 +39,6 @@ export const DEFAULT_PROJECT_SETTINGS: ProjectSettings = {
|
|
|
38
39
|
timezone: 'UTC',
|
|
39
40
|
language: 'en',
|
|
40
41
|
theme: 'system',
|
|
41
|
-
seo: {
|
|
42
|
-
defaultPageTitle: '',
|
|
43
|
-
defaultMetaDescription: '',
|
|
44
|
-
faviconUrl: null,
|
|
45
|
-
indexingEnabled: true,
|
|
46
|
-
analyticsEnabled: true,
|
|
47
|
-
},
|
|
48
42
|
pendingPublish: false,
|
|
49
43
|
};
|
|
50
44
|
|
|
@@ -68,7 +62,6 @@ export interface UpdateProjectSettings {
|
|
|
68
62
|
timezone?: string;
|
|
69
63
|
language?: string;
|
|
70
64
|
theme?: ProjectSettings['theme'];
|
|
71
|
-
seo?: Partial<ProjectSettings['seo']>;
|
|
72
65
|
editor?: ProjectEditorSettings;
|
|
73
66
|
}
|
|
74
67
|
|