@eventcatalog/core 4.7.2 → 4.7.4

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.
Files changed (41) hide show
  1. package/dist/analytics/analytics.cjs +1 -1
  2. package/dist/analytics/analytics.js +2 -2
  3. package/dist/analytics/log-build.cjs +1 -1
  4. package/dist/analytics/log-build.js +3 -3
  5. package/dist/catalog-to-astro-content-directory.cjs +65 -13
  6. package/dist/catalog-to-astro-content-directory.js +2 -1
  7. package/dist/{chunk-FTNXTYFU.js → chunk-7QTCSRAC.js} +1 -1
  8. package/dist/chunk-A2RZR3U4.js +29 -0
  9. package/dist/{chunk-CWVGSEON.js → chunk-FDXJIZ74.js} +1 -1
  10. package/dist/{chunk-ZR6AH5Z2.js → chunk-RIUHZZRA.js} +4 -4
  11. package/dist/chunk-SDZQJTJW.js +90 -0
  12. package/dist/{chunk-W3SAPOZU.js → chunk-T4RVWPIQ.js} +6 -0
  13. package/dist/chunk-T5IUG523.js +54 -0
  14. package/dist/{chunk-YTT25224.js → chunk-TLWM7WRZ.js} +1 -1
  15. package/dist/{chunk-5QOWJT54.js → chunk-ZIABX6SP.js} +3 -3
  16. package/dist/{chunk-2ERJ2Z5B.js → chunk-ZXVQXBTT.js} +1 -1
  17. package/dist/constants.cjs +1 -1
  18. package/dist/constants.js +1 -1
  19. package/dist/custom-components.cjs +89 -0
  20. package/dist/custom-components.d.cts +4 -0
  21. package/dist/custom-components.d.ts +4 -0
  22. package/dist/custom-components.js +8 -0
  23. package/dist/eventcatalog.cjs +401 -241
  24. package/dist/eventcatalog.config.d.cts +3 -3
  25. package/dist/eventcatalog.config.d.ts +3 -3
  26. package/dist/eventcatalog.js +14 -11
  27. package/dist/federation/federate.cjs +269 -163
  28. package/dist/federation/federate.js +3 -1
  29. package/dist/federation/filesystem-source-provider.cjs +124 -0
  30. package/dist/federation/filesystem-source-provider.d.cts +7 -0
  31. package/dist/federation/filesystem-source-provider.d.ts +7 -0
  32. package/dist/federation/filesystem-source-provider.js +6 -0
  33. package/dist/federation/source-provider.cjs +265 -0
  34. package/dist/federation/source-provider.d.cts +11 -0
  35. package/dist/federation/source-provider.d.ts +11 -0
  36. package/dist/federation/source-provider.js +8 -0
  37. package/dist/generate.cjs +1 -1
  38. package/dist/generate.js +3 -3
  39. package/dist/utils/cli-logger.cjs +1 -1
  40. package/dist/utils/cli-logger.js +2 -2
  41. package/package.json +3 -3
@@ -79,11 +79,11 @@ type GeneratorConfig = string | Record<string, unknown> | [string, Record<string
79
79
  type FederationSourceConfig = {
80
80
  /** Stable source id used by the lockfile and federation graph. */
81
81
  id: string;
82
- /** Source locator, for example github:acme/payments. */
82
+ /** Source locator, for example github:acme/payments or file:../payments. */
83
83
  source: string;
84
- /** Directory containing the source catalog. @default '.' */
84
+ /** Directory containing the source catalog, relative to the GitHub repository or filesystem source. @default '.' */
85
85
  path?: string;
86
- /** Branch or tag to federate. @default 'main' */
86
+ /** Branch or tag to federate from a GitHub source. Not supported for filesystem sources. @default 'main' */
87
87
  ref?: string;
88
88
  /** Materialize source files or retain graph references only. @default 'hydrate' */
89
89
  mode?: 'hydrate' | 'reference';
@@ -79,11 +79,11 @@ type GeneratorConfig = string | Record<string, unknown> | [string, Record<string
79
79
  type FederationSourceConfig = {
80
80
  /** Stable source id used by the lockfile and federation graph. */
81
81
  id: string;
82
- /** Source locator, for example github:acme/payments. */
82
+ /** Source locator, for example github:acme/payments or file:../payments. */
83
83
  source: string;
84
- /** Directory containing the source catalog. @default '.' */
84
+ /** Directory containing the source catalog, relative to the GitHub repository or filesystem source. @default '.' */
85
85
  path?: string;
86
- /** Branch or tag to federate. @default 'main' */
86
+ /** Branch or tag to federate from a GitHub source. Not supported for filesystem sources. @default 'main' */
87
87
  ref?: string;
88
88
  /** Materialize source files or retain graph references only. @default 'hydrate' */
89
89
  mode?: 'hydrate' | 'reference';
@@ -1,18 +1,21 @@
1
+ import {
2
+ runMigrations
3
+ } from "./chunk-XUAF2H54.js";
4
+ import "./chunk-CA4U2JP7.js";
1
5
  import {
2
6
  log_build_default
3
- } from "./chunk-5QOWJT54.js";
7
+ } from "./chunk-ZIABX6SP.js";
8
+ import "./chunk-FDXJIZ74.js";
4
9
  import "./chunk-K2XIENVT.js";
5
10
  import {
6
11
  FederationConflictError,
7
12
  federateCatalog
8
- } from "./chunk-ZR6AH5Z2.js";
13
+ } from "./chunk-RIUHZZRA.js";
14
+ import "./chunk-A2RZR3U4.js";
9
15
  import "./chunk-R7Z5ALYI.js";
16
+ import "./chunk-SDZQJTJW.js";
10
17
  import "./chunk-352FGP6W.js";
11
18
  import "./chunk-5EPNFDT5.js";
12
- import {
13
- runMigrations
14
- } from "./chunk-XUAF2H54.js";
15
- import "./chunk-CA4U2JP7.js";
16
19
  import {
17
20
  getProjectOutDir,
18
21
  isAuthEnabled,
@@ -21,10 +24,10 @@ import {
21
24
  } from "./chunk-B7HCX5HM.js";
22
25
  import {
23
26
  generate
24
- } from "./chunk-FTNXTYFU.js";
27
+ } from "./chunk-7QTCSRAC.js";
25
28
  import {
26
29
  logger
27
- } from "./chunk-2ERJ2Z5B.js";
30
+ } from "./chunk-ZXVQXBTT.js";
28
31
  import {
29
32
  resolve_catalog_dependencies_default
30
33
  } from "./chunk-LHR4G2UO.js";
@@ -34,22 +37,22 @@ import {
34
37
  import {
35
38
  watch
36
39
  } from "./chunk-CAJUIMDJ.js";
37
- import "./chunk-CWVGSEON.js";
38
40
  import {
39
41
  createAstroDevLineFilter,
40
42
  createAstroLineFilter
41
43
  } from "./chunk-RDYYZQYU.js";
42
44
  import {
43
45
  catalogToAstro
44
- } from "./chunk-W3SAPOZU.js";
46
+ } from "./chunk-T4RVWPIQ.js";
45
47
  import "./chunk-W5JQON7Z.js";
46
48
  import {
47
49
  VERSION
48
- } from "./chunk-YTT25224.js";
50
+ } from "./chunk-TLWM7WRZ.js";
49
51
  import {
50
52
  linkCoreNodeModules,
51
53
  resolveInstalledCoreNodeModules
52
54
  } from "./chunk-BWN544LB.js";
55
+ import "./chunk-T5IUG523.js";
53
56
  import {
54
57
  getEventCatalogConfigFile,
55
58
  verifyRequiredFieldsAreInCatalogConfigFile