NewAria Widget
@revenexx/aria-widget v1.0.0
The widget's API is stable from this release on.
Breaking
- The global is
window.AriaWidgetinstead ofwindow.Aria: start the widget withAriaWidget.init({ … }), read the version fromAriaWidget.version.window.Ariais no longer defined. To migrate, replaceAria.initwithAriaWidget.init; the options and the handle are unchanged. - Translations:
composer.signInPromptis gone. The sign-in card uses the newcomposer.signInLeadwithcomposer.signInLink, and the greeting the newgreeting.signedOut. A host catalog that still setssignInPromptshows those two lines in English until it adds the new keys.
Added
- A personal start screen. The greeting depends on the situation (time of day, Monday morning, Friday afternoon, a first visit, a return the same day, a return after two weeks), picked from the clock and the conversation list only, with one word drawn in the brand's yellow underline. It waits briefly for the conversation list rather than swapping once the list arrives.
userNameoption: the user's first name for the greeting, in the greetings whose named form the active locale's catalog has (a host catalog without one keeps its neutral greeting).- The latest conversation is a "Continue" card on the start screen, previewing the start of Aria's last answer; the three before it follow as "Earlier conversations".
- In a conversation the header shows its title and a back arrow to the start screen. Going back keeps the conversation, even while Aria is still answering: it becomes the "Continue" card, with its latest answer, and comes back from there as it was. Without the history view there is no card, so going back starts over.
Changed
- The input sits right under the greeting on the start screen, as its main element, and moves under the conversation with the first message.
- Under an answer, one source line ("From Orders and Products · 3 calls") replaces the tool badges above it; it still opens the calls behind the answer.
- Suggested follow-ups are a "Suggestions" dropdown in the input box (mouse, and arrow keys, Enter and Esc in an empty input) instead of a list appended to the conversation.
- A softer Stop button, and the user's messages on a light tinted bubble instead of the solid brand fill.
- Signed out, a sign-in card takes the input's place (a line and a "Sign in" button) instead of a note laid over a half-visible input, and the greeting's line asks the user to sign in.