{"_id":"@api-components/amf-components","_rev":"10-e024784daa81f2e3ed9df905f1912e7a","name":"@api-components/amf-components","dist-tags":{"latest":"1.0.0-beta.1","beta":"1.0.0-beta.4"},"versions":{"1.0.0-beta.1":{"name":"@api-components/amf-components","version":"1.0.0-beta.1","keywords":["api-components","api-console","amf-components"],"author":{"name":"Pawel Uchida-Psztyc","email":"pawel.psztyc@mulesoft.com"},"license":"Apache-2.0","_id":"@api-components/amf-components@1.0.0-beta.1","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"},{"name":"twoplustwoone","email":"francisco.digiandomenico@gmail.com"},{"name":"lbauret","email":"leandro.bauret@mulesoft.com"},{"name":"carowright","email":"carolina.wright@mulesoft.com"}],"contributors":[{"name":"Carolina Wright"},{"name":"Francisco Di Giandomenico"},{"name":"Leandro Bauret"},{"name":"Yury"},{"name":"Your name can be here!"}],"homepage":"https://github.com/advanced-rest-client/amf-components#readme","bugs":{"url":"https://github.com/advanced-rest-client/amf-components/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"136d5bbed5851b935d873321598bf227d55845bd","tarball":"https://registry.npmjs.org/@api-components/amf-components/-/amf-components-1.0.0-beta.1.tgz","fileCount":251,"integrity":"sha512-tMgK0/PlizpkMc0+VbxIquzq7MMufjQ8DmhJnMmOFD6uZ+Ji5tL1h4FiH9SlZrcRtpXYAlJX+V8TzaZVNqhL3A==","signatures":[{"sig":"MEQCIDqmmxV3B72ZqV9NIj4IsjS1SVhzxehScoDIKVKP424LAiAWs5o08z/ieMc9kxJEtKaGccsJHqiLS8ByyCCGJijroQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1414470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwyfYCRA9TVsSAnZWagAANicP/j0Hej3EuvJE9IBxCG8M\ntMgZpDuHT9bLc43VOi1KVTAeeQylq3Kz29kEDY+Od71ECljyoamPVtsPXMTT\nnZx7qMN6Hr5oVJ17SsPYMr8Pw+78yM7832qzpH3ga+MipJYJ5c1Ph0qrIO62\nOtZ6PNHY/h9Z7+VWFaK0gRpLm20FsW0rJpqkSxulGHJMdmT6nf07ZK9o3SYW\neSXZOOEryyx8MRfpcHeDiI31+zAynM6lCx+qDB/iCwW1XDByhY0Rl7gKDK08\nh1vi4ezR46jggIGH/gINmDc0kqJ9ts7GhBaUvAvP2fNRYSj5+XOeJkqLnjod\nEo+kcxkGCEn39f8chR7snsGSHoytX7w6SmNlITnT00gbeE9aMsh55k36mnTq\n1Ict7Vc8HEsADh2scmCUNtVRq+RuWtPSATKHQoyvnqFVkrQmeJOs3fgyBIOp\nfAOrFvzssodH7UUPNEeGEgBvv0Gj3asQsnUWoDHsBqsIw/WXsHJIFEf9OVL6\n+xIVbZGWcXwa3PQjI+ltIr3nKN3FpEDYNudTNiJRJSXa8CQQMzJ4VRevQwlD\nti823OMsMlPWaM4qlLjU8ciDGHViJvrs9caVgOCc/IycGsnwlsDtKzxvRpSy\n3bno9bBzP2u7JN0g+7XYRkDVJCrvyH0fgblj8Fv2mK9d+Tah1jpOlq8chKhA\ndcMM\r\n=ldpk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"module":"index.js","gitHead":"b4eaa7df81239a38acff469b432d049dec3b416d","scripts":{"lint":"npm run lint:eslint","test":"web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium webkit","start":"web-dev-server","format":"npm run format:eslint","gen:wc":"wca analyze \"*.js\" --outFile custom-elements.json","prepare":"husky install && node demo/model.mjs","test:all":"web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit","lint:types":"tsc","test:watch":"web-test-runner --node-resolve --watch --playwright --browsers chromium","lint:eslint":"eslint --ext .js,.html . --ignore-path .gitignore","format:eslint":"eslint --ext .js,.html . --fix --ignore-path .gitignore"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git://github.com/advanced-rest-client/amf-components.git","type":"git"},"_npmVersion":"6.14.15","description":"A set of web components based on LitElement that creates the visualization layer on top of the AMF's graph model.","directories":{},"lint-staged":{"*.js":["eslint --fix"]},"_nodeVersion":"14.18.1","dependencies":{"lit-html":"^1.4.1","dompurify":"^2.3.3","lit-element":"^2.5.1","amf-json-ld-lib":"0.0.14","@pawel-up/data-mock":"^0.1.7","@open-wc/dedupe-mixin":"^1.3.0","@api-client/context-menu":"^0.2.0","@advanced-rest-client/app":"^0.1.1","@advanced-rest-client/uuid":"^4.0.0","@advanced-rest-client/icons":"^4.0.0","@advanced-rest-client/events":"^0.2.22","@anypoint-web-components/awc":"^1.0.5","@advanced-rest-client/highlight":"^2.0.1","@advanced-rest-client/http-code-snippets":"^4.0.0"},"eslintConfig":{"extends":["@open-wc/eslint-config","eslint-config-prettier"],"overrides":[{"files":["demo/**/*.js","test/**/*.js","dev/**/*.js","dev/**/*.mjs","**/demo/**/*.html"],"rules":{"no-console":"off","no-plusplus":"off","no-param-reassing":"off","no-unused-expressions":"off","class-methods-use-this":"off","import/no-extraneous-dependencies":"off"}}]},"_hasShrinkwrap":false,"devDependencies":{"uuid":"^8.3.2","husky":"^7.0.4","sinon":"^11.1.2","eslint":"^8.1.0","typescript":"^4.4.4","lint-staged":"^11.2.4","amf-client-js":"^4.7.8","@commitlint/cli":"^13.2.1","@web/dev-server":"^0.1.25","@open-wc/testing":"^3.0.1","@web/test-runner":"^0.13.20","@open-wc/eslint-config":"^7.0.0","eslint-config-prettier":"^8.3.0","typescript-lit-html-plugin":"^0.9.0","@web/test-runner-playwright":"^0.8.8","@commitlint/config-conventional":"^13.2.0","@api-components/api-model-generator":"^0.2.14","@advanced-rest-client/arc-demo-helper":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/amf-components_1.0.0-beta.1_1635124980832_0.14055924896184369","host":"s3://npm-registry-packages"}},"1.0.0-beta.2":{"name":"@api-components/amf-components","version":"1.0.0-beta.2","keywords":["api-components","api-console","amf-components"],"author":{"name":"Pawel Uchida-Psztyc","email":"pawel.psztyc@mulesoft.com"},"license":"Apache-2.0","_id":"@api-components/amf-components@1.0.0-beta.2","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"},{"name":"twoplustwoone","email":"francisco.digiandomenico@gmail.com"},{"name":"lbauret","email":"leandro.bauret@mulesoft.com"},{"name":"carowright","email":"carolina.wright@mulesoft.com"}],"contributors":[{"name":"Carolina Wright"},{"name":"Francisco Di Giandomenico"},{"name":"Leandro Bauret"},{"name":"Yury"},{"name":"Your name can be here!"}],"homepage":"https://github.com/api-components/amf-components#readme","bugs":{"url":"https://github.com/api-components/amf-components/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"5a1eb587abb4ec80e961b4a33917b65b6b38a4f1","tarball":"https://registry.npmjs.org/@api-components/amf-components/-/amf-components-1.0.0-beta.2.tgz","fileCount":251,"integrity":"sha512-3rBuO6AdBwBCcuY9sYh3aqPABRD1CXKBJoYq5FOEPyMWnksXf59xV44hh6r1Xxc9oVnZeFoWSqk7XA0D64Fs3Q==","signatures":[{"sig":"MEQCIBl0TiuUMCvwh2bimEC+7bcqIuWl9WaV0a0BfV0X+yT5AiBSEGiSPyAsxHAiQNjWXn3GMi6/FWvp+A3px5slGHLo0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1414552},"main":"index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"module":"index.js","readme":"# amf-components\n\nA set of web components based on LitElement that creates the visualization layer on top of the [AMF's](https://a.ml) graph model.\n\nThis project replaces all `api-*` components from this organization and consolidates the code base under a single repository.\n\n[![Published on NPM](https://img.shields.io/npm/v/@api-components/amf-components.svg)](https://www.npmjs.com/package/@api-components/amf-components)\n\n[![Tests and publishing](https://github.com/api-components/amf-components/actions/workflows/deployment.yml/badge.svg)](https://github.com/api-components/amf-components/actions/workflows/deployment.yml)\n\n## Usage\n\n### Installation\n\n```sh\nnpm install --save @api-components/amf-components\n```\n\n### Example\n\n```html\n<html>\n  <head>\n    <script type=\"module\">\n      import '@api-components/amf-components/define/api-documentation.js';\n      import '@api-components/amf-components/define/api-request.js';\n      import '@api-components/amf-components/define/api-navigation.js';\n      import '@api-components/amf-components/define/xhr-simple-request.js';\n      import '@advanced-rest-client/app/define/oidc-authorization.js';\n      import '@advanced-rest-client/app/define/oauth2-authorization.js';\n    </script>\n  </head>\n  <body>\n    <!-- A helper library that works with <api-request> to perform an HTTP request in the browser. -->\n    <xhr-simple-request></xhr-simple-request>\n    <!-- Authorization libraries to perform OAuth and OIDC authorization. -->\n    <oauth2-authorization></oauth2-authorization>\n    <oidc-authorization></oidc-authorization>\n    <nav>\n      <!-- The navigation element. Starts with the \"summary\" page selection. -->\n      <api-navigation summary domainId=\"summary\" domainType=\"summary\"></api-navigation>\n    </nav>\n    <main>\n      <!-- The main documentation element. Starts with the \"summary\" page selection. -->\n      <api-documentation handleNavigationEvents domainId=\"summary\" domainType=\"summary\"></api-documentation>\n    </main>\n    <aside>\n      <!-- The HTTP request editor. Renders forms for user input to make an HTTP request -->\n      <api-request handleNavigationEvents></api-request>\n    </aside>\n\n    <script type=\"module\">\n      import { DomEventsAmfStore } from '@api-components/amf-components';\n      (async () => {\n        const apiStore = new DomEventsAmfStore();\n        apiStore.amf = await getAmfModelSomehow();\n      })();\n    </script>\n  </body>\n</html>\n```\n\n### API store\n\nThe components, unlike previously, do not rely on the graph model generated by the AMF parser. Instead they use a custom JavaScript objects generated by the [src/helpers/AmfSerializer.js](AmfSerializer) class.\nThese models are provided to the components by the [src/store/AmfStore.js](AmfStore) or the [src/store/DomEventsAmfStore.js](DomEventsAmfStore). This was developers implementing the components have the most flexibility of providing the console with the graph model that source may be in a different location (like HTTP queries).\n\nSee [docs/architecture.md](docs/architecture.md) for more details.\n\n### Monaco editor\n\nThe request editor uses the Monaco editor (by Microsoft) to render the body editor.\nThe library has to be loaded to the document before the request editor is rendered. Use the `@advanced-rest-client/monaco-support` module and `MonacoLoader` class to load the editor with defaults.\n\n```javascript\nimport { MonacoLoader } from '@advanced-rest-client/monaco-support';\n\nconst base = new URL(`../node_modules/monaco-editor/`, window.location.href).toString();\nMonacoLoader.createEnvironment(base);\nawait MonacoLoader.loadMonaco(base);\nawait MonacoLoader.monacoReady();\n```\n\n## Development\n\n```sh\ngit clone https://github.com/api-components/amf-components\ncd amf-components\nnpm install\n```\n\n### Running the demo locally\n\n```sh\nnpm start\n```\n\n### Running the tests\n\n```sh\nnpm test\n```\n","gitHead":"da2fe51c0bcb181a1300b837f160b15ee70d5f7c","scripts":{"lint":"npm run lint:eslint","test":"web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium webkit","start":"web-dev-server","format":"npm run format:eslint","gen:wc":"wca analyze \"*.js\" --outFile custom-elements.json","prepare":"husky install && node demo/model.mjs","test:all":"web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit","lint:types":"tsc","test:watch":"web-test-runner --node-resolve --watch --playwright --browsers chromium","lint:eslint":"eslint --ext .js,.html . --ignore-path .gitignore","format:eslint":"eslint --ext .js,.html . --fix --ignore-path .gitignore"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git://github.com/api-components/amf-components.git","type":"git"},"_npmVersion":"6.14.15","description":"A set of web components based on LitElement that creates the visualization layer on top of the AMF's graph model.","directories":{},"lint-staged":{"*.js":["eslint --fix"]},"_nodeVersion":"14.18.1","dependencies":{"lit-html":"^1.4.1","dompurify":"^2.3.3","lit-element":"^2.5.1","amf-json-ld-lib":"0.0.14","@pawel-up/data-mock":"^0.1.7","@open-wc/dedupe-mixin":"^1.3.0","@api-client/context-menu":"^0.2.0","@advanced-rest-client/base":"^0.1.0","@advanced-rest-client/uuid":"^4.0.0","@advanced-rest-client/icons":"^4.0.0","@advanced-rest-client/oauth":"^0.1.0","@advanced-rest-client/events":"^0.2.22","@anypoint-web-components/awc":"^1.0.5","@advanced-rest-client/highlight":"^2.0.1","@advanced-rest-client/http-code-snippets":"^4.0.0"},"eslintConfig":{"extends":["@open-wc/eslint-config","eslint-config-prettier"],"overrides":[{"files":["demo/**/*.js","test/**/*.js","dev/**/*.js","dev/**/*.mjs","**/demo/**/*.html"],"rules":{"no-console":"off","no-plusplus":"off","no-param-reassing":"off","no-unused-expressions":"off","class-methods-use-this":"off","import/no-extraneous-dependencies":"off"}}]},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"uuid":"^8.3.2","husky":"^7.0.4","sinon":"^11.1.2","eslint":"^8.1.0","typescript":"^4.4.4","lint-staged":"^11.2.4","amf-client-js":"^4.7.8","@commitlint/cli":"^13.2.1","@web/dev-server":"^0.1.25","@open-wc/testing":"^3.0.1","@web/test-runner":"^0.13.20","@open-wc/eslint-config":"^7.0.0","eslint-config-prettier":"^8.3.0","typescript-lit-html-plugin":"^0.9.0","@web/test-runner-playwright":"^0.8.8","@commitlint/config-conventional":"^13.2.0","@api-components/api-model-generator":"^0.2.14","@advanced-rest-client/arc-demo-helper":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/amf-components_1.0.0-beta.2_1635983265861_0.7184291876004396","host":"s3://npm-registry-packages"}},"1.0.0-beta.3":{"name":"@api-components/amf-components","version":"1.0.0-beta.3","keywords":["api-components","api-console","amf-components"],"author":{"name":"Pawel Uchida-Psztyc","email":"pawel.psztyc@mulesoft.com"},"license":"Apache-2.0","_id":"@api-components/amf-components@1.0.0-beta.3","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"},{"name":"twoplustwoone","email":"francisco.digiandomenico@gmail.com"},{"name":"lbauret","email":"leandro.bauret@mulesoft.com"},{"name":"carowright","email":"carolina.wright@mulesoft.com"}],"contributors":[{"name":"Carolina Wright"},{"name":"Francisco Di Giandomenico"},{"name":"Leandro Bauret"},{"name":"Yury"},{"name":"Your name can be here!"}],"homepage":"https://github.com/api-components/amf-components#readme","bugs":{"url":"https://github.com/api-components/amf-components/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"d31568163d514786b1f2b1b00d722ca9b5273f42","tarball":"https://registry.npmjs.org/@api-components/amf-components/-/amf-components-1.0.0-beta.3.tgz","fileCount":251,"integrity":"sha512-io0ANxKcVgvyn5h48YuOv1xpTahrI4qgG4vLCp6+TPUIBPd7EJB7CW6IW/kBUT7Ld6+FhwdeIrKiHmUZNomn5g==","signatures":[{"sig":"MEYCIQCvcOHY0g2jJuulC4Rvvz/KohoaAfZwhX+9qFxhb8Xm+gIhAPxGuLV+fcBDSYudgc5NQdkummRfs9kuUPqQX0igyr9G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1415521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMRofACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolCw/+LD6FHXc5GSBz4U6TsQvu0Od8usCCO6UPcJp7e2YDKoDwqzsG\r\nZzGq+5a1t/lTbyCQPy8LMvn2Lqpkktgkm+niKCAndsj6guhYnsF9w2WRXjb2\r\neipo2N0tFXmeSWH5wysqo8a07KZt7/QJIE9BzvKBiDStSebxhj1Sj8cbuAfs\r\nbXmKSG/pGPZ9i7fi2q0O4f8kJTcER1lY8iJBwmHL468uS3zmZ51WuACioHA/\r\n/ehk3onz127K8gtuUXNvGs5fbIKMilJrfEDnd5OeIzM7b6vjr7QaS2ztAD1K\r\nT+sqJyNxUnm+9dM8SiFpM8uZmwNv6DiW+B7oHG83L2QYgCdS8pBfCVMSOqH+\r\nJst/w0rbKhmojdr0ygFkCY7cVCM84+ksQBvDNrqJzK9grZVkc9CVTJVpJG8v\r\npak3CdIBKQG77JAOmJMQfOQ89JCdrTqkz3HH64C3EfgeMGSv7yGEP7CAx5jA\r\n492tGceX5kyI7BeaNWjyv+qxSA6SsV6i2PaK50l1rKjigKMq2N/sBrF4eHzj\r\nRWPRDy+daPablhJQX2aUdBYAYXRZjVMRw3ar6FBMZ5YIPceI3nLf8GOhKVKH\r\nannEsiKRNwcGnwec5jwrLXcS/7S4xlo4exVCs39kGY9or2/tI6IGc82CeFD6\r\nO77sY6aJdRElykB06RgtBLTAgB+22UwSJVA=\r\n=VFKy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"module":"index.js","readme":"# amf-components\n\nA set of web components based on LitElement that creates the visualization layer on top of the [AMF's](https://a.ml) graph model.\n\nThis project replaces all `api-*` components from this organization and consolidates the code base under a single repository.\n\n[![Published on NPM](https://img.shields.io/npm/v/@api-components/amf-components.svg)](https://www.npmjs.com/package/@api-components/amf-components)\n\n[![Tests and publishing](https://github.com/api-components/amf-components/actions/workflows/deployment.yml/badge.svg)](https://github.com/api-components/amf-components/actions/workflows/deployment.yml)\n\n## Usage\n\n### Installation\n\n```sh\nnpm install --save @api-components/amf-components\n```\n\n### Example\n\n```html\n<html>\n  <head>\n    <script type=\"module\">\n      import '@api-components/amf-components/define/api-documentation.js';\n      import '@api-components/amf-components/define/api-request.js';\n      import '@api-components/amf-components/define/api-navigation.js';\n      import '@api-components/amf-components/define/xhr-simple-request.js';\n      import '@advanced-rest-client/app/define/oidc-authorization.js';\n      import '@advanced-rest-client/app/define/oauth2-authorization.js';\n    </script>\n  </head>\n  <body>\n    <!-- A helper library that works with <api-request> to perform an HTTP request in the browser. -->\n    <xhr-simple-request></xhr-simple-request>\n    <!-- Authorization libraries to perform OAuth and OIDC authorization. -->\n    <oauth2-authorization></oauth2-authorization>\n    <oidc-authorization></oidc-authorization>\n    <nav>\n      <!-- The navigation element. Starts with the \"summary\" page selection. -->\n      <api-navigation summary domainId=\"summary\" domainType=\"summary\"></api-navigation>\n    </nav>\n    <main>\n      <!-- The main documentation element. Starts with the \"summary\" page selection. -->\n      <api-documentation handleNavigationEvents domainId=\"summary\" domainType=\"summary\"></api-documentation>\n    </main>\n    <aside>\n      <!-- The HTTP request editor. Renders forms for user input to make an HTTP request -->\n      <api-request handleNavigationEvents></api-request>\n    </aside>\n\n    <script type=\"module\">\n      import { DomEventsAmfStore } from '@api-components/amf-components';\n      (async () => {\n        const apiStore = new DomEventsAmfStore();\n        apiStore.listen();\n        apiStore.amf = await getAmfModelSomehow();\n      })();\n    </script>\n  </body>\n</html>\n```\n\n### API store\n\nThe components, unlike previously, do not rely on the graph model generated by the AMF parser. Instead they use a custom JavaScript objects generated by the [src/helpers/AmfSerializer.js](AmfSerializer) class.\nThese models are provided to the components by the [src/store/AmfStore.js](AmfStore) or the [src/store/DomEventsAmfStore.js](DomEventsAmfStore). This was developers implementing the components have the most flexibility of providing the console with the graph model that source may be in a different location (like HTTP queries).\n\nSee [docs/architecture.md](docs/architecture.md) for more details.\n\n### Monaco editor\n\nThe request editor uses the Monaco editor (by Microsoft) to render the body editor.\nThe library has to be loaded to the document before the request editor is rendered. Use the `@advanced-rest-client/monaco-support` module and `MonacoLoader` class to load the editor with defaults.\n\n```javascript\nimport { MonacoLoader } from '@advanced-rest-client/monaco-support';\n\nconst base = new URL(`../node_modules/monaco-editor/`, window.location.href).toString();\nMonacoLoader.createEnvironment(base);\nawait MonacoLoader.loadMonaco(base);\nawait MonacoLoader.monacoReady();\n```\n\n## Development\n\n```sh\ngit clone https://github.com/api-components/amf-components\ncd amf-components\nnpm install\n```\n\n### Running the demo locally\n\n```sh\nnpm start\n```\n\n### Running the tests\n\n```sh\nnpm test\n```\n","gitHead":"cc6c11bfc0027b978d5078f4b74b38310ec5e448","scripts":{"lint":"npm run lint:eslint","test":"web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium webkit","start":"web-dev-server","format":"npm run format:eslint","gen:wc":"wca analyze \"*.js\" --outFile custom-elements.json","prepare":"husky install && node demo/model.mjs","test:all":"web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit","lint:types":"tsc","test:watch":"web-test-runner --node-resolve --watch --playwright --browsers chromium","lint:eslint":"eslint --ext .js,.html . --ignore-path .gitignore","format:eslint":"eslint --ext .js,.html . --fix --ignore-path .gitignore"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git://github.com/api-components/amf-components.git","type":"git"},"_npmVersion":"6.14.16","description":"A set of web components based on LitElement that creates the visualization layer on top of the AMF's graph model.","directories":{},"lint-staged":{"*.js":["eslint --fix"]},"_nodeVersion":"14.19.0","dependencies":{"lit-html":"^1.4.1","dompurify":"^2.3.3","lit-element":"^2.5.1","amf-json-ld-lib":"0.0.14","@pawel-up/data-mock":"^0.1.7","@open-wc/dedupe-mixin":"^1.3.0","@api-client/context-menu":"^0.2.0","@advanced-rest-client/base":"^0.1.0","@advanced-rest-client/uuid":"^4.0.0","@advanced-rest-client/icons":"^4.0.0","@advanced-rest-client/oauth":"^0.1.0","@advanced-rest-client/events":"^0.2.22","@anypoint-web-components/awc":"^1.0.5","@advanced-rest-client/highlight":"^2.0.1","@advanced-rest-client/http-code-snippets":"^4.0.0"},"eslintConfig":{"extends":["@open-wc/eslint-config","eslint-config-prettier"],"overrides":[{"files":["demo/**/*.js","test/**/*.js","dev/**/*.js","dev/**/*.mjs","**/demo/**/*.html"],"rules":{"no-console":"off","no-plusplus":"off","no-param-reassing":"off","no-unused-expressions":"off","class-methods-use-this":"off","import/no-extraneous-dependencies":"off"}}]},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"uuid":"^8.3.2","husky":"^7.0.4","sinon":"^13.0.1","eslint":"^8.1.0","typescript":"^4.4.4","lint-staged":"^12.3.5","amf-client-js":"^5.0.5","@commitlint/cli":"^16.2.1","@web/dev-server":"^0.1.25","@open-wc/testing":"^3.0.1","@web/test-runner":"^0.13.20","@open-wc/eslint-config":"^7.0.0","eslint-config-prettier":"^8.3.0","typescript-lit-html-plugin":"^0.9.0","@web/test-runner-playwright":"^0.8.8","@commitlint/config-conventional":"^16.2.1","@advanced-rest-client/arc-demo-helper":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/amf-components_1.0.0-beta.3_1647385119435_0.9252160144691384","host":"s3://npm-registry-packages"}},"1.0.0-beta.4":{"name":"@api-components/amf-components","version":"1.0.0-beta.4","keywords":["api-components","api-console","amf-components"],"author":{"name":"Pawel Uchida-Psztyc","email":"pawel.psztyc@mulesoft.com"},"license":"Apache-2.0","_id":"@api-components/amf-components@1.0.0-beta.4","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"},{"name":"twoplustwoone","email":"francisco.digiandomenico@gmail.com"},{"name":"lbauret","email":"leandro.bauret@mulesoft.com"},{"name":"carowright","email":"carolina.wright@mulesoft.com"}],"contributors":[{"name":"Carolina Wright"},{"name":"Francisco Di Giandomenico"},{"name":"Leandro Bauret"},{"name":"Yury"},{"name":"Your name can be here!"}],"homepage":"https://github.com/api-components/amf-components#readme","bugs":{"url":"https://github.com/api-components/amf-components/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"1d547f0ae138f641f690bbe3a68aa76cbf608ce1","tarball":"https://registry.npmjs.org/@api-components/amf-components/-/amf-components-1.0.0-beta.4.tgz","fileCount":251,"integrity":"sha512-Lcd/T8XjgMG2ArcM0Sho1kD0rph5cIUdAooRzBOvesglq6UNsw64hu3j2Z6ndIsm2aN3T6Qr1ERHDR2ffZnGfQ==","signatures":[{"sig":"MEQCIE9sMw2nRFMlXcfrG7YZGYFgeBWYK/D7bH166PRrQXEKAiAEX5dSYxQF2wzo9NS1mSJ5qmqQ4S531wEZsMlPB48LrQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1416397,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMSUOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIAhAAi5zi4rTiDrpXklH57bGVyTX2r+7eDCi6+jZ1dq5rGul7nliO\r\npWy2quqGRDLmOEmRx4MDnrba2clXPv8iUU5i1w7xPGMOSjUqc8S/gTo4kk62\r\n3L5rlEi1M7rMovaK1HXqMC9LjUmhrRew+if1OBoT1aLYtyw/7cgIkCQgLZLY\r\ngsRe+YykuaKA4AdM4SzH7S0jvfFZh0wE2YrPCC5fSs0hMgelQ3ShvD7ZdqcL\r\n/w2fMeEFskD3EoTPrcKbOd+gZ2Ez2pbhjCvJnjK/10aipxFEKKFhYHrxgg1Y\r\nhRmvFOOSECUB0pEneypZB2H8TNZZXOdEEqBw40yXsEXgUDI21W4VRVywi3rI\r\nU4WgxaAtMoB6B7eVMRiKf5/q31FNBT4tgTocvTGQ/O2SO21e9oyut3O78Q1v\r\noiVdcsCVZzoRpkyQaa7MfAj1qsYhdMD+4OzjUXbl98MUK7JbTsiR6a02l8Fk\r\nAY8rZmCrn9DHzQxa9ALO2W2tw1WT4xKXoa8ssCobglpydbkYmpdXuxrsZXwq\r\nxSy9l/I8kFOnQj+9Qsk7hib4UhALBHTYPWvbdCTo04EgTIzIE7lPGwjW9AV/\r\ntjCWKOBoxxd4uylGuahRIrgAfJOCWwQocaCtTdmtYRx6sTSRzAxm4q3XkMdv\r\nCvJjp743Z+g3GniTQb8neLbnWtOyT/0oL70=\r\n=sN3L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"module":"index.js","readme":"# amf-components\n\nA set of web components based on LitElement that creates the visualization layer on top of the [AMF's](https://a.ml) graph model.\n\nThis project replaces all `api-*` components from this organization and consolidates the code base under a single repository.\n\n[![Published on NPM](https://img.shields.io/npm/v/@api-components/amf-components.svg)](https://www.npmjs.com/package/@api-components/amf-components)\n\n[![Tests and publishing](https://github.com/api-components/amf-components/actions/workflows/deployment.yml/badge.svg)](https://github.com/api-components/amf-components/actions/workflows/deployment.yml)\n\n## Usage\n\n### Installation\n\n```sh\nnpm install --save @api-components/amf-components\n```\n\n### Example\n\n```html\n<html>\n  <head>\n    <script type=\"module\">\n      import '@api-components/amf-components/define/api-documentation.js';\n      import '@api-components/amf-components/define/api-request.js';\n      import '@api-components/amf-components/define/api-navigation.js';\n      import '@api-components/amf-components/define/xhr-simple-request.js';\n      import '@advanced-rest-client/app/define/oidc-authorization.js';\n      import '@advanced-rest-client/app/define/oauth2-authorization.js';\n    </script>\n  </head>\n  <body>\n    <!-- A helper library that works with <api-request> to perform an HTTP request in the browser. -->\n    <xhr-simple-request></xhr-simple-request>\n    <!-- Authorization libraries to perform OAuth and OIDC authorization. -->\n    <oauth2-authorization></oauth2-authorization>\n    <oidc-authorization></oidc-authorization>\n    <nav>\n      <!-- The navigation element. Starts with the \"summary\" page selection. -->\n      <api-navigation summary domainId=\"summary\" domainType=\"summary\"></api-navigation>\n    </nav>\n    <main>\n      <!-- The main documentation element. Starts with the \"summary\" page selection. -->\n      <api-documentation handleNavigationEvents domainId=\"summary\" domainType=\"summary\"></api-documentation>\n    </main>\n    <aside>\n      <!-- The HTTP request editor. Renders forms for user input to make an HTTP request -->\n      <api-request handleNavigationEvents></api-request>\n    </aside>\n\n    <script type=\"module\">\n      import { DomEventsAmfStore } from '@api-components/amf-components';\n      (async () => {\n        const apiStore = new DomEventsAmfStore();\n        apiStore.listen();\n        apiStore.amf = await getAmfModelSomehow();\n      })();\n    </script>\n  </body>\n</html>\n```\n\n### API store\n\nThe components, unlike previously, do not rely on the graph model generated by the AMF parser. Instead they use a custom JavaScript objects generated by the [src/helpers/AmfSerializer.js](AmfSerializer) class.\nThese models are provided to the components by the [src/store/AmfStore.js](AmfStore) or the [src/store/DomEventsAmfStore.js](DomEventsAmfStore). This was developers implementing the components have the most flexibility of providing the console with the graph model that source may be in a different location (like HTTP queries).\n\nSee [docs/architecture.md](docs/architecture.md) for more details.\n\n### Monaco editor\n\nThe request editor uses the Monaco editor (by Microsoft) to render the body editor.\nThe library has to be loaded to the document before the request editor is rendered. Use the `@advanced-rest-client/monaco-support` module and `MonacoLoader` class to load the editor with defaults.\n\n```javascript\nimport { MonacoLoader } from '@advanced-rest-client/monaco-support';\n\nconst base = new URL(`../node_modules/monaco-editor/`, window.location.href).toString();\nMonacoLoader.createEnvironment(base);\nawait MonacoLoader.loadMonaco(base);\nawait MonacoLoader.monacoReady();\n```\n\n## Development\n\n```sh\ngit clone https://github.com/api-components/amf-components\ncd amf-components\nnpm install\n```\n\n### Running the demo locally\n\n```sh\nnpm start\n```\n\n### Running the tests\n\n```sh\nnpm test\n```\n","gitHead":"0fc8f07ff50342d5b06fefc98885740a258e2b4d","scripts":{"lint":"npm run lint:eslint","test":"web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium webkit","start":"web-dev-server","format":"npm run format:eslint","gen:wc":"wca analyze \"*.js\" --outFile custom-elements.json","prepare":"husky install && node demo/model.mjs","test:all":"web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit","lint:types":"tsc","test:watch":"web-test-runner --node-resolve --watch --playwright --browsers chromium","lint:eslint":"eslint --ext .js,.html . --ignore-path .gitignore","format:eslint":"eslint --ext .js,.html . --fix --ignore-path .gitignore"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git://github.com/api-components/amf-components.git","type":"git"},"_npmVersion":"6.14.16","description":"A set of web components based on LitElement that creates the visualization layer on top of the AMF's graph model.","directories":{},"lint-staged":{"*.js":["eslint --fix"]},"_nodeVersion":"14.19.0","dependencies":{"lit-html":"^1.4.1","dompurify":"^2.3.3","lit-element":"^2.5.1","amf-json-ld-lib":"0.0.14","@pawel-up/data-mock":"^0.1.7","@open-wc/dedupe-mixin":"^1.3.0","@api-client/context-menu":"^0.2.0","@advanced-rest-client/base":"^0.1.0","@advanced-rest-client/uuid":"^4.0.0","@advanced-rest-client/icons":"^4.0.0","@advanced-rest-client/oauth":"^0.1.0","@advanced-rest-client/events":"^0.2.22","@anypoint-web-components/awc":"^1.0.5","@advanced-rest-client/highlight":"^2.0.1","@advanced-rest-client/http-code-snippets":"^4.0.0"},"eslintConfig":{"extends":["@open-wc/eslint-config","eslint-config-prettier"],"overrides":[{"files":["demo/**/*.js","test/**/*.js","dev/**/*.js","dev/**/*.mjs","**/demo/**/*.html"],"rules":{"no-console":"off","no-plusplus":"off","no-param-reassing":"off","no-unused-expressions":"off","class-methods-use-this":"off","import/no-extraneous-dependencies":"off"}}]},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"uuid":"^8.3.2","husky":"^7.0.4","sinon":"^13.0.1","eslint":"^8.1.0","typescript":"^4.4.4","lint-staged":"^12.3.5","amf-client-js":"^5.0.5","@commitlint/cli":"^16.2.1","@web/dev-server":"^0.1.25","@open-wc/testing":"^3.0.1","@web/test-runner":"^0.13.20","@open-wc/eslint-config":"^7.0.0","eslint-config-prettier":"^8.3.0","typescript-lit-html-plugin":"^0.9.0","@web/test-runner-playwright":"^0.8.8","@commitlint/config-conventional":"^16.2.1","@advanced-rest-client/arc-demo-helper":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/amf-components_1.0.0-beta.4_1647387918515_0.02323241170983681","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-10-25T01:23:00.770Z","modified":"2026-04-07T19:23:31.796Z","1.0.0-beta.1":"2021-10-25T01:23:01.037Z","1.0.0-beta.2":"2021-11-03T23:47:46.080Z","1.0.0-beta.3":"2022-03-15T22:58:39.695Z","1.0.0-beta.4":"2022-03-15T23:45:18.740Z"},"bugs":{"url":"https://github.com/advanced-rest-client/amf-components/issues","email":"arc@mulesoft.com"},"author":{"name":"Pawel Uchida-Psztyc","email":"pawel.psztyc@mulesoft.com"},"license":"Apache-2.0","homepage":"https://github.com/advanced-rest-client/amf-components#readme","keywords":["api-components","api-console","amf-components"],"repository":{"url":"git://github.com/advanced-rest-client/amf-components.git","type":"git"},"description":"A set of web components based on LitElement that creates the visualization layer on top of the AMF's graph model.","contributors":[{"name":"Carolina Wright"},{"name":"Francisco Di Giandomenico"},{"name":"Leandro Bauret"},{"name":"Yury"},{"name":"Your name can be here!"}],"maintainers":[{"email":"jarrodek@gmail.com","name":"jarrodek"},{"email":"alexperez@mulesoft.com","name":"alexperez_march_2024"},{"email":"elmellidiego@gmail.com","name":"dmacias"}],"readme":"","readmeFilename":""}