@lytjs/core 6.0.0 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1470,4 +1470,87 @@ declare function safeEscapeHtml(str: string): string;
1470
1470
  */
1471
1471
  declare function safeParseQueryString(str: string): Record<string, string>;
1472
1472
 
1473
- export { type App, type AppConfig, type AppOptions, type ArraySchema, type AsyncComponentLoader, type AsyncComponentOptions, type BooleanSchema, type CacheUtilsLike, type Component, type ConfigArray, type ConfigChangeCallback, ConfigManager, type ConfigObject, type ConfigOptions, type ConfigSchema, type ConfigTransformReport, ConfigTransformer, type ConfigValidationError, type ConfigValidationReport, ConfigValidator, type ConfigValue, type CoreIntegrations, type DebuggerHook, type DefineCustomElementOptions, type DependencyResult, type EnhancedPlugin, type EnumSchema, type ErrorCapturedHook, type HttpClientLike, type NumberSchema, type ObjectSchema, type Plugin, type PluginConfig, type PluginDefinition, type PluginDependency, type PluginEventListener, type PluginFunctionWithCleanup, type PluginInstallFunction, type PluginLifecycleEvent, type PluginMeta, PluginRegistry, PluginTester, type PluginTesterOptions, PluginValidator, type PluginWithCleanup, type QueryUtilsLike, type RegisteredPlugin, type RegistrationResult, type SchemaType, type SecurityUtilsLike, type StringFormat, type StringSchema, type UnionSchema, type ValidationContext$1 as ValidationContext, type ValidationErrorCode, type ValidationIssue, type ValidationReport, type ValidationResult, applyConfigPreset, configPresets, createApp, h as createElement, createPluginTester, defineAsyncComponent, defineComponent, defineCustomElement, defineModel, definePlugin, getCacheUtils, getConfig, getGlobalConfig, getHttpClient, getQueryUtils, getSecurityUtils, h, injectChildStyles, mergeConfig, mergePluginConfig, registerIntegrations, resolveComponent, resolveDirective, resolveDynamicComponent, safeEscapeHtml, safeParseQueryString, setConfig, setGlobalConfig, testPluginInstall, transformConfig, transformPluginConfig, useAttrs, useCssModule, useCssVars, useHost, useId, useModel, useShadowRoot, useSlots, useTemplateRef, useWebComponentSlots, validateConfig, validatePluginConfig, watchConfig, withDirectives, withMemo };
1473
+ /**
1474
+ * @lytjs/core - 错误边界组件
1475
+ *
1476
+ * 提供强大的错误处理和恢复机制
1477
+ */
1478
+
1479
+ /** 错误信息 */
1480
+ interface ErrorInfo {
1481
+ componentStack?: string;
1482
+ timestamp: Date;
1483
+ }
1484
+ /** 降级组件属性 */
1485
+ interface FallbackProps {
1486
+ error: Error;
1487
+ errorInfo: ErrorInfo;
1488
+ reset: () => void;
1489
+ retry: () => void;
1490
+ retryCount: number;
1491
+ maxRetries: number;
1492
+ hasRetries: boolean;
1493
+ }
1494
+ /** 错误边界属性 */
1495
+ interface ErrorBoundaryProps {
1496
+ fallback?: any;
1497
+ fallbackRender?: (error: Error, errorInfo: ErrorInfo, reset: () => void) => VNode;
1498
+ onError?: (error: Error, errorInfo: ErrorInfo) => void;
1499
+ maxRetries?: number;
1500
+ retryDelay?: number;
1501
+ onRetry?: (retryCount: number) => void;
1502
+ onMaxRetriesReached?: (error: Error) => void;
1503
+ }
1504
+ /** 错误报告上下文 */
1505
+ interface ErrorContext {
1506
+ componentName?: string;
1507
+ props?: Record<string, unknown>;
1508
+ state?: Record<string, unknown>;
1509
+ url?: string;
1510
+ userAgent?: string;
1511
+ timestamp: Date;
1512
+ }
1513
+ /** 错误报告器接口 */
1514
+ interface ErrorReporter {
1515
+ report(error: Error, context: ErrorContext): void;
1516
+ }
1517
+ /** 错误日志 */
1518
+ interface ErrorLog {
1519
+ id: string;
1520
+ timestamp: Date;
1521
+ error: Error;
1522
+ errorInfo: ErrorInfo;
1523
+ context: ErrorContext;
1524
+ retryCount: number;
1525
+ }
1526
+ /** 设置全局错误报告器 */
1527
+ declare function setGlobalErrorReporter(reporter: ErrorReporter): void;
1528
+ /** 获取全局错误报告器 */
1529
+ declare function getGlobalErrorReporter(): ErrorReporter;
1530
+ /** 错误日志管理器 */
1531
+ declare class ErrorLogManager {
1532
+ private logs;
1533
+ private maxLogs;
1534
+ addLog(log: ErrorLog): void;
1535
+ getLogs(): ErrorLog[];
1536
+ clearLogs(): void;
1537
+ exportLogs(): string;
1538
+ getLogById(id: string): ErrorLog | undefined;
1539
+ getLogsByErrorType(errorType: string): ErrorLog[];
1540
+ getLogsByDateRange(start: Date, end: Date): ErrorLog[];
1541
+ getErrorStats(): {
1542
+ totalErrors: number;
1543
+ errorTypes: Record<string, number>;
1544
+ recentErrors: ErrorLog[];
1545
+ };
1546
+ }
1547
+ /** 全局错误日志管理器实例 */
1548
+ declare const errorLogManager: ErrorLogManager;
1549
+ /** 错误边界组件实现 */
1550
+ declare function ErrorBoundary(props: ErrorBoundaryProps): VNode;
1551
+ /** 错误边界钩子 - 用于手动触发错误 */
1552
+ declare function useErrorHandler(): (error: Error) => void;
1553
+ /** 错误边界重置钩子 */
1554
+ declare function useErrorBoundaryReset(): () => void;
1555
+
1556
+ export { type App, type AppConfig, type AppOptions, type ArraySchema, type AsyncComponentLoader, type AsyncComponentOptions, type BooleanSchema, type CacheUtilsLike, type Component, type ConfigArray, type ConfigChangeCallback, ConfigManager, type ConfigObject, type ConfigOptions, type ConfigSchema, type ConfigTransformReport, ConfigTransformer, type ConfigValidationError, type ConfigValidationReport, ConfigValidator, type ConfigValue, type CoreIntegrations, type DebuggerHook, type DefineCustomElementOptions, type DependencyResult, type EnhancedPlugin, type EnumSchema, ErrorBoundary, type ErrorBoundaryProps, type ErrorCapturedHook, type ErrorContext, type ErrorInfo, type ErrorLog, type ErrorReporter, type FallbackProps, type HttpClientLike, type NumberSchema, type ObjectSchema, type Plugin, type PluginConfig, type PluginDefinition, type PluginDependency, type PluginEventListener, type PluginFunctionWithCleanup, type PluginInstallFunction, type PluginLifecycleEvent, type PluginMeta, PluginRegistry, PluginTester, type PluginTesterOptions, PluginValidator, type PluginWithCleanup, type QueryUtilsLike, type RegisteredPlugin, type RegistrationResult, type SchemaType, type SecurityUtilsLike, type StringFormat, type StringSchema, type UnionSchema, type ValidationContext$1 as ValidationContext, type ValidationErrorCode, type ValidationIssue, type ValidationReport, type ValidationResult, applyConfigPreset, configPresets, createApp, h as createElement, createPluginTester, defineAsyncComponent, defineComponent, defineCustomElement, defineModel, definePlugin, errorLogManager, getCacheUtils, getConfig, getGlobalConfig, getGlobalErrorReporter, getHttpClient, getQueryUtils, getSecurityUtils, h, injectChildStyles, mergeConfig, mergePluginConfig, registerIntegrations, resolveComponent, resolveDirective, resolveDynamicComponent, safeEscapeHtml, safeParseQueryString, setConfig, setGlobalConfig, setGlobalErrorReporter, testPluginInstall, transformConfig, transformPluginConfig, useAttrs, useCssModule, useCssVars, useErrorBoundaryReset, useErrorHandler, useHost, useId, useModel, useShadowRoot, useSlots, useTemplateRef, useWebComponentSlots, validateConfig, validatePluginConfig, watchConfig, withDirectives, withMemo };
package/dist/index.d.ts CHANGED
@@ -1470,4 +1470,87 @@ declare function safeEscapeHtml(str: string): string;
1470
1470
  */
1471
1471
  declare function safeParseQueryString(str: string): Record<string, string>;
1472
1472
 
1473
- export { type App, type AppConfig, type AppOptions, type ArraySchema, type AsyncComponentLoader, type AsyncComponentOptions, type BooleanSchema, type CacheUtilsLike, type Component, type ConfigArray, type ConfigChangeCallback, ConfigManager, type ConfigObject, type ConfigOptions, type ConfigSchema, type ConfigTransformReport, ConfigTransformer, type ConfigValidationError, type ConfigValidationReport, ConfigValidator, type ConfigValue, type CoreIntegrations, type DebuggerHook, type DefineCustomElementOptions, type DependencyResult, type EnhancedPlugin, type EnumSchema, type ErrorCapturedHook, type HttpClientLike, type NumberSchema, type ObjectSchema, type Plugin, type PluginConfig, type PluginDefinition, type PluginDependency, type PluginEventListener, type PluginFunctionWithCleanup, type PluginInstallFunction, type PluginLifecycleEvent, type PluginMeta, PluginRegistry, PluginTester, type PluginTesterOptions, PluginValidator, type PluginWithCleanup, type QueryUtilsLike, type RegisteredPlugin, type RegistrationResult, type SchemaType, type SecurityUtilsLike, type StringFormat, type StringSchema, type UnionSchema, type ValidationContext$1 as ValidationContext, type ValidationErrorCode, type ValidationIssue, type ValidationReport, type ValidationResult, applyConfigPreset, configPresets, createApp, h as createElement, createPluginTester, defineAsyncComponent, defineComponent, defineCustomElement, defineModel, definePlugin, getCacheUtils, getConfig, getGlobalConfig, getHttpClient, getQueryUtils, getSecurityUtils, h, injectChildStyles, mergeConfig, mergePluginConfig, registerIntegrations, resolveComponent, resolveDirective, resolveDynamicComponent, safeEscapeHtml, safeParseQueryString, setConfig, setGlobalConfig, testPluginInstall, transformConfig, transformPluginConfig, useAttrs, useCssModule, useCssVars, useHost, useId, useModel, useShadowRoot, useSlots, useTemplateRef, useWebComponentSlots, validateConfig, validatePluginConfig, watchConfig, withDirectives, withMemo };
1473
+ /**
1474
+ * @lytjs/core - 错误边界组件
1475
+ *
1476
+ * 提供强大的错误处理和恢复机制
1477
+ */
1478
+
1479
+ /** 错误信息 */
1480
+ interface ErrorInfo {
1481
+ componentStack?: string;
1482
+ timestamp: Date;
1483
+ }
1484
+ /** 降级组件属性 */
1485
+ interface FallbackProps {
1486
+ error: Error;
1487
+ errorInfo: ErrorInfo;
1488
+ reset: () => void;
1489
+ retry: () => void;
1490
+ retryCount: number;
1491
+ maxRetries: number;
1492
+ hasRetries: boolean;
1493
+ }
1494
+ /** 错误边界属性 */
1495
+ interface ErrorBoundaryProps {
1496
+ fallback?: any;
1497
+ fallbackRender?: (error: Error, errorInfo: ErrorInfo, reset: () => void) => VNode;
1498
+ onError?: (error: Error, errorInfo: ErrorInfo) => void;
1499
+ maxRetries?: number;
1500
+ retryDelay?: number;
1501
+ onRetry?: (retryCount: number) => void;
1502
+ onMaxRetriesReached?: (error: Error) => void;
1503
+ }
1504
+ /** 错误报告上下文 */
1505
+ interface ErrorContext {
1506
+ componentName?: string;
1507
+ props?: Record<string, unknown>;
1508
+ state?: Record<string, unknown>;
1509
+ url?: string;
1510
+ userAgent?: string;
1511
+ timestamp: Date;
1512
+ }
1513
+ /** 错误报告器接口 */
1514
+ interface ErrorReporter {
1515
+ report(error: Error, context: ErrorContext): void;
1516
+ }
1517
+ /** 错误日志 */
1518
+ interface ErrorLog {
1519
+ id: string;
1520
+ timestamp: Date;
1521
+ error: Error;
1522
+ errorInfo: ErrorInfo;
1523
+ context: ErrorContext;
1524
+ retryCount: number;
1525
+ }
1526
+ /** 设置全局错误报告器 */
1527
+ declare function setGlobalErrorReporter(reporter: ErrorReporter): void;
1528
+ /** 获取全局错误报告器 */
1529
+ declare function getGlobalErrorReporter(): ErrorReporter;
1530
+ /** 错误日志管理器 */
1531
+ declare class ErrorLogManager {
1532
+ private logs;
1533
+ private maxLogs;
1534
+ addLog(log: ErrorLog): void;
1535
+ getLogs(): ErrorLog[];
1536
+ clearLogs(): void;
1537
+ exportLogs(): string;
1538
+ getLogById(id: string): ErrorLog | undefined;
1539
+ getLogsByErrorType(errorType: string): ErrorLog[];
1540
+ getLogsByDateRange(start: Date, end: Date): ErrorLog[];
1541
+ getErrorStats(): {
1542
+ totalErrors: number;
1543
+ errorTypes: Record<string, number>;
1544
+ recentErrors: ErrorLog[];
1545
+ };
1546
+ }
1547
+ /** 全局错误日志管理器实例 */
1548
+ declare const errorLogManager: ErrorLogManager;
1549
+ /** 错误边界组件实现 */
1550
+ declare function ErrorBoundary(props: ErrorBoundaryProps): VNode;
1551
+ /** 错误边界钩子 - 用于手动触发错误 */
1552
+ declare function useErrorHandler(): (error: Error) => void;
1553
+ /** 错误边界重置钩子 */
1554
+ declare function useErrorBoundaryReset(): () => void;
1555
+
1556
+ export { type App, type AppConfig, type AppOptions, type ArraySchema, type AsyncComponentLoader, type AsyncComponentOptions, type BooleanSchema, type CacheUtilsLike, type Component, type ConfigArray, type ConfigChangeCallback, ConfigManager, type ConfigObject, type ConfigOptions, type ConfigSchema, type ConfigTransformReport, ConfigTransformer, type ConfigValidationError, type ConfigValidationReport, ConfigValidator, type ConfigValue, type CoreIntegrations, type DebuggerHook, type DefineCustomElementOptions, type DependencyResult, type EnhancedPlugin, type EnumSchema, ErrorBoundary, type ErrorBoundaryProps, type ErrorCapturedHook, type ErrorContext, type ErrorInfo, type ErrorLog, type ErrorReporter, type FallbackProps, type HttpClientLike, type NumberSchema, type ObjectSchema, type Plugin, type PluginConfig, type PluginDefinition, type PluginDependency, type PluginEventListener, type PluginFunctionWithCleanup, type PluginInstallFunction, type PluginLifecycleEvent, type PluginMeta, PluginRegistry, PluginTester, type PluginTesterOptions, PluginValidator, type PluginWithCleanup, type QueryUtilsLike, type RegisteredPlugin, type RegistrationResult, type SchemaType, type SecurityUtilsLike, type StringFormat, type StringSchema, type UnionSchema, type ValidationContext$1 as ValidationContext, type ValidationErrorCode, type ValidationIssue, type ValidationReport, type ValidationResult, applyConfigPreset, configPresets, createApp, h as createElement, createPluginTester, defineAsyncComponent, defineComponent, defineCustomElement, defineModel, definePlugin, errorLogManager, getCacheUtils, getConfig, getGlobalConfig, getGlobalErrorReporter, getHttpClient, getQueryUtils, getSecurityUtils, h, injectChildStyles, mergeConfig, mergePluginConfig, registerIntegrations, resolveComponent, resolveDirective, resolveDynamicComponent, safeEscapeHtml, safeParseQueryString, setConfig, setGlobalConfig, setGlobalErrorReporter, testPluginInstall, transformConfig, transformPluginConfig, useAttrs, useCssModule, useCssVars, useErrorBoundaryReset, useErrorHandler, useHost, useId, useModel, useShadowRoot, useSlots, useTemplateRef, useWebComponentSlots, validateConfig, validatePluginConfig, watchConfig, withDirectives, withMemo };
package/dist/index.mjs CHANGED
@@ -3,12 +3,11 @@ export { onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactiva
3
3
  import { error } from '@lytjs/common-error';
4
4
  import { createVNode, cloneVNode, mergeProps, Text, Fragment, Comment, EMPTY_OBJ } from '@lytjs/vdom';
5
5
  export { Comment, Fragment, Text, cloneVNode, createVNode, mergeProps } from '@lytjs/vdom';
6
- import { shallowRef, ref, computed, watch, readonly, watchEffect, reactive, effect } from '@lytjs/reactivity';
6
+ import { shallowRef, ref, computed, watch, onScopeDispose, readonly, watchEffect, reactive, effect } from '@lytjs/reactivity';
7
7
  export { computed, effect, reactive, ref, watch, watchEffect } from '@lytjs/reactivity';
8
8
  import { nextTick } from '@lytjs/common-scheduler';
9
9
  export { nextTick } from '@lytjs/common-scheduler';
10
10
  import { isArray, isObject, hasChanged } from '@lytjs/common-is';
11
- import { onScopeDispose } from '@lytjs/reactivity/scope';
12
11
  import { createDOMRenderer as createDOMRenderer$1 } from '@lytjs/renderer';
13
12
  import { deepClone } from '@lytjs/common-object';
14
13
  import { compile } from '@lytjs/compiler';
@@ -923,6 +922,9 @@ function createApp(rootComponent, rootProps = null, options) {
923
922
  const app = {
924
923
  config: createContextConfig(context),
925
924
  use(plugin, ...options2) {
925
+ if (plugin == null) {
926
+ return app;
927
+ }
926
928
  if (installedPlugins.has(plugin)) return app;
927
929
  try {
928
930
  if (typeof plugin !== "function" && "name" in plugin && typeof plugin.name === "string") {
@@ -955,7 +957,9 @@ function createApp(rootComponent, rootProps = null, options) {
955
957
  return app;
956
958
  }
957
959
  }
958
- plugin.install(app, ...options2);
960
+ if (typeof plugin.install === "function") {
961
+ plugin.install(app, ...options2);
962
+ }
959
963
  pluginRegistry.markInstalled(enhancedPlugin.name);
960
964
  if (enhancedPlugin.afterInstall) {
961
965
  enhancedPlugin.afterInstall(app);
@@ -963,7 +967,7 @@ function createApp(rootComponent, rootProps = null, options) {
963
967
  } else {
964
968
  if (typeof plugin === "function") {
965
969
  plugin(app, ...options2);
966
- } else {
970
+ } else if (plugin && typeof plugin.install === "function") {
967
971
  plugin.install(app, ...options2);
968
972
  }
969
973
  }
@@ -3234,6 +3238,93 @@ var init_common_integration = __esm({
3234
3238
  _integrations = {};
3235
3239
  }
3236
3240
  });
3241
+ function setGlobalErrorReporter(reporter) {
3242
+ globalReporter = reporter;
3243
+ }
3244
+ function getGlobalErrorReporter() {
3245
+ return globalReporter;
3246
+ }
3247
+ function createElement(type, props, ...children) {
3248
+ return createVNode(type, props, children);
3249
+ }
3250
+ function ErrorBoundary(props) {
3251
+ props.maxRetries ?? 3;
3252
+ props.retryDelay ?? 1e3;
3253
+ const state = {
3254
+ resetKey: 0};
3255
+ return createElement("error-boundary-wrapper", {
3256
+ "data-error": "false",
3257
+ key: `reset-${state.resetKey}`
3258
+ }, null);
3259
+ }
3260
+ function useErrorHandler() {
3261
+ return (error3) => {
3262
+ throw error3;
3263
+ };
3264
+ }
3265
+ function useErrorBoundaryReset() {
3266
+ return () => {
3267
+ console.warn("useErrorBoundaryReset should be used within ErrorBoundary");
3268
+ };
3269
+ }
3270
+ var ConsoleErrorReporter, globalReporter, ErrorLogManager, errorLogManager;
3271
+ var init_error_boundary = __esm({
3272
+ "src/error-boundary.ts"() {
3273
+ ConsoleErrorReporter = class {
3274
+ report(error3, context) {
3275
+ console.error("[LytJS ErrorBoundary]", {
3276
+ message: error3.message,
3277
+ stack: error3.stack,
3278
+ context
3279
+ });
3280
+ }
3281
+ };
3282
+ globalReporter = new ConsoleErrorReporter();
3283
+ ErrorLogManager = class {
3284
+ constructor() {
3285
+ this.logs = [];
3286
+ this.maxLogs = 100;
3287
+ }
3288
+ addLog(log) {
3289
+ this.logs.unshift(log);
3290
+ if (this.logs.length > this.maxLogs) {
3291
+ this.logs = this.logs.slice(0, this.maxLogs);
3292
+ }
3293
+ }
3294
+ getLogs() {
3295
+ return [...this.logs];
3296
+ }
3297
+ clearLogs() {
3298
+ this.logs = [];
3299
+ }
3300
+ exportLogs() {
3301
+ return JSON.stringify(this.logs, null, 2);
3302
+ }
3303
+ getLogById(id) {
3304
+ return this.logs.find((log) => log.id === id);
3305
+ }
3306
+ getLogsByErrorType(errorType) {
3307
+ return this.logs.filter((log) => log.error.name === errorType);
3308
+ }
3309
+ getLogsByDateRange(start, end) {
3310
+ return this.logs.filter((log) => log.timestamp >= start && log.timestamp <= end);
3311
+ }
3312
+ getErrorStats() {
3313
+ const errorTypes = {};
3314
+ this.logs.forEach((log) => {
3315
+ const type = log.error.name || "Unknown";
3316
+ errorTypes[type] = (errorTypes[type] || 0) + 1;
3317
+ });
3318
+ return {
3319
+ totalErrors: this.logs.length,
3320
+ errorTypes,
3321
+ recentErrors: this.logs.slice(0, 10)
3322
+ };
3323
+ }
3324
+ };
3325
+ errorLogManager = new ErrorLogManager();
3326
+ }
3327
+ });
3237
3328
 
3238
3329
  // src/index.ts
3239
3330
  var src_exports = {};
@@ -3242,6 +3333,7 @@ __export(src_exports, {
3242
3333
  ConfigManager: () => ConfigManager,
3243
3334
  ConfigTransformer: () => ConfigTransformer,
3244
3335
  ConfigValidator: () => ConfigValidator,
3336
+ ErrorBoundary: () => ErrorBoundary,
3245
3337
  Fragment: () => Fragment,
3246
3338
  PluginRegistry: () => PluginRegistry,
3247
3339
  PluginValidator: () => PluginValidator,
@@ -3261,9 +3353,11 @@ __export(src_exports, {
3261
3353
  defineModel: () => defineModel,
3262
3354
  definePlugin: () => definePlugin,
3263
3355
  effect: () => effect,
3356
+ errorLogManager: () => errorLogManager,
3264
3357
  getCacheUtils: () => getCacheUtils,
3265
3358
  getConfig: () => getConfig,
3266
3359
  getGlobalConfig: () => getGlobalConfig,
3360
+ getGlobalErrorReporter: () => getGlobalErrorReporter,
3267
3361
  getHttpClient: () => getHttpClient,
3268
3362
  getQueryUtils: () => getQueryUtils,
3269
3363
  getSecurityUtils: () => getSecurityUtils,
@@ -3294,12 +3388,15 @@ __export(src_exports, {
3294
3388
  safeParseQueryString: () => safeParseQueryString,
3295
3389
  setConfig: () => setConfig,
3296
3390
  setGlobalConfig: () => setGlobalConfig,
3391
+ setGlobalErrorReporter: () => setGlobalErrorReporter,
3297
3392
  testPluginInstall: () => testPluginInstall,
3298
3393
  transformConfig: () => transformConfig,
3299
3394
  transformPluginConfig: () => transformPluginConfig,
3300
3395
  useAttrs: () => useAttrs,
3301
3396
  useCssModule: () => useCssModule,
3302
3397
  useCssVars: () => useCssVars,
3398
+ useErrorBoundaryReset: () => useErrorBoundaryReset,
3399
+ useErrorHandler: () => useErrorHandler,
3303
3400
  useHost: () => useHost,
3304
3401
  useId: () => useId,
3305
3402
  useModel: () => useModel,
@@ -3333,10 +3430,11 @@ var init_src = __esm({
3333
3430
  init_plugin_sdk();
3334
3431
  init_config();
3335
3432
  init_common_integration();
3433
+ init_error_boundary();
3336
3434
  }
3337
3435
  });
3338
3436
  init_src();
3339
3437
 
3340
- export { ConfigManager, ConfigTransformer, ConfigValidator, PluginRegistry, PluginValidator, applyConfigPreset, configPresets, createApp, h as createElement, createPluginTester, defineAsyncComponent, defineComponent, defineCustomElement, defineModel, definePlugin, getCacheUtils, getConfig, getGlobalConfig, getHttpClient, getQueryUtils, getSecurityUtils, h, injectChildStyles, mergeConfig, mergePluginConfig, registerIntegrations, resolveComponent, resolveDirective, resolveDynamicComponent, safeEscapeHtml, safeParseQueryString, setConfig, setGlobalConfig, testPluginInstall, transformConfig, transformPluginConfig, useAttrs, useCssModule, useCssVars, useHost, useId, useModel, useShadowRoot, useSlots, useTemplateRef, useWebComponentSlots, validateConfig, validatePluginConfig, watchConfig, withDirectives, withMemo };
3438
+ export { ConfigManager, ConfigTransformer, ConfigValidator, ErrorBoundary, PluginRegistry, PluginValidator, applyConfigPreset, configPresets, createApp, h as createElement, createPluginTester, defineAsyncComponent, defineComponent, defineCustomElement, defineModel, definePlugin, errorLogManager, getCacheUtils, getConfig, getGlobalConfig, getGlobalErrorReporter, getHttpClient, getQueryUtils, getSecurityUtils, h, injectChildStyles, mergeConfig, mergePluginConfig, registerIntegrations, resolveComponent, resolveDirective, resolveDynamicComponent, safeEscapeHtml, safeParseQueryString, setConfig, setGlobalConfig, setGlobalErrorReporter, testPluginInstall, transformConfig, transformPluginConfig, useAttrs, useCssModule, useCssVars, useErrorBoundaryReset, useErrorHandler, useHost, useId, useModel, useShadowRoot, useSlots, useTemplateRef, useWebComponentSlots, validateConfig, validatePluginConfig, watchConfig, withDirectives, withMemo };
3341
3439
  //# sourceMappingURL=index.mjs.map
3342
3440
  //# sourceMappingURL=index.mjs.map