platform-types 1.10.775 → 1.10.776

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- // Literal read and catalog-seed wire contracts — the surface union and response
3
- // envelopes, so a native client has something to import instead of hand-pinning
4
- // strings it cannot be told about when they change.
2
+ // Literal read wire contracts — the surface union and response envelopes, so a
3
+ // native client has something to import instead of hand-pinning strings it
4
+ // cannot be told about when they change.
5
5
  //
6
6
  // ⚠️ Every rendered string in the mobile client comes through this endpoint, so
7
7
  // a drifted hand-pin here is not one broken screen — it is every screen.
@@ -1,8 +1,15 @@
1
1
  declare global {
2
- interface SeedWebLiteralsResult {
3
- seeded: string[];
4
- skipped: string[];
5
- total: number;
2
+ /**
3
+ * The storefront copy an editor shows: the api's compiled `WEB` default catalog with
4
+ * the stored `GLOBAL → WEB → WEB#{storeId}` layers merged over it, rightmost wins.
5
+ *
6
+ * `provenance` names where each value came from: `'default'` is the compiled catalog
7
+ * (nothing is stored for the key), any other value is the scope whose row holds it.
8
+ * Only keys a tenant can edit appear; a withheld storefront key never does.
9
+ */
10
+ interface ResolvedStorefrontLiterals {
11
+ values: Record<string, string>;
12
+ provenance: Record<string, 'default' | 'GLOBAL' | 'WEB' | `WEB#${string}`>;
6
13
  }
7
14
  /**
8
15
  * One scope's literals, unmerged.
@@ -29,6 +36,13 @@ declare global {
29
36
  layers: LiteralLayer[];
30
37
  /** APP only: live storefront editor copy resolved from registry defaults and this scope chain. */
31
38
  editorLiterals?: ResolvedStorefrontEditorLiterals;
39
+ /**
40
+ * WEB only, on the app (editor) read: every editable storefront key with its default
41
+ * and the stored layers merged over it. The stored rows hold only real edits, so
42
+ * `layers` alone lists no key nobody edited — an editor reads this instead. Never
43
+ * sent by the public storefront read.
44
+ */
45
+ webLiterals?: ResolvedStorefrontLiterals;
32
46
  }
33
47
  /**
34
48
  * Legacy mode — the response when NO `surface` is sent. A single already-merged
package/dist/literals.js CHANGED
@@ -1,6 +1,6 @@
1
- // Literal read and catalog-seed wire contracts — the surface union and response
2
- // envelopes, so a native client has something to import instead of hand-pinning
3
- // strings it cannot be told about when they change.
1
+ // Literal read wire contracts — the surface union and response envelopes, so a
2
+ // native client has something to import instead of hand-pinning strings it
3
+ // cannot be told about when they change.
4
4
  //
5
5
  // ⚠️ Every rendered string in the mobile client comes through this endpoint, so
6
6
  // a drifted hand-pin here is not one broken screen — it is every screen.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.775",
3
+ "version": "1.10.776",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",