= ({
diff --git a/library/src/standalone-codebase.ts b/library/src/standalone-codebase.ts
index 39fcd2575..b04fd996c 100644
--- a/library/src/standalone-codebase.ts
+++ b/library/src/standalone-codebase.ts
@@ -1,12 +1,7 @@
import React from 'react';
-import {
- // eslint-disable-next-line react/no-deprecated
- hydrate as hydrateComponent,
- // eslint-disable-next-line react/no-deprecated
- render as renderComponent,
-} from 'react-dom';
-
-function querySelector(selector: string): Element | DocumentFragment | null {
+import { hydrateRoot, createRoot } from 'react-dom/client';
+
+function querySelector(selector: string): Element | null {
if (typeof document !== 'undefined') {
return document.querySelector(selector);
}
@@ -18,20 +13,19 @@ function querySelector(selector: string): Element | DocumentFragment | null {
*
* @param {Any} component of any kind
*/
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export function createRender(component: any) {
- return (
- props: P,
- container?: Element | DocumentFragment | null,
- callback?: () => void,
- ) => {
+export function createRender<
+ Props extends Parameters[1],
+>(component: Parameters[0]) {
+ return (props: Props, container?: Element | DocumentFragment | null) => {
container = container ?? querySelector('asyncapi');
+
if (container === null) {
return;
}
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
- renderComponent(React.createElement(component, props), container, callback);
+ const root = createRoot(container);
+
+ root.render(React.createElement(component, props));
};
}
@@ -40,23 +34,16 @@ export function createRender(component: any) {
*
* @param {Any} component of any kind
*/
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export function createHydrate
(component: any) {
- return (
- props: P,
- container?: Element | DocumentFragment | null,
- callback?: () => void,
- ) => {
+export function createHydrate<
+ Props extends Parameters[1],
+>(component: Parameters[0]) {
+ return (props: Props, container?: Element | Document | null) => {
container = container ?? querySelector('asyncapi');
+
if (container === null) {
return;
}
- hydrateComponent(
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
- React.createElement(component, props),
- container,
- callback,
- );
+ hydrateRoot(container, React.createElement(component, props));
};
}
diff --git a/package-lock.json b/package-lock.json
index e2bba9b7a..f64e856f0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -26,7 +26,6 @@
"markdown-toc": "^1.2.0",
"markdownlint-cli": "^0.17.0",
"prettier": "^3.2.5",
- "react-split": "^2.0.9",
"tslib": "^1.10.0",
"typescript": "^5.3.3"
},
@@ -48,21 +47,21 @@
"isomorphic-dompurify": "^0.13.0",
"marked": "^4.0.14",
"openapi-sampler": "^1.2.1",
- "use-resize-observer": "^8.0.0"
+ "use-resize-observer": "^9.1.0"
},
"devDependencies": {
"@cypress/webpack-preprocessor": "^5.9.0",
"@tailwindcss/typography": "^0.4.0",
"@testing-library/jest-dom": "^5.17.0",
- "@testing-library/react": "^12.1.5",
+ "@testing-library/react": "^15.0.4",
"@testing-library/user-event": "^12.8.3",
"@types/dompurify": "^2.0.4",
"@types/highlight.js": "^10.1.0",
"@types/jest": "^26.0.23",
"@types/marked": "^4.0.1",
"@types/node": "^12.7.2",
- "@types/react": "^16.9.2",
- "@types/react-dom": "^17.0.3",
+ "@types/react": "^18.2.79",
+ "@types/react-dom": "^18.2.25",
"autoprefixer": "^10.2.5",
"cross-env": "^7.0.3",
"cssnano": "^4.1.11",
@@ -73,8 +72,8 @@
"postcss-cli": "^8.3.1",
"postcss-import": "^14.0.2",
"postcss-scopify": "^0.1.9",
- "react": "^16.8.0",
- "react-dom": "^16.8.0",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
"tailwindcss": "^2.1.1",
"ts-jest": "^26.4.1",
"ts-loader": "9.4.4",
@@ -83,72 +82,8 @@
"webpack-cli": "5.1.4"
},
"peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
- "library/node_modules/@testing-library/dom": {
- "version": "8.20.1",
- "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.1.tgz",
- "integrity": "sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==",
- "dev": true,
- "dependencies": {
- "@babel/code-frame": "^7.10.4",
- "@babel/runtime": "^7.12.5",
- "@types/aria-query": "^5.0.1",
- "aria-query": "5.1.3",
- "chalk": "^4.1.0",
- "dom-accessibility-api": "^0.5.9",
- "lz-string": "^1.5.0",
- "pretty-format": "^27.0.2"
- },
- "engines": {
- "node": ">=12"
- }
- },
- "library/node_modules/@testing-library/react": {
- "version": "12.1.5",
- "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-12.1.5.tgz",
- "integrity": "sha512-OfTXCJUFgjd/digLUuPxa0+/3ZxsQmE7ub9kcbW/wi96Bh3o/p5vrETcBGfP17NWPGqeYYl5LTRpwyGoMC4ysg==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@testing-library/dom": "^8.0.0",
- "@types/react-dom": "<18.0.0"
- },
- "engines": {
- "node": ">=12"
- },
- "peerDependencies": {
- "react": "<18.0.0",
- "react-dom": "<18.0.0"
- }
- },
- "library/node_modules/react": {
- "version": "16.14.0",
- "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz",
- "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==",
- "dependencies": {
- "loose-envify": "^1.1.0",
- "object-assign": "^4.1.1",
- "prop-types": "^15.6.2"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "library/node_modules/react-dom": {
- "version": "16.14.0",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz",
- "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==",
- "dependencies": {
- "loose-envify": "^1.1.0",
- "object-assign": "^4.1.1",
- "prop-types": "^15.6.2",
- "scheduler": "^0.19.1"
- },
- "peerDependencies": {
- "react": "^16.14.0"
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
}
},
"library/node_modules/ts-jest": {
@@ -193,18 +128,6 @@
"node": ">=4.2.0"
}
},
- "library/node_modules/use-resize-observer": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
- "integrity": "sha512-n0iKSeiQpJCyaFh5JA0qsVLBIovsF4EIIR1G6XiBwKJN66ZrD4Oj62bjcuTAATPKiSp6an/2UZZxCf/67fk3sQ==",
- "dependencies": {
- "@juggle/resize-observer": "^3.3.1"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
"node_modules/@aashutoshrathi/word-wrap": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
@@ -5156,23 +5079,22 @@
}
},
"node_modules/@testing-library/dom": {
- "version": "9.3.4",
- "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.3.4.tgz",
- "integrity": "sha512-FlS4ZWlp97iiNWig0Muq8p+3rVDjRiYE+YKGbAqXOu9nwJFFOdL00kFpz42M+4huzYi86vAK1sOOfyOG45muIQ==",
+ "version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.0.0.tgz",
+ "integrity": "sha512-PmJPnogldqoVFf+EwbHvbBJ98MmqASV8kLrBYgsDNxQcFMeIS7JFL48sfyXvuMtgmWO/wMhh25odr+8VhDmn4g==",
"dev": true,
- "peer": true,
"dependencies": {
"@babel/code-frame": "^7.10.4",
"@babel/runtime": "^7.12.5",
"@types/aria-query": "^5.0.1",
- "aria-query": "5.1.3",
+ "aria-query": "5.3.0",
"chalk": "^4.1.0",
"dom-accessibility-api": "^0.5.9",
"lz-string": "^1.5.0",
"pretty-format": "^27.0.2"
},
"engines": {
- "node": ">=14"
+ "node": ">=18"
}
},
"node_modules/@testing-library/jest-dom": {
@@ -5210,6 +5132,24 @@
"node": ">=8"
}
},
+ "node_modules/@testing-library/react": {
+ "version": "15.0.4",
+ "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-15.0.4.tgz",
+ "integrity": "sha512-Fw/LM1emOHKfCxv5R0tz+25TOtiMt0o5Np1zJmb4LbSacOagXQX4ooAaHiJfGUMe+OjUk504BX11W+9Z8CvyZA==",
+ "dev": true,
+ "dependencies": {
+ "@babel/runtime": "^7.12.5",
+ "@testing-library/dom": "^10.0.0",
+ "@types/react-dom": "^18.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "react": "^18.0.0",
+ "react-dom": "^18.0.0"
+ }
+ },
"node_modules/@testing-library/user-event": {
"version": "12.8.3",
"resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-12.8.3.tgz",
@@ -5510,42 +5450,24 @@
"dev": true
},
"node_modules/@types/react": {
- "version": "16.14.58",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.58.tgz",
- "integrity": "sha512-F8FNMutMPDU2AitpdmBUZozvli+0oCMdgRXG5dY+01gHxYsw6i+dX7HAoYE7k1inZ0ATNVbsjOfrWptUy+kbvA==",
+ "version": "18.2.79",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.79.tgz",
+ "integrity": "sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w==",
"dev": true,
"dependencies": {
"@types/prop-types": "*",
- "@types/scheduler": "*",
"csstype": "^3.0.2"
}
},
"node_modules/@types/react-dom": {
- "version": "17.0.25",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.25.tgz",
- "integrity": "sha512-urx7A7UxkZQmThYA4So0NelOVjx3V4rNFVJwp0WZlbIK5eM4rNJDiN3R/E9ix0MBh6kAEojk/9YL+Te6D9zHNA==",
- "dev": true,
- "dependencies": {
- "@types/react": "^17"
- }
- },
- "node_modules/@types/react-dom/node_modules/@types/react": {
- "version": "17.0.77",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.77.tgz",
- "integrity": "sha512-iDAZD0Oq82JyO/EfLI12s9EgE+qqshyURjJn4o8E3bF0D69ScuQOF2/+KE++Zt09y8nSw3Bb3JWBBh/g5H87cg==",
+ "version": "18.2.25",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.25.tgz",
+ "integrity": "sha512-o/V48vf4MQh7juIKZU2QGDfli6p1+OOi5oXx36Hffpc9adsHeXjVp8rHuPkjd8VT8sOJ2Zp05HR7CdpGTIUFUA==",
"dev": true,
"dependencies": {
- "@types/prop-types": "*",
- "@types/scheduler": "*",
- "csstype": "^3.0.2"
+ "@types/react": "*"
}
},
- "node_modules/@types/scheduler": {
- "version": "0.16.8",
- "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz",
- "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==",
- "dev": true
- },
"node_modules/@types/semver": {
"version": "7.5.8",
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
@@ -6698,12 +6620,12 @@
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
},
"node_modules/aria-query": {
- "version": "5.1.3",
- "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz",
- "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
"dev": true,
"dependencies": {
- "deep-equal": "^2.0.5"
+ "dequal": "^2.0.3"
}
},
"node_modules/arr-diff": {
@@ -9842,38 +9764,6 @@
"integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==",
"dev": true
},
- "node_modules/deep-equal": {
- "version": "2.2.3",
- "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.3.tgz",
- "integrity": "sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==",
- "dev": true,
- "dependencies": {
- "array-buffer-byte-length": "^1.0.0",
- "call-bind": "^1.0.5",
- "es-get-iterator": "^1.1.3",
- "get-intrinsic": "^1.2.2",
- "is-arguments": "^1.1.1",
- "is-array-buffer": "^3.0.2",
- "is-date-object": "^1.0.5",
- "is-regex": "^1.1.4",
- "is-shared-array-buffer": "^1.0.2",
- "isarray": "^2.0.5",
- "object-is": "^1.1.5",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.4",
- "regexp.prototype.flags": "^1.5.1",
- "side-channel": "^1.0.4",
- "which-boxed-primitive": "^1.0.2",
- "which-collection": "^1.0.1",
- "which-typed-array": "^1.1.13"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/deep-extend": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz",
@@ -10555,26 +10445,6 @@
"node": ">= 0.4"
}
},
- "node_modules/es-get-iterator": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz",
- "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==",
- "dev": true,
- "dependencies": {
- "call-bind": "^1.0.2",
- "get-intrinsic": "^1.1.3",
- "has-symbols": "^1.0.3",
- "is-arguments": "^1.1.1",
- "is-map": "^2.0.2",
- "is-set": "^2.0.2",
- "is-string": "^1.0.7",
- "isarray": "^2.0.5",
- "stop-iteration-iterator": "^1.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/es-iterator-helpers": {
"version": "1.0.17",
"resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.17.tgz",
@@ -11217,15 +11087,6 @@
"eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8"
}
},
- "node_modules/eslint-plugin-jsx-a11y/node_modules/aria-query": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
- "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
- "dev": true,
- "dependencies": {
- "dequal": "^2.0.3"
- }
- },
"node_modules/eslint-plugin-prettier": {
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz",
@@ -23079,15 +22940,6 @@
"node": ">=10"
}
},
- "node_modules/scheduler": {
- "version": "0.19.1",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz",
- "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==",
- "dependencies": {
- "loose-envify": "^1.1.0",
- "object-assign": "^4.1.1"
- }
- },
"node_modules/schema-utils": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz",
@@ -24034,18 +23886,6 @@
"node": ">= 0.4"
}
},
- "node_modules/stop-iteration-iterator": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz",
- "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==",
- "dev": true,
- "dependencies": {
- "internal-slot": "^1.0.4"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
"node_modules/stream-browserify": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz",
@@ -26369,6 +26209,18 @@
"node": ">=0.10.0"
}
},
+ "node_modules/use-resize-observer": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-9.1.0.tgz",
+ "integrity": "sha512-R25VqO9Wb3asSD4eqtcxk8sJalvIOYBqS8MNZlpDSQ4l4xMQxC/J7Id9HoTqPq8FwULIn0PVW+OAqF2dyYbjow==",
+ "dependencies": {
+ "@juggle/resize-observer": "^3.3.1"
+ },
+ "peerDependencies": {
+ "react": "16.8.0 - 18",
+ "react-dom": "16.8.0 - 18"
+ }
+ },
"node_modules/util": {
"version": "0.12.5",
"resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz",
@@ -27325,26 +27177,6 @@
"undici-types": "~5.26.4"
}
},
- "playground/node_modules/@types/react": {
- "version": "18.2.66",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.66.tgz",
- "integrity": "sha512-OYTmMI4UigXeFMF/j4uv0lBBEbongSgptPrHBxqME44h9+yNov+oL6Z3ocJKo0WyXR84sQUNeyIp9MRfckvZpg==",
- "dev": true,
- "dependencies": {
- "@types/prop-types": "*",
- "@types/scheduler": "*",
- "csstype": "^3.0.2"
- }
- },
- "playground/node_modules/@types/react-dom": {
- "version": "18.2.22",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.22.tgz",
- "integrity": "sha512-fHkBXPeNtfvri6gdsMYyW+dW7RXFo6Ad09nLFK0VQWR7yGLai/Cyvyj696gbwYvBnhGtevUG9cET0pmUbMtoPQ==",
- "dev": true,
- "dependencies": {
- "@types/react": "*"
- }
- },
"playground/node_modules/object-hash": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",
@@ -27511,44 +27343,17 @@
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/react-component": "^1.4.10",
- "react": "^16.8.0",
- "react-dom": "^16.8.0",
+ "react": "^18",
+ "react-dom": "^18",
"web-react-components": "^1.4.2"
},
"devDependencies": {
- "@types/react": "^16.9.2",
+ "@types/react": "^18",
"node-polyfill-webpack-plugin": "^2.0.1",
"ts-loader": "9.4.4",
"webpack": "5.88.2",
"webpack-cli": "5.1.4"
}
- },
- "web-component/node_modules/react": {
- "version": "16.14.0",
- "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz",
- "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==",
- "dependencies": {
- "loose-envify": "^1.1.0",
- "object-assign": "^4.1.1",
- "prop-types": "^15.6.2"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "web-component/node_modules/react-dom": {
- "version": "16.14.0",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz",
- "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==",
- "dependencies": {
- "loose-envify": "^1.1.0",
- "object-assign": "^4.1.1",
- "prop-types": "^15.6.2",
- "scheduler": "^0.19.1"
- },
- "peerDependencies": {
- "react": "^16.14.0"
- }
}
}
}
diff --git a/package.json b/package.json
index bc8e158df..2d2fa9946 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,6 @@
"markdown-toc": "^1.2.0",
"markdownlint-cli": "^0.17.0",
"prettier": "^3.2.5",
- "react-split": "^2.0.9",
"tslib": "^1.10.0",
"typescript": "^5.3.3"
}
diff --git a/web-component/package.json b/web-component/package.json
index 7a3f57a69..577c3c30f 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -45,12 +45,12 @@
},
"dependencies": {
"@asyncapi/react-component": "^1.4.10",
- "react": "^16.8.0",
- "react-dom": "^16.8.0",
+ "react": "^18",
+ "react-dom": "^18",
"web-react-components": "^1.4.2"
},
"devDependencies": {
- "@types/react": "^16.9.2",
+ "@types/react": "^18",
"node-polyfill-webpack-plugin": "^2.0.1",
"ts-loader": "9.4.4",
"webpack": "5.88.2",
From 9a044f29493c75d8a9d7b05c0b6f16c7d69eb000 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Mon, 29 Apr 2024 10:29:38 +0200
Subject: [PATCH 06/28] chore(release): v2.0.0 (#1000)
---
library/package.json | 2 +-
package-lock.json | 50 +++++++++++++++++++++++++++++++++++---
playground/package.json | 2 +-
web-component/package.json | 2 +-
4 files changed, 50 insertions(+), 6 deletions(-)
diff --git a/library/package.json b/library/package.json
index 2fc67a2b4..f40125e23 100644
--- a/library/package.json
+++ b/library/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
- "version": "1.4.10",
+ "version": "2.0.0",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
diff --git a/package-lock.json b/package-lock.json
index f64e856f0..1ca23bdbb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
},
"library": {
"name": "@asyncapi/react-component",
- "version": "1.4.10",
+ "version": "2.0.0",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.22",
@@ -27146,7 +27146,7 @@
}
},
"playground": {
- "version": "1.4.10",
+ "version": "2.0.0",
"dependencies": {
"@asyncapi/react-component": "^1.4.10",
"@codemirror/lang-yaml": "^6.0.0",
@@ -27325,6 +27325,18 @@
"node": ">=14.0.0"
}
},
+ "playground/node_modules/use-resize-observer": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
+ "integrity": "sha512-n0iKSeiQpJCyaFh5JA0qsVLBIovsF4EIIR1G6XiBwKJN66ZrD4Oj62bjcuTAATPKiSp6an/2UZZxCf/67fk3sQ==",
+ "dependencies": {
+ "@juggle/resize-observer": "^3.3.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
"playground/node_modules/yaml": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz",
@@ -27339,7 +27351,7 @@
},
"web-component": {
"name": "@asyncapi/web-component",
- "version": "1.4.10",
+ "version": "2.0.0",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/react-component": "^1.4.10",
@@ -27354,6 +27366,38 @@
"webpack": "5.88.2",
"webpack-cli": "5.1.4"
}
+ },
+ "web-component/node_modules/@asyncapi/react-component": {
+ "version": "1.4.10",
+ "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
+ "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
+ "dependencies": {
+ "@asyncapi/avro-schema-parser": "^3.0.22",
+ "@asyncapi/openapi-schema-parser": "^3.0.22",
+ "@asyncapi/parser": "^3.0.14",
+ "@asyncapi/protobuf-schema-parser": "^3.2.12",
+ "highlight.js": "^10.7.2",
+ "isomorphic-dompurify": "^0.13.0",
+ "marked": "^4.0.14",
+ "openapi-sampler": "^1.2.1",
+ "use-resize-observer": "^8.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "web-component/node_modules/use-resize-observer": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
+ "integrity": "sha512-n0iKSeiQpJCyaFh5JA0qsVLBIovsF4EIIR1G6XiBwKJN66ZrD4Oj62bjcuTAATPKiSp6an/2UZZxCf/67fk3sQ==",
+ "dependencies": {
+ "@juggle/resize-observer": "^3.3.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
}
}
}
diff --git a/playground/package.json b/playground/package.json
index 3c530ab07..0b3985f6d 100644
--- a/playground/package.json
+++ b/playground/package.json
@@ -1,6 +1,6 @@
{
"name": "playground",
- "version": "1.4.10",
+ "version": "2.0.0",
"private": true,
"scripts": {
"build": "next build && touch out/.nojekyll",
diff --git a/web-component/package.json b/web-component/package.json
index 577c3c30f..ced8b0c71 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
- "version": "1.4.10",
+ "version": "2.0.0",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
From f07356afdef4ff3dbd1aabf85fffac885562c3a2 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Tue, 30 Apr 2024 11:06:52 +0200
Subject: [PATCH 07/28] ci: update of files from global .github repo (#1001)
---
.github/workflows/if-nodejs-release.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml
index 234c5a9c5..e578d9002 100644
--- a/.github/workflows/if-nodejs-release.yml
+++ b/.github/workflows/if-nodejs-release.yml
@@ -15,6 +15,7 @@ on:
- next-major-spec
- beta
- alpha
+ - next
jobs:
@@ -128,4 +129,4 @@ jobs:
fields: repo,action,workflow
text: 'Release workflow failed in release job'
env:
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
\ No newline at end of file
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
From b11120303ee5c3d5d47afe78b7d4c0f4cf91a2ac Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 2 May 2024 12:13:45 +0200
Subject: [PATCH 08/28] chore(deps-dev): bump ejs from 3.1.9 to 3.1.10 (#1002)
---
package-lock.json | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 1ca23bdbb..525c8dfa2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10188,9 +10188,9 @@
"dev": true
},
"node_modules/ejs": {
- "version": "3.1.9",
- "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz",
- "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==",
+ "version": "3.1.10",
+ "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
+ "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==",
"dev": true,
"dependencies": {
"jake": "^10.8.5"
@@ -27168,6 +27168,26 @@
"typescript": "^5"
}
},
+ "playground/node_modules/@asyncapi/react-component": {
+ "version": "1.4.10",
+ "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
+ "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
+ "dependencies": {
+ "@asyncapi/avro-schema-parser": "^3.0.22",
+ "@asyncapi/openapi-schema-parser": "^3.0.22",
+ "@asyncapi/parser": "^3.0.14",
+ "@asyncapi/protobuf-schema-parser": "^3.2.12",
+ "highlight.js": "^10.7.2",
+ "isomorphic-dompurify": "^0.13.0",
+ "marked": "^4.0.14",
+ "openapi-sampler": "^1.2.1",
+ "use-resize-observer": "^8.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
"playground/node_modules/@types/node": {
"version": "20.11.27",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.27.tgz",
From 18db57359280b15ce81bcee22057dad8bea841f5 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Mon, 6 May 2024 08:50:58 +0200
Subject: [PATCH 09/28] ci: update of files from global .github repo (#1003)
---
.github/workflows/bounty-program-commands.yml | 50 ++++++++++++++++---
1 file changed, 43 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/bounty-program-commands.yml b/.github/workflows/bounty-program-commands.yml
index 433f7d953..645e0c90d 100644
--- a/.github/workflows/bounty-program-commands.yml
+++ b/.github/workflows/bounty-program-commands.yml
@@ -14,12 +14,18 @@ on:
types:
- created
+env:
+ BOUNTY_PROGRAM_LABELS_JSON: |
+ [
+ {"name": "bounty", "color": "0e8a16", "description": "Participation in the Bounty Program"}
+ ]
+
jobs:
guard-against-unauthorized-use:
if: >
github.actor != ('aeworxet' || 'thulieblack') &&
(
- contains(github.event.comment.body, '/bounty' )
+ startsWith(github.event.comment.body, '/bounty' )
)
runs-on: ubuntu-latest
@@ -46,15 +52,10 @@ jobs:
if: >
github.actor == ('aeworxet' || 'thulieblack') &&
(
- contains(github.event.comment.body, '/bounty' )
+ startsWith(github.event.comment.body, '/bounty' )
)
runs-on: ubuntu-latest
- env:
- BOUNTY_PROGRAM_LABELS_JSON: |
- [
- {"name": "bounty", "color": "0e8a16", "description": "Participation in the Bounty Program"}
- ]
steps:
- name: Add label `bounty`
@@ -88,3 +89,38 @@ jobs:
repo: context.repo.repo,
labels: [BOUNTY_PROGRAM_LABELS[0].name]
})
+
+ remove-label-bounty:
+ if: >
+ github.actor == ('aeworxet' || 'thulieblack') &&
+ (
+ startsWith(github.event.comment.body, '/unbounty' )
+ )
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Remove label `bounty`
+ uses: actions/github-script@v6
+
+ with:
+ github-token: ${{ secrets.GH_TOKEN }}
+ script: |
+ const BOUNTY_PROGRAM_LABELS = JSON.parse(process.env.BOUNTY_PROGRAM_LABELS_JSON);
+ let LIST_OF_LABELS_FOR_ISSUE = await github.rest.issues.listLabelsOnIssue({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: context.issue.number,
+ });
+
+ LIST_OF_LABELS_FOR_ISSUE = LIST_OF_LABELS_FOR_ISSUE.data.map(key => key.name);
+
+ if (LIST_OF_LABELS_FOR_ISSUE.includes(BOUNTY_PROGRAM_LABELS[0].name)) {
+ console.log('Removing label `bounty`...');
+ github.rest.issues.removeLabel({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ name: [BOUNTY_PROGRAM_LABELS[0].name]
+ })
+ }
From 848d0fdf92bf6712cfb04209232511b745a97548 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 10 May 2024 07:46:34 +0200
Subject: [PATCH 10/28] chore(deps): bump next from 14.1.0 to 14.1.1 (#1005)
---
package-lock.json | 88 ++++++++++++++++++++---------------------
playground/package.json | 2 +-
2 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 525c8dfa2..cab717f03 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3555,9 +3555,9 @@
}
},
"node_modules/@next/env": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/env/-/env-14.1.0.tgz",
- "integrity": "sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw=="
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/env/-/env-14.1.1.tgz",
+ "integrity": "sha512-7CnQyD5G8shHxQIIg3c7/pSeYFeMhsNbpU/bmvH7ZnDql7mNRgg8O2JZrhrc/soFnfBnKP4/xXNiiSIPn2w8gA=="
},
"node_modules/@next/eslint-plugin-next": {
"version": "14.2.2",
@@ -3569,9 +3569,9 @@
}
},
"node_modules/@next/swc-darwin-arm64": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.1.0.tgz",
- "integrity": "sha512-nUDn7TOGcIeyQni6lZHfzNoo9S0euXnu0jhsbMOmMJUBfgsnESdjN97kM7cBqQxZa8L/bM9om/S5/1dzCrW6wQ==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.1.1.tgz",
+ "integrity": "sha512-yDjSFKQKTIjyT7cFv+DqQfW5jsD+tVxXTckSe1KIouKk75t1qZmj/mV3wzdmFb0XHVGtyRjDMulfVG8uCKemOQ==",
"cpu": [
"arm64"
],
@@ -3584,9 +3584,9 @@
}
},
"node_modules/@next/swc-darwin-x64": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.1.0.tgz",
- "integrity": "sha512-1jgudN5haWxiAl3O1ljUS2GfupPmcftu2RYJqZiMJmmbBT5M1XDffjUtRUzP4W3cBHsrvkfOFdQ71hAreNQP6g==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.1.1.tgz",
+ "integrity": "sha512-KCQmBL0CmFmN8D64FHIZVD9I4ugQsDBBEJKiblXGgwn7wBCSe8N4Dx47sdzl4JAg39IkSN5NNrr8AniXLMb3aw==",
"cpu": [
"x64"
],
@@ -3599,9 +3599,9 @@
}
},
"node_modules/@next/swc-linux-arm64-gnu": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.1.0.tgz",
- "integrity": "sha512-RHo7Tcj+jllXUbK7xk2NyIDod3YcCPDZxj1WLIYxd709BQ7WuRYl3OWUNG+WUfqeQBds6kvZYlc42NJJTNi4tQ==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.1.1.tgz",
+ "integrity": "sha512-YDQfbWyW0JMKhJf/T4eyFr4b3tceTorQ5w2n7I0mNVTFOvu6CGEzfwT3RSAQGTi/FFMTFcuspPec/7dFHuP7Eg==",
"cpu": [
"arm64"
],
@@ -3614,9 +3614,9 @@
}
},
"node_modules/@next/swc-linux-arm64-musl": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.1.0.tgz",
- "integrity": "sha512-v6kP8sHYxjO8RwHmWMJSq7VZP2nYCkRVQ0qolh2l6xroe9QjbgV8siTbduED4u0hlk0+tjS6/Tuy4n5XCp+l6g==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.1.1.tgz",
+ "integrity": "sha512-fiuN/OG6sNGRN/bRFxRvV5LyzLB8gaL8cbDH5o3mEiVwfcMzyE5T//ilMmaTrnA8HLMS6hoz4cHOu6Qcp9vxgQ==",
"cpu": [
"arm64"
],
@@ -3629,9 +3629,9 @@
}
},
"node_modules/@next/swc-linux-x64-gnu": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.1.0.tgz",
- "integrity": "sha512-zJ2pnoFYB1F4vmEVlb/eSe+VH679zT1VdXlZKX+pE66grOgjmKJHKacf82g/sWE4MQ4Rk2FMBCRnX+l6/TVYzQ==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.1.1.tgz",
+ "integrity": "sha512-rv6AAdEXoezjbdfp3ouMuVqeLjE1Bin0AuE6qxE6V9g3Giz5/R3xpocHoAi7CufRR+lnkuUjRBn05SYJ83oKNQ==",
"cpu": [
"x64"
],
@@ -3644,9 +3644,9 @@
}
},
"node_modules/@next/swc-linux-x64-musl": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.1.0.tgz",
- "integrity": "sha512-rbaIYFt2X9YZBSbH/CwGAjbBG2/MrACCVu2X0+kSykHzHnYH5FjHxwXLkcoJ10cX0aWCEynpu+rP76x0914atg==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.1.1.tgz",
+ "integrity": "sha512-YAZLGsaNeChSrpz/G7MxO3TIBLaMN8QWMr3X8bt6rCvKovwU7GqQlDu99WdvF33kI8ZahvcdbFsy4jAFzFX7og==",
"cpu": [
"x64"
],
@@ -3659,9 +3659,9 @@
}
},
"node_modules/@next/swc-win32-arm64-msvc": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.1.0.tgz",
- "integrity": "sha512-o1N5TsYc8f/HpGt39OUQpQ9AKIGApd3QLueu7hXk//2xq5Z9OxmV6sQfNp8C7qYmiOlHYODOGqNNa0e9jvchGQ==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.1.1.tgz",
+ "integrity": "sha512-1L4mUYPBMvVDMZg1inUYyPvFSduot0g73hgfD9CODgbr4xiTYe0VOMTZzaRqYJYBA9mana0x4eaAaypmWo1r5A==",
"cpu": [
"arm64"
],
@@ -3674,9 +3674,9 @@
}
},
"node_modules/@next/swc-win32-ia32-msvc": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.1.0.tgz",
- "integrity": "sha512-XXIuB1DBRCFwNO6EEzCTMHT5pauwaSj4SWs7CYnME57eaReAKBXCnkUE80p/pAZcewm7hs+vGvNqDPacEXHVkw==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.1.1.tgz",
+ "integrity": "sha512-jvIE9tsuj9vpbbXlR5YxrghRfMuG0Qm/nZ/1KDHc+y6FpnZ/apsgh+G6t15vefU0zp3WSpTMIdXRUsNl/7RSuw==",
"cpu": [
"ia32"
],
@@ -3689,9 +3689,9 @@
}
},
"node_modules/@next/swc-win32-x64-msvc": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.0.tgz",
- "integrity": "sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.1.tgz",
+ "integrity": "sha512-S6K6EHDU5+1KrBDLko7/c1MNy/Ya73pIAmvKeFwsF4RmBFJSO7/7YeD4FnZ4iBdzE69PpQ4sOMU9ORKeNuxe8A==",
"cpu": [
"x64"
],
@@ -17505,11 +17505,11 @@
"dev": true
},
"node_modules/next": {
- "version": "14.1.0",
- "resolved": "https://registry.npmjs.org/next/-/next-14.1.0.tgz",
- "integrity": "sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q==",
+ "version": "14.1.1",
+ "resolved": "https://registry.npmjs.org/next/-/next-14.1.1.tgz",
+ "integrity": "sha512-McrGJqlGSHeaz2yTRPkEucxQKe5Zq7uPwyeHNmJaZNY4wx9E9QdxmTp310agFRoMuIYgQrCrT3petg13fSVOww==",
"dependencies": {
- "@next/env": "14.1.0",
+ "@next/env": "14.1.1",
"@swc/helpers": "0.5.2",
"busboy": "1.6.0",
"caniuse-lite": "^1.0.30001579",
@@ -17524,15 +17524,15 @@
"node": ">=18.17.0"
},
"optionalDependencies": {
- "@next/swc-darwin-arm64": "14.1.0",
- "@next/swc-darwin-x64": "14.1.0",
- "@next/swc-linux-arm64-gnu": "14.1.0",
- "@next/swc-linux-arm64-musl": "14.1.0",
- "@next/swc-linux-x64-gnu": "14.1.0",
- "@next/swc-linux-x64-musl": "14.1.0",
- "@next/swc-win32-arm64-msvc": "14.1.0",
- "@next/swc-win32-ia32-msvc": "14.1.0",
- "@next/swc-win32-x64-msvc": "14.1.0"
+ "@next/swc-darwin-arm64": "14.1.1",
+ "@next/swc-darwin-x64": "14.1.1",
+ "@next/swc-linux-arm64-gnu": "14.1.1",
+ "@next/swc-linux-arm64-musl": "14.1.1",
+ "@next/swc-linux-x64-gnu": "14.1.1",
+ "@next/swc-linux-x64-musl": "14.1.1",
+ "@next/swc-win32-arm64-msvc": "14.1.1",
+ "@next/swc-win32-ia32-msvc": "14.1.1",
+ "@next/swc-win32-x64-msvc": "14.1.1"
},
"peerDependencies": {
"@opentelemetry/api": "^1.1.0",
@@ -27152,7 +27152,7 @@
"@codemirror/lang-yaml": "^6.0.0",
"@uiw/codemirror-theme-material": "^4.21.24",
"@uiw/react-codemirror": "^4.21.24",
- "next": "14.1.0",
+ "next": "14.1.1",
"react": "^18",
"react-dom": "^18",
"react-split": "^2.0.14",
diff --git a/playground/package.json b/playground/package.json
index 0b3985f6d..b51d1d63d 100644
--- a/playground/package.json
+++ b/playground/package.json
@@ -12,7 +12,7 @@
"@codemirror/lang-yaml": "^6.0.0",
"@uiw/codemirror-theme-material": "^4.21.24",
"@uiw/react-codemirror": "^4.21.24",
- "next": "14.1.0",
+ "next": "14.1.1",
"react": "^18",
"react-dom": "^18",
"react-split": "^2.0.14",
From 3bc22adc55ccc16d6e488a4ecf86dee111f8cd60 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 13 May 2024 06:52:48 +0200
Subject: [PATCH 11/28] chore(deps): bump next from 14.1.0 to 14.1.1 in
/playground (#1004)
Co-authored-by: asyncapi-bot-eve
From ba2cf79ad8357217e6746a767e0eeb426a242642 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Wed, 5 Jun 2024 12:07:36 +0200
Subject: [PATCH 12/28] fix: update @asyncapi/parser to 3.0.15 version and
others (#1011)
---
library/package.json | 8 ++++----
package-lock.json | 38 +++++++++++++++++++-------------------
2 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/library/package.json b/library/package.json
index f40125e23..4d03644c2 100644
--- a/library/package.json
+++ b/library/package.json
@@ -68,10 +68,10 @@
"get:version": "echo $npm_package_version"
},
"dependencies": {
- "@asyncapi/avro-schema-parser": "^3.0.22",
- "@asyncapi/openapi-schema-parser": "^3.0.22",
- "@asyncapi/parser": "^3.0.14",
- "@asyncapi/protobuf-schema-parser": "^3.2.12",
+ "@asyncapi/avro-schema-parser": "^3.0.23",
+ "@asyncapi/openapi-schema-parser": "^3.0.23",
+ "@asyncapi/parser": "^3.0.15",
+ "@asyncapi/protobuf-schema-parser": "^3.2.13",
"highlight.js": "^10.7.2",
"isomorphic-dompurify": "^0.13.0",
"marked": "^4.0.14",
diff --git a/package-lock.json b/package-lock.json
index cab717f03..5aa872c99 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -39,10 +39,10 @@
"version": "2.0.0",
"license": "Apache-2.0",
"dependencies": {
- "@asyncapi/avro-schema-parser": "^3.0.22",
- "@asyncapi/openapi-schema-parser": "^3.0.22",
- "@asyncapi/parser": "^3.0.14",
- "@asyncapi/protobuf-schema-parser": "^3.2.12",
+ "@asyncapi/avro-schema-parser": "^3.0.23",
+ "@asyncapi/openapi-schema-parser": "^3.0.23",
+ "@asyncapi/parser": "^3.0.15",
+ "@asyncapi/protobuf-schema-parser": "^3.2.13",
"highlight.js": "^10.7.2",
"isomorphic-dompurify": "^0.13.0",
"marked": "^4.0.14",
@@ -169,21 +169,21 @@
}
},
"node_modules/@asyncapi/avro-schema-parser": {
- "version": "3.0.22",
- "resolved": "https://registry.npmjs.org/@asyncapi/avro-schema-parser/-/avro-schema-parser-3.0.22.tgz",
- "integrity": "sha512-nrrIIPehHoS1+Zc0eCO3+ijo7VJhWaFqVTupFYJVxxiwNrx7HpldLiTt1awIUDU6rJTm9czGLQq8MIgtXb/Dqg==",
+ "version": "3.0.23",
+ "resolved": "https://registry.npmjs.org/@asyncapi/avro-schema-parser/-/avro-schema-parser-3.0.23.tgz",
+ "integrity": "sha512-NVJg84ldlsIjngRfKejiqDoXx+e32b7oCkzGv9b1vVvaalUBjbw9HOpnLak6FXPigqEKJ4BesMVU4TnZXtGWNQ==",
"dependencies": {
- "@asyncapi/parser": "^3.0.14",
+ "@asyncapi/parser": "^3.0.15",
"@types/json-schema": "^7.0.11",
"avsc": "^5.7.6"
}
},
"node_modules/@asyncapi/openapi-schema-parser": {
- "version": "3.0.22",
- "resolved": "https://registry.npmjs.org/@asyncapi/openapi-schema-parser/-/openapi-schema-parser-3.0.22.tgz",
- "integrity": "sha512-rPI5onl1Sb/PslsyyPFCANUkok36j0ADH2A51U+THKcAHiZ3mu+QAqr/Cnvm1sXTEkNL1Mxl78uLTJQ1wOTQtA==",
+ "version": "3.0.23",
+ "resolved": "https://registry.npmjs.org/@asyncapi/openapi-schema-parser/-/openapi-schema-parser-3.0.23.tgz",
+ "integrity": "sha512-REliv3/Um6lAMlp8W+NXTUnrjDqjQbPFvsGyngzDgq/J0wEEZxB3Mo5tyUk4eRsKTb2iCiDv3Xv/x5VAybkBSQ==",
"dependencies": {
- "@asyncapi/parser": "^3.0.14",
+ "@asyncapi/parser": "^3.0.15",
"@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0",
"ajv": "^8.11.0",
"ajv-errors": "^3.0.0",
@@ -191,9 +191,9 @@
}
},
"node_modules/@asyncapi/parser": {
- "version": "3.0.14",
- "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.14.tgz",
- "integrity": "sha512-tC2gmKkw28PWWMcGUXHQjTfVftiZdr+FQtsfapaHh36spX9uwe13iYzkcTyCkwSJAHibtg7wvStuHsiufP8xng==",
+ "version": "3.0.15",
+ "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.15.tgz",
+ "integrity": "sha512-tP4O6c9jM8pKimg8kw3+/SdPAKJQWPmYozO6ZFJB5ziVtsr3Z8Qe06V13QcBOg4LzIWAwontyG5lZ5jnyvuDPQ==",
"dependencies": {
"@asyncapi/specs": "^6.6.0",
"@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0",
@@ -217,11 +217,11 @@
}
},
"node_modules/@asyncapi/protobuf-schema-parser": {
- "version": "3.2.12",
- "resolved": "https://registry.npmjs.org/@asyncapi/protobuf-schema-parser/-/protobuf-schema-parser-3.2.12.tgz",
- "integrity": "sha512-ROMx71sdfeAvpRoRWkjKXxP6Cu6xNE2P/b7Nl3jiXcPUNhlwUu2m5ScV00v4C2d/So6jNrxnUzXeg1Q3f20EZw==",
+ "version": "3.2.13",
+ "resolved": "https://registry.npmjs.org/@asyncapi/protobuf-schema-parser/-/protobuf-schema-parser-3.2.13.tgz",
+ "integrity": "sha512-8h+lLoCadAXi1HynYisgHYPDa2P+hzg03vie/6Ngdzm0h0fbrCMKdLneiv0OO5Ec96W0JgsTeGbs8bk6k63qAw==",
"dependencies": {
- "@asyncapi/parser": "^3.0.14",
+ "@asyncapi/parser": "^3.0.15",
"@types/protocol-buffers-schema": "^3.4.1",
"protobufjs": "^7.2.6"
}
From 29bc704f43e65b5e61f48b5ad8931216fc147619 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Tue, 11 Jun 2024 14:56:58 +0200
Subject: [PATCH 13/28] ci: update of files from global .github repo (#1010)
Co-authored-by: asyncapi-bot-eve %0ACo-authored-by: asyncapi-bot
---
.github/workflows/if-nodejs-pr-testing.yml | 4 +++-
.github/workflows/if-nodejs-release.yml | 4 +++-
.github/workflows/issues-prs-notifications.yml | 6 ------
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml
index 66ea65528..462e61316 100644
--- a/.github/workflows/if-nodejs-pr-testing.yml
+++ b/.github/workflows/if-nodejs-pr-testing.yml
@@ -14,7 +14,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
+ # Using macos-13 instead of latest (macos-14) due to an issue with Puppeteer and such runner.
+ # See: https://github.com/puppeteer/puppeteer/issues/12327 and https://github.com/asyncapi/parser-js/issues/1001
+ os: [ubuntu-latest, macos-13, windows-latest]
steps:
- if: >
!github.event.pull_request.draft && !(
diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml
index e578d9002..72d01de47 100644
--- a/.github/workflows/if-nodejs-release.yml
+++ b/.github/workflows/if-nodejs-release.yml
@@ -33,7 +33,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
+ # Using macos-13 instead of latest (macos-14) due to an issue with Puppeteer and such runner.
+ # See: https://github.com/puppeteer/puppeteer/issues/12327 and https://github.com/asyncapi/parser-js/issues/1001
+ os: [ubuntu-latest, macos-13, windows-latest]
steps:
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
run: |
diff --git a/.github/workflows/issues-prs-notifications.yml b/.github/workflows/issues-prs-notifications.yml
index 78ebe9601..b8b20c6ba 100644
--- a/.github/workflows/issues-prs-notifications.yml
+++ b/.github/workflows/issues-prs-notifications.yml
@@ -20,8 +20,6 @@ jobs:
name: Notify slack on every new issue
runs-on: ubuntu-latest
steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- name: Convert markdown to slack markdown for issue
uses: asyncapi/.github/.github/actions/slackify-markdown@master
id: issuemarkdown
@@ -40,8 +38,6 @@ jobs:
name: Notify slack on every new pull request
runs-on: ubuntu-latest
steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- name: Convert markdown to slack markdown for pull request
uses: asyncapi/.github/.github/actions/slackify-markdown@master
id: prmarkdown
@@ -60,8 +56,6 @@ jobs:
name: Notify slack on every new pull request
runs-on: ubuntu-latest
steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- name: Convert markdown to slack markdown for pull request
uses: asyncapi/.github/.github/actions/slackify-markdown@master
id: discussionmarkdown
From de1f6f0a0d9148fbf04ee244e6ae4fa38f784043 Mon Sep 17 00:00:00 2001
From: Duc Tai Ly <124802873+ductaily@users.noreply.github.com>
Date: Tue, 11 Jun 2024 15:08:57 +0200
Subject: [PATCH 14/28] fix: development server not detecting local changes
(#1006)
Co-authored-by: Duc Tai Ly %0ACo-authored-by: Lukasz Gornicki
---
.../workflows/release-wc-and-playground.yml | 3 --
package-lock.json | 34 +------------------
package.json | 4 +--
playground/bump-react-comp.sh | 13 -------
playground/package.json | 6 ++--
5 files changed, 4 insertions(+), 56 deletions(-)
delete mode 100755 playground/bump-react-comp.sh
diff --git a/.github/workflows/release-wc-and-playground.yml b/.github/workflows/release-wc-and-playground.yml
index a8ac2ac82..9e7270e3b 100644
--- a/.github/workflows/release-wc-and-playground.yml
+++ b/.github/workflows/release-wc-and-playground.yml
@@ -76,9 +76,6 @@ jobs:
node-version: "${{ steps.lockversion.outputs.version }}"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- - name: Use latest version of react component in the playground
- run: VERSION=${{github.event.release.tag_name}} npm run install:reactcomp
- working-directory: ./playground
- name: Install dependencies
run: npm install
- name: Build
diff --git a/package-lock.json b/package-lock.json
index 5aa872c99..4c5b00b28 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -27148,7 +27148,7 @@
"playground": {
"version": "2.0.0",
"dependencies": {
- "@asyncapi/react-component": "^1.4.10",
+ "@asyncapi/react-component": "file:../library",
"@codemirror/lang-yaml": "^6.0.0",
"@uiw/codemirror-theme-material": "^4.21.24",
"@uiw/react-codemirror": "^4.21.24",
@@ -27168,26 +27168,6 @@
"typescript": "^5"
}
},
- "playground/node_modules/@asyncapi/react-component": {
- "version": "1.4.10",
- "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
- "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
- "dependencies": {
- "@asyncapi/avro-schema-parser": "^3.0.22",
- "@asyncapi/openapi-schema-parser": "^3.0.22",
- "@asyncapi/parser": "^3.0.14",
- "@asyncapi/protobuf-schema-parser": "^3.2.12",
- "highlight.js": "^10.7.2",
- "isomorphic-dompurify": "^0.13.0",
- "marked": "^4.0.14",
- "openapi-sampler": "^1.2.1",
- "use-resize-observer": "^8.0.0"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
"playground/node_modules/@types/node": {
"version": "20.11.27",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.27.tgz",
@@ -27345,18 +27325,6 @@
"node": ">=14.0.0"
}
},
- "playground/node_modules/use-resize-observer": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
- "integrity": "sha512-n0iKSeiQpJCyaFh5JA0qsVLBIovsF4EIIR1G6XiBwKJN66ZrD4Oj62bjcuTAATPKiSp6an/2UZZxCf/67fk3sQ==",
- "dependencies": {
- "@juggle/resize-observer": "^3.3.1"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
"playground/node_modules/yaml": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz",
diff --git a/package.json b/package.json
index 2d2fa9946..1a8f50d5d 100644
--- a/package.json
+++ b/package.json
@@ -35,11 +35,9 @@
"prepublishOnly": "npm run build",
"gen-readme-toc": "markdown-toc -i README.md",
"generate:assets": "npm run gen-readme-toc",
- "bump:playground:version": "cd playground && npm --no-git-tag-version --allow-same-version version $VERSION",
"bump:webcomp:version": "cd web-component && npm --no-git-tag-version --allow-same-version version $VERSION",
"bump:lib:version": "cd library && npm --no-git-tag-version --allow-same-version version $VERSION",
- "bump:version": "npm run bump:lib:version && npm run bump:webcomp:version && npm run bump:playground:version && npm run install:reactcomp:webcomponent && npm run install:reactcomp:playground",
- "install:reactcomp:playground": "cd playground && npm run install:reactcomp",
+ "bump:version": "npm run bump:lib:version && npm run bump:webcomp:version && npm run install:reactcomp:webcomponent",
"install:reactcomp:webcomponent": "cd web-component && npm run install:reactcomp",
"get:name": "cd library && npm run get:name",
"get:version": "cd library && npm run get:version"
diff --git a/playground/bump-react-comp.sh b/playground/bump-react-comp.sh
deleted file mode 100755
index 159f37e5e..000000000
--- a/playground/bump-react-comp.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-
-#Use in CI only
-#Purpos of this script is to use it to install/bump provided version of the React component
-
-# sleep for 120 seconds before using latest version in web-component, because sometimes NPM needs additional few seconds to `save` package in registry
-sleep 2m
-echo "Log all versions of the package on npm registry"
-npm show @asyncapi/react-component versions
-echo "Log latest version of the package on npm registry"
-npm show @asyncapi/react-component dist-tags.latest
-echo "Starting installation"
-npm install @asyncapi/react-component@$VERSION --save --loglevel verbose
diff --git a/playground/package.json b/playground/package.json
index b51d1d63d..33ed03e08 100644
--- a/playground/package.json
+++ b/playground/package.json
@@ -1,14 +1,12 @@
{
"name": "playground",
- "version": "2.0.0",
"private": true,
"scripts": {
"build": "next build && touch out/.nojekyll",
- "start": "next dev",
- "install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh"
+ "start": "next dev"
},
"dependencies": {
- "@asyncapi/react-component": "^1.4.10",
+ "@asyncapi/react-component": "file:../library",
"@codemirror/lang-yaml": "^6.0.0",
"@uiw/codemirror-theme-material": "^4.21.24",
"@uiw/react-codemirror": "^4.21.24",
From e5386d7f8d93ae7697869d2d9dc36d54be3ebc8e Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Tue, 11 Jun 2024 15:25:45 +0200
Subject: [PATCH 15/28] chore(release): v2.0.2 (#1013)
---
library/package.json | 2 +-
package-lock.json | 25 ++-----------------------
web-component/package.json | 2 +-
3 files changed, 4 insertions(+), 25 deletions(-)
diff --git a/library/package.json b/library/package.json
index 4d03644c2..06362c776 100644
--- a/library/package.json
+++ b/library/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
- "version": "2.0.0",
+ "version": "2.0.2",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
diff --git a/package-lock.json b/package-lock.json
index 4c5b00b28..e4aa3654b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
},
"library": {
"name": "@asyncapi/react-component",
- "version": "2.0.0",
+ "version": "2.0.2",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.23",
@@ -27146,7 +27146,6 @@
}
},
"playground": {
- "version": "2.0.0",
"dependencies": {
"@asyncapi/react-component": "file:../library",
"@codemirror/lang-yaml": "^6.0.0",
@@ -27339,7 +27338,7 @@
},
"web-component": {
"name": "@asyncapi/web-component",
- "version": "2.0.0",
+ "version": "2.0.2",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/react-component": "^1.4.10",
@@ -27355,26 +27354,6 @@
"webpack-cli": "5.1.4"
}
},
- "web-component/node_modules/@asyncapi/react-component": {
- "version": "1.4.10",
- "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
- "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
- "dependencies": {
- "@asyncapi/avro-schema-parser": "^3.0.22",
- "@asyncapi/openapi-schema-parser": "^3.0.22",
- "@asyncapi/parser": "^3.0.14",
- "@asyncapi/protobuf-schema-parser": "^3.2.12",
- "highlight.js": "^10.7.2",
- "isomorphic-dompurify": "^0.13.0",
- "marked": "^4.0.14",
- "openapi-sampler": "^1.2.1",
- "use-resize-observer": "^8.0.0"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
"web-component/node_modules/use-resize-observer": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
diff --git a/web-component/package.json b/web-component/package.json
index ced8b0c71..a5825e91f 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
- "version": "2.0.0",
+ "version": "2.0.2",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
From 85459558aef6316d348d2d161564d9a6aab8e697 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Thu, 13 Jun 2024 10:23:48 +0200
Subject: [PATCH 16/28] fix: update @asyncapi/parser to 3.1.0 version and
others (#1014)
Co-authored-by: asyncapi-bot
---
library/package.json | 8 +++---
package-lock.json | 66 +++++++++++++++++++++++++++++---------------
2 files changed, 47 insertions(+), 27 deletions(-)
diff --git a/library/package.json b/library/package.json
index 06362c776..a3d813378 100644
--- a/library/package.json
+++ b/library/package.json
@@ -68,10 +68,10 @@
"get:version": "echo $npm_package_version"
},
"dependencies": {
- "@asyncapi/avro-schema-parser": "^3.0.23",
- "@asyncapi/openapi-schema-parser": "^3.0.23",
- "@asyncapi/parser": "^3.0.15",
- "@asyncapi/protobuf-schema-parser": "^3.2.13",
+ "@asyncapi/avro-schema-parser": "^3.0.24",
+ "@asyncapi/openapi-schema-parser": "^3.0.24",
+ "@asyncapi/parser": "^3.1.0",
+ "@asyncapi/protobuf-schema-parser": "^3.2.14",
"highlight.js": "^10.7.2",
"isomorphic-dompurify": "^0.13.0",
"marked": "^4.0.14",
diff --git a/package-lock.json b/package-lock.json
index e4aa3654b..bc12fbd76 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -39,10 +39,10 @@
"version": "2.0.2",
"license": "Apache-2.0",
"dependencies": {
- "@asyncapi/avro-schema-parser": "^3.0.23",
- "@asyncapi/openapi-schema-parser": "^3.0.23",
- "@asyncapi/parser": "^3.0.15",
- "@asyncapi/protobuf-schema-parser": "^3.2.13",
+ "@asyncapi/avro-schema-parser": "^3.0.24",
+ "@asyncapi/openapi-schema-parser": "^3.0.24",
+ "@asyncapi/parser": "^3.1.0",
+ "@asyncapi/protobuf-schema-parser": "^3.2.14",
"highlight.js": "^10.7.2",
"isomorphic-dompurify": "^0.13.0",
"marked": "^4.0.14",
@@ -169,21 +169,21 @@
}
},
"node_modules/@asyncapi/avro-schema-parser": {
- "version": "3.0.23",
- "resolved": "https://registry.npmjs.org/@asyncapi/avro-schema-parser/-/avro-schema-parser-3.0.23.tgz",
- "integrity": "sha512-NVJg84ldlsIjngRfKejiqDoXx+e32b7oCkzGv9b1vVvaalUBjbw9HOpnLak6FXPigqEKJ4BesMVU4TnZXtGWNQ==",
+ "version": "3.0.24",
+ "resolved": "https://registry.npmjs.org/@asyncapi/avro-schema-parser/-/avro-schema-parser-3.0.24.tgz",
+ "integrity": "sha512-YMyr2S2heMrWHRyECknjHeejlZl5exUSv9nD1gTejAT13fSf0PqIRydZ9ZuoglCLBg55AeehypR2zLIBu/9kHQ==",
"dependencies": {
- "@asyncapi/parser": "^3.0.15",
+ "@asyncapi/parser": "^3.1.0",
"@types/json-schema": "^7.0.11",
"avsc": "^5.7.6"
}
},
"node_modules/@asyncapi/openapi-schema-parser": {
- "version": "3.0.23",
- "resolved": "https://registry.npmjs.org/@asyncapi/openapi-schema-parser/-/openapi-schema-parser-3.0.23.tgz",
- "integrity": "sha512-REliv3/Um6lAMlp8W+NXTUnrjDqjQbPFvsGyngzDgq/J0wEEZxB3Mo5tyUk4eRsKTb2iCiDv3Xv/x5VAybkBSQ==",
+ "version": "3.0.24",
+ "resolved": "https://registry.npmjs.org/@asyncapi/openapi-schema-parser/-/openapi-schema-parser-3.0.24.tgz",
+ "integrity": "sha512-7wz2yVDedJMS+TzOuqCvRWJMc6pNHICKZcOhnW6ZvyVLAh7hYIqQE1WA4OoXT4cKVbwSU3V2Q4bZagSsAIQd6Q==",
"dependencies": {
- "@asyncapi/parser": "^3.0.15",
+ "@asyncapi/parser": "^3.1.0",
"@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0",
"ajv": "^8.11.0",
"ajv-errors": "^3.0.0",
@@ -191,11 +191,11 @@
}
},
"node_modules/@asyncapi/parser": {
- "version": "3.0.15",
- "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.15.tgz",
- "integrity": "sha512-tP4O6c9jM8pKimg8kw3+/SdPAKJQWPmYozO6ZFJB5ziVtsr3Z8Qe06V13QcBOg4LzIWAwontyG5lZ5jnyvuDPQ==",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.1.0.tgz",
+ "integrity": "sha512-rUd+fsPRE68o+F3gLqk7OaBj5J5VgBiLk9eJBGEXolNmKbVd45mxJm2aBpMkphQEmYHuBvxZyiNYlSCyr1D2fA==",
"dependencies": {
- "@asyncapi/specs": "^6.6.0",
+ "@asyncapi/specs": "^6.7.1",
"@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0",
"@stoplight/json": "^3.20.2",
"@stoplight/json-ref-readers": "^1.2.2",
@@ -217,11 +217,11 @@
}
},
"node_modules/@asyncapi/protobuf-schema-parser": {
- "version": "3.2.13",
- "resolved": "https://registry.npmjs.org/@asyncapi/protobuf-schema-parser/-/protobuf-schema-parser-3.2.13.tgz",
- "integrity": "sha512-8h+lLoCadAXi1HynYisgHYPDa2P+hzg03vie/6Ngdzm0h0fbrCMKdLneiv0OO5Ec96W0JgsTeGbs8bk6k63qAw==",
+ "version": "3.2.14",
+ "resolved": "https://registry.npmjs.org/@asyncapi/protobuf-schema-parser/-/protobuf-schema-parser-3.2.14.tgz",
+ "integrity": "sha512-7v64Jxhz2IBfaQECUhfwuLRMFQTysvmqtvT+Esgd9NooIPRnkEzgCbBnC25oGjzSB6Sju28G406lQpO15HHaEw==",
"dependencies": {
- "@asyncapi/parser": "^3.0.15",
+ "@asyncapi/parser": "^3.1.0",
"@types/protocol-buffers-schema": "^3.4.1",
"protobufjs": "^7.2.6"
}
@@ -231,9 +231,9 @@
"link": true
},
"node_modules/@asyncapi/specs": {
- "version": "6.6.0",
- "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.6.0.tgz",
- "integrity": "sha512-pXJa0sCeBpif5al5CSa0f3HvwVBQXzd96/Xgq8Jsh6KM4CYxCe7p6paaC9fDjdBVXyWAioQmZiGRxEVUMINbUw==",
+ "version": "6.7.1",
+ "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.7.1.tgz",
+ "integrity": "sha512-jEaW2vgAwD9GboCdO/TI1zN2k+iowL8YFYwiZwTIr4U4KDmsgo3BLypScl6Jl4+IvY9RdsWE67nuzVX7jooiqQ==",
"dependencies": {
"@types/json-schema": "^7.0.11"
}
@@ -27354,6 +27354,26 @@
"webpack-cli": "5.1.4"
}
},
+ "web-component/node_modules/@asyncapi/react-component": {
+ "version": "1.4.10",
+ "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
+ "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
+ "dependencies": {
+ "@asyncapi/avro-schema-parser": "^3.0.22",
+ "@asyncapi/openapi-schema-parser": "^3.0.22",
+ "@asyncapi/parser": "^3.0.14",
+ "@asyncapi/protobuf-schema-parser": "^3.2.12",
+ "highlight.js": "^10.7.2",
+ "isomorphic-dompurify": "^0.13.0",
+ "marked": "^4.0.14",
+ "openapi-sampler": "^1.2.1",
+ "use-resize-observer": "^8.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
"web-component/node_modules/use-resize-observer": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
From a884dcf3f8038ecbffffb36db13b494f36cf0683 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Thu, 13 Jun 2024 10:41:18 +0200
Subject: [PATCH 17/28] chore(release): v2.0.3 (#1015)
---
library/package.json | 2 +-
package-lock.json | 24 ++----------------------
web-component/package.json | 2 +-
3 files changed, 4 insertions(+), 24 deletions(-)
diff --git a/library/package.json b/library/package.json
index a3d813378..5d5cd7276 100644
--- a/library/package.json
+++ b/library/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
- "version": "2.0.2",
+ "version": "2.0.3",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
diff --git a/package-lock.json b/package-lock.json
index bc12fbd76..61e1e8a9c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
},
"library": {
"name": "@asyncapi/react-component",
- "version": "2.0.2",
+ "version": "2.0.3",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.24",
@@ -27338,7 +27338,7 @@
},
"web-component": {
"name": "@asyncapi/web-component",
- "version": "2.0.2",
+ "version": "2.0.3",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/react-component": "^1.4.10",
@@ -27354,26 +27354,6 @@
"webpack-cli": "5.1.4"
}
},
- "web-component/node_modules/@asyncapi/react-component": {
- "version": "1.4.10",
- "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
- "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
- "dependencies": {
- "@asyncapi/avro-schema-parser": "^3.0.22",
- "@asyncapi/openapi-schema-parser": "^3.0.22",
- "@asyncapi/parser": "^3.0.14",
- "@asyncapi/protobuf-schema-parser": "^3.2.12",
- "highlight.js": "^10.7.2",
- "isomorphic-dompurify": "^0.13.0",
- "marked": "^4.0.14",
- "openapi-sampler": "^1.2.1",
- "use-resize-observer": "^8.0.0"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
"web-component/node_modules/use-resize-observer": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
diff --git a/web-component/package.json b/web-component/package.json
index a5825e91f..f78b756f9 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
- "version": "2.0.2",
+ "version": "2.0.3",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
From 99bce32f7b9d403bb0cebfbbeb398ef90fcb8db0 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 21 Jun 2024 00:21:45 +0200
Subject: [PATCH 18/28] chore(deps): bump ws from 7.5.9 to 7.5.10 (#1017)
---
package-lock.json | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 61e1e8a9c..6642122b6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -27006,9 +27006,9 @@
}
},
"node_modules/ws": {
- "version": "7.5.9",
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
- "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+ "version": "7.5.10",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz",
+ "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==",
"engines": {
"node": ">=8.3.0"
},
@@ -27354,6 +27354,26 @@
"webpack-cli": "5.1.4"
}
},
+ "web-component/node_modules/@asyncapi/react-component": {
+ "version": "1.4.10",
+ "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
+ "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
+ "dependencies": {
+ "@asyncapi/avro-schema-parser": "^3.0.22",
+ "@asyncapi/openapi-schema-parser": "^3.0.22",
+ "@asyncapi/parser": "^3.0.14",
+ "@asyncapi/protobuf-schema-parser": "^3.2.12",
+ "highlight.js": "^10.7.2",
+ "isomorphic-dompurify": "^0.13.0",
+ "marked": "^4.0.14",
+ "openapi-sampler": "^1.2.1",
+ "use-resize-observer": "^8.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
"web-component/node_modules/use-resize-observer": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
From 5871fa27906d7020fc392ba13504bffa93ae7e49 Mon Sep 17 00:00:00 2001
From: Lukasz Gornicki
Date: Tue, 25 Jun 2024 12:56:53 +0200
Subject: [PATCH 19/28] fix: remove code needed prior react 18 to fix release
of webcomponent (#1019)
---
.../workflows/release-wc-and-playground.yml | 18 ++++++++++++++++++
playground/app/page.tsx | 1 -
playground/components/CodeEditorComponent.tsx | 1 -
playground/components/SplitWrapper.tsx | 1 -
web-component/package.json | 4 ++--
web-component/webpack.config.js | 2 +-
6 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/release-wc-and-playground.yml b/.github/workflows/release-wc-and-playground.yml
index 9e7270e3b..65d50a215 100644
--- a/.github/workflows/release-wc-and-playground.yml
+++ b/.github/workflows/release-wc-and-playground.yml
@@ -55,6 +55,15 @@ jobs:
package: ./web-component/package.json
access: public
tag: github.event.release.target_commitish
+ - if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
+ name: Report workflow run status to Slack
+ uses: 8398a7/action-slack@v3
+ with:
+ status: ${{ job.status }}
+ fields: repo,action,workflow
+ text: 'Release of web component for AsyncAPI React failed'
+ env:
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
playground:
name: Release Playground
@@ -89,3 +98,12 @@ jobs:
folder: playground/out
git-config-name: asyncapi-bot
git-config-email: info@asyncapi.io
+ - if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
+ name: Report workflow run status to Slack
+ uses: 8398a7/action-slack@v3
+ with:
+ status: ${{ job.status }}
+ fields: repo,action,workflow
+ text: 'Release of playground for AsyncAPI React failed'
+ env:
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
\ No newline at end of file
diff --git a/playground/app/page.tsx b/playground/app/page.tsx
index a3a9ba62b..66c128f42 100644
--- a/playground/app/page.tsx
+++ b/playground/app/page.tsx
@@ -93,7 +93,6 @@ class Playground extends Component {
- {/* @ts-expect-error remove when library and web-component is upgraded to React v18 */}
diff --git a/playground/components/CodeEditorComponent.tsx b/playground/components/CodeEditorComponent.tsx
index d185e441b..6d2f90b76 100644
--- a/playground/components/CodeEditorComponent.tsx
+++ b/playground/components/CodeEditorComponent.tsx
@@ -33,7 +33,6 @@ class CodeEditorComponent extends Component {
return (
- {/* @ts-expect-error remove when library and web-component is upgraded to React v18 */}
(
<>
- {/* @ts-expect-error upgrade React to v18 */}
Date: Tue, 25 Jun 2024 13:16:28 +0200
Subject: [PATCH 20/28] chore(release): v2.0.4 (#1020)
---
library/package.json | 2 +-
package-lock.json | 28 ++++------------------------
web-component/package.json | 2 +-
3 files changed, 6 insertions(+), 26 deletions(-)
diff --git a/library/package.json b/library/package.json
index 5d5cd7276..9ec1a1f6c 100644
--- a/library/package.json
+++ b/library/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
- "version": "2.0.3",
+ "version": "2.0.4",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
diff --git a/package-lock.json b/package-lock.json
index 6642122b6..c28514708 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
},
"library": {
"name": "@asyncapi/react-component",
- "version": "2.0.3",
+ "version": "2.0.4",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.24",
@@ -27338,12 +27338,12 @@
},
"web-component": {
"name": "@asyncapi/web-component",
- "version": "2.0.3",
+ "version": "2.0.4",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/react-component": "^1.4.10",
- "react": "^18",
- "react-dom": "^18",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
},
"devDependencies": {
@@ -27354,26 +27354,6 @@
"webpack-cli": "5.1.4"
}
},
- "web-component/node_modules/@asyncapi/react-component": {
- "version": "1.4.10",
- "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
- "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
- "dependencies": {
- "@asyncapi/avro-schema-parser": "^3.0.22",
- "@asyncapi/openapi-schema-parser": "^3.0.22",
- "@asyncapi/parser": "^3.0.14",
- "@asyncapi/protobuf-schema-parser": "^3.2.12",
- "highlight.js": "^10.7.2",
- "isomorphic-dompurify": "^0.13.0",
- "marked": "^4.0.14",
- "openapi-sampler": "^1.2.1",
- "use-resize-observer": "^8.0.0"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
"web-component/node_modules/use-resize-observer": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
diff --git a/web-component/package.json b/web-component/package.json
index 38678dbcd..c824f8ed3 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
- "version": "2.0.3",
+ "version": "2.0.4",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
From 571a94adcc2d03658f7bb9b3aed7a5675e7ae4f7 Mon Sep 17 00:00:00 2001
From: Lukasz Gornicki
Date: Wed, 26 Jun 2024 14:56:41 +0200
Subject: [PATCH 21/28] fix: update web-component bumping script for react
(#1021)
---
web-component/bump-react-comp.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web-component/bump-react-comp.sh b/web-component/bump-react-comp.sh
index 91f28f81d..d7b405323 100755
--- a/web-component/bump-react-comp.sh
+++ b/web-component/bump-react-comp.sh
@@ -9,5 +9,7 @@ echo "Log all versions of the package on npm registry"
npm show @asyncapi/react-component versions
echo "Log latest version of the package on npm registry"
npm show @asyncapi/react-component dist-tags.latest
-echo "Starting installation"
+echo "We need to uninstall old version first to make sure package.json will get updated latest version number"
+npm uninstall @asyncapi/react-component
+echo "Starting installation of @asyncapi/react-component@$VERSION in $PWD"
npm install @asyncapi/react-component@$VERSION --save --loglevel verbose
\ No newline at end of file
From 482464d88a1d510d8be37ea340eb56aa0d8b7f0b Mon Sep 17 00:00:00 2001
From: Lukasz Gornicki
Date: Wed, 3 Jul 2024 14:57:56 +0200
Subject: [PATCH 22/28] fix: bump `isomorphic-dompurify` and fix
`package-lock.json` (#1026)
---
library/package.json | 2 +-
package-lock.json | 373 +++++++++++++++++++++++++++++++++----
web-component/package.json | 2 +-
3 files changed, 338 insertions(+), 39 deletions(-)
diff --git a/library/package.json b/library/package.json
index 9ec1a1f6c..b8fcacaaf 100644
--- a/library/package.json
+++ b/library/package.json
@@ -73,7 +73,7 @@
"@asyncapi/parser": "^3.1.0",
"@asyncapi/protobuf-schema-parser": "^3.2.14",
"highlight.js": "^10.7.2",
- "isomorphic-dompurify": "^0.13.0",
+ "isomorphic-dompurify": "^2.12.0",
"marked": "^4.0.14",
"openapi-sampler": "^1.2.1",
"use-resize-observer": "^9.1.0"
diff --git a/package-lock.json b/package-lock.json
index c28514708..66b1d5852 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -44,7 +44,7 @@
"@asyncapi/parser": "^3.1.0",
"@asyncapi/protobuf-schema-parser": "^3.2.14",
"highlight.js": "^10.7.2",
- "isomorphic-dompurify": "^0.13.0",
+ "isomorphic-dompurify": "^2.12.0",
"marked": "^4.0.14",
"openapi-sampler": "^1.2.1",
"use-resize-observer": "^9.1.0"
@@ -5170,6 +5170,7 @@
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
"integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==",
+ "dev": true,
"engines": {
"node": ">= 6"
}
@@ -5271,6 +5272,7 @@
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/@types/dompurify/-/dompurify-2.4.0.tgz",
"integrity": "sha512-IDBwO5IZhrKvHFUl+clZxgf3hn2b/lU6H1KaBShPkQyGJUQ0xwebezIPSuiyGwfz1UzJWQl4M7BDxtHtCCPlTg==",
+ "dev": true,
"dependencies": {
"@types/trusted-types": "*"
}
@@ -6257,7 +6259,8 @@
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
"integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==",
- "deprecated": "Use your platform's native atob() and btoa() methods instead"
+ "deprecated": "Use your platform's native atob() and btoa() methods instead",
+ "dev": true
},
"node_modules/abbrev": {
"version": "2.0.0",
@@ -6283,6 +6286,7 @@
"version": "8.11.3",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
"integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
+ "dev": true,
"bin": {
"acorn": "bin/acorn"
},
@@ -6294,6 +6298,7 @@
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz",
"integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==",
+ "dev": true,
"dependencies": {
"acorn": "^7.1.1",
"acorn-walk": "^7.1.1"
@@ -6303,6 +6308,7 @@
"version": "7.4.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
+ "dev": true,
"bin": {
"acorn": "bin/acorn"
},
@@ -6355,6 +6361,7 @@
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz",
"integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==",
+ "dev": true,
"engines": {
"node": ">=0.4.0"
}
@@ -6369,6 +6376,7 @@
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "dev": true,
"dependencies": {
"debug": "4"
},
@@ -7546,7 +7554,8 @@
"node_modules/browser-process-hrtime": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz",
- "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow=="
+ "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==",
+ "dev": true
},
"node_modules/browserify-aes": {
"version": "1.2.0",
@@ -9516,12 +9525,14 @@
"node_modules/cssom": {
"version": "0.4.4",
"resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz",
- "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw=="
+ "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==",
+ "dev": true
},
"node_modules/cssstyle": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz",
"integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==",
+ "dev": true,
"dependencies": {
"cssom": "~0.3.6"
},
@@ -9532,7 +9543,8 @@
"node_modules/cssstyle/node_modules/cssom": {
"version": "0.3.8",
"resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz",
- "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg=="
+ "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==",
+ "dev": true
},
"node_modules/csstype": {
"version": "3.1.3",
@@ -9654,6 +9666,7 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz",
"integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==",
+ "dev": true,
"dependencies": {
"abab": "^2.0.3",
"whatwg-mimetype": "^2.3.0",
@@ -10096,6 +10109,7 @@
"resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz",
"integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==",
"deprecated": "Use your platform's native DOMException instead",
+ "dev": true,
"dependencies": {
"webidl-conversions": "^5.0.0"
},
@@ -10107,14 +10121,15 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz",
"integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==",
+ "dev": true,
"engines": {
"node": ">=8"
}
},
"node_modules/dompurify": {
- "version": "2.4.7",
- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz",
- "integrity": "sha512-kxxKlPEDa6Nc5WJi+qRgPbOAbgTpSULL+vI3NUXsZMlkJxTqYI9wg5ZTay2sFrdZRWHPWNi+EdAhcJf81WtoMQ=="
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.1.5.tgz",
+ "integrity": "sha512-lwG+n5h8QNpxtyrJW/gJWckL+1/DQiYMX8f7t8Z2AZTPw1esVrqjI63i7Zc2Gz0aKzLVMYC1V1PL/ky+aY/NgA=="
},
"node_modules/domutils": {
"version": "1.7.0",
@@ -10540,6 +10555,7 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
"integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
+ "dev": true,
"dependencies": {
"esprima": "^4.0.1",
"estraverse": "^5.2.0",
@@ -11309,6 +11325,7 @@
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "dev": true,
"bin": {
"esparse": "bin/esparse.js",
"esvalidate": "bin/esvalidate.js"
@@ -11345,6 +11362,7 @@
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
"engines": {
"node": ">=4.0"
}
@@ -11353,6 +11371,7 @@
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
"engines": {
"node": ">=0.10.0"
}
@@ -12872,6 +12891,7 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz",
"integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==",
+ "dev": true,
"dependencies": {
"whatwg-encoding": "^1.0.5"
},
@@ -12907,6 +12927,7 @@
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz",
"integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==",
+ "dev": true,
"dependencies": {
"@tootallnate/once": "1",
"agent-base": "6",
@@ -12940,6 +12961,7 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
+ "dev": true,
"dependencies": {
"agent-base": "6",
"debug": "4"
@@ -12970,6 +12992,7 @@
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "dev": true,
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3"
},
@@ -14011,13 +14034,283 @@
"dev": true
},
"node_modules/isomorphic-dompurify": {
- "version": "0.13.0",
- "resolved": "https://registry.npmjs.org/isomorphic-dompurify/-/isomorphic-dompurify-0.13.0.tgz",
- "integrity": "sha512-j2/kt/PGbxvfeEm1uiRLlttZkQdn3hFe1rMr/wm3qFnMXSIw0Nmqu79k+TIoSj+KOwO98Sz9TbuNHU7ejv7IZA==",
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/isomorphic-dompurify/-/isomorphic-dompurify-2.12.0.tgz",
+ "integrity": "sha512-jJm6VgJ9toBLqNUHuLudn+2Q3NBBaoPbsh5SzzO2dp9Zq9+p6fEg4Ffuq9RZsofb8OnqE6FJVVq3MRDLlmBHpA==",
+ "dependencies": {
+ "@types/dompurify": "^3.0.5",
+ "dompurify": "^3.1.5",
+ "jsdom": "^24.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/@types/dompurify": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@types/dompurify/-/dompurify-3.0.5.tgz",
+ "integrity": "sha512-1Wg0g3BtQF7sSb27fJQAKck1HECM6zV1EB66j8JH9i3LCjYabJa0FSdiSgsD5K/RbrsR0SiraKacLB+T8ZVYAg==",
+ "dependencies": {
+ "@types/trusted-types": "*"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/agent-base": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz",
+ "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==",
+ "dependencies": {
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/cssstyle": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.0.1.tgz",
+ "integrity": "sha512-8ZYiJ3A/3OkDd093CBT/0UKDWry7ak4BdPTFP2+QEP7cmhouyq/Up709ASSj2cK02BbZiMgk7kYjZNS4QP5qrQ==",
+ "dependencies": {
+ "rrweb-cssom": "^0.6.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/cssstyle/node_modules/rrweb-cssom": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz",
+ "integrity": "sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw=="
+ },
+ "node_modules/isomorphic-dompurify/node_modules/data-urls": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz",
+ "integrity": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==",
+ "dependencies": {
+ "whatwg-mimetype": "^4.0.0",
+ "whatwg-url": "^14.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/entities": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/form-data": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
+ "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/html-encoding-sniffer": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz",
+ "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==",
+ "dependencies": {
+ "whatwg-encoding": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/http-proxy-agent": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
+ "dependencies": {
+ "agent-base": "^7.1.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/https-proxy-agent": {
+ "version": "7.0.5",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz",
+ "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==",
+ "dependencies": {
+ "agent-base": "^7.0.2",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
"dependencies": {
- "@types/dompurify": "^2.1.0",
- "dompurify": "^2.2.7",
- "jsdom": "^16.5.2"
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/jsdom": {
+ "version": "24.1.0",
+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-24.1.0.tgz",
+ "integrity": "sha512-6gpM7pRXCwIOKxX47cgOyvyQDN/Eh0f1MeKySBV2xGdKtqJBLj8P25eY3EVCWo2mglDDzozR2r2MW4T+JiNUZA==",
+ "dependencies": {
+ "cssstyle": "^4.0.1",
+ "data-urls": "^5.0.0",
+ "decimal.js": "^10.4.3",
+ "form-data": "^4.0.0",
+ "html-encoding-sniffer": "^4.0.0",
+ "http-proxy-agent": "^7.0.2",
+ "https-proxy-agent": "^7.0.4",
+ "is-potential-custom-element-name": "^1.0.1",
+ "nwsapi": "^2.2.10",
+ "parse5": "^7.1.2",
+ "rrweb-cssom": "^0.7.0",
+ "saxes": "^6.0.0",
+ "symbol-tree": "^3.2.4",
+ "tough-cookie": "^4.1.4",
+ "w3c-xmlserializer": "^5.0.0",
+ "webidl-conversions": "^7.0.0",
+ "whatwg-encoding": "^3.1.1",
+ "whatwg-mimetype": "^4.0.0",
+ "whatwg-url": "^14.0.0",
+ "ws": "^8.17.0",
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "canvas": "^2.11.2"
+ },
+ "peerDependenciesMeta": {
+ "canvas": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/parse5": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
+ "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==",
+ "dependencies": {
+ "entities": "^4.4.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/saxes": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
+ "dependencies": {
+ "xmlchars": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=v12.22.7"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/tr46": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz",
+ "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==",
+ "dependencies": {
+ "punycode": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/w3c-xmlserializer": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",
+ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",
+ "dependencies": {
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/webidl-conversions": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
+ "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/whatwg-encoding": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
+ "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",
+ "dependencies": {
+ "iconv-lite": "0.6.3"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/whatwg-mimetype": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",
+ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/whatwg-url": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.0.0.tgz",
+ "integrity": "sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==",
+ "dependencies": {
+ "tr46": "^5.0.0",
+ "webidl-conversions": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/ws": {
+ "version": "8.17.1",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz",
+ "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/isomorphic-dompurify/node_modules/xml-name-validator": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",
+ "engines": {
+ "node": ">=18"
}
},
"node_modules/isstream": {
@@ -15185,6 +15478,7 @@
"version": "16.7.0",
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz",
"integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==",
+ "dev": true,
"dependencies": {
"abab": "^2.0.5",
"acorn": "^8.2.4",
@@ -15230,6 +15524,7 @@
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz",
"integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==",
+ "dev": true,
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
@@ -18312,9 +18607,9 @@
}
},
"node_modules/nwsapi": {
- "version": "2.2.7",
- "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz",
- "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ=="
+ "version": "2.2.10",
+ "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.10.tgz",
+ "integrity": "sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ=="
},
"node_modules/nx": {
"version": "18.0.8",
@@ -19471,7 +19766,8 @@
"node_modules/parse5": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",
- "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="
+ "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==",
+ "dev": true
},
"node_modules/pascalcase": {
"version": "0.1.1",
@@ -22491,6 +22787,11 @@
"inherits": "^2.0.1"
}
},
+ "node_modules/rrweb-cssom": {
+ "version": "0.7.1",
+ "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz",
+ "integrity": "sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg=="
+ },
"node_modules/rsvp": {
"version": "4.8.5",
"resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz",
@@ -22933,6 +23234,7 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz",
"integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==",
+ "dev": true,
"dependencies": {
"xmlchars": "^2.2.0"
},
@@ -23587,7 +23889,7 @@
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "devOptional": true,
+ "dev": true,
"engines": {
"node": ">=0.10.0"
}
@@ -25231,9 +25533,9 @@
}
},
"node_modules/tough-cookie": {
- "version": "4.1.3",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz",
- "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==",
+ "version": "4.1.4",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz",
+ "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==",
"dependencies": {
"psl": "^1.1.33",
"punycode": "^2.1.1",
@@ -25256,6 +25558,7 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz",
"integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==",
+ "dev": true,
"dependencies": {
"punycode": "^2.1.1"
},
@@ -26358,6 +26661,7 @@
"resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",
"integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==",
"deprecated": "Use your platform's native performance.now() and performance.timeOrigin.",
+ "dev": true,
"dependencies": {
"browser-process-hrtime": "^1.0.0"
}
@@ -26371,6 +26675,7 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz",
"integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==",
+ "dev": true,
"dependencies": {
"xml-name-validator": "^3.0.0"
},
@@ -26422,6 +26727,7 @@
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz",
"integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==",
+ "dev": true,
"engines": {
"node": ">=10.4"
}
@@ -26673,6 +26979,7 @@
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz",
"integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==",
+ "dev": true,
"dependencies": {
"iconv-lite": "0.4.24"
}
@@ -26680,12 +26987,14 @@
"node_modules/whatwg-mimetype": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz",
- "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g=="
+ "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==",
+ "dev": true
},
"node_modules/whatwg-url": {
"version": "8.7.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz",
"integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==",
+ "dev": true,
"dependencies": {
"lodash": "^4.7.0",
"tr46": "^2.1.0",
@@ -27009,6 +27318,7 @@
"version": "7.5.10",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz",
"integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==",
+ "dev": true,
"engines": {
"node": ">=8.3.0"
},
@@ -27028,7 +27338,8 @@
"node_modules/xml-name-validator": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",
- "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw=="
+ "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==",
+ "dev": true
},
"node_modules/xmlchars": {
"version": "2.2.0",
@@ -27341,7 +27652,7 @@
"version": "2.0.4",
"license": "Apache-2.0",
"dependencies": {
- "@asyncapi/react-component": "^1.4.10",
+ "@asyncapi/react-component": "^2.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
@@ -27353,18 +27664,6 @@
"webpack": "5.88.2",
"webpack-cli": "5.1.4"
}
- },
- "web-component/node_modules/use-resize-observer": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz",
- "integrity": "sha512-n0iKSeiQpJCyaFh5JA0qsVLBIovsF4EIIR1G6XiBwKJN66ZrD4Oj62bjcuTAATPKiSp6an/2UZZxCf/67fk3sQ==",
- "dependencies": {
- "@juggle/resize-observer": "^3.3.1"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
}
}
}
diff --git a/web-component/package.json b/web-component/package.json
index c824f8ed3..36a1ccb3f 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -44,7 +44,7 @@
"install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh"
},
"dependencies": {
- "@asyncapi/react-component": "^1.4.10",
+ "@asyncapi/react-component": "^2.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
From 282829f3b2e610653252383953ec1f79607e0e6b Mon Sep 17 00:00:00 2001
From: Tobias Sauerwein
Date: Wed, 3 Jul 2024 20:31:57 +0200
Subject: [PATCH 23/28] feat: add configuration to always show message examples
(#1016)
---
docs/configuration/config-modification.md | 6 +++++-
library/src/config/config.ts | 1 +
library/src/config/default.ts | 1 +
library/src/containers/Messages/Messages.tsx | 1 +
4 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/docs/configuration/config-modification.md b/docs/configuration/config-modification.md
index 633260303..b1c6ec19f 100644
--- a/docs/configuration/config-modification.md
+++ b/docs/configuration/config-modification.md
@@ -17,6 +17,7 @@ interface ConfigInterface {
servers?: boolean;
operations?: boolean;
messages?: boolean;
+ messageExamples?: boolean;
schemas?: boolean;
errors?: boolean;
};
@@ -45,7 +46,10 @@ interface ConfigInterface {
- **show?: Partial**
This field contains configuration responsible for rendering specific parts of the AsyncAPI component.
- All except the `sidebar` fields are set to `true` by default.
+ The `sidebar` and `messageExamples` fields are set to `false` by default. The default for all other fields is `true`.
+
+ The examples for messages shown within an operation are always displayed. To also show examples for the
+ standalone messages in the "Messages" section, set `messageExamples` to `true`.
- **sidebar?: Partial**
diff --git a/library/src/config/config.ts b/library/src/config/config.ts
index 0218996eb..39b55ce7f 100644
--- a/library/src/config/config.ts
+++ b/library/src/config/config.ts
@@ -19,6 +19,7 @@ export interface ShowConfig {
servers?: boolean;
operations?: boolean;
messages?: boolean;
+ messageExamples?: boolean;
schemas?: boolean;
errors?: boolean;
}
diff --git a/library/src/config/default.ts b/library/src/config/default.ts
index 725fff4c5..12e6dffa6 100644
--- a/library/src/config/default.ts
+++ b/library/src/config/default.ts
@@ -16,6 +16,7 @@ export const defaultConfig: ConfigInterface = {
servers: true,
operations: true,
messages: true,
+ messageExamples: false,
schemas: true,
errors: true,
},
diff --git a/library/src/containers/Messages/Messages.tsx b/library/src/containers/Messages/Messages.tsx
index 876835837..52300c2bc 100644
--- a/library/src/containers/Messages/Messages.tsx
+++ b/library/src/containers/Messages/Messages.tsx
@@ -36,6 +36,7 @@ export const Messages: React.FunctionComponent = () => {
message={message}
index={idx + 1}
key={message.id()}
+ showExamples={config?.show?.messageExamples ?? false}
/>
))}
From 6936c78e31a9844e0306f3133bf97249ff742315 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Wed, 3 Jul 2024 20:50:34 +0200
Subject: [PATCH 24/28] chore(release): v2.1.0 (#1028)
---
library/package.json | 2 +-
package-lock.json | 6 +++---
web-component/package.json | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/library/package.json b/library/package.json
index b8fcacaaf..2524830e9 100644
--- a/library/package.json
+++ b/library/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
- "version": "2.0.4",
+ "version": "2.1.0",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
diff --git a/package-lock.json b/package-lock.json
index 66b1d5852..efa40ea1a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
},
"library": {
"name": "@asyncapi/react-component",
- "version": "2.0.4",
+ "version": "2.1.0",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.24",
@@ -27649,10 +27649,10 @@
},
"web-component": {
"name": "@asyncapi/web-component",
- "version": "2.0.4",
+ "version": "2.1.0",
"license": "Apache-2.0",
"dependencies": {
- "@asyncapi/react-component": "^2.0.4",
+ "@asyncapi/react-component": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
diff --git a/web-component/package.json b/web-component/package.json
index 36a1ccb3f..4ad754fbc 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
- "version": "2.0.4",
+ "version": "2.1.0",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
@@ -44,7 +44,7 @@
"install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh"
},
"dependencies": {
- "@asyncapi/react-component": "^2.0.4",
+ "@asyncapi/react-component": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
From f087fd0f44a24ce3f646dbb9837ef61458fc09aa Mon Sep 17 00:00:00 2001
From: pltod2
Date: Wed, 17 Jul 2024 09:49:52 +0100
Subject: [PATCH 25/28] fix: render specs that contain oauth2 password flow
only (#1023)
Co-authored-by: Lukasz Gornicki
---
.../src/__tests__/docs/v3/streetlights-mqtt.json | 15 +++++++++++++++
library/src/containers/Servers/Security.tsx | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/library/src/__tests__/docs/v3/streetlights-mqtt.json b/library/src/__tests__/docs/v3/streetlights-mqtt.json
index 0d22525d3..f65827e07 100644
--- a/library/src/__tests__/docs/v3/streetlights-mqtt.json
+++ b/library/src/__tests__/docs/v3/streetlights-mqtt.json
@@ -69,6 +69,9 @@
},
{
"$ref": "#/components/securitySchemes/openIdConnectWellKnown"
+ },
+ {
+ "$ref": "#/components/securitySchemes/oauth2Password"
}
],
"tags": [
@@ -348,6 +351,18 @@
"openIdConnectWellKnown": {
"type": "openIdConnect",
"openIdConnectUrl": "https://authserver.example/.well-known"
+ },
+ "oauth2Password": {
+ "type": "oauth2",
+ "description": "Flows to support OAuth 2.0",
+ "flows": {
+ "password": {
+ "tokenUrl": "https://authserver.example/token",
+ "availableScopes": {
+ "streetlights:on": "Ability to switch lights on"
+ }
+ }
+ }
}
},
"parameters": {
diff --git a/library/src/containers/Servers/Security.tsx b/library/src/containers/Servers/Security.tsx
index 3038616aa..8fbe3847b 100644
--- a/library/src/containers/Servers/Security.tsx
+++ b/library/src/containers/Servers/Security.tsx
@@ -164,7 +164,7 @@ const SecurityItem: React.FunctionComponent = ({
unwrappedFlows.clientCredentials = flows.clientCredentials()!;
}
if (flows?.hasPassword()) {
- unwrappedFlows.password = flows.implicit()!;
+ unwrappedFlows.password = flows.password()!;
}
const renderedFlows = Object.entries(unwrappedFlows).map(
([flowName, flow]) => {
From 88882d4e5894ace083f1850fa63f3870deba9dba Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Wed, 17 Jul 2024 11:07:12 +0200
Subject: [PATCH 26/28] chore(release): v2.1.1 (#1031)
---
library/package.json | 2 +-
package-lock.json | 6 +++---
web-component/package.json | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/library/package.json b/library/package.json
index 2524830e9..762d14bd0 100644
--- a/library/package.json
+++ b/library/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
- "version": "2.1.0",
+ "version": "2.1.1",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
diff --git a/package-lock.json b/package-lock.json
index efa40ea1a..ccc6a1f34 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
},
"library": {
"name": "@asyncapi/react-component",
- "version": "2.1.0",
+ "version": "2.1.1",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.24",
@@ -27649,10 +27649,10 @@
},
"web-component": {
"name": "@asyncapi/web-component",
- "version": "2.1.0",
+ "version": "2.1.1",
"license": "Apache-2.0",
"dependencies": {
- "@asyncapi/react-component": "^2.1.0",
+ "@asyncapi/react-component": "^2.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
diff --git a/web-component/package.json b/web-component/package.json
index 4ad754fbc..8e3cf4573 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
- "version": "2.1.0",
+ "version": "2.1.1",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
@@ -44,7 +44,7 @@
"install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh"
},
"dependencies": {
- "@asyncapi/react-component": "^2.1.0",
+ "@asyncapi/react-component": "^2.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
From f1978c4650f9eb8dd0f7bd977a037865f3978c7e Mon Sep 17 00:00:00 2001
From: "Diego T."
Date: Thu, 25 Jul 2024 19:39:22 +0200
Subject: [PATCH 27/28] feat: add configuration to use channel addresses in the
sidebar for AsyncAPI v3 (#1022)
Co-authored-by: Lukasz Gornicki
---
docs/configuration/config-modification.md | 3 +++
library/src/config/config.ts | 1 +
library/src/containers/Sidebar/Sidebar.tsx | 2 +-
.../Sidebar/__tests__/SideBar.test.tsx | 24 +++++++++++++++++++
4 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/docs/configuration/config-modification.md b/docs/configuration/config-modification.md
index b1c6ec19f..3eb36a4cc 100644
--- a/docs/configuration/config-modification.md
+++ b/docs/configuration/config-modification.md
@@ -27,6 +27,7 @@ interface ConfigInterface {
sidebar?: {
showServers?: 'byDefault' | 'bySpecTags' | 'byServersTags';
showOperations?: 'byDefault' | 'bySpecTags' | 'byOperationsTags';
+ useChannelAddressAsIdentifier?: boolean;
},
parserOptions?: ParserOptions;
publishLabel?: string;
@@ -56,6 +57,8 @@ interface ConfigInterface {
This field contains configuration responsible for the way of working of the sidebar.
`showServers` field is set to `byDefault` by default.
`showOperations` field is set to `byDefault` by default.
+ `useChannelAddressAsIdentifier`: for AsyncAPI v3 documents, use the operation summary or channel address in the sidebar instead of the operationId.
+ By default, this behavior is applied only to AsyncAPI v2 documents.
- **expand?: Partial**
diff --git a/library/src/config/config.ts b/library/src/config/config.ts
index 39b55ce7f..9ad84af18 100644
--- a/library/src/config/config.ts
+++ b/library/src/config/config.ts
@@ -31,4 +31,5 @@ export interface ExpandConfig {
export interface SideBarConfig {
showServers?: 'byDefault' | 'bySpecTags' | 'byServersTags';
showOperations?: 'byDefault' | 'bySpecTags' | 'byOperationsTags';
+ useChannelAddressAsIdentifier?: boolean;
}
diff --git a/library/src/containers/Sidebar/Sidebar.tsx b/library/src/containers/Sidebar/Sidebar.tsx
index a722eea3a..6e1eeaefc 100644
--- a/library/src/containers/Sidebar/Sidebar.tsx
+++ b/library/src/containers/Sidebar/Sidebar.tsx
@@ -253,7 +253,7 @@ const OperationsList: React.FunctionComponent = () => {
numeric: true,
});
let label = '';
- if (version === 0) {
+ if (version === 0 || sidebarConfig?.useChannelAddressAsIdentifier) {
// old version uses different labels for the operations
const operationChannels = operationChannel.all();
const channelAddress = operationChannels[0]?.address() ?? '';
diff --git a/library/src/containers/Sidebar/__tests__/SideBar.test.tsx b/library/src/containers/Sidebar/__tests__/SideBar.test.tsx
index f98d53b22..4701a0006 100644
--- a/library/src/containers/Sidebar/__tests__/SideBar.test.tsx
+++ b/library/src/containers/Sidebar/__tests__/SideBar.test.tsx
@@ -103,4 +103,28 @@ describe('Sidebar component', () => {
,
);
});
+ test('should render with useChannelAddressAsIdentifier: true', () => {
+ const { container } = render(
+
+
+
+
+ ,
+ );
+ const operations = container.querySelectorAll('a[href^="#operation-"]');
+ const expectedOperationDescriptions = [
+ 'Inform about environmental lighting conditions of a particular streetlight.', // because the channel has a summary
+ 'smartylighting.streetlights.1.0.action.{streetlightId}.turn.on',
+ 'smartylighting.streetlights.1.0.action.{streetlightId}.turn.off',
+ 'smartylighting.streetlights.1.0.action.{streetlightId}.dim',
+ ];
+ for (let i = 0; i < operations.length; i++) {
+ // eslint-disable-next-line jest/no-standalone-expect
+ expect(operations[i].querySelectorAll('span')[1].textContent).toBe(
+ expectedOperationDescriptions[i],
+ );
+ }
+ });
});
From d2ebc570f1dc26c218af0bc1159019706d9bba24 Mon Sep 17 00:00:00 2001
From: asyncapi-bot
Date: Thu, 25 Jul 2024 20:00:07 +0200
Subject: [PATCH 28/28] chore(release): v2.2.0 (#1033)
---
library/package.json | 2 +-
package-lock.json | 6 +++---
web-component/package.json | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/library/package.json b/library/package.json
index 762d14bd0..396b00f8d 100644
--- a/library/package.json
+++ b/library/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
- "version": "2.1.1",
+ "version": "2.2.0",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
diff --git a/package-lock.json b/package-lock.json
index ccc6a1f34..7d117134f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
},
"library": {
"name": "@asyncapi/react-component",
- "version": "2.1.1",
+ "version": "2.2.0",
"license": "Apache-2.0",
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.24",
@@ -27649,10 +27649,10 @@
},
"web-component": {
"name": "@asyncapi/web-component",
- "version": "2.1.1",
+ "version": "2.2.0",
"license": "Apache-2.0",
"dependencies": {
- "@asyncapi/react-component": "^2.1.1",
+ "@asyncapi/react-component": "^2.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
diff --git a/web-component/package.json b/web-component/package.json
index 8e3cf4573..88af28463 100644
--- a/web-component/package.json
+++ b/web-component/package.json
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
- "version": "2.1.1",
+ "version": "2.2.0",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
@@ -44,7 +44,7 @@
"install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh"
},
"dependencies": {
- "@asyncapi/react-component": "^2.1.1",
+ "@asyncapi/react-component": "^2.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"