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