@untemps/react-vocal 2.0.0-beta.1 → 2.0.0-beta.10
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/CHANGELOG.md +78 -0
- package/README.md +54 -20
- package/dist/index.es.js +330 -1914
- package/dist/index.js +2 -4
- package/package.json +14 -7
- package/.github/workflows/publish.yml +0 -32
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/.prettierignore +0 -3
- package/.prettierrc +0 -29
- package/CLAUDE.md +0 -59
- package/assets/icon-idle.png +0 -0
- package/assets/icon-listening.png +0 -0
- package/assets/microphone.png +0 -0
- package/assets/react-vocal.png +0 -0
- package/commitlint.config.js +0 -7
- package/dev/index.html +0 -24
- package/dev/package.json +0 -18
- package/dev/public/index.html +0 -24
- package/dev/src/index.jsx +0 -45
- package/dev/vite.config.js +0 -10
- package/dev/yarn.lock +0 -201
- package/dist/index.es.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.umd.js +0 -9
- package/dist/index.umd.js.map +0 -1
- package/src/components/Icon.jsx +0 -24
- package/src/components/Vocal.jsx +0 -168
- package/src/components/__tests__/Icon.test.jsx +0 -38
- package/src/components/__tests__/Vocal.test.jsx +0 -270
- package/src/components/__tests__/VocalWithMockedUseVocal.test.jsx +0 -38
- package/src/components/__tests__/__snapshots__/Icon.test.jsx.snap +0 -21
- package/src/components/__tests__/__snapshots__/Vocal.test.jsx.snap +0 -28
- package/src/hooks/__tests__/useCommands.test.js +0 -64
- package/src/hooks/__tests__/useTimeout.test.js +0 -69
- package/src/hooks/__tests__/useVocal.test.js +0 -197
- package/src/hooks/useCommands.js +0 -21
- package/src/hooks/useTimeout.js +0 -21
- package/src/hooks/useVocal.js +0 -56
- package/src/index.js +0 -7
- package/vite.config.js +0 -35
- package/vitest.setup.js +0 -71
package/dev/yarn.lock
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
2
|
-
# yarn lockfile v1
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"@rollup/plugin-replace@^2.3.3":
|
|
6
|
-
version "2.3.3"
|
|
7
|
-
resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.3.3.tgz#cd6bae39444de119f5d905322b91ebd4078562e7"
|
|
8
|
-
integrity sha512-XPmVXZ7IlaoWaJLkSCDaa0Y6uVo5XQYHhiMFzOd5qSv5rE+t/UJToPIOE56flKIxBFQI27ONsxb7dqHnwSsjKQ==
|
|
9
|
-
dependencies:
|
|
10
|
-
"@rollup/pluginutils" "^3.0.8"
|
|
11
|
-
magic-string "^0.25.5"
|
|
12
|
-
|
|
13
|
-
"@rollup/pluginutils@^3.0.8":
|
|
14
|
-
version "3.1.0"
|
|
15
|
-
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
|
|
16
|
-
integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==
|
|
17
|
-
dependencies:
|
|
18
|
-
"@types/estree" "0.0.39"
|
|
19
|
-
estree-walker "^1.0.1"
|
|
20
|
-
picomatch "^2.2.2"
|
|
21
|
-
|
|
22
|
-
"@types/estree@0.0.39":
|
|
23
|
-
version "0.0.39"
|
|
24
|
-
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
|
|
25
|
-
integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==
|
|
26
|
-
|
|
27
|
-
anymatch@~3.1.1:
|
|
28
|
-
version "3.1.1"
|
|
29
|
-
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142"
|
|
30
|
-
integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==
|
|
31
|
-
dependencies:
|
|
32
|
-
normalize-path "^3.0.0"
|
|
33
|
-
picomatch "^2.0.4"
|
|
34
|
-
|
|
35
|
-
async-limiter@~1.0.0:
|
|
36
|
-
version "1.0.1"
|
|
37
|
-
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd"
|
|
38
|
-
integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==
|
|
39
|
-
|
|
40
|
-
binary-extensions@^2.0.0:
|
|
41
|
-
version "2.1.0"
|
|
42
|
-
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.1.0.tgz#30fa40c9e7fe07dbc895678cd287024dea241dd9"
|
|
43
|
-
integrity sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==
|
|
44
|
-
|
|
45
|
-
braces@~3.0.2:
|
|
46
|
-
version "3.0.3"
|
|
47
|
-
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"
|
|
48
|
-
integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
|
|
49
|
-
dependencies:
|
|
50
|
-
fill-range "^7.1.1"
|
|
51
|
-
|
|
52
|
-
chokidar@^3.3.0:
|
|
53
|
-
version "3.4.2"
|
|
54
|
-
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.2.tgz#38dc8e658dec3809741eb3ef7bb0a47fe424232d"
|
|
55
|
-
integrity sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==
|
|
56
|
-
dependencies:
|
|
57
|
-
anymatch "~3.1.1"
|
|
58
|
-
braces "~3.0.2"
|
|
59
|
-
glob-parent "~5.1.0"
|
|
60
|
-
is-binary-path "~2.1.0"
|
|
61
|
-
is-glob "~4.0.1"
|
|
62
|
-
normalize-path "~3.0.0"
|
|
63
|
-
readdirp "~3.4.0"
|
|
64
|
-
optionalDependencies:
|
|
65
|
-
fsevents "~2.1.2"
|
|
66
|
-
|
|
67
|
-
estree-walker@^1.0.1:
|
|
68
|
-
version "1.0.1"
|
|
69
|
-
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700"
|
|
70
|
-
integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==
|
|
71
|
-
|
|
72
|
-
fill-range@^7.1.1:
|
|
73
|
-
version "7.1.1"
|
|
74
|
-
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
|
|
75
|
-
integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
|
|
76
|
-
dependencies:
|
|
77
|
-
to-regex-range "^5.0.1"
|
|
78
|
-
|
|
79
|
-
fsevents@~2.1.2:
|
|
80
|
-
version "2.1.3"
|
|
81
|
-
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e"
|
|
82
|
-
integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==
|
|
83
|
-
|
|
84
|
-
glob-parent@~5.1.0:
|
|
85
|
-
version "5.1.2"
|
|
86
|
-
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
|
|
87
|
-
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
|
|
88
|
-
dependencies:
|
|
89
|
-
is-glob "^4.0.1"
|
|
90
|
-
|
|
91
|
-
is-binary-path@~2.1.0:
|
|
92
|
-
version "2.1.0"
|
|
93
|
-
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
|
|
94
|
-
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
|
|
95
|
-
dependencies:
|
|
96
|
-
binary-extensions "^2.0.0"
|
|
97
|
-
|
|
98
|
-
is-extglob@^2.1.1:
|
|
99
|
-
version "2.1.1"
|
|
100
|
-
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
|
|
101
|
-
integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=
|
|
102
|
-
|
|
103
|
-
is-glob@^4.0.1, is-glob@~4.0.1:
|
|
104
|
-
version "4.0.1"
|
|
105
|
-
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc"
|
|
106
|
-
integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==
|
|
107
|
-
dependencies:
|
|
108
|
-
is-extglob "^2.1.1"
|
|
109
|
-
|
|
110
|
-
is-number@^7.0.0:
|
|
111
|
-
version "7.0.0"
|
|
112
|
-
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
|
|
113
|
-
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
|
|
114
|
-
|
|
115
|
-
livereload-js@^3.1.0:
|
|
116
|
-
version "3.3.1"
|
|
117
|
-
resolved "https://registry.yarnpkg.com/livereload-js/-/livereload-js-3.3.1.tgz#61f887468086762e61fb2987412cf9d1dda99202"
|
|
118
|
-
integrity sha512-CBu1gTEfzVhlOK1WASKAAJ9Qx1fHECTq0SUB67sfxwQssopTyvzqTlgl+c0h9pZ6V+Fzd2rc510ppuNusg9teQ==
|
|
119
|
-
|
|
120
|
-
livereload@^0.9.1:
|
|
121
|
-
version "0.9.1"
|
|
122
|
-
resolved "https://registry.yarnpkg.com/livereload/-/livereload-0.9.1.tgz#65125dabdf2db4fd3f1169e953fe56e3bcc6f477"
|
|
123
|
-
integrity sha512-9g7sua11kkyZNo2hLRCG3LuZZwqexoyEyecSlV8cAsfAVVCZqLzVir6XDqmH0r+Vzgnd5LrdHDMyjtFnJQLAYw==
|
|
124
|
-
dependencies:
|
|
125
|
-
chokidar "^3.3.0"
|
|
126
|
-
livereload-js "^3.1.0"
|
|
127
|
-
opts ">= 1.2.0"
|
|
128
|
-
ws "^6.2.1"
|
|
129
|
-
|
|
130
|
-
magic-string@^0.25.5:
|
|
131
|
-
version "0.25.7"
|
|
132
|
-
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
|
|
133
|
-
integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==
|
|
134
|
-
dependencies:
|
|
135
|
-
sourcemap-codec "^1.4.4"
|
|
136
|
-
|
|
137
|
-
mime@>=2.4.6:
|
|
138
|
-
version "2.4.6"
|
|
139
|
-
resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.6.tgz#e5b407c90db442f2beb5b162373d07b69affa4d1"
|
|
140
|
-
integrity sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA==
|
|
141
|
-
|
|
142
|
-
normalize-path@^3.0.0, normalize-path@~3.0.0:
|
|
143
|
-
version "3.0.0"
|
|
144
|
-
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
|
|
145
|
-
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
|
|
146
|
-
|
|
147
|
-
opener@1:
|
|
148
|
-
version "1.5.2"
|
|
149
|
-
resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598"
|
|
150
|
-
integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==
|
|
151
|
-
|
|
152
|
-
"opts@>= 1.2.0":
|
|
153
|
-
version "2.0.2"
|
|
154
|
-
resolved "https://registry.yarnpkg.com/opts/-/opts-2.0.2.tgz#a17e189fbbfee171da559edd8a42423bc5993ce1"
|
|
155
|
-
integrity sha512-k41FwbcLnlgnFh69f4qdUfvDQ+5vaSDnVPFI/y5XuhKRq97EnVVneO9F1ESVCdiVu4fCS2L8usX3mU331hB7pg==
|
|
156
|
-
|
|
157
|
-
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2:
|
|
158
|
-
version "2.3.2"
|
|
159
|
-
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601"
|
|
160
|
-
integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==
|
|
161
|
-
|
|
162
|
-
readdirp@~3.4.0:
|
|
163
|
-
version "3.4.0"
|
|
164
|
-
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.4.0.tgz#9fdccdf9e9155805449221ac645e8303ab5b9ada"
|
|
165
|
-
integrity sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==
|
|
166
|
-
dependencies:
|
|
167
|
-
picomatch "^2.2.1"
|
|
168
|
-
|
|
169
|
-
rollup-plugin-livereload@^2.0.0:
|
|
170
|
-
version "2.0.0"
|
|
171
|
-
resolved "https://registry.yarnpkg.com/rollup-plugin-livereload/-/rollup-plugin-livereload-2.0.0.tgz#d3928d74e8cf2ae4286c5dd46b770fd3f3b82313"
|
|
172
|
-
integrity sha512-oC/8NqumGYuphkqrfszOHUUIwzKsaHBICw6QRwT5uD07gvePTS+HW+GFwu6f9K8W02CUuTvtIM9AWJrbj4wE1A==
|
|
173
|
-
dependencies:
|
|
174
|
-
livereload "^0.9.1"
|
|
175
|
-
|
|
176
|
-
rollup-plugin-serve@^1.0.4:
|
|
177
|
-
version "1.0.4"
|
|
178
|
-
resolved "https://registry.yarnpkg.com/rollup-plugin-serve/-/rollup-plugin-serve-1.0.4.tgz#17665974185f9007ecaeb0835c4e89612e04d234"
|
|
179
|
-
integrity sha512-74Gh47+dGKhmy04MIu9deXwn8VGlWsk93HcGIbO+NCdZ9roRXVO7y4l/9MLAAujuYpzsWCopHHZT8/6PSRzGLg==
|
|
180
|
-
dependencies:
|
|
181
|
-
mime ">=2.4.6"
|
|
182
|
-
opener "1"
|
|
183
|
-
|
|
184
|
-
sourcemap-codec@^1.4.4:
|
|
185
|
-
version "1.4.8"
|
|
186
|
-
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
|
|
187
|
-
integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==
|
|
188
|
-
|
|
189
|
-
to-regex-range@^5.0.1:
|
|
190
|
-
version "5.0.1"
|
|
191
|
-
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
|
|
192
|
-
integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
|
|
193
|
-
dependencies:
|
|
194
|
-
is-number "^7.0.0"
|
|
195
|
-
|
|
196
|
-
ws@^6.2.1:
|
|
197
|
-
version "6.2.2"
|
|
198
|
-
resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e"
|
|
199
|
-
integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==
|
|
200
|
-
dependencies:
|
|
201
|
-
async-limiter "~1.0.0"
|