@splunk/visualization-migrations 27.2.1 → 27.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/index.js +1 -1
- package/index.js.map +2 -2
- package/migrate.js +1 -1
- package/migrate.js.map +2 -2
- package/package.json +4 -4
- package/types/utils/migrationUtils.d.ts +3 -3
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Migration scripts for visualization definitions",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"author": "Splunk",
|
|
6
|
-
"version": "27.
|
|
6
|
+
"version": "27.3.0",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "viz-build",
|
|
9
9
|
"clean": "yarn clean:esbuild && yarn clean:test-reports",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"test:unit:watch": "yarn run test:unit --watch"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@splunk/visualization-encoding": "^27.
|
|
23
|
-
"@splunk/visualization-schemas": "^27.
|
|
22
|
+
"@splunk/visualization-encoding": "^27.3.0",
|
|
23
|
+
"@splunk/visualization-schemas": "^27.3.0",
|
|
24
24
|
"lodash": "^4.17.21"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@splunk/dashboard-types": "^27.5.1",
|
|
28
|
-
"@splunk/visualization-build-tools": "^27.
|
|
28
|
+
"@splunk/visualization-build-tools": "^27.3.0"
|
|
29
29
|
},
|
|
30
30
|
"main": "./index.js",
|
|
31
31
|
"types": "./types"
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
* @param validOptions - Valid visualization option keys
|
|
5
5
|
* @returns void
|
|
6
6
|
*/
|
|
7
|
-
export declare const removeInvalidOptions: (currentOptions: Record<string, unknown>, validOptions
|
|
7
|
+
export declare const removeInvalidOptions: (currentOptions: Record<string, unknown>, validOptions?: Record<string, unknown> | null) => void;
|
|
8
8
|
/**
|
|
9
9
|
* Renames viz options by looking up their migration mapping
|
|
10
10
|
* @param oldOptions - Current visualization options
|
|
11
11
|
* @param optionRenames - Mapping of old options in viz.X to their migrated counterparts in splunk.X
|
|
12
12
|
* @returns updatedOptions
|
|
13
13
|
*/
|
|
14
|
-
export declare const renameVizOptions: (oldOptions: Record<string, unknown>, optionRenames
|
|
14
|
+
export declare const renameVizOptions: (oldOptions: Record<string, unknown>, optionRenames?: Record<string, string> | null) => Record<string, unknown>;
|
|
15
15
|
/**
|
|
16
16
|
* Appends appropriate series selector to DSL string to add viz-specific implicit logic
|
|
17
17
|
* @param valueOption - the value of an option
|
|
18
18
|
* @param selector - the selector to append
|
|
19
19
|
* @returns string | void
|
|
20
20
|
*/
|
|
21
|
-
export declare const preserveDataSelectionForValueOption: (valueOption:
|
|
21
|
+
export declare const preserveDataSelectionForValueOption: (valueOption: unknown, selector: string) => string | void;
|
|
22
22
|
/**
|
|
23
23
|
* For all data options, calls preserveDataSelectionForValueOption with relevant selector and
|
|
24
24
|
* updates dataOptions object
|