From a1dae85928462b5cdc5dc0a84dbe098bef59a8b5 Mon Sep 17 00:00:00 2001 From: Erik Brandin Date: Fri, 8 Oct 2021 09:19:06 +0200 Subject: [PATCH] Updated to Mods API v1.3 Updated relevant examples to use the new Tooltip.show method. --- README.md | 1 + .../js-areachart-d3/spotfire/mod-schema.json | 29 +- ...ire-api-1-2.d.ts => spotfire-api-1-3.d.ts} | 44 +- examples/js-areachart-d3/src/buildSeries.js | 7 +- examples/js-areachart-d3/src/render.js | 52 +- .../js-areachart-d3/static/mod-manifest.json | 5 +- .../js-dev-barchart/spotfire/mod-schema.json | 29 +- ...ire-api-1-2.d.ts => spotfire-api-1-3.d.ts} | 44 +- examples/js-dev-barchart/src/main.js | 2 +- .../js-dev-barchart/src/mod-manifest.json | 5 +- .../spotfire/mod-schema.json | 29 +- ...ire-api-1-2.d.ts => spotfire-api-1-3.d.ts} | 44 +- .../src/circular-treemap.js | 3 +- .../src/mod-manifest.json | 5 +- .../js-dev-starter-ie11/.vscode/launch.json | 17 - .../js-dev-starter-ie11/.vscode/settings.json | 8 - .../js-dev-starter-ie11/.vscode/tasks.json | 17 - examples/js-dev-starter-ie11/README.md | 21 - .../js-dev-starter-ie11/development-server.js | 111 - .../js-dev-starter-ie11/package-lock.json | 6575 ----------------- examples/js-dev-starter-ie11/package.json | 29 - .../js-dev-starter-ie11/prettier.config.js | 29 - .../spotfire/mod-schema.json | 387 - examples/js-dev-starter-ie11/src/main.js | 75 - examples/js-dev-starter-ie11/static/icon.svg | 1 - .../js-dev-starter-ie11/static/index.html | 27 - examples/js-dev-starter-ie11/static/main.css | 14 - .../static/mod-manifest.json | 44 - examples/js-dev-starter-ie11/tsconfig.json | 9 - .../js-dev-starter-ie11/webpack.config.js | 44 - .../spotfire/spotfire-api-1-2.d.ts | 1607 ---- .../spotfire/spotfire-api-1-3.d.ts} | 44 +- .../spotfire/mod-schema.json | 29 +- .../spotfire/spotfire-api-1-2.d.ts | 1607 ---- .../spotfire/spotfire-api-1-3.d.ts | 1645 +++++ .../ts-dev-gauge-googlecharts/tsconfig.json | 2 +- .../spotfire/mod-schema.json | 29 +- .../spotfire/spotfire-api-1-2.d.ts | 1607 ---- .../spotfire/spotfire-api-1-3.d.ts | 1645 +++++ examples/ts-spiderchart-d3/src/index.ts | 50 +- examples/ts-spiderchart-d3/src/series.ts | 6 +- .../static/mod-manifest.json | 5 +- examples/ts-spiderchart-d3/tsconfig.json | 2 +- 43 files changed, 3577 insertions(+), 12408 deletions(-) rename examples/js-areachart-d3/spotfire/{spotfire-api-1-2.d.ts => spotfire-api-1-3.d.ts} (97%) rename examples/js-dev-barchart/spotfire/{spotfire-api-1-2.d.ts => spotfire-api-1-3.d.ts} (97%) rename examples/js-dev-circular-treemap/spotfire/{spotfire-api-1-2.d.ts => spotfire-api-1-3.d.ts} (97%) delete mode 100644 examples/js-dev-starter-ie11/.vscode/launch.json delete mode 100644 examples/js-dev-starter-ie11/.vscode/settings.json delete mode 100644 examples/js-dev-starter-ie11/.vscode/tasks.json delete mode 100644 examples/js-dev-starter-ie11/README.md delete mode 100644 examples/js-dev-starter-ie11/development-server.js delete mode 100644 examples/js-dev-starter-ie11/package-lock.json delete mode 100644 examples/js-dev-starter-ie11/package.json delete mode 100644 examples/js-dev-starter-ie11/prettier.config.js delete mode 100644 examples/js-dev-starter-ie11/spotfire/mod-schema.json delete mode 100644 examples/js-dev-starter-ie11/src/main.js delete mode 100644 examples/js-dev-starter-ie11/static/icon.svg delete mode 100644 examples/js-dev-starter-ie11/static/index.html delete mode 100644 examples/js-dev-starter-ie11/static/main.css delete mode 100644 examples/js-dev-starter-ie11/static/mod-manifest.json delete mode 100644 examples/js-dev-starter-ie11/tsconfig.json delete mode 100644 examples/js-dev-starter-ie11/webpack.config.js delete mode 100644 examples/js-dev-starter/spotfire/spotfire-api-1-2.d.ts rename examples/{js-dev-starter-ie11/spotfire/spotfire-api-1-2.d.ts => js-dev-starter/spotfire/spotfire-api-1-3.d.ts} (97%) delete mode 100644 examples/ts-dev-gauge-googlecharts/spotfire/spotfire-api-1-2.d.ts create mode 100644 examples/ts-dev-gauge-googlecharts/spotfire/spotfire-api-1-3.d.ts delete mode 100644 examples/ts-spiderchart-d3/spotfire/spotfire-api-1-2.d.ts create mode 100644 examples/ts-spiderchart-d3/spotfire/spotfire-api-1-3.d.ts diff --git a/README.md b/README.md index 2b437371..5a02b94e 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ The Mods API is backwards compatible but not forwards compatible. Pick a Mod API | Spotfire 11.0 | 1.0 | | Spotfire 11.3 | 1.1 | | Spotfire 11.4 | 1.2 | +| Spotfire 11.5 | 1.3 | When a mod is trying to use newer API features without updating the [`apiVersion`](https://github.com/TIBCOSoftware/spotfire-mods/blob/7be343f007d2ec9f3d36e5078419b57674db8467/examples/js-dev-barchart/src/mod-manifest.json#L2) in the `mod-manifest.json` the following happens. diff --git a/examples/js-areachart-d3/spotfire/mod-schema.json b/examples/js-areachart-d3/spotfire/mod-schema.json index 93565f7a..f25049ed 100644 --- a/examples/js-areachart-d3/spotfire/mod-schema.json +++ b/examples/js-areachart-d3/spotfire/mod-schema.json @@ -156,8 +156,8 @@ "type": "string", "title": "Mod API version.", "description": "Specifies the version of the Mod JavaScript API used by the code of this Mod. Set the lowest possible version number that the Mod requires to ensure best possible backward compatibility with older Spotfire systems. Using a newer API version than specified will result in runtime errors, even if the current Spotfire system includes that API.", - "default": "1.0", - "examples": ["1.0"], + "default": "1.3", + "examples": ["1.0", "1.1", "1.2", "1.3"], "pattern": "^(.*)$" }, "name": { @@ -186,9 +186,7 @@ "description": "Only declared external resources will work in the mod. A visualization mod with external resources cannot be exported using the web client.", "items": { "type": "string", - "examples": [ - "https://www.example.com" - ] + "examples": ["https://www.example.com"] } }, "properties": { @@ -343,6 +341,21 @@ } ] } + }, + "tooltip": { + "type": "object", + "title": "Use configurable tooltips", + "description": "Specifies how the Mod uses Spotfire native style configurable tooltips. Added in API version 1.3", + "default": {}, + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + "title": "Enabled", + "default": true, + "description": "Specifies whether to enable configurable tooltips, both in the API and in the properties dialog." + } + } } } }, @@ -375,11 +388,7 @@ "type": "string", "title": "The Items Schema", "default": "", - "examples": [ - "index.html", - "main.css", - "main.js" - ], + "examples": ["index.html", "main.css", "main.js"], "pattern": "^(.*)$" } } diff --git a/examples/js-areachart-d3/spotfire/spotfire-api-1-2.d.ts b/examples/js-areachart-d3/spotfire/spotfire-api-1-3.d.ts similarity index 97% rename from examples/js-areachart-d3/spotfire/spotfire-api-1-2.d.ts rename to examples/js-areachart-d3/spotfire/spotfire-api-1-3.d.ts index 420e4571..6865cd2c 100644 --- a/examples/js-areachart-d3/spotfire/spotfire-api-1-2.d.ts +++ b/examples/js-areachart-d3/spotfire/spotfire-api-1-3.d.ts @@ -1,5 +1,5 @@ /* - * Copyright © 2020. TIBCO Software Inc. + * Copyright © 2021. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file. */ @@ -1373,6 +1373,24 @@ export declare interface Reader> { * readables specified when the reader was created. */ hasExpired(): Promise; + /** + * Check whether one or more passed arguments are new since the last time the subscribe loop was called. + * + * @example Check if the data view has changed in the subscribe loop. + * + * ``` + * let reader = mod.createReader(mod.visualization.data(), mod.windowSize()); + * reader.subscribe((dataView, size) => { + * console.log(reader.hasValueChanged(dataView)); + * }); + * ``` + * + * @param value - Value from `subscribe` or `once` arguments. + * @param values - Additional values from `subscribe` or `once` arguments. + * @returns true if any of the values are new, otherwise false. + * @version 1.3 + */ + hasValueChanged(value: UnionFromTupleTypes, ...values: UnionFromTupleTypes[]): boolean; } /** @@ -1594,14 +1612,34 @@ export declare interface Tooltip { * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. * - * Subsequent calls to `show`can be made to update the tooltip text. + * Subsequent calls to `show` can be made to update the tooltip text. * @param content - The text to show in the tooltip. */ show(content: string): void; + /** + * Shows a tooltip for the specified `row` as it has been configured in the properties panel. + * + * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. + * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. + * + * Subsequent calls to `show` can be made to update the tooltip text. + * + * @note For this feature to work, the dataViewDefinition.tooltip.enabled in the mod-manifest.json needs to be set to true. + * + * @param row - The row to show text for in the tooltip. + * @version 1.3 + */ + show(row: DataViewRow): void; /** * Hides the tooltip that is currently being showed, if any. */ hide(): void; } -export {}; +/** + * Extract all possible types in a Tuple type. + * @public + */ +export declare type UnionFromTupleTypes = T[number] | U; + +export { } diff --git a/examples/js-areachart-d3/src/buildSeries.js b/examples/js-areachart-d3/src/buildSeries.js index 625df1c8..9756f459 100644 --- a/examples/js-areachart-d3/src/buildSeries.js +++ b/examples/js-areachart-d3/src/buildSeries.js @@ -25,6 +25,7 @@ * y1: number; * marked: boolean; * gapFilled: boolean; + * tooltip: Spotfire.DataViewRow; * }} Point */ @@ -58,7 +59,8 @@ export function buildColorSeries(colorLeaves, xLeaves, hasX, hasY, stackMode, ga marked: row.isMarked(), color: row.color().hexCode, colorIndex: colorLeaf.leafIndex, - gapFilled: false + gapFilled: false, + tooltip: row })) })); @@ -85,7 +87,8 @@ export function buildColorSeries(colorLeaves, xLeaves, hasX, hasY, stackMode, ga colorIndex: serie.colorIndex, marked: allMarked, color: !leftPoint.marked ? leftPoint.color : rightPoint.color, - gapFilled: true + gapFilled: true, + tooltip: undefined }); } } diff --git a/examples/js-areachart-d3/src/render.js b/examples/js-areachart-d3/src/render.js index 6a34391f..477ccabb 100644 --- a/examples/js-areachart-d3/src/render.js +++ b/examples/js-areachart-d3/src/render.js @@ -499,7 +499,7 @@ export async function render(state, mod, dataView, windowSize, chartType, rounde function handleMouseOverPoint(data) { g.attr("visibility", "visible"); - tooltip.show(createPointTooltip(data)); + tooltip.show(data.tooltip); } function handleMouseOut() { @@ -652,56 +652,6 @@ export async function render(state, mod, dataView, windowSize, chartType, rounde .join("\n"); } - /** - * Mimic the built in Spotfire tooltip - * @param {Point} point - * @returns {string} - */ - function createPointTooltip(point) { - const separator = "\n"; - let colorValues = getFormattedValues(colorLeaves[point.colorIndex]); - let xValues = getFormattedValues(xLeaves[point.xIndex]); - let yDisplayName = yAxisMeta.parts[0].displayName; - - if (yAxisMeta.parts.length > 1) { - // Find the corresponding display name for the y axis value for multiple measures. - let colorLevelForColumnNames = colorAxisMeta.parts.map((p) => p.expression).indexOf("[Axis.Default.Names]"); - let xLevelForColumnNames = xAxisMeta.parts.map((p) => p.expression).indexOf("[Axis.Default.Names]"); - if (colorLevelForColumnNames >= 0) { - yDisplayName = colorValues[colorLevelForColumnNames]; - } - - if (xLevelForColumnNames >= 0) { - yDisplayName = xValues[xLevelForColumnNames]; - } - } - - let xLabel = - createAxisTooltip( - xAxisMeta.parts.map((p) => p.displayName), - xValues, - separator - ) || - (xAxisMeta.parts.length - ? createAxisTooltip([xAxisMeta.name + " axis"], [xLeaves[point.xIndex].formattedPath()], separator) - : ""); - let colorLabel = - createAxisTooltip( - colorAxisMeta.parts.map((p) => p.displayName), - colorValues, - separator - ) || - (colorAxisMeta.parts.length - ? createAxisTooltip( - [colorAxisMeta.name + " axis"], - [colorLeaves[point.colorIndex].formattedPath()], - separator - ) - : ""); - - return [xLabel, yDisplayName + ": " + point.Y_Formatted, colorLabel].join(separator); - } - /** * Popout content */ diff --git a/examples/js-areachart-d3/static/mod-manifest.json b/examples/js-areachart-d3/static/mod-manifest.json index 7e2cbe47..91b1314b 100644 --- a/examples/js-areachart-d3/static/mod-manifest.json +++ b/examples/js-areachart-d3/static/mod-manifest.json @@ -1,6 +1,6 @@ { - "apiVersion": "1.2", - "version": "1.1.0", + "apiVersion": "1.3", + "version": "1.2.0", "name": "Area Chart", "id": "spotfire-area-chart-mod", "icon": "icon.svg", @@ -22,6 +22,7 @@ } ], "dataViewDefinition": { + "tooltip": { "enabled": true }, "colorAxis": { "mode": "categorical", "dropTarget": { diff --git a/examples/js-dev-barchart/spotfire/mod-schema.json b/examples/js-dev-barchart/spotfire/mod-schema.json index 93565f7a..f25049ed 100644 --- a/examples/js-dev-barchart/spotfire/mod-schema.json +++ b/examples/js-dev-barchart/spotfire/mod-schema.json @@ -156,8 +156,8 @@ "type": "string", "title": "Mod API version.", "description": "Specifies the version of the Mod JavaScript API used by the code of this Mod. Set the lowest possible version number that the Mod requires to ensure best possible backward compatibility with older Spotfire systems. Using a newer API version than specified will result in runtime errors, even if the current Spotfire system includes that API.", - "default": "1.0", - "examples": ["1.0"], + "default": "1.3", + "examples": ["1.0", "1.1", "1.2", "1.3"], "pattern": "^(.*)$" }, "name": { @@ -186,9 +186,7 @@ "description": "Only declared external resources will work in the mod. A visualization mod with external resources cannot be exported using the web client.", "items": { "type": "string", - "examples": [ - "https://www.example.com" - ] + "examples": ["https://www.example.com"] } }, "properties": { @@ -343,6 +341,21 @@ } ] } + }, + "tooltip": { + "type": "object", + "title": "Use configurable tooltips", + "description": "Specifies how the Mod uses Spotfire native style configurable tooltips. Added in API version 1.3", + "default": {}, + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + "title": "Enabled", + "default": true, + "description": "Specifies whether to enable configurable tooltips, both in the API and in the properties dialog." + } + } } } }, @@ -375,11 +388,7 @@ "type": "string", "title": "The Items Schema", "default": "", - "examples": [ - "index.html", - "main.css", - "main.js" - ], + "examples": ["index.html", "main.css", "main.js"], "pattern": "^(.*)$" } } diff --git a/examples/js-dev-barchart/spotfire/spotfire-api-1-2.d.ts b/examples/js-dev-barchart/spotfire/spotfire-api-1-3.d.ts similarity index 97% rename from examples/js-dev-barchart/spotfire/spotfire-api-1-2.d.ts rename to examples/js-dev-barchart/spotfire/spotfire-api-1-3.d.ts index 420e4571..6865cd2c 100644 --- a/examples/js-dev-barchart/spotfire/spotfire-api-1-2.d.ts +++ b/examples/js-dev-barchart/spotfire/spotfire-api-1-3.d.ts @@ -1,5 +1,5 @@ /* - * Copyright © 2020. TIBCO Software Inc. + * Copyright © 2021. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file. */ @@ -1373,6 +1373,24 @@ export declare interface Reader> { * readables specified when the reader was created. */ hasExpired(): Promise; + /** + * Check whether one or more passed arguments are new since the last time the subscribe loop was called. + * + * @example Check if the data view has changed in the subscribe loop. + * + * ``` + * let reader = mod.createReader(mod.visualization.data(), mod.windowSize()); + * reader.subscribe((dataView, size) => { + * console.log(reader.hasValueChanged(dataView)); + * }); + * ``` + * + * @param value - Value from `subscribe` or `once` arguments. + * @param values - Additional values from `subscribe` or `once` arguments. + * @returns true if any of the values are new, otherwise false. + * @version 1.3 + */ + hasValueChanged(value: UnionFromTupleTypes, ...values: UnionFromTupleTypes[]): boolean; } /** @@ -1594,14 +1612,34 @@ export declare interface Tooltip { * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. * - * Subsequent calls to `show`can be made to update the tooltip text. + * Subsequent calls to `show` can be made to update the tooltip text. * @param content - The text to show in the tooltip. */ show(content: string): void; + /** + * Shows a tooltip for the specified `row` as it has been configured in the properties panel. + * + * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. + * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. + * + * Subsequent calls to `show` can be made to update the tooltip text. + * + * @note For this feature to work, the dataViewDefinition.tooltip.enabled in the mod-manifest.json needs to be set to true. + * + * @param row - The row to show text for in the tooltip. + * @version 1.3 + */ + show(row: DataViewRow): void; /** * Hides the tooltip that is currently being showed, if any. */ hide(): void; } -export {}; +/** + * Extract all possible types in a Tuple type. + * @public + */ +export declare type UnionFromTupleTypes = T[number] | U; + +export { } diff --git a/examples/js-dev-barchart/src/main.js b/examples/js-dev-barchart/src/main.js index 1f8e2f24..585065bc 100644 --- a/examples/js-dev-barchart/src/main.js +++ b/examples/js-dev-barchart/src/main.js @@ -363,7 +363,7 @@ Spotfire.initialize(async (mod) => { segment.style.backgroundColor = row.color().hexCode; segment.onmouseover = (e) => { - mod.controls.tooltip.show(xLeafNode.formattedPath() + ": " + y.formattedValue()); + mod.controls.tooltip.show(row); }; segment.onmouseout = (e) => { mod.controls.tooltip.hide(); diff --git a/examples/js-dev-barchart/src/mod-manifest.json b/examples/js-dev-barchart/src/mod-manifest.json index 9a48fee7..0328c4a2 100644 --- a/examples/js-dev-barchart/src/mod-manifest.json +++ b/examples/js-dev-barchart/src/mod-manifest.json @@ -1,6 +1,6 @@ { - "apiVersion": "1.2", - "version": "1.0", + "apiVersion": "1.3", + "version": "1.1", "name": "Bar Chart", "id": "js-dev-barchart", "icon": "icon.svg", @@ -17,6 +17,7 @@ } ], "dataViewDefinition": { + "tooltip": { "enabled": true }, "colorAxis": { "mode": "dual", "dropTarget": { diff --git a/examples/js-dev-circular-treemap/spotfire/mod-schema.json b/examples/js-dev-circular-treemap/spotfire/mod-schema.json index 93565f7a..f25049ed 100644 --- a/examples/js-dev-circular-treemap/spotfire/mod-schema.json +++ b/examples/js-dev-circular-treemap/spotfire/mod-schema.json @@ -156,8 +156,8 @@ "type": "string", "title": "Mod API version.", "description": "Specifies the version of the Mod JavaScript API used by the code of this Mod. Set the lowest possible version number that the Mod requires to ensure best possible backward compatibility with older Spotfire systems. Using a newer API version than specified will result in runtime errors, even if the current Spotfire system includes that API.", - "default": "1.0", - "examples": ["1.0"], + "default": "1.3", + "examples": ["1.0", "1.1", "1.2", "1.3"], "pattern": "^(.*)$" }, "name": { @@ -186,9 +186,7 @@ "description": "Only declared external resources will work in the mod. A visualization mod with external resources cannot be exported using the web client.", "items": { "type": "string", - "examples": [ - "https://www.example.com" - ] + "examples": ["https://www.example.com"] } }, "properties": { @@ -343,6 +341,21 @@ } ] } + }, + "tooltip": { + "type": "object", + "title": "Use configurable tooltips", + "description": "Specifies how the Mod uses Spotfire native style configurable tooltips. Added in API version 1.3", + "default": {}, + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + "title": "Enabled", + "default": true, + "description": "Specifies whether to enable configurable tooltips, both in the API and in the properties dialog." + } + } } } }, @@ -375,11 +388,7 @@ "type": "string", "title": "The Items Schema", "default": "", - "examples": [ - "index.html", - "main.css", - "main.js" - ], + "examples": ["index.html", "main.css", "main.js"], "pattern": "^(.*)$" } } diff --git a/examples/js-dev-circular-treemap/spotfire/spotfire-api-1-2.d.ts b/examples/js-dev-circular-treemap/spotfire/spotfire-api-1-3.d.ts similarity index 97% rename from examples/js-dev-circular-treemap/spotfire/spotfire-api-1-2.d.ts rename to examples/js-dev-circular-treemap/spotfire/spotfire-api-1-3.d.ts index 420e4571..6865cd2c 100644 --- a/examples/js-dev-circular-treemap/spotfire/spotfire-api-1-2.d.ts +++ b/examples/js-dev-circular-treemap/spotfire/spotfire-api-1-3.d.ts @@ -1,5 +1,5 @@ /* - * Copyright © 2020. TIBCO Software Inc. + * Copyright © 2021. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file. */ @@ -1373,6 +1373,24 @@ export declare interface Reader> { * readables specified when the reader was created. */ hasExpired(): Promise; + /** + * Check whether one or more passed arguments are new since the last time the subscribe loop was called. + * + * @example Check if the data view has changed in the subscribe loop. + * + * ``` + * let reader = mod.createReader(mod.visualization.data(), mod.windowSize()); + * reader.subscribe((dataView, size) => { + * console.log(reader.hasValueChanged(dataView)); + * }); + * ``` + * + * @param value - Value from `subscribe` or `once` arguments. + * @param values - Additional values from `subscribe` or `once` arguments. + * @returns true if any of the values are new, otherwise false. + * @version 1.3 + */ + hasValueChanged(value: UnionFromTupleTypes, ...values: UnionFromTupleTypes[]): boolean; } /** @@ -1594,14 +1612,34 @@ export declare interface Tooltip { * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. * - * Subsequent calls to `show`can be made to update the tooltip text. + * Subsequent calls to `show` can be made to update the tooltip text. * @param content - The text to show in the tooltip. */ show(content: string): void; + /** + * Shows a tooltip for the specified `row` as it has been configured in the properties panel. + * + * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. + * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. + * + * Subsequent calls to `show` can be made to update the tooltip text. + * + * @note For this feature to work, the dataViewDefinition.tooltip.enabled in the mod-manifest.json needs to be set to true. + * + * @param row - The row to show text for in the tooltip. + * @version 1.3 + */ + show(row: DataViewRow): void; /** * Hides the tooltip that is currently being showed, if any. */ hide(): void; } -export {}; +/** + * Extract all possible types in a Tuple type. + * @public + */ +export declare type UnionFromTupleTypes = T[number] | U; + +export { } diff --git a/examples/js-dev-circular-treemap/src/circular-treemap.js b/examples/js-dev-circular-treemap/src/circular-treemap.js index 39f3dfb6..2d029793 100644 --- a/examples/js-dev-circular-treemap/src/circular-treemap.js +++ b/examples/js-dev-circular-treemap/src/circular-treemap.js @@ -282,8 +282,7 @@ Spotfire.initialize(function (mod) { // Hide tooltip for non leaf nodes. mod.controls.tooltip.hide(); } else { - const size = sizeAxis !== null ? getRow(sfNode).continuous("Size").formattedValue() : ""; - mod.controls.tooltip.show(sfNode.formattedPath() + "\r\n" + size); + mod.controls.tooltip.show(getRow(sfNode)); } }); diff --git a/examples/js-dev-circular-treemap/src/mod-manifest.json b/examples/js-dev-circular-treemap/src/mod-manifest.json index e7db3456..ec7048ab 100644 --- a/examples/js-dev-circular-treemap/src/mod-manifest.json +++ b/examples/js-dev-circular-treemap/src/mod-manifest.json @@ -1,10 +1,11 @@ { - "apiVersion": "1.2", - "version": "1.0", + "apiVersion": "1.3", + "version": "1.1", "name": "Circular Treemap", "id": "js-dev-circular-treemap", "icon": "icon.svg", "dataViewDefinition": { + "tooltip": { "enabled": true }, "colorAxis": { "mode": "dual", "preferredDualMode": "continuous", diff --git a/examples/js-dev-starter-ie11/.vscode/launch.json b/examples/js-dev-starter-ie11/.vscode/launch.json deleted file mode 100644 index 6627c9a9..00000000 --- a/examples/js-dev-starter-ie11/.vscode/launch.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Attach to Spotfire Professional", - "type": "chrome", - "url": "http://localhost:*/?view=*", - "request": "attach", - "port": 8066, - "sourceMaps": true, - "webRoot": "${workspaceRoot}/files" - } - ] -} \ No newline at end of file diff --git a/examples/js-dev-starter-ie11/.vscode/settings.json b/examples/js-dev-starter-ie11/.vscode/settings.json deleted file mode 100644 index d01e442c..00000000 --- a/examples/js-dev-starter-ie11/.vscode/settings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "json.schemas": [ - { - "fileMatch": ["/mod-manifest.json"], - "url": "./spotfire/mod-schema.json" - } - ] -} \ No newline at end of file diff --git a/examples/js-dev-starter-ie11/.vscode/tasks.json b/examples/js-dev-starter-ie11/.vscode/tasks.json deleted file mode 100644 index cf0e847c..00000000 --- a/examples/js-dev-starter-ie11/.vscode/tasks.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "Start ", - "type": "shell", - "command": "npm start", - "group": { - "kind": "build", - "isDefault": true - }, - "problemMatcher": ["$tsc"] - } - ] -} diff --git a/examples/js-dev-starter-ie11/README.md b/examples/js-dev-starter-ie11/README.md deleted file mode 100644 index 3fbdea2f..00000000 --- a/examples/js-dev-starter-ie11/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Mod starter project (with IE11 support) -This is a mod template project. It contains the minimum amount of code necessary to run a working mod in all major browsers (including IE11). It's bundled with `Webpack` and transpiled with `Babel`. - -All source code for the mod example can be found in the `src` folder. Other necessary files reside in the `static` folder. Read below for further explanation. - -## Prerequisites -These instructions assume that you have [Node.js](https://nodejs.org/en/) (which includes npm) installed. - -## How to get started (with development server) -- Open a terminal at the location of this example. -- Run `npm install`. This will install necessary tools. Run this command only the first time you are building the mod and skip this step for any subsequent builds. -- Run `npm start`. This will bundle the JavaScript and place it in the `dist` folder. This task will watch for changes in code and will continue running until it is stopped. Whenever you save a file the changes will be reflected in the Mod Visualization. -- Run `npm run server` in a separate terminal. This will start a development server. -- Start editing, e.g `src/main.js` -- In Spotfire, follow the steps of creating a new mod and connecting to development server. - -## Working without a development server -- Open a terminal at the location of this example. -- Run `npm install`. This will install necessary tools. Run this command only the first time you are building the mod and skip this step for any subsequent builds. -- Run `npm run build`. This will bundle the JavaScript and place it in the `dist` folder. It also copies the contents of `static` into `dist`. This task will not watch for changes in code. -- In Spotfire, follow the steps of creating a new mod and then browse for, and point to, the _manifest_ in the `dist` folder. \ No newline at end of file diff --git a/examples/js-dev-starter-ie11/development-server.js b/examples/js-dev-starter-ie11/development-server.js deleted file mode 100644 index 3e6dac11..00000000 --- a/examples/js-dev-starter-ie11/development-server.js +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright © 2020. TIBCO Software Inc. - * This file is subject to the license terms contained - * in the license file that is distributed with this file. - */ - -//@ts-check - -/** - * # Spotfire mods development server - * The purpose of the development server is to simplify the development of mods. The development server mimics the way the Spotfire runtime works in regards to cross origin requests and content security policies. - */ - -const liveServer = require("live-server"); -const path = require("path"); -const fs = require("fs"); -const { promisify } = require("util"); -const readFile = promisify(fs.readFile); -const readdir = promisify(fs.readdir); - -const manifestName = "mod-manifest.json"; -const rootDirectory = process.argv[2] || "./src/"; - -// The development server tries to mimic the CSP policy used by the Spotfire runtime. -const allowedExternalResources = new Set(); -let declaredExternalResourcesInManifest = []; - -main(); - -async function main() { - await readExternalResourcesFromManifest(); - - liveServer.start({ - port: 8090, - noCssInject: true, - cors: false, - // @ts-ignore - open: "/" + manifestName, - root: rootDirectory, - wait: 250, // Waits for all changes, before reloading. Defaults to 0 sec. - middleware: [cacheRedirect] - }); -} - -/** - * Read external resources from the mod manifest placed in the root directory. - */ -async function readExternalResourcesFromManifest() { - const rootDirectoryAbsolutePath = path.resolve(rootDirectory); - const files = await readdir(rootDirectoryAbsolutePath); - - if (files.find((fileName) => fileName == manifestName)) { - const manifestPath = path.join(rootDirectoryAbsolutePath, manifestName); - - await readExternalResources(); - fs.watch(manifestPath, {}, readExternalResources); - - async function readExternalResources() { - let content = await readFile(manifestPath, { encoding: "utf-8" }); - - try { - let json = JSON.parse(content); - declaredExternalResourcesInManifest = json.externalResources || []; - } catch (err) {} - } - } else { - console.warn("Could not find a mod-manifest.json in the root directory", rootDirectoryAbsolutePath); - } -} - -/** - * Middleware to manage caching and CSP headers. - * @param {any} req - request object - * @param {any} res - response object - * @param {any} next - next callback to invoke the next middleware - */ -function cacheRedirect(req, res, next) { - const isCorsRequest = req.headers.origin != undefined; - const requestFromOutsideSandbox = req.headers.origin != "null"; - - // Prevent CORS requests from the sandboxed iframe. E.g module loading will not work in embedded mode. - if (isCorsRequest && requestFromOutsideSandbox) { - allowedExternalResources.add(req.headers.origin); - - res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); - res.setHeader("Access-Control-Allow-Origin", "*"); - } - - // Turn off caching on everything to avoid stale CSP headers etc. in the browser. - // This also ensures that live server can inject its websocket snippet in .html pages it serves to the mod iframe. - res.setHeader("Cache-Control", "no-store"); - - if (req.method !== "GET") { - next(); - return; - } - - // Set same security headers in the development server as in the Spotfire runtime. - res.setHeader( - "content-security-policy", - `sandbox allow-scripts; default-src 'self' 'unsafe-eval' 'unsafe-hashes' 'unsafe-inline' blob: data: ${[ - ...allowedExternalResources.values(), - ...declaredExternalResourcesInManifest - ].join(" ")}` - ); - - // CSP header used by older browsers where the CSP policy is not fully supported. - res.setHeader("x-content-security-policy", "sandbox allow-scripts"); - - next(); -} diff --git a/examples/js-dev-starter-ie11/package-lock.json b/examples/js-dev-starter-ie11/package-lock.json deleted file mode 100644 index e6e124b2..00000000 --- a/examples/js-dev-starter-ie11/package-lock.json +++ /dev/null @@ -1,6575 +0,0 @@ -{ - "name": "mod-starter", - "version": "1.0.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "@babel/compat-data": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.12.7.tgz", - "integrity": "sha512-YaxPMGs/XIWtYqrdEOZOCPsVWfEoriXopnsz3/i7apYPXQ3698UFhS6dVT1KN5qOsWmVgw/FOrmQgpRaZayGsw==", - "dev": true - }, - "@babel/core": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.10.tgz", - "integrity": "sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dpZ68eN6d8w==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/generator": "^7.12.10", - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helpers": "^7.12.5", - "@babel/parser": "^7.12.10", - "@babel/template": "^7.12.7", - "@babel/traverse": "^7.12.10", - "@babel/types": "^7.12.10", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.19", - "semver": "^5.4.1", - "source-map": "^0.5.0" - } - }, - "@babel/generator": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.11.tgz", - "integrity": "sha512-Ggg6WPOJtSi8yYQvLVjG8F/TlpWDlKx0OpS4Kt+xMQPs5OaGYWy+v1A+1TvxI6sAMGZpKWWoAQ1DaeQbImlItA==", - "dev": true, - "requires": { - "@babel/types": "^7.12.11", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.12.10.tgz", - "integrity": "sha512-XplmVbC1n+KY6jL8/fgLVXXUauDIB+lD5+GsQEh6F6GBF1dq1qy4DP4yXWzDKcoqXB3X58t61e85Fitoww4JVQ==", - "dev": true, - "requires": { - "@babel/types": "^7.12.10" - } - }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.10.4.tgz", - "integrity": "sha512-L0zGlFrGWZK4PbT8AszSfLTM5sDU1+Az/En9VrdT8/LmEiJt4zXt+Jve9DCAnQcbqDhCI+29y/L93mrDzddCcg==", - "dev": true, - "requires": { - "@babel/helper-explode-assignable-expression": "^7.10.4", - "@babel/types": "^7.10.4" - } - }, - "@babel/helper-compilation-targets": { - "version": "7.12.5", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.12.5.tgz", - "integrity": "sha512-+qH6NrscMolUlzOYngSBMIOQpKUGPPsc61Bu5W10mg84LxZ7cmvnBHzARKbDoFxVvqqAbj6Tg6N7bSrWSPXMyw==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.12.5", - "@babel/helper-validator-option": "^7.12.1", - "browserslist": "^4.14.5", - "semver": "^5.5.0" - } - }, - "@babel/helper-create-class-features-plugin": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.12.1.tgz", - "integrity": "sha512-hkL++rWeta/OVOBTRJc9a5Azh5mt5WgZUGAKMD8JM141YsE08K//bp1unBBieO6rUKkIPyUE0USQ30jAy3Sk1w==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.10.4", - "@babel/helper-member-expression-to-functions": "^7.12.1", - "@babel/helper-optimise-call-expression": "^7.10.4", - "@babel/helper-replace-supers": "^7.12.1", - "@babel/helper-split-export-declaration": "^7.10.4" - } - }, - "@babel/helper-create-regexp-features-plugin": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.12.7.tgz", - "integrity": "sha512-idnutvQPdpbduutvi3JVfEgcVIHooQnhvhx0Nk9isOINOIGYkZea1Pk2JlJRiUnMefrlvr0vkByATBY/mB4vjQ==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.10.4", - "regexpu-core": "^4.7.1" - } - }, - "@babel/helper-define-map": { - "version": "7.10.5", - "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.10.5.tgz", - "integrity": "sha512-fMw4kgFB720aQFXSVaXr79pjjcW5puTCM16+rECJ/plGS+zByelE8l9nCpV1GibxTnFVmUuYG9U8wYfQHdzOEQ==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.10.4", - "@babel/types": "^7.10.5", - "lodash": "^4.17.19" - } - }, - "@babel/helper-explode-assignable-expression": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.12.1.tgz", - "integrity": "sha512-dmUwH8XmlrUpVqgtZ737tK88v07l840z9j3OEhCLwKTkjlvKpfqXVIZ0wpK3aeOxspwGrf/5AP5qLx4rO3w5rA==", - "dev": true, - "requires": { - "@babel/types": "^7.12.1" - } - }, - "@babel/helper-function-name": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.12.11.tgz", - "integrity": "sha512-AtQKjtYNolKNi6nNNVLQ27CP6D9oFR6bq/HPYSizlzbp7uC1M59XJe8L+0uXjbIaZaUJF99ruHqVGiKXU/7ybA==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.12.10", - "@babel/template": "^7.12.7", - "@babel/types": "^7.12.11" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.10.tgz", - "integrity": "sha512-mm0n5BPjR06wh9mPQaDdXWDoll/j5UpCAPl1x8fS71GHm7HA6Ua2V4ylG1Ju8lvcTOietbPNNPaSilKj+pj+Ag==", - "dev": true, - "requires": { - "@babel/types": "^7.12.10" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.10.4.tgz", - "integrity": "sha512-wljroF5PgCk2juF69kanHVs6vrLwIPNp6DLD+Lrl3hoQ3PpPPikaDRNFA+0t81NOoMt2DL6WW/mdU8k4k6ZzuA==", - "dev": true, - "requires": { - "@babel/types": "^7.10.4" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.7.tgz", - "integrity": "sha512-DCsuPyeWxeHgh1Dus7APn7iza42i/qXqiFPWyBDdOFtvS581JQePsc1F/nD+fHrcswhLlRc2UpYS1NwERxZhHw==", - "dev": true, - "requires": { - "@babel/types": "^7.12.7" - } - }, - "@babel/helper-module-imports": { - "version": "7.12.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.12.5.tgz", - "integrity": "sha512-SR713Ogqg6++uexFRORf/+nPXMmWIn80TALu0uaFb+iQIUoR7bOC7zBWyzBs5b3tBBJXuyD0cRu1F15GyzjOWA==", - "dev": true, - "requires": { - "@babel/types": "^7.12.5" - } - }, - "@babel/helper-module-transforms": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.12.1.tgz", - "integrity": "sha512-QQzehgFAZ2bbISiCpmVGfiGux8YVFXQ0abBic2Envhej22DVXV9nCFaS5hIQbkyo1AdGb+gNME2TSh3hYJVV/w==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.12.1", - "@babel/helper-replace-supers": "^7.12.1", - "@babel/helper-simple-access": "^7.12.1", - "@babel/helper-split-export-declaration": "^7.11.0", - "@babel/helper-validator-identifier": "^7.10.4", - "@babel/template": "^7.10.4", - "@babel/traverse": "^7.12.1", - "@babel/types": "^7.12.1", - "lodash": "^4.17.19" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.10.tgz", - "integrity": "sha512-4tpbU0SrSTjjt65UMWSrUOPZTsgvPgGG4S8QSTNHacKzpS51IVWGDj0yCwyeZND/i+LSN2g/O63jEXEWm49sYQ==", - "dev": true, - "requires": { - "@babel/types": "^7.12.10" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", - "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==", - "dev": true - }, - "@babel/helper-remap-async-to-generator": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.12.1.tgz", - "integrity": "sha512-9d0KQCRM8clMPcDwo8SevNs+/9a8yWVVmaE80FGJcEP8N1qToREmWEGnBn8BUlJhYRFz6fqxeRL1sl5Ogsed7A==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.10.4", - "@babel/helper-wrap-function": "^7.10.4", - "@babel/types": "^7.12.1" - } - }, - "@babel/helper-replace-supers": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.12.11.tgz", - "integrity": "sha512-q+w1cqmhL7R0FNzth/PLLp2N+scXEK/L2AHbXUyydxp828F4FEa5WcVoqui9vFRiHDQErj9Zof8azP32uGVTRA==", - "dev": true, - "requires": { - "@babel/helper-member-expression-to-functions": "^7.12.7", - "@babel/helper-optimise-call-expression": "^7.12.10", - "@babel/traverse": "^7.12.10", - "@babel/types": "^7.12.11" - } - }, - "@babel/helper-simple-access": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.12.1.tgz", - "integrity": "sha512-OxBp7pMrjVewSSC8fXDFrHrBcJATOOFssZwv16F3/6Xtc138GHybBfPbm9kfiqQHKhYQrlamWILwlDCeyMFEaA==", - "dev": true, - "requires": { - "@babel/types": "^7.12.1" - } - }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.12.1.tgz", - "integrity": "sha512-Mf5AUuhG1/OCChOJ/HcADmvcHM42WJockombn8ATJG3OnyiSxBK/Mm5x78BQWvmtXZKHgbjdGL2kin/HOLlZGA==", - "dev": true, - "requires": { - "@babel/types": "^7.12.1" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.11.tgz", - "integrity": "sha512-LsIVN8j48gHgwzfocYUSkO/hjYAOJqlpJEc7tGXcIm4cubjVUf8LGW6eWRyxEu7gA25q02p0rQUWoCI33HNS5g==", - "dev": true, - "requires": { - "@babel/types": "^7.12.11" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", - "dev": true - }, - "@babel/helper-validator-option": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.12.11.tgz", - "integrity": "sha512-TBFCyj939mFSdeX7U7DDj32WtzYY7fDcalgq8v3fBZMNOJQNn7nOYzMaUCiPxPYfCup69mtIpqlKgMZLvQ8Xhw==", - "dev": true - }, - "@babel/helper-wrap-function": { - "version": "7.12.3", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.12.3.tgz", - "integrity": "sha512-Cvb8IuJDln3rs6tzjW3Y8UeelAOdnpB8xtQ4sme2MSZ9wOxrbThporC0y/EtE16VAtoyEfLM404Xr1e0OOp+ow==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.10.4", - "@babel/template": "^7.10.4", - "@babel/traverse": "^7.10.4", - "@babel/types": "^7.10.4" - } - }, - "@babel/helpers": { - "version": "7.12.5", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.12.5.tgz", - "integrity": "sha512-lgKGMQlKqA8meJqKsW6rUnc4MdUk35Ln0ATDqdM1a/UpARODdI4j5Y5lVfUScnSNkJcdCRAaWkspykNoFg9sJA==", - "dev": true, - "requires": { - "@babel/template": "^7.10.4", - "@babel/traverse": "^7.12.5", - "@babel/types": "^7.12.5" - } - }, - "@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.11.tgz", - "integrity": "sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==", - "dev": true - }, - "@babel/plugin-proposal-async-generator-functions": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.12.12.tgz", - "integrity": "sha512-nrz9y0a4xmUrRq51bYkWJIO5SBZyG2ys2qinHsN0zHDHVsUaModrkpyWWWXfGqYQmOL3x9sQIcTNN/pBGpo09A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-remap-async-to-generator": "^7.12.1", - "@babel/plugin-syntax-async-generators": "^7.8.0" - } - }, - "@babel/plugin-proposal-class-properties": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.1.tgz", - "integrity": "sha512-cKp3dlQsFsEs5CWKnN7BnSHOd0EOW8EKpEjkoz1pO2E5KzIDNV9Ros1b0CnmbVgAGXJubOYVBOGCT1OmJwOI7w==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-proposal-dynamic-import": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.12.1.tgz", - "integrity": "sha512-a4rhUSZFuq5W8/OO8H7BL5zspjnc1FLd9hlOxIK/f7qG4a0qsqk8uvF/ywgBA8/OmjsapjpvaEOYItfGG1qIvQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-dynamic-import": "^7.8.0" - } - }, - "@babel/plugin-proposal-export-namespace-from": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.12.1.tgz", - "integrity": "sha512-6CThGf0irEkzujYS5LQcjBx8j/4aQGiVv7J9+2f7pGfxqyKh3WnmVJYW3hdrQjyksErMGBPQrCnHfOtna+WLbw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - } - }, - "@babel/plugin-proposal-json-strings": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.12.1.tgz", - "integrity": "sha512-GoLDUi6U9ZLzlSda2Df++VSqDJg3CG+dR0+iWsv6XRw1rEq+zwt4DirM9yrxW6XWaTpmai1cWJLMfM8qQJf+yw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.0" - } - }, - "@babel/plugin-proposal-logical-assignment-operators": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.12.1.tgz", - "integrity": "sha512-k8ZmVv0JU+4gcUGeCDZOGd0lCIamU/sMtIiX3UWnUc5yzgq6YUGyEolNYD+MLYKfSzgECPcqetVcJP9Afe/aCA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - } - }, - "@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.1.tgz", - "integrity": "sha512-nZY0ESiaQDI1y96+jk6VxMOaL4LPo/QDHBqL+SF3/vl6dHkTwHlOI8L4ZwuRBHgakRBw5zsVylel7QPbbGuYgg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0" - } - }, - "@babel/plugin-proposal-numeric-separator": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.12.7.tgz", - "integrity": "sha512-8c+uy0qmnRTeukiGsjLGy6uVs/TFjJchGXUeBqlG4VWYOdJWkhhVPdQ3uHwbmalfJwv2JsV0qffXP4asRfL2SQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - } - }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz", - "integrity": "sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.0", - "@babel/plugin-transform-parameters": "^7.12.1" - } - }, - "@babel/plugin-proposal-optional-catch-binding": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.12.1.tgz", - "integrity": "sha512-hFvIjgprh9mMw5v42sJWLI1lzU5L2sznP805zeT6rySVRA0Y18StRhDqhSxlap0oVgItRsB6WSROp4YnJTJz0g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.0" - } - }, - "@babel/plugin-proposal-optional-chaining": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.7.tgz", - "integrity": "sha512-4ovylXZ0PWmwoOvhU2vhnzVNnm88/Sm9nx7V8BPgMvAzn5zDou3/Awy0EjglyubVHasJj+XCEkr/r1X3P5elCA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-skip-transparent-expression-wrappers": "^7.12.1", - "@babel/plugin-syntax-optional-chaining": "^7.8.0" - } - }, - "@babel/plugin-proposal-private-methods": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.1.tgz", - "integrity": "sha512-mwZ1phvH7/NHK6Kf8LP7MYDogGV+DKB1mryFOEwx5EBNQrosvIczzZFTUmWaeujd5xT6G1ELYWUz3CutMhjE1w==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.12.1.tgz", - "integrity": "sha512-MYq+l+PvHuw/rKUz1at/vb6nCnQ2gmJBNaM62z0OgH7B2W1D9pvkpYtlti9bGtizNIU1K3zm4bZF9F91efVY0w==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.1.tgz", - "integrity": "sha512-U40A76x5gTwmESz+qiqssqmeEsKvcSyvtgktrm0uzcARAmM9I1jR221f6Oq+GmHrcD+LvZDag1UTOTe2fL3TeA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.3" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.1.tgz", - "integrity": "sha512-i7ooMZFS+a/Om0crxZodrTzNEPJHZrlMVGMTEpFAj6rYY/bKCddB0Dk/YxfPuYXOopuhKk/e1jV6h+WUU9XN3A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.1.tgz", - "integrity": "sha512-5QB50qyN44fzzz4/qxDPQMBCTHgxg3n0xRBLJUmBlLoU/sFvxVWGZF/ZUfMVDQuJUKXaBhbupxIzIfZ6Fwk/0A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-async-to-generator": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.12.1.tgz", - "integrity": "sha512-SDtqoEcarK1DFlRJ1hHRY5HvJUj5kX4qmtpMAm2QnhOlyuMC4TMdCRgW6WXpv93rZeYNeLP22y8Aq2dbcDRM1A==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-remap-async-to-generator": "^7.12.1" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.12.1.tgz", - "integrity": "sha512-5OpxfuYnSgPalRpo8EWGPzIYf0lHBWORCkj5M0oLBwHdlux9Ri36QqGW3/LR13RSVOAoUUMzoPI/jpE4ABcHoA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.12.tgz", - "integrity": "sha512-VOEPQ/ExOVqbukuP7BYJtI5ZxxsmegTwzZ04j1aF0dkSypGo9XpDHuOrABsJu+ie+penpSJheDJ11x1BEZNiyQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-classes": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.12.1.tgz", - "integrity": "sha512-/74xkA7bVdzQTBeSUhLLJgYIcxw/dpEpCdRDiHgPJ3Mv6uC11UhjpOhl72CgqbBCmt1qtssCyB2xnJm1+PFjog==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.10.4", - "@babel/helper-define-map": "^7.10.4", - "@babel/helper-function-name": "^7.10.4", - "@babel/helper-optimise-call-expression": "^7.10.4", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-replace-supers": "^7.12.1", - "@babel/helper-split-export-declaration": "^7.10.4", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.12.1.tgz", - "integrity": "sha512-vVUOYpPWB7BkgUWPo4C44mUQHpTZXakEqFjbv8rQMg7TC6S6ZhGZ3otQcRH6u7+adSlE5i0sp63eMC/XGffrzg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.12.1.tgz", - "integrity": "sha512-fRMYFKuzi/rSiYb2uRLiUENJOKq4Gnl+6qOv5f8z0TZXg3llUwUhsNNwrwaT/6dUhJTzNpBr+CUvEWBtfNY1cw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-dotall-regex": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.12.1.tgz", - "integrity": "sha512-B2pXeRKoLszfEW7J4Hg9LoFaWEbr/kzo3teWHmtFCszjRNa/b40f9mfeqZsIDLLt/FjwQ6pz/Gdlwy85xNckBA==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-duplicate-keys": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.12.1.tgz", - "integrity": "sha512-iRght0T0HztAb/CazveUpUQrZY+aGKKaWXMJ4uf9YJtqxSUe09j3wteztCUDRHs+SRAL7yMuFqUsLoAKKzgXjw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.12.1.tgz", - "integrity": "sha512-7tqwy2bv48q+c1EHbXK0Zx3KXd2RVQp6OC7PbwFNt/dPTAV3Lu5sWtWuAj8owr5wqtWnqHfl2/mJlUmqkChKug==", - "dev": true, - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.10.4", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.1.tgz", - "integrity": "sha512-Zaeq10naAsuHo7heQvyV0ptj4dlZJwZgNAtBYBnu5nNKJoW62m0zKcIEyVECrUKErkUkg6ajMy4ZfnVZciSBhg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.12.1.tgz", - "integrity": "sha512-JF3UgJUILoFrFMEnOJLJkRHSk6LUSXLmEFsA23aR2O5CSLUxbeUX1IZ1YQ7Sn0aXb601Ncwjx73a+FVqgcljVw==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.10.4", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.12.1.tgz", - "integrity": "sha512-+PxVGA+2Ag6uGgL0A5f+9rklOnnMccwEBzwYFL3EUaKuiyVnUipyXncFcfjSkbimLrODoqki1U9XxZzTvfN7IQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.12.1.tgz", - "integrity": "sha512-1sxePl6z9ad0gFMB9KqmYofk34flq62aqMt9NqliS/7hPEpURUCMbyHXrMPlo282iY7nAvUB1aQd5mg79UD9Jg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-modules-amd": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.12.1.tgz", - "integrity": "sha512-tDW8hMkzad5oDtzsB70HIQQRBiTKrhfgwC/KkJeGsaNFTdWhKNt/BiE8c5yj19XiGyrxpbkOfH87qkNg1YGlOQ==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4", - "babel-plugin-dynamic-import-node": "^2.3.3" - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.1.tgz", - "integrity": "sha512-dY789wq6l0uLY8py9c1B48V8mVL5gZh/+PQ5ZPrylPYsnAvnEMjqsUXkuoDVPeVK+0VyGar+D08107LzDQ6pag==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-simple-access": "^7.12.1", - "babel-plugin-dynamic-import-node": "^2.3.3" - } - }, - "@babel/plugin-transform-modules-systemjs": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.12.1.tgz", - "integrity": "sha512-Hn7cVvOavVh8yvW6fLwveFqSnd7rbQN3zJvoPNyNaQSvgfKmDBO9U1YL9+PCXGRlZD9tNdWTy5ACKqMuzyn32Q==", - "dev": true, - "requires": { - "@babel/helper-hoist-variables": "^7.10.4", - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-validator-identifier": "^7.10.4", - "babel-plugin-dynamic-import-node": "^2.3.3" - } - }, - "@babel/plugin-transform-modules-umd": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.12.1.tgz", - "integrity": "sha512-aEIubCS0KHKM0zUos5fIoQm+AZUMt1ZvMpqz0/H5qAQ7vWylr9+PLYurT+Ic7ID/bKLd4q8hDovaG3Zch2uz5Q==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.12.1.tgz", - "integrity": "sha512-tB43uQ62RHcoDp9v2Nsf+dSM8sbNodbEicbQNA53zHz8pWUhsgHSJCGpt7daXxRydjb0KnfmB+ChXOv3oADp1Q==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.12.1" - } - }, - "@babel/plugin-transform-new-target": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.12.1.tgz", - "integrity": "sha512-+eW/VLcUL5L9IvJH7rT1sT0CzkdUTvPrXC2PXTn/7z7tXLBuKvezYbGdxD5WMRoyvyaujOq2fWoKl869heKjhw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.12.1.tgz", - "integrity": "sha512-AvypiGJH9hsquNUn+RXVcBdeE3KHPZexWRdimhuV59cSoOt5kFBmqlByorAeUlGG2CJWd0U+4ZtNKga/TB0cAw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-replace-supers": "^7.12.1" - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.12.1.tgz", - "integrity": "sha512-xq9C5EQhdPK23ZeCdMxl8bbRnAgHFrw5EOC3KJUsSylZqdkCaFEXxGSBuTSObOpiiHHNyb82es8M1QYgfQGfNg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-property-literals": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.12.1.tgz", - "integrity": "sha512-6MTCR/mZ1MQS+AwZLplX4cEySjCpnIF26ToWo942nqn8hXSm7McaHQNeGx/pt7suI1TWOWMfa/NgBhiqSnX0cQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-regenerator": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.1.tgz", - "integrity": "sha512-gYrHqs5itw6i4PflFX3OdBPMQdPbF4bj2REIUxlMRUFk0/ZOAIpDFuViuxPjUL7YC8UPnf+XG7/utJvqXdPKng==", - "dev": true, - "requires": { - "regenerator-transform": "^0.14.2" - } - }, - "@babel/plugin-transform-reserved-words": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.1.tgz", - "integrity": "sha512-pOnUfhyPKvZpVyBHhSBoX8vfA09b7r00Pmm1sH+29ae2hMTKVmSp4Ztsr8KBKjLjx17H0eJqaRC3bR2iThM54A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-runtime": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.10.tgz", - "integrity": "sha512-xOrUfzPxw7+WDm9igMgQCbO3cJKymX7dFdsgRr1eu9n3KjjyU4pptIXbXPseQDquw+W+RuJEJMHKHNsPNNm3CA==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.12.5", - "@babel/helper-plugin-utils": "^7.10.4", - "semver": "^5.5.1" - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.1.tgz", - "integrity": "sha512-GFZS3c/MhX1OusqB1MZ1ct2xRzX5ppQh2JU1h2Pnfk88HtFTM+TWQqJNfwkmxtPQtb/s1tk87oENfXJlx7rSDw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.12.1.tgz", - "integrity": "sha512-vuLp8CP0BE18zVYjsEBZ5xoCecMK6LBMMxYzJnh01rxQRvhNhH1csMMmBfNo5tGpGO+NhdSNW2mzIvBu3K1fng==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-skip-transparent-expression-wrappers": "^7.12.1" - } - }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.12.7.tgz", - "integrity": "sha512-VEiqZL5N/QvDbdjfYQBhruN0HYjSPjC4XkeqW4ny/jNtH9gcbgaqBIXYEZCNnESMAGs0/K/R7oFGMhOyu/eIxg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.12.1.tgz", - "integrity": "sha512-b4Zx3KHi+taXB1dVRBhVJtEPi9h1THCeKmae2qP0YdUHIFhVjtpqqNfxeVAa1xeHVhAy4SbHxEwx5cltAu5apw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-typeof-symbol": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.12.10.tgz", - "integrity": "sha512-JQ6H8Rnsogh//ijxspCjc21YPd3VLVoYtAwv3zQmqAt8YGYUtdo5usNhdl4b9/Vir2kPFZl6n1h0PfUz4hJhaA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-unicode-escapes": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.12.1.tgz", - "integrity": "sha512-I8gNHJLIc7GdApm7wkVnStWssPNbSRMPtgHdmH3sRM1zopz09UWPS4x5V4n1yz/MIWTVnJ9sp6IkuXdWM4w+2Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.12.1.tgz", - "integrity": "sha512-SqH4ClNngh/zGwHZOOQMTD+e8FGWexILV+ePMyiDJttAWRh5dhDL8rcl5lSgU3Huiq6Zn6pWTMvdPAb21Dwdyg==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.12.1", - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/preset-env": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.12.11.tgz", - "integrity": "sha512-j8Tb+KKIXKYlDBQyIOy4BLxzv1NUOwlHfZ74rvW+Z0Gp4/cI2IMDPBWAgWceGcE7aep9oL/0K9mlzlMGxA8yNw==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.12.7", - "@babel/helper-compilation-targets": "^7.12.5", - "@babel/helper-module-imports": "^7.12.5", - "@babel/helper-plugin-utils": "^7.10.4", - "@babel/helper-validator-option": "^7.12.11", - "@babel/plugin-proposal-async-generator-functions": "^7.12.1", - "@babel/plugin-proposal-class-properties": "^7.12.1", - "@babel/plugin-proposal-dynamic-import": "^7.12.1", - "@babel/plugin-proposal-export-namespace-from": "^7.12.1", - "@babel/plugin-proposal-json-strings": "^7.12.1", - "@babel/plugin-proposal-logical-assignment-operators": "^7.12.1", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1", - "@babel/plugin-proposal-numeric-separator": "^7.12.7", - "@babel/plugin-proposal-object-rest-spread": "^7.12.1", - "@babel/plugin-proposal-optional-catch-binding": "^7.12.1", - "@babel/plugin-proposal-optional-chaining": "^7.12.7", - "@babel/plugin-proposal-private-methods": "^7.12.1", - "@babel/plugin-proposal-unicode-property-regex": "^7.12.1", - "@babel/plugin-syntax-async-generators": "^7.8.0", - "@babel/plugin-syntax-class-properties": "^7.12.1", - "@babel/plugin-syntax-dynamic-import": "^7.8.0", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.0", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.0", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.0", - "@babel/plugin-syntax-top-level-await": "^7.12.1", - "@babel/plugin-transform-arrow-functions": "^7.12.1", - "@babel/plugin-transform-async-to-generator": "^7.12.1", - "@babel/plugin-transform-block-scoped-functions": "^7.12.1", - "@babel/plugin-transform-block-scoping": "^7.12.11", - "@babel/plugin-transform-classes": "^7.12.1", - "@babel/plugin-transform-computed-properties": "^7.12.1", - "@babel/plugin-transform-destructuring": "^7.12.1", - "@babel/plugin-transform-dotall-regex": "^7.12.1", - "@babel/plugin-transform-duplicate-keys": "^7.12.1", - "@babel/plugin-transform-exponentiation-operator": "^7.12.1", - "@babel/plugin-transform-for-of": "^7.12.1", - "@babel/plugin-transform-function-name": "^7.12.1", - "@babel/plugin-transform-literals": "^7.12.1", - "@babel/plugin-transform-member-expression-literals": "^7.12.1", - "@babel/plugin-transform-modules-amd": "^7.12.1", - "@babel/plugin-transform-modules-commonjs": "^7.12.1", - "@babel/plugin-transform-modules-systemjs": "^7.12.1", - "@babel/plugin-transform-modules-umd": "^7.12.1", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.12.1", - "@babel/plugin-transform-new-target": "^7.12.1", - "@babel/plugin-transform-object-super": "^7.12.1", - "@babel/plugin-transform-parameters": "^7.12.1", - "@babel/plugin-transform-property-literals": "^7.12.1", - "@babel/plugin-transform-regenerator": "^7.12.1", - "@babel/plugin-transform-reserved-words": "^7.12.1", - "@babel/plugin-transform-shorthand-properties": "^7.12.1", - "@babel/plugin-transform-spread": "^7.12.1", - "@babel/plugin-transform-sticky-regex": "^7.12.7", - "@babel/plugin-transform-template-literals": "^7.12.1", - "@babel/plugin-transform-typeof-symbol": "^7.12.10", - "@babel/plugin-transform-unicode-escapes": "^7.12.1", - "@babel/plugin-transform-unicode-regex": "^7.12.1", - "@babel/preset-modules": "^0.1.3", - "@babel/types": "^7.12.11", - "core-js-compat": "^3.8.0", - "semver": "^5.5.0" - } - }, - "@babel/preset-modules": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", - "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - } - }, - "@babel/runtime": { - "version": "7.12.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz", - "integrity": "sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==", - "dev": true, - "requires": { - "regenerator-runtime": "^0.13.4" - } - }, - "@babel/template": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.12.7.tgz", - "integrity": "sha512-GkDzmHS6GV7ZeXfJZ0tLRBhZcMcY0/Lnb+eEbXDBfCAcZCjrZKe6p3J4we/D24O9Y8enxWAg1cWwof59yLh2ow==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/parser": "^7.12.7", - "@babel/types": "^7.12.7" - } - }, - "@babel/traverse": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.12.tgz", - "integrity": "sha512-s88i0X0lPy45RrLM8b9mz8RPH5FqO9G9p7ti59cToE44xFm1Q+Pjh5Gq4SXBbtb88X7Uy7pexeqRIQDDMNkL0w==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.12.11", - "@babel/generator": "^7.12.11", - "@babel/helper-function-name": "^7.12.11", - "@babel/helper-split-export-declaration": "^7.12.11", - "@babel/parser": "^7.12.11", - "@babel/types": "^7.12.12", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.19" - } - }, - "@babel/types": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.12.12.tgz", - "integrity": "sha512-lnIX7piTxOH22xE7fDXDbSHg9MM1/6ORnafpJmov5rs0kX5g4BZxeXNJLXsMRiO0U5Rb8/FvMS6xlTnTHvxonQ==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.12.11", - "lodash": "^4.17.19", - "to-fast-properties": "^2.0.0" - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", - "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.4", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", - "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", - "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.4", - "fastq": "^1.6.0" - } - }, - "@npmcli/move-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.0.tgz", - "integrity": "sha512-Iv2iq0JuyYjKeFkSR4LPaCdDZwlGK9X2cP/01nJcp3yMJ1FjNd9vpiEYvLUgzBxKPg2SFmaOhizoQsPc0LWeOQ==", - "dev": true, - "requires": { - "mkdirp": "^1.0.4", - "rimraf": "^2.7.1" - }, - "dependencies": { - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } - } - }, - "@tibco/spotfire-mods-dev-server": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@tibco/spotfire-mods-dev-server/-/spotfire-mods-dev-server-1.0.0.tgz", - "integrity": "sha512-S05k2ILXp+RdyjnMvjs3GAr8ryY208RGzaIDRZF4uMe3+MS79yTxmJuDua9/ZDuXrAjWx+3sMfn1lriVskoO4g==", - "dev": true, - "requires": { - "live-server": "^1.2.1" - } - }, - "@types/json-schema": { - "version": "7.0.7", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", - "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==", - "dev": true - }, - "@webassemblyjs/ast": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz", - "integrity": "sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==", - "dev": true, - "requires": { - "@webassemblyjs/helper-module-context": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/wast-parser": "1.9.0" - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz", - "integrity": "sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==", - "dev": true - }, - "@webassemblyjs/helper-api-error": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz", - "integrity": "sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==", - "dev": true - }, - "@webassemblyjs/helper-buffer": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz", - "integrity": "sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==", - "dev": true - }, - "@webassemblyjs/helper-code-frame": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz", - "integrity": "sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==", - "dev": true, - "requires": { - "@webassemblyjs/wast-printer": "1.9.0" - } - }, - "@webassemblyjs/helper-fsm": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz", - "integrity": "sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==", - "dev": true - }, - "@webassemblyjs/helper-module-context": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz", - "integrity": "sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0" - } - }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz", - "integrity": "sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==", - "dev": true - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz", - "integrity": "sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-buffer": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/wasm-gen": "1.9.0" - } - }, - "@webassemblyjs/ieee754": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz", - "integrity": "sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==", - "dev": true, - "requires": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "@webassemblyjs/leb128": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.9.0.tgz", - "integrity": "sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==", - "dev": true, - "requires": { - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/utf8": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.9.0.tgz", - "integrity": "sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==", - "dev": true - }, - "@webassemblyjs/wasm-edit": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz", - "integrity": "sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-buffer": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/helper-wasm-section": "1.9.0", - "@webassemblyjs/wasm-gen": "1.9.0", - "@webassemblyjs/wasm-opt": "1.9.0", - "@webassemblyjs/wasm-parser": "1.9.0", - "@webassemblyjs/wast-printer": "1.9.0" - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz", - "integrity": "sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/ieee754": "1.9.0", - "@webassemblyjs/leb128": "1.9.0", - "@webassemblyjs/utf8": "1.9.0" - } - }, - "@webassemblyjs/wasm-opt": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz", - "integrity": "sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-buffer": "1.9.0", - "@webassemblyjs/wasm-gen": "1.9.0", - "@webassemblyjs/wasm-parser": "1.9.0" - } - }, - "@webassemblyjs/wasm-parser": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz", - "integrity": "sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-api-error": "1.9.0", - "@webassemblyjs/helper-wasm-bytecode": "1.9.0", - "@webassemblyjs/ieee754": "1.9.0", - "@webassemblyjs/leb128": "1.9.0", - "@webassemblyjs/utf8": "1.9.0" - } - }, - "@webassemblyjs/wast-parser": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz", - "integrity": "sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/floating-point-hex-parser": "1.9.0", - "@webassemblyjs/helper-api-error": "1.9.0", - "@webassemblyjs/helper-code-frame": "1.9.0", - "@webassemblyjs/helper-fsm": "1.9.0", - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/wast-printer": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz", - "integrity": "sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/wast-parser": "1.9.0", - "@xtuc/long": "4.2.2" - } - }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, - "accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", - "dev": true, - "requires": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" - } - }, - "acorn": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz", - "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", - "dev": true - }, - "aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - } - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", - "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", - "dev": true - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - }, - "dependencies": { - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - } - } - }, - "apache-crypt": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/apache-crypt/-/apache-crypt-1.2.4.tgz", - "integrity": "sha512-Icze5ny5W5uv3xgMgl8U+iGmRCC0iIDrb2PVPuRBtL3Zy1Y5TMewXP1Vtc4r5X9eNNBEk7KYPu0Qby9m/PmcHg==", - "dev": true, - "requires": { - "unix-crypt-td-js": "^1.1.4" - } - }, - "apache-md5": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/apache-md5/-/apache-md5-1.1.5.tgz", - "integrity": "sha512-sbLEIMQrkV7RkIruqTPXxeCMkAAycv4yzTkBzRgOR1BrR5UB7qZtupqxkersTJSf0HZ3sbaNRrNV80TnnM7cUw==", - "dev": true - }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "asn1.js": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", - "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "dev": true, - "requires": { - "object-assign": "^4.1.1", - "util": "0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "dev": true, - "requires": { - "inherits": "2.0.1" - } - } - } - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true - }, - "async-each": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", - "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", - "dev": true - }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true - }, - "babel-loader": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", - "integrity": "sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g==", - "dev": true, - "requires": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^1.4.0", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - } - }, - "babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", - "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", - "dev": true, - "requires": { - "object.assign": "^4.1.0" - } - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true - }, - "basic-auth": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", - "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "dev": true, - "requires": { - "safe-buffer": "5.1.2" - } - }, - "batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", - "dev": true - }, - "bcryptjs": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", - "integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms=", - "dev": true - }, - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true - }, - "binary-extensions": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", - "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", - "dev": true - }, - "bindings": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", - "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "dev": true, - "optional": true, - "requires": { - "file-uri-to-path": "1.0.0" - } - }, - "bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true - }, - "bn.js": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.1.3.tgz", - "integrity": "sha512-GkTiFpjFtUzU9CbMeJ5iazkCzGL3jrhzerzZIuqLABjbwRaFt33I9tUdSNryIptM+RxDet6OKm2WnLXzW51KsQ==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", - "dev": true - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "browserify-rsa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", - "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", - "dev": true, - "requires": { - "bn.js": "^5.0.0", - "randombytes": "^2.0.1" - } - }, - "browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", - "dev": true, - "requires": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - } - } - }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "~1.0.5" - } - }, - "browserslist": { - "version": "4.16.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.1.tgz", - "integrity": "sha512-UXhDrwqsNcpTYJBTZsbGATDxZbiVDsx6UjpmRUmtnP10pr8wAYr5LgFoEFw9ixriQH2mv/NX2SfGzE/o8GndLA==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001173", - "colorette": "^1.2.1", - "electron-to-chromium": "^1.3.634", - "escalade": "^3.1.1", - "node-releases": "^1.1.69" - } - }, - "buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", - "dev": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", - "dev": true - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", - "dev": true - }, - "cacache": { - "version": "15.0.5", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.0.5.tgz", - "integrity": "sha512-lloiL22n7sOjEEXdL8NAjTgv9a1u43xICE9/203qonkZUCj5X1UEWIdf2/Y0d6QcCtMzbKQyhrcDbdvlZTs/+A==", - "dev": true, - "requires": { - "@npmcli/move-file": "^1.0.1", - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "glob": "^7.1.4", - "infer-owner": "^1.0.4", - "lru-cache": "^6.0.0", - "minipass": "^3.1.1", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.2", - "mkdirp": "^1.0.3", - "p-map": "^4.0.0", - "promise-inflight": "^1.0.1", - "rimraf": "^3.0.2", - "ssri": "^8.0.0", - "tar": "^6.0.2", - "unique-filename": "^1.1.1" - } - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "caniuse-lite": { - "version": "1.0.30001179", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001179.tgz", - "integrity": "sha512-blMmO0QQujuUWZKyVrD1msR4WNDAqb/UPO1Sw2WWsQ7deoM5bJiicKnWJ1Y0NS/aGINSnKPIWBMw5luX+NDUCA==", - "dev": true - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "chokidar": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", - "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", - "dev": true, - "requires": { - "anymatch": "^2.0.0", - "async-each": "^1.0.1", - "braces": "^2.3.2", - "fsevents": "^1.2.7", - "glob-parent": "^3.1.0", - "inherits": "^2.0.3", - "is-binary-path": "^1.0.0", - "is-glob": "^4.0.0", - "normalize-path": "^3.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.2.1", - "upath": "^1.1.1" - }, - "dependencies": { - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - } - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - } - } - }, - "chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "dev": true - }, - "chrome-trace-event": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz", - "integrity": "sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true - }, - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - } - }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "dev": true, - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "colorette": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.1.tgz", - "integrity": "sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw==", - "dev": true - }, - "colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "dev": true - }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "connect": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", - "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", - "dev": true, - "requires": { - "debug": "2.6.9", - "finalhandler": "1.1.2", - "parseurl": "~1.3.3", - "utils-merge": "1.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "console-browserify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", - "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", - "dev": true - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, - "convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "copy-concurrently": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", - "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", - "dev": true, - "requires": { - "aproba": "^1.1.1", - "fs-write-stream-atomic": "^1.0.8", - "iferr": "^0.1.5", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.0" - }, - "dependencies": { - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } - } - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true - }, - "copy-webpack-plugin": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-6.4.1.tgz", - "integrity": "sha512-MXyPCjdPVx5iiWyl40Va3JGh27bKzOTNY3NjUTrosD2q7dR/cLD0013uqJ3BpFbUjyONINjb6qI7nDIJujrMbA==", - "dev": true, - "requires": { - "cacache": "^15.0.5", - "fast-glob": "^3.2.4", - "find-cache-dir": "^3.3.1", - "glob-parent": "^5.1.1", - "globby": "^11.0.1", - "loader-utils": "^2.0.0", - "normalize-path": "^3.0.0", - "p-limit": "^3.0.2", - "schema-utils": "^3.0.0", - "serialize-javascript": "^5.0.1", - "webpack-sources": "^1.4.3" - }, - "dependencies": { - "loader-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", - "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "schema-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz", - "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.6", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } - } - }, - "core-js": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.8.3.tgz", - "integrity": "sha512-KPYXeVZYemC2TkNEkX/01I+7yd+nX3KddKwZ1Ww7SKWdI2wQprSgLmrTddT8nw92AjEklTsPBoSdQBhbI1bQ6Q==", - "dev": true - }, - "core-js-compat": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.8.3.tgz", - "integrity": "sha512-1sCb0wBXnBIL16pfFG1Gkvei6UzvKyTNYpiC41yrdjEv0UoJoq9E/abTMzyYJ6JpTkAj15dLjbqifIzEBDVvog==", - "dev": true, - "requires": { - "browserslist": "^4.16.1", - "semver": "7.0.0" - }, - "dependencies": { - "semver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", - "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", - "dev": true - } - } - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, - "requires": { - "object-assign": "^4", - "vary": "^1" - } - }, - "create-ecdh": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", - "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, - "cyclist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", - "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=", - "dev": true - }, - "debug": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", - "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } - }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true - }, - "des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", - "dev": true - }, - "detect-file": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", - "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", - "dev": true - }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, - "duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", - "dev": true - }, - "duplexify": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", - "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - } - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", - "dev": true - }, - "electron-to-chromium": { - "version": "1.3.642", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.642.tgz", - "integrity": "sha512-cev+jOrz/Zm1i+Yh334Hed6lQVOkkemk2wRozfMF4MtTR7pxf3r3L5Rbd7uX1zMcEqVJ7alJBnJL7+JffkC6FQ==", - "dev": true - }, - "elliptic": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz", - "integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==", - "dev": true, - "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "dev": true - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", - "dev": true - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "enhanced-resolve": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.5.0.tgz", - "integrity": "sha512-Nv9m36S/vxpsI+Hc4/ZGRs0n9mXqSWGGq49zxb/cJfPAQMbUtttJAlNPS4AQzaBdw/pKskw5bMbekT/Y7W/Wlg==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.5.0", - "tapable": "^1.0.0" - }, - "dependencies": { - "memory-fs": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz", - "integrity": "sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==", - "dev": true, - "requires": { - "errno": "^0.1.3", - "readable-stream": "^2.0.1" - } - } - } - }, - "errno": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", - "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", - "dev": true, - "requires": { - "prr": "~1.0.1" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "eslint-scope": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", - "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", - "dev": true, - "requires": { - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", - "dev": true - }, - "event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", - "dev": true, - "requires": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - } - }, - "events": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.2.0.tgz", - "integrity": "sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg==", - "dev": true - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "expand-tilde": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", - "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", - "dev": true, - "requires": { - "homedir-polyfill": "^1.0.1" - } - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-glob": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", - "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.0", - "merge2": "^1.3.0", - "micromatch": "^4.0.2", - "picomatch": "^2.2.1" - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fastq": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.10.0.tgz", - "integrity": "sha512-NL2Qc5L3iQEsyYzweq7qfgy5OtXCmGzGvhElGEd/SoFWEMOEczNh5s5ocaF01HDetxz+p8ecjNPA6cZxxIHmzA==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "faye-websocket": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.3.tgz", - "integrity": "sha512-D2y4bovYpzziGgbHYtGCMjlJM36vAl/y+xUyn1C+FVx8szd1E+86KwVw6XvYSzOP8iMpm1X0I4xJD+QtUb36OA==", - "dev": true, - "requires": { - "websocket-driver": ">=0.5.1" - } - }, - "figgy-pudding": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", - "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==", - "dev": true - }, - "file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "dev": true, - "optional": true - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "dev": true, - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "find-cache-dir": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", - "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "findup-sync": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-3.0.0.tgz", - "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==", - "dev": true, - "requires": { - "detect-file": "^1.0.0", - "is-glob": "^4.0.0", - "micromatch": "^3.0.4", - "resolve-dir": "^1.0.1" - }, - "dependencies": { - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - } - } - }, - "flush-write-stream": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", - "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "readable-stream": "^2.3.6" - } - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "requires": { - "map-cache": "^0.2.2" - } - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", - "dev": true - }, - "from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", - "dev": true - }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" - } - }, - "fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - } - }, - "fs-write-stream-atomic": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", - "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "iferr": "^0.1.5", - "imurmurhash": "^0.1.4", - "readable-stream": "1 || 2" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fsevents": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", - "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "dev": true, - "optional": true, - "requires": { - "bindings": "^1.5.0", - "nan": "^2.12.1" - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-intrinsic": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.0.2.tgz", - "integrity": "sha512-aeX0vrFm21ILl3+JpFFRNe9aUvp6VFZb2/CTbgLb8j75kOhvoNYjt9d8KA/tJG4gSo8nzEDedRl0h7vDmBYRVg==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" - } - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", - "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", - "dev": true, - "requires": { - "global-prefix": "^3.0.0" - }, - "dependencies": { - "global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", - "dev": true, - "requires": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" - } - } - } - }, - "global-prefix": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", - "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", - "dev": true, - "requires": { - "expand-tilde": "^2.0.2", - "homedir-polyfill": "^1.0.1", - "ini": "^1.3.4", - "is-windows": "^1.0.1", - "which": "^1.2.14" - } - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "globby": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.2.tgz", - "integrity": "sha512-2ZThXDvvV8fYFRVIxnrMQBipZQDr7MxKAmQK1vujaj9/7eF0efG7BPUKJ7jP7G5SLF37xKDXvO4S/KKLj/Z0og==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - } - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-symbols": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", - "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", - "dev": true - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "hash-base": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", - "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", - "dev": true, - "requires": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - } - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "homedir-polyfill": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", - "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", - "dev": true, - "requires": { - "parse-passwd": "^1.0.0" - } - }, - "http-auth": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/http-auth/-/http-auth-3.1.3.tgz", - "integrity": "sha1-lFz63WZSHq+PfISRPTd9exXyTjE=", - "dev": true, - "requires": { - "apache-crypt": "^1.1.2", - "apache-md5": "^1.0.6", - "bcryptjs": "^2.3.0", - "uuid": "^3.0.0" - } - }, - "http-errors": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz", - "integrity": "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==", - "dev": true, - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.4", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" - }, - "dependencies": { - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "dev": true - } - } - }, - "http-parser-js": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.3.tgz", - "integrity": "sha512-t7hjvef/5HEK7RWTdUzVUhl8zkEu+LlaE0IYzdMuvbSDipxBRpOn4Uhw8ZyECEa808iVT8XCjzo6xmYt4CiLZg==", - "dev": true - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true - }, - "iferr": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", - "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", - "dev": true - }, - "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true - }, - "import-local": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", - "integrity": "sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ==", - "dev": true, - "requires": { - "pkg-dir": "^3.0.0", - "resolve-cwd": "^2.0.0" - }, - "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - } - } - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true - }, - "infer-owner": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", - "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - }, - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "requires": { - "binary-extensions": "^1.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "is-wsl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json5": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", - "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true - }, - "live-server": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/live-server/-/live-server-1.2.1.tgz", - "integrity": "sha512-Yn2XCVjErTkqnM3FfTmM7/kWy3zP7+cEtC7x6u+wUzlQ+1UW3zEYbbyJrc0jNDwiMDZI0m4a0i3dxlGHVyXczw==", - "dev": true, - "requires": { - "chokidar": "^2.0.4", - "colors": "^1.4.0", - "connect": "^3.6.6", - "cors": "^2.8.5", - "event-stream": "3.3.4", - "faye-websocket": "0.11.x", - "http-auth": "3.1.x", - "morgan": "^1.9.1", - "object-assign": "^4.1.1", - "opn": "^6.0.0", - "proxy-middleware": "^0.15.0", - "send": "^0.17.1", - "serve-index": "^1.9.1" - } - }, - "loader-runner": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", - "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", - "dev": true - }, - "loader-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", - "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^1.0.1" - }, - "dependencies": { - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - } - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "lodash": { - "version": "4.17.20", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", - "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", - "dev": true - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true - }, - "map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "dev": true, - "requires": { - "object-visit": "^1.0.0" - } - }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "memory-fs": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", - "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", - "dev": true, - "requires": { - "errno": "^0.1.3", - "readable-stream": "^2.0.1" - } - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "mime-db": { - "version": "1.45.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.45.0.tgz", - "integrity": "sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w==", - "dev": true - }, - "mime-types": { - "version": "2.1.28", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.28.tgz", - "integrity": "sha512-0TO2yJ5YHYr7M2zzT7gDU1tbwHxEUWBCLt0lscSNpcdAfFyJOVEpRYNS7EXVcTLNj/25QO8gulHC5JtTzSE2UQ==", - "dev": true, - "requires": { - "mime-db": "1.45.0" - } - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, - "minipass": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.3.tgz", - "integrity": "sha512-Mgd2GdMVzY+x3IJ+oHnVM+KG3lA5c8tnabyJKmHSaG2kAGpudxuOf8ToDkhumF7UzME7DecbQE9uOZhNm7PuJg==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "minipass-collect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", - "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - } - }, - "minipass-flush": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", - "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - } - }, - "minipass-pipeline": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", - "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - } - }, - "minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dev": true, - "requires": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - } - }, - "mississippi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz", - "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", - "dev": true, - "requires": { - "concat-stream": "^1.5.0", - "duplexify": "^3.4.2", - "end-of-stream": "^1.1.0", - "flush-write-stream": "^1.0.0", - "from2": "^2.1.0", - "parallel-transform": "^1.1.0", - "pump": "^3.0.0", - "pumpify": "^1.3.3", - "stream-each": "^1.1.0", - "through2": "^2.0.0" - } - }, - "mixin-deep": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "morgan": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", - "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", - "dev": true, - "requires": { - "basic-auth": "~2.0.1", - "debug": "2.6.9", - "depd": "~2.0.0", - "on-finished": "~2.3.0", - "on-headers": "~1.0.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "move-concurrently": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", - "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", - "dev": true, - "requires": { - "aproba": "^1.1.1", - "copy-concurrently": "^1.0.0", - "fs-write-stream-atomic": "^1.0.8", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.3" - }, - "dependencies": { - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "nan": { - "version": "2.14.2", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz", - "integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==", - "dev": true, - "optional": true - }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - } - }, - "negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", - "dev": true - }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true - }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "node-libs-browser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", - "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", - "dev": true, - "requires": { - "assert": "^1.1.1", - "browserify-zlib": "^0.2.0", - "buffer": "^4.3.0", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "crypto-browserify": "^3.11.0", - "domain-browser": "^1.1.1", - "events": "^3.0.0", - "https-browserify": "^1.0.0", - "os-browserify": "^0.3.0", - "path-browserify": "0.0.1", - "process": "^0.11.10", - "punycode": "^1.2.4", - "querystring-es3": "^0.2.0", - "readable-stream": "^2.3.3", - "stream-browserify": "^2.0.1", - "stream-http": "^2.7.2", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.0", - "url": "^0.11.0", - "util": "^0.11.0", - "vm-browserify": "^1.0.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - } - } - }, - "node-releases": { - "version": "1.1.70", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.70.tgz", - "integrity": "sha512-Slf2s69+2/uAD79pVVQo8uSiC34+g8GWY8UH2Qtqv34ZfhYrxpYpfzs9Js9d6O0mbDmALuxaTlplnBTnSELcrw==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "dev": true, - "requires": { - "isobject": "^3.0.0" - } - }, - "object.assign": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", - "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "dev": true, - "requires": { - "ee-first": "1.1.1" - } - }, - "on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "dev": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "opn": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/opn/-/opn-6.0.0.tgz", - "integrity": "sha512-I9PKfIZC+e4RXZ/qr1RhgyCnGgYX0UEIlXgWnCOVACIvFgaC9rz6Won7xbdhoHrd8IIhV7YEpHjreNUNkqCGkQ==", - "dev": true, - "requires": { - "is-wsl": "^1.1.0" - } - }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true - }, - "parallel-transform": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", - "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", - "dev": true, - "requires": { - "cyclist": "^1.0.1", - "inherits": "^2.0.3", - "readable-stream": "^2.1.5" - } - }, - "parse-asn1": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", - "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", - "dev": true, - "requires": { - "asn1.js": "^5.2.0", - "browserify-aes": "^1.0.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, - "parse-passwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", - "dev": true - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true - }, - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", - "dev": true, - "requires": { - "through": "~2.3" - } - }, - "pbkdf2": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.1.tgz", - "integrity": "sha512-4Ejy1OPxi9f2tt1rRV7Go7zmfDQ+ZectEQz3VGUQhgq62HtIRPDyG/JtnwIxs6x3uNMwo2V7q1fMvKjb+Tnpqg==", - "dev": true, - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "picomatch": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", - "dev": true - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - } - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true - }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true - }, - "promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", - "dev": true - }, - "proxy-middleware": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/proxy-middleware/-/proxy-middleware-0.15.0.tgz", - "integrity": "sha1-o/3xvvtzD5UZZYcqwvYHTGFHelY=", - "dev": true - }, - "prr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", - "dev": true - }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "dev": true, - "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" - }, - "dependencies": { - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - } - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "dev": true - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true - }, - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" - }, - "dependencies": { - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - } - } - }, - "regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "regenerate-unicode-properties": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz", - "integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==", - "dev": true, - "requires": { - "regenerate": "^1.4.0" - } - }, - "regenerator-runtime": { - "version": "0.13.7", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", - "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==", - "dev": true - }, - "regenerator-transform": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", - "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", - "dev": true, - "requires": { - "@babel/runtime": "^7.8.4" - } - }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "regexpu-core": { - "version": "4.7.1", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.1.tgz", - "integrity": "sha512-ywH2VUraA44DZQuRKzARmw6S66mr48pQVva4LBeRhcOltJ6hExvWly5ZjFLYo67xbIxb6W1q4bAGtgfEl20zfQ==", - "dev": true, - "requires": { - "regenerate": "^1.4.0", - "regenerate-unicode-properties": "^8.2.0", - "regjsgen": "^0.5.1", - "regjsparser": "^0.6.4", - "unicode-match-property-ecmascript": "^1.0.4", - "unicode-match-property-value-ecmascript": "^1.2.0" - } - }, - "regjsgen": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", - "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", - "dev": true - }, - "regjsparser": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.6.tgz", - "integrity": "sha512-jjyuCp+IEMIm3N1H1LLTJW1EISEJV9+5oHdEyrt43Pg9cDSb6rrLZei2cVWpl0xTjmmlpec/lEQGYgM7xfpGCQ==", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "resolve-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", - "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", - "dev": true, - "requires": { - "resolve-from": "^3.0.0" - } - }, - "resolve-dir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", - "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", - "dev": true, - "requires": { - "expand-tilde": "^2.0.0", - "global-modules": "^1.0.0" - }, - "dependencies": { - "global-modules": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", - "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", - "dev": true, - "requires": { - "global-prefix": "^1.0.1", - "is-windows": "^1.0.1", - "resolve-dir": "^1.0.0" - } - } - } - }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "dev": true - }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "run-parallel": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.10.tgz", - "integrity": "sha512-zb/1OuZ6flOlH6tQyMPUrE3x3Ulxjlo9WIVXR4yVYi4H9UXQaeIsPbLn2R3O3vQCnDKkAl2qHiuocKKX4Tz/Sw==", - "dev": true - }, - "run-queue": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", - "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", - "dev": true, - "requires": { - "aproba": "^1.1.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "dev": true, - "requires": { - "ret": "~0.1.10" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", - "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", - "dev": true, - "requires": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.7.2", - "mime": "1.6.0", - "ms": "2.1.1", - "on-finished": "~2.3.0", - "range-parser": "~1.2.1", - "statuses": "~1.5.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "dev": true - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - } - } - }, - "serialize-javascript": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", - "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - }, - "serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", - "dev": true, - "requires": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "dev": true - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", - "dev": true, - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "dev": true - } - } - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "set-value": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", - "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", - "dev": true - }, - "setprototypeof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", - "dev": true - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dev": true, - "requires": { - "kind-of": "^3.2.0" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", - "dev": true, - "requires": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-support": { - "version": "0.5.19", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", - "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", - "dev": true - }, - "split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", - "dev": true, - "requires": { - "through": "2" - } - }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "ssri": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.0.tgz", - "integrity": "sha512-aq/pz989nxVYwn16Tsbj1TqFpD5LLrQxHf5zaHuieFV+R0Bbr4y8qUsOA45hXT/N4/9UNXTarBjnjVmjSOVaAA==", - "dev": true, - "requires": { - "minipass": "^3.1.1" - } - }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", - "dev": true - }, - "stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", - "dev": true, - "requires": { - "duplexer": "~0.1.1" - } - }, - "stream-each": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", - "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "stream-shift": "^1.0.0" - } - }, - "stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "dev": true, - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "stream-shift": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", - "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", - "dev": true - }, - "tar": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.0.tgz", - "integrity": "sha512-DUCttfhsnLCjwoDoFcI+B2iJgYa93vBnDUATYEeRx6sntCTdN01VnqsIuTlALXla/LWooNg0yEGeB+Y8WdFxGA==", - "dev": true, - "requires": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - } - }, - "terser": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", - "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", - "dev": true, - "requires": { - "commander": "^2.20.0", - "source-map": "~0.6.1", - "source-map-support": "~0.5.12" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "terser-webpack-plugin": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.5.tgz", - "integrity": "sha512-04Rfe496lN8EYruwi6oPQkG0vo8C+HT49X687FZnpPF0qMAIHONI6HEXYPKDOE8e5HjXTyKfqRd/agHtH0kOtw==", - "dev": true, - "requires": { - "cacache": "^12.0.2", - "find-cache-dir": "^2.1.0", - "is-wsl": "^1.1.0", - "schema-utils": "^1.0.0", - "serialize-javascript": "^4.0.0", - "source-map": "^0.6.1", - "terser": "^4.1.2", - "webpack-sources": "^1.4.0", - "worker-farm": "^1.7.0" - }, - "dependencies": { - "cacache": { - "version": "12.0.4", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.4.tgz", - "integrity": "sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==", - "dev": true, - "requires": { - "bluebird": "^3.5.5", - "chownr": "^1.1.1", - "figgy-pudding": "^3.5.1", - "glob": "^7.1.4", - "graceful-fs": "^4.1.15", - "infer-owner": "^1.0.3", - "lru-cache": "^5.1.1", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.1", - "move-concurrently": "^1.0.1", - "promise-inflight": "^1.0.1", - "rimraf": "^2.6.3", - "ssri": "^6.0.1", - "unique-filename": "^1.1.1", - "y18n": "^4.0.0" - } - }, - "chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true - }, - "find-cache-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", - "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^2.0.0", - "pkg-dir": "^3.0.0" - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "requires": { - "yallist": "^3.0.2" - } - }, - "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", - "dev": true, - "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - } - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "schema-utils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", - "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", - "dev": true, - "requires": { - "ajv": "^6.1.0", - "ajv-errors": "^1.0.0", - "ajv-keywords": "^3.1.0" - } - }, - "serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "ssri": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz", - "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==", - "dev": true, - "requires": { - "figgy-pudding": "^3.5.1" - } - }, - "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - } - } - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "timers-browserify": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.12.tgz", - "integrity": "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==", - "dev": true, - "requires": { - "setimmediate": "^1.0.4" - } - }, - "to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", - "dev": true - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "toidentifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", - "dev": true - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", - "dev": true - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "unicode-canonical-property-names-ecmascript": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", - "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", - "dev": true - }, - "unicode-match-property-ecmascript": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", - "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", - "dev": true, - "requires": { - "unicode-canonical-property-names-ecmascript": "^1.0.4", - "unicode-property-aliases-ecmascript": "^1.0.4" - } - }, - "unicode-match-property-value-ecmascript": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz", - "integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==", - "dev": true - }, - "unicode-property-aliases-ecmascript": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz", - "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==", - "dev": true - }, - "union-value": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", - "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^2.0.1" - } - }, - "unique-filename": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", - "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", - "dev": true, - "requires": { - "unique-slug": "^2.0.0" - } - }, - "unique-slug": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", - "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4" - } - }, - "unix-crypt-td-js": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/unix-crypt-td-js/-/unix-crypt-td-js-1.1.4.tgz", - "integrity": "sha512-8rMeVYWSIyccIJscb9NdCfZKSRBKYTeVnwmiRYT2ulE3qd1RaDQ0xQDP+rI3ccIWbhu/zuo5cgN8z73belNZgw==", - "dev": true - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", - "dev": true - }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "dev": true, - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "dev": true, - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true - } - } - }, - "upath": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "dev": true - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "dev": true - }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } - } - }, - "use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true - }, - "util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "dev": true, - "requires": { - "inherits": "2.0.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", - "dev": true - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true - }, - "v8-compile-cache": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz", - "integrity": "sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q==", - "dev": true - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", - "dev": true - }, - "vm-browserify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", - "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", - "dev": true - }, - "watchpack": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz", - "integrity": "sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==", - "dev": true, - "requires": { - "chokidar": "^3.4.1", - "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0", - "watchpack-chokidar2": "^2.0.1" - }, - "dependencies": { - "anymatch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", - "dev": true, - "optional": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, - "optional": true - }, - "chokidar": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", - "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", - "dev": true, - "optional": true, - "requires": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "fsevents": "~2.3.1", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.5.0" - } - }, - "fsevents": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.1.tgz", - "integrity": "sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw==", - "dev": true, - "optional": true - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "optional": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "readdirp": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", - "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", - "dev": true, - "optional": true, - "requires": { - "picomatch": "^2.2.1" - } - } - } - }, - "watchpack-chokidar2": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/watchpack-chokidar2/-/watchpack-chokidar2-2.0.1.tgz", - "integrity": "sha512-nCFfBIPKr5Sh61s4LPpy1Wtfi0HE8isJ3d2Yb5/Ppw2P2B/3eVSEBjKfN0fmHJSK14+31KwMKmcrzs2GM4P0Ww==", - "dev": true, - "optional": true, - "requires": { - "chokidar": "^2.1.8" - } - }, - "webpack": { - "version": "4.46.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.46.0.tgz", - "integrity": "sha512-6jJuJjg8znb/xRItk7bkT0+Q7AHCYjjFnvKIWQPkNIOyRqoCGvkOs0ipeQzrqz4l5FtN5ZI/ukEHroeX/o1/5Q==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.9.0", - "@webassemblyjs/helper-module-context": "1.9.0", - "@webassemblyjs/wasm-edit": "1.9.0", - "@webassemblyjs/wasm-parser": "1.9.0", - "acorn": "^6.4.1", - "ajv": "^6.10.2", - "ajv-keywords": "^3.4.1", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^4.5.0", - "eslint-scope": "^4.0.3", - "json-parse-better-errors": "^1.0.2", - "loader-runner": "^2.4.0", - "loader-utils": "^1.2.3", - "memory-fs": "^0.4.1", - "micromatch": "^3.1.10", - "mkdirp": "^0.5.3", - "neo-async": "^2.6.1", - "node-libs-browser": "^2.2.1", - "schema-utils": "^1.0.0", - "tapable": "^1.1.3", - "terser-webpack-plugin": "^1.4.3", - "watchpack": "^1.7.4", - "webpack-sources": "^1.4.1" - }, - "dependencies": { - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "schema-utils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", - "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", - "dev": true, - "requires": { - "ajv": "^6.1.0", - "ajv-errors": "^1.0.0", - "ajv-keywords": "^3.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - } - } - }, - "webpack-cli": { - "version": "3.3.12", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.12.tgz", - "integrity": "sha512-NVWBaz9k839ZH/sinurM+HcDvJOTXwSjYp1ku+5XKeOC03z8v5QitnK/x+lAxGXFyhdayoIf/GOpv85z3/xPag==", - "dev": true, - "requires": { - "chalk": "^2.4.2", - "cross-spawn": "^6.0.5", - "enhanced-resolve": "^4.1.1", - "findup-sync": "^3.0.0", - "global-modules": "^2.0.0", - "import-local": "^2.0.0", - "interpret": "^1.4.0", - "loader-utils": "^1.4.0", - "supports-color": "^6.1.0", - "v8-compile-cache": "^2.1.1", - "yargs": "^13.3.2" - }, - "dependencies": { - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "webpack-sources": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", - "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", - "dev": true, - "requires": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dev": true, - "requires": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - } - }, - "websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "dev": true - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "worker-farm": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz", - "integrity": "sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw==", - "dev": true, - "requires": { - "errno": "~0.1.7" - } - }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - }, - "y18n": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", - "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - }, - "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } - } - }, - "yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - } - } -} diff --git a/examples/js-dev-starter-ie11/package.json b/examples/js-dev-starter-ie11/package.json deleted file mode 100644 index 2515fa81..00000000 --- a/examples/js-dev-starter-ie11/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "mod-starter", - "version": "1.0.0", - "description": "", - "main": "main.js", - "scripts": { - "deploy": "webpack", - "server": "mods-dev-server dist", - "build": "webpack --mode production --devtool false", - "build-watch": "webpack --watch", - "start": "npm run build-watch" - }, - "keywords": [], - "author": "", - "license": "ISC", - "devDependencies": { - "@babel/core": "^7.12.10", - "@babel/plugin-transform-runtime": "^7.12.10", - "@babel/preset-env": "^7.12.11", - "@tibco/spotfire-mods-dev-server": "^1.0.0", - "babel-loader": "^8.2.2", - "copy-webpack-plugin": "^6.4.1", - "core-js": "^3.8.3", - "regenerator-runtime": "^0.13.5", - "webpack": "^4.46.0", - "webpack-cli": "^3.3.12" - }, - "dependencies": {} -} diff --git a/examples/js-dev-starter-ie11/prettier.config.js b/examples/js-dev-starter-ie11/prettier.config.js deleted file mode 100644 index e2c5fbae..00000000 --- a/examples/js-dev-starter-ie11/prettier.config.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright © 2020. TIBCO Software Inc. - * This file is subject to the license terms contained - * in the license file that is distributed with this file. - */ - -/*global module*/ -module.exports = { - // Fit code within this line limit - printWidth: 120, - - // Number of spaces it should use per tab - tabWidth: 4, - - // If true, will use single instead of double quotes - singleQuote: false, - - // Controls the printing of trailing commas wherever possible - trailingComma: "none", - - // Controls the printing of spaces inside array and objects - bracketSpacing: true, - - // Controls the printing of parens around arguments in arrow functions - arrowParens: "always", - - // Controls the printing of semi colons at the end of rows - semi: true -}; diff --git a/examples/js-dev-starter-ie11/spotfire/mod-schema.json b/examples/js-dev-starter-ie11/spotfire/mod-schema.json deleted file mode 100644 index 93565f7a..00000000 --- a/examples/js-dev-starter-ie11/spotfire/mod-schema.json +++ /dev/null @@ -1,387 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - - "definitions": { - "axis": { - "type": "object", - "title": "Axis definitions", - "description": "Specifies properties that can be used to configure Axis and ColorAxis entries.", - "required": ["mode"], - "properties": { - "mode": { - "type": "string", - "title": "Mode", - "description": "Specifies what kind of expressions this axis supports: categorical, continuous or both.", - "enum": ["continuous", "categorical", "dual"], - "examples": ["categorical"] - }, - "preferredDualMode": { - "type": "string", - "title": "Preferred mode for dual axis", - "enum": ["continuous", "categorical"], - "default": "categorical", - "description": "Specifies the mode that this axis prefers to be in. This option only applies if this axis is configured with mode 'dual'." - }, - "allowNonAggregatingMeasures": { - "type": "boolean", - "title": "Allow non-aggregating measures", - "description": "Specifies if this axis supports non-aggregating expressions (expressions without an aggregation method) when it is in continuous mode.", - "default": false - }, - "automaticConfiguration": { - "type": "object", - "title": "Automatic configuration", - "description": "Specifies how automatic configuration is made for this axis when the Mod Visualization is created.", - "additionalProperties": false, - "properties": { - "expressionHeuristics": { - "type": "string", - "title": "Expression heuristics", - "enum": ["none", "default"], - "default": "default", - "description": "Specifies the heuristics to use when this axis is assigned an initial expression. Use 'none' to skip the heuristics and leave this axis with an empty expression." - }, - "priority": { - "type": "integer", - "title": "Priority", - "default": "0", - "description": "Specifies the order in which this axis will be treated when the heuristics assigns the initial expression. A higher value means it will be treated before axes with a lower value. Two axes with the same value will be treated in undefined order." - } - } - }, - "dataTypes": { - "type": "object", - "title": "Supported Data Types", - "description": "Specifies which data types that this axis should support. These settings affect which expressions that Spotfire will consider valid for this axis.", - "additionalProperties": false, - "properties": { - "allowNumeric": { - "type": "boolean", - "title": "Allow Numeric data types", - "default": true, - "description": "Specifies whether to allow expressions with numeric data types." - }, - "allowDateTime": { - "type": "boolean", - "title": "Allow the Time, Date and DateTime data types", - "default": false, - "description": "Specifies whether to allow expressions with Time, Date and DateTime data types." - }, - "allowTimeSpan": { - "type": "boolean", - "title": "Allow the TimeSpan data type", - "default": false, - "description": "Specifies whether to allow expressions with TimeSpan data type." - }, - "allowString": { - "type": "boolean", - "title": "Allow the String data type", - "default": false, - "description": "Specifies whether to allow expressions with String data type." - }, - "allowBoolean": { - "type": "boolean", - "title": "Allow the Boolean data type", - "default": false, - "description": "Specifies whether to allow expressions with Boolean data type." - } - } - }, - "dropTarget": { - "type": "object", - "title": "Drop target", - "description": "Specifies the drop target behavior for this axis.", - "additionalProperties": false, - "required": ["icon", "description"], - "properties": { - "icon": { - "type": "string", - "title": "The drop target icon", - "description": "Specifies which, from a selection of built-in icons, to use as the drop target.", - "enum": [ - "XAxis", - "YAxis", - "XAxis3D", - "YAxis3D", - "ZAxis3D", - "SectorSize", - "MarkerSize", - "Size", - "Color", - "Shape", - "Line", - "TrellisPanels", - "TrellisHorizontally", - "TrellisVertically", - "Column", - "ColumnAxis", - "RowAxis", - "CellValues", - "CellValuesSum", - "Icon", - "Tile", - "Hierarchy", - "Time", - "Compare", - "TableCategories" - ], - "examples": ["XAxis"] - }, - "description": { - "type": "string", - "title": "The drop target description", - "description": "Specifies the text to display when dragging an expression or column over the drop target. Use {0} to inject the name of the item being dragged.", - "examples": ["Set {0} on the Size axis"] - } - } - } - } - } - }, - - "title": "The Spotfire mod manifest schema", - "type": "object", - "required": ["apiVersion", "version", "name", "id", "icon", "files"], - "additionalProperties": false, - "properties": { - "version": { - "type": "string", - "title": "Mod version.", - "description": "Specifies the version of this Mod.", - "default": "", - "examples": ["1.0"], - "pattern": "^(.*)$" - }, - "apiVersion": { - "type": "string", - "title": "Mod API version.", - "description": "Specifies the version of the Mod JavaScript API used by the code of this Mod. Set the lowest possible version number that the Mod requires to ensure best possible backward compatibility with older Spotfire systems. Using a newer API version than specified will result in runtime errors, even if the current Spotfire system includes that API.", - "default": "1.0", - "examples": ["1.0"], - "pattern": "^(.*)$" - }, - "name": { - "type": "string", - "title": "Name of the mod", - "description": "Specifies the name of this Mod. The name will be shown to the user when this Mod is handled in Spotfire.", - "default": "", - "examples": ["Spotfire mod boilerplate"], - "pattern": "^(.*)$" - }, - "icon": { - "type": "string", - "title": "Specifies the name of the file containing the svg icon to be used for this Mod.", - "default": "icon.svg" - }, - "id": { - "type": "string", - "title": "Mod ID. A unique string.", - "default": "", - "examples": ["spotfire-boilerplate-id"], - "pattern": "^(.*)$" - }, - "externalResources": { - "type": "array", - "title": "Specifies external resources loaded from the mod.", - "description": "Only declared external resources will work in the mod. A visualization mod with external resources cannot be exported using the web client.", - "items": { - "type": "string", - "examples": [ - "https://www.example.com" - ] - } - }, - "properties": { - "type": "array", - "title": "Mod Properties", - "description": "Specifies the properties that are stored in this Mods part of the Spotfire document. Use properties to store settings values.", - "default": null, - "items": { - "type": "object", - "title": "The Items Schema", - "required": ["name", "type", "defaultValue"], - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "title": "Property name", - "description": "Specifies the unique name used to refer to this property from the code.", - "default": "", - "examples": ["width"], - "pattern": "^(.*)$", - "additionalProperties": false - }, - "type": { - "type": "string", - "enum": ["integer", "double", "string", "boolean"], - "title": "Value type", - "description": "Specifies the type of values stored by this property.", - "default": "string", - "examples": ["integer"], - "pattern": "^(.*)$", - "additionalProperties": false - }, - "defaultValue": { - "type": ["string", "number", "boolean"], - "title": "Default value", - "description": "Specifies the value that this property will have when an instance of the Mod is created.", - "default": "", - "examples": ["3"], - "pattern": "^(.*)$", - "additionalProperties": false - } - } - } - }, - "dataViewDefinition": { - "type": "object", - "title": "Mod view definition", - "description": "Specifies how Spotfire computes the data consumed by the Mod.", - "default": {}, - "additionalProperties": false, - "properties": { - "colorAxis": { - "allOf": [ - { "$ref": "#/definitions/axis" }, - { - "type": "object", - "title": "ColorAxis", - "description": "Specifies that the Mod shall have a color axis.", - "properties": { - "legendItem": { - "type": "object", - "title": "Legend Item", - "description": "Specifies behavior and properties of how this axis is shown in the legend.", - "additionalProperties": false, - "properties": { - "defaultVisibility": { - "type": "string", - "title": "Default visibility", - "enum": ["visible", "hidden"], - "description": "Specifies whether to initially show or hide the item for this axis in the legend." - } - } - } - } - } - ] - }, - "axes": { - "type": "array", - "title": "The mod axes", - "description": "Specifies the axes that defines how Spotfire computes the data view consumed by the Mod.", - "items": { - "allOf": [ - { "$ref": "#/definitions/axis" }, - { - "type": "object", - "title": "Axis", - "required": ["name"], - "properties": { - "name": { - "type": "string", - "title": "Name", - "default": "X", - "description": "Specifies the unique named used to refer to this axis from the code.", - "examples": ["X"], - "pattern": "^(.*)$" - }, - "allowMultipleMeasures": { - "type": "boolean", - "title": "Allow multiple measures", - "description": "Specifies if this axis supports having multiple measure expression when it is in continuous mode.", - "default": false - }, - "placement": { - "type": "string", - "title": "Placement", - "enum": ["left", "bottom", "top", "right", "none"], - "description": "Specifies the placement of the axis tray for this axis.", - "examples": ["bottom"] - }, - "legendItem": { - "type": "object", - "title": "Legend Item", - "description": "Specifies behavior and properties of how this axis is shown in the legend.", - "additionalProperties": false, - "properties": { - "defaultVisibility": { - "type": "string", - "title": "Default visibility", - "enum": ["visible", "hidden"], - "default": "visible", - "description": "Specifies whether to initially show or hide the item for this axis in the legend." - }, - "title": { - "type": "string", - "title": "Title", - "description": "Specifies the title to show in the item for this axis in the legend." - } - } - }, - "propertyControl": { - "type": "object", - "title": "Property Control", - "description": "Specifies behavior and properties of how a control for this axis is shown in the properties dialog.", - "additionalProperties": false, - "properties": { - "visibility": { - "type": "string", - "title": "Visibility", - "enum": ["visible", "hidden"], - "default": "visible", - "description": "Specifies whether to show a control for this axis in the properties dialog." - }, - "title": { - "type": "string", - "title": "Title", - "description": "Specifies the title of the control for this axis." - } - } - } - } - } - ] - } - } - } - }, - "legend": { - "type": "object", - "title": "Legend", - "description": "Specifies properties of the Spotfire Legend for the Mod.", - "default": {}, - "additionalProperties": false, - "properties": { - "defaultPlacement": { - "type": "string", - "enum": ["left", "right"], - "title": "Default placement of the Legend", - "description": "Specifies where the Legend is initially placed. If omitted, the Legend will be placed to the right." - }, - "defaultVisibility": { - "type": "string", - "enum": ["visible", "hidden"], - "title": "Default visibility of Legend", - "description": "Specifies whether to initially show or hide the Legend. If omitted, the Legend will be shown." - } - } - }, - "files": { - "type": "array", - "title": "The files stored in the mod", - "description": "All files of a mod will be saved into Spotfire. The files array lists all files so that Spotfire can save them.", - "items": { - "type": "string", - "title": "The Items Schema", - "default": "", - "examples": [ - "index.html", - "main.css", - "main.js" - ], - "pattern": "^(.*)$" - } - } - } -} diff --git a/examples/js-dev-starter-ie11/src/main.js b/examples/js-dev-starter-ie11/src/main.js deleted file mode 100644 index e31e3e8d..00000000 --- a/examples/js-dev-starter-ie11/src/main.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright © 2020. TIBCO Software Inc. - * This file is subject to the license terms contained - * in the license file that is distributed with this file. - */ - -//@ts-check - Get type warnings from the TypeScript language server. Remove if not wanted - -// Manually import the array polyfills because the API is using functions not supported in IE11. -import "core-js/es/array"; - -/** - * Get access to the Spotfire Mod API by providing a callback to the initialize method. - */ -window.Spotfire.initialize(async (mod) => { - /** - * Create the read function. - */ - const reader = mod.createReader(mod.visualization.data(), mod.windowSize(), mod.property("myProperty")); - - /** - * Store the context. - */ - const context = mod.getRenderContext(); - - /** - * Initiate the read loop - */ - reader.subscribe(render); - - /** - * @param {Spotfire.DataView} dataView - * @param {Spotfire.Size} windowSize - * @param {Spotfire.ModProperty} prop - */ - async function render(dataView, windowSize, prop) { - /** - * Check the data view for errors - */ - let errors = await dataView.getErrors(); - if (errors.length > 0) { - // Showing an error overlay will hide the mod iframe. - // Clear the mod content here to avoid flickering effect of - // an old configuration when next valid data view is received. - mod.controls.errorOverlay.show(errors); - return; - } - mod.controls.errorOverlay.hide(); - - /** - * Get the hierarchy of the categorical X-axis. - */ - const xHierarchy = await dataView.hierarchy("X"); - const xRoot = await xHierarchy.root(); - - if (xRoot == null) { - // User interaction caused the data view to expire. - // Don't clear the mod content here to avoid flickering. - return; - } - - /** - * Print out to document - */ - const container = document.querySelector("#mod-container"); - container.textContent = `windowSize: ${windowSize.width}x${windowSize.height}\r\n`; - container.textContent += `should render: ${xRoot.rows().length} rows\r\n`; - container.textContent += `${prop.name}: ${prop.value()}`; - - /** - * Signal that the mod is ready for export. - */ - context.signalRenderComplete(); - } -}); diff --git a/examples/js-dev-starter-ie11/static/icon.svg b/examples/js-dev-starter-ie11/static/icon.svg deleted file mode 100644 index eaa7d569..00000000 --- a/examples/js-dev-starter-ie11/static/icon.svg +++ /dev/null @@ -1 +0,0 @@ -Mods_icons \ No newline at end of file diff --git a/examples/js-dev-starter-ie11/static/index.html b/examples/js-dev-starter-ie11/static/index.html deleted file mode 100644 index b846720c..00000000 --- a/examples/js-dev-starter-ie11/static/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - Spotfire Mod Example - - - - - -
- - - - - \ No newline at end of file diff --git a/examples/js-dev-starter-ie11/static/main.css b/examples/js-dev-starter-ie11/static/main.css deleted file mode 100644 index 1c1e777b..00000000 --- a/examples/js-dev-starter-ie11/static/main.css +++ /dev/null @@ -1,14 +0,0 @@ -/* -* Copyright © 2020. TIBCO Software Inc. -* This file is subject to the license terms contained -* in the license file that is distributed with this file. -*/ - -body{ - margin: 0; - overflow: hidden; -} - -#mod-container { - white-space: pre; -} \ No newline at end of file diff --git a/examples/js-dev-starter-ie11/static/mod-manifest.json b/examples/js-dev-starter-ie11/static/mod-manifest.json deleted file mode 100644 index 3039d82f..00000000 --- a/examples/js-dev-starter-ie11/static/mod-manifest.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "apiVersion": "1.2", - "version": "1.0", - "name": "Mod starter", - "id": "js-dev-starter", - "icon": "icon.svg", - "properties": [ - { - "name": "myProperty", - "type": "string", - "defaultValue": "myValue" - } - ], - "dataViewDefinition": { - "colorAxis": { - "mode": "dual", - "dropTarget": { - "icon": "Color", - "description": "Color by {0}" - } - }, - "axes": [ - { - "name": "X", - "mode": "categorical", - "placement": "bottom", - "dropTarget": { - "icon": "XAxis3D", - "description": "Use {0} on the mod's X-axis" - } - }, - { - "name": "Y", - "mode": "continuous", - "placement": "left" - } - ] - }, - "files": [ - "index.html", - "main.css", - "bundle.js" - ] -} \ No newline at end of file diff --git a/examples/js-dev-starter-ie11/tsconfig.json b/examples/js-dev-starter-ie11/tsconfig.json deleted file mode 100644 index 542245b1..00000000 --- a/examples/js-dev-starter-ie11/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "allowJs": true, - "outDir": "", - "target": "ES2019", - "lib": ["es2019", "dom"] - }, - "include": ["./src/**/*.js", "./spotfire/*.d.ts", "./src/**/*.d.ts", "./node_modules/**/*.d.ts"] -} diff --git a/examples/js-dev-starter-ie11/webpack.config.js b/examples/js-dev-starter-ie11/webpack.config.js deleted file mode 100644 index 48e8274c..00000000 --- a/examples/js-dev-starter-ie11/webpack.config.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright © 2020. TIBCO Software Inc. - * This file is subject to the license terms contained - * in the license file that is distributed with this file. - */ - -const path = require("path"); -const webpack = require("webpack"); -const CopyPlugin = require("copy-webpack-plugin"); - -module.exports = { - mode: "development", - entry: "./src/main.js", - output: { - path: path.resolve(__dirname, "dist"), - filename: "bundle.js" - }, - module: { - rules: [ - { - test: /\.m?js$/, - exclude: /node_modules/, - use: { - loader: "babel-loader", - options: { - presets: [ - [ - "@babel/preset-env", - { - useBuiltIns: "usage", // "usage" or "entry" - corejs: 3, - targets: "> 0.25%, not dead" - } - ] - ], - plugins: ["@babel/plugin-transform-runtime"] - } - } - } - ] - }, - plugins: [new webpack.NamedModulesPlugin(), new CopyPlugin({ patterns: [{ from: "static" }] })], - devtool: "inline-source-map" -}; diff --git a/examples/js-dev-starter/spotfire/spotfire-api-1-2.d.ts b/examples/js-dev-starter/spotfire/spotfire-api-1-2.d.ts deleted file mode 100644 index 420e4571..00000000 --- a/examples/js-dev-starter/spotfire/spotfire-api-1-2.d.ts +++ /dev/null @@ -1,1607 +0,0 @@ -/* - * Copyright © 2020. TIBCO Software Inc. - * This file is subject to the license terms contained - * in the license file that is distributed with this file. - */ -export as namespace Spotfire; - -/** - * Predicate to determine if a current read operation for {@link DataView.allRows} should be aborted when there is new, non-streaming, data available. If this predicate returns true the {@link DataView.allRows} promise will be rejected and no rows will be returned. - * @public - */ -export declare type AbortPredicate = (currentRowCount: number) => boolean; - -/** - * Represents a property owned by the Spotfire document. - * These can be either document properties, data table properties or data column properties. - * @public - */ -export declare interface AnalysisProperty - extends AnalysisPropertyValue { - /** - * Set the value of this instance. - * @param value - The value to set. - */ - set(value: T | T[] | null): void; -} - -/** - * Represents the data types possible to store in a document, table or column {@link AnalysisProperty}. - * @public - */ -export declare type AnalysisPropertyDataType = string | number | boolean | Date | TimeSpan | Time; - -/** - * Represents the values held by a {@link AnalysisProperty}. - * @public - */ -export declare interface AnalysisPropertyValue { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the value held by this instance. Will throw if the value is a list, i.e. {@link AnalysisPropertyValue.isList} returns true; - */ - value(): T2 | null; - /** - * Gets the value held by this instance. Will throw if the value is not a list, i.e. {@link AnalysisPropertyValue.isList} returns false; - */ - valueList(): T2[]; - /** - * Get the Spotfire internal data type of the property. - */ - dataType: DataType; - /** - * Gets a value indicating whether the property is a list. - */ - isList: boolean; -} - -/** - * Represents an axis of the Mod Visualization. - * @public - */ -export declare interface Axis extends AxisValues { - /** - * Sets the full axis expression to the specified `value`. - */ - setExpression(value: string): void; -} - -/** - * Represents one element of a multi-part axis expression. - * @public - */ -export declare interface AxisPart { - /** - * Gets the expression of this part. - */ - expression: string; - /** - * Gets the display name of this part. - */ - displayName: string; -} - -/** - * Represents the values held by an {@link Axis}. - * @public - */ -export declare interface AxisValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the {@link AxisPart}s that this axis has. The parts are derived from the current {@link AxisValues.expression}. - */ - parts: AxisPart[]; - /** - * Gets the full expression of this instance, including multi-part delimiters and - * surrounding "\<\>" brackets if the axis is in categorical mode. - */ - expression: string; - /** - * Gets a value indicating whether the axis is categorical or continuous. - */ - isCategorical: boolean; -} - -/** - * Represents a data column in a Spotfire data table. - * @public - */ -export declare interface Column extends ColumnValues { - /** - * Provides access to the properties of this instance. See {@link AnalysisProperty}. - */ - properties(): Readable; - /** - * Provides access to the {@link AnalysisProperty} with the specified `name`. - */ - property(name: string): Readable; -} - -/** - * Represents the values held by a {@link Column}. - * @public - */ -export declare interface ColumnValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the data type of this instance. - */ - dataType: DataType; -} - -/** - * Represents an object with methods to show a context menu. - * @public - */ -export declare interface ContextMenu { - /** - * Shows a context menu with the specified `items`. The context menu closes when the user clicks one of the - * items or outside the context menu. - * @param x - The horizontal pixel coordinate where to show the context menu. - * @param y - The vertical pixel coordinate where to show the context menu. - * @param items - Defines the content of the context menu. - * @returns A Promise that, when resolved, provides the {@link ContextMenuItem} that was clicked by the user, - * or `undefined` if the user clicked outside the context menu. - */ - show(x: number, y: number, items: ContextMenuItem[]): Promise; -} - -/** - * Represents an item in a context menu shown by calling {@link ContextMenu.show}. - * @public - */ -export declare interface ContextMenuItem { - /** - * Specifies the text to show in this item. - */ - text: string; - /** - * Specifies whether this item is enabled. - */ - enabled: boolean; - /** - * Specifies the tooltip to show for this item. If not defined, no tooltip will be shown when hovering the this item. - */ - tooltip?: string; - /** - * Specifies a value indicating whether this item is checked. If not defined, this item will not be rendered in a checked state. - */ - checked?: boolean; -} - -/** - * Provides access points to launch Spotfire controls and UI component relevant for a Mod Visualization. - * @public - */ -export declare interface Controls { - /** - * Gets an object with methods to show a context menu. - */ - contextMenu: ContextMenu; - /** - * Gets an object with methods to show and hide a Spotfire tooltip. - */ - tooltip: Tooltip; - /** - * Gets an object with methods to show and hide the Spotfire progress indicator. - */ - progress: Progress; - /** - * Gets an object that can be used to create and show a Spotfire popout dialog. - */ - popout: Popout; - /** - * Gets an object that can be used to show an error overlay native Spotfire style. - */ - errorOverlay: ErrorOverlay; -} - -/** - * Represents a data table in the Spotfire document. - * @public - */ -export declare interface DataTable extends DataTableValues { - /** - * Provides access to the columns of this instance. See {@link Column}. - */ - columns(): Readable; - /** - * Provides access to the {@link Column} with the specified `name`. - */ - column(name: string): ReadableProxy; - /** - * Provides access to the properties of this instance. See {@link AnalysisProperty}. - */ - properties(): Readable; - /** - * Provides access to the {@link AnalysisProperty} with the specified `name`. - */ - property(name: string): Readable; -} - -/** - * Represents the values held by a {@link DataTable}. - * @public - */ -export declare interface DataTableValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the number of columns in this instance. - */ - columnCount: number; - /** - * Gets the unique id for this instance. - * The id is stable during the data table life cycle, thus it can be used to store as a reference to this data table in a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - */ - id: string; -} - -/** - * Represents the data type of a value. - * @public - */ -export declare interface DataType { - /** - * Gets the name of this DataType. - */ - name: - | "String" - | "Integer" - | "LongInteger" - | "Real" - | "SingleReal" - | "Currency" - | "Boolean" - | "Date" - | "DateTime" - | "Time" - | "TimeSpan" - | "Binary"; - /** - * Gets a value indicating whether the data type is numeric or not, that is, - * Integer, Currency, Real, LongInteger, or SingleReal. - */ - isNumber(): boolean; - /** - * Gets a value indicating whether the data type is represents by Date or not, that is, Date, or DateTime. - */ - isDate(): boolean; - /** - * Gets a value indicating whether the data type is represents by {@link Time} or not. - */ - isTime(): boolean; - /** - * Gets a value indicating whether the data type is represents by {@link TimeSpan} or not. - */ - isTimeSpan(): boolean; -} - -/** - * Represents a view of the data from which the visualization can be rendered. - * - * This object contains the result of the query made by Spotfire against the DataTable - * currently used by the Mod Visualization, using the Filtering, Marking, expressions - * on the Axes and other relevant settings. - * @public - */ -export declare interface DataView { - /** - * Mark a set of rows. - * The full set will be the union of all mark operations performed within one transaction (see {@link Mod.transaction}). - * All mark operations must have the same marking operation. - * @param rows - The rows to be selected. - * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. - */ - mark(rows: DataViewRow[], markingOperation?: MarkingOperation): void; - /** - * Clears the current marking - */ - clearMarking(): void; - /** - * Gets the marking information, or null if marking is not enabled. - */ - marking(): Promise; - /** - * Gets a value indicating whether the dataView has expired. - * The dataview has expired when there has been changes to the document, - * for example marking or filtering. - * When true, there will be a new dataview available on the next read. - */ - hasExpired(): Promise; - /** - * Gets any errors generated while creating the dataview. - * Returns empty array if none occurred. - */ - getErrors(): Promise; - /** - * Gets metadata for a specific categorical axis in the {@link DataView}. - * Categorical axes are defined in the manifest file as categorical or dual. - * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.categorical} will throw an error. - * Returns null for axes with empty expressions or for dual mode axes that currently are in continuous mode. - * Throws if the axis does not exist or the axes mode is continuous. - * @param name - The axis name. - */ - categoricalAxis(name: string): Promise; - /** - * Gets metadata for a specific continuous axis in the {@link DataView}. - * Continuous axes are defined in the manifest file as continuous or dual. - * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.continuous} will throw an error. - * Returns null for axes with empty expressions or for dual mode axes that currently are in categorical mode. - * Throws if the axis does not exist or the axes mode is categorical. - * @param name - The axis name. - */ - continuousAxis(name: string): Promise; - /** - * Gets metadata of all axes currently present in the {@link DataView}. - * Axes with empty expression are omitted. - */ - axes(): Promise; - /** - * Gets a hierarchy for a categorical axis. - * - * If the axis has an empty expression the hierarchy will contain one single root node. - * Returns null for dual mode axes that currently are in continuous mode. - * Throws if the axis does not exist or the axes mode is continuous. - * @param name - The name of the axis to get the hierarchy for. - */ - hierarchy(name: string): Promise; - /** - * Gets the total number of rows of the {@link DataView} without actually getting all the rows. Use this function to determine whether or not the mod will be able to handle the amount of data rows. - * When there are errors in the mod configuration there will be no rows available and this method will return undefined. - */ - rowCount(): Promise; - /** - * Gets all rows from the data view as one asynchronous operation. - * The allRows function has a built in cache and can be called multiple times with the same dataView and it will return the same list of rows. - * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. - * The default behavior is that reading will be aborted when new non-streaming update is available. - * @returns null if reading data was aborted, otherwise a {@link DataViewRow}[]. - */ - allRows(abortPredicate?: AbortPredicate): Promise; -} - -/** - * Contains metadata computed for an {@link Axis}. - * @public - */ -export declare interface DataViewAxis { - /** - * Gets the name of this axis. - */ - name: string; - /** - * Gets a value indicating whether this axis is an instance of {@link DataViewContinuousAxis} or {@link DataViewCategoricalAxis} . - */ - isCategorical: boolean; -} - -/** - * Represents metadata computed for a categorical {@link Axis}. - * @public - */ -export declare interface DataViewCategoricalAxis extends DataViewAxis { - /** - * Gets the hierarchy of this axis. - */ - hierarchy: DataViewHierarchy; -} - -/** - * Represents a value of a categorical axis for one row in a data view. - * @public - */ -export declare interface DataViewCategoricalValue { - /** - * Gets an array representing the full path of the value in the hierarchy defined by the axis expression. - * The first element is the top level of the hierarchy and the last element is the leaf level. - */ - value(): DataViewCategoricalValuePathElement[]; - /** - * Gets a formatted string that can be used to display this value. - * This string is built by concatenating the {@link DataViewCategoricalValuePathElement.formattedValue} for each element found in the {@link DataViewCategoricalValue.value} array. - * @param separator - The separator used for concatenation. The default separator is " » ". - */ - formattedValue(separator?: string): string; - /** - * Gets the index among the leaf nodes of the associated {@link DataViewHierarchy} of this {@link DataViewCategoricalAxis}. - * This, for example, can be used to determine the position on a scale where to render the visual element. - */ - leafIndex: number; -} - -/** - * Represents an element in the `path` of a {@link DataViewCategoricalValue}. - * @public - */ -export declare interface DataViewCategoricalValuePathElement { - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; - /** - * Gets a key that uniquely identifies this element. - * - * In many cases this will be the same as {@link DataViewCategoricalValuePathElement.formattedValue} and {@link DataViewCategoricalValuePathElement.value}. - * However there are cases when those values can contain duplicates. For instance when working with cube data, - * or when using formatters and display values. - * - * They key is suitable to be used for identifying objects when implementing rendering transitions. - * - * The key can be null when the corresponding {@link DataViewCategoricalValuePathElement.value} is null. - */ - key: string | null; - /** - * Gets the value of this element, or null if this element represents a missing or invalid data point. - * - * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the {@link DataViewHierarchy} of - * the associated {@link DataViewCategoricalAxis}. - */ - value(): T | null; -} - -/** - * Color information for a {@link DataViewRow}. - * @public - */ -export declare interface DataViewColorInfo { - /** The hex code for the color. */ - hexCode: string; -} - -/** - * Represents metadata computed for continuous {@link Axis}. - * @public - */ -export declare interface DataViewContinuousAxis extends DataViewAxis { - /** - * Gets the data type of the values computed by this axis. - */ - dataType: DataType; -} - -/** - * Represents a value of a continuous axis for one row in a data view. - * @public - */ -export declare interface DataViewContinuousValue { - /** - * Gets the value of this instance. The type depending on the type of the - * expression on the associated {@link DataViewContinuousAxis}. - * - * This method will return `null` when the underlying data value is missing or invalid. - */ - value(): T2 | null; - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; -} - -/** - * Represents a hierarchy for a {@link DataViewCategoricalAxis}. - * @public - */ -export declare interface DataViewHierarchy { - /** - * Gets the name of this hierarchy, the same as the associated {@link DataViewCategoricalAxis}. - */ - name: string; - /** - * Gets a value indicating whether the hierarchy is empty, i.e. the axis expression is empty, or not. - * For convenience, an empty hierarchy will have one single node that may contain all rows in the dataview. - */ - isEmpty: boolean; - /** - * Gets the levels of this hierarchy. The root node has no corresponding level. - */ - levels: DataViewHierarchyLevel[]; - /** - * Gets the total number of leaf nodes in the hierarchy. - */ - leafCount: number; - /** - * Gets the virtual root node of the hierarchy. The level of the root node is -1. Spotfire does not usually render the root node in visualization. - * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. - * The default behavior is that reading will be aborted when new non-streaming update is available. - * @returns null if reading data was aborted, otherwise a {@link DataViewHierarchyNode}. - */ - root(abortPredicate?: AbortPredicate): Promise; -} - -/** - * Represents the levels of a hierarchy. - * @public - */ -export declare interface DataViewHierarchyLevel { - /** - * The name of the hierarchy level, derived from the expression on the {@link Axis}. - */ - name: string; - /** - * Gets the data type of the values in this level of the hierarchy. - */ - dataType: DataType; -} - -/** - * Represents a node in a {@link DataViewHierarchy}. - * @public - */ -export declare interface DataViewHierarchyNode { - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; - /** - * Gets the full path, top down to this node, of the formatted values. The virtual root node is omitted. - * @param separator - The separator. The default separator is " » ". - */ - formattedPath(separator?: string): string; - /** - * Gets the key for this hierarchy node. The key is guaranteed to be unique for the node among its siblings. - * - * In many cases this will be the same as {@link DataViewHierarchyNode.formattedValue} or {@link DataViewHierarchyNode.value}. - * However there are cases when those values can contain duplicates. For instance when working with cube data, - * or when using formatters and display values. - * - * They key is suitable to be used for identifying objects when implementing rendering transitions. - * - * The key can be null when the corresponding {@link DataViewHierarchyNode.value} is null. - */ - key: string | null; - /** - * Gets the value of this node, or null if this node represents a missing or invalid data point. - * - * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the associated {@link DataViewHierarchy}. - */ - value(): T | null; - /** - * Gets the parent of the hierarchy node, or `undefined` for root level nodes. - */ - parent?: DataViewHierarchyNode; - /** - * Gets the children of this node, or `undefined` if this node is a leaf node. - */ - children?: DataViewHierarchyNode[]; - /** - * Computes an array of all leaf nodes in the sub tree of the hierarchy spanned from this node. - */ - leaves(): DataViewHierarchyNode[]; - /** - * Gets the index of the leaf node among all leaf nodes in the hierarchy. This is undefined for non leaf nodes. - */ - leafIndex?: number; - /** - * Marks all {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - * See {@link DataView.mark} for more details. - * @param operation - The marking operation. - */ - mark(operation?: MarkingOperation): void; - /** - * Computes the number of {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - */ - rowCount(): number; - /** - * Computes the number of leaf nodes in the sub tree of the hierarchy spanned from this node. - */ - leafCount(): number; - /** - * Computes the number of marked {@link DataViewRow}s in the sub tree of the hierarchy spanned from this node. - */ - markedRowCount(): number; - /** - * Gets the level in the hierarchy where this node occurs. The root node of the hierarchy tree has level -1. - */ - level: number; - /** - * Computes the {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - */ - rows(): DataViewRow[]; -} - -/** - * Represents an object that provides access to a {@link DataView}. - * @public - */ -export declare type DataViewProxy = DataViewProxyMethods & Readable; - -/** - * Represents the methods available on a {@link DataViewProxy}. - * @public - */ -export declare interface DataViewProxyMethods { - /** - * Clears the current marking - */ - clearMarking(): void; -} - -/** - * Represents a row of data in a {@link DataView}. Each row can be thought of as a data point that the mod visualization renders. - * @public - */ -export declare interface DataViewRow { - /** - * Gets a value indicating whether this row is marked. - */ - isMarked(): boolean; - /** - * Gets a {@link DataViewCategoricalValue} representing the value of the axis with the specified `axisName`. - * This method will throw an error if there is no categorical axis by that name or if the expression is empty. - * Use {@link DataView.categoricalAxis} to check the current existence of a categorical value. - * @param axisName - The name of the axis to get the value for. - */ - categorical(axisName: string): DataViewCategoricalValue; - /** - * Gets a {@link DataViewContinuousValue} representing the value of the axis with the specified `axisName`. - * This method will throw an error if there is no continuous axis by that name or if the expression is empty. - * Use {@link DataView.continuousAxis} to check the current existence of a continuous value. - * @param axisName - The name of the axis to get the value for. - */ - continuous(axisName: string): DataViewContinuousValue; - /** - * Gets the leaf {@link DataViewHierarchyNode} for the specified axis, - * or null for dual mode axes with continuous axis expression. - * This method will throw an error for continuous mode axes - * or if there is no axis by that name. - * @param axisName - The name of the axis - * @version 1.1 - */ - leafNode(axisName: string): DataViewHierarchyNode | null; - /** - * Calculates an element id for this row, suitable for identifying rows between data views. - * When stable identifiers is not used, only rows in immediately following data view are guaranteed to re-use previous id. - * If a row is filtered out in a new data view, this row is thus not guaranteed to yield the same id when it re-appears. - * - * @note A stable element id is only stable in the current session, thus it should not be stored in the document, - * e.g. as a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - * - * @param useStableId - When true, the id will be a (longer) stable id guaranteed to be the same over time. - * @param omitAxisNames - Axis names to omit when creating the identifier. Can be used to group multiple elements split by these axes, for example to create animation effects in one data view. - */ - elementId(useStableId?: boolean, omitAxisNames?: string[]): string; - /** - * Gets the {@link DataViewColorInfo} for the row, if a color axis is defined in the mod manifest. - * The underlying data value can be retrieved by using {@link DataViewRow.categorical}("Color") or {@link DataViewRow.continuous}("Color"), depending on the mode of the color axis. - */ - color(): DataViewColorInfo; - /** - * Performs the specified marking operation in the current marking. - * - * **Note** All mark operations within one {@link Mod.transaction} must have the same {@link MarkingOperation}. - * - * See {@link DataView.mark} for more details. - * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. - */ - mark(operation?: MarkingOperation): void; -} - -/** - * Represents the type of a {@link DataView} value. The actual type that a given value has depends on the - * type of the expression on the associated axis. - * @public - */ -export declare type DataViewValueType = number | string | boolean | Date | Time | TimeSpan; - -/** - * Provides access to show an error overlay covering the entire Mod shown by Spotfire. - * @public - */ -export declare interface ErrorOverlay { - /** - * Show error message. Showing any error message will hide the Mods UI. - * @param messages - The error messages. Each message will be shown in its own paragraph. - * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. - */ - show(messages: string[], category?: string): void; - /** - * Show error message. Showing any error message will hide the Mods UI. - * @param messages - The error message. - * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. - */ - show(message: string, category?: string): void; - /** - * Clear the error message. If no other error messages are currently visible the Mods UI will be shown. - * @param category - Optional error categorization. - */ - hide(category?: string): void; -} - -/** - * From readableArray, an array of Readable of some value type, extract an array of this value type. - * @public - */ -export declare type ExtractValueType>> = { - [readableName in keyof readableArray]: readableArray[readableName] extends Readable - ? readableNameType - : never; -}; - -/** - * Represents information about a font that is used in the Mod Visualization. - * @public - */ -export declare interface FontInfo { - /** - * Gets the value to use for the `font-family` CSS property. - */ - fontFamily: string; - /** - * Gets the font size in pixels. - */ - fontSize: number; - /** - * Gets the value to use for the `font-style` CSS property. - */ - fontStyle: string; - /** - * Gets the value to use for the `font-weight` CSS property. - */ - fontWeight: string; - /** - * Gets the value to use for the `color` CSS property. - */ - color: string; -} - -/** - * Represents the general styling information that applies to the Mod Visualization. - * @public - */ -export declare interface GeneralStylingInfo { - /** - * Gets and object describing the font that shall be used by the Mod Visualization. - */ - font: FontInfo; - /** - * Gets the value to use for the `background-color` CSS property of the Mod Visualization. - */ - backgroundColor: string; -} - -/** - * Initializes the Mod API. The specified `onLoaded` callback is called when the initialization is complete. - * @example - * ``` - * Spotfire.initialize(async (mod) => { - * console.log("Mod API loaded."); - * }); - * ``` - * The initialize method will invoke the provided callback with an instance of the mod API, to be used by the mod developer. - * - * The initialize method needs to be invoked in order for the mod to function. Even if the mod only displays static content, the API must be initialized in order for events and export to work. - * @public - * @param onLoaded - Callback that is called when the mod API is initialized and ready to be interacted with. - */ -export declare function initialize(onLoaded: OnLoadCallback): void; - -/** - * Represents the styling information that applies to scale lines in the Mod Visualization. - * @public - */ -export declare interface LineStylingInfo { - /** - * Gets the stroke to use for scale lines. This value is valid a CSS color or the value `"none"`. - */ - stroke: string; -} - -/** - * Marking information for a {@link DataView}. - * @public - */ -export declare interface MarkingInfo { - /** The hex code for the marking. Note that when the mod has a defined color axis, the color should be retrieved via the {@link DataViewRow.color} method. */ - colorHexCode: string; - /** The name of the marking. */ - name: string; -} - -/** - * Specifies how a Marking shall be modified. - *
- * - "Replace" - replaces the current marking.
- * - "Add" - adds to the current marking.
- * - "Subtract" - removes the current marking.
- * - "Toggle" - toggles marking on each item in the set.
- * - "Intersect" - marks the intersection of the current marking and the specified set.
- * - "ToggleOrAdd" - will behave like toggle if all or no rows in the set are marked, otherwise it is an add operation. This is the default Spotfire behavior for control marking.
- * 
- * @public - */ -export declare type MarkingOperation = "Replace" | "Add" | "Subtract" | "Toggle" | "Intersect" | "ToggleOrAdd"; - -/** - * Extract from T the keys of all properties with function values. - * @public - */ -export declare type MethodKeys = { - [P in keyof T]: T[P] extends Function ? P : never; -}[keyof T]; - -/** - * Represents the entire Mod API and exposes methods for interacting with and reading data from - * the Mod Visualization and the Spotfire document. - * - * Reading content from the Mod is made by using either of the methods {@link Reader.subscribe} or {@link Reader.once} on an instance of a {@link Reader}. - * @public - */ -export declare interface Mod { - /** - * Gets an object that provides access to Spotfire document. - */ - document: SpotfireDocument; - /** - * Gets an object representing the content in the Mod Visualization and provides methods to read and/or modified it. - */ - visualization: ModVisualization; - /** - * Provides access to the {@link ModProperty} with the specified `name`. - */ - property(name: string): ReadableProxy>; - /** - * Provides read-only access to the current size of the browser window in which the Mod - * is rendered. That is, the size of the iframe created for the Mod in the Spotfire UI. - */ - windowSize(): Readable; - /** - * Creates a {@link Reader} that can be used to access content specified by the {@link Readable} parameters. - * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked - * when one or more of the {@link Readable}s have changed. - * @param readables - The {@link Readable}s that will be available in the reader. - */ - createReader>(...readables: T): Reader>; - /** - * Gets an object that allows showing Spotfire controls and other UI component, like context menus, tooltips, etc. - */ - controls: Controls; - /** - * Performs a set of synchronous modifications in an explicit transaction to the Spotfire document. - * - * Use of this method is only needed to make sure that a set of modifications are done as one transaction, thereby resulting in one undo step. - * Modifications done outside of a transaction action callback will be grouped together in an implicit transaction. - * - * @param action - callback with a set of modifications - * @param onComplete - optional callback that is called when the transaction is committed or rolled back. When there is an error argument in the callback the transaction was rolled back. - * @example - * ``` - * mod.transaction(() => { - * mod.property("X").set("new value for X"); - * mod.property("Y").set("new value for Y"); - * }, - * (error) => { - * if (error) { - * // Show error message. - * } - * else { - * // Handle success, e.g. re-enable action button. - * } - * }); - * ``` - */ - transaction(action: () => void, onComplete?: (error?: string) => void): void; - /** - * Get the Mod's render context. This function should be invoked as soon as possible in the {@link initialize} callback. - * - * If this method is called in the {@link initialize} callback, Spotfire will wait for the Mod to finish rendering during - * an export. The export will be made once the {@link RenderContext.signalRenderComplete} method has been called. - * - * If this method is not called in the {@link initialize} callback, Spotfire will _not_ wait for the Mod to finish rendering during - * an export. Instead, the Mod will be automatically exported after one second. - */ - getRenderContext(): RenderContext; - /** - * Get mod metadata - name, id, version, etc. - */ - metadata: ModMetadata; -} - -/** - * Represents that metadata of the Mod Visualization, as defined in the mod-manifest-json. - * @public - */ -export declare interface ModMetadata { - /** - * Gets the id of the Mod Visualization, as defined in the mod-manifest-json. - */ - id: string; - /** - * Gets the name of the Mod Visualization, as defined in the mod-manifest-json. - */ - name: string; - /** - * Gets the version of the Mod Visualization, as defined in the mod-manifest-json. - */ - version: string; - /** - * Gets the api version used by the Mod Visualization, as declared in the mod-manifest-json. - */ - apiVersion: string; -} - -/** - * Represents a property owned by the Mod Visualization. - * The Mod manifest defines the properties owned by the Mod Visualization. - * @public - */ -export declare interface ModProperty extends ModPropertyValue { - /** - * Set the value of this instance. - * @param value - The value to set. - */ - set(value: T): void; -} - -/** - * Represents the data types possible to store in a mod {@link ModProperty}. - * @public - */ -export declare type ModPropertyDataType = string | number | boolean; - -/** - * Represents the values held by a {@link ModProperty}. - * @public - */ -export declare interface ModPropertyValue { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the value held by this instance; - */ - value(): T2 | null; -} - -/** - * Represents the content in the Mod Visualization that can be read and/or modified. - * - * The content is a combination of state stored by the Mod Visualization in the Spotfire document, - * its view of the data and relevant UI properties. All values are {@link Readable} objects and are - * typically accessed using the {@link Reader} object. - * - * @public - */ -export declare interface ModVisualization { - /** - * Provides access to the {@link DataView} that the Mod Visualization is to render. - */ - data(): DataViewProxy; - /** - * Provides access to the {@link DataTable} in the Spotfire document that the Mod Visualization - * uses as its main table. - */ - mainTable(): ReadableProxy; - /** - * Sets the main {@link DataTable} in the Mod visualization. - * @param tableName - The name or id of the {@link DataTable} to be used as main table. - */ - setMainTable(tableName: string): void; - /** - * Sets the main {@link DataTable} in the Mod visualization. - * @param table - The {@link DataTable} object to be used as main table. - */ - setMainTable(table: DataTable): void; - /** - * Provides access to the {@link Axis} in the Mod Visualization with the specified `name`. All axes - * must be declared in the mod-manifest.json. - * @param name - The name of the {@link Axis}. - */ - axis(name: string): ReadableProxy; -} - -/** - * Represents methods that are not available on a {@link ReadableProxy}. To access these methods the {@link ReadableProxy} must be awaited. - * @public - */ -export declare type OmittedReadableProxyMethods = "value" | "valueList"; - -/** - * Represents a function that consumes the {@link Mod} API. See {@link initialize}. - * @public - */ -export declare type OnLoadCallback = (mod: Mod) => void | Promise; - -/** - * Represents a Page in a Spotfire document. - * @public - */ -export declare interface Page extends PageValues { - /** - * Sets this instance as the active page. - */ - setAsActive(): void; -} - -/** - * Represents the values held by a {@link Page}. - * @public - */ -export declare interface PageValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets a value indicating whether this instance is visible. - */ - visible: boolean; - /** - * Gets the zero-based index in this instance in the page collection in the Spotfire document. - */ - index: number; - /** - * Gets the unique id for this instance. - * The id is stable during the page life cycle, thus it can be used to store as a reference to this page in a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - */ - id: string; -} - -/** - * Represents an object that can be used to create and show a Spotfire popout dialog. - * @public - */ -export declare interface Popout { - /** - * Shows a pop out dialog as specified by the `options` and `controls`. - * @param options - Specifies where and how to show the pop out dialog. - * @param components - A callback that shall produce the array of components that the - * pop out will show. If the pop out is shown with {@link PopoutOptions.autoClose} set to `false` - * this callback will be invoked every time the user has interacted with one of the {@link PopoutComponent}s - * so that the pop out can be re-rendered to show the result of the interaction. - */ - show(options: PopoutOptions, components: () => PopoutSection[]): PopoutDialog; - /** - * Creates a section that contains a heading and components. - * @param options - Specifies the heading and the components. - */ - section(options: PopoutSectionOptions): PopoutSection; - /** - * Gets an object with methods that create {@link PopoutComponent}s. - */ - components: PopoutComponentFactory; -} - -/** - * Represents options describing how to render a button. See {@link PopoutComponentFactory.button}. - * @public - */ -export declare interface PopoutButtonOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display in the button. - */ - text: string; -} - -/** - * Represents options describing how to render a checkbox. See {@link PopoutComponentFactory.checkbox}. - * @public - */ -export declare interface PopoutCheckboxOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display next to the checkbox. - */ - text: string; - /** - * Specifies the tooltip to display. If undefined, no tooltip is shown. - */ - tooltip?: string; - /** - * Specifies whether the checkbox is checked. - */ - checked: boolean; - /** - * Specifies whether the checkbox is enabled. - */ - enabled: boolean; -} - -/** - * Represents a component of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutComponent { - /** - * Gets the type of the control. - */ - type: string; -} - -/** - * Represents the data of an event that occurs when a {@link PopoutComponent} has been changed by the user. - * @public - */ -export declare interface PopoutComponentEvent { - /** - * Gets the name that identifies the component that has been changed. - */ - name: string; - /** - * Gets the value of the component that has been changed. - */ - value?: any; -} - -/** - * Represents an object with methods that create {@link PopoutComponent}s. - * @public - */ -export declare interface PopoutComponentFactory { - /** - * Creates a component that renders as a radio button. - * @param options - Specifies how the radio button shall be rendered. - */ - radioButton(options: PopoutRadioButtonOptions): PopoutComponent; - /** - * Creates a component that renders as a checkbox. - * @param options - Specifies how the checkbox shall be rendered. - */ - checkbox(options: PopoutCheckboxOptions): PopoutComponent; - /** - * Creates a component that renders as a button. - * @param options - Specifies how the button shall be rendered. - */ - button(options: PopoutButtonOptions): PopoutComponent; -} - -/** - * Represents a pop out dialog that is shown by Spotfire. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutDialog { - /** - * Closes the pop out dialog. - */ - close(): void; -} - -/** - * Represents options that specifies where and how a pop out dialog shall be shown. - * @public - */ -export declare interface PopoutOptions { - /** - * Specifies the horizontal pixel coordinate of the anchor point of the pop out dialog. - * - * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. - */ - x: number; - /** - * Specifies the vertical pixel coordinate of the anchor point of the pop out dialog. - * - * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. - */ - y: number; - /** - * Specifies how to position of the popout in relation to the anchor point specified by `x` and `y`. - * - * The alignment value specifies which edge of the pop out that shall be closest to the anchor point. For example, - * to show the pop out below the anchor point, specify `Top`. - */ - alignment?: "Left" | "Right" | "Top" | "Bottom"; - /** - * Specifies whether to automatically close the popout when one of the components in it is clicked. - */ - autoClose: boolean; - /** - * Specifies the callback to invoke when a component in the pop out dialog is changed. - */ - onChange(event: PopoutComponentEvent): void; - /** - * Specifies the callback to invoke when the pop out dialog has been closed. - * This callback is optional and can be left unassigned. - */ - onClosed?(): void; -} - -/** - * Represents options describing how to render a radio button. See {@link PopoutComponentFactory.radioButton}. - * @public - */ -export declare interface PopoutRadioButtonOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display next to the radio button. - */ - text: string; - /** - * Specifies the tooltip to display. If undefined, no tooltip is shown. - */ - tooltip?: string; - /** - * Specifies whether the radio button is checked. - */ - checked: boolean; - /** - * Specifies whether the radio button is enabled. - * @version 1.1 - */ - enabled?: boolean; - /** - * Specifies the value represented by the radio button. - */ - value: any; -} - -/** - * Represents a section of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutSection { - /** - * Specifies the heading of the section - */ - heading?: string; - /** - * Specifies the components in the section - */ - children: PopoutComponent[]; -} - -/** - * Represents a section of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutSectionOptions { - /** - * Specifies the heading of the section - */ - heading?: string; - /** - * Specifies the components in the section - */ - children: PopoutComponent[]; -} - -/** - * Represents an object with methods to show and hide the Spotfire progress indicator. - * @public - */ -export declare interface Progress { - /** - * Shows the progress indicator. - */ - show(): void; - /** - * Hides the progress indicator. - */ - hide(): void; -} - -/** - * Represents a value in the Mod API that can be accessed and/or modified. These values can - * be used when creating an instance of a {@link Reader} via the {@link Mod.createReader} method. - * @public - */ -export declare interface Readable extends Promise { - /** - * Used internally by the Mod api. - */ - readableID: string; - /** - * Used internally by the Mod api. - */ - __futureValue?: T; -} - -/** - * Represents an object that provides access to a node of the specified type. - * It can be used as a {@link Readable} but also acts as a proxy to the node by exposing all its methods. - * Nodes that represent model state in the Spotfire document can thus be modified without first waiting - * and materializing them in the browser. - * - * A full node will be created by using a {@link Reader}. - * @public - */ -export declare type ReadableProxy = Readable & - Omit>, OmittedReadableProxyMethods>; - -/** - * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked - * when one or more of the {@link Readable}s have changed. Choose one of the appropriate methods; - * {@link Reader.once} or {@link Reader.subscribe} that suits the needs of the Mod. - * An instance of the reader is created by calling the {@link Mod.createReader} method. - * @public - */ -export declare interface Reader> { - /** - * Subscribe to changes in the content for the specified readables when the reader was created. - * @example Subscribe to changes in the {@link DataView}. - * - * ``` - * let reader = mod.createReader(mod.visualization.data()); - * reader.subscribe((dataView) => { - * console.log(await dataView.rowCount()); - * }); - * ``` - * - * @param callback - The callback function that is called every time when there is at least one new value to read. - * The callback function will not be called until the previous callback function has returned. - * @param onReadError - Optional callback function that will be called if there are errors reading the readables. - */ - subscribe(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; - /** - * Read the content once for the readables specified when the reader was created. - * Any current subscription for this reader will be cancelled. - * @example Read content of a mod property once. - * - * ``` - * let reader = mod.createReader(mod.property("CreatedBy")); - * reader.once((createdBy) => { - * console.log(await createdBy.value()); - * }); - * ``` - * - * @param callback - The callback function that is called once when there is at least one new value to read. - * @param onReadError - Optional callback function that will be called if there are errors reading the readables. - */ - once(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; - /** - * Checks if any of the readables have a new value available. If this function returns true, - * the callback in the current subscription, or a new call to {@link Reader.once} is guaranteed - * to be invoked. - * The intended use of this method is to cancel rendering of the Mod if there are new values to any of the - * readables specified when the reader was created. - */ - hasExpired(): Promise; -} - -/** - * Represents a {@link Reader} subscription. - * @version 1.1 - * @public - */ -export declare interface ReaderSubscription { - /** - * Immediately cancel the current subscription. - * Neither the callback or the error callback will be invoked afterwards. - */ - cancel(): void; -} - -/** - * Represents contextual information needed when rendering a Mod, either in the UI or as part of an export. - * @public - */ -export declare interface RenderContext { - /** - * Gets a value indicating whether the Mod is interactive. - * - * When this value is false the Mod is not interactive. This occurs during export, for instance to an image or to PDF. - * This property can be used to hide selected controls and to avoid animations when rendering in an export context. - */ - interactive: boolean; - /** - * Gets the image pixel ratio that shall be used when rendering rasterized images and/or using a canvas element. - */ - imagePixelRatio: number; - /** - * Gets a value indicating whether the Spotfire UI is in editing mode. - * - * When this value is true the Spotfire UI displays authoring UI elements, such as axis selectors. - * This property can be used to hide controls not meant for consumers of the analysis. - * @version 1.2 - */ - isEditing: boolean; - /** - * Gets information about the currently used theme. - */ - styling: StylingInfo; - /** - * Signals that the mod is ready to be exported. - * - * If this method is not called, Spotfire will perform export (and preview generation etc.) of the Mod without knowing - * if it has finished rendering. - * - * The default maximum allowed time for a Mod to finish rendering is 20 seconds. - */ - signalRenderComplete(): void; -} - -/** - * Represents the styling information that applies to scales in the Mod Visualization. - * @public - */ -export declare interface ScaleStylingInfo { - /** - * Gets and object describing the font that shall be used in the scales of the Mod Visualization. - */ - font: FontInfo; - /** - * Gets and object describing the styling information for scale lines in the Mod Visualization. - */ - line: LineStylingInfo; - /** - * Gets and object describing the styling information for scale ticks in the Mod Visualization. - */ - tick: TickStylingInfo; -} - -/** - * Represents the size of an area in the UI, for example the size of the browser window in which the Mod - * is rendered. See {@link Mod.windowSize}. - * @public - */ -export declare interface Size { - /** - * Gets the width. - */ - width: number; - /** - * Gets the height. - */ - height: number; -} - -/** - * Represents the Spotfire document and provides access to read and modify parts of it. - * @public - */ -export declare interface SpotfireDocument { - /** - * Provides access to the {@link DataTable}s in the Spotfire document. - */ - tables(): Readable; - /** - * Provides access to the {@link DataTable} with the specified `name` in the Spotfire document. - */ - table(name: string): ReadableProxy; - /** - * Provides access to the `Document Properties` in the Spotfire Document. - */ - properties(): Readable; - /** - * Provides access to the `Document Property` with the specified `name` in the Spotfire Document. - */ - property( - name: string - ): ReadableProxy>; - /** - * Provides access to the {@link Page}s in the Spotfire document. - */ - pages(): Readable; - /** - * Provides access to the active {@link Page} in the Spotfire document. That is, the page that is currently visible. - */ - activePage(): ReadableProxy; - /** - * Sets the specified {@link Page} as the active page. - * @param name - The name/title or id of the page to set as active. - */ - setActivePage(name: string): void; - /** - * Sets the specified index as the active page index. - * @param index - The index of the page to set as active. - */ - setActivePage(index: number): void; - /** - * Sets the specified {@link Page} as the active page. - * @param page - The {@link Page} object to set as active. - */ - setActivePage(page: Page): void; -} - -/** - * Represents the styling (theme) that affects the look and feel of a Mod Visualization. - * @public - */ -export declare interface StylingInfo { - /** - * Gets an object describing the general aspects of the styling, including the font and background color - * to use in the Mod Visualization. - */ - general: GeneralStylingInfo; - /** - * Gets an object describing the styling of the scales in the Mod Visualization. - */ - scales: ScaleStylingInfo; -} - -/** - * Represents the styling information that applies to scale ticks in the Mod Visualization. - * @public - */ -export declare interface TickStylingInfo { - /** - * Gets the stroke to use for scale ticks. This value is valid a CSS color or the value `"none"`. - */ - stroke: string; -} - -/** - * Represents a Time property. The time has no notion of time zone. - * @public - */ -export declare interface Time { - /** The total number of milliseconds since midnight. */ - totalMilliseconds: number; - /** The millisecond part of the instance. */ - milliseconds: number; - /** The total number of seconds since midnight. */ - totalSeconds: number; - /** The second part of the instance. */ - seconds: number; - /** The total number of minutes since midnight. */ - totalMinutes: number; - /** The minute part of the instance. */ - minutes: number; - /** The total number of hours since midnight. */ - hours: number; -} - -/** - * Represents a TimeSpan property. A time span is used to measure the time between two points in time. - * @public - */ -export declare interface TimeSpan { - /** The total number of milliseconds of the instance. */ - totalMilliseconds: number; - /** The millisecond part of the instance. */ - milliseconds: number; - /** The total number of seconds of the instance. */ - totalSeconds: number; - /** The second part of the instance. */ - seconds: number; - /** The total number of minutes of the instance. */ - totalMinutes: number; - /** The minute part of the instance. */ - minutes: number; - /** The total number of hours of the instance. */ - totalHours: number; - /** The hour part of the instance. */ - hours: number; - /** The day part of the instance. */ - days: number; -} - -/** - * Represents an object with methods to show and hide a Spotfire tooltip. - * @public - */ -export declare interface Tooltip { - /** - * Shows a tooltip with the specified `content` text. - * - * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. - * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. - * - * Subsequent calls to `show`can be made to update the tooltip text. - * @param content - The text to show in the tooltip. - */ - show(content: string): void; - /** - * Hides the tooltip that is currently being showed, if any. - */ - hide(): void; -} - -export {}; diff --git a/examples/js-dev-starter-ie11/spotfire/spotfire-api-1-2.d.ts b/examples/js-dev-starter/spotfire/spotfire-api-1-3.d.ts similarity index 97% rename from examples/js-dev-starter-ie11/spotfire/spotfire-api-1-2.d.ts rename to examples/js-dev-starter/spotfire/spotfire-api-1-3.d.ts index 420e4571..6865cd2c 100644 --- a/examples/js-dev-starter-ie11/spotfire/spotfire-api-1-2.d.ts +++ b/examples/js-dev-starter/spotfire/spotfire-api-1-3.d.ts @@ -1,5 +1,5 @@ /* - * Copyright © 2020. TIBCO Software Inc. + * Copyright © 2021. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file. */ @@ -1373,6 +1373,24 @@ export declare interface Reader> { * readables specified when the reader was created. */ hasExpired(): Promise; + /** + * Check whether one or more passed arguments are new since the last time the subscribe loop was called. + * + * @example Check if the data view has changed in the subscribe loop. + * + * ``` + * let reader = mod.createReader(mod.visualization.data(), mod.windowSize()); + * reader.subscribe((dataView, size) => { + * console.log(reader.hasValueChanged(dataView)); + * }); + * ``` + * + * @param value - Value from `subscribe` or `once` arguments. + * @param values - Additional values from `subscribe` or `once` arguments. + * @returns true if any of the values are new, otherwise false. + * @version 1.3 + */ + hasValueChanged(value: UnionFromTupleTypes, ...values: UnionFromTupleTypes[]): boolean; } /** @@ -1594,14 +1612,34 @@ export declare interface Tooltip { * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. * - * Subsequent calls to `show`can be made to update the tooltip text. + * Subsequent calls to `show` can be made to update the tooltip text. * @param content - The text to show in the tooltip. */ show(content: string): void; + /** + * Shows a tooltip for the specified `row` as it has been configured in the properties panel. + * + * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. + * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. + * + * Subsequent calls to `show` can be made to update the tooltip text. + * + * @note For this feature to work, the dataViewDefinition.tooltip.enabled in the mod-manifest.json needs to be set to true. + * + * @param row - The row to show text for in the tooltip. + * @version 1.3 + */ + show(row: DataViewRow): void; /** * Hides the tooltip that is currently being showed, if any. */ hide(): void; } -export {}; +/** + * Extract all possible types in a Tuple type. + * @public + */ +export declare type UnionFromTupleTypes = T[number] | U; + +export { } diff --git a/examples/ts-dev-gauge-googlecharts/spotfire/mod-schema.json b/examples/ts-dev-gauge-googlecharts/spotfire/mod-schema.json index 93565f7a..f25049ed 100644 --- a/examples/ts-dev-gauge-googlecharts/spotfire/mod-schema.json +++ b/examples/ts-dev-gauge-googlecharts/spotfire/mod-schema.json @@ -156,8 +156,8 @@ "type": "string", "title": "Mod API version.", "description": "Specifies the version of the Mod JavaScript API used by the code of this Mod. Set the lowest possible version number that the Mod requires to ensure best possible backward compatibility with older Spotfire systems. Using a newer API version than specified will result in runtime errors, even if the current Spotfire system includes that API.", - "default": "1.0", - "examples": ["1.0"], + "default": "1.3", + "examples": ["1.0", "1.1", "1.2", "1.3"], "pattern": "^(.*)$" }, "name": { @@ -186,9 +186,7 @@ "description": "Only declared external resources will work in the mod. A visualization mod with external resources cannot be exported using the web client.", "items": { "type": "string", - "examples": [ - "https://www.example.com" - ] + "examples": ["https://www.example.com"] } }, "properties": { @@ -343,6 +341,21 @@ } ] } + }, + "tooltip": { + "type": "object", + "title": "Use configurable tooltips", + "description": "Specifies how the Mod uses Spotfire native style configurable tooltips. Added in API version 1.3", + "default": {}, + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + "title": "Enabled", + "default": true, + "description": "Specifies whether to enable configurable tooltips, both in the API and in the properties dialog." + } + } } } }, @@ -375,11 +388,7 @@ "type": "string", "title": "The Items Schema", "default": "", - "examples": [ - "index.html", - "main.css", - "main.js" - ], + "examples": ["index.html", "main.css", "main.js"], "pattern": "^(.*)$" } } diff --git a/examples/ts-dev-gauge-googlecharts/spotfire/spotfire-api-1-2.d.ts b/examples/ts-dev-gauge-googlecharts/spotfire/spotfire-api-1-2.d.ts deleted file mode 100644 index 420e4571..00000000 --- a/examples/ts-dev-gauge-googlecharts/spotfire/spotfire-api-1-2.d.ts +++ /dev/null @@ -1,1607 +0,0 @@ -/* - * Copyright © 2020. TIBCO Software Inc. - * This file is subject to the license terms contained - * in the license file that is distributed with this file. - */ -export as namespace Spotfire; - -/** - * Predicate to determine if a current read operation for {@link DataView.allRows} should be aborted when there is new, non-streaming, data available. If this predicate returns true the {@link DataView.allRows} promise will be rejected and no rows will be returned. - * @public - */ -export declare type AbortPredicate = (currentRowCount: number) => boolean; - -/** - * Represents a property owned by the Spotfire document. - * These can be either document properties, data table properties or data column properties. - * @public - */ -export declare interface AnalysisProperty - extends AnalysisPropertyValue { - /** - * Set the value of this instance. - * @param value - The value to set. - */ - set(value: T | T[] | null): void; -} - -/** - * Represents the data types possible to store in a document, table or column {@link AnalysisProperty}. - * @public - */ -export declare type AnalysisPropertyDataType = string | number | boolean | Date | TimeSpan | Time; - -/** - * Represents the values held by a {@link AnalysisProperty}. - * @public - */ -export declare interface AnalysisPropertyValue { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the value held by this instance. Will throw if the value is a list, i.e. {@link AnalysisPropertyValue.isList} returns true; - */ - value(): T2 | null; - /** - * Gets the value held by this instance. Will throw if the value is not a list, i.e. {@link AnalysisPropertyValue.isList} returns false; - */ - valueList(): T2[]; - /** - * Get the Spotfire internal data type of the property. - */ - dataType: DataType; - /** - * Gets a value indicating whether the property is a list. - */ - isList: boolean; -} - -/** - * Represents an axis of the Mod Visualization. - * @public - */ -export declare interface Axis extends AxisValues { - /** - * Sets the full axis expression to the specified `value`. - */ - setExpression(value: string): void; -} - -/** - * Represents one element of a multi-part axis expression. - * @public - */ -export declare interface AxisPart { - /** - * Gets the expression of this part. - */ - expression: string; - /** - * Gets the display name of this part. - */ - displayName: string; -} - -/** - * Represents the values held by an {@link Axis}. - * @public - */ -export declare interface AxisValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the {@link AxisPart}s that this axis has. The parts are derived from the current {@link AxisValues.expression}. - */ - parts: AxisPart[]; - /** - * Gets the full expression of this instance, including multi-part delimiters and - * surrounding "\<\>" brackets if the axis is in categorical mode. - */ - expression: string; - /** - * Gets a value indicating whether the axis is categorical or continuous. - */ - isCategorical: boolean; -} - -/** - * Represents a data column in a Spotfire data table. - * @public - */ -export declare interface Column extends ColumnValues { - /** - * Provides access to the properties of this instance. See {@link AnalysisProperty}. - */ - properties(): Readable; - /** - * Provides access to the {@link AnalysisProperty} with the specified `name`. - */ - property(name: string): Readable; -} - -/** - * Represents the values held by a {@link Column}. - * @public - */ -export declare interface ColumnValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the data type of this instance. - */ - dataType: DataType; -} - -/** - * Represents an object with methods to show a context menu. - * @public - */ -export declare interface ContextMenu { - /** - * Shows a context menu with the specified `items`. The context menu closes when the user clicks one of the - * items or outside the context menu. - * @param x - The horizontal pixel coordinate where to show the context menu. - * @param y - The vertical pixel coordinate where to show the context menu. - * @param items - Defines the content of the context menu. - * @returns A Promise that, when resolved, provides the {@link ContextMenuItem} that was clicked by the user, - * or `undefined` if the user clicked outside the context menu. - */ - show(x: number, y: number, items: ContextMenuItem[]): Promise; -} - -/** - * Represents an item in a context menu shown by calling {@link ContextMenu.show}. - * @public - */ -export declare interface ContextMenuItem { - /** - * Specifies the text to show in this item. - */ - text: string; - /** - * Specifies whether this item is enabled. - */ - enabled: boolean; - /** - * Specifies the tooltip to show for this item. If not defined, no tooltip will be shown when hovering the this item. - */ - tooltip?: string; - /** - * Specifies a value indicating whether this item is checked. If not defined, this item will not be rendered in a checked state. - */ - checked?: boolean; -} - -/** - * Provides access points to launch Spotfire controls and UI component relevant for a Mod Visualization. - * @public - */ -export declare interface Controls { - /** - * Gets an object with methods to show a context menu. - */ - contextMenu: ContextMenu; - /** - * Gets an object with methods to show and hide a Spotfire tooltip. - */ - tooltip: Tooltip; - /** - * Gets an object with methods to show and hide the Spotfire progress indicator. - */ - progress: Progress; - /** - * Gets an object that can be used to create and show a Spotfire popout dialog. - */ - popout: Popout; - /** - * Gets an object that can be used to show an error overlay native Spotfire style. - */ - errorOverlay: ErrorOverlay; -} - -/** - * Represents a data table in the Spotfire document. - * @public - */ -export declare interface DataTable extends DataTableValues { - /** - * Provides access to the columns of this instance. See {@link Column}. - */ - columns(): Readable; - /** - * Provides access to the {@link Column} with the specified `name`. - */ - column(name: string): ReadableProxy; - /** - * Provides access to the properties of this instance. See {@link AnalysisProperty}. - */ - properties(): Readable; - /** - * Provides access to the {@link AnalysisProperty} with the specified `name`. - */ - property(name: string): Readable; -} - -/** - * Represents the values held by a {@link DataTable}. - * @public - */ -export declare interface DataTableValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the number of columns in this instance. - */ - columnCount: number; - /** - * Gets the unique id for this instance. - * The id is stable during the data table life cycle, thus it can be used to store as a reference to this data table in a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - */ - id: string; -} - -/** - * Represents the data type of a value. - * @public - */ -export declare interface DataType { - /** - * Gets the name of this DataType. - */ - name: - | "String" - | "Integer" - | "LongInteger" - | "Real" - | "SingleReal" - | "Currency" - | "Boolean" - | "Date" - | "DateTime" - | "Time" - | "TimeSpan" - | "Binary"; - /** - * Gets a value indicating whether the data type is numeric or not, that is, - * Integer, Currency, Real, LongInteger, or SingleReal. - */ - isNumber(): boolean; - /** - * Gets a value indicating whether the data type is represents by Date or not, that is, Date, or DateTime. - */ - isDate(): boolean; - /** - * Gets a value indicating whether the data type is represents by {@link Time} or not. - */ - isTime(): boolean; - /** - * Gets a value indicating whether the data type is represents by {@link TimeSpan} or not. - */ - isTimeSpan(): boolean; -} - -/** - * Represents a view of the data from which the visualization can be rendered. - * - * This object contains the result of the query made by Spotfire against the DataTable - * currently used by the Mod Visualization, using the Filtering, Marking, expressions - * on the Axes and other relevant settings. - * @public - */ -export declare interface DataView { - /** - * Mark a set of rows. - * The full set will be the union of all mark operations performed within one transaction (see {@link Mod.transaction}). - * All mark operations must have the same marking operation. - * @param rows - The rows to be selected. - * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. - */ - mark(rows: DataViewRow[], markingOperation?: MarkingOperation): void; - /** - * Clears the current marking - */ - clearMarking(): void; - /** - * Gets the marking information, or null if marking is not enabled. - */ - marking(): Promise; - /** - * Gets a value indicating whether the dataView has expired. - * The dataview has expired when there has been changes to the document, - * for example marking or filtering. - * When true, there will be a new dataview available on the next read. - */ - hasExpired(): Promise; - /** - * Gets any errors generated while creating the dataview. - * Returns empty array if none occurred. - */ - getErrors(): Promise; - /** - * Gets metadata for a specific categorical axis in the {@link DataView}. - * Categorical axes are defined in the manifest file as categorical or dual. - * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.categorical} will throw an error. - * Returns null for axes with empty expressions or for dual mode axes that currently are in continuous mode. - * Throws if the axis does not exist or the axes mode is continuous. - * @param name - The axis name. - */ - categoricalAxis(name: string): Promise; - /** - * Gets metadata for a specific continuous axis in the {@link DataView}. - * Continuous axes are defined in the manifest file as continuous or dual. - * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.continuous} will throw an error. - * Returns null for axes with empty expressions or for dual mode axes that currently are in categorical mode. - * Throws if the axis does not exist or the axes mode is categorical. - * @param name - The axis name. - */ - continuousAxis(name: string): Promise; - /** - * Gets metadata of all axes currently present in the {@link DataView}. - * Axes with empty expression are omitted. - */ - axes(): Promise; - /** - * Gets a hierarchy for a categorical axis. - * - * If the axis has an empty expression the hierarchy will contain one single root node. - * Returns null for dual mode axes that currently are in continuous mode. - * Throws if the axis does not exist or the axes mode is continuous. - * @param name - The name of the axis to get the hierarchy for. - */ - hierarchy(name: string): Promise; - /** - * Gets the total number of rows of the {@link DataView} without actually getting all the rows. Use this function to determine whether or not the mod will be able to handle the amount of data rows. - * When there are errors in the mod configuration there will be no rows available and this method will return undefined. - */ - rowCount(): Promise; - /** - * Gets all rows from the data view as one asynchronous operation. - * The allRows function has a built in cache and can be called multiple times with the same dataView and it will return the same list of rows. - * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. - * The default behavior is that reading will be aborted when new non-streaming update is available. - * @returns null if reading data was aborted, otherwise a {@link DataViewRow}[]. - */ - allRows(abortPredicate?: AbortPredicate): Promise; -} - -/** - * Contains metadata computed for an {@link Axis}. - * @public - */ -export declare interface DataViewAxis { - /** - * Gets the name of this axis. - */ - name: string; - /** - * Gets a value indicating whether this axis is an instance of {@link DataViewContinuousAxis} or {@link DataViewCategoricalAxis} . - */ - isCategorical: boolean; -} - -/** - * Represents metadata computed for a categorical {@link Axis}. - * @public - */ -export declare interface DataViewCategoricalAxis extends DataViewAxis { - /** - * Gets the hierarchy of this axis. - */ - hierarchy: DataViewHierarchy; -} - -/** - * Represents a value of a categorical axis for one row in a data view. - * @public - */ -export declare interface DataViewCategoricalValue { - /** - * Gets an array representing the full path of the value in the hierarchy defined by the axis expression. - * The first element is the top level of the hierarchy and the last element is the leaf level. - */ - value(): DataViewCategoricalValuePathElement[]; - /** - * Gets a formatted string that can be used to display this value. - * This string is built by concatenating the {@link DataViewCategoricalValuePathElement.formattedValue} for each element found in the {@link DataViewCategoricalValue.value} array. - * @param separator - The separator used for concatenation. The default separator is " » ". - */ - formattedValue(separator?: string): string; - /** - * Gets the index among the leaf nodes of the associated {@link DataViewHierarchy} of this {@link DataViewCategoricalAxis}. - * This, for example, can be used to determine the position on a scale where to render the visual element. - */ - leafIndex: number; -} - -/** - * Represents an element in the `path` of a {@link DataViewCategoricalValue}. - * @public - */ -export declare interface DataViewCategoricalValuePathElement { - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; - /** - * Gets a key that uniquely identifies this element. - * - * In many cases this will be the same as {@link DataViewCategoricalValuePathElement.formattedValue} and {@link DataViewCategoricalValuePathElement.value}. - * However there are cases when those values can contain duplicates. For instance when working with cube data, - * or when using formatters and display values. - * - * They key is suitable to be used for identifying objects when implementing rendering transitions. - * - * The key can be null when the corresponding {@link DataViewCategoricalValuePathElement.value} is null. - */ - key: string | null; - /** - * Gets the value of this element, or null if this element represents a missing or invalid data point. - * - * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the {@link DataViewHierarchy} of - * the associated {@link DataViewCategoricalAxis}. - */ - value(): T | null; -} - -/** - * Color information for a {@link DataViewRow}. - * @public - */ -export declare interface DataViewColorInfo { - /** The hex code for the color. */ - hexCode: string; -} - -/** - * Represents metadata computed for continuous {@link Axis}. - * @public - */ -export declare interface DataViewContinuousAxis extends DataViewAxis { - /** - * Gets the data type of the values computed by this axis. - */ - dataType: DataType; -} - -/** - * Represents a value of a continuous axis for one row in a data view. - * @public - */ -export declare interface DataViewContinuousValue { - /** - * Gets the value of this instance. The type depending on the type of the - * expression on the associated {@link DataViewContinuousAxis}. - * - * This method will return `null` when the underlying data value is missing or invalid. - */ - value(): T2 | null; - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; -} - -/** - * Represents a hierarchy for a {@link DataViewCategoricalAxis}. - * @public - */ -export declare interface DataViewHierarchy { - /** - * Gets the name of this hierarchy, the same as the associated {@link DataViewCategoricalAxis}. - */ - name: string; - /** - * Gets a value indicating whether the hierarchy is empty, i.e. the axis expression is empty, or not. - * For convenience, an empty hierarchy will have one single node that may contain all rows in the dataview. - */ - isEmpty: boolean; - /** - * Gets the levels of this hierarchy. The root node has no corresponding level. - */ - levels: DataViewHierarchyLevel[]; - /** - * Gets the total number of leaf nodes in the hierarchy. - */ - leafCount: number; - /** - * Gets the virtual root node of the hierarchy. The level of the root node is -1. Spotfire does not usually render the root node in visualization. - * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. - * The default behavior is that reading will be aborted when new non-streaming update is available. - * @returns null if reading data was aborted, otherwise a {@link DataViewHierarchyNode}. - */ - root(abortPredicate?: AbortPredicate): Promise; -} - -/** - * Represents the levels of a hierarchy. - * @public - */ -export declare interface DataViewHierarchyLevel { - /** - * The name of the hierarchy level, derived from the expression on the {@link Axis}. - */ - name: string; - /** - * Gets the data type of the values in this level of the hierarchy. - */ - dataType: DataType; -} - -/** - * Represents a node in a {@link DataViewHierarchy}. - * @public - */ -export declare interface DataViewHierarchyNode { - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; - /** - * Gets the full path, top down to this node, of the formatted values. The virtual root node is omitted. - * @param separator - The separator. The default separator is " » ". - */ - formattedPath(separator?: string): string; - /** - * Gets the key for this hierarchy node. The key is guaranteed to be unique for the node among its siblings. - * - * In many cases this will be the same as {@link DataViewHierarchyNode.formattedValue} or {@link DataViewHierarchyNode.value}. - * However there are cases when those values can contain duplicates. For instance when working with cube data, - * or when using formatters and display values. - * - * They key is suitable to be used for identifying objects when implementing rendering transitions. - * - * The key can be null when the corresponding {@link DataViewHierarchyNode.value} is null. - */ - key: string | null; - /** - * Gets the value of this node, or null if this node represents a missing or invalid data point. - * - * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the associated {@link DataViewHierarchy}. - */ - value(): T | null; - /** - * Gets the parent of the hierarchy node, or `undefined` for root level nodes. - */ - parent?: DataViewHierarchyNode; - /** - * Gets the children of this node, or `undefined` if this node is a leaf node. - */ - children?: DataViewHierarchyNode[]; - /** - * Computes an array of all leaf nodes in the sub tree of the hierarchy spanned from this node. - */ - leaves(): DataViewHierarchyNode[]; - /** - * Gets the index of the leaf node among all leaf nodes in the hierarchy. This is undefined for non leaf nodes. - */ - leafIndex?: number; - /** - * Marks all {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - * See {@link DataView.mark} for more details. - * @param operation - The marking operation. - */ - mark(operation?: MarkingOperation): void; - /** - * Computes the number of {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - */ - rowCount(): number; - /** - * Computes the number of leaf nodes in the sub tree of the hierarchy spanned from this node. - */ - leafCount(): number; - /** - * Computes the number of marked {@link DataViewRow}s in the sub tree of the hierarchy spanned from this node. - */ - markedRowCount(): number; - /** - * Gets the level in the hierarchy where this node occurs. The root node of the hierarchy tree has level -1. - */ - level: number; - /** - * Computes the {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - */ - rows(): DataViewRow[]; -} - -/** - * Represents an object that provides access to a {@link DataView}. - * @public - */ -export declare type DataViewProxy = DataViewProxyMethods & Readable; - -/** - * Represents the methods available on a {@link DataViewProxy}. - * @public - */ -export declare interface DataViewProxyMethods { - /** - * Clears the current marking - */ - clearMarking(): void; -} - -/** - * Represents a row of data in a {@link DataView}. Each row can be thought of as a data point that the mod visualization renders. - * @public - */ -export declare interface DataViewRow { - /** - * Gets a value indicating whether this row is marked. - */ - isMarked(): boolean; - /** - * Gets a {@link DataViewCategoricalValue} representing the value of the axis with the specified `axisName`. - * This method will throw an error if there is no categorical axis by that name or if the expression is empty. - * Use {@link DataView.categoricalAxis} to check the current existence of a categorical value. - * @param axisName - The name of the axis to get the value for. - */ - categorical(axisName: string): DataViewCategoricalValue; - /** - * Gets a {@link DataViewContinuousValue} representing the value of the axis with the specified `axisName`. - * This method will throw an error if there is no continuous axis by that name or if the expression is empty. - * Use {@link DataView.continuousAxis} to check the current existence of a continuous value. - * @param axisName - The name of the axis to get the value for. - */ - continuous(axisName: string): DataViewContinuousValue; - /** - * Gets the leaf {@link DataViewHierarchyNode} for the specified axis, - * or null for dual mode axes with continuous axis expression. - * This method will throw an error for continuous mode axes - * or if there is no axis by that name. - * @param axisName - The name of the axis - * @version 1.1 - */ - leafNode(axisName: string): DataViewHierarchyNode | null; - /** - * Calculates an element id for this row, suitable for identifying rows between data views. - * When stable identifiers is not used, only rows in immediately following data view are guaranteed to re-use previous id. - * If a row is filtered out in a new data view, this row is thus not guaranteed to yield the same id when it re-appears. - * - * @note A stable element id is only stable in the current session, thus it should not be stored in the document, - * e.g. as a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - * - * @param useStableId - When true, the id will be a (longer) stable id guaranteed to be the same over time. - * @param omitAxisNames - Axis names to omit when creating the identifier. Can be used to group multiple elements split by these axes, for example to create animation effects in one data view. - */ - elementId(useStableId?: boolean, omitAxisNames?: string[]): string; - /** - * Gets the {@link DataViewColorInfo} for the row, if a color axis is defined in the mod manifest. - * The underlying data value can be retrieved by using {@link DataViewRow.categorical}("Color") or {@link DataViewRow.continuous}("Color"), depending on the mode of the color axis. - */ - color(): DataViewColorInfo; - /** - * Performs the specified marking operation in the current marking. - * - * **Note** All mark operations within one {@link Mod.transaction} must have the same {@link MarkingOperation}. - * - * See {@link DataView.mark} for more details. - * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. - */ - mark(operation?: MarkingOperation): void; -} - -/** - * Represents the type of a {@link DataView} value. The actual type that a given value has depends on the - * type of the expression on the associated axis. - * @public - */ -export declare type DataViewValueType = number | string | boolean | Date | Time | TimeSpan; - -/** - * Provides access to show an error overlay covering the entire Mod shown by Spotfire. - * @public - */ -export declare interface ErrorOverlay { - /** - * Show error message. Showing any error message will hide the Mods UI. - * @param messages - The error messages. Each message will be shown in its own paragraph. - * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. - */ - show(messages: string[], category?: string): void; - /** - * Show error message. Showing any error message will hide the Mods UI. - * @param messages - The error message. - * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. - */ - show(message: string, category?: string): void; - /** - * Clear the error message. If no other error messages are currently visible the Mods UI will be shown. - * @param category - Optional error categorization. - */ - hide(category?: string): void; -} - -/** - * From readableArray, an array of Readable of some value type, extract an array of this value type. - * @public - */ -export declare type ExtractValueType>> = { - [readableName in keyof readableArray]: readableArray[readableName] extends Readable - ? readableNameType - : never; -}; - -/** - * Represents information about a font that is used in the Mod Visualization. - * @public - */ -export declare interface FontInfo { - /** - * Gets the value to use for the `font-family` CSS property. - */ - fontFamily: string; - /** - * Gets the font size in pixels. - */ - fontSize: number; - /** - * Gets the value to use for the `font-style` CSS property. - */ - fontStyle: string; - /** - * Gets the value to use for the `font-weight` CSS property. - */ - fontWeight: string; - /** - * Gets the value to use for the `color` CSS property. - */ - color: string; -} - -/** - * Represents the general styling information that applies to the Mod Visualization. - * @public - */ -export declare interface GeneralStylingInfo { - /** - * Gets and object describing the font that shall be used by the Mod Visualization. - */ - font: FontInfo; - /** - * Gets the value to use for the `background-color` CSS property of the Mod Visualization. - */ - backgroundColor: string; -} - -/** - * Initializes the Mod API. The specified `onLoaded` callback is called when the initialization is complete. - * @example - * ``` - * Spotfire.initialize(async (mod) => { - * console.log("Mod API loaded."); - * }); - * ``` - * The initialize method will invoke the provided callback with an instance of the mod API, to be used by the mod developer. - * - * The initialize method needs to be invoked in order for the mod to function. Even if the mod only displays static content, the API must be initialized in order for events and export to work. - * @public - * @param onLoaded - Callback that is called when the mod API is initialized and ready to be interacted with. - */ -export declare function initialize(onLoaded: OnLoadCallback): void; - -/** - * Represents the styling information that applies to scale lines in the Mod Visualization. - * @public - */ -export declare interface LineStylingInfo { - /** - * Gets the stroke to use for scale lines. This value is valid a CSS color or the value `"none"`. - */ - stroke: string; -} - -/** - * Marking information for a {@link DataView}. - * @public - */ -export declare interface MarkingInfo { - /** The hex code for the marking. Note that when the mod has a defined color axis, the color should be retrieved via the {@link DataViewRow.color} method. */ - colorHexCode: string; - /** The name of the marking. */ - name: string; -} - -/** - * Specifies how a Marking shall be modified. - *
- * - "Replace" - replaces the current marking.
- * - "Add" - adds to the current marking.
- * - "Subtract" - removes the current marking.
- * - "Toggle" - toggles marking on each item in the set.
- * - "Intersect" - marks the intersection of the current marking and the specified set.
- * - "ToggleOrAdd" - will behave like toggle if all or no rows in the set are marked, otherwise it is an add operation. This is the default Spotfire behavior for control marking.
- * 
- * @public - */ -export declare type MarkingOperation = "Replace" | "Add" | "Subtract" | "Toggle" | "Intersect" | "ToggleOrAdd"; - -/** - * Extract from T the keys of all properties with function values. - * @public - */ -export declare type MethodKeys = { - [P in keyof T]: T[P] extends Function ? P : never; -}[keyof T]; - -/** - * Represents the entire Mod API and exposes methods for interacting with and reading data from - * the Mod Visualization and the Spotfire document. - * - * Reading content from the Mod is made by using either of the methods {@link Reader.subscribe} or {@link Reader.once} on an instance of a {@link Reader}. - * @public - */ -export declare interface Mod { - /** - * Gets an object that provides access to Spotfire document. - */ - document: SpotfireDocument; - /** - * Gets an object representing the content in the Mod Visualization and provides methods to read and/or modified it. - */ - visualization: ModVisualization; - /** - * Provides access to the {@link ModProperty} with the specified `name`. - */ - property(name: string): ReadableProxy>; - /** - * Provides read-only access to the current size of the browser window in which the Mod - * is rendered. That is, the size of the iframe created for the Mod in the Spotfire UI. - */ - windowSize(): Readable; - /** - * Creates a {@link Reader} that can be used to access content specified by the {@link Readable} parameters. - * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked - * when one or more of the {@link Readable}s have changed. - * @param readables - The {@link Readable}s that will be available in the reader. - */ - createReader>(...readables: T): Reader>; - /** - * Gets an object that allows showing Spotfire controls and other UI component, like context menus, tooltips, etc. - */ - controls: Controls; - /** - * Performs a set of synchronous modifications in an explicit transaction to the Spotfire document. - * - * Use of this method is only needed to make sure that a set of modifications are done as one transaction, thereby resulting in one undo step. - * Modifications done outside of a transaction action callback will be grouped together in an implicit transaction. - * - * @param action - callback with a set of modifications - * @param onComplete - optional callback that is called when the transaction is committed or rolled back. When there is an error argument in the callback the transaction was rolled back. - * @example - * ``` - * mod.transaction(() => { - * mod.property("X").set("new value for X"); - * mod.property("Y").set("new value for Y"); - * }, - * (error) => { - * if (error) { - * // Show error message. - * } - * else { - * // Handle success, e.g. re-enable action button. - * } - * }); - * ``` - */ - transaction(action: () => void, onComplete?: (error?: string) => void): void; - /** - * Get the Mod's render context. This function should be invoked as soon as possible in the {@link initialize} callback. - * - * If this method is called in the {@link initialize} callback, Spotfire will wait for the Mod to finish rendering during - * an export. The export will be made once the {@link RenderContext.signalRenderComplete} method has been called. - * - * If this method is not called in the {@link initialize} callback, Spotfire will _not_ wait for the Mod to finish rendering during - * an export. Instead, the Mod will be automatically exported after one second. - */ - getRenderContext(): RenderContext; - /** - * Get mod metadata - name, id, version, etc. - */ - metadata: ModMetadata; -} - -/** - * Represents that metadata of the Mod Visualization, as defined in the mod-manifest-json. - * @public - */ -export declare interface ModMetadata { - /** - * Gets the id of the Mod Visualization, as defined in the mod-manifest-json. - */ - id: string; - /** - * Gets the name of the Mod Visualization, as defined in the mod-manifest-json. - */ - name: string; - /** - * Gets the version of the Mod Visualization, as defined in the mod-manifest-json. - */ - version: string; - /** - * Gets the api version used by the Mod Visualization, as declared in the mod-manifest-json. - */ - apiVersion: string; -} - -/** - * Represents a property owned by the Mod Visualization. - * The Mod manifest defines the properties owned by the Mod Visualization. - * @public - */ -export declare interface ModProperty extends ModPropertyValue { - /** - * Set the value of this instance. - * @param value - The value to set. - */ - set(value: T): void; -} - -/** - * Represents the data types possible to store in a mod {@link ModProperty}. - * @public - */ -export declare type ModPropertyDataType = string | number | boolean; - -/** - * Represents the values held by a {@link ModProperty}. - * @public - */ -export declare interface ModPropertyValue { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the value held by this instance; - */ - value(): T2 | null; -} - -/** - * Represents the content in the Mod Visualization that can be read and/or modified. - * - * The content is a combination of state stored by the Mod Visualization in the Spotfire document, - * its view of the data and relevant UI properties. All values are {@link Readable} objects and are - * typically accessed using the {@link Reader} object. - * - * @public - */ -export declare interface ModVisualization { - /** - * Provides access to the {@link DataView} that the Mod Visualization is to render. - */ - data(): DataViewProxy; - /** - * Provides access to the {@link DataTable} in the Spotfire document that the Mod Visualization - * uses as its main table. - */ - mainTable(): ReadableProxy; - /** - * Sets the main {@link DataTable} in the Mod visualization. - * @param tableName - The name or id of the {@link DataTable} to be used as main table. - */ - setMainTable(tableName: string): void; - /** - * Sets the main {@link DataTable} in the Mod visualization. - * @param table - The {@link DataTable} object to be used as main table. - */ - setMainTable(table: DataTable): void; - /** - * Provides access to the {@link Axis} in the Mod Visualization with the specified `name`. All axes - * must be declared in the mod-manifest.json. - * @param name - The name of the {@link Axis}. - */ - axis(name: string): ReadableProxy; -} - -/** - * Represents methods that are not available on a {@link ReadableProxy}. To access these methods the {@link ReadableProxy} must be awaited. - * @public - */ -export declare type OmittedReadableProxyMethods = "value" | "valueList"; - -/** - * Represents a function that consumes the {@link Mod} API. See {@link initialize}. - * @public - */ -export declare type OnLoadCallback = (mod: Mod) => void | Promise; - -/** - * Represents a Page in a Spotfire document. - * @public - */ -export declare interface Page extends PageValues { - /** - * Sets this instance as the active page. - */ - setAsActive(): void; -} - -/** - * Represents the values held by a {@link Page}. - * @public - */ -export declare interface PageValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets a value indicating whether this instance is visible. - */ - visible: boolean; - /** - * Gets the zero-based index in this instance in the page collection in the Spotfire document. - */ - index: number; - /** - * Gets the unique id for this instance. - * The id is stable during the page life cycle, thus it can be used to store as a reference to this page in a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - */ - id: string; -} - -/** - * Represents an object that can be used to create and show a Spotfire popout dialog. - * @public - */ -export declare interface Popout { - /** - * Shows a pop out dialog as specified by the `options` and `controls`. - * @param options - Specifies where and how to show the pop out dialog. - * @param components - A callback that shall produce the array of components that the - * pop out will show. If the pop out is shown with {@link PopoutOptions.autoClose} set to `false` - * this callback will be invoked every time the user has interacted with one of the {@link PopoutComponent}s - * so that the pop out can be re-rendered to show the result of the interaction. - */ - show(options: PopoutOptions, components: () => PopoutSection[]): PopoutDialog; - /** - * Creates a section that contains a heading and components. - * @param options - Specifies the heading and the components. - */ - section(options: PopoutSectionOptions): PopoutSection; - /** - * Gets an object with methods that create {@link PopoutComponent}s. - */ - components: PopoutComponentFactory; -} - -/** - * Represents options describing how to render a button. See {@link PopoutComponentFactory.button}. - * @public - */ -export declare interface PopoutButtonOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display in the button. - */ - text: string; -} - -/** - * Represents options describing how to render a checkbox. See {@link PopoutComponentFactory.checkbox}. - * @public - */ -export declare interface PopoutCheckboxOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display next to the checkbox. - */ - text: string; - /** - * Specifies the tooltip to display. If undefined, no tooltip is shown. - */ - tooltip?: string; - /** - * Specifies whether the checkbox is checked. - */ - checked: boolean; - /** - * Specifies whether the checkbox is enabled. - */ - enabled: boolean; -} - -/** - * Represents a component of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutComponent { - /** - * Gets the type of the control. - */ - type: string; -} - -/** - * Represents the data of an event that occurs when a {@link PopoutComponent} has been changed by the user. - * @public - */ -export declare interface PopoutComponentEvent { - /** - * Gets the name that identifies the component that has been changed. - */ - name: string; - /** - * Gets the value of the component that has been changed. - */ - value?: any; -} - -/** - * Represents an object with methods that create {@link PopoutComponent}s. - * @public - */ -export declare interface PopoutComponentFactory { - /** - * Creates a component that renders as a radio button. - * @param options - Specifies how the radio button shall be rendered. - */ - radioButton(options: PopoutRadioButtonOptions): PopoutComponent; - /** - * Creates a component that renders as a checkbox. - * @param options - Specifies how the checkbox shall be rendered. - */ - checkbox(options: PopoutCheckboxOptions): PopoutComponent; - /** - * Creates a component that renders as a button. - * @param options - Specifies how the button shall be rendered. - */ - button(options: PopoutButtonOptions): PopoutComponent; -} - -/** - * Represents a pop out dialog that is shown by Spotfire. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutDialog { - /** - * Closes the pop out dialog. - */ - close(): void; -} - -/** - * Represents options that specifies where and how a pop out dialog shall be shown. - * @public - */ -export declare interface PopoutOptions { - /** - * Specifies the horizontal pixel coordinate of the anchor point of the pop out dialog. - * - * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. - */ - x: number; - /** - * Specifies the vertical pixel coordinate of the anchor point of the pop out dialog. - * - * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. - */ - y: number; - /** - * Specifies how to position of the popout in relation to the anchor point specified by `x` and `y`. - * - * The alignment value specifies which edge of the pop out that shall be closest to the anchor point. For example, - * to show the pop out below the anchor point, specify `Top`. - */ - alignment?: "Left" | "Right" | "Top" | "Bottom"; - /** - * Specifies whether to automatically close the popout when one of the components in it is clicked. - */ - autoClose: boolean; - /** - * Specifies the callback to invoke when a component in the pop out dialog is changed. - */ - onChange(event: PopoutComponentEvent): void; - /** - * Specifies the callback to invoke when the pop out dialog has been closed. - * This callback is optional and can be left unassigned. - */ - onClosed?(): void; -} - -/** - * Represents options describing how to render a radio button. See {@link PopoutComponentFactory.radioButton}. - * @public - */ -export declare interface PopoutRadioButtonOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display next to the radio button. - */ - text: string; - /** - * Specifies the tooltip to display. If undefined, no tooltip is shown. - */ - tooltip?: string; - /** - * Specifies whether the radio button is checked. - */ - checked: boolean; - /** - * Specifies whether the radio button is enabled. - * @version 1.1 - */ - enabled?: boolean; - /** - * Specifies the value represented by the radio button. - */ - value: any; -} - -/** - * Represents a section of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutSection { - /** - * Specifies the heading of the section - */ - heading?: string; - /** - * Specifies the components in the section - */ - children: PopoutComponent[]; -} - -/** - * Represents a section of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutSectionOptions { - /** - * Specifies the heading of the section - */ - heading?: string; - /** - * Specifies the components in the section - */ - children: PopoutComponent[]; -} - -/** - * Represents an object with methods to show and hide the Spotfire progress indicator. - * @public - */ -export declare interface Progress { - /** - * Shows the progress indicator. - */ - show(): void; - /** - * Hides the progress indicator. - */ - hide(): void; -} - -/** - * Represents a value in the Mod API that can be accessed and/or modified. These values can - * be used when creating an instance of a {@link Reader} via the {@link Mod.createReader} method. - * @public - */ -export declare interface Readable extends Promise { - /** - * Used internally by the Mod api. - */ - readableID: string; - /** - * Used internally by the Mod api. - */ - __futureValue?: T; -} - -/** - * Represents an object that provides access to a node of the specified type. - * It can be used as a {@link Readable} but also acts as a proxy to the node by exposing all its methods. - * Nodes that represent model state in the Spotfire document can thus be modified without first waiting - * and materializing them in the browser. - * - * A full node will be created by using a {@link Reader}. - * @public - */ -export declare type ReadableProxy = Readable & - Omit>, OmittedReadableProxyMethods>; - -/** - * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked - * when one or more of the {@link Readable}s have changed. Choose one of the appropriate methods; - * {@link Reader.once} or {@link Reader.subscribe} that suits the needs of the Mod. - * An instance of the reader is created by calling the {@link Mod.createReader} method. - * @public - */ -export declare interface Reader> { - /** - * Subscribe to changes in the content for the specified readables when the reader was created. - * @example Subscribe to changes in the {@link DataView}. - * - * ``` - * let reader = mod.createReader(mod.visualization.data()); - * reader.subscribe((dataView) => { - * console.log(await dataView.rowCount()); - * }); - * ``` - * - * @param callback - The callback function that is called every time when there is at least one new value to read. - * The callback function will not be called until the previous callback function has returned. - * @param onReadError - Optional callback function that will be called if there are errors reading the readables. - */ - subscribe(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; - /** - * Read the content once for the readables specified when the reader was created. - * Any current subscription for this reader will be cancelled. - * @example Read content of a mod property once. - * - * ``` - * let reader = mod.createReader(mod.property("CreatedBy")); - * reader.once((createdBy) => { - * console.log(await createdBy.value()); - * }); - * ``` - * - * @param callback - The callback function that is called once when there is at least one new value to read. - * @param onReadError - Optional callback function that will be called if there are errors reading the readables. - */ - once(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; - /** - * Checks if any of the readables have a new value available. If this function returns true, - * the callback in the current subscription, or a new call to {@link Reader.once} is guaranteed - * to be invoked. - * The intended use of this method is to cancel rendering of the Mod if there are new values to any of the - * readables specified when the reader was created. - */ - hasExpired(): Promise; -} - -/** - * Represents a {@link Reader} subscription. - * @version 1.1 - * @public - */ -export declare interface ReaderSubscription { - /** - * Immediately cancel the current subscription. - * Neither the callback or the error callback will be invoked afterwards. - */ - cancel(): void; -} - -/** - * Represents contextual information needed when rendering a Mod, either in the UI or as part of an export. - * @public - */ -export declare interface RenderContext { - /** - * Gets a value indicating whether the Mod is interactive. - * - * When this value is false the Mod is not interactive. This occurs during export, for instance to an image or to PDF. - * This property can be used to hide selected controls and to avoid animations when rendering in an export context. - */ - interactive: boolean; - /** - * Gets the image pixel ratio that shall be used when rendering rasterized images and/or using a canvas element. - */ - imagePixelRatio: number; - /** - * Gets a value indicating whether the Spotfire UI is in editing mode. - * - * When this value is true the Spotfire UI displays authoring UI elements, such as axis selectors. - * This property can be used to hide controls not meant for consumers of the analysis. - * @version 1.2 - */ - isEditing: boolean; - /** - * Gets information about the currently used theme. - */ - styling: StylingInfo; - /** - * Signals that the mod is ready to be exported. - * - * If this method is not called, Spotfire will perform export (and preview generation etc.) of the Mod without knowing - * if it has finished rendering. - * - * The default maximum allowed time for a Mod to finish rendering is 20 seconds. - */ - signalRenderComplete(): void; -} - -/** - * Represents the styling information that applies to scales in the Mod Visualization. - * @public - */ -export declare interface ScaleStylingInfo { - /** - * Gets and object describing the font that shall be used in the scales of the Mod Visualization. - */ - font: FontInfo; - /** - * Gets and object describing the styling information for scale lines in the Mod Visualization. - */ - line: LineStylingInfo; - /** - * Gets and object describing the styling information for scale ticks in the Mod Visualization. - */ - tick: TickStylingInfo; -} - -/** - * Represents the size of an area in the UI, for example the size of the browser window in which the Mod - * is rendered. See {@link Mod.windowSize}. - * @public - */ -export declare interface Size { - /** - * Gets the width. - */ - width: number; - /** - * Gets the height. - */ - height: number; -} - -/** - * Represents the Spotfire document and provides access to read and modify parts of it. - * @public - */ -export declare interface SpotfireDocument { - /** - * Provides access to the {@link DataTable}s in the Spotfire document. - */ - tables(): Readable; - /** - * Provides access to the {@link DataTable} with the specified `name` in the Spotfire document. - */ - table(name: string): ReadableProxy; - /** - * Provides access to the `Document Properties` in the Spotfire Document. - */ - properties(): Readable; - /** - * Provides access to the `Document Property` with the specified `name` in the Spotfire Document. - */ - property( - name: string - ): ReadableProxy>; - /** - * Provides access to the {@link Page}s in the Spotfire document. - */ - pages(): Readable; - /** - * Provides access to the active {@link Page} in the Spotfire document. That is, the page that is currently visible. - */ - activePage(): ReadableProxy; - /** - * Sets the specified {@link Page} as the active page. - * @param name - The name/title or id of the page to set as active. - */ - setActivePage(name: string): void; - /** - * Sets the specified index as the active page index. - * @param index - The index of the page to set as active. - */ - setActivePage(index: number): void; - /** - * Sets the specified {@link Page} as the active page. - * @param page - The {@link Page} object to set as active. - */ - setActivePage(page: Page): void; -} - -/** - * Represents the styling (theme) that affects the look and feel of a Mod Visualization. - * @public - */ -export declare interface StylingInfo { - /** - * Gets an object describing the general aspects of the styling, including the font and background color - * to use in the Mod Visualization. - */ - general: GeneralStylingInfo; - /** - * Gets an object describing the styling of the scales in the Mod Visualization. - */ - scales: ScaleStylingInfo; -} - -/** - * Represents the styling information that applies to scale ticks in the Mod Visualization. - * @public - */ -export declare interface TickStylingInfo { - /** - * Gets the stroke to use for scale ticks. This value is valid a CSS color or the value `"none"`. - */ - stroke: string; -} - -/** - * Represents a Time property. The time has no notion of time zone. - * @public - */ -export declare interface Time { - /** The total number of milliseconds since midnight. */ - totalMilliseconds: number; - /** The millisecond part of the instance. */ - milliseconds: number; - /** The total number of seconds since midnight. */ - totalSeconds: number; - /** The second part of the instance. */ - seconds: number; - /** The total number of minutes since midnight. */ - totalMinutes: number; - /** The minute part of the instance. */ - minutes: number; - /** The total number of hours since midnight. */ - hours: number; -} - -/** - * Represents a TimeSpan property. A time span is used to measure the time between two points in time. - * @public - */ -export declare interface TimeSpan { - /** The total number of milliseconds of the instance. */ - totalMilliseconds: number; - /** The millisecond part of the instance. */ - milliseconds: number; - /** The total number of seconds of the instance. */ - totalSeconds: number; - /** The second part of the instance. */ - seconds: number; - /** The total number of minutes of the instance. */ - totalMinutes: number; - /** The minute part of the instance. */ - minutes: number; - /** The total number of hours of the instance. */ - totalHours: number; - /** The hour part of the instance. */ - hours: number; - /** The day part of the instance. */ - days: number; -} - -/** - * Represents an object with methods to show and hide a Spotfire tooltip. - * @public - */ -export declare interface Tooltip { - /** - * Shows a tooltip with the specified `content` text. - * - * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. - * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. - * - * Subsequent calls to `show`can be made to update the tooltip text. - * @param content - The text to show in the tooltip. - */ - show(content: string): void; - /** - * Hides the tooltip that is currently being showed, if any. - */ - hide(): void; -} - -export {}; diff --git a/examples/ts-dev-gauge-googlecharts/spotfire/spotfire-api-1-3.d.ts b/examples/ts-dev-gauge-googlecharts/spotfire/spotfire-api-1-3.d.ts new file mode 100644 index 00000000..6865cd2c --- /dev/null +++ b/examples/ts-dev-gauge-googlecharts/spotfire/spotfire-api-1-3.d.ts @@ -0,0 +1,1645 @@ +/* + * Copyright © 2021. TIBCO Software Inc. + * This file is subject to the license terms contained + * in the license file that is distributed with this file. + */ +export as namespace Spotfire; + +/** + * Predicate to determine if a current read operation for {@link DataView.allRows} should be aborted when there is new, non-streaming, data available. If this predicate returns true the {@link DataView.allRows} promise will be rejected and no rows will be returned. + * @public + */ +export declare type AbortPredicate = (currentRowCount: number) => boolean; + +/** + * Represents a property owned by the Spotfire document. + * These can be either document properties, data table properties or data column properties. + * @public + */ +export declare interface AnalysisProperty + extends AnalysisPropertyValue { + /** + * Set the value of this instance. + * @param value - The value to set. + */ + set(value: T | T[] | null): void; +} + +/** + * Represents the data types possible to store in a document, table or column {@link AnalysisProperty}. + * @public + */ +export declare type AnalysisPropertyDataType = string | number | boolean | Date | TimeSpan | Time; + +/** + * Represents the values held by a {@link AnalysisProperty}. + * @public + */ +export declare interface AnalysisPropertyValue { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the value held by this instance. Will throw if the value is a list, i.e. {@link AnalysisPropertyValue.isList} returns true; + */ + value(): T2 | null; + /** + * Gets the value held by this instance. Will throw if the value is not a list, i.e. {@link AnalysisPropertyValue.isList} returns false; + */ + valueList(): T2[]; + /** + * Get the Spotfire internal data type of the property. + */ + dataType: DataType; + /** + * Gets a value indicating whether the property is a list. + */ + isList: boolean; +} + +/** + * Represents an axis of the Mod Visualization. + * @public + */ +export declare interface Axis extends AxisValues { + /** + * Sets the full axis expression to the specified `value`. + */ + setExpression(value: string): void; +} + +/** + * Represents one element of a multi-part axis expression. + * @public + */ +export declare interface AxisPart { + /** + * Gets the expression of this part. + */ + expression: string; + /** + * Gets the display name of this part. + */ + displayName: string; +} + +/** + * Represents the values held by an {@link Axis}. + * @public + */ +export declare interface AxisValues { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the {@link AxisPart}s that this axis has. The parts are derived from the current {@link AxisValues.expression}. + */ + parts: AxisPart[]; + /** + * Gets the full expression of this instance, including multi-part delimiters and + * surrounding "\<\>" brackets if the axis is in categorical mode. + */ + expression: string; + /** + * Gets a value indicating whether the axis is categorical or continuous. + */ + isCategorical: boolean; +} + +/** + * Represents a data column in a Spotfire data table. + * @public + */ +export declare interface Column extends ColumnValues { + /** + * Provides access to the properties of this instance. See {@link AnalysisProperty}. + */ + properties(): Readable; + /** + * Provides access to the {@link AnalysisProperty} with the specified `name`. + */ + property(name: string): Readable; +} + +/** + * Represents the values held by a {@link Column}. + * @public + */ +export declare interface ColumnValues { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the data type of this instance. + */ + dataType: DataType; +} + +/** + * Represents an object with methods to show a context menu. + * @public + */ +export declare interface ContextMenu { + /** + * Shows a context menu with the specified `items`. The context menu closes when the user clicks one of the + * items or outside the context menu. + * @param x - The horizontal pixel coordinate where to show the context menu. + * @param y - The vertical pixel coordinate where to show the context menu. + * @param items - Defines the content of the context menu. + * @returns A Promise that, when resolved, provides the {@link ContextMenuItem} that was clicked by the user, + * or `undefined` if the user clicked outside the context menu. + */ + show(x: number, y: number, items: ContextMenuItem[]): Promise; +} + +/** + * Represents an item in a context menu shown by calling {@link ContextMenu.show}. + * @public + */ +export declare interface ContextMenuItem { + /** + * Specifies the text to show in this item. + */ + text: string; + /** + * Specifies whether this item is enabled. + */ + enabled: boolean; + /** + * Specifies the tooltip to show for this item. If not defined, no tooltip will be shown when hovering the this item. + */ + tooltip?: string; + /** + * Specifies a value indicating whether this item is checked. If not defined, this item will not be rendered in a checked state. + */ + checked?: boolean; +} + +/** + * Provides access points to launch Spotfire controls and UI component relevant for a Mod Visualization. + * @public + */ +export declare interface Controls { + /** + * Gets an object with methods to show a context menu. + */ + contextMenu: ContextMenu; + /** + * Gets an object with methods to show and hide a Spotfire tooltip. + */ + tooltip: Tooltip; + /** + * Gets an object with methods to show and hide the Spotfire progress indicator. + */ + progress: Progress; + /** + * Gets an object that can be used to create and show a Spotfire popout dialog. + */ + popout: Popout; + /** + * Gets an object that can be used to show an error overlay native Spotfire style. + */ + errorOverlay: ErrorOverlay; +} + +/** + * Represents a data table in the Spotfire document. + * @public + */ +export declare interface DataTable extends DataTableValues { + /** + * Provides access to the columns of this instance. See {@link Column}. + */ + columns(): Readable; + /** + * Provides access to the {@link Column} with the specified `name`. + */ + column(name: string): ReadableProxy; + /** + * Provides access to the properties of this instance. See {@link AnalysisProperty}. + */ + properties(): Readable; + /** + * Provides access to the {@link AnalysisProperty} with the specified `name`. + */ + property(name: string): Readable; +} + +/** + * Represents the values held by a {@link DataTable}. + * @public + */ +export declare interface DataTableValues { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the number of columns in this instance. + */ + columnCount: number; + /** + * Gets the unique id for this instance. + * The id is stable during the data table life cycle, thus it can be used to store as a reference to this data table in a {@link ModProperty} or {@link AnalysisProperty}. + * @version 1.1 + */ + id: string; +} + +/** + * Represents the data type of a value. + * @public + */ +export declare interface DataType { + /** + * Gets the name of this DataType. + */ + name: + | "String" + | "Integer" + | "LongInteger" + | "Real" + | "SingleReal" + | "Currency" + | "Boolean" + | "Date" + | "DateTime" + | "Time" + | "TimeSpan" + | "Binary"; + /** + * Gets a value indicating whether the data type is numeric or not, that is, + * Integer, Currency, Real, LongInteger, or SingleReal. + */ + isNumber(): boolean; + /** + * Gets a value indicating whether the data type is represents by Date or not, that is, Date, or DateTime. + */ + isDate(): boolean; + /** + * Gets a value indicating whether the data type is represents by {@link Time} or not. + */ + isTime(): boolean; + /** + * Gets a value indicating whether the data type is represents by {@link TimeSpan} or not. + */ + isTimeSpan(): boolean; +} + +/** + * Represents a view of the data from which the visualization can be rendered. + * + * This object contains the result of the query made by Spotfire against the DataTable + * currently used by the Mod Visualization, using the Filtering, Marking, expressions + * on the Axes and other relevant settings. + * @public + */ +export declare interface DataView { + /** + * Mark a set of rows. + * The full set will be the union of all mark operations performed within one transaction (see {@link Mod.transaction}). + * All mark operations must have the same marking operation. + * @param rows - The rows to be selected. + * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. + */ + mark(rows: DataViewRow[], markingOperation?: MarkingOperation): void; + /** + * Clears the current marking + */ + clearMarking(): void; + /** + * Gets the marking information, or null if marking is not enabled. + */ + marking(): Promise; + /** + * Gets a value indicating whether the dataView has expired. + * The dataview has expired when there has been changes to the document, + * for example marking or filtering. + * When true, there will be a new dataview available on the next read. + */ + hasExpired(): Promise; + /** + * Gets any errors generated while creating the dataview. + * Returns empty array if none occurred. + */ + getErrors(): Promise; + /** + * Gets metadata for a specific categorical axis in the {@link DataView}. + * Categorical axes are defined in the manifest file as categorical or dual. + * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.categorical} will throw an error. + * Returns null for axes with empty expressions or for dual mode axes that currently are in continuous mode. + * Throws if the axis does not exist or the axes mode is continuous. + * @param name - The axis name. + */ + categoricalAxis(name: string): Promise; + /** + * Gets metadata for a specific continuous axis in the {@link DataView}. + * Continuous axes are defined in the manifest file as continuous or dual. + * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.continuous} will throw an error. + * Returns null for axes with empty expressions or for dual mode axes that currently are in categorical mode. + * Throws if the axis does not exist or the axes mode is categorical. + * @param name - The axis name. + */ + continuousAxis(name: string): Promise; + /** + * Gets metadata of all axes currently present in the {@link DataView}. + * Axes with empty expression are omitted. + */ + axes(): Promise; + /** + * Gets a hierarchy for a categorical axis. + * + * If the axis has an empty expression the hierarchy will contain one single root node. + * Returns null for dual mode axes that currently are in continuous mode. + * Throws if the axis does not exist or the axes mode is continuous. + * @param name - The name of the axis to get the hierarchy for. + */ + hierarchy(name: string): Promise; + /** + * Gets the total number of rows of the {@link DataView} without actually getting all the rows. Use this function to determine whether or not the mod will be able to handle the amount of data rows. + * When there are errors in the mod configuration there will be no rows available and this method will return undefined. + */ + rowCount(): Promise; + /** + * Gets all rows from the data view as one asynchronous operation. + * The allRows function has a built in cache and can be called multiple times with the same dataView and it will return the same list of rows. + * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. + * The default behavior is that reading will be aborted when new non-streaming update is available. + * @returns null if reading data was aborted, otherwise a {@link DataViewRow}[]. + */ + allRows(abortPredicate?: AbortPredicate): Promise; +} + +/** + * Contains metadata computed for an {@link Axis}. + * @public + */ +export declare interface DataViewAxis { + /** + * Gets the name of this axis. + */ + name: string; + /** + * Gets a value indicating whether this axis is an instance of {@link DataViewContinuousAxis} or {@link DataViewCategoricalAxis} . + */ + isCategorical: boolean; +} + +/** + * Represents metadata computed for a categorical {@link Axis}. + * @public + */ +export declare interface DataViewCategoricalAxis extends DataViewAxis { + /** + * Gets the hierarchy of this axis. + */ + hierarchy: DataViewHierarchy; +} + +/** + * Represents a value of a categorical axis for one row in a data view. + * @public + */ +export declare interface DataViewCategoricalValue { + /** + * Gets an array representing the full path of the value in the hierarchy defined by the axis expression. + * The first element is the top level of the hierarchy and the last element is the leaf level. + */ + value(): DataViewCategoricalValuePathElement[]; + /** + * Gets a formatted string that can be used to display this value. + * This string is built by concatenating the {@link DataViewCategoricalValuePathElement.formattedValue} for each element found in the {@link DataViewCategoricalValue.value} array. + * @param separator - The separator used for concatenation. The default separator is " » ". + */ + formattedValue(separator?: string): string; + /** + * Gets the index among the leaf nodes of the associated {@link DataViewHierarchy} of this {@link DataViewCategoricalAxis}. + * This, for example, can be used to determine the position on a scale where to render the visual element. + */ + leafIndex: number; +} + +/** + * Represents an element in the `path` of a {@link DataViewCategoricalValue}. + * @public + */ +export declare interface DataViewCategoricalValuePathElement { + /** + * Gets a formatted string that can be used to display this value. + * The formatting settings in Spotfire are used to create this string. + */ + formattedValue(): string; + /** + * Gets a key that uniquely identifies this element. + * + * In many cases this will be the same as {@link DataViewCategoricalValuePathElement.formattedValue} and {@link DataViewCategoricalValuePathElement.value}. + * However there are cases when those values can contain duplicates. For instance when working with cube data, + * or when using formatters and display values. + * + * They key is suitable to be used for identifying objects when implementing rendering transitions. + * + * The key can be null when the corresponding {@link DataViewCategoricalValuePathElement.value} is null. + */ + key: string | null; + /** + * Gets the value of this element, or null if this element represents a missing or invalid data point. + * + * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the {@link DataViewHierarchy} of + * the associated {@link DataViewCategoricalAxis}. + */ + value(): T | null; +} + +/** + * Color information for a {@link DataViewRow}. + * @public + */ +export declare interface DataViewColorInfo { + /** The hex code for the color. */ + hexCode: string; +} + +/** + * Represents metadata computed for continuous {@link Axis}. + * @public + */ +export declare interface DataViewContinuousAxis extends DataViewAxis { + /** + * Gets the data type of the values computed by this axis. + */ + dataType: DataType; +} + +/** + * Represents a value of a continuous axis for one row in a data view. + * @public + */ +export declare interface DataViewContinuousValue { + /** + * Gets the value of this instance. The type depending on the type of the + * expression on the associated {@link DataViewContinuousAxis}. + * + * This method will return `null` when the underlying data value is missing or invalid. + */ + value(): T2 | null; + /** + * Gets a formatted string that can be used to display this value. + * The formatting settings in Spotfire are used to create this string. + */ + formattedValue(): string; +} + +/** + * Represents a hierarchy for a {@link DataViewCategoricalAxis}. + * @public + */ +export declare interface DataViewHierarchy { + /** + * Gets the name of this hierarchy, the same as the associated {@link DataViewCategoricalAxis}. + */ + name: string; + /** + * Gets a value indicating whether the hierarchy is empty, i.e. the axis expression is empty, or not. + * For convenience, an empty hierarchy will have one single node that may contain all rows in the dataview. + */ + isEmpty: boolean; + /** + * Gets the levels of this hierarchy. The root node has no corresponding level. + */ + levels: DataViewHierarchyLevel[]; + /** + * Gets the total number of leaf nodes in the hierarchy. + */ + leafCount: number; + /** + * Gets the virtual root node of the hierarchy. The level of the root node is -1. Spotfire does not usually render the root node in visualization. + * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. + * The default behavior is that reading will be aborted when new non-streaming update is available. + * @returns null if reading data was aborted, otherwise a {@link DataViewHierarchyNode}. + */ + root(abortPredicate?: AbortPredicate): Promise; +} + +/** + * Represents the levels of a hierarchy. + * @public + */ +export declare interface DataViewHierarchyLevel { + /** + * The name of the hierarchy level, derived from the expression on the {@link Axis}. + */ + name: string; + /** + * Gets the data type of the values in this level of the hierarchy. + */ + dataType: DataType; +} + +/** + * Represents a node in a {@link DataViewHierarchy}. + * @public + */ +export declare interface DataViewHierarchyNode { + /** + * Gets a formatted string that can be used to display this value. + * The formatting settings in Spotfire are used to create this string. + */ + formattedValue(): string; + /** + * Gets the full path, top down to this node, of the formatted values. The virtual root node is omitted. + * @param separator - The separator. The default separator is " » ". + */ + formattedPath(separator?: string): string; + /** + * Gets the key for this hierarchy node. The key is guaranteed to be unique for the node among its siblings. + * + * In many cases this will be the same as {@link DataViewHierarchyNode.formattedValue} or {@link DataViewHierarchyNode.value}. + * However there are cases when those values can contain duplicates. For instance when working with cube data, + * or when using formatters and display values. + * + * They key is suitable to be used for identifying objects when implementing rendering transitions. + * + * The key can be null when the corresponding {@link DataViewHierarchyNode.value} is null. + */ + key: string | null; + /** + * Gets the value of this node, or null if this node represents a missing or invalid data point. + * + * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the associated {@link DataViewHierarchy}. + */ + value(): T | null; + /** + * Gets the parent of the hierarchy node, or `undefined` for root level nodes. + */ + parent?: DataViewHierarchyNode; + /** + * Gets the children of this node, or `undefined` if this node is a leaf node. + */ + children?: DataViewHierarchyNode[]; + /** + * Computes an array of all leaf nodes in the sub tree of the hierarchy spanned from this node. + */ + leaves(): DataViewHierarchyNode[]; + /** + * Gets the index of the leaf node among all leaf nodes in the hierarchy. This is undefined for non leaf nodes. + */ + leafIndex?: number; + /** + * Marks all {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. + * See {@link DataView.mark} for more details. + * @param operation - The marking operation. + */ + mark(operation?: MarkingOperation): void; + /** + * Computes the number of {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. + */ + rowCount(): number; + /** + * Computes the number of leaf nodes in the sub tree of the hierarchy spanned from this node. + */ + leafCount(): number; + /** + * Computes the number of marked {@link DataViewRow}s in the sub tree of the hierarchy spanned from this node. + */ + markedRowCount(): number; + /** + * Gets the level in the hierarchy where this node occurs. The root node of the hierarchy tree has level -1. + */ + level: number; + /** + * Computes the {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. + */ + rows(): DataViewRow[]; +} + +/** + * Represents an object that provides access to a {@link DataView}. + * @public + */ +export declare type DataViewProxy = DataViewProxyMethods & Readable; + +/** + * Represents the methods available on a {@link DataViewProxy}. + * @public + */ +export declare interface DataViewProxyMethods { + /** + * Clears the current marking + */ + clearMarking(): void; +} + +/** + * Represents a row of data in a {@link DataView}. Each row can be thought of as a data point that the mod visualization renders. + * @public + */ +export declare interface DataViewRow { + /** + * Gets a value indicating whether this row is marked. + */ + isMarked(): boolean; + /** + * Gets a {@link DataViewCategoricalValue} representing the value of the axis with the specified `axisName`. + * This method will throw an error if there is no categorical axis by that name or if the expression is empty. + * Use {@link DataView.categoricalAxis} to check the current existence of a categorical value. + * @param axisName - The name of the axis to get the value for. + */ + categorical(axisName: string): DataViewCategoricalValue; + /** + * Gets a {@link DataViewContinuousValue} representing the value of the axis with the specified `axisName`. + * This method will throw an error if there is no continuous axis by that name or if the expression is empty. + * Use {@link DataView.continuousAxis} to check the current existence of a continuous value. + * @param axisName - The name of the axis to get the value for. + */ + continuous(axisName: string): DataViewContinuousValue; + /** + * Gets the leaf {@link DataViewHierarchyNode} for the specified axis, + * or null for dual mode axes with continuous axis expression. + * This method will throw an error for continuous mode axes + * or if there is no axis by that name. + * @param axisName - The name of the axis + * @version 1.1 + */ + leafNode(axisName: string): DataViewHierarchyNode | null; + /** + * Calculates an element id for this row, suitable for identifying rows between data views. + * When stable identifiers is not used, only rows in immediately following data view are guaranteed to re-use previous id. + * If a row is filtered out in a new data view, this row is thus not guaranteed to yield the same id when it re-appears. + * + * @note A stable element id is only stable in the current session, thus it should not be stored in the document, + * e.g. as a {@link ModProperty} or {@link AnalysisProperty}. + * @version 1.1 + * + * @param useStableId - When true, the id will be a (longer) stable id guaranteed to be the same over time. + * @param omitAxisNames - Axis names to omit when creating the identifier. Can be used to group multiple elements split by these axes, for example to create animation effects in one data view. + */ + elementId(useStableId?: boolean, omitAxisNames?: string[]): string; + /** + * Gets the {@link DataViewColorInfo} for the row, if a color axis is defined in the mod manifest. + * The underlying data value can be retrieved by using {@link DataViewRow.categorical}("Color") or {@link DataViewRow.continuous}("Color"), depending on the mode of the color axis. + */ + color(): DataViewColorInfo; + /** + * Performs the specified marking operation in the current marking. + * + * **Note** All mark operations within one {@link Mod.transaction} must have the same {@link MarkingOperation}. + * + * See {@link DataView.mark} for more details. + * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. + */ + mark(operation?: MarkingOperation): void; +} + +/** + * Represents the type of a {@link DataView} value. The actual type that a given value has depends on the + * type of the expression on the associated axis. + * @public + */ +export declare type DataViewValueType = number | string | boolean | Date | Time | TimeSpan; + +/** + * Provides access to show an error overlay covering the entire Mod shown by Spotfire. + * @public + */ +export declare interface ErrorOverlay { + /** + * Show error message. Showing any error message will hide the Mods UI. + * @param messages - The error messages. Each message will be shown in its own paragraph. + * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. + */ + show(messages: string[], category?: string): void; + /** + * Show error message. Showing any error message will hide the Mods UI. + * @param messages - The error message. + * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. + */ + show(message: string, category?: string): void; + /** + * Clear the error message. If no other error messages are currently visible the Mods UI will be shown. + * @param category - Optional error categorization. + */ + hide(category?: string): void; +} + +/** + * From readableArray, an array of Readable of some value type, extract an array of this value type. + * @public + */ +export declare type ExtractValueType>> = { + [readableName in keyof readableArray]: readableArray[readableName] extends Readable + ? readableNameType + : never; +}; + +/** + * Represents information about a font that is used in the Mod Visualization. + * @public + */ +export declare interface FontInfo { + /** + * Gets the value to use for the `font-family` CSS property. + */ + fontFamily: string; + /** + * Gets the font size in pixels. + */ + fontSize: number; + /** + * Gets the value to use for the `font-style` CSS property. + */ + fontStyle: string; + /** + * Gets the value to use for the `font-weight` CSS property. + */ + fontWeight: string; + /** + * Gets the value to use for the `color` CSS property. + */ + color: string; +} + +/** + * Represents the general styling information that applies to the Mod Visualization. + * @public + */ +export declare interface GeneralStylingInfo { + /** + * Gets and object describing the font that shall be used by the Mod Visualization. + */ + font: FontInfo; + /** + * Gets the value to use for the `background-color` CSS property of the Mod Visualization. + */ + backgroundColor: string; +} + +/** + * Initializes the Mod API. The specified `onLoaded` callback is called when the initialization is complete. + * @example + * ``` + * Spotfire.initialize(async (mod) => { + * console.log("Mod API loaded."); + * }); + * ``` + * The initialize method will invoke the provided callback with an instance of the mod API, to be used by the mod developer. + * + * The initialize method needs to be invoked in order for the mod to function. Even if the mod only displays static content, the API must be initialized in order for events and export to work. + * @public + * @param onLoaded - Callback that is called when the mod API is initialized and ready to be interacted with. + */ +export declare function initialize(onLoaded: OnLoadCallback): void; + +/** + * Represents the styling information that applies to scale lines in the Mod Visualization. + * @public + */ +export declare interface LineStylingInfo { + /** + * Gets the stroke to use for scale lines. This value is valid a CSS color or the value `"none"`. + */ + stroke: string; +} + +/** + * Marking information for a {@link DataView}. + * @public + */ +export declare interface MarkingInfo { + /** The hex code for the marking. Note that when the mod has a defined color axis, the color should be retrieved via the {@link DataViewRow.color} method. */ + colorHexCode: string; + /** The name of the marking. */ + name: string; +} + +/** + * Specifies how a Marking shall be modified. + *
+ * - "Replace" - replaces the current marking.
+ * - "Add" - adds to the current marking.
+ * - "Subtract" - removes the current marking.
+ * - "Toggle" - toggles marking on each item in the set.
+ * - "Intersect" - marks the intersection of the current marking and the specified set.
+ * - "ToggleOrAdd" - will behave like toggle if all or no rows in the set are marked, otherwise it is an add operation. This is the default Spotfire behavior for control marking.
+ * 
+ * @public + */ +export declare type MarkingOperation = "Replace" | "Add" | "Subtract" | "Toggle" | "Intersect" | "ToggleOrAdd"; + +/** + * Extract from T the keys of all properties with function values. + * @public + */ +export declare type MethodKeys = { + [P in keyof T]: T[P] extends Function ? P : never; +}[keyof T]; + +/** + * Represents the entire Mod API and exposes methods for interacting with and reading data from + * the Mod Visualization and the Spotfire document. + * + * Reading content from the Mod is made by using either of the methods {@link Reader.subscribe} or {@link Reader.once} on an instance of a {@link Reader}. + * @public + */ +export declare interface Mod { + /** + * Gets an object that provides access to Spotfire document. + */ + document: SpotfireDocument; + /** + * Gets an object representing the content in the Mod Visualization and provides methods to read and/or modified it. + */ + visualization: ModVisualization; + /** + * Provides access to the {@link ModProperty} with the specified `name`. + */ + property(name: string): ReadableProxy>; + /** + * Provides read-only access to the current size of the browser window in which the Mod + * is rendered. That is, the size of the iframe created for the Mod in the Spotfire UI. + */ + windowSize(): Readable; + /** + * Creates a {@link Reader} that can be used to access content specified by the {@link Readable} parameters. + * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked + * when one or more of the {@link Readable}s have changed. + * @param readables - The {@link Readable}s that will be available in the reader. + */ + createReader>(...readables: T): Reader>; + /** + * Gets an object that allows showing Spotfire controls and other UI component, like context menus, tooltips, etc. + */ + controls: Controls; + /** + * Performs a set of synchronous modifications in an explicit transaction to the Spotfire document. + * + * Use of this method is only needed to make sure that a set of modifications are done as one transaction, thereby resulting in one undo step. + * Modifications done outside of a transaction action callback will be grouped together in an implicit transaction. + * + * @param action - callback with a set of modifications + * @param onComplete - optional callback that is called when the transaction is committed or rolled back. When there is an error argument in the callback the transaction was rolled back. + * @example + * ``` + * mod.transaction(() => { + * mod.property("X").set("new value for X"); + * mod.property("Y").set("new value for Y"); + * }, + * (error) => { + * if (error) { + * // Show error message. + * } + * else { + * // Handle success, e.g. re-enable action button. + * } + * }); + * ``` + */ + transaction(action: () => void, onComplete?: (error?: string) => void): void; + /** + * Get the Mod's render context. This function should be invoked as soon as possible in the {@link initialize} callback. + * + * If this method is called in the {@link initialize} callback, Spotfire will wait for the Mod to finish rendering during + * an export. The export will be made once the {@link RenderContext.signalRenderComplete} method has been called. + * + * If this method is not called in the {@link initialize} callback, Spotfire will _not_ wait for the Mod to finish rendering during + * an export. Instead, the Mod will be automatically exported after one second. + */ + getRenderContext(): RenderContext; + /** + * Get mod metadata - name, id, version, etc. + */ + metadata: ModMetadata; +} + +/** + * Represents that metadata of the Mod Visualization, as defined in the mod-manifest-json. + * @public + */ +export declare interface ModMetadata { + /** + * Gets the id of the Mod Visualization, as defined in the mod-manifest-json. + */ + id: string; + /** + * Gets the name of the Mod Visualization, as defined in the mod-manifest-json. + */ + name: string; + /** + * Gets the version of the Mod Visualization, as defined in the mod-manifest-json. + */ + version: string; + /** + * Gets the api version used by the Mod Visualization, as declared in the mod-manifest-json. + */ + apiVersion: string; +} + +/** + * Represents a property owned by the Mod Visualization. + * The Mod manifest defines the properties owned by the Mod Visualization. + * @public + */ +export declare interface ModProperty extends ModPropertyValue { + /** + * Set the value of this instance. + * @param value - The value to set. + */ + set(value: T): void; +} + +/** + * Represents the data types possible to store in a mod {@link ModProperty}. + * @public + */ +export declare type ModPropertyDataType = string | number | boolean; + +/** + * Represents the values held by a {@link ModProperty}. + * @public + */ +export declare interface ModPropertyValue { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the value held by this instance; + */ + value(): T2 | null; +} + +/** + * Represents the content in the Mod Visualization that can be read and/or modified. + * + * The content is a combination of state stored by the Mod Visualization in the Spotfire document, + * its view of the data and relevant UI properties. All values are {@link Readable} objects and are + * typically accessed using the {@link Reader} object. + * + * @public + */ +export declare interface ModVisualization { + /** + * Provides access to the {@link DataView} that the Mod Visualization is to render. + */ + data(): DataViewProxy; + /** + * Provides access to the {@link DataTable} in the Spotfire document that the Mod Visualization + * uses as its main table. + */ + mainTable(): ReadableProxy; + /** + * Sets the main {@link DataTable} in the Mod visualization. + * @param tableName - The name or id of the {@link DataTable} to be used as main table. + */ + setMainTable(tableName: string): void; + /** + * Sets the main {@link DataTable} in the Mod visualization. + * @param table - The {@link DataTable} object to be used as main table. + */ + setMainTable(table: DataTable): void; + /** + * Provides access to the {@link Axis} in the Mod Visualization with the specified `name`. All axes + * must be declared in the mod-manifest.json. + * @param name - The name of the {@link Axis}. + */ + axis(name: string): ReadableProxy; +} + +/** + * Represents methods that are not available on a {@link ReadableProxy}. To access these methods the {@link ReadableProxy} must be awaited. + * @public + */ +export declare type OmittedReadableProxyMethods = "value" | "valueList"; + +/** + * Represents a function that consumes the {@link Mod} API. See {@link initialize}. + * @public + */ +export declare type OnLoadCallback = (mod: Mod) => void | Promise; + +/** + * Represents a Page in a Spotfire document. + * @public + */ +export declare interface Page extends PageValues { + /** + * Sets this instance as the active page. + */ + setAsActive(): void; +} + +/** + * Represents the values held by a {@link Page}. + * @public + */ +export declare interface PageValues { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets a value indicating whether this instance is visible. + */ + visible: boolean; + /** + * Gets the zero-based index in this instance in the page collection in the Spotfire document. + */ + index: number; + /** + * Gets the unique id for this instance. + * The id is stable during the page life cycle, thus it can be used to store as a reference to this page in a {@link ModProperty} or {@link AnalysisProperty}. + * @version 1.1 + */ + id: string; +} + +/** + * Represents an object that can be used to create and show a Spotfire popout dialog. + * @public + */ +export declare interface Popout { + /** + * Shows a pop out dialog as specified by the `options` and `controls`. + * @param options - Specifies where and how to show the pop out dialog. + * @param components - A callback that shall produce the array of components that the + * pop out will show. If the pop out is shown with {@link PopoutOptions.autoClose} set to `false` + * this callback will be invoked every time the user has interacted with one of the {@link PopoutComponent}s + * so that the pop out can be re-rendered to show the result of the interaction. + */ + show(options: PopoutOptions, components: () => PopoutSection[]): PopoutDialog; + /** + * Creates a section that contains a heading and components. + * @param options - Specifies the heading and the components. + */ + section(options: PopoutSectionOptions): PopoutSection; + /** + * Gets an object with methods that create {@link PopoutComponent}s. + */ + components: PopoutComponentFactory; +} + +/** + * Represents options describing how to render a button. See {@link PopoutComponentFactory.button}. + * @public + */ +export declare interface PopoutButtonOptions { + /** + * Specifies the name that identifies the component. + */ + name: string; + /** + * Specifies the text to display in the button. + */ + text: string; +} + +/** + * Represents options describing how to render a checkbox. See {@link PopoutComponentFactory.checkbox}. + * @public + */ +export declare interface PopoutCheckboxOptions { + /** + * Specifies the name that identifies the component. + */ + name: string; + /** + * Specifies the text to display next to the checkbox. + */ + text: string; + /** + * Specifies the tooltip to display. If undefined, no tooltip is shown. + */ + tooltip?: string; + /** + * Specifies whether the checkbox is checked. + */ + checked: boolean; + /** + * Specifies whether the checkbox is enabled. + */ + enabled: boolean; +} + +/** + * Represents a component of a pop out dialog. See {@link Controls.popout}. + * @public + */ +export declare interface PopoutComponent { + /** + * Gets the type of the control. + */ + type: string; +} + +/** + * Represents the data of an event that occurs when a {@link PopoutComponent} has been changed by the user. + * @public + */ +export declare interface PopoutComponentEvent { + /** + * Gets the name that identifies the component that has been changed. + */ + name: string; + /** + * Gets the value of the component that has been changed. + */ + value?: any; +} + +/** + * Represents an object with methods that create {@link PopoutComponent}s. + * @public + */ +export declare interface PopoutComponentFactory { + /** + * Creates a component that renders as a radio button. + * @param options - Specifies how the radio button shall be rendered. + */ + radioButton(options: PopoutRadioButtonOptions): PopoutComponent; + /** + * Creates a component that renders as a checkbox. + * @param options - Specifies how the checkbox shall be rendered. + */ + checkbox(options: PopoutCheckboxOptions): PopoutComponent; + /** + * Creates a component that renders as a button. + * @param options - Specifies how the button shall be rendered. + */ + button(options: PopoutButtonOptions): PopoutComponent; +} + +/** + * Represents a pop out dialog that is shown by Spotfire. See {@link Controls.popout}. + * @public + */ +export declare interface PopoutDialog { + /** + * Closes the pop out dialog. + */ + close(): void; +} + +/** + * Represents options that specifies where and how a pop out dialog shall be shown. + * @public + */ +export declare interface PopoutOptions { + /** + * Specifies the horizontal pixel coordinate of the anchor point of the pop out dialog. + * + * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. + */ + x: number; + /** + * Specifies the vertical pixel coordinate of the anchor point of the pop out dialog. + * + * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. + */ + y: number; + /** + * Specifies how to position of the popout in relation to the anchor point specified by `x` and `y`. + * + * The alignment value specifies which edge of the pop out that shall be closest to the anchor point. For example, + * to show the pop out below the anchor point, specify `Top`. + */ + alignment?: "Left" | "Right" | "Top" | "Bottom"; + /** + * Specifies whether to automatically close the popout when one of the components in it is clicked. + */ + autoClose: boolean; + /** + * Specifies the callback to invoke when a component in the pop out dialog is changed. + */ + onChange(event: PopoutComponentEvent): void; + /** + * Specifies the callback to invoke when the pop out dialog has been closed. + * This callback is optional and can be left unassigned. + */ + onClosed?(): void; +} + +/** + * Represents options describing how to render a radio button. See {@link PopoutComponentFactory.radioButton}. + * @public + */ +export declare interface PopoutRadioButtonOptions { + /** + * Specifies the name that identifies the component. + */ + name: string; + /** + * Specifies the text to display next to the radio button. + */ + text: string; + /** + * Specifies the tooltip to display. If undefined, no tooltip is shown. + */ + tooltip?: string; + /** + * Specifies whether the radio button is checked. + */ + checked: boolean; + /** + * Specifies whether the radio button is enabled. + * @version 1.1 + */ + enabled?: boolean; + /** + * Specifies the value represented by the radio button. + */ + value: any; +} + +/** + * Represents a section of a pop out dialog. See {@link Controls.popout}. + * @public + */ +export declare interface PopoutSection { + /** + * Specifies the heading of the section + */ + heading?: string; + /** + * Specifies the components in the section + */ + children: PopoutComponent[]; +} + +/** + * Represents a section of a pop out dialog. See {@link Controls.popout}. + * @public + */ +export declare interface PopoutSectionOptions { + /** + * Specifies the heading of the section + */ + heading?: string; + /** + * Specifies the components in the section + */ + children: PopoutComponent[]; +} + +/** + * Represents an object with methods to show and hide the Spotfire progress indicator. + * @public + */ +export declare interface Progress { + /** + * Shows the progress indicator. + */ + show(): void; + /** + * Hides the progress indicator. + */ + hide(): void; +} + +/** + * Represents a value in the Mod API that can be accessed and/or modified. These values can + * be used when creating an instance of a {@link Reader} via the {@link Mod.createReader} method. + * @public + */ +export declare interface Readable extends Promise { + /** + * Used internally by the Mod api. + */ + readableID: string; + /** + * Used internally by the Mod api. + */ + __futureValue?: T; +} + +/** + * Represents an object that provides access to a node of the specified type. + * It can be used as a {@link Readable} but also acts as a proxy to the node by exposing all its methods. + * Nodes that represent model state in the Spotfire document can thus be modified without first waiting + * and materializing them in the browser. + * + * A full node will be created by using a {@link Reader}. + * @public + */ +export declare type ReadableProxy = Readable & + Omit>, OmittedReadableProxyMethods>; + +/** + * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked + * when one or more of the {@link Readable}s have changed. Choose one of the appropriate methods; + * {@link Reader.once} or {@link Reader.subscribe} that suits the needs of the Mod. + * An instance of the reader is created by calling the {@link Mod.createReader} method. + * @public + */ +export declare interface Reader> { + /** + * Subscribe to changes in the content for the specified readables when the reader was created. + * @example Subscribe to changes in the {@link DataView}. + * + * ``` + * let reader = mod.createReader(mod.visualization.data()); + * reader.subscribe((dataView) => { + * console.log(await dataView.rowCount()); + * }); + * ``` + * + * @param callback - The callback function that is called every time when there is at least one new value to read. + * The callback function will not be called until the previous callback function has returned. + * @param onReadError - Optional callback function that will be called if there are errors reading the readables. + */ + subscribe(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; + /** + * Read the content once for the readables specified when the reader was created. + * Any current subscription for this reader will be cancelled. + * @example Read content of a mod property once. + * + * ``` + * let reader = mod.createReader(mod.property("CreatedBy")); + * reader.once((createdBy) => { + * console.log(await createdBy.value()); + * }); + * ``` + * + * @param callback - The callback function that is called once when there is at least one new value to read. + * @param onReadError - Optional callback function that will be called if there are errors reading the readables. + */ + once(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; + /** + * Checks if any of the readables have a new value available. If this function returns true, + * the callback in the current subscription, or a new call to {@link Reader.once} is guaranteed + * to be invoked. + * The intended use of this method is to cancel rendering of the Mod if there are new values to any of the + * readables specified when the reader was created. + */ + hasExpired(): Promise; + /** + * Check whether one or more passed arguments are new since the last time the subscribe loop was called. + * + * @example Check if the data view has changed in the subscribe loop. + * + * ``` + * let reader = mod.createReader(mod.visualization.data(), mod.windowSize()); + * reader.subscribe((dataView, size) => { + * console.log(reader.hasValueChanged(dataView)); + * }); + * ``` + * + * @param value - Value from `subscribe` or `once` arguments. + * @param values - Additional values from `subscribe` or `once` arguments. + * @returns true if any of the values are new, otherwise false. + * @version 1.3 + */ + hasValueChanged(value: UnionFromTupleTypes, ...values: UnionFromTupleTypes[]): boolean; +} + +/** + * Represents a {@link Reader} subscription. + * @version 1.1 + * @public + */ +export declare interface ReaderSubscription { + /** + * Immediately cancel the current subscription. + * Neither the callback or the error callback will be invoked afterwards. + */ + cancel(): void; +} + +/** + * Represents contextual information needed when rendering a Mod, either in the UI or as part of an export. + * @public + */ +export declare interface RenderContext { + /** + * Gets a value indicating whether the Mod is interactive. + * + * When this value is false the Mod is not interactive. This occurs during export, for instance to an image or to PDF. + * This property can be used to hide selected controls and to avoid animations when rendering in an export context. + */ + interactive: boolean; + /** + * Gets the image pixel ratio that shall be used when rendering rasterized images and/or using a canvas element. + */ + imagePixelRatio: number; + /** + * Gets a value indicating whether the Spotfire UI is in editing mode. + * + * When this value is true the Spotfire UI displays authoring UI elements, such as axis selectors. + * This property can be used to hide controls not meant for consumers of the analysis. + * @version 1.2 + */ + isEditing: boolean; + /** + * Gets information about the currently used theme. + */ + styling: StylingInfo; + /** + * Signals that the mod is ready to be exported. + * + * If this method is not called, Spotfire will perform export (and preview generation etc.) of the Mod without knowing + * if it has finished rendering. + * + * The default maximum allowed time for a Mod to finish rendering is 20 seconds. + */ + signalRenderComplete(): void; +} + +/** + * Represents the styling information that applies to scales in the Mod Visualization. + * @public + */ +export declare interface ScaleStylingInfo { + /** + * Gets and object describing the font that shall be used in the scales of the Mod Visualization. + */ + font: FontInfo; + /** + * Gets and object describing the styling information for scale lines in the Mod Visualization. + */ + line: LineStylingInfo; + /** + * Gets and object describing the styling information for scale ticks in the Mod Visualization. + */ + tick: TickStylingInfo; +} + +/** + * Represents the size of an area in the UI, for example the size of the browser window in which the Mod + * is rendered. See {@link Mod.windowSize}. + * @public + */ +export declare interface Size { + /** + * Gets the width. + */ + width: number; + /** + * Gets the height. + */ + height: number; +} + +/** + * Represents the Spotfire document and provides access to read and modify parts of it. + * @public + */ +export declare interface SpotfireDocument { + /** + * Provides access to the {@link DataTable}s in the Spotfire document. + */ + tables(): Readable; + /** + * Provides access to the {@link DataTable} with the specified `name` in the Spotfire document. + */ + table(name: string): ReadableProxy; + /** + * Provides access to the `Document Properties` in the Spotfire Document. + */ + properties(): Readable; + /** + * Provides access to the `Document Property` with the specified `name` in the Spotfire Document. + */ + property( + name: string + ): ReadableProxy>; + /** + * Provides access to the {@link Page}s in the Spotfire document. + */ + pages(): Readable; + /** + * Provides access to the active {@link Page} in the Spotfire document. That is, the page that is currently visible. + */ + activePage(): ReadableProxy; + /** + * Sets the specified {@link Page} as the active page. + * @param name - The name/title or id of the page to set as active. + */ + setActivePage(name: string): void; + /** + * Sets the specified index as the active page index. + * @param index - The index of the page to set as active. + */ + setActivePage(index: number): void; + /** + * Sets the specified {@link Page} as the active page. + * @param page - The {@link Page} object to set as active. + */ + setActivePage(page: Page): void; +} + +/** + * Represents the styling (theme) that affects the look and feel of a Mod Visualization. + * @public + */ +export declare interface StylingInfo { + /** + * Gets an object describing the general aspects of the styling, including the font and background color + * to use in the Mod Visualization. + */ + general: GeneralStylingInfo; + /** + * Gets an object describing the styling of the scales in the Mod Visualization. + */ + scales: ScaleStylingInfo; +} + +/** + * Represents the styling information that applies to scale ticks in the Mod Visualization. + * @public + */ +export declare interface TickStylingInfo { + /** + * Gets the stroke to use for scale ticks. This value is valid a CSS color or the value `"none"`. + */ + stroke: string; +} + +/** + * Represents a Time property. The time has no notion of time zone. + * @public + */ +export declare interface Time { + /** The total number of milliseconds since midnight. */ + totalMilliseconds: number; + /** The millisecond part of the instance. */ + milliseconds: number; + /** The total number of seconds since midnight. */ + totalSeconds: number; + /** The second part of the instance. */ + seconds: number; + /** The total number of minutes since midnight. */ + totalMinutes: number; + /** The minute part of the instance. */ + minutes: number; + /** The total number of hours since midnight. */ + hours: number; +} + +/** + * Represents a TimeSpan property. A time span is used to measure the time between two points in time. + * @public + */ +export declare interface TimeSpan { + /** The total number of milliseconds of the instance. */ + totalMilliseconds: number; + /** The millisecond part of the instance. */ + milliseconds: number; + /** The total number of seconds of the instance. */ + totalSeconds: number; + /** The second part of the instance. */ + seconds: number; + /** The total number of minutes of the instance. */ + totalMinutes: number; + /** The minute part of the instance. */ + minutes: number; + /** The total number of hours of the instance. */ + totalHours: number; + /** The hour part of the instance. */ + hours: number; + /** The day part of the instance. */ + days: number; +} + +/** + * Represents an object with methods to show and hide a Spotfire tooltip. + * @public + */ +export declare interface Tooltip { + /** + * Shows a tooltip with the specified `content` text. + * + * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. + * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. + * + * Subsequent calls to `show` can be made to update the tooltip text. + * @param content - The text to show in the tooltip. + */ + show(content: string): void; + /** + * Shows a tooltip for the specified `row` as it has been configured in the properties panel. + * + * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. + * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. + * + * Subsequent calls to `show` can be made to update the tooltip text. + * + * @note For this feature to work, the dataViewDefinition.tooltip.enabled in the mod-manifest.json needs to be set to true. + * + * @param row - The row to show text for in the tooltip. + * @version 1.3 + */ + show(row: DataViewRow): void; + /** + * Hides the tooltip that is currently being showed, if any. + */ + hide(): void; +} + +/** + * Extract all possible types in a Tuple type. + * @public + */ +export declare type UnionFromTupleTypes = T[number] | U; + +export { } diff --git a/examples/ts-dev-gauge-googlecharts/tsconfig.json b/examples/ts-dev-gauge-googlecharts/tsconfig.json index 699a358f..fd5aaace 100644 --- a/examples/ts-dev-gauge-googlecharts/tsconfig.json +++ b/examples/ts-dev-gauge-googlecharts/tsconfig.json @@ -14,7 +14,7 @@ "lib": ["es2019", "dom"], "baseUrl": ".", "paths": { - "spotfire-api": ["./spotfire/spotfire-api-1-2"], + "spotfire-api": ["./spotfire/spotfire-api-1-3"], }, "typeRoots": ["./spotfire", "./node_modules/@types"] }, diff --git a/examples/ts-spiderchart-d3/spotfire/mod-schema.json b/examples/ts-spiderchart-d3/spotfire/mod-schema.json index 93565f7a..f25049ed 100644 --- a/examples/ts-spiderchart-d3/spotfire/mod-schema.json +++ b/examples/ts-spiderchart-d3/spotfire/mod-schema.json @@ -156,8 +156,8 @@ "type": "string", "title": "Mod API version.", "description": "Specifies the version of the Mod JavaScript API used by the code of this Mod. Set the lowest possible version number that the Mod requires to ensure best possible backward compatibility with older Spotfire systems. Using a newer API version than specified will result in runtime errors, even if the current Spotfire system includes that API.", - "default": "1.0", - "examples": ["1.0"], + "default": "1.3", + "examples": ["1.0", "1.1", "1.2", "1.3"], "pattern": "^(.*)$" }, "name": { @@ -186,9 +186,7 @@ "description": "Only declared external resources will work in the mod. A visualization mod with external resources cannot be exported using the web client.", "items": { "type": "string", - "examples": [ - "https://www.example.com" - ] + "examples": ["https://www.example.com"] } }, "properties": { @@ -343,6 +341,21 @@ } ] } + }, + "tooltip": { + "type": "object", + "title": "Use configurable tooltips", + "description": "Specifies how the Mod uses Spotfire native style configurable tooltips. Added in API version 1.3", + "default": {}, + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + "title": "Enabled", + "default": true, + "description": "Specifies whether to enable configurable tooltips, both in the API and in the properties dialog." + } + } } } }, @@ -375,11 +388,7 @@ "type": "string", "title": "The Items Schema", "default": "", - "examples": [ - "index.html", - "main.css", - "main.js" - ], + "examples": ["index.html", "main.css", "main.js"], "pattern": "^(.*)$" } } diff --git a/examples/ts-spiderchart-d3/spotfire/spotfire-api-1-2.d.ts b/examples/ts-spiderchart-d3/spotfire/spotfire-api-1-2.d.ts deleted file mode 100644 index 420e4571..00000000 --- a/examples/ts-spiderchart-d3/spotfire/spotfire-api-1-2.d.ts +++ /dev/null @@ -1,1607 +0,0 @@ -/* - * Copyright © 2020. TIBCO Software Inc. - * This file is subject to the license terms contained - * in the license file that is distributed with this file. - */ -export as namespace Spotfire; - -/** - * Predicate to determine if a current read operation for {@link DataView.allRows} should be aborted when there is new, non-streaming, data available. If this predicate returns true the {@link DataView.allRows} promise will be rejected and no rows will be returned. - * @public - */ -export declare type AbortPredicate = (currentRowCount: number) => boolean; - -/** - * Represents a property owned by the Spotfire document. - * These can be either document properties, data table properties or data column properties. - * @public - */ -export declare interface AnalysisProperty - extends AnalysisPropertyValue { - /** - * Set the value of this instance. - * @param value - The value to set. - */ - set(value: T | T[] | null): void; -} - -/** - * Represents the data types possible to store in a document, table or column {@link AnalysisProperty}. - * @public - */ -export declare type AnalysisPropertyDataType = string | number | boolean | Date | TimeSpan | Time; - -/** - * Represents the values held by a {@link AnalysisProperty}. - * @public - */ -export declare interface AnalysisPropertyValue { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the value held by this instance. Will throw if the value is a list, i.e. {@link AnalysisPropertyValue.isList} returns true; - */ - value(): T2 | null; - /** - * Gets the value held by this instance. Will throw if the value is not a list, i.e. {@link AnalysisPropertyValue.isList} returns false; - */ - valueList(): T2[]; - /** - * Get the Spotfire internal data type of the property. - */ - dataType: DataType; - /** - * Gets a value indicating whether the property is a list. - */ - isList: boolean; -} - -/** - * Represents an axis of the Mod Visualization. - * @public - */ -export declare interface Axis extends AxisValues { - /** - * Sets the full axis expression to the specified `value`. - */ - setExpression(value: string): void; -} - -/** - * Represents one element of a multi-part axis expression. - * @public - */ -export declare interface AxisPart { - /** - * Gets the expression of this part. - */ - expression: string; - /** - * Gets the display name of this part. - */ - displayName: string; -} - -/** - * Represents the values held by an {@link Axis}. - * @public - */ -export declare interface AxisValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the {@link AxisPart}s that this axis has. The parts are derived from the current {@link AxisValues.expression}. - */ - parts: AxisPart[]; - /** - * Gets the full expression of this instance, including multi-part delimiters and - * surrounding "\<\>" brackets if the axis is in categorical mode. - */ - expression: string; - /** - * Gets a value indicating whether the axis is categorical or continuous. - */ - isCategorical: boolean; -} - -/** - * Represents a data column in a Spotfire data table. - * @public - */ -export declare interface Column extends ColumnValues { - /** - * Provides access to the properties of this instance. See {@link AnalysisProperty}. - */ - properties(): Readable; - /** - * Provides access to the {@link AnalysisProperty} with the specified `name`. - */ - property(name: string): Readable; -} - -/** - * Represents the values held by a {@link Column}. - * @public - */ -export declare interface ColumnValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the data type of this instance. - */ - dataType: DataType; -} - -/** - * Represents an object with methods to show a context menu. - * @public - */ -export declare interface ContextMenu { - /** - * Shows a context menu with the specified `items`. The context menu closes when the user clicks one of the - * items or outside the context menu. - * @param x - The horizontal pixel coordinate where to show the context menu. - * @param y - The vertical pixel coordinate where to show the context menu. - * @param items - Defines the content of the context menu. - * @returns A Promise that, when resolved, provides the {@link ContextMenuItem} that was clicked by the user, - * or `undefined` if the user clicked outside the context menu. - */ - show(x: number, y: number, items: ContextMenuItem[]): Promise; -} - -/** - * Represents an item in a context menu shown by calling {@link ContextMenu.show}. - * @public - */ -export declare interface ContextMenuItem { - /** - * Specifies the text to show in this item. - */ - text: string; - /** - * Specifies whether this item is enabled. - */ - enabled: boolean; - /** - * Specifies the tooltip to show for this item. If not defined, no tooltip will be shown when hovering the this item. - */ - tooltip?: string; - /** - * Specifies a value indicating whether this item is checked. If not defined, this item will not be rendered in a checked state. - */ - checked?: boolean; -} - -/** - * Provides access points to launch Spotfire controls and UI component relevant for a Mod Visualization. - * @public - */ -export declare interface Controls { - /** - * Gets an object with methods to show a context menu. - */ - contextMenu: ContextMenu; - /** - * Gets an object with methods to show and hide a Spotfire tooltip. - */ - tooltip: Tooltip; - /** - * Gets an object with methods to show and hide the Spotfire progress indicator. - */ - progress: Progress; - /** - * Gets an object that can be used to create and show a Spotfire popout dialog. - */ - popout: Popout; - /** - * Gets an object that can be used to show an error overlay native Spotfire style. - */ - errorOverlay: ErrorOverlay; -} - -/** - * Represents a data table in the Spotfire document. - * @public - */ -export declare interface DataTable extends DataTableValues { - /** - * Provides access to the columns of this instance. See {@link Column}. - */ - columns(): Readable; - /** - * Provides access to the {@link Column} with the specified `name`. - */ - column(name: string): ReadableProxy; - /** - * Provides access to the properties of this instance. See {@link AnalysisProperty}. - */ - properties(): Readable; - /** - * Provides access to the {@link AnalysisProperty} with the specified `name`. - */ - property(name: string): Readable; -} - -/** - * Represents the values held by a {@link DataTable}. - * @public - */ -export declare interface DataTableValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the number of columns in this instance. - */ - columnCount: number; - /** - * Gets the unique id for this instance. - * The id is stable during the data table life cycle, thus it can be used to store as a reference to this data table in a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - */ - id: string; -} - -/** - * Represents the data type of a value. - * @public - */ -export declare interface DataType { - /** - * Gets the name of this DataType. - */ - name: - | "String" - | "Integer" - | "LongInteger" - | "Real" - | "SingleReal" - | "Currency" - | "Boolean" - | "Date" - | "DateTime" - | "Time" - | "TimeSpan" - | "Binary"; - /** - * Gets a value indicating whether the data type is numeric or not, that is, - * Integer, Currency, Real, LongInteger, or SingleReal. - */ - isNumber(): boolean; - /** - * Gets a value indicating whether the data type is represents by Date or not, that is, Date, or DateTime. - */ - isDate(): boolean; - /** - * Gets a value indicating whether the data type is represents by {@link Time} or not. - */ - isTime(): boolean; - /** - * Gets a value indicating whether the data type is represents by {@link TimeSpan} or not. - */ - isTimeSpan(): boolean; -} - -/** - * Represents a view of the data from which the visualization can be rendered. - * - * This object contains the result of the query made by Spotfire against the DataTable - * currently used by the Mod Visualization, using the Filtering, Marking, expressions - * on the Axes and other relevant settings. - * @public - */ -export declare interface DataView { - /** - * Mark a set of rows. - * The full set will be the union of all mark operations performed within one transaction (see {@link Mod.transaction}). - * All mark operations must have the same marking operation. - * @param rows - The rows to be selected. - * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. - */ - mark(rows: DataViewRow[], markingOperation?: MarkingOperation): void; - /** - * Clears the current marking - */ - clearMarking(): void; - /** - * Gets the marking information, or null if marking is not enabled. - */ - marking(): Promise; - /** - * Gets a value indicating whether the dataView has expired. - * The dataview has expired when there has been changes to the document, - * for example marking or filtering. - * When true, there will be a new dataview available on the next read. - */ - hasExpired(): Promise; - /** - * Gets any errors generated while creating the dataview. - * Returns empty array if none occurred. - */ - getErrors(): Promise; - /** - * Gets metadata for a specific categorical axis in the {@link DataView}. - * Categorical axes are defined in the manifest file as categorical or dual. - * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.categorical} will throw an error. - * Returns null for axes with empty expressions or for dual mode axes that currently are in continuous mode. - * Throws if the axis does not exist or the axes mode is continuous. - * @param name - The axis name. - */ - categoricalAxis(name: string): Promise; - /** - * Gets metadata for a specific continuous axis in the {@link DataView}. - * Continuous axes are defined in the manifest file as continuous or dual. - * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.continuous} will throw an error. - * Returns null for axes with empty expressions or for dual mode axes that currently are in categorical mode. - * Throws if the axis does not exist or the axes mode is categorical. - * @param name - The axis name. - */ - continuousAxis(name: string): Promise; - /** - * Gets metadata of all axes currently present in the {@link DataView}. - * Axes with empty expression are omitted. - */ - axes(): Promise; - /** - * Gets a hierarchy for a categorical axis. - * - * If the axis has an empty expression the hierarchy will contain one single root node. - * Returns null for dual mode axes that currently are in continuous mode. - * Throws if the axis does not exist or the axes mode is continuous. - * @param name - The name of the axis to get the hierarchy for. - */ - hierarchy(name: string): Promise; - /** - * Gets the total number of rows of the {@link DataView} without actually getting all the rows. Use this function to determine whether or not the mod will be able to handle the amount of data rows. - * When there are errors in the mod configuration there will be no rows available and this method will return undefined. - */ - rowCount(): Promise; - /** - * Gets all rows from the data view as one asynchronous operation. - * The allRows function has a built in cache and can be called multiple times with the same dataView and it will return the same list of rows. - * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. - * The default behavior is that reading will be aborted when new non-streaming update is available. - * @returns null if reading data was aborted, otherwise a {@link DataViewRow}[]. - */ - allRows(abortPredicate?: AbortPredicate): Promise; -} - -/** - * Contains metadata computed for an {@link Axis}. - * @public - */ -export declare interface DataViewAxis { - /** - * Gets the name of this axis. - */ - name: string; - /** - * Gets a value indicating whether this axis is an instance of {@link DataViewContinuousAxis} or {@link DataViewCategoricalAxis} . - */ - isCategorical: boolean; -} - -/** - * Represents metadata computed for a categorical {@link Axis}. - * @public - */ -export declare interface DataViewCategoricalAxis extends DataViewAxis { - /** - * Gets the hierarchy of this axis. - */ - hierarchy: DataViewHierarchy; -} - -/** - * Represents a value of a categorical axis for one row in a data view. - * @public - */ -export declare interface DataViewCategoricalValue { - /** - * Gets an array representing the full path of the value in the hierarchy defined by the axis expression. - * The first element is the top level of the hierarchy and the last element is the leaf level. - */ - value(): DataViewCategoricalValuePathElement[]; - /** - * Gets a formatted string that can be used to display this value. - * This string is built by concatenating the {@link DataViewCategoricalValuePathElement.formattedValue} for each element found in the {@link DataViewCategoricalValue.value} array. - * @param separator - The separator used for concatenation. The default separator is " » ". - */ - formattedValue(separator?: string): string; - /** - * Gets the index among the leaf nodes of the associated {@link DataViewHierarchy} of this {@link DataViewCategoricalAxis}. - * This, for example, can be used to determine the position on a scale where to render the visual element. - */ - leafIndex: number; -} - -/** - * Represents an element in the `path` of a {@link DataViewCategoricalValue}. - * @public - */ -export declare interface DataViewCategoricalValuePathElement { - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; - /** - * Gets a key that uniquely identifies this element. - * - * In many cases this will be the same as {@link DataViewCategoricalValuePathElement.formattedValue} and {@link DataViewCategoricalValuePathElement.value}. - * However there are cases when those values can contain duplicates. For instance when working with cube data, - * or when using formatters and display values. - * - * They key is suitable to be used for identifying objects when implementing rendering transitions. - * - * The key can be null when the corresponding {@link DataViewCategoricalValuePathElement.value} is null. - */ - key: string | null; - /** - * Gets the value of this element, or null if this element represents a missing or invalid data point. - * - * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the {@link DataViewHierarchy} of - * the associated {@link DataViewCategoricalAxis}. - */ - value(): T | null; -} - -/** - * Color information for a {@link DataViewRow}. - * @public - */ -export declare interface DataViewColorInfo { - /** The hex code for the color. */ - hexCode: string; -} - -/** - * Represents metadata computed for continuous {@link Axis}. - * @public - */ -export declare interface DataViewContinuousAxis extends DataViewAxis { - /** - * Gets the data type of the values computed by this axis. - */ - dataType: DataType; -} - -/** - * Represents a value of a continuous axis for one row in a data view. - * @public - */ -export declare interface DataViewContinuousValue { - /** - * Gets the value of this instance. The type depending on the type of the - * expression on the associated {@link DataViewContinuousAxis}. - * - * This method will return `null` when the underlying data value is missing or invalid. - */ - value(): T2 | null; - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; -} - -/** - * Represents a hierarchy for a {@link DataViewCategoricalAxis}. - * @public - */ -export declare interface DataViewHierarchy { - /** - * Gets the name of this hierarchy, the same as the associated {@link DataViewCategoricalAxis}. - */ - name: string; - /** - * Gets a value indicating whether the hierarchy is empty, i.e. the axis expression is empty, or not. - * For convenience, an empty hierarchy will have one single node that may contain all rows in the dataview. - */ - isEmpty: boolean; - /** - * Gets the levels of this hierarchy. The root node has no corresponding level. - */ - levels: DataViewHierarchyLevel[]; - /** - * Gets the total number of leaf nodes in the hierarchy. - */ - leafCount: number; - /** - * Gets the virtual root node of the hierarchy. The level of the root node is -1. Spotfire does not usually render the root node in visualization. - * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. - * The default behavior is that reading will be aborted when new non-streaming update is available. - * @returns null if reading data was aborted, otherwise a {@link DataViewHierarchyNode}. - */ - root(abortPredicate?: AbortPredicate): Promise; -} - -/** - * Represents the levels of a hierarchy. - * @public - */ -export declare interface DataViewHierarchyLevel { - /** - * The name of the hierarchy level, derived from the expression on the {@link Axis}. - */ - name: string; - /** - * Gets the data type of the values in this level of the hierarchy. - */ - dataType: DataType; -} - -/** - * Represents a node in a {@link DataViewHierarchy}. - * @public - */ -export declare interface DataViewHierarchyNode { - /** - * Gets a formatted string that can be used to display this value. - * The formatting settings in Spotfire are used to create this string. - */ - formattedValue(): string; - /** - * Gets the full path, top down to this node, of the formatted values. The virtual root node is omitted. - * @param separator - The separator. The default separator is " » ". - */ - formattedPath(separator?: string): string; - /** - * Gets the key for this hierarchy node. The key is guaranteed to be unique for the node among its siblings. - * - * In many cases this will be the same as {@link DataViewHierarchyNode.formattedValue} or {@link DataViewHierarchyNode.value}. - * However there are cases when those values can contain duplicates. For instance when working with cube data, - * or when using formatters and display values. - * - * They key is suitable to be used for identifying objects when implementing rendering transitions. - * - * The key can be null when the corresponding {@link DataViewHierarchyNode.value} is null. - */ - key: string | null; - /** - * Gets the value of this node, or null if this node represents a missing or invalid data point. - * - * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the associated {@link DataViewHierarchy}. - */ - value(): T | null; - /** - * Gets the parent of the hierarchy node, or `undefined` for root level nodes. - */ - parent?: DataViewHierarchyNode; - /** - * Gets the children of this node, or `undefined` if this node is a leaf node. - */ - children?: DataViewHierarchyNode[]; - /** - * Computes an array of all leaf nodes in the sub tree of the hierarchy spanned from this node. - */ - leaves(): DataViewHierarchyNode[]; - /** - * Gets the index of the leaf node among all leaf nodes in the hierarchy. This is undefined for non leaf nodes. - */ - leafIndex?: number; - /** - * Marks all {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - * See {@link DataView.mark} for more details. - * @param operation - The marking operation. - */ - mark(operation?: MarkingOperation): void; - /** - * Computes the number of {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - */ - rowCount(): number; - /** - * Computes the number of leaf nodes in the sub tree of the hierarchy spanned from this node. - */ - leafCount(): number; - /** - * Computes the number of marked {@link DataViewRow}s in the sub tree of the hierarchy spanned from this node. - */ - markedRowCount(): number; - /** - * Gets the level in the hierarchy where this node occurs. The root node of the hierarchy tree has level -1. - */ - level: number; - /** - * Computes the {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. - */ - rows(): DataViewRow[]; -} - -/** - * Represents an object that provides access to a {@link DataView}. - * @public - */ -export declare type DataViewProxy = DataViewProxyMethods & Readable; - -/** - * Represents the methods available on a {@link DataViewProxy}. - * @public - */ -export declare interface DataViewProxyMethods { - /** - * Clears the current marking - */ - clearMarking(): void; -} - -/** - * Represents a row of data in a {@link DataView}. Each row can be thought of as a data point that the mod visualization renders. - * @public - */ -export declare interface DataViewRow { - /** - * Gets a value indicating whether this row is marked. - */ - isMarked(): boolean; - /** - * Gets a {@link DataViewCategoricalValue} representing the value of the axis with the specified `axisName`. - * This method will throw an error if there is no categorical axis by that name or if the expression is empty. - * Use {@link DataView.categoricalAxis} to check the current existence of a categorical value. - * @param axisName - The name of the axis to get the value for. - */ - categorical(axisName: string): DataViewCategoricalValue; - /** - * Gets a {@link DataViewContinuousValue} representing the value of the axis with the specified `axisName`. - * This method will throw an error if there is no continuous axis by that name or if the expression is empty. - * Use {@link DataView.continuousAxis} to check the current existence of a continuous value. - * @param axisName - The name of the axis to get the value for. - */ - continuous(axisName: string): DataViewContinuousValue; - /** - * Gets the leaf {@link DataViewHierarchyNode} for the specified axis, - * or null for dual mode axes with continuous axis expression. - * This method will throw an error for continuous mode axes - * or if there is no axis by that name. - * @param axisName - The name of the axis - * @version 1.1 - */ - leafNode(axisName: string): DataViewHierarchyNode | null; - /** - * Calculates an element id for this row, suitable for identifying rows between data views. - * When stable identifiers is not used, only rows in immediately following data view are guaranteed to re-use previous id. - * If a row is filtered out in a new data view, this row is thus not guaranteed to yield the same id when it re-appears. - * - * @note A stable element id is only stable in the current session, thus it should not be stored in the document, - * e.g. as a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - * - * @param useStableId - When true, the id will be a (longer) stable id guaranteed to be the same over time. - * @param omitAxisNames - Axis names to omit when creating the identifier. Can be used to group multiple elements split by these axes, for example to create animation effects in one data view. - */ - elementId(useStableId?: boolean, omitAxisNames?: string[]): string; - /** - * Gets the {@link DataViewColorInfo} for the row, if a color axis is defined in the mod manifest. - * The underlying data value can be retrieved by using {@link DataViewRow.categorical}("Color") or {@link DataViewRow.continuous}("Color"), depending on the mode of the color axis. - */ - color(): DataViewColorInfo; - /** - * Performs the specified marking operation in the current marking. - * - * **Note** All mark operations within one {@link Mod.transaction} must have the same {@link MarkingOperation}. - * - * See {@link DataView.mark} for more details. - * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. - */ - mark(operation?: MarkingOperation): void; -} - -/** - * Represents the type of a {@link DataView} value. The actual type that a given value has depends on the - * type of the expression on the associated axis. - * @public - */ -export declare type DataViewValueType = number | string | boolean | Date | Time | TimeSpan; - -/** - * Provides access to show an error overlay covering the entire Mod shown by Spotfire. - * @public - */ -export declare interface ErrorOverlay { - /** - * Show error message. Showing any error message will hide the Mods UI. - * @param messages - The error messages. Each message will be shown in its own paragraph. - * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. - */ - show(messages: string[], category?: string): void; - /** - * Show error message. Showing any error message will hide the Mods UI. - * @param messages - The error message. - * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. - */ - show(message: string, category?: string): void; - /** - * Clear the error message. If no other error messages are currently visible the Mods UI will be shown. - * @param category - Optional error categorization. - */ - hide(category?: string): void; -} - -/** - * From readableArray, an array of Readable of some value type, extract an array of this value type. - * @public - */ -export declare type ExtractValueType>> = { - [readableName in keyof readableArray]: readableArray[readableName] extends Readable - ? readableNameType - : never; -}; - -/** - * Represents information about a font that is used in the Mod Visualization. - * @public - */ -export declare interface FontInfo { - /** - * Gets the value to use for the `font-family` CSS property. - */ - fontFamily: string; - /** - * Gets the font size in pixels. - */ - fontSize: number; - /** - * Gets the value to use for the `font-style` CSS property. - */ - fontStyle: string; - /** - * Gets the value to use for the `font-weight` CSS property. - */ - fontWeight: string; - /** - * Gets the value to use for the `color` CSS property. - */ - color: string; -} - -/** - * Represents the general styling information that applies to the Mod Visualization. - * @public - */ -export declare interface GeneralStylingInfo { - /** - * Gets and object describing the font that shall be used by the Mod Visualization. - */ - font: FontInfo; - /** - * Gets the value to use for the `background-color` CSS property of the Mod Visualization. - */ - backgroundColor: string; -} - -/** - * Initializes the Mod API. The specified `onLoaded` callback is called when the initialization is complete. - * @example - * ``` - * Spotfire.initialize(async (mod) => { - * console.log("Mod API loaded."); - * }); - * ``` - * The initialize method will invoke the provided callback with an instance of the mod API, to be used by the mod developer. - * - * The initialize method needs to be invoked in order for the mod to function. Even if the mod only displays static content, the API must be initialized in order for events and export to work. - * @public - * @param onLoaded - Callback that is called when the mod API is initialized and ready to be interacted with. - */ -export declare function initialize(onLoaded: OnLoadCallback): void; - -/** - * Represents the styling information that applies to scale lines in the Mod Visualization. - * @public - */ -export declare interface LineStylingInfo { - /** - * Gets the stroke to use for scale lines. This value is valid a CSS color or the value `"none"`. - */ - stroke: string; -} - -/** - * Marking information for a {@link DataView}. - * @public - */ -export declare interface MarkingInfo { - /** The hex code for the marking. Note that when the mod has a defined color axis, the color should be retrieved via the {@link DataViewRow.color} method. */ - colorHexCode: string; - /** The name of the marking. */ - name: string; -} - -/** - * Specifies how a Marking shall be modified. - *
- * - "Replace" - replaces the current marking.
- * - "Add" - adds to the current marking.
- * - "Subtract" - removes the current marking.
- * - "Toggle" - toggles marking on each item in the set.
- * - "Intersect" - marks the intersection of the current marking and the specified set.
- * - "ToggleOrAdd" - will behave like toggle if all or no rows in the set are marked, otherwise it is an add operation. This is the default Spotfire behavior for control marking.
- * 
- * @public - */ -export declare type MarkingOperation = "Replace" | "Add" | "Subtract" | "Toggle" | "Intersect" | "ToggleOrAdd"; - -/** - * Extract from T the keys of all properties with function values. - * @public - */ -export declare type MethodKeys = { - [P in keyof T]: T[P] extends Function ? P : never; -}[keyof T]; - -/** - * Represents the entire Mod API and exposes methods for interacting with and reading data from - * the Mod Visualization and the Spotfire document. - * - * Reading content from the Mod is made by using either of the methods {@link Reader.subscribe} or {@link Reader.once} on an instance of a {@link Reader}. - * @public - */ -export declare interface Mod { - /** - * Gets an object that provides access to Spotfire document. - */ - document: SpotfireDocument; - /** - * Gets an object representing the content in the Mod Visualization and provides methods to read and/or modified it. - */ - visualization: ModVisualization; - /** - * Provides access to the {@link ModProperty} with the specified `name`. - */ - property(name: string): ReadableProxy>; - /** - * Provides read-only access to the current size of the browser window in which the Mod - * is rendered. That is, the size of the iframe created for the Mod in the Spotfire UI. - */ - windowSize(): Readable; - /** - * Creates a {@link Reader} that can be used to access content specified by the {@link Readable} parameters. - * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked - * when one or more of the {@link Readable}s have changed. - * @param readables - The {@link Readable}s that will be available in the reader. - */ - createReader>(...readables: T): Reader>; - /** - * Gets an object that allows showing Spotfire controls and other UI component, like context menus, tooltips, etc. - */ - controls: Controls; - /** - * Performs a set of synchronous modifications in an explicit transaction to the Spotfire document. - * - * Use of this method is only needed to make sure that a set of modifications are done as one transaction, thereby resulting in one undo step. - * Modifications done outside of a transaction action callback will be grouped together in an implicit transaction. - * - * @param action - callback with a set of modifications - * @param onComplete - optional callback that is called when the transaction is committed or rolled back. When there is an error argument in the callback the transaction was rolled back. - * @example - * ``` - * mod.transaction(() => { - * mod.property("X").set("new value for X"); - * mod.property("Y").set("new value for Y"); - * }, - * (error) => { - * if (error) { - * // Show error message. - * } - * else { - * // Handle success, e.g. re-enable action button. - * } - * }); - * ``` - */ - transaction(action: () => void, onComplete?: (error?: string) => void): void; - /** - * Get the Mod's render context. This function should be invoked as soon as possible in the {@link initialize} callback. - * - * If this method is called in the {@link initialize} callback, Spotfire will wait for the Mod to finish rendering during - * an export. The export will be made once the {@link RenderContext.signalRenderComplete} method has been called. - * - * If this method is not called in the {@link initialize} callback, Spotfire will _not_ wait for the Mod to finish rendering during - * an export. Instead, the Mod will be automatically exported after one second. - */ - getRenderContext(): RenderContext; - /** - * Get mod metadata - name, id, version, etc. - */ - metadata: ModMetadata; -} - -/** - * Represents that metadata of the Mod Visualization, as defined in the mod-manifest-json. - * @public - */ -export declare interface ModMetadata { - /** - * Gets the id of the Mod Visualization, as defined in the mod-manifest-json. - */ - id: string; - /** - * Gets the name of the Mod Visualization, as defined in the mod-manifest-json. - */ - name: string; - /** - * Gets the version of the Mod Visualization, as defined in the mod-manifest-json. - */ - version: string; - /** - * Gets the api version used by the Mod Visualization, as declared in the mod-manifest-json. - */ - apiVersion: string; -} - -/** - * Represents a property owned by the Mod Visualization. - * The Mod manifest defines the properties owned by the Mod Visualization. - * @public - */ -export declare interface ModProperty extends ModPropertyValue { - /** - * Set the value of this instance. - * @param value - The value to set. - */ - set(value: T): void; -} - -/** - * Represents the data types possible to store in a mod {@link ModProperty}. - * @public - */ -export declare type ModPropertyDataType = string | number | boolean; - -/** - * Represents the values held by a {@link ModProperty}. - * @public - */ -export declare interface ModPropertyValue { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets the value held by this instance; - */ - value(): T2 | null; -} - -/** - * Represents the content in the Mod Visualization that can be read and/or modified. - * - * The content is a combination of state stored by the Mod Visualization in the Spotfire document, - * its view of the data and relevant UI properties. All values are {@link Readable} objects and are - * typically accessed using the {@link Reader} object. - * - * @public - */ -export declare interface ModVisualization { - /** - * Provides access to the {@link DataView} that the Mod Visualization is to render. - */ - data(): DataViewProxy; - /** - * Provides access to the {@link DataTable} in the Spotfire document that the Mod Visualization - * uses as its main table. - */ - mainTable(): ReadableProxy; - /** - * Sets the main {@link DataTable} in the Mod visualization. - * @param tableName - The name or id of the {@link DataTable} to be used as main table. - */ - setMainTable(tableName: string): void; - /** - * Sets the main {@link DataTable} in the Mod visualization. - * @param table - The {@link DataTable} object to be used as main table. - */ - setMainTable(table: DataTable): void; - /** - * Provides access to the {@link Axis} in the Mod Visualization with the specified `name`. All axes - * must be declared in the mod-manifest.json. - * @param name - The name of the {@link Axis}. - */ - axis(name: string): ReadableProxy; -} - -/** - * Represents methods that are not available on a {@link ReadableProxy}. To access these methods the {@link ReadableProxy} must be awaited. - * @public - */ -export declare type OmittedReadableProxyMethods = "value" | "valueList"; - -/** - * Represents a function that consumes the {@link Mod} API. See {@link initialize}. - * @public - */ -export declare type OnLoadCallback = (mod: Mod) => void | Promise; - -/** - * Represents a Page in a Spotfire document. - * @public - */ -export declare interface Page extends PageValues { - /** - * Sets this instance as the active page. - */ - setAsActive(): void; -} - -/** - * Represents the values held by a {@link Page}. - * @public - */ -export declare interface PageValues { - /** - * Gets the name of this instance. - */ - name: string; - /** - * Gets a value indicating whether this instance is visible. - */ - visible: boolean; - /** - * Gets the zero-based index in this instance in the page collection in the Spotfire document. - */ - index: number; - /** - * Gets the unique id for this instance. - * The id is stable during the page life cycle, thus it can be used to store as a reference to this page in a {@link ModProperty} or {@link AnalysisProperty}. - * @version 1.1 - */ - id: string; -} - -/** - * Represents an object that can be used to create and show a Spotfire popout dialog. - * @public - */ -export declare interface Popout { - /** - * Shows a pop out dialog as specified by the `options` and `controls`. - * @param options - Specifies where and how to show the pop out dialog. - * @param components - A callback that shall produce the array of components that the - * pop out will show. If the pop out is shown with {@link PopoutOptions.autoClose} set to `false` - * this callback will be invoked every time the user has interacted with one of the {@link PopoutComponent}s - * so that the pop out can be re-rendered to show the result of the interaction. - */ - show(options: PopoutOptions, components: () => PopoutSection[]): PopoutDialog; - /** - * Creates a section that contains a heading and components. - * @param options - Specifies the heading and the components. - */ - section(options: PopoutSectionOptions): PopoutSection; - /** - * Gets an object with methods that create {@link PopoutComponent}s. - */ - components: PopoutComponentFactory; -} - -/** - * Represents options describing how to render a button. See {@link PopoutComponentFactory.button}. - * @public - */ -export declare interface PopoutButtonOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display in the button. - */ - text: string; -} - -/** - * Represents options describing how to render a checkbox. See {@link PopoutComponentFactory.checkbox}. - * @public - */ -export declare interface PopoutCheckboxOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display next to the checkbox. - */ - text: string; - /** - * Specifies the tooltip to display. If undefined, no tooltip is shown. - */ - tooltip?: string; - /** - * Specifies whether the checkbox is checked. - */ - checked: boolean; - /** - * Specifies whether the checkbox is enabled. - */ - enabled: boolean; -} - -/** - * Represents a component of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutComponent { - /** - * Gets the type of the control. - */ - type: string; -} - -/** - * Represents the data of an event that occurs when a {@link PopoutComponent} has been changed by the user. - * @public - */ -export declare interface PopoutComponentEvent { - /** - * Gets the name that identifies the component that has been changed. - */ - name: string; - /** - * Gets the value of the component that has been changed. - */ - value?: any; -} - -/** - * Represents an object with methods that create {@link PopoutComponent}s. - * @public - */ -export declare interface PopoutComponentFactory { - /** - * Creates a component that renders as a radio button. - * @param options - Specifies how the radio button shall be rendered. - */ - radioButton(options: PopoutRadioButtonOptions): PopoutComponent; - /** - * Creates a component that renders as a checkbox. - * @param options - Specifies how the checkbox shall be rendered. - */ - checkbox(options: PopoutCheckboxOptions): PopoutComponent; - /** - * Creates a component that renders as a button. - * @param options - Specifies how the button shall be rendered. - */ - button(options: PopoutButtonOptions): PopoutComponent; -} - -/** - * Represents a pop out dialog that is shown by Spotfire. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutDialog { - /** - * Closes the pop out dialog. - */ - close(): void; -} - -/** - * Represents options that specifies where and how a pop out dialog shall be shown. - * @public - */ -export declare interface PopoutOptions { - /** - * Specifies the horizontal pixel coordinate of the anchor point of the pop out dialog. - * - * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. - */ - x: number; - /** - * Specifies the vertical pixel coordinate of the anchor point of the pop out dialog. - * - * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. - */ - y: number; - /** - * Specifies how to position of the popout in relation to the anchor point specified by `x` and `y`. - * - * The alignment value specifies which edge of the pop out that shall be closest to the anchor point. For example, - * to show the pop out below the anchor point, specify `Top`. - */ - alignment?: "Left" | "Right" | "Top" | "Bottom"; - /** - * Specifies whether to automatically close the popout when one of the components in it is clicked. - */ - autoClose: boolean; - /** - * Specifies the callback to invoke when a component in the pop out dialog is changed. - */ - onChange(event: PopoutComponentEvent): void; - /** - * Specifies the callback to invoke when the pop out dialog has been closed. - * This callback is optional and can be left unassigned. - */ - onClosed?(): void; -} - -/** - * Represents options describing how to render a radio button. See {@link PopoutComponentFactory.radioButton}. - * @public - */ -export declare interface PopoutRadioButtonOptions { - /** - * Specifies the name that identifies the component. - */ - name: string; - /** - * Specifies the text to display next to the radio button. - */ - text: string; - /** - * Specifies the tooltip to display. If undefined, no tooltip is shown. - */ - tooltip?: string; - /** - * Specifies whether the radio button is checked. - */ - checked: boolean; - /** - * Specifies whether the radio button is enabled. - * @version 1.1 - */ - enabled?: boolean; - /** - * Specifies the value represented by the radio button. - */ - value: any; -} - -/** - * Represents a section of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutSection { - /** - * Specifies the heading of the section - */ - heading?: string; - /** - * Specifies the components in the section - */ - children: PopoutComponent[]; -} - -/** - * Represents a section of a pop out dialog. See {@link Controls.popout}. - * @public - */ -export declare interface PopoutSectionOptions { - /** - * Specifies the heading of the section - */ - heading?: string; - /** - * Specifies the components in the section - */ - children: PopoutComponent[]; -} - -/** - * Represents an object with methods to show and hide the Spotfire progress indicator. - * @public - */ -export declare interface Progress { - /** - * Shows the progress indicator. - */ - show(): void; - /** - * Hides the progress indicator. - */ - hide(): void; -} - -/** - * Represents a value in the Mod API that can be accessed and/or modified. These values can - * be used when creating an instance of a {@link Reader} via the {@link Mod.createReader} method. - * @public - */ -export declare interface Readable extends Promise { - /** - * Used internally by the Mod api. - */ - readableID: string; - /** - * Used internally by the Mod api. - */ - __futureValue?: T; -} - -/** - * Represents an object that provides access to a node of the specified type. - * It can be used as a {@link Readable} but also acts as a proxy to the node by exposing all its methods. - * Nodes that represent model state in the Spotfire document can thus be modified without first waiting - * and materializing them in the browser. - * - * A full node will be created by using a {@link Reader}. - * @public - */ -export declare type ReadableProxy = Readable & - Omit>, OmittedReadableProxyMethods>; - -/** - * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked - * when one or more of the {@link Readable}s have changed. Choose one of the appropriate methods; - * {@link Reader.once} or {@link Reader.subscribe} that suits the needs of the Mod. - * An instance of the reader is created by calling the {@link Mod.createReader} method. - * @public - */ -export declare interface Reader> { - /** - * Subscribe to changes in the content for the specified readables when the reader was created. - * @example Subscribe to changes in the {@link DataView}. - * - * ``` - * let reader = mod.createReader(mod.visualization.data()); - * reader.subscribe((dataView) => { - * console.log(await dataView.rowCount()); - * }); - * ``` - * - * @param callback - The callback function that is called every time when there is at least one new value to read. - * The callback function will not be called until the previous callback function has returned. - * @param onReadError - Optional callback function that will be called if there are errors reading the readables. - */ - subscribe(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; - /** - * Read the content once for the readables specified when the reader was created. - * Any current subscription for this reader will be cancelled. - * @example Read content of a mod property once. - * - * ``` - * let reader = mod.createReader(mod.property("CreatedBy")); - * reader.once((createdBy) => { - * console.log(await createdBy.value()); - * }); - * ``` - * - * @param callback - The callback function that is called once when there is at least one new value to read. - * @param onReadError - Optional callback function that will be called if there are errors reading the readables. - */ - once(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; - /** - * Checks if any of the readables have a new value available. If this function returns true, - * the callback in the current subscription, or a new call to {@link Reader.once} is guaranteed - * to be invoked. - * The intended use of this method is to cancel rendering of the Mod if there are new values to any of the - * readables specified when the reader was created. - */ - hasExpired(): Promise; -} - -/** - * Represents a {@link Reader} subscription. - * @version 1.1 - * @public - */ -export declare interface ReaderSubscription { - /** - * Immediately cancel the current subscription. - * Neither the callback or the error callback will be invoked afterwards. - */ - cancel(): void; -} - -/** - * Represents contextual information needed when rendering a Mod, either in the UI or as part of an export. - * @public - */ -export declare interface RenderContext { - /** - * Gets a value indicating whether the Mod is interactive. - * - * When this value is false the Mod is not interactive. This occurs during export, for instance to an image or to PDF. - * This property can be used to hide selected controls and to avoid animations when rendering in an export context. - */ - interactive: boolean; - /** - * Gets the image pixel ratio that shall be used when rendering rasterized images and/or using a canvas element. - */ - imagePixelRatio: number; - /** - * Gets a value indicating whether the Spotfire UI is in editing mode. - * - * When this value is true the Spotfire UI displays authoring UI elements, such as axis selectors. - * This property can be used to hide controls not meant for consumers of the analysis. - * @version 1.2 - */ - isEditing: boolean; - /** - * Gets information about the currently used theme. - */ - styling: StylingInfo; - /** - * Signals that the mod is ready to be exported. - * - * If this method is not called, Spotfire will perform export (and preview generation etc.) of the Mod without knowing - * if it has finished rendering. - * - * The default maximum allowed time for a Mod to finish rendering is 20 seconds. - */ - signalRenderComplete(): void; -} - -/** - * Represents the styling information that applies to scales in the Mod Visualization. - * @public - */ -export declare interface ScaleStylingInfo { - /** - * Gets and object describing the font that shall be used in the scales of the Mod Visualization. - */ - font: FontInfo; - /** - * Gets and object describing the styling information for scale lines in the Mod Visualization. - */ - line: LineStylingInfo; - /** - * Gets and object describing the styling information for scale ticks in the Mod Visualization. - */ - tick: TickStylingInfo; -} - -/** - * Represents the size of an area in the UI, for example the size of the browser window in which the Mod - * is rendered. See {@link Mod.windowSize}. - * @public - */ -export declare interface Size { - /** - * Gets the width. - */ - width: number; - /** - * Gets the height. - */ - height: number; -} - -/** - * Represents the Spotfire document and provides access to read and modify parts of it. - * @public - */ -export declare interface SpotfireDocument { - /** - * Provides access to the {@link DataTable}s in the Spotfire document. - */ - tables(): Readable; - /** - * Provides access to the {@link DataTable} with the specified `name` in the Spotfire document. - */ - table(name: string): ReadableProxy; - /** - * Provides access to the `Document Properties` in the Spotfire Document. - */ - properties(): Readable; - /** - * Provides access to the `Document Property` with the specified `name` in the Spotfire Document. - */ - property( - name: string - ): ReadableProxy>; - /** - * Provides access to the {@link Page}s in the Spotfire document. - */ - pages(): Readable; - /** - * Provides access to the active {@link Page} in the Spotfire document. That is, the page that is currently visible. - */ - activePage(): ReadableProxy; - /** - * Sets the specified {@link Page} as the active page. - * @param name - The name/title or id of the page to set as active. - */ - setActivePage(name: string): void; - /** - * Sets the specified index as the active page index. - * @param index - The index of the page to set as active. - */ - setActivePage(index: number): void; - /** - * Sets the specified {@link Page} as the active page. - * @param page - The {@link Page} object to set as active. - */ - setActivePage(page: Page): void; -} - -/** - * Represents the styling (theme) that affects the look and feel of a Mod Visualization. - * @public - */ -export declare interface StylingInfo { - /** - * Gets an object describing the general aspects of the styling, including the font and background color - * to use in the Mod Visualization. - */ - general: GeneralStylingInfo; - /** - * Gets an object describing the styling of the scales in the Mod Visualization. - */ - scales: ScaleStylingInfo; -} - -/** - * Represents the styling information that applies to scale ticks in the Mod Visualization. - * @public - */ -export declare interface TickStylingInfo { - /** - * Gets the stroke to use for scale ticks. This value is valid a CSS color or the value `"none"`. - */ - stroke: string; -} - -/** - * Represents a Time property. The time has no notion of time zone. - * @public - */ -export declare interface Time { - /** The total number of milliseconds since midnight. */ - totalMilliseconds: number; - /** The millisecond part of the instance. */ - milliseconds: number; - /** The total number of seconds since midnight. */ - totalSeconds: number; - /** The second part of the instance. */ - seconds: number; - /** The total number of minutes since midnight. */ - totalMinutes: number; - /** The minute part of the instance. */ - minutes: number; - /** The total number of hours since midnight. */ - hours: number; -} - -/** - * Represents a TimeSpan property. A time span is used to measure the time between two points in time. - * @public - */ -export declare interface TimeSpan { - /** The total number of milliseconds of the instance. */ - totalMilliseconds: number; - /** The millisecond part of the instance. */ - milliseconds: number; - /** The total number of seconds of the instance. */ - totalSeconds: number; - /** The second part of the instance. */ - seconds: number; - /** The total number of minutes of the instance. */ - totalMinutes: number; - /** The minute part of the instance. */ - minutes: number; - /** The total number of hours of the instance. */ - totalHours: number; - /** The hour part of the instance. */ - hours: number; - /** The day part of the instance. */ - days: number; -} - -/** - * Represents an object with methods to show and hide a Spotfire tooltip. - * @public - */ -export declare interface Tooltip { - /** - * Shows a tooltip with the specified `content` text. - * - * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. - * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. - * - * Subsequent calls to `show`can be made to update the tooltip text. - * @param content - The text to show in the tooltip. - */ - show(content: string): void; - /** - * Hides the tooltip that is currently being showed, if any. - */ - hide(): void; -} - -export {}; diff --git a/examples/ts-spiderchart-d3/spotfire/spotfire-api-1-3.d.ts b/examples/ts-spiderchart-d3/spotfire/spotfire-api-1-3.d.ts new file mode 100644 index 00000000..6865cd2c --- /dev/null +++ b/examples/ts-spiderchart-d3/spotfire/spotfire-api-1-3.d.ts @@ -0,0 +1,1645 @@ +/* + * Copyright © 2021. TIBCO Software Inc. + * This file is subject to the license terms contained + * in the license file that is distributed with this file. + */ +export as namespace Spotfire; + +/** + * Predicate to determine if a current read operation for {@link DataView.allRows} should be aborted when there is new, non-streaming, data available. If this predicate returns true the {@link DataView.allRows} promise will be rejected and no rows will be returned. + * @public + */ +export declare type AbortPredicate = (currentRowCount: number) => boolean; + +/** + * Represents a property owned by the Spotfire document. + * These can be either document properties, data table properties or data column properties. + * @public + */ +export declare interface AnalysisProperty + extends AnalysisPropertyValue { + /** + * Set the value of this instance. + * @param value - The value to set. + */ + set(value: T | T[] | null): void; +} + +/** + * Represents the data types possible to store in a document, table or column {@link AnalysisProperty}. + * @public + */ +export declare type AnalysisPropertyDataType = string | number | boolean | Date | TimeSpan | Time; + +/** + * Represents the values held by a {@link AnalysisProperty}. + * @public + */ +export declare interface AnalysisPropertyValue { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the value held by this instance. Will throw if the value is a list, i.e. {@link AnalysisPropertyValue.isList} returns true; + */ + value(): T2 | null; + /** + * Gets the value held by this instance. Will throw if the value is not a list, i.e. {@link AnalysisPropertyValue.isList} returns false; + */ + valueList(): T2[]; + /** + * Get the Spotfire internal data type of the property. + */ + dataType: DataType; + /** + * Gets a value indicating whether the property is a list. + */ + isList: boolean; +} + +/** + * Represents an axis of the Mod Visualization. + * @public + */ +export declare interface Axis extends AxisValues { + /** + * Sets the full axis expression to the specified `value`. + */ + setExpression(value: string): void; +} + +/** + * Represents one element of a multi-part axis expression. + * @public + */ +export declare interface AxisPart { + /** + * Gets the expression of this part. + */ + expression: string; + /** + * Gets the display name of this part. + */ + displayName: string; +} + +/** + * Represents the values held by an {@link Axis}. + * @public + */ +export declare interface AxisValues { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the {@link AxisPart}s that this axis has. The parts are derived from the current {@link AxisValues.expression}. + */ + parts: AxisPart[]; + /** + * Gets the full expression of this instance, including multi-part delimiters and + * surrounding "\<\>" brackets if the axis is in categorical mode. + */ + expression: string; + /** + * Gets a value indicating whether the axis is categorical or continuous. + */ + isCategorical: boolean; +} + +/** + * Represents a data column in a Spotfire data table. + * @public + */ +export declare interface Column extends ColumnValues { + /** + * Provides access to the properties of this instance. See {@link AnalysisProperty}. + */ + properties(): Readable; + /** + * Provides access to the {@link AnalysisProperty} with the specified `name`. + */ + property(name: string): Readable; +} + +/** + * Represents the values held by a {@link Column}. + * @public + */ +export declare interface ColumnValues { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the data type of this instance. + */ + dataType: DataType; +} + +/** + * Represents an object with methods to show a context menu. + * @public + */ +export declare interface ContextMenu { + /** + * Shows a context menu with the specified `items`. The context menu closes when the user clicks one of the + * items or outside the context menu. + * @param x - The horizontal pixel coordinate where to show the context menu. + * @param y - The vertical pixel coordinate where to show the context menu. + * @param items - Defines the content of the context menu. + * @returns A Promise that, when resolved, provides the {@link ContextMenuItem} that was clicked by the user, + * or `undefined` if the user clicked outside the context menu. + */ + show(x: number, y: number, items: ContextMenuItem[]): Promise; +} + +/** + * Represents an item in a context menu shown by calling {@link ContextMenu.show}. + * @public + */ +export declare interface ContextMenuItem { + /** + * Specifies the text to show in this item. + */ + text: string; + /** + * Specifies whether this item is enabled. + */ + enabled: boolean; + /** + * Specifies the tooltip to show for this item. If not defined, no tooltip will be shown when hovering the this item. + */ + tooltip?: string; + /** + * Specifies a value indicating whether this item is checked. If not defined, this item will not be rendered in a checked state. + */ + checked?: boolean; +} + +/** + * Provides access points to launch Spotfire controls and UI component relevant for a Mod Visualization. + * @public + */ +export declare interface Controls { + /** + * Gets an object with methods to show a context menu. + */ + contextMenu: ContextMenu; + /** + * Gets an object with methods to show and hide a Spotfire tooltip. + */ + tooltip: Tooltip; + /** + * Gets an object with methods to show and hide the Spotfire progress indicator. + */ + progress: Progress; + /** + * Gets an object that can be used to create and show a Spotfire popout dialog. + */ + popout: Popout; + /** + * Gets an object that can be used to show an error overlay native Spotfire style. + */ + errorOverlay: ErrorOverlay; +} + +/** + * Represents a data table in the Spotfire document. + * @public + */ +export declare interface DataTable extends DataTableValues { + /** + * Provides access to the columns of this instance. See {@link Column}. + */ + columns(): Readable; + /** + * Provides access to the {@link Column} with the specified `name`. + */ + column(name: string): ReadableProxy; + /** + * Provides access to the properties of this instance. See {@link AnalysisProperty}. + */ + properties(): Readable; + /** + * Provides access to the {@link AnalysisProperty} with the specified `name`. + */ + property(name: string): Readable; +} + +/** + * Represents the values held by a {@link DataTable}. + * @public + */ +export declare interface DataTableValues { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the number of columns in this instance. + */ + columnCount: number; + /** + * Gets the unique id for this instance. + * The id is stable during the data table life cycle, thus it can be used to store as a reference to this data table in a {@link ModProperty} or {@link AnalysisProperty}. + * @version 1.1 + */ + id: string; +} + +/** + * Represents the data type of a value. + * @public + */ +export declare interface DataType { + /** + * Gets the name of this DataType. + */ + name: + | "String" + | "Integer" + | "LongInteger" + | "Real" + | "SingleReal" + | "Currency" + | "Boolean" + | "Date" + | "DateTime" + | "Time" + | "TimeSpan" + | "Binary"; + /** + * Gets a value indicating whether the data type is numeric or not, that is, + * Integer, Currency, Real, LongInteger, or SingleReal. + */ + isNumber(): boolean; + /** + * Gets a value indicating whether the data type is represents by Date or not, that is, Date, or DateTime. + */ + isDate(): boolean; + /** + * Gets a value indicating whether the data type is represents by {@link Time} or not. + */ + isTime(): boolean; + /** + * Gets a value indicating whether the data type is represents by {@link TimeSpan} or not. + */ + isTimeSpan(): boolean; +} + +/** + * Represents a view of the data from which the visualization can be rendered. + * + * This object contains the result of the query made by Spotfire against the DataTable + * currently used by the Mod Visualization, using the Filtering, Marking, expressions + * on the Axes and other relevant settings. + * @public + */ +export declare interface DataView { + /** + * Mark a set of rows. + * The full set will be the union of all mark operations performed within one transaction (see {@link Mod.transaction}). + * All mark operations must have the same marking operation. + * @param rows - The rows to be selected. + * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. + */ + mark(rows: DataViewRow[], markingOperation?: MarkingOperation): void; + /** + * Clears the current marking + */ + clearMarking(): void; + /** + * Gets the marking information, or null if marking is not enabled. + */ + marking(): Promise; + /** + * Gets a value indicating whether the dataView has expired. + * The dataview has expired when there has been changes to the document, + * for example marking or filtering. + * When true, there will be a new dataview available on the next read. + */ + hasExpired(): Promise; + /** + * Gets any errors generated while creating the dataview. + * Returns empty array if none occurred. + */ + getErrors(): Promise; + /** + * Gets metadata for a specific categorical axis in the {@link DataView}. + * Categorical axes are defined in the manifest file as categorical or dual. + * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.categorical} will throw an error. + * Returns null for axes with empty expressions or for dual mode axes that currently are in continuous mode. + * Throws if the axis does not exist or the axes mode is continuous. + * @param name - The axis name. + */ + categoricalAxis(name: string): Promise; + /** + * Gets metadata for a specific continuous axis in the {@link DataView}. + * Continuous axes are defined in the manifest file as continuous or dual. + * When this method fails to return a valid axis getting the corresponding call to {@link DataViewRow.continuous} will throw an error. + * Returns null for axes with empty expressions or for dual mode axes that currently are in categorical mode. + * Throws if the axis does not exist or the axes mode is categorical. + * @param name - The axis name. + */ + continuousAxis(name: string): Promise; + /** + * Gets metadata of all axes currently present in the {@link DataView}. + * Axes with empty expression are omitted. + */ + axes(): Promise; + /** + * Gets a hierarchy for a categorical axis. + * + * If the axis has an empty expression the hierarchy will contain one single root node. + * Returns null for dual mode axes that currently are in continuous mode. + * Throws if the axis does not exist or the axes mode is continuous. + * @param name - The name of the axis to get the hierarchy for. + */ + hierarchy(name: string): Promise; + /** + * Gets the total number of rows of the {@link DataView} without actually getting all the rows. Use this function to determine whether or not the mod will be able to handle the amount of data rows. + * When there are errors in the mod configuration there will be no rows available and this method will return undefined. + */ + rowCount(): Promise; + /** + * Gets all rows from the data view as one asynchronous operation. + * The allRows function has a built in cache and can be called multiple times with the same dataView and it will return the same list of rows. + * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. + * The default behavior is that reading will be aborted when new non-streaming update is available. + * @returns null if reading data was aborted, otherwise a {@link DataViewRow}[]. + */ + allRows(abortPredicate?: AbortPredicate): Promise; +} + +/** + * Contains metadata computed for an {@link Axis}. + * @public + */ +export declare interface DataViewAxis { + /** + * Gets the name of this axis. + */ + name: string; + /** + * Gets a value indicating whether this axis is an instance of {@link DataViewContinuousAxis} or {@link DataViewCategoricalAxis} . + */ + isCategorical: boolean; +} + +/** + * Represents metadata computed for a categorical {@link Axis}. + * @public + */ +export declare interface DataViewCategoricalAxis extends DataViewAxis { + /** + * Gets the hierarchy of this axis. + */ + hierarchy: DataViewHierarchy; +} + +/** + * Represents a value of a categorical axis for one row in a data view. + * @public + */ +export declare interface DataViewCategoricalValue { + /** + * Gets an array representing the full path of the value in the hierarchy defined by the axis expression. + * The first element is the top level of the hierarchy and the last element is the leaf level. + */ + value(): DataViewCategoricalValuePathElement[]; + /** + * Gets a formatted string that can be used to display this value. + * This string is built by concatenating the {@link DataViewCategoricalValuePathElement.formattedValue} for each element found in the {@link DataViewCategoricalValue.value} array. + * @param separator - The separator used for concatenation. The default separator is " » ". + */ + formattedValue(separator?: string): string; + /** + * Gets the index among the leaf nodes of the associated {@link DataViewHierarchy} of this {@link DataViewCategoricalAxis}. + * This, for example, can be used to determine the position on a scale where to render the visual element. + */ + leafIndex: number; +} + +/** + * Represents an element in the `path` of a {@link DataViewCategoricalValue}. + * @public + */ +export declare interface DataViewCategoricalValuePathElement { + /** + * Gets a formatted string that can be used to display this value. + * The formatting settings in Spotfire are used to create this string. + */ + formattedValue(): string; + /** + * Gets a key that uniquely identifies this element. + * + * In many cases this will be the same as {@link DataViewCategoricalValuePathElement.formattedValue} and {@link DataViewCategoricalValuePathElement.value}. + * However there are cases when those values can contain duplicates. For instance when working with cube data, + * or when using formatters and display values. + * + * They key is suitable to be used for identifying objects when implementing rendering transitions. + * + * The key can be null when the corresponding {@link DataViewCategoricalValuePathElement.value} is null. + */ + key: string | null; + /** + * Gets the value of this element, or null if this element represents a missing or invalid data point. + * + * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the {@link DataViewHierarchy} of + * the associated {@link DataViewCategoricalAxis}. + */ + value(): T | null; +} + +/** + * Color information for a {@link DataViewRow}. + * @public + */ +export declare interface DataViewColorInfo { + /** The hex code for the color. */ + hexCode: string; +} + +/** + * Represents metadata computed for continuous {@link Axis}. + * @public + */ +export declare interface DataViewContinuousAxis extends DataViewAxis { + /** + * Gets the data type of the values computed by this axis. + */ + dataType: DataType; +} + +/** + * Represents a value of a continuous axis for one row in a data view. + * @public + */ +export declare interface DataViewContinuousValue { + /** + * Gets the value of this instance. The type depending on the type of the + * expression on the associated {@link DataViewContinuousAxis}. + * + * This method will return `null` when the underlying data value is missing or invalid. + */ + value(): T2 | null; + /** + * Gets a formatted string that can be used to display this value. + * The formatting settings in Spotfire are used to create this string. + */ + formattedValue(): string; +} + +/** + * Represents a hierarchy for a {@link DataViewCategoricalAxis}. + * @public + */ +export declare interface DataViewHierarchy { + /** + * Gets the name of this hierarchy, the same as the associated {@link DataViewCategoricalAxis}. + */ + name: string; + /** + * Gets a value indicating whether the hierarchy is empty, i.e. the axis expression is empty, or not. + * For convenience, an empty hierarchy will have one single node that may contain all rows in the dataview. + */ + isEmpty: boolean; + /** + * Gets the levels of this hierarchy. The root node has no corresponding level. + */ + levels: DataViewHierarchyLevel[]; + /** + * Gets the total number of leaf nodes in the hierarchy. + */ + leafCount: number; + /** + * Gets the virtual root node of the hierarchy. The level of the root node is -1. Spotfire does not usually render the root node in visualization. + * @param abortPredicate - Optional. Predicate to determine whether the operation should be aborted when there is new, non-streaming, data available. If this predicate returns true the promise will be rejected. + * The default behavior is that reading will be aborted when new non-streaming update is available. + * @returns null if reading data was aborted, otherwise a {@link DataViewHierarchyNode}. + */ + root(abortPredicate?: AbortPredicate): Promise; +} + +/** + * Represents the levels of a hierarchy. + * @public + */ +export declare interface DataViewHierarchyLevel { + /** + * The name of the hierarchy level, derived from the expression on the {@link Axis}. + */ + name: string; + /** + * Gets the data type of the values in this level of the hierarchy. + */ + dataType: DataType; +} + +/** + * Represents a node in a {@link DataViewHierarchy}. + * @public + */ +export declare interface DataViewHierarchyNode { + /** + * Gets a formatted string that can be used to display this value. + * The formatting settings in Spotfire are used to create this string. + */ + formattedValue(): string; + /** + * Gets the full path, top down to this node, of the formatted values. The virtual root node is omitted. + * @param separator - The separator. The default separator is " » ". + */ + formattedPath(separator?: string): string; + /** + * Gets the key for this hierarchy node. The key is guaranteed to be unique for the node among its siblings. + * + * In many cases this will be the same as {@link DataViewHierarchyNode.formattedValue} or {@link DataViewHierarchyNode.value}. + * However there are cases when those values can contain duplicates. For instance when working with cube data, + * or when using formatters and display values. + * + * They key is suitable to be used for identifying objects when implementing rendering transitions. + * + * The key can be null when the corresponding {@link DataViewHierarchyNode.value} is null. + */ + key: string | null; + /** + * Gets the value of this node, or null if this node represents a missing or invalid data point. + * + * The type of the returned value can be determined from the {@link DataViewHierarchy.levels} in the associated {@link DataViewHierarchy}. + */ + value(): T | null; + /** + * Gets the parent of the hierarchy node, or `undefined` for root level nodes. + */ + parent?: DataViewHierarchyNode; + /** + * Gets the children of this node, or `undefined` if this node is a leaf node. + */ + children?: DataViewHierarchyNode[]; + /** + * Computes an array of all leaf nodes in the sub tree of the hierarchy spanned from this node. + */ + leaves(): DataViewHierarchyNode[]; + /** + * Gets the index of the leaf node among all leaf nodes in the hierarchy. This is undefined for non leaf nodes. + */ + leafIndex?: number; + /** + * Marks all {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. + * See {@link DataView.mark} for more details. + * @param operation - The marking operation. + */ + mark(operation?: MarkingOperation): void; + /** + * Computes the number of {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. + */ + rowCount(): number; + /** + * Computes the number of leaf nodes in the sub tree of the hierarchy spanned from this node. + */ + leafCount(): number; + /** + * Computes the number of marked {@link DataViewRow}s in the sub tree of the hierarchy spanned from this node. + */ + markedRowCount(): number; + /** + * Gets the level in the hierarchy where this node occurs. The root node of the hierarchy tree has level -1. + */ + level: number; + /** + * Computes the {@link DataViewRow}s corresponding to the sub tree of the hierarchy spanned from this node. + */ + rows(): DataViewRow[]; +} + +/** + * Represents an object that provides access to a {@link DataView}. + * @public + */ +export declare type DataViewProxy = DataViewProxyMethods & Readable; + +/** + * Represents the methods available on a {@link DataViewProxy}. + * @public + */ +export declare interface DataViewProxyMethods { + /** + * Clears the current marking + */ + clearMarking(): void; +} + +/** + * Represents a row of data in a {@link DataView}. Each row can be thought of as a data point that the mod visualization renders. + * @public + */ +export declare interface DataViewRow { + /** + * Gets a value indicating whether this row is marked. + */ + isMarked(): boolean; + /** + * Gets a {@link DataViewCategoricalValue} representing the value of the axis with the specified `axisName`. + * This method will throw an error if there is no categorical axis by that name or if the expression is empty. + * Use {@link DataView.categoricalAxis} to check the current existence of a categorical value. + * @param axisName - The name of the axis to get the value for. + */ + categorical(axisName: string): DataViewCategoricalValue; + /** + * Gets a {@link DataViewContinuousValue} representing the value of the axis with the specified `axisName`. + * This method will throw an error if there is no continuous axis by that name or if the expression is empty. + * Use {@link DataView.continuousAxis} to check the current existence of a continuous value. + * @param axisName - The name of the axis to get the value for. + */ + continuous(axisName: string): DataViewContinuousValue; + /** + * Gets the leaf {@link DataViewHierarchyNode} for the specified axis, + * or null for dual mode axes with continuous axis expression. + * This method will throw an error for continuous mode axes + * or if there is no axis by that name. + * @param axisName - The name of the axis + * @version 1.1 + */ + leafNode(axisName: string): DataViewHierarchyNode | null; + /** + * Calculates an element id for this row, suitable for identifying rows between data views. + * When stable identifiers is not used, only rows in immediately following data view are guaranteed to re-use previous id. + * If a row is filtered out in a new data view, this row is thus not guaranteed to yield the same id when it re-appears. + * + * @note A stable element id is only stable in the current session, thus it should not be stored in the document, + * e.g. as a {@link ModProperty} or {@link AnalysisProperty}. + * @version 1.1 + * + * @param useStableId - When true, the id will be a (longer) stable id guaranteed to be the same over time. + * @param omitAxisNames - Axis names to omit when creating the identifier. Can be used to group multiple elements split by these axes, for example to create animation effects in one data view. + */ + elementId(useStableId?: boolean, omitAxisNames?: string[]): string; + /** + * Gets the {@link DataViewColorInfo} for the row, if a color axis is defined in the mod manifest. + * The underlying data value can be retrieved by using {@link DataViewRow.categorical}("Color") or {@link DataViewRow.continuous}("Color"), depending on the mode of the color axis. + */ + color(): DataViewColorInfo; + /** + * Performs the specified marking operation in the current marking. + * + * **Note** All mark operations within one {@link Mod.transaction} must have the same {@link MarkingOperation}. + * + * See {@link DataView.mark} for more details. + * @param operation - Optional {@link MarkingOperation}. Default value is `Replace`. + */ + mark(operation?: MarkingOperation): void; +} + +/** + * Represents the type of a {@link DataView} value. The actual type that a given value has depends on the + * type of the expression on the associated axis. + * @public + */ +export declare type DataViewValueType = number | string | boolean | Date | Time | TimeSpan; + +/** + * Provides access to show an error overlay covering the entire Mod shown by Spotfire. + * @public + */ +export declare interface ErrorOverlay { + /** + * Show error message. Showing any error message will hide the Mods UI. + * @param messages - The error messages. Each message will be shown in its own paragraph. + * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. + */ + show(messages: string[], category?: string): void; + /** + * Show error message. Showing any error message will hide the Mods UI. + * @param messages - The error message. + * @param category - Optional error categorization. Useful if multiple error message are to be shown. Error messages will be sorted based on the category. + */ + show(message: string, category?: string): void; + /** + * Clear the error message. If no other error messages are currently visible the Mods UI will be shown. + * @param category - Optional error categorization. + */ + hide(category?: string): void; +} + +/** + * From readableArray, an array of Readable of some value type, extract an array of this value type. + * @public + */ +export declare type ExtractValueType>> = { + [readableName in keyof readableArray]: readableArray[readableName] extends Readable + ? readableNameType + : never; +}; + +/** + * Represents information about a font that is used in the Mod Visualization. + * @public + */ +export declare interface FontInfo { + /** + * Gets the value to use for the `font-family` CSS property. + */ + fontFamily: string; + /** + * Gets the font size in pixels. + */ + fontSize: number; + /** + * Gets the value to use for the `font-style` CSS property. + */ + fontStyle: string; + /** + * Gets the value to use for the `font-weight` CSS property. + */ + fontWeight: string; + /** + * Gets the value to use for the `color` CSS property. + */ + color: string; +} + +/** + * Represents the general styling information that applies to the Mod Visualization. + * @public + */ +export declare interface GeneralStylingInfo { + /** + * Gets and object describing the font that shall be used by the Mod Visualization. + */ + font: FontInfo; + /** + * Gets the value to use for the `background-color` CSS property of the Mod Visualization. + */ + backgroundColor: string; +} + +/** + * Initializes the Mod API. The specified `onLoaded` callback is called when the initialization is complete. + * @example + * ``` + * Spotfire.initialize(async (mod) => { + * console.log("Mod API loaded."); + * }); + * ``` + * The initialize method will invoke the provided callback with an instance of the mod API, to be used by the mod developer. + * + * The initialize method needs to be invoked in order for the mod to function. Even if the mod only displays static content, the API must be initialized in order for events and export to work. + * @public + * @param onLoaded - Callback that is called when the mod API is initialized and ready to be interacted with. + */ +export declare function initialize(onLoaded: OnLoadCallback): void; + +/** + * Represents the styling information that applies to scale lines in the Mod Visualization. + * @public + */ +export declare interface LineStylingInfo { + /** + * Gets the stroke to use for scale lines. This value is valid a CSS color or the value `"none"`. + */ + stroke: string; +} + +/** + * Marking information for a {@link DataView}. + * @public + */ +export declare interface MarkingInfo { + /** The hex code for the marking. Note that when the mod has a defined color axis, the color should be retrieved via the {@link DataViewRow.color} method. */ + colorHexCode: string; + /** The name of the marking. */ + name: string; +} + +/** + * Specifies how a Marking shall be modified. + *
+ * - "Replace" - replaces the current marking.
+ * - "Add" - adds to the current marking.
+ * - "Subtract" - removes the current marking.
+ * - "Toggle" - toggles marking on each item in the set.
+ * - "Intersect" - marks the intersection of the current marking and the specified set.
+ * - "ToggleOrAdd" - will behave like toggle if all or no rows in the set are marked, otherwise it is an add operation. This is the default Spotfire behavior for control marking.
+ * 
+ * @public + */ +export declare type MarkingOperation = "Replace" | "Add" | "Subtract" | "Toggle" | "Intersect" | "ToggleOrAdd"; + +/** + * Extract from T the keys of all properties with function values. + * @public + */ +export declare type MethodKeys = { + [P in keyof T]: T[P] extends Function ? P : never; +}[keyof T]; + +/** + * Represents the entire Mod API and exposes methods for interacting with and reading data from + * the Mod Visualization and the Spotfire document. + * + * Reading content from the Mod is made by using either of the methods {@link Reader.subscribe} or {@link Reader.once} on an instance of a {@link Reader}. + * @public + */ +export declare interface Mod { + /** + * Gets an object that provides access to Spotfire document. + */ + document: SpotfireDocument; + /** + * Gets an object representing the content in the Mod Visualization and provides methods to read and/or modified it. + */ + visualization: ModVisualization; + /** + * Provides access to the {@link ModProperty} with the specified `name`. + */ + property(name: string): ReadableProxy>; + /** + * Provides read-only access to the current size of the browser window in which the Mod + * is rendered. That is, the size of the iframe created for the Mod in the Spotfire UI. + */ + windowSize(): Readable; + /** + * Creates a {@link Reader} that can be used to access content specified by the {@link Readable} parameters. + * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked + * when one or more of the {@link Readable}s have changed. + * @param readables - The {@link Readable}s that will be available in the reader. + */ + createReader>(...readables: T): Reader>; + /** + * Gets an object that allows showing Spotfire controls and other UI component, like context menus, tooltips, etc. + */ + controls: Controls; + /** + * Performs a set of synchronous modifications in an explicit transaction to the Spotfire document. + * + * Use of this method is only needed to make sure that a set of modifications are done as one transaction, thereby resulting in one undo step. + * Modifications done outside of a transaction action callback will be grouped together in an implicit transaction. + * + * @param action - callback with a set of modifications + * @param onComplete - optional callback that is called when the transaction is committed or rolled back. When there is an error argument in the callback the transaction was rolled back. + * @example + * ``` + * mod.transaction(() => { + * mod.property("X").set("new value for X"); + * mod.property("Y").set("new value for Y"); + * }, + * (error) => { + * if (error) { + * // Show error message. + * } + * else { + * // Handle success, e.g. re-enable action button. + * } + * }); + * ``` + */ + transaction(action: () => void, onComplete?: (error?: string) => void): void; + /** + * Get the Mod's render context. This function should be invoked as soon as possible in the {@link initialize} callback. + * + * If this method is called in the {@link initialize} callback, Spotfire will wait for the Mod to finish rendering during + * an export. The export will be made once the {@link RenderContext.signalRenderComplete} method has been called. + * + * If this method is not called in the {@link initialize} callback, Spotfire will _not_ wait for the Mod to finish rendering during + * an export. Instead, the Mod will be automatically exported after one second. + */ + getRenderContext(): RenderContext; + /** + * Get mod metadata - name, id, version, etc. + */ + metadata: ModMetadata; +} + +/** + * Represents that metadata of the Mod Visualization, as defined in the mod-manifest-json. + * @public + */ +export declare interface ModMetadata { + /** + * Gets the id of the Mod Visualization, as defined in the mod-manifest-json. + */ + id: string; + /** + * Gets the name of the Mod Visualization, as defined in the mod-manifest-json. + */ + name: string; + /** + * Gets the version of the Mod Visualization, as defined in the mod-manifest-json. + */ + version: string; + /** + * Gets the api version used by the Mod Visualization, as declared in the mod-manifest-json. + */ + apiVersion: string; +} + +/** + * Represents a property owned by the Mod Visualization. + * The Mod manifest defines the properties owned by the Mod Visualization. + * @public + */ +export declare interface ModProperty extends ModPropertyValue { + /** + * Set the value of this instance. + * @param value - The value to set. + */ + set(value: T): void; +} + +/** + * Represents the data types possible to store in a mod {@link ModProperty}. + * @public + */ +export declare type ModPropertyDataType = string | number | boolean; + +/** + * Represents the values held by a {@link ModProperty}. + * @public + */ +export declare interface ModPropertyValue { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets the value held by this instance; + */ + value(): T2 | null; +} + +/** + * Represents the content in the Mod Visualization that can be read and/or modified. + * + * The content is a combination of state stored by the Mod Visualization in the Spotfire document, + * its view of the data and relevant UI properties. All values are {@link Readable} objects and are + * typically accessed using the {@link Reader} object. + * + * @public + */ +export declare interface ModVisualization { + /** + * Provides access to the {@link DataView} that the Mod Visualization is to render. + */ + data(): DataViewProxy; + /** + * Provides access to the {@link DataTable} in the Spotfire document that the Mod Visualization + * uses as its main table. + */ + mainTable(): ReadableProxy; + /** + * Sets the main {@link DataTable} in the Mod visualization. + * @param tableName - The name or id of the {@link DataTable} to be used as main table. + */ + setMainTable(tableName: string): void; + /** + * Sets the main {@link DataTable} in the Mod visualization. + * @param table - The {@link DataTable} object to be used as main table. + */ + setMainTable(table: DataTable): void; + /** + * Provides access to the {@link Axis} in the Mod Visualization with the specified `name`. All axes + * must be declared in the mod-manifest.json. + * @param name - The name of the {@link Axis}. + */ + axis(name: string): ReadableProxy; +} + +/** + * Represents methods that are not available on a {@link ReadableProxy}. To access these methods the {@link ReadableProxy} must be awaited. + * @public + */ +export declare type OmittedReadableProxyMethods = "value" | "valueList"; + +/** + * Represents a function that consumes the {@link Mod} API. See {@link initialize}. + * @public + */ +export declare type OnLoadCallback = (mod: Mod) => void | Promise; + +/** + * Represents a Page in a Spotfire document. + * @public + */ +export declare interface Page extends PageValues { + /** + * Sets this instance as the active page. + */ + setAsActive(): void; +} + +/** + * Represents the values held by a {@link Page}. + * @public + */ +export declare interface PageValues { + /** + * Gets the name of this instance. + */ + name: string; + /** + * Gets a value indicating whether this instance is visible. + */ + visible: boolean; + /** + * Gets the zero-based index in this instance in the page collection in the Spotfire document. + */ + index: number; + /** + * Gets the unique id for this instance. + * The id is stable during the page life cycle, thus it can be used to store as a reference to this page in a {@link ModProperty} or {@link AnalysisProperty}. + * @version 1.1 + */ + id: string; +} + +/** + * Represents an object that can be used to create and show a Spotfire popout dialog. + * @public + */ +export declare interface Popout { + /** + * Shows a pop out dialog as specified by the `options` and `controls`. + * @param options - Specifies where and how to show the pop out dialog. + * @param components - A callback that shall produce the array of components that the + * pop out will show. If the pop out is shown with {@link PopoutOptions.autoClose} set to `false` + * this callback will be invoked every time the user has interacted with one of the {@link PopoutComponent}s + * so that the pop out can be re-rendered to show the result of the interaction. + */ + show(options: PopoutOptions, components: () => PopoutSection[]): PopoutDialog; + /** + * Creates a section that contains a heading and components. + * @param options - Specifies the heading and the components. + */ + section(options: PopoutSectionOptions): PopoutSection; + /** + * Gets an object with methods that create {@link PopoutComponent}s. + */ + components: PopoutComponentFactory; +} + +/** + * Represents options describing how to render a button. See {@link PopoutComponentFactory.button}. + * @public + */ +export declare interface PopoutButtonOptions { + /** + * Specifies the name that identifies the component. + */ + name: string; + /** + * Specifies the text to display in the button. + */ + text: string; +} + +/** + * Represents options describing how to render a checkbox. See {@link PopoutComponentFactory.checkbox}. + * @public + */ +export declare interface PopoutCheckboxOptions { + /** + * Specifies the name that identifies the component. + */ + name: string; + /** + * Specifies the text to display next to the checkbox. + */ + text: string; + /** + * Specifies the tooltip to display. If undefined, no tooltip is shown. + */ + tooltip?: string; + /** + * Specifies whether the checkbox is checked. + */ + checked: boolean; + /** + * Specifies whether the checkbox is enabled. + */ + enabled: boolean; +} + +/** + * Represents a component of a pop out dialog. See {@link Controls.popout}. + * @public + */ +export declare interface PopoutComponent { + /** + * Gets the type of the control. + */ + type: string; +} + +/** + * Represents the data of an event that occurs when a {@link PopoutComponent} has been changed by the user. + * @public + */ +export declare interface PopoutComponentEvent { + /** + * Gets the name that identifies the component that has been changed. + */ + name: string; + /** + * Gets the value of the component that has been changed. + */ + value?: any; +} + +/** + * Represents an object with methods that create {@link PopoutComponent}s. + * @public + */ +export declare interface PopoutComponentFactory { + /** + * Creates a component that renders as a radio button. + * @param options - Specifies how the radio button shall be rendered. + */ + radioButton(options: PopoutRadioButtonOptions): PopoutComponent; + /** + * Creates a component that renders as a checkbox. + * @param options - Specifies how the checkbox shall be rendered. + */ + checkbox(options: PopoutCheckboxOptions): PopoutComponent; + /** + * Creates a component that renders as a button. + * @param options - Specifies how the button shall be rendered. + */ + button(options: PopoutButtonOptions): PopoutComponent; +} + +/** + * Represents a pop out dialog that is shown by Spotfire. See {@link Controls.popout}. + * @public + */ +export declare interface PopoutDialog { + /** + * Closes the pop out dialog. + */ + close(): void; +} + +/** + * Represents options that specifies where and how a pop out dialog shall be shown. + * @public + */ +export declare interface PopoutOptions { + /** + * Specifies the horizontal pixel coordinate of the anchor point of the pop out dialog. + * + * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. + */ + x: number; + /** + * Specifies the vertical pixel coordinate of the anchor point of the pop out dialog. + * + * The coordinate is specified relative to an origin in the top left corner of the Mod viewport. + */ + y: number; + /** + * Specifies how to position of the popout in relation to the anchor point specified by `x` and `y`. + * + * The alignment value specifies which edge of the pop out that shall be closest to the anchor point. For example, + * to show the pop out below the anchor point, specify `Top`. + */ + alignment?: "Left" | "Right" | "Top" | "Bottom"; + /** + * Specifies whether to automatically close the popout when one of the components in it is clicked. + */ + autoClose: boolean; + /** + * Specifies the callback to invoke when a component in the pop out dialog is changed. + */ + onChange(event: PopoutComponentEvent): void; + /** + * Specifies the callback to invoke when the pop out dialog has been closed. + * This callback is optional and can be left unassigned. + */ + onClosed?(): void; +} + +/** + * Represents options describing how to render a radio button. See {@link PopoutComponentFactory.radioButton}. + * @public + */ +export declare interface PopoutRadioButtonOptions { + /** + * Specifies the name that identifies the component. + */ + name: string; + /** + * Specifies the text to display next to the radio button. + */ + text: string; + /** + * Specifies the tooltip to display. If undefined, no tooltip is shown. + */ + tooltip?: string; + /** + * Specifies whether the radio button is checked. + */ + checked: boolean; + /** + * Specifies whether the radio button is enabled. + * @version 1.1 + */ + enabled?: boolean; + /** + * Specifies the value represented by the radio button. + */ + value: any; +} + +/** + * Represents a section of a pop out dialog. See {@link Controls.popout}. + * @public + */ +export declare interface PopoutSection { + /** + * Specifies the heading of the section + */ + heading?: string; + /** + * Specifies the components in the section + */ + children: PopoutComponent[]; +} + +/** + * Represents a section of a pop out dialog. See {@link Controls.popout}. + * @public + */ +export declare interface PopoutSectionOptions { + /** + * Specifies the heading of the section + */ + heading?: string; + /** + * Specifies the components in the section + */ + children: PopoutComponent[]; +} + +/** + * Represents an object with methods to show and hide the Spotfire progress indicator. + * @public + */ +export declare interface Progress { + /** + * Shows the progress indicator. + */ + show(): void; + /** + * Hides the progress indicator. + */ + hide(): void; +} + +/** + * Represents a value in the Mod API that can be accessed and/or modified. These values can + * be used when creating an instance of a {@link Reader} via the {@link Mod.createReader} method. + * @public + */ +export declare interface Readable extends Promise { + /** + * Used internally by the Mod api. + */ + readableID: string; + /** + * Used internally by the Mod api. + */ + __futureValue?: T; +} + +/** + * Represents an object that provides access to a node of the specified type. + * It can be used as a {@link Readable} but also acts as a proxy to the node by exposing all its methods. + * Nodes that represent model state in the Spotfire document can thus be modified without first waiting + * and materializing them in the browser. + * + * A full node will be created by using a {@link Reader}. + * @public + */ +export declare type ReadableProxy = Readable & + Omit>, OmittedReadableProxyMethods>; + +/** + * The reader is responsible for combining multiple {@link Readable}s and scheduling a callback to be invoked + * when one or more of the {@link Readable}s have changed. Choose one of the appropriate methods; + * {@link Reader.once} or {@link Reader.subscribe} that suits the needs of the Mod. + * An instance of the reader is created by calling the {@link Mod.createReader} method. + * @public + */ +export declare interface Reader> { + /** + * Subscribe to changes in the content for the specified readables when the reader was created. + * @example Subscribe to changes in the {@link DataView}. + * + * ``` + * let reader = mod.createReader(mod.visualization.data()); + * reader.subscribe((dataView) => { + * console.log(await dataView.rowCount()); + * }); + * ``` + * + * @param callback - The callback function that is called every time when there is at least one new value to read. + * The callback function will not be called until the previous callback function has returned. + * @param onReadError - Optional callback function that will be called if there are errors reading the readables. + */ + subscribe(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; + /** + * Read the content once for the readables specified when the reader was created. + * Any current subscription for this reader will be cancelled. + * @example Read content of a mod property once. + * + * ``` + * let reader = mod.createReader(mod.property("CreatedBy")); + * reader.once((createdBy) => { + * console.log(await createdBy.value()); + * }); + * ``` + * + * @param callback - The callback function that is called once when there is at least one new value to read. + * @param onReadError - Optional callback function that will be called if there are errors reading the readables. + */ + once(callback: (...values: T) => void, onReadError?: (error: string) => void): ReaderSubscription; + /** + * Checks if any of the readables have a new value available. If this function returns true, + * the callback in the current subscription, or a new call to {@link Reader.once} is guaranteed + * to be invoked. + * The intended use of this method is to cancel rendering of the Mod if there are new values to any of the + * readables specified when the reader was created. + */ + hasExpired(): Promise; + /** + * Check whether one or more passed arguments are new since the last time the subscribe loop was called. + * + * @example Check if the data view has changed in the subscribe loop. + * + * ``` + * let reader = mod.createReader(mod.visualization.data(), mod.windowSize()); + * reader.subscribe((dataView, size) => { + * console.log(reader.hasValueChanged(dataView)); + * }); + * ``` + * + * @param value - Value from `subscribe` or `once` arguments. + * @param values - Additional values from `subscribe` or `once` arguments. + * @returns true if any of the values are new, otherwise false. + * @version 1.3 + */ + hasValueChanged(value: UnionFromTupleTypes, ...values: UnionFromTupleTypes[]): boolean; +} + +/** + * Represents a {@link Reader} subscription. + * @version 1.1 + * @public + */ +export declare interface ReaderSubscription { + /** + * Immediately cancel the current subscription. + * Neither the callback or the error callback will be invoked afterwards. + */ + cancel(): void; +} + +/** + * Represents contextual information needed when rendering a Mod, either in the UI or as part of an export. + * @public + */ +export declare interface RenderContext { + /** + * Gets a value indicating whether the Mod is interactive. + * + * When this value is false the Mod is not interactive. This occurs during export, for instance to an image or to PDF. + * This property can be used to hide selected controls and to avoid animations when rendering in an export context. + */ + interactive: boolean; + /** + * Gets the image pixel ratio that shall be used when rendering rasterized images and/or using a canvas element. + */ + imagePixelRatio: number; + /** + * Gets a value indicating whether the Spotfire UI is in editing mode. + * + * When this value is true the Spotfire UI displays authoring UI elements, such as axis selectors. + * This property can be used to hide controls not meant for consumers of the analysis. + * @version 1.2 + */ + isEditing: boolean; + /** + * Gets information about the currently used theme. + */ + styling: StylingInfo; + /** + * Signals that the mod is ready to be exported. + * + * If this method is not called, Spotfire will perform export (and preview generation etc.) of the Mod without knowing + * if it has finished rendering. + * + * The default maximum allowed time for a Mod to finish rendering is 20 seconds. + */ + signalRenderComplete(): void; +} + +/** + * Represents the styling information that applies to scales in the Mod Visualization. + * @public + */ +export declare interface ScaleStylingInfo { + /** + * Gets and object describing the font that shall be used in the scales of the Mod Visualization. + */ + font: FontInfo; + /** + * Gets and object describing the styling information for scale lines in the Mod Visualization. + */ + line: LineStylingInfo; + /** + * Gets and object describing the styling information for scale ticks in the Mod Visualization. + */ + tick: TickStylingInfo; +} + +/** + * Represents the size of an area in the UI, for example the size of the browser window in which the Mod + * is rendered. See {@link Mod.windowSize}. + * @public + */ +export declare interface Size { + /** + * Gets the width. + */ + width: number; + /** + * Gets the height. + */ + height: number; +} + +/** + * Represents the Spotfire document and provides access to read and modify parts of it. + * @public + */ +export declare interface SpotfireDocument { + /** + * Provides access to the {@link DataTable}s in the Spotfire document. + */ + tables(): Readable; + /** + * Provides access to the {@link DataTable} with the specified `name` in the Spotfire document. + */ + table(name: string): ReadableProxy; + /** + * Provides access to the `Document Properties` in the Spotfire Document. + */ + properties(): Readable; + /** + * Provides access to the `Document Property` with the specified `name` in the Spotfire Document. + */ + property( + name: string + ): ReadableProxy>; + /** + * Provides access to the {@link Page}s in the Spotfire document. + */ + pages(): Readable; + /** + * Provides access to the active {@link Page} in the Spotfire document. That is, the page that is currently visible. + */ + activePage(): ReadableProxy; + /** + * Sets the specified {@link Page} as the active page. + * @param name - The name/title or id of the page to set as active. + */ + setActivePage(name: string): void; + /** + * Sets the specified index as the active page index. + * @param index - The index of the page to set as active. + */ + setActivePage(index: number): void; + /** + * Sets the specified {@link Page} as the active page. + * @param page - The {@link Page} object to set as active. + */ + setActivePage(page: Page): void; +} + +/** + * Represents the styling (theme) that affects the look and feel of a Mod Visualization. + * @public + */ +export declare interface StylingInfo { + /** + * Gets an object describing the general aspects of the styling, including the font and background color + * to use in the Mod Visualization. + */ + general: GeneralStylingInfo; + /** + * Gets an object describing the styling of the scales in the Mod Visualization. + */ + scales: ScaleStylingInfo; +} + +/** + * Represents the styling information that applies to scale ticks in the Mod Visualization. + * @public + */ +export declare interface TickStylingInfo { + /** + * Gets the stroke to use for scale ticks. This value is valid a CSS color or the value `"none"`. + */ + stroke: string; +} + +/** + * Represents a Time property. The time has no notion of time zone. + * @public + */ +export declare interface Time { + /** The total number of milliseconds since midnight. */ + totalMilliseconds: number; + /** The millisecond part of the instance. */ + milliseconds: number; + /** The total number of seconds since midnight. */ + totalSeconds: number; + /** The second part of the instance. */ + seconds: number; + /** The total number of minutes since midnight. */ + totalMinutes: number; + /** The minute part of the instance. */ + minutes: number; + /** The total number of hours since midnight. */ + hours: number; +} + +/** + * Represents a TimeSpan property. A time span is used to measure the time between two points in time. + * @public + */ +export declare interface TimeSpan { + /** The total number of milliseconds of the instance. */ + totalMilliseconds: number; + /** The millisecond part of the instance. */ + milliseconds: number; + /** The total number of seconds of the instance. */ + totalSeconds: number; + /** The second part of the instance. */ + seconds: number; + /** The total number of minutes of the instance. */ + totalMinutes: number; + /** The minute part of the instance. */ + minutes: number; + /** The total number of hours of the instance. */ + totalHours: number; + /** The hour part of the instance. */ + hours: number; + /** The day part of the instance. */ + days: number; +} + +/** + * Represents an object with methods to show and hide a Spotfire tooltip. + * @public + */ +export declare interface Tooltip { + /** + * Shows a tooltip with the specified `content` text. + * + * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. + * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. + * + * Subsequent calls to `show` can be made to update the tooltip text. + * @param content - The text to show in the tooltip. + */ + show(content: string): void; + /** + * Shows a tooltip for the specified `row` as it has been configured in the properties panel. + * + * The tooltip is shown using the same style and initial delay as native Spotfire visualizations. + * Once shown, the tooltip will follow the mouse around until {@link Tooltip.hide} is called. + * + * Subsequent calls to `show` can be made to update the tooltip text. + * + * @note For this feature to work, the dataViewDefinition.tooltip.enabled in the mod-manifest.json needs to be set to true. + * + * @param row - The row to show text for in the tooltip. + * @version 1.3 + */ + show(row: DataViewRow): void; + /** + * Hides the tooltip that is currently being showed, if any. + */ + hide(): void; +} + +/** + * Extract all possible types in a Tuple type. + * @public + */ +export declare type UnionFromTupleTypes = T[number] | U; + +export { } diff --git a/examples/ts-spiderchart-d3/src/index.ts b/examples/ts-spiderchart-d3/src/index.ts index 99ab1040..28c7d5e2 100644 --- a/examples/ts-spiderchart-d3/src/index.ts +++ b/examples/ts-spiderchart-d3/src/index.ts @@ -1,7 +1,7 @@ import { Data, Options, render } from "./render"; import { createLabelPopout } from "./popout"; import { buildColorSeries, Point } from "./series"; -import { AxisPart, DataView, DataViewHierarchyNode, Mod, ModProperty } from "spotfire-api"; +import { DataView, Mod, ModProperty } from "spotfire-api"; var events = require("events"); const Spotfire = window.Spotfire; @@ -172,10 +172,6 @@ async function buildData(mod: Mod, dataView: DataView): Promise { const xAxisData = xHierarchyLeaves.map((leaf) => leaf.formattedPath()); - const xAxisMeta = await mod.visualization.axis("X"); - const yAxisMeta = await mod.visualization.axis("Y"); - const colorAxisMeta = await mod.visualization.axis("Color"); - return { clearMarking: dataView.clearMarking, yDomain: { min: minValue, max: maxValue }, @@ -190,48 +186,6 @@ async function buildData(mod: Mod, dataView: DataView): Promise { }; function createPointTooltip(point: Point) { - const separator = "\n"; - let colorValues = getFormattedValues(colorLeaves[point.index]); - let xValues = getFormattedValues(xHierarchyLeaves[point.xIndex]); - let yDisplayName = yAxisMeta.parts[0].displayName; - - if (yAxisMeta.parts.length > 1) { - // Find the corresponding display name for the y axis value. - let colorLevelForColumnNames = colorAxisMeta.parts.map((p) => p.expression).indexOf("[Axis.Default.Names]"); - let xLevelForColumnNames = xAxisMeta.parts.map((p) => p.expression).indexOf("[Axis.Default.Names]"); - if (colorLevelForColumnNames >= 0) { - yDisplayName = colorValues[colorLevelForColumnNames]; - } - - if (xLevelForColumnNames >= 0) { - yDisplayName = xValues[xLevelForColumnNames]; - } - } - - return [ - createAxisTooltip(xAxisMeta.parts, xValues, separator) || - xAxisMeta.parts[0].displayName + ": " + xHierarchyLeaves[point.xIndex].formattedPath(), - yDisplayName + ": " + point.Y_Formatted, - colorAxisMeta.parts.length > 0 - ? createAxisTooltip(colorAxisMeta.parts, colorValues, separator) || - colorAxisMeta.parts[0].displayName + ": " + colorLeaves[point.index].formattedPath() - : "" - ].join(separator); - } - - function getFormattedValues(node: DataViewHierarchyNode) { - let values: string[] = []; - while (node.parent) { - values.push(node.formattedValue()); - node = node.parent; - } - - return values.reverse(); - } - - function createAxisTooltip(axisParts: AxisPart[], formattedValues: string[], separator: string) { - return axisParts.length == formattedValues.length - ? formattedValues.map((v, i) => axisParts[i].displayName + ": " + v).join(separator) - : null; + return point.tooltip(); } } diff --git a/examples/ts-spiderchart-d3/src/series.ts b/examples/ts-spiderchart-d3/src/series.ts index 2106d6a8..12441815 100644 --- a/examples/ts-spiderchart-d3/src/series.ts +++ b/examples/ts-spiderchart-d3/src/series.ts @@ -8,7 +8,7 @@ export interface Serie { } export interface Point { - tooltip(): string; + tooltip(): DataViewRow; mark(mode?: MarkingOperation): void; xIndex: number; index: number; @@ -23,7 +23,7 @@ export function buildColorSeries( colorLeaves: DataViewHierarchyNode[], xLeaves: DataViewHierarchyNode[], hasX: boolean, - getTooltip: (point: Point) => string, + getTooltip: (point: Point) => DataViewRow, yMinValue: number ): Serie[] { const numberOrZero = (val: any) => (typeof val == "number" ? val : 0); @@ -69,7 +69,7 @@ export function buildColorSeries( function createPoint(row: DataViewRow, colorLeaf: DataViewHierarchyNode): Point { return { tooltip() { - return getTooltip(this); + return row; }, mark: (m) => row.mark(m), xIndex: hasX ? row.categorical("X").leafIndex : 0, diff --git a/examples/ts-spiderchart-d3/static/mod-manifest.json b/examples/ts-spiderchart-d3/static/mod-manifest.json index 7d589263..4f61bba0 100644 --- a/examples/ts-spiderchart-d3/static/mod-manifest.json +++ b/examples/ts-spiderchart-d3/static/mod-manifest.json @@ -1,6 +1,6 @@ { - "apiVersion": "1.2", - "version": "1.0", + "apiVersion": "1.3", + "version": "1.1", "name": "Spider chart", "id": "spotfire-spider-chart-mod", "icon": "icon.svg", @@ -27,6 +27,7 @@ } ], "dataViewDefinition": { + "tooltip": { "enabled": true }, "colorAxis": { "mode": "categorical", "dropTarget": { diff --git a/examples/ts-spiderchart-d3/tsconfig.json b/examples/ts-spiderchart-d3/tsconfig.json index 699a358f..fd5aaace 100644 --- a/examples/ts-spiderchart-d3/tsconfig.json +++ b/examples/ts-spiderchart-d3/tsconfig.json @@ -14,7 +14,7 @@ "lib": ["es2019", "dom"], "baseUrl": ".", "paths": { - "spotfire-api": ["./spotfire/spotfire-api-1-2"], + "spotfire-api": ["./spotfire/spotfire-api-1-3"], }, "typeRoots": ["./spotfire", "./node_modules/@types"] },