@burdenoff/microfe-cosmicintersection 2026.1031.1 → 2026.1101.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/cosmicintersection/CosmicIntersectionRoot.d.ts +0 -1
- package/dist/cosmicintersection/CosmicIntersectionRoot.js +2 -2
- package/dist/cosmicintersection/CosmicIntersectionRoutes.d.ts +1 -1
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js +1 -1
- package/dist/cosmicintersection/api/cosmicApi.d.ts +0 -1
- package/dist/cosmicintersection/api/cosmicApi.js +82 -82
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/components/ActionMenu.d.ts +1 -2
- package/dist/cosmicintersection/components/ActionMenu.js +1 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.d.ts +1 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.js +4 -4
- package/dist/cosmicintersection/components/DiscussionPanel.d.ts +1 -1
- package/dist/cosmicintersection/components/DiscussionPanel.js +2 -2
- package/dist/cosmicintersection/components/EmptyState.d.ts +1 -2
- package/dist/cosmicintersection/components/EmptyState.js +1 -1
- package/dist/cosmicintersection/components/EntityFormShell.d.ts +1 -2
- package/dist/cosmicintersection/components/EntityFormShell.js +1 -1
- package/dist/cosmicintersection/components/EntityTagsField.d.ts +1 -1
- package/dist/cosmicintersection/components/EntityTagsField.js +1 -1
- package/dist/cosmicintersection/components/ErrorState.d.ts +1 -1
- package/dist/cosmicintersection/components/ErrorState.js +1 -1
- package/dist/cosmicintersection/components/FacetPanel.d.ts +1 -1
- package/dist/cosmicintersection/components/FacetPanel.js +1 -1
- package/dist/cosmicintersection/components/FacetPanel.js.map +1 -1
- package/dist/cosmicintersection/components/FileUploadField.d.ts +1 -2
- package/dist/cosmicintersection/components/FileUploadField.js +1 -1
- package/dist/cosmicintersection/components/FileUploadField.js.map +1 -1
- package/dist/cosmicintersection/components/LineageGraph.d.ts +1 -2
- package/dist/cosmicintersection/components/LineageGraph.js +1 -1
- package/dist/cosmicintersection/components/LineageGraph.js.map +1 -1
- package/dist/cosmicintersection/components/LoadingState.d.ts +1 -1
- package/dist/cosmicintersection/components/LoadingState.js +1 -1
- package/dist/cosmicintersection/components/LoadingState.js.map +1 -1
- package/dist/cosmicintersection/components/PageLayout.d.ts +1 -2
- package/dist/cosmicintersection/components/PageLayout.js +1 -1
- package/dist/cosmicintersection/components/Pagination.d.ts +1 -1
- package/dist/cosmicintersection/components/Pagination.js +1 -1
- package/dist/cosmicintersection/components/ResultsChart.d.ts +1 -1
- package/dist/cosmicintersection/components/ResultsChart.js +4 -3
- package/dist/cosmicintersection/components/ResultsChart.js.map +1 -1
- package/dist/cosmicintersection/components/SafeLink.d.ts +1 -2
- package/dist/cosmicintersection/components/SafeLink.js +1 -1
- package/dist/cosmicintersection/components/StatusBadge.d.ts +1 -1
- package/dist/cosmicintersection/components/StatusBadge.js +1 -1
- package/dist/cosmicintersection/components/StatusBadge.js.map +1 -1
- package/dist/cosmicintersection/components/StepDAG.d.ts +1 -2
- package/dist/cosmicintersection/components/StepDAG.js +1 -1
- package/dist/cosmicintersection/components/StepDAG.js.map +1 -1
- package/dist/cosmicintersection/components/index.js +14 -13
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +1 -2
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js +2 -1
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
- package/dist/cosmicintersection/lib/assistantAwareDialog.js +7 -5
- package/dist/cosmicintersection/lib/assistantAwareDialog.js.map +1 -1
- package/dist/cosmicintersection/lib/mutationResult.d.ts +0 -1
- package/dist/cosmicintersection/lib/toast.d.ts +0 -1
- package/dist/cosmicintersection/lib/toast.js +1 -1
- package/dist/cosmicintersection/lib/useSelectedRecord.js.map +1 -1
- package/dist/cosmicintersection/pages/access/AccessPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/access/AccessPage.js +10 -9
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +8 -8
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +7 -7
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js +14 -13
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js +5 -5
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +3 -3
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +12 -12
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js +16 -15
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +7 -7
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +6 -6
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.d.ts +1 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.js +5 -5
- package/dist/cosmicintersection/pages/lineage/LineagePage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +7 -7
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js +19 -19
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +7 -7
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +7 -7
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +2 -2
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +7 -7
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.js +5 -4
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +9 -9
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +7 -7
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.js +6 -6
- package/dist/cosmicintersection/pages/runs/RunsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +7 -7
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceFormPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/sources/SourceFormPage.js +2 -2
- package/dist/cosmicintersection/pages/sources/SourceFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.d.ts +1 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +8 -8
- package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
- package/dist/cosmicintersection/types/index.d.ts +0 -1
- package/dist/cosmicintersection/utils/cn.d.ts +0 -1
- package/dist/cosmicintersection/utils/cn.js +1 -1
- package/dist/dev/main.d.ts +0 -1
- package/dist/generated/global-types.d.ts +2 -21
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.d.ts +2 -21
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/node_modules/clsx/dist/clsx.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +130 -130
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/stories/EmptyState.stories.d.ts +0 -1
- package/dist/stories/LoadingState.stories.d.ts +0 -1
- package/dist/stories/StatusBadge.stories.d.ts +0 -1
- package/dist/test/fakeGateway.d.ts +0 -1
- package/dist/test/fixtures.d.ts +0 -1
- package/dist/test/renderWithProviders.d.ts +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/utils/pageContext.d.ts +0 -2
- package/dist/utils/pageContext.d.ts.map +1 -1
- package/dist/utils/pageContext.js +4 -6
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +44 -45
- package/dist/generated/global-operations.d.ts +0 -2
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -2
- package/dist/generated/wspace-operations.d.ts.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ApolloClient } from '@apollo/client';
|
|
2
|
-
|
|
3
2
|
export type GatewayVariables = Record<string, unknown>;
|
|
4
3
|
/** A handler returns the `data` payload, or throws to model a GraphQL error. */
|
|
5
4
|
export type OperationHandler = (variables: GatewayVariables) => Record<string, unknown>;
|
package/dist/test/fixtures.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { TranslationDictionary } from '@burdenoff/fe-libs/shared/providers/shell
|
|
|
3
3
|
import { RenderResult } from '@testing-library/react';
|
|
4
4
|
import { ReactElement } from 'react';
|
|
5
5
|
import { Mock } from 'vitest';
|
|
6
|
-
|
|
7
6
|
export interface RenderOptions {
|
|
8
7
|
client?: ApolloClient;
|
|
9
8
|
basePath?: string;
|
package/dist/test/setup.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageContext.d.ts","sourceRoot":"","sources":["../../src/utils/pageContext.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,mBAAmB,mMAWtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,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EAChB,MAAM,EAAE,MAAM,GACb,wBAAwB,CAgF1B"}
|
|
@@ -10,7 +10,7 @@ var e = "cosmicintersection", t = {
|
|
|
10
10
|
releases: "COSMIC_RELEASE",
|
|
11
11
|
analyses: "COSMIC_ANALYSIS",
|
|
12
12
|
access: "COSMIC_GRANT"
|
|
13
|
-
}, r = new Set([
|
|
13
|
+
}, r = /* @__PURE__ */ new Set([
|
|
14
14
|
"create",
|
|
15
15
|
"edit",
|
|
16
16
|
"new"
|
|
@@ -21,16 +21,14 @@ function i(e) {
|
|
|
21
21
|
function a() {
|
|
22
22
|
let e = o(window.location.pathname, window.location.search);
|
|
23
23
|
return {
|
|
24
|
-
currentUrl: window.location.
|
|
24
|
+
currentUrl: window.location.pathname,
|
|
25
25
|
currentPage: e.routePattern,
|
|
26
26
|
entityType: e.entityType,
|
|
27
27
|
entityId: e.entityId,
|
|
28
28
|
activeTab: e.activeTab,
|
|
29
29
|
platform: "cosmicintersection",
|
|
30
30
|
version: "2026.709.1",
|
|
31
|
-
viewportSize: `${window.innerWidth}x${window.innerHeight}
|
|
32
|
-
userAgent: navigator.userAgent,
|
|
33
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
31
|
+
viewportSize: `${window.innerWidth}x${window.innerHeight}`
|
|
34
32
|
};
|
|
35
33
|
}
|
|
36
34
|
function o(a, o) {
|
|
@@ -87,6 +85,6 @@ function o(a, o) {
|
|
|
87
85
|
};
|
|
88
86
|
}
|
|
89
87
|
//#endregion
|
|
90
|
-
export { a as gatherPageContext };
|
|
88
|
+
export { a as gatherPageContext, o as resolveCosmicIntersectionConversationContext };
|
|
91
89
|
|
|
92
90
|
//# sourceMappingURL=pageContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageContext.js","names":[],"sources":["../../src/utils/pageContext.ts"],"sourcesContent":["/// <reference types=\"vite/client\" />\n\n/**\n * Page context gathering for the CosmicIntersection AI assistant.\n *\n * Captures the user's current browser context (route, entity, viewport) to be\n * sent alongside every assistant prompt so the agent can reason about \"this\n * dataset\", \"this run\", \"this grant\", \"this column\" without asking which one.\n *\n * The entity types below are part of a contract with the assistant's\n * CosmicIntersection guide (`algoshred/ai-assistant`\n * `context/api-calls/products/cosmicintersection.md`, \"Page context\"), which\n * names the read for each one. Add a type here and there together.\n *\n * Routes come from `src/cosmicintersection/CosmicIntersectionRoutes.tsx`,\n * mounted at `/cosmicintersection/*` by cosmicintersection-app. Records that\n * have no detail route of their own (releases, analyses, access grants, a\n * dataset's schema fields) are focused through a search parameter that the\n * page keeps in sync (`src/cosmicintersection/lib/useSelectedRecord.ts`).\n */\n\nexport const COSMIC_ENTITY_TYPES = [\n 'COSMIC_DATASET',\n 'COSMIC_SCHEMA_FIELD',\n 'COSMIC_SOURCE',\n 'COSMIC_COLLECTION',\n 'COSMIC_PIPELINE',\n 'COSMIC_RUN',\n 'COSMIC_NOTEBOOK',\n 'COSMIC_ANALYSIS',\n 'COSMIC_RELEASE',\n 'COSMIC_GRANT',\n] as const;\n\nexport type CosmicEntityType = (typeof COSMIC_ENTITY_TYPES)[number];\n\nexport interface ConversationContextShape {\n entityType?: CosmicEntityType;\n entityId?: string;\n activeTab?: string;\n /** Route pattern with ids replaced by `:param`, e.g. `cosmicintersection/runs/:id`. */\n routePattern: string;\n}\n\n/**\n * A `type` alias, not an `interface`: fe-libs' `PageContext` carries an index\n * signature, which TypeScript grants a type alias implicitly and an interface\n * never, so an interface here would not be assignable to the transport seam.\n */\nexport type PageContext = {\n // `currentUrl` (not `activeUrl`) is the key the agent's allow-list forwards.\n currentUrl: string;\n currentPage: string;\n entityType?: string;\n entityId?: string;\n activeTab?: string;\n platform: string;\n version: string;\n viewportSize: string;\n
|
|
1
|
+
{"version":3,"file":"pageContext.js","names":[],"sources":["../../src/utils/pageContext.ts"],"sourcesContent":["/// <reference types=\"vite/client\" />\n\n/**\n * Page context gathering for the CosmicIntersection AI assistant.\n *\n * Captures the user's current browser context (route, entity, viewport) to be\n * sent alongside every assistant prompt so the agent can reason about \"this\n * dataset\", \"this run\", \"this grant\", \"this column\" without asking which one.\n *\n * The entity types below are part of a contract with the assistant's\n * CosmicIntersection guide (`algoshred/ai-assistant`\n * `context/api-calls/products/cosmicintersection.md`, \"Page context\"), which\n * names the read for each one. Add a type here and there together.\n *\n * Routes come from `src/cosmicintersection/CosmicIntersectionRoutes.tsx`,\n * mounted at `/cosmicintersection/*` by cosmicintersection-app. Records that\n * have no detail route of their own (releases, analyses, access grants, a\n * dataset's schema fields) are focused through a search parameter that the\n * page keeps in sync (`src/cosmicintersection/lib/useSelectedRecord.ts`).\n */\n\nexport const COSMIC_ENTITY_TYPES = [\n 'COSMIC_DATASET',\n 'COSMIC_SCHEMA_FIELD',\n 'COSMIC_SOURCE',\n 'COSMIC_COLLECTION',\n 'COSMIC_PIPELINE',\n 'COSMIC_RUN',\n 'COSMIC_NOTEBOOK',\n 'COSMIC_ANALYSIS',\n 'COSMIC_RELEASE',\n 'COSMIC_GRANT',\n] as const;\n\nexport type CosmicEntityType = (typeof COSMIC_ENTITY_TYPES)[number];\n\nexport interface ConversationContextShape {\n entityType?: CosmicEntityType;\n entityId?: string;\n activeTab?: string;\n /** Route pattern with ids replaced by `:param`, e.g. `cosmicintersection/runs/:id`. */\n routePattern: string;\n}\n\n/**\n * A `type` alias, not an `interface`: fe-libs' `PageContext` carries an index\n * signature, which TypeScript grants a type alias implicitly and an interface\n * never, so an interface here would not be assignable to the transport seam.\n */\nexport type PageContext = {\n // `currentUrl` (not `activeUrl`) is the key the agent's allow-list forwards.\n currentUrl: string;\n currentPage: string;\n entityType?: string;\n entityId?: string;\n activeTab?: string;\n platform: string;\n version: string;\n viewportSize: string;\n};\n\nconst ROOT = 'cosmicintersection';\n\n/** Path segments under `/cosmicintersection/<section>/:id` that are a detail route. */\nconst DETAIL_SECTIONS: Record<string, CosmicEntityType> = {\n datasets: 'COSMIC_DATASET',\n sources: 'COSMIC_SOURCE',\n collections: 'COSMIC_COLLECTION',\n pipelines: 'COSMIC_PIPELINE',\n runs: 'COSMIC_RUN',\n notebooks: 'COSMIC_NOTEBOOK',\n};\n\n/** List pages whose focused record is the `?id=` search parameter. */\nconst FOCUS_SECTIONS: Record<string, CosmicEntityType> = {\n releases: 'COSMIC_RELEASE',\n analyses: 'COSMIC_ANALYSIS',\n access: 'COSMIC_GRANT',\n};\n\n/** Literal child segments that are pages, never ids (`datasets/create`). */\nconst RESERVED_SEGMENTS = new Set(['create', 'edit', 'new']);\n\nfunction nonEmpty(value: string | null | undefined): string | undefined {\n const trimmed = value?.trim();\n return trimmed ? trimmed : undefined;\n}\n\nexport function gatherPageContext(): PageContext {\n const entity = resolveCosmicIntersectionConversationContext(\n window.location.pathname,\n window.location.search\n );\n\n return {\n // Resolve focused entities above, but never send raw query strings or fragments to the model.\n currentUrl: window.location.pathname,\n currentPage: entity.routePattern,\n entityType: entity.entityType,\n entityId: entity.entityId,\n activeTab: entity.activeTab,\n platform: 'cosmicintersection',\n version: import.meta.env.VITE_APP_VERSION ?? '2026.709.1',\n viewportSize: `${window.innerWidth}x${window.innerHeight}`,\n };\n}\n\n/**\n * Resolve the record the user is looking at from the URL.\n *\n * Every detail route (including its `/edit` form) yields an `entityType` and\n * `entityId`; a list page yields only `activeTab` (the section name, or the\n * `?tab=` parameter when a page sets one).\n */\nexport function resolveCosmicIntersectionConversationContext(\n pathname: string,\n search: string\n): ConversationContextShape {\n const params = new URLSearchParams(search);\n const segments = pathname\n .split('/')\n .filter(Boolean)\n .map((segment) => decodeURIComponent(segment));\n\n if (segments[0] !== ROOT) {\n return { routePattern: segments.join('/') || 'home' };\n }\n\n const section = segments[1];\n const child = segments[2];\n const tab = nonEmpty(params.get('tab'));\n\n if (!section) {\n return { routePattern: ROOT, ...(tab ? { activeTab: tab } : {}) };\n }\n\n // Detail routes: /<section>/:id and /<section>/:id/edit.\n const detailType = DETAIL_SECTIONS[section];\n if (detailType && child && !RESERVED_SEGMENTS.has(child)) {\n const isEdit = segments[3] === 'edit';\n const routePattern = `${ROOT}/${section}/:id${isEdit ? '/edit' : ''}`;\n\n // A dataset's schema field the user focused (`?field=<id>`).\n const fieldId = nonEmpty(params.get('field'));\n if (detailType === 'COSMIC_DATASET' && fieldId && !isEdit) {\n return {\n entityType: 'COSMIC_SCHEMA_FIELD',\n entityId: fieldId,\n activeTab: 'schema',\n routePattern,\n };\n }\n\n return {\n entityType: detailType,\n entityId: child,\n ...(tab ? { activeTab: tab } : {}),\n routePattern,\n };\n }\n\n // Lineage of one dataset: /lineage/:datasetId.\n if (section === 'lineage' && child) {\n return {\n entityType: 'COSMIC_DATASET',\n entityId: child,\n activeTab: 'lineage',\n routePattern: `${ROOT}/lineage/:datasetId`,\n };\n }\n\n // List pages that focus a record through `?id=`.\n const focusType = FOCUS_SECTIONS[section];\n const focusedId = nonEmpty(params.get('id'));\n if (focusType && !child && focusedId) {\n return {\n entityType: focusType,\n entityId: focusedId,\n activeTab: section,\n routePattern: `${ROOT}/${section}`,\n };\n }\n\n // The access page filtered to one dataset: that dataset is \"this\".\n const datasetId = nonEmpty(params.get('datasetId'));\n if (section === 'access' && !child && datasetId) {\n return {\n entityType: 'COSMIC_DATASET',\n entityId: datasetId,\n activeTab: 'access',\n routePattern: `${ROOT}/access`,\n };\n }\n\n // List, discovery and create pages: no record, just where the user is.\n const routePattern = [ROOT, section, ...(child ? [child] : [])].join('/');\n return { activeTab: tab ?? child ?? section, routePattern };\n}\n"],"mappings":";AA6DA,IAAM,IAAO,sBAGP,IAAoD;CACxD,UAAU;CACV,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,WAAW;AACb,GAGM,IAAmD;CACvD,UAAU;CACV,UAAU;CACV,QAAQ;AACV,GAGM,oBAAoB,IAAI,IAAI;CAAC;CAAU;CAAQ;AAAK,CAAC;AAE3D,SAAS,EAAS,GAAsD;CAEtE,OADgB,GAAO,KAAK,KACD,KAAA;AAC7B;AAEA,SAAgB,IAAiC;CAC/C,IAAM,IAAS,EACb,OAAO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AS,GACzB,OAAO;EACL,YAAY;EACZ,UAAU;EACV,WAAW;EACX,cAAc,GAAG,EAAK,GAAG;CAC3B;CAIF,IAAM,IAAY,EAAS,EAAO,IAAI,WAAW,CAAC;CAClD,IAAI,MAAY,YAAY,CAAC,KAAS,GACpC,OAAO;EACL,YAAY;EACZ,UAAU;EACV,WAAW;EACX,cAAc,GAAG,EAAK;CACxB;CAIF,IAAM,IAAe;EAAC;EAAM;EAAS,GAAI,IAAQ,CAAC,CAAK,IAAI,CAAC;CAAE,CAAC,CAAC,KAAK,GAAG;CACxE,OAAO;EAAE,WAAW,KAAO,KAAS;EAAS;CAAa;AAC5D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-cosmicintersection",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1101.1",
|
|
4
4
|
"description": "Burdenoff CosmicIntersection Microfrontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -48,61 +48,59 @@
|
|
|
48
48
|
"format:check": "prettier --check \"src/**/*.{ts,tsx}\""
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@apollo/client": "^4.
|
|
51
|
+
"@apollo/client": "^4.3.5",
|
|
52
52
|
"@burdenoff/fe-libs": "2026.801.1",
|
|
53
|
-
"@tanstack/react-query": "^5.
|
|
53
|
+
"@tanstack/react-query": "^5.105.0",
|
|
54
54
|
"clsx": "^2.1.1",
|
|
55
|
-
"graphql": "^16.
|
|
55
|
+
"graphql": "^16.14.2",
|
|
56
56
|
"lucide-react": "^0.468.0",
|
|
57
|
-
"react": "^19.
|
|
58
|
-
"react-dom": "^19.
|
|
59
|
-
"react-router": "^8.
|
|
60
|
-
"sonner": "^2.0.
|
|
61
|
-
"tailwind-merge": "^3.
|
|
62
|
-
"zustand": "^5.0.
|
|
63
|
-
"recharts": "^2.15.
|
|
64
|
-
"framer-motion": "^12.
|
|
57
|
+
"react": "^19.3.1",
|
|
58
|
+
"react-dom": "^19.3.1",
|
|
59
|
+
"react-router": "^8.5.1",
|
|
60
|
+
"sonner": "^2.0.8",
|
|
61
|
+
"tailwind-merge": "^3.7.0",
|
|
62
|
+
"zustand": "^5.0.16",
|
|
63
|
+
"recharts": "^2.15.4",
|
|
64
|
+
"framer-motion": "^12.43.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"
|
|
68
|
-
"@
|
|
69
|
-
"@graphql-codegen/
|
|
70
|
-
"@graphql-codegen/
|
|
71
|
-
"@graphql-codegen/schema-ast": "
|
|
72
|
-
"@graphql-codegen/typescript": "
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/react-vite": "^8.6.0",
|
|
79
|
-
"@storybook/test": "^8.6.0",
|
|
67
|
+
"ajv": "6.15.0",
|
|
68
|
+
"@eslint/js": "^9.39.5",
|
|
69
|
+
"@graphql-codegen/add": "7.1.1",
|
|
70
|
+
"@graphql-codegen/cli": "7.4.6",
|
|
71
|
+
"@graphql-codegen/schema-ast": "6.1.1",
|
|
72
|
+
"@graphql-codegen/typescript": "6.1.2",
|
|
73
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
74
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
75
|
+
"@storybook/react": "^8.6.19",
|
|
76
|
+
"@storybook/react-vite": "^8.6.19",
|
|
77
|
+
"@storybook/test": "^8.6.15",
|
|
80
78
|
"@storybook/test-runner": "0.22.0",
|
|
81
|
-
"@tailwindcss/vite": "^4.3.
|
|
79
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
82
80
|
"@testing-library/dom": "^10.4.2",
|
|
83
|
-
"@testing-library/jest-dom": "^6.
|
|
84
|
-
"@testing-library/react": "^16.3.
|
|
85
|
-
"@testing-library/user-event": "^14.6.
|
|
86
|
-
"@types/react": "^19.0
|
|
87
|
-
"@types/react-dom": "^19.0
|
|
88
|
-
"@vitejs/plugin-react": "^4.
|
|
89
|
-
"@vitest/coverage-v8": "^4.1.
|
|
90
|
-
"autoprefixer": "^10.
|
|
91
|
-
"eslint": "^9.
|
|
81
|
+
"@testing-library/jest-dom": "^6.10.0",
|
|
82
|
+
"@testing-library/react": "^16.3.3",
|
|
83
|
+
"@testing-library/user-event": "^14.6.8",
|
|
84
|
+
"@types/react": "^19.3.0",
|
|
85
|
+
"@types/react-dom": "^19.3.0",
|
|
86
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
87
|
+
"@vitest/coverage-v8": "^4.1.12",
|
|
88
|
+
"autoprefixer": "^10.6.2",
|
|
89
|
+
"eslint": "^9.39.5",
|
|
92
90
|
"eslint-plugin-react": "^7.37.5",
|
|
93
|
-
"eslint-plugin-react-hooks": "^7.
|
|
91
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
94
92
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
95
93
|
"jsdom": "^26.1.0",
|
|
96
|
-
"lefthook": "^2.
|
|
97
|
-
"postcss": "^8.
|
|
94
|
+
"lefthook": "^2.2.2",
|
|
95
|
+
"postcss": "^8.5.32",
|
|
98
96
|
"prettier": "3.9.9",
|
|
99
|
-
"storybook": "^8.6.
|
|
100
|
-
"tailwindcss": "^4.
|
|
101
|
-
"typescript": "^5.9.
|
|
102
|
-
"typescript-eslint": "^8.
|
|
103
|
-
"vite": "8.
|
|
104
|
-
"vite-plugin-dts": "
|
|
105
|
-
"vitest": "^4.1.
|
|
97
|
+
"storybook": "^8.6.19",
|
|
98
|
+
"tailwindcss": "^4.3.3",
|
|
99
|
+
"typescript": "^5.9.3",
|
|
100
|
+
"typescript-eslint": "^8.72.1",
|
|
101
|
+
"vite": "8.1.6",
|
|
102
|
+
"vite-plugin-dts": "5.1.2",
|
|
103
|
+
"vitest": "^4.1.12"
|
|
106
104
|
},
|
|
107
105
|
"peerDependencies": {
|
|
108
106
|
"@apollo/client": "^4.0.11",
|
|
@@ -114,6 +112,7 @@
|
|
|
114
112
|
"access": "public"
|
|
115
113
|
},
|
|
116
114
|
"overrides": {
|
|
115
|
+
"uuid": "11.1.1",
|
|
117
116
|
"lodash": ">=4.17.21",
|
|
118
117
|
"lodash-es": ">=4.17.21",
|
|
119
118
|
"dompurify": ">=3.3.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global-operations.d.ts","sourceRoot":"","sources":["../../src/generated/global-operations.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wspace-operations.d.ts","sourceRoot":"","sources":["../../src/generated/wspace-operations.ts"],"names":[],"mappings":""}
|