@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 +21 -2
- package/dist/auto.cjs.map +1 -1
- package/dist/auto.js +21 -2
- package/dist/auto.js.map +1 -1
- package/dist/index.cjs +21 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +2538 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +446 -0
- package/dist/internal.d.ts +446 -0
- package/dist/internal.js +2507 -0
- package/dist/internal.js.map +1 -0
- package/dist/vizu.min.js +5 -1
- package/dist/vizu.min.js.map +1 -1
- package/package.json +6 -1
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.
|
|
3768
|
-
*
|
|
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
|
}
|