@@ -113,11 +113,13 @@ declare namespace Component {
113
113
ready ?: ( this : ComponentInstance ) => void
114
114
/**
115
115
* Triggers when the Component receives focus.
116
+ *
116
117
* This event can fire multiple times during the component's lifecycle
117
118
*/
118
119
focus ?: ( this : ComponentInstance ) => void
119
120
/**
120
121
* Triggers when the Component loses focus.
122
+ *
121
123
* This event can fire multiple times during the component's lifecycle
122
124
*/
123
125
unfocus ?: ( this : ComponentInstance ) => void
@@ -130,7 +132,31 @@ declare namespace Component {
130
132
*
131
133
* Note: This hook will fire continuously, multiple times per second!
132
134
*/
133
- frameTick ?: ( this : ComponentInstance ) => void
135
+ frameTick ?: ( this : ComponentInstance ) => void ,
136
+ /**
137
+ * Fires when the component enters the viewport _margin_ and is attached to the render tree
138
+ *
139
+ * This event can fire multiple times during the component's lifecycle
140
+ */
141
+ attach ?: ( this : ComponentInstance ) => void ,
142
+ /**
143
+ * Fires when the component leaves the viewport _margin_ and is detached from the render tree
144
+ *
145
+ * This event can fire multiple times during the component's lifecycle
146
+ */
147
+ detach ?: ( this : ComponentInstance ) => void ,
148
+ /**
149
+ * Fires when the component enters the visible viewport
150
+ *
151
+ * This event can fire multiple times during the component's lifecycle
152
+ */
153
+ enter ?: ( this : ComponentInstance ) => void ,
154
+ /**
155
+ * Fires when the component leaves the visible viewport
156
+ *
157
+ * This event can fire multiple times during the component's lifecycle
158
+ */
159
+ exit ?: ( this : ComponentInstance ) => void ,
134
160
}
135
161
136
162
export interface ComponentInstance {
0 commit comments