@crowdstrike/logscale-parser-edit 1.133.0--build-1000--sha-eda0b20aa7989fb26e09b9fc1d187b51b1281400 → 1.136.0--build-1093--sha-79e81f65f3475d1356318149af241973c7f30ec4
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 +527 -534
- 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.
|