@scalar/use-hooks 0.3.1 → 0.3.3

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 ADDED
@@ -0,0 +1,433 @@
1
+ # @scalar/use-hooks
2
+
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7506](https://github.com/scalar/scalar/pull/7506) [`72cd82f`](https://github.com/scalar/scalar/commit/72cd82fb8df63a9e5d0db1202978aebfefd0457a) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix: use caret version for `zod`
8
+
9
+ ## 0.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#7478](https://github.com/scalar/scalar/pull/7478) [`cc4de25`](https://github.com/scalar/scalar/commit/cc4de2587b36f0d169b01c1bf312ba91b67e3e0c) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix: remove emtpy index file from exports
14
+
15
+ ## 0.3.1
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [[`ea13cd2`](https://github.com/scalar/scalar/commit/ea13cd2a44ff1ba7f19abcfcad1e51c9e7a0b75d), [`ea13cd2`](https://github.com/scalar/scalar/commit/ea13cd2a44ff1ba7f19abcfcad1e51c9e7a0b75d)]:
20
+ - @scalar/use-toasts@0.9.1
21
+
22
+ ## 0.3.0
23
+
24
+ ### Minor Changes
25
+
26
+ - [#7199](https://github.com/scalar/scalar/pull/7199) [`0d9c945`](https://github.com/scalar/scalar/commit/0d9c945a696ea8b826d86f7b48ec6de4d85e64f0) Thanks [@marcalexiei](https://github.com/marcalexiei)! - feat: update vue to 3.5.21
27
+
28
+ ### Patch Changes
29
+
30
+ - [#7144](https://github.com/scalar/scalar/pull/7144) [`6a090a2`](https://github.com/scalar/scalar/commit/6a090a2e07ef961c56041c85ee9786180437593a) Thanks [@hwkr](https://github.com/hwkr)! - feat(useBindCx): add support for style attr
31
+
32
+ - [#7094](https://github.com/scalar/scalar/pull/7094) [`eba18d0`](https://github.com/scalar/scalar/commit/eba18d06267a163a8f91396a66f817100ee59461) Thanks [@geoffgscott](https://github.com/geoffgscott)! - Migrate to workspace store as primary source of truth.
33
+
34
+ - Updated dependencies [[`0d9c945`](https://github.com/scalar/scalar/commit/0d9c945a696ea8b826d86f7b48ec6de4d85e64f0)]:
35
+ - @scalar/use-toasts@0.9.0
36
+
37
+ ## 0.2.5
38
+
39
+ ### Patch Changes
40
+
41
+ - 8f2a2f2: Bump some dependencies to latest
42
+
43
+ ## 0.2.4
44
+
45
+ ### Patch Changes
46
+
47
+ - 2d7f995: refactor: use more common straight apostrophe ' instead of the real apostrophe ’
48
+ - @scalar/use-toasts@0.8.0
49
+
50
+ ## 0.2.3
51
+
52
+ ### Patch Changes
53
+
54
+ - 4bbbb32: feat(components): add sidebar sections
55
+
56
+ ## 0.2.2
57
+
58
+ ### Patch Changes
59
+
60
+ - cad6277: feat(themes)!: migrate to tailwind v4
61
+ - @scalar/use-toasts@0.8.0
62
+
63
+ ## 0.2.1
64
+
65
+ ### Patch Changes
66
+
67
+ - @scalar/themes@0.12.1
68
+
69
+ ## 0.2.0
70
+
71
+ ### Minor Changes
72
+
73
+ - 483ca93: chore: require Node 20 (or above)
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [5613e40]
78
+ - Updated dependencies [483ca93]
79
+ - @scalar/themes@0.12.0
80
+ - @scalar/use-toasts@0.8.0
81
+
82
+ ## 0.1.50
83
+
84
+ ### Patch Changes
85
+
86
+ - @scalar/themes@0.11.3
87
+
88
+ ## 0.1.49
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [90b773e]
93
+ - @scalar/themes@0.11.2
94
+
95
+ ## 0.1.48
96
+
97
+ ### Patch Changes
98
+
99
+ - 8c7bad8: chore: move build tooling to esbuild
100
+ - Updated dependencies [8c7bad8]
101
+ - Updated dependencies [2157fb4]
102
+ - @scalar/use-toasts@0.7.10
103
+ - @scalar/themes@0.11.1
104
+
105
+ ## 0.1.47
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [e8457cb]
110
+ - @scalar/themes@0.11.0
111
+
112
+ ## 0.1.46
113
+
114
+ ### Patch Changes
115
+
116
+ - @scalar/themes@0.10.4
117
+ - @scalar/use-toasts@0.7.9
118
+
119
+ ## 0.1.45
120
+
121
+ ### Patch Changes
122
+
123
+ - @scalar/themes@0.10.3
124
+
125
+ ## 0.1.44
126
+
127
+ ### Patch Changes
128
+
129
+ - @scalar/themes@0.10.2
130
+
131
+ ## 0.1.43
132
+
133
+ ### Patch Changes
134
+
135
+ - 2b61d8e: docs(icons): update docs and storybook
136
+ - @scalar/themes@0.10.1
137
+
138
+ ## 0.1.42
139
+
140
+ ### Patch Changes
141
+
142
+ - 363276e: feat(icons): add Phosphor icons to @scalar/icons
143
+
144
+ ## 0.1.41
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies [feaa314]
149
+ - @scalar/themes@0.10.0
150
+
151
+ ## 0.1.40
152
+
153
+ ### Patch Changes
154
+
155
+ - @scalar/themes@0.9.86
156
+
157
+ ## 0.1.39
158
+
159
+ ### Patch Changes
160
+
161
+ - Updated dependencies [8720ae7]
162
+ - @scalar/themes@0.9.85
163
+
164
+ ## 0.1.38
165
+
166
+ ### Patch Changes
167
+
168
+ - @scalar/themes@0.9.84
169
+
170
+ ## 0.1.37
171
+
172
+ ### Patch Changes
173
+
174
+ - @scalar/themes@0.9.83
175
+
176
+ ## 0.1.36
177
+
178
+ ### Patch Changes
179
+
180
+ - @scalar/themes@0.9.82
181
+
182
+ ## 0.1.35
183
+
184
+ ### Patch Changes
185
+
186
+ - @scalar/themes@0.9.81
187
+
188
+ ## 0.1.34
189
+
190
+ ### Patch Changes
191
+
192
+ - @scalar/themes@0.9.80
193
+
194
+ ## 0.1.33
195
+
196
+ ### Patch Changes
197
+
198
+ - @scalar/themes@0.9.79
199
+
200
+ ## 0.1.32
201
+
202
+ ### Patch Changes
203
+
204
+ - Updated dependencies [1437882]
205
+ - Updated dependencies [e00fa7e]
206
+ - Updated dependencies [632978d]
207
+ - @scalar/themes@0.9.78
208
+
209
+ ## 0.1.31
210
+
211
+ ### Patch Changes
212
+
213
+ - @scalar/themes@0.9.77
214
+
215
+ ## 0.1.30
216
+
217
+ ### Patch Changes
218
+
219
+ - @scalar/themes@0.9.76
220
+
221
+ ## 0.1.29
222
+
223
+ ### Patch Changes
224
+
225
+ - @scalar/themes@0.9.75
226
+
227
+ ## 0.1.28
228
+
229
+ ### Patch Changes
230
+
231
+ - @scalar/themes@0.9.74
232
+
233
+ ## 0.1.27
234
+
235
+ ### Patch Changes
236
+
237
+ - @scalar/themes@0.9.73
238
+
239
+ ## 0.1.26
240
+
241
+ ### Patch Changes
242
+
243
+ - Updated dependencies [89d8b75]
244
+ - @scalar/themes@0.9.72
245
+ - @scalar/use-toasts@0.7.9
246
+
247
+ ## 0.1.25
248
+
249
+ ### Patch Changes
250
+
251
+ - 0d4520f: fix(themes): improve how we handle zoomed in screens
252
+ - Updated dependencies [0d4520f]
253
+ - @scalar/themes@0.9.71
254
+
255
+ ## 0.1.24
256
+
257
+ ### Patch Changes
258
+
259
+ - @scalar/themes@0.9.70
260
+
261
+ ## 0.1.23
262
+
263
+ ### Patch Changes
264
+
265
+ - Updated dependencies [c9a8fd8]
266
+ - Updated dependencies [9251b22]
267
+ - Updated dependencies [8d9a2c0]
268
+ - @scalar/themes@0.9.69
269
+ - @scalar/use-toasts@0.7.9
270
+
271
+ ## 0.1.22
272
+
273
+ ### Patch Changes
274
+
275
+ - Updated dependencies [e47a698]
276
+ - @scalar/themes@0.9.68
277
+ - @scalar/use-toasts@0.7.9
278
+
279
+ ## 0.1.21
280
+
281
+ ### Patch Changes
282
+
283
+ - fa6afe8: chore: code formatting
284
+ - Updated dependencies [fa6afe8]
285
+ - @scalar/use-toasts@0.7.9
286
+ - @scalar/themes@0.9.67
287
+
288
+ ## 0.1.20
289
+
290
+ ### Patch Changes
291
+
292
+ - @scalar/themes@0.9.66
293
+
294
+ ## 0.1.19
295
+
296
+ ### Patch Changes
297
+
298
+ - @scalar/themes@0.9.65
299
+
300
+ ## 0.1.18
301
+
302
+ ### Patch Changes
303
+
304
+ - @scalar/themes@0.9.64
305
+
306
+ ## 0.1.17
307
+
308
+ ### Patch Changes
309
+
310
+ - Updated dependencies [51f3177]
311
+ - @scalar/themes@0.9.63
312
+
313
+ ## 0.1.16
314
+
315
+ ### Patch Changes
316
+
317
+ - Updated dependencies [776a4e2]
318
+ - Updated dependencies [2ed681b]
319
+ - Updated dependencies [4f12fe4]
320
+ - @scalar/themes@0.9.62
321
+
322
+ ## 0.1.15
323
+
324
+ ### Patch Changes
325
+
326
+ - @scalar/themes@0.9.61
327
+
328
+ ## 0.1.14
329
+
330
+ ### Patch Changes
331
+
332
+ - e866487: feat(components): create dark light toggle components
333
+ - Updated dependencies [e866487]
334
+ - @scalar/themes@0.9.60
335
+
336
+ ## 0.1.13
337
+
338
+ ### Patch Changes
339
+
340
+ - Updated dependencies [7b4ab2c]
341
+ - @scalar/themes@0.9.59
342
+
343
+ ## 0.1.12
344
+
345
+ ### Patch Changes
346
+
347
+ - Updated dependencies [66bc910]
348
+ - @scalar/use-toasts@0.7.8
349
+
350
+ ## 0.1.11
351
+
352
+ ### Patch Changes
353
+
354
+ - c65f3fc: feat: make it work in SSG environments
355
+ - Updated dependencies [6407b2b]
356
+ - @scalar/themes@0.9.58
357
+
358
+ ## 0.1.10
359
+
360
+ ### Patch Changes
361
+
362
+ - @scalar/themes@0.9.57
363
+
364
+ ## 0.1.9
365
+
366
+ ### Patch Changes
367
+
368
+ - Updated dependencies [23daedd]
369
+ - @scalar/themes@0.9.56
370
+
371
+ ## 0.1.8
372
+
373
+ ### Patch Changes
374
+
375
+ - @scalar/themes@0.9.55
376
+
377
+ ## 0.1.7
378
+
379
+ ### Patch Changes
380
+
381
+ - @scalar/themes@0.9.54
382
+
383
+ ## 0.1.6
384
+
385
+ ### Patch Changes
386
+
387
+ - @scalar/themes@0.9.53
388
+
389
+ ## 0.1.5
390
+
391
+ ### Patch Changes
392
+
393
+ - Updated dependencies [1fa0d20]
394
+ - @scalar/themes@0.9.52
395
+
396
+ ## 0.1.4
397
+
398
+ ### Patch Changes
399
+
400
+ - Updated dependencies [91123e8]
401
+ - @scalar/themes@0.9.51
402
+
403
+ ## 0.1.3
404
+
405
+ ### Patch Changes
406
+
407
+ - Updated dependencies [1b06f64]
408
+ - @scalar/themes@0.9.50
409
+
410
+ ## 0.1.2
411
+
412
+ ### Patch Changes
413
+
414
+ - Updated dependencies [d379b81]
415
+ - Updated dependencies [f67c3bc]
416
+ - @scalar/themes@0.9.49
417
+
418
+ ## 0.1.1
419
+
420
+ ### Patch Changes
421
+
422
+ - 0adbfd5: feat(use-hooks): add useBreakpoint hook
423
+ - 2a6117e: feat(use-hooks): add computed dark light mode
424
+
425
+ ## 0.1.0
426
+
427
+ ### Minor Changes
428
+
429
+ - bfad6dc: feat(use-hooks): create @scalar/use-hooks with useColorMode and useClipboard
430
+
431
+ ### Patch Changes
432
+
433
+ - c3d9f3c: fix(use-hooks): set default color mode to system instead of dark
@@ -1,3 +1,3 @@
1
- export { useBreakpoints } from './useBreakpoints.js';
2
1
  export { screens } from './constants.js';
2
+ export { useBreakpoints } from './useBreakpoints.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useBreakpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useBreakpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { useBreakpoints } from "./useBreakpoints.js";
2
1
  import { screens } from "./constants.js";
2
+ import { useBreakpoints } from "./useBreakpoints.js";
3
3
  export {
4
4
  screens,
5
5
  useBreakpoints
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useBreakpoints/index.ts"],
4
- "sourcesContent": ["export { useBreakpoints } from './useBreakpoints'\nexport { screens } from './constants'\n"],
5
- "mappings": "AAAA,SAAS,sBAAsB;AAC/B,SAAS,eAAe;",
4
+ "sourcesContent": ["export { screens } from './constants'\nexport { useBreakpoints } from './useBreakpoints'\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,sBAAsB;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- export * from './useClipboard.js';
1
+ export { useClipboard } from './useClipboard.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useClipboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useClipboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,2 +1,5 @@
1
- export * from "./useClipboard.js";
1
+ import { useClipboard } from "./useClipboard.js";
2
+ export {
3
+ useClipboard
4
+ };
2
5
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useClipboard/index.ts"],
4
- "sourcesContent": ["export * from './useClipboard'\n"],
5
- "mappings": "AAAA,cAAc;",
4
+ "sourcesContent": ["export { useClipboard } from './useClipboard'\n"],
5
+ "mappings": "AAAA,SAAS,oBAAoB;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -10,20 +10,12 @@
10
10
  "url": "git+https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/use-hooks"
12
12
  },
13
- "version": "0.3.1",
13
+ "version": "0.3.3",
14
14
  "engines": {
15
15
  "node": ">=20"
16
16
  },
17
17
  "type": "module",
18
- "main": "./dist/index.cjs",
19
- "module": "./dist/index.js",
20
- "types": "./dist/index.d.ts",
21
18
  "exports": {
22
- ".": {
23
- "import": "./dist/index.js",
24
- "types": "./dist/index.d.ts",
25
- "default": "./dist/index.js"
26
- },
27
19
  "./useBindCx": {
28
20
  "import": "./dist/useBindCx/index.js",
29
21
  "types": "./dist/useBindCx/index.d.ts",
@@ -46,19 +38,20 @@
46
38
  }
47
39
  },
48
40
  "files": [
49
- "dist"
41
+ "dist",
42
+ "CHANGELOG.md"
50
43
  ],
51
44
  "dependencies": {
52
45
  "@vueuse/core": "13.9.0",
53
46
  "cva": "1.0.0-beta.2",
54
47
  "tailwind-merge": "^2.5.5",
55
48
  "vue": "^3.5.21",
56
- "zod": "4.1.11",
49
+ "zod": "^4.1.11",
57
50
  "@scalar/use-toasts": "0.9.1"
58
51
  },
59
52
  "devDependencies": {
60
- "@vitejs/plugin-vue": "6.0.1",
61
53
  "@vue/test-utils": "2.4.6",
54
+ "jsdom": "26.1.0",
62
55
  "vite": "7.1.11",
63
56
  "@scalar/build-tooling": "0.3.1"
64
57
  },
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA"}
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }