@ekanos/harness 0.24.0 → 0.25.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.
@@ -89,7 +89,7 @@ function IntegrationBadge({
89
89
  {
90
90
  href: `/integrations/${integration.integration}`,
91
91
  "data-test": `integration-badge-${integration.integration}`,
92
- className: "hover:bg-accent/50 -mx-1 inline-flex rounded-md px-1 py-0.5 transition-colors",
92
+ className: "hover:bg-accent -mx-1 inline-flex rounded-md px-1 py-0.5 transition-colors",
93
93
  children: label
94
94
  }
95
95
  );
@@ -249,7 +249,7 @@ function Field({
249
249
  /* @__PURE__ */ jsxs(
250
250
  "div",
251
251
  {
252
- className: "bg-muted/40 flex flex-col gap-2 rounded-md border p-3",
252
+ className: "bg-muted/50 flex flex-col gap-2 rounded-md border p-3",
253
253
  children: [
254
254
  /* @__PURE__ */ jsx(
255
255
  Field,
@@ -42,7 +42,7 @@ function PreviewNav({
42
42
  className: cn(
43
43
  "flex items-center gap-2 rounded-md px-3 py-2 whitespace-nowrap transition-colors",
44
44
  FOCUS_RING,
45
- active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent/50 text-sm"
45
+ active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent text-sm"
46
46
  ),
47
47
  children: [
48
48
  /* @__PURE__ */ jsx(Icon, { name: surface.icon, className: "h-5 w-5" }),
@@ -77,7 +77,7 @@ function PreviewNav({
77
77
  className: cn(
78
78
  "rounded-md px-3 py-2 whitespace-nowrap transition-colors",
79
79
  FOCUS_RING,
80
- active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent/50 text-sm"
80
+ active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent text-sm"
81
81
  ),
82
82
  children: widget.title
83
83
  },
@@ -189,7 +189,7 @@ function TabLink({ tab, pathname }) {
189
189
  className: cn(
190
190
  "flex items-center gap-2 rounded-md px-3 py-2 whitespace-nowrap transition-colors",
191
191
  FOCUS_RING,
192
- tabActive(pathname, tab) ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent/50 text-sm"
192
+ tabActive(pathname, tab) ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent text-sm"
193
193
  ),
194
194
  children: [
195
195
  /* @__PURE__ */ jsx(Icon, { name: tab.icon, className: "h-4 w-4" }),
@@ -213,7 +213,7 @@ function IntegrationTab({
213
213
  className: cn(
214
214
  "flex items-center gap-2 rounded-md px-3 py-2 whitespace-nowrap transition-colors",
215
215
  FOCUS_RING,
216
- active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent/50 text-sm"
216
+ active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent text-sm"
217
217
  ),
218
218
  children: [
219
219
  integration.integration,
@@ -43,7 +43,7 @@ function ExperiencePageHost() {
43
43
  "aria-current": route.path === sub ? "page" : void 0,
44
44
  className: cn(
45
45
  "rounded-md px-3 py-2 text-sm",
46
- route.path === sub ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent/50"
46
+ route.path === sub ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent"
47
47
  ),
48
48
  children: route.title
49
49
  },
@@ -32,7 +32,7 @@ function RepoFrame({ children }) {
32
32
  className: cn(
33
33
  "flex items-center gap-2 rounded-md px-3 py-2 whitespace-nowrap transition-colors",
34
34
  FOCUS_RING,
35
- active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent/50 text-sm"
35
+ active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent text-sm"
36
36
  ),
37
37
  children: [
38
38
  /* @__PURE__ */ jsx(Icon, { name: tab.icon, className: "h-4 w-4" }),
package/dist/styles.css CHANGED
@@ -60,174 +60,14 @@
60
60
  --font-heading: var(--font-heading-fallback), var(--font-sans);
61
61
  }
62
62
 
63
- /* ── Font Awesome Free: missing-glyph fallback ────────────────────────────────
63
+ /* ── Font Awesome Free ─────────────────────────────────────────────────────────
64
64
  *
65
- * The harness loads Font Awesome FREE (see the note in `RootLayout` — the
66
- * host's Pro webfonts are commercially licensed and cannot ship in a partner's
67
- * scaffold). Free has a smaller glyph set, so a Pro-only name such as
68
- * `fa-aperture` or `fa-clouds-sun` never gets a `--fa` codepoint, `content:
69
- * var(--fa)` computes to nothing, and the icon vanishes with no warning.
70
- *
71
- * `:where()` carries zero specificity, so every real `.fa-<name>{--fa:…}` rule
72
- * in the vendor CSS still wins. Only genuinely-absent glyphs fall through to
73
- * the question mark, which reads as "this glyph isn't in the free font" rather
74
- * than as a broken layout. */
75
- :where(.fa-solid, .fa-regular, .fa-light, .fa-duotone, .fa-thin, .fa) {
76
- --fa: '\f059'; /* fa-circle-question */
77
- }
78
-
79
- /* ── Font Awesome Free: hand `::before` back to the icon font ─────────────────
80
- *
81
- * `@ekanos/ui/theme.css` imports that package's `base.css`, which paints a
82
- * placeholder for a host that loads NO icon font at all:
83
- *
84
- * :where(i[class*='fa-'])::before {
85
- * content: var(--ekanos-icon-fallback, '\25a1');
86
- * font-family: ui-sans-serif, system-ui, sans-serif;
87
- * font-weight: 400;
88
- * opacity: 0.55;
89
- * }
90
- *
91
- * Its comment reasons that `:where()` at (0,0,1) loses to Font Awesome's own
92
- * `:is(…)::before` at (0,1,1), so the rule "contributes nothing" the instant a
93
- * Font Awesome stylesheet is present. That holds for `content` — the ONLY
94
- * property FA declares on the pseudo-element (`content: var(--fa)/""`). It does
95
- * NOT hold for `font-family`, `font-weight` or `opacity`: FA declares the family
96
- * and weight on the ELEMENT (`.fa-solid { font-family: var(--_fa-family);
97
- * font-weight: var(--fa-style, 900) }`), never on `::before`. So those three
98
- * declarations have no competitor at pseudo-element level and win regardless of
99
- * specificity or cascade layer — a declared value always beats an inherited one.
100
- *
101
- * Net effect with FA Free loaded: `content` is the CORRECT codepoint (verified
102
- * in-browser: U+F043 for `fa-droplet`) but it is painted in `system-ui` at
103
- * weight 400, and no system font carries a Private Use Area glyph there — so
104
- * every icon rendered as the browser's missing-glyph hex box (a rectangle of
105
- * tiny hex digits, which reads as a striped/barcode box) at 55% opacity.
106
- *
107
- * Handing the pseudo-element back to `inherit` restores FA's own family and
108
- * weight off the `<i>`, which is correct for solid, regular AND brands without
109
- * naming a family here. `:is()` at (0,1,0) beats the `:where()` it undoes, and
110
- * being unlayered it also outranks the `layer(base)` base.css is imported into.
111
- *
112
- * This lives here, not in `@ekanos/ui`, because the placeholder is correct for
113
- * the case it was written for — a host with no icon font. It is only wrong for a
114
- * host that HAS one, which is this app. */
115
- :is(
116
- .fa,
117
- .fas,
118
- .far,
119
- .fab,
120
- .fa-solid,
121
- .fa-regular,
122
- .fa-brands,
123
- .fa-classic,
124
- .fa-light,
125
- .fa-thin,
126
- .fa-duotone,
127
- .fa-sharp
128
- )::before {
129
- font-family: inherit;
130
- font-weight: inherit;
131
- opacity: 1;
132
- }
133
-
134
- /* The Pro-only FAMILY classes get no `font-family` from the Free stylesheet at
135
- * all, so an `<i class="fa-light fa-spinner">` falls back to the body font and
136
- * renders tofu even when `--fa` holds a codepoint Free ships.
137
- * `IconStyleOverrideProvider value="solid"` in `RootLayout` rewrites these
138
- * for everything under it, but it cannot reach an icon rendered outside that
139
- * subtree — and `@ekanos/ui`'s own `Spinner` hardcodes `fa-light fa-spinner`. Pin
140
- * them to the one weight Free actually ships so they degrade to the solid face
141
- * instead of vanishing. Family is spelled out because `--_fa-family` is set by
142
- * the very FA rule that does not match these classes. */
143
- i:is(.fa-light, .fa-thin, .fa-duotone, .fa-sharp) {
144
- font-family: 'Font Awesome 7 Free';
145
- font-weight: 900;
146
- }
147
-
148
- /* ── Pro glyph names → their nearest Free equivalent ──────────────────────────
149
- *
150
- * The `--fa: '\f059'` rule above is the LAST resort: it keeps an unknown glyph
151
- * legible as a question mark instead of collapsing the layout. But a wall of
152
- * question marks is its own kind of broken-looking, and several of the Pro
153
- * names our example integrations use have an obvious Free counterpart that
154
- * carries the same meaning.
155
- *
156
- * Aliasing those by codepoint here is strictly better than the question mark
157
- * and strictly honest about what it is: an APPROXIMATION for the Free build.
158
- * `fa-cloud` is not `fa-clouds` and `fa-sun` is not `fa-sun-bright` — in
159
- * production, where Ekanos loads Font Awesome Pro, the real Pro rule is (0,1,0)
160
- * and lives in an unlayered vendor sheet, so it wins over the `i.fa-*` selectors
161
- * below and the authored Pro glyph renders exactly as designed. Nothing here
162
- * changes what a correctly licensed host shows.
163
- *
164
- * Keep this list to names our own bundled examples actually reference, or a
165
- * real Pro-only name a partner build hit and reported (the block below it) —
166
- * it is a courtesy for demo/partner surfaces, not a general-purpose
167
- * Pro→Free shim covering every Pro glyph. `src/_impl/__tests__/
168
- * fa-free-icon-names.test.tsx` in `@ekanos/ui` asserts every name here is
169
- * genuinely Free-missing and every codepoint names a real Free glyph. */
170
- i.fa-sun-bright {
171
- --fa: '\f185'; /* fa-sun */
172
- }
173
- i.fa-moon-stars {
174
- --fa: '\f186'; /* fa-moon */
175
- }
176
- i.fa-cloud-fog {
177
- --fa: '\f75f'; /* fa-smog */
178
- }
179
- i.fa-cloud-drizzle {
180
- --fa: '\f73d'; /* fa-cloud-rain */
181
- }
182
- i.fa-cloud-showers {
183
- --fa: '\f740'; /* fa-cloud-showers-heavy */
184
- }
185
- i.fa-clouds {
186
- --fa: '\f0c2'; /* fa-cloud */
187
- }
188
- i.fa-clouds-sun {
189
- --fa: '\f6c4'; /* fa-cloud-sun */
190
- }
191
- i.fa-clouds-moon {
192
- --fa: '\f6c3'; /* fa-cloud-moon */
193
- }
194
- i.fa-cloud-question {
195
- --fa: '\f059'; /* fa-circle-question */
196
- }
197
- i.fa-sparkles {
198
- --fa: '\e2ca'; /* fa-wand-magic-sparkles */
199
- }
200
-
201
- /* Reported by a partner build (2026-09-08): all seven are real Font Awesome
202
- * PRO names (verified against the host's Font Awesome Pro subset) that Free does not
203
- * ship, so every one of them was rendering the bare circle-question fallback
204
- * with no indication why. `fa-circle-question` itself was also reported, but
205
- * it is NOT Free-missing — Free ships it natively at the same codepoint
206
- * (`\f059`) the fallback rule above uses, so a probe that treats "content
207
- * resolved to \f059" as "broken" cannot tell a genuine circle-question icon
208
- * apart from the fallback. That is a probe-methodology caveat, not a shim
209
- * this file can fix. */
210
- i.fa-cloud-snow {
211
- --fa: '\f2dc'; /* fa-snowflake */
212
- }
213
- i.fa-cloud-hail {
214
- --fa: '\f73b'; /* fa-cloud-meatball */
215
- }
216
- i.fa-cloud-hail-mixed {
217
- --fa: '\f73b'; /* fa-cloud-meatball */
218
- }
219
- i.fa-fog {
220
- --fa: '\f75f'; /* fa-smog */
221
- }
222
- i.fa-sun-cloud {
223
- --fa: '\f6c4'; /* fa-cloud-sun */
224
- }
225
- i.fa-moon-cloud {
226
- --fa: '\f6c3'; /* fa-cloud-moon */
227
- }
228
- i.fa-cloud-bolt-sun {
229
- --fa: '\f76c'; /* fa-cloud-bolt */
230
- }
65
+ * The harness loads Font Awesome FREE (the host's Pro webfonts are
66
+ * commercially licensed and cannot ship in a partner's scaffold).
67
+ * `@ekanos/ui`'s `Icon` draws each glyph as an <svg> from Free's own name
68
+ * table, so a Pro-only name draws `fa-circle-question` and a few known ones
69
+ * draw their nearest Free glyph (`@ekanos/ui` `_impl/fa-free-codepoints.ts`).
70
+ * Nothing here needs to patch the icon font. */
231
71
 
232
72
  @layer base {
233
73
  body {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekanos/harness",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "private": false,
5
5
  "description": "The Ekanos integration dev harness — every surface of an integration rendered in real Ekanos chrome, from fixtures, with no Supabase or auth; and, in live mode, a real localhost OAuth loop over your own dev-app credentials.",
6
6
  "homepage": "https://sdk.ekanos.dev/harness/overview",
@@ -72,23 +72,23 @@
72
72
  "access": "public"
73
73
  },
74
74
  "dependencies": {
75
- "@ekanos/integration-schema": "0.24.0",
75
+ "@ekanos/integration-schema": "0.25.0",
76
76
  "@fortawesome/fontawesome-free": "^7.3.1",
77
77
  "next-themes": "0.4.6",
78
78
  "tw-animate-css": "1.4.0",
79
79
  "zod": "4.6.7"
80
80
  },
81
81
  "devDependencies": {
82
- "@ekanos/sdk": "0.24.0",
83
- "@ekanos/ui": "0.24.0",
82
+ "@ekanos/sdk": "0.25.0",
83
+ "@ekanos/ui": "0.25.0",
84
84
  "@kit/tsconfig": "0.1.0",
85
85
  "@tailwindcss/postcss": "4.3.4",
86
- "@tanstack/react-query": "5.105.3",
86
+ "@tanstack/react-query": "5.106.1",
87
87
  "@types/node": "26.6.6",
88
88
  "@types/react": "19.3.0",
89
89
  "@types/react-dom": "19.3.0",
90
90
  "jsdom": "23.0.1",
91
- "next": "16.4.4",
91
+ "next": "16.4.5",
92
92
  "next-intl": "^4.14.9",
93
93
  "react": "19.3.1",
94
94
  "react-dom": "19.3.1",
@@ -99,8 +99,8 @@
99
99
  "vitest": "5.1.0"
100
100
  },
101
101
  "peerDependencies": {
102
- "@ekanos/sdk": "^0.24.0",
103
- "@ekanos/ui": "^0.24.0",
102
+ "@ekanos/sdk": "^0.25.0",
103
+ "@ekanos/ui": "^0.25.0",
104
104
  "@tanstack/react-query": "^5.101.4",
105
105
  "next": "^16.0.0",
106
106
  "next-intl": "^4.14.7",