@eventcatalog/core 0.2.19 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +27 -27
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1bay4w0 +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/8.js +22 -0
- package/.next/server/chunks/944.js +2 -2
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_app.js +11 -10
- package/.next/server/pages/domains/Orders/events/OrderComplete/logs.html +1 -1
- package/.next/server/pages/domains/Orders/events/OrderComplete.html +2 -2
- package/.next/server/pages/domains/Orders/events/OrderComplete.json +1 -1
- package/.next/server/pages/domains/Orders/events/OrderConfirmed/logs.html +1 -1
- package/.next/server/pages/domains/Orders/events/OrderConfirmed.html +2 -2
- package/.next/server/pages/domains/Orders/events/OrderConfirmed.json +1 -1
- package/.next/server/pages/domains/Orders/events/OrderRequested/logs.html +1 -1
- package/.next/server/pages/domains/Orders/events/OrderRequested.html +2 -2
- package/.next/server/pages/domains/Orders/events/OrderRequested.json +1 -1
- package/.next/server/pages/domains/Orders/services/Orders Service.html +2 -2
- package/.next/server/pages/domains/Orders/services/Orders Service.json +1 -1
- package/.next/server/pages/domains/Orders.html +2 -2
- package/.next/server/pages/domains/Orders.json +1 -1
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart/logs.html +1 -1
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.1.html +2 -2
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.1.json +1 -1
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.2.html +2 -2
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.2.json +1 -1
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart.html +3 -3
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart.json +1 -1
- package/.next/server/pages/domains/Shopping/events/RemovedItemFromCart/logs.html +1 -1
- package/.next/server/pages/domains/Shopping/events/RemovedItemFromCart.html +2 -2
- package/.next/server/pages/domains/Shopping/events/RemovedItemFromCart.json +1 -1
- package/.next/server/pages/domains/Shopping.html +2 -2
- package/.next/server/pages/domains/Shopping.json +1 -1
- package/.next/server/pages/domains.html +2 -2
- package/.next/server/pages/events/PaymentProcessed/logs.html +1 -1
- package/.next/server/pages/events/PaymentProcessed.html +2 -2
- package/.next/server/pages/events/PaymentProcessed.json +1 -1
- package/.next/server/pages/events/ShipmentDelivered/logs.html +1 -1
- package/.next/server/pages/events/ShipmentDelivered.html +2 -2
- package/.next/server/pages/events/ShipmentDelivered.json +1 -1
- package/.next/server/pages/events/ShipmentDispatched/logs.html +1 -1
- package/.next/server/pages/events/ShipmentDispatched.html +2 -2
- package/.next/server/pages/events/ShipmentDispatched.json +1 -1
- package/.next/server/pages/events/ShipmentPrepared/logs.html +1 -1
- package/.next/server/pages/events/ShipmentPrepared.html +2 -2
- package/.next/server/pages/events/ShipmentPrepared.json +1 -1
- package/.next/server/pages/events.html +2 -2
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/overview.html +1 -1
- package/.next/server/pages/services/Orders Service.html +1 -1
- package/.next/server/pages/services/Payment Service.html +2 -2
- package/.next/server/pages/services/Payment Service.json +1 -1
- package/.next/server/pages/services/Shipping Service.html +2 -2
- package/.next/server/pages/services/Shipping Service.json +1 -1
- package/.next/server/pages/services.html +2 -2
- package/.next/server/pages/users/dboyne.html +2 -2
- package/.next/server/pages/users/mSmith.html +2 -2
- package/.next/server/pages/visualiser.html +2 -2
- package/.next/static/chunks/178-92f61f420b73011a.js +1 -0
- package/.next/static/chunks/pages/_app-8836b5fd3bbebacc.js +1 -0
- package/.next/static/chunks/{webpack-6d71b9b42478969c.js → webpack-f962e6b0def4fee3.js} +1 -1
- package/{out/_next/static/css/f35070e1edc71e18.css → .next/static/css/ad02419ddf1790f1.css} +1 -1
- package/.next/static/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/_buildManifest.js +1 -1
- package/.next/static/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/_middlewareManifest.js +0 -0
- package/.next/static/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/_ssgManifest.js +0 -0
- package/.next/trace +65 -65
- package/CHANGELOG.md +18 -0
- package/components/Header.tsx +12 -10
- package/components/Mdx/Examples.tsx +1 -1
- package/components/Sidebars/EventSidebar.tsx +1 -1
- package/eventcatalog.config.js +7 -0
- package/out/404/index.html +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Orders/events/OrderComplete/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Orders/events/OrderComplete.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Orders/events/OrderConfirmed/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Orders/events/OrderConfirmed.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Orders/events/OrderRequested/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Orders/events/OrderRequested.json +1 -1
- package/out/_next/data/mdbSZbTe3kjQOND4Ed3pF/domains/Orders/services/Orders Service.json +1 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Orders.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Shopping/events/AddedItemToCart/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Shopping/events/AddedItemToCart/v/0.0.1.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Shopping/events/AddedItemToCart/v/0.0.2.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Shopping/events/AddedItemToCart.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Shopping/events/RemovedItemFromCart/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains/Shopping/events/RemovedItemFromCart.json +1 -1
- package/out/_next/data/mdbSZbTe3kjQOND4Ed3pF/domains/Shopping.json +1 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/domains.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events/PaymentProcessed/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events/PaymentProcessed.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events/ShipmentDelivered/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events/ShipmentDelivered.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events/ShipmentDispatched/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events/ShipmentDispatched.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events/ShipmentPrepared/logs.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events/ShipmentPrepared.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/events.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/overview.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/services/Orders Service.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/services/Payment Service.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/services/Shipping Service.json +1 -1
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/services.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/users/dboyne.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/users/mSmith.json +0 -0
- package/out/_next/data/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/visualiser.json +0 -0
- package/out/_next/static/chunks/178-92f61f420b73011a.js +1 -0
- package/out/_next/static/chunks/pages/_app-8836b5fd3bbebacc.js +1 -0
- package/out/_next/static/chunks/{webpack-6d71b9b42478969c.js → webpack-f962e6b0def4fee3.js} +1 -1
- package/{.next/static/css/f35070e1edc71e18.css → out/_next/static/css/ad02419ddf1790f1.css} +1 -1
- package/out/_next/static/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/_buildManifest.js +1 -1
- package/out/_next/static/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/_middlewareManifest.js +0 -0
- package/out/_next/static/{cRaWYEyUvpBnGCYj8ZWfC → mdbSZbTe3kjQOND4Ed3pF}/_ssgManifest.js +0 -0
- package/out/domains/Orders/events/OrderComplete/index.html +2 -2
- package/out/domains/Orders/events/OrderComplete/logs/index.html +1 -1
- package/out/domains/Orders/events/OrderConfirmed/index.html +2 -2
- package/out/domains/Orders/events/OrderConfirmed/logs/index.html +1 -1
- package/out/domains/Orders/events/OrderRequested/index.html +2 -2
- package/out/domains/Orders/events/OrderRequested/logs/index.html +1 -1
- package/out/domains/Orders/index.html +2 -2
- package/out/domains/Orders/services/Orders Service/index.html +2 -2
- package/out/domains/Shopping/events/AddedItemToCart/index.html +3 -3
- package/out/domains/Shopping/events/AddedItemToCart/logs/index.html +1 -1
- package/out/domains/Shopping/events/AddedItemToCart/v/0.0.1/index.html +2 -2
- package/out/domains/Shopping/events/AddedItemToCart/v/0.0.2/index.html +2 -2
- package/out/domains/Shopping/events/RemovedItemFromCart/index.html +2 -2
- package/out/domains/Shopping/events/RemovedItemFromCart/logs/index.html +1 -1
- package/out/domains/Shopping/index.html +2 -2
- package/out/domains/index.html +2 -2
- package/out/events/PaymentProcessed/index.html +2 -2
- package/out/events/PaymentProcessed/logs/index.html +1 -1
- package/out/events/ShipmentDelivered/index.html +2 -2
- package/out/events/ShipmentDelivered/logs/index.html +1 -1
- package/out/events/ShipmentDispatched/index.html +2 -2
- package/out/events/ShipmentDispatched/logs/index.html +1 -1
- package/out/events/ShipmentPrepared/index.html +2 -2
- package/out/events/ShipmentPrepared/logs/index.html +1 -1
- package/out/events/index.html +2 -2
- package/out/index.html +1 -1
- package/out/overview/index.html +1 -1
- package/out/services/Orders Service/index.html +1 -1
- package/out/services/Payment Service/index.html +2 -2
- package/out/services/Shipping Service/index.html +2 -2
- package/out/services/index.html +2 -2
- package/out/users/dboyne/index.html +2 -2
- package/out/users/mSmith/index.html +2 -2
- package/out/visualiser/index.html +2 -2
- package/package.json +2 -2
- package/.next/static/chunks/178-689815db08dbcdce.js +0 -1
- package/.next/static/chunks/pages/_app-a03c2dba159b0e27.js +0 -1
- package/out/_next/data/cRaWYEyUvpBnGCYj8ZWfC/domains/Orders/services/Orders Service.json +0 -1
- package/out/_next/data/cRaWYEyUvpBnGCYj8ZWfC/domains/Shopping.json +0 -1
- package/out/_next/static/chunks/178-689815db08dbcdce.js +0 -1
- package/out/_next/static/chunks/pages/_app-a03c2dba159b0e27.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventcatalog/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"swagger-ui-react": "^4.6.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@eventcatalog/types": "0.
|
|
49
|
+
"@eventcatalog/types": "0.2.0",
|
|
50
50
|
"@types/react": "^17.0.36",
|
|
51
51
|
"autoprefixer": "^10.4.0",
|
|
52
52
|
"commander": "^8.3.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[178],{4573:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var r=t(52322),a=t(2784),i=t(14689),o=t(70314),s=(0,o.default)().publicRuntimeConfig,c=(void 0===s?{}:s).basePath,l=void 0===c?"":c,d=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},u=function(e,n,t){var r="/".concat(t?"domains/".concat(t,"/"):"").concat(n,"/").concat(e);return l?"".concat(l).concat(r):r},m=function(e,n,t,r){return"flowchart LR\n\n".concat(n.map((function(n){return"l-".concat(n.id,"[").concat(n.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(r,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(t.map((function(n){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3er-").concat(n.id,"[").concat(n.name,"]:::consumer\n")})).join(""),"\n").concat(n.map((function(e){return"click l-".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(t.map((function(e){return"click r-".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};i.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var f=function(e){var n=e.data,t=e.source,o=void 0===t?"event":t,s=e.rootNodeColor,c=e.charts;if((0,a.useEffect)((function(){i.Z.contentLoaded()}),[]),c)return(0,r.jsx)(r.Fragment,{children:c.map((function(e,n){return(0,r.jsx)("div",{className:"mermaid",children:e},"chart-".concat(n))}))});var l="event"===o?function(e){var n=e.name,t=e.producerNames,r=e.consumerNames,a=e.producers,i=void 0===a?[]:a,o=e.consumers,s=void 0===o?[]:o,c=e.domain,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#2563eb",f=t.map(d).map((function(e){var n;return{id:e.replace(/ /g,"_"),name:e,link:u(e,"services",null===(n=i.find((function(n){return n.name===e})))||void 0===n?void 0:n.domain)}})),x=r.map(d).map((function(e){var n;return{id:e.replace(/ /g,"_"),name:e,link:u(e,"services",null===(n=s.find((function(n){return n.name===e})))||void 0===n?void 0:n.domain)}})),h={id:d(n.replace(/ /g,"_")),name:n,link:u(n,"events",c)};return m(h,f,x,l)}(n,s):function(e){var n=e.publishes,t=e.subscribes,r=e.name,a=e.domain,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#2563eb",o=t.map((function(e){return{event:e,truncatedName:d(e.name)}})).map((function(e){var n=e.event,t=e.truncatedName;return{id:t.replace(/ /g,"_"),name:t,link:u(n.name,"events",n.domain)}})),s=n.map((function(e){return{event:e,truncatedName:d(e.name)}})).map((function(e){var n=e.event,t=e.truncatedName;return{id:t.replace(/ /g,"_"),name:t,link:u(n.name,"events",n.domain)}})),c={id:d(r.replace(/ /g,"_")),name:r,link:u(r,"services",a)};return m(c,o,s,i)}(n,s);return(0,r.jsx)("div",{className:"mermaid",children:l})}},81178:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return U},default:function(){return B},getComponents:function(){return z}});var r=t(52322),a=t(97729),i=t(23816),o=t(61790),s=t(2784),c=t(63548),l=t(73183),d=t(85411),u=t(17962);function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){m(e,n,t[n])}))}return e}function x(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var h=function(e){var n=e.language,t=e.name,a=void 0===t?"":t,i=x(e,["language","name"]),o=(0,s.useState)(!1),m=o[0],h=o[1],p=function(){(0,d.Z)(i.children),h(!0),setTimeout((function(){return h(!1)}),2e3)};return(0,r.jsxs)("div",{className:"h-96 relative",children:[a&&(0,r.jsxs)("div",{className:"flex -mb-3 pb-2 bg-gray-900 ".concat(a?"justify-between":"justify-end"),children:[a&&(0,r.jsx)("span",{className:"block text-xs py-2 px-2 font-bold text-gray-300",children:a}),(0,r.jsx)("button",{type:"button",onClick:p,className:"text-xs text-white rounded-md px-4",children:m?"Copied":(0,r.jsx)(u.dqY,{className:"h-4 w-4"})})]}),!a&&(0,r.jsx)("button",{type:"button",onClick:p,className:"text-xs absolute right-0 top-2 text-white rounded-md px-4",children:m?"Copied":(0,r.jsx)(u.dqY,{className:"h-4 w-4"})}),(0,r.jsx)(l.Z,f({style:c.Z,language:n},i,{wrapLines:!0,className:"h-96 overflow-auto",children:i.children.replace(/\\n/g,"\n")}))]})};function p(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter(Boolean).join(" ")}var g=function(e){var n=e.title,t=void 0===n?"Examples":n,a=e.description,i=e.examples,o=void 0===i?[]:i,c=e.showLineNumbers,l=o.map((function(e,n){return{name:e.name||"Example ".concat(n+1),content:e.snippet,description:e.description,langugage:e.langugage}})),d=(0,s.useState)(l[0]),u=d[0],m=d[1];return(0,r.jsx)("div",{className:"my-5 examples",children:(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)("h2",{className:"text-lg font-medium text-gray-700 underline",children:t}),a&&(0,r.jsx)("p",{className:"text-md font-medium text-gray-700",children:a}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"col-span-5",children:[(0,r.jsx)("nav",{className:"-mb-2 flex bg-gray-900","aria-label":"Tabs",children:l.map((function(e){var n=e.name===u.name;return(0,r.jsx)("button",{type:"button",onClick:function(){return function(e){m(e)}(e)},className:p(n?"border-yellow-300 text-yellow-300 selected bg-gray-700":"border-transparent text-gray-500 hover:text-gray-400 bg-gray-800 ","whitespace-nowrap py-3 border-b-2 font-medium important:no-underline px-6 text-xs transition "),"aria-current":n?"page":void 0,children:e.name},e.name)}))}),(0,r.jsx)("div",{children:(0,r.jsx)(h,{language:u.langugage,showLineNumbers:c,children:u.content})})]})})]})})},v=t(46892),b=t(62455),j=t(4573),y=t(39097),w=t(70314),N=t(55746),O=t(43553),k=t(17933);function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function E(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var C=function(e,n){var t=E(n.consumers).concat(E(n.producers)).find((function(n){return n.name===e}));return t&&t.domain?"/domains/".concat(t.domain,"/services/").concat(e):"/services/".concat(e)},Z=function(e){return e.domain?"/domains/".concat(e.domain,"/events/").concat(e.name,"/logs"):"/events/".concat(e.name,"/logs")};var _=function(e){var n=e.event,t=e.loadedVersion,a=e.isOldVersion,i=e.urlPath,o=n.name,s=n.owners,c=n.producerNames,l=n.consumerNames,d=n.historicVersions,m=n.externalLinks,f=n.schema,x=n.domain,h=(0,w.default)().publicRuntimeConfig,p=(void 0===h?{}:h).basePath,g=void 0===p?"":p;return(0,r.jsxs)("aside",{className:"hidden xl:block xl:pl-8 divide-y divide-gray-200",children:[(0,r.jsx)("h2",{className:"sr-only",children:"Details"}),c.length>0&&(0,r.jsx)(k.Z,{title:"Producers (".concat(c.length,")"),titleIcon:{icon:u.FMB,className:"text-green-400"},items:c.map((function(e){return{label:e,href:C(e,n),bgColor:"green"}}))}),l.length>0&&(0,r.jsx)(k.Z,{title:"Consumers (".concat(l.length,")"),titleIcon:{icon:u.FMB,className:"text-indigo-400"},items:l.map((function(e){return{label:e,href:C(e,n),bgColor:"indigo"}}))}),x&&(0,r.jsx)("div",{className:"py-6 space-y-8",children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-sm font-medium text-gray-500",children:[(0,r.jsx)(u.wZP,{className:"h-5 w-5 text-yellow-400 inline-block mr-2","aria-hidden":"true"}),"Domain"]}),(0,r.jsx)("ul",{className:"mt-2 leading-8",children:(0,r.jsx)("li",{className:"inline",children:(0,r.jsx)(y.default,{href:"/domains/".concat(x),children:(0,r.jsxs)("a",{href:"#",className:"relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5",children:[(0,r.jsx)("div",{className:"absolute flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-yellow-500 animate animate-pulse","aria-hidden":"true"})}),(0,r.jsx)("div",{className:"ml-3.5 text-sm font-medium text-gray-900",children:x})]})})})})]})}),d.length>0&&(0,r.jsx)("div",{className:" py-6",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-sm font-medium text-gray-500",children:"Event Versions"}),(0,r.jsxs)("ul",{className:"mt-2 leading-8 text-left text-blue-500",children:[(0,r.jsx)("li",{className:"text-sm inline ",children:(0,r.jsx)(y.default,{href:i,children:(0,r.jsx)("a",{children:(0,r.jsx)("span",{className:"inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative ".concat("latest"===t?"bg-blue-400 text-white shadow-md font-bold underline":"bg-blue-100 text-blue-800"),children:"Latest"})})})}),d.map((function(e){var n=t===e?"bg-blue-400 text-white shadow-md font-bold underline":"bg-blue-100 text-blue-800";return(0,r.jsx)("li",{className:"text-sm inline",children:(0,r.jsx)(y.default,{href:"".concat(i,"/v/").concat(e),children:(0,r.jsx)("a",{children:(0,r.jsxs)("span",{className:"inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative ".concat(n),children:["v",e]})})})},e)}))]})]})}),s.length>0&&(0,r.jsx)(O.Z,{owners:s}),(0,r.jsxs)("div",{className:" py-6 space-y-1",children:[f&&(0,r.jsxs)("a",{href:f?a?"".concat(g,"/schemas/").concat(o,"/").concat(t,"/schema.").concat(f.extension):"".concat(g,"/schemas/").concat(o,"/schema.").concat(f.extension):null,download:"".concat(o,"(").concat(n.version,").").concat(f.extension),className:"hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-200 bg-gray-800 hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900",children:[(0,r.jsx)(u._8t,{className:"-ml-1 mr-2 h-5 w-5 text-gray-200","aria-hidden":"true"}),(0,r.jsx)("span",{children:"Download Schema"})]}),d.length>0&&(0,r.jsx)(y.default,{href:Z(n),children:(0,r.jsx)("a",{className:"hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-800 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-200",children:(0,r.jsx)("span",{children:"View Changes"})})}),(0,r.jsx)(y.default,{href:"/visualiser?type=event&name".concat(o),children:(0,r.jsx)("a",{className:"hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-800 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-200",children:(0,r.jsx)("span",{children:"View in Visualiser"})})}),m.length>0&&(0,r.jsx)(N.Z,{externalLinks:m})]})]})},P=t(4488),V=t(52428),D=t(57840),L=t(69931),A=t(81669),R=t.n(A);(0,L.fH)();var I=function(e){var n=e.schema,t=e.maxHeight,a=e.renderRootTreeLines,i=void 0!==a&&a,o=e.hideExamples,c=void 0!==o&&o,l=e.defaultExpandedDepth,d=void 0===l?1:l,u=(0,s.useMemo)((function(){return JSON.parse(n)}),[n]);return(0,r.jsx)(D.K,{schema:u,emptyText:"No schema defined",maxHeight:t,defaultExpandedDepth:d,renderRootTreeLines:i,hideExamples:c,className:R().schemaViewer})},M=t(55008),T=t(78484);function F(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){F(e,n,t[n])}))}return e}function G(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var U=!0,z=function(e){var n=e.event,t=e.schema,a=e.examples;return{code:function(e){var n=e.className,t=G(e,["className"]),a=/language-(\w+)/.exec(n||"");return a?(0,r.jsx)(h,H({language:a[1]},t)):(0,r.jsx)("code",H({className:n},t))},Schema:function(e){var a=e.title;return t?(0,r.jsxs)("section",{className:"mt-8 xl:mt-10",children:[a&&(0,r.jsx)("h2",{id:"activity-title",className:"text-lg font-medium text-gray-900 underline",children:a}),(0,r.jsx)(h,{language:t.language,showLineNumbers:!1,name:"".concat(n.name," Schema (").concat(t.language,")"),children:t.snippet})]}):null},SchemaViewer:function(e){var n=e.title,a=e.renderRootTreeLines,i=void 0!==a&&a,o=e.defaultExpandedDepth,s=void 0===o?1:o,c=e.maxHeight;return t?(0,r.jsxs)("section",{className:"mt-8 xl:mt-10",children:[n&&(0,r.jsx)("h2",{className:"text-lg font-medium text-gray-900 underline",children:n}),(0,r.jsx)(I,{schema:t.snippet,maxHeight:parseInt(c,10),renderRootTreeLines:i,defaultExpandedDepth:s})]}):null},Admonition:o.Z,EventExamples:function(e){return a.length>0?(0,r.jsx)(g,H({},e,{examples:a,showLineNumbers:!0})):(console.log("You are using the <EventExamples /> component without any examples, please read https://eventcatalog.dev/docs/events/adding-examples for more information"),null)},Mermaid:function(e){var t=e.title,a=e.charts;return(0,r.jsxs)("div",{className:"mx-auto w-full py-10",children:[t&&(0,r.jsx)("h2",{className:"text-lg font-medium text-gray-900 underline",children:t}),(0,r.jsx)(j.Z,{source:"event",data:n,rootNodeColor:(0,v.Z)(n.name),charts:a})]})},NodeGraph:function(e){var t=e.title,a=e.maxHeight,i=e.maxZoom,o=e.fitView,s=e.zoomOnScroll,c=e.isAnimated,l=e.isDraggable;return(0,r.jsxs)("div",{className:"mx-auto w-full",children:[t&&(0,r.jsx)("h2",{className:"text-lg font-medium text-gray-900 underline",children:t}),(0,r.jsx)(T.Z,{source:"event",data:n,rootNodeColor:(0,v.Z)(n.name),maxHeight:a,maxZoom:i,fitView:o,zoomOnScroll:s,isAnimated:c,isDraggable:l})]})}}};function B(e){var n=e.event,t=e.markdown,o=e.loadedVersion,s=e.notFound,c=e.breadCrumbs,l=e.eventPath,d=(0,M.ZR)().title,u=(0,M.wG)(),m=u.getEditUrl,f=u.hasEditUrl,x=n.name,h=n.summary,p=n.draft,g=n.schema,v=n.examples,j=n.version;if(s)return(0,r.jsx)(P.Z,{type:"event",name:n.name,editUrl:f?m("/events/".concat(x,"/index.md")):""});var y=t.lastModifiedDate,w=z({event:n,schema:g,examples:v});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{children:(0,r.jsxs)("title",{children:[d," - ",x," v",j]})}),(0,r.jsx)(b.Z,{title:x,editUrl:f?m("".concat(l,"/index.md")):"",subtitle:h,draft:p,lastModifiedDate:y,tags:[{label:"v".concat(j)}],breadCrumbs:(0,r.jsx)(V.Z,{pages:c}),isOldVersion:"latest"!==o,latestVersionUrl:l,version:o,sidebar:(0,r.jsx)(_,{event:n,urlPath:l,loadedVersion:o,isOldVersion:"latest"!==o}),children:(0,r.jsx)(i.R,H({},t.source,{components:w}))})]})}},81669:function(e){e.exports={schemaViewer:"SchemaViewer_schemaViewer__un45l"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{70314:function(e,t,r){e.exports=r(96112)},93542:function(e,t,r){"use strict";var n,o;e.exports=(null===(n=r.g.process)||void 0===n?void 0:n.env)&&"object"===typeof(null===(o=r.g.process)||void 0===o?void 0:o.env)?r.g.process:r(42351)},33394:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(32636)}])},90162:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.default=void 0;var a,i=(a=r(2784))&&a.__esModule?a:{default:a},l=r(29918),c=r(93642),s=r(22030);var u={};function f(e,t,r,n){if(e&&l.isLocalURL(t)){e.prefetch(t,r,n).catch((function(e){0}));var o=n&&"undefined"!==typeof n.locale?n.locale:e&&e.locale;u[t+"%"+r+(o?"%"+o:"")]=!0}}var d=function(e){var t,r=!1!==e.prefetch,n=c.useRouter(),a=i.default.useMemo((function(){var t=o(l.resolveHref(n,e.href,!0),2),r=t[0],a=t[1];return{href:r,as:e.as?l.resolveHref(n,e.as):a||r}}),[n,e.href,e.as]),d=a.href,h=a.as,g=e.children,v=e.replace,p=e.shallow,m=e.scroll,y=e.locale;"string"===typeof g&&(g=i.default.createElement("a",null,g));var x=(t=i.default.Children.only(g))&&"object"===typeof t&&t.ref,b=o(s.useIntersection({rootMargin:"200px"}),2),w=b[0],j=b[1],C=i.default.useCallback((function(e){w(e),x&&("function"===typeof x?x(e):"object"===typeof x&&(x.current=e))}),[x,w]);i.default.useEffect((function(){var e=j&&r&&l.isLocalURL(d),t="undefined"!==typeof y?y:n&&n.locale,o=u[d+"%"+h+(t?"%"+t:"")];e&&!o&&f(n,d,h,{locale:t})}),[h,d,j,y,r,n]);var A={ref:C,onClick:function(e){t.props&&"function"===typeof t.props.onClick&&t.props.onClick(e),e.defaultPrevented||function(e,t,r,n,o,a,i,c){("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&l.isLocalURL(r))&&(e.preventDefault(),t[o?"replace":"push"](r,n,{shallow:a,locale:c,scroll:i}))}(e,n,d,h,v,p,m,y)},onMouseEnter:function(e){t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),l.isLocalURL(d)&&f(n,d,h,{priority:!0})}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var E="undefined"!==typeof y?y:n&&n.locale,k=n&&n.isLocaleDomain&&l.getDomainLocale(h,E,n&&n.locales,n&&n.domainLocales);A.href=k||l.addBasePath(l.addLocale(h,E,n&&n.defaultLocale))}return i.default.cloneElement(t,A)};t.default=d},22030:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootRef,r=e.rootMargin,n=e.disabled||!l,u=a.useRef(),f=o(a.useState(!1),2),d=f[0],h=f[1],g=o(a.useState(t?t.current:null),2),v=g[0],p=g[1],m=a.useCallback((function(e){u.current&&(u.current(),u.current=void 0),n||d||e&&e.tagName&&(u.current=function(e,t,r){var n=function(e){var t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find((function(e){return e.root===r.root&&e.margin===r.margin}));n?t=c.get(n):(t=c.get(r),s.push(r));if(t)return t;var o=new Map,a=new IntersectionObserver((function(e){e.forEach((function(e){var t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)}))}),e);return c.set(r,t={id:r,observer:a,elements:o}),t}(r),o=n.id,a=n.observer,i=n.elements;return i.set(e,t),a.observe(e),function(){if(i.delete(e),a.unobserve(e),0===i.size){a.disconnect(),c.delete(o);var t=s.findIndex((function(e){return e.root===o.root&&e.margin===o.margin}));t>-1&&s.splice(t,1)}}}(e,(function(e){return e&&h(e)}),{root:v,rootMargin:r}))}),[n,v,r,d]);return a.useEffect((function(){if(!l&&!d){var e=i.requestIdleCallback((function(){return h(!0)}));return function(){return i.cancelIdleCallback(e)}}}),[d]),a.useEffect((function(){t&&p(t.current)}),[t]),[m,d]};var a=r(2784),i=r(49071),l="undefined"!==typeof IntersectionObserver;var c=new Map,s=[]},18663:function(e){"use strict";e.exports={title:"EventCatalog",tagline:"Discover, Explore and Document your Event Driven Architectures",organizationName:"Your Company",editUrl:"https://github.com/boyney123/eventcatalog-demo/edit/master",trailingSlash:!0,logo:{alt:"EventCatalog Logo",src:"logo.svg"},footerLinks:[{label:"Events",href:"/events"},{label:"Services",href:"/services"},{label:"Visualiser",href:"/visualiser"},{label:"3D Node Graph",href:"/overview"},{label:"GitHub",href:"https://github.com/boyney123/eventcatalog-demo/edit/master"}],generators:[["@eventcatalog/plugin-doc-generator-asyncapi",{file:"./asyncapi.yml"}]],users:[{id:"dboyne",name:"David Boyne",avatarUrl:"https://pbs.twimg.com/profile_images/1262283153563140096/DYRDqKg6_400x400.png",role:"Developer",summary:"Currently building tools for Event Architectures."},{id:"mSmith",name:"Matthew Smith",avatarUrl:"https://randomuser.me/api/portraits/lego/3.jpg",role:"Developer",summary:"About Fugiat ipsum ipsum deserunt culpa aute sint do nostrud anim incididunt cillum culpa consequat."}]}},55008:function(e,t,r){"use strict";r.d(t,{K3:function(){return u},ZR:function(){return f},aF:function(){return d},wG:function(){return h}});var n=r(52322),o=r(2784),a=r(15153),i=r.n(a),l=r(18663),c=r.n(l),s=o.createContext(c());function u(e){var t=e.children;return(0,n.jsx)(s.Provider,{value:c(),children:t})}var f=function(){return(0,o.useContext)(s)},d=function(){var e=f();return{getUserById:function(t){return(e.users||[]).find((function(e){return e.id===t}))}}},h=function(){var e=f();return{getEditUrl:function(t){var r=new URL(e.editUrl);return r.pathname=i().join(r.pathname,t),r.toString()},hasEditUrl:!!e.editUrl}}},32636:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var n=r(52322),o=(r(7915),r(97729)),a=r(70314),i=r(2784),l=r(5632),c=r(45847),s=r(39097),u=r(55008),f=[{name:"Events",href:"/events"},{name:"Services",href:"/services"},{name:"Domains",href:"/domains"},{name:"Visualiser",href:"/visualiser"},{name:"3D Node Graph",href:"/overview"}];function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}function h(){var e=(0,u.ZR)(),t=e.title,r=e.homepageLink,o=e.logo,i=(0,l.useRouter)(),c=(0,a.default)().publicRuntimeConfig,h=(void 0===c?{}:c).basePath,g=void 0===h?"":h,v=o||{alt:"EventCatalog Logo",src:"logo.svg"};return(0,n.jsx)("div",{className:"bg-gray-800",children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto ",children:(0,n.jsxs)("div",{className:"relative flex items-center justify-between h-16",children:[(0,n.jsx)("div",{className:"flex-1 flex items-center justify-center sm:items-stretch sm:justify-start",children:(0,n.jsxs)("div",{className:"flex-shrink-0 flex items-center text-white font-bold",children:[!r&&(0,n.jsx)(s.default,{href:"/",children:(0,n.jsxs)("a",{className:"flex items-center",children:[(0,n.jsx)("img",{alt:"logo",className:"text-white w-8 inline-block mr-3",src:"".concat(g,"/").concat(v.src)}),(0,n.jsx)("span",{className:"text-xl",children:t})]})}),r&&(0,n.jsxs)("a",{href:r,className:"flex items-center",children:[(0,n.jsx)("img",{alt:"logo",className:"text-white w-8 inline-block mr-3",src:"".concat(g,"/").concat(v.src)}),(0,n.jsx)("span",{className:"text-xl",children:t})]})]})}),(0,n.jsx)("div",{className:"hidden sm:block sm:ml-6",children:(0,n.jsx)("div",{className:"flex space-x-4",children:f.map((function(e){var t=i.pathname===e.href;return(0,n.jsx)(s.default,{href:e.href,children:(0,n.jsx)("a",{className:d(t?"bg-gray-900 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white","px-3 py-2 rounded-md text-sm font-medium"),"aria-current":t?"page":void 0,children:e.name})},e.name)}))})})]})})})}function g(){var e=(0,u.ZR)(),t=e.organizationName,r=e.footerLinks,o=void 0===r?[]:r,a=(new Date).getFullYear();return(0,n.jsx)("footer",{className:"bg-gray-800",children:(0,n.jsxs)("div",{className:"max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8",children:[o&&(0,n.jsx)("nav",{className:"-mx-5 -my-2 flex flex-wrap justify-center","aria-label":"Footer",children:o.map((function(e){return(0,n.jsx)("div",{className:"px-5 py-2",children:(0,n.jsx)("a",{href:e.href,className:"text-base text-gray-500 hover:text-gray-400",children:e.label})},e.label)}))}),(0,n.jsxs)("p",{className:"mt-8 text-center text-base text-gray-400",children:["Copyright \xa9 ",a," ",t,". Built with"," ",(0,n.jsx)("a",{className:"underline",href:"https://eventcatalog.dev",target:"_blank",rel:"noreferrer",children:"EventCatalog."})]})]})})}var v=r(18663),p=(r.n(v)().analytics||{}).googleAnalyticsTrackingId,m=function(e){(null===window||void 0===window?void 0:window.gtag)&&p&&window.gtag("config",p,{page_path:e})};function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){y(e,t,r[t])}))}return e}var b=function(e){var t=e.Component,r=e.pageProps,s=(0,u.ZR)(),f=s.title,d=void 0===f?"EventCatalog | Discover, Explore and Document your Event Driven Architectures.":f,v=s.tagline,p=void 0===v?"An open source tool powered by markdown to document your Event Driven Architecture.":v,y=s.homepageLink,b=void 0===y?"https://eventcatalog.dev/":y,w=s.analytics,j=s.openGraph,C=void 0===j?{}:j,A=(0,a.default)().publicRuntimeConfig,E=(void 0===A?{}:A).basePath,k=void 0===E?"":E,N=(w||{}).googleAnalyticsTrackingId,T=C.ogTitle,L=void 0===T?d:T,_=C.ogDescription,D=void 0===_?p:_,I=C.ogImage,O=void 0===I?"https://eventcatalog.dev/img/opengraph.png":I,S=C.ogUrl,R=void 0===S?b:S,U=(0,l.useRouter)();return(0,i.useEffect)((function(){var e=function(e){N&&m(e)};return U.events.on("routeChangeComplete",e),function(){U.events.off("routeChangeComplete",e)}}),[U.events,N]),(0,n.jsxs)(u.K3,{children:[(0,n.jsxs)(o.default,{children:[(0,n.jsx)("title",{children:d}),(0,n.jsx)("meta",{name:"description",content:p}),(0,n.jsx)("link",{rel:"icon",href:"".concat(k,"/favicon.ico")}),R&&""!==R&&(0,n.jsx)("meta",{property:"og:url",content:R}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),L&&(0,n.jsx)("meta",{property:"og:title",content:L}),D&&(0,n.jsx)("meta",{property:"og:description",content:D}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{property:"og:image",content:O}),(0,n.jsx)("meta",{property:"og:image:alt",content:"".concat(L," | ").concat(D)}),(0,n.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,n.jsx)("meta",{property:"og:image:height",content:"600"})]}),(0,n.jsx)("meta",{property:"og:locale",content:"en-GB"}),(0,n.jsx)("meta",{name:"author",content:"David Boyne"})]}),N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.default,{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat(N)}),(0,n.jsx)(c.default,{strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(N,"', {\n page_path: window.location.pathname,\n });")}})]}),(0,n.jsx)(h,{}),(0,n.jsx)(t,x({},r)),(0,n.jsx)(g,{})]})}},7915:function(){},15153:function(e,t,r){var n=r(93542);!function(){"use strict";var t={977:function(e){function t(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,a=-1,i=0,l=0;l<=e.length;++l){if(l<e.length)r=e.charCodeAt(l);else{if(47===r)break;r=47}if(47===r){if(a===l-1||1===i);else if(a!==l-1&&2===i){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",o=0):o=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=l,i=0;continue}}else if(2===n.length||1===n.length){n="",o=0,a=l,i=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),o=l-a-1;a=l,i=0}else 46===r&&-1!==i?++i:i=-1}return n}var o={resolve:function(){for(var e,o="",a=!1,i=arguments.length-1;i>=-1&&!a;i--){var l;i>=0?l=arguments[i]:(void 0===e&&(e=n.cwd()),l=e),t(l),0!==l.length&&(o=l+"/"+o,a=47===l.charCodeAt(0))}return o=r(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];t(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":o.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=o.resolve(e))===(r=o.resolve(r)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var a=e.length,i=a-n,l=1;l<r.length&&47===r.charCodeAt(l);++l);for(var c=r.length-l,s=i<c?i:c,u=-1,f=0;f<=s;++f){if(f===s){if(c>s){if(47===r.charCodeAt(l+f))return r.slice(l+f+1);if(0===f)return r.slice(l+f)}else i>s&&(47===e.charCodeAt(n+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(n+f);if(d!==r.charCodeAt(l+f))break;47===d&&(u=f)}var h="";for(f=n+u+1;f<=a;++f)f!==a&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(l+u):(l+=u,47===r.charCodeAt(l)&&++l,r.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,a=!0,i=e.length-1;i>=1;--i)if(47===(r=e.charCodeAt(i))){if(!a){o=i;break}}else a=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!==typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,o=0,a=-1,i=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var l=r.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!i){o=n+1;break}}else-1===c&&(i=!1,c=n+1),l>=0&&(s===r.charCodeAt(l)?-1===--l&&(a=n):(l=-1,a=c))}return o===a?a=c:-1===a&&(a=e.length),e.slice(o,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){o=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":e.slice(o,a)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,a=!0,i=0,l=e.length-1;l>=0;--l){var c=e.charCodeAt(l);if(47!==c)-1===o&&(a=!1,o=l+1),46===c?-1===r?r=l:1!==i&&(i=1):-1!==r&&(i=-1);else if(!a){n=l+1;break}}return-1===r||-1===o||0===i||1===i&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0),a=47===o;a?(r.root="/",n=1):n=0;for(var i=-1,l=0,c=-1,s=!0,u=e.length-1,f=0;u>=n;--u)if(47!==(o=e.charCodeAt(u)))-1===c&&(s=!1,c=u+1),46===o?-1===i?i=u:1!==f&&(f=1):-1!==i&&(f=-1);else if(!s){l=u+1;break}return-1===i||-1===c||0===f||1===f&&i===c-1&&i===l+1?-1!==c&&(r.base=r.name=0===l&&a?e.slice(1,c):e.slice(l,c)):(0===l&&a?(r.name=e.slice(1,i),r.base=e.slice(1,c)):(r.name=e.slice(l,i),r.base=e.slice(l,c)),r.ext=e.slice(i,c)),l>0?r.dir=e.slice(0,l-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,o),i=!1}finally{i&&delete r[e]}return a.exports}o.ab="//";var a=o(977);e.exports=a}()},42351:function(e){!function(){var t={162:function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],s=!1,u=-1;function f(){s&&l&&(s=!1,l.length?c=l.concat(c):u=-1,c.length&&d())}function d(){if(!s){var e=i(f);s=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||s||i(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,n),i=!1}finally{i&&delete r[e]}return a.exports}n.ab="//";var o=n(162);e.exports=o}()},97729:function(e,t,r){e.exports=r(75913)},39097:function(e,t,r){e.exports=r(90162)},5632:function(e,t,r){e.exports=r(93642)},45847:function(e,t,r){e.exports=r(20747)}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],(function(){return t(33394),t(93642)}));var r=e.O();_N_E=r}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"pageProps":{"service":{"name":"Orders Service","summary":"Service that handles customer orders\n","domain":"Orders","owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"openAPISpec":null,"publishes":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},"markdown":{"content":"\nThe order service is our internal API written in NodeJS that handles customer orders.\n\n<NodeGraph />","lastModifiedDate":"2022/5/23","source":{"compiledSource":"var u=Object.defineProperty,h=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var s=(o,e,t)=>e in o?u(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,a=(o,e)=>{for(var t in e||(e={}))d.call(e,t)&&s(o,t,e[t]);if(n)for(var t of n(e))p.call(e,t)&&s(o,t,e[t]);return o},c=(o,e)=>h(o,m(e));var i=(o,e)=>{var t={};for(var r in o)d.call(o,r)&&e.indexOf(r)<0&&(t[r]=o[r]);if(o!=null&&n)for(var r of n(o))e.indexOf(r)<0&&p.call(o,r)&&(t[r]=o[r]);return t};const makeShortcode=o=>function(t){return console.warn(\"Component \"+o+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",a({},t))},NodeGraph=makeShortcode(\"NodeGraph\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var r=t,{components:o}=r,e=i(r,[\"components\"]);return mdx(MDXLayout,c(a(a({},layoutProps),e),{components:o,mdxType:\"MDXLayout\"}),mdx(\"p\",null,\"The order service is our internal API written in NodeJS that handles customer orders.\"),mdx(NodeGraph,{mdxType:\"NodeGraph\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}}},"breadCrumbs":[{"name":"Domain","href":"/domains","current":false},{"name":"Orders","href":"/domains/Orders","current":false},{"name":"Services","href":"/services","current":false},{"name":"Orders Service","href":"/domains/Orders/services/Orders Service","current":true}]},"__N_SSG":true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"pageProps":{"domain":{"name":"Shopping","summary":"Domain for everything shopping\n","owners":["dboyne","mSmith"],"tags":[],"externalLinks":[],"events":[{"name":"AddedItemToCart","version":"0.0.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"],"producers":[{"name":"Basket Service"}],"consumers":[{"name":"Data Lake"}]},{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"producers":[{"name":"Basket Service"}],"consumers":[{"name":"Data Lake"}]}],"services":[]},"markdown":{"content":"\n<Admonition>Domain for everything to do with Shopping at our business. Before adding any events or services to this domain make sure you contact the domain owners and verify it's the correct place.</Admonition>\n\n### Details\n\nThis domain encapsulates everything in our business that has to do with shopping and users. This might be new items added to our online shop or online cart management.\n\n<NodeGraph title=\"Domain Graph\" />","lastModifiedDate":"2022/5/23","source":{"compiledSource":"var m=Object.defineProperty,c=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(o,e,n)=>e in o?m(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,r=(o,e)=>{for(var n in e||(e={}))a.call(e,n)&&d(o,n,e[n]);if(i)for(var n of i(e))s.call(e,n)&&d(o,n,e[n]);return o},p=(o,e)=>c(o,u(e));var h=(o,e)=>{var n={};for(var t in o)a.call(o,t)&&e.indexOf(t)<0&&(n[t]=o[t]);if(o!=null&&i)for(var t of i(o))e.indexOf(t)<0&&s.call(o,t)&&(n[t]=o[t]);return n};const makeShortcode=o=>function(n){return console.warn(\"Component \"+o+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},n))},Admonition=makeShortcode(\"Admonition\"),NodeGraph=makeShortcode(\"NodeGraph\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(n){var t=n,{components:o}=t,e=h(t,[\"components\"]);return mdx(MDXLayout,p(r(r({},layoutProps),e),{components:o,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"Domain for everything to do with Shopping at our business. Before adding any events or services to this domain make sure you contact the domain owners and verify it's the correct place.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This domain encapsulates everything in our business that has to do with shopping and users. This might be new items added to our online shop or online cart management.\"),mdx(NodeGraph,{title:\"Domain Graph\",mdxType:\"NodeGraph\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}}}},"__N_SSG":true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[178],{4573:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var r=t(52322),a=t(2784),i=t(14689),o=t(70314),s=(0,o.default)().publicRuntimeConfig,c=(void 0===s?{}:s).basePath,l=void 0===c?"":c,d=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},u=function(e,n,t){var r="/".concat(t?"domains/".concat(t,"/"):"").concat(n,"/").concat(e);return l?"".concat(l).concat(r):r},m=function(e,n,t,r){return"flowchart LR\n\n".concat(n.map((function(n){return"l-".concat(n.id,"[").concat(n.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(r,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(t.map((function(n){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3er-").concat(n.id,"[").concat(n.name,"]:::consumer\n")})).join(""),"\n").concat(n.map((function(e){return"click l-".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(t.map((function(e){return"click r-".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};i.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var f=function(e){var n=e.data,t=e.source,o=void 0===t?"event":t,s=e.rootNodeColor,c=e.charts;if((0,a.useEffect)((function(){i.Z.contentLoaded()}),[]),c)return(0,r.jsx)(r.Fragment,{children:c.map((function(e,n){return(0,r.jsx)("div",{className:"mermaid",children:e},"chart-".concat(n))}))});var l="event"===o?function(e){var n=e.name,t=e.producerNames,r=e.consumerNames,a=e.producers,i=void 0===a?[]:a,o=e.consumers,s=void 0===o?[]:o,c=e.domain,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#2563eb",f=t.map(d).map((function(e){var n;return{id:e.replace(/ /g,"_"),name:e,link:u(e,"services",null===(n=i.find((function(n){return n.name===e})))||void 0===n?void 0:n.domain)}})),x=r.map(d).map((function(e){var n;return{id:e.replace(/ /g,"_"),name:e,link:u(e,"services",null===(n=s.find((function(n){return n.name===e})))||void 0===n?void 0:n.domain)}})),h={id:d(n.replace(/ /g,"_")),name:n,link:u(n,"events",c)};return m(h,f,x,l)}(n,s):function(e){var n=e.publishes,t=e.subscribes,r=e.name,a=e.domain,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#2563eb",o=t.map((function(e){return{event:e,truncatedName:d(e.name)}})).map((function(e){var n=e.event,t=e.truncatedName;return{id:t.replace(/ /g,"_"),name:t,link:u(n.name,"events",n.domain)}})),s=n.map((function(e){return{event:e,truncatedName:d(e.name)}})).map((function(e){var n=e.event,t=e.truncatedName;return{id:t.replace(/ /g,"_"),name:t,link:u(n.name,"events",n.domain)}})),c={id:d(r.replace(/ /g,"_")),name:r,link:u(r,"services",a)};return m(c,o,s,i)}(n,s);return(0,r.jsx)("div",{className:"mermaid",children:l})}},81178:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return U},default:function(){return B},getComponents:function(){return z}});var r=t(52322),a=t(97729),i=t(23816),o=t(61790),s=t(2784),c=t(63548),l=t(73183),d=t(85411),u=t(17962);function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){m(e,n,t[n])}))}return e}function x(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var h=function(e){var n=e.language,t=e.name,a=void 0===t?"":t,i=x(e,["language","name"]),o=(0,s.useState)(!1),m=o[0],h=o[1],p=function(){(0,d.Z)(i.children),h(!0),setTimeout((function(){return h(!1)}),2e3)};return(0,r.jsxs)("div",{className:"h-96 relative",children:[a&&(0,r.jsxs)("div",{className:"flex -mb-3 pb-2 bg-gray-900 ".concat(a?"justify-between":"justify-end"),children:[a&&(0,r.jsx)("span",{className:"block text-xs py-2 px-2 font-bold text-gray-300",children:a}),(0,r.jsx)("button",{type:"button",onClick:p,className:"text-xs text-white rounded-md px-4",children:m?"Copied":(0,r.jsx)(u.dqY,{className:"h-4 w-4"})})]}),!a&&(0,r.jsx)("button",{type:"button",onClick:p,className:"text-xs absolute right-0 top-2 text-white rounded-md px-4",children:m?"Copied":(0,r.jsx)(u.dqY,{className:"h-4 w-4"})}),(0,r.jsx)(l.Z,f({style:c.Z,language:n},i,{wrapLines:!0,className:"h-96 overflow-auto",children:i.children.replace(/\\n/g,"\n")}))]})};function p(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter(Boolean).join(" ")}var g=function(e){var n=e.title,t=void 0===n?"Examples":n,a=e.description,i=e.examples,o=void 0===i?[]:i,c=e.showLineNumbers,l=o.map((function(e,n){return{name:e.name||"Example ".concat(n+1),content:e.snippet,description:e.description,langugage:e.langugage}})),d=(0,s.useState)(l[0]),u=d[0],m=d[1];return(0,r.jsx)("div",{className:"my-5 examples",children:(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)("h2",{className:"text-lg font-medium text-gray-700 underline",children:t}),a&&(0,r.jsx)("p",{className:"text-md font-medium text-gray-700",children:a}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"col-span-5",children:[(0,r.jsx)("nav",{className:"-mb-2 flex bg-gray-900","aria-label":"Tabs",children:l.map((function(e){var n=e.name===u.name;return(0,r.jsx)("button",{type:"button",onClick:function(){return function(e){m(e)}(e)},className:p(n?"border-yellow-300 text-yellow-300 selected bg-gray-700":"border-transparent text-gray-500 hover:text-gray-400 bg-gray-800 ","whitespace-nowrap py-3 border-b-2 font-medium important:no-underline px-6 text-xs transition "),"aria-current":n?"page":void 0,children:e.name},e.name)}))}),(0,r.jsx)("div",{children:(0,r.jsx)(h,{language:u.langugage,showLineNumbers:c,children:u.content})})]})})]})})},v=t(46892),b=t(62455),j=t(4573),y=t(39097),w=t(70314),N=t(55746),O=t(43553),k=t(17933);function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function E(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var C=function(e,n){var t=E(n.consumers).concat(E(n.producers)).find((function(n){return n.name===e}));return t&&t.domain?"/domains/".concat(t.domain,"/services/").concat(e):"/services/".concat(e)},Z=function(e){return e.domain?"/domains/".concat(e.domain,"/events/").concat(e.name,"/logs"):"/events/".concat(e.name,"/logs")};var _=function(e){var n=e.event,t=e.loadedVersion,a=e.isOldVersion,i=e.urlPath,o=n.name,s=n.owners,c=n.producerNames,l=n.consumerNames,d=n.historicVersions,m=n.externalLinks,f=n.schema,x=n.domain,h=(0,w.default)().publicRuntimeConfig,p=(void 0===h?{}:h).basePath,g=void 0===p?"":p;return(0,r.jsxs)("aside",{className:"hidden xl:block xl:pl-8 divide-y divide-gray-200",children:[(0,r.jsx)("h2",{className:"sr-only",children:"Details"}),c.length>0&&(0,r.jsx)(k.Z,{title:"Producers (".concat(c.length,")"),titleIcon:{icon:u.FMB,className:"text-green-400"},items:c.map((function(e){return{label:e,href:C(e,n),bgColor:"green"}}))}),l.length>0&&(0,r.jsx)(k.Z,{title:"Consumers (".concat(l.length,")"),titleIcon:{icon:u.FMB,className:"text-indigo-400"},items:l.map((function(e){return{label:e,href:C(e,n),bgColor:"indigo"}}))}),x&&(0,r.jsx)("div",{className:"py-6 space-y-8",children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-sm font-medium text-gray-500",children:[(0,r.jsx)(u.wZP,{className:"h-5 w-5 text-yellow-400 inline-block mr-2","aria-hidden":"true"}),"Domain"]}),(0,r.jsx)("ul",{className:"mt-2 leading-8",children:(0,r.jsx)("li",{className:"inline",children:(0,r.jsx)(y.default,{href:"/domains/".concat(x),children:(0,r.jsxs)("a",{href:"#",className:"relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5",children:[(0,r.jsx)("div",{className:"absolute flex-shrink-0 flex items-center justify-center",children:(0,r.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-yellow-500 animate animate-pulse","aria-hidden":"true"})}),(0,r.jsx)("div",{className:"ml-3.5 text-sm font-medium text-gray-900",children:x})]})})})})]})}),d.length>0&&(0,r.jsx)("div",{className:" py-6",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-sm font-medium text-gray-500",children:"Event Versions"}),(0,r.jsxs)("ul",{className:"mt-2 leading-8 text-left text-blue-500",children:[(0,r.jsx)("li",{className:"text-sm inline ",children:(0,r.jsx)(y.default,{href:i,children:(0,r.jsx)("a",{children:(0,r.jsx)("span",{className:"inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative ".concat("latest"===t?"bg-blue-400 text-white shadow-md font-bold underline":"bg-blue-100 text-blue-800"),children:"Latest"})})})}),d.map((function(e){var n=t===e?"bg-blue-400 text-white shadow-md font-bold underline":"bg-blue-100 text-blue-800";return(0,r.jsx)("li",{className:"text-sm inline",children:(0,r.jsx)(y.default,{href:"".concat(i,"/v/").concat(e),children:(0,r.jsx)("a",{children:(0,r.jsxs)("span",{className:"inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative ".concat(n),children:["v",e]})})})},e)}))]})]})}),s.length>0&&(0,r.jsx)(O.Z,{owners:s}),(0,r.jsxs)("div",{className:" py-6 space-y-1",children:[f&&(0,r.jsxs)("a",{href:f?a?"".concat(g,"/schemas/").concat(o,"/").concat(t,"/schema.").concat(f.extension):"".concat(g,"/schemas/").concat(o,"/schema.").concat(f.extension):null,download:"".concat(o,"(").concat(n.version,").").concat(f.extension),className:"hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-200 bg-gray-800 hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900",children:[(0,r.jsx)(u._8t,{className:"-ml-1 mr-2 h-5 w-5 text-gray-200","aria-hidden":"true"}),(0,r.jsx)("span",{children:"Download Schema"})]}),d.length>0&&(0,r.jsx)(y.default,{href:Z(n),children:(0,r.jsx)("a",{className:"hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-800 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-200",children:(0,r.jsx)("span",{children:"View Changes"})})}),(0,r.jsx)(y.default,{href:"/visualiser?type=event&name".concat(o),children:(0,r.jsx)("a",{className:"hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-800 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-200",children:(0,r.jsx)("span",{children:"View in Visualiser"})})}),m.length>0&&(0,r.jsx)(N.Z,{externalLinks:m})]})]})},P=t(4488),V=t(52428),D=t(57840),L=t(69931),A=t(81669),R=t.n(A);(0,L.fH)();var I=function(e){var n=e.schema,t=e.maxHeight,a=e.renderRootTreeLines,i=void 0!==a&&a,o=e.hideExamples,c=void 0!==o&&o,l=e.defaultExpandedDepth,d=void 0===l?1:l,u=(0,s.useMemo)((function(){return JSON.parse(n)}),[n]);return(0,r.jsx)(D.K,{schema:u,emptyText:"No schema defined",maxHeight:t,defaultExpandedDepth:d,renderRootTreeLines:i,hideExamples:c,className:R().schemaViewer})},M=t(55008),T=t(78484);function F(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){F(e,n,t[n])}))}return e}function G(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var U=!0,z=function(e){var n=e.event,t=e.schema,a=e.examples;return{code:function(e){var n=e.className,t=G(e,["className"]),a=/language-(\w+)/.exec(n||"");return a?(0,r.jsx)(h,H({language:a[1]},t)):(0,r.jsx)("code",H({className:n},t))},Schema:function(e){var a=e.title;return t?(0,r.jsxs)("section",{className:"mt-8 xl:mt-10",children:[a&&(0,r.jsx)("h2",{id:"activity-title",className:"text-lg font-medium text-gray-900 underline",children:a}),(0,r.jsx)(h,{language:t.language,showLineNumbers:!1,name:"".concat(n.name," Schema (").concat(t.language,")"),children:t.snippet})]}):null},SchemaViewer:function(e){var n=e.title,a=e.renderRootTreeLines,i=void 0!==a&&a,o=e.defaultExpandedDepth,s=void 0===o?1:o,c=e.maxHeight;return t?(0,r.jsxs)("section",{className:"mt-8 xl:mt-10",children:[n&&(0,r.jsx)("h2",{className:"text-lg font-medium text-gray-900 underline",children:n}),(0,r.jsx)(I,{schema:t.snippet,maxHeight:parseInt(c,10),renderRootTreeLines:i,defaultExpandedDepth:s})]}):null},Admonition:o.Z,EventExamples:function(e){return a.length>0?(0,r.jsx)(g,H({},e,{examples:a,showLineNumbers:!0})):(console.log("You are using the <EventExamples /> component without any examples, please read https://eventcatalog.dev/docs/events/adding-examples for more information"),null)},Mermaid:function(e){var t=e.title,a=e.charts;return(0,r.jsxs)("div",{className:"mx-auto w-full py-10",children:[t&&(0,r.jsx)("h2",{className:"text-lg font-medium text-gray-900 underline",children:t}),(0,r.jsx)(j.Z,{source:"event",data:n,rootNodeColor:(0,v.Z)(n.name),charts:a})]})},NodeGraph:function(e){var t=e.title,a=e.maxHeight,i=e.maxZoom,o=e.fitView,s=e.zoomOnScroll,c=e.isAnimated,l=e.isDraggable;return(0,r.jsxs)("div",{className:"mx-auto w-full",children:[t&&(0,r.jsx)("h2",{className:"text-lg font-medium text-gray-900 underline",children:t}),(0,r.jsx)(T.Z,{source:"event",data:n,rootNodeColor:(0,v.Z)(n.name),maxHeight:a,maxZoom:i,fitView:o,zoomOnScroll:s,isAnimated:c,isDraggable:l})]})}}};function B(e){var n=e.event,t=e.markdown,o=e.loadedVersion,s=e.notFound,c=e.breadCrumbs,l=e.eventPath,d=(0,M.ZR)().title,u=(0,M.wG)(),m=u.getEditUrl,f=u.hasEditUrl,x=n.name,h=n.summary,p=n.draft,g=n.schema,v=n.examples,j=n.version;if(s)return(0,r.jsx)(P.Z,{type:"event",name:n.name,editUrl:f?m("/events/".concat(x,"/index.md")):""});var y=t.lastModifiedDate,w=z({event:n,schema:g,examples:v});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{children:(0,r.jsxs)("title",{children:[d," - ",x," v",j]})}),(0,r.jsx)(b.Z,{title:x,editUrl:f?m("".concat(l,"/index.md")):"",subtitle:h,draft:p,lastModifiedDate:y,tags:[{label:"v".concat(j)}],breadCrumbs:(0,r.jsx)(V.Z,{pages:c}),isOldVersion:"latest"!==o,latestVersionUrl:l,version:o,sidebar:(0,r.jsx)(_,{event:n,urlPath:l,loadedVersion:o,isOldVersion:"latest"!==o}),children:(0,r.jsx)(i.R,H({},t.source,{components:w}))})]})}},81669:function(e){e.exports={schemaViewer:"SchemaViewer_schemaViewer__un45l"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{70314:function(e,t,r){e.exports=r(96112)},93542:function(e,t,r){"use strict";var n,o;e.exports=(null===(n=r.g.process)||void 0===n?void 0:n.env)&&"object"===typeof(null===(o=r.g.process)||void 0===o?void 0:o.env)?r.g.process:r(42351)},33394:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(32636)}])},90162:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.default=void 0;var a,i=(a=r(2784))&&a.__esModule?a:{default:a},l=r(29918),c=r(93642),s=r(22030);var u={};function f(e,t,r,n){if(e&&l.isLocalURL(t)){e.prefetch(t,r,n).catch((function(e){0}));var o=n&&"undefined"!==typeof n.locale?n.locale:e&&e.locale;u[t+"%"+r+(o?"%"+o:"")]=!0}}var d=function(e){var t,r=!1!==e.prefetch,n=c.useRouter(),a=i.default.useMemo((function(){var t=o(l.resolveHref(n,e.href,!0),2),r=t[0],a=t[1];return{href:r,as:e.as?l.resolveHref(n,e.as):a||r}}),[n,e.href,e.as]),d=a.href,h=a.as,g=e.children,v=e.replace,p=e.shallow,m=e.scroll,y=e.locale;"string"===typeof g&&(g=i.default.createElement("a",null,g));var x=(t=i.default.Children.only(g))&&"object"===typeof t&&t.ref,b=o(s.useIntersection({rootMargin:"200px"}),2),w=b[0],j=b[1],C=i.default.useCallback((function(e){w(e),x&&("function"===typeof x?x(e):"object"===typeof x&&(x.current=e))}),[x,w]);i.default.useEffect((function(){var e=j&&r&&l.isLocalURL(d),t="undefined"!==typeof y?y:n&&n.locale,o=u[d+"%"+h+(t?"%"+t:"")];e&&!o&&f(n,d,h,{locale:t})}),[h,d,j,y,r,n]);var A={ref:C,onClick:function(e){t.props&&"function"===typeof t.props.onClick&&t.props.onClick(e),e.defaultPrevented||function(e,t,r,n,o,a,i,c){("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&l.isLocalURL(r))&&(e.preventDefault(),t[o?"replace":"push"](r,n,{shallow:a,locale:c,scroll:i}))}(e,n,d,h,v,p,m,y)},onMouseEnter:function(e){t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),l.isLocalURL(d)&&f(n,d,h,{priority:!0})}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var E="undefined"!==typeof y?y:n&&n.locale,k=n&&n.isLocaleDomain&&l.getDomainLocale(h,E,n&&n.locales,n&&n.domainLocales);A.href=k||l.addBasePath(l.addLocale(h,E,n&&n.defaultLocale))}return i.default.cloneElement(t,A)};t.default=d},22030:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootRef,r=e.rootMargin,n=e.disabled||!l,u=a.useRef(),f=o(a.useState(!1),2),d=f[0],h=f[1],g=o(a.useState(t?t.current:null),2),v=g[0],p=g[1],m=a.useCallback((function(e){u.current&&(u.current(),u.current=void 0),n||d||e&&e.tagName&&(u.current=function(e,t,r){var n=function(e){var t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find((function(e){return e.root===r.root&&e.margin===r.margin}));n?t=c.get(n):(t=c.get(r),s.push(r));if(t)return t;var o=new Map,a=new IntersectionObserver((function(e){e.forEach((function(e){var t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)}))}),e);return c.set(r,t={id:r,observer:a,elements:o}),t}(r),o=n.id,a=n.observer,i=n.elements;return i.set(e,t),a.observe(e),function(){if(i.delete(e),a.unobserve(e),0===i.size){a.disconnect(),c.delete(o);var t=s.findIndex((function(e){return e.root===o.root&&e.margin===o.margin}));t>-1&&s.splice(t,1)}}}(e,(function(e){return e&&h(e)}),{root:v,rootMargin:r}))}),[n,v,r,d]);return a.useEffect((function(){if(!l&&!d){var e=i.requestIdleCallback((function(){return h(!0)}));return function(){return i.cancelIdleCallback(e)}}}),[d]),a.useEffect((function(){t&&p(t.current)}),[t]),[m,d]};var a=r(2784),i=r(49071),l="undefined"!==typeof IntersectionObserver;var c=new Map,s=[]},18663:function(e){"use strict";e.exports={title:"EventCatalog",tagline:"Discover, Explore and Document your Event Driven Architectures",organizationName:"Your Company",editUrl:"https://github.com/boyney123/eventcatalog-demo/edit/master",trailingSlash:!0,logo:{alt:"EventCatalog Logo",src:"logo.svg"},footerLinks:[{label:"Events",href:"/events"},{label:"Services",href:"/services"},{label:"Visualiser",href:"/visualiser"},{label:"3D Node Graph",href:"/overview"},{label:"GitHub",href:"https://github.com/boyney123/eventcatalog-demo/edit/master"}],generators:[["@eventcatalog/plugin-doc-generator-asyncapi",{file:"./asyncapi.yml"}]],users:[{id:"dboyne",name:"David Boyne",avatarUrl:"https://pbs.twimg.com/profile_images/1262283153563140096/DYRDqKg6_400x400.png",role:"Developer",summary:"Currently building tools for Event Architectures."},{id:"mSmith",name:"Matthew Smith",avatarUrl:"https://randomuser.me/api/portraits/lego/3.jpg",role:"Developer",summary:"About Fugiat ipsum ipsum deserunt culpa aute sint do nostrud anim incididunt cillum culpa consequat."}]}},55008:function(e,t,r){"use strict";r.d(t,{K3:function(){return u},ZR:function(){return f},aF:function(){return d},wG:function(){return h}});var n=r(52322),o=r(2784),a=r(15153),i=r.n(a),l=r(18663),c=r.n(l),s=o.createContext(c());function u(e){var t=e.children;return(0,n.jsx)(s.Provider,{value:c(),children:t})}var f=function(){return(0,o.useContext)(s)},d=function(){var e=f();return{getUserById:function(t){return(e.users||[]).find((function(e){return e.id===t}))}}},h=function(){var e=f();return{getEditUrl:function(t){var r=new URL(e.editUrl);return r.pathname=i().join(r.pathname,t),r.toString()},hasEditUrl:!!e.editUrl}}},32636:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var n=r(52322),o=(r(7915),r(97729)),a=r(70314),i=r(2784),l=r(5632),c=r(45847),s=r(39097),u=r(55008),f=[{name:"Events",href:"/events"},{name:"Services",href:"/services"},{name:"Domains",href:"/domains"},{name:"Visualiser",href:"/visualiser"},{name:"3D Node Graph",href:"/overview"}];function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}function h(){var e=(0,u.ZR)(),t=e.title,r=e.homepageLink,o=e.logo,i=(0,l.useRouter)(),c=(0,a.default)().publicRuntimeConfig,h=(void 0===c?{}:c).basePath,g=void 0===h?"":h,v=o||{alt:"EventCatalog Logo",src:"logo.svg"};return(0,n.jsx)("div",{className:"bg-gray-800",children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto ",children:(0,n.jsxs)("div",{className:"relative flex items-center justify-between h-16",children:[(0,n.jsx)("div",{className:"flex-1 flex items-center justify-center sm:items-stretch sm:justify-start",children:(0,n.jsxs)("div",{className:"flex-shrink-0 flex items-center text-white font-bold",children:[!r&&(0,n.jsx)(s.default,{href:"/",children:(0,n.jsxs)("a",{className:"flex items-center",children:[(0,n.jsx)("img",{alt:"logo",className:"text-white w-8 inline-block mr-3",src:"".concat(g,"/").concat(v.src)}),(0,n.jsx)("span",{className:"text-xl",children:t})]})}),r&&(0,n.jsxs)("a",{href:r,className:"flex items-center",children:[(0,n.jsx)("img",{alt:"logo",className:"text-white w-8 inline-block mr-3",src:"".concat(g,"/").concat(v.src)}),(0,n.jsx)("span",{className:"text-xl",children:t})]})]})}),(0,n.jsx)("div",{className:"hidden sm:block sm:ml-6",children:(0,n.jsx)("div",{className:"flex space-x-4",children:f.map((function(e){var t=i.pathname===e.href;return(0,n.jsx)(s.default,{href:e.href,children:(0,n.jsx)("a",{className:d(t?"bg-gray-900 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white","px-3 py-2 rounded-md text-sm font-medium"),"aria-current":t?"page":void 0,children:e.name})},e.name)}))})})]})})})}function g(){var e=(0,u.ZR)(),t=e.organizationName,r=e.footerLinks,o=void 0===r?[]:r,a=(new Date).getFullYear();return(0,n.jsx)("footer",{className:"bg-gray-800",children:(0,n.jsxs)("div",{className:"max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8",children:[o&&(0,n.jsx)("nav",{className:"-mx-5 -my-2 flex flex-wrap justify-center","aria-label":"Footer",children:o.map((function(e){return(0,n.jsx)("div",{className:"px-5 py-2",children:(0,n.jsx)("a",{href:e.href,className:"text-base text-gray-500 hover:text-gray-400",children:e.label})},e.label)}))}),(0,n.jsxs)("p",{className:"mt-8 text-center text-base text-gray-400",children:["Copyright \xa9 ",a," ",t,". Built with"," ",(0,n.jsx)("a",{className:"underline",href:"https://eventcatalog.dev",target:"_blank",rel:"noreferrer",children:"EventCatalog."})]})]})})}var v=r(18663),p=(r.n(v)().analytics||{}).googleAnalyticsTrackingId,m=function(e){(null===window||void 0===window?void 0:window.gtag)&&p&&window.gtag("config",p,{page_path:e})};function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){y(e,t,r[t])}))}return e}var b=function(e){var t=e.Component,r=e.pageProps,s=(0,u.ZR)(),f=s.title,d=void 0===f?"EventCatalog | Discover, Explore and Document your Event Driven Architectures.":f,v=s.tagline,p=void 0===v?"An open source tool powered by markdown to document your Event Driven Architecture.":v,y=s.homepageLink,b=void 0===y?"https://eventcatalog.dev/":y,w=s.analytics,j=s.openGraph,C=void 0===j?{}:j,A=(0,a.default)().publicRuntimeConfig,E=(void 0===A?{}:A).basePath,k=void 0===E?"":E,N=(w||{}).googleAnalyticsTrackingId,T=C.ogTitle,L=void 0===T?d:T,_=C.ogDescription,D=void 0===_?p:_,I=C.ogImage,O=void 0===I?"https://eventcatalog.dev/img/opengraph.png":I,S=C.ogUrl,R=void 0===S?b:S,U=(0,l.useRouter)();return(0,i.useEffect)((function(){var e=function(e){N&&m(e)};return U.events.on("routeChangeComplete",e),function(){U.events.off("routeChangeComplete",e)}}),[U.events,N]),(0,n.jsxs)(u.K3,{children:[(0,n.jsxs)(o.default,{children:[(0,n.jsx)("title",{children:d}),(0,n.jsx)("meta",{name:"description",content:p}),(0,n.jsx)("link",{rel:"icon",href:"".concat(k,"/favicon.ico")}),R&&""!==R&&(0,n.jsx)("meta",{property:"og:url",content:R}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),L&&(0,n.jsx)("meta",{property:"og:title",content:L}),D&&(0,n.jsx)("meta",{property:"og:description",content:D}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{property:"og:image",content:O}),(0,n.jsx)("meta",{property:"og:image:alt",content:"".concat(L," | ").concat(D)}),(0,n.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,n.jsx)("meta",{property:"og:image:height",content:"600"})]}),(0,n.jsx)("meta",{property:"og:locale",content:"en-GB"}),(0,n.jsx)("meta",{name:"author",content:"David Boyne"})]}),N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.default,{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat(N)}),(0,n.jsx)(c.default,{strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(N,"', {\n page_path: window.location.pathname,\n });")}})]}),(0,n.jsx)(h,{}),(0,n.jsx)(t,x({},r)),(0,n.jsx)(g,{})]})}},7915:function(){},15153:function(e,t,r){var n=r(93542);!function(){"use strict";var t={977:function(e){function t(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,a=-1,i=0,l=0;l<=e.length;++l){if(l<e.length)r=e.charCodeAt(l);else{if(47===r)break;r=47}if(47===r){if(a===l-1||1===i);else if(a!==l-1&&2===i){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",o=0):o=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=l,i=0;continue}}else if(2===n.length||1===n.length){n="",o=0,a=l,i=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),o=l-a-1;a=l,i=0}else 46===r&&-1!==i?++i:i=-1}return n}var o={resolve:function(){for(var e,o="",a=!1,i=arguments.length-1;i>=-1&&!a;i--){var l;i>=0?l=arguments[i]:(void 0===e&&(e=n.cwd()),l=e),t(l),0!==l.length&&(o=l+"/"+o,a=47===l.charCodeAt(0))}return o=r(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];t(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":o.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=o.resolve(e))===(r=o.resolve(r)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var a=e.length,i=a-n,l=1;l<r.length&&47===r.charCodeAt(l);++l);for(var c=r.length-l,s=i<c?i:c,u=-1,f=0;f<=s;++f){if(f===s){if(c>s){if(47===r.charCodeAt(l+f))return r.slice(l+f+1);if(0===f)return r.slice(l+f)}else i>s&&(47===e.charCodeAt(n+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(n+f);if(d!==r.charCodeAt(l+f))break;47===d&&(u=f)}var h="";for(f=n+u+1;f<=a;++f)f!==a&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(l+u):(l+=u,47===r.charCodeAt(l)&&++l,r.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,a=!0,i=e.length-1;i>=1;--i)if(47===(r=e.charCodeAt(i))){if(!a){o=i;break}}else a=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!==typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,o=0,a=-1,i=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var l=r.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!i){o=n+1;break}}else-1===c&&(i=!1,c=n+1),l>=0&&(s===r.charCodeAt(l)?-1===--l&&(a=n):(l=-1,a=c))}return o===a?a=c:-1===a&&(a=e.length),e.slice(o,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){o=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":e.slice(o,a)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,a=!0,i=0,l=e.length-1;l>=0;--l){var c=e.charCodeAt(l);if(47!==c)-1===o&&(a=!1,o=l+1),46===c?-1===r?r=l:1!==i&&(i=1):-1!==r&&(i=-1);else if(!a){n=l+1;break}}return-1===r||-1===o||0===i||1===i&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0),a=47===o;a?(r.root="/",n=1):n=0;for(var i=-1,l=0,c=-1,s=!0,u=e.length-1,f=0;u>=n;--u)if(47!==(o=e.charCodeAt(u)))-1===c&&(s=!1,c=u+1),46===o?-1===i?i=u:1!==f&&(f=1):-1!==i&&(f=-1);else if(!s){l=u+1;break}return-1===i||-1===c||0===f||1===f&&i===c-1&&i===l+1?-1!==c&&(r.base=r.name=0===l&&a?e.slice(1,c):e.slice(l,c)):(0===l&&a?(r.name=e.slice(1,i),r.base=e.slice(1,c)):(r.name=e.slice(l,i),r.base=e.slice(l,c)),r.ext=e.slice(i,c)),l>0?r.dir=e.slice(0,l-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,o),i=!1}finally{i&&delete r[e]}return a.exports}o.ab="//";var a=o(977);e.exports=a}()},42351:function(e){!function(){var t={162:function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],s=!1,u=-1;function f(){s&&l&&(s=!1,l.length?c=l.concat(c):u=-1,c.length&&d())}function d(){if(!s){var e=i(f);s=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||s||i(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,n),i=!1}finally{i&&delete r[e]}return a.exports}n.ab="//";var o=n(162);e.exports=o}()},97729:function(e,t,r){e.exports=r(75913)},39097:function(e,t,r){e.exports=r(90162)},5632:function(e,t,r){e.exports=r(93642)},45847:function(e,t,r){e.exports=r(20747)}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],(function(){return t(33394),t(93642)}));var r=e.O();_N_E=r}]);
|