@vizejs/ui 0.755.0 → 0.757.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.
Files changed (97) hide show
  1. package/dist/accordion.d.mts +1 -1
  2. package/dist/action-sheet.d.mts +1 -1
  3. package/dist/alert-dialog.d.mts +1 -1
  4. package/dist/{announcer-CTnJoktI.d.mts → announcer-DgXNRzCT.d.mts} +9 -9
  5. package/dist/announcer.d.mts +1 -1
  6. package/dist/autocomplete.d.mts +1 -1
  7. package/dist/avatar.d.mts +1 -1
  8. package/dist/badge.d.mts +1 -1
  9. package/dist/banner.d.mts +1 -1
  10. package/dist/block-ui.d.mts +1 -1
  11. package/dist/blockquote.d.mts +1 -1
  12. package/dist/{breadcrumb-aITc0VLc.d.mts → breadcrumb-SsZSEerN.d.mts} +1 -1
  13. package/dist/breadcrumb.d.mts +1 -1
  14. package/dist/calendar.d.mts +1 -1
  15. package/dist/callout.d.mts +1 -1
  16. package/dist/card.d.mts +1 -1
  17. package/dist/{cascader-CpuiN9gN.d.mts → cascader-DZL8k16m.d.mts} +2 -2
  18. package/dist/cascader.d.mts +1 -1
  19. package/dist/chart.d.mts +1 -1
  20. package/dist/checkbox.d.mts +1 -1
  21. package/dist/code.d.mts +1 -1
  22. package/dist/collapsible.d.mts +1 -1
  23. package/dist/color-picker.d.mts +1 -1
  24. package/dist/combobox.d.mts +1 -1
  25. package/dist/command-palette.d.mts +1 -1
  26. package/dist/confirm.d.mts +1 -1
  27. package/dist/context-menu.d.mts +1 -1
  28. package/dist/{copy-button-BH2em7nG.mjs → copy-button-PEMleWc-.mjs} +3 -3
  29. package/dist/copy-button.d.mts +1 -1
  30. package/dist/copy-button.mjs +1 -1
  31. package/dist/date-range-picker.d.mts +1 -1
  32. package/dist/dialog.d.mts +1 -1
  33. package/dist/direction.d.mts +1 -1
  34. package/dist/drawer.d.mts +1 -1
  35. package/dist/dropdown-menu.d.mts +1 -1
  36. package/dist/duration-field.d.mts +1 -1
  37. package/dist/{emoji-picker-BTM2KldC.mjs → emoji-picker-D3Pvid9n.mjs} +2 -2
  38. package/dist/emoji-picker.mjs +1 -1
  39. package/dist/empty-state.d.mts +1 -1
  40. package/dist/fieldset.d.mts +1 -1
  41. package/dist/file-upload.d.mts +1 -1
  42. package/dist/floating-action-button.d.mts +1 -1
  43. package/dist/focus-visible.d.mts +1 -1
  44. package/dist/{fullscreen-button-NTbC4R0W.mjs → fullscreen-button-qEXz16Ui.mjs} +4 -6
  45. package/dist/fullscreen-button.d.mts +1 -1
  46. package/dist/fullscreen-button.mjs +1 -1
  47. package/dist/heading.d.mts +1 -1
  48. package/dist/hover-card.d.mts +1 -1
  49. package/dist/icon-button.d.mts +1 -1
  50. package/dist/icon.d.mts +1 -1
  51. package/dist/index.d.mts +3 -3
  52. package/dist/index.mjs +4 -4
  53. package/dist/kbd.d.mts +1 -1
  54. package/dist/landmark.d.mts +1 -1
  55. package/dist/list.d.mts +1 -1
  56. package/dist/listbox.d.mts +1 -1
  57. package/dist/locale.d.mts +1 -1
  58. package/dist/media-preferences.d.mts +1 -1
  59. package/dist/menu.d.mts +1 -1
  60. package/dist/menubar.d.mts +1 -1
  61. package/dist/month-picker.d.mts +1 -1
  62. package/dist/native-select.d.mts +1 -1
  63. package/dist/navigation-rail.d.mts +1 -1
  64. package/dist/notification-center.d.mts +1 -1
  65. package/dist/pager.d.mts +1 -1
  66. package/dist/pagination.d.mts +1 -1
  67. package/dist/popconfirm.d.mts +1 -1
  68. package/dist/popover.d.mts +1 -1
  69. package/dist/print-button.d.mts +1 -1
  70. package/dist/progress-bar.d.mts +1 -1
  71. package/dist/radio-group.d.mts +1 -1
  72. package/dist/scroll-area.d.mts +1 -1
  73. package/dist/select.d.mts +1 -1
  74. package/dist/share-button.d.mts +1 -1
  75. package/dist/sidebar.d.mts +1 -1
  76. package/dist/split-button.d.mts +1 -1
  77. package/dist/splitter.d.mts +1 -1
  78. package/dist/status-light.d.mts +1 -1
  79. package/dist/stepper.d.mts +1 -1
  80. package/dist/surface.d.mts +1 -1
  81. package/dist/switch.d.mts +1 -1
  82. package/dist/tabs.d.mts +1 -1
  83. package/dist/tags-input.d.mts +1 -1
  84. package/dist/text.d.mts +1 -1
  85. package/dist/toggle.d.mts +1 -1
  86. package/dist/tooltip.d.mts +1 -1
  87. package/dist/tour.d.mts +1 -1
  88. package/dist/tree.d.mts +1 -1
  89. package/dist/{webcam-capture-BGuP5y2Q.mjs → webcam-capture-D6rG5znH.mjs} +3 -3
  90. package/dist/webcam-capture.mjs +1 -1
  91. package/dist/week-picker.d.mts +1 -1
  92. package/package.json +2 -2
  93. package/registry/files/families/actions/copy-button/copy-button.vue +5 -3
  94. package/registry/files/families/actions/fullscreen-button/fullscreen-button.vue +4 -6
  95. package/registry/files/families/media/webcam-capture/webcam-capture-root.vue +3 -3
  96. package/registry/files/families/selection/emoji-picker/emoji-picker-root.vue +2 -2
  97. package/registry/registry.json +13 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/ui",
3
- "version": "0.755.0",
3
+ "version": "0.757.0",
4
4
  "description": "Accessible, headless, Native CSS-first UI primitives",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -1171,7 +1171,7 @@
1171
1171
  "@tsdown/css": "0.22.14",
1172
1172
  "@types/node": "25.9.2",
1173
1173
  "@vitejs/plugin-vue": "6.0.10",
1174
- "@vizejs/native": "0.755.0",
1174
+ "@vizejs/native": "0.757.0",
1175
1175
  "@vue/compiler-sfc": "3.5.35",
1176
1176
  "@vue/test-utils": "2.4.10",
1177
1177
  "happy-dom": "21.0.4",
@@ -149,9 +149,11 @@ function focusTarget(target: unknown, options?: FocusOptions): void {
149
149
  }
150
150
 
151
151
  async function writeTextWithNavigatorClipboard(nextValue: string): Promise<void> {
152
- const writeText = globalThis.navigator?.clipboard?.writeText;
153
- if (typeof writeText !== "function") throw new Error(COPY_BUTTON_CLIPBOARD_UNAVAILABLE);
154
- await writeText.call(globalThis.navigator.clipboard, nextValue);
152
+ const clipboard = globalThis.navigator?.clipboard;
153
+ if (typeof clipboard?.writeText !== "function") {
154
+ throw new Error(COPY_BUTTON_CLIPBOARD_UNAVAILABLE);
155
+ }
156
+ await clipboard.writeText(nextValue);
155
157
  }
156
158
 
157
159
  function hasText(nextValue: string | undefined): boolean {
@@ -226,19 +226,17 @@ const platformFullscreenController: FullscreenButtonController = {
226
226
  return getPlatformDocument()?.fullscreenElement ?? null;
227
227
  },
228
228
  requestFullscreen(targetElement) {
229
- const requestFullscreen = targetElement.requestFullscreen;
230
- if (typeof requestFullscreen !== "function") {
229
+ if (typeof targetElement.requestFullscreen !== "function") {
231
230
  throw new Error(FULLSCREEN_BUTTON_ACTION_UNAVAILABLE);
232
231
  }
233
- return requestFullscreen.call(targetElement);
232
+ return targetElement.requestFullscreen();
234
233
  },
235
234
  exitFullscreen() {
236
235
  const platformDocument = getPlatformDocument();
237
- const exitFullscreen = platformDocument?.exitFullscreen;
238
- if (typeof exitFullscreen !== "function") {
236
+ if (typeof platformDocument?.exitFullscreen !== "function") {
239
237
  throw new Error(FULLSCREEN_BUTTON_ACTION_UNAVAILABLE);
240
238
  }
241
- return exitFullscreen.call(platformDocument);
239
+ return platformDocument.exitFullscreen();
242
240
  },
243
241
  };
244
242
 
@@ -288,10 +288,10 @@ function attach(next: WebcamMediaStreamLike): void {
288
288
  }
289
289
 
290
290
  async function refreshDevices(): Promise<void> {
291
- const enumerate = resolveHost()?.enumerateDevices;
292
- if (enumerate === undefined) return;
291
+ const mediaHost = resolveHost();
292
+ if (mediaHost?.enumerateDevices === undefined) return;
293
293
  try {
294
- const listed = await enumerate.call(resolveHost());
294
+ const listed = await mediaHost.enumerateDevices();
295
295
  devices.value = toWebcamDevices(listed, resolvedMessages.value.deviceFallback);
296
296
  } catch {
297
297
  // Enumeration is best-effort; the current list stays in place.
@@ -211,8 +211,8 @@ type EmojiPickerRootSetupExpose = Omit<EmojiPickerRootExpose<T>, "activeItem" |
211
211
 
212
212
  const exposed = {
213
213
  activeItem,
214
- focusGrid: context.focusGrid,
215
- setSearch: context.setSearch,
214
+ focusGrid: () => context.focusGrid(),
215
+ setSearch: (text: string) => context.setSearch(text),
216
216
  skinTone: toneState.value,
217
217
  } satisfies EmojiPickerRootSetupExpose;
218
218
 
@@ -3,7 +3,7 @@
3
3
  "registryKind": "vize-lib",
4
4
  "package": {
5
5
  "name": "@vizejs/ui",
6
- "version": "0.755.0"
6
+ "version": "0.757.0"
7
7
  },
8
8
  "kind": "ui",
9
9
  "filesDirectory": "files",
@@ -3400,8 +3400,8 @@
3400
3400
  {
3401
3401
  "path": "families/actions/copy-button/copy-button.vue",
3402
3402
  "role": "component",
3403
- "sha256": "21e1effb274b4fba6c60a38a908ffee37fa7d591c9e4370b417ca6b36814692e",
3404
- "size": 6240
3403
+ "sha256": "acd23e8a60a20d52b7a6b6995bfb149a7951cc44d7c024b6c4bfeace63383ff8",
3404
+ "size": 6223
3405
3405
  }
3406
3406
  ],
3407
3407
  "registryDependencies": [
@@ -3414,7 +3414,7 @@
3414
3414
  "kind": "peer"
3415
3415
  }
3416
3416
  ],
3417
- "contentHash": "28a2759ce3def3326306471ec08172353f09ece0e92c1943058f08ace5324b61",
3417
+ "contentHash": "f0961cea703ecc2ac8d8a454f709d407483e8a52114526d9cb8e449ddc6db69b",
3418
3418
  "examples": [
3419
3419
  {
3420
3420
  "path": "families/actions/copy-button/examples/copy-button-basic.vue",
@@ -4642,8 +4642,8 @@
4642
4642
  {
4643
4643
  "path": "families/selection/emoji-picker/emoji-picker-root.vue",
4644
4644
  "role": "component",
4645
- "sha256": "094d624e1a180309a5f26436a956b3cbbac4f271df59e1b8c93e2d644613d7d8",
4646
- "size": 6616
4645
+ "sha256": "c8f5641c0a9222bb2ed9f97fb960bd6da2ef0c769e9148170561f925f49992d3",
4646
+ "size": 6648
4647
4647
  },
4648
4648
  {
4649
4649
  "path": "families/selection/emoji-picker/emoji-picker-search.vue",
@@ -4685,7 +4685,7 @@
4685
4685
  "kind": "peer"
4686
4686
  }
4687
4687
  ],
4688
- "contentHash": "4e4812ec7eaa36de0064bc6ff6d47fc104f4b7fe06568bc047c7618abcec96a0",
4688
+ "contentHash": "3d2dc95a9769c93a3e65a058fc2ad6759223556b80ab4e57946e9ed5b2fd80c3",
4689
4689
  "examples": [
4690
4690
  {
4691
4691
  "path": "families/selection/emoji-picker/examples/emoji-picker-basic.vue",
@@ -5681,8 +5681,8 @@
5681
5681
  {
5682
5682
  "path": "families/actions/fullscreen-button/fullscreen-button.vue",
5683
5683
  "role": "component",
5684
- "sha256": "099e817ca88383a6447ceaa6ed668956b4842b09cfd52a4405517f6794c6c34f",
5685
- "size": 9980
5684
+ "sha256": "323bd890328f4c795d3c95685fa756447230f07012a2265042c0b390455fa022",
5685
+ "size": 9880
5686
5686
  }
5687
5687
  ],
5688
5688
  "registryDependencies": [
@@ -5695,7 +5695,7 @@
5695
5695
  "kind": "peer"
5696
5696
  }
5697
5697
  ],
5698
- "contentHash": "8219885816ee57e251971ce946d00de2a9a9e07a34340c984b640cbbc2763aaa",
5698
+ "contentHash": "8826f10d7526bd2278398b3db99a469b1100ea6047058f4e265935e6ac15b66f",
5699
5699
  "examples": [
5700
5700
  {
5701
5701
  "path": "families/actions/fullscreen-button/examples/fullscreen-button-basic.vue",
@@ -15495,8 +15495,8 @@
15495
15495
  {
15496
15496
  "path": "families/media/webcam-capture/webcam-capture-root.vue",
15497
15497
  "role": "component",
15498
- "sha256": "dd7315cfd12989ecbcdc995527fae92e914be839b743e1c135ddd975a8db9233",
15499
- "size": 15545
15498
+ "sha256": "60a7e02adb4518096ecad7cd06f48dcdcd3e143f1b6af659023d280d97467c43",
15499
+ "size": 15544
15500
15500
  },
15501
15501
  {
15502
15502
  "path": "families/media/webcam-capture/webcam-capture-shutter.vue",
@@ -15559,7 +15559,7 @@
15559
15559
  "kind": "peer"
15560
15560
  }
15561
15561
  ],
15562
- "contentHash": "50052bb4517d9e3ce1414fa599af0d44096470c1d210e0fa3e83cf6862e344d5",
15562
+ "contentHash": "54618064d2d351592fe05df9024152a2320a9d03c191d7fd522cb2c76d507b1d",
15563
15563
  "examples": [
15564
15564
  {
15565
15565
  "path": "families/media/webcam-capture/examples/webcam-capture-basic.vue",