Skip to content

Commit 959e057

Browse files
committed
Updated to use new FDC3 2_2 getAgent()
1 parent 61c8545 commit 959e057

Some content is hidden

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

42 files changed

+772
-708
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
"build-static": "npm run compile && npm run copy"
1616
},
1717
"dependencies": {
18-
"@kite9/fdc3-get-agent": "file:../../FDC3/packages/fdc3-get-agent",
1918
"buffer": "^6.0.3",
2019
"chai": "^4.3.6",
2120
"fdc3_1_2": "npm:@finos/fdc3@^1.2.0",
22-
"fdc3_2_0": "npm:@finos/fdc3@^2.0.0-beta.4",
21+
"fdc3_2_2": "npm:@finos/fdc3@^2.2.0",
2322
"mocha": "^10.0.0",
2423
"process": "^0.11.10",
2524
"source-map-support": "^0.5.21",

src/mock/v1.2/mock-functions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { DesktopAgent } from "fdc3_1_2/dist/api/DesktopAgent";
22
import constants from "../../constants";
33
import { AppControlContext } from "../../context-types";
4-
import { fdc3Ready } from "@kite9/fdc3-get-agent";
4+
import { getAgent } from "fdc3_2_2";
55

66
declare let fdc3: DesktopAgent;
77

@@ -10,7 +10,7 @@ export const onFdc3Ready = () =>
1010
if (window.fdc3) {
1111
resolve(undefined);
1212
} else {
13-
fdc3Ready().then(() => resolve(undefined));
13+
getAgent().then(() => resolve(undefined));
1414
}
1515
});
1616

src/mock/v2.0/basic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { closeWindowOnCompletion, onFdc3Ready } from "./mock-functions";
2-
import { DesktopAgent } from "fdc3_2_0/dist/api/DesktopAgent";
2+
import { DesktopAgent } from "fdc3_2_2";
33
import { sendContextToTests } from "./mock-functions";
44
import { AppControlContext } from "../../context-types";
55
import { ControlContextType, Intent } from "../../test/v2.0/support/intent-support-2.0";

src/mock/v2.0/channel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ChannelService2_0 } from "./support/channel-support-2.0";
22
import { onFdc3Ready } from "./mock-functions";
3-
import { DesktopAgent } from "fdc3_2_0";
3+
import { DesktopAgent } from "fdc3_2_2";
44
import { Fdc3CommandExecutor } from "../channel-command";
55
import { ChannelsAppContext } from "../../test/common/control/channel-control";
66

src/mock/v2.0/general.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { closeWindowOnCompletion, onFdc3Ready } from "./mock-functions";
2-
import { DesktopAgent } from "fdc3_2_0/dist/api/DesktopAgent";
3-
import { Context } from "fdc3_2_0";
2+
import { DesktopAgent } from "fdc3_2_2";
3+
import { Context } from "fdc3_2_2";
44
import { sendContextToTests } from "../v2.0/mock-functions";
55
import { AppControlContext } from "../../context-types";
66
declare let fdc3: DesktopAgent;

src/mock/v2.0/intent-a.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { closeWindowOnCompletion, onFdc3Ready, validateContext } from "./mock-fu
22
import { sendContextToTests } from "../v2.0/mock-functions";
33
import { wait } from "../../utils";
44
import { IntentUtilityContext } from "../../context-types";
5-
import { IntentResult, DesktopAgent } from "fdc3_2_0";
5+
import { IntentResult, DesktopAgent } from "fdc3_2_2";
66
import { ContextType, ControlContextType, Intent } from "../../test/v2.0/support/intent-support-2.0";
77
declare let fdc3: DesktopAgent;
88

src/mock/v2.0/intent-b.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { closeWindowOnCompletion, onFdc3Ready } from "./mock-functions";
2-
import { DesktopAgent } from "fdc3_2_0/dist/api/DesktopAgent";
2+
import { DesktopAgent } from "fdc3_2_2";
33
import { sendContextToTests } from "../v2.0/mock-functions";
44
import { wait } from "../../utils";
55
import { AppControlContext, IntentUtilityContext } from "../../context-types";

src/mock/v2.0/intent-c.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { closeWindowOnCompletion, onFdc3Ready } from "./mock-functions";
2-
import { DesktopAgent } from "fdc3_2_0/dist/api/DesktopAgent";
2+
import { DesktopAgent } from "fdc3_2_2";
33
import { sendContextToTests } from "../v2.0/mock-functions";
44
import { AppControlContext } from "../../context-types";
55
import { ControlContextType, Intent } from "../../test/v2.0/support/intent-support-2.0";

src/mock/v2.0/intent-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { closeWindowOnCompletion, onFdc3Ready } from "./mock-functions";
2-
import { DesktopAgent } from "fdc3_2_0";
2+
import { DesktopAgent } from "fdc3_2_2";
33
import { Intent } from "../../test/v2.0/support/intent-support-2.0";
44
declare let fdc3: DesktopAgent;
55

0 commit comments

Comments
 (0)