@burdenoff/microfe-proserviceworld 2026.706.2 → 2026.709.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/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +18199 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +43046 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -1
- package/dist/proserviceworld/ProServiceWorldRoot.d.ts +5 -0
- package/dist/proserviceworld/ProServiceWorldRoot.d.ts.map +1 -0
- package/dist/proserviceworld/ProServiceWorldRoutes.d.ts +2 -0
- package/dist/proserviceworld/ProServiceWorldRoutes.d.ts.map +1 -0
- package/dist/proserviceworld/components/DiscussionThread.d.ts +12 -0
- package/dist/proserviceworld/components/DiscussionThread.d.ts.map +1 -0
- package/dist/proserviceworld/components/DiscussionThread.js +1 -1
- package/dist/proserviceworld/components/DiscussionThread.js.map +1 -1
- package/dist/proserviceworld/components/ui.d.ts +82 -0
- package/dist/proserviceworld/components/ui.d.ts.map +1 -0
- package/dist/proserviceworld/components/ui.js +18 -18
- package/dist/proserviceworld/components/ui.js.map +1 -1
- package/dist/proserviceworld/hooks/useAnalytics.d.ts +18 -0
- package/dist/proserviceworld/hooks/useAnalytics.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/useAnalytics.js +21 -0
- package/dist/proserviceworld/hooks/useAnalytics.js.map +1 -0
- package/dist/proserviceworld/hooks/useEntityComments.d.ts +27 -0
- package/dist/proserviceworld/hooks/useEntityComments.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/useEntityComments.js.map +1 -1
- package/dist/proserviceworld/hooks/useFiles.d.ts +23 -0
- package/dist/proserviceworld/hooks/useFiles.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/useProServiceWorldApi.d.ts +351 -0
- package/dist/proserviceworld/hooks/useProServiceWorldApi.d.ts.map +1 -0
- package/dist/proserviceworld/index.d.ts +5 -0
- package/dist/proserviceworld/index.d.ts.map +1 -0
- package/dist/proserviceworld/index.js +1 -0
- package/dist/proserviceworld/pages/AnalyticsPage.d.ts +4 -0
- package/dist/proserviceworld/pages/AnalyticsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/AnalyticsPage.js +277 -111
- package/dist/proserviceworld/pages/AnalyticsPage.js.map +1 -1
- package/dist/proserviceworld/pages/ClientDetailPage.d.ts +4 -0
- package/dist/proserviceworld/pages/ClientDetailPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/ClientDetailPage.js +219 -151
- package/dist/proserviceworld/pages/ClientDetailPage.js.map +1 -1
- package/dist/proserviceworld/pages/ClientsPage.d.ts +9 -0
- package/dist/proserviceworld/pages/ClientsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/ClientsPage.js +180 -148
- package/dist/proserviceworld/pages/ClientsPage.js.map +1 -1
- package/dist/proserviceworld/pages/CompliancePage.d.ts +4 -0
- package/dist/proserviceworld/pages/CompliancePage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/CompliancePage.js +140 -96
- package/dist/proserviceworld/pages/CompliancePage.js.map +1 -1
- package/dist/proserviceworld/pages/ConflictsPage.d.ts +4 -0
- package/dist/proserviceworld/pages/ConflictsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/DashboardPage.d.ts +4 -0
- package/dist/proserviceworld/pages/DashboardPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/DashboardPage.js +221 -104
- package/dist/proserviceworld/pages/DashboardPage.js.map +1 -1
- package/dist/proserviceworld/pages/DocumentsPage.d.ts +4 -0
- package/dist/proserviceworld/pages/DocumentsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/EngagementDetailPage.d.ts +4 -0
- package/dist/proserviceworld/pages/EngagementDetailPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/EngagementDetailPage.js +233 -197
- package/dist/proserviceworld/pages/EngagementDetailPage.js.map +1 -1
- package/dist/proserviceworld/pages/EngagementsPage.d.ts +4 -0
- package/dist/proserviceworld/pages/EngagementsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/EngagementsPage.js +187 -136
- package/dist/proserviceworld/pages/EngagementsPage.js.map +1 -1
- package/dist/proserviceworld/pages/InvoicesPage.d.ts +4 -0
- package/dist/proserviceworld/pages/InvoicesPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/InvoicesPage.js +144 -129
- package/dist/proserviceworld/pages/InvoicesPage.js.map +1 -1
- package/dist/proserviceworld/pages/MattersPage.d.ts +4 -0
- package/dist/proserviceworld/pages/MattersPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/MattersPage.js +198 -142
- package/dist/proserviceworld/pages/MattersPage.js.map +1 -1
- package/dist/proserviceworld/pages/PracticeAreasPage.d.ts +4 -0
- package/dist/proserviceworld/pages/PracticeAreasPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/TimePage.d.ts +4 -0
- package/dist/proserviceworld/pages/TimePage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/TimePage.js +112 -92
- package/dist/proserviceworld/pages/TimePage.js.map +1 -1
- package/dist/proserviceworld/providers/ProServiceWorldProvider.d.ts +6 -0
- package/dist/proserviceworld/providers/ProServiceWorldProvider.d.ts.map +1 -0
- package/dist/proserviceworld/services/assistantApi.d.ts +74 -0
- package/dist/proserviceworld/services/assistantApi.d.ts.map +1 -0
- package/dist/proserviceworld/services/assistantApi.js +203 -0
- package/dist/proserviceworld/services/assistantApi.js.map +1 -0
- package/dist/proserviceworld/services/createSandboxAssistantTransport.d.ts +28 -0
- package/dist/proserviceworld/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/proserviceworld/services/createSandboxAssistantTransport.js +120 -0
- package/dist/proserviceworld/services/createSandboxAssistantTransport.js.map +1 -0
- package/dist/proserviceworld/types/index.d.ts +57 -0
- package/dist/proserviceworld/types/index.d.ts.map +1 -0
- package/dist/proserviceworld/utils/cn.d.ts +4 -0
- package/dist/proserviceworld/utils/cn.d.ts.map +1 -0
- package/dist/proserviceworld/utils/nav.d.ts +6 -0
- package/dist/proserviceworld/utils/nav.d.ts.map +1 -0
- package/dist/proserviceworld/utils/navigation.d.ts +2 -0
- package/dist/proserviceworld/utils/navigation.d.ts.map +1 -0
- package/dist/proserviceworld/utils/pageContext.d.ts +12 -0
- package/dist/proserviceworld/utils/pageContext.d.ts.map +1 -0
- package/dist/proserviceworld/utils/pageContext.js +74 -0
- package/dist/proserviceworld/utils/pageContext.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//#region src/proserviceworld/utils/pageContext.ts
|
|
2
|
+
var e = "proserviceworld";
|
|
3
|
+
function t() {
|
|
4
|
+
let t = window.location.href, n = window.location.pathname.split("/").filter(Boolean).slice(0, 3).join("/") || "home", i = r(window.location.pathname, window.location.search);
|
|
5
|
+
return {
|
|
6
|
+
currentUrl: t,
|
|
7
|
+
currentPage: n,
|
|
8
|
+
entityType: i.entityType,
|
|
9
|
+
entityId: i.entityId,
|
|
10
|
+
platform: e,
|
|
11
|
+
version: "2026.709.1",
|
|
12
|
+
viewportSize: `${window.innerWidth}x${window.innerHeight}`,
|
|
13
|
+
userAgent: navigator.userAgent,
|
|
14
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function n(e, t) {
|
|
18
|
+
return t.match(e);
|
|
19
|
+
}
|
|
20
|
+
function r(e, t) {
|
|
21
|
+
let r = new URLSearchParams(t);
|
|
22
|
+
for (let [t, r] of [
|
|
23
|
+
[/^\/proserviceworld\/clients\/([^/]+)$/, "PROSERVICEWORLD_CLIENT"],
|
|
24
|
+
[/^\/proserviceworld\/engagements\/([^/]+)$/, "PROSERVICEWORLD_ENGAGEMENT"],
|
|
25
|
+
[/^\/proserviceworld\/matters\/([^/]+)$/, "PROSERVICEWORLD_MATTER"],
|
|
26
|
+
[/^\/proserviceworld\/invoices\/([^/]+)$/, "PROSERVICEWORLD_INVOICE"],
|
|
27
|
+
[/^\/proserviceworld\/compliance\/([^/]+)$/, "PROSERVICEWORLD_COMPLIANCE"],
|
|
28
|
+
[/^\/proserviceworld\/conflicts\/([^/]+)$/, "PROSERVICEWORLD_CONFLICT"],
|
|
29
|
+
[/^\/proserviceworld\/documents\/([^/]+)$/, "PROSERVICEWORLD_DOCUMENT"],
|
|
30
|
+
[/^\/proserviceworld\/practice-areas\/([^/]+)$/, "PROSERVICEWORLD_PRACTICE_AREA"]
|
|
31
|
+
]) {
|
|
32
|
+
let i = n(t, e);
|
|
33
|
+
if (i) return {
|
|
34
|
+
entityType: r,
|
|
35
|
+
entityId: i[1],
|
|
36
|
+
metadata: { routePattern: t.source }
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
let i = {
|
|
40
|
+
clients: "PROSERVICEWORLD_CLIENT_LIST",
|
|
41
|
+
engagements: "PROSERVICEWORLD_ENGAGEMENT_LIST",
|
|
42
|
+
matters: "PROSERVICEWORLD_MATTER_LIST",
|
|
43
|
+
time: "PROSERVICEWORLD_TIME",
|
|
44
|
+
invoices: "PROSERVICEWORLD_INVOICE_LIST",
|
|
45
|
+
compliance: "PROSERVICEWORLD_COMPLIANCE_LIST",
|
|
46
|
+
conflicts: "PROSERVICEWORLD_CONFLICT_LIST",
|
|
47
|
+
documents: "PROSERVICEWORLD_DOCUMENT_LIST",
|
|
48
|
+
"practice-areas": "PROSERVICEWORLD_PRACTICE_AREA_LIST",
|
|
49
|
+
analytics: "PROSERVICEWORLD_ANALYTICS"
|
|
50
|
+
}, a = e.match(/^\/proserviceworld\/([^/]+)$/);
|
|
51
|
+
if (a) {
|
|
52
|
+
let e = i[a[1] ?? ""];
|
|
53
|
+
if (e) return {
|
|
54
|
+
entityType: e,
|
|
55
|
+
metadata: { routePattern: a[0] }
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
let o = r.get("tab") ?? (() => {
|
|
59
|
+
let t = e.split("/").filter(Boolean);
|
|
60
|
+
return t.length > 2 ? t[t.length - 1] : void 0;
|
|
61
|
+
})();
|
|
62
|
+
return {
|
|
63
|
+
activeTab: o ?? void 0,
|
|
64
|
+
metadata: {
|
|
65
|
+
...o ? { activeTab: o } : {},
|
|
66
|
+
...r.get("selectedTargetId") ? { selectedTargetId: r.get("selectedTargetId") } : {},
|
|
67
|
+
...r.get("actionId") ? { actionId: r.get("actionId") } : {}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { t as gatherPageContext };
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=pageContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageContext.js","names":[],"sources":["../../../src/proserviceworld/utils/pageContext.ts"],"sourcesContent":["/**\n * Page context gathering for ProServiceWorld.\n *\n * Captures the user's current browser context to be sent alongside every\n * assistant prompt. The exported shape matches the agent's allow-list contract\n * (`currentUrl`, `currentPage`, `entityType`, `entityId`, `platform`, `version`,\n * `viewportSize`).\n */\n\nimport type { PageContext } from '../types';\n\ninterface ConversationContextShape {\n entityType?: string;\n entityId?: string;\n activeTab?: string;\n metadata?: Record<string, unknown>;\n}\n\nconst PRODUCT_ID = 'proserviceworld';\n\nexport function gatherPageContext(): PageContext {\n const url = window.location.href;\n const pathSegments = window.location.pathname.split('/').filter(Boolean);\n const currentPage = pathSegments.slice(0, 3).join('/') || 'home';\n const entity = resolveProServiceWorldConversationContext(\n window.location.pathname,\n window.location.search\n );\n\n return {\n currentUrl: url,\n currentPage,\n entityType: entity.entityType,\n entityId: entity.entityId,\n platform: PRODUCT_ID,\n version: import.meta.env.VITE_APP_VERSION ?? '2026.709.1',\n viewportSize: `${window.innerWidth}x${window.innerHeight}`,\n userAgent: navigator.userAgent,\n timestamp: new Date().toISOString(),\n };\n}\n\nfunction matchPath(pattern: RegExp, pathname: string): RegExpMatchArray | null {\n return pathname.match(pattern);\n}\n\nexport function resolveProServiceWorldConversationContext(\n pathname: string,\n search: string\n): ConversationContextShape {\n const params = new URLSearchParams(search);\n\n const directMatches: Array<[RegExp, string]> = [\n [/^\\/proserviceworld\\/clients\\/([^/]+)$/, 'PROSERVICEWORLD_CLIENT'],\n [/^\\/proserviceworld\\/engagements\\/([^/]+)$/, 'PROSERVICEWORLD_ENGAGEMENT'],\n [/^\\/proserviceworld\\/matters\\/([^/]+)$/, 'PROSERVICEWORLD_MATTER'],\n [/^\\/proserviceworld\\/invoices\\/([^/]+)$/, 'PROSERVICEWORLD_INVOICE'],\n [/^\\/proserviceworld\\/compliance\\/([^/]+)$/, 'PROSERVICEWORLD_COMPLIANCE'],\n [/^\\/proserviceworld\\/conflicts\\/([^/]+)$/, 'PROSERVICEWORLD_CONFLICT'],\n [/^\\/proserviceworld\\/documents\\/([^/]+)$/, 'PROSERVICEWORLD_DOCUMENT'],\n [/^\\/proserviceworld\\/practice-areas\\/([^/]+)$/, 'PROSERVICEWORLD_PRACTICE_AREA'],\n ];\n\n for (const [pattern, entityType] of directMatches) {\n const match = matchPath(pattern, pathname);\n if (match) {\n return {\n entityType,\n entityId: match[1],\n metadata: { routePattern: pattern.source },\n };\n }\n }\n\n const listEntityMap: Record<string, string> = {\n clients: 'PROSERVICEWORLD_CLIENT_LIST',\n engagements: 'PROSERVICEWORLD_ENGAGEMENT_LIST',\n matters: 'PROSERVICEWORLD_MATTER_LIST',\n time: 'PROSERVICEWORLD_TIME',\n invoices: 'PROSERVICEWORLD_INVOICE_LIST',\n compliance: 'PROSERVICEWORLD_COMPLIANCE_LIST',\n conflicts: 'PROSERVICEWORLD_CONFLICT_LIST',\n documents: 'PROSERVICEWORLD_DOCUMENT_LIST',\n 'practice-areas': 'PROSERVICEWORLD_PRACTICE_AREA_LIST',\n analytics: 'PROSERVICEWORLD_ANALYTICS',\n };\n\n const listMatch = pathname.match(/^\\/proserviceworld\\/([^/]+)$/);\n if (listMatch) {\n const entityType = listEntityMap[listMatch[1] ?? ''];\n if (entityType) {\n return { entityType, metadata: { routePattern: listMatch[0] } };\n }\n }\n\n const activeTab =\n params.get('tab') ??\n (() => {\n const segments = pathname.split('/').filter(Boolean);\n return segments.length > 2 ? segments[segments.length - 1] : undefined;\n })();\n\n return {\n activeTab: activeTab ?? undefined,\n metadata: {\n ...(activeTab ? { activeTab } : {}),\n ...(params.get('selectedTargetId')\n ? { selectedTargetId: params.get('selectedTargetId') }\n : {}),\n ...(params.get('actionId') ? { actionId: params.get('actionId') } : {}),\n },\n };\n}\n"],"mappings":";AAkBA,IAAM,IAAa;AAEnB,SAAgB,IAAiC;CAC/C,IAAM,IAAM,OAAO,SAAS,MAEtB,IADe,OAAO,SAAS,SAAS,MAAM,IAAI,CAAC,OAAO,QAAQ,CACvC,MAAM,GAAG,EAAE,CAAC,KAAK,IAAI,IAAI,QACpD,IAAS,EACb,OAAO,SAAS,UAChB,OAAO,SAAS,OACjB;AAED,QAAO;EACL,YAAY;EACZ;EACA,YAAY,EAAO;EACnB,UAAU,EAAO;EACjB,UAAU;EACV,SAA6C;EAC7C,cAAc,GAAG,OAAO,WAAW,GAAG,OAAO;EAC7C,WAAW,UAAU;EACrB,4BAAW,IAAI,MAAM,EAAC,aAAa;EACpC;;AAGH,SAAS,EAAU,GAAiB,GAA2C;AAC7E,QAAO,EAAS,MAAM,EAAQ;;AAGhC,SAAgB,EACd,GACA,GAC0B;CAC1B,IAAM,IAAS,IAAI,gBAAgB,EAAO;AAa1C,MAAK,IAAM,CAAC,GAAS,MAX0B;EAC7C,CAAC,yCAAyC,yBAAyB;EACnE,CAAC,6CAA6C,6BAA6B;EAC3E,CAAC,yCAAyC,yBAAyB;EACnE,CAAC,0CAA0C,0BAA0B;EACrE,CAAC,4CAA4C,6BAA6B;EAC1E,CAAC,2CAA2C,2BAA2B;EACvE,CAAC,2CAA2C,2BAA2B;EACvE,CAAC,gDAAgD,gCAAgC;EAClF,EAEkD;EACjD,IAAM,IAAQ,EAAU,GAAS,EAAS;AAC1C,MAAI,EACF,QAAO;GACL;GACA,UAAU,EAAM;GAChB,UAAU,EAAE,cAAc,EAAQ,QAAQ;GAC3C;;CAIL,IAAM,IAAwC;EAC5C,SAAS;EACT,aAAa;EACb,SAAS;EACT,MAAM;EACN,UAAU;EACV,YAAY;EACZ,WAAW;EACX,WAAW;EACX,kBAAkB;EAClB,WAAW;EACZ,EAEK,IAAY,EAAS,MAAM,+BAA+B;AAChE,KAAI,GAAW;EACb,IAAM,IAAa,EAAc,EAAU,MAAM;AACjD,MAAI,EACF,QAAO;GAAE;GAAY,UAAU,EAAE,cAAc,EAAU,IAAI;GAAE;;CAInE,IAAM,IACJ,EAAO,IAAI,MAAM,WACV;EACL,IAAM,IAAW,EAAS,MAAM,IAAI,CAAC,OAAO,QAAQ;AACpD,SAAO,EAAS,SAAS,IAAI,EAAS,EAAS,SAAS,KAAK,KAAA;KAC3D;AAEN,QAAO;EACL,WAAW,KAAa,KAAA;EACxB,UAAU;GACR,GAAI,IAAY,EAAE,cAAW,GAAG,EAAE;GAClC,GAAI,EAAO,IAAI,mBAAmB,GAC9B,EAAE,kBAAkB,EAAO,IAAI,mBAAmB,EAAE,GACpD,EAAE;GACN,GAAI,EAAO,IAAI,WAAW,GAAG,EAAE,UAAU,EAAO,IAAI,WAAW,EAAE,GAAG,EAAE;GACvE;EACF"}
|