@crowdstrike/logscale-file-editor 1.144.0--build-1494--sha-69dc06ac8267f79be7be7f155fcf4448f2ea9b27 → 1.146.0--build-1557--sha-b25ef862e5966848eff94276c94d791202722993
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/index.d.ts +34 -1
- package/index.js +163 -233
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -57,8 +57,27 @@ export declare function createElement(options: Options): FileEditor;
|
|
57
57
|
* @public @sealed
|
58
58
|
*/
|
59
59
|
export declare class FileEditor extends WebcomponentBase<Options> {
|
60
|
+
/** Saves a callback for when the parameters are changed in the file editor.
|
61
|
+
* @public
|
62
|
+
*/
|
63
|
+
onParametersChanged(callback: (params: FileEditorParameters) => void): void;
|
64
|
+
/** Change the parameters of the file.
|
65
|
+
* @public
|
66
|
+
*/
|
67
|
+
setParameters(parameters: SetStateParameters): void;
|
60
68
|
}
|
61
69
|
|
70
|
+
/**
|
71
|
+
* Parameters for the LogScale FileEditor
|
72
|
+
*
|
73
|
+
* @public
|
74
|
+
*/
|
75
|
+
export declare type FileEditorParameters = {
|
76
|
+
offset: number;
|
77
|
+
limit: number;
|
78
|
+
filterString: string;
|
79
|
+
};
|
80
|
+
|
62
81
|
/** Initialization options.
|
63
82
|
* @public
|
64
83
|
*/
|
@@ -75,7 +94,7 @@ export declare interface Options extends CommonOptions {
|
|
75
94
|
/** If provided, HTTP calls will have the "X-CSRF-Token" header set to this value. */
|
76
95
|
csrfToken?: string;
|
77
96
|
/** Will initialize the webcomponent in light or dark mode. The theme can be switched through the `setTheme()` method after initialization. */
|
78
|
-
theme:
|
97
|
+
theme: "light" | "dark";
|
79
98
|
/** Name of the repository or view. */
|
80
99
|
repoOrViewName: string;
|
81
100
|
/** Language to start the webcomponent in. */
|
@@ -86,8 +105,22 @@ export declare interface Options extends CommonOptions {
|
|
86
105
|
offset?: number;
|
87
106
|
/** The number of rows to display. */
|
88
107
|
limit?: number;
|
108
|
+
/** The string to filter rows by. */
|
109
|
+
filterString?: string | null;
|
89
110
|
}
|
90
111
|
|
112
|
+
/**
|
113
|
+
* Parameters for the LogScale FileEditor's state.
|
114
|
+
* @public
|
115
|
+
*/
|
116
|
+
export declare type SetStateParameters = {
|
117
|
+
repoOrViewName: string;
|
118
|
+
fileName: string;
|
119
|
+
offset?: number;
|
120
|
+
limit?: number;
|
121
|
+
filterString?: string | null;
|
122
|
+
};
|
123
|
+
|
91
124
|
/** Base class for LogScale's webcomponents.
|
92
125
|
* @public */
|
93
126
|
export declare abstract class WebcomponentBase<Opts extends CommonOptions> extends HTMLElement {
|