@raphy-js/dom 0.0.0-stage → 1.0.0-dev.88

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 (175) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +187 -2
  3. package/dist/DOMBlueprintMaterializer-C-icNhvm.cjs +1 -0
  4. package/dist/DOMBlueprintMaterializer-CxzM_TX5.js +201 -0
  5. package/dist/FullDOMOperations-BOlf0_0L.js +2781 -0
  6. package/dist/FullDOMOperations-Dschwj33.cjs +1 -0
  7. package/dist/api/renderer.d.ts +12 -0
  8. package/dist/applicationIdentity-CHbuUlsE.cjs +1 -0
  9. package/dist/applicationIdentity-DjVgpsQq.js +11 -0
  10. package/dist/bind-BEmkQdaL.cjs +1 -0
  11. package/dist/bind-OakIMWpC.js +52 -0
  12. package/dist/binding/DOMValueWriter.d.ts +59 -0
  13. package/dist/binding/materializeComponentProps.d.ts +38 -0
  14. package/dist/binding/mountDOMBinding.d.ts +9 -0
  15. package/dist/binding/mountDOMProps.d.ts +22 -0
  16. package/dist/capture.cjs +1 -0
  17. package/dist/capture.d.ts +7 -0
  18. package/dist/capture.js +166 -0
  19. package/dist/channels-Bs8GHVWn.cjs +1 -0
  20. package/dist/channels-DqAQt-NH.js +33 -0
  21. package/dist/compact/hydration.cjs +1 -0
  22. package/dist/compact/hydration.d.ts +9 -0
  23. package/dist/compact/hydration.js +12 -0
  24. package/dist/compact/index.d.ts +19 -0
  25. package/dist/compact/targetRuntime.d.ts +1 -0
  26. package/dist/compact.cjs +1 -0
  27. package/dist/compact.js +34 -0
  28. package/dist/contracts/freezeGeneratedContract.d.ts +5 -0
  29. package/dist/contracts/manifest.json +25 -0
  30. package/dist/contracts/node.cjs +1 -0
  31. package/dist/contracts/node.contract.json +36889 -0
  32. package/dist/contracts/node.d.ts +6 -0
  33. package/dist/contracts/node.js +19 -0
  34. package/dist/contracts/stylesheet.cjs +1 -0
  35. package/dist/contracts/stylesheet.contract.json +11887 -0
  36. package/dist/contracts/stylesheet.d.ts +6 -0
  37. package/dist/contracts/stylesheet.js +22 -0
  38. package/dist/createDOMDataEventInput-B82pnIav.cjs +1 -0
  39. package/dist/createDOMDataEventInput-BDX50jhu.js +3010 -0
  40. package/dist/createDOMNodeRuntime-BHcsbeO1.cjs +1 -0
  41. package/dist/createDOMNodeRuntime-DIKOUQP7.js +3006 -0
  42. package/dist/createHydrationRenderer-C7srF-66.js +289 -0
  43. package/dist/createHydrationRenderer-DKybWTj4.cjs +1 -0
  44. package/dist/elementRef-D8Ir8tXA.cjs +1 -0
  45. package/dist/elementRef-YPBBElV9.js +32 -0
  46. package/dist/event/DOMEventHub.d.ts +303 -0
  47. package/dist/freezeGeneratedContract-0EZt85o4.js +10 -0
  48. package/dist/freezeGeneratedContract-g_Op1hGY.cjs +1 -0
  49. package/dist/hydration/HydrationEvents.d.ts +20 -0
  50. package/dist/hydration/HydrationSession.d.ts +107 -0
  51. package/dist/hydration/HydrationStream.d.ts +30 -0
  52. package/dist/hydration/activateHydration.d.ts +2 -0
  53. package/dist/hydration/createHydrationRenderer.d.ts +25 -0
  54. package/dist/hydration/index.d.ts +8 -0
  55. package/dist/hydration.cjs +1 -0
  56. package/dist/hydration.js +12 -0
  57. package/dist/index.cjs +1 -0
  58. package/dist/index.d.ts +22 -0
  59. package/dist/index.js +24 -0
  60. package/dist/interaction/clipboard.d.ts +2 -0
  61. package/dist/interaction/contextAction.d.ts +3 -0
  62. package/dist/interaction/contracts/node.cjs +1 -0
  63. package/dist/interaction/contracts/node.d.ts +15 -0
  64. package/dist/interaction/contracts/node.js +60 -0
  65. package/dist/interaction/dragDrop.d.ts +13 -0
  66. package/dist/interaction/focus.d.ts +4 -0
  67. package/dist/interaction/geometry.d.ts +39 -0
  68. package/dist/interaction/hover.d.ts +4 -0
  69. package/dist/interaction/index.d.ts +2 -0
  70. package/dist/interaction/interaction.d.ts +4 -0
  71. package/dist/interaction/internal/DOMInputModality.d.ts +20 -0
  72. package/dist/interaction/internal/DOMInteraction.types.d.ts +29 -0
  73. package/dist/interaction/internal/applicationIdentity.d.ts +3 -0
  74. package/dist/interaction/internal/dragDataTransfer.d.ts +4 -0
  75. package/dist/interaction/internal/solvePosition.d.ts +5 -0
  76. package/dist/interaction/keyboard.d.ts +3 -0
  77. package/dist/interaction/move.d.ts +3 -0
  78. package/dist/interaction/nativeDragDrop.d.ts +18 -0
  79. package/dist/interaction/outside.d.ts +3 -0
  80. package/dist/interaction/press.d.ts +3 -0
  81. package/dist/interaction/profile.cjs +1 -0
  82. package/dist/interaction/profile.d.ts +2 -0
  83. package/dist/interaction/profile.js +48 -0
  84. package/dist/interaction/rovingFocus.d.ts +4 -0
  85. package/dist/interaction/runtime.d.ts +7 -0
  86. package/dist/interaction/textEditing.d.ts +4 -0
  87. package/dist/interaction.cjs +1 -0
  88. package/dist/interaction.js +1603 -0
  89. package/dist/internal/dev.d.ts +20 -0
  90. package/dist/motion/channels.d.ts +5 -0
  91. package/dist/motion/index.d.ts +8 -0
  92. package/dist/motion-scroll/index.d.ts +19 -0
  93. package/dist/motion-scroll.cjs +1 -0
  94. package/dist/motion-scroll.js +169 -0
  95. package/dist/motion.cjs +1 -0
  96. package/dist/motion.js +187 -0
  97. package/dist/operations.cjs +1 -0
  98. package/dist/operations.d.ts +3 -0
  99. package/dist/operations.js +10 -0
  100. package/dist/profile/DOMProfile.d.ts +4 -0
  101. package/dist/profile/index.d.ts +1 -0
  102. package/dist/profile.cjs +1 -0
  103. package/dist/profile.js +23 -0
  104. package/dist/renderer/DOMEffectScope.d.ts +13 -0
  105. package/dist/renderer/DOMPresentation.d.ts +8 -0
  106. package/dist/renderer/DOMRenderer.d.ts +35 -0
  107. package/dist/renderer/DOMRenderer.types.d.ts +12 -0
  108. package/dist/renderer/DOMRendererExtension.types.d.ts +33 -0
  109. package/dist/renderer/DOMRuntimeProfile.d.ts +15 -0
  110. package/dist/renderer/DOMTargetRuntime.d.ts +1 -0
  111. package/dist/renderer/createDOMTargetRuntime.d.ts +3 -0
  112. package/dist/renderer/installAuxiliaryViews.d.ts +8 -0
  113. package/dist/renderer/installDOMRendererExtensions.d.ts +10 -0
  114. package/dist/renderer/resolveDOMMountTarget.d.ts +7 -0
  115. package/dist/renderer-4Wbid5nE.js +30 -0
  116. package/dist/renderer-DHK3lLG-.cjs +1 -0
  117. package/dist/resolveDOMMountTarget-C75JWc5x.cjs +1 -0
  118. package/dist/resolveDOMMountTarget-D944H05N.js +19 -0
  119. package/dist/runtime.cjs +1 -0
  120. package/dist/runtime.d.ts +21 -0
  121. package/dist/runtime.js +25 -0
  122. package/dist/serialization.cjs +1 -0
  123. package/dist/serialization.d.ts +4 -0
  124. package/dist/serialization.js +118 -0
  125. package/dist/stylesheet/DOMStyleManager.d.ts +95 -0
  126. package/dist/stylesheet/DOMStyleReferenceName.d.ts +2 -0
  127. package/dist/stylesheet/DOMStylesheetRuntime.d.ts +25 -0
  128. package/dist/stylesheet/acquireInstanceStylesheets.d.ts +4 -0
  129. package/dist/stylesheet/scopeDOMSelector.d.ts +2 -0
  130. package/dist/stylesheet/serializeDOMStyleValue.d.ts +3 -0
  131. package/dist/targetRuntime-C67QmOgE.cjs +1 -0
  132. package/dist/targetRuntime-C_OdmS5w.js +5 -0
  133. package/dist/template/AdvancedDOMMaterializer.d.ts +14 -0
  134. package/dist/template/AsyncDOMMaterializer.d.ts +4 -0
  135. package/dist/template/BoundaryDOMMaterializer.d.ts +10 -0
  136. package/dist/template/DOMHostPlan.d.ts +4 -0
  137. package/dist/template/DOMNode.types.d.ts +192 -0
  138. package/dist/template/DOMNodeRuntime.d.ts +1 -0
  139. package/dist/template/binding/DOMBinding.types.d.ts +44 -0
  140. package/dist/template/binding/bind.d.ts +16 -0
  141. package/dist/template/blueprint/DOMBlueprintAddressing.d.ts +23 -0
  142. package/dist/template/blueprint/DOMBlueprintMaterializer.d.ts +3 -0
  143. package/dist/template/blueprint/DOMBlueprintMaterializer.types.d.ts +15 -0
  144. package/dist/template/blueprint/DOMHostBlueprint.d.ts +102 -0
  145. package/dist/template/blueprint/DOMHostBlueprintCache.d.ts +86 -0
  146. package/dist/template/blueprint/createDOMDataEventInput.d.ts +5 -0
  147. package/dist/template/blueprint/mountDOMHostBlueprint.d.ts +45 -0
  148. package/dist/template/createDOMNodeRuntime.d.ts +3 -0
  149. package/dist/template/each/mountEach.d.ts +5 -0
  150. package/dist/template/each/mountPureEach.d.ts +22 -0
  151. package/dist/template/error/DOMInvocation.d.ts +58 -0
  152. package/dist/template/error/DOMOperationError.d.ts +25 -0
  153. package/dist/template/html/DOMRawHtmlNode.types.d.ts +21 -0
  154. package/dist/template/html/rawHtml.d.ts +5 -0
  155. package/dist/template/keep-alive/DOMKeepAliveNode.types.d.ts +10 -0
  156. package/dist/template/keep-alive/keepAlive.d.ts +4 -0
  157. package/dist/template/mount/DOMMountTransaction.d.ts +63 -0
  158. package/dist/template/mountNode.d.ts +173 -0
  159. package/dist/template/normalizeChildren.d.ts +5 -0
  160. package/dist/template/operations/DOMOperations.d.ts +56 -0
  161. package/dist/template/operations/FullDOMOperations.d.ts +6 -0
  162. package/dist/template/page/DOMHead.d.ts +7 -0
  163. package/dist/template/page/PageNodePlan.d.ts +31 -0
  164. package/dist/template/ref/DOMElementRef.types.d.ts +7 -0
  165. package/dist/template/ref/componentRefGuard.d.ts +6 -0
  166. package/dist/template/ref/elementRef.d.ts +9 -0
  167. package/dist/template/structural/range/DOMRange.d.ts +145 -0
  168. package/dist/template/teleport/DOMTeleportNode.types.d.ts +8 -0
  169. package/dist/template/teleport/teleport.d.ts +4 -0
  170. package/dist/template/transition/DOMTransitionCoordinator.d.ts +32 -0
  171. package/dist/template/transition/DOMTransitionNode.types.d.ts +30 -0
  172. package/dist/template/transition/transition.d.ts +4 -0
  173. package/dist/template/value/DOMValueDescriptor.types.d.ts +34 -0
  174. package/dist/template/value/valueDescriptors.d.ts +13 -0
  175. package/package.json +157 -4
@@ -0,0 +1,20 @@
1
+ export declare const HYDRATION_EVENTS: readonly ["click", "input", "change", "keydown", "submit", "pointerdown", "focusin", "compositionstart", "compositionend"];
2
+ export interface HydrationEvent {
3
+ released: boolean;
4
+ readonly event: Event;
5
+ readonly target: Element;
6
+ readonly value: unknown;
7
+ readonly checked: unknown;
8
+ readonly selection?: {
9
+ start: number | null;
10
+ end: number | null;
11
+ direction: string | null;
12
+ };
13
+ }
14
+ export declare function hasQueuedHydrationEvent(target: Element): boolean;
15
+ export declare function isHydrationComposing(target: Element): boolean;
16
+ export declare function releaseHydrationEvent(item: HydrationEvent): void;
17
+ export declare function captureHydrationEvent(event: Event): HydrationEvent;
18
+ /** Replays once, preserving control state and native click/submit activation. */
19
+ export declare function replayHydrationEvent(item: HydrationEvent): void;
20
+ export declare function suppressHydrationEvent(event: Event): void;
@@ -0,0 +1,107 @@
1
+ import { AsyncWorkObservation, ComponentInstance } from '@raphy-js/core';
2
+ import { RaphExecution } from '@raphy-js/raph/execution';
3
+ import { RaphRuntime } from '@raphy-js/raph/runtime';
4
+ import { DOMRendererExtension } from '../renderer/DOMRendererExtension.types.js';
5
+ import { HydrationStream } from './HydrationStream.js';
6
+ export interface HydrationManifest {
7
+ readonly version: 1;
8
+ readonly build: string;
9
+ readonly application: string;
10
+ readonly styleScope: string;
11
+ readonly boundaries: readonly {
12
+ readonly id: string;
13
+ readonly label: string;
14
+ readonly strategy?: string;
15
+ }[];
16
+ readonly resources: Readonly<Record<string, {
17
+ readonly value: unknown;
18
+ }>>;
19
+ readonly texts: Readonly<Record<string, string>>;
20
+ readonly stream?: {
21
+ readonly sequence: number;
22
+ readonly pending: readonly string[];
23
+ readonly failed: readonly string[];
24
+ readonly complete: boolean;
25
+ };
26
+ }
27
+ export interface HydrationMismatch {
28
+ readonly code: 'DOM_HYDRATION_MISMATCH';
29
+ readonly expected: string;
30
+ readonly actual: string;
31
+ readonly node: Node | null;
32
+ }
33
+ export interface HydrationOptions<Runtime extends RaphExecution<Runtime> = RaphRuntime> {
34
+ readonly target: Element | ShadowRoot;
35
+ readonly manifest: HydrationManifest;
36
+ readonly build?: string;
37
+ readonly mode?: 'development' | 'production';
38
+ readonly onMismatch?: (diagnostic: HydrationMismatch) => void;
39
+ readonly styleNonce?: string;
40
+ readonly extensions?: readonly DOMRendererExtension<Runtime>[];
41
+ }
42
+ interface Token {
43
+ readonly node: ChildNode;
44
+ readonly last: ChildNode;
45
+ readonly kind: 'element' | 'range' | 'text';
46
+ readonly label?: string;
47
+ readonly id?: string;
48
+ readonly serverText?: string;
49
+ end: number;
50
+ }
51
+ /** Present only during adoption; normal DOM imports have no server dependency. */
52
+ export declare function activeHydration(document: Document): HydrationSession | undefined;
53
+ export declare class HydrationSession {
54
+ readonly options: HydrationOptions<any>;
55
+ private readonly _stream?;
56
+ private readonly _tokens;
57
+ private _cursor;
58
+ private readonly _adopted;
59
+ private readonly _indexes;
60
+ readonly pending: Set<Promise<void>>;
61
+ readonly cleanups: Set<() => void>;
62
+ private readonly _commits;
63
+ private readonly _dirtyControls;
64
+ private _disposed;
65
+ private _parent;
66
+ private _readyDone;
67
+ readonly work: AsyncWorkObservation;
68
+ controlsChanged: boolean;
69
+ constructor(options: HydrationOptions<any>, work: AsyncWorkObservation, tokens?: Token[], _stream?: HydrationStream | undefined);
70
+ run<T>(operation: () => T): T;
71
+ suspend<T>(operation: () => T): T;
72
+ nextLabel(): string | undefined;
73
+ componentIdentity(): string | undefined;
74
+ portal(target: Element | ShadowRoot, placeholder: ChildNode): HydrationSession;
75
+ range(label: string): {
76
+ first: ChildNode;
77
+ last: ChildNode;
78
+ } | undefined;
79
+ element(tag: string, namespace: string): Element | undefined;
80
+ text(expected?: string): Text | undefined;
81
+ checkText(node: Text, expected: string): void;
82
+ finishElement(element: Element, allowText?: boolean): void;
83
+ owns(node: Node): boolean;
84
+ remaining(): void;
85
+ /** Leaves untouched HTML behind and lends exactly its tokens to a later trigger. */
86
+ defer(first: ChildNode, include?: boolean): HydrationSession;
87
+ skip(first: ChildNode): void;
88
+ get streaming(): boolean;
89
+ waitStream(first: ChildNode, last: ChildNode, signal: AbortSignal): Promise<void>;
90
+ trackStream(work: Promise<void>): void;
91
+ finishStream(first: ChildNode): void;
92
+ /** The parser has replaced this range since the shell tokens were captured. */
93
+ rescan(first: ChildNode, last: ChildNode): HydrationSession;
94
+ track(work: Promise<void>): void;
95
+ /** Initial grouped props may execute under a sibling's reactive phase. */
96
+ initialBinding(owner: ComponentInstance['node'], operation: () => void): () => void;
97
+ commit(operation: () => void, cancel: () => void): void;
98
+ preserveControl(element: Element): void;
99
+ ready(): Promise<void>;
100
+ dispose(): void;
101
+ private _fork;
102
+ private _take;
103
+ private _mismatch;
104
+ }
105
+ export declare function hydrationText(document: Document, value: string): Text;
106
+ export declare function appendAdopted(parent: Node, child: ChildNode): void;
107
+ export {};
@@ -0,0 +1,30 @@
1
+ import { HydrationManifest } from './HydrationSession.js';
2
+ export interface HydrationStreamRange {
3
+ readonly first: Comment;
4
+ readonly last: Comment;
5
+ readonly active: boolean;
6
+ }
7
+ /** One renderer owns the snapshots and work of its unfinished server response. */
8
+ export declare class HydrationStream {
9
+ private _manifest;
10
+ private readonly _waiting;
11
+ private readonly _work;
12
+ private readonly _claimed;
13
+ private readonly _ranges;
14
+ private readonly _abort;
15
+ private _failure;
16
+ private _disposed;
17
+ constructor(manifest: HydrationManifest);
18
+ get manifest(): HydrationManifest;
19
+ get signal(): AbortSignal;
20
+ claim(node: Node): void;
21
+ owns(node: Node): boolean;
22
+ register(id: string, first: Comment, last: Comment, signal: AbortSignal): void;
23
+ ranges(): readonly HydrationStreamRange[];
24
+ release(id: string): void;
25
+ update(manifest: HydrationManifest): void;
26
+ wait(id: string, signal: AbortSignal): Promise<void>;
27
+ track(work: Promise<void>): void;
28
+ ready(): Promise<void>;
29
+ dispose(): void;
30
+ }
@@ -0,0 +1,2 @@
1
+ /** Build hosts can delay creating the entire application, including root setup. */
2
+ export declare function activateHydration<T>(target: Element, strategy: 'eager' | 'idle' | 'visible' | 'interaction', create: () => Promise<T>, signal?: AbortSignal): Promise<T>;
@@ -0,0 +1,25 @@
1
+ import { RaphyRendererDefinition, RaphyTargetRuntimeAdapter, TargetRuntime } from '@raphy-js/core';
2
+ import { RaphExecution } from '@raphy-js/raph/execution';
3
+ import { RaphRuntime } from '@raphy-js/raph/runtime';
4
+ import { DOMBlueprintMaterializerFactory } from '../template/blueprint/DOMBlueprintMaterializer.types.js';
5
+ import { DOMOperationProfile } from '../template/operations/DOMOperations.js';
6
+ import { HydrationManifest, HydrationOptions } from './HydrationSession.js';
7
+ import { HydrationStreamRange, HydrationStream } from './HydrationStream.js';
8
+ export { activateHydration } from './activateHydration.js';
9
+ export type { HydrationManifest, HydrationMismatch, HydrationOptions, } from './HydrationSession.js';
10
+ export interface HydrationRendererDefinition<Runtime extends RaphExecution<Runtime> = RaphRuntime> extends RaphyRendererDefinition<any, any, any, Runtime> {
11
+ readonly ready: Promise<void>;
12
+ /** Initial shell adoption and mount commit, independent of unfinished stream boundaries. */
13
+ readonly shellReady: Promise<void>;
14
+ /** The transport applies a complete packet before publishing its manifest here. */
15
+ readonly updateManifest: (manifest: HydrationManifest) => void;
16
+ readonly ownsStreamNode: (node: Node) => boolean;
17
+ /** Pending ranges may be parked by KeepAlive or retained for a transition leave. */
18
+ readonly streamRanges: () => readonly HydrationStreamRange[];
19
+ readonly streamSignal?: AbortSignal;
20
+ /** A configured build host preserves the selected target's DOM extensions. */
21
+ readonly configureTarget: (adapter: RaphyTargetRuntimeAdapter<any, Runtime>) => HydrationRendererDefinition<Runtime>;
22
+ }
23
+ export declare function createHydrationRenderer<Runtime extends RaphExecution<Runtime> = RaphRuntime>(options: HydrationOptions<Runtime>, profile: DOMOperationProfile, targetRuntime: TargetRuntime, blueprints?: DOMBlueprintMaterializerFactory, streamSource?: HydrationStream): HydrationRendererDefinition<Runtime>;
24
+ export declare function createHydrationRenderer(options: HydrationOptions, profile: DOMOperationProfile, targetRuntime: TargetRuntime, blueprints?: DOMBlueprintMaterializerFactory, streamSource?: HydrationStream): HydrationRendererDefinition;
25
+ export declare function validateManifest(manifest: HydrationManifest, build?: string): void;
@@ -0,0 +1,8 @@
1
+ import { RaphExecution } from '@raphy-js/raph/execution';
2
+ import { RaphRuntime } from '@raphy-js/raph/runtime';
3
+ import { HydrationRendererDefinition } from './createHydrationRenderer.js';
4
+ import { HydrationOptions } from './HydrationSession.js';
5
+ export { activateHydration, validateManifest } from './createHydrationRenderer.js';
6
+ export type { HydrationRendererDefinition } from './createHydrationRenderer.js';
7
+ export type { HydrationManifest, HydrationMismatch, HydrationOptions } from './HydrationSession.js';
8
+ export declare function renderer<Runtime extends RaphExecution<Runtime> = RaphRuntime>(options: HydrationOptions<Runtime>): HydrationRendererDefinition<Runtime>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./DOMBlueprintMaterializer-C-icNhvm.cjs"),a=require("./FullDOMOperations-Dschwj33.cjs"),e=require("./createHydrationRenderer-DKybWTj4.cjs");function i(t){return e.createHydrationRenderer(t,a.FULL_DOM_OPERATIONS,r.DOM_TARGET_RUNTIME,r.DOM_BLUEPRINT_MATERIALIZER)}exports.activateHydration=e.activateHydration;exports.validateManifest=e.validateManifest;exports.renderer=i;
@@ -0,0 +1,12 @@
1
+ import { a, D as e } from "./DOMBlueprintMaterializer-CxzM_TX5.js";
2
+ import { F as t } from "./FullDOMOperations-BOlf0_0L.js";
3
+ import { c as o } from "./createHydrationRenderer-C7srF-66.js";
4
+ import { a as E, v as M } from "./createHydrationRenderer-C7srF-66.js";
5
+ function s(r) {
6
+ return o(r, t, e, a);
7
+ }
8
+ export {
9
+ E as activateHydration,
10
+ s as renderer,
11
+ M as validateManifest
12
+ };
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./renderer-DHK3lLG-.cjs"),t=require("./createDOMDataEventInput-B82pnIav.cjs"),n=require("./DOMBlueprintMaterializer-C-icNhvm.cjs"),e=require("./createDOMNodeRuntime-BHcsbeO1.cjs"),E=require("./bind-BEmkQdaL.cjs"),i=require("./elementRef-D8Ir8tXA.cjs");exports.renderer=r.renderer;exports.DOM_RUNTIME_PROFILE=t.DOM_RUNTIME_PROFILE;exports.DOM_WRITE_PHASE=t.DOM_WRITE_PHASE;exports.attribute=t.attribute;exports.listener=t.listener;exports.property=t.property;exports.DOM_TARGET_RUNTIME=n.DOM_TARGET_RUNTIME;exports.DOM_STYLESHEET_ADAPTER=e.DOM_STYLESHEET_ADAPTER;exports.DOM_STYLESHEET_RUNTIME=e.DOM_STYLESHEET_RUNTIME;exports.keepAlive=e.keepAlive;exports.safeHtml=e.safeHtml;exports.teleport=e.teleport;exports.transition=e.transition;exports.unsafeHtml=e.unsafeHtml;exports.bind=E.bind;exports.elementRef=i.elementRef;
@@ -0,0 +1,22 @@
1
+ export type { DOMRendererDefinition } from './api/renderer.js';
2
+ export { renderer } from './api/renderer.js';
3
+ export type { DOMRendererOptions } from './renderer/DOMRenderer.types.js';
4
+ export type { DOMRendererEventFacade, DOMRendererExtension, DOMRendererExtensionCleanup, DOMRendererExtensionContext, } from './renderer/DOMRendererExtension.types.js';
5
+ export { DOM_RUNTIME_PROFILE, DOM_WRITE_PHASE, } from './renderer/DOMRuntimeProfile.js';
6
+ export { DOM_TARGET_RUNTIME } from './renderer/DOMTargetRuntime.js';
7
+ export { DOM_STYLESHEET_ADAPTER, DOM_STYLESHEET_RUNTIME, } from './stylesheet/DOMStylesheetRuntime.js';
8
+ export { bind } from './template/binding/bind.js';
9
+ export type { DOMBinding, DOMBindingEvent, DOMBindingMode, DOMBindingOptions, DOMMultipleBindingOptions, DOMNumberBindingOptions, DOMOptionBindingOptions, DOMTextBindingOptions, } from './template/binding/DOMBinding.types.js';
10
+ export type { CustomElementProps, CustomElementPropsSource, CustomElementTag, DOMAttributeValue, DOMChild, DOMClass, DOMComponentInputSnapshot, DOMComponentNodePlan, DOMComponentProps, DOMComponentPropsPlan, DOMComponentPropsSource, DOMComponentSlots, DOMComponentSlotsArgument, DOMElementNodePlan, DOMElementProps, DOMElementPropsPlan, DOMElementPropsSource, DOMEventHandler, DOMNodePlan, DOMNormalizedChild, DOMStyle, DOMTag, DOMTemplate, DOMTextNodePlan, HTMLTag, MathMLTag, RaphyCustomElementRegistry, SVGTag, } from './template/DOMNode.types.js';
11
+ export type { DOMApprovedHTML, DOMRawHtmlNodePlan, DOMSafeHtmlSource, DOMSafeHtmlValue, DOMTrustedHTML, DOMUnsafeHtmlSource, } from './template/html/DOMRawHtmlNode.types.js';
12
+ export { safeHtml, unsafeHtml } from './template/html/rawHtml.js';
13
+ export type { DOMKeepAliveNodePlan, DOMKeepAliveOptions, } from './template/keep-alive/DOMKeepAliveNode.types.js';
14
+ export { keepAlive } from './template/keep-alive/keepAlive.js';
15
+ export type { DOMElementRef } from './template/ref/DOMElementRef.types.js';
16
+ export { elementRef } from './template/ref/elementRef.js';
17
+ export type { DOMTeleportNodePlan, DOMTeleportTarget, } from './template/teleport/DOMTeleportNode.types.js';
18
+ export { teleport } from './template/teleport/teleport.js';
19
+ export type { DOMTransitionDuration, DOMTransitionHookContext, DOMTransitionHooks, DOMTransitionMode, DOMTransitionNodePlan, DOMTransitionOptions, } from './template/transition/DOMTransitionNode.types.js';
20
+ export { transition } from './template/transition/transition.js';
21
+ export type { DOMAttributeDescriptor, DOMListenerDescriptor, DOMListenerOptions, DOMPropertyDescriptor, DOMValueDescriptor, } from './template/value/DOMValueDescriptor.types.js';
22
+ export { attribute, listener, property, } from './template/value/valueDescriptors.js';
package/dist/index.js ADDED
@@ -0,0 +1,24 @@
1
+ import { r } from "./renderer-4Wbid5nE.js";
2
+ import { D as t, a as o, b as E, l as p, p as T } from "./createDOMDataEventInput-BDX50jhu.js";
3
+ import { D as f } from "./DOMBlueprintMaterializer-CxzM_TX5.js";
4
+ import { D, a as M, k as R, s as l, t as n, b as i, u as x } from "./createDOMNodeRuntime-DIKOUQP7.js";
5
+ import { b } from "./bind-OakIMWpC.js";
6
+ import { e as H } from "./elementRef-YPBBElV9.js";
7
+ export {
8
+ t as DOM_RUNTIME_PROFILE,
9
+ D as DOM_STYLESHEET_ADAPTER,
10
+ M as DOM_STYLESHEET_RUNTIME,
11
+ f as DOM_TARGET_RUNTIME,
12
+ o as DOM_WRITE_PHASE,
13
+ E as attribute,
14
+ b as bind,
15
+ H as elementRef,
16
+ R as keepAlive,
17
+ p as listener,
18
+ T as property,
19
+ r as renderer,
20
+ l as safeHtml,
21
+ n as teleport,
22
+ i as transition,
23
+ x as unsafeHtml
24
+ };
@@ -0,0 +1,2 @@
1
+ import { ClipboardCapability } from '@raphy-js/interaction/clipboard';
2
+ export declare function createDOMClipboardCapability(document: Document, assertActive: () => void): ClipboardCapability;
@@ -0,0 +1,3 @@
1
+ import { ContextActionCapability } from '@raphy-js/interaction/context-action';
2
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
3
+ export declare function createDOMContextActionCapability(element: Element, services: DOMInteractionServices): ContextActionCapability;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("@raphy-js/interaction/profile"),a=require("../../freezeGeneratedContract-g_Op1hGY.cjs"),o=require("../../contracts/node.cjs"),E=R([t.CONTEXT_ACTION_TARGET,t.FOCUS_SCOPE_TARGET,t.ROVING_FOCUS_TARGET,t.PRESS_TARGET,t.POINTER_TARGET,t.KEYBOARD_TARGET,t.MOVE_TARGET,t.NATIVE_DRAG_TARGET,t.GEOMETRY_TARGET,t.SCROLL_TARGET,t.INTERACTION_BOUNDARY_TARGET,t.DRAG_SOURCE_TARGET,t.DROP_TARGET]),n=R([t.FOCUS_TARGET]),c=R([t.TEXT_EDIT_TARGET]),s=a.freezeGeneratedContract({...o.RAPHY_DOM_NODE_CONTRACT,kindPatterns:o.RAPHY_DOM_NODE_CONTRACT.kindPatterns.map(e=>A(e)),kinds:o.RAPHY_DOM_NODE_CONTRACT.kinds.map(e=>i(e))});function i(e){const T=e.groups.includes("html")||e.groups.includes("svg"),r=e.id==="textarea";return{...e,target:{capabilities:e.target.capabilities,roles:O(e.target.roles,E,...T?[n]:[],...r?[c]:[])}}}function A(e){return{...e,target:{capabilities:e.target.capabilities,roles:O(e.target.roles,E,n)}}}function R(e){return e.map(T=>({id:T.id,kind:"target-role"}))}function O(...e){const T=new Map;for(const r of e)for(const _ of r)T.set(_.id,_);return[...T.values()].sort((r,_)=>r.id.localeCompare(_.id))}exports.RAPHY_DOM_INTERACTION_NODE_CONTRACT=s;exports.default=s;
@@ -0,0 +1,15 @@
1
+ import { NodeKindDefinition, NodeKindPatternDefinition } from '@raphy-js/profile';
2
+ /** DOM Node Contract enriched with renderer-neutral Interaction roles. */
3
+ export declare const RAPHY_DOM_INTERACTION_NODE_CONTRACT: {
4
+ kindPatterns: NodeKindPatternDefinition[];
5
+ kinds: NodeKindDefinition[];
6
+ groups: readonly import('@raphy-js/profile').NodeInputGroupDefinition[];
7
+ openness: import('@raphy-js/profile').ProfileOpenness;
8
+ description?: string;
9
+ id: string;
10
+ kind: "node-contract";
11
+ metadata?: import('@raphy-js/profile').ProfileMetadata;
12
+ schemaVersion: import('@raphy-js/profile').ProfileSchemaVersion;
13
+ version?: string;
14
+ };
15
+ export default RAPHY_DOM_INTERACTION_NODE_CONTRACT;
@@ -0,0 +1,60 @@
1
+ import { FOCUS_TARGET as a, TEXT_EDIT_TARGET as n, CONTEXT_ACTION_TARGET as i, FOCUS_SCOPE_TARGET as c, ROVING_FOCUS_TARGET as A, PRESS_TARGET as O, POINTER_TARGET as G, KEYBOARD_TARGET as f, MOVE_TARGET as l, NATIVE_DRAG_TARGET as C, GEOMETRY_TARGET as u, SCROLL_TARGET as d, INTERACTION_BOUNDARY_TARGET as N, DRAG_SOURCE_TARGET as p, DROP_TARGET as g } from "@raphy-js/interaction/profile";
2
+ import { f as m } from "../../freezeGeneratedContract-0EZt85o4.js";
3
+ import { RAPHY_DOM_NODE_CONTRACT as o } from "../../contracts/node.js";
4
+ const R = E([
5
+ i,
6
+ c,
7
+ A,
8
+ O,
9
+ G,
10
+ f,
11
+ l,
12
+ C,
13
+ u,
14
+ d,
15
+ N,
16
+ p,
17
+ g
18
+ ]), s = E([a]), S = E([n]), L = m({
19
+ ...o,
20
+ kindPatterns: o.kindPatterns.map((e) => I(e)),
21
+ kinds: o.kinds.map((e) => D(e))
22
+ });
23
+ function D(e) {
24
+ const t = e.groups.includes("html") || e.groups.includes("svg"), T = e.id === "textarea";
25
+ return {
26
+ ...e,
27
+ target: {
28
+ capabilities: e.target.capabilities,
29
+ roles: _(
30
+ e.target.roles,
31
+ R,
32
+ ...t ? [s] : [],
33
+ ...T ? [S] : []
34
+ )
35
+ }
36
+ };
37
+ }
38
+ function I(e) {
39
+ return {
40
+ ...e,
41
+ target: {
42
+ capabilities: e.target.capabilities,
43
+ roles: _(e.target.roles, R, s)
44
+ }
45
+ };
46
+ }
47
+ function E(e) {
48
+ return e.map((t) => ({ id: t.id, kind: "target-role" }));
49
+ }
50
+ function _(...e) {
51
+ const t = /* @__PURE__ */ new Map();
52
+ for (const T of e)
53
+ for (const r of T)
54
+ t.set(r.id, r);
55
+ return [...t.values()].sort((T, r) => T.id.localeCompare(r.id));
56
+ }
57
+ export {
58
+ L as RAPHY_DOM_INTERACTION_NODE_CONTRACT,
59
+ L as default
60
+ };
@@ -0,0 +1,13 @@
1
+ import { TargetRef } from '@raphy-js/core';
2
+ import { DragDropCapability } from '@raphy-js/interaction/drag-drop';
3
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
4
+ export declare class DOMDragDropRegistry {
5
+ private readonly _records;
6
+ private readonly _services;
7
+ constructor(services: DOMInteractionServices);
8
+ capability(element: Element, reference: TargetRef): DragDropCapability;
9
+ private _subscribeDrop;
10
+ private _start;
11
+ private _resolveRecordAt;
12
+ private _resolveRecord;
13
+ }
@@ -0,0 +1,4 @@
1
+ import { FocusCapability, FocusNavigationCapability } from '@raphy-js/interaction/focus';
2
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
3
+ export declare function createDOMFocusCapability(element: Element, services: DOMInteractionServices): FocusCapability;
4
+ export declare function createDOMFocusNavigationCapability(root: Element, services: DOMInteractionServices): FocusNavigationCapability;
@@ -0,0 +1,39 @@
1
+ import { GeometryCapability, PositioningCapability } from '@raphy-js/interaction/geometry';
2
+ import { ScrollCapability } from '@raphy-js/interaction/scroll';
3
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
4
+ /**
5
+ * Геометрия одного application: idle targets не создают observers или frames.
6
+ */
7
+ export declare class DOMGeometryEnvironment {
8
+ private readonly _elements;
9
+ private readonly _geometry;
10
+ private readonly _services;
11
+ /**
12
+ * Использует lifecycle и event facade существующего Interaction extension.
13
+ */
14
+ constructor(services: DOMInteractionServices);
15
+ /**
16
+ * Измеряет target; observation создаётся только по отдельному запросу.
17
+ */
18
+ geometry(element: Element): GeometryCapability;
19
+ /**
20
+ * Возвращает координаты fixed-surface, не изменяя её inline styles.
21
+ */
22
+ positioning(surface: Element): PositioningCapability;
23
+ /**
24
+ * Сохраняет native viewport и нормализует отрицательные RTL scroll offsets.
25
+ */
26
+ scrolling(element: Element): ScrollCapability;
27
+ /**
28
+ * Отклоняет чужой application ref даже при совпадении document.
29
+ */
30
+ private _resolve;
31
+ /**
32
+ * Удерживает одну observation session до close/dispose; initial delivery синхронная.
33
+ */
34
+ private _observe;
35
+ /**
36
+ * Не подменяет отсутствующий browsing context глобальным window.
37
+ */
38
+ private _view;
39
+ }
@@ -0,0 +1,4 @@
1
+ import { TargetRef } from '@raphy-js/core';
2
+ import { HoverCapability } from '@raphy-js/interaction/hover';
3
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
4
+ export declare function createDOMHoverCapability(element: Element, services: DOMInteractionServices, resolve: (reference: TargetRef) => Element): HoverCapability;
@@ -0,0 +1,2 @@
1
+ export { DOM_INTERACTION_EXTENSION_ID, interaction, } from './interaction.js';
2
+ export { RAPHY_DOM_INTERACTION_RUNTIME_ADAPTER, } from './runtime.js';
@@ -0,0 +1,4 @@
1
+ import { DOMRendererExtension } from '../renderer/DOMRendererExtension.types.js';
2
+ export declare const DOM_INTERACTION_EXTENSION_ID = "@raphy-js/dom/interaction";
3
+ /** Creates the opt-in implementation of the renderer-neutral Interaction contracts. */
4
+ export declare function interaction(): DOMRendererExtension;
@@ -0,0 +1,20 @@
1
+ import { InputModality, InputModalityCapability } from '@raphy-js/interaction/input-modality';
2
+ import { Disposer } from '@raphy-js/raph/reactivity';
3
+ import { DOMRendererEventFacade } from '../../renderer/DOMRendererExtension.types.js';
4
+ import { DOMInputModalityService } from './DOMInteraction.types.js';
5
+ export declare class DOMInputModality implements DOMInputModalityService {
6
+ private readonly _listeners;
7
+ private readonly _disposeListeners;
8
+ private readonly _now;
9
+ private _disposed;
10
+ private _lastKeyboardAt;
11
+ private _lastTouchAt;
12
+ private _value;
13
+ readonly capability: InputModalityCapability;
14
+ constructor(document: Document, events: DOMRendererEventFacade);
15
+ get: () => InputModality;
16
+ recentTouch: () => boolean;
17
+ set: (modality: InputModality) => void;
18
+ subscribe: (listener: (modality: InputModality) => void) => Disposer;
19
+ dispose(): void;
20
+ }
@@ -0,0 +1,29 @@
1
+ import { InputModality, InteractionModifiers, InteractionPoint } from '@raphy-js/interaction';
2
+ import { Disposer } from '@raphy-js/raph/reactivity';
3
+ import { DOMRendererEventFacade } from '../../renderer/DOMRendererExtension.types.js';
4
+ export interface DOMInteractionServices {
5
+ readonly document: Document;
6
+ readonly events: DOMRendererEventFacade;
7
+ readonly modality: DOMInputModalityService;
8
+ readonly registerSession: (session: {
9
+ cancel: Disposer;
10
+ }) => Disposer;
11
+ readonly assertActive: () => void;
12
+ }
13
+ export interface DOMInputModalityService {
14
+ readonly get: () => InputModality;
15
+ readonly recentTouch: () => boolean;
16
+ readonly set: (modality: InputModality) => void;
17
+ readonly subscribe: (listener: (modality: InputModality) => void) => Disposer;
18
+ }
19
+ export declare function eventModifiers(event: Event): InteractionModifiers;
20
+ export declare function eventPoint(event: Event): InteractionPoint | undefined;
21
+ export declare function pointerType(event: Event): string;
22
+ export declare function subscribeSet<Value>(listeners: Set<(value: Value) => void>, listener: (value: Value) => void, onFirst?: () => void, onEmpty?: () => void): Disposer;
23
+ export declare function emitSet<Value>(listeners: ReadonlySet<(value: Value) => void>, value: Value): void;
24
+ export declare function composeDisposers(...disposers: readonly Disposer[]): Disposer;
25
+ /**
26
+ * Listens on the owning document and retained renderer boundaries while
27
+ * delivering one semantic event when a connected boundary bubbles to both.
28
+ */
29
+ export declare function listenGlobal(events: DOMRendererEventFacade, document: Document, type: string, listener: (event: Event) => void, options?: AddEventListenerOptions | boolean): Disposer;
@@ -0,0 +1,3 @@
1
+ import { TargetRef } from '@raphy-js/core';
2
+ export declare function recordInteractionApplication(reference: TargetRef, applicationId: string): void;
3
+ export declare function interactionApplication(reference: TargetRef): string | undefined;
@@ -0,0 +1,4 @@
1
+ import { DragData } from '@raphy-js/interaction/drag-drop';
2
+ /** Native payloads stay in the owning renderer; callers receive frozen strings. */
3
+ export declare function readDragData(value: unknown, ignored?: string): DragData;
4
+ export declare function writeDragData(value: unknown, data: DragData): void;
@@ -0,0 +1,5 @@
1
+ import { OverlayPlacement, OverlayPosition, TargetRectangle } from '@raphy-js/interaction/geometry';
2
+ /**
3
+ * Вычисляет flip/shift без browser writes; все входы относятся к одному viewport.
4
+ */
5
+ export declare function solvePosition(anchor: TargetRectangle, surface: TargetRectangle, boundary: TargetRectangle, placement: OverlayPlacement, offset: number, padding: number, rtl: boolean, avoid?: readonly TargetRectangle[]): OverlayPosition;
@@ -0,0 +1,3 @@
1
+ import { KeyboardCapability } from '@raphy-js/interaction/keyboard';
2
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
3
+ export declare function createDOMKeyboardCapability(element: Element, services: DOMInteractionServices): KeyboardCapability;
@@ -0,0 +1,3 @@
1
+ import { MoveCapability } from '@raphy-js/interaction/move';
2
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
3
+ export declare function createDOMMoveCapability(element: Element, services: DOMInteractionServices): MoveCapability;
@@ -0,0 +1,18 @@
1
+ import { TargetRef } from '@raphy-js/core';
2
+ import { NativeDragDropCapability } from '@raphy-js/interaction/drag-drop';
3
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
4
+ /** Native HTML transfer only. A drop never authorizes a source model mutation. */
5
+ export declare class DOMNativeDragDropRegistry {
6
+ private readonly _records;
7
+ private readonly _services;
8
+ private _active;
9
+ private _cancelledNonce;
10
+ private readonly _endGenerations;
11
+ private _generation;
12
+ constructor(services: DOMInteractionServices);
13
+ capability(element: Element, reference: TargetRef): NativeDragDropCapability;
14
+ private _subscribe;
15
+ private _recordAt;
16
+ private _revoke;
17
+ private _dispatch;
18
+ }
@@ -0,0 +1,3 @@
1
+ import { OutsideCapability } from '@raphy-js/interaction/outside';
2
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
3
+ export declare function createDOMOutsideCapability(element: Element, services: DOMInteractionServices): OutsideCapability;
@@ -0,0 +1,3 @@
1
+ import { PressCapability } from '@raphy-js/interaction/press';
2
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
3
+ export declare function createDOMPressCapability(element: Element, services: DOMInteractionServices): PressCapability;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@raphy-js/core/profile"),I=require("@raphy-js/interaction/profile"),A=require("@raphy-js/profile"),P=[I.CONTEXT_ACTION_PROFILE_CAPABILITY,I.FOCUS_PROFILE_CAPABILITY,I.FOCUS_NAVIGATION_PROFILE_CAPABILITY,I.PRESS_PROFILE_CAPABILITY,I.HOVER_PROFILE_CAPABILITY,I.KEYBOARD_PROFILE_CAPABILITY,I.MOVE_PROFILE_CAPABILITY,I.NATIVE_DRAG_DROP_PROFILE_CAPABILITY,I.GEOMETRY_PROFILE_CAPABILITY,I.POSITIONING_PROFILE_CAPABILITY,I.SCROLL_PROFILE_CAPABILITY,I.OUTSIDE_PROFILE_CAPABILITY,I.TEXT_EDITING_PROFILE_CAPABILITY,I.DRAG_DROP_PROFILE_CAPABILITY,I.INPUT_MODALITY_PROFILE_CAPABILITY,I.CLIPBOARD_PROFILE_CAPABILITY],T=A.defineTargetProfile({contracts:{node:"@raphy-js/dom/interaction/contracts/node",stylesheet:"@raphy-js/dom/contracts/stylesheet"},entrypoints:{runtime:A.moduleReference("@raphy-js/dom/interaction","RAPHY_DOM_INTERACTION_RUNTIME_ADAPTER")},id:"@raphy-js/dom/interaction",requires:[e.RAPHY_CORE_PROFILE.id,I.RAPHY_INTERACTION_PROFILE.id],supports:{aspects:[{openness:"open",reference:e.RAPHY_NODE_ASPECT},{openness:"open",reference:e.RAPHY_STYLE_ASPECT}],capabilities:P.map(_=>({openness:"open",reference:_}))},version:"1.0.0-dev.88"});exports.RAPHY_DOM_INTERACTION_TARGET_PROFILE=T;
@@ -0,0 +1,2 @@
1
+ /** Opt-in DOM Target Profile implementing the complete Interaction contribution. */
2
+ export declare const RAPHY_DOM_INTERACTION_TARGET_PROFILE: import('@raphy-js/profile').TargetProfileDefinition;
@@ -0,0 +1,48 @@
1
+ import { RAPHY_NODE_ASPECT as A, RAPHY_STYLE_ASPECT as _, RAPHY_CORE_PROFILE as P } from "@raphy-js/core/profile";
2
+ import { RAPHY_INTERACTION_PROFILE as e, CONTEXT_ACTION_PROFILE_CAPABILITY as T, FOCUS_PROFILE_CAPABILITY as O, FOCUS_NAVIGATION_PROFILE_CAPABILITY as R, PRESS_PROFILE_CAPABILITY as E, HOVER_PROFILE_CAPABILITY as L, KEYBOARD_PROFILE_CAPABILITY as o, MOVE_PROFILE_CAPABILITY as n, NATIVE_DRAG_DROP_PROFILE_CAPABILITY as r, GEOMETRY_PROFILE_CAPABILITY as C, POSITIONING_PROFILE_CAPABILITY as t, SCROLL_PROFILE_CAPABILITY as s, OUTSIDE_PROFILE_CAPABILITY as Y, TEXT_EDITING_PROFILE_CAPABILITY as i, DRAG_DROP_PROFILE_CAPABILITY as F, INPUT_MODALITY_PROFILE_CAPABILITY as p, CLIPBOARD_PROFILE_CAPABILITY as B } from "@raphy-js/interaction/profile";
3
+ import { defineTargetProfile as N, moduleReference as c } from "@raphy-js/profile";
4
+ const a = [
5
+ T,
6
+ O,
7
+ R,
8
+ E,
9
+ L,
10
+ o,
11
+ n,
12
+ r,
13
+ C,
14
+ t,
15
+ s,
16
+ Y,
17
+ i,
18
+ F,
19
+ p,
20
+ B
21
+ ], S = N({
22
+ contracts: {
23
+ node: "@raphy-js/dom/interaction/contracts/node",
24
+ stylesheet: "@raphy-js/dom/contracts/stylesheet"
25
+ },
26
+ entrypoints: {
27
+ runtime: c(
28
+ "@raphy-js/dom/interaction",
29
+ "RAPHY_DOM_INTERACTION_RUNTIME_ADAPTER"
30
+ )
31
+ },
32
+ id: "@raphy-js/dom/interaction",
33
+ requires: [P.id, e.id],
34
+ supports: {
35
+ aspects: [
36
+ { openness: "open", reference: A },
37
+ { openness: "open", reference: _ }
38
+ ],
39
+ capabilities: a.map((I) => ({
40
+ openness: "open",
41
+ reference: I
42
+ }))
43
+ },
44
+ version: "1.0.0-dev.88"
45
+ });
46
+ export {
47
+ S as RAPHY_DOM_INTERACTION_TARGET_PROFILE
48
+ };
@@ -0,0 +1,4 @@
1
+ import { RovingFocusCapability } from '@raphy-js/interaction/focus';
2
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
3
+ /** Platform-owned Tab stops and discovery; no component state is stored here. */
4
+ export declare function createDOMRovingFocusCapability(root: Element, services: DOMInteractionServices, applicationId: string, groups: Map<Element, () => void>): RovingFocusCapability;
@@ -0,0 +1,7 @@
1
+ import { ComponentEmits } from '@raphy-js/core';
2
+ import { DOMMountTarget } from '../runtime.js';
3
+ /** Profile-loaded DOM runtime adapter with the complete Interaction catalog. */
4
+ export declare const RAPHY_DOM_INTERACTION_RUNTIME_ADAPTER: Readonly<{
5
+ createRenderer: <Props = unknown, State = unknown, Emits extends ComponentEmits = Readonly<Record<never, never>>>(target: DOMMountTarget) => import('../index.js').DOMRendererDefinition<Props, State, Emits, import('@raphy-js/raph/debug/runtime/RaphRuntime').RaphRuntime>;
6
+ id: "@raphy-js/dom/interaction";
7
+ }>;
@@ -0,0 +1,4 @@
1
+ import { TextEditingCapability } from '@raphy-js/interaction/text-editing';
2
+ import { DOMInteractionServices } from './internal/DOMInteraction.types.js';
3
+ export declare function supportsDOMTextEditing(element: Element): boolean;
4
+ export declare function createDOMTextEditingCapability(element: Element, services: DOMInteractionServices): TextEditingCapability;