@eventcatalog/visualiser 5.0.0-beta.2 → 5.0.0-beta.3

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/dist/index.mjs CHANGED
@@ -4242,7 +4242,8 @@ var DomainCard_default = memo17(function DomainCardNode({ data }) {
4242
4242
  systemsCount = 0,
4243
4243
  servicesCount = 0,
4244
4244
  entitiesCount = 0,
4245
- subdomain = false
4245
+ subdomain = false,
4246
+ navigable = true
4246
4247
  } = data;
4247
4248
  const { id, version, name, summary } = domain;
4248
4249
  const stats = [
@@ -4254,14 +4255,16 @@ var DomainCard_default = memo17(function DomainCardNode({ data }) {
4254
4255
  return /* @__PURE__ */ jsxs17(
4255
4256
  "div",
4256
4257
  {
4257
- role: "button",
4258
- tabIndex: 0,
4259
- onClick: goToDiagram,
4260
- onKeyDown: (e) => {
4261
- if (e.key === "Enter" || e.key === " ") goToDiagram();
4262
- },
4263
- title: `Open the ${name} diagram`,
4264
- className: "relative min-w-48 max-w-60 rounded-xl border-2 border-yellow-400 overflow-visible cursor-pointer",
4258
+ ...navigable ? {
4259
+ role: "button",
4260
+ tabIndex: 0,
4261
+ onClick: goToDiagram,
4262
+ onKeyDown: (e) => {
4263
+ if (e.key === "Enter" || e.key === " ") goToDiagram();
4264
+ },
4265
+ title: `Open the ${name} diagram`
4266
+ } : {},
4267
+ className: `relative min-w-48 max-w-60 rounded-xl border-2 border-yellow-400 overflow-visible${navigable ? " cursor-pointer" : ""}`,
4265
4268
  style: CARD_STYLE,
4266
4269
  children: [
4267
4270
  /* @__PURE__ */ jsx19(
@@ -6029,12 +6032,14 @@ var System_default = memo27(function SystemNode({ data }) {
6029
6032
  entitiesCount = 0,
6030
6033
  containersCount = 0,
6031
6034
  messagesCount = 0,
6032
- isFocused = false
6035
+ isFocused = false,
6036
+ navigable = true
6033
6037
  } = data;
6034
6038
  const { id, version, name, summary, scope } = system;
6035
6039
  const isExternal = scope === "external";
6036
6040
  const isDark = useDarkMode();
6037
6041
  const isFlowStep = Boolean(data.step);
6042
+ const opensMap = navigable && !isFlowStep;
6038
6043
  const stats = [
6039
6044
  { icon: ServerIcon3, label: "Services", count: servicesCount },
6040
6045
  { icon: MessageSquareIcon, label: "Messages", count: messagesCount },
@@ -6048,7 +6053,7 @@ var System_default = memo27(function SystemNode({ data }) {
6048
6053
  return /* @__PURE__ */ jsxs28(
6049
6054
  "div",
6050
6055
  {
6051
- ...isFlowStep ? {} : {
6056
+ ...!opensMap ? {} : {
6052
6057
  role: "button",
6053
6058
  tabIndex: 0,
6054
6059
  onClick: goToMap,
@@ -6059,7 +6064,7 @@ var System_default = memo27(function SystemNode({ data }) {
6059
6064
  },
6060
6065
  className: classNames18(
6061
6066
  "relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible",
6062
- !isFlowStep && "cursor-pointer",
6067
+ opensMap && "cursor-pointer",
6063
6068
  isExternal ? "border-dashed border-violet-400" : "border-violet-500"
6064
6069
  ),
6065
6070
  style: {
@@ -15659,6 +15664,7 @@ export {
15659
15664
  DATA,
15660
15665
  DataNode_default as Data,
15661
15666
  DataProduct_default as DataProductNode,
15667
+ DomainCard_default as DomainCardNode,
15662
15668
  Domain_default as DomainNode,
15663
15669
  ENTITY_TARGET_HANDLE_ID,
15664
15670
  EVENT,