@lytjs/component 6.0.0 → 6.4.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
@@ -2,8 +2,7 @@ import { VNode } from '@lytjs/vdom';
2
2
  import { BaseAppContext, InternalSlots, ComponentPublicInstance, DebuggerEvent } from '@lytjs/shared-types';
3
3
  export { ComponentPublicInstance, InternalSlots, SlotFunction } from '@lytjs/shared-types';
4
4
  import { VNode as VNode$1 } from '@lytjs/common-vnode';
5
- import { ComputedSignal, Signal } from '@lytjs/reactivity';
6
- import { EffectScope } from '@lytjs/reactivity/scope';
5
+ import { ComputedSignal, Signal, EffectScope } from '@lytjs/reactivity';
7
6
 
8
7
  /** Prop 类型构造器 */
9
8
  type PropType<T> = {
@@ -810,4 +809,4 @@ declare function provideAll(providers: Array<{
810
809
  */
811
810
  declare function withProviderScope<T>(fn: () => T): T;
812
811
 
813
- export { type AppContext, type AsyncComponentLoader, type AsyncComponentOptions, type AsyncComponentState, type ComponentContextState, type ComponentIdentity, type ComponentInternalInstance, type ComponentLifecycleState, type ComponentOptions, type ComponentParentState, type ComponentRenderState, type EnhancedInjectOptions, ErrorBoundary, type ErrorBoundaryProps, type InjectOptions, InjectionError, InjectionToken, KeepAlive, type KeepAliveProps, PUBLIC_PROPERTIES_MAP, type PropOptions, type ProviderConfig, type ProviderLifecycle, type ProviderNode, type RenderFunction, type SetupContext, Suspense, type SuspenseAsyncState, type SuspenseProps, Teleport, type TeleportProps, Transition, type TransitionComponentProps, type TransitionComponentPropsLegacy, TransitionGroup, type TransitionGroupComponentProps, type TransitionGroupComponentPropsLegacy, abortSuspense, activateInstance, cacheInstance, callCreatedHook, callLifecycleHook, callMountedHook, callUnmountedHook, callUpdatedHook, clearPreloadCache, createAppContext, createComponentInstance, createComponentPublicInstance, createComputedState, createKeepAliveInstance, createSignalState, createSuspenseBoundary, createSuspenseInstance, deactivateInstance, defineAsyncComponent, defineComponent, defineFunctionalComponent, emit, enterProviderScope, exitProviderScope, finishComponentSetup, getCacheKey, getCachedInstance, getCurrentInstance, getCurrentProviderNode, getProviderRoot, getSuspenseError, handleError, initProps, initSlots, inject, isComponentPreloaded, isEmitValid, isInjectionToken, isSuspensePending, linkSuspenseBoundary, matchesPattern, normalizeEmitsOptions, normalizePropsOptions, normalizeSlotValue, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onUnmounted, onUpdated, preloadComponent, preloadComponents, provide, provideAll, provideScoped, provideSingleton, provideTransient, registerAsyncChild, removeCachedInstance, resolvePropValue, resolveSuspense, setCurrentInstance, setupComponent, validateType, withProviderScope };
812
+ export { type AppContext, type AsyncComponentLoader, type AsyncComponentOptions, type AsyncComponentState, type ComponentContextState, type ComponentIdentity, type ComponentInternalInstance, type ComponentLifecycleState, type ComponentOptions, type ComponentParentState, type ComponentRenderState, type EnhancedInjectOptions, ErrorBoundary, type ErrorBoundaryProps, type InjectOptions, InjectionError, InjectionToken, KeepAlive, type KeepAliveProps, PUBLIC_PROPERTIES_MAP, type PropOptions, type PropType, type ProviderConfig, type ProviderLifecycle, type ProviderNode, type RenderFunction, type SetupContext, Suspense, type SuspenseAsyncState, type SuspenseProps, Teleport, type TeleportProps, Transition, type TransitionComponentProps, type TransitionComponentPropsLegacy, TransitionGroup, type TransitionGroupComponentProps, type TransitionGroupComponentPropsLegacy, abortSuspense, activateInstance, cacheInstance, callCreatedHook, callLifecycleHook, callMountedHook, callUnmountedHook, callUpdatedHook, clearPreloadCache, createAppContext, createComponentInstance, createComponentPublicInstance, createComputedState, createKeepAliveInstance, createSignalState, createSuspenseBoundary, createSuspenseInstance, deactivateInstance, defineAsyncComponent, defineComponent, defineFunctionalComponent, emit, enterProviderScope, exitProviderScope, finishComponentSetup, getCacheKey, getCachedInstance, getCurrentInstance, getCurrentProviderNode, getProviderRoot, getSuspenseError, handleError, initProps, initSlots, inject, isComponentPreloaded, isEmitValid, isInjectionToken, isSuspensePending, linkSuspenseBoundary, matchesPattern, normalizeEmitsOptions, normalizePropsOptions, normalizeSlotValue, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onUnmounted, onUpdated, preloadComponent, preloadComponents, provide, provideAll, provideScoped, provideSingleton, provideTransient, registerAsyncChild, removeCachedInstance, resolvePropValue, resolveSuspense, setCurrentInstance, setupComponent, validateType, withProviderScope };
package/dist/index.d.ts CHANGED
@@ -2,8 +2,7 @@ import { VNode } from '@lytjs/vdom';
2
2
  import { BaseAppContext, InternalSlots, ComponentPublicInstance, DebuggerEvent } from '@lytjs/shared-types';
3
3
  export { ComponentPublicInstance, InternalSlots, SlotFunction } from '@lytjs/shared-types';
4
4
  import { VNode as VNode$1 } from '@lytjs/common-vnode';
5
- import { ComputedSignal, Signal } from '@lytjs/reactivity';
6
- import { EffectScope } from '@lytjs/reactivity/scope';
5
+ import { ComputedSignal, Signal, EffectScope } from '@lytjs/reactivity';
7
6
 
8
7
  /** Prop 类型构造器 */
9
8
  type PropType<T> = {
@@ -810,4 +809,4 @@ declare function provideAll(providers: Array<{
810
809
  */
811
810
  declare function withProviderScope<T>(fn: () => T): T;
812
811
 
813
- export { type AppContext, type AsyncComponentLoader, type AsyncComponentOptions, type AsyncComponentState, type ComponentContextState, type ComponentIdentity, type ComponentInternalInstance, type ComponentLifecycleState, type ComponentOptions, type ComponentParentState, type ComponentRenderState, type EnhancedInjectOptions, ErrorBoundary, type ErrorBoundaryProps, type InjectOptions, InjectionError, InjectionToken, KeepAlive, type KeepAliveProps, PUBLIC_PROPERTIES_MAP, type PropOptions, type ProviderConfig, type ProviderLifecycle, type ProviderNode, type RenderFunction, type SetupContext, Suspense, type SuspenseAsyncState, type SuspenseProps, Teleport, type TeleportProps, Transition, type TransitionComponentProps, type TransitionComponentPropsLegacy, TransitionGroup, type TransitionGroupComponentProps, type TransitionGroupComponentPropsLegacy, abortSuspense, activateInstance, cacheInstance, callCreatedHook, callLifecycleHook, callMountedHook, callUnmountedHook, callUpdatedHook, clearPreloadCache, createAppContext, createComponentInstance, createComponentPublicInstance, createComputedState, createKeepAliveInstance, createSignalState, createSuspenseBoundary, createSuspenseInstance, deactivateInstance, defineAsyncComponent, defineComponent, defineFunctionalComponent, emit, enterProviderScope, exitProviderScope, finishComponentSetup, getCacheKey, getCachedInstance, getCurrentInstance, getCurrentProviderNode, getProviderRoot, getSuspenseError, handleError, initProps, initSlots, inject, isComponentPreloaded, isEmitValid, isInjectionToken, isSuspensePending, linkSuspenseBoundary, matchesPattern, normalizeEmitsOptions, normalizePropsOptions, normalizeSlotValue, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onUnmounted, onUpdated, preloadComponent, preloadComponents, provide, provideAll, provideScoped, provideSingleton, provideTransient, registerAsyncChild, removeCachedInstance, resolvePropValue, resolveSuspense, setCurrentInstance, setupComponent, validateType, withProviderScope };
812
+ export { type AppContext, type AsyncComponentLoader, type AsyncComponentOptions, type AsyncComponentState, type ComponentContextState, type ComponentIdentity, type ComponentInternalInstance, type ComponentLifecycleState, type ComponentOptions, type ComponentParentState, type ComponentRenderState, type EnhancedInjectOptions, ErrorBoundary, type ErrorBoundaryProps, type InjectOptions, InjectionError, InjectionToken, KeepAlive, type KeepAliveProps, PUBLIC_PROPERTIES_MAP, type PropOptions, type PropType, type ProviderConfig, type ProviderLifecycle, type ProviderNode, type RenderFunction, type SetupContext, Suspense, type SuspenseAsyncState, type SuspenseProps, Teleport, type TeleportProps, Transition, type TransitionComponentProps, type TransitionComponentPropsLegacy, TransitionGroup, type TransitionGroupComponentProps, type TransitionGroupComponentPropsLegacy, abortSuspense, activateInstance, cacheInstance, callCreatedHook, callLifecycleHook, callMountedHook, callUnmountedHook, callUpdatedHook, clearPreloadCache, createAppContext, createComponentInstance, createComponentPublicInstance, createComputedState, createKeepAliveInstance, createSignalState, createSuspenseBoundary, createSuspenseInstance, deactivateInstance, defineAsyncComponent, defineComponent, defineFunctionalComponent, emit, enterProviderScope, exitProviderScope, finishComponentSetup, getCacheKey, getCachedInstance, getCurrentInstance, getCurrentProviderNode, getProviderRoot, getSuspenseError, handleError, initProps, initSlots, inject, isComponentPreloaded, isEmitValid, isInjectionToken, isSuspensePending, linkSuspenseBoundary, matchesPattern, normalizeEmitsOptions, normalizePropsOptions, normalizeSlotValue, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onUnmounted, onUpdated, preloadComponent, preloadComponents, provide, provideAll, provideScoped, provideSingleton, provideTransient, registerAsyncChild, removeCachedInstance, resolvePropValue, resolveSuspense, setCurrentInstance, setupComponent, validateType, withProviderScope };
package/dist/index.mjs CHANGED
@@ -1,11 +1,10 @@
1
1
  import { EMPTY_OBJ, isArray, hasOwn, isFunction, isString, isNumber, isBoolean, isObject, isNullish, NOOP, isPromise } from '@lytjs/common-is';
2
2
  import { warn, error } from '@lytjs/common-error';
3
3
  import { kebabToCamel } from '@lytjs/common-string';
4
- import { reactive, computed, watch, ref, signal, computedSignal } from '@lytjs/reactivity';
4
+ import { reactive, computed, watch, ref, signal, computedSignal, effectScope } from '@lytjs/reactivity';
5
5
  import { nextTick } from '@lytjs/common-scheduler';
6
6
  import { createCommentVNode, ShapeFlags, createVNode, registerSuspenseLinker } from '@lytjs/vdom';
7
7
  import { createBaseVNode, ShapeFlags as ShapeFlags$1, Fragment, Text } from '@lytjs/common-vnode';
8
- import { effectScope } from '@lytjs/reactivity/scope';
9
8
 
10
9
  // src/component-setup.ts
11
10
  function normalizePropsOptions(rawProps) {