@burdenoff/microfe-headshotmarketing 2026.1030.1 → 2026.1030.3
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.
|
@@ -1,27 +1,72 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Page context
|
|
3
|
-
* to be sent alongside every assistant prompt for better AI awareness.
|
|
2
|
+
* Page context for the HeadshotMarketing AI assistant (BOFF-3797).
|
|
4
3
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Captures where the marketer is in the app (the URL, the page and the record
|
|
5
|
+
* on screen) so the floating assistant can act on "this campaign", "this
|
|
6
|
+
* event" or "here" without asking which record the user means.
|
|
7
|
+
*
|
|
8
|
+
* Data boundary: this module emits ids and route names only. It never reads
|
|
9
|
+
* the DOM, the Apollo cache or form state, so contact names, e-mail addresses,
|
|
10
|
+
* attendee details and draft copy cannot reach the assistant through it. The
|
|
11
|
+
* query string and fragment are dropped from `currentUrl` as well: they can
|
|
12
|
+
* carry search text or names (the ad-campaign create page receives
|
|
13
|
+
* `audienceName`), and the sandbox's key allow-list only filters keys after
|
|
14
|
+
* the payload has left the browser. `userAgent` and `timestamp` are never
|
|
15
|
+
* produced, so the forwarded key set is fixed by construction rather than by
|
|
16
|
+
* the agent dropping unknown keys.
|
|
8
17
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export
|
|
18
|
+
/**
|
|
19
|
+
* Entity types the assistant understands for HeadshotMarketing. The api-calls
|
|
20
|
+
* guide in algoshred/ai-assistant
|
|
21
|
+
* (`context/api-calls/products/headshotmarketing.md`) documents each one with
|
|
22
|
+
* the query that reads it; keep the two in step.
|
|
23
|
+
*/
|
|
24
|
+
export declare const HEADSHOTMARKETING_ENTITY_TYPES: readonly ["HEADSHOTMARKETING_CAMPAIGN", "HEADSHOTMARKETING_AD_CAMPAIGN", "HEADSHOTMARKETING_CONTENT_ITEM", "HEADSHOTMARKETING_EVENT", "HEADSHOTMARKETING_WORKFLOW", "HEADSHOTMARKETING_AUDIENCE"];
|
|
25
|
+
export type HeadshotMarketingEntityType = (typeof HEADSHOTMARKETING_ENTITY_TYPES)[number];
|
|
26
|
+
/**
|
|
27
|
+
* The only keys this module ever forwards. Every one is on the sandbox
|
|
28
|
+
* agent's allow-list (`ALLOWED_CONTEXT_KEYS` in ai-assistant
|
|
29
|
+
* `src/context-loader.ts`). The URL key is `currentUrl`: an `activeUrl` key
|
|
30
|
+
* would be silently dropped by the agent.
|
|
31
|
+
*/
|
|
32
|
+
export declare const FORWARDED_CONTEXT_KEYS: readonly ["currentUrl", "currentPage", "entityType", "entityId", "activeTab", "platform", "version", "viewportSize"];
|
|
33
|
+
/**
|
|
34
|
+
* A `type` alias rather than an `interface`, on purpose: TypeScript gives a
|
|
35
|
+
* type alias an implicit index signature, which keeps it assignable to the
|
|
36
|
+
* shared transport's `gatherPageContext: () => object` seam without a cast.
|
|
37
|
+
*/
|
|
38
|
+
export type PageContext = {
|
|
16
39
|
currentUrl: string;
|
|
17
40
|
currentPage: string;
|
|
18
|
-
entityType?:
|
|
41
|
+
entityType?: HeadshotMarketingEntityType;
|
|
19
42
|
entityId?: string;
|
|
43
|
+
activeTab?: string;
|
|
20
44
|
platform: string;
|
|
21
45
|
version: string;
|
|
22
46
|
viewportSize: string;
|
|
47
|
+
};
|
|
48
|
+
export interface ResolvedEntity {
|
|
49
|
+
entityType?: HeadshotMarketingEntityType;
|
|
50
|
+
entityId?: string;
|
|
51
|
+
activeTab?: string;
|
|
23
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Strip the mount prefix and any trailing slash, so the tables above match
|
|
55
|
+
* the same page whether the MFE runs inside the app shell
|
|
56
|
+
* (`/headshotmarketing/events/abc`) or standalone in dev (`/events/abc`).
|
|
57
|
+
*/
|
|
58
|
+
export declare function toProductPath(pathname: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* Resolve the record the user is looking at from the route (and, for the two
|
|
61
|
+
* routes above that use one, a single named search parameter).
|
|
62
|
+
*
|
|
63
|
+
* Returns an empty object on list, dashboard and create pages.
|
|
64
|
+
*/
|
|
65
|
+
export declare function resolveHeadshotMarketingEntity(pathname: string, search?: string): ResolvedEntity;
|
|
66
|
+
/**
|
|
67
|
+
* Up to three path segments under the product, e.g. `headshotmarketing/crm/leads`.
|
|
68
|
+
* Matches the shape every other product sends, so the agent can name the page.
|
|
69
|
+
*/
|
|
70
|
+
export declare function toCurrentPage(pathname: string): string;
|
|
24
71
|
export declare function gatherPageContext(): PageContext;
|
|
25
|
-
export declare function resolveHeadshotMarketingConversationContext(pathname: string, search: string): ConversationContextShape;
|
|
26
|
-
export {};
|
|
27
72
|
//# sourceMappingURL=pageContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageContext.d.ts","sourceRoot":"","sources":["../../src/utils/pageContext.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pageContext.d.ts","sourceRoot":"","sources":["../../src/utils/pageContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,mMAOjC,CAAC;AAEX,MAAM,MAAM,2BAA2B,GACrC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,sHASzB,CAAC;AAEX;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6ED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAOtD;AAqBD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,MAAM,EAChB,MAAM,SAAK,GACV,cAAc,CAmBhB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGtD;AAOD,wBAAgB,iBAAiB,IAAI,WAAW,CAc/C"}
|
|
@@ -1,67 +1,87 @@
|
|
|
1
1
|
//#region src/utils/pageContext.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
var e = "/headshotmarketing", t = "([^/]+)", n = [
|
|
3
|
+
{
|
|
4
|
+
pattern: RegExp(`^/campaigns/(?!(?:new|templates)$)${t}/edit$`),
|
|
5
|
+
entityType: "HEADSHOTMARKETING_CAMPAIGN",
|
|
6
|
+
activeTab: "edit"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
pattern: RegExp(`^/campaigns/(?!(?:new|templates)$)${t}$`),
|
|
10
|
+
entityType: "HEADSHOTMARKETING_CAMPAIGN"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
pattern: RegExp(`^/ads/campaigns/(?!new$)${t}$`),
|
|
14
|
+
entityType: "HEADSHOTMARKETING_AD_CAMPAIGN"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
pattern: RegExp(`^/content/(?!(?:assets|create|ai-tools|analytics)$)${t}$`),
|
|
18
|
+
entityType: "HEADSHOTMARKETING_CONTENT_ITEM"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
pattern: RegExp(`^/events/(?!(?:new|create)$)${t}$`),
|
|
22
|
+
entityType: "HEADSHOTMARKETING_EVENT"
|
|
23
|
+
}
|
|
24
|
+
], r = [{
|
|
25
|
+
path: "/automation/workflows/builder",
|
|
26
|
+
param: "id",
|
|
27
|
+
entityType: "HEADSHOTMARKETING_WORKFLOW"
|
|
28
|
+
}, {
|
|
29
|
+
path: "/ads/campaigns/new",
|
|
30
|
+
param: "audienceId",
|
|
31
|
+
entityType: "HEADSHOTMARKETING_AUDIENCE",
|
|
32
|
+
activeTab: "new-ad-campaign"
|
|
33
|
+
}], i = /^[A-Za-z0-9_-]{1,128}$/;
|
|
34
|
+
function a(t) {
|
|
35
|
+
let n = t;
|
|
36
|
+
return (n === e || n.startsWith(`${e}/`)) && (n = n.slice(18)), n = n.replace(/\/+$/, ""), n === "" ? "/" : n;
|
|
13
37
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
38
|
+
function o(e) {
|
|
39
|
+
try {
|
|
40
|
+
return decodeURIComponent(e);
|
|
41
|
+
} catch {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
16
44
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[/^\/headshotmarketing\/events\/([^/]+)\/registrations\/([^/]+)$/, "HEADSHOTMARKETING_EVENT_REGISTRATION"],
|
|
32
|
-
[/^\/headshotmarketing\/events\/([^/]+)\/speakers\/([^/]+)$/, "HEADSHOTMARKETING_EVENT_SPEAKER"],
|
|
33
|
-
[/^\/headshotmarketing\/automation\/workflows\/([^/]+)$/, "HEADSHOTMARKETING_WORKFLOW"],
|
|
34
|
-
[/^\/headshotmarketing\/ads\/audiences\/([^/]+)$/, "HEADSHOTMARKETING_AUDIENCE"],
|
|
35
|
-
[/^\/headshotmarketing\/ads\/creatives\/([^/]+)$/, "HEADSHOTMARKETING_AD_CREATIVE"],
|
|
36
|
-
[/^\/headshotmarketing\/influencers\/campaigns\/([^/]+)$/, "HEADSHOTMARKETING_INFLUENCER_CAMPAIGN"],
|
|
37
|
-
[/^\/headshotmarketing\/builder\/([^/]+)$/, "HEADSHOTMARKETING_LANDING_PAGE"],
|
|
38
|
-
[/^\/headshotmarketing\/seo\/audits\/([^/]+)$/, "HEADSHOTMARKETING_SEO_AUDIT"],
|
|
39
|
-
[/^\/headshotmarketing\/seo\/keywords\/([^/]+)$/, "HEADSHOTMARKETING_SEO_KEYWORD"]
|
|
40
|
-
]) {
|
|
41
|
-
let i = t(n, e);
|
|
42
|
-
if (i) return {
|
|
43
|
-
entityType: r,
|
|
44
|
-
entityId: i[i.length - 1],
|
|
45
|
-
metadata: {
|
|
46
|
-
routePattern: n.source,
|
|
47
|
-
...i.length > 2 ? { parentEventId: i[1] } : {}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
45
|
+
function s(e, t, n) {
|
|
46
|
+
if (!e) return {};
|
|
47
|
+
let r = o(e);
|
|
48
|
+
return !r || !i.test(r) ? {} : {
|
|
49
|
+
entityType: t,
|
|
50
|
+
entityId: r,
|
|
51
|
+
...n ? { activeTab: n } : {}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function c(e, t = "") {
|
|
55
|
+
let i = a(e);
|
|
56
|
+
for (let e of n) {
|
|
57
|
+
let t = e.pattern.exec(i);
|
|
58
|
+
if (t) return s(t[1], e.entityType, e.activeTab);
|
|
50
59
|
}
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
let o = r.find((e) => e.path === i);
|
|
61
|
+
return o ? s(new URLSearchParams(t).get(o.param), o.entityType, o.activeTab) : {};
|
|
62
|
+
}
|
|
63
|
+
function l(e) {
|
|
64
|
+
return ["headshotmarketing", ...a(e).split("/").filter(Boolean)].slice(0, 3).join("/");
|
|
65
|
+
}
|
|
66
|
+
function u() {
|
|
67
|
+
return "dev";
|
|
68
|
+
}
|
|
69
|
+
function d() {
|
|
70
|
+
let { origin: e, pathname: t, search: n } = window.location, r = c(t, n);
|
|
55
71
|
return {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
72
|
+
currentUrl: `${e}${t}`,
|
|
73
|
+
currentPage: l(t),
|
|
74
|
+
...r.entityType ? {
|
|
75
|
+
entityType: r.entityType,
|
|
76
|
+
entityId: r.entityId
|
|
77
|
+
} : {},
|
|
78
|
+
...r.activeTab ? { activeTab: r.activeTab } : {},
|
|
79
|
+
platform: "headshotmarketing",
|
|
80
|
+
version: u(),
|
|
81
|
+
viewportSize: `${window.innerWidth}x${window.innerHeight}`
|
|
62
82
|
};
|
|
63
83
|
}
|
|
64
84
|
//#endregion
|
|
65
|
-
export {
|
|
85
|
+
export { d as gatherPageContext };
|
|
66
86
|
|
|
67
87
|
//# sourceMappingURL=pageContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageContext.js","names":[],"sources":["../../src/utils/pageContext.ts"],"sourcesContent":["/**\n * Page context
|
|
1
|
+
{"version":3,"file":"pageContext.js","names":[],"sources":["../../src/utils/pageContext.ts"],"sourcesContent":["/**\n * Page context for the HeadshotMarketing AI assistant (BOFF-3797).\n *\n * Captures where the marketer is in the app (the URL, the page and the record\n * on screen) so the floating assistant can act on \"this campaign\", \"this\n * event\" or \"here\" without asking which record the user means.\n *\n * Data boundary: this module emits ids and route names only. It never reads\n * the DOM, the Apollo cache or form state, so contact names, e-mail addresses,\n * attendee details and draft copy cannot reach the assistant through it. The\n * query string and fragment are dropped from `currentUrl` as well: they can\n * carry search text or names (the ad-campaign create page receives\n * `audienceName`), and the sandbox's key allow-list only filters keys after\n * the payload has left the browser. `userAgent` and `timestamp` are never\n * produced, so the forwarded key set is fixed by construction rather than by\n * the agent dropping unknown keys.\n */\n\n/**\n * Entity types the assistant understands for HeadshotMarketing. The api-calls\n * guide in algoshred/ai-assistant\n * (`context/api-calls/products/headshotmarketing.md`) documents each one with\n * the query that reads it; keep the two in step.\n */\nexport const HEADSHOTMARKETING_ENTITY_TYPES = [\n \"HEADSHOTMARKETING_CAMPAIGN\",\n \"HEADSHOTMARKETING_AD_CAMPAIGN\",\n \"HEADSHOTMARKETING_CONTENT_ITEM\",\n \"HEADSHOTMARKETING_EVENT\",\n \"HEADSHOTMARKETING_WORKFLOW\",\n \"HEADSHOTMARKETING_AUDIENCE\",\n] as const;\n\nexport type HeadshotMarketingEntityType =\n (typeof HEADSHOTMARKETING_ENTITY_TYPES)[number];\n\n/**\n * The only keys this module ever forwards. Every one is on the sandbox\n * agent's allow-list (`ALLOWED_CONTEXT_KEYS` in ai-assistant\n * `src/context-loader.ts`). The URL key is `currentUrl`: an `activeUrl` key\n * would be silently dropped by the agent.\n */\nexport const FORWARDED_CONTEXT_KEYS = [\n \"currentUrl\",\n \"currentPage\",\n \"entityType\",\n \"entityId\",\n \"activeTab\",\n \"platform\",\n \"version\",\n \"viewportSize\",\n] as const;\n\n/**\n * A `type` alias rather than an `interface`, on purpose: TypeScript gives a\n * type alias an implicit index signature, which keeps it assignable to the\n * shared transport's `gatherPageContext: () => object` seam without a cast.\n */\nexport type PageContext = {\n currentUrl: string;\n currentPage: string;\n entityType?: HeadshotMarketingEntityType;\n entityId?: string;\n activeTab?: string;\n platform: string;\n version: string;\n viewportSize: string;\n};\n\nexport interface ResolvedEntity {\n entityType?: HeadshotMarketingEntityType;\n entityId?: string;\n activeTab?: string;\n}\n\n/** The app shell mounts the MFE at this base path (`AppRoutes.tsx`). */\nconst BASE_PATH = \"/headshotmarketing\";\n\nconst ID = \"([^/]+)\";\n\n/**\n * Route -> entity table, mirroring `HeadshotMarketingRoutes.tsx`.\n *\n * Only routes that carry a record id in the path are listed. Static siblings\n * that share a prefix with an id route are excluded with a negative\n * look-ahead, so `/campaigns/new` is never a campaign whose id is \"new\",\n * `/events/create` is never an event and `/content/assets` is never a content\n * item. Create, list and dashboard pages resolve to no entity: there is no\n * \"this\" there, and a guessed entity is worse than none because the assistant\n * would act on it confidently.\n */\nconst ROUTES: ReadonlyArray<{\n pattern: RegExp;\n entityType: HeadshotMarketingEntityType;\n activeTab?: string;\n}> = [\n {\n pattern: new RegExp(`^/campaigns/(?!(?:new|templates)$)${ID}/edit$`),\n entityType: \"HEADSHOTMARKETING_CAMPAIGN\",\n activeTab: \"edit\",\n },\n {\n pattern: new RegExp(`^/campaigns/(?!(?:new|templates)$)${ID}$`),\n entityType: \"HEADSHOTMARKETING_CAMPAIGN\",\n },\n {\n pattern: new RegExp(`^/ads/campaigns/(?!new$)${ID}$`),\n entityType: \"HEADSHOTMARKETING_AD_CAMPAIGN\",\n },\n {\n pattern: new RegExp(\n `^/content/(?!(?:assets|create|ai-tools|analytics)$)${ID}$`,\n ),\n entityType: \"HEADSHOTMARKETING_CONTENT_ITEM\",\n },\n {\n pattern: new RegExp(`^/events/(?!(?:new|create)$)${ID}$`),\n entityType: \"HEADSHOTMARKETING_EVENT\",\n },\n];\n\n/**\n * Routes whose record id travels in a search parameter rather than the path.\n * Only these named parameters are read; nothing else from the query string is\n * forwarded.\n */\nconst SEARCH_ROUTES: ReadonlyArray<{\n path: string;\n param: string;\n entityType: HeadshotMarketingEntityType;\n activeTab?: string;\n}> = [\n {\n // The workflow builder edits an existing workflow when `?id=` is set.\n path: \"/automation/workflows/builder\",\n param: \"id\",\n entityType: \"HEADSHOTMARKETING_WORKFLOW\",\n },\n {\n // \"Create ad campaign for this audience\" from the Audiences page.\n path: \"/ads/campaigns/new\",\n param: \"audienceId\",\n entityType: \"HEADSHOTMARKETING_AUDIENCE\",\n activeTab: \"new-ad-campaign\",\n },\n];\n\n/** Ids in this app are UUIDs or similar opaque tokens; anything else is not an id. */\nconst SAFE_ID = /^[A-Za-z0-9_-]{1,128}$/;\n\n/**\n * Strip the mount prefix and any trailing slash, so the tables above match\n * the same page whether the MFE runs inside the app shell\n * (`/headshotmarketing/events/abc`) or standalone in dev (`/events/abc`).\n */\nexport function toProductPath(pathname: string): string {\n let path = pathname;\n if (path === BASE_PATH || path.startsWith(`${BASE_PATH}/`)) {\n path = path.slice(BASE_PATH.length);\n }\n path = path.replace(/\\/+$/, \"\");\n return path === \"\" ? \"/\" : path;\n}\n\nfunction decodeSegment(segment: string): string | undefined {\n try {\n return decodeURIComponent(segment);\n } catch {\n return undefined;\n }\n}\n\nfunction toEntity(\n rawId: string | null | undefined,\n entityType: HeadshotMarketingEntityType,\n activeTab: string | undefined,\n): ResolvedEntity {\n if (!rawId) return {};\n const entityId = decodeSegment(rawId);\n if (!entityId || !SAFE_ID.test(entityId)) return {};\n return { entityType, entityId, ...(activeTab ? { activeTab } : {}) };\n}\n\n/**\n * Resolve the record the user is looking at from the route (and, for the two\n * routes above that use one, a single named search parameter).\n *\n * Returns an empty object on list, dashboard and create pages.\n */\nexport function resolveHeadshotMarketingEntity(\n pathname: string,\n search = \"\",\n): ResolvedEntity {\n const path = toProductPath(pathname);\n\n for (const route of ROUTES) {\n const match = route.pattern.exec(path);\n if (match) return toEntity(match[1], route.entityType, route.activeTab);\n }\n\n const searchRoute = SEARCH_ROUTES.find((route) => route.path === path);\n if (searchRoute) {\n const params = new URLSearchParams(search);\n return toEntity(\n params.get(searchRoute.param),\n searchRoute.entityType,\n searchRoute.activeTab,\n );\n }\n\n return {};\n}\n\n/**\n * Up to three path segments under the product, e.g. `headshotmarketing/crm/leads`.\n * Matches the shape every other product sends, so the agent can name the page.\n */\nexport function toCurrentPage(pathname: string): string {\n const segments = toProductPath(pathname).split(\"/\").filter(Boolean);\n return [\"headshotmarketing\", ...segments].slice(0, 3).join(\"/\");\n}\n\nfunction appVersion(): string {\n const version: unknown = import.meta.env?.VITE_APP_VERSION;\n return typeof version === \"string\" && version.trim() ? version : \"dev\";\n}\n\nexport function gatherPageContext(): PageContext {\n const { origin, pathname, search } = window.location;\n const entity = resolveHeadshotMarketingEntity(pathname, search);\n return {\n currentUrl: `${origin}${pathname}`,\n currentPage: toCurrentPage(pathname),\n ...(entity.entityType\n ? { entityType: entity.entityType, entityId: entity.entityId }\n : {}),\n ...(entity.activeTab ? { activeTab: entity.activeTab } : {}),\n platform: \"headshotmarketing\",\n version: appVersion(),\n viewportSize: `${window.innerWidth}x${window.innerHeight}`,\n };\n}\n"],"mappings":";AA4EA,IAAM,IAAY,sBAEZ,IAAK,WAaL,IAID;CACH;EACE,SAAa,OAAO,qCAAqC,EAAG,QAAQ;EACpE,YAAY;EACZ,WAAW;EACZ;CACD;EACE,SAAa,OAAO,qCAAqC,EAAG,GAAG;EAC/D,YAAY;EACb;CACD;EACE,SAAa,OAAO,2BAA2B,EAAG,GAAG;EACrD,YAAY;EACb;CACD;EACE,SAAa,OACX,sDAAsD,EAAG,GAC1D;EACD,YAAY;EACb;CACD;EACE,SAAa,OAAO,+BAA+B,EAAG,GAAG;EACzD,YAAY;EACb;CACF,EAOK,IAKD,CACH;CAEE,MAAM;CACN,OAAO;CACP,YAAY;CACb,EACD;CAEE,MAAM;CACN,OAAO;CACP,YAAY;CACZ,WAAW;CACZ,CACF,EAGK,IAAU;AAOhB,SAAgB,EAAc,GAA0B;CACtD,IAAI,IAAO;AAKX,SAJI,MAAS,KAAa,EAAK,WAAW,GAAG,EAAU,GAAG,MACxD,IAAO,EAAK,MAAM,GAAiB,GAErC,IAAO,EAAK,QAAQ,QAAQ,GAAG,EACxB,MAAS,KAAK,MAAM;;AAG7B,SAAS,EAAc,GAAqC;AAC1D,KAAI;AACF,SAAO,mBAAmB,EAAQ;SAC5B;AACN;;;AAIJ,SAAS,EACP,GACA,GACA,GACgB;AAChB,KAAI,CAAC,EAAO,QAAO,EAAE;CACrB,IAAM,IAAW,EAAc,EAAM;AAErC,QADI,CAAC,KAAY,CAAC,EAAQ,KAAK,EAAS,GAAS,EAAE,GAC5C;EAAE;EAAY;EAAU,GAAI,IAAY,EAAE,cAAW,GAAG,EAAE;EAAG;;AAStE,SAAgB,EACd,GACA,IAAS,IACO;CAChB,IAAM,IAAO,EAAc,EAAS;AAEpC,MAAK,IAAM,KAAS,GAAQ;EAC1B,IAAM,IAAQ,EAAM,QAAQ,KAAK,EAAK;AACtC,MAAI,EAAO,QAAO,EAAS,EAAM,IAAI,EAAM,YAAY,EAAM,UAAU;;CAGzE,IAAM,IAAc,EAAc,MAAM,MAAU,EAAM,SAAS,EAAK;AAUtE,QATI,IAEK,EADQ,IAAI,gBAAgB,EAAO,CAEjC,IAAI,EAAY,MAAM,EAC7B,EAAY,YACZ,EAAY,UACb,GAGI,EAAE;;AAOX,SAAgB,EAAc,GAA0B;AAEtD,QAAO,CAAC,qBAAqB,GADZ,EAAc,EAAS,CAAC,MAAM,IAAI,CAAC,OAAO,QAAQ,CAC1B,CAAC,MAAM,GAAG,EAAE,CAAC,KAAK,IAAI;;AAGjE,SAAS,IAAqB;AAE5B,QAAiE;;AAGnE,SAAgB,IAAiC;CAC/C,IAAM,EAAE,WAAQ,aAAU,cAAW,OAAO,UACtC,IAAS,EAA+B,GAAU,EAAO;AAC/D,QAAO;EACL,YAAY,GAAG,IAAS;EACxB,aAAa,EAAc,EAAS;EACpC,GAAI,EAAO,aACP;GAAE,YAAY,EAAO;GAAY,UAAU,EAAO;GAAU,GAC5D,EAAE;EACN,GAAI,EAAO,YAAY,EAAE,WAAW,EAAO,WAAW,GAAG,EAAE;EAC3D,UAAU;EACV,SAAS,GAAY;EACrB,cAAc,GAAG,OAAO,WAAW,GAAG,OAAO;EAC9C"}
|
package/package.json
CHANGED