@acorex/components 22.4.50 → 22.4.52
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/conversation/README.md +16 -0
- package/fesm2022/{acorex-components-conversation-acorex-components-conversation-CccEQ_Wr.mjs → acorex-components-conversation-acorex-components-conversation-CzzR4rLf.mjs} +65 -75
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-CzzR4rLf.mjs.map +1 -0
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-6Is-walP.mjs → acorex-components-conversation-picker-rename-file-dialog.component-DXJF8zIY.mjs} +2 -2
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-6Is-walP.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-DXJF8zIY.mjs.map} +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-lookup.mjs +56 -29
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-text-editor.mjs +63 -31
- package/fesm2022/acorex-components-text-editor.mjs.map +1 -1
- package/lookup/README.md +1 -1
- package/package.json +3 -3
- package/types/acorex-components-conversation.d.ts +17 -8
- package/types/acorex-components-lookup.d.ts +19 -3
- package/types/acorex-components-text-editor.d.ts +4 -1
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-CccEQ_Wr.mjs.map +0 -1
package/conversation/README.md
CHANGED
|
@@ -50,6 +50,22 @@ mentions: {
|
|
|
50
50
|
|
|
51
51
|
Override settings for one conversation with `conversation.metadata.mentions`. For example, `{ people: teamMembers }` replaces the global source for that conversation, `{ enabled: false }` disables mentions, and `{ search: undefined, people: undefined }` restores the group participant fallback. Other settings inherit the global values. `label` overrides the localized accessible picker label.
|
|
52
52
|
|
|
53
|
+
Already-tagged IDs are omitted from the picker. Add custom suggestions alongside the regular people source with `mentions.custom`. Selecting a custom suggestion removes all previous tags from the draft, including other custom tags, and inserts the new tag at the current query. Ordinary message text and formatting stay in place.
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
mentions: {
|
|
57
|
+
custom: {
|
|
58
|
+
conversationTypes: ['private', 'group', 'channel'],
|
|
59
|
+
people: [
|
|
60
|
+
{ id: 'assistant-1', name: 'Assistant 1' },
|
|
61
|
+
{ id: 'assistant-2', name: 'Assistant 2' },
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Custom suggestions default to private, group, and channel conversations. Set `conversationTypes: []` to disable them for a conversation override. For remote custom suggestions, use `custom.search` with the same callback shape as regular search. Use distinct IDs for custom suggestions and participants.
|
|
68
|
+
|
|
53
69
|
Text messages and edits carry the existing `AXConversationTextPayload.mentions` entries (`userId`, `userName`, `start`, `end`). Offsets use UTF-16, include the `@`, exclude the inserted trailing space, and refer to the final trimmed text. Edits move untouched spans and discard a mention when its contents change; manually typing a matching name does not assign an identity. Local text drafts preserve mention metadata across reloads and conversation switches. Attachment captions currently remain plain text.
|
|
54
70
|
|
|
55
71
|
Sent mentions render as visually distinct inline text alongside the normal phone, email and website links. Mentions are not clickable and do not open a profile popover. Search highlighting and stored identity metadata are preserved. Stale, malformed and overlapping mention spans are displayed as ordinary text.
|
|
@@ -6638,6 +6638,8 @@ function composerDocumentsEqual(left, right) {
|
|
|
6638
6638
|
/** Resolve stored mention IDs for both message and editor avatars. */
|
|
6639
6639
|
function resolveConversationMentionPerson(userId, conversation, config) {
|
|
6640
6640
|
return (conversation?.participants.find((person) => person.id === userId) ??
|
|
6641
|
+
conversation?.metadata?.mentions?.custom?.people?.find((person) => person.id === userId) ??
|
|
6642
|
+
config?.custom?.people?.find((person) => person.id === userId) ??
|
|
6641
6643
|
conversation?.metadata?.mentions?.people?.find((person) => person.id === userId) ??
|
|
6642
6644
|
config?.people?.find((person) => person.id === userId));
|
|
6643
6645
|
}
|
|
@@ -6720,38 +6722,63 @@ function mediaCaptionFields(text, formatting = [], mentions = []) {
|
|
|
6720
6722
|
...(captionMentions.length ? { captionMentions } : {}),
|
|
6721
6723
|
};
|
|
6722
6724
|
}
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
const
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
return false;
|
|
6732
|
-
seen.add(person.id);
|
|
6733
|
-
return true;
|
|
6734
|
-
})
|
|
6735
|
-
.slice(0, limit)
|
|
6736
|
-
.map((person) => ({
|
|
6737
|
-
id: person.id,
|
|
6738
|
-
label: person.name,
|
|
6739
|
-
avatar: person.avatar,
|
|
6740
|
-
icon: person.icon,
|
|
6741
|
-
}));
|
|
6725
|
+
function resolveComposerMentionSource(conversation, global) {
|
|
6726
|
+
if (!conversation)
|
|
6727
|
+
return null;
|
|
6728
|
+
const local = conversation.metadata?.mentions;
|
|
6729
|
+
const config = {
|
|
6730
|
+
...global,
|
|
6731
|
+
...local,
|
|
6732
|
+
...(local?.people !== undefined && local.search === undefined ? { search: undefined } : {}),
|
|
6742
6733
|
};
|
|
6743
|
-
if (
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6734
|
+
if (config.enabled === false)
|
|
6735
|
+
return null;
|
|
6736
|
+
return {
|
|
6737
|
+
unique: true,
|
|
6738
|
+
limit: Math.max(1, config.limit ?? 20),
|
|
6739
|
+
items: (query, signal) => queryComposerMentionItems(conversation, config, query, signal),
|
|
6740
|
+
};
|
|
6741
|
+
}
|
|
6742
|
+
/** The editor filters selected IDs before applying the display limit. */
|
|
6743
|
+
function queryComposerMentionItems(conversation, config, query, signal = new AbortController().signal) {
|
|
6744
|
+
const allowedCustomTypes = config.custom?.conversationTypes ?? ['private', 'group', 'channel'];
|
|
6745
|
+
const custom = allowedCustomTypes.includes(conversation.type) ? config.custom : undefined;
|
|
6746
|
+
const people = config.people ?? (conversation.type === 'group' ? conversation.participants : []);
|
|
6747
|
+
const needle = query.toLocaleLowerCase();
|
|
6748
|
+
const filter = (source) => source.filter((person) => person.name?.toLocaleLowerCase().includes(needle));
|
|
6749
|
+
const combine = (regular, additional) => {
|
|
6750
|
+
const items = new Map();
|
|
6751
|
+
const add = (source, replaceExisting) => {
|
|
6752
|
+
for (const person of source) {
|
|
6753
|
+
if (!person.id || !person.name || items.has(person.id))
|
|
6754
|
+
continue;
|
|
6755
|
+
items.set(person.id, {
|
|
6756
|
+
id: person.id,
|
|
6757
|
+
label: person.name,
|
|
6758
|
+
avatar: person.avatar,
|
|
6759
|
+
icon: person.icon,
|
|
6760
|
+
...(replaceExisting ? { replaceExisting: true } : {}),
|
|
6761
|
+
});
|
|
6762
|
+
}
|
|
6763
|
+
};
|
|
6764
|
+
add(additional, true);
|
|
6765
|
+
add(regular, false);
|
|
6766
|
+
return [...items.values()];
|
|
6767
|
+
};
|
|
6768
|
+
const localPeople = filter(people);
|
|
6769
|
+
const localCustom = filter(custom?.people ?? []);
|
|
6770
|
+
if (!config.search && !custom?.search)
|
|
6771
|
+
return combine(localPeople, localCustom);
|
|
6772
|
+
return new Promise((resolve) => setTimeout(resolve, Math.max(0, config.debounce ?? 150))).then(async () => {
|
|
6773
|
+
if (signal.aborted)
|
|
6774
|
+
return [];
|
|
6775
|
+
const context = { conversation, query, signal };
|
|
6776
|
+
const searchOrLocal = (search, local) => search ? Promise.resolve().then(() => search(context)).then((results) => results ?? []).catch(() => []) : local;
|
|
6777
|
+
const [regular, additional] = await Promise.all([
|
|
6778
|
+
searchOrLocal(config.search, localPeople),
|
|
6779
|
+
searchOrLocal(custom?.search, localCustom),
|
|
6780
|
+
]);
|
|
6781
|
+
return combine(regular, additional);
|
|
6755
6782
|
});
|
|
6756
6783
|
}
|
|
6757
6784
|
|
|
@@ -10081,9 +10108,6 @@ class AXConversationComposerComponent {
|
|
|
10081
10108
|
mentionPerson(userId) {
|
|
10082
10109
|
return resolveConversationMentionPerson(userId, this.activeConversation(), this.config.mentions);
|
|
10083
10110
|
}
|
|
10084
|
-
findComposerMentionPeople(conversation, config, query) {
|
|
10085
|
-
return queryComposerMentionItems(conversation, config, query);
|
|
10086
|
-
}
|
|
10087
10111
|
/**
|
|
10088
10112
|
* Writes the draft into the text editor.
|
|
10089
10113
|
* Setting the editor commands alone leaves the component value stale, so a later
|
|
@@ -10175,26 +10199,8 @@ class AXConversationComposerComponent {
|
|
|
10175
10199
|
this.composerPopupLoader = () => Promise.resolve().then(function () { return composerPopup_component; }).then((m) => m.AXConversationComposerPopupComponent);
|
|
10176
10200
|
/** Input placeholder - use service */
|
|
10177
10201
|
this.placeholder = this.composerService.placeholder;
|
|
10178
|
-
this.mentionConfig = computed(() => {
|
|
10179
|
-
const local = this.activeConversation()?.metadata?.mentions;
|
|
10180
|
-
return {
|
|
10181
|
-
...this.config.mentions,
|
|
10182
|
-
...local,
|
|
10183
|
-
...(local?.people !== undefined && local.search === undefined ? { search: undefined } : {}),
|
|
10184
|
-
};
|
|
10185
|
-
}, /* @ts-ignore */
|
|
10186
|
-
...(ngDevMode ? [{ debugName: "mentionConfig" }] : /* istanbul ignore next */ []));
|
|
10187
10202
|
/** Mention source for the inline editor. Avatars are drawn by the chat avatar template. */
|
|
10188
|
-
this.composerMentions = computed(() =>
|
|
10189
|
-
const conversation = this.activeConversation();
|
|
10190
|
-
const config = this.mentionConfig();
|
|
10191
|
-
if (!conversation || config.enabled === false)
|
|
10192
|
-
return null;
|
|
10193
|
-
return {
|
|
10194
|
-
limit: Math.max(1, config.limit ?? 20),
|
|
10195
|
-
items: (query) => this.findComposerMentionPeople(conversation, config, query),
|
|
10196
|
-
};
|
|
10197
|
-
}, /* @ts-ignore */
|
|
10203
|
+
this.composerMentions = computed(() => resolveComposerMentionSource(this.activeConversation(), this.config.mentions), /* @ts-ignore */
|
|
10198
10204
|
...(ngDevMode ? [{ debugName: "composerMentions" }] : /* istanbul ignore next */ []));
|
|
10199
10205
|
this.destroyed = false;
|
|
10200
10206
|
this.composerFormatting = signal([], /* @ts-ignore */
|
|
@@ -12670,7 +12676,7 @@ class AXConversationEmojiTextComponent {
|
|
|
12670
12676
|
}
|
|
12671
12677
|
}
|
|
12672
12678
|
</ng-template>
|
|
12673
|
-
`, isInline: true, styles: [":is(.ax-text-editor-mention,.ax-conversation-mention){display:inline-flex;align-items:center;gap:.2rem;box-sizing:border-box;max-inline-size:calc(100% - .1rem);margin-inline:.05rem;padding-inline:.12rem .35rem;border-radius:999px;color:var(--ax-comp-mention-color, var(--ax-sys-color-primary, #1d4ed8));background:color-mix(in oklab,currentColor 14%,transparent);font-weight:600;line-height:1;vertical-align:middle}.ax-text-editor-prose p .ax-text-editor-mention{line-height:inherit;block-size:1lh;vertical-align:top}:is(.ax-text-editor-mention-text,.ax-conversation-mention-text){min-inline-size:0;overflow:hidden;line-height:1;text-overflow:ellipsis;white-space:nowrap}:is(.ax-text-editor-mention-avatar-host,.ax-conversation-mention-avatar){display:inline-flex;flex:none;align-items:center;justify-content:center;overflow:hidden;border-radius:999px;line-height:0}\n", "ax-text-editor .ax-text-editor-prose .ax-text-editor-spoiler,ax-conversation-emoji-text .ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){--ax-spoiler-particle: radial-gradient(circle, currentColor .45px, transparent .85px);--ax-spoiler-faint-particle: radial-gradient( circle, color-mix(in oklab, currentColor 55%, transparent) .3px, transparent .75px );background-image:var(--ax-spoiler-particle),var(--ax-spoiler-particle),var(--ax-spoiler-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle);background-size:19px 17px,23px 19px,29px 23px,17px 23px,31px 17px,23px 29px,29px 19px;background-position:1px -3px,-4px 2px,3px 5px,-7px 3px,5px -4px,-4px -7px,9px -8px;box-decoration-break:clone;-webkit-box-decoration-break:clone}\n", "ax-emoji{margin-inline:.05em;vertical-align:middle}.ax-conversation-fmt-bold{font-weight:700}.ax-conversation-fmt-italic{font-style:italic}.ax-conversation-fmt-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.ax-conversation-fmt-strike{text-decoration-line:line-through}.ax-conversation-fmt-underline{text-decoration-line:underline}.ax-conversation-fmt-strike.ax-conversation-fmt-underline{text-decoration-line:underline line-through}:host .ax-conversation-mention{display:inline-flex;align-items:center;gap:.18rem;max-width:100%;margin-inline:.06rem;padding:.02rem .38rem .02rem .06rem;border-radius:999px;background:color-mix(in oklab,currentColor 14%,transparent);font-weight:600;line-height:1.35;vertical-align:middle;text-decoration:none!important;white-space:nowrap}:host .ax-conversation-mention-avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;overflow:hidden;border-radius:999px;line-height:0}.ax-conversation-fmt-spoiler{cursor:pointer}.ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){-webkit-text-fill-color:transparent;text-decoration-color:transparent;-webkit-user-select:none;user-select:none}.ax-conversation-fmt-spoiler:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(prefers-reduced-motion:
|
|
12679
|
+
`, isInline: true, styles: [":is(.ax-text-editor-mention,.ax-conversation-mention){display:inline-flex;align-items:center;gap:.2rem;box-sizing:border-box;max-inline-size:calc(100% - .1rem);margin-inline:.05rem;padding-inline:.12rem .35rem;border-radius:999px;color:var(--ax-comp-mention-color, var(--ax-sys-color-primary, #1d4ed8));background:color-mix(in oklab,currentColor 14%,transparent);font-weight:600;line-height:1;vertical-align:middle}.ax-text-editor-prose p .ax-text-editor-mention{line-height:inherit;block-size:1lh;vertical-align:top}:is(.ax-text-editor-mention-text,.ax-conversation-mention-text){min-inline-size:0;overflow:hidden;line-height:1;text-overflow:ellipsis;white-space:nowrap}:is(.ax-text-editor-mention-avatar-host,.ax-conversation-mention-avatar){display:inline-flex;flex:none;align-items:center;justify-content:center;overflow:hidden;border-radius:999px;line-height:0}\n", "ax-text-editor .ax-text-editor-prose .ax-text-editor-spoiler,ax-conversation-emoji-text .ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){--ax-spoiler-particle: radial-gradient(circle, currentColor .45px, transparent .85px);--ax-spoiler-faint-particle: radial-gradient( circle, color-mix(in oklab, currentColor 55%, transparent) .3px, transparent .75px );background-image:var(--ax-spoiler-particle),var(--ax-spoiler-particle),var(--ax-spoiler-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle);background-size:19px 17px,23px 19px,29px 23px,17px 23px,31px 17px,23px 29px,29px 19px;background-position:1px -3px,-4px 2px,3px 5px,-7px 3px,5px -4px,-4px -7px,9px -8px;box-decoration-break:clone;-webkit-box-decoration-break:clone}\n", "ax-emoji{margin-inline:.05em;vertical-align:middle}.ax-conversation-fmt-bold{font-weight:700}.ax-conversation-fmt-italic{font-style:italic}.ax-conversation-fmt-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.ax-conversation-fmt-strike{text-decoration-line:line-through}.ax-conversation-fmt-underline{text-decoration-line:underline}.ax-conversation-fmt-strike.ax-conversation-fmt-underline{text-decoration-line:underline line-through}:host .ax-conversation-mention{display:inline-flex;align-items:center;gap:.18rem;max-width:100%;margin-inline:.06rem;padding:.02rem .38rem .02rem .06rem;border-radius:999px;background:color-mix(in oklab,currentColor 14%,transparent);font-weight:600;line-height:1.35;vertical-align:middle;text-decoration:none!important;white-space:nowrap}:host .ax-conversation-mention-avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;overflow:hidden;border-radius:999px;line-height:0}.ax-conversation-fmt-spoiler{cursor:pointer}.ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){-webkit-text-fill-color:transparent;text-decoration-color:transparent;-webkit-user-select:none;user-select:none;animation:ax-conversation-spoiler-particles 2.8s ease-in-out infinite alternate}.ax-conversation-fmt-spoiler:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(prefers-reduced-motion:reduce){.ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){animation:none}}@keyframes ax-conversation-spoiler-particles{45%{background-position:4px -6px,-7px 0px,6px 7px,-8px 6px,8px -1px,-2px -9px,5px -5px}to{background-position:6px -2px,-9px 4px,1px 9px,-3px 8px,10px -5px,1px -5px,2px -7px}}\n"], dependencies: [{ kind: "component", type: AXEmojiComponent, selector: "ax-emoji", inputs: ["emoji", "appearance", "size"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXConversationAvatarComponent, selector: "ax-conversation-avatar", inputs: ["kind", "userId", "conversation", "message", "size", "showStatus", "name", "avatar", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12674
12680
|
}
|
|
12675
12681
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXConversationEmojiTextComponent, decorators: [{
|
|
12676
12682
|
type: Component,
|
|
@@ -12738,7 +12744,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
12738
12744
|
}
|
|
12739
12745
|
}
|
|
12740
12746
|
</ng-template>
|
|
12741
|
-
`, styles: [":is(.ax-text-editor-mention,.ax-conversation-mention){display:inline-flex;align-items:center;gap:.2rem;box-sizing:border-box;max-inline-size:calc(100% - .1rem);margin-inline:.05rem;padding-inline:.12rem .35rem;border-radius:999px;color:var(--ax-comp-mention-color, var(--ax-sys-color-primary, #1d4ed8));background:color-mix(in oklab,currentColor 14%,transparent);font-weight:600;line-height:1;vertical-align:middle}.ax-text-editor-prose p .ax-text-editor-mention{line-height:inherit;block-size:1lh;vertical-align:top}:is(.ax-text-editor-mention-text,.ax-conversation-mention-text){min-inline-size:0;overflow:hidden;line-height:1;text-overflow:ellipsis;white-space:nowrap}:is(.ax-text-editor-mention-avatar-host,.ax-conversation-mention-avatar){display:inline-flex;flex:none;align-items:center;justify-content:center;overflow:hidden;border-radius:999px;line-height:0}\n", "ax-text-editor .ax-text-editor-prose .ax-text-editor-spoiler,ax-conversation-emoji-text .ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){--ax-spoiler-particle: radial-gradient(circle, currentColor .45px, transparent .85px);--ax-spoiler-faint-particle: radial-gradient( circle, color-mix(in oklab, currentColor 55%, transparent) .3px, transparent .75px );background-image:var(--ax-spoiler-particle),var(--ax-spoiler-particle),var(--ax-spoiler-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle);background-size:19px 17px,23px 19px,29px 23px,17px 23px,31px 17px,23px 29px,29px 19px;background-position:1px -3px,-4px 2px,3px 5px,-7px 3px,5px -4px,-4px -7px,9px -8px;box-decoration-break:clone;-webkit-box-decoration-break:clone}\n", "ax-emoji{margin-inline:.05em;vertical-align:middle}.ax-conversation-fmt-bold{font-weight:700}.ax-conversation-fmt-italic{font-style:italic}.ax-conversation-fmt-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.ax-conversation-fmt-strike{text-decoration-line:line-through}.ax-conversation-fmt-underline{text-decoration-line:underline}.ax-conversation-fmt-strike.ax-conversation-fmt-underline{text-decoration-line:underline line-through}:host .ax-conversation-mention{display:inline-flex;align-items:center;gap:.18rem;max-width:100%;margin-inline:.06rem;padding:.02rem .38rem .02rem .06rem;border-radius:999px;background:color-mix(in oklab,currentColor 14%,transparent);font-weight:600;line-height:1.35;vertical-align:middle;text-decoration:none!important;white-space:nowrap}:host .ax-conversation-mention-avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;overflow:hidden;border-radius:999px;line-height:0}.ax-conversation-fmt-spoiler{cursor:pointer}.ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){-webkit-text-fill-color:transparent;text-decoration-color:transparent;-webkit-user-select:none;user-select:none}.ax-conversation-fmt-spoiler:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(prefers-reduced-motion:
|
|
12747
|
+
`, styles: [":is(.ax-text-editor-mention,.ax-conversation-mention){display:inline-flex;align-items:center;gap:.2rem;box-sizing:border-box;max-inline-size:calc(100% - .1rem);margin-inline:.05rem;padding-inline:.12rem .35rem;border-radius:999px;color:var(--ax-comp-mention-color, var(--ax-sys-color-primary, #1d4ed8));background:color-mix(in oklab,currentColor 14%,transparent);font-weight:600;line-height:1;vertical-align:middle}.ax-text-editor-prose p .ax-text-editor-mention{line-height:inherit;block-size:1lh;vertical-align:top}:is(.ax-text-editor-mention-text,.ax-conversation-mention-text){min-inline-size:0;overflow:hidden;line-height:1;text-overflow:ellipsis;white-space:nowrap}:is(.ax-text-editor-mention-avatar-host,.ax-conversation-mention-avatar){display:inline-flex;flex:none;align-items:center;justify-content:center;overflow:hidden;border-radius:999px;line-height:0}\n", "ax-text-editor .ax-text-editor-prose .ax-text-editor-spoiler,ax-conversation-emoji-text .ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){--ax-spoiler-particle: radial-gradient(circle, currentColor .45px, transparent .85px);--ax-spoiler-faint-particle: radial-gradient( circle, color-mix(in oklab, currentColor 55%, transparent) .3px, transparent .75px );background-image:var(--ax-spoiler-particle),var(--ax-spoiler-particle),var(--ax-spoiler-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle),var(--ax-spoiler-faint-particle);background-size:19px 17px,23px 19px,29px 23px,17px 23px,31px 17px,23px 29px,29px 19px;background-position:1px -3px,-4px 2px,3px 5px,-7px 3px,5px -4px,-4px -7px,9px -8px;box-decoration-break:clone;-webkit-box-decoration-break:clone}\n", "ax-emoji{margin-inline:.05em;vertical-align:middle}.ax-conversation-fmt-bold{font-weight:700}.ax-conversation-fmt-italic{font-style:italic}.ax-conversation-fmt-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.ax-conversation-fmt-strike{text-decoration-line:line-through}.ax-conversation-fmt-underline{text-decoration-line:underline}.ax-conversation-fmt-strike.ax-conversation-fmt-underline{text-decoration-line:underline line-through}:host .ax-conversation-mention{display:inline-flex;align-items:center;gap:.18rem;max-width:100%;margin-inline:.06rem;padding:.02rem .38rem .02rem .06rem;border-radius:999px;background:color-mix(in oklab,currentColor 14%,transparent);font-weight:600;line-height:1.35;vertical-align:middle;text-decoration:none!important;white-space:nowrap}:host .ax-conversation-mention-avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;overflow:hidden;border-radius:999px;line-height:0}.ax-conversation-fmt-spoiler{cursor:pointer}.ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){-webkit-text-fill-color:transparent;text-decoration-color:transparent;-webkit-user-select:none;user-select:none;animation:ax-conversation-spoiler-particles 2.8s ease-in-out infinite alternate}.ax-conversation-fmt-spoiler:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(prefers-reduced-motion:reduce){.ax-conversation-fmt-spoiler:not(.ax-conversation-fmt-spoiler-open){animation:none}}@keyframes ax-conversation-spoiler-particles{45%{background-position:4px -6px,-7px 0px,6px 7px,-8px 6px,8px -1px,-2px -9px,5px -5px}to{background-position:6px -2px,-9px 4px,1px 9px,-3px 8px,10px -5px,1px -5px,2px -7px}}\n"] }]
|
|
12742
12748
|
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }], linkify: [{ type: i0.Input, args: [{ isSignal: true, alias: "linkify", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], mentions: [{ type: i0.Input, args: [{ isSignal: true, alias: "mentions", required: false }] }], formatting: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatting", required: false }] }] } });
|
|
12743
12749
|
|
|
12744
12750
|
/** Row sizes for masonry-style grouped media albums (Telegram-like packing). */
|
|
@@ -15500,23 +15506,7 @@ class AXConversationPickerCaptionComponent {
|
|
|
15500
15506
|
...(ngDevMode ? [{ debugName: "emojiPopoverRef" }] : /* istanbul ignore next */ []));
|
|
15501
15507
|
this.applyingDocument = false;
|
|
15502
15508
|
this.focused = false;
|
|
15503
|
-
this.mentionSource = computed(() =>
|
|
15504
|
-
const conversation = this.conversation() ?? this.conversations?.activeConversation() ?? null;
|
|
15505
|
-
if (!conversation)
|
|
15506
|
-
return null;
|
|
15507
|
-
const local = conversation.metadata?.mentions;
|
|
15508
|
-
const mentionConfig = {
|
|
15509
|
-
...(this.config?.mentions ?? {}),
|
|
15510
|
-
...local,
|
|
15511
|
-
...(local?.people !== undefined && local.search === undefined ? { search: undefined } : {}),
|
|
15512
|
-
};
|
|
15513
|
-
if (mentionConfig.enabled === false)
|
|
15514
|
-
return null;
|
|
15515
|
-
return {
|
|
15516
|
-
limit: Math.max(1, mentionConfig.limit ?? 20),
|
|
15517
|
-
items: (query) => queryComposerMentionItems(conversation, mentionConfig, query),
|
|
15518
|
-
};
|
|
15519
|
-
}, /* @ts-ignore */
|
|
15509
|
+
this.mentionSource = computed(() => resolveComposerMentionSource(this.avatarConversation(), this.config?.mentions), /* @ts-ignore */
|
|
15520
15510
|
...(ngDevMode ? [{ debugName: "mentionSource" }] : /* istanbul ignore next */ []));
|
|
15521
15511
|
effect(() => {
|
|
15522
15512
|
this.caption();
|
|
@@ -15947,7 +15937,7 @@ class AXConversationAudioPickerComponent {
|
|
|
15947
15937
|
if (!item) {
|
|
15948
15938
|
return;
|
|
15949
15939
|
}
|
|
15950
|
-
const { AXConversationPickerRenameFileDialogComponent } = await import('./acorex-components-conversation-picker-rename-file-dialog.component-
|
|
15940
|
+
const { AXConversationPickerRenameFileDialogComponent } = await import('./acorex-components-conversation-picker-rename-file-dialog.component-DXJF8zIY.mjs');
|
|
15951
15941
|
const result = await this.popupService.open(AXConversationPickerRenameFileDialogComponent, {
|
|
15952
15942
|
title: this.translation.translateSync('@acorex:chat.pickers.files.rename-title'),
|
|
15953
15943
|
size: 'sm',
|
|
@@ -16573,7 +16563,7 @@ class AXConversationFilePickerComponent {
|
|
|
16573
16563
|
if (!item) {
|
|
16574
16564
|
return;
|
|
16575
16565
|
}
|
|
16576
|
-
const { AXConversationPickerRenameFileDialogComponent } = await import('./acorex-components-conversation-picker-rename-file-dialog.component-
|
|
16566
|
+
const { AXConversationPickerRenameFileDialogComponent } = await import('./acorex-components-conversation-picker-rename-file-dialog.component-DXJF8zIY.mjs');
|
|
16577
16567
|
const result = await this.popupService.open(AXConversationPickerRenameFileDialogComponent, {
|
|
16578
16568
|
title: this.translation.translateSync('@acorex:chat.pickers.files.rename-title'),
|
|
16579
16569
|
size: 'sm',
|
|
@@ -22005,4 +21995,4 @@ function provideConversation(options) {
|
|
|
22005
21995
|
*/
|
|
22006
21996
|
|
|
22007
21997
|
export { AXConversationMessageUtilsService as $, AXConversationApi as A, AXConversationFilePickerComponent as B, AXConversationFileRendererComponent as C, AXConversationForwardMessageDialogComponent as D, AXConversationImageAttachmentComponent as E, AXConversationImageFileTypeProvider as F, AXConversationImagePickerComponent as G, AXConversationImageRendererComponent as H, AXConversationInfiniteScrollDirective as I, AXConversationInfoBarActionRegistry as J, AXConversationInfoBarComponent as K, AXConversationInfoBarSearchComponent as L, AXConversationInfoBarService as M, AXConversationItemActionRegistry as N, AXConversationLocationPickerComponent as O, AXConversationLocationRendererComponent as P, AXConversationMediaPlaybackInfoBarBannerComponent as Q, AXConversationMessageActionRegistry as R, AXConversationMessageApi as S, AXConversationMessageListComponent as T, AXConversationMessageListNoActiveDefaultComponent as U, AXConversationMessageListService as V, AXConversationMessagePinsService as W, AXConversationMessageRendererCopyHostComponent as X, AXConversationMessageRendererRegistry as Y, AXConversationMessageRendererStateComponent as Z, AXConversationMessageSelectionService as _, AXConversationApiLoggerService as a, AX_CONVERSATION_FILE_ERRORS as a$, AXConversationModule as a0, AXConversationNewDialogComponent as a1, AXConversationPickerCaptionComponent as a2, AXConversationPickerEmptyComponent as a3, AXConversationPickerFooterComponent as a4, AXConversationPickerHeaderComponent as a5, AXConversationPickerOptionsComponent as a6, AXConversationPickerShellComponent as a7, AXConversationPickerToolbarComponent as a8, AXConversationRealtimeApi as a9, AX_CONVERSATION_COMPOSER_FILE_ACTION as aA, AX_CONVERSATION_COMPOSER_IMAGE_ACTION as aB, AX_CONVERSATION_COMPOSER_LOCATION_ACTION as aC, AX_CONVERSATION_COMPOSER_STICKER_TAB as aD, AX_CONVERSATION_COMPOSER_VIDEO_ACTION as aE, AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION as aF, AX_CONVERSATION_CONFIG as aG, AX_CONVERSATION_CONNECTION_ERRORS as aH, AX_CONVERSATION_CONVERSATION_AVATAR_COMPONENT as aI, AX_CONVERSATION_DEFAULT_COMPOSER_ACTIONS as aJ, AX_CONVERSATION_DEFAULT_COMPOSER_TABS as aK, AX_CONVERSATION_DEFAULT_CONVERSATION_ITEM_ACTIONS as aL, AX_CONVERSATION_DEFAULT_CONVERSATION_TABS as aM, AX_CONVERSATION_DEFAULT_GROUP_ICON as aN, AX_CONVERSATION_DEFAULT_INFO_BAR_ACTIONS as aO, AX_CONVERSATION_DEFAULT_MESSAGE_ACTIONS as aP, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND as aQ, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID as aR, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND as aS, AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS as aT, AX_CONVERSATION_DEFAULT_ROOM_PREFERENCES as aU, AX_CONVERSATION_DEFAULT_USER_ICON as aV, AX_CONVERSATION_ERRORS as aW, AX_CONVERSATION_ERROR_HANDLER_CONFIG as aX, AX_CONVERSATION_ERROR_MESSAGES as aY, AX_CONVERSATION_FALLBACK_RENDERER as aZ, AX_CONVERSATION_FILE_CATALOG as a_, AXConversationRegistryComponentOutletComponent as aa, AXConversationRegistryService as ab, AXConversationService as ac, AXConversationSidebarComponent as ad, AXConversationSidebarService as ae, AXConversationStickerRendererComponent as af, AXConversationStickerTabComponent as ag, AXConversationSystemRendererComponent as ah, AXConversationTabRegistry as ai, AXConversationTextRendererComponent as aj, AXConversationUserApi as ak, AXConversationVideoAttachmentComponent as al, AXConversationVideoFileTypeProvider as am, AXConversationVideoPickerComponent as an, AXConversationVideoRendererComponent as ao, AXConversationVoiceFileTypeProvider as ap, AXConversationVoiceRecorderComponent as aq, AXConversationVoiceRendererComponent as ar, AX_CONVERSATION_AUDIO_CATALOG as as, AX_CONVERSATION_AUDIO_PRESENTATION as at, AX_CONVERSATION_AUDIO_RENDERER as au, AX_CONVERSATION_AVAILABLE_REACTIONS as av, AX_CONVERSATION_BUILTIN_COMPOSER_TABS as aw, AX_CONVERSATION_COMPOSER_AUDIO_ACTION as ax, AX_CONVERSATION_COMPOSER_EMOJI_ACTION as ay, AX_CONVERSATION_COMPOSER_EMOJI_TAB as az, AXConversationAudioAttachmentComponent as b, buildMediaGalleryTiles as b$, AX_CONVERSATION_FILE_PRESENTATION as b0, AX_CONVERSATION_FILE_RENDERER as b1, AX_CONVERSATION_FILE_TYPES_READY as b2, AX_CONVERSATION_IMAGE_CATALOG as b3, AX_CONVERSATION_IMAGE_PRESENTATION as b4, AX_CONVERSATION_IMAGE_RENDERER as b5, AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION as b6, AX_CONVERSATION_INFO_BAR_BLOCK_ACTION as b7, AX_CONVERSATION_INFO_BAR_DELETE_ACTION as b8, AX_CONVERSATION_INFO_BAR_DIVIDER as b9, AX_CONVERSATION_SYSTEM_RENDERER as bA, AX_CONVERSATION_TAB_ALL as bB, AX_CONVERSATION_TAB_ARCHIVED as bC, AX_CONVERSATION_TAB_BOT as bD, AX_CONVERSATION_TAB_CHANNELS as bE, AX_CONVERSATION_TAB_GROUPS as bF, AX_CONVERSATION_TAB_PRIVATE as bG, AX_CONVERSATION_TAB_UNREAD as bH, AX_CONVERSATION_TEXT_RENDERER as bI, AX_CONVERSATION_URL_ERRORS as bJ, AX_CONVERSATION_USER_AVATAR_COMPONENT as bK, AX_CONVERSATION_USER_ERRORS as bL, AX_CONVERSATION_VIDEO_CATALOG as bM, AX_CONVERSATION_VIDEO_PRESENTATION as bN, AX_CONVERSATION_VIDEO_RENDERER as bO, AX_CONVERSATION_VOICE_CATALOG as bP, AX_CONVERSATION_VOICE_PRESENTATION as bQ, AX_CONVERSATION_VOICE_RENDERER as bR, AX_DEFAULT_CONVERSATION_CONFIG as bS, abortPickerUploads as bT, applyAudioLocalPreview as bU, applyFileLocalPreview as bV, applyLocalPreview as bW, applyVideoLocalPreview as bX, applyVoiceLocalPreview as bY, audioItemFromUpload as bZ, bindMediaRendererContentState as b_, AX_CONVERSATION_INFO_BAR_MUTE_ACTION as ba, AX_CONVERSATION_INFO_BAR_SEARCH_ACTION as bb, AX_CONVERSATION_ITEM_BLOCK_ACTION as bc, AX_CONVERSATION_ITEM_DELETE_ACTION as bd, AX_CONVERSATION_ITEM_DIVIDER as be, AX_CONVERSATION_ITEM_MARK_READ_ACTION as bf, AX_CONVERSATION_ITEM_MUTE_ACTION as bg, AX_CONVERSATION_ITEM_PIN_ACTION as bh, AX_CONVERSATION_JUMBO_EMOJI_MAX as bi, AX_CONVERSATION_LOCATION_ERRORS as bj, AX_CONVERSATION_LOCATION_RENDERER as bk, AX_CONVERSATION_MESSAGE_DELETE_ACTION as bl, AX_CONVERSATION_MESSAGE_EDIT_ACTION as bm, AX_CONVERSATION_MESSAGE_ERRORS as bn, AX_CONVERSATION_MESSAGE_FORWARD_ACTION as bo, AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS as bp, AX_CONVERSATION_MESSAGE_PIN_ACTION as bq, AX_CONVERSATION_MESSAGE_REPLY_ACTION as br, AX_CONVERSATION_MESSAGE_SELECT_ACTION as bs, AX_CONVERSATION_MESSAGE_TYPE_FILE_TYPE as bt, AX_CONVERSATION_MESSAGE_UNPIN_ACTION as bu, AX_CONVERSATION_PEER_AVATAR_TYPES as bv, AX_CONVERSATION_REACTION_BAR_SIZE as bw, AX_CONVERSATION_REGISTRY_CONFIG as bx, AX_CONVERSATION_STICKER_API_KEY as by, AX_CONVERSATION_STICKER_RENDERER as bz, AXConversationAudioFileTypeProvider as c, isPlainChromeMessage as c$, canManageConversationPins as c0, canShowRendererContentError as c1, cleanupPickerUploads as c2, conversationAudioUtilities as c3, conversationFileUtilities as c4, conversationImageUtilities as c5, conversationTextToClipboardHtml as c6, conversationVideoUtilities as c7, conversationVoiceUtilities as c8, copyConversationCaption as c9, formatMediaDuration as cA, formatPickerValidationMessage as cB, getActiveComposerPickerPasteHandler as cC, getConversationMediaCategories as cD, getConversationProfileFields as cE, getErrorMessage as cF, getMessageAudioItems as cG, getMessageVideoItems as cH, getPickerCancelUploadLabel as cI, getPrivatePeerParticipant as cJ, hasRegistryComponent as cK, inferFileExtensionHintFromMessage as cL, isAttachmentListCategory as cM, isComposerAttachmentBannerEnabled as cN, isComposerTabEnabled as cO, isConversationReactionsEnabled as cP, isConversationRoomCreator as cQ, isGenericPrivateConversationTitle as cR, isGridMediaCategory as cS, isGroupLikeConversation as cT, isJumboEmojiText as cU, isJumboEmojiTextMessage as cV, isMessageDeliveryPending as cW, isMessageListThemeBackground as cX, isMessageVisibleAfterHistoryCutoff as cY, isNonPersistableMediaUrl as cZ, isPickerItemReadyToSend as c_, copyWithFileTypeFallback as ca, countLoneEmojis as cb, createConversationAudioFileType as cc, createConversationFileFileType as cd, createConversationImageFileType as ce, createConversationVideoFileType as cf, createConversationVoiceFileType as cg, createLocalPreviewUrl as ch, createObjectUrl as ci, createPickerDragHandlers as cj, createPickerUploadItemId as ck, createResolvedMediaUrlSignal as cl, deleteUploadedPickerMedia as cm, dismissComposerPickerHost as cn, ensureConversationFileCatalogRegistered as co, fetchConversationMediaPage as cp, fileItemAsAudioMedia as cq, fileItemFromUpload as cr, filesFromClipboardEvent as cs, filterMessagesByMediaCategory as ct, filterSupplementalInfoPanelMessages as cu, findExistingPrivateConversation as cv, formatDuration as cw, formatErrorMessage as cx, formatFileByteSize as cy, formatFileSize as cz, AXConversationAudioPickerComponent as d, toUploaderReference$1 as d$, isSameMessageListBackground as d0, isUploadAborted as d1, limitFilesToCapacity as d2, listTextGraphemes as d3, mediaCopyText as d4, mergeAudioUploadResult as d5, mergeFileUploadResult as d6, mergeInfoPanelMessages as d7, mergeUploadResult as d8, mergeVideoUploadResult as d9, resolveComposerMaxFiles as dA, resolveConversationAvatarDisplay as dB, resolveConversationComposerTabs as dC, resolveConversationForViewer as dD, resolveConversationMessageFileType as dE, resolveConversationPeerParticipant as dF, resolveConversationPeerUserId as dG, resolveConversationTitleForViewer as dH, resolveGalleryImageUrl as dI, resolveImageDisplayUrl as dJ, resolveMessageChrome as dK, resolveMessageListBackgroundRaw as dL, resolveMessageListBackgroundStyle as dM, resolveParticipantProfile as dN, resolvePersistableMediaUrl as dO, resolvePersistedThumbnailUrl as dP, resolvePrivatePeerParticipant as dQ, resolvePrivatePeerUserId as dR, resolveUserAvatarDisplay as dS, resolveVideoThumbnailUrl as dT, revokeObjectUrl as dU, revokePickerBlobPreviews as dV, sanitizeInput as dW, shouldUseUserAvatarForConversation as dX, sortUsersForForward as dY, splitConversationTextLinks as dZ, syncPlaybackInfoBarBanner as d_, mergeVoiceUploadResult as da, mergeWithDefaults as db, messageContainsLink as dc, normalizeAudioPayload as dd, normalizeConversationInboundFile as de, normalizeFilePayload as df, normalizeImagePayload as dg, normalizeMessageListBackgroundValue as dh, normalizeVideoPayload as di, notifyMaxFilesCapacityExceeded as dj, notifyPickerValidationErrors as dk, openWithFileType as dl, pickDisplayMediaUrl as dm, pickEarliestJoinedParticipant as dn, pickerItemToMediaReference as dp, pickerItemToUploadResult as dq, probeAudioDuration as dr, probeImageDimensions as ds, probeVideoMedia as dt, provideConversation as du, provideConversationComposerFileTypes as dv, provideConversationFileCatalog as dw, registerComposerPickerPasteHandler as dx, reportMediaLoadError as dy, resolveComposerAttachmentPresentation as dz, AXConversationAudioRendererComponent as e, toUploaderReference as e0, uploadPickerFile as e1, usesDefaultMessageListWallpaper as e2, validateConversationId as e3, validateEmail as e4, validateLatitude as e5, validateLongitude as e6, validateMessagePayload as e7, validateMessageText as e8, validateMessageType as e9, validateUrl as ea, validateUserId as eb, validateUserIds as ec, videoItemFromUpload as ed, AXConversationAvatarComponent as f, AXConversationAvatarPickerComponent as g, AXConversationBaseRegistry as h, isValidPickerFileName as i, AXConversationChatDropDirective as j, AXConversationComposerActionRegistry as k, AXConversationComposerComponent as l, AXConversationComposerFileTypesProvider as m, AXConversationComposerGenerationStateService as n, AXConversationComposerPopupComponent as o, AXConversationComposerService as p, AXConversationComposerTabRegistry as q, AXConversationContainerComponent as r, AXConversationContainerDirective as s, AXConversationDateUtilsService as t, AXConversationDeleteDialogComponent as u, AXConversationEmojiTabComponent as v, AXConversationErrorHandlerService as w, AXConversationFallbackRendererComponent as x, AXConversationFileAttachmentComponent as y, AXConversationFileFileTypeProvider as z };
|
|
22008
|
-
//# sourceMappingURL=acorex-components-conversation-acorex-components-conversation-
|
|
21998
|
+
//# sourceMappingURL=acorex-components-conversation-acorex-components-conversation-CzzR4rLf.mjs.map
|