@coveo/atomic-legacy

中文文档
0.1.10发布于 2026/11/03TypeScriptES Module构建来源已验证近 30 天下载 1.8万

Package used internally by @coveo/atomic for components using legacy technologies (e.g., Stencil). This package is not intended for public use.

原始使用文档
文档目录12 节
  1. Overview
  2. Purpose
  3. Components
  4. atomic-suggestion-renderer
  5. Entry Points
  6. Usage
  7. Development
  8. Building
  9. Dependencies
  10. Migration
  11. Related Packages
  12. License

@coveo/atomic-legacy

⚠️ Internal Package: This package is used internally by @coveo/atomic for components using legacy Stencil technologies. It should not be used directly in your projects.

Overview

@coveo/atomic-legacy provides legacy Stencil-based components that are consumed by the main @coveo/atomic package. This package exists to support backward compatibility during the migration from Stencil to Lit components.

Purpose

This package is part of Coveo's ongoing modernization effort to migrate from Stencil to Lit for better performance, smaller bundle sizes, and improved maintainability. Components in this package use the legacy Stencil architecture and are gradually being migrated to the main @coveo/atomic package as Lit components.

Components

atomic-suggestion-renderer

An internal component used to render individual search box suggestions. It handles rendering of suggestion content that can be either Stencil VNodes or native DOM Elements, providing compatibility between legacy Stencil components and modern Lit implementations.

Key features:

  • Renders suggestion content for search box autocomplete
  • Supports both Stencil VNode and native Element content
  • Handles accessibility attributes (ARIA labels, keyboard navigation)
  • Provides visual states (selected, hover)
  • Supports internationalization via i18next

Entry Points

The package exposes a single entry point:

  • @coveo/atomic-legacy/atomic-suggestion-renderer: Direct access to the suggestion renderer component with types and implementation

Usage

This package is consumed automatically by @coveo/atomic and should not be installed or imported directly in application code.

Do not use:

// ❌ Don't import from atomic-legacy in your projects
import {AtomicSuggestionRenderer} from '@coveo/atomic-legacy';

Instead, use:

// ✅ Use the main @coveo/atomic package
import {defineCustomElements} from '@coveo/atomic/loader';

Development

Building

From the monorepo root:

pnpm turbo run build --filter=@coveo/atomic-legacy

Dependencies

  • @stencil/core: Stencil framework for web components
  • i18next: Internationalization framework (dev dependency)

Migration

Components in this package are candidates for migration to Lit. If you're contributing to the migration effort:

  1. Refer to the Atomic contribution guidelines
  2. Use the migration prompts in .github/prompts/

License

Apache-2.0. See LICENSE for details.

版本与发布记录

@coveo/atomic-legacy 共发布 39 个版本,首次发布于 2026/01/30;过去 12 个月发布了 39 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.10latest2026/11/038 天前
0.1.92026/10/2022 天前
0.1.82026/10/1428 天前
0.1.72026/10/061 个月前
0.1.62026/09/301 个月前
0.1.52026/09/231 个月前

关于 @coveo/atomic-legacy 的常见问题

@coveo/atomic-legacy 是什么?

Package used internally by @coveo/atomic for components using legacy technologies (e.g., Stencil). This package is not intended for public use.

如何安装 @coveo/atomic-legacy?

在项目目录运行 npm install @coveo/atomic-legacy,或使用 pnpm add / yarn add / bun add。

@coveo/atomic-legacy 支持 TypeScript 吗?

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

@coveo/atomic-legacy 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@coveo/atomic-legacy 需要什么版本的 Node.js?

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

@coveo/atomic-legacy 可以商用吗?

@coveo/atomic-legacy 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@coveo/atomic-legacy 的下载量有多少?

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

@coveo/atomic-legacy 还在维护吗?

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