@xxmachina/components 19.51.0 → 19.80.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/fesm2022/xxmachina-components-extras-flow.mjs +73 -140
- package/fesm2022/xxmachina-components-extras-flow.mjs.map +1 -1
- package/fesm2022/xxmachina-components-features-query.mjs +3 -29
- package/fesm2022/xxmachina-components-features-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-groups-query-form.mjs +0 -54
- package/fesm2022/xxmachina-components-groups-query-form.mjs.map +1 -1
- package/fesm2022/xxmachina-components-molecules-inline-edit-field.mjs +0 -1
- package/fesm2022/xxmachina-components-molecules-inline-edit-field.mjs.map +1 -1
- package/fesm2022/xxmachina-components-molecules-user-avatar-menu.mjs +96 -0
- package/fesm2022/xxmachina-components-molecules-user-avatar-menu.mjs.map +1 -0
- package/fesm2022/xxmachina-components-molecules-weekly-header.mjs +2 -2
- package/fesm2022/xxmachina-components-molecules-workspace-selector.mjs +123 -0
- package/fesm2022/xxmachina-components-molecules-workspace-selector.mjs.map +1 -0
- package/fesm2022/xxmachina-components-organisms-calendar-section.mjs +2 -2
- package/fesm2022/xxmachina-components-organisms-calendar-section.mjs.map +1 -1
- package/fesm2022/xxmachina-components-organisms-event-input-section.mjs +0 -1
- package/fesm2022/xxmachina-components-organisms-event-input-section.mjs.map +1 -1
- package/fesm2022/xxmachina-components-organisms-terminal-input-section.mjs +2 -18
- package/fesm2022/xxmachina-components-organisms-terminal-input-section.mjs.map +1 -1
- package/fesm2022/xxmachina-components-organisms-video-trimmer-section.mjs +0 -3
- package/fesm2022/xxmachina-components-organisms-video-trimmer-section.mjs.map +1 -1
- package/fesm2022/xxmachina-components-organisms-xterm.mjs +283 -261
- package/fesm2022/xxmachina-components-organisms-xterm.mjs.map +1 -1
- package/fesm2022/xxmachina-components-pages-command.mjs +3 -9
- package/fesm2022/xxmachina-components-pages-command.mjs.map +1 -1
- package/fesm2022/xxmachina-components-pages-query-v2.mjs +0 -13
- package/fesm2022/xxmachina-components-pages-query-v2.mjs.map +1 -1
- package/fesm2022/xxmachina-components-pages-query.mjs +3 -67
- package/fesm2022/xxmachina-components-pages-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-pages-thread.mjs +2 -18
- package/fesm2022/xxmachina-components-pages-thread.mjs.map +1 -1
- package/fesm2022/{xxmachina-components-routes-commands-command.routes-CSwIdXZg.mjs → xxmachina-components-routes-commands-command.routes-Ca2yVrwL.mjs} +1 -2
- package/fesm2022/xxmachina-components-routes-commands-command.routes-Ca2yVrwL.mjs.map +1 -0
- package/fesm2022/{xxmachina-components-routes-commands-pages.routes-j2xVop4W.mjs → xxmachina-components-routes-commands-pages.routes-COpFeEsz.mjs} +2 -2
- package/fesm2022/{xxmachina-components-routes-commands-pages.routes-j2xVop4W.mjs.map → xxmachina-components-routes-commands-pages.routes-COpFeEsz.mjs.map} +1 -1
- package/fesm2022/xxmachina-components-routes-commands.mjs +1 -2
- package/fesm2022/xxmachina-components-routes-commands.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-pages.mjs +0 -1
- package/fesm2022/xxmachina-components-routes-pages.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-queries.mjs +0 -2
- package/fesm2022/xxmachina-components-routes-queries.mjs.map +1 -1
- package/fesm2022/{xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs → xxmachina-components-routes-query-pages.routes-BNuONo3g.mjs} +1 -5
- package/fesm2022/xxmachina-components-routes-query-pages.routes-BNuONo3g.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-query.mjs +1 -1
- package/fesm2022/{xxmachina-components-routes-resources-pages.routes-CRXxavHb.mjs → xxmachina-components-routes-resources-pages.routes-DEu2qpeu.mjs} +2 -2
- package/fesm2022/{xxmachina-components-routes-resources-pages.routes-CRXxavHb.mjs.map → xxmachina-components-routes-resources-pages.routes-DEu2qpeu.mjs.map} +1 -1
- package/fesm2022/{xxmachina-components-routes-resources-resource.routes-CkkmqB2_.mjs → xxmachina-components-routes-resources-resource.routes-CWxi2agj.mjs} +1 -2
- package/fesm2022/xxmachina-components-routes-resources-resource.routes-CWxi2agj.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-resources.mjs +1 -1
- package/fesm2022/xxmachina-components-routes-transformer.mjs +0 -1
- package/fesm2022/xxmachina-components-routes-transformer.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-forms-query.mjs +1 -1
- package/fesm2022/xxmachina-components-services-forms-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-graphql.mjs +0 -4
- package/fesm2022/xxmachina-components-services-graphql.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-json-schema.mjs +6 -12
- package/fesm2022/xxmachina-components-services-json-schema.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-query.mjs +0 -7
- package/fesm2022/xxmachina-components-services-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-recording.mjs +0 -13
- package/fesm2022/xxmachina-components-services-recording.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-thread.mjs +0 -2
- package/fesm2022/xxmachina-components-services-thread.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-version.mjs +171 -0
- package/fesm2022/xxmachina-components-services-version.mjs.map +1 -0
- package/fesm2022/xxmachina-components-services-workspace-switcher.mjs +9 -0
- package/fesm2022/xxmachina-components-services-workspace-switcher.mjs.map +1 -0
- package/fesm2022/xxmachina-components-templates-agent.mjs +98 -146
- package/fesm2022/xxmachina-components-templates-agent.mjs.map +1 -1
- package/fesm2022/xxmachina-components-templates-background.mjs +10 -30
- package/fesm2022/xxmachina-components-templates-background.mjs.map +1 -1
- package/fesm2022/xxmachina-components-templates-env.mjs +295 -0
- package/fesm2022/xxmachina-components-templates-env.mjs.map +1 -0
- package/fesm2022/xxmachina-components-templates-flow-nodes-issue.mjs.map +1 -1
- package/fesm2022/xxmachina-components-templates-flow.mjs +1 -1
- package/fesm2022/xxmachina-components-templates-flow.mjs.map +1 -1
- package/fesm2022/xxmachina-components-templates-machina-icon-button-menu.mjs +78 -0
- package/fesm2022/xxmachina-components-templates-machina-icon-button-menu.mjs.map +1 -0
- package/fesm2022/xxmachina-components.mjs +9 -10
- package/fesm2022/xxmachina-components.mjs.map +1 -1
- package/package.json +25 -1
- package/types/xxmachina-components-extras-flow.d.ts +8 -43
- package/types/xxmachina-components-extras-flow.d.ts.map +1 -1
- package/types/xxmachina-components-features-query.d.ts +3 -24
- package/types/xxmachina-components-features-query.d.ts.map +1 -1
- package/types/xxmachina-components-groups-query-form.d.ts +2 -2
- package/types/xxmachina-components-molecules-user-avatar-menu.d.ts +19 -0
- package/types/xxmachina-components-molecules-user-avatar-menu.d.ts.map +1 -0
- package/types/xxmachina-components-molecules-workspace-selector.d.ts +25 -0
- package/types/xxmachina-components-molecules-workspace-selector.d.ts.map +1 -0
- package/types/xxmachina-components-organisms-xterm.d.ts +130 -111
- package/types/xxmachina-components-organisms-xterm.d.ts.map +1 -1
- package/types/xxmachina-components-pages-query-v2.d.ts +0 -3
- package/types/xxmachina-components-pages-query-v2.d.ts.map +1 -1
- package/types/xxmachina-components-pages-query.d.ts +0 -19
- package/types/xxmachina-components-pages-query.d.ts.map +1 -1
- package/types/xxmachina-components-services-forms-query.d.ts +1 -1
- package/types/xxmachina-components-services-graphql.d.ts +0 -3
- package/types/xxmachina-components-services-graphql.d.ts.map +1 -1
- package/types/xxmachina-components-services-query.d.ts +0 -7
- package/types/xxmachina-components-services-query.d.ts.map +1 -1
- package/types/xxmachina-components-services-version.d.ts +32 -0
- package/types/xxmachina-components-services-version.d.ts.map +1 -0
- package/types/xxmachina-components-services-workspace-switcher.d.ts +17 -0
- package/types/xxmachina-components-services-workspace-switcher.d.ts.map +1 -0
- package/types/xxmachina-components-templates-agent.d.ts +2 -1
- package/types/xxmachina-components-templates-agent.d.ts.map +1 -1
- package/types/xxmachina-components-templates-env.d.ts +43 -0
- package/types/xxmachina-components-templates-env.d.ts.map +1 -0
- package/types/xxmachina-components-templates-flow-nodes-issue.d.ts +0 -2
- package/types/xxmachina-components-templates-flow-nodes-issue.d.ts.map +1 -1
- package/types/xxmachina-components-templates-machina-icon-button-menu.d.ts +18 -0
- package/types/xxmachina-components-templates-machina-icon-button-menu.d.ts.map +1 -0
- package/types/xxmachina-components.d.ts +2 -0
- package/types/xxmachina-components.d.ts.map +1 -1
- package/fesm2022/xxmachina-components-routes-commands-command.routes-CSwIdXZg.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-resources-resource.routes-CkkmqB2_.mjs.map +0 -1
|
@@ -1,10 +1,53 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { ILinkProvider, Terminal, ILink, ITerminalAddon } from '@xterm/xterm';
|
|
4
4
|
import * as _ng_atomic_core from '@ng-atomic/core';
|
|
5
5
|
import { InjectableComponent, NgAtomicComponent } from '@ng-atomic/core';
|
|
6
6
|
import * as _ng_atomic_common_services_ui from '@ng-atomic/common/services/ui';
|
|
7
7
|
|
|
8
|
+
type ServerUUIDGetter = () => string | undefined;
|
|
9
|
+
type TokenGetter = () => string | undefined;
|
|
10
|
+
type DeployVersionGetter = () => string | null | undefined;
|
|
11
|
+
interface ProxyEndpoints {
|
|
12
|
+
apiNext: string;
|
|
13
|
+
hasura: string;
|
|
14
|
+
}
|
|
15
|
+
type EndpointsGetter = () => ProxyEndpoints | undefined;
|
|
16
|
+
type ProxyEnvName = 'dev' | 'stg' | 'prod';
|
|
17
|
+
type ProxyEnvGetter = () => ProxyEnvName | undefined;
|
|
18
|
+
|
|
19
|
+
declare function deployVersionToHostSuffix(version: string | null | undefined): string;
|
|
20
|
+
|
|
21
|
+
declare function encodeUrlHandoff(token: string, endpoints: ProxyEndpoints, env?: ProxyEnvName): string;
|
|
22
|
+
declare function appendUrlHandoff(proxyUrl: string, token: string, endpoints: ProxyEndpoints, env?: ProxyEnvName): string;
|
|
23
|
+
|
|
24
|
+
declare function toProxyUrl(serverUUID: string, localhostUrl: string, deployVersion?: string | null): string | null;
|
|
25
|
+
|
|
26
|
+
interface OpenWebProxyOptions {
|
|
27
|
+
serverUUID: string;
|
|
28
|
+
port: number | string;
|
|
29
|
+
path?: string;
|
|
30
|
+
token?: string;
|
|
31
|
+
endpoints?: ProxyEndpoints;
|
|
32
|
+
env?: ProxyEnvName;
|
|
33
|
+
deployVersion?: string | null;
|
|
34
|
+
handler?: (event: MouseEvent | undefined, url: string) => void;
|
|
35
|
+
}
|
|
36
|
+
declare function openWebProxyForPort(opts: OpenWebProxyOptions): void;
|
|
37
|
+
|
|
38
|
+
declare class ProxyLinkProvider implements ILinkProvider {
|
|
39
|
+
private readonly _terminal;
|
|
40
|
+
private readonly _getServerUUID;
|
|
41
|
+
private readonly _getToken?;
|
|
42
|
+
private readonly _handler;
|
|
43
|
+
private readonly _getDeployVersion?;
|
|
44
|
+
private readonly _getEndpoints?;
|
|
45
|
+
private readonly _onMissingToken?;
|
|
46
|
+
private readonly _getEnv?;
|
|
47
|
+
constructor(_terminal: Terminal, _getServerUUID: ServerUUIDGetter, _getToken?: TokenGetter | undefined, _handler?: (event: MouseEvent, proxyUrl: string) => void, _getDeployVersion?: DeployVersionGetter | undefined, _getEndpoints?: EndpointsGetter | undefined, _onMissingToken?: (() => void) | undefined, _getEnv?: (() => "dev" | "stg" | "prod" | undefined) | undefined);
|
|
48
|
+
provideLinks(bufferLineNumber: number, callback: (links: ILink[] | undefined) => void): void;
|
|
49
|
+
}
|
|
50
|
+
|
|
8
51
|
declare enum XtermActionId {
|
|
9
52
|
DATA_INPUT = "xterm:data-input",
|
|
10
53
|
RESIZED = "xterm:resized",
|
|
@@ -12,20 +55,15 @@ declare enum XtermActionId {
|
|
|
12
55
|
FILE_LINK_CLICK = "xterm:file-link-click",
|
|
13
56
|
FOCUS_INPUT_REQUEST = "xterm:focus-input-request"
|
|
14
57
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
declare const XTERM_PROXY_ENDPOINTS: InjectionToken<() => {
|
|
26
|
-
apiNext: string;
|
|
27
|
-
hasura: string;
|
|
28
|
-
} | undefined>;
|
|
58
|
+
interface XtermSessionContext {
|
|
59
|
+
readonly getServerUUID?: () => string | undefined;
|
|
60
|
+
readonly getProxyToken?: () => string | undefined;
|
|
61
|
+
readonly getDeployVersion?: () => string | null | undefined;
|
|
62
|
+
readonly getProxyEndpoints?: () => ProxyEndpoints | undefined;
|
|
63
|
+
readonly getProxyEnv?: () => 'dev' | 'stg' | 'prod' | undefined;
|
|
64
|
+
readonly onMissingToken?: () => void;
|
|
65
|
+
}
|
|
66
|
+
declare const XTERM_SESSION_CONTEXT: InjectionToken<XtermSessionContext>;
|
|
29
67
|
declare class XtermOrganismStore extends InjectableComponent {
|
|
30
68
|
static readonly DI: {
|
|
31
69
|
provide: (typeOrComponent: Parameters<(typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
@@ -98,23 +136,49 @@ declare class XtermOrganismStore extends InjectableComponent {
|
|
|
98
136
|
readonly queryResult: _angular_core.InputSignal<string>;
|
|
99
137
|
readonly useInteractiveTheme: _angular_core.InputSignal<boolean>;
|
|
100
138
|
readonly totalWritten: _angular_core.InputSignal<number>;
|
|
101
|
-
|
|
102
|
-
readonly getServerUUID: (() => string | undefined) | null;
|
|
103
|
-
/** Injected CLI token getter for proxy link auto-auth (optional) */
|
|
104
|
-
readonly getProxyToken: (() => string | undefined) | null;
|
|
105
|
-
/** Injected deploy version getter for proxy URL host suffix (optional) */
|
|
106
|
-
readonly getDeployVersion: (() => string | null | undefined) | null;
|
|
107
|
-
/** Injected endpoints getter for opener-driven environment switching (optional) */
|
|
108
|
-
readonly getProxyEndpoints: (() => {
|
|
109
|
-
apiNext: string;
|
|
110
|
-
hasura: string;
|
|
111
|
-
} | undefined) | null;
|
|
139
|
+
readonly sessionContext: XtermSessionContext | null;
|
|
112
140
|
constructor();
|
|
113
141
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XtermOrganismStore, never>;
|
|
114
142
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XtermOrganismStore, "organisms-xterm", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "queryResult": { "alias": "queryResult"; "required": false; "isSignal": true; }; "useInteractiveTheme": { "alias": "useInteractiveTheme"; "required": false; "isSignal": true; }; "totalWritten": { "alias": "totalWritten"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
115
143
|
}
|
|
116
144
|
|
|
117
145
|
type ImageAddon = any;
|
|
146
|
+
declare const DISPLAY_THEME: {
|
|
147
|
+
background: string;
|
|
148
|
+
foreground: string;
|
|
149
|
+
cursor: string;
|
|
150
|
+
cyan: string;
|
|
151
|
+
brightCyan: string;
|
|
152
|
+
green: string;
|
|
153
|
+
brightGreen: string;
|
|
154
|
+
magenta: string;
|
|
155
|
+
brightMagenta: string;
|
|
156
|
+
yellow: string;
|
|
157
|
+
brightYellow: string;
|
|
158
|
+
red: string;
|
|
159
|
+
brightRed: string;
|
|
160
|
+
};
|
|
161
|
+
declare const INTERACTIVE_THEME: {
|
|
162
|
+
background: string;
|
|
163
|
+
foreground: string;
|
|
164
|
+
cursor: string;
|
|
165
|
+
black: string;
|
|
166
|
+
red: string;
|
|
167
|
+
green: string;
|
|
168
|
+
yellow: string;
|
|
169
|
+
blue: string;
|
|
170
|
+
magenta: string;
|
|
171
|
+
cyan: string;
|
|
172
|
+
white: string;
|
|
173
|
+
brightBlack: string;
|
|
174
|
+
brightRed: string;
|
|
175
|
+
brightGreen: string;
|
|
176
|
+
brightYellow: string;
|
|
177
|
+
brightBlue: string;
|
|
178
|
+
brightMagenta: string;
|
|
179
|
+
brightCyan: string;
|
|
180
|
+
brightWhite: string;
|
|
181
|
+
};
|
|
118
182
|
declare class XtermOrganism extends NgAtomicComponent implements AfterViewInit, OnDestroy {
|
|
119
183
|
readonly container: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
120
184
|
protected readonly store: XtermOrganismStore;
|
|
@@ -128,30 +192,19 @@ declare class XtermOrganism extends NgAtomicComponent implements AfterViewInit,
|
|
|
128
192
|
private fileLinksAddon;
|
|
129
193
|
private resizeObserver?;
|
|
130
194
|
private lastDataLength;
|
|
131
|
-
/** Tracks how many bytes have been processed (for totalWritten-based diff detection) */
|
|
132
195
|
private lastProcessedLength;
|
|
133
196
|
private readonly terminalInitialized;
|
|
134
|
-
/** Tracks if initialization was skipped due to container being too small */
|
|
135
197
|
private initSkippedDueToSize;
|
|
136
|
-
/** IDisposable refs for explicit cleanup (prevents memory leaks on mobile) */
|
|
137
198
|
private readonly disposables;
|
|
138
|
-
/** Timer refs for cleanup in ngOnDestroy */
|
|
139
199
|
private stableTimer;
|
|
140
200
|
private resizeTimer;
|
|
141
201
|
private fallbackTimer;
|
|
142
202
|
constructor();
|
|
143
203
|
private writeDataToTerminal;
|
|
144
|
-
/**
|
|
145
|
-
* Write data using totalWritten for accurate diff detection.
|
|
146
|
-
* This method handles buffer overflow scenarios correctly.
|
|
147
|
-
* When newBytesCount >= data.length, performs a full redraw with terminal.reset()
|
|
148
|
-
* to prevent stale output from previous sessions remaining on screen.
|
|
149
|
-
* @param data The current buffer content
|
|
150
|
-
* @param totalWritten Total bytes written to the buffer (cumulative)
|
|
151
|
-
*/
|
|
152
204
|
private writeDataWithTotalWritten;
|
|
153
205
|
ngAfterViewInit(): void;
|
|
154
206
|
private initializeTerminal;
|
|
207
|
+
private fitToViewport;
|
|
155
208
|
ngOnDestroy(): void;
|
|
156
209
|
private markInitialized;
|
|
157
210
|
private loadImageAddon;
|
|
@@ -161,24 +214,17 @@ declare class XtermOrganism extends NgAtomicComponent implements AfterViewInit,
|
|
|
161
214
|
scrollToBottom(): void;
|
|
162
215
|
scrollToTop(): void;
|
|
163
216
|
scrollLines(lines: number): void;
|
|
217
|
+
focus(): void;
|
|
164
218
|
fit(): void;
|
|
165
219
|
get cols(): number;
|
|
166
220
|
get rows(): number;
|
|
167
221
|
getTerminal(): Terminal | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* Display an inline image using iTerm2's Inline Image Protocol
|
|
170
|
-
* @param base64Data Base64 encoded image data (PNG, JPEG, etc.)
|
|
171
|
-
* @param options Image display options
|
|
172
|
-
*/
|
|
173
222
|
displayImage(base64Data: string, options?: {
|
|
174
223
|
width?: string | number;
|
|
175
224
|
height?: string | number;
|
|
176
225
|
preserveAspectRatio?: boolean;
|
|
177
226
|
name?: string;
|
|
178
227
|
}): void;
|
|
179
|
-
/**
|
|
180
|
-
* Get the ImageAddon instance for advanced image operations
|
|
181
|
-
*/
|
|
182
228
|
getImageAddon(): ImageAddon | undefined;
|
|
183
229
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XtermOrganism, never>;
|
|
184
230
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XtermOrganism, "organisms-xterm", never, {}, { "terminalReady": "terminalReady"; "githubLinkClick": "githubLinkClick"; }, never, never, true, [{ directive: typeof XtermOrganismStore; inputs: { "data": "data"; "interactive": "interactive"; "useInteractiveTheme": "useInteractiveTheme"; "totalWritten": "totalWritten"; }; outputs: {}; }]>;
|
|
@@ -205,11 +251,6 @@ declare class GitHubLinksAddon implements ITerminalAddon {
|
|
|
205
251
|
dispose(): void;
|
|
206
252
|
}
|
|
207
253
|
|
|
208
|
-
/**
|
|
209
|
-
* Drop-in replacement for @xterm/addon-web-links that supports
|
|
210
|
-
* URLs spanning wrapped terminal lines.
|
|
211
|
-
* localhost/127.0.0.1 URLs are skipped (handled by ProxyLinksAddon).
|
|
212
|
-
*/
|
|
213
254
|
declare class WebLinksAddon implements ITerminalAddon {
|
|
214
255
|
private readonly _handler?;
|
|
215
256
|
private _linkProvider?;
|
|
@@ -218,89 +259,67 @@ declare class WebLinksAddon implements ITerminalAddon {
|
|
|
218
259
|
dispose(): void;
|
|
219
260
|
}
|
|
220
261
|
|
|
221
|
-
type ServerUUIDGetter = () => string | undefined;
|
|
222
|
-
type TokenGetter = () => string | undefined;
|
|
223
|
-
type DeployVersionGetter = () => string | null | undefined;
|
|
224
|
-
interface ProxyEndpoints {
|
|
225
|
-
apiNext: string;
|
|
226
|
-
hasura: string;
|
|
227
|
-
}
|
|
228
|
-
type EndpointsGetter = () => ProxyEndpoints | undefined;
|
|
229
|
-
/**
|
|
230
|
-
* deployVersion を proxy.machina.at のサブドメイン suffix に変換。
|
|
231
|
-
*
|
|
232
|
-
* 変換ルール:
|
|
233
|
-
* - null / 'stable' → '' (suffix なし)
|
|
234
|
-
* - 'pr-{N}' → '--pr-{N}'
|
|
235
|
-
* - 'dev' / 'develop' → '--dev'
|
|
236
|
-
* - 'v{X.Y.Z}' / 'v{X.Y.Z-pre.N}' → '--v{X-Y-Z}[--pre-N]' (dot → dash)
|
|
237
|
-
* - 'X.Y.Z' (v prefix なし) → 同上
|
|
238
|
-
* - その他 → '' (fallback)
|
|
239
|
-
*/
|
|
240
|
-
declare function deployVersionToHostSuffix(version: string | null | undefined): string;
|
|
241
|
-
declare class ProxyLinkProvider implements ILinkProvider {
|
|
242
|
-
private readonly _terminal;
|
|
243
|
-
private readonly _getServerUUID;
|
|
244
|
-
private readonly _getToken?;
|
|
245
|
-
private readonly _handler;
|
|
246
|
-
private readonly _getDeployVersion?;
|
|
247
|
-
private readonly _getEndpoints?;
|
|
248
|
-
constructor(_terminal: Terminal, _getServerUUID: ServerUUIDGetter, _getToken?: TokenGetter | undefined, _handler?: (event: MouseEvent, proxyUrl: string) => void, _getDeployVersion?: DeployVersionGetter | undefined, _getEndpoints?: EndpointsGetter | undefined);
|
|
249
|
-
provideLinks(bufferLineNumber: number, callback: (links: ILink[] | undefined) => void): void;
|
|
250
|
-
}
|
|
251
|
-
declare function toProxyUrl(serverUUID: string, localhostUrl: string, deployVersion?: string | null): string | null;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* xterm.js addon: localhost URLをmachina web proxyにリダイレクトするリンクを表示。
|
|
255
|
-
*
|
|
256
|
-
* Usage:
|
|
257
|
-
* ```typescript
|
|
258
|
-
* const addon = new ProxyLinksAddon(() => currentServerUUID);
|
|
259
|
-
* terminal.loadAddon(addon);
|
|
260
|
-
* ```
|
|
261
|
-
*/
|
|
262
262
|
declare class ProxyLinksAddon implements ITerminalAddon {
|
|
263
263
|
private readonly _getServerUUID;
|
|
264
264
|
private readonly _getToken?;
|
|
265
265
|
private readonly _handler?;
|
|
266
266
|
private readonly _getDeployVersion?;
|
|
267
267
|
private readonly _getEndpoints?;
|
|
268
|
+
private readonly _onMissingToken?;
|
|
269
|
+
private readonly _getEnv?;
|
|
268
270
|
private _linkProvider?;
|
|
269
|
-
constructor(_getServerUUID: ServerUUIDGetter, _getToken?: TokenGetter | undefined, _handler?: ((event: MouseEvent, proxyUrl: string) => void) | undefined, _getDeployVersion?: DeployVersionGetter | undefined, _getEndpoints?: EndpointsGetter | undefined);
|
|
271
|
+
constructor(_getServerUUID: ServerUUIDGetter, _getToken?: TokenGetter | undefined, _handler?: ((event: MouseEvent, proxyUrl: string) => void) | undefined, _getDeployVersion?: DeployVersionGetter | undefined, _getEndpoints?: EndpointsGetter | undefined, _onMissingToken?: (() => void) | undefined, _getEnv?: (() => "dev" | "stg" | "prod" | undefined) | undefined);
|
|
270
272
|
activate(terminal: Terminal): void;
|
|
271
273
|
dispose(): void;
|
|
272
274
|
}
|
|
273
275
|
|
|
274
|
-
/**
|
|
275
|
-
* Utility functions for displaying images in xterm using SIXEL format
|
|
276
|
-
*/
|
|
277
276
|
interface SvgToSixelOptions {
|
|
278
277
|
width?: number;
|
|
279
278
|
height?: number;
|
|
280
279
|
backgroundColor?: string;
|
|
281
280
|
textColor?: string;
|
|
282
281
|
}
|
|
283
|
-
/**
|
|
284
|
-
* Generate ASCII art text using figlet
|
|
285
|
-
* Note: figlet is loaded dynamically as it's not available in browser environments
|
|
286
|
-
*/
|
|
287
282
|
declare function generateAsciiArt(text: string, font?: string): Promise<string>;
|
|
288
|
-
/**
|
|
289
|
-
* Convert ASCII art text to SVG with transparent background
|
|
290
|
-
*/
|
|
291
283
|
declare function asciiArtToSvg(asciiArt: string, options?: {
|
|
292
284
|
textColor?: string;
|
|
293
285
|
fontSize?: number;
|
|
294
286
|
}): string;
|
|
295
|
-
/**
|
|
296
|
-
* Convert SVG to SIXEL format for xterm display
|
|
297
|
-
*/
|
|
298
287
|
declare function svgToSixel(svgString: string, options?: SvgToSixelOptions): Promise<string>;
|
|
299
|
-
/**
|
|
300
|
-
* Generate MACHINA ASCII art banner as SIXEL
|
|
301
|
-
*/
|
|
302
288
|
declare function getMachinaAsciiArtSixel(options?: SvgToSixelOptions): Promise<string>;
|
|
303
289
|
|
|
304
|
-
|
|
305
|
-
|
|
290
|
+
interface FitToViewportInput {
|
|
291
|
+
viewportElement: HTMLElement;
|
|
292
|
+
cellWidth: number;
|
|
293
|
+
cellHeight: number;
|
|
294
|
+
}
|
|
295
|
+
interface FitToViewportResult {
|
|
296
|
+
cols: number;
|
|
297
|
+
rows: number;
|
|
298
|
+
}
|
|
299
|
+
declare const MIN_VIEWPORT_COLS = 2;
|
|
300
|
+
declare const MIN_VIEWPORT_ROWS = 1;
|
|
301
|
+
declare const MAX_VIEWPORT_COLS = 500;
|
|
302
|
+
declare const MAX_VIEWPORT_ROWS = 200;
|
|
303
|
+
declare const CANONICAL_FONT_FAMILY = "\"FiraCode Nerd Font\", \"Fira Code\", \"SF Mono\", \"Cascadia Code\", \"Consolas\", \"Courier New\", monospace";
|
|
304
|
+
declare const CANONICAL_FONT_SIZE_PX = 14;
|
|
305
|
+
declare const CANONICAL_LINE_HEIGHT = 1.2;
|
|
306
|
+
declare function measureCellMetric(): {
|
|
307
|
+
cellWidth: number;
|
|
308
|
+
cellHeight: number;
|
|
309
|
+
};
|
|
310
|
+
declare function computeFitToViewport(input: FitToViewportInput): FitToViewportResult | null;
|
|
311
|
+
|
|
312
|
+
interface CanvasCellMetric {
|
|
313
|
+
cellWidth: number;
|
|
314
|
+
cellHeight: number;
|
|
315
|
+
}
|
|
316
|
+
declare function clearCanvasCellMetricCache(): void;
|
|
317
|
+
declare function recordCanvasCellMetric(metric: {
|
|
318
|
+
cellWidth: number;
|
|
319
|
+
cellHeight: number;
|
|
320
|
+
}): void;
|
|
321
|
+
declare function getCanvasCellMetric(fontSize?: number): CanvasCellMetric;
|
|
322
|
+
|
|
323
|
+
export { CANONICAL_FONT_FAMILY, CANONICAL_FONT_SIZE_PX, CANONICAL_LINE_HEIGHT, DISPLAY_THEME, GitHubLinkProvider, GitHubLinksAddon, INTERACTIVE_THEME, MAX_VIEWPORT_COLS, MAX_VIEWPORT_ROWS, MIN_VIEWPORT_COLS, MIN_VIEWPORT_ROWS, ProxyLinkProvider, ProxyLinksAddon, WebLinksAddon, XTERM_SESSION_CONTEXT, XtermActionId, XtermOrganism, XtermOrganismStore, appendUrlHandoff, asciiArtToSvg, clearCanvasCellMetricCache, computeFitToViewport, deployVersionToHostSuffix, encodeUrlHandoff, generateAsciiArt, getCanvasCellMetric, getMachinaAsciiArtSixel, measureCellMetric, openWebProxyForPort, recordCanvasCellMetric, svgToSixel, toProxyUrl };
|
|
324
|
+
export type { DeployVersionGetter, EndpointsGetter, FitToViewportInput, FitToViewportResult, GitHubLinkActivateHandler, OpenWebProxyOptions, ProxyEndpoints, ProxyEnvGetter, ProxyEnvName, ServerUUIDGetter, SvgToSixelOptions, TokenGetter, XtermSessionContext };
|
|
306
325
|
//# sourceMappingURL=xxmachina-components-organisms-xterm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-organisms-xterm.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/xterm.organism.store.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/xterm.organism.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/github-link.provider.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/github-links.addon.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/web-links.addon.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/proxy-
|
|
1
|
+
{"version":3,"file":"xxmachina-components-organisms-xterm.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/proxy-link.types.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/deploy-version-suffix.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/url-handoff.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/to-proxy-url.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/open-web-proxy-for-port.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/proxy-link.provider.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/xterm.organism.store.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/xterm.organism.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/github-link.provider.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/github-links.addon.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/web-links.addon.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/proxy-links.addon.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/image.utils.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/fit-to-viewport.helper.ts","../../../../../packages/@xxmachina/components/src/lib/organisms/xterm/canvas-cell-metric.helper.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;AAIM;;;;AAKL;;AAIK;;;ACZN;;ACEA;AAaA;;ACbA;;;;ACIE;;;;;AAMA;AAEA;AACD;AAED;;ACGA;;;AAII;;AAIA;AACA;AAEA;AAEA;;AAGF;AAkED;;AClGD;AACE;AACA;AACA;AACA;AACA;AACD;;;;;;AAaC;AAEA;AACD;AAED;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAO4C;AAE1C;;;;;AAAuD;;;;;;;;;;AAcxD;;ACxCD;AAQA;;;;;;;;;;;;;;;AAiBA;;;;;;;;;;;;;;;;;;;;;AAsBA;;AAcE;AACA;;;;;;;;;;;AAcA;;AAIA;;;;;AAiDA;AAuBA;;AA2EA;AAkIA;;AAqDA;;AAmCO;AAIA;AAIA;AAIA;AAIA;AAIA;AAKA;AAQA;;;;AAuBA;AACL;AACA;;;AAGD;;;;AA2BF;;;;AC/hBA;AAED;;;AAEE;AAGmB;AAInB;AA0CA;AAyBD;;AC/ED;;;;AAKqB;AAGnB;AAOA;AAGD;;ACjBD;AAII;;AAAiB;AAGnB;AAMA;AAGD;;AChBD;;AAKI;AACA;AACA;AACA;AAEA;AAEA;;;AAGF;AAeA;AAGD;;;;;;;AC9BA;AAGD;AAoBA;;;AAEyD;AAiCzD;AA4KA;;;;;;ACpOC;;;;AAKA;AAGD;AACA;AAGA;AACA;AAGA;AACA;AACA;AAOA;;;;AA4BA;;ACzDA;;;AAGC;AAKD;AAKA;;;AAAwF;AAaxF;;;"}
|
|
@@ -12,9 +12,6 @@ declare enum ActionId {
|
|
|
12
12
|
}
|
|
13
13
|
declare class QueryPageV2Store extends InjectableComponent {
|
|
14
14
|
static readonly ActionId: typeof ActionId;
|
|
15
|
-
/**
|
|
16
|
-
* Provides an effect handler for CLICK_ITEM action
|
|
17
|
-
*/
|
|
18
15
|
static provideClickItemEffect<T>(handler: (item: T) => void): Provider[];
|
|
19
16
|
readonly query: _angular_core.InputSignal<Query<any, any>>;
|
|
20
17
|
readonly navEndActions: _angular_core.InputSignal<Action<any>[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-pages-query-v2.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/pages/query-v2/query-v2.page.store.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query-v2/query-v2.page.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;;;;;AAcA;AACE;AACD;AAED;AAEE;
|
|
1
|
+
{"version":3,"file":"xxmachina-components-pages-query-v2.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/pages/query-v2/query-v2.page.store.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query-v2/query-v2.page.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;;;;;AAcA;AACE;AACD;AAED;AAEE;AAGA;;;;;;AAYA;;;;;AAcA;AAKA;AAKA;;;AAUA;;AAOA;;;;AAA8D;;;;;AAuB9D;;;;;;AASG;;;AA8BH;;;AAGD;;AC3HD;AA+BE;;AAIA;;;AAGD;;;"}
|
|
@@ -26,9 +26,6 @@ declare enum ActionId {
|
|
|
26
26
|
DETAIL = "\u8A73\u7D30"
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* テーブルセルの値変更情報
|
|
31
|
-
*/
|
|
32
29
|
interface TableCellValueChange<T = any> {
|
|
33
30
|
item: T;
|
|
34
31
|
name: string;
|
|
@@ -37,9 +34,6 @@ interface TableCellValueChange<T = any> {
|
|
|
37
34
|
rowIndex: number;
|
|
38
35
|
columnId: string;
|
|
39
36
|
}
|
|
40
|
-
/**
|
|
41
|
-
* テーブルオートフィルの変更情報
|
|
42
|
-
*/
|
|
43
37
|
interface TableAutofillChange<T = any> {
|
|
44
38
|
sourceItem: T;
|
|
45
39
|
sourceValue: any;
|
|
@@ -61,23 +55,12 @@ interface TableAutofillChange<T = any> {
|
|
|
61
55
|
};
|
|
62
56
|
};
|
|
63
57
|
}
|
|
64
|
-
/**
|
|
65
|
-
* テーブルセル変更オプション
|
|
66
|
-
*/
|
|
67
58
|
interface TableCellChangeOptions<T = any> {
|
|
68
|
-
/** 対象カラム(空配列の場合は全カラム) */
|
|
69
59
|
columns?: (keyof T)[];
|
|
70
|
-
/** カスタム比較関数 */
|
|
71
60
|
equals?: (current: any, next: any, columnName: string) => boolean;
|
|
72
61
|
}
|
|
73
62
|
|
|
74
|
-
/**
|
|
75
|
-
* ItemsMapを構築する
|
|
76
|
-
*/
|
|
77
63
|
declare function buildItemsMap(itemsResult?: Record<string, any[]>, itemsLengthResult?: Record<string, number>): {};
|
|
78
|
-
/**
|
|
79
|
-
* クエリ結果からItemsMapを構築する
|
|
80
|
-
*/
|
|
81
64
|
declare function buildItemsMapFromResult(result?: Record<string, any[]> & Record<`${string}Length`, number>): ItemsMap<any>;
|
|
82
65
|
|
|
83
66
|
declare class QueryActionReducer {
|
|
@@ -175,7 +158,6 @@ declare class QueryPageStore extends InjectableComponent {
|
|
|
175
158
|
}>;
|
|
176
159
|
};
|
|
177
160
|
};
|
|
178
|
-
/** @deprecated use `QueryPageStore.DI.provideInitializer` instead */
|
|
179
161
|
static readonly Initializer: {
|
|
180
162
|
provide<SI extends (store: QueryPageStore) => Promise<void> | void>(initializer: SI): {
|
|
181
163
|
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
@@ -191,7 +173,6 @@ declare class QueryPageStore extends InjectableComponent {
|
|
|
191
173
|
static provideDefault(): Provider[];
|
|
192
174
|
static provideCustom(): Provider[];
|
|
193
175
|
static provideDefaultV2(): Provider[];
|
|
194
|
-
/** @deprecated use `provideCustom` instead */
|
|
195
176
|
static provideForCustomPage(): Provider[];
|
|
196
177
|
static provideNonEditableConfig(): Provider;
|
|
197
178
|
static provideDefaultInitializes(): Provider[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-pages-query.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/pages/query/interfaces/action-id.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/interfaces/table-cell-change.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/utils/items-map.builder.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/query-action.reducer.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/query-page.store.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/query-page.component.ts"],"sourcesContent":[null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACE;AACA;AACA;AACA;AACA;AACD;;
|
|
1
|
+
{"version":3,"file":"xxmachina-components-pages-query.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/pages/query/interfaces/action-id.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/interfaces/table-cell-change.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/utils/items-map.builder.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/query-action.reducer.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/query-page.store.ts","../../../../../packages/@xxmachina/components/src/lib/pages/query/query-page.component.ts"],"sourcesContent":[null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACE;AACA;AACA;AACA;AACA;AACD;;ACLK;;;;;;;AAOL;AAGK;;;;;;;;;AASH;AACD;AACE;;;;AACA;;;;;AAEH;AAGK;AAEJ;AAEA;AACD;;AC7BD;AAcA;;ACdA;;;;;;AAQC;;AC+BD;;AAGE;;;;;;;;;;;;;;;AAS8B;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;AAAA;;;;;;;AAMkB;;;;;;;;;;;;AAGoB;AAEpE;AAUA;AAaA;AAWA;;AAcA;AAOA;AAOA;AAaA;AAaA;AAqBA;AASA;AAaA;AASA;AAIA;AAIA;AAWA;AAIA;AAIA;AAIA;;;AAYA;AAIA;AAIA;;AAgCA;AAMA;AAIA;AASA;;;;;;;AA7P8B;;;;;AA8P+B;;;;;;;;;;;;;;;;;;;;;;AAyB7D;;;AAA6E;AAC7E;;;;;;;;;;;;;;;AAAoJ;;;;;;;;;AASpJ;;;;;;AASD;;ACjVD;;;AAgEE;AACA;AACA;AACA;;;;;;;;AAuB2C;;AAe3C;;AAAwC;;;AAGzC;;;"}
|
|
@@ -14,7 +14,7 @@ declare class QueryFormService {
|
|
|
14
14
|
query: _angular_forms.FormControl<string | null>;
|
|
15
15
|
variablesJson: _angular_forms.FormControl<string | null>;
|
|
16
16
|
headersJson: _angular_forms.FormControl<string | null>;
|
|
17
|
-
transformerTs: _angular_forms.FormControl<null>;
|
|
17
|
+
transformerTs: _angular_forms.FormControl<string | null>;
|
|
18
18
|
transformer: _angular_forms.FormControl<null>;
|
|
19
19
|
}>;
|
|
20
20
|
}>;
|
|
@@ -2,9 +2,6 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated use GraphqlService(@mxxmachina/common/services/graphql) instead
|
|
7
|
-
*/
|
|
8
5
|
declare class GraphqlService {
|
|
9
6
|
private http;
|
|
10
7
|
constructor(http: HttpClient);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-services-graphql.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/services/graphql/graphql.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"xxmachina-components-services-graphql.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/services/graphql/graphql.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA,cAAA,cAAA;AAII;AAAQ,sBAAA,UAAA;;;;;;;;AAoBX;;;;"}
|
|
@@ -6,16 +6,10 @@ import { QueryResolverService } from '@ng-atomic/common/services/query-resolver'
|
|
|
6
6
|
import { QueryService as QueryService$1 } from '@xxmachina/common/services/query';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated use `QueryService`('@xxmachina/common/services/query/query.service') instead
|
|
11
|
-
*/
|
|
12
9
|
declare class QueryService {
|
|
13
10
|
protected readonly http: HttpClient;
|
|
14
11
|
protected readonly graphql: GraphqlService;
|
|
15
12
|
protected readonly resolver: QueryResolverService<any>;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated
|
|
18
|
-
* */
|
|
19
13
|
protected readonly config: QueryConfigService;
|
|
20
14
|
readonly query: QueryService$1;
|
|
21
15
|
getSchema(endpoint: string, options?: {
|
|
@@ -24,7 +18,6 @@ declare class QueryService {
|
|
|
24
18
|
subscribeSchema(endpoint: string, options: {
|
|
25
19
|
headers?: Record<string, string>;
|
|
26
20
|
}): Observable<any>;
|
|
27
|
-
/** @deprecated use `QueryServie#subscribe`('@xxmachina/common/services/query/query.service') instead */
|
|
28
21
|
subscribeQuery(query: {
|
|
29
22
|
type: 'graphql';
|
|
30
23
|
graphql: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-services-query.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/services/query/query.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"xxmachina-components-services-query.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/services/query/query.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAYA,cAAA,YAAA;AAEE,6BAAA,UAAA;AACA,gCAAA,cAAA;AACA,iCAAA,oBAAA;AAEA,+BAAA,kBAAA;;AAGA;;AAEuD,QAAA,UAAA,CAAA,MAAA;AAMvD;;;;;;;AA6BM;;AAMH,QAAA,OAAA;;;;;AAKJ;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface Version {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
declare class VersionService {
|
|
8
|
+
private readonly document;
|
|
9
|
+
private readonly destroyRef;
|
|
10
|
+
private readonly firebaseApp;
|
|
11
|
+
private remoteConfig?;
|
|
12
|
+
private unsubscribe?;
|
|
13
|
+
private pollingInterval?;
|
|
14
|
+
private initialized;
|
|
15
|
+
readonly versions: _angular_core.WritableSignal<Version[]>;
|
|
16
|
+
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
17
|
+
private isVersionedHost;
|
|
18
|
+
readonly currentVersion: _angular_core.Signal<string | null>;
|
|
19
|
+
readonly isCloudflareEnv: _angular_core.Signal<boolean>;
|
|
20
|
+
initialize(): Promise<void>;
|
|
21
|
+
switchVersion(versionKey: string): void;
|
|
22
|
+
private initRemoteConfig;
|
|
23
|
+
private setupRealtimeListenerWithFallback;
|
|
24
|
+
private setupPollingFallback;
|
|
25
|
+
private updateVersions;
|
|
26
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VersionService, never>;
|
|
27
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<VersionService>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { VersionService };
|
|
31
|
+
export type { Version };
|
|
32
|
+
//# sourceMappingURL=xxmachina-components-services-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-services-version.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/services/version/version.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAgBC;AAWD;AAEE;AACA;AAEA;;;;;;;AAaA;;;AA2BM;AAON;;AAgEA;AAgBA;AAsBA;;;AAaD;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface WorkspaceOption {
|
|
4
|
+
id: string;
|
|
5
|
+
kind: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
declare abstract class WorkspaceSwitcherService {
|
|
9
|
+
abstract readonly workspaces: Signal<WorkspaceOption[] | null>;
|
|
10
|
+
abstract readonly currentWorkspaceId: Signal<string | null>;
|
|
11
|
+
abstract readonly currentWorkspaceName: Signal<string | null>;
|
|
12
|
+
abstract switchTo(workspaceId: string): void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { WorkspaceSwitcherService };
|
|
16
|
+
export type { WorkspaceOption };
|
|
17
|
+
//# sourceMappingURL=xxmachina-components-services-workspace-switcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-services-workspace-switcher.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/services/workspace-switcher/workspace-switcher.service.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAMC;AAGD;AAEE;;;AAIA;AACD;;;"}
|
|
@@ -22,6 +22,7 @@ declare class AgentTemplate extends NgAtomicComponent implements AfterViewInit {
|
|
|
22
22
|
private readonly authState;
|
|
23
23
|
protected readonly isLoggedIn: _angular_core.Signal<boolean>;
|
|
24
24
|
readonly endActions: _angular_core.InputSignal<any[]>;
|
|
25
|
+
readonly hideInputArea: _angular_core.InputSignal<boolean>;
|
|
25
26
|
protected navStartActions: _angular_core.Signal<{
|
|
26
27
|
id: string;
|
|
27
28
|
icon: string;
|
|
@@ -58,7 +59,7 @@ declare class AgentTemplate extends NgAtomicComponent implements AfterViewInit {
|
|
|
58
59
|
handleBlur(): void;
|
|
59
60
|
updateCursorPosition(): void;
|
|
60
61
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AgentTemplate, never>;
|
|
61
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AgentTemplate, "templates-agent", never, { "endActions": { "alias": "endActions"; "required": false; "isSignal": true; }; }, {}, never,
|
|
62
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AgentTemplate, "templates-agent", never, { "endActions": { "alias": "endActions"; "required": false; "isSignal": true; }; "hideInputArea": { "alias": "hideInputArea"; "required": false; "isSignal": true; }; }, {}, never, ["[terminalSlot]"], true, [{ directive: typeof i1.EntranceTemplateStore; inputs: { "form": "form"; "actions": "actions"; "title": "title"; "fieldMap": "fieldMap"; }; outputs: {}; }]>;
|
|
62
63
|
}
|
|
63
64
|
declare function provideAgentTemplate(): Provider[];
|
|
64
65
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-templates-agent.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/templates/agent/agent.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAuBA,aAAA,QAAA;AACE;AACA;AACA;AACA;AACA;AACD;AAED,cAAA,aAAA,SAAA,iBAAA,YAAA,aAAA;;;;;;
|
|
1
|
+
{"version":3,"file":"xxmachina-components-templates-agent.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/templates/agent/agent.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAuBA,aAAA,QAAA;AACE;AACA;AACA;AACA;AACA;AACD;AAED,cAAA,aAAA,SAAA,iBAAA,YAAA,aAAA;;;;;;AAkGE;AACA,mCAA6B,aAAA,CAAA,MAAA;yBAEV,aAAA,CAAA,WAAA;4BACG,aAAA,CAAA,WAAA;AAEtB,+BAAyB,aAAA,CAAA,MAAA;;;;AAGtB;6BAEoB,aAAA,CAAA,MAAA,CAAA,aAAA;yBACJ,aAAA,CAAA,MAAA,CAAA,UAAA,CAAA,mBAAA;;;;;;;;;;;;;;;AAkGnB;AAIA;AAiGA;;AA+CA,2BAAA,aAAA;AAmBA,4BAAA,aAAA;;;;;;;;;;;AAyGD;AAED,iBAAA,oBAAA,IAAA,QAAA;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { NgAtomicComponent } from '@ng-atomic/core';
|
|
3
|
+
|
|
4
|
+
interface EnvPresetLike {
|
|
5
|
+
name: string;
|
|
6
|
+
hasuraUrl?: string | null;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
interface EnvEndpointField {
|
|
10
|
+
key: string;
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
interface EnvFlagField {
|
|
15
|
+
key: string;
|
|
16
|
+
label: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
icon?: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare enum EnvTemplateActionId {
|
|
23
|
+
SELECT_PRESET = "[EnvTemplate] Select Preset",
|
|
24
|
+
CHANGE_ENDPOINT = "[EnvTemplate] Change Endpoint",
|
|
25
|
+
CHANGE_FLAG = "[EnvTemplate] Change Flag",
|
|
26
|
+
RELOAD = "[EnvTemplate] Reload"
|
|
27
|
+
}
|
|
28
|
+
declare class EnvTemplate extends NgAtomicComponent {
|
|
29
|
+
static readonly ActionId: typeof EnvTemplateActionId;
|
|
30
|
+
protected readonly ActionId: typeof EnvTemplateActionId;
|
|
31
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
32
|
+
readonly presets: _angular_core.InputSignal<readonly EnvPresetLike[]>;
|
|
33
|
+
readonly currentEnv: _angular_core.InputSignal<string>;
|
|
34
|
+
readonly endpoints: _angular_core.InputSignal<readonly EnvEndpointField[]>;
|
|
35
|
+
readonly flags: _angular_core.InputSignal<readonly EnvFlagField[]>;
|
|
36
|
+
readonly needsReload: _angular_core.InputSignal<boolean>;
|
|
37
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EnvTemplate, never>;
|
|
38
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EnvTemplate, "templates-env", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": true; "isSignal": true; }; "currentEnv": { "alias": "currentEnv"; "required": true; "isSignal": true; }; "endpoints": { "alias": "endpoints"; "required": false; "isSignal": true; }; "flags": { "alias": "flags"; "required": false; "isSignal": true; }; "needsReload": { "alias": "needsReload"; "required": true; "isSignal": true; }; }, {}, never, ["[before-presets]", "*"], true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { EnvTemplate, EnvTemplateActionId };
|
|
42
|
+
export type { EnvEndpointField, EnvFlagField, EnvPresetLike };
|
|
43
|
+
//# sourceMappingURL=xxmachina-components-templates-env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-templates-env.d.ts","sources":["../../../../../packages/@xxmachina/components/src/lib/templates/env/env.types.ts","../../../../../packages/@xxmachina/components/src/lib/templates/env/env.template.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;AAEC;;AAEA;;;;;AAMA;;;;;;;AAQA;;ACRD;AACC;AACA;AACA;AACA;AACA;AAED;AAuCC;AACA;;;;;;;;;AAQA;;;"}
|