@endge/core 3.2.1 → 5.0.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.
Files changed (150) hide show
  1. package/ReadMe.md +1 -1
  2. package/dist/core.cjs +488 -513
  3. package/dist/core.js +85221 -84928
  4. package/dist/domain/entities/endge/EndgeFederation.d.ts +8 -8
  5. package/dist/domain/entities/endge/EndgeFederationStorage.d.ts +5 -0
  6. package/dist/domain/entities/endge/EndgeModule.d.ts +1 -1
  7. package/dist/domain/entities/endge/EndgeSlotRegistry.d.ts +4 -4
  8. package/dist/domain/entities/endge/Subscribable.d.ts +20 -0
  9. package/dist/domain/entities/reflect/RAction.d.ts +1 -1
  10. package/dist/domain/entities/reflect/RAuthProfile.d.ts +1 -1
  11. package/dist/domain/entities/reflect/RComponent.d.ts +1 -1
  12. package/dist/domain/entities/reflect/RComponentBase.d.ts +2 -2
  13. package/dist/domain/entities/reflect/RComponentCore.d.ts +1 -1
  14. package/dist/domain/entities/reflect/RComponentSFC.d.ts +1 -1
  15. package/dist/domain/entities/reflect/RComponentTableColumn.d.ts +2 -2
  16. package/dist/domain/entities/reflect/RConverter.d.ts +1 -1
  17. package/dist/domain/entities/reflect/RFilter.d.ts +1 -1
  18. package/dist/domain/entities/reflect/RMock.d.ts +1 -1
  19. package/dist/domain/entities/reflect/RNavigation.d.ts +1 -1
  20. package/dist/domain/entities/reflect/RParameter.d.ts +1 -1
  21. package/dist/domain/entities/reflect/RQuery.d.ts +1 -1
  22. package/dist/domain/entities/runtime/ComponentSFCEventBoundary.d.ts +14 -14
  23. package/dist/domain/entities/runtime/RuntimeAppScope.d.ts +2 -2
  24. package/dist/domain/entities/runtime/RuntimeHostBase.d.ts +5 -5
  25. package/dist/domain/entities/runtime/RuntimeHostRegistry.d.ts +2 -2
  26. package/dist/domain/entities/runtime/RuntimeScopeRegistry.d.ts +1 -1
  27. package/dist/domain/entities/runtime/hosts/ComponentSFCRuntimeHost.d.ts +5 -5
  28. package/dist/domain/entities/runtime/hosts/CompositionRuntimeHost.d.ts +3 -3
  29. package/dist/domain/entities/runtime/hosts/FilterRuntimeHost.d.ts +1 -1
  30. package/dist/domain/entities/runtime/hosts/FilterViewRuntimeHost.d.ts +2 -2
  31. package/dist/domain/entities/runtime/hosts/StoreRuntimeHost.d.ts +1 -1
  32. package/dist/domain/types/auth/auth-profile.types.d.ts +5 -5
  33. package/dist/domain/types/component/sfc/ir.types.d.ts +2 -2
  34. package/dist/domain/types/component/sfc/metadata-visual.types.d.ts +1 -1
  35. package/dist/domain/types/component/sfc/ports-source.types.d.ts +2 -2
  36. package/dist/domain/types/component/sfc/ports.types.d.ts +1 -1
  37. package/dist/domain/types/component/sfc/props-visual.types.d.ts +1 -1
  38. package/dist/domain/types/component/sfc/tag-input-contract.types.d.ts +1 -1
  39. package/dist/domain/types/component/sfc/visual-projection.types.d.ts +3 -3
  40. package/dist/domain/types/computation/computation-program.types.d.ts +1 -1
  41. package/dist/domain/types/computation/computation-runtime.types.d.ts +9 -9
  42. package/dist/domain/types/computation/computation-source.types.d.ts +1 -1
  43. package/dist/domain/types/configuration/configuration.type.d.ts +1 -1
  44. package/dist/domain/types/diagnostics/diagnostics-adapter.type.d.ts +6 -6
  45. package/dist/domain/types/diagnostics/diagnostics.types.d.ts +11 -11
  46. package/dist/domain/types/document/document.types.d.ts +15 -15
  47. package/dist/domain/types/document/domain-export.type.d.ts +21 -21
  48. package/dist/domain/types/document/domain-provider.type.d.ts +8 -8
  49. package/dist/domain/types/document/workspace.types.d.ts +1 -1
  50. package/dist/domain/types/kernel/bootstrap.types.d.ts +2 -2
  51. package/dist/domain/types/kernel/endge-modules.types.d.ts +1 -1
  52. package/dist/domain/types/kernel/events.types.d.ts +4 -4
  53. package/dist/domain/types/kernel/federation.types.d.ts +1 -1
  54. package/dist/domain/types/kernel/forge.types.d.ts +5 -5
  55. package/dist/domain/types/program/action-program.types.d.ts +1 -1
  56. package/dist/domain/types/program/program.types.d.ts +5 -5
  57. package/dist/domain/types/runtime/context-persistence.types.d.ts +9 -9
  58. package/dist/domain/types/runtime/runtime-entity-map.types.d.ts +10 -10
  59. package/dist/domain/types/runtime/runtime-host.types.d.ts +11 -11
  60. package/dist/domain/types/runtime/runtime-project-session.types.d.ts +2 -2
  61. package/dist/domain/types/runtime/runtime-registry.types.d.ts +12 -12
  62. package/dist/domain/types/runtime/runtime.types.d.ts +4 -4
  63. package/dist/domain/types/runtime/table-binding.types.d.ts +2 -2
  64. package/dist/domain/types/source/composition-source.types.d.ts +12 -10
  65. package/dist/domain/types/source/data-view-source.types.d.ts +1 -1
  66. package/dist/domain/types/source/filter-source.types.d.ts +1 -1
  67. package/dist/domain/types/source/query-source.types.d.ts +2 -2
  68. package/dist/domain/types/source/store-source.types.d.ts +1 -1
  69. package/dist/domain/types/source/vocab-source.types.d.ts +1 -1
  70. package/dist/main.d.ts +11 -9
  71. package/dist/model/{services/auth/OidcBrowserSession_Service.d.ts → adapters/auth/OidcBrowserSession_Adapter.d.ts} +3 -1
  72. package/dist/{domain/entities/endge → model/adapters/http}/EndgeApi.d.ts +9 -3
  73. package/dist/model/{services/query/QueryExecutor.d.ts → adapters/query/QueryExecutor_Adapter.d.ts} +14 -3
  74. package/dist/model/config/ui-composition.config.d.ts +12 -12
  75. package/dist/model/helpers/raph-phases/endge-runtime-boundary.d.ts +1 -1
  76. package/dist/model/helpers/raph-phases/runtime-boundary-update-phase.d.ts +1 -1
  77. package/dist/model/kernel/endge.d.ts +22 -22
  78. package/dist/model/modules/context/endge-configuration-schema.d.ts +1 -1
  79. package/dist/model/modules/context/endge-context.d.ts +7 -13
  80. package/dist/model/modules/context/endge-vars.d.ts +6 -6
  81. package/dist/model/modules/context/endge-workspace.d.ts +1 -1
  82. package/dist/model/modules/context/persistence/RuntimeStateController.d.ts +2 -2
  83. package/dist/model/modules/context/persistence/adapters/LocalStorageContextAdapter.d.ts +2 -0
  84. package/dist/model/modules/diagnostics/endge-diagnostics.d.ts +36 -14
  85. package/dist/model/modules/diagnostics/endge-problems.d.ts +1 -1
  86. package/dist/model/modules/diagnostics/endge-telemetry.d.ts +3 -3
  87. package/dist/model/modules/domain/endge-domain-repository.d.ts +8 -8
  88. package/dist/model/modules/domain/endge-domain.d.ts +12 -12
  89. package/dist/model/modules/domain/endge-types.d.ts +3 -3
  90. package/dist/model/modules/domain/endge-vocabs.d.ts +29 -29
  91. package/dist/model/modules/events/endge-events.d.ts +1 -1
  92. package/dist/model/modules/program/endge-compiler.d.ts +17 -17
  93. package/dist/model/modules/program/endge-program.d.ts +4 -4
  94. package/dist/model/modules/program/endge-source.d.ts +1 -1
  95. package/dist/model/modules/runtime/core/endge-actions.d.ts +4 -4
  96. package/dist/model/modules/runtime/core/endge-runtime.d.ts +18 -18
  97. package/dist/model/modules/runtime/execution/action/action-program-executor.d.ts +8 -8
  98. package/dist/model/modules/runtime/execution/computation/ComputationGraphExecutor.d.ts +8 -8
  99. package/dist/model/modules/runtime/execution/computation/ComputationResource.d.ts +5 -5
  100. package/dist/model/modules/runtime/execution/computation/ComputationResourceRegistry.d.ts +3 -3
  101. package/dist/model/modules/runtime/execution/computation/EndgeComputation.d.ts +19 -19
  102. package/dist/model/modules/runtime/execution/endge-composition.d.ts +2 -2
  103. package/dist/model/modules/runtime/execution/endge-computation.d.ts +1 -1
  104. package/dist/model/modules/runtime/execution/endge-converters.d.ts +7 -7
  105. package/dist/model/modules/runtime/execution/endge-data-view.d.ts +2 -2
  106. package/dist/model/modules/runtime/execution/endge-query.d.ts +4 -7
  107. package/dist/model/modules/runtime/operation/endge-operations.d.ts +6 -6
  108. package/dist/model/modules/runtime/operation/operation-history.d.ts +10 -10
  109. package/dist/model/modules/security/endge-auth.d.ts +4 -4
  110. package/dist/model/modules/ui/endge-styles.d.ts +1 -1
  111. package/dist/model/modules/ui/endge-ui-registry.d.ts +2 -2
  112. package/dist/model/modules/ui/endge-ui.d.ts +11 -11
  113. package/dist/model/modules/ui/registry/UIAdapterRegistry.d.ts +1 -1
  114. package/dist/model/services/compiler/component-sfc/component-sfc-compile.d.ts +4 -4
  115. package/dist/model/services/compiler/component-sfc/component-sfc-dependencies.d.ts +1 -1
  116. package/dist/model/services/compiler/component-sfc/component-sfc-expression.d.ts +1 -1
  117. package/dist/model/services/compiler/component-sfc/component-sfc-forward.d.ts +1 -1
  118. package/dist/model/services/compiler/component-sfc/component-sfc-parse.d.ts +1 -1
  119. package/dist/model/services/compiler/component-sfc/component-sfc-ports.d.ts +2 -2
  120. package/dist/model/services/compiler/component-sfc/component-sfc-script.d.ts +1 -1
  121. package/dist/model/services/compiler/component-sfc/component-sfc-table-menu.d.ts +1 -1
  122. package/dist/model/services/compiler/component-sfc/component-sfc-table-visibility.d.ts +1 -1
  123. package/dist/model/services/compiler/component-sfc/component-sfc-template.d.ts +2 -2
  124. package/dist/model/services/compiler/type/type-program-validation.d.ts +1 -1
  125. package/dist/model/services/runtime/strategies/ActionRuntimeStrategy.d.ts +1 -1
  126. package/dist/model/services/runtime/strategies/ComponentSFCRuntimeStrategy.d.ts +1 -1
  127. package/dist/model/services/runtime/strategies/CompositionRuntimeStrategy.d.ts +1 -1
  128. package/dist/model/services/runtime/strategies/FilterRuntimeStrategy.d.ts +1 -1
  129. package/dist/model/services/runtime/strategies/PageRuntimeStrategy.d.ts +1 -1
  130. package/dist/model/services/runtime/strategies/ProjectRuntimeStrategy.d.ts +1 -1
  131. package/dist/model/services/runtime/strategies/QueryRuntimeStrategy.d.ts +1 -1
  132. package/dist/model/services/runtime/strategies/StoreRuntimeStrategy.d.ts +1 -1
  133. package/dist/model/services/runtime/strategies/StreamRuntimeStrategy.d.ts +1 -1
  134. package/dist/model/services/source-engine/compilers/source-field-compile.d.ts +1 -1
  135. package/dist/model/services/source-engine/compilers/type-source-compile.d.ts +1 -1
  136. package/dist/model/services/source-engine/component-sfc/component-sfc-props-source-patch.d.ts +1 -1
  137. package/dist/model/services/source-engine/strategies/VocabSourcePatchStrategy.d.ts +1 -1
  138. package/dist/model/services/source-engine/vocab-source-patch.d.ts +1 -1
  139. package/dist/model/services/tooltip/endge-tooltip-markdown.d.ts +1 -1
  140. package/dist/test/domain/entities/endge/subscribable.test.d.ts +1 -0
  141. package/dist/test/model/modules/diagnostics/endge-diagnostics-submodules.test.d.ts +1 -0
  142. package/dist/tools/component-sfc-edit-trigger.d.ts +1 -1
  143. package/package.json +20 -26
  144. /package/dist/domain/types/{ui → presentation}/context-menu.types.d.ts +0 -0
  145. /package/dist/domain/types/{ui → presentation}/filter-view.type.d.ts +0 -0
  146. /package/dist/domain/types/{ui → presentation}/jsx.types.d.ts +0 -0
  147. /package/dist/domain/types/{ui → presentation}/tooltip-markdown.types.d.ts +0 -0
  148. /package/dist/domain/types/{ui → presentation}/ui-composition.types.d.ts +0 -0
  149. /package/dist/domain/types/{ui → presentation}/ui-render-adapter.type.d.ts +0 -0
  150. /package/dist/domain/types/{ui → presentation}/ui.types.d.ts +0 -0
@@ -1,17 +1,14 @@
1
1
  import { RQuery } from '../../../../domain/entities/reflect/RQuery';
2
- import { AxiosInstance } from 'axios';
3
2
  import { QueryProgramPayload } from '../../../../domain/types/program/program.types';
4
3
  import { RuntimeParentRef } from '../../../../domain/types/runtime/runtime-execute.type';
4
+ import { QueryExecutor_Adapter } from '../../../adapters/query/QueryExecutor_Adapter';
5
5
  /**
6
6
  * Модуль выполнения доменных query: custom executor, mock data и REST.
7
7
  */
8
8
  export declare class EndgeQuery {
9
- private readonly http;
10
- private readonly executor;
11
- /**
12
- * Создает query runner с переданным или дефолтным axios instance.
13
- */
14
- constructor(http?: AxiosInstance);
9
+ private readonly _executor;
10
+ /** Создаёт query module с явным transport adapter. */
11
+ constructor(executor?: QueryExecutor_Adapter);
15
12
  /**
16
13
  * Выполняет query через compiled artifact и сохраняет результат в Raph.
17
14
  */
@@ -1,11 +1,11 @@
1
- import { RuntimeHost } from '../../../../domain/types/runtime/runtime-host.types';
2
1
  import { RuntimeScope } from '../../../../domain/entities/runtime/RuntimeScope';
2
+ import { RuntimeHost } from '../../../../domain/types/runtime/runtime-host.types';
3
3
  import { OperationHistory } from './operation-history';
4
4
  /** Resolves the nearest active Operation History along runtime-scope ancestry. */
5
5
  export declare class EndgeOperations {
6
- private readonly histories;
7
- private latestScopeId;
8
- private keydownDisposer;
6
+ private readonly _histories;
7
+ private _latestScopeId;
8
+ private _keydownDisposer;
9
9
  register(scope: RuntimeScope, history: OperationHistory): () => void;
10
10
  resolveForHost(host: RuntimeHost<any, any> | null | undefined): OperationHistory | null;
11
11
  getActiveHistory(): OperationHistory | null;
@@ -13,6 +13,6 @@ export declare class EndgeOperations {
13
13
  redo(): Promise<unknown>;
14
14
  canUndo(): boolean;
15
15
  canRedo(): boolean;
16
- private ensureShortcuts;
17
- private disposeShortcuts;
16
+ private _ensureShortcuts;
17
+ private _disposeShortcuts;
18
18
  }
@@ -1,5 +1,5 @@
1
- import { RuntimeOwnedResource } from '../../../../domain/types/runtime/runtime-resource.types';
2
1
  import { ComponentSFCInteractionTrigger } from '../../../../domain/types/component/sfc/ir.types';
2
+ import { RuntimeOwnedResource } from '../../../../domain/types/runtime/runtime-resource.types';
3
3
  export interface OperationHistoryShortcutBinding {
4
4
  command: 'undo' | 'redo';
5
5
  triggers: ComponentSFCInteractionTrigger[];
@@ -20,16 +20,16 @@ export interface OperationHistoryOptions {
20
20
  }
21
21
  /** Runtime-memory undo/redo cursor. Transitions are serialized and failures keep the cursor stable. */
22
22
  export declare class OperationHistory implements RuntimeOwnedResource {
23
- private readonly options;
23
+ private readonly _options;
24
24
  readonly kind = "operation-history";
25
25
  readonly id: string;
26
- private entries;
27
- private cursor;
28
- private paused;
29
- private disposed;
30
- private queue;
26
+ private _entries;
27
+ private _cursor;
28
+ private _paused;
29
+ private _disposed;
30
+ private _queue;
31
31
  private _limit;
32
- constructor(options: OperationHistoryOptions);
32
+ constructor(_options: OperationHistoryOptions);
33
33
  get limit(): number;
34
34
  get shortcuts(): OperationHistoryShortcutBinding[];
35
35
  get active(): boolean;
@@ -48,7 +48,7 @@ export declare class OperationHistory implements RuntimeOwnedResource {
48
48
  size: number;
49
49
  paused: boolean;
50
50
  };
51
- private enqueue;
52
- private trim;
51
+ private _enqueue;
52
+ private _trim;
53
53
  }
54
54
  export declare function defaultOperationHistoryShortcuts(): OperationHistoryShortcutBinding[];
@@ -1,12 +1,12 @@
1
- import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
2
1
  import { AuthProfileSchema, OidcBrowserSessionOptions } from '../../../domain/types/auth/auth-profile.types';
2
+ import { EndgeBootContext } from '../../../domain/types/kernel/bootstrap.types';
3
+ import { AuthInteractionRequiredError } from './auth/AuthInteractionRequiredError';
3
4
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
5
+ import { OidcBrowserSession_Adapter } from '../../adapters/auth/OidcBrowserSession_Adapter';
4
6
  import { AuthAdapterRegistry } from './auth/AuthAdapterRegistry';
5
7
  import { AuthProfileRegistry } from './auth/AuthProfileRegistry';
6
8
  import { AuthRequestResolver } from './auth/AuthRequestResolver';
7
9
  import { AuthSessionManager } from './auth/AuthSessionManager';
8
- import { OidcBrowserSession_Service } from '../../services/auth/OidcBrowserSession_Service';
9
- import { AuthInteractionRequiredError } from './auth/AuthInteractionRequiredError';
10
10
  export type AuthInteractionRequiredListener = (error: AuthInteractionRequiredError) => void;
11
11
  /** Единый lifecycle owner runtime auth profile sessions и request authentication. */
12
12
  export declare class EndgeAuth extends EndgeModule {
@@ -32,7 +32,7 @@ export declare class EndgeAuth extends EndgeModule {
32
32
  /** Сбрасывает runtime state, не удаляя persisted browser session. */
33
33
  reset(): void;
34
34
  /** Создаёт OIDC browser source из resolved persisted profile. */
35
- createOidcSessionSource(profileInput: AuthProfileSchema | string, options: Pick<OidcBrowserSessionOptions, 'redirectUri' | 'popupRedirectUri' | 'postLogoutRedirectUri' | 'flow'>): OidcBrowserSession_Service;
35
+ createOidcSessionSource(profileInput: AuthProfileSchema | string, options: Pick<OidcBrowserSessionOptions, 'redirectUri' | 'popupRedirectUri' | 'postLogoutRedirectUri' | 'flow'>): OidcBrowserSession_Adapter;
36
36
  private _resolvePublicValue;
37
37
  private _diagnosticsAttributes;
38
38
  private _publishInteractionRequired;
@@ -1,4 +1,4 @@
1
- import { EndgeStyleMatchNode, AcquireEndgeStyleOptions, EndgeStyleLease, EndgeStylePlacement, EndgeStyleResolvedDeclaration, EndgeStyleSheetArtifact, EndgeStyleTargetProfile } from '../../../domain/types/style/style.types';
1
+ import { AcquireEndgeStyleOptions, EndgeStyleLease, EndgeStyleMatchNode, EndgeStylePlacement, EndgeStyleResolvedDeclaration, EndgeStyleSheetArtifact, EndgeStyleTargetProfile } from '../../../domain/types/style/style.types';
2
2
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
3
3
  export interface EndgeStyleResolver {
4
4
  readonly target: EndgeStyleTargetProfile;
@@ -1,4 +1,4 @@
1
- import { UIAstNodeBase, UIAstNodeLayout, UIComponentConfigDefinition, UIComponentDefinition, UIComponentPresetDocument, UIComponentDefinitionGroup, UIComponentRendererRegistration, UIJsxComponentDocument, UIPrimitiveKind, UIRegistryNodeDraft, UIRegistrySnapshot, UIResolveRendererOptions, UIResolvedComponentRenderer, UIPresentationRoleContract, UIPresentationSurface } from '../../../domain/types/ui/ui-composition.types';
1
+ import { UIAstNodeBase, UIAstNodeLayout, UIComponentConfigDefinition, UIComponentDefinition, UIComponentDefinitionGroup, UIComponentPresetDocument, UIComponentRendererRegistration, UIJsxComponentDocument, UIPresentationRoleContract, UIPresentationSurface, UIPrimitiveKind, UIRegistryNodeDraft, UIRegistrySnapshot, UIResolvedComponentRenderer, UIResolveRendererOptions } from '../../../domain/types/presentation/ui-composition.types';
2
2
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
3
3
  import { UIAdapterRegistry } from './registry/UIAdapterRegistry';
4
4
  /** Модуль UI definitions, presets, renderers и adapter registry. */
@@ -123,6 +123,6 @@ export declare class EndgeUIRegistry extends EndgeModule {
123
123
  /**
124
124
  * Возвращает Fallback Surfaces.
125
125
  */
126
- private getFallbackSurfaces;
126
+ private _getFallbackSurfaces;
127
127
  }
128
128
  export declare function getUIPresentationRoleContract(definition: UIComponentDefinition, role: string): UIPresentationRoleContract | null;
@@ -1,4 +1,4 @@
1
- import { EndgeUISnapshot, TimeZoneMode } from '../../../domain/types/ui/ui.types';
1
+ import { EndgeUISnapshot, TimeZoneMode } from '../../../domain/types/presentation/ui.types';
2
2
  import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
3
3
  /**
4
4
  * UI-состояние ядра: zoom, theme и режим отображения времени.
@@ -6,11 +6,11 @@ import { EndgeModule } from '../../../domain/entities/endge/EndgeModule';
6
6
  export declare class EndgeUI extends EndgeModule {
7
7
  private _offContext;
8
8
  private _offWorkspace;
9
- private readonly MIN_ZOOM;
10
- private readonly MAX_ZOOM;
11
- private readonly STEP_ZOOM;
12
- private readonly DEFAULT_ZOOM;
13
- private readonly LS_KEY_ZOOM;
9
+ private readonly _MIN_ZOOM;
10
+ private readonly _MAX_ZOOM;
11
+ private readonly _STEP_ZOOM;
12
+ private readonly _DEFAULT_ZOOM;
13
+ private readonly _LS_KEY_ZOOM;
14
14
  private _zoom;
15
15
  private _theme;
16
16
  /**
@@ -52,15 +52,15 @@ export declare class EndgeUI extends EndgeModule {
52
52
  /**
53
53
  * Внутренний helper модуля: clamp Zoom.
54
54
  */
55
- private clampZoom;
55
+ private _clampZoom;
56
56
  /**
57
57
  * Считывает Zoom From LS.
58
58
  */
59
- private readZoomFromLS;
59
+ private _readZoomFromLS;
60
60
  /**
61
61
  * Записывает Zoom To LS.
62
62
  */
63
- private writeZoomToLS;
63
+ private _writeZoomToLS;
64
64
  /**
65
65
  * Возвращает текущую тему.
66
66
  */
@@ -75,11 +75,11 @@ export declare class EndgeUI extends EndgeModule {
75
75
  * Устанавливает тему, сохраняет ее и применяет CSS-классы к document.
76
76
  */
77
77
  setTheme(next: string): void;
78
- private syncThemeFromContext;
78
+ private _syncThemeFromContext;
79
79
  /**
80
80
  * Применяет Theme To Document.
81
81
  */
82
- private applyThemeToDocument;
82
+ private _applyThemeToDocument;
83
83
  /**
84
84
  * Показывает, используется ли локальное время вместо UTC.
85
85
  */
@@ -1,4 +1,4 @@
1
- import { UIActiveRenderAdapterRequirement, UIRenderAdapter, UIRenderAdapterDescriptor, UIRenderAdapterRequirement } from '../../../../domain/types/ui/ui-render-adapter.type';
1
+ import { UIActiveRenderAdapterRequirement, UIRenderAdapter, UIRenderAdapterDescriptor, UIRenderAdapterRequirement } from '../../../../domain/types/presentation/ui-render-adapter.type';
2
2
  /** Хранит runtime implementations UI adapter-ов и выбранный adapter. */
3
3
  export declare class UIAdapterRegistry {
4
4
  private readonly _onChange;
@@ -1,13 +1,13 @@
1
1
  import { RComponentContract, RComponentDependencies, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { ComponentSFCPreviewOptions, ComponentSFCPreviewProps } from '../../../../domain/types/program/program.types';
3
- import { RComponentSFCSource_Parts } from '../../../../domain/types/component/sfc/source.types';
4
2
  import { RComponentSFC_AST } from '../../../../domain/types/component/sfc/ast.types';
5
- import { RComponentSFC_IR } from '../../../../domain/types/component/sfc/ir.types';
6
3
  import { RComponentSFC_RuntimeDependencies } from '../../../../domain/types/component/sfc/dependencies.types';
4
+ import { RComponentSFC_IR } from '../../../../domain/types/component/sfc/ir.types';
7
5
  import { ComponentSFCPortManifest, ComponentSFCPortProviderDescriptor } from '../../../../domain/types/component/sfc/ports.types';
6
+ import { RComponentSFCSource_Parts } from '../../../../domain/types/component/sfc/source.types';
7
+ import { EndgeSFCEditingConfiguration } from '../../../../domain/types/configuration/configuration.type';
8
8
  import { ProgramMetadata } from '../../../../domain/types/program/program-metadata.types';
9
+ import { ComponentSFCPreviewOptions, ComponentSFCPreviewProps } from '../../../../domain/types/program/program.types';
9
10
  import { TypeSourceDefinition } from '../../../../domain/types/source/type-source.types';
10
- import { EndgeSFCEditingConfiguration } from '../../../../domain/types/configuration/configuration.type';
11
11
  /** Результат полного SFC compiler pipeline в core. */
12
12
  export interface ComponentSFCCompileResult {
13
13
  /** Разложенный canonical source. */
@@ -1,4 +1,4 @@
1
- import { RComponentSFC_IR } from '../../../../domain/types/component/sfc/ir.types';
2
1
  import { RComponentSFC_RuntimeDependencies } from '../../../../domain/types/component/sfc/dependencies.types';
2
+ import { RComponentSFC_IR } from '../../../../domain/types/component/sfc/ir.types';
3
3
  /** Анализирует SFC IR и собирает runtime-зависимости от входных props. */
4
4
  export declare function analyzeComponentSFCRuntimeDependencies(ir: RComponentSFC_IR | null): RComponentSFC_RuntimeDependencies;
@@ -1,7 +1,7 @@
1
1
  import { RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
+ import { RComponentSFC_IR_Value } from '../../../../domain/types/component/sfc/ir.types';
2
3
  import { EndgeRuntimeContextSnapshot } from '../../../../domain/types/runtime/context-persistence.types';
3
4
  import { EndgeConfigurationSchemaEntry } from '../../../../domain/types/source/configuration-source.types';
4
- import { RComponentSFC_IR_Value } from '../../../../domain/types/component/sfc/ir.types';
5
5
  /** Контекст анализа выражения SFC template/script. */
6
6
  export interface ComponentSFCExpressionContext {
7
7
  /** Имена props, доступные выражению. */
@@ -1,6 +1,6 @@
1
1
  import { RComponentDependencies, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { ComponentSFCPortManifest } from '../../../../domain/types/component/sfc/ports.types';
3
2
  import { RComponentSFC_IR_Template } from '../../../../domain/types/component/sfc/ir.types';
3
+ import { ComponentSFCPortManifest } from '../../../../domain/types/component/sfc/ports.types';
4
4
  export interface ComponentSFCPortForwardOptions {
5
5
  resolveComponentPortManifest?: (identity: string) => ComponentSFCPortManifest | null;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { RComponentSFCSource_Parts } from '../../../../domain/types/component/sfc/source.types';
3
2
  import { RComponentSFC_AST } from '../../../../domain/types/component/sfc/ast.types';
3
+ import { RComponentSFCSource_Parts } from '../../../../domain/types/component/sfc/source.types';
4
4
  /** Результат parser pass для SFC-компонента. */
5
5
  export interface ComponentSFCParseResult {
6
6
  /** Разложенный source для editor/debug UI. */
@@ -1,7 +1,7 @@
1
1
  import { RComponentDependencies, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { TypeSourceDefinition } from '../../../../domain/types/source/type-source.types';
3
- import { ComponentSFCEventAction, ComponentSFCPortManifest, ComponentSFCPortProviderDescriptor, RComponentSFC_IR_PortCall } from '../../../../domain/types/component/sfc/ports.types';
4
2
  import { RComponentSFC_AST_Script } from '../../../../domain/types/component/sfc/ast.types';
3
+ import { ComponentSFCEventAction, ComponentSFCPortManifest, ComponentSFCPortProviderDescriptor, RComponentSFC_IR_PortCall } from '../../../../domain/types/component/sfc/ports.types';
4
+ import { TypeSourceDefinition } from '../../../../domain/types/source/type-source.types';
5
5
  export interface ComponentSFCPortAnalysisOptions {
6
6
  resolveProvider?: (identity: string, expectedKind: 'computation' | 'component' | 'action' | 'query') => ComponentSFCPortProviderDescriptor | null;
7
7
  resolveTypeDefinition?: (identity: string) => TypeSourceDefinition | null;
@@ -1,8 +1,8 @@
1
1
  import { RComponentContract, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
- import { ComponentSFCPreviewOptions, ComponentSFCPreviewProps } from '../../../../domain/types/program/program.types';
3
2
  import { RComponentSFC_AST_Script } from '../../../../domain/types/component/sfc/ast.types';
4
3
  import { RComponentSFC_IR_LocalBinding, RComponentSFC_IR_Prop } from '../../../../domain/types/component/sfc/ir.types';
5
4
  import { ProgramMetadataMap } from '../../../../domain/types/program/program-metadata.types';
5
+ import { ComponentSFCPreviewOptions, ComponentSFCPreviewProps } from '../../../../domain/types/program/program.types';
6
6
  import { TypeSourceDefinition } from '../../../../domain/types/source/type-source.types';
7
7
  export interface ComponentSFCTypeResolutionOptions {
8
8
  resolveTypeDefinition?: (identity: string) => TypeSourceDefinition | null;
@@ -1,4 +1,4 @@
1
- import { ComponentSFCTableColumnMenuDescriptor, ComponentSFCTableCellMenuDescriptor, ComponentSFCTableRowMenuDescriptor, RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc/ir.types';
1
+ import { ComponentSFCTableCellMenuDescriptor, ComponentSFCTableColumnMenuDescriptor, ComponentSFCTableRowMenuDescriptor, RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc/ir.types';
2
2
  import { ComponentSFCActionPort } from '../../../../domain/types/component/sfc/ports.types';
3
3
  export declare const SFC_TABLE_COLUMN_MENU_MODES: readonly ["default", "disabled"];
4
4
  export type { ComponentSFCTableCellMenuDescriptor, ComponentSFCTableCellMenuMode, ComponentSFCTableColumnMenuDescriptor, ComponentSFCTableColumnMenuMode, ComponentSFCTableMenuDescriptor, ComponentSFCTableMenuItemDescriptor, ComponentSFCTableMenuNodeDescriptor, ComponentSFCTableMenuSeparatorDescriptor, ComponentSFCTableRowMenuDescriptor, ComponentSFCTableRowMenuMode, } from '../../../../domain/types/component/sfc/ir.types';
@@ -1,4 +1,4 @@
1
- import { ComponentSFCTableColumnVisibilityDescriptor } from '../../../../domain/types/component/sfc/table-visibility.types';
2
1
  import { RComponentSFC_IR_ElementNode } from '../../../../domain/types/component/sfc/ir.types';
2
+ import { ComponentSFCTableColumnVisibilityDescriptor } from '../../../../domain/types/component/sfc/table-visibility.types';
3
3
  /** Нормализует authored default-hidden без renderer-specific visibility state. */
4
4
  export declare function normalizeComponentSFCTableColumnVisibility(tableNode: RComponentSFC_IR_ElementNode): ComponentSFCTableColumnVisibilityDescriptor;
@@ -1,9 +1,9 @@
1
1
  import { RComponentDependencies, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
2
  import { RComponentSFC_AST_Template } from '../../../../domain/types/component/sfc/ast.types';
3
3
  import { RComponentSFC_IR_Template } from '../../../../domain/types/component/sfc/ir.types';
4
- import { ComponentSFCComponentPort, ComponentSFCPortProviderDescriptor, ComponentSFCRequiredPortKind, ComponentSFCPortManifest } from '../../../../domain/types/component/sfc/ports.types';
5
- import { ProgramNodeMetadata } from '../../../../domain/types/program/program-metadata.types';
4
+ import { ComponentSFCComponentPort, ComponentSFCPortManifest, ComponentSFCPortProviderDescriptor, ComponentSFCRequiredPortKind } from '../../../../domain/types/component/sfc/ports.types';
6
5
  import { EndgeSFCEditingConfiguration } from '../../../../domain/types/configuration/configuration.type';
6
+ import { ProgramNodeMetadata } from '../../../../domain/types/program/program-metadata.types';
7
7
  /** Контекст компиляции template в IR. */
8
8
  export interface ComponentSFCTemplateCompileContext {
9
9
  /** Имена props для классификации expression reads. */
@@ -1,5 +1,5 @@
1
- import { TypeProgramCatalogEntry, TypeSourceDefinition, TypeSourceExpression } from '../../../../domain/types/source/type-source.types';
2
1
  import { ProgramDiagnostic } from '../../../../domain/types/program/program.types';
2
+ import { TypeProgramCatalogEntry, TypeSourceDefinition, TypeSourceExpression } from '../../../../domain/types/source/type-source.types';
3
3
  type DiagnosticDraft = Omit<ProgramDiagnostic, 'entityRef'>;
4
4
  /** Returns every named reference without expanding the referenced document. */
5
5
  export declare function collectTypeDefinitionReferences(definition: TypeSourceDefinition | null): string[];
@@ -1,5 +1,5 @@
1
- import { RAction } from '../../../../domain/entities/reflect/RAction';
2
1
  import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
2
+ import { RAction } from '../../../../domain/entities/reflect/RAction';
3
3
  export declare class ActionRuntimeStrategy implements RuntimeStrategy<RAction> {
4
4
  readonly id = "runtime:action";
5
5
  readonly entityType = "action";
@@ -1,6 +1,6 @@
1
+ import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
1
2
  import { RComponentSFC } from '../../../../domain/entities/reflect/RComponentSFC';
2
3
  import { ComponentSFCRuntimeHost } from '../../../../domain/entities/runtime/hosts/ComponentSFCRuntimeHost';
3
- import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
4
4
  export declare class ComponentSFCRuntimeStrategy implements RuntimeStrategy<RComponentSFC> {
5
5
  readonly id = "runtime:component-sfc";
6
6
  readonly entityType = "component-sfc";
@@ -1,6 +1,6 @@
1
+ import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
1
2
  import { RComposition } from '../../../../domain/entities/reflect/RComposition';
2
3
  import { CompositionRuntimeHost } from '../../../../domain/entities/runtime/hosts/CompositionRuntimeHost';
3
- import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
4
4
  export declare class CompositionRuntimeStrategy implements RuntimeStrategy<RComposition, CompositionRuntimeHost> {
5
5
  readonly id = "runtime:composition";
6
6
  readonly entityType: "composition";
@@ -1,6 +1,6 @@
1
+ import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
1
2
  import { RFilter } from '../../../../domain/entities/reflect/RFilter';
2
3
  import { FilterRuntimeHost } from '../../../../domain/entities/runtime/hosts/FilterRuntimeHost';
3
- import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
4
4
  export declare class FilterRuntimeStrategy implements RuntimeStrategy<RFilter, FilterRuntimeHost> {
5
5
  readonly id = "runtime:filter";
6
6
  readonly entityType: "filter";
@@ -1,5 +1,5 @@
1
- import { RPage } from '../../../../domain/entities/reflect/RPage';
2
1
  import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
2
+ import { RPage } from '../../../../domain/entities/reflect/RPage';
3
3
  export declare class PageRuntimeStrategy implements RuntimeStrategy<RPage> {
4
4
  readonly id = "runtime:page";
5
5
  readonly entityType = "page";
@@ -1,5 +1,5 @@
1
- import { RProject } from '../../../../domain/entities/reflect/RProject';
2
1
  import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
2
+ import { RProject } from '../../../../domain/entities/reflect/RProject';
3
3
  export declare class ProjectRuntimeStrategy implements RuntimeStrategy<RProject> {
4
4
  readonly id = "runtime:project";
5
5
  readonly entityType = "project";
@@ -1,6 +1,6 @@
1
+ import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
1
2
  import { RQuery } from '../../../../domain/entities/reflect/RQuery';
2
3
  import { QueryRuntimeHost } from '../../../../domain/entities/runtime/hosts/QueryRuntimeHost';
3
- import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
4
4
  export declare class QueryRuntimeStrategy implements RuntimeStrategy<RQuery, QueryRuntimeHost> {
5
5
  readonly id = "runtime:query";
6
6
  readonly entityType = "query";
@@ -1,6 +1,6 @@
1
+ import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
1
2
  import { RStore } from '../../../../domain/entities/reflect/RStore';
2
3
  import { StoreRuntimeHost } from '../../../../domain/entities/runtime/hosts/StoreRuntimeHost';
3
- import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
4
4
  export declare class StoreRuntimeStrategy implements RuntimeStrategy<RStore, StoreRuntimeHost> {
5
5
  readonly id = "runtime:store";
6
6
  readonly entityType: "store";
@@ -1,6 +1,6 @@
1
+ import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
1
2
  import { RStream } from '../../../../domain/entities/reflect/RStream';
2
3
  import { StreamRuntimeHost } from '../../../../domain/entities/runtime/hosts/StreamRuntimeHost';
3
- import { RuntimeStrategy } from '../../../../domain/types/runtime/runtime-strategy.types';
4
4
  export declare class StreamRuntimeStrategy implements RuntimeStrategy<RStream, StreamRuntimeHost> {
5
5
  readonly id = "runtime:stream";
6
6
  readonly entityType: "stream";
@@ -1,5 +1,5 @@
1
1
  import { ProgramDiagnostic } from '../../../../domain/types/program/program.types';
2
- import { SourceFieldDefinition, SourceFieldDefaultSource } from '../../../../domain/types/source/source-expression.types';
2
+ import { SourceFieldDefaultSource, SourceFieldDefinition } from '../../../../domain/types/source/source-expression.types';
3
3
  import * as t from '@babel/types';
4
4
  type DiagnosticDraft = Omit<ProgramDiagnostic, 'entityRef'>;
5
5
  export interface SourceFieldParseResult {
@@ -1,5 +1,5 @@
1
- import { TypeSourceCompileResult, TypeSourceExpression } from '../../../../domain/types/source/type-source.types';
2
1
  import { ProgramDiagnostic } from '../../../../domain/types/program/program.types';
2
+ import { TypeSourceCompileResult, TypeSourceExpression } from '../../../../domain/types/source/type-source.types';
3
3
  import * as t from '@babel/types';
4
4
  type DiagnosticDraft = Omit<ProgramDiagnostic, 'entityRef'>;
5
5
  /** Компилирует Type Source v1 без выполнения пользовательского JavaScript. */
@@ -1,5 +1,5 @@
1
- import { ComponentSFCPropsSourcePatchResult, ComponentSFCPropsVisualProjection } from '../../../../domain/types/component/sfc/props-visual.types';
2
1
  import { RComponentSFC_IR_Prop } from '../../../../domain/types/component/sfc/ir.types';
2
+ import { ComponentSFCPropsSourcePatchResult, ComponentSFCPropsVisualProjection } from '../../../../domain/types/component/sfc/props-visual.types';
3
3
  /** Reads defineProps as a source-backed projection. Named and runtime contracts stay Source-owned. */
4
4
  export declare function inspectComponentSFCProps(source: string): ComponentSFCPropsVisualProjection;
5
5
  /** Replaces only the defineProps call, or inserts one into script setup when it is missing. */
@@ -1,5 +1,5 @@
1
- import { VocabSourceDocument, VocabSourcePatch } from '../../../../domain/types/source/vocab-source.types';
2
1
  import { SourceKind, SourceParseResult, SourcePatchResult, SourcePatchStrategy } from '../../../../domain/types/source/source-engine.types';
2
+ import { VocabSourceDocument, VocabSourcePatch } from '../../../../domain/types/source/vocab-source.types';
3
3
  export declare class VocabSourcePatchStrategy implements SourcePatchStrategy<VocabSourcePatch, VocabSourceDocument> {
4
4
  readonly id = "source-patch:vocab";
5
5
  readonly sourceKind: SourceKind;
@@ -1,5 +1,5 @@
1
- import { VocabSourceDocument, VocabSourcePatch } from '../../../domain/types/source/vocab-source.types';
2
1
  import { SourcePatchResult } from '../../../domain/types/source/source-engine.types';
2
+ import { VocabSourceDocument, VocabSourcePatch } from '../../../domain/types/source/vocab-source.types';
3
3
  export declare function parseVocabSource(source: string): {
4
4
  ok: boolean;
5
5
  ast: {} | undefined;
@@ -1,4 +1,4 @@
1
- import { EndgeTooltipMarkdownBlock } from '../../../domain/types/ui/tooltip-markdown.types';
1
+ import { EndgeTooltipMarkdownBlock } from '../../../domain/types/presentation/tooltip-markdown.types';
2
2
  /** Parses the intentionally small, safe Tooltip Markdown subset without producing HTML. */
3
3
  export declare function parseEndgeTooltipMarkdown(source: unknown): EndgeTooltipMarkdownBlock[];
4
4
  /** Stable DOM id for one consumer-scoped tooltip without leaking source values into selectors. */
@@ -1,4 +1,4 @@
1
- import { ComponentSFCInteractionTrigger, ComponentSFCInteractionTriggerEvent, ComponentSFCInteractionTriggerHeldKeys, ComponentSFCInteractionKeyboardCondition, ComponentSFCInteractionTriggerModifiers, ComponentSFCInteractionTriggerPlatform } from '../domain/types/component/sfc/ir.types';
1
+ import { ComponentSFCInteractionKeyboardCondition, ComponentSFCInteractionTrigger, ComponentSFCInteractionTriggerEvent, ComponentSFCInteractionTriggerHeldKeys, ComponentSFCInteractionTriggerModifiers, ComponentSFCInteractionTriggerPlatform } from '../domain/types/component/sfc/ir.types';
2
2
  /** Normalizes the shared `edit-on` / `on` trigger value. */
3
3
  export declare function normalizeComponentSFCInteractionTriggers(value: unknown): ComponentSFCInteractionTrigger[];
4
4
  /** Проверяет один нормализованный trigger без зависимости от DOM и конкретного renderer-а. */
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "@endge/core",
3
- "version": "3.2.1",
3
+ "type": "module",
4
+ "version": "5.0.0",
4
5
  "private": false,
6
+ "packageManager": "pnpm@8.8.0",
5
7
  "license": "Apache-2.0",
6
- "type": "module",
7
- "main": "./dist/core.js",
8
- "module": "./dist/core.js",
9
- "types": "./dist/main.d.ts",
10
8
  "exports": {
11
9
  ".": {
12
10
  "types": "./dist/main.d.ts",
@@ -14,6 +12,9 @@
14
12
  "require": "./dist/core.cjs"
15
13
  }
16
14
  },
15
+ "main": "./dist/core.js",
16
+ "module": "./dist/core.js",
17
+ "types": "./dist/main.d.ts",
17
18
  "files": [
18
19
  "dist"
19
20
  ],
@@ -24,12 +25,20 @@
24
25
  "preview": "vite preview",
25
26
  "test": "vitest",
26
27
  "bench:interactions": "vitest bench src/test/component-sfc-interactions.bench.ts",
27
- "typecheck": "vue-tsc --noEmit"
28
+ "typecheck": "tsc --noEmit",
29
+ "lint-check": "eslint . --cache",
30
+ "lint-fix": "eslint . --fix --cache"
31
+ },
32
+ "peerDependencies": {
33
+ "@endge/raph": "^3.0.11",
34
+ "class-transformer": "^0.5.1",
35
+ "class-validator": "^0.14.1",
36
+ "reflect-metadata": "^0.2.2"
28
37
  },
29
38
  "dependencies": {
30
39
  "@babel/parser": "^7.27.2",
31
40
  "@babel/types": "^7.27.1",
32
- "@endge/utils": "^0.24.13",
41
+ "@endge/utils": "^0.25.0",
33
42
  "@vue/compiler-dom": "^3.5.24",
34
43
  "@vue/compiler-sfc": "^3.5.24",
35
44
  "axios": "^1.13.2",
@@ -45,29 +54,14 @@
45
54
  "uuid": "^11.1.0",
46
55
  "yaml": "^2.8.1"
47
56
  },
48
- "peerDependencies": {
49
- "@endge/raph": "^3.0.11",
50
- "@endge/utils": "^0.24.13",
51
- "@primevue/themes": "^4.0.0-rc.1",
52
- "class-transformer": "^0.5.1",
53
- "class-validator": "^0.14.1",
54
- "pinia": "^3.0.4",
55
- "primeicons": "^6.0.1",
56
- "primevue": "^4.0.0-rc.1",
57
- "reflect-metadata": "^0.2.2",
58
- "vue": "^3.3.0"
59
- },
60
57
  "devDependencies": {
58
+ "@antfu/eslint-config": "9.3.0",
61
59
  "@types/lodash": "^4.14.202",
62
- "@vitejs/plugin-vue": "^4.5.2",
63
- "@vitejs/plugin-vue-jsx": "^3.1.0",
64
- "@vue/language-core": "^3.3.11",
60
+ "eslint": "10.9.1",
65
61
  "rimraf": "^6.0.1",
66
62
  "typescript": "~6.0.3",
67
63
  "unplugin-dts": "^1.0.3",
68
64
  "vite": "^6.1.0",
69
- "vitest": "^2.1.9",
70
- "vue-tsc": "^3.3.11"
71
- },
72
- "packageManager": "pnpm@8.8.0"
65
+ "vitest": "^2.1.9"
66
+ }
73
67
  }