diff --git a/uSync.Backoffice.Management.Client/assets/package-lock.json b/uSync.Backoffice.Management.Client/assets/package-lock.json index de591805..5ef36213 100644 --- a/uSync.Backoffice.Management.Client/assets/package-lock.json +++ b/uSync.Backoffice.Management.Client/assets/package-lock.json @@ -10,11 +10,12 @@ "license": "MPL-2.0", "dependencies": { "@microsoft/signalr": "^8.0.0", + "diff": "^5.2.0", "lit": "^3.1.0" }, "devDependencies": { + "@types/diff": "^5.0.9", "@umbraco-cms/backoffice": "^14.0.0--preview006", - "diff": "^5.2.0", "openapi-typescript-codegen": "^0.25.0", "typescript": "^5.2.2", "vite": "^5.0.8", @@ -662,6 +663,12 @@ "license": "MIT", "peer": true }, + "node_modules/@types/diff": { + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/@types/diff/-/diff-5.0.9.tgz", + "integrity": "sha512-RWVEhh/zGXpAVF/ZChwNnv7r4rvqzJ7lYNSmZSVTxjV0PBLf6Qu7RNg+SUtkpzxmiNkjCx0Xn2tPp7FIkshJwQ==", + "dev": true + }, "node_modules/@types/dompurify": { "version": "3.0.5", "resolved": "https://www.myget.org/F/umbracoprereleases/npm/@types/dompurify/-/@types/dompurify-3.0.5.tgz", @@ -1977,7 +1984,6 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", - "dev": true, "engines": { "node": ">=0.3.1" } diff --git a/uSync.Backoffice.Management.Client/assets/package.json b/uSync.Backoffice.Management.Client/assets/package.json index 626345d4..1aae51b7 100644 --- a/uSync.Backoffice.Management.Client/assets/package.json +++ b/uSync.Backoffice.Management.Client/assets/package.json @@ -30,10 +30,11 @@ }, "dependencies": { "@microsoft/signalr": "^8.0.0", - "lit": "^3.1.0", - "diff": "^5.2.0" + "diff": "^5.2.0", + "lit": "^3.1.0" }, "devDependencies": { + "@types/diff": "^5.0.9", "@umbraco-cms/backoffice": "^14.0.0--preview006", "openapi-typescript-codegen": "^0.25.0", "typescript": "^5.2.2", diff --git a/uSync.Backoffice.Management.Client/assets/src/components/usync-change-view.ts b/uSync.Backoffice.Management.Client/assets/src/components/usync-change-view.ts index b28fd3e2..952c720b 100644 --- a/uSync.Backoffice.Management.Client/assets/src/components/usync-change-view.ts +++ b/uSync.Backoffice.Management.Client/assets/src/components/usync-change-view.ts @@ -14,7 +14,7 @@ export class uSyncChangeView extends UmbElementMixin(LitElement) { } @property({type: Object}) - item : uSyncActionView | null = null; + item : uSyncActionView | null | undefined = null; render() { @@ -58,7 +58,7 @@ export class uSyncChangeView extends UmbElementMixin(LitElement) { const newValue = this._getJsonOrString(detail.newValue); const changes = Diff.diffWords(oldValue, newValue); - const changeHtml = changes.map((change) => { + const changeHtml = changes.map((change : any) => { console.log(change);