@eventcatalog/core 4.11.2 → 4.12.0-beta.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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +17 -11
- package/dist/analytics/log-build.js +4 -4
- package/dist/astro-config-path.cjs +51 -0
- package/dist/astro-config-path.d.cts +6 -0
- package/dist/astro-config-path.d.ts +6 -0
- package/dist/astro-config-path.js +6 -0
- package/dist/catalog-runtime.cjs +136 -0
- package/dist/catalog-runtime.d.cts +12 -0
- package/dist/catalog-runtime.d.ts +12 -0
- package/dist/catalog-runtime.js +8 -0
- package/dist/{chunk-B7HCX5HM.js → chunk-3SJDIENM.js} +1 -1
- package/dist/{chunk-AFPH6ERZ.js → chunk-5QRWGO2E.js} +1 -1
- package/dist/{chunk-6U72KINX.js → chunk-DJCOJ77J.js} +1 -0
- package/dist/{chunk-LHR4G2UO.js → chunk-EEZXGNF6.js} +1 -1
- package/dist/{chunk-XMRPNDXB.js → chunk-ISBBAOCD.js} +1 -1
- package/dist/{chunk-Z6OKCHWL.js → chunk-IUPFEQMU.js} +2 -2
- package/dist/{chunk-6QENHZZP.js → chunk-JE6RX7SJ.js} +11 -5
- package/dist/{chunk-LAWEGSJH.js → chunk-LU4GFIHH.js} +1 -1
- package/dist/{chunk-2YJRF4ZX.js → chunk-RYPZGCRN.js} +1 -1
- package/dist/chunk-SAN4U2WU.js +96 -0
- package/dist/{chunk-EGH3ALRY.js → chunk-TVLJNFDW.js} +4 -4
- package/dist/chunk-U63GDPPY.js +14 -0
- package/dist/chunk-VIJJ7JKH.js +17 -0
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog-config-file-utils.cjs +13 -7
- package/dist/eventcatalog-config-file-utils.d.cts +86 -2
- package/dist/eventcatalog-config-file-utils.d.ts +86 -2
- package/dist/eventcatalog-config-file-utils.js +1 -1
- package/dist/eventcatalog.cjs +227 -561
- package/dist/eventcatalog.js +62 -71
- package/dist/features.cjs +10 -6
- package/dist/features.js +2 -2
- package/dist/federation/federate.cjs +110 -106
- package/dist/federation/federate.js +4 -4
- package/dist/generate.cjs +11 -7
- package/dist/generate.js +4 -4
- package/dist/resolve-catalog-dependencies.cjs +12 -8
- package/dist/resolve-catalog-dependencies.js +2 -2
- package/dist/runtime-dependencies/@ai-sdk__react.mjs +3 -0
- package/dist/runtime-dependencies/@astrojs__markdown-remark.mjs +3 -0
- package/dist/runtime-dependencies/@astrojs__mdx.mjs +3 -0
- package/dist/runtime-dependencies/@astrojs__node.mjs +3 -0
- package/dist/runtime-dependencies/@astrojs__react.mjs +3 -0
- package/dist/runtime-dependencies/@astrojs__rss.mjs +3 -0
- package/dist/runtime-dependencies/@asyncapi__avro-schema-parser.mjs +3 -0
- package/dist/runtime-dependencies/@asyncapi__parser.mjs +3 -0
- package/dist/runtime-dependencies/@asyncapi__react-component.mjs +3 -0
- package/dist/runtime-dependencies/@asyncapi__react-component__styles__default.min.css.mjs +3 -0
- package/dist/runtime-dependencies/@auth__core.mjs +3 -0
- package/dist/runtime-dependencies/@auth__core__providers__auth0.mjs +3 -0
- package/dist/runtime-dependencies/@auth__core__providers__github.mjs +3 -0
- package/dist/runtime-dependencies/@auth__core__providers__google.mjs +3 -0
- package/dist/runtime-dependencies/@auth__core__providers__microsoft-entra-id.mjs +3 -0
- package/dist/runtime-dependencies/@auth__core__providers__okta.mjs +3 -0
- package/dist/runtime-dependencies/@auth__core__types.mjs +3 -0
- package/dist/runtime-dependencies/@eventcatalog__license.mjs +3 -0
- package/dist/runtime-dependencies/@eventcatalog__linter.mjs +3 -0
- package/dist/runtime-dependencies/@eventcatalog__sdk.mjs +3 -0
- package/dist/runtime-dependencies/@eventcatalog__visualiser.mjs +3 -0
- package/dist/runtime-dependencies/@eventcatalog__visualiser__styles-core.css.mjs +3 -0
- package/dist/runtime-dependencies/@fontsource__inter.mjs +3 -0
- package/dist/runtime-dependencies/@fontsource__inter__400.css.mjs +3 -0
- package/dist/runtime-dependencies/@fontsource__inter__700.css.mjs +3 -0
- package/dist/runtime-dependencies/@headlessui__react.mjs +3 -0
- package/dist/runtime-dependencies/@heroicons__react.mjs +3 -0
- package/dist/runtime-dependencies/@heroicons__react__16__solid__EnvelopeIcon.mjs +3 -0
- package/dist/runtime-dependencies/@heroicons__react__20__solid.mjs +3 -0
- package/dist/runtime-dependencies/@heroicons__react__24__outline.mjs +3 -0
- package/dist/runtime-dependencies/@heroicons__react__24__outline__MagnifyingGlassIcon.mjs +3 -0
- package/dist/runtime-dependencies/@heroicons__react__24__outline__RectangleGroupIcon.mjs +3 -0
- package/dist/runtime-dependencies/@heroicons__react__24__outline__ServerIcon.mjs +3 -0
- package/dist/runtime-dependencies/@heroicons__react__24__solid.mjs +3 -0
- package/dist/runtime-dependencies/@iconify-json__logos.mjs +3 -0
- package/dist/runtime-dependencies/@mermaid-js__layout-elk.mjs +3 -0
- package/dist/runtime-dependencies/@mermaid-js__layout-elk__dist__mermaid-layout-elk.core.mjs.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__sdk.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__sdk__server__mcp.js.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__sdk__server__webStandardStreamableHttp.js.mjs +3 -0
- package/dist/runtime-dependencies/@nanostores__react.mjs +3 -0
- package/dist/runtime-dependencies/@parcel__watcher.mjs +3 -0
- package/dist/runtime-dependencies/@radix-ui__react-context-menu.mjs +3 -0
- package/dist/runtime-dependencies/@radix-ui__react-dialog.mjs +3 -0
- package/dist/runtime-dependencies/@radix-ui__react-dropdown-menu.mjs +3 -0
- package/dist/runtime-dependencies/@radix-ui__react-popover.mjs +3 -0
- package/dist/runtime-dependencies/@radix-ui__react-tooltip.mjs +3 -0
- package/dist/runtime-dependencies/@scalar__api-reference-react.mjs +3 -0
- package/dist/runtime-dependencies/@scalar__api-reference-react__style.css.mjs +3 -0
- package/dist/runtime-dependencies/@tailwindcss__typography.mjs +3 -0
- package/dist/runtime-dependencies/@tailwindcss__vite.mjs +3 -0
- package/dist/runtime-dependencies/@tanstack__react-table.mjs +3 -0
- package/dist/runtime-dependencies/@xyflow__react.mjs +3 -0
- package/dist/runtime-dependencies/@xyflow__react__dist__style.css.mjs +3 -0
- package/dist/runtime-dependencies/ai.mjs +3 -0
- package/dist/runtime-dependencies/astro-expressive-code.mjs +3 -0
- package/dist/runtime-dependencies/astro-expressive-code__components.mjs +3 -0
- package/dist/runtime-dependencies/astro-seo.mjs +3 -0
- package/dist/runtime-dependencies/astro.mjs +3 -0
- package/dist/runtime-dependencies/astro__assets__services__sharp.mjs +3 -0
- package/dist/runtime-dependencies/astro__config.mjs +3 -0
- package/dist/runtime-dependencies/astro__jsx-runtime.mjs +3 -0
- package/dist/runtime-dependencies/astro__loaders.mjs +3 -0
- package/dist/runtime-dependencies/astro__logger__node.mjs +3 -0
- package/dist/runtime-dependencies/astro__types.mjs +3 -0
- package/dist/runtime-dependencies/astro__zod.mjs +3 -0
- package/dist/runtime-dependencies/auth-astro.mjs +3 -0
- package/dist/runtime-dependencies/auth-astro__client.mjs +3 -0
- package/dist/runtime-dependencies/auth-astro__server.mjs +3 -0
- package/dist/runtime-dependencies/boxen.mjs +3 -0
- package/dist/runtime-dependencies/commander.mjs +3 -0
- package/dist/runtime-dependencies/cross-env.mjs +3 -0
- package/dist/runtime-dependencies/d3-drag.mjs +3 -0
- package/dist/runtime-dependencies/d3-force.mjs +3 -0
- package/dist/runtime-dependencies/d3-selection.mjs +3 -0
- package/dist/runtime-dependencies/d3-zoom.mjs +3 -0
- package/dist/runtime-dependencies/dagre.mjs +3 -0
- package/dist/runtime-dependencies/diff.mjs +3 -0
- package/dist/runtime-dependencies/diff2html.mjs +3 -0
- package/dist/runtime-dependencies/diff2html__bundles__css__diff2html.min.css.mjs +3 -0
- package/dist/runtime-dependencies/dotenv.mjs +3 -0
- package/dist/runtime-dependencies/elkjs.mjs +3 -0
- package/dist/runtime-dependencies/elkjs__lib__elk.bundled.js.mjs +3 -0
- package/dist/runtime-dependencies/glob.mjs +3 -0
- package/dist/runtime-dependencies/gray-matter.mjs +3 -0
- package/dist/runtime-dependencies/hono.mjs +3 -0
- package/dist/runtime-dependencies/html-to-image.mjs +3 -0
- package/dist/runtime-dependencies/js-yaml.mjs +3 -0
- package/dist/runtime-dependencies/jsonpath-plus.mjs +3 -0
- package/dist/runtime-dependencies/jsonwebtoken.mjs +3 -0
- package/dist/runtime-dependencies/lodash.debounce.mjs +3 -0
- package/dist/runtime-dependencies/lodash.merge.mjs +3 -0
- package/dist/runtime-dependencies/lucide-react.mjs +3 -0
- package/dist/runtime-dependencies/manifest.json +136 -0
- package/dist/runtime-dependencies/marked.mjs +3 -0
- package/dist/runtime-dependencies/mdast-util-find-and-replace.mjs +3 -0
- package/dist/runtime-dependencies/mermaid.mjs +3 -0
- package/dist/runtime-dependencies/minisearch.mjs +3 -0
- package/dist/runtime-dependencies/nanostores.mjs +3 -0
- package/dist/runtime-dependencies/pagefind.mjs +3 -0
- package/dist/runtime-dependencies/pako.mjs +3 -0
- package/dist/runtime-dependencies/parse5.mjs +3 -0
- package/dist/runtime-dependencies/picocolors.mjs +3 -0
- package/dist/runtime-dependencies/picomatch.mjs +3 -0
- package/dist/runtime-dependencies/react-dom.mjs +3 -0
- package/dist/runtime-dependencies/react-dom__client.mjs +3 -0
- package/dist/runtime-dependencies/react-dom__server.mjs +3 -0
- package/dist/runtime-dependencies/react-markdown.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__cjs__styles__prism.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__cjs__styles__prism__index.js.mjs +3 -0
- package/dist/runtime-dependencies/react.mjs +3 -0
- package/dist/runtime-dependencies/react__jsx-dev-runtime.mjs +3 -0
- package/dist/runtime-dependencies/react__jsx-runtime.mjs +3 -0
- package/dist/runtime-dependencies/recast.mjs +3 -0
- package/dist/runtime-dependencies/recast__parsers__babel.js.mjs +3 -0
- package/dist/runtime-dependencies/rehype-autolink-headings.mjs +3 -0
- package/dist/runtime-dependencies/rehype-expressive-code.mjs +3 -0
- package/dist/runtime-dependencies/rehype-expressive-code__hast.mjs +3 -0
- package/dist/runtime-dependencies/rehype-slug.mjs +3 -0
- package/dist/runtime-dependencies/remark-comment.mjs +3 -0
- package/dist/runtime-dependencies/remark-directive.mjs +3 -0
- package/dist/runtime-dependencies/remark-gfm.mjs +3 -0
- package/dist/runtime-dependencies/rimraf.mjs +3 -0
- package/dist/runtime-dependencies/semver.mjs +3 -0
- package/dist/runtime-dependencies/shelljs.mjs +3 -0
- package/dist/runtime-dependencies/sonner.mjs +3 -0
- package/dist/runtime-dependencies/sql.js.mjs +3 -0
- package/dist/runtime-dependencies/tailwindcss.mjs +3 -0
- package/dist/runtime-dependencies/typescript.mjs +3 -0
- package/dist/runtime-dependencies/unist-util-visit.mjs +3 -0
- package/dist/runtime-dependencies/update-notifier.mjs +3 -0
- package/dist/runtime-dependencies/uuid.mjs +3 -0
- package/dist/runtime-dependencies/zod.mjs +3 -0
- package/dist/runtime-dependencies/zod__v4.mjs +3 -0
- package/dist/search-indexer.cjs +1 -0
- package/dist/search-indexer.js +1 -1
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/dist/watcher.cjs +5 -204
- package/dist/watcher.js +1 -2
- package/eventcatalog/astro.config.mjs +57 -31
- package/eventcatalog/integrations/catalog-assets.mjs +204 -0
- package/eventcatalog/integrations/config-loader.mjs +85 -0
- package/eventcatalog/integrations/ecstudio-watcher.mjs +11 -9
- package/eventcatalog/integrations/eventcatalog-runtime.mjs +252 -0
- package/eventcatalog/integrations/expressive-code-config.mjs +6 -0
- package/eventcatalog/integrations/runtime-dependencies.mjs +49 -0
- package/eventcatalog/integrations/runtime-dependency-manifest.mjs +15 -0
- package/eventcatalog/integrations/runtime-paths.mjs +16 -0
- package/eventcatalog/src/content.config.ts +33 -46
- package/eventcatalog/src/enterprise/custom-pages/routes.ts +3 -2
- package/eventcatalog/src/enterprise/feature.ts +2 -1
- package/eventcatalog/src/enterprise/fields/field-indexer.ts +5 -2
- package/eventcatalog/src/enterprise/fields/pages/api/fields.ts +4 -3
- package/eventcatalog/src/enterprise/integrations/eventcatalog-features.ts +32 -32
- package/eventcatalog/src/enterprise/mcp/mcp-auth.ts +1 -1
- package/eventcatalog/src/env.d.ts +7 -1
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +15 -3
- package/eventcatalog/src/pages/architecture/[type]/[id]/[version]/index.astro +1 -1
- package/eventcatalog/src/pages/diagrams/[id]/[version]/index.astro +2 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +2 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +2 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/graphql/[filename].astro +1 -1
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +2 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/resources/index.astro +1 -1
- package/eventcatalog/src/pages/docs/[type]/[id]/language/[dictionaryId]/index.astro +1 -1
- package/eventcatalog/src/pages/docs/[type]/[id]/language/index.astro +1 -1
- package/eventcatalog/src/pages/docs/teams/[id]/index.astro +2 -2
- package/eventcatalog/src/pages/docs/users/[id]/index.astro +2 -2
- package/eventcatalog/src/pages/index.astro +2 -3
- package/eventcatalog/src/styles/tailwind.css +3 -0
- package/eventcatalog/src/utils/eventcatalog-config/source.ts +9 -0
- package/eventcatalog/src/utils/feature.ts +2 -1
- package/eventcatalog/tsconfig.json +1 -4
- package/package.json +17 -4
- package/dist/catalog-to-astro-content-directory.cjs +0 -382
- package/dist/catalog-to-astro-content-directory.d.cts +0 -3
- package/dist/catalog-to-astro-content-directory.d.ts +0 -3
- package/dist/catalog-to-astro-content-directory.js +0 -9
- package/dist/chunk-BWN544LB.js +0 -73
- package/dist/chunk-DHH5U5PF.js +0 -53
- package/dist/chunk-KLOHNCNF.js +0 -101
- package/dist/chunk-T4RVWPIQ.js +0 -85
- package/dist/chunk-T5IUG523.js +0 -54
- package/dist/chunk-W5JQON7Z.js +0 -117
- package/dist/copy-core.cjs +0 -88
- package/dist/copy-core.d.cts +0 -4
- package/dist/copy-core.d.ts +0 -4
- package/dist/copy-core.js +0 -8
- package/dist/core-node-modules.cjs +0 -108
- package/dist/core-node-modules.d.cts +0 -7
- package/dist/core-node-modules.d.ts +0 -7
- package/dist/core-node-modules.js +0 -8
- package/dist/custom-components.cjs +0 -89
- package/dist/custom-components.d.cts +0 -4
- package/dist/custom-components.d.ts +0 -4
- package/dist/custom-components.js +0 -8
- package/dist/map-catalog-to-astro.cjs +0 -151
- package/dist/map-catalog-to-astro.d.cts +0 -28
- package/dist/map-catalog-to-astro.d.ts +0 -28
- package/dist/map-catalog-to-astro.js +0 -6
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@ai-sdk/react": "@ai-sdk__react.mjs",
|
|
3
|
+
"@astrojs/markdown-remark": "@astrojs__markdown-remark.mjs",
|
|
4
|
+
"@astrojs/mdx": "@astrojs__mdx.mjs",
|
|
5
|
+
"@astrojs/node": "@astrojs__node.mjs",
|
|
6
|
+
"@astrojs/react": "@astrojs__react.mjs",
|
|
7
|
+
"@astrojs/rss": "@astrojs__rss.mjs",
|
|
8
|
+
"@asyncapi/avro-schema-parser": "@asyncapi__avro-schema-parser.mjs",
|
|
9
|
+
"@asyncapi/parser": "@asyncapi__parser.mjs",
|
|
10
|
+
"@asyncapi/react-component": "@asyncapi__react-component.mjs",
|
|
11
|
+
"@asyncapi/react-component/styles/default.min.css": "@asyncapi__react-component__styles__default.min.css.mjs",
|
|
12
|
+
"@auth/core": "@auth__core.mjs",
|
|
13
|
+
"@auth/core/providers/auth0": "@auth__core__providers__auth0.mjs",
|
|
14
|
+
"@auth/core/providers/github": "@auth__core__providers__github.mjs",
|
|
15
|
+
"@auth/core/providers/google": "@auth__core__providers__google.mjs",
|
|
16
|
+
"@auth/core/providers/microsoft-entra-id": "@auth__core__providers__microsoft-entra-id.mjs",
|
|
17
|
+
"@auth/core/providers/okta": "@auth__core__providers__okta.mjs",
|
|
18
|
+
"@auth/core/types": "@auth__core__types.mjs",
|
|
19
|
+
"@eventcatalog/license": "@eventcatalog__license.mjs",
|
|
20
|
+
"@eventcatalog/linter": "@eventcatalog__linter.mjs",
|
|
21
|
+
"@eventcatalog/sdk": "@eventcatalog__sdk.mjs",
|
|
22
|
+
"@eventcatalog/visualiser": "@eventcatalog__visualiser.mjs",
|
|
23
|
+
"@eventcatalog/visualiser/styles-core.css": "@eventcatalog__visualiser__styles-core.css.mjs",
|
|
24
|
+
"@fontsource/inter": "@fontsource__inter.mjs",
|
|
25
|
+
"@fontsource/inter/400.css": "@fontsource__inter__400.css.mjs",
|
|
26
|
+
"@fontsource/inter/700.css": "@fontsource__inter__700.css.mjs",
|
|
27
|
+
"@headlessui/react": "@headlessui__react.mjs",
|
|
28
|
+
"@heroicons/react": "@heroicons__react.mjs",
|
|
29
|
+
"@heroicons/react/16/solid/EnvelopeIcon": "@heroicons__react__16__solid__EnvelopeIcon.mjs",
|
|
30
|
+
"@heroicons/react/20/solid": "@heroicons__react__20__solid.mjs",
|
|
31
|
+
"@heroicons/react/24/outline": "@heroicons__react__24__outline.mjs",
|
|
32
|
+
"@heroicons/react/24/outline/MagnifyingGlassIcon": "@heroicons__react__24__outline__MagnifyingGlassIcon.mjs",
|
|
33
|
+
"@heroicons/react/24/outline/RectangleGroupIcon": "@heroicons__react__24__outline__RectangleGroupIcon.mjs",
|
|
34
|
+
"@heroicons/react/24/outline/ServerIcon": "@heroicons__react__24__outline__ServerIcon.mjs",
|
|
35
|
+
"@heroicons/react/24/solid": "@heroicons__react__24__solid.mjs",
|
|
36
|
+
"@iconify-json/logos": "@iconify-json__logos.mjs",
|
|
37
|
+
"@mermaid-js/layout-elk": "@mermaid-js__layout-elk.mjs",
|
|
38
|
+
"@mermaid-js/layout-elk/dist/mermaid-layout-elk.core.mjs": "@mermaid-js__layout-elk__dist__mermaid-layout-elk.core.mjs.mjs",
|
|
39
|
+
"@modelcontextprotocol/sdk": "@modelcontextprotocol__sdk.mjs",
|
|
40
|
+
"@modelcontextprotocol/sdk/server/mcp.js": "@modelcontextprotocol__sdk__server__mcp.js.mjs",
|
|
41
|
+
"@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js": "@modelcontextprotocol__sdk__server__webStandardStreamableHttp.js.mjs",
|
|
42
|
+
"@nanostores/react": "@nanostores__react.mjs",
|
|
43
|
+
"@parcel/watcher": "@parcel__watcher.mjs",
|
|
44
|
+
"@radix-ui/react-context-menu": "@radix-ui__react-context-menu.mjs",
|
|
45
|
+
"@radix-ui/react-dialog": "@radix-ui__react-dialog.mjs",
|
|
46
|
+
"@radix-ui/react-dropdown-menu": "@radix-ui__react-dropdown-menu.mjs",
|
|
47
|
+
"@radix-ui/react-popover": "@radix-ui__react-popover.mjs",
|
|
48
|
+
"@radix-ui/react-tooltip": "@radix-ui__react-tooltip.mjs",
|
|
49
|
+
"@scalar/api-reference-react": "@scalar__api-reference-react.mjs",
|
|
50
|
+
"@scalar/api-reference-react/style.css": "@scalar__api-reference-react__style.css.mjs",
|
|
51
|
+
"@tailwindcss/typography": "@tailwindcss__typography.mjs",
|
|
52
|
+
"@tailwindcss/vite": "@tailwindcss__vite.mjs",
|
|
53
|
+
"@tanstack/react-table": "@tanstack__react-table.mjs",
|
|
54
|
+
"@xyflow/react": "@xyflow__react.mjs",
|
|
55
|
+
"@xyflow/react/dist/style.css": "@xyflow__react__dist__style.css.mjs",
|
|
56
|
+
"ai": "ai.mjs",
|
|
57
|
+
"astro": "astro.mjs",
|
|
58
|
+
"astro-expressive-code": "astro-expressive-code.mjs",
|
|
59
|
+
"astro-expressive-code/components": "astro-expressive-code__components.mjs",
|
|
60
|
+
"astro-seo": "astro-seo.mjs",
|
|
61
|
+
"astro/assets/services/sharp": "astro__assets__services__sharp.mjs",
|
|
62
|
+
"astro/config": "astro__config.mjs",
|
|
63
|
+
"astro/jsx-runtime": "astro__jsx-runtime.mjs",
|
|
64
|
+
"astro/loaders": "astro__loaders.mjs",
|
|
65
|
+
"astro/logger/node": "astro__logger__node.mjs",
|
|
66
|
+
"astro/types": "astro__types.mjs",
|
|
67
|
+
"astro/zod": "astro__zod.mjs",
|
|
68
|
+
"auth-astro": "auth-astro.mjs",
|
|
69
|
+
"auth-astro/client": "auth-astro__client.mjs",
|
|
70
|
+
"auth-astro/server": "auth-astro__server.mjs",
|
|
71
|
+
"boxen": "boxen.mjs",
|
|
72
|
+
"commander": "commander.mjs",
|
|
73
|
+
"cross-env": "cross-env.mjs",
|
|
74
|
+
"d3-drag": "d3-drag.mjs",
|
|
75
|
+
"d3-force": "d3-force.mjs",
|
|
76
|
+
"d3-selection": "d3-selection.mjs",
|
|
77
|
+
"d3-zoom": "d3-zoom.mjs",
|
|
78
|
+
"dagre": "dagre.mjs",
|
|
79
|
+
"diff": "diff.mjs",
|
|
80
|
+
"diff2html": "diff2html.mjs",
|
|
81
|
+
"diff2html/bundles/css/diff2html.min.css": "diff2html__bundles__css__diff2html.min.css.mjs",
|
|
82
|
+
"dotenv": "dotenv.mjs",
|
|
83
|
+
"elkjs": "elkjs.mjs",
|
|
84
|
+
"elkjs/lib/elk.bundled.js": "elkjs__lib__elk.bundled.js.mjs",
|
|
85
|
+
"glob": "glob.mjs",
|
|
86
|
+
"gray-matter": "gray-matter.mjs",
|
|
87
|
+
"hono": "hono.mjs",
|
|
88
|
+
"html-to-image": "html-to-image.mjs",
|
|
89
|
+
"js-yaml": "js-yaml.mjs",
|
|
90
|
+
"jsonpath-plus": "jsonpath-plus.mjs",
|
|
91
|
+
"jsonwebtoken": "jsonwebtoken.mjs",
|
|
92
|
+
"lodash.debounce": "lodash.debounce.mjs",
|
|
93
|
+
"lodash.merge": "lodash.merge.mjs",
|
|
94
|
+
"lucide-react": "lucide-react.mjs",
|
|
95
|
+
"marked": "marked.mjs",
|
|
96
|
+
"mdast-util-find-and-replace": "mdast-util-find-and-replace.mjs",
|
|
97
|
+
"mermaid": "mermaid.mjs",
|
|
98
|
+
"minisearch": "minisearch.mjs",
|
|
99
|
+
"nanostores": "nanostores.mjs",
|
|
100
|
+
"pagefind": "pagefind.mjs",
|
|
101
|
+
"pako": "pako.mjs",
|
|
102
|
+
"parse5": "parse5.mjs",
|
|
103
|
+
"picocolors": "picocolors.mjs",
|
|
104
|
+
"picomatch": "picomatch.mjs",
|
|
105
|
+
"react": "react.mjs",
|
|
106
|
+
"react-dom": "react-dom.mjs",
|
|
107
|
+
"react-dom/client": "react-dom__client.mjs",
|
|
108
|
+
"react-dom/server": "react-dom__server.mjs",
|
|
109
|
+
"react-markdown": "react-markdown.mjs",
|
|
110
|
+
"react-syntax-highlighter": "react-syntax-highlighter.mjs",
|
|
111
|
+
"react-syntax-highlighter/dist/cjs/styles/prism": "react-syntax-highlighter__dist__cjs__styles__prism.mjs",
|
|
112
|
+
"react-syntax-highlighter/dist/cjs/styles/prism/index.js": "react-syntax-highlighter__dist__cjs__styles__prism__index.js.mjs",
|
|
113
|
+
"react/jsx-dev-runtime": "react__jsx-dev-runtime.mjs",
|
|
114
|
+
"react/jsx-runtime": "react__jsx-runtime.mjs",
|
|
115
|
+
"recast": "recast.mjs",
|
|
116
|
+
"recast/parsers/babel.js": "recast__parsers__babel.js.mjs",
|
|
117
|
+
"rehype-autolink-headings": "rehype-autolink-headings.mjs",
|
|
118
|
+
"rehype-expressive-code": "rehype-expressive-code.mjs",
|
|
119
|
+
"rehype-expressive-code/hast": "rehype-expressive-code__hast.mjs",
|
|
120
|
+
"rehype-slug": "rehype-slug.mjs",
|
|
121
|
+
"remark-comment": "remark-comment.mjs",
|
|
122
|
+
"remark-directive": "remark-directive.mjs",
|
|
123
|
+
"remark-gfm": "remark-gfm.mjs",
|
|
124
|
+
"rimraf": "rimraf.mjs",
|
|
125
|
+
"semver": "semver.mjs",
|
|
126
|
+
"shelljs": "shelljs.mjs",
|
|
127
|
+
"sonner": "sonner.mjs",
|
|
128
|
+
"sql.js": "sql.js.mjs",
|
|
129
|
+
"tailwindcss": "tailwindcss.mjs",
|
|
130
|
+
"typescript": "typescript.mjs",
|
|
131
|
+
"unist-util-visit": "unist-util-visit.mjs",
|
|
132
|
+
"update-notifier": "update-notifier.mjs",
|
|
133
|
+
"uuid": "uuid.mjs",
|
|
134
|
+
"zod": "zod.mjs",
|
|
135
|
+
"zod/v4": "zod__v4.mjs"
|
|
136
|
+
}
|
package/dist/search-indexer.cjs
CHANGED
package/dist/search-indexer.js
CHANGED
package/dist/utils/cli-logger.js
CHANGED
package/dist/watcher.cjs
CHANGED
|
@@ -34,213 +34,14 @@ __export(watcher_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(watcher_exports);
|
|
36
36
|
var import_watcher = __toESM(require("@parcel/watcher"), 1);
|
|
37
|
-
var import_node_fs = __toESM(require("fs"), 1);
|
|
38
|
-
|
|
39
|
-
// src/map-catalog-to-astro.js
|
|
40
|
-
var import_node_path = __toESM(require("path"), 1);
|
|
41
|
-
var CUSTOM_PAGE_EXTENSIONS = [".astro", ".ts", ".js", ".mjs"];
|
|
42
|
-
var COLLECTION_KEYS = [
|
|
43
|
-
"agents",
|
|
44
|
-
"events",
|
|
45
|
-
"commands",
|
|
46
|
-
"services",
|
|
47
|
-
"domains",
|
|
48
|
-
"flows",
|
|
49
|
-
"pages",
|
|
50
|
-
"changelogs",
|
|
51
|
-
"queries",
|
|
52
|
-
"channels",
|
|
53
|
-
"ubiquitousLanguages",
|
|
54
|
-
"dependencies"
|
|
55
|
-
];
|
|
56
|
-
function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
|
|
57
|
-
const relativeFilePath = removeBasePath(filePath, projectDir);
|
|
58
|
-
if (isLikeC4Source(relativeFilePath)) {
|
|
59
|
-
return [];
|
|
60
|
-
}
|
|
61
|
-
if (!isCatalogRelated(relativeFilePath)) {
|
|
62
|
-
return [];
|
|
63
|
-
}
|
|
64
|
-
const customPageTargetPaths = getCustomPageTargetPaths(relativeFilePath, astroDir);
|
|
65
|
-
if (customPageTargetPaths) {
|
|
66
|
-
return customPageTargetPaths;
|
|
67
|
-
}
|
|
68
|
-
const baseTargetPaths = getBaseTargetPaths(relativeFilePath);
|
|
69
|
-
const relativeTargetPath = getRelativeTargetPath(relativeFilePath);
|
|
70
|
-
return baseTargetPaths.map((base) => import_node_path.default.join(astroDir, base, relativeTargetPath));
|
|
71
|
-
}
|
|
72
|
-
function removeBasePath(fullPath, basePath) {
|
|
73
|
-
const relativePath = import_node_path.default.relative(basePath, fullPath);
|
|
74
|
-
return relativePath.startsWith("..") ? fullPath : relativePath;
|
|
75
|
-
}
|
|
76
|
-
function isCollectionKey(key) {
|
|
77
|
-
return COLLECTION_KEYS.includes(key);
|
|
78
|
-
}
|
|
79
|
-
function isLikeC4Source(filePath) {
|
|
80
|
-
return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
|
|
81
|
-
}
|
|
82
|
-
var hasExtension = (str) => /\.[a-zA-Z0-9]{2,}$/.test(str);
|
|
83
|
-
function getCustomPageTargetPaths(filePath, astroDir) {
|
|
84
|
-
const filePathArr = filePath.split(import_node_path.default.sep).filter(Boolean);
|
|
85
|
-
if (filePathArr[0] !== "pages") {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
const customPagePath = import_node_path.default.join(astroDir, "src", "custom-pages", ...filePathArr.slice(1));
|
|
89
|
-
if (CUSTOM_PAGE_EXTENSIONS.includes(import_node_path.default.extname(filePath).toLowerCase())) {
|
|
90
|
-
return [customPagePath];
|
|
91
|
-
}
|
|
92
|
-
if (!hasExtension(filePath)) {
|
|
93
|
-
return [customPagePath, import_node_path.default.join(astroDir, "public", "generated", ...filePathArr)];
|
|
94
|
-
}
|
|
95
|
-
return [import_node_path.default.join(astroDir, "public", "generated", ...filePathArr)];
|
|
96
|
-
}
|
|
97
|
-
function isCatalogRelated(filePath) {
|
|
98
|
-
const filePathArr = filePath.split(import_node_path.default.sep).filter(Boolean);
|
|
99
|
-
if ([
|
|
100
|
-
"eventcatalog.config.js",
|
|
101
|
-
// config file at root
|
|
102
|
-
"eventcatalog.styles.css",
|
|
103
|
-
// custom styles file at root
|
|
104
|
-
"components",
|
|
105
|
-
// custom components
|
|
106
|
-
"snippets",
|
|
107
|
-
// custom snippets
|
|
108
|
-
"public",
|
|
109
|
-
// public assets
|
|
110
|
-
".env",
|
|
111
|
-
// env file
|
|
112
|
-
...COLLECTION_KEYS
|
|
113
|
-
].includes(filePathArr[0])) {
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
118
|
-
function getBaseTargetPaths(filePath) {
|
|
119
|
-
const filePathArr = filePath.split(import_node_path.default.sep).filter(Boolean);
|
|
120
|
-
if (isCollectionKey(filePathArr[0])) {
|
|
121
|
-
if (hasExtension(filePath)) {
|
|
122
|
-
return [import_node_path.default.join("public", "generated")];
|
|
123
|
-
}
|
|
124
|
-
return [import_node_path.default.join("public", "generated")];
|
|
125
|
-
}
|
|
126
|
-
if (filePathArr[0] == "components") {
|
|
127
|
-
return [import_node_path.default.join("src", "custom-defined-components")];
|
|
128
|
-
}
|
|
129
|
-
if (filePathArr[0] == "snippets") {
|
|
130
|
-
return [import_node_path.default.join("src")];
|
|
131
|
-
}
|
|
132
|
-
if (filePathArr[0] == "public") {
|
|
133
|
-
return [import_node_path.default.join("public")];
|
|
134
|
-
}
|
|
135
|
-
return [import_node_path.default.join("/")];
|
|
136
|
-
}
|
|
137
|
-
function getRelativeTargetPath(filePath) {
|
|
138
|
-
const filePathArr = filePath.split(import_node_path.default.sep).filter(Boolean);
|
|
139
|
-
if (filePathArr[0] == "public" || filePathArr[0] == "components") {
|
|
140
|
-
filePathArr.shift();
|
|
141
|
-
}
|
|
142
|
-
if (filePathArr[0] == "snippets") {
|
|
143
|
-
return import_node_path.default.join("snippets", ...filePathArr.slice(1));
|
|
144
|
-
}
|
|
145
|
-
const relativePath = [];
|
|
146
|
-
for (let i = filePathArr.length - 1; i >= 0; i--) {
|
|
147
|
-
relativePath.unshift(filePathArr[i]);
|
|
148
|
-
if (isCollectionKey(filePathArr[i]) && filePathArr[i] != "snippets") break;
|
|
149
|
-
}
|
|
150
|
-
return import_node_path.default.join(...relativePath);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// src/watcher.js
|
|
154
|
-
var import_rimraf = require("rimraf");
|
|
155
37
|
var toPosixPath = (p) => p.replace(/\\/g, "/");
|
|
156
|
-
async function watch(projectDirectory, catalogDirectory, callback =
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
* @param {Error|null} err
|
|
162
|
-
* @param {Event[]} events
|
|
163
|
-
* @returns {unknown}
|
|
164
|
-
*/
|
|
165
|
-
(err, events) => {
|
|
166
|
-
if (err) {
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
for (let event of events) {
|
|
170
|
-
const { path: filePath, type } = event;
|
|
171
|
-
if (filePath.endsWith(".lock")) {
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
if ((filePath.endsWith(".mdx") || filePath.endsWith(".md")) && !filePath.includes("snippets")) {
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
const astroPaths = mapCatalogToAstro({
|
|
178
|
-
filePath,
|
|
179
|
-
astroDir: catalogDirectory,
|
|
180
|
-
projectDir: projectDirectory
|
|
181
|
-
});
|
|
182
|
-
for (const astroPath of astroPaths) {
|
|
183
|
-
switch (type) {
|
|
184
|
-
case "create":
|
|
185
|
-
case "update": {
|
|
186
|
-
let stat;
|
|
187
|
-
try {
|
|
188
|
-
stat = import_node_fs.default.statSync(filePath);
|
|
189
|
-
} catch (err2) {
|
|
190
|
-
if (err2.code === "ENOENT") break;
|
|
191
|
-
throw err2;
|
|
192
|
-
}
|
|
193
|
-
if (stat.isDirectory()) {
|
|
194
|
-
import_node_fs.default.mkdirSync(astroPath, { recursive: true });
|
|
195
|
-
} else {
|
|
196
|
-
retryEPERM(import_node_fs.default.cpSync)(filePath, astroPath);
|
|
197
|
-
}
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
case "delete":
|
|
201
|
-
retryEPERM(import_rimraf.rimrafSync)(astroPath);
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
callback
|
|
208
|
-
),
|
|
209
|
-
{
|
|
210
|
-
ignore: [`**/${toPosixPath(catalogDirectory)}/!(${toPosixPath(projectDirectory)})**`]
|
|
211
|
-
}
|
|
212
|
-
);
|
|
38
|
+
async function watch(projectDirectory, catalogDirectory, callback = () => {
|
|
39
|
+
}) {
|
|
40
|
+
const subscription = await import_watcher.default.subscribe(projectDirectory, callback, {
|
|
41
|
+
ignore: [`**/${toPosixPath(catalogDirectory)}/!(${toPosixPath(projectDirectory)})**`]
|
|
42
|
+
});
|
|
213
43
|
return () => subscription.unsubscribe();
|
|
214
44
|
}
|
|
215
|
-
function compose(...fns) {
|
|
216
|
-
return function(err, events) {
|
|
217
|
-
fns.filter(Boolean).forEach((fn, i) => {
|
|
218
|
-
try {
|
|
219
|
-
fn(err, events);
|
|
220
|
-
} catch (error) {
|
|
221
|
-
console.error({ error });
|
|
222
|
-
throw error;
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
var MAX_RETRIES = 5;
|
|
228
|
-
var DELAY_MS = 100;
|
|
229
|
-
function retryEPERM(fn) {
|
|
230
|
-
return (...args) => {
|
|
231
|
-
let retries = 0;
|
|
232
|
-
while (retries < MAX_RETRIES) {
|
|
233
|
-
try {
|
|
234
|
-
return fn(...args);
|
|
235
|
-
} catch (err) {
|
|
236
|
-
if (err.code !== "EPERM") throw err;
|
|
237
|
-
setTimeout(() => {
|
|
238
|
-
}, DELAY_MS);
|
|
239
|
-
retries += 1;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
245
46
|
0 && (module.exports = {
|
|
246
47
|
watch
|