@omniviewdev/runtime 0.2.3 → 0.3.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/dist/{Client-D4njqvNH.js → Client-07zrOerN.js} +225 -221
- package/dist/Client-CLvQWnuz.cjs +1 -0
- package/dist/api.cjs +1 -1
- package/dist/api.js +1 -1
- package/dist/extensions/provider.d.ts +12 -6
- package/dist/extensions/registry.d.ts +37 -18
- package/dist/index.cjs +2 -2
- package/dist/index.js +839 -838
- package/dist/types/app.d.ts +1 -1
- package/dist/types/extensions.d.ts +107 -161
- package/dist/wailsjs/go/models.d.ts +1 -1
- package/dist/wailsjs/go/settings/provider.d.ts +2 -0
- package/package.json +6 -2
- package/dist/Client-DHqavZ6d.cjs +0 -1
package/dist/types/app.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class PluginWindow {
|
|
|
45
45
|
*/
|
|
46
46
|
pages?: Record<string, ComponentType>;
|
|
47
47
|
_routes?: Array<RouteObject>;
|
|
48
|
-
get extensions(): ExtensionPointSettings[];
|
|
48
|
+
get extensions(): ExtensionPointSettings<import('./extensions').ExtensionRenderContext, unknown>[];
|
|
49
49
|
get Routes(): Array<RouteObject>;
|
|
50
50
|
/**
|
|
51
51
|
* Get's the route provider component to render within the plugin view
|
|
@@ -1,196 +1,142 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
/**
|
|
11
|
-
* The human readable label for the extension point
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* A description of the extension point
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Set the extension point to support rendering multiple components or a single component.
|
|
20
|
-
*/
|
|
21
|
-
mode: 'single' | 'multiple';
|
|
22
|
-
/**
|
|
23
|
-
* Disable the extension point to prevent rendering components.
|
|
24
|
-
* This is useful when the extension point should be disabled temporarily.
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Selected component to render when the extension point is in single-component mode.
|
|
29
|
-
*/
|
|
30
|
-
selected?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The order in which the components should be rendered when the extension point is in multiple-component mode.
|
|
33
|
-
*/
|
|
34
|
-
order?: string[];
|
|
1
|
+
/**
|
|
2
|
+
* Context that can be passed to the registry to provide additional information to the matcher.
|
|
3
|
+
* The context should generate a cache key that can be used to cache the results of the matcher
|
|
4
|
+
* to avoid recalculating the same result multiple times.
|
|
5
|
+
*/
|
|
6
|
+
export type ExtensionRenderContext = {
|
|
7
|
+
getCacheKey?(): string;
|
|
35
8
|
};
|
|
36
9
|
/**
|
|
37
|
-
*
|
|
10
|
+
* A contribution registration entry stored within an extension point store.
|
|
11
|
+
* Generic over TValue — not limited to React components.
|
|
38
12
|
*/
|
|
39
|
-
export
|
|
40
|
-
/**
|
|
41
|
-
* The ID of the registered component
|
|
42
|
-
*/
|
|
13
|
+
export interface ExtensionContributionRegistration<TValue = unknown> {
|
|
43
14
|
id: string;
|
|
44
|
-
/**
|
|
45
|
-
* The plugin that owns the view
|
|
46
|
-
*/
|
|
47
15
|
plugin: string;
|
|
48
|
-
/**
|
|
49
|
-
* The human readable label for the component
|
|
50
|
-
*/
|
|
51
16
|
label: string;
|
|
52
|
-
|
|
53
|
-
* A description of the component
|
|
54
|
-
*/
|
|
55
|
-
description?: string;
|
|
56
|
-
/**
|
|
57
|
-
* The component to render
|
|
58
|
-
*/
|
|
59
|
-
component: React.ComponentType<Props>;
|
|
60
|
-
/**
|
|
61
|
-
* Additional optional metadata for the component
|
|
62
|
-
*/
|
|
17
|
+
value: TValue;
|
|
63
18
|
meta?: unknown;
|
|
64
|
-
}
|
|
65
|
-
export type Registration<Props> = RegisterOpts<Props> & {
|
|
66
|
-
/**
|
|
67
|
-
* The time the component was registered
|
|
68
|
-
*/
|
|
69
|
-
registeredAt: Date;
|
|
70
|
-
/**
|
|
71
|
-
* The time the component was last updated
|
|
72
|
-
* This will be the same as `registeredAt` if the component has not been updated
|
|
73
|
-
*/
|
|
74
|
-
updatedAt: Date;
|
|
75
|
-
/**
|
|
76
|
-
* Whether the component is enabled
|
|
77
|
-
* This can be used to disable a component without unregistering it.
|
|
78
|
-
*/
|
|
79
|
-
enabled?: boolean;
|
|
80
|
-
};
|
|
19
|
+
}
|
|
81
20
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* to avoid recalculating the same result multiple times.
|
|
21
|
+
* Settings for defining an extension point.
|
|
22
|
+
* Generic over TContext (the render/lookup context) and TValue (what contributions hold).
|
|
85
23
|
*/
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
24
|
+
export interface ExtensionPointSettings<TContext = ExtensionRenderContext, TValue = unknown> {
|
|
25
|
+
/** Unique extension point identifier */
|
|
26
|
+
id: string;
|
|
27
|
+
/** The plugin (or 'core') that owns this extension point */
|
|
28
|
+
pluginId?: string;
|
|
29
|
+
/** Whether this extension point resolves one or many contributions */
|
|
30
|
+
mode?: 'single' | 'multiple';
|
|
90
31
|
/**
|
|
91
|
-
*
|
|
92
|
-
* This is useful when the extension should only be registered for certain resources, like for example
|
|
93
|
-
* when a registry contains components that should only be rendered for specific resources.
|
|
94
|
-
*
|
|
95
|
-
* @param context The context to use to determine if the extension should be registered. The extension point
|
|
96
|
-
* renderer will call this function with the context provided by the extension point.
|
|
97
|
-
* @param item The item to check if it should be registered
|
|
98
|
-
* @returns Whether the item should be registered
|
|
32
|
+
* Filter contributions for a given context. Applied in both single and multiple modes.
|
|
99
33
|
*/
|
|
100
|
-
matcher?: (
|
|
101
|
-
|
|
34
|
+
matcher?: (contribution: ExtensionContributionRegistration<TValue>, context?: TContext) => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* In single mode, select which of the matched contributions to return.
|
|
37
|
+
* If not provided, the first match in deterministic order is used.
|
|
38
|
+
*/
|
|
39
|
+
select?: (contributions: ExtensionContributionRegistration<TValue>[], context?: TContext) => ExtensionContributionRegistration<TValue> | undefined;
|
|
40
|
+
}
|
|
102
41
|
/**
|
|
103
|
-
* A registration entry that a plugin exports to register a
|
|
42
|
+
* A registration entry that a plugin exports to register a value into an extension point.
|
|
104
43
|
* The host app processes these at plugin load time.
|
|
105
44
|
*/
|
|
106
|
-
export type ExtensionRegistration<
|
|
45
|
+
export type ExtensionRegistration<TValue = unknown> = {
|
|
107
46
|
/** The ID of the extension point to register into */
|
|
108
47
|
extensionPointId: string;
|
|
109
|
-
/** The registration options
|
|
110
|
-
registration:
|
|
48
|
+
/** The registration options */
|
|
49
|
+
registration: Omit<ExtensionContributionRegistration<TValue>, 'plugin'> & {
|
|
50
|
+
plugin?: string;
|
|
51
|
+
};
|
|
111
52
|
};
|
|
112
53
|
/**
|
|
113
|
-
*
|
|
54
|
+
* Store contract for an extension point.
|
|
55
|
+
* Generic over TValue (what contributions hold) and TContext (the lookup context).
|
|
56
|
+
*/
|
|
57
|
+
export interface ExtensionPointStoreContract<TValue = unknown, TContext = ExtensionRenderContext> {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly mode: 'single' | 'multiple';
|
|
60
|
+
/** The plugin (or 'core') that owns this extension point, if set. */
|
|
61
|
+
readonly pluginId?: string;
|
|
62
|
+
/** Monotonically increasing version — increments on every mutation. */
|
|
63
|
+
readonly version: number;
|
|
64
|
+
register(contribution: ExtensionContributionRegistration<TValue>): void;
|
|
65
|
+
unregister(contributionId: string): void;
|
|
66
|
+
provide(context?: TContext): TValue[];
|
|
67
|
+
list(context?: TContext): ExtensionContributionRegistration<TValue>[];
|
|
68
|
+
listAll(): ExtensionContributionRegistration<TValue>[];
|
|
69
|
+
subscribe(listener: () => void): () => void;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Registry contract for managing extension points.
|
|
73
|
+
*/
|
|
74
|
+
export interface ExtensionPointRegistryContract {
|
|
75
|
+
addExtensionPoint<TValue = unknown, TContext = ExtensionRenderContext>(settings: ExtensionPointSettings<TContext, TValue> & {
|
|
76
|
+
pluginId?: string;
|
|
77
|
+
}): void;
|
|
78
|
+
getExtensionPoint<TValue = unknown, TContext = ExtensionRenderContext>(id: string): ExtensionPointStoreContract<TValue, TContext> | undefined;
|
|
79
|
+
hasExtensionPoint(id: string): boolean;
|
|
80
|
+
listExtensionPoints(): string[];
|
|
81
|
+
removeExtensionPoints(pluginId: string): void;
|
|
82
|
+
removeContributions(pluginId: string): void;
|
|
83
|
+
subscribe(listener: () => void): () => void;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* A registry to hold an extension point's registered contributions, providing type safe access.
|
|
114
87
|
*
|
|
115
|
-
*
|
|
88
|
+
* Generic over TValue (what contributions hold) and TContext (the lookup context).
|
|
116
89
|
*/
|
|
117
|
-
export declare class ExtensionPointStore<
|
|
118
|
-
|
|
119
|
-
|
|
90
|
+
export declare class ExtensionPointStore<TValue = unknown, TContext = ExtensionRenderContext> implements ExtensionPointStoreContract<TValue, TContext> {
|
|
91
|
+
readonly id: string;
|
|
92
|
+
readonly mode: 'single' | 'multiple';
|
|
93
|
+
private readonly _pluginId?;
|
|
94
|
+
private _version;
|
|
95
|
+
private readonly _contributions;
|
|
120
96
|
private readonly _lookupCache;
|
|
121
|
-
private readonly _matchCache;
|
|
122
97
|
private readonly _matcher?;
|
|
123
|
-
|
|
124
|
-
|
|
98
|
+
private readonly _select?;
|
|
99
|
+
private readonly _listeners;
|
|
100
|
+
constructor(settings: ExtensionPointSettings<TContext, TValue>);
|
|
101
|
+
get pluginId(): string | undefined;
|
|
102
|
+
get version(): number;
|
|
125
103
|
/**
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
* @param opts The registration options for the component, containing its ID, plugin, and other metadata.
|
|
130
|
-
* @throws Error if a component with the same ID is already registered.
|
|
131
|
-
* @example
|
|
132
|
-
* registry.register({
|
|
133
|
-
* id: 'unique-sidebar-item',
|
|
134
|
-
* plugin: 'examplePlugin',
|
|
135
|
-
* label: 'My Sidebar Item',
|
|
136
|
-
* component: MyComponent,
|
|
137
|
-
* });
|
|
138
|
-
*/
|
|
139
|
-
register(opts: RegisterOpts<ComponentProps>): void;
|
|
104
|
+
* Register a contribution. Throws if the contribution ID already exists.
|
|
105
|
+
*/
|
|
106
|
+
register(contribution: ExtensionContributionRegistration<TValue>): void;
|
|
140
107
|
/**
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
* @example
|
|
145
|
-
* registry.unregister('unique-sidebar-item');
|
|
146
|
-
*/
|
|
147
|
-
unregister(id: string): void;
|
|
108
|
+
* Unregister a contribution by ID.
|
|
109
|
+
*/
|
|
110
|
+
unregister(contributionId: string): void;
|
|
148
111
|
/**
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
* const component = registry.get('unique-sidebar-item');
|
|
155
|
-
* if (component) {
|
|
156
|
-
* render(component);
|
|
157
|
-
* }
|
|
158
|
-
*/
|
|
159
|
-
get(id: string): import('react').ComponentType<ComponentProps> | undefined;
|
|
112
|
+
* Synchronously provide matched values for the given context.
|
|
113
|
+
* In single mode, matcher is applied first, then select (or first match) picks one.
|
|
114
|
+
* In multiple mode, all matched contributions are returned in deterministic order.
|
|
115
|
+
*/
|
|
116
|
+
provide(context?: TContext): TValue[];
|
|
160
117
|
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
* @example
|
|
165
|
-
* const allComponents = registry.list();
|
|
166
|
-
* console.log('Registered Components:', allComponents);
|
|
167
|
-
*/
|
|
168
|
-
list(): Registration<ComponentProps>[];
|
|
169
|
-
generateMatchCacheKey(item: Registration<ComponentProps>): string;
|
|
118
|
+
* Synchronously list matched contribution registrations for the given context.
|
|
119
|
+
*/
|
|
120
|
+
list(context?: TContext): ExtensionContributionRegistration<TValue>[];
|
|
170
121
|
/**
|
|
171
|
-
*
|
|
122
|
+
* List all contributions regardless of context/matcher.
|
|
172
123
|
*/
|
|
173
|
-
|
|
124
|
+
listAll(): ExtensionContributionRegistration<TValue>[];
|
|
174
125
|
/**
|
|
175
|
-
*
|
|
176
|
-
* This is useful when the registry is used to provide components for a specific context, like for
|
|
177
|
-
* specific resources types.
|
|
178
|
-
*
|
|
179
|
-
* If the cache is already populated for the expected context, the cache key will be recalculated.
|
|
180
|
-
*
|
|
181
|
-
* @param context The context expected to be called preload the registry with on provide.
|
|
126
|
+
* Subscribe to changes in this store. Returns an unsubscribe function.
|
|
182
127
|
*/
|
|
183
|
-
|
|
128
|
+
subscribe(listener: () => void): () => void;
|
|
184
129
|
/**
|
|
185
|
-
*
|
|
130
|
+
* Remove all contributions owned by the given plugin.
|
|
186
131
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
132
|
+
removeContributionsByPlugin(pluginId: string): void;
|
|
133
|
+
private _getMatched;
|
|
134
|
+
private _applyMode;
|
|
189
135
|
/**
|
|
190
|
-
*
|
|
136
|
+
* Sort contributions deterministically: plugin ascending, then id ascending.
|
|
191
137
|
*/
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
138
|
+
private _sortDeterministic;
|
|
139
|
+
private _getCacheKey;
|
|
140
|
+
private _invalidateCache;
|
|
141
|
+
private _notify;
|
|
196
142
|
}
|
|
@@ -31,6 +31,8 @@ export function ListSettings():Promise<settings.Store>;
|
|
|
31
31
|
|
|
32
32
|
export function LoadSettings():Promise<void>;
|
|
33
33
|
|
|
34
|
+
export function RegisterChangeHandler(arg1:string,arg2:settings.CategoryChangeFunc):Promise<void>;
|
|
35
|
+
|
|
34
36
|
export function RegisterSetting(arg1:string,arg2:settings.Setting):Promise<void>;
|
|
35
37
|
|
|
36
38
|
export function RegisterSettings(arg1:string,arg2:Array<settings.Setting>):Promise<void>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Omniview",
|
|
3
3
|
"license": "AGPL-3.0-only",
|
|
4
4
|
"name": "@omniviewdev/runtime",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.3.0",
|
|
6
6
|
"description": "Runtime shared library for Omniview",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
@@ -62,7 +62,11 @@
|
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "tsc && vite build",
|
|
65
|
+
"test": "vitest run",
|
|
66
|
+
"test:watch": "vitest",
|
|
67
|
+
"test:verbose": "vitest run --reporter=verbose",
|
|
68
|
+
"typecheck": "tsc -p tsconfig.app.json --noEmit",
|
|
65
69
|
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
|
|
66
|
-
"lint:fix": "
|
|
70
|
+
"lint:fix": "pnpm lint -- --fix"
|
|
67
71
|
}
|
|
68
72
|
}
|
package/dist/Client-DHqavZ6d.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function Y(e,n){return window.go.settings.Client.GetSetting(e,n)}function Z(){return window.go.settings.Client.ListPlugins()}function ee(e){return window.go.settings.Client.ListSettings(e)}function u(e){return window.go.settings.Client.PluginValues(e)}function ne(e,n,t){return window.go.settings.Client.SetSetting(e,n,t)}function te(e,n){return window.go.settings.Client.SetSettings(e,n)}function oe(){return window.go.settings.Client.Values()}const ie=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:Y,ListPlugins:Z,ListSettings:ee,PluginValues:u,SetSetting:ne,SetSettings:te,Values:oe},Symbol.toStringTag,{value:"Module"}));function re(e){return window.go.plugin.pluginManager.GetPlugin(e)}function ue(e){return window.go.plugin.pluginManager.GetPluginDownloadStats(e)}function s(e){return window.go.plugin.pluginManager.GetPluginMeta(e)}function se(e){return window.go.plugin.pluginManager.GetPluginReadme(e)}function ge(e){return window.go.plugin.pluginManager.GetPluginReleaseHistory(e)}function le(e,n){return window.go.plugin.pluginManager.GetPluginReviews(e,n)}function ce(e){return window.go.plugin.pluginManager.GetPluginVersions(e)}function we(e){return window.go.plugin.pluginManager.HandlePluginCrash(e)}function ae(e){return window.go.plugin.pluginManager.Initialize(e)}function de(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function Ce(){return window.go.plugin.pluginManager.InstallInDevMode()}function Se(e){return window.go.plugin.pluginManager.InstallPluginFromPath(e)}function fe(e,n){return window.go.plugin.pluginManager.InstallPluginVersion(e,n)}function pe(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function Ge(){return window.go.plugin.pluginManager.ListPluginMetas()}function Pe(){return window.go.plugin.pluginManager.ListPlugins()}function Re(e,n){return window.go.plugin.pluginManager.LoadPlugin(e,n)}function ve(e){return window.go.plugin.pluginManager.ReloadPlugin(e)}function be(e){return window.go.plugin.pluginManager.Run(e)}function me(e,n,t){return window.go.plugin.pluginManager.SearchPlugins(e,n,t)}function Me(e){return window.go.plugin.pluginManager.SetDevServerChecker(e)}function Le(e){return window.go.plugin.pluginManager.SetDevServerManager(e)}function he(e){return window.go.plugin.pluginManager.SetPluginLogManager(e)}function Fe(){return window.go.plugin.pluginManager.Shutdown()}function ye(e){return window.go.plugin.pluginManager.UninstallPlugin(e)}function _e(e){return window.go.plugin.pluginManager.UnloadPlugin(e)}const Ae=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:re,GetPluginDownloadStats:ue,GetPluginMeta:s,GetPluginReadme:se,GetPluginReleaseHistory:ge,GetPluginReviews:le,GetPluginVersions:ce,HandlePluginCrash:we,Initialize:ae,InstallFromPathPrompt:de,InstallInDevMode:Ce,InstallPluginFromPath:Se,InstallPluginVersion:fe,ListAvailablePlugins:pe,ListPluginMetas:Ge,ListPlugins:Pe,LoadPlugin:Re,ReloadPlugin:ve,Run:be,SearchPlugins:me,SetDevServerChecker:Me,SetDevServerManager:Le,SetPluginLogManager:he,Shutdown:Fe,UninstallPlugin:ye,UnloadPlugin:_e},Symbol.toStringTag,{value:"Module"}));function $e(e){return window.go.settings.provider.GetBool(e)}function Ie(){return window.go.settings.provider.GetCategories()}function Te(e){return window.go.settings.provider.GetCategory(e)}function Oe(e){return window.go.settings.provider.GetCategoryValues(e)}function We(e){return window.go.settings.provider.GetFloat(e)}function je(e){return window.go.settings.provider.GetFloatSlice(e)}function Ue(e){return window.go.settings.provider.GetInt(e)}function Ve(e){return window.go.settings.provider.GetIntSlice(e)}function xe(e){return window.go.settings.provider.GetSetting(e)}function ze(e){return window.go.settings.provider.GetSettingValue(e)}function He(e){return window.go.settings.provider.GetString(e)}function De(e){return window.go.settings.provider.GetStringSlice(e)}function ke(e){return window.go.settings.provider.HasSetting(e)}function Ee(e,n){return window.go.settings.provider.Initialize(e,n)}function Qe(){return window.go.settings.provider.ListSettings()}function Ne(){return window.go.settings.provider.LoadSettings()}function Be(e,n){return window.go.settings.provider.RegisterSetting(e,n)}function qe(e,n){return window.go.settings.provider.RegisterSettings(e,n)}function Je(e){return window.go.settings.provider.ResetSetting(e)}function Ke(){return window.go.settings.provider.SaveSettings()}function Xe(e,n){return window.go.settings.provider.SetSetting(e,n)}function Ye(e){return window.go.settings.provider.SetSettings(e)}function g(){return window.go.settings.provider.Values()}const Ze=Object.freeze(Object.defineProperty({__proto__:null,GetBool:$e,GetCategories:Ie,GetCategory:Te,GetCategoryValues:Oe,GetFloat:We,GetFloatSlice:je,GetInt:Ue,GetIntSlice:Ve,GetSetting:xe,GetSettingValue:ze,GetString:He,GetStringSlice:De,HasSetting:ke,Initialize:Ee,ListSettings:Qe,LoadSettings:Ne,RegisterSetting:Be,RegisterSettings:qe,ResetSetting:Je,SaveSettings:Ke,SetSetting:Xe,SetSettings:Ye,Values:g},Symbol.toStringTag,{value:"Module"}));function en(e,n){return window.go.resource.Client.AddConnection(e,n)}function nn(e,n){return window.go.resource.Client.CheckConnection(e,n)}function l(e,n,t,o){return window.go.resource.Client.Create(e,n,t,o)}function c(e,n,t,o){return window.go.resource.Client.Delete(e,n,t,o)}function tn(e,n,t){return window.go.resource.Client.EnsureResourceWatch(e,n,t)}function w(e,n,t,o,i){return window.go.resource.Client.ExecuteAction(e,n,t,o,i)}function on(e,n,t,o){return window.go.resource.Client.Find(e,n,t,o)}function a(e,n,t,o){return window.go.resource.Client.Get(e,n,t,o)}function d(e,n,t){return window.go.resource.Client.GetActions(e,n,t)}function C(){return window.go.resource.Client.GetAllConnectionStates()}function S(e,n){return window.go.resource.Client.GetConnection(e,n)}function f(e,n){return window.go.resource.Client.GetConnectionNamespaces(e,n)}function p(e,n){return window.go.resource.Client.GetEditorSchemas(e,n)}function rn(e,n,t){return window.go.resource.Client.GetFilterFields(e,n,t)}function un(e,n,t,o){return window.go.resource.Client.GetHealth(e,n,t,o)}function sn(e,n){return window.go.resource.Client.GetRelationships(e,n)}function gn(e,n){return window.go.resource.Client.GetResourceCapabilities(e,n)}function ln(e,n){return window.go.resource.Client.GetResourceDefinition(e,n)}function cn(e,n,t,o,i,r){return window.go.resource.Client.GetResourceEvents(e,n,t,o,i,r)}function wn(e,n){return window.go.resource.Client.GetResourceGroup(e,n)}function G(e,n){return window.go.resource.Client.GetResourceGroups(e,n)}function an(e,n,t){return window.go.resource.Client.GetResourceSchema(e,n,t)}function P(e,n){return window.go.resource.Client.GetResourceType(e,n)}function R(e,n){return window.go.resource.Client.GetResourceTypes(e,n)}function v(e,n){return window.go.resource.Client.GetWatchState(e,n)}function dn(e,n){return window.go.resource.Client.HasResourceType(e,n)}function Cn(e,n,t){return window.go.resource.Client.IsResourceWatchRunning(e,n,t)}function b(e,n,t,o){return window.go.resource.Client.List(e,n,t,o)}function m(){return window.go.resource.Client.ListAllConnections()}function M(e){return window.go.resource.Client.ListConnections(e)}function Sn(){return window.go.resource.Client.ListPlugins()}function fn(e){return window.go.resource.Client.LoadConnections(e)}function L(e,n){return window.go.resource.Client.RemoveConnection(e,n)}function pn(e,n,t,o,i){return window.go.resource.Client.ResolveRelationships(e,n,t,o,i)}function Gn(e,n,t){return window.go.resource.Client.RestartResourceWatch(e,n,t)}function h(e,n){return window.go.resource.Client.StartConnection(e,n)}function F(e,n){return window.go.resource.Client.StartConnectionWatch(e,n)}function y(e,n){return window.go.resource.Client.StopConnection(e,n)}function _(e,n){return window.go.resource.Client.StopConnectionWatch(e,n)}function Pn(e,n,t){return window.go.resource.Client.StopResourceWatch(e,n,t)}function A(e,n,t,o,i){return window.go.resource.Client.StreamAction(e,n,t,o,i)}function $(e,n,t){return window.go.resource.Client.SubscribeResource(e,n,t)}function I(e,n,t){return window.go.resource.Client.UnsubscribeResource(e,n,t)}function T(e,n,t,o){return window.go.resource.Client.Update(e,n,t,o)}function O(e,n){return window.go.resource.Client.UpdateConnection(e,n)}const Rn=Object.freeze(Object.defineProperty({__proto__:null,AddConnection:en,CheckConnection:nn,Create:l,Delete:c,EnsureResourceWatch:tn,ExecuteAction:w,Find:on,Get:a,GetActions:d,GetAllConnectionStates:C,GetConnection:S,GetConnectionNamespaces:f,GetEditorSchemas:p,GetFilterFields:rn,GetHealth:un,GetRelationships:sn,GetResourceCapabilities:gn,GetResourceDefinition:ln,GetResourceEvents:cn,GetResourceGroup:wn,GetResourceGroups:G,GetResourceSchema:an,GetResourceType:P,GetResourceTypes:R,GetWatchState:v,HasResourceType:dn,IsResourceWatchRunning:Cn,List:b,ListAllConnections:m,ListConnections:M,ListPlugins:Sn,LoadConnections:fn,RemoveConnection:L,ResolveRelationships:pn,RestartResourceWatch:Gn,StartConnection:h,StartConnectionWatch:F,StopConnection:y,StopConnectionWatch:_,StopResourceWatch:Pn,StreamAction:A,SubscribeResource:$,UnsubscribeResource:I,Update:T,UpdateConnection:O},Symbol.toStringTag,{value:"Module"}));function vn(e){return window.go.exec.Client.AttachSession(e)}function bn(e){return window.go.exec.Client.CloseSession(e)}function W(e,n,t){return window.go.exec.Client.CreateSession(e,n,t)}function mn(e){return window.go.exec.Client.CreateTerminal(e)}function Mn(e){return window.go.exec.Client.DetachSession(e)}function Ln(e,n){return window.go.exec.Client.GetHandler(e,n)}function hn(){return window.go.exec.Client.GetHandlers()}function Fn(e){return window.go.exec.Client.GetPluginHandlers(e)}function yn(e){return window.go.exec.Client.GetSession(e)}function _n(){return window.go.exec.Client.ListPlugins()}function An(){return window.go.exec.Client.ListSessions()}function $n(e,n,t){return window.go.exec.Client.ResizeSession(e,n,t)}function In(e,n){return window.go.exec.Client.WriteSession(e,n)}const Tn=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:vn,CloseSession:bn,CreateSession:W,CreateTerminal:mn,DetachSession:Mn,GetHandler:Ln,GetHandlers:hn,GetPluginHandlers:Fn,GetSession:yn,ListPlugins:_n,ListSessions:An,ResizeSession:$n,WriteSession:In},Symbol.toStringTag,{value:"Module"}));function j(e){return window.go.logs.Client.CloseSession(e)}function U(e,n,t){return window.go.logs.Client.CreateSession(e,n,t)}function On(e){return window.go.logs.Client.GetSession(e)}function Wn(e){return window.go.logs.Client.GetSupportedResources(e)}function jn(){return window.go.logs.Client.ListSessions()}function Un(e){return window.go.logs.Client.PauseSession(e)}function Vn(e){return window.go.logs.Client.ResumeSession(e)}function xn(e,n){return window.go.logs.Client.UpdateSessionOptions(e,n)}const zn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:j,CreateSession:U,GetSession:On,GetSupportedResources:Wn,ListSessions:jn,PauseSession:Un,ResumeSession:Vn,UpdateSessionOptions:xn},Symbol.toStringTag,{value:"Module"}));function V(){return window.go.metric.Client.GetProviders()}function x(e){return window.go.metric.Client.GetProvidersForResource(e)}function Hn(e,n,t){return window.go.metric.Client.Query(e,n,t)}function z(e,n,t,o,i,r,q,J,K,X){return window.go.metric.Client.QueryAll(e,n,t,o,i,r,q,J,K,X)}function H(e,n,t){return window.go.metric.Client.Subscribe(e,n,t)}function D(e){return window.go.metric.Client.Unsubscribe(e)}const Dn=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:V,GetProvidersForResource:x,Query:Hn,QueryAll:z,Subscribe:H,Unsubscribe:D},Symbol.toStringTag,{value:"Module"}));function k(e){return window.go.networker.Client.ClosePortForwardSession(e)}function E(e,n,t){return window.go.networker.Client.FindPortForwardSessions(e,n,t)}function kn(e){return window.go.networker.Client.GetPortForwardSession(e)}function En(e){return window.go.networker.Client.GetSupportedPortForwardTargets(e)}function Q(){return window.go.networker.Client.ListAllPortForwardSessions()}function Qn(e,n){return window.go.networker.Client.ListPortForwardSessions(e,n)}function N(e,n,t){return window.go.networker.Client.StartResourcePortForwardingSession(e,n,t)}const Nn=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:k,FindPortForwardSessions:E,GetPortForwardSession:kn,GetSupportedPortForwardTargets:En,ListAllPortForwardSessions:Q,ListPortForwardSessions:Qn,StartResourcePortForwardingSession:N},Symbol.toStringTag,{value:"Module"}));function Bn(e){return window.go.ui.Client.GetPluginComponents(e)}function B(e){return window.go.ui.Client.GetResourceAreaComponent(e)}function qn(e){return window.go.ui.Client.GetResourceComponents(e)}const Jn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Bn,GetResourceAreaComponent:B,GetResourceComponents:qn},Symbol.toStringTag,{value:"Module"}));exports.Client=Tn;exports.Client$1=Nn;exports.Client$2=Rn;exports.Client$3=ie;exports.Client$4=Jn;exports.Client$5=zn;exports.Client$6=Dn;exports.ClosePortForwardSession=k;exports.CloseSession=j;exports.Create=l;exports.CreateSession=W;exports.CreateSession$1=U;exports.Delete=c;exports.ExecuteAction=w;exports.FindPortForwardSessions=E;exports.Get=a;exports.GetActions=d;exports.GetAllConnectionStates=C;exports.GetConnection=S;exports.GetConnectionNamespaces=f;exports.GetEditorSchemas=p;exports.GetPluginMeta=s;exports.GetProviders=V;exports.GetProvidersForResource=x;exports.GetResourceAreaComponent=B;exports.GetResourceGroups=G;exports.GetResourceType=P;exports.GetResourceTypes=R;exports.GetWatchState=v;exports.List=b;exports.ListAllConnections=m;exports.ListAllPortForwardSessions=Q;exports.ListConnections=M;exports.PluginValues=u;exports.QueryAll=z;exports.RemoveConnection=L;exports.StartConnection=h;exports.StartConnectionWatch=F;exports.StartResourcePortForwardingSession=N;exports.StopConnection=y;exports.StopConnectionWatch=_;exports.StreamAction=A;exports.Subscribe=H;exports.SubscribeResource=$;exports.Unsubscribe=D;exports.UnsubscribeResource=I;exports.Update=T;exports.UpdateConnection=O;exports.Values=g;exports.pluginManager=Ae;exports.provider=Ze;
|