@burdenoff/microfe-subscriberbot 2026.706.3 → 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.
- 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 +23527 -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 +57851 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -1
- package/dist/subscriberbot/SubscriberBotRoot.d.ts +5 -0
- package/dist/subscriberbot/SubscriberBotRoot.d.ts.map +1 -0
- package/dist/subscriberbot/SubscriberBotRoot.js +56 -40
- package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
- package/dist/subscriberbot/SubscriberBotRoutes.d.ts +4 -0
- package/dist/subscriberbot/SubscriberBotRoutes.d.ts.map +1 -0
- package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
- package/dist/subscriberbot/components/EmptyState.d.ts +18 -0
- package/dist/subscriberbot/components/EmptyState.d.ts.map +1 -0
- package/dist/subscriberbot/components/MetricsCard.d.ts +16 -0
- package/dist/subscriberbot/components/MetricsCard.d.ts.map +1 -0
- package/dist/subscriberbot/components/Modal.d.ts +13 -0
- package/dist/subscriberbot/components/Modal.d.ts.map +1 -0
- package/dist/subscriberbot/components/PageLayout.d.ts +23 -0
- package/dist/subscriberbot/components/PageLayout.d.ts.map +1 -0
- package/dist/subscriberbot/components/StateViews.d.ts +24 -0
- package/dist/subscriberbot/components/StateViews.d.ts.map +1 -0
- package/dist/subscriberbot/components/StatusBadge.d.ts +9 -0
- package/dist/subscriberbot/components/StatusBadge.d.ts.map +1 -0
- package/dist/subscriberbot/components/index.d.ts +13 -0
- package/dist/subscriberbot/components/index.d.ts.map +1 -0
- package/dist/subscriberbot/components/viz.d.ts +58 -0
- package/dist/subscriberbot/components/viz.d.ts.map +1 -0
- package/dist/subscriberbot/components/viz.js.map +1 -1
- package/dist/subscriberbot/config/assistantUsecases.d.ts +13 -0
- package/dist/subscriberbot/config/assistantUsecases.d.ts.map +1 -0
- package/dist/subscriberbot/context/SubscriberBotContext.d.ts +16 -0
- package/dist/subscriberbot/context/SubscriberBotContext.d.ts.map +1 -0
- package/dist/subscriberbot/context/index.d.ts +6 -0
- package/dist/subscriberbot/context/index.d.ts.map +1 -0
- package/dist/subscriberbot/hooks/index.d.ts +7 -0
- package/dist/subscriberbot/hooks/index.d.ts.map +1 -0
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts +105 -0
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -0
- package/dist/subscriberbot/index.d.ts +12 -0
- package/dist/subscriberbot/index.d.ts.map +1 -0
- package/dist/subscriberbot/index.js +1 -0
- package/dist/subscriberbot/pages/AssetVaultPage.d.ts +4 -0
- package/dist/subscriberbot/pages/AssetVaultPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
- package/dist/subscriberbot/pages/DashboardPage.d.ts +12 -0
- package/dist/subscriberbot/pages/DashboardPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
- package/dist/subscriberbot/pages/InboxPage.d.ts +12 -0
- package/dist/subscriberbot/pages/InboxPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
- package/dist/subscriberbot/pages/InsightsPage.d.ts +4 -0
- package/dist/subscriberbot/pages/InsightsPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
- package/dist/subscriberbot/pages/InvoicesPage.d.ts +13 -0
- package/dist/subscriberbot/pages/InvoicesPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
- package/dist/subscriberbot/pages/WorkflowsPage.d.ts +15 -0
- package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts +11 -0
- package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts +8 -0
- package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts +11 -0
- package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts +10 -0
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts +10 -0
- package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts +12 -0
- package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts +13 -0
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts +10 -0
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts +10 -0
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
- package/dist/subscriberbot/services/createSandboxAssistantTransport.d.ts +24 -0
- package/dist/subscriberbot/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/subscriberbot/services/createSandboxAssistantTransport.js +14 -0
- package/dist/subscriberbot/services/createSandboxAssistantTransport.js.map +1 -0
- package/dist/subscriberbot/store/index.d.ts +6 -0
- package/dist/subscriberbot/store/index.d.ts.map +1 -0
- package/dist/subscriberbot/store/subscriberbotStore.d.ts +60 -0
- package/dist/subscriberbot/store/subscriberbotStore.d.ts.map +1 -0
- package/dist/subscriberbot/types/assistant.d.ts +57 -0
- package/dist/subscriberbot/types/assistant.d.ts.map +1 -0
- package/dist/subscriberbot/types/index.d.ts +465 -0
- package/dist/subscriberbot/types/index.d.ts.map +1 -0
- package/dist/subscriberbot/utils/cn.d.ts +4 -0
- package/dist/subscriberbot/utils/cn.d.ts.map +1 -0
- package/dist/subscriberbot/utils/formatters.d.ts +53 -0
- package/dist/subscriberbot/utils/formatters.d.ts.map +1 -0
- package/dist/subscriberbot/utils/index.d.ts +8 -0
- package/dist/subscriberbot/utils/index.d.ts.map +1 -0
- package/dist/subscriberbot/utils/navigation.d.ts +20 -0
- package/dist/subscriberbot/utils/navigation.d.ts.map +1 -0
- package/dist/subscriberbot/utils/pageContext.d.ts +21 -0
- package/dist/subscriberbot/utils/pageContext.d.ts.map +1 -0
- package/dist/subscriberbot/utils/pageContext.js +47 -0
- package/dist/subscriberbot/utils/pageContext.js.map +1 -0
- package/package.json +7 -3
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formatting utilities for the Subscriber Bot microfrontend
|
|
3
|
+
* @module subscriberbot/utils/formatters
|
|
4
|
+
*
|
|
5
|
+
* Subscriber Bot is a global product — relationships are billed in many
|
|
6
|
+
* currencies. Formatting is therefore currency-aware (each Relationship /
|
|
7
|
+
* Invoice / Plan carries its own ISO currency code).
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Format an amount as currency using the relationship/invoice's own ISO code.
|
|
11
|
+
*
|
|
12
|
+
* @param amount - The numeric amount to format
|
|
13
|
+
* @param currency - ISO 4217 currency code (e.g. "USD", "EUR", "INR")
|
|
14
|
+
* @param options - Optional Intl.NumberFormat overrides
|
|
15
|
+
* @returns Formatted currency string (e.g. "$12.00")
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* formatCurrency(12, 'USD') // => "$12.00"
|
|
19
|
+
* formatCurrency(999, 'INR', { minimumFractionDigits: 0 }) // => "₹999"
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatCurrency(amount: number, currency?: string, options?: Partial<Intl.NumberFormatOptions>): string;
|
|
22
|
+
/**
|
|
23
|
+
* Format a date string or Date object into a human-readable date.
|
|
24
|
+
*
|
|
25
|
+
* @param date - ISO date string or Date object
|
|
26
|
+
* @param options - Optional Intl.DateTimeFormat options
|
|
27
|
+
* @returns Formatted date string (e.g. "15 Jan 2026")
|
|
28
|
+
*/
|
|
29
|
+
export declare function formatDate(date: string | Date | null | undefined, options?: Partial<Intl.DateTimeFormatOptions>): string;
|
|
30
|
+
/**
|
|
31
|
+
* Format a date-time into a date + time string.
|
|
32
|
+
*/
|
|
33
|
+
export declare function formatDateTime(date: string | Date | null | undefined, options?: Partial<Intl.DateTimeFormatOptions>): string;
|
|
34
|
+
/**
|
|
35
|
+
* Format a date into a relative time string (e.g. "2 hours ago", "in 3 days").
|
|
36
|
+
*
|
|
37
|
+
* @param date - ISO date string or Date object
|
|
38
|
+
* @returns Human-readable relative time string
|
|
39
|
+
*/
|
|
40
|
+
export declare function formatRelativeTime(date: string | Date | null | undefined): string;
|
|
41
|
+
/**
|
|
42
|
+
* Format a number with locale grouping.
|
|
43
|
+
*/
|
|
44
|
+
export declare function formatNumber(value: number, options?: Partial<Intl.NumberFormatOptions>): string;
|
|
45
|
+
/**
|
|
46
|
+
* Turn an ENUM_LIKE_TOKEN into a human "Enum Like Token" label.
|
|
47
|
+
*/
|
|
48
|
+
export declare function formatEnumLabel(value: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Format a billing interval enum into a short suffix (e.g. "MONTHLY" → "/mo").
|
|
51
|
+
*/
|
|
52
|
+
export declare function formatIntervalSuffix(interval: string): string;
|
|
53
|
+
//# sourceMappingURL=formatters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/utils/formatters.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,SAAQ,EAChB,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAC1C,MAAM,CAaR;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAC5C,MAAM,CAUR;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAC5C,MAAM,CAYR;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CA4BjF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAE/F;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKrD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAqB7D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities Index
|
|
3
|
+
* @module subscriberbot/utils
|
|
4
|
+
*/
|
|
5
|
+
export { cn } from './cn';
|
|
6
|
+
export { joinPath } from './navigation';
|
|
7
|
+
export { formatCurrency, formatDate, formatDateTime, formatRelativeTime, formatNumber, formatEnumLabel, formatIntervalSuffix, } from './formatters';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/utils/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EACL,cAAc,EACd,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,oBAAoB,GACrB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation utilities for the SubscriberBot microfrontend
|
|
3
|
+
* @module subscriberbot/utils
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Join basePath with a relative path, correctly handling slashes
|
|
7
|
+
*
|
|
8
|
+
* @param basePath - The base path (e.g., '/' or '/subscriberbot')
|
|
9
|
+
* @param relativePath - The relative path (e.g., 'carts/new' or '/carts/new')
|
|
10
|
+
* @returns The joined path (e.g., '/subscriberbot/carts/new')
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* joinPath('/', 'carts/new') // => '/carts/new'
|
|
14
|
+
* joinPath('/', '/carts/new') // => '/carts/new'
|
|
15
|
+
* joinPath('/subscriberbot', 'orders') // => '/subscriberbot/orders'
|
|
16
|
+
* joinPath('/subscriberbot/', 'orders') // => '/subscriberbot/orders'
|
|
17
|
+
* joinPath('/subscriberbot', '') // => '/subscriberbot'
|
|
18
|
+
*/
|
|
19
|
+
export declare function joinPath(basePath: string, relativePath: string): string;
|
|
20
|
+
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/utils/navigation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAcvE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface ConversationContextShape {
|
|
2
|
+
entityType?: string;
|
|
3
|
+
entityId?: string;
|
|
4
|
+
activeTab?: string;
|
|
5
|
+
metadata?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export interface PageContext {
|
|
8
|
+
currentUrl: string;
|
|
9
|
+
currentPage: string;
|
|
10
|
+
entityType?: string;
|
|
11
|
+
entityId?: string;
|
|
12
|
+
platform: string;
|
|
13
|
+
version: string;
|
|
14
|
+
viewportSize: string;
|
|
15
|
+
userAgent: string;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function gatherPageContext(): PageContext;
|
|
19
|
+
export declare function resolveSubscriberBotConversationContext(pathname: string, search: string): ConversationContextShape;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=pageContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageContext.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/utils/pageContext.ts"],"names":[],"mappings":"AAAA,UAAU,wBAAwB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,iBAAiB,IAAI,WAAW,CAoB/C;AAMD,wBAAgB,uCAAuC,CACrD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,wBAAwB,CAoC1B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region src/subscriberbot/utils/pageContext.ts
|
|
2
|
+
function e() {
|
|
3
|
+
let e = window.location.href, t = window.location.pathname.split("/").filter(Boolean).slice(0, 3).join("/") || "home", r = n(window.location.pathname, window.location.search);
|
|
4
|
+
return {
|
|
5
|
+
currentUrl: e,
|
|
6
|
+
currentPage: t,
|
|
7
|
+
entityType: r.entityType,
|
|
8
|
+
entityId: r.entityId,
|
|
9
|
+
platform: "subscriberbot",
|
|
10
|
+
version: "2026.615.1",
|
|
11
|
+
viewportSize: `${window.innerWidth}x${window.innerHeight}`,
|
|
12
|
+
userAgent: navigator.userAgent,
|
|
13
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function t(e, t) {
|
|
17
|
+
return t.match(e);
|
|
18
|
+
}
|
|
19
|
+
function n(e, n) {
|
|
20
|
+
let r = new URLSearchParams(n);
|
|
21
|
+
for (let [n, r] of [
|
|
22
|
+
[/^\/subscriberbot\/relationships\/([^/]+)$/, "SUBSCRIBERBOT_RELATIONSHIP"],
|
|
23
|
+
[/^\/subscriberbot\/providers\/([^/]+)$/, "SUBSCRIBERBOT_PROVIDER"],
|
|
24
|
+
[/^\/subscriberbot\/agents\/([^/]+)$/, "SUBSCRIBERBOT_AGENT"],
|
|
25
|
+
[/^\/subscriberbot\/invoices\/([^/]+)$/, "SUBSCRIBERBOT_INVOICE"],
|
|
26
|
+
[/^\/subscriberbot\/workflows\/([^/]+)$/, "SUBSCRIBERBOT_WORKFLOW"]
|
|
27
|
+
]) {
|
|
28
|
+
let i = t(n, e);
|
|
29
|
+
if (i) return {
|
|
30
|
+
entityType: r,
|
|
31
|
+
entityId: i[1],
|
|
32
|
+
metadata: { routePattern: n.source }
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
let i = r.get("tab") ?? (() => {
|
|
36
|
+
let t = e.split("/").filter(Boolean);
|
|
37
|
+
return t.length > 2 ? t[t.length - 1] : void 0;
|
|
38
|
+
})();
|
|
39
|
+
return {
|
|
40
|
+
activeTab: i ?? void 0,
|
|
41
|
+
metadata: { ...i ? { activeTab: i } : {} }
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { e as gatherPageContext };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=pageContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageContext.js","names":[],"sources":["../../../src/subscriberbot/utils/pageContext.ts"],"sourcesContent":["interface ConversationContextShape {\n entityType?: string;\n entityId?: string;\n activeTab?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport interface PageContext {\n currentUrl: string;\n currentPage: string;\n entityType?: string;\n entityId?: string;\n platform: string;\n version: string;\n viewportSize: string;\n userAgent: string;\n timestamp: string;\n}\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 = resolveSubscriberBotConversationContext(\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: 'subscriberbot',\n version: import.meta.env.VITE_APP_VERSION ?? '2026.615.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 resolveSubscriberBotConversationContext(\n pathname: string,\n search: string\n): ConversationContextShape {\n const params = new URLSearchParams(search);\n const directMatches: Array<[RegExp, string]> = [\n [/^\\/subscriberbot\\/relationships\\/([^/]+)$/, 'SUBSCRIBERBOT_RELATIONSHIP'],\n [/^\\/subscriberbot\\/providers\\/([^/]+)$/, 'SUBSCRIBERBOT_PROVIDER'],\n [/^\\/subscriberbot\\/agents\\/([^/]+)$/, 'SUBSCRIBERBOT_AGENT'],\n [/^\\/subscriberbot\\/invoices\\/([^/]+)$/, 'SUBSCRIBERBOT_INVOICE'],\n [/^\\/subscriberbot\\/workflows\\/([^/]+)$/, 'SUBSCRIBERBOT_WORKFLOW'],\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: {\n routePattern: pattern.source,\n },\n };\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 },\n };\n}\n"],"mappings":";AAmBA,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;AAS1C,MAAK,IAAM,CAAC,GAAS,MAR0B;EAC7C,CAAC,6CAA6C,6BAA6B;EAC3E,CAAC,yCAAyC,yBAAyB;EACnE,CAAC,sCAAsC,sBAAsB;EAC7D,CAAC,wCAAwC,wBAAwB;EACjE,CAAC,yCAAyC,yBAAyB;EACpE,EAEkD;EACjD,IAAM,IAAQ,EAAU,GAAS,EAAS;AAC1C,MAAI,EACF,QAAO;GACL;GACA,UAAU,EAAM;GAChB,UAAU,EACR,cAAc,EAAQ,QACvB;GACF;;CAIL,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,EACR,GAAI,IAAY,EAAE,cAAW,GAAG,EAAE,EACnC;EACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-subscriberbot",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.713.1",
|
|
4
4
|
"description": "Burdenoff SubscriberBot Microfrontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./services/createSandboxAssistantTransport": {
|
|
21
|
+
"types": "./dist/subscriberbot/services/createSandboxAssistantTransport.d.ts",
|
|
22
|
+
"import": "./dist/subscriberbot/services/createSandboxAssistantTransport.js"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
"main": "./dist/index.js",
|
|
@@ -40,7 +44,7 @@
|
|
|
40
44
|
},
|
|
41
45
|
"dependencies": {
|
|
42
46
|
"@apollo/client": "^4.0.11",
|
|
43
|
-
"@burdenoff/fe-libs": "2026.
|
|
47
|
+
"@burdenoff/fe-libs": "2026.713.6",
|
|
44
48
|
"@tanstack/react-query": "^5.90.16",
|
|
45
49
|
"clsx": "^2.1.1",
|
|
46
50
|
"graphql": "^16.12.0",
|
|
@@ -86,7 +90,7 @@
|
|
|
86
90
|
"access": "restricted"
|
|
87
91
|
},
|
|
88
92
|
"overrides": {
|
|
89
|
-
"@burdenoff/fe-libs": "2026.
|
|
93
|
+
"@burdenoff/fe-libs": "2026.713.6",
|
|
90
94
|
"lodash": ">=4.17.21",
|
|
91
95
|
"lodash-es": ">=4.17.21",
|
|
92
96
|
"dompurify": ">=3.3.4",
|