@unhingged/vizu-core 0.1.15 → 0.1.16

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/auto.cjs CHANGED
@@ -3368,6 +3368,10 @@ var STYLES = `
3368
3368
  pointer-events: none;
3369
3369
  z-index: 1;
3370
3370
  }
3371
+ /* Opt-in only during an active dragover. The explicit display:flex
3372
+ * above out-specifics the browser default for [hidden], so we restate
3373
+ * the hide rule here to make the attribute toggle effective. */
3374
+ .vz-attachment-drop-hint[hidden] { display: none; }
3371
3375
 
3372
3376
  /* Pending attachments (uploaded but not yet saved) */
3373
3377
  .vz-attachment-list {
@@ -3764,10 +3768,25 @@ var Vizu = class {
3764
3768
  /**
3765
3769
  * Fetch the list of users who can be @-mentioned on the current
3766
3770
  * workspace. Used by the popover's mention dropdown; hosts can also
3767
- * call this directly to build their own picker. Returns [] for
3768
- * non-cloud adapters (no workspace, no member list to fetch from).
3771
+ * call this directly to build their own picker.
3772
+ *
3773
+ * Resolution order:
3774
+ * 1. `options.mentionable` if provided — host-supplied static or
3775
+ * custom resolver. Wins over everything else.
3776
+ * 2. Cloud adapter's API call if running cloud mode.
3777
+ * 3. Empty array (non-cloud, no override).
3769
3778
  */
3770
3779
  async searchMentionable() {
3780
+ if (this.opts.mentionable) {
3781
+ try {
3782
+ return await this.opts.mentionable();
3783
+ } catch (err) {
3784
+ if (typeof console !== "undefined") {
3785
+ console.warn("[vizu] options.mentionable threw", err);
3786
+ }
3787
+ return [];
3788
+ }
3789
+ }
3771
3790
  if (this.storage instanceof CloudStorageAdapter) {
3772
3791
  return this.storage.searchMentionable();
3773
3792
  }