@raphy-js/raph 1.0.0-dev.18
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/LICENSE +202 -0
- package/dist/api/Raph.d.ts +97 -0
- package/dist/api/RaphFacadeSession.d.ts +90 -0
- package/dist/api/RaphReactivityInstance.d.ts +72 -0
- package/dist/api/errors.d.ts +25 -0
- package/dist/api/types.d.ts +170 -0
- package/dist/core-CyilRD7s.js +1055 -0
- package/dist/core-ugchZNqC.cjs +1 -0
- package/dist/debug/api/Raph.cjs +1 -0
- package/dist/debug/api/Raph.js +421 -0
- package/dist/debug/api/RaphFacadeSession.cjs +1 -0
- package/dist/debug/api/RaphFacadeSession.js +306 -0
- package/dist/debug/api/RaphReactivityInstance.cjs +1 -0
- package/dist/debug/api/RaphReactivityInstance.js +149 -0
- package/dist/debug/api/errors.cjs +1 -0
- package/dist/debug/api/errors.js +17 -0
- package/dist/debug/api/types.cjs +1 -0
- package/dist/debug/api/types.js +1 -0
- package/dist/debug/path/DataPath.cjs +1 -0
- package/dist/debug/path/DataPath.js +394 -0
- package/dist/debug/path/PathRouter.cjs +1 -0
- package/dist/debug/path/PathRouter.js +86 -0
- package/dist/debug/path/RaphKernel.cjs +1 -0
- package/dist/debug/path/RaphKernel.js +687 -0
- package/dist/debug/path/data-path.types.cjs +1 -0
- package/dist/debug/path/data-path.types.js +1 -0
- package/dist/debug/path/data-path.utils.cjs +1 -0
- package/dist/debug/path/data-path.utils.js +56 -0
- package/dist/debug/path/derived/DerivedRegistry.cjs +1 -0
- package/dist/debug/path/derived/DerivedRegistry.js +157 -0
- package/dist/debug/path/derived/RaphDerivedHandle.cjs +1 -0
- package/dist/debug/path/derived/RaphDerivedHandle.js +125 -0
- package/dist/debug/path/derived/derived-collection.types.cjs +1 -0
- package/dist/debug/path/derived/derived-collection.types.js +1 -0
- package/dist/debug/path/derived/derived-collection.utils.cjs +1 -0
- package/dist/debug/path/derived/derived-collection.utils.js +179 -0
- package/dist/debug/path/derived/derived-strategy.types.cjs +1 -0
- package/dist/debug/path/derived/derived-strategy.types.js +1 -0
- package/dist/debug/path/derived/derived-strategy.utils.cjs +1 -0
- package/dist/debug/path/derived/derived-strategy.utils.js +20 -0
- package/dist/debug/path/meta/MetaController.cjs +1 -0
- package/dist/debug/path/meta/MetaController.js +214 -0
- package/dist/debug/path/meta/RaphMeta.cjs +1 -0
- package/dist/debug/path/meta/RaphMeta.js +68 -0
- package/dist/debug/path/meta/RaphMetaStore.cjs +1 -0
- package/dist/debug/path/meta/RaphMetaStore.js +184 -0
- package/dist/debug/path/meta/meta.types.cjs +1 -0
- package/dist/debug/path/meta/meta.types.js +1 -0
- package/dist/debug/path/path.types.cjs +1 -0
- package/dist/debug/path/path.types.js +1 -0
- package/dist/debug/path/pathSegmentKey.cjs +1 -0
- package/dist/debug/path/pathSegmentKey.js +12 -0
- package/dist/debug/path/storage/AdapterPathStore.cjs +1 -0
- package/dist/debug/path/storage/AdapterPathStore.js +133 -0
- package/dist/debug/path/storage/DefaultDataAdapter.cjs +1 -0
- package/dist/debug/path/storage/DefaultDataAdapter.js +356 -0
- package/dist/debug/path/storage/PathEventHub.cjs +1 -0
- package/dist/debug/path/storage/PathEventHub.js +148 -0
- package/dist/debug/path/storage/PathStore.cjs +1 -0
- package/dist/debug/path/storage/PathStore.js +326 -0
- package/dist/debug/path/storage/createDataDraft.cjs +1 -0
- package/dist/debug/path/storage/createDataDraft.js +71 -0
- package/dist/debug/path/storage/data-adapter.types.cjs +1 -0
- package/dist/debug/path/storage/data-adapter.types.js +1 -0
- package/dist/debug/reactivity/engine.cjs +1 -0
- package/dist/debug/reactivity/engine.js +1305 -0
- package/dist/debug/reactivity/reactive-object.cjs +1 -0
- package/dist/debug/reactivity/reactive-object.js +280 -0
- package/dist/debug/reactivity/scope.cjs +1 -0
- package/dist/debug/reactivity/scope.js +274 -0
- package/dist/debug/reactivity/types.cjs +1 -0
- package/dist/debug/reactivity/types.js +1 -0
- package/dist/debug/reactivity/watch.cjs +1 -0
- package/dist/debug/reactivity/watch.js +64 -0
- package/dist/debug/runtime/RaphRuntime.cjs +1 -0
- package/dist/debug/runtime/RaphRuntime.js +979 -0
- package/dist/debug/runtime/diagnostics/RaphDebug.cjs +1 -0
- package/dist/debug/runtime/diagnostics/RaphDebug.js +297 -0
- package/dist/debug/runtime/errors.cjs +1 -0
- package/dist/debug/runtime/errors.js +15 -0
- package/dist/debug/runtime/ownership/RaphEffectScope.cjs +1 -0
- package/dist/debug/runtime/ownership/RaphEffectScope.js +171 -0
- package/dist/debug/runtime/ownership/RaphNode.cjs +1 -0
- package/dist/debug/runtime/ownership/RaphNode.js +206 -0
- package/dist/debug/runtime/ownership/RaphScope.cjs +1 -0
- package/dist/debug/runtime/ownership/RaphScope.js +101 -0
- package/dist/debug/runtime/ownership/parent-graph.types.cjs +1 -0
- package/dist/debug/runtime/ownership/parent-graph.types.js +1 -0
- package/dist/debug/runtime/ownership/parentGraph.cjs +1 -0
- package/dist/debug/runtime/ownership/parentGraph.js +10 -0
- package/dist/debug/runtime/ownership/throwDisposalErrors.cjs +1 -0
- package/dist/debug/runtime/ownership/throwDisposalErrors.js +9 -0
- package/dist/debug/runtime/phases/RaphFrameLoop.cjs +1 -0
- package/dist/debug/runtime/phases/RaphFrameLoop.js +106 -0
- package/dist/debug/runtime/phases/RaphPhasePipeline.cjs +1 -0
- package/dist/debug/runtime/phases/RaphPhasePipeline.js +587 -0
- package/dist/debug/runtime/phases/orderPhaseTasks.cjs +1 -0
- package/dist/debug/runtime/phases/orderPhaseTasks.js +59 -0
- package/dist/debug/runtime/phases/phase.types.cjs +1 -0
- package/dist/debug/runtime/phases/phase.types.js +8 -0
- package/dist/debug/runtime/reactivity/PathHandle.cjs +1 -0
- package/dist/debug/runtime/reactivity/PathHandle.js +175 -0
- package/dist/debug/runtime/reactivity/RaphMetaSource.cjs +1 -0
- package/dist/debug/runtime/reactivity/RaphMetaSource.js +112 -0
- package/dist/debug/runtime/reactivity/RaphWorkGraph.cjs +1 -0
- package/dist/debug/runtime/reactivity/RaphWorkGraph.js +995 -0
- package/dist/debug/runtime/reactivity/RuntimeReactivity.cjs +1 -0
- package/dist/debug/runtime/reactivity/RuntimeReactivity.js +156 -0
- package/dist/debug/runtime/reactivity/RuntimeWatch.cjs +1 -0
- package/dist/debug/runtime/reactivity/RuntimeWatch.js +88 -0
- package/dist/debug/runtime/reactivity/runtime-reactivity.types.cjs +1 -0
- package/dist/debug/runtime/reactivity/runtime-reactivity.types.js +1 -0
- package/dist/entrypoints/machine-testing.d.ts +2 -0
- package/dist/entrypoints/machine.d.ts +5 -0
- package/dist/entrypoints/path.d.ts +14 -0
- package/dist/entrypoints/reactivity.d.ts +1 -0
- package/dist/entrypoints/runtime.d.ts +17 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +48 -0
- package/dist/machine/compiler.d.ts +71 -0
- package/dist/machine/core.d.ts +50 -0
- package/dist/machine/persistence.d.ts +5 -0
- package/dist/machine/runtime.d.ts +4 -0
- package/dist/machine/testing.d.ts +43 -0
- package/dist/machine/types.d.ts +155 -0
- package/dist/machine-testing.cjs +1 -0
- package/dist/machine-testing.js +188 -0
- package/dist/machine.cjs +1 -0
- package/dist/machine.js +837 -0
- package/dist/main.d.ts +20 -0
- package/dist/path/DataPath.d.ts +73 -0
- package/dist/path/PathRouter.d.ts +21 -0
- package/dist/path/RaphKernel.d.ts +169 -0
- package/dist/path/data-path.types.d.ts +34 -0
- package/dist/path/data-path.utils.d.ts +9 -0
- package/dist/path/derived/DerivedRegistry.d.ts +67 -0
- package/dist/path/derived/RaphDerivedHandle.d.ts +97 -0
- package/dist/path/derived/derived-collection.types.d.ts +12 -0
- package/dist/path/derived/derived-collection.utils.d.ts +20 -0
- package/dist/path/derived/derived-strategy.types.d.ts +12 -0
- package/dist/path/derived/derived-strategy.utils.d.ts +4 -0
- package/dist/path/meta/MetaController.d.ts +85 -0
- package/dist/path/meta/RaphMeta.d.ts +45 -0
- package/dist/path/meta/RaphMetaStore.d.ts +45 -0
- package/dist/path/meta/meta.types.d.ts +31 -0
- package/dist/path/path.types.d.ts +27 -0
- package/dist/path/pathSegmentKey.d.ts +2 -0
- package/dist/path/storage/AdapterPathStore.d.ts +45 -0
- package/dist/path/storage/DefaultDataAdapter.d.ts +63 -0
- package/dist/path/storage/PathEventHub.d.ts +48 -0
- package/dist/path/storage/PathStore.d.ts +51 -0
- package/dist/path/storage/createDataDraft.d.ts +4 -0
- package/dist/path/storage/data-adapter.types.d.ts +17 -0
- package/dist/path.cjs +1 -0
- package/dist/path.js +18 -0
- package/dist/raph.cjs +1 -0
- package/dist/raph.js +48 -0
- package/dist/reactivity/engine.d.ts +393 -0
- package/dist/reactivity/reactive-object.d.ts +36 -0
- package/dist/reactivity/scope.d.ts +146 -0
- package/dist/reactivity/types.d.ts +175 -0
- package/dist/reactivity/watch.d.ts +15 -0
- package/dist/reactivity.cjs +1 -0
- package/dist/reactivity.js +14 -0
- package/dist/runtime/RaphRuntime.d.ts +225 -0
- package/dist/runtime/diagnostics/RaphDebug.d.ts +239 -0
- package/dist/runtime/errors.d.ts +21 -0
- package/dist/runtime/ownership/RaphEffectScope.d.ts +29 -0
- package/dist/runtime/ownership/RaphNode.d.ts +40 -0
- package/dist/runtime/ownership/RaphScope.d.ts +38 -0
- package/dist/runtime/ownership/parent-graph.types.d.ts +4 -0
- package/dist/runtime/ownership/parentGraph.d.ts +3 -0
- package/dist/runtime/ownership/throwDisposalErrors.d.ts +1 -0
- package/dist/runtime/phases/RaphFrameLoop.d.ts +51 -0
- package/dist/runtime/phases/RaphPhasePipeline.d.ts +79 -0
- package/dist/runtime/phases/orderPhaseTasks.d.ts +6 -0
- package/dist/runtime/phases/phase.types.d.ts +92 -0
- package/dist/runtime/reactivity/PathHandle.d.ts +80 -0
- package/dist/runtime/reactivity/RaphMetaSource.d.ts +32 -0
- package/dist/runtime/reactivity/RaphWorkGraph.d.ts +171 -0
- package/dist/runtime/reactivity/RuntimeReactivity.d.ts +45 -0
- package/dist/runtime/reactivity/RuntimeWatch.d.ts +34 -0
- package/dist/runtime/reactivity/runtime-reactivity.types.d.ts +11 -0
- package/dist/runtime.cjs +1 -0
- package/dist/runtime.js +23 -0
- package/package.json +141 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RaphError } from '../api/errors';
|
|
2
|
+
/**
|
|
3
|
+
* Сообщает о записи вне action при включённом enforceActions.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RaphActionError extends RaphError {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Сообщает об обращении к уже освобождённому runtime-owner.
|
|
9
|
+
*/
|
|
10
|
+
export declare class RaphDisposedError extends RaphError {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Сообщает о попытке связать owners из разных runtimes.
|
|
14
|
+
*/
|
|
15
|
+
export declare class RaphCrossRuntimeError extends RaphError {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Сообщает об ошибке пользовательского phase processor или task resolution.
|
|
19
|
+
*/
|
|
20
|
+
export declare class RaphPhaseProcessError extends RaphError {
|
|
21
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Disposer } from '../../reactivity/types';
|
|
2
|
+
import { RaphEffectOptions, RaphOwnerWatchSource, RaphPhaseEffect, RaphWatchOptions } from '../phases/phase.types';
|
|
3
|
+
import { RaphScope } from './RaphScope';
|
|
4
|
+
/** Pauses phase deliveries without detaching dependencies or losing accumulated causes. */
|
|
5
|
+
export declare class RaphEffectScope {
|
|
6
|
+
private readonly _owner;
|
|
7
|
+
private _registrations;
|
|
8
|
+
private _children;
|
|
9
|
+
private _selfPaused;
|
|
10
|
+
private _ancestorPauses;
|
|
11
|
+
private _disposed;
|
|
12
|
+
private readonly _releaseOwner;
|
|
13
|
+
private readonly _parent;
|
|
14
|
+
constructor(_owner: RaphScope, parent?: RaphEffectScope | null);
|
|
15
|
+
get paused(): boolean;
|
|
16
|
+
get disposed(): boolean;
|
|
17
|
+
fork(owner: RaphScope): RaphEffectScope;
|
|
18
|
+
effect(phase: string, callback: RaphPhaseEffect, options?: RaphEffectOptions): Disposer;
|
|
19
|
+
watch(source: RaphOwnerWatchSource, phase: string, callback: RaphPhaseEffect, options?: RaphWatchOptions): Disposer;
|
|
20
|
+
pause(): void;
|
|
21
|
+
resume(): void;
|
|
22
|
+
private _pause;
|
|
23
|
+
private _resume;
|
|
24
|
+
dispose(): void;
|
|
25
|
+
private _add;
|
|
26
|
+
private _assertAlive;
|
|
27
|
+
private _addChild;
|
|
28
|
+
private _changeAncestorPause;
|
|
29
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { RaphRuntime } from '../RaphRuntime';
|
|
2
|
+
import { RaphScope } from './RaphScope';
|
|
3
|
+
export interface NodeOptions {
|
|
4
|
+
readonly id?: string;
|
|
5
|
+
readonly priority?: number;
|
|
6
|
+
readonly parent?: RaphNode;
|
|
7
|
+
readonly meta?: Readonly<Record<string, unknown>>;
|
|
8
|
+
readonly type?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Scope with an explicit parent/children ownership position. */
|
|
11
|
+
export declare class RaphNode<TApi = unknown> extends RaphScope {
|
|
12
|
+
priority: number;
|
|
13
|
+
private _parent;
|
|
14
|
+
private readonly _children;
|
|
15
|
+
private _published;
|
|
16
|
+
readonly api: Readonly<TApi>;
|
|
17
|
+
meta: Record<string, unknown>;
|
|
18
|
+
type: string;
|
|
19
|
+
/** Distinguishes a subtree granule from the node's self granule. @internal */
|
|
20
|
+
readonly _subtreeSourceIdentity: Readonly<{}>;
|
|
21
|
+
constructor(parent: RaphNode | RaphRuntime | null, options?: Omit<NodeOptions, 'parent'>, runtime?: RaphRuntime, publication?: never);
|
|
22
|
+
get node(): RaphNode<TApi>;
|
|
23
|
+
get parent(): RaphNode | null;
|
|
24
|
+
get children(): readonly RaphNode[];
|
|
25
|
+
addChild(node: RaphNode): boolean;
|
|
26
|
+
reorderChildren(nodes: readonly RaphNode[]): void;
|
|
27
|
+
options(options: Pick<NodeOptions, 'meta' | 'priority' | 'type'>): void;
|
|
28
|
+
/** Invalidates coarse self/subtree/runtime granules for non-reactive state. */
|
|
29
|
+
touch(metadata?: unknown): void;
|
|
30
|
+
remove(): void;
|
|
31
|
+
dispose(): void;
|
|
32
|
+
/** @internal */
|
|
33
|
+
_setApi(api: TApi): void;
|
|
34
|
+
/** Publishes a fully initialized provisional subtree. @internal */
|
|
35
|
+
_publishCreation(): void;
|
|
36
|
+
/** @internal */
|
|
37
|
+
_isPublished(): boolean;
|
|
38
|
+
}
|
|
39
|
+
/** Creates an unpublished node that Runtime.node() commits after setup. @internal */
|
|
40
|
+
export declare function createProvisionalNode<TApi>(parent: RaphNode, options: Omit<NodeOptions, 'parent'>, runtime: RaphRuntime): RaphNode<TApi>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Disposer, OwnedSource, ReadonlySignal, Signal, WritableComputedOptions } from '../../reactivity/types';
|
|
2
|
+
import { RaphAggregateSource, RaphEffectOptions, RaphPhaseEffect, RaphWatchOptions, RaphWatchSource } from '../phases/phase.types';
|
|
3
|
+
import { RaphRuntime } from '../RaphRuntime';
|
|
4
|
+
import { RaphAggregate } from '../reactivity/RaphWorkGraph';
|
|
5
|
+
import { RaphNode } from './RaphNode';
|
|
6
|
+
/** Runtime owner storage intentionally does not inherit standalone unphased effect/watch. */
|
|
7
|
+
export declare class RaphScope {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly runtime: RaphRuntime;
|
|
10
|
+
private readonly _resources;
|
|
11
|
+
protected _disposed: boolean;
|
|
12
|
+
protected _disposing: boolean;
|
|
13
|
+
constructor(id: string, runtime: RaphRuntime);
|
|
14
|
+
get disposed(): boolean;
|
|
15
|
+
get active(): boolean;
|
|
16
|
+
/** Stable selector for process ordering; plain scopes are not tree nodes. */
|
|
17
|
+
get node(): RaphNode | undefined;
|
|
18
|
+
signal<T>(value: T): Signal<T>;
|
|
19
|
+
computed<T>(getter: () => T): ReadonlySignal<T>;
|
|
20
|
+
computed<T>(options: WritableComputedOptions<T>): Signal<T>;
|
|
21
|
+
effect(phase: string, callback: RaphPhaseEffect, options?: RaphEffectOptions): Disposer;
|
|
22
|
+
watch(source: RaphWatchSource, phase: string, callback: RaphPhaseEffect, options?: RaphWatchOptions): Disposer;
|
|
23
|
+
aggregate(sources: readonly RaphAggregateSource[]): RaphAggregate;
|
|
24
|
+
action<Args extends unknown[], Result>(operation: (...args: Args) => Result): (...args: Args) => Result;
|
|
25
|
+
action<Args extends unknown[], Result>(name: string, operation: (...args: Args) => Result): (...args: Args) => Result;
|
|
26
|
+
own(disposer: Disposer): Disposer;
|
|
27
|
+
dispose(): void;
|
|
28
|
+
/** @internal */
|
|
29
|
+
_adoptResource(disposer: Disposer): Disposer;
|
|
30
|
+
/** @internal */
|
|
31
|
+
_adoptSource<T>(source: OwnedSource<T>): T;
|
|
32
|
+
/** @internal */
|
|
33
|
+
_debugResourceCount(): number;
|
|
34
|
+
/** @internal */
|
|
35
|
+
_debugSourceCount(): number;
|
|
36
|
+
/** @internal */
|
|
37
|
+
_assertAlive(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function throwDisposalErrors(errors: unknown[], message?: string): void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { FrameLoopLease } from './phase.types';
|
|
2
|
+
/**
|
|
3
|
+
* Ленивые frame callbacks не запускаются обычной реактивной работой.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RaphFrameLoop {
|
|
6
|
+
private readonly _tick;
|
|
7
|
+
private readonly _leases;
|
|
8
|
+
private _frameHandle;
|
|
9
|
+
private _frameHandleKind;
|
|
10
|
+
private _scheduleToken;
|
|
11
|
+
private _running;
|
|
12
|
+
private _manual;
|
|
13
|
+
/**
|
|
14
|
+
* Создаёт frame-loop, который запрашивает выполнение runtime pipeline.
|
|
15
|
+
*/
|
|
16
|
+
constructor(_tick: () => void);
|
|
17
|
+
/**
|
|
18
|
+
* Показывает, выполняется ли автоматический frame-loop.
|
|
19
|
+
*/
|
|
20
|
+
get running(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Получает lease, удерживающий автоматический frame-loop активным.
|
|
23
|
+
*/
|
|
24
|
+
acquire(owner: string): FrameLoopLease;
|
|
25
|
+
/**
|
|
26
|
+
* Запускает manual lease frame-loop.
|
|
27
|
+
*/
|
|
28
|
+
start(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Останавливает manual lease, не затрагивая внешние leases.
|
|
31
|
+
*/
|
|
32
|
+
stop(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Снимает все leases и отменяет запланированный frame callback.
|
|
35
|
+
*/
|
|
36
|
+
dispose(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Возвращает внутреннее состояние frame-loop для диагностики.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
_debugState(): {
|
|
42
|
+
running: boolean;
|
|
43
|
+
manual: boolean;
|
|
44
|
+
leases: number;
|
|
45
|
+
};
|
|
46
|
+
private _onFrame;
|
|
47
|
+
private _ensureRunning;
|
|
48
|
+
private _schedule;
|
|
49
|
+
private _reconcile;
|
|
50
|
+
private _stop;
|
|
51
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Disposer, EffectTask } from '../../reactivity/types';
|
|
2
|
+
import { RaphScope } from '../ownership/RaphScope';
|
|
3
|
+
import { RaphFrameContext, RaphPhase, RaphPhaseEffect, RaphPhaseTask, RaphSchedulerMode, RaphWorkCause } from './phase.types';
|
|
4
|
+
export interface RaphPhaseBinding extends EffectTask {
|
|
5
|
+
readonly task: RaphPhaseTask;
|
|
6
|
+
/** Stops the owning implicit effect when a fatal discard cannot re-arm it. @internal */
|
|
7
|
+
abort?: Disposer;
|
|
8
|
+
enqueue: (cause: RaphWorkCause, key?: object, schedule?: boolean) => void;
|
|
9
|
+
pause: () => void;
|
|
10
|
+
resume: () => void;
|
|
11
|
+
}
|
|
12
|
+
/** Единая Runtime-owned очередь persistent phase bindings. */
|
|
13
|
+
export declare class RaphPhasePipeline {
|
|
14
|
+
private readonly _scheduler;
|
|
15
|
+
private readonly _runUntracked;
|
|
16
|
+
private readonly _resolveCause;
|
|
17
|
+
private readonly _deferSync;
|
|
18
|
+
private readonly _tracePhase?;
|
|
19
|
+
private _phases;
|
|
20
|
+
private _phaseByName;
|
|
21
|
+
private readonly _phaseBindings;
|
|
22
|
+
private readonly _queues;
|
|
23
|
+
private readonly _deferred;
|
|
24
|
+
private readonly _idleWaiters;
|
|
25
|
+
private _taskSequence;
|
|
26
|
+
private _scheduled;
|
|
27
|
+
private _scheduleToken;
|
|
28
|
+
private _frameHandle;
|
|
29
|
+
private _frameHandleKind;
|
|
30
|
+
private _configurationLocked;
|
|
31
|
+
private _running;
|
|
32
|
+
private _disposed;
|
|
33
|
+
private _firstFrameAt;
|
|
34
|
+
private _lastFrameAt;
|
|
35
|
+
private _frameNumber;
|
|
36
|
+
private _frame;
|
|
37
|
+
constructor(_scheduler: RaphSchedulerMode, _runUntracked: <T>(operation: () => T) => T, _resolveCause: (token: unknown) => RaphWorkCause | undefined, _deferSync?: () => boolean, _tracePhase?: ((phase: string, status: "end" | "error" | "start", error?: unknown) => void) | undefined);
|
|
38
|
+
get frame(): RaphFrameContext;
|
|
39
|
+
get phases(): readonly RaphPhase[];
|
|
40
|
+
definePhases(phases: readonly RaphPhase[]): void;
|
|
41
|
+
addPhase(phase: RaphPhase): void;
|
|
42
|
+
clearPhases(): void;
|
|
43
|
+
requirePhase(name: string): void;
|
|
44
|
+
bindTask(phaseInput: string, consumerOwner: RaphScope, effect: RaphPhaseEffect, priority: number, runner: () => void): RaphPhaseBinding;
|
|
45
|
+
request(): void;
|
|
46
|
+
afterFlush(): Promise<void>;
|
|
47
|
+
flush(): void;
|
|
48
|
+
dispose(): void;
|
|
49
|
+
_debugPending(): boolean;
|
|
50
|
+
private _describeQueued;
|
|
51
|
+
private _createTask;
|
|
52
|
+
private _beginDelivery;
|
|
53
|
+
private _runDelivery;
|
|
54
|
+
private _deferDelivery;
|
|
55
|
+
private _cancelDelivery;
|
|
56
|
+
private _finishDelivery;
|
|
57
|
+
private _appendCause;
|
|
58
|
+
private _queue;
|
|
59
|
+
private _disposeTask;
|
|
60
|
+
private _pauseTask;
|
|
61
|
+
private _resumeTask;
|
|
62
|
+
private _restoreDeliveryCausesBeforePending;
|
|
63
|
+
private _takePhase;
|
|
64
|
+
private _schedule;
|
|
65
|
+
private _scheduleDeferredTurn;
|
|
66
|
+
private _cancelScheduled;
|
|
67
|
+
private _activateDeferred;
|
|
68
|
+
private _nextFrame;
|
|
69
|
+
private _assertRetainedPhases;
|
|
70
|
+
private _assertDelivery;
|
|
71
|
+
private _hasQueued;
|
|
72
|
+
private _hasPending;
|
|
73
|
+
private _cancelAllQueued;
|
|
74
|
+
private _cancelAllDeferred;
|
|
75
|
+
private _acknowledgeDiscard;
|
|
76
|
+
private _clearPendingDelivery;
|
|
77
|
+
private _settleIdleWaiters;
|
|
78
|
+
private _assertAlive;
|
|
79
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RaphPhaseTask, RaphTaskOrderOptions } from './phase.types';
|
|
2
|
+
/**
|
|
3
|
+
* Возвращает новый массив задач в tree-order выбранной пользователем owner-плоскости.
|
|
4
|
+
* Исходный batch и persistent task identities не изменяются.
|
|
5
|
+
*/
|
|
6
|
+
export declare function orderPhaseTasks(tasks: readonly RaphPhaseTask[], options: RaphTaskOrderOptions): RaphPhaseTask[];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { RaphMetaMutationEvent } from '../../path/meta/meta.types';
|
|
2
|
+
import { PathEvent } from '../../path/path.types';
|
|
3
|
+
import { Disposer, ReadonlySignal } from '../../reactivity/types';
|
|
4
|
+
import { RaphNode } from '../ownership/RaphNode';
|
|
5
|
+
import { RaphScope } from '../ownership/RaphScope';
|
|
6
|
+
import { RaphRuntime } from '../RaphRuntime';
|
|
7
|
+
import { RaphMetaSource } from '../reactivity/RaphMetaSource';
|
|
8
|
+
import { RaphAggregate } from '../reactivity/RaphWorkGraph';
|
|
9
|
+
export declare const RaphSchedulerType: Readonly<{
|
|
10
|
+
readonly AnimationFrame: "animationFrame";
|
|
11
|
+
readonly Microtask: "microtask";
|
|
12
|
+
readonly Sync: "sync";
|
|
13
|
+
}>;
|
|
14
|
+
export type RaphSchedulerMode = typeof RaphSchedulerType[keyof typeof RaphSchedulerType];
|
|
15
|
+
export type RaphEffectInitialMode = 'scheduled' | 'sync';
|
|
16
|
+
export type RaphWatchInitialMode = RaphEffectInitialMode | 'none';
|
|
17
|
+
export interface FrameLoopLease {
|
|
18
|
+
readonly owner: string;
|
|
19
|
+
release: () => void;
|
|
20
|
+
}
|
|
21
|
+
export interface RaphFrameContext {
|
|
22
|
+
readonly now: number;
|
|
23
|
+
readonly delta: number;
|
|
24
|
+
readonly elapsed: number;
|
|
25
|
+
readonly frame: number;
|
|
26
|
+
}
|
|
27
|
+
export interface RaphStructureCause {
|
|
28
|
+
readonly node: RaphNode;
|
|
29
|
+
readonly oldParent?: RaphNode;
|
|
30
|
+
readonly newParent?: RaphNode;
|
|
31
|
+
readonly oldIndex?: number;
|
|
32
|
+
readonly newIndex?: number;
|
|
33
|
+
}
|
|
34
|
+
export type RaphWorkCauseKind = 'producer' | 'structure' | 'path' | 'frame' | 'touch';
|
|
35
|
+
/** Одна logical причина phase delivery. Повторные причины одного source coalesce. */
|
|
36
|
+
export interface RaphWorkCause {
|
|
37
|
+
readonly kind: RaphWorkCauseKind;
|
|
38
|
+
readonly source: RaphWatchSource;
|
|
39
|
+
readonly sourceOwner?: RaphScope;
|
|
40
|
+
readonly revision: number;
|
|
41
|
+
readonly previous?: unknown;
|
|
42
|
+
readonly value?: unknown;
|
|
43
|
+
readonly structure?: RaphStructureCause;
|
|
44
|
+
readonly events?: readonly (PathEvent | RaphMetaMutationEvent)[];
|
|
45
|
+
readonly metadata?: unknown;
|
|
46
|
+
}
|
|
47
|
+
export type RaphPhaseEffect = (task: RaphPhaseTask) => void | Disposer;
|
|
48
|
+
/** Persistent task identity, передаваемая phase process и effect callback. */
|
|
49
|
+
export interface RaphPhaseTask {
|
|
50
|
+
readonly phase: string;
|
|
51
|
+
readonly consumerOwner: RaphScope;
|
|
52
|
+
readonly effect: RaphPhaseEffect;
|
|
53
|
+
readonly causes: readonly RaphWorkCause[];
|
|
54
|
+
readonly frame: RaphFrameContext;
|
|
55
|
+
readonly priority: number;
|
|
56
|
+
readonly sequence: number;
|
|
57
|
+
run: () => void;
|
|
58
|
+
defer: () => void;
|
|
59
|
+
cancel: () => void;
|
|
60
|
+
}
|
|
61
|
+
export interface RaphPhaseBatch {
|
|
62
|
+
readonly phase: string;
|
|
63
|
+
readonly frame: RaphFrameContext;
|
|
64
|
+
readonly tasks: readonly RaphPhaseTask[];
|
|
65
|
+
}
|
|
66
|
+
export interface RaphPhase {
|
|
67
|
+
readonly name: string;
|
|
68
|
+
readonly process?: (batch: RaphPhaseBatch) => void;
|
|
69
|
+
}
|
|
70
|
+
export interface RaphEffectOptions {
|
|
71
|
+
readonly initial?: RaphEffectInitialMode;
|
|
72
|
+
readonly priority?: number;
|
|
73
|
+
}
|
|
74
|
+
export type RaphWatchInclude = 'self' | 'subtree';
|
|
75
|
+
export interface RaphWatchOptions extends Omit<RaphEffectOptions, 'initial'> {
|
|
76
|
+
/** `none` creates a change-only binding without an initial delivery. */
|
|
77
|
+
readonly initial?: RaphWatchInitialMode;
|
|
78
|
+
/** Применяется только к RaphNode source; default — self. */
|
|
79
|
+
readonly include?: RaphWatchInclude;
|
|
80
|
+
}
|
|
81
|
+
export interface RaphNodeWatchSource {
|
|
82
|
+
readonly source: RaphNode;
|
|
83
|
+
readonly include: RaphWatchInclude;
|
|
84
|
+
}
|
|
85
|
+
export type RaphProducerSource = ReadonlySignal<unknown>;
|
|
86
|
+
export type RaphWatchSource = RaphProducerSource | RaphNode | RaphNodeWatchSource | RaphRuntime | RaphAggregate | RaphMetaSource;
|
|
87
|
+
export type RaphOwnerWatchSource = RaphWatchSource;
|
|
88
|
+
export type RaphAggregateSource = RaphOwnerWatchSource;
|
|
89
|
+
export interface RaphTaskOrderOptions {
|
|
90
|
+
readonly node: (task: RaphPhaseTask) => RaphNode | null | undefined;
|
|
91
|
+
readonly direction?: 'parents-first' | 'children-first';
|
|
92
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ParsedDataPath } from '../../path/data-path.types';
|
|
2
|
+
import { PathEvents, PathOptions } from '../../path/path.types';
|
|
3
|
+
import { RaphKernel } from '../../path/RaphKernel';
|
|
4
|
+
import { RaphReactivity } from '../../reactivity/engine';
|
|
5
|
+
import { Disposer, OwnedSourceHooks, ReadonlySignal } from '../../reactivity/types';
|
|
6
|
+
type PathSignalEngine = Pick<RaphReactivity, '_isTracking' | '_ownedSignal'>;
|
|
7
|
+
/**
|
|
8
|
+
* Реактивный handle одного canonical path в default E2 data-plane.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PathHandle<T> implements ReadonlySignal<T | undefined> {
|
|
11
|
+
readonly path: string;
|
|
12
|
+
readonly options: PathOptions;
|
|
13
|
+
private _revision;
|
|
14
|
+
private _disposeRevision;
|
|
15
|
+
private _isTracking;
|
|
16
|
+
private _store;
|
|
17
|
+
private _release;
|
|
18
|
+
private readonly _masks;
|
|
19
|
+
private _assertOwnerAlive;
|
|
20
|
+
private _assertTrackedRead;
|
|
21
|
+
private _assertWriteAllowed;
|
|
22
|
+
private _runWrite;
|
|
23
|
+
private _notifyEvents;
|
|
24
|
+
private _hasRevisionSubscribers;
|
|
25
|
+
private _stop;
|
|
26
|
+
private _activationLeases;
|
|
27
|
+
private _trackedActivation;
|
|
28
|
+
private _disposed;
|
|
29
|
+
/**
|
|
30
|
+
* Создаёт internal path handle и связывает его с runtime lifecycle.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
constructor(store: RaphKernel, parsed: ParsedDataPath, options: PathOptions, release: (handle: PathHandle<unknown>) => void, signals: PathSignalEngine, assertOwnerAlive?: () => void, assertTrackedRead?: () => void, assertWriteAllowed?: () => void, runWrite?: <Result>(operation: () => Result) => Result, sourceHooks?: OwnedSourceHooks, notifyEvents?: (events: PathEvents, hasReactiveSubscribers: boolean) => void);
|
|
34
|
+
/**
|
|
35
|
+
* Показывает, освобождён ли path handle.
|
|
36
|
+
*/
|
|
37
|
+
get disposed(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Читает path с регистрацией реактивной зависимости.
|
|
40
|
+
*/
|
|
41
|
+
get(): T | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Читает path без регистрации реактивной зависимости.
|
|
44
|
+
*/
|
|
45
|
+
peek(): T | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Записывает значение path через runtime write policy.
|
|
48
|
+
*/
|
|
49
|
+
set(value: T): void;
|
|
50
|
+
/**
|
|
51
|
+
* Объединяет значение path через runtime write policy.
|
|
52
|
+
*/
|
|
53
|
+
merge(value: Partial<T>): void;
|
|
54
|
+
/**
|
|
55
|
+
* Удаляет значение path через runtime write policy.
|
|
56
|
+
*/
|
|
57
|
+
delete(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Проверяет наличие значения path.
|
|
60
|
+
*/
|
|
61
|
+
has(): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Отсоединяет Kernel subscription и освобождает reactive revision handle.
|
|
64
|
+
*/
|
|
65
|
+
dispose(): void;
|
|
66
|
+
private _disposeNow;
|
|
67
|
+
/**
|
|
68
|
+
* Читает path с регистрацией runtime reactive dependency.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
_getTracked(): T | undefined;
|
|
72
|
+
/** Activates the lazy Kernel observer for an explicit granular watch. @internal */
|
|
73
|
+
_activate(): Disposer;
|
|
74
|
+
private _readTracked;
|
|
75
|
+
private _observe;
|
|
76
|
+
private _releaseObserverIfIdle;
|
|
77
|
+
private _write;
|
|
78
|
+
private _assertAlive;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { RaphMetaWatchOptions } from '../../path/meta/meta.types';
|
|
2
|
+
import { DataPathDef } from '../../path/path.types';
|
|
3
|
+
import { Disposer } from '../../reactivity/types';
|
|
4
|
+
import { RaphScope } from '../ownership/RaphScope';
|
|
5
|
+
export type RaphMetaSourceOptions = RaphMetaWatchOptions;
|
|
6
|
+
/** Immutable Runtime-owned metadata event source for explicit phase watches. */
|
|
7
|
+
export declare class RaphMetaSource {
|
|
8
|
+
readonly owner: RaphScope;
|
|
9
|
+
private _start;
|
|
10
|
+
private _release;
|
|
11
|
+
readonly masks: DataPathDef | readonly DataPathDef[];
|
|
12
|
+
readonly options: Readonly<RaphMetaSourceOptions>;
|
|
13
|
+
private _stop;
|
|
14
|
+
private _activationLeases;
|
|
15
|
+
private _disposed;
|
|
16
|
+
private _releaseOwner;
|
|
17
|
+
/** @internal */
|
|
18
|
+
private constructor();
|
|
19
|
+
/** @internal */
|
|
20
|
+
static _create(owner: RaphScope, masks: DataPathDef | readonly DataPathDef[], options: RaphMetaSourceOptions, start: () => Disposer, release: () => void): RaphMetaSource;
|
|
21
|
+
get runtime(): import('../RaphRuntime').RaphRuntime;
|
|
22
|
+
get disposed(): boolean;
|
|
23
|
+
dispose(): void;
|
|
24
|
+
/** @internal */
|
|
25
|
+
_bindOwner(release: Disposer): void;
|
|
26
|
+
/** @internal */
|
|
27
|
+
_disposeOwned(): void;
|
|
28
|
+
/** @internal */
|
|
29
|
+
_activate(): Disposer;
|
|
30
|
+
/** @internal */
|
|
31
|
+
_assertAlive(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { Disposer, OwnedSourceHooks } from '../../reactivity/types';
|
|
2
|
+
import { RaphNode } from '../ownership/RaphNode';
|
|
3
|
+
import { RaphScope } from '../ownership/RaphScope';
|
|
4
|
+
import { RaphAggregateSource, RaphStructureCause, RaphWatchInclude, RaphWatchSource, RaphWorkCause, RaphWorkCauseKind } from '../phases/phase.types';
|
|
5
|
+
import { RaphRuntime } from '../RaphRuntime';
|
|
6
|
+
type WorkSink = (cause: RaphWorkCause, key: object, schedule: boolean) => void;
|
|
7
|
+
type WorkEdgeSource = RaphProducerRecord | RaphNode | RaphRuntime;
|
|
8
|
+
interface WorkEdge {
|
|
9
|
+
readonly sink: WorkSink;
|
|
10
|
+
readonly kind: 'producer' | 'runtime' | 'self' | 'subtree';
|
|
11
|
+
source?: WorkEdgeSource;
|
|
12
|
+
activationRelease?: Disposer;
|
|
13
|
+
previous?: WorkEdge;
|
|
14
|
+
next?: WorkEdge;
|
|
15
|
+
}
|
|
16
|
+
interface WorkEdgeList {
|
|
17
|
+
first?: WorkEdge;
|
|
18
|
+
last?: WorkEdge;
|
|
19
|
+
}
|
|
20
|
+
type CleanupSource = RaphProducerRecord | RaphNode | RaphAggregate;
|
|
21
|
+
interface CleanupEdge {
|
|
22
|
+
cleanup?: () => void;
|
|
23
|
+
source?: CleanupSource;
|
|
24
|
+
previous?: CleanupEdge;
|
|
25
|
+
next?: CleanupEdge;
|
|
26
|
+
}
|
|
27
|
+
interface CleanupEdgeList {
|
|
28
|
+
first?: CleanupEdge;
|
|
29
|
+
last?: CleanupEdge;
|
|
30
|
+
}
|
|
31
|
+
interface AggregateSubscription {
|
|
32
|
+
dispose?: (finalCause?: RaphWorkCause) => void;
|
|
33
|
+
aggregate?: RaphAggregate;
|
|
34
|
+
previous?: AggregateSubscription;
|
|
35
|
+
next?: AggregateSubscription;
|
|
36
|
+
}
|
|
37
|
+
interface ProducerOptions {
|
|
38
|
+
readonly includeRuntime?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const PRODUCER_RECORD: unique symbol;
|
|
41
|
+
/** @internal */
|
|
42
|
+
export interface RaphProducerRecord {
|
|
43
|
+
readonly [PRODUCER_RECORD]: true;
|
|
44
|
+
readonly runtime: RaphRuntime;
|
|
45
|
+
readonly owner: RaphScope;
|
|
46
|
+
readonly kind: Extract<RaphWorkCauseKind, 'frame' | 'path' | 'producer'>;
|
|
47
|
+
readonly includeRuntime: boolean;
|
|
48
|
+
subscribers?: WorkEdgeList;
|
|
49
|
+
memberships?: CleanupEdgeList;
|
|
50
|
+
implicitConsumers?: Map<RaphNode, number>;
|
|
51
|
+
alias?: object;
|
|
52
|
+
source?: RaphWatchSource;
|
|
53
|
+
activate?: () => void | Disposer;
|
|
54
|
+
runtimeActivation?: Disposer;
|
|
55
|
+
lastCause?: RaphWorkCause;
|
|
56
|
+
transientNext?: RaphProducerRecord;
|
|
57
|
+
revision: number;
|
|
58
|
+
disposed: boolean;
|
|
59
|
+
}
|
|
60
|
+
/** Immutable explicit group of granular sources owned by one Runtime scope. */
|
|
61
|
+
export declare class RaphAggregate {
|
|
62
|
+
readonly owner: RaphScope;
|
|
63
|
+
private _sources;
|
|
64
|
+
private _disposed;
|
|
65
|
+
private _releaseOwner;
|
|
66
|
+
private _memberReleases;
|
|
67
|
+
private _firstSubscription;
|
|
68
|
+
private _lastSubscription;
|
|
69
|
+
private _firstDependent;
|
|
70
|
+
private _lastDependent;
|
|
71
|
+
private _revision;
|
|
72
|
+
private _finalCause;
|
|
73
|
+
/** @internal */
|
|
74
|
+
private constructor();
|
|
75
|
+
/** @internal */
|
|
76
|
+
static _create(owner: RaphScope, sources: readonly RaphAggregateSource[]): RaphAggregate;
|
|
77
|
+
get runtime(): RaphRuntime;
|
|
78
|
+
get disposed(): boolean;
|
|
79
|
+
get sources(): readonly RaphAggregateSource[];
|
|
80
|
+
dispose(): void;
|
|
81
|
+
/** @internal */
|
|
82
|
+
_assertAlive(): void;
|
|
83
|
+
/** @internal */
|
|
84
|
+
_bindOwner(release: () => void): void;
|
|
85
|
+
/** @internal */
|
|
86
|
+
_bindMembers(releases: Array<() => void>): void;
|
|
87
|
+
/** @internal */
|
|
88
|
+
_removeMember(identity: object): void;
|
|
89
|
+
/** @internal */
|
|
90
|
+
_disposeOwned(): void;
|
|
91
|
+
/** @internal */
|
|
92
|
+
_linkSubscription(dispose: (finalCause?: RaphWorkCause) => void): () => void;
|
|
93
|
+
/** @internal */
|
|
94
|
+
_linkDependent(edge: CleanupEdge): void;
|
|
95
|
+
/** @internal */
|
|
96
|
+
_detachDependent(edge: CleanupEdge): void;
|
|
97
|
+
/** @internal */
|
|
98
|
+
_disposalCause(): RaphWorkCause;
|
|
99
|
+
/** @internal */
|
|
100
|
+
_detachSubscription(subscription: AggregateSubscription): void;
|
|
101
|
+
}
|
|
102
|
+
/** Runtime-only intrusive indexes for granular sources. */
|
|
103
|
+
export declare class RaphWorkGraph {
|
|
104
|
+
private readonly _runtime;
|
|
105
|
+
private _selfSubscribers;
|
|
106
|
+
private _subtreeSubscribers;
|
|
107
|
+
private _runtimeSubscribers;
|
|
108
|
+
private _runtimeSubscriberCount;
|
|
109
|
+
private _runtimeActivationProducers;
|
|
110
|
+
private _nodeMemberships;
|
|
111
|
+
private _nodeRevisions;
|
|
112
|
+
private _nodeTouchKeys;
|
|
113
|
+
private _implicitProducers;
|
|
114
|
+
private _transientProducers;
|
|
115
|
+
private _dispatchDepth;
|
|
116
|
+
private _detachedEdges;
|
|
117
|
+
private _disposed;
|
|
118
|
+
constructor(_runtime: RaphRuntime);
|
|
119
|
+
createProducer(owner: RaphScope, kind?: RaphProducerRecord['kind'], options?: ProducerOptions): RaphProducerRecord;
|
|
120
|
+
attachProducer<T extends object>(record: RaphProducerRecord, source: T): T;
|
|
121
|
+
setProducerActivation(record: RaphProducerRecord, activate: () => void | Disposer, activateForRuntime?: boolean): void;
|
|
122
|
+
producerHooks(record: RaphProducerRecord): OwnedSourceHooks;
|
|
123
|
+
causeForToken(token: unknown): RaphWorkCause | undefined;
|
|
124
|
+
/** Clears mutation-local payloads after engine propagation consumed them. */
|
|
125
|
+
clearTransientCauses(): void;
|
|
126
|
+
notifyProducer(record: RaphProducerRecord, previous?: unknown, value?: unknown, events?: RaphWorkCause['events'], schedule?: boolean, hasReactiveSubscribers?: boolean, includeValues?: boolean): void;
|
|
127
|
+
notifyProducerEvents(record: RaphProducerRecord, events: NonNullable<RaphWorkCause['events']>, schedule?: boolean, hasReactiveSubscribers?: boolean): void;
|
|
128
|
+
notifyNode(node: RaphNode, kind: Extract<RaphWorkCauseKind, 'structure' | 'touch'>, options?: {
|
|
129
|
+
readonly metadata?: unknown;
|
|
130
|
+
readonly structure?: RaphStructureCause;
|
|
131
|
+
readonly oldAncestors?: readonly RaphNode[];
|
|
132
|
+
readonly newAncestors?: readonly RaphNode[];
|
|
133
|
+
}): void;
|
|
134
|
+
createAggregate(owner: RaphScope, sources: readonly RaphAggregateSource[]): RaphAggregate;
|
|
135
|
+
subscribe(input: RaphWatchSource, include: RaphWatchInclude | undefined, sink: WorkSink): () => void;
|
|
136
|
+
assertSubscriptionAllowed(consumer: RaphScope, input: RaphWatchSource): void;
|
|
137
|
+
/** Rejects a move that would make an existing implicit reactive edge illegal. */
|
|
138
|
+
assertReparentAllowed(node: RaphNode, newParent: RaphNode): void;
|
|
139
|
+
releaseNode(node: RaphNode): void;
|
|
140
|
+
dispose(): void;
|
|
141
|
+
private _disposeProducer;
|
|
142
|
+
private _dispatchProducer;
|
|
143
|
+
private _dispatchProducerLazily;
|
|
144
|
+
private _createProducerCause;
|
|
145
|
+
private _retainRuntimeSubscriber;
|
|
146
|
+
private _releaseRuntimeSubscriber;
|
|
147
|
+
private _releaseRuntimeActivations;
|
|
148
|
+
private _linkImplicitDependency;
|
|
149
|
+
private _subscribeOne;
|
|
150
|
+
private _subscribeNode;
|
|
151
|
+
private _createNodeEdgeRelease;
|
|
152
|
+
private _linkSourceCleanup;
|
|
153
|
+
private _detachCleanupEdge;
|
|
154
|
+
private _releaseCleanupList;
|
|
155
|
+
private _validateAggregateSources;
|
|
156
|
+
private _assertSourceVisibleTo;
|
|
157
|
+
private _assertProvisionalOwnerAccess;
|
|
158
|
+
private _dispatch;
|
|
159
|
+
private _appendWorkEdge;
|
|
160
|
+
private _detachWorkEdge;
|
|
161
|
+
private _releaseWorkList;
|
|
162
|
+
private _releaseGranule;
|
|
163
|
+
private _setTransientCause;
|
|
164
|
+
private _producerHasDemand;
|
|
165
|
+
private _nodeTouchKey;
|
|
166
|
+
private _nodeHasDemand;
|
|
167
|
+
private _assertOwner;
|
|
168
|
+
private _assertRuntime;
|
|
169
|
+
private _assertAlive;
|
|
170
|
+
}
|
|
171
|
+
export {};
|