@mushi-mushi/web 1.32.3 → 1.33.1
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/chunks/{screenshot-annotation-IG7C5B6Z.js → screenshot-annotation-5R6MVBEY.js} +2 -2
- package/dist/chunks/screenshot-annotation-5R6MVBEY.js.map +1 -0
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.js.map +1 -1
- package/dist/i18n/index.cjs +10 -5
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +2 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.js +10 -5
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +247 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -4
- package/dist/index.d.ts +29 -4
- package/dist/index.js +248 -56
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +11 -11
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunks/screenshot-annotation-IG7C5B6Z.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -266,6 +266,18 @@ declare class MushiWidget {
|
|
|
266
266
|
private bannerResizeObserver;
|
|
267
267
|
/** Persisted FAB position when draggable is enabled. */
|
|
268
268
|
private fabPos;
|
|
269
|
+
/** Storage key `fabPos` was loaded for. */
|
|
270
|
+
private fabPosKey;
|
|
271
|
+
private draggableSet;
|
|
272
|
+
/** px from the viewport bottom that clears fixed host bars. */
|
|
273
|
+
private barClearance;
|
|
274
|
+
private clampedForClearance;
|
|
275
|
+
private tuckCleanup;
|
|
276
|
+
private tuckTimer;
|
|
277
|
+
private resizeFrame;
|
|
278
|
+
private lateMeasureTimer;
|
|
279
|
+
private readonly onViewportResize;
|
|
280
|
+
private launcherDismissed;
|
|
269
281
|
/** Cleanup fn for visualViewport keyboard listener. */
|
|
270
282
|
private vvCleanup;
|
|
271
283
|
/** Host-app user identity from `identify()` — shown as "Reporting as <name>". */
|
|
@@ -398,6 +410,14 @@ declare class MushiWidget {
|
|
|
398
410
|
};
|
|
399
411
|
private syncAttachedLaunchers;
|
|
400
412
|
private syncSmartHide;
|
|
413
|
+
/** Tuck the launcher while anything scrolls (capture: inner scrollers count). A class toggle, not a rebuild, so focus and drag survive. */
|
|
414
|
+
private syncScrollTuck;
|
|
415
|
+
/**
|
|
416
|
+
* px that clears a bar docked at the viewport bottom, + 8px: a short fixed/sticky
|
|
417
|
+
* element, or a flow child of a fixed full-height shell. Scroller content never counts.
|
|
418
|
+
*/
|
|
419
|
+
private measureFixedBars;
|
|
420
|
+
private dismissLauncherForSession;
|
|
401
421
|
private shouldRenderTrigger;
|
|
402
422
|
/** Height of the banner in px — used as a fallback before first layout. */
|
|
403
423
|
private static readonly BANNER_HEIGHT;
|
|
@@ -429,6 +449,9 @@ declare class MushiWidget {
|
|
|
429
449
|
private syncChrome;
|
|
430
450
|
private syncTrigger;
|
|
431
451
|
private buildTrigger;
|
|
452
|
+
private restoreFabPos;
|
|
453
|
+
/** Drag options, or null when fixed. The tab drags along its edge unless `draggable: false`. */
|
|
454
|
+
private dragOptions;
|
|
432
455
|
private render;
|
|
433
456
|
private renderPanel;
|
|
434
457
|
/** On a new surface: the report textarea, else the title, so screen readers announce where they are. */
|
|
@@ -449,16 +472,16 @@ declare class MushiWidget {
|
|
|
449
472
|
* here: clearing it from the bottom edge would push the widget off-screen.
|
|
450
473
|
*/
|
|
451
474
|
private computeAvoidBottomPx;
|
|
475
|
+
private hostCssVar;
|
|
452
476
|
private applyInsetVars;
|
|
453
|
-
/**
|
|
477
|
+
/** Per-site (origin) key; the FAB and the tab measure from different anchors. */
|
|
454
478
|
private fabStorageKey;
|
|
455
479
|
/**
|
|
456
|
-
* Move the
|
|
457
|
-
* inside the
|
|
480
|
+
* Move the launcher to a translated offset (relative to its CSS anchor),
|
|
481
|
+
* clamped inside the safe area and above host bars. `end` snaps and persists.
|
|
458
482
|
* The base position is derived by subtracting the applied drag offset.
|
|
459
483
|
*/
|
|
460
484
|
private moveFab;
|
|
461
|
-
/** Load previously persisted FAB position. */
|
|
462
485
|
private loadFabPos;
|
|
463
486
|
/** Attach Pointer Events-based drag to the trigger element. */
|
|
464
487
|
private attachDragHandlers;
|
package/dist/index.d.ts
CHANGED
|
@@ -284,6 +284,18 @@ declare class MushiWidget {
|
|
|
284
284
|
private bannerResizeObserver;
|
|
285
285
|
/** Persisted FAB position when draggable is enabled. */
|
|
286
286
|
private fabPos;
|
|
287
|
+
/** Storage key `fabPos` was loaded for. */
|
|
288
|
+
private fabPosKey;
|
|
289
|
+
private draggableSet;
|
|
290
|
+
/** px from the viewport bottom that clears fixed host bars. */
|
|
291
|
+
private barClearance;
|
|
292
|
+
private clampedForClearance;
|
|
293
|
+
private tuckCleanup;
|
|
294
|
+
private tuckTimer;
|
|
295
|
+
private resizeFrame;
|
|
296
|
+
private lateMeasureTimer;
|
|
297
|
+
private readonly onViewportResize;
|
|
298
|
+
private launcherDismissed;
|
|
287
299
|
/** Cleanup fn for visualViewport keyboard listener. */
|
|
288
300
|
private vvCleanup;
|
|
289
301
|
/** Host-app user identity from `identify()` — shown as "Reporting as <name>". */
|
|
@@ -416,6 +428,14 @@ declare class MushiWidget {
|
|
|
416
428
|
};
|
|
417
429
|
private syncAttachedLaunchers;
|
|
418
430
|
private syncSmartHide;
|
|
431
|
+
/** Tuck the launcher while anything scrolls (capture: inner scrollers count). A class toggle, not a rebuild, so focus and drag survive. */
|
|
432
|
+
private syncScrollTuck;
|
|
433
|
+
/**
|
|
434
|
+
* px that clears a bar docked at the viewport bottom, + 8px: a short fixed/sticky
|
|
435
|
+
* element, or a flow child of a fixed full-height shell. Scroller content never counts.
|
|
436
|
+
*/
|
|
437
|
+
private measureFixedBars;
|
|
438
|
+
private dismissLauncherForSession;
|
|
419
439
|
private shouldRenderTrigger;
|
|
420
440
|
/** Height of the banner in px — used as a fallback before first layout. */
|
|
421
441
|
private static readonly BANNER_HEIGHT;
|
|
@@ -447,6 +467,9 @@ declare class MushiWidget {
|
|
|
447
467
|
private syncChrome;
|
|
448
468
|
private syncTrigger;
|
|
449
469
|
private buildTrigger;
|
|
470
|
+
private restoreFabPos;
|
|
471
|
+
/** Drag options, or null when fixed. The tab drags along its edge unless `draggable: false`. */
|
|
472
|
+
private dragOptions;
|
|
450
473
|
private render;
|
|
451
474
|
private renderPanel;
|
|
452
475
|
/** On a new surface: the report textarea, else the title, so screen readers announce where they are. */
|
|
@@ -467,16 +490,16 @@ declare class MushiWidget {
|
|
|
467
490
|
* here: clearing it from the bottom edge would push the widget off-screen.
|
|
468
491
|
*/
|
|
469
492
|
private computeAvoidBottomPx;
|
|
493
|
+
private hostCssVar;
|
|
470
494
|
private applyInsetVars;
|
|
471
|
-
/**
|
|
495
|
+
/** Per-site (origin) key; the FAB and the tab measure from different anchors. */
|
|
472
496
|
private fabStorageKey;
|
|
473
497
|
/**
|
|
474
|
-
* Move the
|
|
475
|
-
* inside the
|
|
498
|
+
* Move the launcher to a translated offset (relative to its CSS anchor),
|
|
499
|
+
* clamped inside the safe area and above host bars. `end` snaps and persists.
|
|
476
500
|
* The base position is derived by subtracting the applied drag offset.
|
|
477
501
|
*/
|
|
478
502
|
private moveFab;
|
|
479
|
-
/** Load previously persisted FAB position. */
|
|
480
503
|
private loadFabPos;
|
|
481
504
|
/** Attach Pointer Events-based drag to the trigger element. */
|
|
482
505
|
private attachDragHandlers;
|
|
@@ -643,6 +666,8 @@ interface MushiLocale {
|
|
|
643
666
|
submitting: string;
|
|
644
667
|
submitted: string;
|
|
645
668
|
error: string;
|
|
669
|
+
/** Panel action that hides the floating launcher until the tab closes. */
|
|
670
|
+
hideLauncher?: string;
|
|
646
671
|
};
|
|
647
672
|
step1: {
|
|
648
673
|
/** @deprecated The 3-step flow is retired (Plan 018); unused since 1.30. */
|