@escape-game-over/atlas 0.1.114 → 0.1.115

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escape-game-over/atlas",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "type": "module",
5
5
  "description": "Typed, data-driven machinery for static multi-locale, multi-deployment Astro sites.",
6
6
  "private": false,
package/src/site/api.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { AnalyticsSettings } from "../analytics/index.ts";
1
2
  import type { ResolvedLocaleMeta } from "../config.ts";
2
3
  import type {
3
4
  MessageBindings,
@@ -157,6 +158,14 @@ export interface Site<
157
158
  * value that then drifts from the one every page's `<head>` carries.
158
159
  */
159
160
  readonly themeColor: ThemeColor;
161
+ /**
162
+ * The project's analytics, as declared: what the site's pages load, and so
163
+ * what a consent banner and a storage notice must name.
164
+ *
165
+ * Exposed so shared code reads it here rather than from the linked project,
166
+ * whose file is one project's and not what every project guarantees.
167
+ */
168
+ readonly analytics: AnalyticsSettings | undefined;
160
169
  readonly localeMeta: Readonly<Record<L, ResolvedLocaleMeta>>;
161
170
  /** The site's `defaultFonts` with this project's `overrideFonts` applied. */
162
171
  readonly fonts: Fonts;
@@ -880,6 +880,7 @@ export function createSite<
880
880
  url: siteUrl,
881
881
  siteName: project.siteName,
882
882
  themeColor: project.themeColor,
883
+ analytics: project.analytics,
883
884
  localeMeta,
884
885
  fonts,
885
886
  routes: enabledRouteIds,