@acrsolutions/chat-components
Version:
Un set di componenti per la creazione di un'applicazione di messaggistica
179 lines (178 loc) • 7.23 kB
TypeScript
export declare const data: {
id: number;
convo: {
messageText: string;
contactName: string;
contactNumber: string;
sentDate: string;
}[];
notificationsNumber: number;
contactName: string;
}[];
export declare const exampleResearchConvo: {
id: number;
contactName: string;
convo: {
id: string;
messageText: string;
contactName: string;
contactNumber: string;
sentDate: string;
}[];
};
export declare const exampleCompanyPhones: string[];
export declare const exampleContactPhones: string[];
export declare const exampleTemplates: {
readonly wingardium_leviosa: {
readonly id: "wingardium_leviosa";
readonly text: "Se vuoi davvero diventare un bravo mago, devi iniziare dalle basi.\n\n La pronuncia è importante.\n La gestualità è importante.\nE soprattutto... la pazienza.\n Non si agita la bacchetta a caso gridando parole a metà!\n È {{1}}, non Leviosà!\n\n Hermione Granger";
readonly footerText: "\n\n— {{1}}";
readonly headerText: "Inviato da: {{1}} \n\n";
};
readonly i_am_your_father: {
readonly id: "wingardium_leviosa";
readonly text: "{{1}}, sono tuo padre. \n\n Darth Vader";
readonly footerText: null;
readonly headerText: null;
};
readonly valar_morghulis: {
readonly id: "wingardium_leviosa";
readonly text: "Gentile Cliente,\n\nha mai desiderato... scomparire per un po'?\nO forse far scomparire qualcun altro?\nQui alla House of Black and White Inc., offriamo soluzioni su misura per problemi di identità, discrezione e rimozione strategica.\n(Nessuna domanda posta. Nessun volto necessario.)\nPrimo contratto gratuito se si fornisce un nome sussurrato con rispetto.\n\n{{1}}, Arya Stark\nBraavos HQ";
readonly headerText: "IMAGE";
readonly footerText: null;
};
};
export type ExampleTemplateKeys = keyof typeof exampleTemplates;
export declare const exampleTemplateOptions: ExampleTemplateKeys[];
export declare const allPossibleMessageTypesExamples: ({
id: string;
text: string;
sentDate: string;
caption?: undefined;
imgUrl?: undefined;
videoUrl?: undefined;
documentUrl?: undefined;
fileName?: undefined;
templateName?: undefined;
templateVariables?: undefined;
getTemplateData?: undefined;
} | {
id: string;
text: null;
caption: string;
imgUrl: string;
sentDate: string;
videoUrl?: undefined;
documentUrl?: undefined;
fileName?: undefined;
templateName?: undefined;
templateVariables?: undefined;
getTemplateData?: undefined;
} | {
id: string;
text: null;
caption: string;
videoUrl: string;
sentDate: string;
imgUrl?: undefined;
documentUrl?: undefined;
fileName?: undefined;
templateName?: undefined;
templateVariables?: undefined;
getTemplateData?: undefined;
} | {
id: string;
text: string;
caption: string;
documentUrl: string;
sentDate: string;
fileName: string;
imgUrl?: undefined;
videoUrl?: undefined;
templateName?: undefined;
templateVariables?: undefined;
getTemplateData?: undefined;
} | {
id: string;
text: null;
sentDate: string;
templateName: "wingardium_leviosa";
templateVariables: {
key: string;
value: string;
}[];
getTemplateData: (template: string) => {
bodyText: "Se vuoi davvero diventare un bravo mago, devi iniziare dalle basi.\n\n La pronuncia è importante.\n La gestualità è importante.\nE soprattutto... la pazienza.\n Non si agita la bacchetta a caso gridando parole a metà!\n È {{1}}, non Leviosà!\n\n Hermione Granger" | "{{1}}, sono tuo padre. \n\n Darth Vader" | "Gentile Cliente,\n\nha mai desiderato... scomparire per un po'?\nO forse far scomparire qualcun altro?\nQui alla House of Black and White Inc., offriamo soluzioni su misura per problemi di identità, discrezione e rimozione strategica.\n(Nessuna domanda posta. Nessun volto necessario.)\nPrimo contratto gratuito se si fornisce un nome sussurrato con rispetto.\n\n{{1}}, Arya Stark\nBraavos HQ";
headerText: "Inviato da: {{1}} \n\n" | "IMAGE" | null;
footerText: "\n\n— {{1}}" | null;
templateImgUrl: undefined;
};
caption?: undefined;
imgUrl?: undefined;
videoUrl?: undefined;
documentUrl?: undefined;
fileName?: undefined;
})[];
export declare const allPossibleMessageTypesExamplesConst: readonly [{
readonly id: "simpleText";
readonly text: "ciao";
readonly sentDate: "2023-10-01T12:00:00Z";
}, {
readonly id: "imageText";
readonly text: null;
readonly caption: "immagine 1";
readonly imgUrl: "https://picsum.photos/200";
readonly sentDate: "2023-10-01T12:00:00Z";
}, {
readonly id: "videoText";
readonly text: null;
readonly caption: "video 1";
readonly videoUrl: "https://www.youtube.com/shorts/isRx40p7doI";
readonly sentDate: "2023-10-01T12:00:00Z";
}, {
readonly id: "docText";
readonly text: "Ciao ciao";
readonly caption: "doc 1";
readonly documentUrl: "/examples/sheldon_cooper.tsx";
readonly sentDate: "2023-10-01T12:00:00Z";
readonly fileName: "sheldon_cooper.tsx";
}, {
readonly id: "templateText";
readonly text: "";
readonly templateName: "wingardium_leviosa";
readonly templateVariables: readonly [{
readonly key: "body_1";
readonly value: "Wingardium Leviosa";
}];
readonly getTemplateData: (template: string) => {
bodyText: "Se vuoi davvero diventare un bravo mago, devi iniziare dalle basi.\n\n La pronuncia è importante.\n La gestualità è importante.\nE soprattutto... la pazienza.\n Non si agita la bacchetta a caso gridando parole a metà!\n È {{1}}, non Leviosà!\n\n Hermione Granger" | "{{1}}, sono tuo padre. \n\n Darth Vader" | "Gentile Cliente,\n\nha mai desiderato... scomparire per un po'?\nO forse far scomparire qualcun altro?\nQui alla House of Black and White Inc., offriamo soluzioni su misura per problemi di identità, discrezione e rimozione strategica.\n(Nessuna domanda posta. Nessun volto necessario.)\nPrimo contratto gratuito se si fornisce un nome sussurrato con rispetto.\n\n{{1}}, Arya Stark\nBraavos HQ";
headerText: "Inviato da: {{1}} \n\n" | "IMAGE" | null;
footerText: "\n\n— {{1}}" | null;
templateImgUrl: undefined;
};
readonly sentDate: "2023-10-01T12:00:00Z";
}];
export declare const wMessagesExamplesOptions: ("templateText" | "simpleText" | "imageText" | "videoText" | "docText")[];
export type WMessagesExamplesOptions = (typeof wMessagesExamplesOptions)[number];
export declare const baseMessageProps: {
isReceived: boolean;
templateName: null;
searchString: null;
onSearchRefs: undefined;
focusedRefIndex: null;
focusedKey: null;
templateVariables: null;
getTemplateData: undefined;
text: null;
imgUrl: null;
caption: null;
videoUrl: null;
audioUrl: null;
documentUrl: null;
fileName: null;
buttonPayload: null;
sentDate: null;
readDate: null;
deliveredDate: null;
reaction: null;
};