@entur-partner/app-shell-standalone

中文文档
9.0.5发布于 2026/10/28EUPL-1.2TypeScriptESM + CJS近 30 天下载 7228

Exports the AppShellStandalone and PublicAppShellStandalone components. Use them to run a micro-frontend as a standalone application.

原始使用文档

Entur partner app-shell standalone

Exports the AppShellStandalone and PublicAppShellStandalone components. Use them to run a micro-frontend as a standalone application.

This package wraps the building blocks in @entur-partner/app-shell, so the micro-frontend does not need to use them directly.

Installation

npm install @entur-partner/app-shell-standalone

# or if you are using Yarn:
yarn add @entur-partner/app-shell-standalone

Usage

Both AppShellStandalone and PublicAppShellStandalone need this package's stylesheet in addition to @entur-partner/common/styles:

import "@entur-partner/common/styles";
import "@entur-partner/app-shell-standalone/styles.css";

The stylesheet places the micro-frontend next to the side menu (.eps-content) or below the top navigation (.eps-public-content). It also styles the top navigation.

版本与发布记录

@entur-partner/app-shell-standalone 共发布 144 个版本,首次发布于 2020/11/23;过去 12 个月发布了 37 个版本。

版本发布日期距今
9.0.5latest2026/10/2816 天前
9.0.42026/10/1529 天前
9.0.32026/10/011 个月前
9.0.22026/09/241 个月前
9.0.12026/09/171 个月前
9.0.02026/09/141 个月前

关于 @entur-partner/app-shell-standalone 的常见问题

@entur-partner/app-shell-standalone 是什么?

Exports the AppShellStandalone and PublicAppShellStandalone components. Use them to run a micro-frontend as a standalone application.

如何安装 @entur-partner/app-shell-standalone?

在项目目录运行 npm install @entur-partner/app-shell-standalone,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=18.0.0)、react-dom(>=18.0.0)、@entur/menu(>=4.0.0 <8.0.0)、@entur/icons(>=7.12.0 <11.0.0)、react-router(>=7.0.0 <9.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@entur-partner/app-shell-standalone 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@entur-partner/app-shell-standalone 支持 ESM 还是 CommonJS?

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

@entur-partner/app-shell-standalone 可以商用吗?

@entur-partner/app-shell-standalone 使用 EUPL-1.2 许可。声明的许可为 EUPL-1.2,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@entur-partner/app-shell-standalone 的下载量有多少?

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

@entur-partner/app-shell-standalone 还在维护吗?

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