@hanzo/gui 4.7.3 → 4.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/gui",
3
- "version": "4.7.3",
3
+ "version": "4.8.0",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "description": "Style and UI for React (web and native) meet an optimizing compiler",
6
6
  "repository": {
@@ -79,29 +79,28 @@
79
79
  "pub": "./scripts/publish.sh"
80
80
  },
81
81
  "dependencies": {
82
- "@hanzogui/compose-refs": "workspace:*",
83
- "@hanzogui/config-default": "workspace:*",
84
- "@hanzogui/constants": "workspace:*",
85
- "@hanzogui/core": "workspace:*",
86
- "@hanzogui/create-context": "workspace:*",
87
- "@hanzogui/element": "workspace:*",
88
- "@hanzogui/fake-react-native": "workspace:*",
89
- "@hanzogui/get-button-sized": "workspace:*",
90
- "@hanzogui/get-font-sized": "workspace:*",
91
- "@hanzogui/get-token": "workspace:*",
92
- "@hanzogui/helpers": "workspace:*",
93
- "@hanzogui/polyfill-dev": "workspace:*",
94
- "@hanzogui/react-native-media-driver": "workspace:*",
95
- "@hanzogui/theme": "workspace:*",
96
- "@hanzogui/use-controllable-state": "workspace:*",
97
- "@hanzogui/use-debounce": "workspace:*",
98
- "@hanzogui/use-force-update": "workspace:*",
99
- "@hanzogui/use-window-dimensions": "workspace:*",
100
- "@hanzogui/font-size": "workspace:*",
101
- "@hanzogui/shorthands": "workspace:*",
82
+ "@hanzogui/compose-refs": "4.4.0",
83
+ "@hanzogui/config-default": "4.4.0",
84
+ "@hanzogui/constants": "4.4.0",
85
+ "@hanzogui/core": "4.4.0",
86
+ "@hanzogui/create-context": "4.4.0",
87
+ "@hanzogui/element": "4.4.0",
88
+ "@hanzogui/get-button-sized": "4.4.0",
89
+ "@hanzogui/get-font-sized": "4.4.0",
90
+ "@hanzogui/get-token": "4.4.0",
91
+ "@hanzogui/helpers": "4.4.0",
92
+ "@hanzogui/polyfill-dev": "4.4.0",
93
+ "@hanzogui/react-native-media-driver": "4.4.0",
94
+ "@hanzogui/theme": "4.4.0",
95
+ "@hanzogui/use-controllable-state": "4.4.0",
96
+ "@hanzogui/use-debounce": "4.4.0",
97
+ "@hanzogui/use-force-update": "4.4.0",
98
+ "@hanzogui/use-window-dimensions": "4.4.0",
99
+ "@hanzogui/font-size": "4.4.0",
100
+ "@hanzogui/shorthands": "4.4.0",
102
101
  "@hanzogui/shapes": "3.0.2",
103
102
  "@hanzogui/stacks": "3.0.2",
104
- "@hanzogui/web": "workspace:*",
103
+ "@hanzogui/web": "4.4.0",
105
104
  "@hanzogui/spacer": "3.0.2",
106
105
  "@hanzogui/animate-presence": "3.0.2",
107
106
  "@hanzogui/button": "3.0.3",
@@ -152,10 +151,10 @@
152
151
  "@hanzogui/radio-headless": "3.0.2",
153
152
  "@hanzogui/switch-headless": "3.0.2",
154
153
  "@hanzogui/tabs-headless": "3.0.2",
155
- "@hanzogui/theme-builder": "workspace:*"
154
+ "@hanzogui/theme-builder": "4.4.0"
156
155
  },
157
156
  "devDependencies": {
158
- "@hanzogui/build": "workspace:*",
157
+ "@hanzogui/build": "4.4.0",
159
158
  "react": ">=19",
160
159
  "react-native": "0.83.2",
161
160
  "react-native-web": "^0.21.0"
@@ -0,0 +1,169 @@
1
+ {
2
+ "name": "@hanzo/gui",
3
+ "version": "4.8.0",
4
+ "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
+ "description": "Style and UI for React (web and native) meet an optimizing compiler",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/hanzoai/gui.git",
9
+ "directory": "code/ui/gui"
10
+ },
11
+ "source": "src/index.ts",
12
+ "type": "module",
13
+ "sideEffects": [
14
+ "setup.js"
15
+ ],
16
+ "main": "dist/cjs",
17
+ "module": "dist/esm",
18
+ "types": "./types/index.d.ts",
19
+ "exports": {
20
+ "./package.json": "./package.json",
21
+ ".": {
22
+ "types": "./types/index.d.ts",
23
+ "react-native": "./dist/esm/index.native.js",
24
+ "browser": "./dist/esm/index.mjs",
25
+ "module": "./dist/esm/index.mjs",
26
+ "import": "./dist/esm/index.mjs",
27
+ "require": "./dist/cjs/index.cjs",
28
+ "default": "./dist/esm/index.mjs"
29
+ },
30
+ "./react-native-web": {
31
+ "types": "./types/index.d.ts",
32
+ "react-native": "./dist/esm/react-native-web.native.js",
33
+ "browser": "./dist/esm/react-native-web.mjs",
34
+ "module": "./dist/esm/react-native-web.mjs",
35
+ "import": "./dist/esm/react-native-web.mjs",
36
+ "require": "./dist/cjs/react-native-web.cjs",
37
+ "default": "./dist/esm/react-native-web.mjs"
38
+ },
39
+ "./web": {
40
+ "types": "./types/index.d.ts",
41
+ "react-native": "./dist/esm/index.native.js",
42
+ "browser": "./dist/esm/index.mjs",
43
+ "module": "./dist/esm/index.mjs",
44
+ "import": "./dist/esm/index.mjs",
45
+ "require": "./dist/cjs/index.cjs",
46
+ "default": "./dist/esm/index.mjs"
47
+ },
48
+ "./native": {
49
+ "types": "./types/index.d.ts",
50
+ "react-native": "./dist/native.cjs",
51
+ "require": "./dist/native.cjs",
52
+ "default": "./dist/native.cjs"
53
+ },
54
+ "./native-test": {
55
+ "types": "./types/index.d.ts",
56
+ "react-native": "./dist/test.native.js",
57
+ "require": "./dist/test.cjs",
58
+ "default": "./dist/test.cjs"
59
+ },
60
+ "./linear-gradient": {
61
+ "types": "./types/linear-gradient.d.ts",
62
+ "react-native": "./dist/esm/linear-gradient.native.js",
63
+ "browser": "./dist/esm/linear-gradient.mjs",
64
+ "module": "./dist/esm/linear-gradient.mjs",
65
+ "import": "./dist/esm/linear-gradient.mjs",
66
+ "require": "./dist/cjs/linear-gradient.cjs",
67
+ "default": "./dist/esm/linear-gradient.mjs"
68
+ }
69
+ },
70
+ "scripts": {
71
+ "build": "hanzo-gui-build",
72
+ "build:all": "cd ../../.. && npx turbo run build --filter=@hanzo/gui --force",
73
+ "afterBuild": "echo 'native bundle skipped - UI packages moved to hanzo/ui'",
74
+ "watch": "hanzo-gui-build --watch",
75
+ "clean": "hanzo-gui-build clean",
76
+ "clean:build": "hanzo-gui-build clean:build",
77
+ "check": "bun run check-circular-deps",
78
+ "check-circular-deps": "npx madge --circular ./src/index.ts",
79
+ "pub": "./scripts/publish.sh"
80
+ },
81
+ "dependencies": {
82
+ "@hanzogui/compose-refs": "workspace:*",
83
+ "@hanzogui/config-default": "workspace:*",
84
+ "@hanzogui/constants": "workspace:*",
85
+ "@hanzogui/core": "workspace:*",
86
+ "@hanzogui/create-context": "workspace:*",
87
+ "@hanzogui/element": "workspace:*",
88
+ "@hanzogui/fake-react-native": "workspace:*",
89
+ "@hanzogui/get-button-sized": "workspace:*",
90
+ "@hanzogui/get-font-sized": "workspace:*",
91
+ "@hanzogui/get-token": "workspace:*",
92
+ "@hanzogui/helpers": "workspace:*",
93
+ "@hanzogui/polyfill-dev": "workspace:*",
94
+ "@hanzogui/react-native-media-driver": "workspace:*",
95
+ "@hanzogui/theme": "workspace:*",
96
+ "@hanzogui/use-controllable-state": "workspace:*",
97
+ "@hanzogui/use-debounce": "workspace:*",
98
+ "@hanzogui/use-force-update": "workspace:*",
99
+ "@hanzogui/use-window-dimensions": "workspace:*",
100
+ "@hanzogui/font-size": "workspace:*",
101
+ "@hanzogui/shorthands": "workspace:*",
102
+ "@hanzogui/shapes": "3.0.2",
103
+ "@hanzogui/stacks": "3.0.2",
104
+ "@hanzogui/web": "workspace:*",
105
+ "@hanzogui/spacer": "3.0.2",
106
+ "@hanzogui/animate-presence": "3.0.2",
107
+ "@hanzogui/button": "3.0.3",
108
+ "@hanzogui/popover": "3.0.2",
109
+ "@hanzogui/radio-group": "3.0.2",
110
+ "@hanzogui/tooltip": "3.0.2",
111
+ "@hanzogui/switch": "3.0.2",
112
+ "@hanzogui/checkbox": "3.0.3",
113
+ "@hanzogui/dialog": "3.0.2",
114
+ "@hanzogui/sheet": "3.0.2",
115
+ "@hanzogui/adapt": "3.0.2",
116
+ "@hanzogui/label": "3.0.2",
117
+ "@hanzogui/input": "3.0.2",
118
+ "@hanzogui/select": "3.0.2",
119
+ "@hanzogui/separator": "3.0.2",
120
+ "@hanzogui/slider": "3.0.2",
121
+ "@hanzogui/tabs": "3.0.2",
122
+ "@hanzogui/toggle-group": "3.0.2",
123
+ "@hanzogui/accordion": "3.0.2",
124
+ "@hanzogui/avatar": "3.0.2",
125
+ "@hanzogui/card": "3.0.2",
126
+ "@hanzogui/form": "3.0.2",
127
+ "@hanzogui/group": "3.0.2",
128
+ "@hanzogui/image": "3.0.2",
129
+ "@hanzogui/list-item": "3.0.3",
130
+ "@hanzogui/portal": "3.0.2",
131
+ "@hanzogui/progress": "3.0.2",
132
+ "@hanzogui/scroll-view": "3.0.2",
133
+ "@hanzogui/spinner": "3.0.2",
134
+ "@hanzogui/text": "3.0.2",
135
+ "@hanzogui/toast": "3.0.2",
136
+ "@hanzogui/visually-hidden": "3.0.2",
137
+ "@hanzogui/z-index-stack": "3.0.2",
138
+ "@hanzogui/focusable": "3.0.2",
139
+ "@hanzogui/focus-scope": "3.0.2",
140
+ "@hanzogui/focus-guard": "3.0.2",
141
+ "@hanzogui/dismissable": "3.0.2",
142
+ "@hanzogui/collection": "3.0.2",
143
+ "@hanzogui/remove-scroll": "3.0.2",
144
+ "@hanzogui/roving-focus": "3.0.2",
145
+ "@hanzogui/popper": "3.0.2",
146
+ "@hanzogui/animate": "3.0.2",
147
+ "@hanzogui/context-menu": "3.0.2",
148
+ "@hanzogui/create-menu": "3.0.2",
149
+ "@hanzogui/elements": "3.0.2",
150
+ "@hanzogui/menu": "3.0.2",
151
+ "@hanzogui/checkbox-headless": "3.0.2",
152
+ "@hanzogui/radio-headless": "3.0.2",
153
+ "@hanzogui/switch-headless": "3.0.2",
154
+ "@hanzogui/tabs-headless": "3.0.2",
155
+ "@hanzogui/theme-builder": "workspace:*"
156
+ },
157
+ "devDependencies": {
158
+ "@hanzogui/build": "workspace:*",
159
+ "react": ">=19",
160
+ "react-native": "0.83.2",
161
+ "react-native-web": "^0.21.0"
162
+ },
163
+ "peerDependencies": {
164
+ "react": ">=19",
165
+ "react-native": "*"
166
+ },
167
+ "module:jsx": "dist/jsx",
168
+ "removeSideEffects": true
169
+ }
@@ -9,12 +9,6 @@ set -euo pipefail
9
9
 
10
10
  VERSION="${1:-patch}"
11
11
 
12
- # Ensure clean working tree
13
- if [ -n "$(git status --porcelain)" ]; then
14
- echo "error: working tree is dirty — commit or stash first" >&2
15
- exit 1
16
- fi
17
-
18
12
  # Bump version
19
13
  npm version "$VERSION" --no-git-tag-version
20
14
 
@@ -29,13 +23,12 @@ const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
29
23
  for (const field of ['dependencies', 'devDependencies']) {
30
24
  const deps = pkg[field] || {};
31
25
  for (const [name, ver] of Object.entries(deps)) {
32
- if (ver.startsWith('workspace:')) {
26
+ if (String(ver).startsWith('workspace:')) {
33
27
  try {
34
28
  const depPkg = require.resolve(name + '/package.json', { paths: [process.cwd() + '/../../..'] });
35
29
  deps[name] = JSON.parse(fs.readFileSync(depPkg, 'utf8')).version;
36
30
  } catch {
37
- // Check npm registry as fallback
38
- console.error('warn: could not resolve ' + name + ' locally, removing from ' + field);
31
+ console.error('warn: could not resolve ' + name + ' locally, removing');
39
32
  delete deps[name];
40
33
  }
41
34
  }
@@ -44,18 +37,14 @@ for (const field of ['dependencies', 'devDependencies']) {
44
37
  fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
45
38
  "
46
39
 
47
- # Commit, tag, publish
48
- git add package.json
49
- git commit -m "v$NEW_VERSION"
50
- git tag "v$NEW_VERSION"
40
+ echo "Resolved workspace refs. Publishing..."
51
41
  npm publish --access public
52
42
 
53
43
  # Restore workspace:* references
54
44
  cp package.json.bak package.json
55
45
  rm package.json.bak
56
- git add package.json
57
- git commit --amend --no-edit
58
46
 
59
47
  echo ""
60
48
  echo "Published @hanzo/gui@$NEW_VERSION"
61
- echo "Run 'git push && git push --tags' to push to origin."
49
+ echo "Commit and tag manually when ready:"
50
+ echo " git add -A && git commit -m 'v$NEW_VERSION' && git tag v$NEW_VERSION"