@commercetools-frontend-extensions/unpublish-products-modal

中文文档
2.0.28发布于 2026/11/02BSD-3-ClauseESM + CJS近 30 天下载 3548

未出版产品的共享进口模式

中文使用文档
文档目录7 节
  1. 开始
  2. 说明
  3. 使用量
  4. 属性
  5. 释放
  6. 加那利释放
  7. i18n (英语)

@ commercialtools- frontend-extensions/ unpublish- products- models- 模式 互联网档案馆的存檔,存档日期2014-11-22

商城中心未出版产品包.

此库考虑到了您正在构建一个 Merchant Center 应用程序, 您可以找到文件 这里。 。 。 . 这些组成部分遵循《公约》的同样原则 用户界面Kit 组件.

开始

$ npm install --save @commercetools-frontend-extensions/unpublish-products-modal

// or

$ yarn add @commercetools-frontend-extensions/unpublish-products-modal

说明

出品模式是用来从CSV文件中取出出出出出出品的内部组件. 用这个 进口服务 创建自动导入工作.

使用量

import UnpublishProductsModal from '@commercetools-frontend-extensions/unpublish-products-modal';

<UnpublishProductsModal
  isOpen={true}
  onClose={() => {}}
/>

属性

道具类型需求默认说明
isOpenboolean✅控制未推出的产品模式是否开放或关闭
onClosefunction当请求关闭模式时( 点击覆盖、 点击关闭按钮或按) 触发的调回功能 ESC) (中文(简体) ).

释放

此软件包使用 changesets 向国家预防机制释放人员.

如果您想要发布新版本, 并需要最新修改 :

  1. 添加一个更改列表 pnpm changeset 选择 @commercetools-frontend-extensions/unpublish-products-modal 作为已修改的软件包.
  2. 为了完成发行工作,将出现一些选项:
    • patch: 使用此释放来修正或小修改
    • minor: 使用此释放用于调试升级或中度更改
    • major: 使用此发布来打破更改
  3. 在选择选项后, 您需要为发布注释添加注释 。 我们建议对犯法者采用同样的方式.
    • 例如: feat(utils): add utils for dates
  4. 推开 changeset 到您的分支和 GitHub 动作将检测 PR 包含影响已出版库的更改 .
  5. 在公关合并后,将创建另一个公关 Version Packages 这也是GitHub Actions将发现的 向国家预防机制释放的人.
  6. 确保一切正确,然后合并 Version Packages 公关.
  7. 等待国家防范机制提供新版本,然后在CircleCI中部署自定义.

加那利释放

加那利版本在成功构建后通过CI自动发布到发行渠道并合并到 主要 树枝.

i18n (英语)

Repo被配置为与Transifex的集成. i18n的流程与商贸中心使用的流程相同.

pnpm i18n:build 用于将新密钥添加到 transifex.

一旦公关合并到 main transifex将收到一份带有需要翻译的新密钥的通知(这就是为什么必须 description 财务报告和审定财务报表 defaultMessage 说明性足够.

每当翻译者完成翻译并按原样进行标记时,repo会收到一个PR(每个语言)来添加被翻译的信息.

一旦我们审查翻译的密钥正确无误并添加一个 changeset 我们可以合并公关 (别忘了部署自定义应用程序)

版本与发布记录

@commercetools-frontend-extensions/unpublish-products-modal 共发布 175 个版本,首次发布于 2024/11/27;过去 12 个月发布了 125 个版本。

版本发布日期距今
2.0.28latest2026/11/028 天前
2.0.272026/10/2120 天前
2.0.262026/10/1922 天前
2.0.252026/10/021 个月前
2.0.242026/09/301 个月前
2.0.232026/09/291 个月前

其他发布通道:bw-test-preview-deploy → 0.0.0-bw-test-preview-deploy-20250115163227,fec-202-react19 → 0.0.0-fec-202-react19-20250307142208,canary → 0.0.0-canary-20260918105445。

关于 @commercetools-frontend-extensions/unpublish-products-modal 的常见问题

@commercetools-frontend-extensions/unpublish-products-modal 是什么?

未出版产品的共享进口模式

如何安装 @commercetools-frontend-extensions/unpublish-products-modal?

在项目目录运行 npm install @commercetools-frontend-extensions/unpublish-products-modal,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(17.x || 19.x)、redux(4.x || 5.x)、react-intl(6.x || 7.x)、react-redux(7.x || 9.x)、@commercetools-uikit/icons(19.x || 20.x)、@commercetools-frontend/sdk(24.x || 25.x || 27.x)、@commercetools-frontend/i18n(24.x || 25.x || 27.x)、@commercetools-frontend/sentry(24.x || 25.x || 27.x)、@commercetools-frontend/ui-kit(19.x || 20.x)、@commercetools-frontend/constants(24.x || 25.x || 27.x)、@commercetools-frontend/fullstory(2.x || 3.x || 4.x)、@commercetools-uikit/design-system(19.x || 20.x)、@commercetools-frontend/permissions(24.x || 25.x || 27.x)、@commercetools-frontend/actions-global(24.x || 25.x || 27.x)、@commercetools-frontend/application-shell(24.x || 25.x || 27.x)、@commercetools-frontend/jest-preset-mc-app(24.x || 25.x || 27.x)、@commercetools-frontend/application-components(24.x || 25.x || 27.x)、@commercetools-frontend/application-shell-connectors(24.x || 25.x || 27.x)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@commercetools-frontend-extensions/unpublish-products-modal 支持 TypeScript 吗?

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

@commercetools-frontend-extensions/unpublish-products-modal 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@commercetools-frontend-extensions/unpublish-products-modal 可以商用吗?

@commercetools-frontend-extensions/unpublish-products-modal 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@commercetools-frontend-extensions/unpublish-products-modal 的下载量有多少?

根据 npm 官方下载统计,@commercetools-frontend-extensions/unpublish-products-modal 在 2026/10/11 – 2026/11/09 这 30 天内被下载 3,548 次,日均约 118 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@commercetools-frontend-extensions/unpublish-products-modal 还在维护吗?

最新版本 2.0.28 发布于 2026/11/02(8 天前);至今共发布 175 个版本,其中过去 12 个月发布了 125 个;首次发布于 2024/11/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。