@vizejs/ui 0.755.0 → 0.756.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.
- package/dist/accordion.d.mts +1 -1
- package/dist/action-sheet.d.mts +1 -1
- package/dist/alert-dialog.d.mts +1 -1
- package/dist/{announcer-CTnJoktI.d.mts → announcer-C6S9QVHA.d.mts} +8 -8
- package/dist/announcer.d.mts +1 -1
- package/dist/autocomplete.d.mts +1 -1
- package/dist/avatar.d.mts +1 -1
- package/dist/badge.d.mts +1 -1
- package/dist/banner.d.mts +1 -1
- package/dist/block-ui.d.mts +1 -1
- package/dist/blockquote.d.mts +1 -1
- package/dist/calendar.d.mts +1 -1
- package/dist/callout.d.mts +1 -1
- package/dist/card.d.mts +1 -1
- package/dist/chart.d.mts +1 -1
- package/dist/checkbox.d.mts +1 -1
- package/dist/code.d.mts +1 -1
- package/dist/collapsible.d.mts +1 -1
- package/dist/color-picker.d.mts +1 -1
- package/dist/combobox.d.mts +1 -1
- package/dist/command-palette.d.mts +1 -1
- package/dist/confirm.d.mts +1 -1
- package/dist/context-menu.d.mts +1 -1
- package/dist/{copy-button-BH2em7nG.mjs → copy-button-PEMleWc-.mjs} +3 -3
- package/dist/copy-button.d.mts +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/date-range-picker.d.mts +1 -1
- package/dist/dialog.d.mts +1 -1
- package/dist/direction.d.mts +1 -1
- package/dist/drawer.d.mts +1 -1
- package/dist/dropdown-menu.d.mts +1 -1
- package/dist/duration-field.d.mts +1 -1
- package/dist/{emoji-picker-BTM2KldC.mjs → emoji-picker-D3Pvid9n.mjs} +2 -2
- package/dist/emoji-picker.mjs +1 -1
- package/dist/empty-state.d.mts +1 -1
- package/dist/fieldset.d.mts +1 -1
- package/dist/file-upload.d.mts +1 -1
- package/dist/floating-action-button.d.mts +1 -1
- package/dist/focus-visible.d.mts +1 -1
- package/dist/{fullscreen-button-NTbC4R0W.mjs → fullscreen-button-qEXz16Ui.mjs} +4 -6
- package/dist/fullscreen-button.d.mts +1 -1
- package/dist/fullscreen-button.mjs +1 -1
- package/dist/heading.d.mts +1 -1
- package/dist/hover-card.d.mts +1 -1
- package/dist/icon-button.d.mts +1 -1
- package/dist/icon.d.mts +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +4 -4
- package/dist/kbd.d.mts +1 -1
- package/dist/landmark.d.mts +1 -1
- package/dist/list.d.mts +1 -1
- package/dist/listbox.d.mts +1 -1
- package/dist/locale.d.mts +1 -1
- package/dist/media-preferences.d.mts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/menubar.d.mts +1 -1
- package/dist/month-picker.d.mts +1 -1
- package/dist/native-select.d.mts +1 -1
- package/dist/navigation-rail.d.mts +1 -1
- package/dist/notification-center.d.mts +1 -1
- package/dist/pager.d.mts +1 -1
- package/dist/pagination.d.mts +1 -1
- package/dist/popconfirm.d.mts +1 -1
- package/dist/popover.d.mts +1 -1
- package/dist/print-button.d.mts +1 -1
- package/dist/progress-bar.d.mts +1 -1
- package/dist/radio-group.d.mts +1 -1
- package/dist/{range-calendar-DKSgY7LF.d.mts → range-calendar-X_JI9xZN.d.mts} +2 -2
- package/dist/range-calendar.d.mts +1 -1
- package/dist/scroll-area.d.mts +1 -1
- package/dist/{search-field-Biw9vApG.d.mts → search-field-zyMCYvZ2.d.mts} +2 -2
- package/dist/search-field.d.mts +1 -1
- package/dist/select.d.mts +1 -1
- package/dist/share-button.d.mts +1 -1
- package/dist/sidebar.d.mts +1 -1
- package/dist/split-button.d.mts +1 -1
- package/dist/splitter.d.mts +1 -1
- package/dist/status-light.d.mts +1 -1
- package/dist/stepper.d.mts +1 -1
- package/dist/surface.d.mts +1 -1
- package/dist/switch.d.mts +1 -1
- package/dist/tabs.d.mts +1 -1
- package/dist/tags-input.d.mts +1 -1
- package/dist/text.d.mts +1 -1
- package/dist/toggle.d.mts +1 -1
- package/dist/tooltip.d.mts +1 -1
- package/dist/tour.d.mts +1 -1
- package/dist/tree.d.mts +1 -1
- package/dist/{webcam-capture-BGuP5y2Q.mjs → webcam-capture-D6rG5znH.mjs} +3 -3
- package/dist/webcam-capture.mjs +1 -1
- package/dist/week-picker.d.mts +1 -1
- package/package.json +2 -2
- package/registry/files/families/actions/copy-button/copy-button.vue +5 -3
- package/registry/files/families/actions/fullscreen-button/fullscreen-button.vue +4 -6
- package/registry/files/families/media/webcam-capture/webcam-capture-root.vue +3 -3
- package/registry/files/families/selection/emoji-picker/emoji-picker-root.vue +2 -2
- package/registry/registry.json +13 -13
package/dist/tree.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as TreeItemState, Bt as TreeSlotState, Ct as TreeCheckPropagation, Dt as TreeFlatNode, Et as TreeDropPosition, Ft as TreeReorderController, Ht as TreeVirtualizer, It as TreeReorderItemRegistration, Lt as TreeReorderOptions, Mt as TreeLoadContext, Nt as TreeLoadState, Ot as TreeItemExpose, Pt as TreeMoveEvent, Rt as TreeRootExpose, St as _default, Tt as TreeDirection, Ut as TreeVirtualizerOptions, Vt as TreeState, Wt as TreeVirtualizerSource, _t as useTreeVirtualizer, bt as _default$2, dt as TreeIndexEntry, ft as deriveTreeCheckedStates, gt as toggleTreeChecked, ht as normalizeTreeChecked, jt as TreeKey, kt as TreeItemSlotState, lt as TreeIndex, mt as indexTree, pt as flattenVisibleTree, ut as TreeIndexAccessors, vt as useTreeReorder, wt as TreeCheckedState, xt as _default$1, yt as _default$3, zt as TreeSelectionMode } from "./announcer-
|
|
1
|
+
import { At as TreeItemState, Bt as TreeSlotState, Ct as TreeCheckPropagation, Dt as TreeFlatNode, Et as TreeDropPosition, Ft as TreeReorderController, Ht as TreeVirtualizer, It as TreeReorderItemRegistration, Lt as TreeReorderOptions, Mt as TreeLoadContext, Nt as TreeLoadState, Ot as TreeItemExpose, Pt as TreeMoveEvent, Rt as TreeRootExpose, St as _default, Tt as TreeDirection, Ut as TreeVirtualizerOptions, Vt as TreeState, Wt as TreeVirtualizerSource, _t as useTreeVirtualizer, bt as _default$2, dt as TreeIndexEntry, ft as deriveTreeCheckedStates, gt as toggleTreeChecked, ht as normalizeTreeChecked, jt as TreeKey, kt as TreeItemSlotState, lt as TreeIndex, mt as indexTree, pt as flattenVisibleTree, ut as TreeIndexAccessors, vt as useTreeReorder, wt as TreeCheckedState, xt as _default$1, yt as _default$3, zt as TreeSelectionMode } from "./announcer-C6S9QVHA.mjs";
|
|
2
2
|
export { _default as Tree, _default as TreeRoot, type TreeCheckPropagation, type TreeCheckedState, type TreeDirection, type TreeDropPosition, type TreeFlatNode, type TreeIndex, type TreeIndexAccessors, type TreeIndexEntry, _default$1 as TreeItem, _default$2 as TreeItemCheckbox, type TreeItemExpose, type TreeItemSlotState, type TreeItemState, _default$3 as TreeItemToggle, type TreeKey, type TreeLoadContext, type TreeLoadState, type TreeMoveEvent, type TreeReorderController, type TreeReorderItemRegistration, type TreeReorderOptions, type TreeRootExpose, type TreeSelectionMode, type TreeSlotState, type TreeState, type TreeVirtualizer, type TreeVirtualizerOptions, type TreeVirtualizerSource, deriveTreeCheckedStates, flattenVisibleTree, indexTree, normalizeTreeChecked, toggleTreeChecked, useTreeReorder, useTreeVirtualizer };
|
|
@@ -440,10 +440,10 @@ var webcam_capture_root_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
442
|
async function refreshDevices() {
|
|
443
|
-
const
|
|
444
|
-
if (
|
|
443
|
+
const mediaHost = resolveHost();
|
|
444
|
+
if (mediaHost?.enumerateDevices === void 0) return;
|
|
445
445
|
try {
|
|
446
|
-
devices.value = toWebcamDevices(await
|
|
446
|
+
devices.value = toWebcamDevices(await mediaHost.enumerateDevices(), resolvedMessages.value.deviceFallback);
|
|
447
447
|
} catch {}
|
|
448
448
|
}
|
|
449
449
|
async function start() {
|
package/dist/webcam-capture.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as webcam_capture_photo_default, a as webcam_capture_start_button_default, c as createWebcamConstraints, d as stopWebcamStream, f as toWebcamDevices, g as captureGeometry, h as captureFrame, i as webcam_capture_status_message_default, l as normalizeUserMediaError, m as WebcamCaptureError, n as webcam_capture_switch_camera_default, o as webcam_capture_shutter_default, p as webcamCaptureDefaultMessages, r as webcam_capture_stop_button_default, s as webcam_capture_root_default, t as webcam_capture_video_default, u as resolveWebcamCaptureMessages, v as webcam_capture_device_select_default } from "./webcam-capture-
|
|
1
|
+
import { _ as webcam_capture_photo_default, a as webcam_capture_start_button_default, c as createWebcamConstraints, d as stopWebcamStream, f as toWebcamDevices, g as captureGeometry, h as captureFrame, i as webcam_capture_status_message_default, l as normalizeUserMediaError, m as WebcamCaptureError, n as webcam_capture_switch_camera_default, o as webcam_capture_shutter_default, p as webcamCaptureDefaultMessages, r as webcam_capture_stop_button_default, s as webcam_capture_root_default, t as webcam_capture_video_default, u as resolveWebcamCaptureMessages, v as webcam_capture_device_select_default } from "./webcam-capture-D6rG5znH.mjs";
|
|
2
2
|
export { webcam_capture_root_default as WebcamCapture, webcam_capture_root_default as WebcamCaptureRoot, webcam_capture_device_select_default as WebcamCaptureDeviceSelect, WebcamCaptureError, webcam_capture_photo_default as WebcamCapturePhoto, webcam_capture_shutter_default as WebcamCaptureShutter, webcam_capture_start_button_default as WebcamCaptureStartButton, webcam_capture_status_message_default as WebcamCaptureStatusMessage, webcam_capture_stop_button_default as WebcamCaptureStopButton, webcam_capture_switch_camera_default as WebcamCaptureSwitchCamera, webcam_capture_video_default as WebcamCaptureVideo, captureFrame, captureGeometry, createWebcamConstraints, normalizeUserMediaError, resolveWebcamCaptureMessages, stopWebcamStream, toWebcamDevices, webcamCaptureDefaultMessages };
|
package/dist/week-picker.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { S as formatIsoDate, i as IsoWeek, r as DateRange, s as PlainDate, z as parseIsoDate } from "./plain-date-By3bTWQG.mjs";
|
|
2
|
-
import { Bb as weekOf, Rb as WeekPickerRootExpose, Vb as _default, zb as WeekSelection } from "./announcer-
|
|
2
|
+
import { Bb as weekOf, Rb as WeekPickerRootExpose, Vb as _default, zb as WeekSelection } from "./announcer-C6S9QVHA.mjs";
|
|
3
3
|
import { a as _default$2, i as _default$3, n as _default$5, o as _default$1, r as _default$4, t as _default$6 } from "./calendar-year-select.vue-BQcKQTQK.mjs";
|
|
4
4
|
export { type DateRange, type IsoWeek, type PlainDate, _default as WeekPicker, _default as WeekPickerRoot, _default$1 as WeekPickerGrid, _default$2 as WeekPickerHeading, _default$3 as WeekPickerMonthSelect, _default$4 as WeekPickerNext, _default$5 as WeekPickerPrev, type WeekPickerRootExpose, _default$6 as WeekPickerYearSelect, type WeekSelection, formatIsoDate, parseIsoDate, weekOf };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.756.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.
|
|
1174
|
+
"@vizejs/native": "0.756.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
|
|
153
|
-
if (typeof writeText !== "function")
|
|
154
|
-
|
|
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
|
-
|
|
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
|
|
232
|
+
return targetElement.requestFullscreen();
|
|
234
233
|
},
|
|
235
234
|
exitFullscreen() {
|
|
236
235
|
const platformDocument = getPlatformDocument();
|
|
237
|
-
|
|
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
|
|
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
|
|
292
|
-
if (
|
|
291
|
+
const mediaHost = resolveHost();
|
|
292
|
+
if (mediaHost?.enumerateDevices === undefined) return;
|
|
293
293
|
try {
|
|
294
|
-
const listed = await
|
|
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
|
|
package/registry/registry.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"registryKind": "vize-lib",
|
|
4
4
|
"package": {
|
|
5
5
|
"name": "@vizejs/ui",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.756.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": "
|
|
3404
|
-
"size":
|
|
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": "
|
|
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": "
|
|
4646
|
-
"size":
|
|
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": "
|
|
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": "
|
|
5685
|
-
"size":
|
|
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": "
|
|
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": "
|
|
15499
|
-
"size":
|
|
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": "
|
|
15562
|
+
"contentHash": "54618064d2d351592fe05df9024152a2320a9d03c191d7fd522cb2c76d507b1d",
|
|
15563
15563
|
"examples": [
|
|
15564
15564
|
{
|
|
15565
15565
|
"path": "families/media/webcam-capture/examples/webcam-capture-basic.vue",
|