diff --git a/samples/react-graph-auto-batching/config/config.json b/samples/react-graph-auto-batching/config/config.json index ffe9fdcbd..90331a6a4 100644 --- a/samples/react-graph-auto-batching/config/config.json +++ b/samples/react-graph-auto-batching/config/config.json @@ -7,12 +7,17 @@ { "entrypoint": "./lib/webparts/graphAutoBatching/GraphAutoBatchingWebPart.js", "manifest": "./src/webparts/graphAutoBatching/GraphAutoBatchingWebPart.manifest.json" + }, + { + "entrypoint": "./lib/adaptiveCardExtensions/profileCard/ProfileCardAdaptiveCardExtension.js", + "manifest": "./src/adaptiveCardExtensions/profileCard/ProfileCardAdaptiveCardExtension.manifest.json" } ] } }, "externals": {}, "localizedResources": { - "GraphAutoBatchingWebPartStrings": "lib/webparts/graphAutoBatching/loc/{locale}.js" + "GraphAutoBatchingWebPartStrings": "lib/webparts/graphAutoBatching/loc/{locale}.js", + "ProfileCardAdaptiveCardExtensionStrings": "lib/adaptiveCardExtensions/profileCard/loc/{locale}.js" } } diff --git a/samples/react-graph-auto-batching/gulpfile.js b/samples/react-graph-auto-batching/gulpfile.js index be2918708..5db31634a 100644 --- a/samples/react-graph-auto-batching/gulpfile.js +++ b/samples/react-graph-auto-batching/gulpfile.js @@ -12,5 +12,19 @@ build.rig.getTasks = function () { return result; }; +build.configureWebpack.mergeConfig({ + additionalConfiguration: (generatedConfiguration) => { + generatedConfiguration.node = { + fs: 'empty' + }, + generatedConfiguration.module.rules.unshift( + { + test: /\.resx$/, + loader: "xml-loader", + } + ) + return generatedConfiguration; + } +}); build.initialize(require('gulp')); diff --git a/samples/react-graph-auto-batching/package-lock.json b/samples/react-graph-auto-batching/package-lock.json index b8c0e3cca..7ae82c7f9 100644 --- a/samples/react-graph-auto-batching/package-lock.json +++ b/samples/react-graph-auto-batching/package-lock.json @@ -2466,6 +2466,21 @@ "typescript": "~3.7.2" } }, + "@microsoft/sp-adaptive-card-extension-base": { + "version": "1.13.0-beta.17", + "resolved": "https://registry.npmjs.org/@microsoft/sp-adaptive-card-extension-base/-/sp-adaptive-card-extension-base-1.13.0-beta.17.tgz", + "integrity": "sha512-7dN6fMG1WMPptPnhrsKo/cCZIBSWt9ypEfr80aatwT+DSrnezi4aZgz4gQZ1sQc2KdEjpeoikQRajZlnM6/zUg==", + "requires": { + "@microsoft/sp-component-base": "1.13.0-beta.17", + "@microsoft/sp-core-library": "1.13.0-beta.17", + "@microsoft/sp-diagnostics": "1.13.0-beta.17", + "@microsoft/sp-loader": "1.13.0-beta.17", + "@microsoft/sp-lodash-subset": "1.13.0-beta.17", + "@microsoft/sp-module-interfaces": "1.13.0-beta.17", + "@microsoft/sp-property-pane": "1.13.0-beta.17", + "tslib": "~1.10.0" + } + }, "@microsoft/sp-build-core-tasks": { "version": "1.13.0-beta.17", "resolved": "https://registry.npmjs.org/@microsoft/sp-build-core-tasks/-/sp-build-core-tasks-1.13.0-beta.17.tgz", @@ -24233,6 +24248,16 @@ "integrity": "sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=", "dev": true }, + "xml-loader": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/xml-loader/-/xml-loader-1.2.1.tgz", + "integrity": "sha1-A0hNpxDETTYQ3TbCr0CUs1tPeXU=", + "dev": true, + "requires": { + "loader-utils": "^1.0.0", + "xml2js": "^0.4.16" + } + }, "xml-name-validator": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", diff --git a/samples/react-graph-auto-batching/package.json b/samples/react-graph-auto-batching/package.json index 8b6b5d855..c3d2fc3b5 100644 --- a/samples/react-graph-auto-batching/package.json +++ b/samples/react-graph-auto-batching/package.json @@ -9,14 +9,15 @@ "test": "gulp test" }, "dependencies": { - "react": "16.9.0", - "react-dom": "16.9.0", - "office-ui-fabric-react": "7.156.0", + "@microsoft/sp-adaptive-card-extension-base": "1.13.0-beta.17", "@microsoft/sp-core-library": "1.13.0-beta.17", + "@microsoft/sp-lodash-subset": "1.13.0-beta.17", + "@microsoft/sp-office-ui-fabric-core": "1.13.0-beta.17", "@microsoft/sp-property-pane": "1.13.0-beta.17", "@microsoft/sp-webpart-base": "1.13.0-beta.17", - "@microsoft/sp-lodash-subset": "1.13.0-beta.17", - "@microsoft/sp-office-ui-fabric-core": "1.13.0-beta.17" + "office-ui-fabric-react": "7.156.0", + "react": "16.9.0", + "react-dom": "16.9.0" }, "devDependencies": { "@microsoft/rush-stack-compiler-3.7": "0.2.3", @@ -35,7 +36,8 @@ "jest": "^27.4.7", "jest-environment-jsdom": "^27.4.6", "jsdom": "^19.0.0", - "ts-jest": "^27.1.3" + "ts-jest": "^27.1.3", + "xml-loader": "^1.2.1" }, "jest": { "transform": {