@acms-subir/client 0.1.10 → 0.1.11

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/README.md CHANGED
@@ -29,7 +29,7 @@ the cache and transport configuration with the original client.
29
29
 
30
30
  | Method | Options / behavior |
31
31
  | --- | --- |
32
- | `site()`, `theme()`, `home()` | Identity, tokens, resolved homepage |
32
+ | `site()`, `theme()`, `home()` | Identity (including `legal.privacy` / `legal.terms` URLs to link in the app), tokens, resolved homepage |
33
33
  | `page(slug, opts)` | Resolved page including sections; nested slugs supported |
34
34
  | `content(opts)` | `kind`, `collection`, `q`, `page`, `limit`, `cursor` |
35
35
  | `contentById(id, opts)` | Optional `kind` to disambiguate imported IDs |
package/dist/types.d.ts CHANGED
@@ -36,6 +36,10 @@ export type Site = {
36
36
  "links": boolean;
37
37
  "live": boolean;
38
38
  };
39
+ "legal": {
40
+ "privacy": string | null;
41
+ "terms": string | null;
42
+ };
39
43
  "apiVersion": 1;
40
44
  };
41
45
  export type Theme = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acms-subir/client",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Typed, dependency-free client for the ACMS public mobile API.",
5
5
  "type": "module",
6
6
  "license": "MIT",