Skip to content

Commit 4090ca6

Browse files
ygrikalzaslon
andauthored
Packages and styles upgrade (#2692)
* Migrated declarations. * Upgraded designer styles. * Updated packages and fixed styles --------- Co-authored-by: Alexander Zaslonov <alzaslon@microsoft.com>
1 parent 4eb5d85 commit 4090ca6

File tree

61 files changed

+725
-597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+725
-597
lines changed

package-lock.json

Lines changed: 154 additions & 232 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@
7979
"@fluentui/react": "^8.105.11",
8080
"@microsoft/applicationinsights-web": "^3.0.2",
8181
"@monaco-editor/loader": "^1.3.3",
82-
"@paperbits/azure": "0.1.593",
83-
"@paperbits/common": "0.1.593-hotfix2",
84-
"@paperbits/core": "0.1.593-hotfix2",
85-
"@paperbits/forms": "0.1.593-hotfix2",
86-
"@paperbits/react": "1.0.7",
87-
"@paperbits/styles": "0.1.593-hotfix2",
82+
"@paperbits/azure": "0.1.623",
83+
"@paperbits/common": "0.1.623",
84+
"@paperbits/core": "0.1.623",
85+
"@paperbits/forms": "0.1.623",
86+
"@paperbits/react": "1.0.8",
87+
"@paperbits/styles": "0.1.623",
8888
"@webcomponents/custom-elements": "1.6.0",
8989
"@webcomponents/shadydom": "^1.11.0",
9090
"client-oauth2": "4.3.3",

src/components/apis/api-products/apiProductsHandlers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { IWidgetHandler } from "@paperbits/common/editing";
22
import { ApiProductsModel } from "./apiProductsModel";
33

4-
export class ApiProductsHandlers implements IWidgetHandler {
4+
export class ApiProductsHandlers implements IWidgetHandler<ApiProductsModel> {
55
public async getWidgetModel(): Promise<ApiProductsModel> {
66
return new ApiProductsModel("list");
77
}
88
}
99

10-
export class ApiProductsDropdownHandlers implements IWidgetHandler {
10+
export class ApiProductsDropdownHandlers implements IWidgetHandler<ApiProductsModel> {
1111
public async getWidgetModel(): Promise<ApiProductsModel> {
1212
return new ApiProductsModel("dropdown");
1313
}
1414
}
1515

16-
export class ApiProductsTilesHandlers implements IWidgetHandler {
16+
export class ApiProductsTilesHandlers implements IWidgetHandler<ApiProductsModel> {
1717
public async getWidgetModel(): Promise<ApiProductsModel> {
1818
return new ApiProductsModel("tiles");
1919
}

src/components/apis/details-of-api/detailsOfApiHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IWidgetHandler } from "@paperbits/common/editing";
22
import { DetailsOfApiModel } from "./detailsOfApiModel";
33

4-
export class DetailsOfApiHandlers implements IWidgetHandler {
4+
export class DetailsOfApiHandlers implements IWidgetHandler<DetailsOfApiModel> {
55
public async getWidgetModel(): Promise<DetailsOfApiModel> {
66
return new DetailsOfApiModel();
77
}

src/components/apis/history-of-api/historyOfApiHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IWidgetHandler } from "@paperbits/common/editing";
22
import { HistoryOfApiModel } from "./historyOfApiModel";
33

4-
export class HistoryOfApiHandlers implements IWidgetHandler {
4+
export class HistoryOfApiHandlers implements IWidgetHandler<HistoryOfApiModel> {
55
public async getWidgetModel(): Promise<HistoryOfApiModel> {
66
return new HistoryOfApiModel();
77
}

src/components/apis/list-of-apis/listOfApisHandlers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { IWidgetHandler } from "@paperbits/common/editing";
22
import { ListOfApisModel } from "./listOfApisModel";
33

4-
export class ListOfApisHandlers implements IWidgetHandler {
4+
export class ListOfApisHandlers implements IWidgetHandler<ListOfApisModel> {
55
public async getWidgetModel(): Promise<ListOfApisModel> {
66
return new ListOfApisModel("list");
77
}
88
}
99

10-
export class ListOfApisTilesHandlers implements IWidgetHandler {
10+
export class ListOfApisTilesHandlers implements IWidgetHandler<ListOfApisModel> {
1111
public async getWidgetModel(): Promise<ListOfApisModel> {
1212
return new ListOfApisModel("tiles");
1313
}
1414
}
1515

16-
export class ListOfApisDropdownHandlers implements IWidgetHandler {
16+
export class ListOfApisDropdownHandlers implements IWidgetHandler<ListOfApisModel> {
1717
public async getWidgetModel(): Promise<ListOfApisModel> {
1818
return new ListOfApisModel("dropdown");
1919
}

src/components/custom-html/customHtmlHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { StyleHelper } from "@paperbits/styles";
33
import { CustomHtmlModel } from "./customHtmlModel";
44
import { htmlCodeInitial, htmlCodeSizeStylesInitial } from "./ko/constants";
55

6-
export class HTMLInjectionHandlers implements IWidgetHandler {
6+
export class HTMLInjectionHandlers implements IWidgetHandler<CustomHtmlModel> {
77
public async getWidgetModel(): Promise<CustomHtmlModel> {
88
const model = new CustomHtmlModel();
99
model.htmlCode = htmlCodeInitial;

src/components/custom-widget/customWidgetHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface TCustomWidgetConfig extends CustomWidgetCommonConfig {
1111
override?: string | boolean;
1212
}
1313

14-
export class CustomWidgetHandlers implements IWidgetHandler {
14+
export class CustomWidgetHandlers implements IWidgetHandler<CustomWidgetModel> {
1515
constructor(private readonly configuration: TCustomWidgetConfig) {
1616
this.getWidgetModel = this.getWidgetModel.bind(this);
1717
}

src/components/operations/operation-details/operationDetailsHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IWidgetHandler } from "@paperbits/common/editing";
22
import { OperationDetailsModel } from "./operationDetailsModel";
33

4-
export class OperationDetailsHandlers implements IWidgetHandler {
4+
export class OperationDetailsHandlers implements IWidgetHandler<OperationDetailsModel> {
55
public async getWidgetModel(): Promise<OperationDetailsModel> {
66
return new OperationDetailsModel();
77
}

src/components/operations/operation-list/operationListHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IWidgetHandler } from "@paperbits/common/editing";
22
import { OperationListModel } from "./operationListModel";
33

4-
export class OperationListHandlers implements IWidgetHandler {
4+
export class OperationListHandlers implements IWidgetHandler<OperationListModel> {
55
public async getWidgetModel(): Promise<OperationListModel> {
66
return new OperationListModel();
77
}

0 commit comments

Comments
 (0)