@pravosleva/reactive-engine 1.3.2-beta → 1.4.2-beta
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/README.md +1 -1
- package/dist/angular/ReactiveEngine4Angular.cjs +1 -1
- package/dist/angular/ReactiveEngine4Angular.cjs.map +1 -1
- package/dist/angular/ReactiveEngine4Angular.d.ts +1 -0
- package/dist/angular/ReactiveEngine4Angular.d.ts.map +1 -1
- package/dist/angular/ReactiveEngine4Angular.mjs +4 -2
- package/dist/angular/ReactiveEngine4Angular.mjs.map +1 -1
- package/dist/angular/rxjs-interop.d.ts +21 -0
- package/dist/angular/rxjs-interop.d.ts.map +1 -0
- package/dist/core/core.d.ts +143 -6
- package/dist/core/core.d.ts.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.mjs +177 -33
- package/dist/core.mjs.map +1 -1
- package/dist/decorators/index.d.ts +1 -0
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/withThrottleComputed/_withThrottleComputed.d.ts +22 -0
- package/dist/decorators/withThrottleComputed/_withThrottleComputed.d.ts.map +1 -0
- package/dist/decorators/withThrottleComputed/index.d.ts +2 -0
- package/dist/decorators/withThrottleComputed/index.d.ts.map +1 -0
- package/dist/decorators/withThrottleComputed/withThrottleComputed.d.ts +11 -0
- package/dist/decorators/withThrottleComputed/withThrottleComputed.d.ts.map +1 -0
- package/dist/decorators/withThrottleComputed/withThrottleComputed.test.d.ts +2 -0
- package/dist/decorators/withThrottleComputed/withThrottleComputed.test.d.ts.map +1 -0
- package/dist/react/ReactiveEngine4React.cjs +1 -1
- package/dist/react/ReactiveEngine4React.cjs.map +1 -1
- package/dist/react/ReactiveEngine4React.d.ts +1 -0
- package/dist/react/ReactiveEngine4React.d.ts.map +1 -1
- package/dist/react/ReactiveEngine4React.mjs +1 -0
- package/dist/react/ReactiveEngine4React.mjs.map +1 -1
- package/dist/react/hooks/useReactiveSubscription/useReactiveSubscription.cjs +1 -1
- package/dist/react/hooks/useReactiveSubscription/useReactiveSubscription.cjs.map +1 -1
- package/dist/react/hooks/useReactiveSubscription/useReactiveSubscription.d.ts +5 -2
- package/dist/react/hooks/useReactiveSubscription/useReactiveSubscription.d.ts.map +1 -1
- package/dist/react/hooks/useReactiveSubscription/useReactiveSubscription.mjs +10 -6
- package/dist/react/hooks/useReactiveSubscription/useReactiveSubscription.mjs.map +1 -1
- package/dist/utils/getExtractedValues.cjs +1 -1
- package/dist/utils/getExtractedValues.cjs.map +1 -1
- package/dist/utils/getExtractedValues.d.ts.map +1 -1
- package/dist/utils/getExtractedValues.mjs +4 -1
- package/dist/utils/getExtractedValues.mjs.map +1 -1
- package/dist/vue/ReactiveEngine4Vue.cjs.map +1 -1
- package/dist/vue/ReactiveEngine4Vue.d.ts +1 -0
- package/dist/vue/ReactiveEngine4Vue.d.ts.map +1 -1
- package/dist/vue/ReactiveEngine4Vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactiveEngine4Vue.mjs","names":[],"sources":["../../src/vue/ReactiveEngine4Vue.ts"],"sourcesContent":["import { shallowRef, onUnmounted, getCurrentInstance, getCurrentScope, onScopeDispose, triggerRef, type ShallowRef } from 'vue'\nimport { ReactiveEngine as OriginalReactiveEngine, type CleanupFn } from '../core/core'\n\nexport class ReactiveEngine4Vue extends OriginalReactiveEngine {\n /**\n * Использование реактивного значения в Vue компоненте или EffectScope.\n */\n public use<T>(item: { value: T; subscribe: (cb: (v: T) => void) => CleanupFn }): ShallowRef<T> {\n // Создаем локальную Vue-реактивную обертку со стартовым значением
|
|
1
|
+
{"version":3,"file":"ReactiveEngine4Vue.mjs","names":[],"sources":["../../src/vue/ReactiveEngine4Vue.ts"],"sourcesContent":["import { shallowRef, onUnmounted, getCurrentInstance, getCurrentScope, onScopeDispose, triggerRef, type ShallowRef } from 'vue'\nimport { ReactiveEngine as OriginalReactiveEngine, type CleanupFn } from '../core/core'\n\nexport class ReactiveEngine4Vue extends OriginalReactiveEngine {\n /**\n * Использование реактивного значения в Vue компоненте или EffectScope.\n * Нативно поддерживает сигналы (Push) и ленивые вычисляемые свойства (Pull).\n */\n public use<T>(item: { value: T; subscribe: (cb: (v: T) => void) => CleanupFn }): ShallowRef<T> {\n // Создаем локальную Vue-реактивную обертку со стартовым значением сигнала/computed\n const state = shallowRef(item.value)\n\n // Подписываемся на изменения реактивного элемента ядра\n const unsubscribe = item.subscribe((newValue) => {\n state.value = newValue // Обновляем Vue-реактивную переменную\n triggerRef(state) // 👈 ПРИНУДИТЕЛЬНО заставляем Vue перерисовать шаблон\n })\n\n // Автоматическое управление жизненным циклом подписок во Vue\n if (getCurrentInstance()) {\n onUnmounted(() => {\n unsubscribe()\n })\n } else if (getCurrentScope()) {\n onScopeDispose(() => {\n unsubscribe()\n })\n }\n\n return state\n }\n}\n"],"mappings":";;;AAGA,IAAa,IAAb,cAAwC,EAAuB;CAK7D,IAAc,GAAiF;EAE7F,IAAM,IAAQ,EAAW,EAAK,KAAK,GAG7B,IAAc,EAAK,WAAW,MAAa;GAE/C,AADA,EAAM,QAAQ,GACd,EAAW,CAAK;EAClB,CAAC;EAaD,OAVI,EAAmB,IACrB,QAAkB;GAChB,EAAY;EACd,CAAC,IACQ,EAAgB,KACzB,QAAqB;GACnB,EAAY;EACd,CAAC,GAGI;CACT;AACF"}
|