update some of the packages to the latest. (#61)

* update some of the packages to the latest.

* remove some files from package
This commit is contained in:
giakas 2020-11-25 12:48:06 -08:00 коммит произвёл GitHub
Родитель b653fff4dd
Коммит 2645c677b0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
35 изменённых файлов: 8764 добавлений и 5280 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -357,3 +357,5 @@ MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder # Ionide (cross platform F# VS Code tools) working folder
.ionide/ .ionide/
.eslintcache

3
.vscodeignore Normal file
Просмотреть файл

@ -0,0 +1,3 @@
**/*.ts
src/**
public/**

13897
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -179,25 +179,25 @@
"refreshVSToken": "vsts-npm-auth -config .npmrc" "refreshVSToken": "vsts-npm-auth -config .npmrc"
}, },
"dependencies": { "dependencies": {
"@types/keytar": "^4.4.2", "@fluentui/react": "^7.153.0",
"@typescript-eslint/eslint-plugin": "^2.34.0", "@uifabric/icons": "^7.5.17",
"@typescript-eslint/parser": "^2.34.0", "@uifabric/react-hooks": "^7.13.9",
"@vienna/react-dag-editor": "2.0.0-rc.38", "@vienna/react-dag-editor": "2.0.0-rc.38",
"azure-iothub": "^1.12.4", "azure-iothub": "1.12.4",
"dagre": "^0.8.5", "dagre": "^0.8.5",
"eslint": "^6.8.0",
"keytar": "^6.0.1", "keytar": "^6.0.1",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"office-ui-fabric-react": "^7.117.1",
"react": "^16.13.1", "react": "^16.13.1",
"react-accessible-accordion": "^3.3.3", "react-accessible-accordion": "^3.3.3",
"react-accessible-tree": "^1.0.3", "react-accessible-tree": "^1.0.3",
"react-dom": "^16.13.1", "react-dom": "^16.13.1",
"react-scripts": "^3.4.3", "typescript": "^3.9.4"
"typescript": "^3.9.4",
"eslint-plugin-react-hooks": "^2.5.1"
}, },
"devDependencies": { "devDependencies": {
"@types/keytar": "^4.4.2",
"@typescript-eslint/eslint-plugin": "4.0.0",
"@typescript-eslint/parser": "^3.0.0",
"react-scripts": "^4.0.0",
"@types/dagre": "^0.7.44", "@types/dagre": "^0.7.44",
"@types/lodash": "^4.14.155", "@types/lodash": "^4.14.155",
"@types/node": "^12.12.0", "@types/node": "^12.12.0",
@ -205,6 +205,8 @@
"@types/react-dom": "^16.9.8", "@types/react-dom": "^16.9.8",
"@types/uuid": "^8.0.0", "@types/uuid": "^8.0.0",
"@types/vscode": "^1.38.0", "@types/vscode": "^1.38.0",
"eslint": "^7.11.0",
"eslint-plugin-react-hooks": "^4.0.8",
"prettier": "^2.0.5" "prettier": "^2.0.5"
}, },
"browserslist": { "browserslist": {

Просмотреть файл

@ -1,7 +1,7 @@
import "./App.css"; import "./App.css";
import { ITheme, Spinner, SpinnerSize } from "office-ui-fabric-react";
import { ThemeProvider } from "office-ui-fabric-react/lib/Foundation";
import React, { useEffect } from "react"; import React, { useEffect } from "react";
import { ITheme, Spinner, SpinnerSize } from "@fluentui/react";
import { ThemeProvider } from "@fluentui/react/lib/Foundation";
import { useBoolean } from "@uifabric/react-hooks"; import { useBoolean } from "@uifabric/react-hooks";
import { MediaGraphInstance } from "../../Common/Types/LVASDKTypes"; import { MediaGraphInstance } from "../../Common/Types/LVASDKTypes";
import Graph from "../Models/GraphData"; import Graph from "../Models/GraphData";

Просмотреть файл

@ -1,10 +1,5 @@
import {
ActionButton,
ITextField,
Stack,
TextField
} from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { ActionButton, ITextField, Stack, TextField } from "@fluentui/react";
import { useBoolean } from "@uifabric/react-hooks"; import { useBoolean } from "@uifabric/react-hooks";
import { import {
CanvasMouseMode, CanvasMouseMode,

Просмотреть файл

@ -1,11 +1,11 @@
import React from "react";
import { import {
ActionButton, ActionButton,
ITextField, ITextField,
Stack, Stack,
TextField, TextField,
VerticalDivider VerticalDivider
} from "office-ui-fabric-react"; } from "@fluentui/react";
import React from "react";
import { useBoolean } from "@uifabric/react-hooks"; import { useBoolean } from "@uifabric/react-hooks";
import { import {
CanvasMouseMode, CanvasMouseMode,

Просмотреть файл

@ -1,8 +1,14 @@
import "./ItemPanel.css"; import "./ItemPanel.css";
import { Text } from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { Accordion, AccordionItem, AccordionItemButton, AccordionItemHeading, AccordionItemPanel } from "react-accessible-accordion"; import {
Accordion,
AccordionItem,
AccordionItemButton,
AccordionItemHeading,
AccordionItemPanel
} from "react-accessible-accordion";
import { v4 as uuid } from "uuid"; import { v4 as uuid } from "uuid";
import { Text } from "@fluentui/react";
import { ICanvasNode, Item, usePropsAPI } from "@vienna/react-dag-editor"; import { ICanvasNode, Item, usePropsAPI } from "@vienna/react-dag-editor";
import Definitions from "../Definitions/Definitions"; import Definitions from "../Definitions/Definitions";
import Localizer from "../Localization/Localizer"; import Localizer from "../Localization/Localizer";

Просмотреть файл

@ -1,11 +1,11 @@
import * as React from "react";
import { import {
FontIcon, FontIcon,
FontWeights, FontWeights,
mergeStyleSets, mergeStyleSets,
Stack, Stack,
Text Text
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import { usePropsAPI } from "@vienna/react-dag-editor"; import { usePropsAPI } from "@vienna/react-dag-editor";
import { StatusIcon } from "./StatusIcon"; import { StatusIcon } from "./StatusIcon";

Просмотреть файл

@ -1,5 +1,5 @@
import { Stack, TextField } from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { Stack, TextField } from "@fluentui/react";
import { useBoolean } from "@uifabric/react-hooks"; import { useBoolean } from "@uifabric/react-hooks";
import { IPanelConfig, usePropsAPI } from "@vienna/react-dag-editor"; import { IPanelConfig, usePropsAPI } from "@vienna/react-dag-editor";
import { MediaGraphParameterDeclaration } from "../../Common/Types/LVASDKTypes"; import { MediaGraphParameterDeclaration } from "../../Common/Types/LVASDKTypes";

Просмотреть файл

@ -1,3 +1,4 @@
import * as React from "react";
import { import {
DefaultButton, DefaultButton,
Dialog, Dialog,
@ -9,8 +10,7 @@ import {
Pivot, Pivot,
PivotItem, PivotItem,
Stack Stack
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import { useId } from "@uifabric/react-hooks"; import { useId } from "@uifabric/react-hooks";
import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes"; import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";

Просмотреть файл

@ -1,3 +1,5 @@
import { relative } from "path";
import * as React from "react";
import { import {
CheckboxVisibility, CheckboxVisibility,
DefaultButton, DefaultButton,
@ -11,9 +13,7 @@ import {
Stack, Stack,
Text, Text,
TextField TextField
} from "office-ui-fabric-react"; } from "@fluentui/react";
import { relative } from "path";
import * as React from "react";
import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes"; import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";
import { ParameterEditorParameterList } from "./ParameterEditorParameterList"; import { ParameterEditorParameterList } from "./ParameterEditorParameterList";

Просмотреть файл

@ -1,3 +1,4 @@
import * as React from "react";
import { import {
CheckboxVisibility, CheckboxVisibility,
ChoiceGroup, ChoiceGroup,
@ -8,8 +9,7 @@ import {
ScrollablePane, ScrollablePane,
Selection, Selection,
SelectionMode SelectionMode
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes"; import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";
import { ParamCreateConfig } from "../ParameterSelector/ParameterSelector"; import { ParamCreateConfig } from "../ParameterSelector/ParameterSelector";

Просмотреть файл

@ -1,11 +1,6 @@
import some from "lodash/some"; import some from "lodash/some";
import {
Dropdown,
IDropdownOption,
Stack,
TextField
} from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { Dropdown, IDropdownOption, Stack, TextField } from "@fluentui/react";
import { import {
MediaGraphParameterDeclaration, MediaGraphParameterDeclaration,
MediaGraphParameterType MediaGraphParameterType

Просмотреть файл

@ -1,3 +1,4 @@
import * as React from "react";
import { import {
Announced, Announced,
CheckboxVisibility, CheckboxVisibility,
@ -14,8 +15,7 @@ import {
SelectionMode, SelectionMode,
Stack, Stack,
TextField TextField
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import { useBoolean } from "@uifabric/react-hooks"; import { useBoolean } from "@uifabric/react-hooks";
import { import {
MediaGraphParameterDeclaration, MediaGraphParameterDeclaration,

Просмотреть файл

@ -1,5 +1,5 @@
import { mergeStyleSets, Text, TextField } from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { getTheme, mergeStyleSets, Text, TextField } from "@fluentui/react";
import Localizer from "../Localization/Localizer"; import Localizer from "../Localization/Localizer";
import { GraphInstanceParameter } from "../Types/GraphTypes"; import { GraphInstanceParameter } from "../Types/GraphTypes";

Просмотреть файл

@ -1,5 +1,5 @@
import { FontIcon, IconButton, Stack, Text } from "office-ui-fabric-react";
import React from "react"; import React from "react";
import { FontIcon, IconButton, Stack, Text } from "@fluentui/react";
import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes"; import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";
import { ParameterEditorCreateForm } from "../ParameterEditor/ParameterEditorCreateForm"; import { ParameterEditorCreateForm } from "../ParameterEditor/ParameterEditorCreateForm";

Просмотреть файл

@ -1,3 +1,4 @@
import React from "react";
import { import {
DefaultButton, DefaultButton,
IIconProps, IIconProps,
@ -8,13 +9,8 @@ import {
Separator, Separator,
Stack, Stack,
Text Text
} from "office-ui-fabric-react"; } from "@fluentui/react";
import { import { Dialog, DialogFooter, DialogType } from "@fluentui/react/lib/Dialog";
Dialog,
DialogFooter,
DialogType
} from "office-ui-fabric-react/lib/Dialog";
import React from "react";
import { useBoolean } from "@uifabric/react-hooks"; import { useBoolean } from "@uifabric/react-hooks";
import { IPropsAPI } from "@vienna/react-dag-editor"; import { IPropsAPI } from "@vienna/react-dag-editor";
import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes"; import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes";

Просмотреть файл

@ -1,5 +1,5 @@
import { ActionButton } from "office-ui-fabric-react/lib/Button";
import React, { useState } from "react"; import React, { useState } from "react";
import { ActionButton } from "@fluentui/react";
import { IPropsAPI } from "@vienna/react-dag-editor"; import { IPropsAPI } from "@vienna/react-dag-editor";
import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes"; import { MediaGraphParameterDeclaration } from "../../../Common/Types/LVASDKTypes";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";

Просмотреть файл

@ -1,3 +1,4 @@
import * as React from "react";
import { import {
Callout, Callout,
IButtonStyles, IButtonStyles,
@ -6,8 +7,7 @@ import {
IStackTokens, IStackTokens,
Label, Label,
Stack Stack
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import { useBoolean, useId } from "@uifabric/react-hooks"; import { useBoolean, useId } from "@uifabric/react-hooks";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";
import { AdjustedIconButton } from "../ThemeAdjustedComponents/AdjustedIconButton"; import { AdjustedIconButton } from "../ThemeAdjustedComponents/AdjustedIconButton";

Просмотреть файл

@ -1,3 +1,4 @@
import * as React from "react";
import { import {
ChoiceGroup, ChoiceGroup,
Dropdown, Dropdown,
@ -6,8 +7,7 @@ import {
IDropdownOption, IDropdownOption,
Text, Text,
TextField TextField
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import { useId } from "@uifabric/react-hooks"; import { useId } from "@uifabric/react-hooks";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";
import { ParameterizeValueRequestFunction } from "../../Types/GraphTypes"; import { ParameterizeValueRequestFunction } from "../../Types/GraphTypes";

Просмотреть файл

@ -1,5 +1,5 @@
import { Dropdown, IDropdownOption } from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { Dropdown, IDropdownOption } from "@fluentui/react";
import { useId } from "@uifabric/react-hooks"; import { useId } from "@uifabric/react-hooks";
import Definitions from "../../Definitions/Definitions"; import Definitions from "../../Definitions/Definitions";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";

Просмотреть файл

@ -1,10 +1,10 @@
import * as React from "react";
import { import {
DefaultButton, DefaultButton,
Dialog, Dialog,
DialogFooter, DialogFooter,
DialogType DialogType
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";
import { AdjustedPrimaryButton } from "../ThemeAdjustedComponents/AdjustedPrimaryButton"; import { AdjustedPrimaryButton } from "../ThemeAdjustedComponents/AdjustedPrimaryButton";

Просмотреть файл

@ -1,3 +1,4 @@
import * as React from "react";
import { import {
DefaultButton, DefaultButton,
Dialog, Dialog,
@ -7,8 +8,7 @@ import {
IDropdownOption, IDropdownOption,
Spinner, Spinner,
SpinnerSize SpinnerSize
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import { MediaGraphTopology } from "../../../Common/Types/LVASDKTypes"; import { MediaGraphTopology } from "../../../Common/Types/LVASDKTypes";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";
import { AdjustedPrimaryButton } from "../ThemeAdjustedComponents/AdjustedPrimaryButton"; import { AdjustedPrimaryButton } from "../ThemeAdjustedComponents/AdjustedPrimaryButton";

Просмотреть файл

@ -1,5 +1,5 @@
import { ActionButton } from "office-ui-fabric-react/lib/Button";
import * as React from "react"; import * as React from "react";
import { ActionButton } from "@fluentui/react";
import { MediaGraphTopology } from "../../../Common/Types/LVASDKTypes"; import { MediaGraphTopology } from "../../../Common/Types/LVASDKTypes";
import Localizer from "../../Localization/Localizer"; import Localizer from "../../Localization/Localizer";
import { SampleSelector } from "./SampleSelector"; import { SampleSelector } from "./SampleSelector";

Просмотреть файл

@ -1,4 +1,4 @@
import { IDropdownOption } from "office-ui-fabric-react"; import { IDropdownOption } from "@fluentui/react";
export const sampleOptionsList: IDropdownOption[] = [ export const sampleOptionsList: IDropdownOption[] = [
{ {

Просмотреть файл

@ -1,5 +1,5 @@
import { Icon, mergeStyles } from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { Icon, mergeStyles } from "@fluentui/react";
import { ICanvasNode } from "@vienna/react-dag-editor"; import { ICanvasNode } from "@vienna/react-dag-editor";
import { CanvasNodeData } from "../Types/GraphTypes"; import { CanvasNodeData } from "../Types/GraphTypes";

Просмотреть файл

@ -1,5 +1,5 @@
import { IButtonProps, IconButton, mergeStyles } from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { IButtonProps, IconButton, mergeStyles } from "@fluentui/react";
export const AdjustedIconButton: React.FunctionComponent<IButtonProps> = (props) => { export const AdjustedIconButton: React.FunctionComponent<IButtonProps> = (props) => {
const styles = { const styles = {

Просмотреть файл

@ -1,10 +1,10 @@
import * as React from "react";
import { import {
getTheme, getTheme,
IButtonProps, IButtonProps,
mergeStyles, mergeStyles,
PrimaryButton PrimaryButton
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
export const AdjustedPrimaryButton: React.FunctionComponent<IButtonProps> = (props) => { export const AdjustedPrimaryButton: React.FunctionComponent<IButtonProps> = (props) => {
const theme = getTheme(); const theme = getTheme();

Просмотреть файл

@ -1,3 +1,4 @@
import * as React from "react";
import { import {
ActionButton, ActionButton,
DefaultButton, DefaultButton,
@ -5,8 +6,7 @@ import {
mergeStyles, mergeStyles,
Stack, Stack,
Text Text
} from "office-ui-fabric-react"; } from "@fluentui/react";
import * as React from "react";
import Localizer from "../Localization/Localizer"; import Localizer from "../Localization/Localizer";
import { AdjustedPrimaryButton } from "./ThemeAdjustedComponents/AdjustedPrimaryButton"; import { AdjustedPrimaryButton } from "./ThemeAdjustedComponents/AdjustedPrimaryButton";

Просмотреть файл

@ -1,10 +1,5 @@
import {
Link,
MessageBar,
MessageBarType,
Stack
} from "office-ui-fabric-react";
import * as React from "react"; import * as React from "react";
import { Link, MessageBar, MessageBarType, Stack } from "@fluentui/react";
import Localizer from "../Localization/Localizer"; import Localizer from "../Localization/Localizer";
import { ValidationError, ValidationErrorType } from "../Types/GraphTypes"; import { ValidationError, ValidationErrorType } from "../Types/GraphTypes";
import { Badge } from "./Badge"; import { Badge } from "./Badge";

Просмотреть файл

@ -19,7 +19,7 @@ export default class Helpers {
if (removeMediaGraph) { if (removeMediaGraph) {
text = text.replace("MediaGraph", ""); text = text.replace("MediaGraph", "");
} }
let sentenceCaseRegex = `(${customWords.join("|")}|[A-Z])`; const sentenceCaseRegex = `(${customWords.join("|")}|[A-Z])`;
text = text.replace(new RegExp(sentenceCaseRegex, "g"), " $1").trim(); text = text.replace(new RegExp(sentenceCaseRegex, "g"), " $1").trim();
text = text.charAt(0).toUpperCase() + text.slice(1).toLowerCase(); text = text.charAt(0).toUpperCase() + text.slice(1).toLowerCase();
customWords.forEach((word) => { customWords.forEach((word) => {

Просмотреть файл

@ -1,5 +1,5 @@
import { registerIcons } from "office-ui-fabric-react";
import React from "react"; import React from "react";
import { registerIcons } from "@fluentui/react";
import { initializeIcons } from "@uifabric/icons"; import { initializeIcons } from "@uifabric/icons";
export default class IconSetupHelpers { export default class IconSetupHelpers {

Просмотреть файл

@ -8,7 +8,7 @@ import {
IThemeSlotRule, IThemeSlotRule,
ThemeGenerator, ThemeGenerator,
themeRulesStandardCreator themeRulesStandardCreator
} from "office-ui-fabric-react"; } from "@fluentui/react";
export default class ThemeHelpers { export default class ThemeHelpers {
static getAdaptedTheme(): ITheme { static getAdaptedTheme(): ITheme {

Просмотреть файл

@ -15,7 +15,8 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "react", "jsx": "react",
"noEmit": true "noEmit": true,
"noFallthroughCasesInSwitch": true
}, },
"include": ["src/Webview"], "include": ["src/Webview"],
"exclude": ["Common/Tools", "Extension"] "exclude": ["Common/Tools", "Extension"]