@graview/core 0.1.16 → 0.1.18

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.
Files changed (141) hide show
  1. package/README.md +14 -1
  2. package/dist/blocks.d.ts +2 -2
  3. package/dist/blocks.d.ts.map +1 -1
  4. package/dist/blocks.js +1 -1
  5. package/dist/blocks.js.map +1 -1
  6. package/dist/capabilities.js +1 -1
  7. package/dist/capabilities.js.map +1 -1
  8. package/dist/cli/check/relations.d.ts.map +1 -1
  9. package/dist/cli/check/relations.js +27 -0
  10. package/dist/cli/check/relations.js.map +1 -1
  11. package/dist/compiled.d.ts.map +1 -1
  12. package/dist/compiled.js +18 -3
  13. package/dist/compiled.js.map +1 -1
  14. package/dist/conformance/fixtures.d.ts.map +1 -1
  15. package/dist/conformance/fixtures.js +194 -0
  16. package/dist/conformance/fixtures.js.map +1 -1
  17. package/dist/document/blocks.d.ts +11 -1
  18. package/dist/document/blocks.d.ts.map +1 -1
  19. package/dist/document/blocks.js +92 -0
  20. package/dist/document/blocks.js.map +1 -1
  21. package/dist/document/compile.d.ts.map +1 -1
  22. package/dist/document/compile.js +2 -0
  23. package/dist/document/compile.js.map +1 -1
  24. package/dist/document/compiled.d.ts.map +1 -1
  25. package/dist/document/compiled.js +12 -3
  26. package/dist/document/compiled.js.map +1 -1
  27. package/dist/document/describe-coverage.d.ts +1 -1
  28. package/dist/document/describe-coverage.d.ts.map +1 -1
  29. package/dist/document/describe-place.d.ts.map +1 -1
  30. package/dist/document/describe-place.js +8 -3
  31. package/dist/document/describe-place.js.map +1 -1
  32. package/dist/document/diff.d.ts +1 -1
  33. package/dist/document/diff.d.ts.map +1 -1
  34. package/dist/document/diff.js +15 -3
  35. package/dist/document/diff.js.map +1 -1
  36. package/dist/document/edit.d.ts +1 -1
  37. package/dist/document/edit.d.ts.map +1 -1
  38. package/dist/document/edit.js +81 -13
  39. package/dist/document/edit.js.map +1 -1
  40. package/dist/document/expr/evaluate.d.ts +1 -1
  41. package/dist/document/expr/evaluate.d.ts.map +1 -1
  42. package/dist/document/index.d.ts +2 -0
  43. package/dist/document/index.d.ts.map +1 -1
  44. package/dist/document/index.js +1 -0
  45. package/dist/document/index.js.map +1 -1
  46. package/dist/document/page-fields.d.ts +11 -0
  47. package/dist/document/page-fields.d.ts.map +1 -0
  48. package/dist/document/page-fields.js +59 -0
  49. package/dist/document/page-fields.js.map +1 -0
  50. package/dist/document/respell.d.ts +20 -0
  51. package/dist/document/respell.d.ts.map +1 -0
  52. package/dist/document/respell.js +66 -0
  53. package/dist/document/respell.js.map +1 -0
  54. package/dist/document/schema.d.ts +18 -2
  55. package/dist/document/schema.d.ts.map +1 -1
  56. package/dist/document/schema.js +17 -2
  57. package/dist/document/schema.js.map +1 -1
  58. package/dist/document/template.d.ts +1 -1
  59. package/dist/document/template.d.ts.map +1 -1
  60. package/dist/document/to-document.d.ts.map +1 -1
  61. package/dist/document/to-document.js +6 -0
  62. package/dist/document/to-document.js.map +1 -1
  63. package/dist/document/upgrade.d.ts +3 -1
  64. package/dist/document/upgrade.d.ts.map +1 -1
  65. package/dist/document/upgrade.js +6 -3
  66. package/dist/document/upgrade.js.map +1 -1
  67. package/dist/index.d.ts +6 -3
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +3 -2
  70. package/dist/index.js.map +1 -1
  71. package/dist/mutations/form.d.ts +2 -0
  72. package/dist/mutations/form.d.ts.map +1 -1
  73. package/dist/mutations/form.js +1 -1
  74. package/dist/mutations/form.js.map +1 -1
  75. package/dist/mutations/node-ref.d.ts +4 -1
  76. package/dist/mutations/node-ref.d.ts.map +1 -1
  77. package/dist/mutations/node-ref.js +3 -1
  78. package/dist/mutations/node-ref.js.map +1 -1
  79. package/dist/places.d.ts +13 -9
  80. package/dist/places.d.ts.map +1 -1
  81. package/dist/places.js +23 -9
  82. package/dist/places.js.map +1 -1
  83. package/dist/refusal.d.ts +3 -26
  84. package/dist/refusal.d.ts.map +1 -1
  85. package/dist/refusal.js +1 -25
  86. package/dist/refusal.js.map +1 -1
  87. package/dist/refused.d.ts +26 -1
  88. package/dist/refused.d.ts.map +1 -1
  89. package/dist/refused.js +25 -0
  90. package/dist/refused.js.map +1 -1
  91. package/dist/retry.d.ts +52 -0
  92. package/dist/retry.d.ts.map +1 -0
  93. package/dist/retry.js +91 -0
  94. package/dist/retry.js.map +1 -0
  95. package/dist/scaffold/project.d.ts.map +1 -1
  96. package/dist/scaffold/project.js +4 -0
  97. package/dist/scaffold/project.js.map +1 -1
  98. package/dist/scaffold/ui.d.ts.map +1 -1
  99. package/dist/scaffold/ui.js +17 -7
  100. package/dist/scaffold/ui.js.map +1 -1
  101. package/dist/schema/define-node.d.ts +47 -0
  102. package/dist/schema/define-node.d.ts.map +1 -1
  103. package/dist/schema/define-node.js +82 -6
  104. package/dist/schema/define-node.js.map +1 -1
  105. package/dist/schema/types.d.ts +20 -0
  106. package/dist/schema/types.d.ts.map +1 -1
  107. package/dist/search.d.ts +1 -1
  108. package/dist/search.d.ts.map +1 -1
  109. package/dist/search.js +3 -1
  110. package/dist/search.js.map +1 -1
  111. package/dist/sync/conflict.d.ts +1 -1
  112. package/dist/sync/conflict.d.ts.map +1 -1
  113. package/dist/sync/engine.d.ts +2 -10
  114. package/dist/sync/engine.d.ts.map +1 -1
  115. package/dist/sync/engine.js.map +1 -1
  116. package/dist/sync/types.d.ts +9 -0
  117. package/dist/sync/types.d.ts.map +1 -1
  118. package/dist/theme/derive.d.ts.map +1 -1
  119. package/dist/theme/derive.js +2 -3
  120. package/dist/theme/derive.js.map +1 -1
  121. package/dist/theme/fonts.d.ts.map +1 -1
  122. package/dist/theme/fonts.js +2 -1
  123. package/dist/theme/fonts.js.map +1 -1
  124. package/dist/theme/identity.d.ts +83 -0
  125. package/dist/theme/identity.d.ts.map +1 -0
  126. package/dist/theme/identity.js +128 -0
  127. package/dist/theme/identity.js.map +1 -0
  128. package/dist/theme/look.d.ts +24 -4
  129. package/dist/theme/look.d.ts.map +1 -1
  130. package/dist/theme/look.js +29 -5
  131. package/dist/theme/look.js.map +1 -1
  132. package/dist/theme/palettes.d.ts +14 -6
  133. package/dist/theme/palettes.d.ts.map +1 -1
  134. package/dist/theme/palettes.js +60 -52
  135. package/dist/theme/palettes.js.map +1 -1
  136. package/dist/theme/types.d.ts +10 -0
  137. package/dist/theme/types.d.ts.map +1 -1
  138. package/dist/theme/types.js.map +1 -1
  139. package/dist/version.d.ts +1 -1
  140. package/dist/version.js +1 -1
  141. package/package.json +5 -1
@@ -0,0 +1,128 @@
1
+ /*
2
+ * GRAVIEW'S OWN IDENTITY, AS DATA (the design kit, revision 03).
3
+ *
4
+ * Three layers make a Graview app look the way it does, and this file is
5
+ * the first of them:
6
+ *
7
+ * 1. **The identity** (here): En Dash navy and turquoise, paper and ink,
8
+ * Montserrat and its three weights, and the shared-plane symbol. These
9
+ * are Graview's, and they reach an app only through the framework's own
10
+ * defaults (`LIGHT`, `DARK`, `TYPOGRAPHY`, `WEIGHTS`) — never into an
11
+ * app that declared its own brand, and never into a kind's district.
12
+ * 2. **The semantic tokens** (`ThemeTokens`, written as `--graview-*`):
13
+ * ground, panel, ink, accent, warn, edge, the weights and the shape. Every
14
+ * component reads these and nothing else, so it never has to know whose
15
+ * product it is drawing.
16
+ * 3. **The app's overrides** (`Brand`): its name, logo, favicon, palette,
17
+ * faces, weights, radius, density, a hue per kind and the kit.
18
+ *
19
+ * Nothing here touches a DOM, and nothing here is a font file: the faces are
20
+ * NAMED, and a host or a page loads them (`@graview/primitives/montserrat.css`
21
+ * is the framework's optional copy).
22
+ */
23
+ /** The identity's colors, as the kit gives them. Not a palette: `LIGHT` and `DARK` are built from these. */
24
+ export const GRAVIEW_COLORS = Object.freeze({
25
+ /** En Dash navy: the primary ink of the identity, and the light scheme's accent. */
26
+ navy: "#001769",
27
+ /**
28
+ * En Dash turquoise: the symbol's point, and an accent FILL only. It is
29
+ * never text on paper (1.5:1); text on it is navy. Nothing the framework
30
+ * draws by default depends on it: a one-color mark is the whole mark.
31
+ */
32
+ turquoise: "#00e5b9",
33
+ /** The warm surface the light scheme stands on. */
34
+ paper: "#f7f7f2",
35
+ /** Reading text. */
36
+ ink: "#18213a",
37
+ /** Secondary text: 5.8:1 on paper, 6.2:1 on white. */
38
+ muted: "#586174",
39
+ });
40
+ /** The family the identity is set in. Named in `TYPOGRAPHY`; loaded by the host, or by `@graview/primitives/montserrat.css`. */
41
+ export const GRAVIEW_FACE = "Montserrat";
42
+ /**
43
+ * The identity's three weights, for a variable face: large calm headlines,
44
+ * comfortable reading, and short action labels. A face without the
45
+ * in-between weights rounds them as CSS says (450 to 400, 550 to 600).
46
+ */
47
+ export const WEIGHTS = Object.freeze({
48
+ display: 550,
49
+ body: 450,
50
+ label: 600,
51
+ });
52
+ /**
53
+ * The weights a brand that names its own faces gets when it names no
54
+ * weights: the conventional ones, since 450 and 550 only mean something in
55
+ * a variable face, and a static one would round them.
56
+ */
57
+ export const PLAIN_WEIGHTS = Object.freeze({
58
+ display: 600,
59
+ body: 400,
60
+ label: 600,
61
+ });
62
+ /** Display tracking: large headlines are set a little tight. */
63
+ export const DISPLAY_TRACKING = "-0.025em";
64
+ /**
65
+ * How the symbol and the horizontal logo are used (the kit's handoff page).
66
+ * A size is the symbol's displayed height in CSS pixels.
67
+ */
68
+ export const LOGO_RULES = Object.freeze({
69
+ /** The horizontal Graview logo is not drawn narrower than this. */
70
+ minWidth: 140,
71
+ /** Clear space on every side, as a share of the displayed symbol's height. */
72
+ clearSpace: 0.5,
73
+ /** At and under this, the optical micro symbol. */
74
+ microMax: 24,
75
+ /** At and over this, the regular symbol. */
76
+ regularMin: 32,
77
+ /**
78
+ * Between the two, the one that reads more clearly. Measured at 25–31 px
79
+ * at 1x and 2x: the micro's heavier strokes and wider gaps hold up to 27,
80
+ * the regular's finer geometry reads from 28.
81
+ */
82
+ microBelow: 28,
83
+ });
84
+ /*
85
+ * THE SYMBOL, as the kit's outlined masters draw it: two open isometric
86
+ * planes joined by a point. These are the kit's own paths, unchanged, with
87
+ * their fixed colors turned into `currentColor` so an inline copy inherits
88
+ * the ink it stands in, and the point's fill left to `--graview-mark-point`
89
+ * (currentColor when unset: the one-color mark, which is the whole mark).
90
+ */
91
+ const REGULAR = {
92
+ viewBox: "0 0 196 166",
93
+ body: '<g fill="none" stroke="currentColor" stroke-width="8.4" stroke-linejoin="round">' +
94
+ '<path d="M81 63 L15 49 L84 12 H181 L120 56"/>' +
95
+ '<path d="M60 100 L15 127 L101 150 L179 107 L123 98"/>' +
96
+ '<path d="M101 95 V125" stroke-linecap="round"/></g>' +
97
+ '<circle cx="101" cy="74" r="11.7" fill="var(--graview-mark-point, currentColor)"/>',
98
+ };
99
+ const MICRO = {
100
+ viewBox: "0 0 32 32",
101
+ body: '<g fill="none" stroke="currentColor" stroke-width="2.4" stroke-linejoin="round">' +
102
+ '<path d="M13 11 L3 8 L14 3 H29 L21 9"/>' +
103
+ '<path d="M10 18 L3 23 L16.5 28 L29 21 L22 19"/>' +
104
+ '<path d="M16.5 18.5 V23.5" stroke-linecap="round"/></g>' +
105
+ '<circle cx="16.5" cy="13.5" r="2" fill="var(--graview-mark-point, currentColor)"/>',
106
+ };
107
+ /** Which drawing of the symbol a displayed height takes. */
108
+ export function symbolCut(size) {
109
+ return size < LOGO_RULES.microBelow ? "micro" : "regular";
110
+ }
111
+ /**
112
+ * The shared-plane symbol as an inline SVG string, in `currentColor`.
113
+ *
114
+ * Inline so it inherits the color it stands in (an `<img>` of an SVG file
115
+ * does not). Named with `aria-label` rather than a `<title id>`, so drawing
116
+ * it a hundred times on one page never repeats an id.
117
+ */
118
+ export function graviewSymbol(options = {}) {
119
+ const size = options.size ?? 24;
120
+ const cut = symbolCut(size) === "micro" ? MICRO : REGULAR;
121
+ const [, , w, h] = cut.viewBox.split(" ").map(Number);
122
+ const width = Math.round((size * w) / h * 100) / 100;
123
+ const named = options.title
124
+ ? `role="img" aria-label="${options.title.replace(/[&<>"]/g, (c) => `&#${c.charCodeAt(0)};`)}"`
125
+ : 'aria-hidden="true"';
126
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${cut.viewBox}" width="${width}" height="${size}" ${named} focusable="false">${cut.body}</svg>`;
127
+ }
128
+ //# sourceMappingURL=identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/theme/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,4GAA4G;AAC5G,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,oFAAoF;IACpF,IAAI,EAAE,SAAS;IACf;;;;OAIG;IACH,SAAS,EAAE,SAAS;IACpB,mDAAmD;IACnD,KAAK,EAAE,SAAS;IAChB,oBAAoB;IACpB,GAAG,EAAE,SAAS;IACd,sDAAsD;IACtD,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC;AAEH,gIAAgI;AAChI,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;CACX,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;CACX,CAAC,CAAC;AAEH,gEAAgE;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAE3C;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,mEAAmE;IACnE,QAAQ,EAAE,GAAG;IACb,8EAA8E;IAC9E,UAAU,EAAE,GAAG;IACf,mDAAmD;IACnD,QAAQ,EAAE,EAAE;IACZ,4CAA4C;IAC5C,UAA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AC,GAAG,CAAC,GAAG;QAC/F,CAAC,CAAC,oBAAoB,CAAC;IACzB,OAAO,oDAAoD,GAAG,CAAC,OAAO,YAAY,KAAK,aAAa,IAAI,KAAK,KAAK,sBAAsB,GAAG,CAAC,IAAI,QAAQ,CAAC;AAC3J,CAAC"}
@@ -9,8 +9,11 @@ import type { Brand, Scheme } from "./types.js";
9
9
  * for how tight a product is, not five.
10
10
  */
11
11
  export declare const SHAPE: Readonly<{
12
- /** A panel's corner, in pixels. */
13
- radius: 12;
12
+ /**
13
+ * A panel's corner, in pixels. Modest, as the identity asks (the design
14
+ * kit, revision 03): a panel is a sheet with corners, not a capsule.
15
+ */
16
+ radius: 8;
14
17
  /** Padding multiplier. 1 is the framework's own spacing. */
15
18
  density: 1;
16
19
  /** A small corner (a chip, a field) as a share of the panel's, never under `radiusSmallFloor`. */
@@ -27,9 +30,14 @@ export declare const SHAPE: Readonly<{
27
30
  * The framework's own type: the stacks a brand's `typography` overrides.
28
31
  * The display face is the body face unless a brand names one — a brand with
29
32
  * one font is not asked to name it twice.
33
+ *
34
+ * The body names Montserrat, the identity's face, and then the system's.
35
+ * The framework never fetches a font: where the host has not loaded
36
+ * Montserrat (`@graview/primitives/montserrat.css`, or its own copy), the
37
+ * words are set in the reader's system sans, as they always were.
30
38
  */
31
39
  export declare const TYPOGRAPHY: Readonly<{
32
- body: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif";
40
+ body: "\"Montserrat\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif";
33
41
  mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, monospace";
34
42
  }>;
35
43
  /** A brand's shape, every pixel resolved: what `themeCss` writes as `--graview-radius`, `--graview-pad` and the rest. */
@@ -50,8 +58,20 @@ export interface ResolvedTypography {
50
58
  readonly body: string;
51
59
  readonly display: string;
52
60
  readonly mono: string;
61
+ /** What `themeCss` writes as `--graview-weight-display`, `-body` and `-label`. */
62
+ readonly weights: {
63
+ readonly display: number;
64
+ readonly body: number;
65
+ readonly label: number;
66
+ };
53
67
  }
54
- /** The faces a brand sets its words in: its own where it named them, the framework's where it did not. */
68
+ /**
69
+ * The faces a brand sets its words in: its own where it named them, the
70
+ * framework's where it did not. The weights are the brand's where it named
71
+ * them; otherwise the identity's (550, 450, 600) on the framework's own
72
+ * face, and the plain ones (600, 400, 600) on a face the brand chose, since
73
+ * the in-between weights only mean something in a variable face.
74
+ */
55
75
  export declare function typographyOf(brand?: Pick<Brand, "typography">): ResolvedTypography;
56
76
  /** One face of a block, as HSL without its hue: the kind supplies the hue. */
57
77
  export interface IsoFace {
@@ -1 +1 @@
1
- {"version":3,"file":"look.d.ts","sourceRoot":"","sources":["../../src/theme/look.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAiBhD;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK;IAChB,mCAAmC;;IAEnC,4DAA4D;;IAE5D,kGAAkG;;;IAGlG,iDAAiD;;IAEjD,oDAAoD;;IAEpD,6CAA6C;;EAE7C,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;EAGrB,CAAC;AAEH,yHAAyH;AACzH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,aAAa,CAUnE;AAED,qHAAqH;AACrH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,O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MAAM,WAAW,QAAQ;IACvB,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,sCAAsC;IACtC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,2CAA2C;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,uBAAuB;IACvB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AA0BD;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAEjD"}
@@ -1,3 +1,4 @@
1
+ import { GRAVIEW_FACE, PLAIN_WEIGHTS, WEIGHTS } from "./identity.js";
1
2
  /*
2
3
  * THE LOOK, AS DATA (FR-73).
3
4
  *
@@ -22,8 +23,11 @@
22
23
  * for how tight a product is, not five.
23
24
  */
24
25
  export const SHAPE = Object.freeze({
25
- /** A panel's corner, in pixels. */
26
- radius: 12,
26
+ /**
27
+ * A panel's corner, in pixels. Modest, as the identity asks (the design
28
+ * kit, revision 03): a panel is a sheet with corners, not a capsule.
29
+ */
30
+ radius: 8,
27
31
  /** Padding multiplier. 1 is the framework's own spacing. */
28
32
  density: 1,
29
33
  /** A small corner (a chip, a field) as a share of the panel's, never under `radiusSmallFloor`. */
@@ -40,9 +44,14 @@ export const SHAPE = Object.freeze({
40
44
  * The framework's own type: the stacks a brand's `typography` overrides.
41
45
  * The display face is the body face unless a brand names one — a brand with
42
46
  * one font is not asked to name it twice.
47
+ *
48
+ * The body names Montserrat, the identity's face, and then the system's.
49
+ * The framework never fetches a font: where the host has not loaded
50
+ * Montserrat (`@graview/primitives/montserrat.css`, or its own copy), the
51
+ * words are set in the reader's system sans, as they always were.
43
52
  */
44
53
  export const TYPOGRAPHY = Object.freeze({
45
- body: 'ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif',
54
+ body: `"${GRAVIEW_FACE}", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif`,
46
55
  mono: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',
47
56
  });
48
57
  /**
@@ -60,13 +69,28 @@ export function shapeOf(brand) {
60
69
  gap: Math.round(SHAPE.gap * density),
61
70
  });
62
71
  }
63
- /** The faces a brand sets its words in: its own where it named them, the framework's where it did not. */
72
+ /**
73
+ * The faces a brand sets its words in: its own where it named them, the
74
+ * framework's where it did not. The weights are the brand's where it named
75
+ * them; otherwise the identity's (550, 450, 600) on the framework's own
76
+ * face, and the plain ones (600, 400, 600) on a face the brand chose, since
77
+ * the in-between weights only mean something in a variable face.
78
+ */
64
79
  export function typographyOf(brand) {
65
80
  const body = brand?.typography?.body ?? TYPOGRAPHY.body;
81
+ const display = brand?.typography?.display ?? body;
82
+ const own = body === TYPOGRAPHY.body && display === TYPOGRAPHY.body;
83
+ const base = own ? WEIGHTS : PLAIN_WEIGHTS;
84
+ const asked = brand?.typography?.weights;
66
85
  return Object.freeze({
67
86
  body,
68
- display: brand?.typography?.display ?? body,
87
+ display,
69
88
  mono: brand?.typography?.mono ?? TYPOGRAPHY.mono,
89
+ weights: Object.freeze({
90
+ display: asked?.display ?? base.display,
91
+ body: asked?.body ?? base.body,
92
+ label: asked?.label ?? base.label,
93
+ }),
70
94
  });
71
95
  }
72
96
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"look.js","sourceRoot":"","sources":["../../src/theme/look.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC,mCAAmC;IACnC,MAAM,EAAE,EAAE;IACV,4DAA4D;IAC5D,OAAO,EAAE,CAAC;IACV,kGAAkG;IAClG,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,CAAC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AK,EAAE,GAAG,EAAE,CAAC;QAClE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;KACxE,CAAC;CACH,CAAC,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,QAAQ,CAAC,MAAc;IACrC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC"}
@@ -8,23 +8,31 @@ import type { Scheme, ThemeTokens } from "./types.js";
8
8
  * base to build on without reaching into the UI package. A theme is a
9
9
  * declaration, and declarations live here.
10
10
  *
11
+ * Both are built on Graview's identity (`GRAVIEW_COLORS`, the design kit's
12
+ * revision 03): paper and reading ink, with En Dash navy as the accent in
13
+ * daylight. Turquoise is in neither: it is the symbol's point, a fill and
14
+ * never a word, and nothing a scheme draws depends on it.
15
+ *
11
16
  * Two schemes, and they are not inversions of each other. Depth is the thing
12
17
  * being drawn, and depth behaves differently in the two:
13
18
  *
14
- * - **Dark** is a lit control surface. Things at depth lose luminance and
15
- * dissolve into the ground; the accent reads as light, and separation comes
16
- * from glow and a lit edge.
19
+ * - **Dark** is a lit control surface on a deep navy. Things at depth lose
20
+ * luminance and dissolve into the ground; the accent is the navy's own hue
21
+ * made light, so it reads as light rather than as paint, and separation
22
+ * comes from a lit edge.
17
23
  * - **Light** is daylight and paper. Things at depth lose CONTRAST and gain
18
24
  * haze — real atmospheric perspective — and separation comes from soft cast
19
- * shadow, the way objects on a desk separate. Inverting the dark scheme
20
- * would give gray-on-gray mush, because glow does not exist in daylight.
25
+ * shadow, the way objects on a desk separate.
26
+ *
27
+ * Neither paints a wash or a glow behind the scene: the ground is a ground,
28
+ * and the scene standing on it is the picture.
21
29
  *
22
30
  * One rule holds across both: **secondary text is a color, never an
23
31
  * opacity.** Opacity composites against whatever is behind and fails contrast
24
32
  * silently. `checkContrast` measures every pair on both, and axe-core checks
25
33
  * the rendered result on every run of the a11y harness.
26
34
  */
27
- /** A lit control surface. */
35
+ /** A lit control surface, on navy. */
28
36
  export declare const DARK: ThemeTokens;
29
37
  /** Daylight and paper. */
30
38
  export declare const LIGHT: ThemeTokens;
@@ -1 +1 @@
1
- {"version":3,"file":"palettes.d.ts","sourceRoot":"","sources":["../../src/theme/palettes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,6BAA6B;AAC7B,eAAO,MAAM,IAAI,EAAE,WAiClB,CAAC;AAEF,0BAA0B;AAC1B,eAAO,MAAM,KAAK,EAAE,WAsCnB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAgC,CAAC"}
1
+ {"version":3,"file":"palettes.d.ts","sourceRoot":"","sources":["../../src/theme/palettes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,sCAAsC;AACtC,eAAO,MAAM,IAAI,EAAE,WAkClB,CAAC;AAEF,0BAA0B;AAC1B,eAAO,MAAM,KAAK,EAAE,WAkCnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAgC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { GRAVIEW_COLORS } from "./identity.js";
1
2
  /**
2
3
  * The two the framework ships with, as DATA.
3
4
  *
@@ -7,91 +8,98 @@
7
8
  * base to build on without reaching into the UI package. A theme is a
8
9
  * declaration, and declarations live here.
9
10
  *
11
+ * Both are built on Graview's identity (`GRAVIEW_COLORS`, the design kit's
12
+ * revision 03): paper and reading ink, with En Dash navy as the accent in
13
+ * daylight. Turquoise is in neither: it is the symbol's point, a fill and
14
+ * never a word, and nothing a scheme draws depends on it.
15
+ *
10
16
  * Two schemes, and they are not inversions of each other. Depth is the thing
11
17
  * being drawn, and depth behaves differently in the two:
12
18
  *
13
- * - **Dark** is a lit control surface. Things at depth lose luminance and
14
- * dissolve into the ground; the accent reads as light, and separation comes
15
- * from glow and a lit edge.
19
+ * - **Dark** is a lit control surface on a deep navy. Things at depth lose
20
+ * luminance and dissolve into the ground; the accent is the navy's own hue
21
+ * made light, so it reads as light rather than as paint, and separation
22
+ * comes from a lit edge.
16
23
  * - **Light** is daylight and paper. Things at depth lose CONTRAST and gain
17
24
  * haze — real atmospheric perspective — and separation comes from soft cast
18
- * shadow, the way objects on a desk separate. Inverting the dark scheme
19
- * would give gray-on-gray mush, because glow does not exist in daylight.
25
+ * shadow, the way objects on a desk separate.
26
+ *
27
+ * Neither paints a wash or a glow behind the scene: the ground is a ground,
28
+ * and the scene standing on it is the picture.
20
29
  *
21
30
  * One rule holds across both: **secondary text is a color, never an
22
31
  * opacity.** Opacity composites against whatever is behind and fails contrast
23
32
  * silently. `checkContrast` measures every pair on both, and axe-core checks
24
33
  * the rendered result on every run of the a11y harness.
25
34
  */
26
- /** A lit control surface. */
35
+ /** A lit control surface, on navy. */
27
36
  export const DARK = {
28
- // Not black: a deep blue-green that lets the accent read as light rather
29
- // than as paint.
30
- ground: "#080d12",
31
- groundDeep: "#04070a",
32
- wash: "radial-gradient(120% 80% at 50% -10%, var(--graview-glow) 0%, transparent 60%), " +
33
- "radial-gradient(90% 60% at 12% 108%, rgba(111,220,234,0.10) 0%, transparent 62%)",
37
+ // Not black: the identity's navy taken down to a ground, so a block's hue
38
+ // reads as light on it.
39
+ ground: "#0a0f1f",
40
+ groundDeep: "#060914",
41
+ wash: "none",
34
42
  // Nearly opaque, by necessity as much as taste: a captured subtree has
35
43
  // nothing behind it, so `backdrop-filter` is a no-op and a translucent fill
36
44
  // composites against transparency.
37
- panel: "rgba(20, 31, 39, 0.94)",
38
- panelMuted: "rgba(15, 23, 30, 0.92)",
39
- panelWarning: "rgba(44, 30, 17, 0.94)",
40
- edge: "rgba(126, 196, 214, 0.20)",
41
- edgeBright: "rgba(126, 220, 232, 0.55)",
42
- ink: "#e8f3f6",
43
- inkMuted: "#9fb6bf",
44
- inkFaint: "#8aa3ad",
45
- accent: "#6fdcea",
46
- accentDim: "rgba(111, 220, 234, 0.35)",
47
- accentInk: "#06232a",
45
+ panel: "rgba(19, 27, 52, 0.96)",
46
+ panelMuted: "rgba(14, 21, 42, 0.94)",
47
+ panelWarning: "rgba(48, 33, 18, 0.95)",
48
+ edge: "rgba(164, 178, 222, 0.18)",
49
+ edgeBright: "rgba(154, 171, 255, 0.6)",
50
+ ink: "#eef0f6",
51
+ inkMuted: "#aab2c6",
52
+ inkFaint: "#97a0b6",
53
+ // The navy's own hue, lightened until it reads as light: 7.8:1 on the
54
+ // panel, and the navy itself is the text on it (7.3:1).
55
+ accent: "#9aabff",
56
+ accentDim: "rgba(154, 171, 255, 0.32)",
57
+ accentInk: GRAVIEW_COLORS.navy,
48
58
  warn: "#f0a868",
49
59
  good: "#8fdcaa",
50
60
  bad: "#ffa3a3",
51
- glow: "rgba(111, 220, 234, 0.28)",
52
- bar: "linear-gradient(rgba(10,16,21,0.92), rgba(6,10,14,0.78))",
53
- float: "linear-gradient(rgba(14,22,29,0.96), rgba(8,13,18,0.97))",
54
- liftLow: "0 18px 50px -26px #000, inset 0 1px 0 rgba(126,196,214,0.20)",
55
- liftHigh: "0 30px 70px -30px #000",
61
+ glow: "rgba(154, 171, 255, 0.18)",
62
+ bar: "rgba(10, 15, 31, 0.96)",
63
+ // No lighter than the panel: an accent derived to read on the panel reads here too.
64
+ float: "rgba(16, 23, 45, 0.98)",
65
+ liftLow: "0 14px 36px -22px #000",
66
+ liftHigh: "0 28px 64px -30px #000",
56
67
  tintAlpha: 0.2,
57
68
  tintLightness: 52,
58
69
  gridAlpha: 0.35,
59
70
  };
60
71
  /** Daylight and paper. */
61
72
  export const LIGHT = {
62
- // Warm off-white rather than pure white: pure white under a full-bleed
63
- // scene glares, and paper is never #fff.
64
- ground: "#f6f4f0",
65
- groundDeep: "#efece6",
66
- wash: "radial-gradient(120% 80% at 50% -20%, rgba(255,255,255,0.9) 0%, transparent 58%), " +
67
- "radial-gradient(80% 60% at 92% 104%, rgba(12,110,120,0.06) 0%, transparent 60%)",
73
+ // The identity's paper: warm off-white, because pure white under a
74
+ // full-bleed scene glares.
75
+ ground: GRAVIEW_COLORS.paper,
76
+ groundDeep: "#efefe8",
77
+ wash: "none",
68
78
  panel: "#ffffff",
69
- panelMuted: "#faf8f5",
79
+ panelMuted: "#fafaf6",
70
80
  panelWarning: "#fdf4ea",
71
- edge: "rgba(24, 34, 38, 0.10)",
81
+ edge: "rgba(24, 33, 58, 0.12)",
72
82
  /*
73
- * 0.67, not 0.42. A lit edge is not text and still owes 3:1 — an outline
74
- * nobody can see is a panel with no edge — and at 0.42 over white this read
75
- * at 1.93:1. Found by pointing the framework's own contrast check at the
76
- * framework's own palette, which is the argument for having one.
83
+ * A lit edge is not text and still owes 3:1 — an outline nobody can see is
84
+ * a panel with no edge. Navy at 0.6 over white clears it.
77
85
  */
78
- edgeBright: "rgba(12, 110, 120, 0.67)",
79
- ink: "#15201f",
80
- // Both clear 4.5:1 on white and on the muted panel.
81
- inkMuted: "#54605f",
82
- inkFaint: "#67716f",
83
- accent: "#0c6e78",
84
- accentDim: "rgba(12, 110, 120, 0.22)",
86
+ edgeBright: "rgba(0, 23, 105, 0.6)",
87
+ ink: GRAVIEW_COLORS.ink,
88
+ // Both clear 4.5:1 on white, on the muted panel and on paper.
89
+ inkMuted: GRAVIEW_COLORS.muted,
90
+ inkFaint: "#626b7d",
91
+ accent: GRAVIEW_COLORS.navy,
92
+ accentDim: "rgba(0, 23, 105, 0.16)",
85
93
  accentInk: "#ffffff",
86
94
  warn: "#9a5312",
87
95
  good: "#1b6436",
88
96
  bad: "#a1232d",
89
- glow: "rgba(12, 110, 120, 0.10)",
90
- bar: "linear-gradient(rgba(255,255,255,0.96), rgba(250,248,245,0.86))",
91
- float: "linear-gradient(#ffffff, #fcfbf9)",
97
+ glow: "rgba(0, 23, 105, 0.08)",
98
+ bar: "rgba(255, 255, 255, 0.96)",
99
+ float: "#ffffff",
92
100
  // Layered, short-then-long: how something actually casts on a desk.
93
- liftLow: "0 1px 2px rgba(20,30,32,0.06), 0 8px 24px -12px rgba(20,30,32,0.18)",
94
- liftHigh: "0 2px 6px rgba(20,30,32,0.08), 0 28px 60px -24px rgba(20,30,32,0.28)",
101
+ liftLow: "0 1px 2px rgba(24,33,58,0.06), 0 8px 24px -12px rgba(24,33,58,0.16)",
102
+ liftHigh: "0 2px 6px rgba(24,33,58,0.08), 0 24px 56px -24px rgba(24,33,58,0.26)",
95
103
  tintAlpha: 0.16,
96
104
  tintLightness: 46,
97
105
  gridAlpha: 0.5,
@@ -1 +1 @@
1
- {"version":3,"file":"palettes.js","sourceRoot":"","sources":["../../src/theme/palettes.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,6BAA6B;AAC7B,MAAM,CAAC,MAAM,IAAI,GAAgB;IAC/B,yEAAyE;IACzE,iBAAiB;IACjB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,SAAS;IACrB,IAAI,EACF,kFAAkF;QAClF,kFAAkF;IACpF,uEAAuE;IACvE,4EAA4E;IAC5E,mCAAmC;IACnC,KAAK,EAAE,wBAAwB;IAC/B,UAAU,EAAE,wBAAwB;IACpC,YAAY,EAAE,wBAAwB;IACtC,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,2BAA2B;IACvC,GAAG,EAAE,SAAS;IACd,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,2BAA2B;IACtC,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,2BAA2B;IACjC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AQ,EAAE,SAAS;IACnB,MAAM,EAAE,cAAc,CAAC,IAAI;IAC3B,SAAS,EAAE,wBAAwB;IACnC,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,wBAAwB;IAC9B,GAAG,EAAE,2BAA2B;IAChC,KAAK,EAAE,SAAS;IAChB,oEAAoE;IACpE,OAAO,EAAE,qEAAqE;IAC9E,QAAQ,EAAE,sEAAsE;IAChF,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,EAAE;IACjB,SAAS,EAAE,GAAG;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAgC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC"}
@@ -97,6 +97,16 @@ export interface Brand {
97
97
  readonly display?: string;
98
98
  /** Code, ids, anything that must align in columns. */
99
99
  readonly mono?: string;
100
+ /**
101
+ * The three weights (100–900): headings, reading text and action
102
+ * labels. Absent, the identity's 550, 450 and 600 on the framework's
103
+ * own face, and 600, 400 and 600 on a face this brand names.
104
+ */
105
+ readonly weights?: {
106
+ readonly display?: number;
107
+ readonly body?: number;
108
+ readonly label?: number;
109
+ };
100
110
  };
101
111
  /**
102
112
  * How square and how tight this product is.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/theme/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,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** The version of @graview/* that this build is — every package shares it. Written by scripts/write-framework-version.mjs. */
2
- export declare const FRAMEWORK_VERSION = "0.1.16";
2
+ export declare const FRAMEWORK_VERSION = "0.1.18";
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** The version of @graview/* that this build is — every package shares it. Written by scripts/write-framework-version.mjs. */
2
- export const FRAMEWORK_VERSION = "0.1.16";
2
+ export const FRAMEWORK_VERSION = "0.1.18";
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graview/core",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,6 +17,10 @@
17
17
  "types": "./dist/compiled.d.ts",
18
18
  "default": "./dist/compiled.js"
19
19
  },
20
+ "./retry": {
21
+ "types": "./dist/retry.d.ts",
22
+ "default": "./dist/retry.js"
23
+ },
20
24
  "./describe": {
21
25
  "types": "./dist/describe.d.ts",
22
26
  "default": "./dist/describe.js"