@chisquare-tech/origine-ngx-apps-code 0.9.0 → 0.10.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chisquare-tech/origine-ngx-apps-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Origine's Code module screens: repositories, files, commits, branches, pull requests and review, repository settings.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -207,6 +207,19 @@ interface Ref {
|
|
|
207
207
|
merged: boolean;
|
|
208
208
|
canDelete: boolean;
|
|
209
209
|
}
|
|
210
|
+
/** One file a code search found, with its matching lines (DEV-11). */
|
|
211
|
+
interface CodeHit {
|
|
212
|
+
repoId: string;
|
|
213
|
+
repo: string;
|
|
214
|
+
projectKey: string;
|
|
215
|
+
path: string;
|
|
216
|
+
nameMatch?: boolean;
|
|
217
|
+
lines: {
|
|
218
|
+
number: number;
|
|
219
|
+
text: string;
|
|
220
|
+
ranges: [number, number][] | null;
|
|
221
|
+
}[];
|
|
222
|
+
}
|
|
210
223
|
/** A repository collaborator (DEV-06): access beyond the project role, for one repository. */
|
|
211
224
|
interface Collaborator {
|
|
212
225
|
repoId: string;
|
|
@@ -465,6 +478,11 @@ declare class CodeApi {
|
|
|
465
478
|
}): Observable<FileDiff>;
|
|
466
479
|
compare(project: string, name: string, base: string, head: string): Observable<Comparison>;
|
|
467
480
|
refs(project: string, name: string, kind?: 'branch' | 'tag', q?: string): Observable<Ref[]>;
|
|
481
|
+
/** Searches the repository's default branch (text, or a regular expression). */
|
|
482
|
+
searchCode(project: string, name: string, q: string, regex?: boolean): Observable<{
|
|
483
|
+
hits: CodeHit[];
|
|
484
|
+
repos: number;
|
|
485
|
+
}>;
|
|
468
486
|
collaborators(project: string, name: string): Observable<Collaborator[]>;
|
|
469
487
|
setCollaborator(project: string, name: string, userId: string, permission: string): Observable<Collaborator>;
|
|
470
488
|
removeCollaborator(project: string, name: string, userId: string): Observable<unknown>;
|
|
@@ -775,6 +793,8 @@ declare class RepoHomePage extends RepoPage {
|
|
|
775
793
|
protected readonly proto: _angular_core.WritableSignal<"https" | "ssh">;
|
|
776
794
|
protected readonly cloneOpen: _angular_core.WritableSignal<boolean>;
|
|
777
795
|
protected readonly addOpen: _angular_core.WritableSignal<boolean>;
|
|
796
|
+
protected codeQuery: string;
|
|
797
|
+
protected searchCode(): void;
|
|
778
798
|
protected readonly copied: _angular_core.WritableSignal<boolean>;
|
|
779
799
|
protected readonly finding: _angular_core.WritableSignal<boolean>;
|
|
780
800
|
protected readonly fq: _angular_core.WritableSignal<string>;
|
|
@@ -1244,5 +1264,25 @@ declare class NewFilePage extends RepoPage {
|
|
|
1244
1264
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NewFilePage, "o-code-new-file", never, {}, {}, never, never, true, never>;
|
|
1245
1265
|
}
|
|
1246
1266
|
|
|
1247
|
-
|
|
1248
|
-
|
|
1267
|
+
interface Piece {
|
|
1268
|
+
text: string;
|
|
1269
|
+
hit: boolean;
|
|
1270
|
+
}
|
|
1271
|
+
declare class CodeSearchPage extends RepoPage {
|
|
1272
|
+
private readonly router;
|
|
1273
|
+
protected readonly hits: _angular_core.WritableSignal<CodeHit[]>;
|
|
1274
|
+
protected readonly searched: _angular_core.WritableSignal<boolean>;
|
|
1275
|
+
protected text: string;
|
|
1276
|
+
protected regex: boolean;
|
|
1277
|
+
constructor();
|
|
1278
|
+
protected onRepo(r: Repo): void;
|
|
1279
|
+
protected go(): void;
|
|
1280
|
+
private load;
|
|
1281
|
+
/** A line cut into plain and matched pieces (ranges are byte offsets; the text is UTF-8). */
|
|
1282
|
+
protected pieces(text: string, ranges: [number, number][] | null): Piece[];
|
|
1283
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CodeSearchPage, never>;
|
|
1284
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CodeSearchPage, "o-code-search", never, {}, {}, never, never, true, never>;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
export { BranchesPage, CodeApi, CodeHost, CodeSearchPage, CommitBox, CommitPage, CommitsPage, CurrentRepo, CurrentRepoPage, DiffView, FilePage, NewFilePage, NewRepoPage, People, PullPage, PullsPage, RefPicker, ReleasesPage, RepoHomePage, RepoPage, RepoSettingsPage, ReposPage, TOKEN_CSS, ago, apiMessage, checkDot, copy, dayLabel, initials, langColour, matchesPattern, pair, shortDate, size, verifyWhy };
|
|
1288
|
+
export type { BlameHunk, Blob, CheckStatus, CodeHit, CodePerson, CodeProject, Collaborator, Commit, CommitChoice, CommitDetail, CommitRequest, CommitResult, Comparison, DiffHunk, DiffLine, Entry, FileChange, FileDiff, Gate, GateRow, GitPerson, Language, LineComment, NewComment, PRComment, Protection, Pull, PullBrief, Ref, Release, ReleaseAsset, ReleaseInput, Repo, Review, ReviewBrief, SplitRow, Thread, ThreadReply, Timeline, Tree };
|