@burdenoff/microfe-theglobalfuel 2026.705.1 → 2026.705.2

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 (102) hide show
  1. package/dist/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
  2. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  3. package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
  4. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  5. package/dist/theglobalfuel/utils/cn.js +2 -2
  6. package/package.json +1 -1
  7. package/dist/dev/main.d.ts +0 -2
  8. package/dist/dev/main.d.ts.map +0 -1
  9. package/dist/index.d.ts +0 -2
  10. package/dist/index.d.ts.map +0 -1
  11. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
  12. package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  13. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +0 -5
  14. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +0 -1
  15. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +0 -4
  16. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +0 -1
  17. package/dist/theglobalfuel/components/DataTable.d.ts +0 -30
  18. package/dist/theglobalfuel/components/DataTable.d.ts.map +0 -1
  19. package/dist/theglobalfuel/components/EmptyState.d.ts +0 -18
  20. package/dist/theglobalfuel/components/EmptyState.d.ts.map +0 -1
  21. package/dist/theglobalfuel/components/EvidenceUpload.d.ts +0 -14
  22. package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +0 -1
  23. package/dist/theglobalfuel/components/FileLink.d.ts +0 -15
  24. package/dist/theglobalfuel/components/FileLink.d.ts.map +0 -1
  25. package/dist/theglobalfuel/components/FilterTabs.d.ts +0 -18
  26. package/dist/theglobalfuel/components/FilterTabs.d.ts.map +0 -1
  27. package/dist/theglobalfuel/components/MetricsCard.d.ts +0 -23
  28. package/dist/theglobalfuel/components/MetricsCard.d.ts.map +0 -1
  29. package/dist/theglobalfuel/components/MiniBar.d.ts +0 -16
  30. package/dist/theglobalfuel/components/MiniBar.d.ts.map +0 -1
  31. package/dist/theglobalfuel/components/PageLayout.d.ts +0 -16
  32. package/dist/theglobalfuel/components/PageLayout.d.ts.map +0 -1
  33. package/dist/theglobalfuel/components/Pagination.d.ts +0 -22
  34. package/dist/theglobalfuel/components/Pagination.d.ts.map +0 -1
  35. package/dist/theglobalfuel/components/StateViews.d.ts +0 -24
  36. package/dist/theglobalfuel/components/StateViews.d.ts.map +0 -1
  37. package/dist/theglobalfuel/components/StatusBadge.d.ts +0 -9
  38. package/dist/theglobalfuel/components/StatusBadge.d.ts.map +0 -1
  39. package/dist/theglobalfuel/components/Tabs.d.ts +0 -17
  40. package/dist/theglobalfuel/components/Tabs.d.ts.map +0 -1
  41. package/dist/theglobalfuel/components/TheDiscussion.d.ts +0 -18
  42. package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +0 -1
  43. package/dist/theglobalfuel/components/TheTags.d.ts +0 -17
  44. package/dist/theglobalfuel/components/TheTags.d.ts.map +0 -1
  45. package/dist/theglobalfuel/components/index.d.ts +0 -19
  46. package/dist/theglobalfuel/components/index.d.ts.map +0 -1
  47. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +0 -16
  48. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +0 -1
  49. package/dist/theglobalfuel/context/index.d.ts +0 -6
  50. package/dist/theglobalfuel/context/index.d.ts.map +0 -1
  51. package/dist/theglobalfuel/hooks/index.d.ts +0 -11
  52. package/dist/theglobalfuel/hooks/index.d.ts.map +0 -1
  53. package/dist/theglobalfuel/hooks/useCursorPager.d.ts +0 -33
  54. package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +0 -1
  55. package/dist/theglobalfuel/hooks/useNotify.d.ts +0 -23
  56. package/dist/theglobalfuel/hooks/useNotify.d.ts.map +0 -1
  57. package/dist/theglobalfuel/hooks/useTheComments.d.ts +0 -36
  58. package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +0 -1
  59. package/dist/theglobalfuel/hooks/useTheFiles.d.ts +0 -47
  60. package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +0 -1
  61. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +0 -79
  62. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +0 -1
  63. package/dist/theglobalfuel/hooks/useTheTags.d.ts +0 -44
  64. package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +0 -1
  65. package/dist/theglobalfuel/index.d.ts +0 -9
  66. package/dist/theglobalfuel/index.d.ts.map +0 -1
  67. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +0 -13
  68. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +0 -1
  69. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +0 -10
  70. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +0 -1
  71. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +0 -11
  72. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +0 -1
  73. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +0 -9
  74. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +0 -1
  75. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +0 -8
  76. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +0 -1
  77. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +0 -13
  78. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +0 -1
  79. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +0 -12
  80. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +0 -1
  81. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +0 -11
  82. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +0 -1
  83. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +0 -11
  84. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +0 -1
  85. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +0 -10
  86. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +0 -1
  87. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +0 -11
  88. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +0 -1
  89. package/dist/theglobalfuel/types/index.d.ts +0 -376
  90. package/dist/theglobalfuel/types/index.d.ts.map +0 -1
  91. package/dist/theglobalfuel/utils/cn.d.ts +0 -4
  92. package/dist/theglobalfuel/utils/cn.d.ts.map +0 -1
  93. package/dist/theglobalfuel/utils/formatters.d.ts +0 -44
  94. package/dist/theglobalfuel/utils/formatters.d.ts.map +0 -1
  95. package/dist/theglobalfuel/utils/i18n.d.ts +0 -6
  96. package/dist/theglobalfuel/utils/i18n.d.ts.map +0 -1
  97. package/dist/theglobalfuel/utils/index.d.ts +0 -10
  98. package/dist/theglobalfuel/utils/index.d.ts.map +0 -1
  99. package/dist/theglobalfuel/utils/navigation.d.ts +0 -14
  100. package/dist/theglobalfuel/utils/navigation.d.ts.map +0 -1
  101. package/dist/theglobalfuel/utils/transitions.d.ts +0 -17
  102. package/dist/theglobalfuel/utils/transitions.d.ts.map +0 -1
@@ -1,22 +0,0 @@
1
- /**
2
- * Pagination — cursor-aware Prev/Next control for The* connection lists.
3
- * @module theglobalfuel/components
4
- *
5
- * The svc list connections return `pageInfo { cursor, hasMore }` and paginate by
6
- * cursor (offset is a no-op). Pages track a 0-indexed `page` for display and a
7
- * cursor stack for navigation; this control exposes Prev/Next, disabling Prev on
8
- * page 0 and Next when the server reports no more rows.
9
- */
10
- interface PaginationProps {
11
- page: number;
12
- pageSize: number;
13
- /** Number of rows on the current page. */
14
- itemCount: number;
15
- /** Server flag: are there more rows after this page? */
16
- hasMore: boolean;
17
- onPageChange: (page: number) => void;
18
- className?: string;
19
- }
20
- export declare function Pagination({ page, pageSize, itemCount, hasMore, onPageChange, className, }: PaginationProps): import("react/jsx-runtime").JSX.Element | null;
21
- export {};
22
- //# sourceMappingURL=Pagination.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/Pagination.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,GACV,EAAE,eAAe,kDAuCjB"}
@@ -1,24 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
-
3
- interface LoadingViewProps {
4
- label?: string;
5
- className?: string;
6
- }
7
- export declare const LoadingView: FC<LoadingViewProps>;
8
- interface ErrorViewProps {
9
- title?: string;
10
- message?: string;
11
- onRetry?: () => void;
12
- className?: string;
13
- }
14
- export declare const ErrorView: FC<ErrorViewProps>;
15
- interface SectionProps {
16
- title: string;
17
- description?: string;
18
- action?: ReactNode;
19
- children: ReactNode;
20
- className?: string;
21
- }
22
- export declare const Section: FC<SectionProps>;
23
- export {};
24
- //# sourceMappingURL=StateViews.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StateViews.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/StateViews.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK3C,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAK5C,CAAC;AAEF,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA2BxC,CAAC;AAEF,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAWpC,CAAC"}
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
-
3
- interface StatusBadgeProps {
4
- status: string;
5
- className?: string;
6
- }
7
- export declare const StatusBadge: FC<StatusBadgeProps>;
8
- export {};
9
- //# sourceMappingURL=StatusBadge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/StatusBadge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA+ED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsB5C,CAAC"}
@@ -1,17 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export interface TabItem<V extends string> {
4
- value: V;
5
- label: string;
6
- icon?: ReactNode;
7
- count?: number;
8
- }
9
- interface TabsProps<V extends string> {
10
- items: TabItem<V>[];
11
- value: V;
12
- onChange: (value: V) => void;
13
- className?: string;
14
- }
15
- export declare function Tabs<V extends string>({ items, value, onChange, className }: TabsProps<V>): import("react/jsx-runtime").JSX.Element;
16
- export {};
17
- //# sourceMappingURL=Tabs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/Tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,OAAO,CAAC,CAAC,SAAS,MAAM;IACvC,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,SAAS,CAAC,CAAC,SAAS,MAAM;IAClC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,2CAyCzF"}
@@ -1,18 +0,0 @@
1
- /**
2
- * TheDiscussion — a comment thread on any eco entity (Integration B).
3
- * @module theglobalfuel/components/TheDiscussion
4
- *
5
- * Reuses the platform EntityComment API (`getEntityComments` /
6
- * `createEntityComment`) keyed by `(entityType, entityId)` — no eco-svc change.
7
- * Renders root comments (author, body, time) + a composer. Robust to empty
8
- * state and errors.
9
- */
10
- interface TheDiscussionProps {
11
- entityType: string;
12
- entityId: string;
13
- title?: string;
14
- description?: string;
15
- }
16
- export declare function TheDiscussion({ entityType, entityId, title, description, }: TheDiscussionProps): import("react/jsx-runtime").JSX.Element;
17
- export {};
18
- //# sourceMappingURL=TheDiscussion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TheDiscussion.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/TheDiscussion.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,UAAU,kBAAkB;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAaD,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,QAAQ,EACR,KAAoB,EACpB,WAAkE,GACnE,EAAE,kBAAkB,2CAoGpB"}
@@ -1,17 +0,0 @@
1
- /**
2
- * TheTags — a lightweight tag control for eco entities (Integration C).
3
- * @module theglobalfuel/components/TheTags
4
- *
5
- * The eco svc exposes no tags field, so this drives the platform tag store
6
- * directly: `getEntityTags` (display), `searchTags` (+ `createTag`) to pick or
7
- * create, `assignTag`/`removeTagAssignment` to link — all via the workspace
8
- * gateway. No eco-svc change.
9
- */
10
- interface TheTagsProps {
11
- entityType: string;
12
- entityId: string;
13
- label?: string;
14
- }
15
- export declare function TheTags({ entityType, entityId, label }: TheTagsProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
17
- //# sourceMappingURL=TheTags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TheTags.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/TheTags.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoBH,UAAU,YAAY;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,OAAO,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAc,EAAE,EAAE,YAAY,2CAuL7E"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Components index
3
- * @module theglobalfuel/components
4
- */
5
- export { PageLayout } from './PageLayout';
6
- export { MetricsCard } from './MetricsCard';
7
- export { StatusBadge } from './StatusBadge';
8
- export { EmptyState } from './EmptyState';
9
- export { LoadingView, ErrorView, Section } from './StateViews';
10
- export { DataTable, type Column } from './DataTable';
11
- export { FilterTabs, type FilterOption } from './FilterTabs';
12
- export { Tabs, type TabItem } from './Tabs';
13
- export { Pagination } from './Pagination';
14
- export { MiniBar } from './MiniBar';
15
- export { EvidenceUpload } from './EvidenceUpload';
16
- export { FileLink } from './FileLink';
17
- export { TheDiscussion } from './TheDiscussion';
18
- export { TheTags } from './TheTags';
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -1,16 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { TheGlobalFuelRootProps } from '../types';
3
-
4
- interface TheGlobalFuelContextValue extends Omit<TheGlobalFuelRootProps, 'registerNavItems' | 'registerFooterItems' | 'navigate'> {
5
- isStandalone: boolean;
6
- /** Shell's navigate function (only available in integrated mode). */
7
- navigate?: (path: string) => void;
8
- /** Navigate to a path relative to basePath. */
9
- navigateTo: (relativePath: string) => void;
10
- /** Get the full path for a relative path. */
11
- getPath: (relativePath: string) => string;
12
- }
13
- export declare function useTheGlobalFuel(): TheGlobalFuelContextValue;
14
- export declare const TheGlobalFuelProvider: FC<PropsWithChildren<TheGlobalFuelRootProps>>;
15
- export {};
16
- //# sourceMappingURL=TheGlobalFuelContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TheGlobalFuelContext.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/context/TheGlobalFuelContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGvD,UAAU,yBAA0B,SAAQ,IAAI,CAC9C,sBAAsB,EACtB,kBAAkB,GAAG,qBAAqB,GAAG,UAAU,CACxD;IACC,YAAY,EAAE,OAAO,CAAC;IACtB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,+CAA+C;IAC/C,UAAU,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,6CAA6C;IAC7C,OAAO,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAID,wBAAgB,gBAAgB,IAAI,yBAAyB,CAM5D;AAqHD,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAmB/E,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Context index
3
- * @module theglobalfuel/context
4
- */
5
- export { TheGlobalFuelProvider, useTheGlobalFuel } from './TheGlobalFuelContext';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/context/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Hooks index
3
- * @module theglobalfuel/hooks
4
- */
5
- export * from './useTheGlobalFuelApi';
6
- export * from './useCursorPager';
7
- export * from './useNotify';
8
- export * from './useTheFiles';
9
- export * from './useTheComments';
10
- export * from './useTheTags';
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * useCursorPager — forward/back cursor pagination for Eco* list connections.
3
- * @module theglobalfuel/hooks
4
- *
5
- * The svc paginates by cursor only (`PaginationInput.offset` is a no-op — the
6
- * resolver never sets Prisma `skip` from it). So a page must send
7
- * `pagination.cursor = the previous page's pageInfo.cursor` to advance. This
8
- * hook keeps a stack of the cursors that opened each visited page so Prev/Next
9
- * are exact, and exposes a 0-indexed `page` for display.
10
- */
11
- export interface CursorPager {
12
- /** 0-indexed page number for display. */
13
- page: number;
14
- /**
15
- * Cursor that opens the current page — `undefined` on the first page so it is
16
- * OMITTED from the GraphQL variables (the svc rejects an explicit `cursor: null`;
17
- * a first page must send no cursor at all, per cursor-pagination convention).
18
- */
19
- cursor: string | undefined;
20
- /** Advance to the next page using the current page's end cursor. No-op if null. */
21
- next: (endCursor: string | null | undefined) => void;
22
- /** Go back one page. No-op on the first page. */
23
- prev: () => void;
24
- /** Reset to the first page (call when filters change). */
25
- reset: () => void;
26
- /**
27
- * Adapter for `<Pagination onPageChange>` — compares the requested page to the
28
- * current one and calls next()/prev() accordingly.
29
- */
30
- onPageChange: (targetPage: number, endCursor: string | null | undefined) => void;
31
- }
32
- export declare function useCursorPager(): CursorPager;
33
- //# sourceMappingURL=useCursorPager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCursorPager.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useCursorPager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,mFAAmF;IACnF,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACrD,iDAAiD;IACjD,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;OAGG;IACH,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;CAClF;AAED,wBAAgB,cAAc,IAAI,WAAW,CA4B5C"}
@@ -1,23 +0,0 @@
1
- /**
2
- * useNotify — thin wrapper over the shell's shared toast surface.
3
- * @module theglobalfuel/hooks
4
- *
5
- * Every write control (create/record/transition/verify/deliver/set-status)
6
- * routes success + error feedback through the app-shell's single `GlobalUi`
7
- * toaster (fe-libs) — NOT a locally-bundled `sonner` singleton, which would be
8
- * a different instance from the shell's mounted `<Toaster>` and never render.
9
- *
10
- * `useGlobalUi()` is called unconditionally (React rules-of-hooks): the MFE is
11
- * always mounted inside the app-shell's GlobalUiProvider in production, and the
12
- * standalone dev harness (src/dev/main.tsx) wraps the Root in the same provider.
13
- */
14
- export type NotifyKind = 'info' | 'success' | 'warning' | 'error';
15
- export interface Notifier {
16
- success: (message: string) => void;
17
- error: (message: string) => void;
18
- info: (message: string) => void;
19
- /** Extract a human-readable message from a thrown error and toast it. */
20
- fromError: (err: unknown, fallback?: string) => void;
21
- }
22
- export declare function useNotify(): Notifier;
23
- //# sourceMappingURL=useNotify.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useNotify.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useNotify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAElE,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,yEAAyE;IACzE,SAAS,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACtD;AAQD,wBAAgB,SAAS,IAAI,QAAQ,CAoBpC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * TheGlobalFuel — wspace-conversations-svc EntityComment REUSE hooks (Integration B).
3
- * @module theglobalfuel/hooks/useTheComments
4
- *
5
- * Adds a discussion surface to theglobalfuel entities WITHOUT any eco-svc change by
6
- * reusing the generic EntityComment API composed into the WORKSPACE supergraph.
7
- * Comments attach to any entity by `(entityType, entityId)`:
8
- * - `getEntityComments(input): EntityCommentConnection!`
9
- * - `createEntityComment(input): EntityComment!`
10
- *
11
- * Transport reuses `wspaceFetch` from `useTheFiles` (workspace gateway +
12
- * workspace token). Lives in a separate file; `useTheGlobalFuelApi.ts` is
13
- * untouched.
14
- */
15
- export interface TheComment {
16
- id: string;
17
- authorId: string;
18
- authorType: string;
19
- content: {
20
- text: string | null;
21
- markdown: string | null;
22
- };
23
- createdAt: string;
24
- edited: boolean;
25
- parentCommentId: string | null;
26
- replyCount: number;
27
- }
28
- /** Top-level (root) comments for an eco entity, oldest first. */
29
- export declare const useTheComments: (entityType: string, entityId: string | undefined) => import('@tanstack/react-query').UseQueryResult<{
30
- items: TheComment[];
31
- total: number;
32
- }, Error>;
33
- export declare const useTheCreateComment: (entityType: string, entityId: string) => import('@tanstack/react-query').UseMutationResult<{
34
- id: string;
35
- }, Error, string, unknown>;
36
- //# sourceMappingURL=useTheComments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTheComments.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useTheComments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AAKD,iEAAiE;AACjE,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS;;;SAwC9E,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM;QAKN,MAAM;0BAmBvE,CAAC"}
@@ -1,47 +0,0 @@
1
- /**
2
- * TheGlobalFuel — wspace-files-svc REUSE hooks (Integration A).
3
- * @module theglobalfuel/hooks/useTheFiles
4
- *
5
- * Reuses the platform file store (`wspace-files-svc`) WITHOUT any eco-svc
6
- * change: the theglobalfuel schema already exposes `TheObservation.evidenceFileId` /
7
- * `TheReport.fileId`; this module lets the UI actually produce a `fileId` via
8
- * the canonical 3-step upload flow composed into the WORKSPACE supergraph:
9
- * 1. `initiateUpload(input)` → `{ uploadUrl, session { id } }`
10
- * 2. HTTP `PUT` the bytes to the returned signed `uploadUrl`
11
- * 3. `completeUpload(input: { sessionId })` → `{ fileId }`
12
- * plus `getFile(id)` to resolve an existing evidence/report file's name + URL.
13
- *
14
- * Transport mirrors `useTheGlobalFuelApi` exactly — `graphqlFetch({ gateway:
15
- * 'workspace', workspaceToken: true })` — so no ApolloProvider is required.
16
- * These hooks live in a SEPARATE file by design; `useTheGlobalFuelApi.ts` is
17
- * left untouched.
18
- */
19
- /** Execute a workspace-gateway GraphQL operation with the workspace token. */
20
- export declare const wspaceFetch: <TData>(query: string, variables: Record<string, unknown>, baseUrl?: string) => Promise<TData>;
21
- export interface UploadedTheFile {
22
- fileId: string;
23
- fileName: string;
24
- }
25
- export interface UseTheFileUploadResult {
26
- upload: (file: File) => Promise<UploadedTheFile>;
27
- isUploading: boolean;
28
- /** 0–100 byte-progress of the signed-URL PUT. */
29
- progress: number;
30
- error: string | null;
31
- reset: () => void;
32
- }
33
- /**
34
- * Imperative upload hook: `await upload(file)` runs the platform 3-step flow and
35
- * resolves to `{ fileId, fileName }`. `fileId` is what the theglobalfuel mutations accept
36
- * (`ecoRecordObservation.evidenceFileId`, `ecoPublishReport.fileId`).
37
- */
38
- export declare const useTheFileUpload: () => UseTheFileUploadResult;
39
- export interface TheFileMeta {
40
- id: string;
41
- name: string;
42
- downloadUrl: string | null;
43
- mimeType: string;
44
- size: string;
45
- }
46
- export declare const useTheFile: (id: string | null | undefined) => import('@tanstack/react-query').UseQueryResult<TheFileMeta | null, Error>;
47
- //# sourceMappingURL=useTheFiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTheFiles.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useTheFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AA8BH,8EAA8E;AAC9E,eAAO,MAAM,WAAW,GAAU,KAAK,EACrC,OAAO,MAAM,EACb,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,UAAU,MAAM,KACf,OAAO,CAAC,KAAK,CAmBf,CAAC;AAMF,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AA+BD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IACjD,WAAW,EAAE,OAAO,CAAC;IACrB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAAO,sBAuFnC,CAAC;AAMF,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,8EAsBvD,CAAC"}
@@ -1,79 +0,0 @@
1
- import { TheConnection, TheAsset, TheAssetKind, TheAssetStatus, TheCommodityType, TheProductionRecord, TheReserveEstimate, TheReserveCategory, TheOfftakeContract, TheContractSide, TheContractStatus, TheShipment, TheShipmentStatus, TheInventoryLot, TheInventoryStatus, TheEmissionRecord, TheEmissionScope, TheComplianceCert, TheComplianceCategory, TheComplianceStatus, TheCreateAssetInput, TheUpdateAssetInput, TheRecordProductionInput, TheCreateReserveEstimateInput, TheCreateOfftakeContractInput, TheUpdateOfftakeContractInput, TheCreateShipmentInput, TheCreateInventoryLotInput, TheRecordEmissionInput, TheCreateComplianceCertInput, PaginationInput } from '../types';
2
-
3
- export interface AssetFilters {
4
- commodity?: TheCommodityType;
5
- kind?: TheAssetKind;
6
- status?: TheAssetStatus;
7
- pagination?: PaginationInput;
8
- }
9
- export declare const useTheAssets: (filters?: AssetFilters) => import('@tanstack/react-query').UseQueryResult<TheConnection<TheAsset>, Error>;
10
- export declare const useTheAsset: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<TheAsset | null, Error>;
11
- export declare const useTheCreateAsset: () => import('@tanstack/react-query').UseMutationResult<TheAsset, Error, TheCreateAssetInput, unknown>;
12
- export declare const useTheUpdateAsset: () => import('@tanstack/react-query').UseMutationResult<TheAsset, Error, {
13
- id: string;
14
- input: TheUpdateAssetInput;
15
- }, unknown>;
16
- export declare const useTheTransitionAsset: () => import('@tanstack/react-query').UseMutationResult<TheAsset, Error, {
17
- id: string;
18
- status: TheAssetStatus;
19
- }, unknown>;
20
- export declare const useTheRetireAsset: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
21
- export interface ProductionFilters {
22
- assetId?: string;
23
- pagination?: PaginationInput;
24
- }
25
- export declare const useTheProductionRecords: (filters?: ProductionFilters) => import('@tanstack/react-query').UseQueryResult<TheConnection<TheProductionRecord>, Error>;
26
- export declare const useTheRecordProduction: () => import('@tanstack/react-query').UseMutationResult<TheProductionRecord, Error, TheRecordProductionInput, unknown>;
27
- export declare const useTheReserveEstimates: (assetId?: string, category?: TheReserveCategory, pagination?: PaginationInput) => import('@tanstack/react-query').UseQueryResult<TheConnection<TheReserveEstimate>, Error>;
28
- export declare const useTheCreateReserveEstimate: () => import('@tanstack/react-query').UseMutationResult<TheReserveEstimate, Error, TheCreateReserveEstimateInput, unknown>;
29
- export interface ContractFilters {
30
- commodity?: TheCommodityType;
31
- side?: TheContractSide;
32
- status?: TheContractStatus;
33
- pagination?: PaginationInput;
34
- }
35
- export declare const useTheContracts: (filters?: ContractFilters) => import('@tanstack/react-query').UseQueryResult<TheConnection<TheOfftakeContract>, Error>;
36
- export declare const useTheContract: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<TheOfftakeContract | null, Error>;
37
- export declare const useTheCreateContract: () => import('@tanstack/react-query').UseMutationResult<TheOfftakeContract, Error, TheCreateOfftakeContractInput, unknown>;
38
- export declare const useTheUpdateContract: () => import('@tanstack/react-query').UseMutationResult<TheOfftakeContract, Error, {
39
- id: string;
40
- input: TheUpdateOfftakeContractInput;
41
- }, unknown>;
42
- export declare const useTheTransitionContract: () => import('@tanstack/react-query').UseMutationResult<TheOfftakeContract, Error, {
43
- id: string;
44
- status: TheContractStatus;
45
- }, unknown>;
46
- export declare const useTheShipments: (contractId?: string, status?: TheShipmentStatus, pagination?: PaginationInput) => import('@tanstack/react-query').UseQueryResult<TheConnection<TheShipment>, Error>;
47
- export declare const useTheTransitionShipment: () => import('@tanstack/react-query').UseMutationResult<TheShipment, Error, {
48
- id: string;
49
- status: TheShipmentStatus;
50
- }, unknown>;
51
- export declare const useTheScheduleShipment: () => import('@tanstack/react-query').UseMutationResult<TheShipment, Error, TheCreateShipmentInput, unknown>;
52
- export declare const useTheDeliverShipment: () => import('@tanstack/react-query').UseMutationResult<TheShipment, Error, string, unknown>;
53
- export interface InventoryFilters {
54
- commodity?: TheCommodityType;
55
- status?: TheInventoryStatus;
56
- pagination?: PaginationInput;
57
- }
58
- export declare const useTheInventoryLots: (filters?: InventoryFilters) => import('@tanstack/react-query').UseQueryResult<TheConnection<TheInventoryLot>, Error>;
59
- export declare const useTheCreateInventoryLot: () => import('@tanstack/react-query').UseMutationResult<TheInventoryLot, Error, TheCreateInventoryLotInput, unknown>;
60
- export declare const useTheSetInventoryLotStatus: () => import('@tanstack/react-query').UseMutationResult<TheInventoryLot, Error, {
61
- id: string;
62
- status: TheInventoryStatus;
63
- }, unknown>;
64
- export interface EmissionFilters {
65
- assetId?: string;
66
- scope?: TheEmissionScope;
67
- pagination?: PaginationInput;
68
- }
69
- export declare const useTheEmissionRecords: (filters?: EmissionFilters) => import('@tanstack/react-query').UseQueryResult<TheConnection<TheEmissionRecord>, Error>;
70
- export declare const useTheRecordEmission: () => import('@tanstack/react-query').UseMutationResult<TheEmissionRecord, Error, TheRecordEmissionInput, unknown>;
71
- export declare const useTheVerifyEmission: () => import('@tanstack/react-query').UseMutationResult<TheEmissionRecord, Error, string, unknown>;
72
- export declare const useTheComplianceCerts: (assetId?: string, category?: TheComplianceCategory, status?: TheComplianceStatus, pagination?: PaginationInput) => import('@tanstack/react-query').UseQueryResult<TheConnection<TheComplianceCert>, Error>;
73
- export declare const useTheComplianceCert: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<TheComplianceCert | null, Error>;
74
- export declare const useTheCreateComplianceCert: () => import('@tanstack/react-query').UseMutationResult<TheComplianceCert, Error, TheCreateComplianceCertInput, unknown>;
75
- export declare const useTheTransitionComplianceCert: () => import('@tanstack/react-query').UseMutationResult<TheComplianceCert, Error, {
76
- id: string;
77
- status: TheComplianceStatus;
78
- }, unknown>;
79
- //# sourceMappingURL=useTheGlobalFuelApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTheGlobalFuelApi.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useTheGlobalFuelApi.ts"],"names":[],"mappings":"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"}
@@ -1,44 +0,0 @@
1
- /**
2
- * TheGlobalFuel — wspace-tags-svc UniversalTag REUSE hooks (Integration C).
3
- * @module theglobalfuel/hooks/useTheTags
4
- *
5
- * The theglobalfuel svc does NOT expose a tags field, so we drive the platform tag
6
- * assignment store directly (approach (b) in the reuse audit) — no eco-svc
7
- * change. All operations are composed into the WORKSPACE supergraph:
8
- * - `getEntityTags(entityType, entityId)` → current assignments (display)
9
- * - `searchTags(query)` → pick an existing tag
10
- * - `createTag(input)` → create a new tag (needs a vocabulary)
11
- * - `assignTag(input)` → link tag ↔ entity
12
- * - `removeTagAssignment(id)` → unlink
13
- *
14
- * `createTag` requires a `vocabularyId`; we resolve a stable, workspace-scoped
15
- * "theglobalfuel" vocabulary (`getVocabularyByKey`, creating it on first use).
16
- *
17
- * Transport reuses `wspaceFetch` from `useTheFiles`. Lives in a separate file;
18
- * `useTheGlobalFuelApi.ts` is untouched.
19
- */
20
- export interface TheTag {
21
- id: string;
22
- label: string;
23
- color: string | null;
24
- key: string;
25
- }
26
- export interface TheTagAssignment {
27
- id: string;
28
- tag: TheTag;
29
- }
30
- /** Current tag assignments for an eco entity. */
31
- export declare const useTheEntityTags: (entityType: string, entityId: string | undefined) => import('@tanstack/react-query').UseQueryResult<TheTagAssignment[], Error>;
32
- /** Search existing tags (enabled only for a non-empty query). */
33
- export declare const useTheTagSearch: (query: string) => import('@tanstack/react-query').UseQueryResult<TheTag[], Error>;
34
- /** Assign an existing tag to the entity. */
35
- export declare const useTheAssignTag: (entityType: string, entityId: string) => import('@tanstack/react-query').UseMutationResult<{
36
- id: string;
37
- }, Error, string, unknown>;
38
- /** Remove a tag assignment by its assignment id. */
39
- export declare const useTheRemoveTagAssignment: (entityType: string, entityId: string) => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
40
- /** Create a new tag from a free-text label and assign it to the entity. */
41
- export declare const useTheCreateAndAssignTag: (entityType: string, entityId: string) => import('@tanstack/react-query').UseMutationResult<{
42
- id: string;
43
- }, Error, string, unknown>;
44
- //# sourceMappingURL=useTheTags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTheTags.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useTheTags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACb;AAiBD,iDAAiD;AACjD,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,8EAmBhF,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,oEAiB5C,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM;QAKZ,MAAM;0BAW7D,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,yBAAyB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,uFAgB7E,CAAC;AA+BF,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM;QAalB,MAAM;0BAkBhE,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * TheGlobalFuel Module Exports
3
- * @module theglobalfuel
4
- */
5
- export { TheGlobalFuelRoot } from './TheGlobalFuelRoot';
6
- export type { TheGlobalFuelRootProps, NavItem, FooterItem, TrendDirection } from './types';
7
- export { TheGlobalFuelProvider, useTheGlobalFuel } from './context';
8
- export { cn, joinPath, formatDate, formatDateTime, formatRelativeTime, formatNumber, formatQuantity, formatPercent, formatCo2e, formatCoords, formatEnumLabel, formatUnit, formatVolume, formatMoney, formatTonnesCo2e, isExpired, } from './utils';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theglobalfuel/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG3F,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGpE,OAAO,EACL,EAAE,EACF,QAAQ,EACR,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,UAAU,EACV,YAAY,EACZ,eAAe,EACf,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Asset detail — lifecycle, production capture, reserve estimates, emissions,
3
- * tags & discussion for a single resource asset.
4
- * @module theglobalfuel/pages/assets
5
- *
6
- * Reads `theAsset` (+ nested productionRecords / reserveEstimates) and
7
- * `theListEmissionRecords`; writes `theRecordProduction`,
8
- * `theCreateReserveEstimate`, `theTransitionAsset` and `theRetireAsset`. Child
9
- * creates invalidate the asset query in the hooks, so we just close the dialog
10
- * and let it refetch. No mock data.
11
- */
12
- export declare function AssetDetailPage(): import("react/jsx-runtime").JSX.Element;
13
- //# sourceMappingURL=AssetDetailPage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssetDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/assets/AssetDetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAsHH,wBAAgB,eAAe,4CAm3B9B"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Assets — the resource registry: list, filter & register energy/mineral assets.
3
- * @module theglobalfuel/pages/assets
4
- *
5
- * Reads `theListAssets` (cursor-paginated) with status / commodity / kind
6
- * filters; writes `theCreateAsset`. Rows drill into `assets/:id`. No mock data —
7
- * every field comes from the `wspace-theglobalfuel-svc` GraphQL contract.
8
- */
9
- export declare function AssetsPage(): import("react/jsx-runtime").JSX.Element;
10
- //# sourceMappingURL=AssetsPage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssetsPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/assets/AssetsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAqHH,wBAAgB,UAAU,4CAubzB"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Compliance — certifications, licenses & permits register.
3
- * @module theglobalfuel/pages/compliance
4
- *
5
- * Reads `theListComplianceCerts` (a cursor connection — `{ items, pageInfo }`);
6
- * writes `theCreateComplianceCert` and lifecycle transitions via
7
- * `theTransitionComplianceCert`. Every figure comes from the real
8
- * `wspace-theglobalfuel-svc` contract — no mock data.
9
- */
10
- export declare function CompliancePage(): import("react/jsx-runtime").JSX.Element;
11
- //# sourceMappingURL=CompliancePage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompliancePage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/compliance/CompliancePage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAsHH,wBAAgB,cAAc,4CAknB7B"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Contract detail — headline economics, delivery progress, shipments & collaboration.
3
- * @module theglobalfuel/pages/contracts
4
- *
5
- * Reads `theContract` (+ nested shipments); writes `theUpdateContract`,
6
- * `theTransitionContract`, `theScheduleShipment`, `theDeliverShipment`.
7
- */
8
- export declare function ContractDetailPage(): import("react/jsx-runtime").JSX.Element;
9
- //# sourceMappingURL=ContractDetailPage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContractDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/contracts/ContractDetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAuIH,wBAAgB,kBAAkB,4CAmyBjC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Offtake contracts — list, filter, and create commodity purchase/sale contracts.
3
- * @module theglobalfuel/pages/contracts
4
- *
5
- * Reads `theListContracts`; writes `theCreateContract`.
6
- */
7
- export declare function ContractsPage(): import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=ContractsPage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContractsPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/contracts/ContractsPage.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkHH,wBAAgB,aAAa,4CA4d5B"}