@ouronet/talos-registry 1.3.0 → 1.4.0

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/TOOLTIP-CANON.md CHANGED
@@ -95,9 +95,21 @@ header comment. The claim had been *inferred* from "this is not an Ouronet opera
95
95
  nothing about who pays the host chain — and it was wrong in the direction that matters, telling a
96
96
  user they were about to spend when they were not.
97
97
 
98
- **Render native with a gold perimeter.** The gold is semantic, not decorative: it means *nothing
99
- here prices this call*. And say what is missing rather than leaving the cost panel empty — an
100
- empty panel reads as "the price failed to load".
98
+ **Make the two visually distinct — the palette is yours.** The distinction is mandatory because
99
+ the two differ in what they cost and what can be previewed; the specific colour is presentation,
100
+ and this package does not get a vote on your design language. A rule that mandates a palette in
101
+ someone else's application is a rule that gets ignored, and an ignored rule weakens the ones that
102
+ matter.
103
+
104
+ In practice:
105
+
106
+ | | native (`coin.*`) | Ouronet (`ouronet-ns.*`) |
107
+ |---|---|---|
108
+ | OuronetUI | gold `#ceac5f` | blue `#3b82f6` |
109
+ | Codex | *its own* | violet |
110
+
111
+ Whatever you choose, make it carry meaning rather than decoration, and **say what is missing**
112
+ rather than leaving the cost panel empty — an empty panel reads as "the price failed to load".
101
113
 
102
114
  Suggested footer, which is what OuronetUI ships:
103
115
 
package/dist/tooltip.d.ts CHANGED
@@ -25,7 +25,15 @@ export interface TooltipPreview {
25
25
  call: string;
26
26
  }
27
27
  export interface TooltipModel {
28
- /** `native` renders with a gold perimeter and no cost section -- rule 4. */
28
+ /**
29
+ * Which world this call belongs to -- rule 4.
30
+ *
31
+ * A renderer MUST make the two visually distinct, because they differ in what they cost and
32
+ * what can be previewed. It is NOT told how: OuronetUI uses gold for native and blue for
33
+ * Ouronet, the Codex uses violet, and both are conformant. Mandating a palette in a package
34
+ * consumed by applications with their own design languages would be the kind of rule that gets
35
+ * ignored, and a rule that gets ignored weakens the ones that matter.
36
+ */
29
37
  kind: "ouronet" | "native";
30
38
  /** fully qualified execution, as it would be typed in a transaction. */
31
39
  exec: string;
package/dist/tooltip.js CHANGED
@@ -24,8 +24,8 @@
24
24
  *
25
25
  * 4. NATIVE IS NOT OURONET, and the difference is narrow. A `coin.*` call has no INFO_ preview
26
26
  * and collects no IGNIS. Gas IS still sponsored -- claiming otherwise tells a user they are
27
- * about to spend when they are not. Render native with a gold perimeter so the two are never
28
- * confused, and say what is actually different rather than inventing a difference.
27
+ * about to spend when they are not. The two MUST be distinguishable at a glance; HOW is the
28
+ * implementation's choice. `kind` is the canon; the palette is not.
29
29
  *
30
30
  * 5. A GHOST IS NOT DATA. An unresolved argument must LOOK unresolved, and a tooltip whose
31
31
  * arguments are placeholders must not fire the preview read at all: the answer is a foregone
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouronet/talos-registry",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "The Ouronet callable surface, generated from the deployed contracts. Supply values; never type a function name.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",