@agent-native/toolkit 0.4.2 → 0.4.4

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 (2) hide show
  1. package/dist/styles.css +11 -9
  2. package/package.json +35 -5
package/dist/styles.css CHANGED
@@ -1,9 +1,9 @@
1
1
  /*
2
- * Registers @agent-native/toolkit's compiled components with Tailwind so apps
3
- * that render toolkit UI (dropdowns, dialogs, popovers, etc.) generate the
4
- * classes those components use. Without this, classes that appear ONLY inside
5
- * toolkit components (e.g. the dropdown content's `z-[250]` and enter/exit
6
- * animations) are never generated, and the components render unstyled/invisible.
2
+ * Registers @agent-native/toolkit components with Tailwind so apps that render
3
+ * toolkit UI (dropdowns, dialogs, popovers, etc.) generate the classes those
4
+ * components use. Without this, classes that appear ONLY inside toolkit
5
+ * components (e.g. the dropdown content's `z-[250]` and enter/exit animations)
6
+ * are never generated, and menus/overlays stack under raised app surfaces.
7
7
  *
8
8
  * Import in an app's `app/global.css` AFTER `@import "tailwindcss";`, alongside
9
9
  * the core stylesheet:
@@ -12,8 +12,10 @@
12
12
  * @import "@agent-native/core/styles/agent-native.css";
13
13
  * @import "@agent-native/toolkit/styles.css";
14
14
  *
15
- * The @source path is self-relative to this file's shipped location in `dist/`,
16
- * so it is robust to install layout mirroring @agent-native/core's
17
- * agent-native.css. Do NOT reach into node_modules from app CSS instead.
15
+ * Paths are self-relative to this file:
16
+ * - Monorepo / Vite workspace alias: this file is served from `src/`, so scan
17
+ * sibling TypeScript sources (dist/ is gitignored and skipped by Tailwind).
18
+ * - Published package: this file ships at `dist/styles.css`, so also scan
19
+ * compiled `.js` next to it for consumers that only install `dist/`.
18
20
  */
19
- @source "./**/*.js";
21
+ @source "./**/*.{js,ts,tsx}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/toolkit",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "Reusable app-building UI and helpers for Agent-Native apps.",
5
5
  "homepage": "https://github.com/BuilderIO/agent-native#readme",
6
6
  "bugs": {
@@ -22,76 +22,106 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
+ "browser": "./dist/index.js",
26
+ "development": "./dist/index.js",
25
27
  "import": "./dist/index.js",
26
28
  "default": "./dist/index.js"
27
29
  },
28
30
  "./app-shell": {
29
31
  "types": "./dist/app-shell/index.d.ts",
32
+ "browser": "./dist/app-shell/index.js",
33
+ "development": "./dist/app-shell/index.js",
30
34
  "import": "./dist/app-shell/index.js",
31
35
  "default": "./dist/app-shell/index.js"
32
36
  },
33
37
  "./app-shell/*": {
34
38
  "types": "./dist/app-shell/*.d.ts",
39
+ "browser": "./dist/app-shell/*.js",
40
+ "development": "./dist/app-shell/*.js",
35
41
  "import": "./dist/app-shell/*.js",
36
42
  "default": "./dist/app-shell/*.js"
37
43
  },
38
44
  "./collab-ui": {
39
45
  "types": "./dist/collab-ui/index.d.ts",
46
+ "browser": "./dist/collab-ui/index.js",
47
+ "development": "./dist/collab-ui/index.js",
40
48
  "import": "./dist/collab-ui/index.js",
41
49
  "default": "./dist/collab-ui/index.js"
42
50
  },
43
51
  "./collab-ui/*": {
44
52
  "types": "./dist/collab-ui/*.d.ts",
53
+ "browser": "./dist/collab-ui/*.js",
54
+ "development": "./dist/collab-ui/*.js",
45
55
  "import": "./dist/collab-ui/*.js",
46
56
  "default": "./dist/collab-ui/*.js"
47
57
  },
48
58
  "./hooks": {
49
59
  "types": "./dist/hooks/index.d.ts",
60
+ "browser": "./dist/hooks/index.js",
61
+ "development": "./dist/hooks/index.js",
50
62
  "import": "./dist/hooks/index.js",
51
63
  "default": "./dist/hooks/index.js"
52
64
  },
53
65
  "./hooks/*": {
54
66
  "types": "./dist/hooks/*.d.ts",
67
+ "browser": "./dist/hooks/*.js",
68
+ "development": "./dist/hooks/*.js",
55
69
  "import": "./dist/hooks/*.js",
56
70
  "default": "./dist/hooks/*.js"
57
71
  },
58
72
  "./onboarding": {
59
73
  "types": "./dist/onboarding/index.d.ts",
74
+ "browser": "./dist/onboarding/index.js",
75
+ "development": "./dist/onboarding/index.js",
60
76
  "import": "./dist/onboarding/index.js",
61
77
  "default": "./dist/onboarding/index.js"
62
78
  },
63
79
  "./onboarding/*": {
64
80
  "types": "./dist/onboarding/*.d.ts",
81
+ "browser": "./dist/onboarding/*.js",
82
+ "development": "./dist/onboarding/*.js",
65
83
  "import": "./dist/onboarding/*.js",
66
84
  "default": "./dist/onboarding/*.js"
67
85
  },
68
86
  "./provider": {
69
87
  "types": "./dist/provider.d.ts",
88
+ "browser": "./dist/provider.js",
89
+ "development": "./dist/provider.js",
70
90
  "import": "./dist/provider.js",
71
91
  "default": "./dist/provider.js"
72
92
  },
73
93
  "./sharing": {
74
94
  "types": "./dist/sharing/index.d.ts",
95
+ "browser": "./dist/sharing/index.js",
96
+ "development": "./dist/sharing/index.js",
75
97
  "import": "./dist/sharing/index.js",
76
98
  "default": "./dist/sharing/index.js"
77
99
  },
78
100
  "./sharing/*": {
79
101
  "types": "./dist/sharing/*.d.ts",
102
+ "browser": "./dist/sharing/*.js",
103
+ "development": "./dist/sharing/*.js",
80
104
  "import": "./dist/sharing/*.js",
81
105
  "default": "./dist/sharing/*.js"
82
106
  },
83
107
  "./ui": {
84
108
  "types": "./dist/ui/index.d.ts",
109
+ "browser": "./dist/ui/index.js",
110
+ "development": "./dist/ui/index.js",
85
111
  "import": "./dist/ui/index.js",
86
112
  "default": "./dist/ui/index.js"
87
113
  },
88
114
  "./ui/*": {
89
115
  "types": "./dist/ui/*.d.ts",
116
+ "browser": "./dist/ui/*.js",
117
+ "development": "./dist/ui/*.js",
90
118
  "import": "./dist/ui/*.js",
91
119
  "default": "./dist/ui/*.js"
92
120
  },
93
121
  "./utils": {
94
122
  "types": "./dist/utils.d.ts",
123
+ "browser": "./dist/utils.js",
124
+ "development": "./dist/utils.js",
95
125
  "import": "./dist/utils.js",
96
126
  "default": "./dist/utils.js"
97
127
  },
@@ -148,15 +178,15 @@
148
178
  "devDependencies": {
149
179
  "@types/react": "^19.2.14",
150
180
  "@types/react-dom": "^19.2.3",
151
- "@typescript/native-preview": "7.0.0-dev.20260624.1",
152
- "typescript": "^6.0.3"
181
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
182
+ "typescript-7": "npm:typescript@^7.0.2"
153
183
  },
154
184
  "peerDependencies": {
155
185
  "react": "^19.0.0",
156
186
  "react-dom": "^19.0.0"
157
187
  },
158
188
  "scripts": {
159
- "build": "tsgo && node scripts/finalize-build.mjs",
160
- "typecheck": "tsgo --noEmit"
189
+ "build": "tsc && node scripts/finalize-build.mjs",
190
+ "typecheck": "tsc --noEmit"
161
191
  }
162
192
  }