@silo-code/sdk 0.40.0 → 0.40.2

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/dist/Badge.d.ts CHANGED
@@ -10,10 +10,10 @@ export type { BadgeSize, BadgeTone };
10
10
  * Styled purely via host-provided `.silo-badge*` classes — no stylesheet
11
11
  * import is needed in the extension.
12
12
  *
13
- * Two sizes: the default `"md"` text chip, and `"sm"` — tighter padding at a
14
- * slightly smaller, em-relative size, for counters sitting beside a label
15
- * (a section's row count, a workspace's extra-folder count). `"sm"` scales
16
- * with the surrounding text, so it tracks a side column's own font size.
13
+ * Two sizes: the default `"md"` text chip (chrome−1, roomier pad), and
14
+ * `"sm"` (chrome, pad `0 5px`) for counters beside a label. **Font size is
15
+ * always an absolute chrome token** — never surrounding `em` / parent
16
+ * cascade — so a badge looks the same in every pane.
17
17
  *
18
18
  * @example
19
19
  * ```tsx
package/dist/Badge.js CHANGED
@@ -9,10 +9,10 @@ import { badgeClass } from "./badge-classes.js";
9
9
  * Styled purely via host-provided `.silo-badge*` classes — no stylesheet
10
10
  * import is needed in the extension.
11
11
  *
12
- * Two sizes: the default `"md"` text chip, and `"sm"` — tighter padding at a
13
- * slightly smaller, em-relative size, for counters sitting beside a label
14
- * (a section's row count, a workspace's extra-folder count). `"sm"` scales
15
- * with the surrounding text, so it tracks a side column's own font size.
12
+ * Two sizes: the default `"md"` text chip (chrome−1, roomier pad), and
13
+ * `"sm"` (chrome, pad `0 5px`) for counters beside a label. **Font size is
14
+ * always an absolute chrome token** — never surrounding `em` / parent
15
+ * cascade — so a badge looks the same in every pane.
16
16
  *
17
17
  * @example
18
18
  * ```tsx
@@ -1 +1 @@
1
- {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../src/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAqCvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,WAAW,EACX,SAAS,EACT,OAAO,GACR,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,SAAS,CA2BZ"}
1
+ {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../src/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAqCvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,WAAW,EACX,SAAS,EACT,OAAO,GACR,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,SAAS,CA8BZ"}
@@ -28,7 +28,7 @@ function ClearIcon() {
28
28
  */
29
29
  export function SearchInput({ value, onValueChange, placeholder, autoFocus, onClear, }) {
30
30
  const hasValue = value.length > 0;
31
- return (_jsxs("div", { className: searchInputClass(hasValue), children: [_jsx(SearchIcon, {}), _jsx("input", { type: "text", value: value, placeholder: placeholder, autoFocus: autoFocus, onChange: (e) => onValueChange(e.target.value), autoComplete: "off" }), _jsx("button", { type: "button", className: "silo-search-input-clear", "aria-label": "Clear", tabIndex: hasValue ? 0 : -1, onClick: () => {
31
+ return (_jsxs("div", { className: searchInputClass(hasValue), children: [_jsx(SearchIcon, {}), _jsx("input", { type: "text", value: value, placeholder: placeholder, autoFocus: autoFocus, onChange: (e) => onValueChange(e.target.value), autoComplete: "off", autoCapitalize: "off", autoCorrect: "off", spellCheck: false }), _jsx("button", { type: "button", className: "silo-search-input-clear", "aria-label": "Clear", tabIndex: hasValue ? 0 : -1, onClick: () => {
32
32
  onValueChange("");
33
33
  onClear?.();
34
34
  }, children: _jsx(ClearIcon, {}) })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../src/SearchInput.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,SAAS,UAAU;IACjB,OAAO,CACL,eACE,SAAS,EAAC,wBAAwB,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,iBACC,MAAM,aAElB,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,KAAK,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,GAAG,EACxE,eACE,CAAC,EAAC,gBAAgB,EAClB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,GACrB,IACE,CACP,CAAC;AACJ,CAAC;AAED,SAAS,SAAS;IAChB,OAAO,CACL,cAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,iBAAa,MAAM,YAChE,eACE,CAAC,EAAC,oBAAoB,EACtB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,GACrB,GACE,CACP,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,WAAW,EACX,SAAS,EACT,OAAO,GAQR;IACC,MAAM,QAAQ,GAAG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9
9
  * Size axis for {@link Badge}. `"md"` is the default text chip; `"sm"` is the
10
- * tighter counter chip.
10
+ * tighter counter chip. Both resolve to absolute chrome-token font sizes in
11
+ * the host — never parent `em`.
11
12
  *
12
13
  * @internal
13
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"badge-classes.d.ts","sourceRoot":"","sources":["../src/badge-classes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,QAAQ,GACR,IAAI,GACJ,MAAM,GACN,KAAK,GACL,SAAS,CAAC;AAEd;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,IAAI,GAAE,SAAqB,EAC3B,KAAK,CAAC,EAAE,MAAM,EACd,IAAI,GAAE,SAAgB,GACrB,MAAM,CAIR"}
1
+ {"version":3,"file":"badge-classes.d.ts","sourceRoot":"","sources":["../src/badge-classes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,QAAQ,GACR,IAAI,GACJ,MAAM,GACN,KAAK,GACL,SAAS,CAAC;AAEd;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,IAAI,GAAE,SAAqB,EAC3B,KAAK,CAAC,EAAE,MAAM,EACd,IAAI,GAAE,SAAgB,GACrB,MAAM,CAIR"}
@@ -1 +1 @@
1
- {"version":3,"file":"badge-classes.js","sourceRoot":"","sources":["../src/badge-classes.ts"],"names":[],"mappings":"AAsBA;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CACxB,OAAkB,SAAS,EAC3B,KAAc,EACd,OAAkB,IAAI;IAEtB,MAAM,SAAS,GAAG,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,cAAc,IAAI,EAAE,CAAC;IAC7E,MAAM,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,OAAO,cAAc,SAAS,GAAG,SAAS,EAAE,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"badge-classes.js","sourceRoot":"","sources":["../src/badge-classes.ts"],"names":[],"mappings":"AAuBA;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CACxB,OAAkB,SAAS,EAC3B,KAAc,EACd,OAAkB,IAAI;IAEtB,MAAM,SAAS,GAAG,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,cAAc,IAAI,EAAE,CAAC;IAC7E,MAAM,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,OAAO,cAAc,SAAS,GAAG,SAAS,EAAE,CAAC;AAC/C,CAAC"}
@@ -30,5 +30,11 @@ export interface ContextKeys {
30
30
  * to receive the correct value at runtime without a silent break.
31
31
  */
32
32
  activeViewerId: string | null;
33
+ /**
34
+ * True when an xterm textarea in a terminal panel owns DOM focus — the user
35
+ * is typing into (or has just typed into) a terminal. Used to scope terminal-
36
+ * local keybindings such as Clear (`cmd+k`).
37
+ */
38
+ terminalFocused: boolean;
33
39
  }
34
40
  //# sourceMappingURL=context-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-keys.d.ts","sourceRoot":"","sources":["../src/context-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B"}
1
+ {"version":3,"file":"context-keys.d.ts","sourceRoot":"","sources":["../src/context-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;CAC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silo-code/sdk",
3
- "version": "0.40.0",
3
+ "version": "0.40.2",
4
4
  "description": "The public, types-first SDK for building Silo extensions — the only surface third-party extensions import.",
5
5
  "license": "MIT",
6
6
  "author": "Dave Weaver",
package/src/Badge.tsx CHANGED
@@ -12,10 +12,10 @@ export type { BadgeSize, BadgeTone };
12
12
  * Styled purely via host-provided `.silo-badge*` classes — no stylesheet
13
13
  * import is needed in the extension.
14
14
  *
15
- * Two sizes: the default `"md"` text chip, and `"sm"` — tighter padding at a
16
- * slightly smaller, em-relative size, for counters sitting beside a label
17
- * (a section's row count, a workspace's extra-folder count). `"sm"` scales
18
- * with the surrounding text, so it tracks a side column's own font size.
15
+ * Two sizes: the default `"md"` text chip (chrome−1, roomier pad), and
16
+ * `"sm"` (chrome, pad `0 5px`) for counters beside a label. **Font size is
17
+ * always an absolute chrome token** — never surrounding `em` / parent
18
+ * cascade — so a badge looks the same in every pane.
19
19
  *
20
20
  * @example
21
21
  * ```tsx
@@ -80,6 +80,9 @@ export function SearchInput({
80
80
  autoFocus={autoFocus}
81
81
  onChange={(e) => onValueChange(e.target.value)}
82
82
  autoComplete="off"
83
+ autoCapitalize="off"
84
+ autoCorrect="off"
85
+ spellCheck={false}
83
86
  />
84
87
  <button
85
88
  type="button"
@@ -14,7 +14,8 @@ export type BadgeTone =
14
14
 
15
15
  /**
16
16
  * Size axis for {@link Badge}. `"md"` is the default text chip; `"sm"` is the
17
- * tighter counter chip.
17
+ * tighter counter chip. Both resolve to absolute chrome-token font sizes in
18
+ * the host — never parent `em`.
18
19
  *
19
20
  * @internal
20
21
  */
@@ -30,4 +30,10 @@ export interface ContextKeys {
30
30
  * to receive the correct value at runtime without a silent break.
31
31
  */
32
32
  activeViewerId: string | null;
33
+ /**
34
+ * True when an xterm textarea in a terminal panel owns DOM focus — the user
35
+ * is typing into (or has just typed into) a terminal. Used to scope terminal-
36
+ * local keybindings such as Clear (`cmd+k`).
37
+ */
38
+ terminalFocused: boolean;
33
39
  }