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