@joai/sites 0.1.2 → 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.d.mts CHANGED
@@ -101,6 +101,7 @@ declare function getSiteContentSlug(site: Site): string | null;
101
101
  type ResolveSiteOptions = {
102
102
  env?: AppEnv;
103
103
  team?: string;
104
+ buildSecret?: string;
104
105
  };
105
106
  /** Normalize a Host header / URL host to the domain form used by sites.resolve. */
106
107
  declare function normalizeSiteHost(host: string): string;
package/dist/index.mjs CHANGED
@@ -22,6 +22,7 @@ function createPublicClient(options = {}) {
22
22
  return createClient({
23
23
  env: options.env ?? "mainnet",
24
24
  team: options.team,
25
+ buildSecret: options.buildSecret,
25
26
  cache: { enabled: false }
26
27
  });
27
28
  }
@@ -46,7 +47,8 @@ async function loadSiteContent(site, options = {}) {
46
47
  if (!slug) return null;
47
48
  const response = await createPublicClient({
48
49
  env: options.env,
49
- team: options.team ?? site.team?.slug ?? void 0
50
+ team: options.team ?? site.team?.slug ?? void 0,
51
+ buildSecret: options.buildSecret
50
52
  }).content.getPublic(slug);
51
53
  return response.ok ? response.data : null;
52
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/sites",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Shared helpers for JoAi-managed multi-tenant websites",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,9 +35,9 @@
35
35
  "test": "jest --config jest.config.js"
36
36
  },
37
37
  "dependencies": {
38
- "@joai/core": "^5.3.5",
39
- "@joai/react": "^1.0.4",
40
- "@joai/sdk": "^12.1.0"
38
+ "@joai/core": "^5.4.5",
39
+ "@joai/react": "^1.0.5",
40
+ "@joai/sdk": "^13.1.3"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "next": ">=15.0.0",