@crowdstrike/logscale-parser-edit 1.126.0--build-684--sha-1de8e2885c1117489d131c478ebf5a572b6881cf → 1.135.0--build-1077--sha-96faf780527e4e787b35aa7b6885ca30cce9d302
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 +9 -0
- package/index.js +648 -604
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -40,6 +40,7 @@ export declare interface CommonOptions {
|
|
40
40
|
* const options : Options = {
|
41
41
|
* parserId: "some-parser-id",
|
42
42
|
* repoName: "some-repo-name",
|
43
|
+
* readOnly: false,
|
43
44
|
* apiURL: "https://...",
|
44
45
|
* theme: "dark",
|
45
46
|
* // ...
|
@@ -93,6 +94,10 @@ export declare interface Options extends CommonOptions {
|
|
93
94
|
repoName: string;
|
94
95
|
/** ID of the parser to be edited. */
|
95
96
|
parserId: string;
|
97
|
+
/** Whether the parser should be read-only or editable. Defaults to false (meaning it's editable).
|
98
|
+
* Note that if the parser is built-in, then it will be read-only regardless of this value.
|
99
|
+
*/
|
100
|
+
readOnly?: boolean;
|
96
101
|
}
|
97
102
|
|
98
103
|
/** Custom element that embeds the LogScale parser editor.
|
@@ -107,6 +112,10 @@ export declare class ParserEdit extends WebcomponentBase<Options> {
|
|
107
112
|
* @public
|
108
113
|
*/
|
109
114
|
onSave(callback: (error: Error) => void): void;
|
115
|
+
/** Changes the parser editor to be in read-only mode (when given `true`) or in editable mode (when given `false`).
|
116
|
+
* @public
|
117
|
+
*/
|
118
|
+
setReadOnly(readOnly: boolean): void;
|
110
119
|
}
|
111
120
|
|
112
121
|
/** Base class for LogScale's webcomponents.
|