@aperture-browser/session-react 0.0.0-nightly.152.d22ea4d4437f → 0.0.0-nightly.155.c6f3ca7db4db
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/headless.d.ts +5 -2
- package/dist/headless.js +21 -5
- package/dist/headless.js.map +1 -1
- package/dist/index.d.ts +22 -7
- package/dist/index.js +228 -67
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { Fragment, createContext, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { SessionError as SessionError$1 } from "@aperture-browser/session-client";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { AppWindow, ArrowDownToLine, ArrowLeft, ArrowRight, ArrowUpFromLine, Bot, Camera, Check, CheckIcon, ChevronLeft, ChevronLeftIcon, ChevronRight, ChevronRightIcon, Circle, CircleAlert, CircleCheck, CircleCheckIcon, ClipboardList, ClipboardPaste, Copy, Download, ExternalLink, Eye, FileIcon, Film, FolderOpen, Globe2, Hand, Hourglass, Image, Images, InfoIcon, Keyboard, Layers2, Link2, Loader2, Loader2Icon, Maximize2, Monitor, MoreHorizontal, MoreVertical, MousePointer2, OctagonXIcon, PanelRight, Paperclip, Pause, Pencil, Play, Plus, Radio, RefreshCw, RotateCcw, Search, Smartphone, Square, SunMoon, TextSelect, Trash2, TriangleAlertIcon, Undo2, Unplug, Volume2, VolumeX, X, XIcon } from "lucide-react";
|
|
6
|
+
import { AppWindow, ArrowDownToLine, ArrowLeft, ArrowRight, ArrowUpFromLine, Bot, Camera, Check, CheckIcon, ChevronLeft, ChevronLeftIcon, ChevronRight, ChevronRightIcon, Circle, CircleAlert, CircleCheck, CircleCheckIcon, ClipboardList, ClipboardPaste, Copy, Download, ExternalLink, Eye, FileIcon, Film, FolderOpen, Gauge, Globe2, Hand, Hourglass, Image, Images, InfoIcon, Keyboard, Layers2, Link2, Loader2, Loader2Icon, Maximize2, Monitor, MoreHorizontal, MoreVertical, MousePointer2, OctagonXIcon, PanelRight, Paperclip, Pause, Pencil, Play, Plus, Radio, RefreshCw, RotateCcw, Scissors, Search, Smartphone, Square, SunMoon, TextSelect, Trash2, TriangleAlertIcon, Undo2, Unplug, Volume2, VolumeX, X, XIcon } from "lucide-react";
|
|
7
7
|
import { useTheme } from "next-themes";
|
|
8
8
|
import { Toaster, toast } from "sonner";
|
|
9
9
|
import { Drawer } from "@base-ui/react/drawer";
|
|
@@ -3056,10 +3056,11 @@ function formatScale(scale) {
|
|
|
3056
3056
|
const LISTED = 6;
|
|
3057
3057
|
const SETTINGS_KEY = "aperture.session.recording";
|
|
3058
3058
|
const DEFAULT_SETTINGS = {
|
|
3059
|
+
follow: false,
|
|
3059
3060
|
capture: "continuous",
|
|
3060
3061
|
idle: "keep",
|
|
3061
|
-
|
|
3062
|
-
|
|
3062
|
+
ripple: false,
|
|
3063
|
+
fps: 60
|
|
3063
3064
|
};
|
|
3064
3065
|
const CAPTURES = {
|
|
3065
3066
|
continuous: "Continuous",
|
|
@@ -3070,27 +3071,33 @@ const IDLES = {
|
|
|
3070
3071
|
cut: "Cut",
|
|
3071
3072
|
speed: "Speed up"
|
|
3072
3073
|
};
|
|
3073
|
-
const
|
|
3074
|
-
instant: "Instant",
|
|
3075
|
-
fast: "Fast",
|
|
3076
|
-
slow: "Slow"
|
|
3077
|
-
};
|
|
3074
|
+
const RATES = [30, 60];
|
|
3078
3075
|
const isSettings = (value) => {
|
|
3079
3076
|
if (typeof value !== "object" || value === null) return false;
|
|
3080
|
-
const { capture, idle,
|
|
3081
|
-
return typeof capture === "string" && capture in CAPTURES && typeof idle === "string" && idle in IDLES && typeof
|
|
3077
|
+
const { follow, capture, idle, ripple, fps } = value;
|
|
3078
|
+
return typeof follow === "boolean" && typeof capture === "string" && capture in CAPTURES && typeof idle === "string" && idle in IDLES && typeof ripple === "boolean" && RATES.some((rate) => rate === fps);
|
|
3082
3079
|
};
|
|
3083
3080
|
function useRecordingSettings() {
|
|
3084
3081
|
return useStored(SETTINGS_KEY, DEFAULT_SETTINGS, isSettings);
|
|
3085
3082
|
}
|
|
3086
|
-
|
|
3083
|
+
/** What the session is asked for an edit made as `settings` say. */
|
|
3084
|
+
function editOptions(settings) {
|
|
3087
3085
|
const bursts = settings.capture === "bursts";
|
|
3088
3086
|
return {
|
|
3089
|
-
tab,
|
|
3090
3087
|
capture: settings.capture,
|
|
3091
3088
|
idle: bursts || settings.idle === "keep" ? null : settings.idle,
|
|
3092
|
-
|
|
3093
|
-
|
|
3089
|
+
ripple: settings.ripple,
|
|
3090
|
+
fps: settings.fps
|
|
3091
|
+
};
|
|
3092
|
+
}
|
|
3093
|
+
/** What the workbench offers of the options an edit was made with. */
|
|
3094
|
+
function editSettings(options) {
|
|
3095
|
+
if (options === void 0) return DEFAULT_SETTINGS;
|
|
3096
|
+
return {
|
|
3097
|
+
capture: options.capture,
|
|
3098
|
+
idle: options.idle ?? "keep",
|
|
3099
|
+
ripple: options.ripple,
|
|
3100
|
+
fps: options.fps > 30 ? 60 : 30
|
|
3094
3101
|
};
|
|
3095
3102
|
}
|
|
3096
3103
|
/** Starts a recording of the watched tab. */
|
|
@@ -3104,7 +3111,10 @@ function RecordItem() {
|
|
|
3104
3111
|
const canStart = snapshot.connection.state === "open" && allowed && watched !== void 0 && !recordsWatched && !recordings.busy;
|
|
3105
3112
|
const start = () => {
|
|
3106
3113
|
if (watched === void 0) return;
|
|
3107
|
-
recordings.start(
|
|
3114
|
+
recordings.start({
|
|
3115
|
+
tab: watched.tab,
|
|
3116
|
+
follow: settings.follow
|
|
3117
|
+
}).catch((cause) => {
|
|
3108
3118
|
showNotice({
|
|
3109
3119
|
level: "error",
|
|
3110
3120
|
message: "The recording did not start",
|
|
@@ -3128,8 +3138,9 @@ function RunningRecordingItems() {
|
|
|
3128
3138
|
const running = recordings.recordings.filter(recordingRuns);
|
|
3129
3139
|
const now = useNow(running.length > 0);
|
|
3130
3140
|
const allowed = snapshot.features.recordings.write;
|
|
3141
|
+
const [settings] = useRecordingSettings();
|
|
3131
3142
|
const stop = (recording) => {
|
|
3132
|
-
recordings.stop(recording.id).catch((cause) => {
|
|
3143
|
+
recordings.stop(recording.id, editOptions(settings)).catch((cause) => {
|
|
3133
3144
|
showNotice({
|
|
3134
3145
|
level: "error",
|
|
3135
3146
|
message: "The recording did not stop",
|
|
@@ -3257,12 +3268,109 @@ function ScreenshotItem() {
|
|
|
3257
3268
|
})]
|
|
3258
3269
|
});
|
|
3259
3270
|
}
|
|
3260
|
-
/** How
|
|
3271
|
+
/** How a new recording is made, and how the one that stops is edited. */
|
|
3261
3272
|
function RecordingSettingsItems() {
|
|
3262
3273
|
const [settings, onChange] = useRecordingSettings();
|
|
3263
|
-
const bursts = settings.capture === "bursts";
|
|
3264
3274
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3265
3275
|
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "New recording" }),
|
|
3276
|
+
/* @__PURE__ */ jsxs(Tooltip$1, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
3277
|
+
render: /* @__PURE__ */ jsx(DropdownMenuCheckboxItem, {
|
|
3278
|
+
checked: settings.follow,
|
|
3279
|
+
closeOnClick: false,
|
|
3280
|
+
onCheckedChange: (follow) => onChange({
|
|
3281
|
+
...settings,
|
|
3282
|
+
follow
|
|
3283
|
+
})
|
|
3284
|
+
}),
|
|
3285
|
+
children: "Follow automation"
|
|
3286
|
+
}), /* @__PURE__ */ jsx(TooltipContent, {
|
|
3287
|
+
side: "left",
|
|
3288
|
+
children: "The recording goes on with whichever tab automation acts on, in the same video."
|
|
3289
|
+
})] }),
|
|
3290
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "When a recording stops" }),
|
|
3291
|
+
/* @__PURE__ */ jsx(EditSettingsItems, {
|
|
3292
|
+
settings,
|
|
3293
|
+
onChange: (edit) => onChange({
|
|
3294
|
+
...settings,
|
|
3295
|
+
...edit
|
|
3296
|
+
})
|
|
3297
|
+
})
|
|
3298
|
+
] });
|
|
3299
|
+
}
|
|
3300
|
+
/** The session's pace: how automation moves the pointer in what is recorded. */
|
|
3301
|
+
function AutomationPaceItem() {
|
|
3302
|
+
const { features } = useWorkbench();
|
|
3303
|
+
const session = useSession();
|
|
3304
|
+
const snapshot = useSessionSnapshot();
|
|
3305
|
+
if (!features.recordings) return null;
|
|
3306
|
+
const set = (pace) => {
|
|
3307
|
+
session.pace.set(pace).catch((cause) => {
|
|
3308
|
+
showNotice({
|
|
3309
|
+
level: "error",
|
|
3310
|
+
message: "The pace was not set",
|
|
3311
|
+
description: failureText(cause)
|
|
3312
|
+
});
|
|
3313
|
+
});
|
|
3314
|
+
};
|
|
3315
|
+
return /* @__PURE__ */ jsxs(DropdownMenuSub, { children: [/* @__PURE__ */ jsxs(DropdownMenuSubTrigger, {
|
|
3316
|
+
disabled: !snapshot.features.recordings.write,
|
|
3317
|
+
children: [/* @__PURE__ */ jsx(Gauge, {}), /* @__PURE__ */ jsxs("span", {
|
|
3318
|
+
className: "aperture:flex aperture:min-w-0 aperture:flex-1 aperture:items-center aperture:justify-between aperture:gap-3",
|
|
3319
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
3320
|
+
"data-menu-title": "",
|
|
3321
|
+
className: "aperture:shrink-0",
|
|
3322
|
+
children: "Automation pace"
|
|
3323
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
3324
|
+
className: "aperture:truncate aperture:text-muted-foreground",
|
|
3325
|
+
children: PACES[snapshot.pace]
|
|
3326
|
+
})]
|
|
3327
|
+
})]
|
|
3328
|
+
}), /* @__PURE__ */ jsx(DropdownMenuSubContent, {
|
|
3329
|
+
className: "aperture:w-64",
|
|
3330
|
+
children: /* @__PURE__ */ jsxs(DropdownMenuRadioGroup, {
|
|
3331
|
+
"aria-label": "Automation pace",
|
|
3332
|
+
value: snapshot.pace,
|
|
3333
|
+
onValueChange: (value) => {
|
|
3334
|
+
if (value === "instant" || value === "fast" || value === "slow") set(value);
|
|
3335
|
+
},
|
|
3336
|
+
children: [
|
|
3337
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
3338
|
+
value: "instant",
|
|
3339
|
+
closeOnClick: false,
|
|
3340
|
+
children: /* @__PURE__ */ jsx(Described, {
|
|
3341
|
+
title: "Instant",
|
|
3342
|
+
children: "The pointer jumps straight to each action."
|
|
3343
|
+
})
|
|
3344
|
+
}),
|
|
3345
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
3346
|
+
value: "fast",
|
|
3347
|
+
closeOnClick: false,
|
|
3348
|
+
children: /* @__PURE__ */ jsx(Described, {
|
|
3349
|
+
title: "Fast",
|
|
3350
|
+
children: "In a recorded tab the pointer travels there, quickly but so that the eye can follow."
|
|
3351
|
+
})
|
|
3352
|
+
}),
|
|
3353
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
3354
|
+
value: "slow",
|
|
3355
|
+
closeOnClick: false,
|
|
3356
|
+
children: /* @__PURE__ */ jsx(Described, {
|
|
3357
|
+
title: "Slow",
|
|
3358
|
+
children: "Unhurried travel and longer pauses, for demos."
|
|
3359
|
+
})
|
|
3360
|
+
})
|
|
3361
|
+
]
|
|
3362
|
+
})
|
|
3363
|
+
})] });
|
|
3364
|
+
}
|
|
3365
|
+
const PACES = {
|
|
3366
|
+
instant: "Instant",
|
|
3367
|
+
fast: "Fast",
|
|
3368
|
+
slow: "Slow"
|
|
3369
|
+
};
|
|
3370
|
+
/** How an edit is made: what a recording is stopped with, or edited again with. */
|
|
3371
|
+
function EditSettingsItems({ settings, onChange }) {
|
|
3372
|
+
const bursts = settings.capture === "bursts";
|
|
3373
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3266
3374
|
/* @__PURE__ */ jsxs(DropdownMenuSub, { children: [/* @__PURE__ */ jsx(SettingSubTrigger, {
|
|
3267
3375
|
name: "Capture",
|
|
3268
3376
|
value: CAPTURES[settings.capture]
|
|
@@ -3340,45 +3448,25 @@ function RecordingSettingsItems() {
|
|
|
3340
3448
|
})
|
|
3341
3449
|
})] }),
|
|
3342
3450
|
/* @__PURE__ */ jsxs(DropdownMenuSub, { children: [/* @__PURE__ */ jsx(SettingSubTrigger, {
|
|
3343
|
-
name: "
|
|
3344
|
-
value:
|
|
3451
|
+
name: "Frame rate",
|
|
3452
|
+
value: `${settings.fps} fps`
|
|
3345
3453
|
}), /* @__PURE__ */ jsx(DropdownMenuSubContent, {
|
|
3346
|
-
className: "aperture:w-
|
|
3347
|
-
children: /* @__PURE__ */
|
|
3348
|
-
"aria-label": "
|
|
3349
|
-
value: settings.
|
|
3454
|
+
className: "aperture:w-44",
|
|
3455
|
+
children: /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
|
|
3456
|
+
"aria-label": "Frame rate",
|
|
3457
|
+
value: String(settings.fps),
|
|
3350
3458
|
onValueChange: (value) => {
|
|
3351
|
-
|
|
3459
|
+
const fps = RATES.find((rate) => String(rate) === value);
|
|
3460
|
+
if (fps !== void 0) onChange({
|
|
3352
3461
|
...settings,
|
|
3353
|
-
|
|
3462
|
+
fps
|
|
3354
3463
|
});
|
|
3355
3464
|
},
|
|
3356
|
-
children:
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
title: "Instant",
|
|
3362
|
-
children: "The pointer jumps straight to each action."
|
|
3363
|
-
})
|
|
3364
|
-
}),
|
|
3365
|
-
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
3366
|
-
value: "fast",
|
|
3367
|
-
closeOnClick: false,
|
|
3368
|
-
children: /* @__PURE__ */ jsx(Described, {
|
|
3369
|
-
title: "Fast",
|
|
3370
|
-
children: "The pointer travels there, quickly but so that the eye can follow."
|
|
3371
|
-
})
|
|
3372
|
-
}),
|
|
3373
|
-
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
3374
|
-
value: "slow",
|
|
3375
|
-
closeOnClick: false,
|
|
3376
|
-
children: /* @__PURE__ */ jsx(Described, {
|
|
3377
|
-
title: "Slow",
|
|
3378
|
-
children: "Unhurried travel and longer pauses, for demos."
|
|
3379
|
-
})
|
|
3380
|
-
})
|
|
3381
|
-
]
|
|
3465
|
+
children: RATES.map((rate) => /* @__PURE__ */ jsxs(DropdownMenuRadioItem, {
|
|
3466
|
+
value: String(rate),
|
|
3467
|
+
closeOnClick: false,
|
|
3468
|
+
children: [rate, " fps"]
|
|
3469
|
+
}, rate))
|
|
3382
3470
|
})
|
|
3383
3471
|
})] }),
|
|
3384
3472
|
/* @__PURE__ */ jsxs(Tooltip$1, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
@@ -3957,6 +4045,13 @@ const workbenchContributions = [
|
|
|
3957
4045
|
order: 800,
|
|
3958
4046
|
component: CopyUrlItem
|
|
3959
4047
|
},
|
|
4048
|
+
{
|
|
4049
|
+
id: "browser.pace",
|
|
4050
|
+
slot: "menu.browser",
|
|
4051
|
+
group: "session",
|
|
4052
|
+
order: 850,
|
|
4053
|
+
component: AutomationPaceItem
|
|
4054
|
+
},
|
|
3960
4055
|
{
|
|
3961
4056
|
id: "browser.appearance",
|
|
3962
4057
|
slot: "menu.browser",
|
|
@@ -4020,6 +4115,13 @@ const workbenchContributions = [
|
|
|
4020
4115
|
order: 700,
|
|
4021
4116
|
component: PhoneRecordingItem
|
|
4022
4117
|
},
|
|
4118
|
+
{
|
|
4119
|
+
id: "phone.pace",
|
|
4120
|
+
slot: "menu.phone",
|
|
4121
|
+
group: "session",
|
|
4122
|
+
order: 750,
|
|
4123
|
+
component: AutomationPaceItem
|
|
4124
|
+
},
|
|
4023
4125
|
{
|
|
4024
4126
|
id: "phone.view",
|
|
4025
4127
|
slot: "menu.phone",
|
|
@@ -4870,7 +4972,8 @@ function RecordingView({ kept, bar, hidden, onSize, onResting }) {
|
|
|
4870
4972
|
const [raw, setRaw] = useState(false);
|
|
4871
4973
|
const playsRaw = raw || edited === void 0;
|
|
4872
4974
|
const file = playsRaw ? recording.file : edited ?? recording.file;
|
|
4873
|
-
const
|
|
4975
|
+
const made = playsRaw ? null : recording.edit?.made_at_ms ?? null;
|
|
4976
|
+
const src = made === null ? session.fileUrl(file) : madeAt(session.fileUrl(file), made);
|
|
4874
4977
|
const videoRef = useRef(null);
|
|
4875
4978
|
const [playing, setPlaying] = useState(false);
|
|
4876
4979
|
const [muted, setMuted] = useState(false);
|
|
@@ -4975,7 +5078,7 @@ function RecordingView({ kept, bar, hidden, onSize, onResting }) {
|
|
|
4975
5078
|
children: [false, true].map((one) => /* @__PURE__ */ jsx("button", {
|
|
4976
5079
|
type: "button",
|
|
4977
5080
|
"aria-pressed": raw === one,
|
|
4978
|
-
title: one ? "The video as it was recorded" : "With the cuts and marks
|
|
5081
|
+
title: one ? "The video as it was recorded" : "With the cuts and marks of its edit",
|
|
4979
5082
|
className: cn("aperture:rounded aperture:px-1.5 aperture:text-xs aperture:leading-5 aperture:outline-none aperture:focus-visible:ring-2 aperture:focus-visible:ring-ring", raw === one ? "aperture:bg-background aperture:shadow-xs" : "aperture:text-muted-foreground aperture:hover:text-foreground"),
|
|
4980
5083
|
onClick: () => {
|
|
4981
5084
|
setRaw(one);
|
|
@@ -4987,23 +5090,81 @@ function RecordingView({ kept, bar, hidden, onSize, onResting }) {
|
|
|
4987
5090
|
}),
|
|
4988
5091
|
/* @__PURE__ */ jsxs("div", {
|
|
4989
5092
|
className: "aperture:flex aperture:shrink-0 aperture:items-center",
|
|
4990
|
-
children: [
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5093
|
+
children: [
|
|
5094
|
+
/* @__PURE__ */ jsx(EditAgain, { recording }),
|
|
5095
|
+
/* @__PURE__ */ jsx(Button$1, {
|
|
5096
|
+
type: "button",
|
|
5097
|
+
variant: "ghost",
|
|
5098
|
+
size: "icon-xs",
|
|
5099
|
+
"aria-label": muted ? "Unmute" : "Mute",
|
|
5100
|
+
"aria-pressed": muted,
|
|
5101
|
+
onClick: () => setMuted(!muted),
|
|
5102
|
+
children: muted ? /* @__PURE__ */ jsx(VolumeX, {}) : /* @__PURE__ */ jsx(Volume2, {})
|
|
5103
|
+
}),
|
|
5104
|
+
/* @__PURE__ */ jsx(FileLinks, {
|
|
5105
|
+
href: src,
|
|
5106
|
+
file
|
|
5107
|
+
})
|
|
5108
|
+
]
|
|
5002
5109
|
})
|
|
5003
5110
|
]
|
|
5004
5111
|
})]
|
|
5005
5112
|
});
|
|
5006
5113
|
}
|
|
5114
|
+
/**
|
|
5115
|
+
* Makes the edit of a recording again, of the same raw video and as chosen here: what the
|
|
5116
|
+
* edit there is was made with, until something else is. The new edit takes its place.
|
|
5117
|
+
*/
|
|
5118
|
+
function EditAgain({ recording }) {
|
|
5119
|
+
const { recordings } = useWorkbench();
|
|
5120
|
+
const allowed = useSessionSnapshot().features.recordings.write;
|
|
5121
|
+
const [chosen, setChosen] = useState(void 0);
|
|
5122
|
+
const settings = chosen ?? editSettings(recording.edit?.options);
|
|
5123
|
+
const editing = recordingIsEdited(recording);
|
|
5124
|
+
if (recording.edit === null || recording.state !== "finished") return null;
|
|
5125
|
+
const edit = () => {
|
|
5126
|
+
recordings.edit(recording.id, editOptions(settings)).then(() => setChosen(void 0), (cause) => showNotice({
|
|
5127
|
+
level: "error",
|
|
5128
|
+
message: "The recording was not edited again",
|
|
5129
|
+
description: failureText(cause)
|
|
5130
|
+
}));
|
|
5131
|
+
};
|
|
5132
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
5133
|
+
render: /* @__PURE__ */ jsx(Button$1, {
|
|
5134
|
+
type: "button",
|
|
5135
|
+
variant: "ghost",
|
|
5136
|
+
size: "icon-xs",
|
|
5137
|
+
"aria-label": "Edit again…",
|
|
5138
|
+
title: editing ? "The edit is being made" : "Edit again…",
|
|
5139
|
+
"data-kept-edit-again": "",
|
|
5140
|
+
disabled: editing || !allowed
|
|
5141
|
+
}),
|
|
5142
|
+
children: /* @__PURE__ */ jsx(Scissors, {})
|
|
5143
|
+
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
5144
|
+
side: "top",
|
|
5145
|
+
align: "end",
|
|
5146
|
+
className: "aperture:w-64",
|
|
5147
|
+
children: [
|
|
5148
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Edit again" }),
|
|
5149
|
+
/* @__PURE__ */ jsx(EditSettingsItems, {
|
|
5150
|
+
settings,
|
|
5151
|
+
onChange: setChosen
|
|
5152
|
+
}),
|
|
5153
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
5154
|
+
/* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
5155
|
+
"data-kept-edit-make": "",
|
|
5156
|
+
onClick: edit,
|
|
5157
|
+
children: [/* @__PURE__ */ jsx(Scissors, {}), "Make the edit"]
|
|
5158
|
+
})
|
|
5159
|
+
]
|
|
5160
|
+
})] });
|
|
5161
|
+
}
|
|
5162
|
+
/** A file's address as of one making of it, which no cache has for another. */
|
|
5163
|
+
function madeAt(address, made) {
|
|
5164
|
+
const url = new URL(address);
|
|
5165
|
+
url.searchParams.set("made", String(made));
|
|
5166
|
+
return url.toString();
|
|
5167
|
+
}
|
|
5007
5168
|
/** What an event of the timeline is, in a few words. */
|
|
5008
5169
|
function eventLabel(event) {
|
|
5009
5170
|
const text = (field) => {
|
|
@@ -6181,6 +6342,6 @@ function useKeyboardInset() {
|
|
|
6181
6342
|
}, []);
|
|
6182
6343
|
}
|
|
6183
6344
|
//#endregion
|
|
6184
|
-
export { AddressBar, ApertureSession, ApertureUIRoot, AppearanceItem, BrowserMenuAction, BrowserTabStrip, BrowserViewport, CompactContext, CopyItem, CopyUrlItem, Described, DrawAction, KeptFacts, KeptGallery, KeptItems, KeyboardAction, LeaseItems, LeaseOverlay, MemberAvatar, MemberDot, MenuButton, MuteItem, NavigationButtons, NavigationItems, PageLinkItems, PageMenu, PageModeItem, PageNavigationItems, PagePictureItems, PageTextItems, PasteItem, PhoneWorkbench, PictureAction, PictureItems, PictureSubmenuItem, PointersItem, ReconnectItem, RecordItem, RecordingAction, RecordingSettingsItems, RecordingSubmenuItem, RunningRecordingItems, ScreenshotItem, SelectAllItem, SessionError, SessionFilesButton, SessionPresence, SessionProvider, SessionViewport, SessionWorkbench, SettingSubTrigger, TabCloseItem, TabCloseOthersItem, TabCloseRightItem, TabCopyUrlItem, TabDuplicateItem, TabFavicon, TabMuteItem, TabReloadItem, TabSwitcher, Thumbnail, ToolbarActions, ToolbarButton, TypeItem, ViewportItems, WorkbenchFrame, WorkbenchMenuSlot, WorkbenchProvider, WorkbenchSlot, WorkbenchTitlebar, WorkbenchToolbar, addressOf, automationName, connect, copyTextHere, failureText, formatBytes, formatDuration, formatStarted, groupContributions, keptOf, keptPreview, memberColor, pasteHere, pictureBox, pictureStatus, recordingIsEdited, recordingRuns, resolveContributions, resolveSessionFeatures, showNotice, tabLabel, useAddress, useCompactToolbar, useConnectedSession, useCrowdedToolbar, useInputState, useKeyboardInset, useLease, usePhone, useReconnect, useRecordingSettings, useRecordingTimeline, useRecordings, useRememberedFit, useSession, useSessionSnapshot, useStored, useTabSound, useUploads, useWatchedTarget, useWorkbench, workbenchContributions };
|
|
6345
|
+
export { AddressBar, ApertureSession, ApertureUIRoot, AppearanceItem, AutomationPaceItem, BrowserMenuAction, BrowserTabStrip, BrowserViewport, CompactContext, CopyItem, CopyUrlItem, Described, DrawAction, EditSettingsItems, KeptFacts, KeptGallery, KeptItems, KeyboardAction, LeaseItems, LeaseOverlay, MemberAvatar, MemberDot, MenuButton, MuteItem, NavigationButtons, NavigationItems, PageLinkItems, PageMenu, PageModeItem, PageNavigationItems, PagePictureItems, PageTextItems, PasteItem, PhoneWorkbench, PictureAction, PictureItems, PictureSubmenuItem, PointersItem, ReconnectItem, RecordItem, RecordingAction, RecordingSettingsItems, RecordingSubmenuItem, RunningRecordingItems, ScreenshotItem, SelectAllItem, SessionError, SessionFilesButton, SessionPresence, SessionProvider, SessionViewport, SessionWorkbench, SettingSubTrigger, TabCloseItem, TabCloseOthersItem, TabCloseRightItem, TabCopyUrlItem, TabDuplicateItem, TabFavicon, TabMuteItem, TabReloadItem, TabSwitcher, Thumbnail, ToolbarActions, ToolbarButton, TypeItem, ViewportItems, WorkbenchFrame, WorkbenchMenuSlot, WorkbenchProvider, WorkbenchSlot, WorkbenchTitlebar, WorkbenchToolbar, addressOf, automationName, connect, copyTextHere, failureText, formatBytes, formatDuration, formatStarted, groupContributions, keptOf, keptPreview, memberColor, pasteHere, pictureBox, pictureStatus, recordingIsEdited, recordingRuns, resolveContributions, resolveSessionFeatures, showNotice, tabLabel, useAddress, useCompactToolbar, useConnectedSession, useCrowdedToolbar, useInputState, useKeyboardInset, useLease, usePhone, useReconnect, useRecordingSettings, useRecordingTimeline, useRecordings, useRememberedFit, useSession, useSessionSnapshot, useStored, useTabSound, useUploads, useWatchedTarget, useWorkbench, workbenchContributions };
|
|
6185
6346
|
|
|
6186
6347
|
//# sourceMappingURL=index.js.map
|