chore: 版本回退至 0.5.0 并重建产物(含 CJS 兼容修复)
CI / test (18.x) (push) Successful in 10m8s
CI / test (20.x) (push) Successful in 10m10s
CI / test (22.x) (push) Successful in 10m4s
CI / test (24.x) (push) Successful in 10m2s

This commit is contained in:
tianhao
2026-08-08 15:40:04 +08:00
parent 2516a3a36b
commit 5f8b9d2f75
32 changed files with 104 additions and 103 deletions
+14 -14
View File
@@ -3,7 +3,7 @@ import { useRef, useEffect, useMemo } from 'react';
/**
* MetonaToast Utils — 工具函数
* @module utils
* @version 0.5.1
* @version 0.5.0
*/
/**
* 生成唯一ID
@@ -40,7 +40,7 @@ const prefersDark = () => {
/**
* MetonaToast Icons — 图标SVG定义
* @module icons
* @version 0.5.1
* @version 0.5.0
* @description 107 个内置 SVG 图标
*/
const ICONS = {
@@ -537,7 +537,7 @@ const ICONS = {
/**
* MetonaToast Locales — 国际化翻译数据
* @module locales
* @version 0.5.1
* @version 0.5.0
* @description 内置 zh-CN / en-US 完整翻译
*/
const LOCALES = {
@@ -1024,12 +1024,12 @@ const LOCALES = {
/**
* MetonaToast Constants — 常量定义
* @module constants
* @version 0.5.1
* @version 0.5.0
*/
/**
* 版本号 — 唯一来源,发布时只需修改此处
*/
const VERSION = '0.5.1';
const VERSION = '0.5.0';
/**
* 默认配置
*/
@@ -1296,7 +1296,7 @@ const ANIMATION_TYPES = ['slide', 'fade', 'scale', 'bounce', 'flip', 'rotate', '
/**
* MetonaToast Styles — 样式管理
* @module styles
* @version 0.5.1
* @version 0.5.0
*/
// 样式缓存
let styleElement = null;
@@ -1785,7 +1785,7 @@ const injectStyles = () => {
/**
* MetonaToast Themes — 主题管理
* @module themes
* @version 0.5.1
* @version 0.5.0
*/
// 当前主题状态
let currentTheme = 'auto';
@@ -2129,7 +2129,7 @@ const themeUtils = {
/**
* MetonaToast i18n — 国际化管理
* @module i18n
* @version 0.5.1
* @version 0.5.0
*/
// 当前语言状态
let currentLocale = 'zh-CN';
@@ -2804,7 +2804,7 @@ const animationUtils = {
/**
* MetonaToast Toast — Toast 类
* @module toast
* @version 0.5.1
* @version 0.5.0
*/
/**
* Toast 类 — 核心通知组件
@@ -3443,7 +3443,7 @@ const _containerCache = new Map();
/**
* MetonaToast Templates — HTML 模板辅助函数
* @module templates
* @version 0.5.1
* @version 0.5.0
* @description confirm / prompt / progress / action 的 DOM 模板
*/
/**
@@ -3515,7 +3515,7 @@ const actionHTML = (actions) => {
/**
* MetonaToast Plugins — 插件系统
* @module plugins
* @version 0.5.1
* @version 0.5.0
*/
/**
* 插件管理器
@@ -3775,7 +3775,7 @@ const defaultPluginManager = new PluginManager();
/**
* MetonaToast API — meToast 核心 API 对象
* @module api
* @version 0.5.1
* @version 0.5.0
*/
/**
* 参数标准化工具
@@ -4461,7 +4461,7 @@ Toast$1.setCallbacks({
/**
* MetonaToast — 轻量级Toast通知库
* @module metona-toast
* @version 0.5.1
* @version 0.5.0
* @author thzxx
* @license MIT
*/
@@ -4527,7 +4527,7 @@ if (typeof window !== 'undefined') {
/**
* MetonaToast React — React 适配器
* @module react
* @version 0.5.1
* @version 0.5.0
* @description useToast hook + 声明式 <Toast /> 组件。主包保持零依赖,React 为 optional peerDependency
*/
const SHOW_METHODS = ['success', 'error', 'warning', 'info', 'show'];