@burdenoff/microfe-timecampus 2026.710.1 → 2026.713.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.
Files changed (27) hide show
  1. package/dist/index.js +2 -1
  2. package/dist/services/createSandboxAssistantTransport.d.ts +8 -3
  3. package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -1
  4. package/dist/services/createSandboxAssistantTransport.js +12 -0
  5. package/dist/services/createSandboxAssistantTransport.js.map +1 -0
  6. package/dist/timecampus/components/DataTable.js +1 -0
  7. package/dist/timecampus/components/FilterBar.js +1 -0
  8. package/dist/timecampus/components/charts/BalanceWheel.js +38 -43
  9. package/dist/timecampus/components/charts/BalanceWheel.js.map +1 -1
  10. package/dist/timecampus/components/charts/BarsChart.js +24 -31
  11. package/dist/timecampus/components/charts/BarsChart.js.map +1 -1
  12. package/dist/timecampus/components/charts/DonutChart.js +36 -40
  13. package/dist/timecampus/components/charts/DonutChart.js.map +1 -1
  14. package/dist/timecampus/components/charts/RadialGauge.js +14 -17
  15. package/dist/timecampus/components/charts/RadialGauge.js.map +1 -1
  16. package/dist/timecampus/components/charts/Sparkline.js +2 -0
  17. package/dist/timecampus/components/charts/TrendChart.js +47 -57
  18. package/dist/timecampus/components/charts/TrendChart.js.map +1 -1
  19. package/dist/timecampus/index.d.ts +1 -0
  20. package/dist/timecampus/index.d.ts.map +1 -1
  21. package/dist/timecampus/index.js +1 -0
  22. package/dist/timecampus/providers/TimeCampusProvider.js +32 -32
  23. package/dist/timecampus/utils/helpers.js +2 -2
  24. package/package.json +2 -2
  25. package/dist/_virtual/_rolldown/runtime.js +0 -20
  26. package/dist/services/assistantApi.d.ts +0 -49
  27. package/dist/services/assistantApi.d.ts.map +0 -1
@@ -1,40 +1,40 @@
1
- import { CombinedGraphQLErrors as e } from "../../node_modules/@apollo/client/errors/CombinedGraphQLErrors.js";
2
- import { createContext as t, useCallback as n, useContext as r, useMemo as i } from "react";
3
- import { MemoryRouter as a, useNavigate as o } from "react-router-dom";
4
- import { ApolloClient as s, HttpLink as c, InMemoryCache as l, from as u } from "@apollo/client";
5
- import { onError as d } from "@apollo/client/link/error";
1
+ import { createContext as e, useCallback as t, useContext as n, useMemo as r } from "react";
2
+ import { MemoryRouter as i, useNavigate as a } from "react-router-dom";
3
+ import { ApolloClient as o, HttpLink as s, InMemoryCache as c, from as l } from "@apollo/client";
4
+ import { onError as u } from "@apollo/client/link/error";
5
+ import { CombinedGraphQLErrors as d } from "@apollo/client/errors";
6
6
  import { setContext as f } from "@apollo/client/link/context";
7
7
  import { ApolloProvider as p } from "@apollo/client/react";
8
8
  import { jsx as m } from "react/jsx-runtime";
9
9
  //#region src/timecampus/providers/TimeCampusProvider.tsx
10
- var h = t(null), g = () => {
11
- let e = r(h);
10
+ var h = e(null), g = () => {
11
+ let e = n(h);
12
12
  if (!e) throw Error("useTimeCampus must be used within TimeCampusProvider");
13
13
  return e;
14
14
  }, _ = () => {
15
- let { navigate: e, basePath: t } = g(), r = o();
16
- return n((n) => {
17
- let i = t && t !== "/" ? `${t}${n}` : n;
15
+ let { navigate: e, basePath: n } = g(), r = a();
16
+ return t((t) => {
17
+ let i = n && n !== "/" ? `${n}${t}` : t;
18
18
  e ? e(i) : r(i);
19
19
  }, [
20
20
  e,
21
- t,
21
+ n,
22
22
  r
23
23
  ]);
24
- }, v = ({ children: t, basePath: n, navigate: r, currentUser: o, workspaceId: g, tenantId: _, apiGatewayUrl: v, authToken: y, workspaceToken: b, registerNavItems: x, registerFooterItems: S, onAuthError: C }) => {
25
- let w = i(() => new s({
26
- link: u([
27
- d(({ error: t }) => {
28
- if (e.is(t)) for (let e of t.errors) {
29
- let t = e.extensions?.code;
30
- if (t === "UNAUTHENTICATED" || t === "FORBIDDEN") {
24
+ }, v = ({ children: e, basePath: t, navigate: n, currentUser: a, workspaceId: g, tenantId: _, apiGatewayUrl: v, authToken: y, workspaceToken: b, registerNavItems: x, registerFooterItems: S, onAuthError: C }) => {
25
+ let w = r(() => new o({
26
+ link: l([
27
+ u(({ error: e }) => {
28
+ if (d.is(e)) for (let t of e.errors) {
29
+ let e = t.extensions?.code;
30
+ if (e === "UNAUTHENTICATED" || e === "FORBIDDEN") {
31
31
  console.warn("[TimeCampus] Auth error detected — notifying host shell"), C?.();
32
32
  return;
33
33
  }
34
34
  }
35
- else if (t) {
36
- let e = t.message ?? "";
37
- (e.includes("401") || e.includes("403") || e.includes("Unauthorized")) && (console.warn("[TimeCampus] Auth network error — notifying host shell"), C?.());
35
+ else if (e) {
36
+ let t = e.message ?? "";
37
+ (t.includes("401") || t.includes("403") || t.includes("Unauthorized")) && (console.warn("[TimeCampus] Auth network error — notifying host shell"), C?.());
38
38
  }
39
39
  }),
40
40
  f((e, { headers: t }) => ({ headers: {
@@ -43,12 +43,12 @@ var h = t(null), g = () => {
43
43
  ...b ? { "X-Workspace-Authorization": `Bearer ${b}` } : {},
44
44
  ...g ? { "x-workspace-id": g } : {},
45
45
  ..._ ? { "x-tenant-id": _ } : {},
46
- ...o?.id ? { "x-actor-id": o.id } : {},
47
- ...o?.id ? { "x-actor-type": "user" } : {}
46
+ ...a?.id ? { "x-actor-id": a.id } : {},
47
+ ...a?.id ? { "x-actor-type": "user" } : {}
48
48
  } })),
49
- new c({ uri: v ? v.endsWith("/graphql") ? v : `${v}/workspaces/graphql` : "/workspaces/graphql" })
49
+ new s({ uri: v ? v.endsWith("/graphql") ? v : `${v}/workspaces/graphql` : "/workspaces/graphql" })
50
50
  ]),
51
- cache: new l(),
51
+ cache: new c(),
52
52
  defaultOptions: {
53
53
  watchQuery: {
54
54
  fetchPolicy: "cache-and-network",
@@ -61,14 +61,14 @@ var h = t(null), g = () => {
61
61
  v,
62
62
  y,
63
63
  b,
64
- o?.id,
64
+ a?.id,
65
65
  C,
66
66
  _,
67
67
  g
68
68
  ]), T = {
69
- basePath: n,
70
- navigate: r,
71
- currentUser: o,
69
+ basePath: t,
70
+ navigate: n,
71
+ currentUser: a,
72
72
  workspaceId: g,
73
73
  tenantId: _,
74
74
  apiGatewayUrl: v,
@@ -77,13 +77,13 @@ var h = t(null), g = () => {
77
77
  registerNavItems: x,
78
78
  registerFooterItems: S,
79
79
  onAuthError: C
80
- }, E = !!n, D = /* @__PURE__ */ m(h.Provider, {
80
+ }, E = !!t, D = /* @__PURE__ */ m(h.Provider, {
81
81
  value: T,
82
- children: t
82
+ children: e
83
83
  });
84
84
  return E ? D : /* @__PURE__ */ m(p, {
85
85
  client: w,
86
- children: /* @__PURE__ */ m(a, { children: D })
86
+ children: /* @__PURE__ */ m(i, { children: D })
87
87
  });
88
88
  };
89
89
  //#endregion
@@ -1,5 +1,5 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
2
- import { twMerge as t } from "../../node_modules/tailwind-merge/dist/bundle-mjs.js";
1
+ import { clsx as e } from "clsx";
2
+ import { twMerge as t } from "tailwind-merge";
3
3
  //#region src/timecampus/utils/helpers.ts
4
4
  function n(...n) {
5
5
  return t(e(n));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-timecampus",
3
- "version": "2026.710.1",
3
+ "version": "2026.713.1",
4
4
  "description": "Burdenoff TimeCampus Microfrontend - AI-powered time management and productivity platform",
5
5
  "type": "module",
6
6
  "files": [
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@apollo/client": "^4.0.11",
47
- "@burdenoff/fe-libs": "2026.625.5",
47
+ "@burdenoff/fe-libs": "2026.713.6",
48
48
  "clsx": "^2.1.1",
49
49
  "date-fns": "^4.1.0",
50
50
  "graphql": "^16.12.0",
@@ -1,20 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, n) => {
3
- let r = {};
4
- for (var i in e) t(r, i, {
5
- get: e[i],
6
- enumerable: !0
7
- });
8
- return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
- }, c = (e, i, o, s) => {
10
- if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
11
- get: ((e) => i[e]).bind(null, d),
12
- enumerable: !(s = n(i, d)) || s.enumerable
13
- });
14
- return e;
15
- }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
- value: n,
17
- enumerable: !0
18
- }) : a, n));
19
- //#endregion
20
- export { o as __commonJSMin, s as __exportAll, l as __toESM };
@@ -1,49 +0,0 @@
1
- import { ApolloClient } from '@apollo/client';
2
- import { AssistantMode } from '../types/assistant';
3
- import { PageContext } from '../utils/pageContext';
4
-
5
- export interface AssistantRawMessagePart {
6
- type?: string;
7
- text?: string;
8
- tool?: string;
9
- state?: {
10
- status?: string;
11
- input?: unknown;
12
- output?: unknown;
13
- raw?: unknown;
14
- };
15
- }
16
- export interface AssistantRawMessage {
17
- info?: {
18
- id?: string;
19
- role?: string;
20
- providerID?: string;
21
- modelID?: string;
22
- tokens?: {
23
- input: number;
24
- output: number;
25
- };
26
- time?: {
27
- created?: number;
28
- completed?: number;
29
- };
30
- };
31
- parts?: AssistantRawMessagePart[];
32
- }
33
- export interface AssistantSandboxAuthContext {
34
- accessToken?: string | null;
35
- workspaceToken?: string | null;
36
- userId?: string | null;
37
- organizationId?: string | null;
38
- }
39
- export declare function findExistingSandbox(_apollo: ApolloClient, workspaceId: string, mode: AssistantMode, authContext?: AssistantSandboxAuthContext): Promise<string | null>;
40
- export declare function createAssistantSandbox(_apollo: ApolloClient, mode: AssistantMode, workspaceId: string, authContext?: AssistantSandboxAuthContext): Promise<string>;
41
- export declare function waitForSandboxReady(_apollo: ApolloClient, sandboxId: string, workspaceId: string, authContext?: AssistantSandboxAuthContext, maxWaitMs?: number): Promise<void>;
42
- export declare function waitForAssistantServiceReady(apollo: ApolloClient, sandboxId: string, workspaceId: string, authContext?: AssistantSandboxAuthContext, maxWaitMs?: number): Promise<void>;
43
- export declare function createAssistantSession(apollo: ApolloClient, sandboxId: string, workspaceId: string, mode: AssistantMode, authContext?: AssistantSandboxAuthContext): Promise<{
44
- sessionId: string;
45
- }>;
46
- export declare function sendAssistantPromptAsync(apollo: ApolloClient, sandboxId: string, workspaceId: string, sessionId: string, prompt: string, mode: AssistantMode, pageContext?: PageContext, authContext?: AssistantSandboxAuthContext): Promise<void>;
47
- export declare function getAssistantMessages(apollo: ApolloClient, sandboxId: string, workspaceId: string, sessionId: string, authContext?: AssistantSandboxAuthContext, limit?: number): Promise<AssistantRawMessage[]>;
48
- export declare function extendAssistantSandboxTTL(_apollo: ApolloClient, sandboxId: string, workspaceId: string, additionalSeconds?: number, authContext?: AssistantSandboxAuthContext): Promise<void>;
49
- //# sourceMappingURL=assistantApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assistantApi.d.ts","sourceRoot":"","sources":["../../src/services/assistantApi.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAwHvD,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,GAAG,CAAC,EAAE,OAAO,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EA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