composeai 0.1.3 → 0.1.5
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/index.cjs +179 -265
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +179 -265
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/composer.css +1163 -9
package/dist/index.d.cts
CHANGED
|
@@ -291,6 +291,15 @@ interface MentionConfig {
|
|
|
291
291
|
trigger?: string;
|
|
292
292
|
/** Limit suggestion count. Defaults to 8. */
|
|
293
293
|
maxItems?: number;
|
|
294
|
+
/**
|
|
295
|
+
* When true, serialize mentions to markdown as a link that carries the
|
|
296
|
+
* stable id — `[<trigger><label>](mention:<id>)`, e.g. `[@orca](mention:u_42)`
|
|
297
|
+
* — so the receiving end can resolve mentions by id and render them as
|
|
298
|
+
* clickable chips. Default (false/omitted) keeps the plain `<trigger><label>`
|
|
299
|
+
* form. Only affects the `markdown` field of the submit payload; the
|
|
300
|
+
* structured `mentions: MentionRef[]` array is unchanged either way.
|
|
301
|
+
*/
|
|
302
|
+
linkedMention?: boolean;
|
|
294
303
|
}
|
|
295
304
|
interface SlashConfig {
|
|
296
305
|
items: SlashCommand[] | ((query: string) => SlashCommand[] | Promise<SlashCommand[]>);
|
package/dist/index.d.ts
CHANGED
|
@@ -291,6 +291,15 @@ interface MentionConfig {
|
|
|
291
291
|
trigger?: string;
|
|
292
292
|
/** Limit suggestion count. Defaults to 8. */
|
|
293
293
|
maxItems?: number;
|
|
294
|
+
/**
|
|
295
|
+
* When true, serialize mentions to markdown as a link that carries the
|
|
296
|
+
* stable id — `[<trigger><label>](mention:<id>)`, e.g. `[@orca](mention:u_42)`
|
|
297
|
+
* — so the receiving end can resolve mentions by id and render them as
|
|
298
|
+
* clickable chips. Default (false/omitted) keeps the plain `<trigger><label>`
|
|
299
|
+
* form. Only affects the `markdown` field of the submit payload; the
|
|
300
|
+
* structured `mentions: MentionRef[]` array is unchanged either way.
|
|
301
|
+
*/
|
|
302
|
+
linkedMention?: boolean;
|
|
294
303
|
}
|
|
295
304
|
interface SlashConfig {
|
|
296
305
|
items: SlashCommand[] | ((query: string) => SlashCommand[] | Promise<SlashCommand[]>);
|