@agent-factory-platform/ui-kit 0.3.0 → 0.5.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.
@@ -0,0 +1,2 @@
1
+ import { installUiFocusModality } from "./lib/focus-modality";
2
+ export { installUiFocusModality };
@@ -0,0 +1,17 @@
1
+ const i = "data-af-input-modality", o = Symbol.for("agent-factory.ui-kit.focus-modality");
2
+ function u() {
3
+ if (typeof document > "u") return;
4
+ const e = globalThis;
5
+ if (e[o]) return;
6
+ e[o] = !0;
7
+ const n = (t) => {
8
+ document.documentElement.setAttribute(i, t);
9
+ };
10
+ document.addEventListener("pointerdown", () => n("pointer"), !0), document.addEventListener("keydown", (t) => {
11
+ ["Shift", "Control", "Alt", "Meta"].includes(t.key) || n("keyboard");
12
+ }, !0);
13
+ }
14
+ u();
15
+ export {
16
+ u as installUiFocusModality
17
+ };
package/dist/index.d.ts CHANGED
@@ -64,4 +64,3 @@ export type { UiKitCategory, UiKitComponentManifestEntry } from "./manifest";
64
64
  export { UI_KIT_COMPONENT_API } from "./component-api";
65
65
  export type { UiKitComponentApi, UiKitComponentApiEntry, UiKitComponentApiProp } from "./component-api";
66
66
  export { ThemeProvider, UI_THEME_ACCENTS, UI_THEME_BRANDS, UI_THEME_DEFAULTS, UI_THEME_NEUTRALS, UI_THEME_SEMANTICS, applyUiThemeSettings, normalizeUiThemeSettings, uiThemeStyle, useUiTheme, type UiThemeMode, type UiThemeDataStyle, type UiThemeEffect, type UiThemeMotion, type UiThemeShape, type UiThemeSettings, type UiThemeSolidStyle, type UiThemeSurface, } from "./theme";
67
- import "./lib/focus-modality";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-factory-platform/ui-kit",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Themeable, product-neutral React components and semantic styles for Agent and Docs applications.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
@@ -19,7 +19,8 @@
19
19
  ],
20
20
  "type": "module",
21
21
  "sideEffects": [
22
- "./dist/ui-kit.css"
22
+ "./dist/ui-kit.css",
23
+ "./dist/focus-modality.js"
23
24
  ],
24
25
  "exports": {
25
26
  ".": {
@@ -35,7 +36,8 @@
35
36
  "./component-api": {
36
37
  "types": "./dist/component-api.d.ts",
37
38
  "import": "./dist/component-api.js"
38
- }
39
+ },
40
+ "./focus-modality": "./dist/focus-modality.js"
39
41
  },
40
42
  "peerDependencies": {
41
43
  "react": "^19.0.0",