@endge/core 1.0.0-dev → 1.0.0-dev.3
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/core.js +9575 -9567
- package/dist/features/core/modules/context/EndgeContext_Module.d.ts +1 -0
- package/dist/features/core/modules/runtime/RuntimeHostBase.d.ts +5 -1
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +6 -5
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-boundary-update-phase.d.ts +5 -9
- package/dist/features/core/modules/runtime/hosts/ComponentSFCRuntimeHost.d.ts +0 -1
- package/package.json +3 -3
|
@@ -35,6 +35,7 @@ export declare class EndgeContext_Module extends EndgeModule<EndgeBootContext> {
|
|
|
35
35
|
private _eventContext;
|
|
36
36
|
private _publishingContextChanges;
|
|
37
37
|
private _executionContextLocked;
|
|
38
|
+
private _raphProjectionActive;
|
|
38
39
|
private _bootMode;
|
|
39
40
|
private _beforeInspection;
|
|
40
41
|
get bootMode(): EndgeBootMode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RaphNode } from '@raphy-js/raph';
|
|
1
|
+
import { RaphNode, RaphPhaseEffect } from '@raphy-js/raph';
|
|
2
2
|
import { RuntimeStateControllerLike } from '../context/domain/context-persistence.types';
|
|
3
3
|
import { ProgramArtifact } from '../program/domain/types/program.types';
|
|
4
4
|
import { RuntimeEntityModelMap, RuntimeEntityType } from './domain/runtime-entity-map.types';
|
|
@@ -85,6 +85,10 @@ export declare abstract class RuntimeHostBase<TType extends RuntimeEntityType, T
|
|
|
85
85
|
readInput(name: string): unknown;
|
|
86
86
|
readInputs(): Readonly<Record<string, unknown>>;
|
|
87
87
|
bindUpdate(binding: RuntimeHostUpdateBinding): () => void;
|
|
88
|
+
/**
|
|
89
|
+
* Создаёт одну persistent binding для набора явных PathHandle sources.
|
|
90
|
+
*/
|
|
91
|
+
protected watchRuntimePaths(paths: string | readonly string[], callback: RaphPhaseEffect, phase?: string): () => void;
|
|
88
92
|
private _unbindUpdate;
|
|
89
93
|
setStatus(status: RuntimeHostStatus): void;
|
|
90
94
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PathEvent, PhaseName, RaphFrameContext, RaphNode } from '@raphy-js/raph';
|
|
2
2
|
import { RuntimeStateControllerLike } from '../../context/domain/context-persistence.types';
|
|
3
3
|
import { ProgramArtifact, ProgramEntityType } from '../../program/domain/types/program.types';
|
|
4
4
|
import { RuntimeEntityModelMap, RuntimeEntityType } from './runtime-entity-map.types';
|
|
@@ -133,6 +133,7 @@ export interface RuntimeHostArtifactRef {
|
|
|
133
133
|
}
|
|
134
134
|
export declare const RUNTIME_BOUNDARY_UPDATE_PHASE_NAME: PhaseName;
|
|
135
135
|
export declare const RUNTIME_NODE_UPDATE_PHASE_NAME: PhaseName;
|
|
136
|
+
export type RuntimePhaseEvent = PathEvent;
|
|
136
137
|
export type RuntimeHostInputBinding = {
|
|
137
138
|
kind: 'literal';
|
|
138
139
|
value: unknown;
|
|
@@ -179,11 +180,11 @@ export type RuntimeHostInputSource = RuntimeHostLocalInputSource | RuntimeHostRa
|
|
|
179
180
|
export interface RuntimeDirtyBoundary {
|
|
180
181
|
boundary: RaphNode;
|
|
181
182
|
dirtyNodes: RaphNode[];
|
|
182
|
-
events:
|
|
183
|
+
events: RuntimePhaseEvent[];
|
|
183
184
|
}
|
|
184
185
|
export interface RuntimeHostUpdateContext {
|
|
185
186
|
node: RaphNode;
|
|
186
|
-
events:
|
|
187
|
+
events: RuntimePhaseEvent[];
|
|
187
188
|
boundaries: RuntimeDirtyBoundary[];
|
|
188
189
|
frame: RaphFrameContext;
|
|
189
190
|
updates?: RuntimeHostResolvedUpdate[];
|
|
@@ -203,7 +204,7 @@ export interface RuntimeCollectionProjectionUpdatePatch {
|
|
|
203
204
|
itemSnapshot: unknown;
|
|
204
205
|
changedPaths: string[][];
|
|
205
206
|
affectedProjections: RuntimeCollectionProjectionPatch[];
|
|
206
|
-
events:
|
|
207
|
+
events: RuntimePhaseEvent[];
|
|
207
208
|
node: RaphNode;
|
|
208
209
|
}
|
|
209
210
|
export interface RuntimeCollectionItemPatch {
|
|
@@ -219,7 +220,7 @@ export interface RuntimeCollectionProjectionBatchPatch {
|
|
|
219
220
|
sourcePath: string;
|
|
220
221
|
items: RuntimeCollectionItemPatch[];
|
|
221
222
|
affectedProjections: RuntimeCollectionProjectionPatch[];
|
|
222
|
-
events:
|
|
223
|
+
events: RuntimePhaseEvent[];
|
|
223
224
|
node: RaphNode;
|
|
224
225
|
}
|
|
225
226
|
export type RuntimeBoundaryPatch = RuntimeCollectionProjectionUpdatePatch | RuntimeCollectionProjectionBatchPatch;
|
package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-boundary-update-phase.d.ts
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RuntimeDirtyBoundary, RuntimeHost } from '../../domain/runtime-host.types';
|
|
1
|
+
import { PhaseName, RaphNode, RaphPhase, RaphPhaseTask } from '@raphy-js/raph';
|
|
2
|
+
import { RuntimeDirtyBoundary, RuntimeHost, RuntimePhaseEvent } from '../../domain/runtime-host.types';
|
|
3
3
|
export interface RuntimeBoundaryAggregatedUpdate {
|
|
4
4
|
node: RaphNode;
|
|
5
|
-
events:
|
|
5
|
+
events: RuntimePhaseEvent[];
|
|
6
6
|
boundaries: RuntimeDirtyBoundary[];
|
|
7
7
|
}
|
|
8
8
|
export interface RuntimeBoundaryUpdatePhaseOptions {
|
|
9
9
|
name?: PhaseName;
|
|
10
|
-
getGraph?: () => DepGraph<RaphNode>;
|
|
11
10
|
resolveHost?: (runtimeId: string) => RuntimeHost | null;
|
|
12
11
|
}
|
|
13
12
|
/**
|
|
14
|
-
*
|
|
13
|
+
* Агрегирует persistent phase bindings к верхним runtime boundaries.
|
|
15
14
|
*/
|
|
16
15
|
export declare class RuntimeBoundaryUpdatePhase {
|
|
17
16
|
static readonly PHASE_NAME: string;
|
|
18
|
-
/**
|
|
19
|
-
* Создает Raph-фазу, которая вызывает update у runtime-host верхних dirty boundaries.
|
|
20
|
-
*/
|
|
21
17
|
static make(options?: RuntimeBoundaryUpdatePhaseOptions): RaphPhase;
|
|
22
18
|
}
|
|
23
|
-
export declare function aggregateRuntimeBoundaryUpdates(
|
|
19
|
+
export declare function aggregateRuntimeBoundaryUpdates(tasks: readonly RaphPhaseTask[]): RuntimeBoundaryAggregatedUpdate[];
|
|
@@ -208,7 +208,6 @@ export declare class ComponentSFCRuntimeHost extends RuntimeHostBase<'component-
|
|
|
208
208
|
private _bindRaphBoundaryInputSource;
|
|
209
209
|
private _isCoveredByPatchableBoundary;
|
|
210
210
|
private _findRuntimeNodeByMeta;
|
|
211
|
-
private _makeObservedColumnPaths;
|
|
212
211
|
private _makeBoundaryPatch;
|
|
213
212
|
private _makeTableRowPatch;
|
|
214
213
|
private _makeTableColumnPatch;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endge/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-dev",
|
|
4
|
+
"version": "1.0.0-dev.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"packageManager": "pnpm@8.8.0",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"lint-fix": "eslint . --fix --cache"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@raphy-js/raph": "1.0.0-dev.
|
|
37
|
+
"@raphy-js/raph": "1.0.0-dev.18",
|
|
38
38
|
"class-transformer": "^0.5.1",
|
|
39
39
|
"class-validator": "^0.14.1",
|
|
40
40
|
"reflect-metadata": "^0.2.2"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@antfu/eslint-config": "9.3.0",
|
|
65
|
-
"@raphy-js/raph": "1.0.0-dev.
|
|
65
|
+
"@raphy-js/raph": "1.0.0-dev.18",
|
|
66
66
|
"@types/babel__generator": "^7.27.0",
|
|
67
67
|
"@types/lodash": "^4.14.202",
|
|
68
68
|
"@vue/language-core": "^3.3.11",
|