@develemit/web-hooks 0.3.1 → 0.5.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.
- package/CHANGELOG.md +16 -0
- package/README.md +115 -0
- package/dist/chunk-IVLRQ23V.js +483 -0
- package/dist/chunk-JTLQQSLO.js +143 -0
- package/dist/index.cjs +639 -7
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +44 -0
- package/dist/log-helpers-rkbgYqZW.d.cts +25 -0
- package/dist/log-helpers-rkbgYqZW.d.ts +25 -0
- package/dist/terminal-output.cjs +660 -0
- package/dist/terminal-output.d.cts +163 -0
- package/dist/terminal-output.d.ts +163 -0
- package/dist/terminal-output.js +47 -0
- package/dist/virtual-list.cjs +499 -0
- package/dist/virtual-list.d.cts +116 -0
- package/dist/virtual-list.d.ts +116 -0
- package/dist/virtual-list.js +287 -0
- package/package.json +20 -2
package/dist/index.d.cts
CHANGED
|
@@ -17,4 +17,6 @@ export { ServiceWorkerState, UpdateStateInput, UseServiceWorkerOptions, deriveUp
|
|
|
17
17
|
export { ShareInput, ShareResult, ShareStatus, canShareFiles, isShareCancel, shareOrCopy, shareTextFor, useShareFeedback } from './share.cjs';
|
|
18
18
|
export { InsetReading, UseKeyboardInsetOptions, computeKeyboardInset, isEditableElement, useKeyboardInset } from './keyboard-inset.cjs';
|
|
19
19
|
export { PushEnv, PushPermission, PushSubscriptionState, PushSupport, ResubscribeInput, UsePushSubscriptionOptions, getPushSupport, shouldResubscribe, urlBase64ToUint8Array, usePushSubscription } from './push.cjs';
|
|
20
|
+
export { AnsiColor, AnsiLine, AnsiSegment, AnsiStream, AnsiStreamOptions, AnsiStreamUpdate, AnsiStyle, DEFAULT_TAIL_THRESHOLD, LineBuffer, LineBufferOptions, LineBufferUpdate, ParseAnsiOptions, ScrollEventInfo, ScrollEventKind, ScrollMetrics, StreamCursor, UseFollowTailOptions, UseFollowTailResult, createAnsiParser, createAnsiStream, createLineBuffer, distanceFromEnd, isNearEnd, isUserScrollUp, parseAnsi, shouldStick, stripAnsi, unreadDelta, useFollowTail } from './terminal-output.cjs';
|
|
21
|
+
export { F as FAILURE_PATTERNS, a as Failure, b as FailurePattern, c as FailureTool, N as NOISE_PATTERNS, T as TextSegment, f as filterLines, d as findFailures, e as firstFailureIndex, i as isNoise, s as splitByMatch, t as tailMeaningful } from './log-helpers-rkbgYqZW.cjs';
|
|
20
22
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -17,4 +17,6 @@ export { ServiceWorkerState, UpdateStateInput, UseServiceWorkerOptions, deriveUp
|
|
|
17
17
|
export { ShareInput, ShareResult, ShareStatus, canShareFiles, isShareCancel, shareOrCopy, shareTextFor, useShareFeedback } from './share.js';
|
|
18
18
|
export { InsetReading, UseKeyboardInsetOptions, computeKeyboardInset, isEditableElement, useKeyboardInset } from './keyboard-inset.js';
|
|
19
19
|
export { PushEnv, PushPermission, PushSubscriptionState, PushSupport, ResubscribeInput, UsePushSubscriptionOptions, getPushSupport, shouldResubscribe, urlBase64ToUint8Array, usePushSubscription } from './push.js';
|
|
20
|
+
export { AnsiColor, AnsiLine, AnsiSegment, AnsiStream, AnsiStreamOptions, AnsiStreamUpdate, AnsiStyle, DEFAULT_TAIL_THRESHOLD, LineBuffer, LineBufferOptions, LineBufferUpdate, ParseAnsiOptions, ScrollEventInfo, ScrollEventKind, ScrollMetrics, StreamCursor, UseFollowTailOptions, UseFollowTailResult, createAnsiParser, createAnsiStream, createLineBuffer, distanceFromEnd, isNearEnd, isUserScrollUp, parseAnsi, shouldStick, stripAnsi, unreadDelta, useFollowTail } from './terminal-output.js';
|
|
21
|
+
export { F as FAILURE_PATTERNS, a as Failure, b as FailurePattern, c as FailureTool, N as NOISE_PATTERNS, T as TextSegment, f as filterLines, d as findFailures, e as firstFailureIndex, i as isNoise, s as splitByMatch, t as tailMeaningful } from './log-helpers-rkbgYqZW.js';
|
|
20
22
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,30 @@ import {
|
|
|
22
22
|
urlBase64ToUint8Array,
|
|
23
23
|
usePushSubscription
|
|
24
24
|
} from "./chunk-R2PFNE3U.js";
|
|
25
|
+
import {
|
|
26
|
+
createAnsiStream,
|
|
27
|
+
createLineBuffer
|
|
28
|
+
} from "./chunk-JTLQQSLO.js";
|
|
29
|
+
import {
|
|
30
|
+
DEFAULT_TAIL_THRESHOLD,
|
|
31
|
+
FAILURE_PATTERNS,
|
|
32
|
+
NOISE_PATTERNS,
|
|
33
|
+
createAnsiParser,
|
|
34
|
+
distanceFromEnd,
|
|
35
|
+
filterLines,
|
|
36
|
+
findFailures,
|
|
37
|
+
firstFailureIndex,
|
|
38
|
+
isNearEnd,
|
|
39
|
+
isNoise,
|
|
40
|
+
isUserScrollUp,
|
|
41
|
+
parseAnsi,
|
|
42
|
+
shouldStick,
|
|
43
|
+
splitByMatch,
|
|
44
|
+
stripAnsi,
|
|
45
|
+
tailMeaningful,
|
|
46
|
+
unreadDelta,
|
|
47
|
+
useFollowTail
|
|
48
|
+
} from "./chunk-IVLRQ23V.js";
|
|
25
49
|
import {
|
|
26
50
|
nextDelay,
|
|
27
51
|
useVisibilityPolling
|
|
@@ -117,19 +141,29 @@ export {
|
|
|
117
141
|
CLOSE_DISTANCE_PX,
|
|
118
142
|
COARSE_POINTER_QUERY,
|
|
119
143
|
DEFAULT_IGNORE_SELECTOR,
|
|
144
|
+
DEFAULT_TAIL_THRESHOLD,
|
|
145
|
+
FAILURE_PATTERNS,
|
|
120
146
|
FOCUSABLE_SELECTOR,
|
|
121
147
|
FORWARD_ZONE_PX,
|
|
122
148
|
MAX_SWIPE_DURATION_MS,
|
|
149
|
+
NOISE_PATTERNS,
|
|
123
150
|
OPEN_DISTANCE_PX,
|
|
124
151
|
REDUCED_MOTION_QUERY,
|
|
125
152
|
VERTICAL_CANCEL_PX,
|
|
126
153
|
canShareFiles,
|
|
127
154
|
computeKeyboardInset,
|
|
128
155
|
copyText,
|
|
156
|
+
createAnsiParser,
|
|
157
|
+
createAnsiStream,
|
|
129
158
|
createDebouncer,
|
|
159
|
+
createLineBuffer,
|
|
130
160
|
deriveUpdateState,
|
|
131
161
|
detectApple,
|
|
132
162
|
detectPlatform,
|
|
163
|
+
distanceFromEnd,
|
|
164
|
+
filterLines,
|
|
165
|
+
findFailures,
|
|
166
|
+
firstFailureIndex,
|
|
133
167
|
focusableWithin,
|
|
134
168
|
getPushSupport,
|
|
135
169
|
handleBeforeUnload,
|
|
@@ -140,23 +174,32 @@ export {
|
|
|
140
174
|
isInsideHorizontalScroller,
|
|
141
175
|
isIos,
|
|
142
176
|
isIosSafari,
|
|
177
|
+
isNearEnd,
|
|
178
|
+
isNoise,
|
|
143
179
|
isOutside,
|
|
144
180
|
isPrimaryPress,
|
|
145
181
|
isShareCancel,
|
|
146
182
|
isStandalone,
|
|
183
|
+
isUserScrollUp,
|
|
147
184
|
lockScroll,
|
|
148
185
|
matchHotkey,
|
|
149
186
|
nextDelay,
|
|
150
187
|
nextFocusTarget,
|
|
151
188
|
nextHeight,
|
|
189
|
+
parseAnsi,
|
|
152
190
|
parseHotkey,
|
|
153
191
|
readText,
|
|
154
192
|
resolveSwipeIntent,
|
|
155
193
|
shareOrCopy,
|
|
156
194
|
shareTextFor,
|
|
157
195
|
shouldResubscribe,
|
|
196
|
+
shouldStick,
|
|
197
|
+
splitByMatch,
|
|
158
198
|
startInstallPromptCapture,
|
|
199
|
+
stripAnsi,
|
|
200
|
+
tailMeaningful,
|
|
159
201
|
unlockScroll,
|
|
202
|
+
unreadDelta,
|
|
160
203
|
unregisterAll,
|
|
161
204
|
urlBase64ToUint8Array,
|
|
162
205
|
useAutoGrowTextarea,
|
|
@@ -167,6 +210,7 @@ export {
|
|
|
167
210
|
useDrawerSwipe,
|
|
168
211
|
useEscape,
|
|
169
212
|
useFocusTrap,
|
|
213
|
+
useFollowTail,
|
|
170
214
|
useHotkey,
|
|
171
215
|
useInstallPrompt,
|
|
172
216
|
useIsStandalone,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface TextSegment {
|
|
2
|
+
text: string;
|
|
3
|
+
match: boolean;
|
|
4
|
+
}
|
|
5
|
+
type FailureTool = 'vitest' | 'nx' | 'tsc' | 'pnpm' | 'npm' | 'docker' | 'generic';
|
|
6
|
+
interface FailurePattern {
|
|
7
|
+
tool: FailureTool;
|
|
8
|
+
kind: string;
|
|
9
|
+
pattern: RegExp;
|
|
10
|
+
}
|
|
11
|
+
interface Failure {
|
|
12
|
+
index: number;
|
|
13
|
+
tool: FailureTool;
|
|
14
|
+
kind: string;
|
|
15
|
+
}
|
|
16
|
+
declare function filterLines(lines: readonly string[], query: string): number[];
|
|
17
|
+
declare function splitByMatch(line: string, query: string): TextSegment[];
|
|
18
|
+
declare const FAILURE_PATTERNS: readonly FailurePattern[];
|
|
19
|
+
declare function findFailures(lines: readonly string[], patterns?: readonly FailurePattern[]): Failure[];
|
|
20
|
+
declare function firstFailureIndex(lines: readonly string[], patterns?: readonly FailurePattern[]): number;
|
|
21
|
+
declare const NOISE_PATTERNS: readonly RegExp[];
|
|
22
|
+
declare function isNoise(line: string, patterns?: readonly RegExp[]): boolean;
|
|
23
|
+
declare function tailMeaningful(lines: readonly string[], n: number, patterns?: readonly RegExp[]): string[];
|
|
24
|
+
|
|
25
|
+
export { FAILURE_PATTERNS as F, NOISE_PATTERNS as N, type TextSegment as T, type Failure as a, type FailurePattern as b, type FailureTool as c, findFailures as d, firstFailureIndex as e, filterLines as f, isNoise as i, splitByMatch as s, tailMeaningful as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface TextSegment {
|
|
2
|
+
text: string;
|
|
3
|
+
match: boolean;
|
|
4
|
+
}
|
|
5
|
+
type FailureTool = 'vitest' | 'nx' | 'tsc' | 'pnpm' | 'npm' | 'docker' | 'generic';
|
|
6
|
+
interface FailurePattern {
|
|
7
|
+
tool: FailureTool;
|
|
8
|
+
kind: string;
|
|
9
|
+
pattern: RegExp;
|
|
10
|
+
}
|
|
11
|
+
interface Failure {
|
|
12
|
+
index: number;
|
|
13
|
+
tool: FailureTool;
|
|
14
|
+
kind: string;
|
|
15
|
+
}
|
|
16
|
+
declare function filterLines(lines: readonly string[], query: string): number[];
|
|
17
|
+
declare function splitByMatch(line: string, query: string): TextSegment[];
|
|
18
|
+
declare const FAILURE_PATTERNS: readonly FailurePattern[];
|
|
19
|
+
declare function findFailures(lines: readonly string[], patterns?: readonly FailurePattern[]): Failure[];
|
|
20
|
+
declare function firstFailureIndex(lines: readonly string[], patterns?: readonly FailurePattern[]): number;
|
|
21
|
+
declare const NOISE_PATTERNS: readonly RegExp[];
|
|
22
|
+
declare function isNoise(line: string, patterns?: readonly RegExp[]): boolean;
|
|
23
|
+
declare function tailMeaningful(lines: readonly string[], n: number, patterns?: readonly RegExp[]): string[];
|
|
24
|
+
|
|
25
|
+
export { FAILURE_PATTERNS as F, NOISE_PATTERNS as N, type TextSegment as T, type Failure as a, type FailurePattern as b, type FailureTool as c, findFailures as d, firstFailureIndex as e, filterLines as f, isNoise as i, splitByMatch as s, tailMeaningful as t };
|