-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1452 from finos/fdc3-for-web-impl-commonjs
Fdc3 for web impl commonjs
- Loading branch information
Showing
13 changed files
with
2,075 additions
and
1,703 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# FDC3 CommonJS Module | ||
|
||
This is the CommonJS module version of the Financial Desktop Connectivity and Collaboration Consortium (FDC3) javascript API. | ||
|
||
## Warning | ||
|
||
CommonJS is no longer the recommended module system for JavaScript. We recommend using the FDC3 ES6 module at `@finos/fdc3` instead. The FDC3 CommonJS module is provided for compatibility with older projects that use CommonJS. | ||
|
||
## Installation | ||
|
||
To install the FDC3 CommonJS module, use npm: | ||
|
||
```bash | ||
npm install @finos/fdc3-commonjs | ||
``` | ||
|
||
## Usage | ||
|
||
To use the FDC3 CommonJS module in your project, require it as follows: | ||
|
||
```javascript | ||
const fdc3CommonJs = require('@finos/fdc3-commonjs'); | ||
|
||
// getAgent() returns the FDC3 Desktop Agent | ||
const fdc3 = fdc3CommonJs.getAgent(); | ||
|
||
// Example usage | ||
const contact = { | ||
type: 'fdc3.contact', | ||
name: 'Jane Doe', | ||
id: { | ||
email: 'jane@mail.com' | ||
} | ||
}; | ||
|
||
fdc3.raiseIntent('ViewProfile', contact); | ||
``` | ||
|
||
## Documentation | ||
|
||
For detailed documentation and API reference, please visit the [official FDC3 documentation](https://fdc3.finos.org/docs/api/overview). | ||
|
||
## Contributing | ||
|
||
We welcome contributions to the FDC3 project. Please see our [contributing guidelines](https://github.com/finos/FDC3/blob/main/CONTRIBUTING.md) for more information. | ||
|
||
## License | ||
|
||
This project is licensed under the [Apache 2.0 License](LICENSE). | ||
|
||
## Contact | ||
|
||
For any questions or support, please reach out to the FDC3 community on our [Slack channel](https://finos-lf.slack.com/archives/CJ8Q8H4Q1) or [mailing list](mailto:fdc3@finos.org). | ||
|
||
## Further Details | ||
|
||
Further details are avilable in the main [FDC3 Project README](https://github.com/finos/FDC3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "@kite9/fdc3-commonjs", | ||
"version": "2.2.0-beta.29", | ||
"author": "Fintech Open Source Foundation (FINOS)", | ||
"homepage": "https://fdc3.finos.org", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/finos/FDC3.git" | ||
}, | ||
"publishConfig": { | ||
"tag": "latest" | ||
}, | ||
"exports": { | ||
"require": "./dist/index.cjs" | ||
}, | ||
"license": "Apache-2.0", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"clean": "npx rimraf dist", | ||
"build": "npx rollup -c rollup.config.mjs" | ||
}, | ||
"dependencies": { | ||
"@kite9/fdc3": "2.2.0-beta.29" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^28.0.1", | ||
"@rollup/plugin-json": "^6.1.0", | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@rollup/plugin-typescript": "^12.1.1", | ||
"rollup": "^4.27.4" | ||
} | ||
} |
Oops, something went wrong.