@freshworks/toast-message

中文文档
0.19.1发布于 2023/09/20MIT近 30 天下载 2692

Toast message component in Nucleus

原始使用文档

@freshworks/toast-message

npm version npm

ember install @freshworks/toast-message

Toast messages are quick messages that appear after user-driven events to inform the users immediately after said events. These components are mostly used for confirmation or alerts and only require the user’s attention for a span of a few seconds. They can also be closed with the standard close button and may contain buttons or links.

Scenario

In Freshdesk, we use toast messages for confirmation of delete actions, creating new objects (eg. tickets, groups) etc. Toast messages are used so that they don’t completely disrupt the user’s workflow but alert them anyway.

Guidelines

DO’s

  1. Keep the message short and to the point
  2. Icon to the titles has to be contextual

DONT’s

  1. Don’t have more than two lines of content
  2. Don’t use toast messages on overlays (sliders/modals)
  3. Don’t use toast messages for high priority information

版本与发布记录

@freshworks/toast-message 共发布 36 个版本,首次发布于 2019/11/19;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.19.1latest2023/09/203 年前
0.18.02021/03/055 年前
0.16.02020/11/195 年前
0.15.02020/10/096 年前
0.14.02020/08/216 年前
0.11.12020/08/076 年前

关于 @freshworks/toast-message 的常见问题

@freshworks/toast-message 是什么?

Toast message component in Nucleus

如何安装 @freshworks/toast-message?

在项目目录运行 npm install @freshworks/toast-message,或使用 pnpm add / yarn add / bun add。

@freshworks/toast-message 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/freshworks__toast-message 是否存在。

@freshworks/toast-message 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js 8.* || >= 10.*。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@freshworks/toast-message 可以商用吗?

@freshworks/toast-message 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@freshworks/toast-message 的下载量有多少?

根据 npm 官方下载统计,@freshworks/toast-message 在 2026/10/16 – 2026/11/14 这 30 天内被下载 2,692 次,日均约 90 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@freshworks/toast-message 还在维护吗?

最新版本 0.19.1 发布于 2023/09/20(3 年前);至今共发布 36 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/11/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。