@mushi-mushi/core 1.32.3 → 1.33.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.
@@ -1 +1 @@
1
- export { U as MushiPushSubscriptionJSON, Y as MushiReporterChannelUnavailable, am as MushiReporterChannels, _ as MushiReporterNotificationPrefs, $ as MushiReporterPrefsUpdate, a1 as MushiReporterReportDetail, a2 as MushiReporterTimelineItem, a3 as MushiReporterUpdates, an as reporterChannels, ao as subscribeBrowserPush } from './types-DhR6TWJZ.cjs';
1
+ export { U as MushiPushSubscriptionJSON, Y as MushiReporterChannelUnavailable, am as MushiReporterChannels, _ as MushiReporterNotificationPrefs, $ as MushiReporterPrefsUpdate, a1 as MushiReporterReportDetail, a2 as MushiReporterTimelineItem, a3 as MushiReporterUpdates, an as reporterChannels, ao as subscribeBrowserPush } from './types-DkC08B8U.cjs';
@@ -1 +1 @@
1
- export { U as MushiPushSubscriptionJSON, Y as MushiReporterChannelUnavailable, am as MushiReporterChannels, _ as MushiReporterNotificationPrefs, $ as MushiReporterPrefsUpdate, a1 as MushiReporterReportDetail, a2 as MushiReporterTimelineItem, a3 as MushiReporterUpdates, an as reporterChannels, ao as subscribeBrowserPush } from './types-DhR6TWJZ.js';
1
+ export { U as MushiPushSubscriptionJSON, Y as MushiReporterChannelUnavailable, am as MushiReporterChannels, _ as MushiReporterNotificationPrefs, $ as MushiReporterPrefsUpdate, a1 as MushiReporterReportDetail, a2 as MushiReporterTimelineItem, a3 as MushiReporterUpdates, an as reporterChannels, ao as subscribeBrowserPush } from './types-DkC08B8U.js';
@@ -327,12 +327,41 @@ interface MushiWidgetConfig {
327
327
  zIndex?: number;
328
328
  /**
329
329
  * Controls how, or whether, the default trigger is injected.
330
- * `auto` — historical floating stamp FAB.
331
- * `banner` — slim full-width header strip (recommended default; less obtrusive
332
- * than a FAB and visible even when the SDK launcher is `hide()`'d).
333
- * Pair with `bannerConfig` to customise appearance.
330
+ * `auto` — floating stamp FAB; on phones it becomes an edge tab (see `mobileTrigger`).
331
+ * `edge-tab` — a slim tab flush with the screen edge: 22×48px drawn, 44×48px to tap.
332
+ * `banner` — slim full-width header strip (recommended default; less obtrusive
333
+ * than a FAB and visible even when the SDK launcher is `hide()`'d).
334
+ * Pair with `bannerConfig` to customise appearance.
334
335
  */
335
336
  trigger?: 'auto' | 'banner' | 'edge-tab' | 'attach' | 'manual' | 'hidden';
337
+ /**
338
+ * What `trigger: 'auto'` draws at phone widths (≤ 768px). `'edge-tab'`
339
+ * draws the slim edge tab; `'auto'` keeps the round FAB. Default
340
+ * `'edge-tab'`, or `'auto'` when the host shaped the FAB itself (a left or
341
+ * right `anchor` / `inset`, `draggable`, or a word `triggerText`).
342
+ */
343
+ mobileTrigger?: 'edge-tab' | 'auto';
344
+ /**
345
+ * Lift the launcher, panel and toast above fixed or sticky host bars that
346
+ * touch the bottom of the viewport (tab bars, cookie strips, chat composers).
347
+ * Default `true`. The lift is a floor: an explicit `inset.bottom` or
348
+ * `anchor.bottom` that is already higher wins. Set `false` to keep the
349
+ * launcher exactly where `inset` / `anchor` puts it.
350
+ */
351
+ avoidFixedBars?: boolean;
352
+ /**
353
+ * Tuck the launcher toward its edge and fade it while the page scrolls,
354
+ * then bring it back when scrolling stops. Default `true`. Never tucks while
355
+ * the launcher has focus or the panel is open. Ignored when
356
+ * `smartHide.onScroll` is set.
357
+ */
358
+ tuckOnScroll?: boolean;
359
+ /**
360
+ * Show a "Hide the bug button for this visit" action in the report panel.
361
+ * The choice lasts until the tab closes (sessionStorage), including through
362
+ * `Mushi.show()`; `Mushi.open()` still opens the panel. Default `true`.
363
+ */
364
+ dismissible?: boolean;
336
365
  /**
337
366
  * Configuration for the header-banner launcher mode.
338
367
  * Only applies when `trigger === 'banner'`.
@@ -356,7 +385,9 @@ interface MushiWidgetConfig {
356
385
  /**
357
386
  * Allow the FAB to be dragged and repositioned by the user.
358
387
  * - `true` — drag enabled, persisted to localStorage, snaps to nearest edge on release.
359
- * - `false` — fixed position (default).
388
+ * - `false` — fixed position (default for the FAB).
389
+ * - Unset — the edge tab can still be dragged up and down its edge (persisted per site).
390
+ * The edge tab always moves along its edge only (`axis: 'y'`).
360
391
  * - Object — fine-grained control:
361
392
  * - `persist` save position per projectId (default true when draggable).
362
393
  * - `snapToEdge` snap to the nearest left/right edge on release (default true).
@@ -327,12 +327,41 @@ interface MushiWidgetConfig {
327
327
  zIndex?: number;
328
328
  /**
329
329
  * Controls how, or whether, the default trigger is injected.
330
- * `auto` — historical floating stamp FAB.
331
- * `banner` — slim full-width header strip (recommended default; less obtrusive
332
- * than a FAB and visible even when the SDK launcher is `hide()`'d).
333
- * Pair with `bannerConfig` to customise appearance.
330
+ * `auto` — floating stamp FAB; on phones it becomes an edge tab (see `mobileTrigger`).
331
+ * `edge-tab` — a slim tab flush with the screen edge: 22×48px drawn, 44×48px to tap.
332
+ * `banner` — slim full-width header strip (recommended default; less obtrusive
333
+ * than a FAB and visible even when the SDK launcher is `hide()`'d).
334
+ * Pair with `bannerConfig` to customise appearance.
334
335
  */
335
336
  trigger?: 'auto' | 'banner' | 'edge-tab' | 'attach' | 'manual' | 'hidden';
337
+ /**
338
+ * What `trigger: 'auto'` draws at phone widths (≤ 768px). `'edge-tab'`
339
+ * draws the slim edge tab; `'auto'` keeps the round FAB. Default
340
+ * `'edge-tab'`, or `'auto'` when the host shaped the FAB itself (a left or
341
+ * right `anchor` / `inset`, `draggable`, or a word `triggerText`).
342
+ */
343
+ mobileTrigger?: 'edge-tab' | 'auto';
344
+ /**
345
+ * Lift the launcher, panel and toast above fixed or sticky host bars that
346
+ * touch the bottom of the viewport (tab bars, cookie strips, chat composers).
347
+ * Default `true`. The lift is a floor: an explicit `inset.bottom` or
348
+ * `anchor.bottom` that is already higher wins. Set `false` to keep the
349
+ * launcher exactly where `inset` / `anchor` puts it.
350
+ */
351
+ avoidFixedBars?: boolean;
352
+ /**
353
+ * Tuck the launcher toward its edge and fade it while the page scrolls,
354
+ * then bring it back when scrolling stops. Default `true`. Never tucks while
355
+ * the launcher has focus or the panel is open. Ignored when
356
+ * `smartHide.onScroll` is set.
357
+ */
358
+ tuckOnScroll?: boolean;
359
+ /**
360
+ * Show a "Hide the bug button for this visit" action in the report panel.
361
+ * The choice lasts until the tab closes (sessionStorage), including through
362
+ * `Mushi.show()`; `Mushi.open()` still opens the panel. Default `true`.
363
+ */
364
+ dismissible?: boolean;
336
365
  /**
337
366
  * Configuration for the header-banner launcher mode.
338
367
  * Only applies when `trigger === 'banner'`.
@@ -356,7 +385,9 @@ interface MushiWidgetConfig {
356
385
  /**
357
386
  * Allow the FAB to be dragged and repositioned by the user.
358
387
  * - `true` — drag enabled, persisted to localStorage, snaps to nearest edge on release.
359
- * - `false` — fixed position (default).
388
+ * - `false` — fixed position (default for the FAB).
389
+ * - Unset — the edge tab can still be dragged up and down its edge (persisted per site).
390
+ * The edge tab always moves along its edge only (`axis: 'y'`).
360
391
  * - Object — fine-grained control:
361
392
  * - `persist` save position per projectId (default true when draggable).
362
393
  * - `snapToEdge` snap to the nearest left/right edge on release (default true).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mushi-mushi/core",
3
- "version": "1.32.3",
3
+ "version": "1.33.0",
4
4
  "description": "Types, API client and pre-filter for Mushi SDKs. The bug mediator for AI-built apps: plain-English diagnosis + a ready fix, in your editor.",
5
5
  "license": "MIT",
6
6
  "type": "module",